function e(c) { throw c; } var m = void 0, q = !0, s = null, t = !1; function da() { return function(c) { return c } } function u() { return function() {} } function x(c) { return function(d) { this[c] = d } } function A(c) { return function() { return this[c] } } function B(c) { return function() { return c } } var C = C || {}; C.U = C.U || {}; C.n = {}; H = window; H = Object.prototype; delete window._p; C.bd = function(c) { return document.createElement(c) }; C.qb = function(c, d, f, g) { c.addEventListener(d, f, g) }; C.iaa = "undefined" !== typeof require && require("fs"); C.pda = function(c, d) { if (c) if (c instanceof Array) for (var f = 0, g = c.length; f < g && d.call(m, c[f], f) !== t; f++); else for (f in c) if (d.call(m, c[f], f) === t) break }; C.g1 = function(c) { if (!c) return C.log("invalid URL"), t; var d = c.indexOf("://"); if ( - 1 == d) return t; d = c.indexOf("/", d + 3); return ( - 1 == d ? c: c.substring(0, d)) != location.origin }; C.async = { B9: function(c) { var d = this.Uca; if (!d.d0) { var f = d.length, g = d.$ga, h = d.ega, k = h.mg, n = h.Nca, p = h.O3, h = h.z6a; if (c) { if (d.d0 = c, k) return k.call(n, c) } else { var r = Array.apply(s, arguments).slice(1), v = r.length; 0 == v ? r = s: 1 == v && (r = r[0]); g[this.index] = r; d.count--; p && p.call(h, r, f - d.count, f); 0 == d.count && k && k.apply(n, [s, g]) } } }, s$: u(), X0a: function(c, d, f) { var g = C.async; f !== m ? ("function" == typeof d && (d = { O3: d }), d.mg = f || d.mg) : d !== m ? "function" == typeof d && (d = { mg: d }) : c !== m ? d = {}: e("arguments error!"); var h = (f = c instanceof Array) ? c.length: Object.keys(c).length; if (0 == h) d.mg && d.mg.call(d.Nca, s); else { var k = { length: h, count: h, ega: d, $ga: f ? [] : {} }; C.pda(c, function(c, f) { if (k.d0) return t; var h = !d.mg && !d.O3 ? g.s$: g.B9.bind({ Uca: k, index: f }); c(h, f) }) } }, map: function(c, d, f) { var g = this, h = arguments.length; "function" == typeof d && (d = { n1: d }); 3 === h ? d.mg = f || d.mg: 2 > h && e("arguments error!"); "function" == typeof d && (d = { n1: d }); f !== m ? d.mg = f || d.mg: c === m && e("arguments error!"); var k = (h = c instanceof Array) ? c.length: Object.keys(c).length; if (0 === k) d.mg && d.mg.call(d.Nca, s); else { var n = { length: k, count: k, ega: d, $ga: h ? [] : {} }; C.pda(c, function(c, f) { if (n.d0) return t; var h = !d.mg ? g.s$: g.B9.bind({ Uca: n, index: f }); d.n1.call(d.EDa, c, f, h) }) } } }; C.path = { join: function() { for (var c = arguments.length, d = "", f = 0; f < c; f++) d = (d + ("" == d ? "": "/") + arguments[f]).replace(/(\/|\\\\)$/, ""); return d }, Cp: function(c) { return (c = /(\.[^\.\/\?\\]*)(\?.*)?$/.exec(c)) ? c[1] : s }, c0a: function(c) { if (c) { var d = c.lastIndexOf("."); if ( - 1 !== d) return c.substring(0, d) } return c }, lxa: function(c, d) { var f = c.indexOf("?"); 0 < f && (c = c.substring(0, f)); f = /(\/|\\\\)([^(\/|\\\\)]+)$/g.exec(c.replace(/(\/|\\\\)$/, "")); if (!f) return s; f = f[2]; return d && c.substring(c.length - d.length).toLowerCase() == d.toLowerCase() ? f.substring(0, f.length - d.length) : f }, dirname: function(c) { return c.replace(/((.*)(\/|\\|\\\\))?(.*?\..*$)?/, "$2") }, s_: function(c, d) { d = d || ""; var f = c.indexOf("?"), g = ""; 0 < f && (g = c.substring(f), c = c.substring(0, f)); f = c.lastIndexOf("."); return 0 > f ? c + d + g: c.substring(0, f) + d + g }, BB: function(c, d, f) { if (0 == d.indexOf(".")) return this.s_(c, d); var g = c.indexOf("?"), h = ""; f = f ? this.Cp(c) : ""; 0 < g && (h = c.substring(g), c = c.substring(0, g)); g = c.lastIndexOf("/"); return c.substring(0, 0 >= g ? 0 : g + 1) + d + f + h } }; C.M = { paa: {}, KN: {}, wta: {}, Hv: {}, dR: "", dxa: "", fj: {}, cI: function() { return window.XMLHttpRequest ? new window.XMLHttpRequest: new ActiveXObject("MSXML2.XMLHTTP") }, N$: function(c) { var d = c[0], f = c[1], g = c[2], h = ["", s, s]; 1 === c.length ? h[1] = d instanceof Array ? d: [d] : 2 === c.length ? "function" == typeof f ? (h[1] = d instanceof Array ? d: [d], h[2] = f) : (h[0] = d || "", h[1] = f instanceof Array ? f: [f]) : 3 === c.length ? (h[0] = d || "", h[1] = f instanceof Array ? f: [f], h[2] = g) : e("arguments error to load js!"); return h }, nEa: function(c, d, f) { var g = this, h = g.paa, k = g.N$(arguments); - 1 < navigator.userAgent.indexOf("Trident/5") ? g.uaa(k[0], k[1], 0, k[2]) : C.async.map(k[1], function(c, d, f) { c = C.path.join(k[0], c); if (h[c]) return f(s); g.C9(c, t, f) }, k[2]) }, Jfa: function(c, d, f) { var g = this.zta(), h = this.N$(arguments); this.nEa(h[0], h[1], function(c) { c && e(c); g.parentNode.removeChild(g); if (h[2]) h[2]() }) }, C9: function(c, d, f) { var g = document, h = C.bd("script"); h.async = d; h.src = c; this.paa[c] = q; C.qb(h, "load", function() { this.removeEventListener("load", arguments.callee, t); f() }, t); C.qb(h, "error", function() { f("Load " + c + " failed!") }, t); g.body.appendChild(h) }, uaa: function(c, d, f, g) { if (f >= d.length) g && g(); else { var h = this; h.C9(C.path.join(c, d[f]), t, function(k) { if (k) return g(k); h.uaa(c, d, f + 1, g) }) } }, zta: function() { var c = document, d = c.getElementById("cocos2d_loadJsImg"); if (!d) { d = C.bd("img"); C.xaa && (d.src = C.xaa); c = c.getElementById(C.qf.gj.id); c.style.backgroundColor = "black"; c.parentNode.appendChild(d); var f = getComputedStyle ? getComputedStyle(c) : c.currentStyle; f || (f = { width: c.width, height: c.height }); d.style.left = c.offsetLeft + (parseFloat(f.width) - d.width) / 2 + "px"; d.style.top = c.offsetTop + (parseFloat(f.height) - d.height) / 2 + "px"; d.style.position = "absolute" } return d }, EQ: function(c, d) { if (C.iaa) require("fs").z1a(c, function(c, f) { c ? d(c) : d(s, f.toString()) }); else { var f = this.cI(), g = "load " + c + " failed!"; f.open("GET", c, q); /msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent) ? (f.setRequestHeader("Accept-Charset", "utf-8"), f.onreadystatechange = function() { 4 == f.readyState && 200 == f.status ? d(s, f.responseText) : d(g) }) : (f.overrideMimeType && f.overrideMimeType("text/plain; charset\x3dutf-8"), f.onload = function() { 4 == f.readyState && 200 == f.status ? d(s, f.responseText) : d(g) }); f.send(s) } }, vaa: function(c) { if (C.iaa) return require("fs").A1a(c).toString(); var d = this.cI(); d.open("GET", c, t); /msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent) ? d.setRequestHeader("Accept-Charset", "utf-8") : d.overrideMimeType && d.overrideMimeType("text/plain; charset\x3dutf-8"); d.send(s); return 4 == !d.readyState || 200 != d.status ? s: d.responseText }, Kfa: function(c, d) { this.EQ(c, function(f, g) { try { f ? d(f) : d(s, JSON.parse(g)) } catch(h) { e("load json [" + c + "] failed : " + h) } }) }, u9: function(c) { return /(\.png)|(\.jpg)|(\.bmp)|(\.jpeg)|(\.gif)/.exec(c) != s }, wI: function(c, d, f) { var g = q; f !== m ? g = d.g1 == s ? g: d.g1: d !== m && (f = d); var h = new Image; g && "file://" != location.origin && (h.crossOrigin = "Anonymous"); C.qb(h, "load", function() { this.removeEventListener("load", arguments.callee, t); this.removeEventListener("error", arguments.callee, t); f && f(s, h) }); C.qb(h, "error", function() { this.removeEventListener("error", arguments.callee, t); f && f("load image failed") }); h.src = c; return h }, Ata: function(c, d, f) { var g = this, h = s; (d = c.type) ? (d = "." + d.toLowerCase(), h = c.src ? c.src: c.name + d) : (h = c, d = C.path.Cp(h)); var k = g.fj[h]; if (k) return f(s, k); k = g.KN[d.toLowerCase()]; if (!k) return C.error("loader for [" + d + "] not exists!"), f(); d = g.K0(k.zP ? k.zP() : g.dR, h); k.load(d, h, c, function(c, d) { c ? (C.log(c), g.fj[h] = s, delete g.fj[h], f()) : (g.fj[h] = d, f(s, d)) }) }, K0: function(c, d) { var f = this.wta, g = C.path; if (c !== m && d === m) { d = c; var h = g.Cp(d), h = h ? h.toLowerCase() : ""; c = (h = this.KN[h]) ? h.zP ? h.zP() : this.dR: this.dR } d = C.path.join(c || "", d); if (d.match(/[\/(\\\\)]lang[\/(\\\\)]/i)) { if (f[d]) return f[d]; g = g.Cp(d) || ""; d = f[d] = d.substring(0, d.length - g.length) + "_" + C.Sc.language + g } return d }, load: function(c, d, f) { f !== m ? "function" == typeof d && (d = { O3: d }) : d !== m ? "function" == typeof d && (f = d, d = {}) : c !== m ? d = {}: e("arguments error!"); d.mg = function(c, d) { c && C.log(c); f && f(d) }; c instanceof Array || (c = [c]); d.n1 = this.Ata; d.EDa = this; C.async.map(c, d) }, Y$: function(c, d) { var f = this.Hv, g = [], h; for (h in c) { var k = c[h]; f[h] = k; g.push(k) } this.load(g, d) }, Y_a: function(c, d) { var f = this, g = f.xd(c); g ? f.Y$(g.filenames, d) : f.load(c, function(c) { f.Y$(c[0].filenames, d) }) }, Zp: function(c, d) { if (c && d) { if ("string" == typeof c) return this.KN[c.trim().toLowerCase()] = d; for (var f = 0, g = c.length; f < g; f++) this.KN["." + c[f].trim().toLowerCase()] = d } }, xd: function(c) { return this.fj[c] || this.fj[this.Hv[c]] }, rh: function(c) { var d = this.fj, f = this.Hv; delete d[c]; delete d[f[c]]; delete f[c] }, L1a: function() { var c = this.fj, d = this.Hv, f; for (f in c) delete c[f]; for (f in d) delete d[f] } }; (function() { function c() { C.Ka && C.qf.qt && C.Ka.dispatchEvent(C.qf.qt) } function d() { C.Ka && C.qf.pt && C.Ka.dispatchEvent(C.qf.pt) } var f = window, g, h; "undefined" !== typeof document.hidden ? (g = "hidden", h = "visibilitychange") : "undefined" !== typeof document.e0a ? (g = "mozHidden", h = "mozvisibilitychange") : "undefined" !== typeof document.f0a ? (g = "msHidden", h = "msvisibilitychange") : "undefined" !== typeof document.U6a && (g = "webkitHidden", h = "webkitvisibilitychange"); g ? C.qb(document, h, function() { document[g] ? d() : c() }, t) : (C.qb(f, "blur", d, t), C.qb(f, "focus", c, t)); "onpageshow" in window && "onpagehide" in window && (C.qb(f, "pagehide", d, t), C.qb(f, "pageshow", c, t)); h = f = s })(); C.log = C.warn = C.error = C.assert = u(); C.Yca = function(c, d) { for (var f = ["webgl", "experimental-webgl", "webkit-3d", "moz-webgl"], g = s, h = 0; h < f.length; ++h) { try { g = c.getContext(f[h], d) } catch(k) {} if (g) break } return g }; C.eta = function(c, d) { C.cb = 0; C.la = 1; var f = C.Sc = {}; f.Sma = "en"; f.gMa = "zh"; f.hMa = "fr"; f.kMa = "it"; f.iMa = "de"; f.rMa = "es"; f.qMa = "ru"; f.mMa = "ko"; f.lMa = "ja"; f.jMa = "hu"; f.pMa = "pt"; f.fMa = "ar"; f.nMa = "no"; f.oMa = "pl"; f.Dna = "Windows"; f.L6 = "iOS"; f.M6 = "OS X"; f.Bna = "UNIX"; f.Ana = "Linux"; f.zna = "Android"; f.Cna = "Unknown"; f.dka = "wechat"; f.aka = "androidbrowser"; f.tS = "ie"; f.bka = "qqbrowser"; f.w4 = "mqqbrowser"; f.x4 = "ucbrowser"; f.LKa = "360browser"; f.MKa = "baiduboxapp"; f.v4 = "baidubrowser"; f.NKa = "maxthon"; f.uS = "opera"; f.OKa = "miuibrowser"; f.xD = "firefox"; f.vS = "safari"; f.sS = "chrome"; f.cka = "unknown"; f.wDa = t; var g = [f.v4, f.uS, f.xD, f.sS, f.vS], h = [f.v4, f.uS, f.xD, f.sS, f.vS, f.x4, f.bka, f.w4, f.tS], k = window, n = k.navigator, p = document.documentElement, r = n.userAgent.toLowerCase(); f.Xr = -1 != r.indexOf("mobile") || -1 != r.indexOf("android"); var v = n.language, v = (v = v ? v: n.browserLanguage) ? v.split("-")[0] : f.Sma; f.language = v; var v = f.cka, y = r.match(/micromessenger|qqbrowser|mqqbrowser|ucbrowser|360browser|baiduboxapp|baidubrowser|maxthon|trident|opera|miuibrowser|firefox/i) || r.match(/chrome|safari/i); y && 0 < y.length && (v = y[0].toLowerCase(), "micromessenger" == v ? v = f.dka: "safari" === v && r.match(/android.*applewebkit/) ? v = f.aka: "trident" == v && (v = f.tS)); f.tu = v; f.Ova = -1 < h.indexOf(f.tu); h = parseInt(c[d.bR]); v = C.la; y = C.bd("Canvas"); C.SG = q; g = -1 == g.indexOf(f.tu); if (1 === h || 0 === h && (f.Xr || g)) v = C.cb; if (v == C.la && (!k.WebGLRenderingContext || !C.Yca(y, { stencil: q, preserveDrawingBuffer: q }))) 0 == h ? v = C.cb: C.SG = t; if (v == C.cb) try { y.getContext("2d") } catch(z) { C.SG = t } C.L = v; try { f.jO = !!new(k.AudioContext || k.webkitAudioContext || k.mozAudioContext) } catch(D) { f.jO = t } try { var E = f.localStorage = k.localStorage; E.setItem("storage", ""); E.removeItem("storage"); E = s } catch(F) { ("SECURITY_ERR" === F.name || "QuotaExceededError" === F.name) && C.warn("Warning: localStorage isn't enabled. Please confirm browser cookie or privacy option"), f.localStorage = u() } E = f.uH = { canvas: q }; C.L == C.la && (E.opengl = q); p.ontouchstart !== m || n.msPointerEnabled ? E.touches = q: p.onmouseup !== m && (E.mouse = q); p.onkeyup !== m && (E.keyboard = q); if (k.DeviceMotionEvent || k.DeviceOrientationEvent) E.accelerometer = q; k = r.match(/(iPad|iPhone|iPod)/i) ? q: t; r = r.match(/android/i) || n.platform.match(/android/i) ? q: t; p = f.Cna; - 1 != n.appVersion.indexOf("Win") ? p = f.Dna: k ? p = f.L6: -1 != n.appVersion.indexOf("Mac") ? p = f.M6: -1 != n.appVersion.indexOf("X11") ? p = f.Bna: -1 != n.appVersion.indexOf("Linux") ? p = f.Ana: r && (p = f.zna); f.Q1 = p; f.DSa = u(); f.RRa = u(); f.C2a = u(); f.PRa = function() { var c; c = "" + ("isMobile : " + this.Xr + "\r\n"); c += "language : " + this.language + "\r\n"; c += "browserType : " + this.tu + "\r\n"; c += "capabilities : " + JSON.stringify(this.uH) + "\r\n"; c += "os : " + this.Q1 + "\r\n"; C.log(c) } }; C.LMa = 0; C.MMa = 1; C.JMa = 2; C.KMa = 3; C.Df = s; C.t = s; C.Pb = s; C.bsa = s; C.NN = t; C.zba = t; C.yba = function(c) { var d, f; if (!C.zba) { C.zba = q; var g = window; g.r2 = g.requestAnimationFrame || g.webkitRequestAnimationFrame || g.mozRequestAnimationFrame || g.oRequestAnimationFrame || g.msRequestAnimationFrame; var h = C.ic(c) || C.ic("#" + c), k; "CANVAS" == h.tagName ? (d = d || h.width, f = f || h.height, k = C.container = C.bd("DIV"), c = C.Pb = h, c.parentNode.insertBefore(k, c), c.ox(k), k.setAttribute("id", "Cocos2dGameContainer")) : ("DIV" != h.tagName && C.log("Warning: target element is not a DIV or CANVAS"), d = d || h.clientWidth, f = f || h.clientHeight, k = C.container = h, c = C.Pb = C.ic(C.bd("CANVAS")), h.appendChild(c)); c.pca("gameCanvas"); c.setAttribute("width", d || 480); c.setAttribute("height", 640); c.setAttribute("tabindex", 99); c.style.outline = "none"; h = k.style; h.width = (d || 480) + "px"; h.height = (f || 320) + "px"; h.margin = "0 auto"; h.position = "relative"; h.overflow = "hidden"; k.top = "100%"; C.L == C.la && (C.t = C.T6a = C.Yca(c, { stencil: q, preserveDrawingBuffer: q, antialias: !C.Sc.Xr, alpha: t })); C.t ? (g.gl = C.t, C.Df = new C.Ola(C.t), C.NN = q, C.kb.jta(), C.ug.UF()) : (C.t = c.getContext("2d"), C.Dta = C.t, C.t.translate(0, c.height), C.Df = C.z5 ? new C.z5(C.t) : s); C.bsa = k; C.log(C.$S); C.Vua(); C.Sc.Xr && (d = C.bd("style"), d.type = "text/css", document.body.appendChild(d), d.textContent = "body,canvas,div{ -moz-user-select: none;-webkit-user-select: none;-ms-user-select: none;-khtml-user-select: none;-webkit-tap-highlight-color:rgba(0,0,0,0);}"); C.view = C.YS.KW(); C.dfa.jGa(C.Pb); C.Q = C.ec.KW(); C.Q.W2 && C.Q.W2(C.view); C.KJ = C.Q.aa; C.IGa = new C.GK; C.JFa = new C.Rna } }; C.LV = function() { C.L !== C.la && e("This feature supports WebGL render mode only.") }; C.haa = t; C.Vua = function() { C.haa = t; C.Pb.oncontextmenu = function() { } }; C.qf = { t5: 0, Dla: 1, pLa: 2, Cla: 3, SS: 4, u5: 5, s5: 6, kK: "game_on_hide", JD: "game_on_show", pt: s, qt: s, kPa: [], Wm: { b0: "engineDir", tRa: "dependencies", CH: "debugMode", EIa: "showFPS", vP: "frameRate", id: "id", bR: "renderMode", GDa: "jsList", Ixa: "classReleaseMode" }, Saa: t, ZX: t, xe: q, dX: s, gj: s, Vp: s, D0a: s, e4a: function(c) { this.gj[this.Wm.vP] = c; this.dX && clearInterval(this.dX); this.xe = q; this.sY() }, sY: function() { var c = this, d, f = c.gj, g = c.Wm, h = window, k = f[g.vP], n = C.Q; n.qHa(f[g.EIa]); h.r2 && 60 == k ? (d = function() { c.xe || (n.Ofa(), h.r2(d)) }, h.r2(d)) : (d = function() { n.Ofa() }, c.dX = setInterval(d, 1E3 / k)); c.xe = t }, HGa: function(c) { function d() { c && (f.gj[f.Wm.id] = c); f.Saa ? C.SG && (f.kra = setInterval(function() { f.ZX && (C.yba(f.gj[f.Wm.id]), f.sY(), f.pt = f.pt || new C.jq(f.kK), f.pt.setUserData(f), f.qt = f.qt || new C.jq(f.JD), f.qt.setUserData(f), f.Vp(), clearInterval(f.kra)) }, 10)) : f.SFa(function() { C.SG && (C.yba(f.gj[f.Wm.id]), f.sY(), f.pt = f.pt || new C.jq(f.kK), f.pt.setUserData(f), f.qt = f.qt || new C.jq(f.JD), f.qt.setUserData(f), f.Vp()) }) } var f = this; document.body ? d() : C.qb(window, "load", function() { this.removeEventListener("load", arguments.callee, t); d() }, t) }, ata: function() { function c(c) { c[d.b0] = c[d.b0] || "frameworks/cocos2d-html5"; c[d.CH] == s && (c[d.CH] = 0); c[d.vP] = c[d.vP] || 60; c[d.bR] == s && (c[d.bR] = 1); return c } var d = this.Wm; if (document.ccConfig) this.gj = c(document.ccConfig); else try { for (var f = document.getElementsByTagName("script"), g = 0; g < f.length; g++) { var h = f[g].getAttribute("cocos"); if ("" == h || h) break } var k, n, p; if (g < f.length) { if (k = f[g].src) p = /(.*)\//.exec(k)[0], C.M.dR = p, k = C.path.join(p, "project.json"); n = C.M.vaa(k) } n || (n = C.M.vaa("project.json")); var r = JSON.parse(n); this.gj = c(r || {}) } catch(v) { C.log("Failed to read or parse project.json"), this.gj = c({}) } C.eta(this.gj, d) }, tta: {}, Q$: function(c, d, f) { var g = this.tta; if (g[d]) return s; f = f || ""; var h = [], k = c[d]; k || e("can not find module [" + d + "]"); d = C.path; for (var n = 0, p = k.length; n < p; n++) { var r = k[n]; if (!g[r]) { var v = d.Cp(r); v ? ".js" == v.toLowerCase() && h.push(d.join(f, r)) : (v = this.Q$(c, r, f)) && (h = h.concat(v)); g[r] = 1 } } return h }, SFa: function(c) { var d = this, f = d.gj, g = d.Wm, h = f[g.b0], k = C.M; if (C.SG) { d.Saa = q; var n = f[g.GDa] || []; C.O ? k.Jfa("", n, function(f) { f && e(f); d.ZX = q; c && c() }) : (g = C.path.join(h, "moduleConfig.json"), k.Kfa(g, function(g, k) { g && e(g); var v = f.modules || [], y = k.module, z = []; C.L == C.la ? v.splice(0, 0, "shaders") : 0 > v.indexOf("core") && v.splice(0, 0, "core"); for (var D = 0, E = v.length; D < E; D++) { var F = d.Q$(y, v[D], h); F && (z = z.concat(F)) } z = z.concat(n); C.M.Jfa(z, function(f) { f && e(f); d.ZX = q; c && c() }) })) } else C.error("Can not support render!") } }; C.qf.ata(); C.n = { l4: "cc.ActionManager.addAction(): action must be non-null", Ija: "cocos2d: removeAction: Target not found", nKa: "cc.ActionManager.removeActionByTag(): an invalid tag", oKa: "cc.ActionManager.removeActionByTag(): target must be non-null", Gja: "cc.ActionManager.getActionByTag(): an invalid tag", Hja: "cocos2d : getActionByTag(tag \x3d %s): Action not found", Mxa: "cocos2d: **** WARNING **** CC_ENABLE_PROFILERS is defined. Disable it when you finish profiling (from ccConfig.js)", Nxa: "Expected 'data' dict, but not found. Config file: %s", Oxa: "Please load the resource first : %s", Jla: "cocos2d: Director: Error in gettimeofday", Kla: "cocos2d: Director: unrecognized projection", ALa: "cocos2d: Director: unrecognized projection", Ila: "cocos2d: Director: Error in gettimeofday", Hla: "running scene should not null", y5: "the scene should not null", yB: "element type is wrong!", Coa: "CCSheduler#scheduleCallback. Callback already scheduled. Updating interval from:%s to %s", Doa: "cc.scheduler.scheduleCallbackForTarget(): callback_fn should be non-null.", Eoa: "cc.scheduler.scheduleCallbackForTarget(): target should be non-null.", Aoa: "cc.Scheduler.pauseTarget():target should be non-null", Boa: "cc.Scheduler.resumeTarget():target should be non-null", zoa: "cc.Scheduler.isTargetPaused():target should be non-null", jna: "getZOrder is deprecated. Please use getLocalZOrder instead.", una: "setZOrder is deprecated. Please use setLocalZOrder instead.", hna: "RotationX !\x3d RotationY. Don't know which one to return", ina: "ScaleX !\x3d ScaleY. Don't know which one to return", dna: "An Node can't be added as a child of itself.", ena: "child already added. It can't be added again", fna: "child must be non-null", ona: "removeFromParentAndCleanup is deprecated. Use removeFromParent instead", mna: "argument tag is an invalid tag", nna: "cocos2d: removeChildByTag(tag \x3d %s): child not found!", lna: "removeAllChildrenWithCleanup is deprecated. Use removeAllChildren instead", vna: "cc.Node.stopActionBy(): argument tag an invalid tag", gna: "cc.Node.getActionByTag(): argument tag is an invalid tag", qna: "resumeSchedulerAndActions is deprecated, please use resume instead.", kna: "pauseSchedulerAndActions is deprecated, please use pause instead.", cna: "Unknown callback function", pna: "child must be non-null", rna: "cc.Node.runAction(): action must be non-null", sna: "callback function must be non-null", tna: "interval must be positive", DMa: "cocos2d: Could not initialize cc.AtlasNode. Invalid Texture.", Rja: "cc.AtlasNode.updateAtlasValues(): Shall be overridden in subclasses", xKa: "", n4: "cocos2d: Could not initialize cc.AtlasNode. Invalid Texture.", uqa: "cc._EventListenerKeyboard.checkAvailable(): Invalid EventListenerKeyboard!", wqa: "cc._EventListenerTouchOneByOne.checkAvailable(): Invalid EventListenerTouchOneByOne!", vqa: "cc._EventListenerTouchAllAtOnce.checkAvailable(): Invalid EventListenerTouchAllAtOnce!", tqa: "cc._EventListenerAcceleration.checkAvailable(): _onAccelerationEvent must be non-nil", gma: "Invalid parameter.", cL: "Don't call this method if the event is for touch.", Bza: "Invalid scene graph priority!", Cza: "0 priority is forbidden for fixed priority since it's used for scene graph based priority.", Gza: "Invalid listener type!", Hza: "Can't set fixed priority with scene graph based listener.", Dza: "Invalid parameters.", Eza: "listener must be a cc.EventListener object when adding a fixed priority listener", Fza: "The listener has been registered, please don't register it again.", Vma: "parameters should not be ending with null in Javascript", Wma: "Invalid index in MultiplexLayer switchTo message", Xma: "Invalid index in MultiplexLayer switchTo message", Uma: "cc.Layer.addLayer(): layer should be non-null", Sla: "Resolution not valid", Tla: "should set resolutionPolicy", fDa: "The touches is more than MAX_TOUCHES, nUnusedIndex \x3d %s", Uia: "cc.swap is being modified from original macro, please check usage", DB: "WebGL error %s", Owa: "cocos2d: cc.AnimationCache: No animations were found in provided dictionary.", Pwa: "cc.AnimationCache. Invalid animation format", Wwa: "cc.AnimationCache.addAnimations(): File could not be found", Qwa: "cocos2d: cc.AnimationCache: Animation '%s' found in dictionary without any frames - cannot add to animation cache.", Rwa: "cocos2d: cc.AnimationCache: Animation '%s' refers to frame '%s' which is not currently in the cc.SpriteFrameCache. This frame will not be added to the animation.", Swa: "cocos2d: cc.AnimationCache: None of the frames for animation '%s' were found in the cc.SpriteFrameCache. Animation is not being added to the Animation Cache.", Twa: "cocos2d: cc.AnimationCache: An animation in your dictionary refers to a frame which is not in the cc.SpriteFrameCache. Some or all of the frames for the animation '%s' may be missing.", Uwa: "cocos2d: CCAnimationCache: Animation '%s' found in dictionary without any frames - cannot add to animation cache.", Vwa: "cocos2d: cc.AnimationCache: Animation '%s' refers to frame '%s' which is not currently in the cc.SpriteFrameCache. This frame will not be added to the animation.", Xwa: "cc.AnimationCache.addAnimations(): Invalid texture file name", gpa: "cc.Sprite.reorderChild(): this child is not in children list", Zoa: "cc.Sprite.ignoreAnchorPointForPosition(): it is invalid in cc.Sprite when using SpriteBatchNode", jpa: "cc.Sprite.setDisplayFrameWithAnimationName(): Frame not found", kpa: "cc.Sprite.setDisplayFrameWithAnimationName(): Invalid frame index", ipa: "setDisplayFrame is deprecated, please use setSpriteFrame instead.", Soa: "cc.Sprite._updateBlendFunc(): _updateBlendFunc doesn't work when the sprite is rendered using a cc.CCSpriteBatchNode", apa: "cc.Sprite.initWithSpriteFrame(): spriteFrame should be non-null", bpa: "cc.Sprite.initWithSpriteFrameName(): spriteFrameName should be non-null", cpa: " is null, please check.", $oa: "cc.Sprite.initWithFile(): filename should be non-null", lpa: "cc.Sprite.setDisplayFrameWithAnimationName(): animationName must be non-null", hpa: "cc.Sprite.reorderChild(): child should be non-null", Toa: "cc.Sprite.addChild(): cc.Sprite only supports cc.Sprites as children when using cc.SpriteBatchNode", Uoa: "cc.Sprite.addChild(): cc.Sprite only supports a sprite using same texture as children when using cc.SpriteBatchNode", Voa: "cc.Sprite.addChild(): child should be non-null", npa: "cc.Sprite.texture setter: Batched sprites should use the same texture as the batchnode", gNa: "cc.SpriteBatchNode.updateQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children", epa: "cc.SpriteBatchNode.insertQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children", Woa: "cc.SpriteBatchNode.addChild(): cc.SpriteBatchNode only supports cc.Sprites as children", Xoa: "cc.SpriteBatchNode.addChild(): cc.Sprite is not using the same texture", dpa: "Sprite.initWithTexture(): Argument must be non-nil ", mpa: "Invalid spriteFrameName", opa: "Invalid argument: cc.Sprite.texture setter expects a CCTexture2D.", hNa: "cc.SpriteBatchNode.updateQuadFromSprite(): sprite should be non-null", fpa: "cc.SpriteBatchNode.insertQuadFromSprite(): sprite should be non-null", Yoa: "cc.SpriteBatchNode.addChild(): child should be non-null", Loa: "cc.SpriteBatchNode.addQuadFromSprite(): SpriteBatchNode only supports cc.Sprites as children", Noa: "cocos2d: CCSpriteBatchNode: resizing TextureAtlas capacity from %s to %s.", Ooa: "cocos2d: WARNING: Not enough memory to resize the atlas", Qoa: "cc.SpriteBatchNode.addChild(): Child doesn't belong to Sprite", Poa: "cc.SpriteBatchNode.addChild(): sprite batch node should contain the child", Moa: "cc.SpriteBatchNode.addQuadFromSprite(): child should be non-null", Roa: "cc.SpriteBatchNode.addChild():child should be non-null", MIa: "cocos2d: WARNING: originalWidth/Height not found on the cc.SpriteFrame. AnchorPoint won't work as expected. Regenrate the .plist", OIa: "cocos2d: WARNING: an alias with name %s already exists", LIa: "cocos2d: WARNING: Sprite frame: %s has already been added by another source, please fix name conflit", RIa: "cocos2d: cc.SpriteFrameCahce: Frame %s not found", NIa: "Please load the resource first : %s", PIa: "cc.SpriteFrameCache.addSpriteFrames(): plist should be non-null", QIa: "Argument must be non-nil", CS: "cc.SpriteBatchNode.updateQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children", tka: "cc.SpriteBatchNode.insertQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children", pka: "cc.SpriteBatchNode.addChild(): cc.SpriteBatchNode only supports cc.Sprites as children", ska: "Sprite.initWithTexture(): Argument must be non-nil ", qka: "cc.Sprite.addChild(): child should be non-null", vka: "Invalid spriteFrameName", wka: "Invalid argument: cc.Sprite texture setter expects a CCTexture2D.", xka: "cc.SpriteBatchNode.updateQuadFromSprite(): sprite should be non-null", uka: "cc.SpriteBatchNode.insertQuadFromSprite(): sprite should be non-null", rka: "cc.SpriteBatchNode.addChild(): child should be non-null", Opa: "cocos2d: Could not open file: %s", Z7: "cc.TextureAtlas.insertQuad(): invalid totalQuads", Ppa: "cc.TextureAtlas.initWithTexture():texture should be non-null", Zpa: "cc.TextureAtlas.updateQuad(): quad should be non-null", $pa: "cc.TextureAtlas.updateQuad(): Invalid index", Spa: "cc.TextureAtlas.insertQuad(): Invalid index", Tpa: "cc.TextureAtlas.insertQuad(): Invalid index + amount", Qpa: "cc.TextureAtlas.insertQuadFromIndex(): Invalid newIndex", Rpa: "cc.TextureAtlas.insertQuadFromIndex(): Invalid fromIndex", Xpa: "cc.TextureAtlas.removeQuadAtIndex(): Invalid index", Ypa: "cc.TextureAtlas.removeQuadsAtIndex(): index + amount out of bounds", Upa: "cc.TextureAtlas.moveQuadsFromIndex(): move is out of bounds", Vpa: "cc.TextureAtlas.moveQuadsFromIndex(): Invalid newIndex", Wpa: "cc.TextureAtlas.moveQuadsFromIndex(): Invalid oldIndex", fJa: "TextureCache:addPVRTCImage does not support on HTML5", dJa: "TextureCache:addPVRTCImage does not support on HTML5", eJa: "addPVRImage does not support on HTML5", gJa: "cocos2d: Couldn't add UIImage in TextureCache", iJa: "cocos2d: '%s' id\x3d%s %s x %s", Wia: "cocos2d: '%s' id\x3d HTMLCanvasElement %s x %s", jJa: "cocos2d: TextureCache dumpDebugInfo: %s textures, HTMLCanvasElement for %s KB (%s MB)", hJa: "cc.Texture.addUIImage(): image should be non-null", Fpa: "initWithETCFile does not support on HTML5", Jpa: "initWithPVRFile does not support on HTML5", Lpa: "initWithPVRTCData does not support on HTML5", Bpa: "cc.Texture.addImage(): path should be non-null", Hpa: "cocos2d: cc.Texture2D. Can't create Texture. UIImage is nil", Ipa: "cocos2d: WARNING: Image (%s x %s) is bigger than the supported %s x %s", Npa: "initWithString isn't supported on cocos2d-html5", Gpa: "initWithETCFile does not support on HTML5", Kpa: "initWithPVRFile does not support on HTML5", Mpa: "initWithPVRTCData does not support on HTML5", Dpa: "bitsPerPixelForFormat: %s, cannot give useful result, it's a illegal pixel format", Apa: "cocos2d: cc.Texture2D: Using RGB565 texture since image has no alpha", Cpa: "cc.Texture.addImage(): path should be non-null", Epa: "NSInternalInconsistencyException", Bf: "Missing file: %s", zga: "cc.radiansToDegress() should be called cc.radiansToDegrees()", YT: "Rect width exceeds maximum margin: %s", XT: "Rect height exceeds maximum margin: %s", hma: "If program goes here, there should be event in dispatch.", ima: "_inDispatch should be 1 here." }; C.aN = function(c) { if (C.Pb) { var d = C.Bta, f = document; if (!d) { var g = f.createElement("Div"), d = g.style; g.setAttribute("id", "logInfoDiv"); C.Pb.parentNode.appendChild(g); g.setAttribute("width", "200"); g.setAttribute("height", C.Pb.height); d.zIndex = "99999"; d.position = "absolute"; d.top = "0"; d.left = "0"; d = C.Bta = f.createElement("textarea"); f = d.style; d.setAttribute("rows", "20"); d.setAttribute("cols", "30"); d.setAttribute("disabled", q); g.appendChild(d); f.backgroundColor = "transparent"; f.borderBottom = "1px solid #cccccc"; f.borderRightWidth = "0px"; f.borderLeftWidth = "0px"; f.borderTopWidth = "0px"; f.borderTopStyle = "none"; f.borderRightStyle = "none"; f.borderLeftStyle = "none"; f.padding = "0px"; f.margin = 0 } c = "string" == typeof c ? c: JSON.stringify(c); d.value = d.value + c + "\r\n"; d.scrollTop = d.scrollHeight } }; C.zM = function(c) { if ("object" === typeof c) try { return JSON.stringify(c) } catch(d) { return "" } else return c }; console.log && (C.log = function(c) { for (var d = 1; d < arguments.length; d++) c = c.replace(/(%s)|(%d)/, C.zM(arguments[d])); console.log(c) }, C.warn = console.warn ? function(c) { for (var d = 1; d < arguments.length; d++) c = c.replace(/(%s)|(%d)/, C.zM(arguments[d])); console.warn(c) }: C.log, C.error = console.error ? function(c) { for (var d = 1; d < arguments.length; d++) c = c.replace(/(%s)|(%d)/, C.zM(arguments[d])); console.error(c) }: C.log, C.assert = function(c, d) { if (!c && d) { for (var f = 2; f < arguments.length; f++) d = d.replace(/(%s)|(%d)/, C.zM(arguments[f])); e(d) } }); var ea = C.qf.gj[C.qf.Wm.CH], fa = C.qf; console.log && ea === fa.Dla || (C.log = ea == fa.SS ? C.aN.bind(C) : u()); if (!ea || ea == fa.t5 || ea == fa.Cla || ea == fa.s5) C.warn = u(); if (ea == fa.SS || ea == fa.u5 || !console.warn) C.warn = C.aN.bind(C); if (!ea || ea == fa.t5) C.error = u(), C.assert = u(); else if (ea == fa.SS || ea == fa.u5 || ea == fa.s5 || !console.error) C.error = C.aN.bind(C), C.assert = function(c, d) { if (!c && d) { for (var f = 2; f < arguments.length; f++) d = d.replace("%s", arguments[f]); C.aN(d) } }; C.M.kEa = function(c, d) { var f = this, g = this.cI(), h = "load " + c + " failed!"; g.open("GET", c, q); /msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent) ? (g.setRequestHeader("Accept-Charset", "x-user-defined"), g.onreadystatechange = function() { if (4 == g.readyState && 200 == g.status) { var c = C.RV(g.responseBody); d(s, f.fO(c)) } else d(h) }) : (g.overrideMimeType && g.overrideMimeType("text/plain; charset\x3dx-user-defined"), g.onload = function() { 4 == g.readyState && 200 == g.status ? d(s, f.fO(g.responseText)) : d(h) }); g.send(s) }; C.M.fO = function(c) { if (!c) return s; for (var d = new Uint8Array(c.length), f = 0; f < c.length; f++) d[f] = c.charCodeAt(f) & 255; return d }; C.M.Ifa = function(c) { var d = this.cI(), f = "load " + c + " failed!"; d.open("GET", c, t); c = s; if (/msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent)) { d.setRequestHeader("Accept-Charset", "x-user-defined"); d.send(s); if (200 != d.status) return C.log(f), s; (d = C.RV(d.responseBody)) && (c = this.fO(d)) } else { d.overrideMimeType && d.overrideMimeType("text/plain; charset\x3dx-user-defined"); d.send(s); if (200 != d.status) return C.log(f), s; c = this.fO(d.responseText) } return c }; var Uint8Array = Uint8Array || Array; if (/msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent)) { var ga = C.bd("script"); ga.type = "text/vbscript"; ga.textContent = '\x3c!-- IEBinaryToArray_ByteStr --\x3e\r\nFunction IEBinaryToArray_ByteStr(Binary)\r\n IEBinaryToArray_ByteStr \x3d CStr(Binary)\r\nEnd Function\r\nFunction IEBinaryToArray_ByteStr_Last(Binary)\r\n Dim lastIndex\r\n lastIndex \x3d LenB(Binary)\r\n if lastIndex mod 2 Then\r\n IEBinaryToArray_ByteStr_Last \x3d Chr( AscB( MidB( Binary, lastIndex, 1 ) ) )\r\n Else\r\n IEBinaryToArray_ByteStr_Last \x3d ""\r\n End If\r\nEnd Function\r\n'; document.body.appendChild(ga); C.RV = function(c) { for (var d = {}, f = 0; 256 > f; f++) for (var g = 0; 256 > g; g++) d[String.fromCharCode(f + 256 * g)] = String.fromCharCode(f) + String.fromCharCode(g); f = IEBinaryToArray_ByteStr(c); c = IEBinaryToArray_ByteStr_Last(c); return f.replace(/[\s\S]/g, function(c) { return d[c] }) + c } }; C = C || {}; C.xaa = "data:image/gif;base64,R0lGODlhEAAQALMNAD8/P7+/vyoqKlVVVX9/fxUVFUBAQGBgYMDAwC8vL5CQkP///wAAAP///wAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQFAAANACwAAAAAEAAQAAAEO5DJSau9OOvNex0IMnDIsiCkiW6g6BmKYlBFkhSUEgQKlQCARG6nEBwOgl+QApMdCIRD7YZ5RjlGpCUCACH5BAUAAA0ALAAAAgAOAA4AAAQ6kLGB0JA4M7QW0hrngRllkYyhKAYqKUGguAws0ypLS8JxCLQDgXAIDg+FRKIA6v0SAECCBpXSkstMBAAh+QQFAAANACwAAAAACgAQAAAEOJDJORAac6K1kDSKYmydpASBUl0mqmRfaGTCcQgwcxDEke+9XO2WkxQSiUIuAQAkls0n7JgsWq8RACH5BAUAAA0ALAAAAAAOAA4AAAQ6kMlplDIzTxWC0oxwHALnDQgySAdBHNWFLAvCukc215JIZihVIZEogDIJACBxnCSXTcmwGK1ar1hrBAAh+QQFAAANACwAAAAAEAAKAAAEN5DJKc4RM+tDyNFTkSQF5xmKYmQJACTVpQSBwrpJNteZSGYoFWjIGCAQA2IGsVgglBOmEyoxIiMAIfkEBQAADQAsAgAAAA4ADgAABDmQSVZSKjPPBEDSGucJxyGA1XUQxAFma/tOpDlnhqIYN6MEAUXvF+zldrMBAjHoIRYLhBMqvSmZkggAIfkEBQAADQAsBgAAAAoAEAAABDeQyUmrnSWlYhMASfeFVbZdjHAcgnUQxOHCcqWylKEohqUEAYVkgEAMfkEJYrFA6HhKJsJCNFoiACH5BAUAAA0ALAIAAgAOAA4AAAQ3kMlJq704611SKloCAEk4lln3DQgyUMJxCBKyLAh1EMRR3wiDQmHY9SQslyIQUMRmlmVTIyRaIgA7"; C.aA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAAgCAYAAAD9qabkAAAKQ2lDQ1BJQ0MgcHJvZmlsZQAAeNqdU3dYk/cWPt/3ZQ9WQtjwsZdsgQAiI6wIyBBZohCSAGGEEBJAxYWIClYUFRGcSFXEgtUKSJ2I4qAouGdBiohai1VcOO4f3Ke1fXrv7e371/u855zn/M55zw+AERImkeaiagA5UoU8Otgfj09IxMm9gAIVSOAEIBDmy8JnBcUAAPADeXh+dLA//AGvbwACAHDVLiQSx+H/g7pQJlcAIJEA4CIS5wsBkFIAyC5UyBQAyBgAsFOzZAoAlAAAbHl8QiIAqg0A7PRJPgUA2KmT3BcA2KIcqQgAjQEAmShHJAJAuwBgVYFSLALAwgCgrEAiLgTArgGAWbYyRwKAvQUAdo5YkA9AYACAmUIszAAgOAIAQx4TzQMgTAOgMNK/4KlfcIW4SAEAwMuVzZdL0jMUuJXQGnfy8ODiIeLCbLFCYRcpEGYJ5CKcl5sjE0jnA0zODAAAGvnRwf44P5Dn5uTh5mbnbO/0xaL+a/BvIj4h8d/+vIwCBAAQTs/v2l/l5dYDcMcBsHW/a6lbANpWAGjf+V0z2wmgWgrQevmLeTj8QB6eoVDIPB0cCgsL7SViob0w44s+/zPhb+CLfvb8QB7+23rwAHGaQJmtwKOD/XFhbnauUo7nywRCMW735yP+x4V//Y4p0eI0sVwsFYrxWIm4UCJNx3m5UpFEIcmV4hLpfzLxH5b9CZN3DQCshk/ATrYHtctswH7uAQKLDljSdgBAfvMtjBoLkQAQZzQyefcAAJO/+Y9AKwEAzZek4wAAvOgYXKiUF0zGCAAARKCBKrBBBwzBFKzADpzBHbzAFwJhBkRADCTAPBBCBuSAHAqhGJZBGVTAOtgEtbADGqARmuEQtMExOA3n4BJcgetwFwZgGJ7CGLyGCQRByAgTYSE6iBFijtgizggXmY4EImFINJKApCDpiBRRIsXIcqQCqUJqkV1II/ItchQ5jVxA+pDbyCAyivyKvEcxlIGyUQPUAnVAuagfGorGoHPRdDQPXYCWomvRGrQePYC2oqfRS+h1dAB9io5jgNExDmaM2WFcjIdFYIlYGibHFmPlWDVWjzVjHVg3dhUbwJ5h7wgkAouAE+wIXoQQwmyCkJBHWExYQ6gl7CO0EroIVwmDhDHCJyKTqE+0JXoS+cR4YjqxkFhGrCbuIR4hniVeJw4TX5NIJA7JkuROCiElkDJJC0lrSNtILaRTpD7SEGmcTCbrkG3J3uQIsoCsIJeRt5APkE+S+8nD5LcUOsWI4kwJoiRSpJQSSjVlP+UEpZ8yQpmgqlHNqZ7UCKqIOp9aSW2gdlAvU4epEzR1miXNmxZDy6Qto9XQmmlnafdoL+l0ugndgx5Fl9CX0mvoB+nn6YP0dwwNhg2Dx0hiKBlrGXsZpxi3GS+ZTKYF05eZyFQw1zIbmWeYD5hvVVgq9ip8FZHKEpU6lVaVfpXnqlRVc1U/1XmqC1SrVQ+rXlZ9pkZVs1DjqQnUFqvVqR1Vu6k2rs5Sd1KPUM9RX6O+X/2C+mMNsoaFRqCGSKNUY7fGGY0hFsYyZfFYQtZyVgPrLGuYTWJbsvnsTHYF+xt2L3tMU0NzqmasZpFmneZxzQEOxrHg8DnZnErOIc4NznstAy0/LbHWaq1mrX6tN9p62r7aYu1y7Rbt69rvdXCdQJ0snfU6bTr3dQm6NrpRuoW623XP6j7TY+t56Qn1yvUO6d3RR/Vt9KP1F+rv1u/RHzcwNAg2kBlsMThj8MyQY+hrmGm40fCE4agRy2i6kcRoo9FJoye4Ju6HZ+M1eBc+ZqxvHGKsNN5l3Gs8YWJpMtukxKTF5L4pzZRrmma60bTTdMzMyCzcrNisyeyOOdWca55hvtm82/yNhaVFnMVKizaLx5balnzLBZZNlvesmFY+VnlW9VbXrEnWXOss623WV2xQG1ebDJs6m8u2qK2brcR2m23fFOIUjynSKfVTbtox7PzsCuya7AbtOfZh9iX2bfbPHcwcEh3WO3Q7fHJ0dcx2bHC866ThNMOpxKnD6VdnG2ehc53zNRemS5DLEpd2lxdTbaeKp26fesuV5RruutK10/Wjm7ub3K3ZbdTdzD3Ffav7TS6bG8ldwz3vQfTw91jicczjnaebp8LzkOcvXnZeWV77vR5Ps5wmntYwbcjbxFvgvct7YDo+PWX6zukDPsY+Ap96n4e+pr4i3z2+I37Wfpl+B/ye+zv6y/2P+L/hefIW8U4FYAHBAeUBvYEagbMDawMfBJkEpQc1BY0FuwYvDD4VQgwJDVkfcpNvwBfyG/ljM9xnLJrRFcoInRVaG/owzCZMHtYRjobPCN8Qfm+m+UzpzLYIiOBHbIi4H2kZmRf5fRQpKjKqLupRtFN0cXT3LNas5Fn7Z72O8Y+pjLk722q2cnZnrGpsUmxj7Ju4gLiquIF4h/hF8ZcSdBMkCe2J5MTYxD2J43MC52yaM5zkmlSWdGOu5dyiuRfm6c7Lnnc8WTVZkHw4hZgSl7I/5YMgQlAvGE/lp25NHRPyhJuFT0W+oo2iUbG3uEo8kuadVpX2ON07fUP6aIZPRnXGMwlPUit5kRmSuSPzTVZE1t6sz9lx2S05lJyUnKNSDWmWtCvXMLcot09mKyuTDeR55m3KG5OHyvfkI/lz89sVbIVM0aO0Uq5QDhZML6greFsYW3i4SL1IWtQz32b+6vkjC4IWfL2QsFC4sLPYuHhZ8eAiv0W7FiOLUxd3LjFdUrpkeGnw0n3LaMuylv1Q4lhSVfJqedzyjlKD0qWlQyuCVzSVqZTJy26u9Fq5YxVhlWRV72qX1VtWfyoXlV+scKyorviwRrjm4ldOX9V89Xlt2treSrfK7etI66Trbqz3Wb+vSr1qQdXQhvANrRvxjeUbX21K3nShemr1js20zcrNAzVhNe1bzLas2/KhNqP2ep1/XctW/a2rt77ZJtrWv913e/MOgx0VO97vlOy8tSt4V2u9RX31btLugt2PGmIbur/mft24R3dPxZ6Pe6V7B/ZF7+tqdG9s3K+/v7IJbVI2jR5IOnDlm4Bv2pvtmne1cFoqDsJB5cEn36Z8e+NQ6KHOw9zDzd+Zf7f1COtIeSvSOr91rC2jbaA9ob3v6IyjnR1eHUe+t/9+7zHjY3XHNY9XnqCdKD3x+eSCk+OnZKeenU4/PdSZ3Hn3TPyZa11RXb1nQ8+ePxd07ky3X/fJ897nj13wvHD0Ivdi2yW3S609rj1HfnD94UivW2/rZffL7Vc8rnT0Tes70e/Tf/pqwNVz1/jXLl2feb3vxuwbt24m3Ry4Jbr1+Hb27Rd3Cu5M3F16j3iv/L7a/eoH+g/qf7T+sWXAbeD4YMBgz8NZD+8OCYee/pT/04fh0kfMR9UjRiONj50fHxsNGr3yZM6T4aeypxPPyn5W/3nrc6vn3/3i+0vPWPzY8Av5i8+/rnmp83Lvq6mvOscjxx+8znk98ab8rc7bfe+477rfx70fmSj8QP5Q89H6Y8en0E/3Pud8/vwv94Tz+4A5JREAAAAGYktHRAD/AP8A/6C9p5MAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAHdElNRQfcAgcQLxxUBNp/AAAQZ0lEQVR42u2be3QVVZbGv1N17829eRLyIKAEOiISEtPhJTJAYuyBDmhWjAEx4iAGBhxA4wABbVAMWUAeykMCM+HRTcBRWkNH2l5moS0LCCrQTkYeQWBQSCAIgYRXEpKbW/XNH5zS4noR7faPEeu31l0h4dSpvc+t/Z199jkFWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhY/H9D/MR9qfKnLj/00U71aqfJn9+HCkCR/Wk36ddsgyJ/1wF4fkDfqqm9/gPsUeTnVr6a2xlQfnxdI7zs0W7irzD17Ytb2WT7EeNv/r4ox1O3Quf2QP2pgt9utwfout4FQE8AVBSlnaRmfvAURQkg2RlAbwB9AThlW5L0GaiKojhJhgOIBqDa7XaPrusdPtr5kQwF0BVAAoBIABRCKDd5aFUhRDAAw57eAOwAhKIoupft3zoqhB1AqLwuHIBut9uFt02qqvqRDJR2dAEQJj/BAOjn56dqmma+xiaECAEQAWAggLsB6A6HQ2iaZggBhBAqgEAAnQB0kzaEmT4hAITT6VQ8Ho/HJAKKECJQtr8LwD1y/A1/vcdfEUIEyfZ9AcQbYvZ942Px88L2UwlJR0dH0EMPPbRj5syZPUeNGrXR7Xb/641xIwJ1XY9NSUlZm52dfW+XLl1w8uRJzJ8//+OGhoYJqqqe1TSt1Wsm9NN1PSIqKmr12rVrR5WUlHy1bdu2AQCumWc3IYRD1/UwVVXnFRQUTIuNjUVzczN2797dWFJSkq8oymZd15sAGAEnFEUJ1nX9nzIzM1dnZmZGh4SE4OTJk5g5c+Zf29vbp9pstrMej6fVOyhIhgAYU1hY+B+hoaGoqKg4XVlZea+XTULTNFdCQsLGiRMnPuR2u3UhBOV9eeDAAWXTpk095DUe6WsoyRE5OTlr0tLSAux2O/bs2cO5c+e+pijKUpIXSHaQVAGkvPLKK++6XK4OksJLCFlXV2cvKSlJBFAjhU+x2WwhHo9nUHp6+urMzMy7wsLCUF9fjxdffPHjxsbGiTab7WuPx9NiEutOuq4PyMjI+M+srKyYqKgoHD58GDNmzNjq8XhyVFU9b/q+LH7hBAEYu3PnTlZVVRFAGgCX6f/tAHoOHDjwa0p27txp/JO9e/f+QM7cipw9nfL3kQBKt2zZQpJ87rnn6mQmoHilw2EACs+cOUOSrK+vZ1NTE0nyo48+IoBpxswoBcMJ4Ndjx471kOTFixe5d+9ekqTH42H//v13A4jyzpAURfEH0H/OnDnthu1z5sw558MmFUCPWbNmnaMP3nrrLZoyDmP8Hl68eDFJ8siRI9/Yc+zYMQKYKdtAztrTrl27xptRXV1NAKMAOAyBBBA/Y8aMdpLs6Ojgxx9//E37+++//29yvFXppwvAwMcee8xjtDHsuXLlCqOjo//ia3wsfpkoALqFhoZuIckJEyackimm3dQmEMDUmpoakmRISMhhAHOHDx/eQJIbN24kgKEyMAHAFRMTs2XXrl1saWkhSZ0kp0+ffhrAr3wEW/S8efOukORLL72kA1gKYMPWrVtJkk899dRJAHeYrgsEsIQkjx8/TgDvAPjd448/3kaSb7zxBmUa7vC6z53BwcFbSHL9+vU6Sc6aNes8gF5ewWAH0PfVV18lSQL4DMBGIcQ6AKtcLleBFC2jXtFt8ODBe0iyoqKCAJYByC8qKmJDQwOzsrK+MAmqo1OnTveHhoa+GRkZ+XZkZOSWiIiIvzgcjk9mzpypkWRmZuZpmbYbGV4AgPnNzc1sa2sjgN0A5iQmJtaSZHl5OQHcb/K3s81mW0uSTU1NBFAFYFbfvn1Pk+Tbb79NAA8IIVzW42/hByA+Pz/fLR/2ZXIda05NI/z9/TeR5J49ewhgqlxTrtI0jY2NjQQw3zTLuWJiYjaUlJToS5Ys6fjkk080kwDEeAmADcA9GzZsIElGRUW9CyAWwLApU6Y0kOSKFSsog9QICGdERMTGsrIyZmVlEcC9AB4IDw/fTpLbtm0jgN94CUAnAJmVlZVcs2aNZ/LkyRdJcvbs2b4EwAkgZfPmzTxw4AABFAN4BkC6vFeUSewcAO5duXIlSTIhIaEawGMAxgKYAmAGgCS73e5vrKVk/yGythANYEhCQsIhkly+fDkBpKqqGmL6DgIALDKN/3yZpVWQZGVlJQE8aPI3KiMjo5okV61aRQAjAPQBMPfIkSN0u90EUCBtsPiFEwpgbn19PdetW2fM5N4zQ9ekpKQqkty0aRMBpMjiWM6JEydIkoqirJUFJ6iq6pAPVy8A6cZMehMBUACEuVyuFwG8HBwcPEIWx367ZMkSjSQXLVrUJouTRorrkAHdA8BdQogsAOsKCwtJkmPGjDkvMw2bDDo/ADEjRoz4XylyFbm5uY0mAbjLyyZ/AOOrq6tZVlbWsWDBgo69e/eyoqKCgwcPPg4gSQaoIRbp27dvN7KF+tLSUr28vJwFBQXtMpvpYRIM7+wrAkDeqVOnePbsWQIoNKfzpiXPg8uXLydJJicnNwF4f+nSpW6STEtLq5fjYwhk1wkTJtSQ5Ouvv04AqTKj+N2xY8dIkgEBAW/Ie1v8wncRegwZMmQvSfbr12+3Ua33WqPfOWbMmP0kWVpaSgCDZAqcfejQIWNZsEGKgvnh9gfQb9myZd8nAEJVVZtMkUNk8CcNHTq0liR1XWdYWNhmH1mJIme80OnTp18x1rp5eXkEsNJms92Fb7e/IgEsvHz5Mp999tkmAI/l5uZeMC0B7vEqqAYAyL106RJJsra2lpWVld+sucePH38ZQG+5NncBeOrgwYMkqbe3t/Po0aOsra011wAWyl0H7x0JJ4DE+fPnu0kyPT29DsDdUrBuyNKEEAkAdpw/f/6GeoEM8GUmfwEgPCIiopwkGxsbabPZPgOw6L777vvm4p49e26VGYjFLxUhhD+ApLKyMp44ccIoVnXybgbgzkcfffRzklyzZg0BDJYCMMmoCwQFBXkLgLGWvvcWAgBToSsKwNPTp09vMR7UuLi4rwH0lgU8c/Db5ezbeeTIkRWzZ8++aMxu+fn5BPCADBwHgP4LFy701NXVEUAJgAnPP/98kyxMNgHo53A4zH77BQQETMvPz7+Um5vbBuAlAFMSExPPmdbVL0qh8Acw8fDhw5SCchVAEYAVb775JknyhRdeaJYztHfxMwLAaqNwCGC2FArv8x0hAHKNLGPKlCme5OTk/Zs3bzb7O0wKiiG8KXl5ed8IxenTp0mSR48e1UmyW7duWywBuD2xyQcgFECgoih+8H1gyJgZV5Lkyy+/3CbTRIePtl2HDBmyw1QBHyGDdXZdXR1JUghRKkXBjOMHCoBdpr0L3nvvPZLkF198wejo6O0A4lVVDTb74HQ6AwD8Wq7Jh8rgGgDgQ13XjVR8qaxJuADMbmlpYXl5uV5UVNRWUFDgfv/993Vj/ZydnU1c37eHXML4S3viAcQqitJD2l104cIFY8lTKsXSBWBMVVWVcd9yed2A1NTUQ6Zl00CvLMMOoHdubm6zFIlWOf5+PsY/Kj09vdrU11QAwwGsv3jxIk21m2DZr10I0RXAuAcffPBgaWkpV69eTYfDcdiwUxY0w6xw+flX8L1xApjevXv3lREREaW6rofB93aPDUDQpEmTMgHgtddeqwBwEd/utZvpqK6uPgEAcXFxkA94NwB9unfvjrNnz4LklwDcf08iIqv66Zs2bXrl4YcfxooVKxAbG7uqrq5uAYA2TdOEqqpGYIi2tjbl6aeffu/YsWPv5uTk7JaC1wHg4Pnz542MwoVvTx+21dbWYvjw4WLixIl+2dnZ9lGjRgmSTE1NRUpKCkwFTGiaxtTU1OXTpk3707Bhw/6g67pDipnT4biuj7qut+Lbk3Vf1tTUXI9qu91Pjq1QFEUBgJaWFgBo8yGOQ8eNGxcAAOvXr/8QwBUfYygAKL169eoCABcuXACAWtn2hOGv0+kMNO1KiPDw8F4A4rZv3/7R1KlTR0+bNu1ht9u9r1+/fqitrQXJgwDarRC6/QjPzs4+QJIffPCB9/aQmSAA43ft2mW0e1QGoi8CAPyLsZccExNTC2BlRkbGRdOyYJCP2csBIN6UAZzCd7cBbQCijYp/dXU1ExMTz6SmptaMHj36f9LS0vYlJCRsl6mxIWSdu3fv/g5J7t+/nwC2AShMTk6+SJKff/45AWRLYbD7+fndAeDf5BJnLoCCyZMnt5JkdnZ2C4B/F0KEm1Pu+Pj4rST55ZdfEsBWAK+mpaVdMo3raDn7KwDuSEpK+m+S3LBhAwG8DuCtHTt2UBbpjgC408vvcFVV15HkuXPnjMp+p5uMf0RcXNyHJNnQ0EBVVfcCWBQXF3fG+Jv0yxABPwB5LS0tRmFxN4BlTzzxxGWSXLx4sS5F3GGFy+1Hp5SUlJq6ujoWFxdTpsZ2H+0iIyMj/0iSWVlZX5mr5jfJFroPGzasxlhTnjp1iiTZ3NxMl8tlrCd9pfa9SkpKSJI5OTmnZOageLUZZqxvfVFWVkZcPwdgNwnSCKPqb17jkmR8fPzfZMDZ5CRsFBmNI7h95s2b1yhT7/MAYmStwCx4vy0uLqa3v5qmEcCfvSr1QQAeXb16NY3Cm3HQ55133iGAp+SxZTNhKSkpfzUddkrFjYevzAQCeGjp0qXfsYckY2NjTwD4leGDLCL2HTdunNtoY+zWSHFcIHdsFCtcfuZ1vO9Eqs3m7/F47sb1k2qX/f3997W2tl7BjWfpBYDOzzzzzIVJkyZh0KBBCwEsB3AJvl9AETabLcDj8dwRFRW1ctasWb8JCgpSzp07d62wsPC/Wltb8xRFadR1/ZqPXYbgAQMGbI2Pjw/+6quv9ldVVT0r01ezuPRJSUn5Y9euXXVd11WzDaqq6kePHm3+7LPPRgO4KlNuxWazhXo8nuTk5OSXMjIyEl0uFxoaGtqKior+dPXq1VdUVT0jj7r68ieoT58+vx8yZMjdx48fP1JVVTVF9m20VW02WyfZf97YsWPjXS4X6urqWvPy8jYCWCyEuEDS8FdVFKWzruv//OSTTy5OTk7uqWkaPv3007qysrJ8RVH+LI8ym8/rB3Tu3HnRI488knLo0KG2ffv2ZQI4C98vP6mqqoZqmpaclpa2cOTIkX39/f3R0NDQUVxc/G5TU9PLqqrWa5rWLH1QVFUN0TStX1JSUvH48eP7BwYG4uDBg1cKCgpeBbBe2u+2Qug2EwD5N5sMPuNtMe8XP4TT6Qxoa2sbIGeXvUKIK7d4IISiKC5d1wPljOfA9bPwzYqiXNV13dd6Uqiq6qdpml2mpe02m63d4/G4vcTF5fF47LJf71nJA6BZVVW3pmntuPHlmAD5wk6Q9NnbHp9vHaqq6tA0zU/64PZhk1FfCZB9G/23ALiqKEqzD39tpvbGUqoFwFUhRLP3yzpCCDtJpxyXDulfG27+pqRR3DXsUWVd4Yq0x/taVQjhIhksC8L+ABpM9ljBf5sKwI8pIBr75L5E4vvu+UNeG/a+hv+AL7yFH8qPtOfHjtOP6V/Bja8D6z/B2Nys/1u9Xv33tLf4GfF/LC4GCJwByWIAAAAASUVORK5CYII\x3d"; C.waa = "data:image/jpeg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAAAlAAD/4QMpaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA1LjAtYzA2MCA2MS4xMzQ3NzcsIDIwMTAvMDIvMTItMTc6MzI6MDAgICAgICAgICI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjM4MDBEMDY2QTU1MjExRTFBQTAzQjEzMUNFNzMxRkQwIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjM4MDBEMDY1QTU1MjExRTFBQTAzQjEzMUNFNzMxRkQwIiB4bXA6Q3JlYXRvclRvb2w9IkFkb2JlIFBob3Rvc2hvcCBDUzUgV2luZG93cyI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkU2RTk0OEM4OERCNDExRTE5NEUyRkE3M0M3QkE1NTlEIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkU2RTk0OEM5OERCNDExRTE5NEUyRkE3M0M3QkE1NTlEIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+/+4ADkFkb2JlAGTAAAAAAf/bAIQADQkJCQoJDQoKDRMMCwwTFhENDREWGhUVFhUVGhkUFhUVFhQZGR0fIB8dGScnKionJzk4ODg5QEBAQEBAQEBAQAEODAwOEA4RDw8RFA4RDhQVERISERUfFRUXFRUfKB0ZGRkZHSgjJiAgICYjLCwoKCwsNzc1NzdAQEBAQEBAQEBA/8AAEQgAyACgAwEiAAIRAQMRAf/EALAAAAEFAQEAAAAAAAAAAAAAAAQAAgMFBgcBAQEAAwEBAAAAAAAAAAAAAAAAAQMEAgUQAAIBAgIEBwoLBgQGAwAAAAECAwAEEQUhMRIGQVFxsTITFGGBwdEiQlKSMzWRoeFicqKyI1NzFYJjJDQWB9KjVCbxwkNkJWXik3QRAAIBAgMFBQcDBQEAAAAAAAABAhEDIRIEMUFRcTJhwVIUBZGhsSJyEzOB0ULhYpIjUxX/2gAMAwEAAhEDEQA/AMJSpUqAVKlXuFAeUq9wpUB5XuFe4V6ooDzZHDox0CnGMinzwl7Z8NajaHeoO3vmTBZBtp9YUIqTEV5ROxHKnWRnaU8VRMhFBUjpV7hSoSeUq9pUB5Sr2lhQHlKvcK8oBV7hSFSRrtaKAZs07YNPM1pG2xJIAw1jSeandry/8X4m8VCKkWwaWwam7Xl/4v1W8VLtmX/i/VbxUoKkWwakSM407tmX/i/VbxUmzGwjQsjdY41IARie/U0IbZO0kNtCXnOCkEBeFu4KI3Bs7DNb27ya+jDx3kJeEnpJJEcQVbWDsk17u5urd591ucZkWhym2Vnd9RkCDEpFxDRpbw0bunu5mlp2De2FMLYXOD2wB2xbOeraUcYGJ72mlSUiqzzdzMd3Z3mixltA2yzcK/NlHM1DQyRXce1HocdNOEfJXZ88y9ZojOqhiBszIRiHQ8Y4cK5TvHuzLljHNMqxNoDjLFraHHnjPxcNCGVbxEUzYNTx5jZSxhpW6qTzlwJ+DCvO2Zf+L9VvFSgqyHYNLYNTdssPxfibxUu15f8Ai/VPiqCakOwa82DU/a8v/F+JvFTDdWPBL8R8VKCvYRYV5UzoMAy6QdIIqI0B4KJtxiRQwou16QoGUkntH5Tz0RbZbmF2hktraSVBo2lUkY8tDye0flPPXTslVUyiyVRsjqUOA4yMT8dW2ram2m6UVTNq9S7EIyUVJydMTn/6DnP+im9Wl+g5z/opvVrpteEhQWY4AaSTwAVf5WPiZh/9S5/zj7zltzlmYWkfWXNvJDGTgGcYDHirR7i7mSbwXParsFMrgb7w6jKw/wCmnc9I14kF3vpvCljbMyWMOJL4aEiB8qU/ObUK7HYWVrl1pFZWiCOCBQqKOLjPGTrNZZqKbUXVHq2nNwTuJRk1VpbgXN8s7Rk5ym0UQQzhIG2NAjhxHWbI+gCBVjBBFbwxwQqEiiUJGg1BVGAFe7dV28WYLYZFmF2Th1UD7JGjymGyn1iK5OyzIBGB1HgrLZhamzumQAGJwSqnSCh1q3GOCodxt4cxurdcpzuN4cyhiWaF5Bg09udUmnWw1H/jV9nFuJ7Quo+8h8peThFA+047vduyMtk7fYqTl07YFdfUufMPzT5p71UdtlmYXaGS2t3mQHAsgxANdadYJopLe4QS2867EsZ4QfCNYrCFbjdDPmgkYyWFxgVf04ifJf6ScNdRUW1XBb6FU5TjF5EpSSrGu/s5lN+g5z/opvVpfoOc/wCim9WtdHnatvObJXDW7xLGhB8nrPaY9/HCr+tEdPCVaSeDoYLnqF63lzW4/PFSW3ecxbI84VSzWUwUaSdg0DXXK5nvAipnd6qgKvWnQO7pri9ZUEmm3Vl2j1kr8pRlFRyquBNZjGxQ/S56Y1S2fu9OVueon11Szahoou06QoQUXadIVCD2FJJ7R+U89dMydv8Axdn+TH9muZye0flPPXQstlK5Tbka1gUjlC1q0vVLkeb6r+O3Tx9xcY1nt8c0NrZCyiOE1108NYjGv1joo7Js1jzKyScYLIvkzL6LDwHXVJksH9Sb49dKNq0tj1jA6uriOCL+02FWX7iVtZX1/AzaHTyeoauKn2MX9W79zebiZCuR5MjSrhfXuEtwTrUeZH+yNfdrRNcxI6IzhXlJEak6WIGJ2Rw4ChWnChndtlVBLMdQA0k1gbXNMzzDfDLs6mjaPKppJbWwJ1bOwwxw43OnHh71YT3DpfWUJmFlb5jHHDdeXBHIsrRea5TSqvxqG04cNN62vetoCS4tre5mgnkGE9q+3DKOkuI2WX6LDQRRHWDh1UCtwj7QRg2wdl8Djgw1qe7XvW0BQ3kfZ7mSLgU+T9E6RVbnuVrnWVSWqj+Lt8ZbRuHEdKPkYVcZ2MJY5fSGyeVar45+rkWQHAqccalPE5km1htWK5nK4Wnt5FuUBUwOMG4nGkA/BXUrW4S6torlOjMgcd/xVn7rLo7zKs0uEjCNeSvdwoBhgsZxX1l2j36k3Lu+uyprdj5Vs5A+i/lD48a0aaVJOPi7jB6lbzWozpjB48pf1NDXNN4vfl7+Z4BXS65pvF78vfzPAK71XTHmZ/S/yT+jvJ7L3fHytz1E+upbL+Qj5W56jfXWRnsIYKLtekKEFGWvSFQgyjk9o/Keet3YthlMP/5x9msJJ7R+U89biyb/AMXEv7gD6tadL1T+kwepRrC39ZkLDMbiwMvUHRPG0bjlGg8ore/23sxBldxfMPLupNhT8yL/AORNZbdzJ484scytxgLqJY5LZj6Q2sV5G1Vud1mjjyG0ij0NEGSZToKyhjtqw4waztuiXA3qKTbSxltfGhbZlE95ZtZqxVbgiOZhrER9ph3Svk9+pJILZ4Y4DGBFCUMKjRsGPobPFhUfW0NJmljE2xJcIrcI2vFUEln1lRXd6lrazXT9GCNpD+yNqoI7mOVduNw6nzlOIoPOUa6yye1XXcbMR5GdQ3xY0BSbj31/FcTQZirJ+q431q7anbHCTZ72Bw7lbPrKBMcBWNNgbMBBh+bsjBdni0VJ1lARZs6yWiupxCuMDy6KpS2IwOo6DTr3Mre3e5tZZVUM4ZBjqOOJoWO4jkXajcOOMHGgDISvWIrdAkKR80+TzVl908bPPL3LzxOuHdifxVfiTAg92qI/w+/8gGgSyN/mR7XPVlp0lF/3L3mbVKtu5Hjbk/8AHE2Fc03i9+Xv5ngFdKNc13i9+Xv5ngFaNV0x5nn+l/kn9HeEWXu+PlbnqJ9dS2Xu9OVueon11kZ7CGCjLXpCgxRlr0hUIPYUcntH5Tz1s8vb+Bt1/dqPirGSe0flPPWusG/g4Py15q06XqlyMWvVYQ+ruI9xJOqzO9hOto/sP8tbGOFIrmWeM7IuMDMnAXXQJOUjQeOsJk0nY96ip0CYunrjaHx1t+srPJUbXBm2LrFPikwTOb+T+VhbZxGMrDXp83x1QSy2tucJpUjPETp+Cn5/ftaRvKvtp3Kx48HG3erHMzOxZiWZtLMdJNQSbbL71Vk6yynViOkqnEEfOWtPbXi3EQkGg6mXiNckjeSJxJGxR10qw0GtxuxmvbImD4CZMFlA4fRfv0BqesqqzTMZNMEDbIHtHH2QeCiZJSqMQdOGiue53mz3czQwsRbIcNHnkec3c4qAMuriz68gTIToxwOOnlp0MjxMJYW741Gs3RVldtbygE/dMcHX/moDaxTiWNZB53B3arb8/wC+4SOF4sf/AKxU9kcBsfOGHfoUHtG/RbzY5Die5HHhXdvavqiZ9Q8Jdlq4/gbKua7xe/L38zwCuhpf2Uk/Zo50kmwJKIdogDjw1VzzeL35e/meAVp1LTgqY4nn+mRauzqmqwrjzCLL3fHytz1E+upLL+Qj5W56jfXWRnroYKLtekKEFF2vSFQg9hSSe0flPPWosm/hIfoLzVl5PaPynnrRWb/w0X0F5q06XqlyM2sVYx5gmbFre/t71NY2T+0h8VbSO5SWNJUOKSAMp7jDGspmMPaLRlXS6eWve1/FRO7WYdbZm1Y/eW/R7qHxHRXGojlm3ulid6aVbaW+OALvgCLq2Hm9WxHKWqjhj6xsK1e8dm15l4niG1LZkswGsxtrPeOmsvayBJA1VItlWjptLuTdPMo7LtjRDq9naK4+WF9IrUW7BaHOljGqVHB7w2hzVoZt87d8vaNYSLl02CcRsDEbJbj71Uu7UBkvJ7/D7q2QoDxySaAO8MTXdxRVMpRp5XZOWdF/ms7R5XdyKfKWJsO/5PhrG5XlNxmEywW6bTnTxAAcJNbGSMXkM1pjgbiNo1PziPJ+Os7u7m/6ReM00ZOgxSpqYYHT3wRXMKN4ll9zUG4bQfNshu8sZVuEA2hirA4qe/VOwwrVbzbww5mI44UKRRYkbWG0S3JWctbd7u5WFfOOLHiUdJqmaipfLsIsObhWe001lMkMVvJNjhghIALMcBxCs7fxXQmkupx1bXDswGPlaTidVaEyKNXkoo4eBV+Sq7L7Vs9zcBgeyQ4GQ/MB1crmoim2orezqcowTuSeEY48jQ7oZX2PLzdyLhNd6RjrEY6I7+uspvH78vfzPAK6UAAAFGAGgAcArmu8Xvy9/M8ArTfio24RW5nnaG67uou3H/KPuqT2X8hHytz1G+upLL3enK3PUb66ys9RDBRdr0hQgou06QqEGUkntH5Tz1e238vF9BeaqKT2j8p56vbb+Xi+gvNWjTdUuRn1XTHmTh8KrJTJlt8t1CPIY44cGnpJVjTJYkmjaN9Ib4u7V923njTethRauZJV3PaW1rfLIiXEDYg6R4VYc9CXW7thfOZbKdbGZtLW8uPVY/u3GrkNUkM9zlcxUjbhfWOA90cRq4gv4LhdqN+VToNYWmnRm9NNVWNTyHc6VWBv8wt4YeHqm6xyPmroq1Z7WGFLSxTq7WLSuPSdjrkfumq5yHXDUeA92oO2SKpVumNAaoJLMXH3myp0rpJ4uKhc3tbDM5BMri1zAj79j7KTiY8TcdBpcsith0286o+sPCagEX9Pzg4zXUCp6QYse8oouCG3tk6m1BYv05W6T+IdyolxbHDAAa2OgDlNCz3ryN2WxBd5PJMg1t81eId2ukqnLlTBbfcuY+9uJLiRcvtPvHdsHK+cfRHcHDWsyawjyy0WBcDI3lTP6TeIcFV+S5OmXx9bJg1048o8Cj0V8Jq2DVu09nL80up7OxHi+oal3P8AXB/IsZS8T/YOV65zvCcc7vfzPAK3ivWCz445zeH954BXOr6I8yfSfyz+jvCLP3fHytz1G+upLP3fHytz1E+usbPaQ0UXadIUIKLtekKhB7Ckk9o/Keer22/l4/oLzVRSe0flPPV7b/y8X0F5q0abqlyM+q6Y8yQsBTDMor1o8aiaE1pbluMqS3sbLLHIhSRQyngqukhaJ9uBjo+H5aOa3ao2t34qouRlLajTalGP8v0IY8ylXQ+PKPFU/bYXOLPge6CKia0LaxTOxHu1Q7cuBd9yPEJ7TbjXKO8CajbMIF6CNIeNvJHjqIWJ7tSpYkalqVblwIdyG+RGXur0hXYJFxal+Dhq5y3slkv3Y2pD0pTr+QUClpJRUdo9XW4OLrTHtM16cZLLWkeC7y4jvlNEpcRtw1Ux27Ci448NZrTFy3nn3IQWxlgGrDZ3pza7/M8ArZo+ArF5171uvp+CqdV0R5l/psUrs2vB3hdl7vTlbnqJ9dS2Xu+PlbnqJ9dY2eshooq16QoQUXa9IVCD2FLJ7RuU89WNtmUSQqkgYMgw0accKrpPaPynnrZWG4Vi+VWmY5tnMWXG+XrIYnA0rhj0mdcTgdNdwnKDqjmduM1SRR/qlr8/4KX6pa8T/BVzDuLZXudRZblmbxXcPUNPc3KqCIwrbOzgrHEnHjoyD+3eSXkht7DeKG4umDGOJVUklfouThXfmbnZ7Cvy1vt9pmv1W1+d8FL9VteJvgq5yrcOGfLmzHN80iyyETPbptAEFo2ZG8pmUa1OFNn3Ky6W/sbDKM5hv5bx2WTZA+7RF2y52WOPJTzE+z2Dy1vt9pT/AKpacTerS/U7Tib1a04/t7kDXPY03jhN0W6sQ7K7W3q2dnrMccaDy/8At80kuZfqWYxWNtlcvUPPhiGYhWDeUy7IwYU8xPs9g8tb7faUn6pacTerTxm9oOBvVq3v9z927aynuId44LiWKNnjhAXF2UYhRg516qpsryjLr21665zFLSTaK9U2GOA87SwqY37knRU+BzOzags0s1Oyr+BKM6sxwP6tSDPLMen6vy0rvdm3Sxlu7K/S7WDDrFUDUTxgnTU826eXW7KlxmqQuwDBXUKcD+1Xee/wXuKX5XDGWLapSVcOyhEM/seJ/V+WnjeGx4pPV+Wkm6kKZlFay3Jlt7iFpYZY8ASVK6DjtDDA0f8A0Tl340/1f8Ndx8xJVWXB0KbktFFpNzdVXAC/qOwA0CQni2flrO3Vwbm5lnI2TKxbDirX/wBE5d+NcfV/wVR7xZPa5U9utvI8nWhmbbw0YEAYYAVxfhfy5rlKR4Fulu6X7mW1mzT8S4Yis/5CPlbnqJ9dSWfu9OVueon11mZvQ2i7XpChKKtekKhBlNJ7R+U89bDfGTb3a3ZX0Lcj6kdY+T2j8p560288m1kWQr6MJ+ylSAr+2cnV5renjs3H1loX+3j9XvbbtxLN9lqW4UnV5jdnjtXHxihtyZNjeSBu5J9k1BJe7xy7W5CJ/wCzuD/mTVTf2+fq97LJuLrPsNRueS7W6aJ/38x+vLVXuY+xvHaNxbf2GoCezf8A36j/APsSf8w1sLnqczTefJluYoLm5uo5F61sBshItP1cNFYe1f8A3ir/APfE/wCZUe9bB94r5jwuPsrQFhmG4l/Z2M17HdW90tuu3IkTHaCjWdIw0VVZdks9/C06yJFEp2dp+E1bbqybGTZ8vpQD7L1XRv8A7blT96Oda7tpNuuNE37Cq9KSisjyuUoxrStKllHbLlWTXsMs8chuSuwEPDqwoLe5y+YRE/gLzmqRekvKKtd4327yM/ulHxmrHJStySWVRyrjxKI2XC/CTlnlPPKTpTdFbP0L1bgrf5Lp0G3dPhQHwV0S1lzBsns3sESR8Crh9WAJGjSOKuU3E+zdZQ3oJh8IArdZXFDmOTpHa3i2+YrI2KtKy4ricBsBuHHgFXSo440+Wa2qqxjvM9uMoy+WvzWpLCWWWE28HxL6e43ojgkeSCBY1Ri5BGIUDT51cl3vm276BBqSEH4WbxV0tlkyXJcxTMb+OW6uY9mGHrCzDQwwAbTp2uKuTZ9N1uYsfRRR8WPhrm419mSSjRyiqxVK7y23B/ftuTm2oSdJyzNVw3BFn7vTlbnqF9dS2fu9OVueon11lZuQ2iLdsGFD05H2dNQGV0ntG5Tz1dWm9N1b2kVq8EVwsI2UaQaQOKhmitZGLOmk68DhSFvY+gfWNSAg7z3Qvo7yKCKIohiaNR5LKxx8qpxvjcqS0VpbxvwOAcRQPZ7D0G9Y0uz2HoH1jUCpLY7zXlpbm3eKO5QuzjrBqZji3x17PvNcyT288VvDBJbMWUovS2hslW7mFQ9nsPQPrGl2ew9A+saCod/WNxtbYsrfb17WBxx5ddD2281xC88klvDcSXEnWuzrqOGGC9zRUPZ7D0G9Y0uzWHoH1jQVCLreq6ntZbaO3it1mGy7RjTs1X2mYy20ZiCq8ZOODcdEdmsPQb1jS7PYegfWNdJuLqnQiSUlRqpFLmryxtH1Ma7Qw2gNNPOdSt0oI27p007s9h6B9Y0uz2HoH1jXX3Z+I4+1b8IJdX89xLHKQFMXQUahpxoiPN5P+onfU+A0/s9h6DesaXZ7D0D6xpG7OLbUtu0StW5JJx2bBsmbtiSiEk+cxoCWWSaVpZOk2vDVo0VYdnsPQb1jSNvZcCH1jSd2c+p1XAmFqEOmOPEfaH+BQd1ueo211IzrgFUYKNAAqI1WztCpUqVCRUqVKgFSpUqAVKlSoBUqVKgFSpUqAVKlSoBUqVKgFSpUqAVKlSoD/9k\x3d"; var C = C || {}, ha = { id: 0 | 998 * Math.random(), iDa: 0 | 998 * Math.random(), Sca: function(c, d, f) { c = c.toString(); var g = c.substring(c.indexOf("(") + 1, c.indexOf(")")), g = g.trim(); for (c = c.substring(c.indexOf("{") + 1, c.lastIndexOf("}")); - 1 != c.indexOf("this._super");) { var h = c.indexOf("this._super"), k = c.indexOf("(", h), n = c.substring(k + 1, c.indexOf(")", k)), n = n.trim(); c = c.substring(0, h) + "ClassManager[" + f + "]." + d + ".call(this" + (n ? ",": "") + c.substring(k + 1) } return Function(g, c) }, eea: function() { return this.id++ }, jBa: function() { return this.iDa++ } }; ha.Sca.nLa = ha; (function() { var c = /\b_super\b/, d = C.qf.gj[C.qf.Wm.Ixa]; d && console.log("release Mode"); C.O = u(); C.O.extend = function(f) { function g() { this.ub = ha.jBa(); this.ctor && this.ctor.apply(this, arguments) } var h = this.prototype, k = Object.create(h), n = ha.eea(); ha[n] = h; var p = { writable: q, enumerable: t, configurable: q }; k.ub = s; g.id = n; p.value = n; Object.defineProperty(k, "__pid", p); g.prototype = k; p.value = g; Object.defineProperty(g.prototype, "constructor", p); this.Jo && (g.Jo = C.s(this.Jo)); this.Ko && (g.Ko = C.s(this.Ko)); for (var r = 0, v = arguments.length; r < v; ++r) { var y = arguments[r], z; for (z in y) { var D = "function" === typeof y[z], E = "function" === typeof h[z], F = c.test(y[z]); d && D && E && F ? (p.value = ha.Sca(y[z], z, n), Object.defineProperty(k, z, p)) : D && E && F ? (p.value = function(c, d) { return function() { var f = this._super; this._super = h[c]; var g = d.apply(this, arguments); this._super = f; return g } } (z, y[z]), Object.defineProperty(k, z, p)) : D ? (p.value = y[z], Object.defineProperty(k, z, p)) : k[z] = y[z]; if (D) { var G, K; if (this.Jo && this.Jo[z]) { var D = this.Jo[z], O; for (O in this.Ko) if (this.Ko[O] == D) { K = O; break } C.e(k, D, y[z], y[K] ? y[K] : k[K], z, K) } if (this.Ko && this.Ko[z]) { D = this.Ko[z]; for (O in this.Jo) if (this.Jo[O] == D) { G = O; break } C.e(k, D, y[G] ? y[G] : k[G], y[z], G, z) } } } } g.extend = C.O.extend; g.NXa = function(c) { for (var d in c) k[d] = c[d] }; return g }; Function.prototype.bind = Function.prototype.bind || function(c) { var d = this; return function() { var h = Array.prototype.slice.call(arguments); return d.apply(c || s, h) } } })(); C.e = function(c, d, f, g, h, k) { if (c.__defineGetter__) f && c.__defineGetter__(d, f), g && c.__defineSetter__(d, g); else if (Object.defineProperty) { var n = { enumerable: t, configurable: q }; f && (n.get = f); g && (n.set = g); Object.defineProperty(c, d, n) } else e(Error("browser does not support getters")); if (!h && !k) for (var n = f != s, p = g != m, r = Object.getOwnPropertyNames(c), v = 0; v < r.length; v++) { var y = r[v]; if (! ((c.__lookupGetter__ ? c.__lookupGetter__(y) : Object.getOwnPropertyDescriptor(c, y)) || "function" !== typeof c[y])) { var z = c[y]; if (n && z === f && (h = y, !p || k)) break; if (p && z === g && (k = y, !n || h)) break } } c = c.constructor; h && (c.Jo || (c.Jo = {}), c.Jo[h] = d); k && (c.Ko || (c.Ko = {}), c.Ko[k] = d) }; C.s = function(c) { var d = c.constructor ? new c.constructor: {}, f; for (f in c) { var g = c[f]; d[f] = "object" == typeof g && g && !(g instanceof C.A) && !(g instanceof HTMLElement) ? C.s(g) : g } return d }; C = C || {}; C.U = C.U || {}; C.tQa = u(); C.Uy = { Gca: 8, aJa: 9, c0: 13, shift: 16, pRa: 17, alt: 18, pause: 19, HQa: 20, escape: 27, W0a: 33, V0a: 34, end: 35, home: 36, left: 37, E6a: 38, right: 39, LRa: 40, RXa: 45, yLa: 46, "0": 48, 1 : 49, 2 : 50, 3 : 51, 4 : 52, 5 : 53, 6 : 54, 7 : 55, 8 : 56, 9 : 57, a: 65, b: 66, H: 67, P: 68, xm: 69, Un: 70, g: 71, Rf: 72, hI: 73, pQ: 74, qQ: 75, AQ: 76, FQ: 77, ds: 78, LQ: 79, d: 80, ZQ: 81, r: 82, tl: 83, K3: 84, xa: 85, ea: 86, ba: 87, x: 88, y: 89, f: 90, l0a: 96, m0a: 97, n0a: 98, o0a: 99, p0a: 100, q0a: 101, r0a: 102, s0a: 103, t0a: 104, u0a: 105, "*": 106, "+": 107, "-": 109, numdel: 110, "/": 111, gSa: 112, kSa: 113, lSa: 114, mSa: 115, nSa: 116, oSa: 117, pSa: 118, qSa: 119, rSa: 120, hSa: 121, iSa: 122, jSa: 123, y0a: 144, d3a: 145, g3a: 186, ",": 186, bSa: 187, "\x3d": 187, ";": 188, bRa: 188, qRa: 189, ".": 190, c1a: 190, ASa: 191, EXa: 192, "[": 219, G0a: 219, "]": 221, XQa: 221, vQa: 220, quote: 222, D3: 32 }; C.OLa = 0; C.dT = 1; C.P5 = 2; C.PLa = 3; C.QLa = 4; C.nma = 5; C.JAa = function(c) { return 8 < c.length && 137 == c[0] && 80 == c[1] && 78 == c[2] && 71 == c[3] && 13 == c[4] && 10 == c[5] && 26 == c[6] && 10 == c[7] ? C.dT: 2 < c.length && (73 == c[0] && 73 == c[1] || 77 == c[0] && 77 == c[1] || 255 == c[0] && 216 == c[1]) ? C.P5: C.nma }; C.OXa = function(c, d) { function f() {} f.prototype = d.prototype; c.bS = d.prototype; c.prototype = new f; c.prototype.constructor = c }; C.wQa = function(c, d, f) { var g = arguments.callee.caller; if (g.bS) return ret = g.bS.constructor.apply(c, Array.prototype.slice.call(arguments, 1)); for (var h = Array.prototype.slice.call(arguments, 2), k = t, n = c.constructor; n; n = n.bS && n.bS.constructor) if (n.prototype[d] === g) k = q; else if (k) return n.prototype[d].apply(c, h); if (c[d] === g) return c.constructor.prototype[d].apply(c, h); e(Error("cc.base called from a method of one name to a method of a different name")) }; C.TMa = function(c, d) { this.x = c || 0; this.y = d || 0 }; C.d = function(c, d) { return c == m ? { x: 0, y: 0 }: d == m ? { x: c.x, y: c.y }: { x: c, y: d } }; C.b2 = function(c, d) { return c && d && c.x === d.x && c.y === d.y }; C.eNa = function(c, d) { this.width = c || 0; this.height = d || 0 }; C.size = function(c, d) { return c === m ? { width: 0, height: 0 }: d === m ? { width: c.width, height: c.height }: { width: c, height: d } }; C.R5a = function(c, d) { return c && d && c.width == d.width && c.height == d.height }; C.az = function(c, d, f, g) { this.x = c || 0; this.y = d || 0; this.width = f || 0; this.height = g || 0 }; C.rect = function(c, d, f, g) { return c === m ? { x: 0, y: 0, width: 0, height: 0 }: d === m ? { x: c.x, y: c.y, width: c.width, height: c.height }: { x: c, y: d, width: f, height: g } }; C.Ega = function(c, d) { return c && d && c.x === d.x && c.y === d.y && c.width === d.width && c.height === d.height }; C.wG = function(c) { return c && 0 === c.x && 0 === c.y && 0 === c.width && 0 === c.height }; C.E1a = function(c, d) { return ! c || !d ? t: !(c.x >= d.x || c.y >= d.y || c.x + c.width <= d.x + d.width || c.y + c.height <= d.y + d.height) }; C.Xp = function(c) { return c.x + c.width }; C.F1a = function(c) { return c.x + c.width / 2 }; C.io = function(c) { return c.x }; C.Yp = function(c) { return c.y + c.height }; C.G1a = function(c) { return c.y + c.height / 2 }; C.jo = function(c) { return c.y }; C.Ju = function(c, d) { return d.x >= C.io(c) && d.x <= C.Xp(c) && d.y >= C.jo(c) && d.y <= C.Yp(c) }; C.gGa = function(c, d) { var f = c.y + c.height, g = d.x + d.width, h = d.y + d.height; return ! (c.x + c.width < d.x || g < c.x || f < d.y || h < c.y) }; C.H1a = function(c, d) { return ! (c.x + c.width < d.x || d.x + d.width < c.x || c.y + c.height < d.y || d.y + d.height < c.y) }; C.MC = function(c, d) { var f = C.rect(0, 0, 0, 0); f.x = Math.min(c.x, d.x); f.y = Math.min(c.y, d.y); f.width = Math.max(c.x + c.width, d.x + d.width) - f.x; f.height = Math.max(c.y + c.height, d.y + d.height) - f.y; return f }; C.fGa = function(c, d) { var f = C.rect(Math.max(C.io(c), C.io(d)), Math.max(C.jo(c), C.jo(d)), 0, 0); f.width = Math.min(C.Xp(c), C.Xp(d)) - C.io(f); f.height = Math.min(C.Yp(c), C.Yp(d)) - C.jo(f); return f }; C.GK = C.O.extend({ Maa: s, iX: s, ctor: function() { window.DOMParser ? (this.iX = q, this.Maa = new DOMParser) : this.iX = t }, parse: function(c) { return this.MX(c) }, MX: function(c) { var d; this.iX ? d = this.Maa.parseFromString(c, "text/xml") : (d = new ActiveXObject("Microsoft.XMLDOM"), d.async = "false", d.loadXML(c)); return d } }); C.Rna = C.GK.extend({ parse: function(c) { c = this.MX(c).documentElement; "plist" != c.tagName && e("Not a plist file!"); for (var d = s, f = 0, g = c.childNodes.length; f < g && !(d = c.childNodes[f], 1 == d.nodeType); f++); return this.LX(d) }, LX: function(c) { var d = s, f = c.tagName; if ("dict" == f) d = this.eua(c); else if ("array" == f) d = this.dua(c); else if ("string" == f) if (1 == c.childNodes.length) d = c.firstChild.nodeValue; else { d = ""; for (f = 0; f < c.childNodes.length; f++) d += c.childNodes[f].nodeValue } else "false" == f ? d = t: "true" == f ? d = q: "real" == f ? d = parseFloat(c.firstChild.nodeValue) : "integer" == f && (d = parseInt(c.firstChild.nodeValue, 10)); return d }, dua: function(c) { for (var d = [], f = 0, g = c.childNodes.length; f < g; f++) { var h = c.childNodes[f]; 1 == h.nodeType && d.push(this.LX(h)) } return d }, eua: function(c) { for (var d = {}, f = s, g = 0, h = c.childNodes.length; g < h; g++) { var k = c.childNodes[g]; 1 == k.nodeType && ("key" == k.tagName ? f = k.firstChild.nodeValue: d[f] = this.LX(k)) } return d } }); C.Xba = { load: function(c, d, f, g) { C.M.EQ(c, g) } }; C.M.Zp(["txt", "xml", "vsh", "fsh", "atlas"], C.Xba); C.uta = { load: function(c, d, f, g) { C.M.Kfa(c, g) } }; C.M.Zp(["json", "ExportJson"], C.uta); C.Xsa = { load: function(c, d, f, g) { C.M.fj[d] = C.M.wI(c, function(c, f) { if (c) return g(c); C.kb.Md(d); g(s, f) }) } }; C.M.Zp("png jpg bmp jpeg gif ico".split(" "), C.Xsa); C.Oua = { load: function(c, d, f, g) { C.M.fj[d] = C.M.wI(f.src, function(c, f) { if (c) return g(c); C.kb.Md(d); g(s, f) }) } }; C.M.Zp(["serverImg"], C.Oua); C.jua = { load: function(c, d, f, g) { C.M.EQ(c, function(c, d) { if (c) return g(c); g(s, C.JFa.parse(d)) }) } }; C.M.Zp(["plist"], C.jua); C.asa = { wpa: { ".eot": "embedded-opentype", ".ttf": "truetype", ".woff": "woff", ".svg": "svg" }, taa: function(c, d, f) { var g = document, h = C.path, k = this.wpa, n = C.bd("style"); n.type = "text/css"; g.body.appendChild(n); var p = "@font-face { font-family:" + c + "; src:"; if (d instanceof Array) for (var r = 0, v = d.length; r < v; r++) f = h.Cp(d[r]).toLowerCase(), p += "url('" + d[r] + "') format('" + k[f] + "')", p += r == v - 1 ? ";": ","; else p += "url('" + d + "') format('" + k[f] + "');"; n.textContent += p + "};"; d = C.bd("div"); f = d.style; f.fontFamily = c; d.innerHTML = "."; f.position = "absolute"; f.left = "-100px"; f.top = "-100px"; g.body.appendChild(d) }, load: function(c, d, f, g) { d = f.type; c = f.name; d = f.V5a; "string" == typeof f ? (d = C.path.Cp(f), c = C.path.lxa(f, d), this.taa(c, f, d)) : this.taa(c, d); g(s, q) } }; C.M.Zp(["font", "eot", "ttf", "woff", "svg"], C.asa); C.$qa = { load: function(c, d, f, g) { C.M.kEa(c, g) } }; window.CocosEngine = C.$S = "Cocos2d-html5 v3.0 RC0"; C.Qy = 0; C.US = C.d(0, 0); C.Ela = 0.5; C.dLa = 1; C.bU = 1; C.yna = 0; C.N7 = 0; C.jU = 0; C.jNa = 0; C.WMa = 1; C.VMa = "-hd"; C.nqa = 1; C.Es = 0; C.bNa = 0; C.Rma = 0; C.Qma = 0; C.oT = 1; C.qLa = C.$S + "-canvas"; C.iK = 1; C.an = 1; C.ic = function(c) { var d = this == C ? document: this; if (c = c instanceof HTMLElement ? c: d.querySelector(c)) c.find = c.find || C.ic, c.Q0 = c.Q0 || function(c) { return this.className.match(RegExp("(\\s|^)" + c + "(\\s|$)")) }, c.pca = c.pca || function(c) { this.Q0(c) || (this.className && (this.className += " "), this.className += c); return this }, c.tGa = c.tGa || function(c) { this.Q0(c) && (this.className = this.className.replace(c, "")); return this }, c.remove = c.remove || function() { this.parentNode && this.parentNode.removeChild(this); return this }, c.ox = c.ox || function(c) { c.appendChild(this); return this }, c.TFa = c.TFa || function(c) { c.childNodes[0] ? c.insertBefore(this, c.childNodes[0]) : c.appendChild(this); return this }, c.Ay = c.Ay || function() { this.style[C.ic.oJa] = C.ic.translate(this.position) + C.ic.rotate(this.rotation) + C.ic.scale(this.scale) + C.ic.wy(this.wy); return this }, c.position = c.position || { x: 0, y: 0 }, c.rotation = c.rotation || 0, c.scale = c.scale || { x: 1, y: 1 }, c.wy = c.wy || { x: 0, y: 0 }, c.DJ = function(c, d) { this.position.x = c; this.position.y = d; this.Ay() }, c.rotate = function(c) { this.rotation = c; this.Ay(); return this }, c.$p = function(c, d) { this.scale.x = c; this.scale.y = d; this.Ay(); return this }, c.qia = function(c, d) { this.wy.x = c; this.wy.y = d; this.Ay() }; return c }; switch (C.Sc.tu) { case C.Sc.xD: C.ic.Gu = "Moz"; C.ic.gC = q; break; case C.Sc.sS: case C.Sc.vS: C.ic.Gu = "webkit"; C.ic.gC = q; break; case C.Sc.uS: C.ic.Gu = "O"; C.ic.gC = t; break; case C.Sc.tS: C.ic.Gu = "ms"; C.ic.gC = t; break; default: C.ic.Gu = "webkit", C.ic.gC = q } C.ic.oJa = C.ic.Gu + "Transform"; C.ic.translate = C.ic.gC ? function(c) { return "translate3d(" + c.x + "px, " + c.y + "px, 0) " }: function(c) { return "translate(" + c.x + "px, " + c.y + "px) " }; C.ic.rotate = C.ic.gC ? function(c) { return "rotateZ(" + c + "deg) " }: function(c) { return "rotate(" + c + "deg) " }; C.ic.scale = function(c) { return "scale(" + c.x + ", " + c.y + ") " }; C.ic.wy = function(c) { return "skewX(" + -c.x + "deg) skewY(" + c.y + "deg)" }; C.pD = function(c) { return C.ic(document.createElement(c)) }; C.ic.xSa = function(c) { var d = 0, f = 0; do d += c.offsetLeft, f += c.offsetTop; while (c = c.offsetParent); return { x: d, y: f } }; C.zo = -1; C.PI = Math.PI; C.pv = parseFloat("3.402823466e+38F"); C.O5 = parseFloat("1.175494351e-38F"); C.aoa = C.PI / 180; C.v5 = 180 / C.PI; C.EU = 4294967295; C.Uia = function(c, d, f) { if ("object" == typeof f && "undefined" != typeof f.x && "undefined" != typeof f.y) { var g = f[c]; f[c] = f[d]; f[d] = g } else C.log(C.n.Uia) }; C.U_a = function(c, d, f) { return c + (d - c) * f }; C.dd = function() { return 16777215 * Math.random() }; C.$Fa = function() { return 2 * (Math.random() - 0.5) }; C.x1a = Math.random; C.ng = function(c) { return c * C.aoa }; C.LC = function(c) { return c * C.v5 }; C.zga = function(c) { C.log(C.n.zga); return c * C.v5 }; C.xv = Number.MAX_VALUE - 1; C.Ic = C.yna ? 1 : 770; C.Hc = 771; C.BC = function(c) { c.pd && (c.pd.Af(), c.pd.Bj()) }; C.XRa = u(); C.zRa = u(); C.nl = function() { C.kl += 1 }; C.rK = 1.192092896E-7; C.Ec = C.oT ? function() { return C.Q.Ul }: B(1); C.KFa = function(c) { var d = C.Ec(); return C.d(c.x * d, c.y * d) }; C.c2 = function(c) { var d = C.Ec(); return C.d(c.x / d, c.y / d) }; C.RX = function(c, d) { var f = C.Ec(); d.x = c.x / f; d.y = c.y / f }; C.FIa = function(c) { var d = C.Ec(); return C.size(c.width * d, c.height * d) }; C.Gia = function(c) { var d = C.Ec(); return C.size(c.width / d, c.height / d) }; C.Fba = function(c, d) { var f = C.Ec(); d.width = c.width / f; d.height = c.height / f }; C.js = C.oT ? function(c) { var d = C.Ec(); return C.rect(c.x / d, c.y / d, c.width / d, c.height / d) }: da(); C.XI = C.oT ? function(c) { var d = C.Ec(); return C.rect(c.x * d, c.y * d, c.width * d, c.height * d) }: da(); C.ONE = 1; C.ZERO = 0; C.SRC_ALPHA = 770; C.SRC_ALPHA_SATURATE = 776; C.SRC_COLOR = 768; C.DST_ALPHA = 772; C.DST_COLOR = 774; C.ONE_MINUS_SRC_ALPHA = 771; C.ONE_MINUS_SRC_COLOR = 769; C.ONE_MINUS_DST_ALPHA = 773; C.ONE_MINUS_DST_COLOR = 775; C.ONE_MINUS_CONSTANT_ALPHA = 32772; C.ONE_MINUS_CONSTANT_COLOR = 32770; C.DB = function() { if (C.bR == C.la) { var c = C.t.getError(); c && C.log(CC.Wa.DB, c) } }; C.uLa = 0; C.sLa = 1; C.vLa = 2; C.tLa = 3; C.rLa = 2; C.NNa = 0; C.Ch = 1; C.ZK = 2; C.fz = 4; C.Dv = C.Ch | C.ZK | C.fz; C.SLa = 0; C.Lc = 0; C.Hi = 1; C.Vg = 2; C.ONa = 3; C.HU = 0; C.GU = 1; C.NE = 2; C.LU = 3; C.KU = 4; C.FU = 5; C.IU = 6; C.JU = 7; C.INa = 8; C.Co = "ShaderPositionTextureColor"; C.KK = "ShaderPositionTextureColorAlphaTest"; C.JK = "ShaderPositionColor"; C.yE = "ShaderPositionTexture"; C.LK = "ShaderPositionTexture_uColor"; C.$T = "ShaderPositionTextureA8Color"; C.aU = "ShaderPosition_uColor"; C.C7 = "ShaderPositionLengthTextureColor"; C.hqa = "CC_PMatrix"; C.fqa = "CC_MVMatrix"; C.gqa = "CC_MVPMatrix"; C.lqa = "CC_Time"; C.kqa = "CC_SinTime"; C.eqa = "CC_CosTime"; C.iqa = "CC_Random01"; C.jqa = "CC_Texture0"; C.G8 = "CC_alpha_value"; C.tD = "a_color"; C.ev = "a_position"; C.Hy = "a_texCoord"; C.Cma = 32; C.k5 = 3233828865; C.$K = 3233828866; C.bna = 8801; C.foa = 8802; C.Gla = 8803; C = C || {}; C.U = C.U || {}; C.U.PU = function() { C.color = function(c, f, g, h, k, n) { return c === m ? new ja(0, 0, 0, 255, k, n) : "string" === typeof c ? (c = C.Oea(c), new ja(c.r, c.g, c.b, c.a)) : "object" === typeof c ? new ja(c.r, c.g, c.b, c.a, c.WO, c.offset) : new ja(c, f, g, h, k, n) }; ja = function(c, f, g, h, k, n) { this.Wf = k || new ArrayBuffer(ja.BYTES_PER_ELEMENT); this.fb = n || 0; k = this.Wf; n = this.fb; var p = Uint8Array.BYTES_PER_ELEMENT; this.iY = new Uint8Array(k, n, 1); this.EW = new Uint8Array(k, n + p, 1); this.mV = new Uint8Array(k, n + 2 * p, 1); this.ZU = new Uint8Array(k, n + 3 * p, 1); this.iY[0] = c || 0; this.EW[0] = f || 0; this.mV[0] = g || 0; this.ZU[0] = h || 255; h === m && (this.jx = q) }; ja.BYTES_PER_ELEMENT = 4; var c = ja.prototype; c.Esa = function() { return this.iY[0] }; c.fva = function(c) { this.iY[0] = 0 > c ? 0 : c }; c.osa = function() { return this.EW[0] }; c.Xua = function(c) { this.EW[0] = 0 > c ? 0 : c }; c.hsa = function() { return this.mV[0] }; c.Qua = function(c) { this.mV[0] = 0 > c ? 0 : c }; c.esa = function() { return this.ZU[0] }; c.Pua = function(c) { this.ZU[0] = 0 > c ? 0 : c }; C.e(c, "r", c.Esa, c.fva); C.e(c, "g", c.osa, c.Xua); C.e(c, "b", c.hsa, c.Qua); C.e(c, "a", c.esa, c.Pua); C.bf = function(c, f, g, h) { this.Wf = g || new ArrayBuffer(C.bf.BYTES_PER_ELEMENT); this.fb = h || 0; this.hx = new Float32Array(this.Wf, this.fb, 1); this.ix = new Float32Array(this.Wf, this.fb + 4, 1); this.hx[0] = c || 0; this.ix[0] = f || 0 }; C.bf.BYTES_PER_ELEMENT = 8; Object.defineProperties(C.bf.prototype, { x: { get: function() { return this.hx[0] }, set: function(c) { this.hx[0] = c }, enumerable: q }, y: { get: function() { return this.ix[0] }, set: function(c) { this.ix[0] = c }, enumerable: q } }); C.re = function(c, f, g, h, k) { this.Wf = h || new ArrayBuffer(C.re.BYTES_PER_ELEMENT); this.fb = k || 0; h = this.Wf; k = this.fb; this.hx = new Float32Array(h, k, 1); this.hx[0] = c || 0; this.ix = new Float32Array(h, k + Float32Array.BYTES_PER_ELEMENT, 1); this.ix[0] = f || 0; this.JZ = new Float32Array(h, k + 2 * Float32Array.BYTES_PER_ELEMENT, 1); this.JZ[0] = g || 0 }; C.re.BYTES_PER_ELEMENT = 12; Object.defineProperties(C.re.prototype, { x: { get: function() { return this.hx[0] }, set: function(c) { this.hx[0] = c }, enumerable: q }, y: { get: function() { return this.ix[0] }, set: function(c) { this.ix[0] = c }, enumerable: q }, f: { get: function() { return this.JZ[0] }, set: function(c) { this.JZ[0] = c }, enumerable: q } }); C.tq = function(c, f, g, h) { this.Wf = g || new ArrayBuffer(C.tq.BYTES_PER_ELEMENT); this.fb = h || 0; this.oZ = new Float32Array(this.Wf, this.fb, 1); this.wZ = new Float32Array(this.Wf, this.fb + 4, 1); this.oZ[0] = c || 0; this.wZ[0] = f || 0 }; C.tq.BYTES_PER_ELEMENT = 8; Object.defineProperties(C.tq.prototype, { xa: { get: function() { return this.oZ[0] }, set: function(c) { this.oZ[0] = c }, enumerable: q }, ea: { get: function() { return this.wZ[0] }, set: function(c) { this.wZ[0] = c }, enumerable: q } }); C.VT = function(c, f, g, h, k, n) { this.Wf = k || new ArrayBuffer(C.VT.BYTES_PER_ELEMENT); this.fb = n || 0; k = this.Wf; n = C.bf.BYTES_PER_ELEMENT; this.lB = c ? new C.bf(c.x, c.y, k, 0) : new C.bf(0, 0, k, 0); this.qB = f ? new C.bf(f.x, f.y, k, n) : new C.bf(0, 0, k, n); this.sz = g ? new C.bf(g.x, g.y, k, 2 * n) : new C.bf(0, 0, k, 2 * n); this.wz = h ? new C.bf(h.x, h.y, k, 3 * n) : new C.bf(0, 0, k, 3 * n) }; C.VT.BYTES_PER_ELEMENT = 32; C.FK = function(c, f, g, h) { this.T = c || new C.re(0, 0, 0); this.Y = f || new C.re(0, 0, 0); this.X = g || new C.re(0, 0, 0); this.V = h || new C.re(0, 0, 0) }; Object.defineProperties(C.VT.prototype, { X: { get: A("lB"), set: function(c) { this.lB.x = c.x; this.lB.y = c.y }, enumerable: q }, V: { get: A("qB"), set: function(c) { this.qB.x = c.x; this.qB.y = c.y }, enumerable: q }, T: { get: A("sz"), set: function(c) { this.sz.x = c.x; this.sz.y = c.y }, enumerable: q }, Y: { get: A("wz"), set: function(c) { this.wz.x = c.x; this.wz.y = c.y }, enumerable: q } }); C.Ol = function(c, f, g, h, k) { this.Wf = h || new ArrayBuffer(C.Ol.BYTES_PER_ELEMENT); this.fb = k || 0; h = this.Wf; k = this.fb; var n = C.re.BYTES_PER_ELEMENT; this.bc = c ? new C.re(c.x, c.y, c.f, h, k) : new C.re(0, 0, 0, h, k); this.mF = f ? C.color(f.r, f.g, f.b, f.a, h, k + n) : C.color(0, 0, 0, 0, h, k + n); this.dl = g ? new C.tq(g.xa, g.ea, h, k + n + ja.BYTES_PER_ELEMENT) : new C.tq(0, 0, h, k + n + ja.BYTES_PER_ELEMENT) }; C.Ol.BYTES_PER_ELEMENT = 24; Object.defineProperties(C.Ol.prototype, { m: { get: A("bc"), set: function(c) { var f = this.bc; f.x = c.x; f.y = c.y; f.f = c.f }, enumerable: q }, F: { get: A("mF"), set: function(c) { var f = this.mF; f.r = c.r; f.g = c.g; f.b = c.b; f.a = c.a }, enumerable: q }, v: { get: A("dl"), set: function(c) { this.dl.xa = c.xa; this.dl.ea = c.ea }, enumerable: q } }); C.Uc = function(c, f, g, h, k, n) { this.Wf = k || new ArrayBuffer(C.Uc.BYTES_PER_ELEMENT); this.fb = n || 0; k = this.Wf; n = this.fb; var p = C.Ol.BYTES_PER_ELEMENT; this.lB = c ? new C.Ol(c.m, c.F, c.v, k, n) : new C.Ol(s, s, s, k, n); this.sz = f ? new C.Ol(f.m, f.F, f.v, k, n + p) : new C.Ol(s, s, s, k, n + p); this.qB = g ? new C.Ol(g.m, g.F, g.v, k, n + 2 * p) : new C.Ol(s, s, s, k, n + 2 * p); this.wz = h ? new C.Ol(h.m, h.F, h.v, k, n + 3 * p) : new C.Ol(s, s, s, k, n + 3 * p) }; C.Uc.BYTES_PER_ELEMENT = 96; Object.defineProperties(C.Uc.prototype, { X: { get: A("lB"), set: function(c) { var f = this.lB; f.m = c.m; f.F = c.F; f.v = c.v }, enumerable: q }, T: { get: A("sz"), set: function(c) { var f = this.sz; f.m = c.m; f.F = c.F; f.v = c.v }, enumerable: q }, V: { get: A("qB"), set: function(c) { var f = this.qB; f.m = c.m; f.F = c.F; f.v = c.v }, enumerable: q }, Y: { get: A("wz"), set: function(c) { var f = this.wz; f.m = c.m; f.F = c.F; f.v = c.v }, enumerable: q }, WO: { get: A("Wf"), enumerable: q } }); C.I8 = function() { return new C.Uc }; C.H8 = function(c) { if (!c) return C.I8(); var f = c.X, g = c.T, h = c.V; c = c.Y; return { X: { m: { x: f.m.x, y: f.m.y, f: f.m.f }, F: { r: f.F.r, g: f.F.g, b: f.F.b, a: f.F.a }, v: { xa: f.v.xa, ea: f.v.ea } }, T: { m: { x: g.m.x, y: g.m.y, f: g.m.f }, F: { r: g.F.r, g: g.F.g, b: g.F.b, a: g.F.a }, v: { xa: g.v.xa, ea: g.v.ea } }, V: { m: { x: h.m.x, y: h.m.y, f: h.m.f }, F: { r: h.F.r, g: h.F.g, b: h.F.b, a: h.F.a }, v: { xa: h.v.xa, ea: h.v.ea } }, Y: { m: { x: c.m.x, y: c.m.y, f: c.m.f }, F: { r: c.F.r, g: c.F.g, b: c.F.b, a: c.F.a }, v: { xa: c.v.xa, ea: c.v.ea } } } }; C.LNa = function(c) { if (!c) return []; for (var f = [], g = 0; g < c.length; g++) f.push(C.H8(c[g])); return f }; C.Ug = function(c, f, g, h, k) { this.Wf = h || new ArrayBuffer(C.Ug.BYTES_PER_ELEMENT); this.fb = k || 0; h = this.Wf; k = this.fb; var n = C.bf.BYTES_PER_ELEMENT; this.bc = c ? new C.bf(c.x, c.y, h, k) : new C.bf(0, 0, h, k); this.mF = f ? C.color(f.r, f.g, f.b, f.a, h, k + n) : C.color(0, 0, 0, 0, h, k + n); this.dl = g ? new C.tq(g.xa, g.ea, h, k + n + ja.BYTES_PER_ELEMENT) : new C.tq(0, 0, h, k + n + ja.BYTES_PER_ELEMENT) }; C.Ug.BYTES_PER_ELEMENT = 20; Object.defineProperties(C.Ug.prototype, { m: { get: A("bc"), set: function(c) { this.bc.x = c.x; this.bc.y = c.y }, enumerable: q }, F: { get: A("mF"), set: function(c) { var f = this.mF; f.r = c.r; f.g = c.g; f.b = c.b; f.a = c.a }, enumerable: q }, v: { get: A("dl"), set: function(c) { this.dl.xa = c.xa; this.dl.ea = c.ea }, enumerable: q } }); C.be = function(c, f, g, h, k) { this.Wf = h || new ArrayBuffer(C.be.BYTES_PER_ELEMENT); this.fb = k || 0; h = this.Wf; k = this.fb; var n = C.Ug.BYTES_PER_ELEMENT; this.T8 = c ? new C.Ug(c.m, c.F, c.v, h, k) : new C.Ug(s, s, s, h, k); this.g9 = f ? new C.Ug(f.m, f.F, f.v, h, k + n) : new C.Ug(s, s, s, h, k + n); this.p9 = g ? new C.Ug(g.m, g.F, g.v, h, k + 2 * n) : new C.Ug(s, s, s, h, k + 2 * n) }; C.be.BYTES_PER_ELEMENT = 60; Object.defineProperties(C.be.prototype, { a: { get: A("T8"), set: function(c) { var f = this.T8; f.m = c.m; f.F = c.F; f.v = c.v }, enumerable: q }, b: { get: A("g9"), set: function(c) { var f = this.g9; f.m = c.m; f.F = c.F; f.v = c.v }, enumerable: q }, H: { get: A("p9"), set: function(c) { var f = this.p9; f.m = c.m; f.F = c.F; f.v = c.v }, enumerable: q } }) }; C.U.NT = function() { var c = C.color; c.Qsa = function() { return c(255, 255, 255) }; c.Usa = function() { return c(255, 255, 0) }; c.jsa = function() { return c(0, 0, 255) }; c.qsa = function() { return c(0, 255, 0) }; c.Fsa = function() { return c(255, 0, 0) }; c.ysa = function() { return c(255, 0, 255) }; c.isa = function() { return c(0, 0, 0) }; c.Dsa = function() { return c(255, 127, 0) }; c.psa = function() { return c(166, 166, 166) }; C.e(c, "WHITE", c.Qsa); C.e(c, "YELLOW", c.Usa); C.e(c, "BLUE", c.jsa); C.e(c, "GREEN", c.qsa); C.e(c, "RED", c.Fsa); C.e(c, "MAGENTA", c.ysa); C.e(c, "BLACK", c.isa); C.e(c, "ORANGE", c.Dsa); C.e(c, "GRAY", c.psa) }; function ja(c, d, f, g) { this.r = c || 0; this.g = d || 0; this.b = f || 0; this.a = g || 255 } C.color = function(c, d, f, g) { return c === m ? { r: 0, g: 0, b: 0, a: 255 }: "string" === typeof c ? C.Oea(c) : "object" === typeof c ? { r: c.r, g: c.g, b: c.b, a: c.a || 255 }: { r: c, g: d, b: f, a: g || 255 } }; C.$Qa = function(c, d) { return c.r === d.r && c.g === d.g && c.b === d.b }; C.Eja = function() { this.timestamp = this.f = this.y = this.x = 0 }; C.bf = function(c, d) { this.x = c || 0; this.y = d || 0 }; C.fS = function(c, d) { return new C.bf(c, d) }; C.re = function(c, d, f) { this.x = c || 0; this.y = d || 0; this.f = f || 0 }; C.O6a = function(c, d, f) { return new C.re(c, d, f) }; C.tq = function(c, d) { this.xa = c || 0; this.ea = d || 0 }; C.m6a = function(c, d) { return new C.tq(c, d) }; C.Vm = function(c, d) { this.src = c; this.ga = d }; C.BQa = function() { return new C.Vm(C.ONE, C.ZERO) }; C.Oea = function(c) { c = c.replace(/^#?/, "0x"); c = parseInt(c); return C.color(c >> 16, (c >> 8) % 256, c % 256) }; C.Ap = function(c) { var d = c.r.toString(16), f = c.g.toString(16), g = c.b.toString(16); return "#" + (16 > c.r ? "0" + d: d) + (16 > c.g ? "0" + f: f) + (16 > c.b ? "0" + g: g) }; C.dz = 0; C.Fs = 1; C.Q7 = 2; C.OE = 0; C.MU = 1; C.J8 = 2; C.Ev = C.O.extend({ vA: s, eH: s, XU: 0, ctor: function() { this.vA = {}; this.eH = {}; this.XU = 2 << (0 | 10 * Math.random()) }, Cqa: function() { this.XU++; return "key_" + this.XU }, vl: function(c, d) { if (d != s) { var f = this.Cqa(); this.vA[f] = d; this.eH[f] = c } }, Km: function(c) { if (c == s) return s; var d = this.vA, f; for (f in d) if (d[f] === c) return this.eH[f]; return s }, N6a: function(c) { return this.Km(c) }, q2: function(c) { if (c != s) { var d = this.vA, f; for (f in d) if (d[f] === c) { delete this.eH[f]; delete d[f]; break } } }, k2a: function(c) { if (c != s) for (var d = 0; d < c.length; d++) this.q2(c[d]) }, vB: function() { var c = [], d = this.vA, f; for (f in d) c.push(d[f]); return c }, U1a: function() { this.vA = {}; this.eH = {} }, count: function() { return this.vB().length } }); C.W5 = function() { this.fontName = "Arial"; this.fontSize = 12; this.textAlign = C.Fs; this.verticalAlign = C.OE; this.fillStyle = C.color(255, 255, 255, 255); this.boundingHeight = this.boundingWidth = 0; this.I3 = t; this.strokeStyle = C.color(255, 255, 255, 255); this.lineWidth = 1; this.Dia = t; this.shadowBlur = this.shadowOffsetY = this.shadowOffsetX = 0; this.shadowOpacity = 1 }; C.L === C.la && (C.assert("function" === typeof C.U.PU, C.n.Bf, "CCTypesWebGL.js"), C.U.PU(), delete C.U.PU); C.assert("function" === typeof C.U.NT, C.n.Bf, "CCTypesPropertyDefine.js"); C.U.NT(); delete C.U.NT; C.ENa = []; C.FNa = {}; C.YS = C.O.extend({ Oq: s, mi: s, Oz: s, Lt: s, jh: s, yp: s, pY: t, kV: q, Pq: 1, EZ: "", mY: s, ia: 1, Haa: 1, pa: 1, Iaa: 1, mA: 0, xX: 5, Bn: s, lba: s, pba: s, oba: s, mba: s, nba: s, VF: t, dOa: t, LPa: s, W$: s, X$: s, BPa: t, QV: s, tt: s, AW: 1, eL: t, eaa: q, ctor: function() { var c = document, d = C.ys, f = C.Dl; this.tt = C.container.parentNode === c.body ? c.documentElement: C.container.parentNode; this.mi = C.size(0, 0); this.ZW(); var c = C.Pb.width, g = C.Pb.height; this.Oz = C.size(c, g); this.Lt = C.size(c, g); this.jh = C.rect(0, 0, c, g); this.yp = C.rect(0, 0, c, g); this.QV = { left: 0, top: 0 }; this.EZ = "Cocos2dHTML5"; c = C.Sc; this.yza(c.Q1 == c.L6 || c.Q1 == c.M6); C.ts && C.ts.j(this.yp); this.lba = new C.Ej(d.jK, f.aT); this.pba = new C.Ej(d.Pna, f.MK); this.oba = new C.Ej(d.jK, f.CT); this.mba = new C.Ej(d.jK, f.bT); this.nba = new C.Ej(d.jK, f.cT); this.W$ = C.Pb; this.X$ = C.t }, nY: function() { var c = this.Lt.width, d = this.Lt.height; this.mY && (this.ZW(), this.mY.call()); 0 < c && this.M2(c, d, this.Bn) }, EGa: function(c) { c ? this.eL || (this.eL = q, c = this.nY.bind(this), C.qb(window, "resize", c, t)) : this.eL && (this.eL = q, c = this.nY.bind(this), window.removeEventListener("resize", c, t)) }, Y4a: function(c) { if ("function" == typeof c || c == s) this.mY = c }, ZW: function() { var c = this.mi; c.width = this.tt.clientWidth; c.height = this.tt.clientHeight }, VNa: function() { var c = this.Lt.width, d = this.Lt.height; 0 < c && this.M2(c, d, this.Bn) }, zva: function() { if (this.eaa) { var c = { "user-scalable": "no", "maximum-scale": "1.0", "initial-scale": "1.0" }, d = document.getElementsByName("viewport"), f; 0 == d.length ? (d = C.bd("meta"), d.name = "viewport", d.content = "", document.head.appendChild(d)) : d = d[0]; if (C.Sc.Xr && C.Sc.tu == C.Sc.xD) d.content = "initial-scale:1"; else { f = d.content; for (var g in c) RegExp(g).test(f) || (f += ("" == f ? "": ",") + g + "\x3d" + c[g]); d.content = f } } }, vba: function() { var c = C.Ec(); this.pa = this.ia = c }, hba: function() { this.ia = this.Haa; this.pa = this.Iaa }, WNa: u(), eDa: function() { this.VF = q }, Ewa: x("eaa"), yza: function(c) { this.pY = c ? q: t }, HYa: A("pY"), WRa: function(c) { this.kV = c ? q: t }, dYa: A("kV"), end: u(), BYa: function() { return this.W$ != s && this.X$ != s }, g4a: function(c) { this.AW = c; C.Q.py(C.Q.op) }, d6a: u(), l4a: u(), K3a: function(c, d) { this.QV = { left: c, top: d } }, KTa: A("QV"), $da: function() { return C.size(this.mi.width, this.mi.height) }, f4a: function(c, d) { this.mi.width = c; this.mi.height = d; this.tt.style.width = c + "px"; this.tt.style.height = d + "px"; this.nY(); C.Q.py(C.Q.op) }, MQa: u(), aI: function() { return C.size(this.yp.width, this.yp.height) }, L0: function() { return C.d(this.yp.x, this.yp.y) }, FQa: B(q), mWa: A("Bn"), eIa: function(c) { if (c instanceof C.Ej) this.Bn = c; else { var d = C.Ej; c === d.aT && (this.Bn = this.lba); c === d.MK && (this.Bn = this.pba); c === d.CT && (this.Bn = this.oba); c === d.bT && (this.Bn = this.mba); c === d.cT && (this.Bn = this.nba) } }, M2: function(c, d, f) { if (isNaN(c) || 0 == c || isNaN(d) || 0 == d) C.log(C.n.Sla); else { this.eIa(f); var g = this.Bn; if (g) { g.ay(this); var h = this.mi.width, k = this.mi.height; C.Sc.Xr && this.zva(this.mi.width, this.mi.height); this.ZW(); f == this.Bn && c == this.Lt.width && d == this.Lt.height && h == this.mi.width && k == this.mi.height || (this.Oz = C.size(c, d), this.Lt = C.size(c, d), c = g.apply(this, this.Oz), c.scale && 2 == c.scale.length && (this.ia = c.scale[0], this.pa = c.scale[1]), c.viewport && (c = this.jh = c.viewport, d = this.yp, d.width = C.Pb.width / this.ia, d.height = C.Pb.height / this.pa, d.x = -c.x / this.ia, d.y = -c.y / this.pa), c = C.Q, C.KJ.width = c.aa.width = this.yp.width, C.KJ.height = c.aa.height = this.yp.height, g.$x(this), C.L == C.la && (c.Kz(), c.Fha()), this.Haa = this.ia, this.Iaa = this.pa, C.Pd && C.Pd.Gua(), C.ts && C.ts.j(this.yp)) } else C.log(C.n.Tla) } }, LH: function() { return C.size(this.Oz.width, this.Oz.height) }, AIa: function(c, d, f, g) { var h = this.AW, k = this.ia, n = this.pa; C.t.viewport(c * k * h + this.jh.x * h, d * n * h + this.jh.y * h, f * k * h, g * n * h) }, LR: function(c, d, f, g) { var h = this.AW, k = this.ia, n = this.pa; C.t.scissor(c * k * h + this.jh.x * h, d * n * h + this.jh.y * h, f * k * h, g * n * h) }, ADa: function() { var c = C.t; return c.isEnabled(c.SCISSOR_TEST) }, JBa: function() { var c = C.t, d = this.ia, f = this.pa, c = c.getParameter(c.SCISSOR_BOX); return C.rect((c[0] - this.jh.x) / d, (c[1] - this.jh.y) / f, c[2] / d, c[3] / f) }, M5a: function(c) { c != s && 0 < c.length && (this.EZ = c) }, tXa: A("EZ"), uXa: A("jh"), LP: A("ia"), TH: A("pa"), eUa: A("Pq"), C_: function(c, d, f) { return { x: this.Pq * (c - f.left), y: this.Pq * (f.top + f.height - d) } }, yra: function(c, d) { var f = this.jh; c.x = (this.Pq * (c.x - d.left) - f.x) / this.ia; c.y = (this.Pq * (d.top + d.height - c.y) - f.y) / this.pa }, PL: function(c) { for (var d = this.jh, f = this.ia, g = this.pa, h, k, n, p = 0; p < c.length; p++) h = c[p], k = h.eh, n = h.mp, h.IY((k.x - d.x) / f, (k.y - d.y) / g), h.ZA((n.x - d.x) / f, (n.y - d.y) / g) } }); C.YS.KW = function() { this.Zl || (this.Zl = this.Zl || new C.YS, this.Zl.eDa()); return this.Zl }; C.ys = C.O.extend({ ay: u(), apply: u(), $x: u(), MY: function(c, d, f) { var g = c.tt; C.view.kV && (C.Sc.Xr && g == document.documentElement) && C.screen.fxa(g); var g = C.Pb, h = C.container; h.style.width = g.style.width = d + "px"; h.style.height = g.style.height = f + "px"; h = c.Pq = 1; c.pY && (h = c.Pq = window.devicePixelRatio || 1); g.width = d * h; g.height = f * h; c = document.body; var k; if (c && (k = c.style)) k.paddingTop = k.paddingTop || "0px", k.paddingRight = k.paddingRight || "0px", k.paddingBottom = k.paddingBottom || "0px", k.paddingLeft = k.paddingLeft || "0px", k.borderTop = k.borderTop || "0px", k.borderRight = k.borderRight || "0px", k.borderBottom = k.borderBottom || "0px", k.borderLeft = k.borderLeft || "0px", k.marginTop = k.marginTop || "0px", k.marginRight = k.marginRight || "0px", k.marginBottom = k.marginBottom || "0px", k.marginLeft = k.marginLeft || "0px" }, z$: function() { document.body.insertBefore(C.container, document.body.firstChild); var c = document.body.style; c.width = window.innerWidth + "px"; c.height = window.innerHeight + "px"; c.overflow = "hidden"; c = C.container.style; c.position = "fixed"; c.left = c.top = "0px"; document.body.scrollTop = 0 } }); C.Dl = C.O.extend({ oY: { scale: [1, 1], viewport: s }, cF: function(c, d, f, g, h, k) { 2 > Math.abs(c - f) && (f = c); 2 > Math.abs(d - g) && (g = d); c = C.rect(Math.round((c - f) / 2), Math.round((d - g) / 2), f, g); C.L == C.cb && C.t.translate(c.x, c.y + g); this.oY.scale = [h, k]; this.oY.viewport = c; return this.oY }, ay: u(), apply: function() { return { scale: [1, 1] } }, $x: u() }); (function() { var c = C.ys.extend({ apply: function(c) { this.MY(c, c.mi.width, c.mi.height) } }), d = C.ys.extend({ apply: function(c, d) { var f = c.mi.width, g = c.mi.height, h = C.container.style, y = d.width, z = d.height, D = f / y, E = g / z, F, G; D < E ? (F = f, G = z * D) : (F = y * E, G = g); y = Math.round((f - F) / 2); G = Math.round((g - G) / 2); this.MY(c, f - 2 * y, g - 2 * G); h.marginLeft = y + "px"; h.marginRight = y + "px"; h.marginTop = G + "px"; h.marginBottom = G + "px" } }); c.extend({ ay: function(c) { this._super(c); c.tt = document.documentElement }, apply: function(c) { this._super(c); this.z$() } }); d.extend({ ay: function(c) { this._super(c); c.tt = document.documentElement }, apply: function(c, d) { this._super(c, d); this.z$() } }); var f = C.ys.extend({ apply: function(c) { this.MY(c, C.Pb.width, C.Pb.height) } }); C.ys.jK = new c; C.ys.Pna = new d; C.ys.NMa = new f; var c = C.Dl.extend({ apply: function(c, d) { var f = C.Pb.width, g = C.Pb.height; return this.cF(f, g, f, g, f / d.width, g / d.height) } }), d = C.Dl.extend({ apply: function(c, d) { var f = C.Pb.width, g = C.Pb.height, h = d.width, y = d.height, z = f / h, D = g / y, E = 0, F, G; z < D ? (E = z, F = f, G = y * E) : (E = D, F = h * E, G = g); return this.cF(f, g, F, G, E, E) } }), f = C.Dl.extend({ apply: function(c, d) { var f = C.Pb.width, g = C.Pb.height, h = d.width, y = d.height, z = f / h, D = g / y, E, F, G; z < D ? (E = D, F = h * E, G = g) : (E = z, F = f, G = y * E); return this.cF(f, g, F, G, E, E) } }), g = C.Dl.extend({ apply: function(c, d) { var f = C.Pb.width, g = C.Pb.height, h = g / d.height; return this.cF(f, g, f, g, h, h) }, $x: function(c) { C.Q.aa = c.aI() } }), h = C.Dl.extend({ apply: function(c, d) { var f = C.Pb.width, g = C.Pb.height, h = f / d.width; return this.cF(f, g, f, g, h, h) }, $x: function(c) { C.Q.aa = c.aI() } }); C.Dl.aT = new c; C.Dl.MK = new d; C.Dl.CT = new f; C.Dl.bT = new g; C.Dl.cT = new h })(); C.Ej = C.O.extend({ ML: s, NL: s, ctor: function(c, d) { this.kHa(c); this.mHa(d) }, ay: function(c) { this.ML.ay(c); this.NL.ay(c) }, apply: function(c, d) { this.ML.apply(c, d); return this.NL.apply(c, d) }, $x: function(c) { this.ML.$x(c); this.NL.$x(c) }, kHa: function(c) { c instanceof C.ys && (this.ML = c) }, mHa: function(c) { c instanceof C.Dl && (this.NL = c) } }); C.Ej.aT = 0; C.Ej.CT = 1; C.Ej.MK = 2; C.Ej.bT = 3; C.Ej.cT = 4; C.Ej.mqa = 5; C.screen = { lO: t, XX: s, lZ: "", st: s, Yra: [["requestFullscreen", "exitFullscreen", "fullscreenchange", "fullscreenEnabled", "fullscreenElement"], ["requestFullScreen", "exitFullScreen", "fullScreenchange", "fullScreenEnabled", "fullScreenElement"], ["webkitRequestFullScreen", "webkitCancelFullScreen", "webkitfullscreenchange", "webkitIsFullScreen", "webkitCurrentFullScreenElement"], ["mozRequestFullScreen", "mozCancelFullScreen", "mozfullscreenchange", "mozFullScreen", "mozFullScreenElement"], ["msRequestFullscreen", "msExitFullscreen", "MSFullscreenChange", "msFullscreenEnabled", "msFullscreenElement"]], j: function() { this.st = {}; var c, d, f = this.Yra, g; c = 0; for (l = f.length; c < l; c++) if ((d = f[c]) && d[1] in document) { c = 0; for (g = d.length; c < g; c++) this.st[f[0][c]] = d[c]; break } this.lO = this.st.requestFullscreen != m; this.lZ = "ontouchstart" in window ? "touchstart": "mousedown" }, fullScreen: function() { return this.lO && document[this.st.fullscreenEnabled] }, Xga: function(c, d) { if (this.lO) { c = c || document.documentElement; c[this.st.requestFullscreen](); if (d) { var f = this.st.CSa; this.XX && document.removeEventListener(f, this.XX); this.XX = d; C.qb(document, f, d, t) } return c[this.st.requestFullscreen]() } }, dSa: function() { return this.lO ? document[this.st.exitFullscreen]() : q }, fxa: function(c, d) { function f() { h.Xga(c, d); g.removeEventListener(h.lZ, f) } c = c || document.body; var g = C.Pb || c, h = this; this.Xga(c, d); C.qb(g, this.lZ, f) } }; C.screen.j(); C.ts = { Zia: C.d(0, 0), $ia: C.d(0, 0), top: C.d(0, 0), bP: C.d(0, 0), Kca: C.d(0, 0), bottom: C.d(0, 0), vH: C.d(0, 0), left: C.d(0, 0), right: C.d(0, 0), width: 0, height: 0, j: function(c) { var d = this.width = c.width, f = this.height = c.height, g = c.x; c = c.y; var h = c + f, k = g + d; this.Zia.x = g; this.Zia.y = h; this.$ia.x = k; this.$ia.y = h; this.top.x = g + d / 2; this.top.y = h; this.bP.x = g; this.bP.y = c; this.Kca.x = k; this.Kca.y = c; this.bottom.x = g + d / 2; this.bottom.y = c; this.vH.x = g + d / 2; this.vH.y = c + f / 2; this.left.x = g; this.left.y = c + f / 2; this.right.x = k; this.right.y = c + f / 2 } }; C.bqa = -90; C.cqa = 90; C.dqa = 180; C.HNa = 0; C.dfa = { BA: t, laa: t, Qaa: C.d(0, 0), pua: C.d(0, 0), Raa: [], YX: 0, Kf: [], mZ: {}, mA: 0, xX: 5, gL: t, hL: 1 / 30, V8: 1, Fv: 0, $U: s, fL: s, Osa: function() { for (var c = this.mA, d = 0; d < this.xX; d++) { if (! (c & 1)) return this.mA |= 1 << d, d; c >>= 1 } return - 1 }, Fua: function(c) { 0 > c || c >= this.xX || (c = ~ (1 << c), this.mA &= c) }, vt: s, O0: function(c) { for (var d, f, g, h = [], k = this.mZ, n = 0, p = c.length; n < p; n++) d = c[n], g = d.ni, f = k[g], f == s && (f = this.Osa(), -1 == f ? C.log(C.n.fDa, f) : (d = this.Kf[f] = d, k[g] = f, h.push(d))); 0 < h.length && (this.vt.PL(h), c = new C.El(h), c.ot = C.El.Py.mS, C.Ka.dispatchEvent(c)) }, P0: function(c) { for (var d, f, g = [], h = this.Kf, k = 0, n = c.length; k < n; k++) d = c[k], f = d.ni, f = this.mZ[f], f != s && h[f] && (h[f].IY(d.eh), h[f].ZA(d.mp), g.push(h[f])); 0 < g.length && (this.vt.PL(g), c = new C.El(g), c.ot = C.El.Py.vT, C.Ka.dispatchEvent(c)) }, SP: function(c) { c = this.qea(c); 0 < c.length && (this.vt.PL(c), c = new C.El(c), c.ot = C.El.Py.ZS, C.Ka.dispatchEvent(c)) }, Mea: function(c) { c = this.qea(c); 0 < c.length && (this.vt.PL(c), c = new C.El(c), c.ot = C.El.Py.BS, C.Ka.dispatchEvent(c)) }, qea: function(c) { for (var d, f, g, h = [], k = this.Kf, n = this.mZ, p = 0, r = c.length; p < r; p++) d = c[p], g = d.ni, f = n[g], f != s && k[f] && (k[f].IY(d.eh), k[f].ZA(d.mp), h.push(k[f]), this.Fua(f), delete n[g]); return h }, Wn: function(c) { var d = document.documentElement, f = window, g = s, g = "function" === typeof c.getBoundingClientRect ? c.getBoundingClientRect() : c instanceof HTMLCanvasElement ? { left: 0, top: 0, width: c.width, height: c.height }: { left: 0, top: 0, width: parseInt(c.style.width), height: parseInt(c.style.height) }; return { left: g.left + f.pageXOffset - d.clientLeft, top: g.top + f.pageYOffset - d.clientTop, width: g.width, height: g.height } }, yBa: function(c) { for (var d = s, f = this.Raa, g = c.ni, h = f.length - 1; 0 <= h; h--) if (f[h].ni == g) { d = f[h]; break } d || (d = c); return d }, YHa: function(c) { for (var d = t, f = this.Raa, g = c.ni, h = f.length - 1; 0 <= h; h--) if (f[h].ni == g) { f[h] = c; d = q; break } d || (50 >= f.length ? f.push(c) : (f[this.YX] = c, this.YX = (this.YX + 1) % 50)) }, ZH: function(c, d, f) { var g = this.Qaa; c = this.vt.C_(c, d, f); d = new C.zU(c.x, c.y); d.ZA(g.x, g.y); g.x = c.x; g.y = c.y; return d }, bC: function(c, d, f) { var g = this.pua; this.vt.yra(c, d); d = new C.$e(f); d.EHa(c.x, c.y); d.eva(g.x, g.y); g.x = c.x; g.y = c.y; return d }, dC: function(c, d) { if (c.pageX != s) return { x: c.pageX, y: c.pageY }; d.left -= document.body.scrollLeft; d.top -= document.body.scrollTop; return { x: c.clientX, y: c.clientY } }, PP: function(c, d) { for (var f = [], g = this.vt, h, k, n = this.Qaa, p = c.changedTouches.length, r = 0; r < p; r++) if (h = c.changedTouches[r]) { var v; v = C.Sc.xD === C.Sc.tu ? g.C_(h.pageX, h.pageY, d) : g.C_(h.clientX, h.clientY, d); h.identifier != s ? (h = new C.zU(v.x, v.y, h.identifier), k = this.yBa(h).mh(), h.ZA(k.x, k.y), this.YHa(h)) : (h = new C.zU(v.x, v.y), h.ZA(n.x, n.y)); n.x = v.x; n.y = v.y; f.push(h) } return f }, jGa: function(c) { if (!this.laa) { var d = this.vt = C.view, f = this, g = "touches" in C.Sc.uH; "mouse" in C.Sc.uH && (C.qb(window, "mousedown", function() { f.BA = q }, t), C.qb(window, "mouseup", function(d) { var h = f.BA; f.BA = t; if (h) { var h = f.Wn(c), k = f.dC(d, h); C.Ju(new C.az(h.left, h.top, h.width, h.height), k) || (g || f.SP([f.ZH(k.x, k.y, h)]), h = f.bC(k, h, C.$e.Nl), h.jy(d.button), C.Ka.dispatchEvent(h)) } }, t), C.qb(c, "mousedown", function(d) { f.BA = q; var h = f.Wn(c), k = f.dC(d, h); g || f.O0([f.ZH(k.x, k.y, h)]); h = f.bC(k, h, C.$e.Zm); h.jy(d.button); C.Ka.dispatchEvent(h); d.stopPropagation(); d.preventDefault(); c.focus() }, t), C.qb(c, "mouseup", function(d) { f.BA = t; var h = f.Wn(c), k = f.dC(d, h); g || f.SP([f.ZH(k.x, k.y, h)]); h = f.bC(k, h, C.$e.Nl); h.jy(d.button); C.Ka.dispatchEvent(h); d.stopPropagation(); d.preventDefault() }, t), C.qb(c, "mousemove", function(d) { var h = f.Wn(c), k = f.dC(d, h); g || f.P0([f.ZH(k.x, k.y, h)]); h = f.bC(k, h, C.$e.C6); f.BA ? h.jy(d.button) : h.jy(s); C.Ka.dispatchEvent(h); d.stopPropagation(); d.preventDefault() }, t), C.qb(c, "mousewheel", function(d) { var g = f.Wn(c), h = f.dC(d, g), g = f.bC(h, g, C.$e.ZT); g.jy(d.button); g.oia(0, d.wheelDelta); C.Ka.dispatchEvent(g); d.stopPropagation(); d.preventDefault() }, t), C.qb(c, "DOMMouseScroll", function(d) { var g = f.Wn(c), h = f.dC(d, g), g = f.bC(h, g, C.$e.ZT); g.jy(d.button); g.oia(0, -120 * d.detail); C.Ka.dispatchEvent(g); d.stopPropagation(); d.preventDefault() }, t)); if (window.navigator.msPointerEnabled) { var h = { MSPointerDown: f.O0, MSPointerMove: f.P0, MSPointerUp: f.SP, MSPointerCancel: f.Mea }, k; for (k in h)(function(d, g) { C.qb(c, d, function(d) { var h = f.Wn(c); h.left -= document.documentElement.scrollLeft; h.top -= document.documentElement.scrollTop; g.call(f, [f.ZH(d.clientX, d.clientY, h)]); d.stopPropagation() }, t) })(k, h[k]) } g && (C.qb(c, "touchstart", function(d) { if (d.changedTouches) { var g = f.Wn(c); g.left -= document.body.scrollLeft; g.top -= document.body.scrollTop; f.O0(f.PP(d, g)); d.stopPropagation(); d.preventDefault(); c.focus() } }, t), C.qb(c, "touchmove", function(d) { if (d.changedTouches) { var g = f.Wn(c); g.left -= document.body.scrollLeft; g.top -= document.body.scrollTop; f.P0(f.PP(d, g)); d.stopPropagation(); d.preventDefault() } }, t), C.qb(c, "touchend", function(d) { if (d.changedTouches) { var g = f.Wn(c); g.left -= document.body.scrollLeft; g.top -= document.body.scrollTop; f.SP(f.PP(d, g)); d.stopPropagation(); d.preventDefault() } }, t), C.qb(c, "touchcancel", function(g) { if (g.changedTouches) { var h = f.Wn(c); h.left -= document.body.scrollLeft; h.top -= document.body.scrollTop; d.Mea(f.PP(g, h)); g.stopPropagation(); g.preventDefault() } }, t)); this.cba(); this.bba(); this.laa = q } }, cba: u(), bba: u(), update: function(c) { this.Fv > this.hL && (this.Fv -= this.hL, C.Ka.dispatchEvent(new C.ema(this.$U))); this.Fv += c } }; var H = C.dfa; H.k3a = function(c) { this.gL !== c && (this.gL = c, c = C.Q.Em(), this.gL ? (this.Fv = 0, c.lR(this)) : (this.Fv = 0, c.GJ(this))) }; H.l3a = function(c) { this.hL !== c && (this.hL = c) }; H.cba = function() { C.qb(C.Pb, "keydown", function(c) { C.Ka.dispatchEvent(new C.N5(c.keyCode, q)); c.stopPropagation(); c.preventDefault() }, t); C.qb(C.Pb, "keyup", function(c) { C.Ka.dispatchEvent(new C.N5(c.keyCode, t)); c.stopPropagation(); c.preventDefault() }, t) }; H.bba = function() { var c = window; this.$U = new C.Eja; this.fL = c.DeviceMotionEvent || c.DeviceOrientationEvent; C.Sc.tu == C.Sc.w4 && (this.fL = window.DeviceOrientationEvent); var d = this.fL == c.DeviceMotionEvent ? "devicemotion": "deviceorientation", f = navigator.userAgent; if (/Android/.test(f) || /Adr/.test(f) && C.Sc.tu == C.x4) this.hPa = -1; C.qb(c, d, this.Cya.bind(this), t) }; H.Cya = function(c) { var d = window; if (this.gL) { var f = this.$U; if (this.fL == window.DeviceMotionEvent) { var g = c.accelerationIncludingGravity; f.x = 0.1 * this.V8 * g.x; f.y = 0.1 * this.V8 * g.y; f.f = 0.1 * g.f } else f.x = 0.981 * (c.gamma / 90), f.y = 0.981 * -(c.beta / 90), f.f = 0.981 * (c.alpha / 90); f.timestamp = c.timeStamp || Date.now(); c = f.x; d.orientation === C.cqa ? (f.x = -f.y, f.y = c) : d.orientation === C.bqa ? (f.x = f.y, f.y = -c) : d.orientation === C.dqa && (f.x = -f.x, f.y = -f.y) } }; delete H; C.qKa = function(c, d, f, g, h, k) { this.a = c; this.b = d; this.H = f; this.P = g; this.na = h; this.oa = k }; C.tKa = function() { return { a: 1, b: 0, H: 0, P: 1, na: 0, oa: 0 } }; C.wv = function(c, d) { return { x: d.a * c.x + d.H * c.y + d.na, y: d.b * c.x + d.P * c.y + d.oa } }; C.Qs = function(c, d, f) { return { x: f.a * c + f.H * d + f.na, y: f.b * c + f.P * d + f.oa } }; C.fNa = function(c, d) { return { width: d.a * c.width + d.H * c.height, height: d.b * c.width + d.P * c.height } }; C.uKa = function() { return { a: 1, b: 0, H: 0, P: 1, na: 0, oa: 0 } }; C.sKa = function() { return { a: 1, b: 0, H: 0, P: 1, na: 0, oa: 0 } }; C.Gi = function(c, d) { var f = C.jo(c), g = C.io(c), h = C.Xp(c), k = C.Yp(c), n = C.Qs(g, f, d), f = C.Qs(h, f, d), g = C.Qs(g, k, d), p = C.Qs(h, k, d), h = Math.min(n.x, f.x, g.x, p.x), k = Math.max(n.x, f.x, g.x, p.x), r = Math.min(n.y, f.y, g.y, p.y), n = Math.max(n.y, f.y, g.y, p.y); return C.rect(h, r, k - h, n - r) }; C.Io = function(c, d) { var f = C.jo(c), g = C.io(c), h = C.Xp(c), k = C.Yp(c), n = C.Qs(g, f, d), f = C.Qs(h, f, d), g = C.Qs(g, k, d), p = C.Qs(h, k, d), h = Math.min(n.x, f.x, g.x, p.x), k = Math.max(n.x, f.x, g.x, p.x), r = Math.min(n.y, f.y, g.y, p.y), n = Math.max(n.y, f.y, g.y, p.y); c.x = h; c.y = r; c.width = k - h; c.height = n - r; return c }; C.OJ = function(c, d, f) { return { a: c.a, b: c.b, H: c.H, P: c.P, na: c.na + c.a * d + c.H * f, oa: c.oa + c.b * d + c.P * f } }; C.vKa = function(c, d, f) { return { a: c.a * d, b: c.b * d, H: c.H * f, P: c.P * f, na: c.na, oa: c.oa } }; C.Pja = function(c) { var d = Math.sin(1.57079633), f = Math.cos(1.57079633); return { a: c.a * f + c.H * d, b: c.b * f + c.P * d, H: c.H * f - c.a * d, P: c.P * f - c.b * d, na: c.na, oa: c.oa } }; C.Qg = function(c, d) { return { a: c.a * d.a + c.b * d.H, b: c.a * d.b + c.b * d.P, H: c.H * d.a + c.P * d.H, P: c.H * d.b + c.P * d.P, na: c.na * d.a + c.oa * d.H + d.na, oa: c.na * d.b + c.oa * d.P + d.oa } }; C.rKa = function(c, d) { return c.a === d.a && c.b === d.b && c.H === d.H && c.P === d.P && c.na === d.na && c.oa === d.oa }; C.iS = function(c) { var d = 1 / (c.a * c.P - c.b * c.H); return { a: d * c.P, b: -d * c.b, H: -d * c.H, P: d * c.a, na: d * (c.H * c.oa - c.P * c.na), oa: d * (c.b * c.na - c.a * c.oa) } }; C.Y6 = parseFloat("1.192092896e-07F"); C.T1 = function(c) { return C.d( - c.x, -c.y) }; C.ho = function(c, d) { return C.d(c.x + d.x, c.y + d.y) }; C.cc = function(c, d) { return C.d(c.x - d.x, c.y - d.y) }; C.Wp = function(c, d) { return C.d(c.x * d, c.y * d) }; C.S1 = function(c, d) { return C.Wp(C.ho(c, d), 0.5) }; C.IC = function(c, d) { return c.x * d.x + c.y * d.y }; C.REa = function(c, d) { return c.x * d.y - c.y * d.x }; C.SQ = function(c) { return C.d( - c.y, c.x) }; C.Q0a = function(c) { return C.d(c.y, -c.x) }; C.P0a = function(c, d) { return C.Wp(d, C.IC(c, d) / C.IC(d, d)) }; C.R0a = function(c, d) { return C.d(c.x * d.x - c.y * d.y, c.x * d.y + c.y * d.x) }; C.U0a = function(c, d) { return C.d(c.x * d.x + c.y * d.y, c.y * d.x - c.x * d.y) }; C.nga = function(c) { return C.IC(c, c) }; C.lga = function(c, d) { return C.nga(C.cc(c, d)) }; C.Ye = function(c) { return Math.sqrt(C.nga(c)) }; C.kga = function(c, d) { return C.Ye(C.cc(c, d)) }; C.vf = function(c) { return C.Wp(c, 1 / C.Ye(c)) }; C.M0a = function(c) { return C.d(Math.cos(c), Math.sin(c)) }; C.UEa = function(c) { return Math.atan2(c.y, c.x) }; C.Nf = function(c, d, f) { if (d > f) { var g = d; d = f; f = g } return c < d ? d: c < f ? c: f }; C.jga = function(c) { var d = C.d(0, 0), f = C.d(1, 1); return C.d(C.Nf(c.x, d.x, f.x), C.Nf(c.y, d.y, f.y)) }; C.mga = function() { var c = C.Q.aa; return C.d(c.width, c.height) }; C.L0a = function(c, d) { return C.d(d(c.x), d(c.y)) }; C.oga = function(c, d, f) { return C.ho(C.Wp(c, 1 - f), C.Wp(d, f)) }; C.N0a = function(c, d, f) { return c.x - f <= d.x && d.x <= c.x + f && c.y - f <= d.y && d.y <= c.y + f ? q: t }; C.K0a = function(c, d) { return C.d(c.x * d.x, c.y * d.y) }; C.J0a = function(c, d) { var f = C.vf(c), g = C.vf(d), f = Math.atan2(f.x * g.y - f.y * g.x, C.IC(f, g)); return Math.abs(f) < C.Y6 ? 0 : f }; C.I0a = function(c, d) { var f = Math.acos(C.IC(C.vf(c), C.vf(d))); return Math.abs(f) < C.Y6 ? 0 : f }; C.TEa = function(c, d, f) { c = C.cc(c, d); var g = Math.cos(f); f = Math.sin(f); var h = c.x; c.x = h * g - c.y * f + d.x; c.y = h * f + c.y * g + d.y; return c }; C.R1 = function(c, d, f, g, h) { if (c.x == d.x && c.y == d.y || f.x == g.x && f.y == g.y) return t; var k = d.x - c.x; d = d.y - c.y; var n = g.x - f.x; g = g.y - f.y; var p = c.x - f.x; c = c.y - f.y; f = g * k - n * d; h.x = n * c - g * p; h.y = k * c - d * p; if (0 == f) return 0 == h.x || 0 == h.y ? q: t; h.x /= f; h.y /= f; return q }; C.T0a = function(c, d, f, g) { var h = C.d(0, 0); return C.R1(c, d, f, g, h) && 0 <= h.x && 1 >= h.x && 0 <= h.y && 1 >= h.y ? q: t }; C.O0a = function(c, d, f, g) { var h = C.d(0, 0); return C.R1(c, d, f, g, h) ? (f = C.d(0, 0), f.x = c.x + h.x * (d.x - c.x), f.y = c.y + h.x * (d.y - c.y), f) : C.d(0, 0) }; C.S0a = function(c, d) { return c != s && d != s ? c.x == d.x && c.y == d.y: t }; C.TQ = function(c) { c.x = 0; c.y = 0 }; C.gs = function(c, d) { c.x = d.x; c.y = d.y }; C.JC = function(c, d) { c.x *= d; c.y *= d }; C.pga = function(c, d) { c.x -= d.x; c.y -= d.y }; C.RQ = function(c, d) { c.x += d.x; c.y += d.y }; C.SEa = function(c) { C.JC(c, 1 / Math.sqrt(c.x * c.x + c.y * c.y)) }; C.d4 = function(c, d, f, g, h) { h += g; if (! (1 >= h)) { d *= 0.5; for (var k, n = h - 1, p = g; p < h; p++) { k = 2 * p; var r = C.d(c[2 * p], c[2 * p + 1]), v; if (0 === p) v = C.SQ(C.vf(C.cc(r, C.d(c[2 * (p + 1)], c[2 * (p + 1) + 1])))); else if (p === n) v = C.SQ(C.vf(C.cc(C.d(c[2 * (p - 1)], c[2 * (p - 1) + 1]), r))); else { v = C.d(c[2 * (p - 1)], c[2 * (p - 1) + 1]); var y = C.d(c[2 * (p + 1)], c[2 * (p + 1) + 1]), z = C.vf(C.cc(y, r)), D = C.vf(C.cc(v, r)), E = Math.acos(C.IC(z, D)); v = E < C.ng(70) ? C.SQ(C.vf(C.S1(z, D))) : E < C.ng(170) ? C.vf(C.S1(z, D)) : C.SQ(C.vf(C.cc(y, v))) } v = C.Wp(v, d); f[2 * k] = r.x + v.x; f[2 * k + 1] = r.y + v.y; f[2 * (k + 1)] = r.x - v.x; f[2 * (k + 1) + 1] = r.y - v.y } for (p = 0 == g ? 0 : g - 1; p < n; p++) { k = 2 * p; c = k + 2; d = C.fS(f[2 * k], f[2 * k + 1]); h = C.fS(f[2 * (k + 1)], f[2 * (k + 1) + 1]); k = C.fS(f[2 * c], f[2 * c]); g = C.fS(f[2 * (c + 1)], f[2 * (c + 1) + 1]); d = !C.QJa(d.x, d.y, g.x, g.y, h.x, h.y, k.x, k.y); if (!d.sI && (0 > d.value || 1 < d.value)) d.sI = q; d.sI && (f[2 * c] = g.x, f[2 * c + 1] = g.y, f[2 * (c + 1)] = k.x, f[2 * (c + 1) + 1] = k.y) } } }; C.QJa = function(c, d, f, g, h, k, n, p) { if (c == f && d == g || h == n && k == p) return { sI: t, value: 0 }; f -= c; g -= d; h -= c; k -= d; n -= c; p -= d; c = Math.sqrt(f * f + g * g); f /= c; g /= c; d = h * f + k * g; k = k * f - h * g; h = d; d = n * f + p * g; p = p * f - n * g; n = d; return k == p ? { sI: t, value: 0 }: { sI: q, value: (n + (h - n) * p / (p - k)) / c } }; C.P6a = function(c) { for (var d = 0, f = c.length; d < f; d++) { var g = c[(d + 1) % f], h = c[(d + 2) % f]; if (0 < C.REa(C.cc(g, c[d]), C.cc(h, g))) return t } return q }; C.cLa = function(c, d) { d[2] = d[3] = d[6] = d[7] = d[8] = d[9] = d[11] = d[14] = 0; d[10] = d[15] = 1; d[0] = c.a; d[4] = c.H; d[12] = c.na; d[1] = c.b; d[5] = c.P; d[13] = c.oa }; C.RLa = function(c, d) { d.a = c[0]; d.H = c[4]; d.na = c[12]; d.b = c[1]; d.P = c[5]; d.oa = c[13] }; C.zU = C.O.extend({ eh: s, mp: s, ni: 0, Nba: t, NG: s, ctor: function(c, d, f) { this.eh = C.d(c || 0, d || 0); this.ni = f || 0 }, mh: function() { return { x: this.eh.x, y: this.eh.y } }, XAa: function() { return this.eh.x }, YAa: function() { return this.eh.y }, JP: function() { return { x: this.mp.x, y: this.mp.y } }, EWa: function() { return { x: this.NG.x, y: this.NG.y } }, p0: function() { return C.cc(this.eh, this.mp) }, WAa: function() { return { x: this.eh.x, y: this.eh.y } }, dWa: function() { return { x: this.mp.x, y: this.mp.y } }, FWa: function() { return { x: this.NG.x, y: this.NG.y } }, OUa: A("ni"), IAa: A("ni"), v5a: function(c, d, f) { this.mp = this.eh; this.eh = C.d(d || 0, f || 0); this.ni = c; this.Nba || (this.NG = C.d(this.eh), this.Nba = q) }, IY: function(c, d) { d === m ? (this.eh.x = c.x, this.eh.y = c.y) : (this.eh.x = c, this.eh.y = d) }, ZA: function(c, d) { this.mp = d === m ? C.d(c.x, c.y) : C.d(c || 0, d || 0) } }); C.oe = C.O.extend({ xc: 0, hw: t, Cf: s, AY: x("Cf"), ctor: x("xc"), $H: A("xc"), stopPropagation: function() { this.hw = q }, LYa: A("hw"), UTa: A("Cf") }); C.oe.SK = 0; C.oe.Vy = 1; C.oe.Fy = 2; C.oe.tv = 3; C.oe.hq = 4; C.jq = C.oe.extend({ tW: s, gca: s, ctor: function(c) { C.oe.prototype.ctor.call(this, C.oe.hq); this.tW = c }, setUserData: x("gca"), getUserData: A("gca"), zUa: A("tW") }); C.$e = C.oe.extend({ t$: 0, AV: 0, Pn: 0, cj: 0, cY: 0, dY: 0, rba: 0, sba: 0, ctor: function(c) { C.oe.prototype.ctor.call(this, C.oe.tv); this.t$ = c }, oia: function(c, d) { this.rba = c; this.sba = d }, uWa: A("rba"), vWa: A("sba"), EHa: function(c, d) { this.Pn = c; this.cj = d }, mh: function() { return { x: this.Pn, y: this.cj } }, WAa: function() { return { x: this.Pn, y: C.view.Oz.height - this.cj } }, eva: function(c, d) { this.cY = c; this.dY = d }, p0: function() { return { x: this.Pn - this.cY, y: this.cj - this.dY } }, cUa: function() { return this.Pn - this.cY }, dUa: function() { return this.cj - this.dY }, jy: x("AV"), kTa: A("AV"), XAa: A("Pn"), YAa: A("cj") }); C.$e.NONE = 0; C.$e.Zm = 1; C.$e.Nl = 2; C.$e.C6 = 3; C.$e.ZT = 4; C.$e.eka = 0; C.$e.VKa = 2; C.$e.UKa = 1; C.$e.PKa = 3; C.$e.QKa = 4; C.$e.RKa = 5; C.$e.SKa = 6; C.$e.TKa = 7; C.El = C.oe.extend({ ot: 0, Kf: s, ctor: function(c) { C.oe.prototype.ctor.call(this, C.oe.SK); this.Kf = c || [] }, yUa: A("ot"), lXa: A("Kf"), uPa: x("ot"), yPa: x("Kf") }); C.El.tMa = 5; C.El.Py = { mS: 0, vT: 1, ZS: 2, BS: 3 }; C.Oa = C.O.extend({ GX: s, xc: 0, cp: s, Wi: t, rt: 0, gf: s, xe: t, qA: q, ctor: function(c, d, f) { this.GX = f; this.xc = c || 0; this.cp = d || "" }, HY: x("xe"), WOa: A("xe"), BG: x("Wi"), rta: A("Wi"), OOa: A("xc"), JOa: A("cp"), BY: x("rt"), HOa: A("rt"), CG: x("gf"), MOa: A("gf"), uu: function() { return this.GX != s }, s: B(s), Ib: x("qA"), isEnabled: A("qA"), fR: u(), rh: u() }); C.Oa.mqa = 0; C.Oa.Gs = 1; C.Oa.TK = 2; C.Oa.Vy = 3; C.Oa.tv = 4; C.Oa.Fy = 5; C.Oa.hq = 6; C.PE = C.Oa.extend({ jG: s, ctor: function(c, d) { this.jG = d; var f = this; C.Oa.prototype.ctor.call(this, C.Oa.hq, c, function(c) { f.jG != s && f.jG(c) }) }, uu: function() { return C.Oa.prototype.uu.call(this) && this.jG != s }, s: function() { return new C.PE(this.cp, this.jG) } }); C.PE.create = function(c, d) { return new C.PE(c, d) }; C.Ps = C.Oa.extend({ MQ: s, JI: s, NQ: s, OQ: s, ctor: function() { var c = this; C.Oa.prototype.ctor.call(this, C.Oa.tv, C.Ps.He, function(d) { var f = C.$e; switch (d.t$) { case f.Zm: c.MQ && c.MQ(d); break; case f.Nl: c.JI && c.JI(d); break; case f.C6: c.NQ && c.NQ(d); break; case f.ZT: c.OQ && c.OQ(d) } }) }, s: function() { var c = new C.Ps; c.MQ = this.MQ; c.JI = this.JI; c.NQ = this.NQ; c.OQ = this.OQ; return c }, uu: B(q) }); C.Ps.He = "__cc_mouse"; C.Ps.create = function() { return new C.Ps }; C.Ho = C.Oa.extend({ Gz: s, yy: t, nc: s, yd: s, cd: s, Xe: s, ctor: function() { C.Oa.prototype.ctor.call(this, C.Oa.Gs, C.Ho.He, s); this.Gz = [] }, j5a: x("yy"), s: function() { var c = new C.Ho; c.nc = this.nc; c.yd = this.yd; c.cd = this.cd; c.Xe = this.Xe; c.yy = this.yy; return c }, uu: function() { return ! this.nc ? (C.log(C.n.wqa), t) : q } }); C.Ho.He = "__cc_touch_one_by_one"; C.Ho.create = function() { return new C.Ho }; C.Go = C.Oa.extend({ MI: s, OI: s, HC: s, NI: s, ctor: function() { C.Oa.prototype.ctor.call(this, C.Oa.TK, C.Go.He, s) }, s: function() { var c = new C.Go; c.MI = this.MI; c.OI = this.OI; c.HC = this.HC; c.NI = this.NI; return c }, uu: function() { return this.MI == s && this.OI == s && this.HC == s && this.NI == s ? (C.log(C.n.vqa), t) : q } }); C.Go.He = "__cc_touch_all_at_once"; C.Go.create = function() { return new C.Go }; C.Oa.create = function(c) { C.assert(c && c.event, C.n.gma); var d = c.event; delete c.event; var f = s; d === C.Oa.Gs ? f = new C.Ho: d === C.Oa.TK ? f = new C.Go: d === C.Oa.tv ? f = new C.Ps: d === C.Oa.hq ? (f = new C.PE(c.Iza, c.n_), delete c.Iza, delete c.n_) : d === C.Oa.Vy ? f = new C.Os: d === C.Oa.Fy && (f = new C.Ns(c.n_), delete c.n_); for (var g in c) f[g] = c[g]; return f }; C.Tca = function(c) { var d, f = c.length, g = Array(f); for (d = 0; d < f; d += 1) g[d] = c[d]; return g }; C.xqa = C.O.extend({ Tk: s, al: s, Iea: 0, ctor: function() { this.Tk = []; this.al = [] }, size: function() { return this.Tk.length + this.al.length }, empty: function() { return 0 === this.Tk.length && 0 === this.al.length }, push: function(c) { 0 == c.rt ? this.al.push(c) : this.Tk.push(c) }, Kxa: function() { this.al.length = 0 }, Jxa: function() { this.Tk.length = 0 }, clear: function() { this.al.length = 0; this.Tk.length = 0 }, EUa: A("Tk"), tWa: A("al") }); C.cL = function(c) { var d = C.oe, f = c.xc; if (f === d.Fy) return C.Ns.He; if (f === d.hq) return c.tW; if (f === d.Vy) return C.Os.He; if (f === d.tv) return C.Ps.He; f === d.SK && C.log(C.n.cL); return "" }; C.Ka = { VS: 0, fK: 1, GD: 2, wLa: 3, bm: {}, tG: {}, fp: {}, mN: {}, U$: {}, mB: [], vF: [], ew: 0, qA: t, Daa: 0, pta: [C.qf.kK, C.qf.JD], WN: function(c) { this.fp[c.ub] != s && this.vF.push(c); c = c.le(); for (var d = 0, f = c.length; d < f; d++) this.WN(c[d]) }, hs: function(c, d) { var f = this.fp[c.ub], g, h; if (f) { g = 0; for (h = f.length; g < h; g++) f[g].HY(q) } if (d === q) { f = c.le(); g = 0; for (h = f.length; g < h; g++) this.hs(f[g], q) } }, Mm: function(c, d) { var f = this.fp[c.ub], g, h; if (f) { g = 0; for (h = f.length; g < h; g++) f[g].HY(t) } this.WN(c); if (d === q) { f = c.le(); g = 0; for (h = f.length; g < h; g++) this.Mm(f[g], q) } }, Z8: function(c) { 0 === this.ew ? this.C$(c) : this.mB.push(c) }, C$: function(c) { var d = c.cp, f = this.bm[d]; f || (f = new C.xqa, this.bm[d] = f); f.push(c); 0 == c.rt ? (this.Vt(d, this.GD), d = c.gf, d == s && C.log(C.n.Bza), this.Sqa(d, c), d.$c && this.Mm(d)) : this.Vt(d, this.fK) }, PW: function(c) { return this.bm[c] }, bwa: function() { if (0 != this.vF.length) { for (var c = this.vF, d, f, g = this.fp, h = 0, k = c.length; h < k; h++) if (d = g[c[h].ub]) for (var n = 0, p = d.length; n < p; n++)(f = d[n]) && this.Vt(f.cp, this.GD); this.vF.length = 0 } }, dba: function(c) { if (c) for (var d, f = 0; f < c.length;) d = c[f], d.BG(t), d.gf != s && (this.M9(d.gf, d), d.CG(s)), 0 === this.ew ? C.Id(c, d) : ++f }, Jw: function(c) { var d = this.bm[c]; if (d) { var f = d.Tk; this.dba(d.al); this.dba(f); delete this.tG[c]; this.ew || (d.clear(), delete this.bm[c]) } for (var f = this.mB, g, d = 0; d < f.length;)(g = f[d]) && g.cp == c ? C.Id(f, g) : ++d }, SY: function(c) { var d = this.VS, f = this.tG; f[c] && (d = f[c]); d != this.VS && (f[c] = this.VS, d & this.fK && this.Hva(c), d & this.GD && ((d = C.Q.gg) ? this.Jva(c, d) : f[c] = this.GD)) }, Jva: function(c, d) { var f = this.PW(c); if (f) { var g = f.al; g && 0 !== g.length && (this.Daa = 0, this.mN = {}, this.FZ(d, q), f.al.sort(this.Gva)) } }, Gva: function(c, d) { var f = C.Ka.mN; return f[d.gf.ub] - f[c.gf.ub] }, Hva: function(c) { if (c = this.bm[c]) { var d = c.Tk; if (d && 0 !== d.length) { d.sort(this.Iva); for (var f = 0, g = d.length; f < g && !(0 <= d[f].rt);)++f; c.Iea = f } } }, Iva: function(c, d) { return c.rt - d.rt }, HX: function(c) { if (c = this.bm[c]) { var d = c.Tk, f = c.al, g, h; if (f) for (g = 0; g < f.length;) h = f[g], h.Wi ? ++g: C.Id(f, h); if (d) for (g = 0; g < d.length;) h = d[g], h.Wi ? ++g: C.Id(d, h); f && 0 === f.length && c.Kxa(); d && 0 === d.length && c.Jxa() } }, FO: function(c) { var d = this.ew; C.assert(0 < d, C.n.hma); c.xc == C.oe.SK ? (this.HX(C.Ho.He), this.HX(C.Go.He)) : this.HX(C.cL(c)); if (! (1 < d)) { C.assert(1 == d, C.n.ima); c = this.bm; var d = this.tG, f; for (f in c) c[f].empty() && (delete d[f], delete c[f]); f = this.mB; if (0 !== f.length) { c = 0; for (d = f.length; c < d; c++) this.C$(f[c]); this.mB.length = 0 } } }, Yta: function(c, d) { if (!c.rta) return t; var f = d.event, g = d.dha; f.AY(c.gf); var h = t, k, n = f.ot, p = C.El.Py; if (n == p.mS) c.nc && (h = c.nc(g, f)) && c.Wi && c.Gz.push(g); else if (0 < c.Gz.length && -1 != (k = c.Gz.indexOf(g))) h = q, n === p.vT && c.yd ? c.yd(g, f) : n === p.ZS ? (c.cd && c.cd(g, f), c.Wi && c.Gz.splice(k, 1)) : n === p.BS && (c.Xe && c.Xe(g, f), c.Wi && c.Gz.splice(k, 1)); return f.hw ? (C.Ka.FO(f), q) : h && c.Wi && c.yy ? (d.sEa && d.touches.splice(g, 1), q) : t }, Hra: function(c) { this.SY(C.Ho.He); this.SY(C.Go.He); var d = this.PW(C.Ho.He), f = this.PW(C.Go.He); if (! (s == d && s == f)) { var g = c.Kf, h = C.Tca(g), k = { event: c, sEa: d && f, touches: h, dha: s }; if (d) for (var n = 0; n < g.length; n++) if (k.dha = g[n], this.hW(d, this.Yta, k), c.hw) return; if (f && 0 < h.length && (this.hW(f, this.$ta, { event: c, touches: h }), c.hw)) return; this.FO(c) } }, $ta: function(c, d) { if (!c.Wi) return t; var f = C.El.Py, g = d.event, h = d.touches, k = g.ot; g.AY(c.gf); k == f.mS && c.MI ? c.MI(h, g) : k == f.vT && c.OI ? c.OI(h, g) : k == f.ZS && c.HC ? c.HC(h, g) : k == f.BS && c.NI && c.NI(h, g); return g.hw ? (C.Ka.FO(g), q) : t }, Sqa: function(c, d) { var f = this.fp[c.ub]; f || (f = [], this.fp[c.ub] = f); f.push(d) }, M9: function(c, d) { var f = this.fp[c.ub]; f && (C.Id(f, d), 0 === f.length && delete this.fp[c.ub]) }, hW: function(c, d, f) { var g = t, h = c.Tk, k = c.al, n = 0, p; if (h && 0 !== h.length) for (; n < c.Iea; ++n) if (p = h[n], p.isEnabled() && !p.xe && p.Wi && d(p, f)) { g = q; break } if (k && !g) for (c = 0; c < k.length; c++) if (p = k[c], p.isEnabled() && !p.xe && p.Wi && d(p, f)) { g = q; break } if (h && !g) for (; n < h.length && !(p = h[n], p.isEnabled() && !p.xe && p.Wi && d(p, f)); ++n); }, Vt: function(c, d) { var f = this.tG; f[c] = f[c] == s ? d: d | f[c] }, FZ: function(c, d) { var f = c.le(), g = 0, h = f.length, k = this.U$, n = this.fp; if (0 < h) { for (var p; g < h; g++) if ((p = f[g]) && 0 > p.Wa) this.FZ(p, t); else break; n[c.ub] != s && (k[c.Tq] || (k[c.Tq] = []), k[c.Tq].push(c.ub)); for (; g < h; g++)(p = f[g]) && this.FZ(p, t) } else n[c.ub] != s && (k[c.Tq] || (k[c.Tq] = []), k[c.Tq].push(c.ub)); if (d) { var f = [], r; for (r in k) f.push(r); f.sort(this.Kva); r = f.length; p = this.mN; for (g = 0; g < r; g++) { h = k[f[g]]; for (n = 0; n < h.length; n++) p[h[n]] = ++this.Daa } this.U$ = {} } }, Kva: function(c, d) { return c - d }, addListener: function(c, d) { C.assert(c && d, C.n.Dza); if (c instanceof C.Oa) { if (c.Wi) { C.log(C.n.Fza); return } } else C.assert("number" !== typeof d, C.n.Eza), c = C.Oa.create(c); c.uu() && ("number" == typeof d ? 0 == d ? C.log(C.n.Cza) : (c.CG(s), c.BY(d), c.BG(q), c.HY(t), this.Z8(c)) : (c.CG(d), c.BY(0), c.BG(q), this.Z8(c))) }, MZ: function(c, d) { var f = C.PE.create(c, d); this.addListener(f, 1); return f }, removeListener: function(c) { if (c != s) { var d, f = this.bm, g; for (g in f) { var h = f[g], k = h.Tk; (d = this.fba(h.al, c)) ? this.Vt(c.cp, this.GD) : (d = this.fba(k, c)) && this.Vt(c.cp, this.fK); h.empty() && (delete this.tG[c.cp], delete f[g]); if (d) break } if (!d) { d = this.mB; f = 0; for (g = d.length; f < g; f++) if (h = d[f], h == c) { C.Id(d, h); break } } } }, fba: function(c, d) { if (c == s) return t; for (var f = 0, g = c.length; f < g; f++) { var h = c[f]; if (h == d) return h.BG(t), h.gf != s && (this.M9(h.gf, h), h.CG(s)), 0 == this.ew && C.Id(c, h), q } return t }, Tga: function(c, d) { if (c instanceof C.A) { delete this.mN[c.ub]; C.Id(this.vF, c); var f = this.fp[c.ub]; if (f) { for (var g = C.Tca(f), f = 0; f < g.length; f++) this.removeListener(g[f]); g.length = 0; g = this.mB; for (f = 0; f < g.length;) { var h = g[f]; h.gf == c ? (h.CG(s), h.BG(t), g.splice(f, 1)) : ++f } if (d === q) { g = c.le(); f = 0; for (h = g.length; f < h; f++) this.Tga(g[f], q) } } } else c == C.Oa.Gs ? this.Jw(C.Ho.He) : c == C.Oa.TK ? this.Jw(C.Go.He) : c == C.Oa.tv ? this.Jw(C.Ps.He) : c == C.Oa.Fy ? this.Jw(C.Ns.He) : c == C.Oa.Vy ? this.Jw(C.Os.He) : C.log(C.n.Gza) }, g2a: function(c) { this.Jw(c) }, T1a: function() { var c = this.bm, d = this.pta, f; for (f in c) - 1 === d.indexOf(f) && this.Jw(f) }, S4a: function(c, d) { if (c != s) { var f = this.bm, g; for (g in f) { var h = f[g].Tk; if (h && -1 != h.indexOf(c)) { c.gf != s && C.log(C.n.Hza); c.rt !== d && (c.BY(d), this.Vt(c.cp, this.fK)); break } } } }, Ib: x("qA"), isEnabled: A("qA"), dispatchEvent: function(c) { if (this.qA) { this.bwa(); this.ew++; (!c || !c.$H) && e("event is undefined"); if (c.xc == C.oe.SK) this.Hra(c); else { var d = C.cL(c); this.SY(d); d = this.bm[d]; d != s && this.hW(d, this.Sta, c); this.FO(c) } this.ew-- } }, Sta: function(c, d) { d.AY(c.gf); c.GX(d); return d.hw }, DRa: function(c, d) { var f = new C.jq(c); f.setUserData(d); this.dispatchEvent(f) } }; C.ema = C.oe.extend({ U8: s, ctor: function(c) { C.oe.prototype.ctor.call(this, C.oe.Fy); this.U8 = c } }); C.N5 = C.oe.extend({ jX: 0, kaa: t, ctor: function(c, d) { C.oe.prototype.ctor.call(this, C.oe.Vy); this.jX = c; this.kaa = d } }); C.Ns = C.Oa.extend({ tN: s, ctor: function(c) { this.tN = c; var d = this; C.Oa.prototype.ctor.call(this, C.Oa.Fy, C.Ns.He, function(c) { d.tN(c.U8, c) }) }, uu: function() { C.assert(this.tN, C.n.tqa); return q }, s: function() { return new C.Ns(this.tN) } }); C.Ns.He = "__cc_acceleration"; C.Ns.create = function(c) { return new C.Ns(c) }; C.Os = C.Oa.extend({ HI: s, II: s, ctor: function() { var c = this; C.Oa.prototype.ctor.call(this, C.Oa.Vy, C.Os.He, function(d) { d.kaa ? c.HI && c.HI(d.jX, d) : c.II && c.II(d.jX, d) }) }, s: function() { var c = new C.Os; c.HI = this.HI; c.II = this.II; return c }, uu: function() { return this.HI == s && this.II == s ? (C.log(C.n.uqa), t) : q } }); C.Os.He = "__cc_keyboard"; C.Os.create = function() { return new C.Os }; C.U.OU = function() { var c = C.A.prototype; c.nZ = s; c.KG = s; c.WW = s; c.Gq = s; c.ctor = function() { this.$W(); var c = new C.Ia; c.c[2] = c.c[3] = c.c[6] = c.c[7] = c.c[8] = c.c[9] = c.c[11] = c.c[14] = 0; c.c[10] = c.c[15] = 1; this.nZ = c; this.WW = 0; this.KG = new C.Ia }; c.Da = function() { this.el === t && (this.el = this.RM = q) }; c.J = function() { if (this.Ja) { var c = C.t, f, g = C.Jd; g.stack.push(g.top); C.Pp(this.KG, g.top); g.top = this.KG; var h = this.grid; h && h.Wg && h.px(); this.transform(); var k = this.l; if (k && 0 < k.length) { var n = k.length; this.ed(); for (f = 0; f < n; f++) if (k[f] && 0 > k[f].Wa) k[f].J(); else break; for (this.ka(c); f < n; f++) k[f] && k[f].J() } else this.ka(c); this.arrivalOrder = 0; h && h.Wg && h.mx(this); g.top = g.stack.pop() } }; c.transform = function() { var c = this.nZ, f = C.Jd.top, g = this.me(), h = c.c; h[0] = g.a; h[4] = g.H; h[12] = g.na; h[1] = g.b; h[5] = g.P; h[13] = g.oa; h[14] = this.gH; C.Qp(f, f, c); this.Gq != s && !(this.grid != s && this.grid.zi()) && (c = this.Nb.x, f = this.Nb.y, 0 !== c || 0 !== f ? (C.bU || (c |= 0, f |= 0), C.mC(c, f), this.Gq.yI(), C.mC( - c, -f)) : this.Gq.yI()) }; c.me = c.nN }; C.U.LT = function() { var c = C.A.prototype; C.e(c, "x", c.Rc, c.rs); C.e(c, "y", c.Vd, c.Uu); C.e(c, "width", c.ef, c.Qh); C.e(c, "height", c.Dg, c.Ph); C.e(c, "anchorX", c.L$, c.Re); C.e(c, "anchorY", c.M$, c.Se); C.e(c, "skewX", c.rea, c.nJ); C.e(c, "skewY", c.sea, c.oJ); C.e(c, "zIndex", c.VAa, c.ul); C.e(c, "vertexZ", c.oCa, c.yIa); C.e(c, "rotation", c.Mx, c.th); C.e(c, "rotationX", c.GBa, c.i3); C.e(c, "rotationY", c.HBa, c.j3); C.e(c, "scale", c.SH, c.Za); C.e(c, "scaleX", c.LP, c.gb); C.e(c, "scaleY", c.TH, c.pb); C.e(c, "children", c.le); C.e(c, "childrenCount", c.m0); C.e(c, "parent", c.getParent, c.cq); C.e(c, "visible", c.l1, c.va); C.e(c, "running", c.zDa); C.e(c, "ignoreAnchor", c.uDa, c.Hm); C.e(c, "actionManager", c.UB, c.eha); C.e(c, "scheduler", c.Em, c.nia); C.e(c, "shaderProgram", c.C0, c.mJ); C.e(c, "glServerState", c.BAa, c.vHa) }; C.U.MT = function() { var c = C.ha.prototype; C.e(c, "opacity", c.rb, c.K); C.e(c, "opacityModifyRGB", c.qg, c.$d); C.e(c, "cascadeOpacity", c.nI, c.Qu); C.e(c, "color", c.Xa, c.G); C.e(c, "cascadeColor", c.mI, c.Pu) }; C.yK = -1; C.kR = 1; C.A = C.O.extend({ Wa: 0, Tq: 0, gH: 0, Xi: 0, im: 0, ia: 1, pa: 1, ma: s, ig: 0, jg: 0, l: s, Ja: q, Ab: s, Nb: s, o: s, $c: t, Vb: s, nn: t, tag: C.yK, userData: s, userObject: s, el: q, RM: q, Lk: q, Fq: s, GPa: s, Lf: s, daa: s, Oh: t, pd: s, arrivalOrder: 0, Pl: s, hh: s, Tra: s, baa: t, yq: t, iz: s, Uo: s, TM: t, Dn: 0, Mw: 0, qa: "Node", OY: t, kd: "", $W: function() { this.Ab = C.d(0, 0); this.Nb = C.d(0, 0); this.o = C.size(0, 0); this.ma = C.d(0, 0); this.l = []; this.Lf = { a: 1, b: 0, H: 0, P: 1, na: 0, oa: 0 }; var c = C.Q; this.Pl = c.UB(); this.hh = c.Em(); this.baa = q; this.iz = { a: 1, b: 0, H: 0, P: 1, na: 0, oa: 0 }; C.o5 && (this.Uo = new C.o5(this)) }, j: function() { this.baa === t && this.$W(); return q }, Jk: function(c, d) { if (c && 0 !== c.length) { var f, g = c.length, h; f = C.A.Gj; switch (d) { case f.Z: for (f = 0; f < g; f++)(h = c[f]) && h.Z(); break; case f.Na: for (f = 0; f < g; f++)(h = c[f]) && h.Na(); break; case f.qj: for (f = 0; f < g; f++)(h = c[f]) && h.qj(); break; case f.ze: for (f = 0; f < g; f++)(h = c[f]) && h.ze(); break; case f.$h: for (f = 0; f < g; f++)(h = c[f]) && h.$h(); break; case f.ph: for (f = 0; f < g; f++)(h = c[f]) && h.ph(); break; case f.ed: for (f = 0; f < g; f++)(h = c[f]) && h.ed(); break; default: C.assert(0, C.n.cna) } } }, Da: s, dj: function(c) { for (var d in c) this[d] = c[d] }, rea: A("ig"), nJ: function(c) { this.ig = c; this.Da() }, sea: A("jg"), oJ: function(c) { this.jg = c; this.Da() }, ul: function(c) { this.Wa = c; this.Vb && this.Vb.OC(this, c); C.Ka.WN(this) }, Ow: x("Wa"), VAa: A("Wa"), xXa: function() { C.log(C.n.jna); return this.Wa }, N5a: function(c) { C.log(C.n.una); this.ul(c) }, i4a: function(c) { this.Tq != c && (this.Tq = c, C.Ka.WN(this)) }, MUa: A("Tq"), oCa: A("gH"), yIa: x("gH"), Mx: function() { this.Xi !== this.im && C.log(C.n.hna); return this.Xi }, th: function(c) { this.Xi = this.im = c; this.Dn = 0.017453292519943295 * this.Xi; this.Mw = 0.017453292519943295 * this.im; this.Da() }, GBa: A("Xi"), i3: function(c) { this.Xi = c; this.Dn = 0.017453292519943295 * this.Xi; this.Da() }, HBa: A("im"), j3: function(c) { this.im = c; this.Mw = 0.017453292519943295 * this.im; this.Da() }, SH: function() { this.ia !== this.pa && C.log(C.n.ina); return this.ia }, Za: function(c, d) { this.ia = c; this.pa = d || 0 === d ? d: c; this.Da() }, LP: A("ia"), gb: function(c) { this.ia = c; this.Da() }, TH: A("pa"), pb: function(c) { this.pa = c; this.Da() }, p: function(c, d) { var f = this.ma; d === m ? (f.x = c.x, f.y = c.y) : (f.x = c, f.y = d); this.Da() }, Ld: function() { return C.d(this.ma) }, Rc: function() { return this.ma.x }, rs: function(c) { this.ma.x = c; this.Da() }, Vd: function() { return this.ma.y }, Uu: function(c) { this.ma.y = c; this.Da() }, m0: function() { return this.l.length }, le: A("l"), l1: A("Ja"), va: function(c) { this.Ja = c; this.Da() }, dk: A("Ab"), S: function(c, d) { var f = this.Ab; if (d === m) { if (c.x === f.x && c.y === f.y) return; f.x = c.x; f.y = c.y } else { if (c === f.x && d === f.y) return; f.x = c; f.y = d } var g = this.Nb, h = this.o; g.x = h.width * f.x; g.y = h.height * f.y; this.Da() }, EOa: A("Ab"), tba: function(c) { var d = c.x; c = c.y; this.Ab.x !== d && (this.Ab.x = d, this.Nb.x = this.o.width * d); this.Ab.y !== c && (this.Ab.y = c, this.Nb.y = this.o.height * c); this.Da() }, L$: function() { return this.Ab.x }, Re: function(c) { this.Ab.x !== c && (this.Ab.x = c, this.Nb.x = this.o.width * c, this.Da()) }, M$: function() { return this.Ab.y }, Se: function(c) { this.Ab.y !== c && (this.Ab.y = c, this.Nb.y = this.o.height * c, this.Da()) }, Ep: A("Nb"), ef: function() { return this.o.width }, Qh: function(c) { this.o.width = c; this.Nb.x = c * this.Ab.x; this.Da() }, Dg: function() { return this.o.height }, Ph: function(c) { this.o.height = c; this.Nb.y = c * this.Ab.y; this.Da() }, i: A("o"), Ca: function(c, d) { var f = this.o; if (d === m) { if (c.width === f.width && c.height === f.height) return; f.width = c.width; f.height = c.height } else { if (c === f.width && d === f.height) return; f.width = c; f.height = d } var g = this.Nb, h = this.Ab; g.x = f.width * h.x; g.y = f.height * h.y; this.Da() }, zDa: A("$c"), getParent: A("Vb"), cq: x("Vb"), uDa: A("nn"), Hm: function(c) { c != this.nn && (this.nn = c, this.Da()) }, Fm: A("tag"), Qm: x("tag"), Ze: function() { this.kd }, getName: A("kd"), getUserData: A("userData"), setUserData: x("userData"), lCa: A("userObject"), xIa: function(c) { this.userObject != c && (this.userObject = c) }, EVa: A("arrivalOrder"), Vha: x("arrivalOrder"), UB: function() { this.Pl || (this.Pl = C.Q.UB()); return this.Pl }, eha: function(c) { this.Pl != c && (this.yk(), this.Pl = c) }, Em: function() { this.hh || (this.hh = C.Q.Em()); return this.hh }, nia: function(c) { this.hh != c && (this.FJ(), this.hh = c) }, Ae: function() { var c = C.rect(0, 0, this.o.width, this.o.height); return C.Io(c, this.me()) }, ze: function() { this.yk(); this.FJ(); C.Ka.Tga(this); this.Jk(this.l, C.A.Gj.ze) }, lj: function(c) { var d = this.l; if (d != s) for (var f = 0; f < d.length; f++) { var g = d[f]; if (g && g.tag == c) return g } return s }, Pda: function(c) { if (!c) return C.log("Invalid name"), s; for (var d = this.l, f = 0, g = d.length; f < g; f++) if (d[f].kd == c) return d[f]; return s }, q: function(c, d, f) { C.assert(c, C.n.fna); c === this ? C.log(C.n.dna) : c.Vb !== s ? C.log(C.n.ena) : (d = d != s ? d: c.Wa, c.tag = f != s ? f: c.tag, this.kta(c, d), c.Vb = this, this.Fq && (c.Fq = this.Fq), this.$c && (c.Z(), this.TM && c.qj())) }, Lm: function(c) { this.Vb && (c == s && (c = q), this.Vb.removeChild(this, c)) }, vGa: function(c) { C.log(C.n.ona); this.Lm(c) }, removeChild: function(c, d) { 0 !== this.l.length && (d == s && (d = q), -1 < this.l.indexOf(c) && this.Fra(c, d), this.Da()) }, $Q: function(c, d) { c === C.yK && C.log(C.n.mna); var f = this.lj(c); f == s ? C.log(C.n.nna, c) : this.removeChild(f, d) }, Ku: function(c) { C.log(C.n.lna); this.xf(c) }, xf: function(c) { var d = this.l; if (d != s) { c == s && (c = q); for (var f = 0; f < d.length; f++) { var g = d[f]; g && (this.$c && (g.ph(), g.Na()), c && g.ze(), g.parent = s) } this.l.length = 0 } }, Fra: function(c, d) { this.$c && (c.ph(), c.Na()); d && c.ze(); c.parent = s; C.Id(this.l, c) }, kta: function(c, d) { this.Oh = q; this.l.push(c); c.Ow(d) }, OC: function(c, d) { C.assert(c, C.n.pna); this.Oh = q; c.arrivalOrder = C.kR; C.kR++; c.Ow(d); this.Da() }, ed: function() { if (this.Oh) { var c = this.l, d = c.length, f, g, h; for (f = 1; f < d; f++) { h = c[f]; for (g = f - 1; 0 <= g;) { if (h.Wa < c[g].Wa) c[g + 1] = c[g]; else if (h.Wa === c[g].Wa && h.arrivalOrder < c[g].arrivalOrder) c[g + 1] = c[g]; else break; g-- } c[g + 1] = h } this.Oh = t } }, ka: u(), CJ: function() { this.Vb != s && (this.Vb.CJ(), this.Vb.transform()) }, Z: function() { this.TM = t; this.$c = q; this.Jk(this.l, C.A.Gj.Z); this.nk() }, qj: function() { this.TM = q; this.Jk(this.l, C.A.Gj.qj) }, ph: function() { this.Jk(this.l, C.A.Gj.ph) }, Na: function() { this.$c = t; this.pause(); this.Jk(this.l, C.A.Gj.Na); this.Uo && this.Uo.mk() }, Ya: function(c) { C.assert(c, C.n.rna); this.actionManager.mwa(c, this, !this.$c); return c }, yk: function() { this.actionManager && this.actionManager.Pga(this) }, yJ: function(c) { this.actionManager.Oga(c) }, VIa: function(c) { c === C.Gy ? C.log(C.n.vna) : this.actionManager.nGa(c, this) }, xP: function(c) { return c === C.Gy ? (C.log(C.n.gna), s) : this.actionManager.xP(c, this) }, xVa: function() { return this.actionManager.wEa(this) }, Lu: function() { this.cha(0) }, cha: function(c) { this.scheduler.lR(this, c, !this.$c) }, hD: function() { this.scheduler.GJ(this) }, rg: function(c, d, f, g) { d = d || 0; C.assert(c, C.n.sna); C.assert(0 <= d, C.n.tna); f = f == s ? C.xv: f; this.scheduler.y2(this, c, d, f, g || 0, !this.$c) }, S2a: function(c, d) { this.rg(c, 0, 0, d) }, Zh: function(c) { c && this.scheduler.W3(this, c) }, FJ: function() { this.scheduler.dja(this) }, E2a: function() { C.log(C.n.qna); this.nk() }, nk: function() { this.scheduler.Mm(this); this.actionManager && this.actionManager.Mm(this); C.Ka.Mm(this) }, b1a: function() { C.log(C.n.kna); this.pause() }, pause: function() { this.scheduler.hs(this); this.actionManager && this.actionManager.hs(this); C.Ka.hs(this) }, UGa: function(c) { this.iz = c; this.yq = this.el = q }, Y0a: function() { this.RM && (this.daa = C.iS(this.me()), this.RM = t); return this.daa }, ql: function() { for (var c = this.me(), d = this.Vb; d != s; d = d.parent) c = C.Qg(c, d.me()); return c }, TJa: function() { return C.iS(this.ql()) }, wi: function(c) { return C.wv(c, this.TJa()) }, vm: function(c) { c = c || C.d(0, 0); return C.wv(c, this.ql()) }, Txa: function(c) { return C.cc(this.wi(c), this.Nb) }, iRa: function(c) { c = c || C.d(0, 0); c = C.ho(c, this.Nb); return this.vm(c) }, hOa: function(c) { c = this.vm(c); return C.Q.Uxa(c) }, Bp: function(c) { return this.wi(c.mh()) }, jRa: function(c) { c = c.mh(); c = C.Q.Sxa(c); return this.Txa(c) }, update: function(c) { this.Uo && !this.Uo.gfa() && this.Uo.J(c) }, $h: function() { this.Jk(this.l, C.A.Gj.$h) }, fR: u(), rh: u(), Rda: function(c) { return this.Uo.Rda(c) }, pu: function(c) { this.Uo.add(c) }, e2a: function(c) { return this.Uo.remove(c) }, R1a: function() { this.Uo.mk() }, grid: s, ctor: s, J: s, transform: s, me: s, Fn: function() { if (this.Lk === t) { this.Lk = q; var c = this.Fq; c && c != this && c.Fn() } }, zY: function(c) { if (this.Fq != c) { this.Fq = c; for (var d = this.l, f = 0, g = d.length; f < g; f++) d[f].zY(c) } }, Ix: function() { this.Gq || (this.Gq = new C.FD); return this.Gq }, NH: A("grid"), wHa: x("grid"), C0: A("pd"), mJ: x("pd"), BAa: A("WW"), vHa: x("WW"), fAa: function() { var c = C.rect(0, 0, this.o.width, this.o.height), d = this.ql(), c = C.Gi(c, this.ql()); if (!this.l) return c; for (var f = this.l, g = 0; g < f.length; g++) { var h = f[g]; h && h.Ja && (h = h.JF(d)) && (c = C.MC(c, h)) } return c }, JF: function(c) { var d = C.rect(0, 0, this.o.width, this.o.height); c = c == s ? this.me() : C.Qg(this.me(), c); d = C.Gi(d, c); if (!this.l) return d; for (var f = this.l, g = 0; g < f.length; g++) { var h = f[g]; h && h.Ja && (h = h.JF(c)) && (d = C.MC(d, h)) } return d }, nN: function() { if (this.el) { var c = this.ma.x, d = this.ma.y, f = this.Nb.x, g = -f, h = this.Nb.y, k = -h, n = this.ia, p = this.pa; this.nn && (c += f, d += h); var r = 1, v = 0, y = 1, z = 0; if (0 !== this.Xi || 0 !== this.im) r = Math.cos( - this.Dn), v = Math.sin( - this.Dn), y = Math.cos( - this.Mw), z = Math.sin( - this.Mw); var D = this.ig || this.jg; if (!D && (0 !== f || 0 !== h)) c += y * g * n + -v * k * p, d += z * g * n + r * k * p; var E = this.Lf; E.a = y * n; E.b = z * n; E.H = -v * p; E.P = r * p; E.na = c; E.oa = d; if (D && (E = C.Qg({ a: 1, b: Math.tan(C.ng(this.jg)), H: Math.tan(C.ng(this.ig)), P: 1, na: 0, oa: 0 }, E), 0 !== f || 0 !== h)) E = C.OJ(E, g, k); this.yq && (E = C.Qg(E, this.iz), this.yq = t); this.Lf = E; this.el = t } return this.Lf } }); C.A.create = function() { return new C.A }; C.A.Gj = { Z: 1, Na: 2, ze: 3, qj: 4, $h: 5, ph: 6, ed: 7 }; C.L === C.cb ? (H = C.A.prototype, H.ctor = function() { this.$W() }, H.Da = function() { this.Fn(); this.el === t && (this.el = this.RM = q) }, H.J = function(c) { if (this.Ja) { c = c || C.t; var d, f = this.l, g; c.save(); this.transform(c); var h = f.length; if (0 < h) { this.ed(); for (d = 0; d < h; d++) if (g = f[d], 0 > g.Wa) g.J(c); else break; for (this.ka(c); d < h; d++) f[d].J(c) } else this.ka(c); this.Lk = t; this.arrivalOrder = 0; c.restore() } }, H.transform = function(c) { c = c || C.t; var d = C.view, f = this.me(); c.transform(f.a, f.H, f.b, f.P, f.na * d.ia, -f.oa * d.pa) }, H.me = function() { if (this.el) { var c = this.Lf; c.na = this.ma.x; c.oa = this.ma.y; var d = 1, f = 0; this.Xi && (d = Math.cos(this.Dn), f = Math.sin(this.Dn)); c.a = c.P = d; c.b = -f; c.H = f; var g = this.ia, h = this.pa, k = this.Nb.x, n = this.Nb.y, p = 1E-6 > g && -1E-6 < g ? 1E-6: g, r = 1E-6 > h && -1E-6 < h ? 1E-6: h; if (this.ig || this.jg) { var v = Math.tan( - this.ig * Math.PI / 180), y = Math.tan( - this.jg * Math.PI / 180); Infinity === v && (v = 99999999); Infinity === y && (y = 99999999); var z = n * v * p, D = k * y * r; c.a = d + -f * y; c.b = d * v + -f; c.H = f + d * y; c.P = f * v + d; c.na += d * z + -f * D; c.oa += f * z + d * D } if (1 !== g || 1 !== h) c.a *= p, c.H *= p, c.b *= r, c.P *= r; c.na += d * -k * p + -f * n * r; c.oa -= f * -k * p + d * n * r; this.nn && (c.na += k, c.oa += n); this.yq && (this.Lf = C.Qg(c, this.iz), this.yq = t); this.el = t } return this.Lf }, H = s) : (C.assert("function" === typeof C.U.OU, C.n.Bf, "BaseNodesWebGL.js"), C.U.OU(), delete C.U.OU); C.assert("function" === typeof C.U.LT, C.n.Bf, "BaseNodesPropertyDefine.js"); C.U.LT(); delete C.U.LT; C.ha = C.A.extend({ sb: q, hb: 255, Ig: 255, wb: s, od: s, Zf: t, Ag: t, ctor: function() { C.A.prototype.ctor.call(this); this.Ig = this.hb = 255; this.wb = C.color(255, 255, 255, 255); this.od = C.color(255, 255, 255, 255); this.Ag = this.Zf = t }, Gd: u(), rb: A("Ig"), Tda: A("hb"), K: function(c) { this.hb = this.Ig = c; var d = 255, f = this.Vb; f && (f.sb && f.cascadeOpacity) && (d = f.hb); this.dc(d); this.wb.a = this.od.a = c }, dc: function(c) { this.hb = this.Ig * c / 255; if (this.Ag) { c = this.l; for (var d = 0; d < c.length; d++) { var f = c[d]; f && f.sb && f.dc(this.hb) } } }, nI: A("Ag"), Qu: function(c) { this.Ag !== c && ((this.Ag = c) ? this.Sz() : this.dW()) }, Sz: function() { var c = 255, d = this.Vb; d && (d.sb && d.cascadeOpacity) && (c = d.hb); this.dc(c) }, dW: function() { this.hb = this.Ig; for (var c = this.l, d = 0; d < c.length; d++) { var f = c[d]; f && f.sb && f.dc(255) } }, Xa: function() { var c = this.od; return C.color(c.r, c.g, c.b, c.a) }, xu: function() { var c = this.wb; return C.color(c.r, c.g, c.b, c.a) }, G: function(c) { var d = this.wb, f = this.od; d.r = f.r = c.r; d.g = f.g = c.g; d.b = f.b = c.b; d = (d = this.Vb) && d.sb && d.cascadeColor ? d.xu() : C.color.WHITE; this.Tb(d); c.a !== m && !c.jx && this.K(c.a) }, Tb: function(c) { var d = this.wb, f = this.od; d.r = 0 | f.r * c.r / 255; d.g = 0 | f.g * c.g / 255; d.b = 0 | f.b * c.b / 255; if (this.Zf) { c = this.l; for (f = 0; f < c.length; f++) { var g = c[f]; g && g.sb && g.Tb(d) } } }, mI: A("Zf"), Pu: function(c) { this.Zf !== c && ((this.Zf = c) ? this.Rz() : this.cW()) }, Rz: function() { var c; c = (c = this.Vb) && c.sb && c.cascadeColor ? c.xu() : C.color.WHITE; this.Tb(c) }, cW: function() { var c = this.wb, d = this.od; c.r = d.r; c.g = d.g; c.b = d.b; for (var c = this.l, d = C.color.WHITE, f = 0; f < c.length; f++) { var g = c[f]; g && g.sb && g.Tb(d) } }, q: function(c, d, f) { C.A.prototype.q.call(this, c, d, f); this.Zf && this.Rz(); this.Ag && this.Sz() }, $d: u(), qg: B(t) }); C.ha.create = function() { var c = new C.ha; c.j(); return c }; C.assert("function" === typeof C.U.MT, C.n.Bf, "BaseNodesPropertyDefine.js"); C.U.MT(); delete C.U.MT; C.A.FMa = 0; C.A.HMa = 1; C.A.GMa = 2; C.A.IMa = 3; C.A.EMa = 4; C.gq = C.ha.extend({ textureAtlas: s, quadsToDraw: 0, sb: q, uA: 0, oaa: 0, Tj: 0, Oi: 0, Mq: s, Fb: t, C: s, IM: t, qa: "AtlasNode", ctor: function(c, d, f, g) { C.ha.prototype.ctor.call(this); this.Mq = C.color.WHITE; this.C = { src: C.Ic, ga: C.Hc }; this.IM = t; g !== m && this.ZCa(c, d, f, g) }, iD: function() { C.log(C.n.Rja) }, Xa: function() { return this.Fb ? this.Mq: C.ha.prototype.Xa.call(this) }, $d: function(c) { var d = this.color; this.Fb = c; this.color = d }, qg: A("Fb"), ek: A("C"), Yd: function(c, d) { this.C = d === m ? c: { src: c, ga: d } }, p3: x("textureAtlas"), VH: A("textureAtlas"), hWa: A("quadsToDraw"), U4a: x("quadsToDraw"), eu: s, qi: s, pZ: s, lF: s, ZCa: function(c, d, f, g) { c || e("cc.AtlasNode.initWithTileFile(): title should not be null"); c = C.kb.sd(c); return this.ta(c, d, f, g) }, ta: s, aX: function(c, d, f, g) { this.Tj = d; this.Oi = f; this.Fb = q; this.qi = c; if (!this.qi) return C.log(C.n.n4), t; this.eu = this.qi; this.CL(); this.quadsToDraw = g; return q }, bX: function(c, d, f, g) { this.Tj = d; this.Oi = f; this.Mq = C.color.WHITE; this.Fb = q; this.C.src = C.Ic; this.C.ga = C.Hc; d = this.od; this.lF = new Float32Array([d.r / 255, d.g / 255, d.b / 255, this.Ig / 255]); this.textureAtlas = new C.uq; this.textureAtlas.ta(c, g); if (!this.textureAtlas) return C.log(C.n.n4), t; this.hl(); this.eca(); this.CL(); this.quadsToDraw = g; this.shaderProgram = C.ug.Xd(C.LK); this.pZ = C.t.getUniformLocation(this.shaderProgram.Lx(), "u_color"); return q }, ka: s, gn: function(c) { c = c || C.t; C.BC(this); C.Gm(this.C.src, this.C.ga); this.pZ && this.lF && (c.uniform4fv(this.pZ, this.lF), this.textureAtlas.oda(this.quadsToDraw)) }, G: s, Tua: function(c) { var d = this.od; if (! (d.r == c.r && d.g == c.g && d.b == c.b)) { d = C.color(c.r, c.g, c.b); this.Mq = c; if (this.Fb) { var f = this.hb; d.r = d.r * f / 255; d.g = d.g * f / 255; d.b = d.b * f / 255 } C.ha.prototype.G.call(this, c); if (this.texture && (c = this.qi.jd)) if (d = C.kb.OP(c)) f = C.rect(0, 0, c.width, c.height), c = C.TB(c, d, this.od, f), d = new C.Ma, d.Ng(c), d.Md(), this.texture = d } }, Uua: function(c) { var d = C.color(c.r, c.g, c.b); this.Mq = c; var f = this.hb; this.Fb && (d.r = d.r * f / 255, d.g = d.g * f / 255, d.b = d.b * f / 255); C.ha.prototype.G.call(this, c); c = this.wb; this.lF = new Float32Array([c.r / 255, c.g / 255, c.b / 255, f / 255]) }, K: u(), FY: function(c) { C.ha.prototype.K.call(this, c); this.Fb && (this.color = this.Mq) }, GY: function(c) { C.ha.prototype.K.call(this, c); this.Fb ? this.color = this.Mq: (c = this.wb, this.lF = new Float32Array([c.r / 255, c.g / 255, c.b / 255, this.hb / 255])) }, ob: s, MF: A("eu"), UW: function() { return this.textureAtlas.texture }, Va: s, KY: x("eu"), LY: function(c) { this.textureAtlas.texture = c; this.hl(); this.eca() }, CL: s, gra: function() { var c = this.texture.i(); this.oaa = 0 | c.height / this.Oi; this.uA = 0 | c.width / this.Tj }, hra: function() { var c = this.texture, d = c.i(); this.IM && (d = c.o); this.oaa = 0 | d.height / this.Oi; this.uA = 0 | d.width / this.Tj }, hl: function() { this.textureAtlas.texture.Hp() || (this.C.src = C.SRC_ALPHA, this.C.ga = C.ONE_MINUS_SRC_ALPHA) }, eca: function() { this.Fb = this.textureAtlas.texture.Hp() }, CY: x("IM") }); H = C.gq.prototype; C.L === C.la ? (H.ta = H.bX, H.ka = H.gn, H.G = H.Uua, H.K = H.GY, H.ob = H.UW, H.Va = H.LY, H.CL = H.hra) : (H.ta = H.aX, H.ka = C.A.prototype.ka, H.G = H.Tua, H.K = H.FY, H.ob = H.MF, H.Va = H.KY, H.CL = H.gra); C.e(H, "opacity", H.rb, H.K); C.e(H, "color", H.Xa, H.G); C.e(H, "texture", H.ob, H.Va); C.gq.create = function(c, d, f, g) { return new C.gq(c, d, f, g) }; C.U.UU = function() { C.Ma = C.O.extend({ mPa: q, ip: s, mr: 0, lr: 0, kd: "", o: s, Sp: 0, Tp: 0, HM: t, jA: t, shaderProgram: s, de: t, jd: s, Sh: s, url: s, ac: s, ctor: function() { this.o = C.size(0, 0); this.ip = C.Ma.hda }, n2: function() { this.Sh && C.t.deleteTexture(this.Sh); C.M.rh(this.url) }, kea: A("ip"), w0: A("mr"), v0: A("lr"), getName: A("Sh"), i: function() { return C.size(this.o.width / C.Ec(), this.o.height / C.Ec()) }, ef: function() { return this.o.width / C.Ec() }, Dg: function() { return this.o.height / C.Ec() }, mAa: A("o"), bBa: A("Sp"), HHa: x("Sp"), cBa: A("Tp"), IHa: x("Tp"), C0: A("shaderProgram"), mJ: x("shaderProgram"), Hp: A("HM"), ACa: A("jA"), description: function() { return "\x3ccc.Texture2D | Name \x3d " + this.kd + " | Dimensions \x3d " + this.mr + " x " + this.lr + " | Coordinates \x3d (" + this.Sp + ", " + this.Tp + ")\x3e" }, lGa: u(), IDa: da(), Au: function(c, d, f, g, h) { var k = C.Ma, n = C.t, p = n.RGBA, r = n.UNSIGNED_BYTE, v = f * C.Ma.P8[d] / 8; 0 === v % 8 ? n.pixelStorei(n.UNPACK_ALIGNMENT, 8) : 0 === v % 4 ? n.pixelStorei(n.UNPACK_ALIGNMENT, 4) : 0 === v % 2 ? n.pixelStorei(n.UNPACK_ALIGNMENT, 2) : n.pixelStorei(n.UNPACK_ALIGNMENT, 1); this.Sh = n.createTexture(); C.yi(this); n.texParameteri(n.TEXTURE_2D, n.TEXTURE_MIN_FILTER, n.LINEAR); n.texParameteri(n.TEXTURE_2D, n.TEXTURE_MAG_FILTER, n.LINEAR); n.texParameteri(n.TEXTURE_2D, n.TEXTURE_WRAP_S, n.CLAMP_TO_EDGE); n.texParameteri(n.TEXTURE_2D, n.TEXTURE_WRAP_T, n.CLAMP_TO_EDGE); switch (d) { case k.qq: p = n.RGBA; break; case k.rE: p = n.RGB; break; case k.AK: r = n.UNSIGNED_SHORT_4_4_4_4; break; case k.zK: r = n.UNSIGNED_SHORT_5_5_5_1; break; case k.qE: r = n.UNSIGNED_SHORT_5_6_5; break; case k.ET: p = n.LUMINANCE_ALPHA; break; case k.pE: p = n.ALPHA; break; case k.FT: p = n.LUMINANCE; break; default: C.assert(0, C.n.Epa) } n.texImage2D(n.TEXTURE_2D, 0, p, f, g, 0, p, r, c); this.o.width = h.width; this.o.height = h.height; this.mr = f; this.lr = g; this.ip = d; this.Sp = h.width / f; this.Tp = h.height / g; this.jA = this.HM = t; this.shaderProgram = C.ug.Xd(C.yE); return this.de = q }, Kya: function(c) { var d = [0, this.Tp, this.Sp, this.Tp, 0, 0, this.Sp, 0], f = this.mr * this.Sp, g = this.lr * this.Tp; c = [c.x, c.y, 0, f + c.x, c.y, 0, c.x, g + c.y, 0, f + c.x, g + c.y, 0]; C.rf(C.Ch | C.fz); this.pd.Af(); this.pd.uJ(); C.yi(this); f = C.t; f.vertexAttribPointer(C.Lc, 2, f.FLOAT, t, 0, c); f.vertexAttribPointer(C.Vg, 2, f.FLOAT, t, 0, d); f.drawArrays(f.TRIANGLE_STRIP, 0, 4) }, Nya: function(c) { var d = [0, this.Tp, this.Sp, this.Tp, 0, 0, this.Sp, 0]; c = [c.x, c.y, c.x + c.width, c.y, c.x, c.y + c.height, c.x + c.width, c.y + c.height]; C.rf(C.Ch | C.fz); this.pd.Af(); this.pd.uJ(); C.yi(this); var f = C.t; f.vertexAttribPointer(C.Lc, 2, f.FLOAT, t, 0, c); f.vertexAttribPointer(C.Vg, 2, f.FLOAT, t, 0, d); f.drawArrays(f.TRIANGLE_STRIP, 0, 4) }, Zea: function(c) { if (c == s) return C.log(C.n.Hpa), t; var d = c.tCa(), f = c.DAa(), g = C.FB.bG; if (d > g || f > g) return C.log(C.n.Ipa, d, f, g, g), t; this.de = q; return this.dta(c, d, f) }, Ng: function(c) { c && (this.Sh = C.t.createTexture(), this.jd = c) }, FAa: A("jd"), vDa: A("de"), Md: function() { if (C.NN) { if (!this.jd) { var c = C.M.xd(this.url); if (!c) return; this.Ng(c) } this.jd.width && this.jd.height && (this.de = q, c = C.t, C.yi(this), c.pixelStorei(c.UNPACK_ALIGNMENT, 4), c.texImage2D(c.TEXTURE_2D, 0, c.RGBA, c.RGBA, c.UNSIGNED_BYTE, this.jd), c.texParameteri(c.TEXTURE_2D, c.TEXTURE_MIN_FILTER, c.LINEAR), c.texParameteri(c.TEXTURE_2D, c.TEXTURE_MAG_FILTER, c.LINEAR), c.texParameteri(c.TEXTURE_2D, c.TEXTURE_WRAP_S, c.CLAMP_TO_EDGE), c.texParameteri(c.TEXTURE_2D, c.TEXTURE_WRAP_T, c.CLAMP_TO_EDGE), this.shaderProgram = C.ug.Xd(C.yE), C.yi(s), c = this.jd.height, this.mr = this.o.width = this.jd.width, this.lr = this.o.height = c, this.ip = C.Ma.qq, this.Tp = this.Sp = 1, this.jA = this.HM = t, this.cf()) } }, sf: function() { C.log(C.n.Npa); return s }, QCa: function() { C.log(C.n.Gpa); return t }, UCa: function() { C.log(C.n.Kpa); return t }, VCa: function() { C.log(C.n.Mpa); return t }, qIa: function(c) { var d = C.t; C.assert(this.mr == C.Cs(this.mr) && this.lr == C.Cs(this.lr) || c.UJa == d.CLAMP_TO_EDGE && c.VJa == d.CLAMP_TO_EDGE, "WebGLRenderingContext.CLAMP_TO_EDGE should be used in NPOT textures"); C.yi(this); d.texParameteri(d.TEXTURE_2D, d.TEXTURE_MIN_FILTER, c.Qfa); d.texParameteri(d.TEXTURE_2D, d.TEXTURE_MAG_FILTER, c.Nfa); d.texParameteri(d.TEXTURE_2D, d.TEXTURE_WRAP_S, c.UJa); d.texParameteri(d.TEXTURE_2D, d.TEXTURE_WRAP_T, c.VJa) }, $Ga: function() { var c = C.t; C.yi(this); this.jA ? c.texParameteri(c.TEXTURE_2D, c.TEXTURE_MIN_FILTER, c.LINEAR_MIPMAP_NEAREST) : c.texParameteri(c.TEXTURE_2D, c.TEXTURE_MIN_FILTER, c.LINEAR); c.texParameteri(c.TEXTURE_2D, c.TEXTURE_MAG_FILTER, c.NEAREST) }, B2: function() { var c = C.t; C.yi(this); this.jA ? c.texParameteri(c.TEXTURE_2D, c.TEXTURE_MIN_FILTER, c.NEAREST_MIPMAP_NEAREST) : c.texParameteri(c.TEXTURE_2D, c.TEXTURE_MIN_FILTER, c.NEAREST); c.texParameteri(c.TEXTURE_2D, c.TEXTURE_MAG_FILTER, c.NEAREST) }, generateMipmap: function() { C.assert(this.mr == C.Cs(this.mr) && this.lr == C.Cs(this.lr), "Mimpap texture only works in POT textures"); C.yi(this); C.t.generateMipmap(C.t.TEXTURE_2D); this.jA = q }, $Ia: function() { return C.Ma.zqa[this.ip] }, oxa: function(c) { c = c || this.ip; var d = C.Ma.P8[c]; if (d != s) return d; C.log(C.n.Dpa, c); return - 1 }, dta: function(c, d, f) { var g = C.Ma, h = c.getData(), k = s, k = s, n = c.GXa(), p = C.size(c.tCa(), c.DAa()), r = g.hda, v = c.eTa(); n || (8 <= v ? r = g.rE: (C.log(C.n.Apa), r = g.qE)); var y = d * f; if (r == g.qE) if (n) { h = new Uint16Array(d * f); k = c.getData(); for (v = 0; v < y; ++v) h[v] = (k[v] >> 0 & 255) >> 3 << 11 | (k[v] >> 8 & 255) >> 2 << 5 | (k[v] >> 16 & 255) >> 3 << 0 } else { h = new Uint16Array(d * f); k = c.getData(); for (v = 0; v < y; ++v) h[v] = (k[v] & 255) >> 3 << 11 | (k[v] & 255) >> 2 << 5 | (k[v] & 255) >> 3 << 0 } else if (r == g.AK) { h = new Uint16Array(d * f); k = c.getData(); for (v = 0; v < y; ++v) h[v] = (k[v] >> 0 & 255) >> 4 << 12 | (k[v] >> 8 & 255) >> 4 << 8 | (k[v] >> 16 & 255) >> 4 << 4 | (k[v] >> 24 & 255) >> 4 << 0 } else if (r == g.zK) { h = new Uint16Array(d * f); k = c.getData(); for (v = 0; v < y; ++v) h[v] = (k[v] >> 0 & 255) >> 3 << 11 | (k[v] >> 8 & 255) >> 3 << 6 | (k[v] >> 16 & 255) >> 3 << 1 | (k[v] >> 24 & 255) >> 7 << 0 } else if (r == g.pE) { h = new Uint8Array(d * f); k = c.getData(); for (v = 0; v < y; ++v) h[v] = k >> 24 & 255 } if (n && r == g.rE) { k = c.getData(); h = new Uint8Array(3 * d * f); for (v = 0; v < y; ++v) h[3 * v] = k >> 0 & 255, h[3 * v + 1] = k >> 8 & 255, h[3 * v + 2] = k >> 16 & 255 } this.Au(h, r, d, f, p); c.getData(); this.HM = c.EYa(); return q }, ye: function(c, d) { this.ac || (this.ac = []); this.ac.push({ jl: c, jj: d }) }, wGa: function(c) { if (this.ac) for (var d = this.ac, f = 0; f < d.length; f++) d[f].jj == c && d.splice(f, 1) }, cf: function() { if (this.ac) { for (var c = this.ac, d = 0, f = c.length; d < f; d++) { var g = c[d]; g.jl.call(g.jj, this) } c.length = 0 } } }) }; C.U.VU = function() { var c = C.uq.prototype; c.Pw = function() { var c = C.t; this.Me[0] = c.createBuffer(); this.Me[1] = c.createBuffer(); this.Hw = c.createBuffer(); this.cN() }; c.cN = function() { var c = C.t; c.bindBuffer(c.ARRAY_BUFFER, this.Hw); c.bufferData(c.ARRAY_BUFFER, this.eg, c.DYNAMIC_DRAW); c.bindBuffer(c.ELEMENT_ARRAY_BUFFER, this.Me[1]); c.bufferData(c.ELEMENT_ARRAY_BUFFER, this.Qb, c.STATIC_DRAW) }; c.oda = function(c) { var f; f = 0; if (! (0 === c || !this.texture || !this.texture.de)) { var g = C.t; C.yi(this.texture); C.rf(C.Dv); g.bindBuffer(g.ARRAY_BUFFER, this.Hw); this.dirty && g.bufferData(g.ARRAY_BUFFER, this.eg, g.DYNAMIC_DRAW); g.vertexAttribPointer(C.Lc, 3, g.FLOAT, t, 24, 0); g.vertexAttribPointer(C.Hi, 4, g.UNSIGNED_BYTE, q, 24, 12); g.vertexAttribPointer(C.Vg, 2, g.FLOAT, t, 24, 16); this.dirty && (this.dirty = t); g.bindBuffer(g.ELEMENT_ARRAY_BUFFER, this.Me[1]); C.N7 ? g.drawElements(g.TRIANGLE_STRIP, 6 * c, g.UNSIGNED_SHORT, 6 * f * this.Qb.BYTES_PER_ELEMENT) : g.drawElements(g.TRIANGLES, 6 * c, g.UNSIGNED_SHORT, 6 * f * this.Qb.BYTES_PER_ELEMENT); C.kl++ } } }; C.U.WU = function() { var c = C.kb; c.Md = function(c) { var f = this.pf; C.NN || (f = this.aG); var g = f[c]; g || (g = f[c] = new C.Ma, g.url = c); g.Md() }; c.sd = function(c, f, g) { C.assert(c, C.n.Cpa); var h = this.pf; C.NN || (h = this.aG); var k = h[c] || h[C.M.Hv[c]]; if (k) return f && f.call(g), k; C.M.xd(c) || (C.M.u9(c) ? C.M.load(c, function() { f && f.call(g) }) : C.M.fj[c] = C.M.wI(c, function(g, h) { if (g) return f ? f(g) : g; C.kb.Md(c); f && f(s, h) })); k = h[c] = new C.Ma; k.url = c; return k }; delete c }; C.U.TT = function() { var c = C.Ma; c.SMa = function(c) { C.Qna = c }; c.qq = 2; c.rE = 3; c.qE = 4; c.pE = 5; c.FT = 6; c.ET = 7; c.AK = 8; c.zK = 7; c.X6 = 9; c.W6 = 10; c.Fna = c.qq; var d = C.Ma.zqa = {}; d[c.qq] = "RGBA8888"; d[c.rE] = "RGB888"; d[c.qE] = "RGB565"; d[c.pE] = "A8"; d[c.FT] = "I8"; d[c.ET] = "AI88"; d[c.AK] = "RGBA4444"; d[c.zK] = "RGB5A1"; d[c.X6] = "PVRTC4"; d[c.W6] = "PVRTC2"; d = C.Ma.P8 = {}; d[c.qq] = 32; d[c.rE] = 24; d[c.qE] = 16; d[c.pE] = 8; d[c.FT] = 8; d[c.ET] = 16; d[c.AK] = 16; d[c.zK] = 16; d[c.X6] = 4; d[c.W6] = 3; d = C.Ma.prototype; C.e(d, "name", d.getName); C.e(d, "pixelFormat", d.kea); C.e(d, "pixelsWidth", d.w0); C.e(d, "pixelsHeight", d.v0); C.e(d, "width", d.ef); C.e(d, "height", d.Dg); c.hda = c.Fna }; C.U.UT = function() { var c = C.uq.prototype; C.e(c, "totalQuads", c.Eea); C.e(c, "capacity", c.Nda); C.e(c, "quads", c.lea, c.iia) }; C.bKa = 51; C.eKa = 19; C.gKa = 18; C.dKa = 50; C.aKa = 34; C.ZJa = 35; C.$Ja = 33; C.cKa = 49; C.fKa = 17; C.Qna = t; C.L === C.cb ? C.Ma = C.O.extend({ o: s, de: t, jd: s, ac: s, url: s, ctor: function() { this.o = C.size(0, 0); this.de = t; this.jd = s }, w0: function() { return this.o.width }, v0: function() { return this.o.height }, i: function() { var c = C.Ec(); return C.size(this.o.width / c, this.o.height / c) }, ef: function() { return this.o.width / C.Ec() }, Dg: function() { return this.o.height / C.Ec() }, mAa: A("o"), Ng: function(c) { c && (this.jd = c) }, FAa: A("jd"), vDa: A("de"), Md: function() { if (!this.de) { if (!this.jd) { var c = C.M.xd(this.url); if (!c) return; this.Ng(c) } this.de = q; c = this.jd; this.o.width = c.width; this.o.height = c.height; this.cf() } }, description: function() { return "\x3ccc.Texture2D | width \x3d " + this.o.width + " height " + this.o.height + "\x3e" }, Au: B(t), Zea: B(t), sf: B(t), n2: u(), getName: B(s), bBa: B(1), HHa: u(), cBa: B(1), IHa: u(), kea: B(s), C0: B(s), mJ: u(), Hp: B(t), ACa: B(t), lGa: u(), IDa: da(), Kya: u(), Nya: u(), QCa: function() { C.log(C.n.Fpa); return t }, UCa: function() { C.log(C.n.Jpa); return t }, VCa: function() { C.log(C.n.Lpa); return t }, qIa: u(), $Ga: u(), B2: u(), generateMipmap: u(), $Ia: B(""), oxa: B( - 1), ye: function(c, d) { this.ac || (this.ac = []); this.ac.push({ jl: c, jj: d }) }, wGa: function(c) { if (this.ac) for (var d = this.ac, f = 0; f < d.length; f++) d[f].jj == c && d.splice(f, 1) }, cf: function() { if (this.ac) { for (var c = this.ac, d = 0, f = c.length; d < f; d++) { var g = c[d]; g.jl.call(g.jj, this) } c.length = 0 } } }) : (C.assert("function" === typeof C.U.UU, C.n.Bf, "TexturesWebGL.js"), C.U.UU(), delete C.U.UU); C.assert("function" === typeof C.U.TT, C.n.Bf, "TexturesPropertyDefine.js"); C.U.TT(); delete C.U.TT; C.kb = { pf: {}, UG: {}, kZ: 0 | 1E3 * Math.random(), aG: {}, jta: function() { var c, d = this.aG, f = this.pf; for (c in d) { var g = d[c]; g.Md(); f[c] = g } this.aG = {} }, eQa: function() { C.log(C.n.fJa) }, TPa: function() { C.log(C.n.dJa) }, description: function() { return "\x3cTextureCache | Number of textures \x3d " + this.pf.length + "\x3e" }, av: function(c) { return this.pf[c] || this.pf[C.M.Hv[c]] }, PAa: function(c) { for (var d in this.pf) if (this.pf[d] == c) return d; return s }, dsa: function() { this.kZ++; return "_textureKey_" + this.kZ }, OP: function(c) { var d = this.PAa(c); d || (d = c instanceof HTMLImageElement ? c.src: this.dsa()); this.UG[d] || (this.UG[d] = C.SB(c)); return this.UG[d] }, dQa: function() { C.log(C.n.eJa) }, X1a: function() { var c = this.pf, d; for (d in c) c[d] && c[d].n2(); this.pf = {} }, t2a: function(c) { if (c) { var d = this.pf, f; for (f in d) d[f] == c && (d[f].n2(), delete d[f]) } }, u2a: function(c) { c != s && this.pf[c] && delete this.pf[c] }, wxa: function(c, d) { if (d instanceof C.Ma) this.pf[c] = d; else { var f = new C.Ma; f.Ng(d); f.Md(); this.pf[c] = f } }, jQa: function(c, d) { C.assert(c, C.n.hJa); if (d && this.pf[d]) return this.pf[d]; var f = new C.Ma; f.Zea(c); d != s && f != s ? this.pf[d] = f: C.log(C.n.gJa); return f }, QRa: function() { var c = 0, d = 0, f = this.pf, g; for (g in f) { var h = f[g]; c++; h.jd instanceof HTMLImageElement ? C.log(C.n.iJa, g, h.jd.src, h.pixelsWidth, h.pixelsHeight) : C.log(C.n.Wia, g, h.pixelsWidth, h.pixelsHeight); d += 4 * h.pixelsWidth * h.pixelsHeight } f = this.UG; for (g in f) { var h = f[g], k; for (k in h) { var n = h[k]; c++; C.log(C.n.Wia, g, n.width, n.height); d += 4 * n.width * n.height } } C.log(C.n.jJa, c, d / 1024, (d / 1048576).toFixed(2)) }, dt: function() { this.pf = {}; this.UG = {}; this.kZ = 0 | 1E3 * Math.random(); this.aG = {} } }; C.L === C.cb ? (H = C.kb, H.Md = function(c) { var d = this.pf, f = d[c]; f || (f = d[c] = new C.Ma, f.url = c); f.Md() }, H.sd = function(c, d, f) { C.assert(c, C.n.Bpa); var g = this.pf, h = g[c] || g[C.M.Hv[c]]; if (h) return d && d.call(f), h; h = g[c] = new C.Ma; h.url = c; C.M.xd(c) ? h.Md() : C.M.u9(c) ? C.M.load(c, function() { d && d.call(f) }) : C.M.fj[c] = C.M.wI(c, function(f, g) { if (f) return d ? d(f) : f; C.kb.Md(c); d && d(s, g) }); return h }, H = s) : (C.assert("function" === typeof C.U.WU, C.n.Bf, "TexturesWebGL.js"), C.U.WU(), delete C.U.WU); C.uq = C.O.extend({ dirty: t, texture: s, Qb: s, Me: s, Yf: 0, hf: s, eg: s, Hw: s, $k: s, ctor: function(c, d) { this.Me = []; "string" == typeof c ? this.Ce(c, d) : c instanceof C.Ma && this.ta(c, d) }, Eea: A("Sb"), Nda: A("Yf"), ob: A("texture"), Va: x("texture"), xha: x("dirty"), h1: A("dirty"), lea: A("hf"), iia: x("hf"), zra: function(c, d) { if (c) for (var f = 0; f < c.length; f++) this.ZN(c[f], d + f) }, ZN: function(c, d) { var f = this.hf; f[d] ? (f[d].T = c.T, f[d].Y = c.Y, f[d].X = c.X, f[d].V = c.V) : f[d] = new C.Uc(c.X, c.T, c.V, c.Y, this.eg, d * C.Uc.BYTES_PER_ELEMENT) }, description: function() { return "\x3ccc.TextureAtlas | totalQuads \x3d" + this.Sb + "\x3e" }, Aba: function() { if (0 !== this.Yf) for (var c = this.Qb, d = this.Yf, f = 0; f < d; f++) C.N7 ? (c[6 * f + 0] = 4 * f + 0, c[6 * f + 1] = 4 * f + 0, c[6 * f + 2] = 4 * f + 2, c[6 * f + 3] = 4 * f + 1, c[6 * f + 4] = 4 * f + 3, c[6 * f + 5] = 4 * f + 3) : (c[6 * f + 0] = 4 * f + 0, c[6 * f + 1] = 4 * f + 1, c[6 * f + 2] = 4 * f + 2, c[6 * f + 3] = 4 * f + 3, c[6 * f + 4] = 4 * f + 2, c[6 * f + 5] = 4 * f + 1) }, Pw: function() { var c = C.t; this.Me[0] = c.createBuffer(); this.Me[1] = c.createBuffer(); this.Hw = c.createBuffer(); this.cN() }, cN: function() { var c = C.t; c.bindBuffer(c.ARRAY_BUFFER, this.Hw); c.bufferData(c.ARRAY_BUFFER, this.eg, c.DYNAMIC_DRAW); c.bindBuffer(c.ELEMENT_ARRAY_BUFFER, this.Me[1]); c.bufferData(c.ELEMENT_ARRAY_BUFFER, this.Qb, c.STATIC_DRAW) }, Ce: function(c, d) { var f = C.kb.sd(c); if (f) return this.ta(f, d); C.log(C.n.Opa, c); return t }, ta: function(c, d) { C.assert(c, C.n.Ppa); this.Yf = d |= 0; this.Sb = 0; this.texture = c; this.hf = []; this.Qb = new Uint16Array(6 * d); var f = C.Uc.BYTES_PER_ELEMENT; this.eg = new ArrayBuffer(f * d); this.$k = new Uint8Array(this.eg); if ((!this.hf || !this.Qb) && 0 < d) return t; for (var g = this.hf, h = 0; h < d; h++) g[h] = new C.Uc(s, s, s, s, this.eg, h * f); this.Aba(); this.Pw(); return this.dirty = q }, HJ: function(c, d) { C.assert(c, C.n.Zpa); C.assert(0 <= d && d < this.Yf, C.n.$pa); this.Sb = Math.max(d + 1, this.Sb); this.ZN(c, d); this.dirty = q }, e1: function(c, d) { C.assert(d < this.Yf, C.n.Spa); this.Sb++; if (this.Sb > this.Yf) C.log(C.n.Z7); else { var f = C.Uc.BYTES_PER_ELEMENT, g = d * f, h = (this.Sb - 1 - d) * f; this.hf[this.Sb - 1] = new C.Uc(s, s, s, s, this.eg, (this.Sb - 1) * f); this.$k.set(this.$k.subarray(g, g + h), g + f); this.ZN(c, d); this.dirty = q } }, ZXa: function(c, d, f) { f = f || c.length; C.assert(d + f <= this.Yf, C.n.Tpa); var g = C.Uc.BYTES_PER_ELEMENT; this.Sb += f; if (this.Sb > this.Yf) C.log(C.n.Z7); else { var h = d * g, k = (this.Sb - 1 - d - f) * g, n = this.Sb - 1 - f, p; for (p = 0; p < f; p++) this.hf[n + p] = new C.Uc(s, s, s, s, this.eg, (this.Sb - 1) * g); this.$k.set(this.$k.subarray(h, h + k), h + g * f); for (p = 0; p < f; p++) this.ZN(c[p], d + p); this.dirty = q } }, YXa: function(c, d) { if (c !== d) { C.assert(0 <= d || d < this.Sb, C.n.Qpa); C.assert(0 <= c || c < this.Sb, C.n.Rpa); var f = C.Uc.BYTES_PER_ELEMENT, g = this.$k, h = g.subarray(c * f, f), k; c > d ? (k = d * f, g.set(g.subarray(k, k + (c - d) * f), k + f), g.set(h, k)) : (k = (c + 1) * f, g.set(g.subarray(k, k + (d - c) * f), k - f), g.set(h, d * f)); this.dirty = q } }, Vga: function(c) { C.assert(c < this.Sb, C.n.Xpa); var d = C.Uc.BYTES_PER_ELEMENT; this.Sb--; this.hf.length = this.Sb; if (c !== this.Sb) { var f = (c + 1) * d; this.$k.set(this.$k.subarray(f, f + (this.Sb - c) * d), f - d) } this.dirty = q }, yGa: function(c, d) { C.assert(c + d <= this.Sb, C.n.Ypa); this.Sb -= d; if (c !== this.Sb) { var f = C.Uc.BYTES_PER_ELEMENT, g = (c + d) * f; this.$k.set(this.$k.subarray(g, g + (this.Sb - c) * f), c * f) } this.dirty = q }, NC: function() { this.Sb = this.hf.length = 0 }, Vt: x("dirty"), eR: function(c) { if (c == this.Yf) return q; var d = C.Uc.BYTES_PER_ELEMENT, f = this.Yf; this.Sb = Math.min(this.Sb, c); var g = this.Yf = 0 | c, h = this.Sb; if (this.hf == s) { this.hf = []; this.eg = new ArrayBuffer(d * g); this.$k = new Uint8Array(this.eg); for (c = 0; c < g; c++) this.hf = new C.Uc(s, s, s, s, this.eg, c * d) } else { var k, n, p = this.hf; if (g > f) { k = []; n = new ArrayBuffer(d * g); for (c = 0; c < h; c++) k[c] = new C.Uc(p[c].X, p[c].T, p[c].V, p[c].Y, n, c * d); for (; c < g; c++) k[c] = new C.Uc(s, s, s, s, n, c * d) } else { h = Math.max(h, g); k = []; n = new ArrayBuffer(d * g); for (c = 0; c < h; c++) k[c] = new C.Uc(p[c].X, p[c].T, p[c].V, p[c].Y, n, c * d) } this.$k = new Uint8Array(n); this.hf = k; this.eg = n } this.Qb == s ? this.Qb = new Uint16Array(6 * g) : g > f ? (d = new Uint16Array(6 * g), d.set(this.Qb, 0), this.Qb = d) : this.Qb = this.Qb.subarray(0, 6 * g); this.Aba(); this.cN(); return this.dirty = q }, Pea: function(c) { this.Sb += c }, Sfa: function(c, d, f) { if (f === m) { if (f = d, d = this.Sb - c, C.assert(f + (this.Sb - c) <= this.Yf, C.n.Upa), 0 === d) return } else if (C.assert(f + d <= this.Sb, C.n.Vpa), C.assert(c < this.Sb, C.n.Wpa), c == f) return; var g = C.Uc.BYTES_PER_ELEMENT, h = c * g, k = d * g, n = this.$k, p = n.subarray(h, h + k), r = f * g; f < c ? (d = f * g, n.set(n.subarray(d, d + (c - f) * g), d + k)) : (d = (c + d) * g, n.set(n.subarray(d, d + (f - c) * g), h)); n.set(p, r); this.dirty = q }, wda: function(c, d) { for (var f = d * C.Uc.BYTES_PER_ELEMENT, g = new Uint8Array(this.eg, c * C.Uc.BYTES_PER_ELEMENT, f), h = 0; h < f; h++) g[h] = 0 }, KB: function() { this.oda(this.Sb) }, pPa: function() { var c = C.t; this.Me && (this.Me[0] && c.deleteBuffer(this.Me[0]), this.Me[1] && c.deleteBuffer(this.Me[1])); this.Hw && c.deleteBuffer(this.Hw) } }); H = C.uq.prototype; C.e(H, "totalQuads", H.Eea); C.e(H, "capacity", H.Nda); C.e(H, "quads", H.lea, H.iia); C.uq.create = function(c, d) { return new C.uq(c, d) }; C.L === C.la && (C.assert("function" === typeof C.U.VU, C.n.Bf, "TexturesWebGL.js"), C.U.VU(), delete C.U.VU); C.assert("function" === typeof C.U.UT, C.n.Bf, "TexturesPropertyDefine.js"); C.U.UT(); delete C.U.UT; C.Ll = C.A.extend({ qa: "Scene", ctor: function() { C.A.prototype.ctor.call(this); this.nn = q; this.S(0.5, 0.5); this.Ca(C.Q.aa) } }); C.Ll.create = function() { return new C.Ll }; C.A6 = C.Ll.extend({ Zq: s, $F: 0, Vv: 0, ee: s, qa: "LoaderScene", j: function() { var c = this, d = 200, f = c.xV = C.gd.create(C.color(32, 32, 32, 255)); f.p(C.ts.bP); c.q(f, 0); var g = 24, h = -d / 2 + 100; C.waa && (C.M.wI(C.waa, { g1: t }, function(f, g) { d = g.height; c.$$(g, C.ts.vH) }), g = 14, h = -d / 2 - 10); g = c.ee = C.fa.create("Loading... 0%", "Arial", g); g.p(C.ho(C.ts.vH, C.d(0, h))); g.G(C.color(180, 180, 180)); f.q(this.ee, 10); return q }, $$: function(c, d) { var f = this.Rva = new C.Ma; f.Ng(c); f.Md(); f = this.Cta = C.u.create(f); f.Za(C.Ec()); f.x = d.x; f.y = d.y; this.xV.q(f, 10) }, Z: function() { C.A.prototype.Z.call(this); this.rg(this.MG, 0.3) }, Na: function() { C.A.prototype.Na.call(this); this.ee.sa("Loading... 0%") }, X0: function(c, d) { "string" == typeof c && (c = [c]); this.s2 = c || []; this.mg = d }, MG: function() { var c = this; c.Zh(c.MG); var d = c.s2; c.$F = d.length; c.Vv = 0; C.M.load(d, function(d, g) { c.Vv = g }, function() { c.mg && c.mg() }); c.rg(c.bH) }, bH: function() { var c = this.Vv, d = this.$F, f; f = Math.min(100 * (c / d) | 0, 100); this.ee.sa("Loading... " + f + "%"); c >= d && this.Zh(this.bH) } }); C.A6.KC = function(c, d) { var f = C; f.xI || (f.xI = new C.A6, f.xI.j()); f.xI.X0(c, d); C.Q.PC(f.xI); return f.xI }; C.U.sT = function() { var c = C.qe.prototype; c.Hca = u(); c.cja = u(); c.J = C.A.prototype.J }; C.U.RU = function() { var c = C.gd.prototype; c.cO = s; c.XY = s; c.DZ = s; c.PV = s; c.ZY = s; c.YY = s; c.ctor = function(c, f, g) { this.ZY = new ArrayBuffer(32); this.YY = new ArrayBuffer(16); var h = this.ZY, k = this.YY, n = C.bf.BYTES_PER_ELEMENT, p = ja.BYTES_PER_ELEMENT; this.cO = [new C.bf(0, 0, h, 0), new C.bf(0, 0, h, n), new C.bf(0, 0, h, 2 * n), new C.bf(0, 0, h, 3 * n)]; this.XY = [C.color(0, 0, 0, 255, k, 0), C.color(0, 0, 0, 255, k, p), C.color(0, 0, 0, 255, k, 2 * p), C.color(0, 0, 0, 255, k, 3 * p)]; this.DZ = C.t.createBuffer(); this.PV = C.t.createBuffer(); C.ai.prototype.ctor.call(this); this.C = new C.Vm(C.Ic, C.Hc); C.gd.prototype.j.call(this, c, f, g) }; c.Ca = function(c, f) { var g = this.cO; f === m ? (g[1].x = c.width, g[2].y = c.height, g[3].x = c.width, g[3].y = c.height) : (g[1].x = c, g[2].y = f, g[3].x = c, g[3].y = f); this.yV(); C.qe.prototype.Ca.call(this, c, f) }; c.Qh = function(c) { var f = this.cO; f[1].x = c; f[3].x = c; this.yV(); C.qe.prototype.Qh.call(this, c) }; c.Ph = function(c) { var f = this.cO; f[2].y = c; f[3].y = c; this.yV(); C.qe.prototype.Ph.call(this, c) }; c.Gd = function() { for (var c = this.wb, f = this.hb, g = this.XY, h = 0; 4 > h; h++) g[h].r = c.r, g[h].g = c.g, g[h].b = c.b, g[h].a = f; this.n9() }; c.ka = function(c) { c = c || C.t; C.BC(this); C.rf(C.Ch | C.ZK); c.bindBuffer(c.ARRAY_BUFFER, this.DZ); c.vertexAttribPointer(C.Lc, 2, c.FLOAT, t, 0, 0); c.bindBuffer(c.ARRAY_BUFFER, this.PV); c.vertexAttribPointer(C.Hi, 4, c.UNSIGNED_BYTE, q, 0, 0); C.Gm(this.C.src, this.C.ga); c.drawArrays(c.TRIANGLE_STRIP, 0, 4) }; c.yV = function() { var c = C.t; c.bindBuffer(c.ARRAY_BUFFER, this.DZ); c.bufferData(c.ARRAY_BUFFER, this.ZY, c.STATIC_DRAW) }; c.n9 = function() { var c = C.t; c.bindBuffer(c.ARRAY_BUFFER, this.PV); c.bufferData(c.ARRAY_BUFFER, this.YY, c.STATIC_DRAW) } }; C.U.SU = function() { var c = C.pq.prototype; c.ka = C.gd.prototype.ka; c.Gd = function() { var c = this.Ji, f = C.Ye(c); if (0 !== f) { var g = Math.sqrt(2), c = C.d(c.x / f, c.y / f); this.LL && (c = C.Wp(c, 1 / (Math.abs(c.x) + Math.abs(c.y)) * g)); var h = this.hb / 255, f = this.wb, k = this.Ef, f = { r: f.r, g: f.g, b: f.b, a: this.eB * h }, h = { r: k.r, g: k.g, b: k.b, a: this.Tz * h }, n = this.XY, k = n[0], p = n[1], r = n[2], n = n[3]; k.r = h.r + (f.r - h.r) * ((g + c.x + c.y) / (2 * g)); k.g = h.g + (f.g - h.g) * ((g + c.x + c.y) / (2 * g)); k.b = h.b + (f.b - h.b) * ((g + c.x + c.y) / (2 * g)); k.a = h.a + (f.a - h.a) * ((g + c.x + c.y) / (2 * g)); p.r = h.r + (f.r - h.r) * ((g - c.x + c.y) / (2 * g)); p.g = h.g + (f.g - h.g) * ((g - c.x + c.y) / (2 * g)); p.b = h.b + (f.b - h.b) * ((g - c.x + c.y) / (2 * g)); p.a = h.a + (f.a - h.a) * ((g - c.x + c.y) / (2 * g)); r.r = h.r + (f.r - h.r) * ((g + c.x - c.y) / (2 * g)); r.g = h.g + (f.g - h.g) * ((g + c.x - c.y) / (2 * g)); r.b = h.b + (f.b - h.b) * ((g + c.x - c.y) / (2 * g)); r.a = h.a + (f.a - h.a) * ((g + c.x - c.y) / (2 * g)); n.r = h.r + (f.r - h.r) * ((g - c.x - c.y) / (2 * g)); n.g = h.g + (f.g - h.g) * ((g - c.x - c.y) / (2 * g)); n.b = h.b + (f.b - h.b) * ((g - c.x - c.y) / (2 * g)); n.a = h.a + (f.a - h.a) * ((g - c.x - c.y) / (2 * g)); this.n9() } } }; C.U.RT = function() { var c = C.ai.prototype; C.e(c, "opacityModifyRGB", c.qg, c.$d); C.e(c, "opacity", c.rb, c.K); C.e(c, "cascadeOpacity", c.nI, c.Qu); C.e(c, "color", c.Xa, c.G); C.e(c, "cascadeColor", c.mI, c.Pu) }; C.U.PT = function() { var c = C.gd.prototype; C.e(c, "width", c.ef, c.Qh); C.e(c, "height", c.Dg, c.Ph) }; C.U.QT = function() { var c = C.pq.prototype; C.e(c, "startColor", c.NP, c.tg); C.e(c, "endColor", c.EP, c.sg); C.e(c, "startOpacity", c.TBa, c.tia); C.e(c, "endOpacity", c.vAa, c.Aha); C.e(c, "vector", c.mCa, c.UR) }; C.qe = C.A.extend({ gw: t, tL: s, qa: "Layer", ctor: function() { var c = C.A.prototype; c.ctor.call(this); this.nn = q; c.S.call(this, 0.5, 0.5); c.Ca.call(this, C.KJ) }, Hca: s, cja: s, iYa: A("gw"), J: s }); C.qe.create = function() { return new C.qe }; if (C.L === C.cb) { var ka = C.qe.prototype; ka.Hca = function() { if (!this.gw) { this.gw = this.Lk = q; this.Fq = this; for (var c = this.l, d = 0, f = c.length; d < f; d++) c[d].zY(this); this.tL || (this.tL = new C.ika) } }; ka.cja = function() { if (this.gw) { this.gw = t; this.Lk = q; this.Fq = s; for (var c = this.l, d = 0, f = c.length; d < f; d++) c[d].zY(s) } }; ka.J = function(c) { if (this.gw) { c = c || C.t; var d, f = this.l, g = f.length; if (this.Ja && 0 !== g) { var h = this.tL; c.save(); this.transform(c); if (this.Lk) { d = this.HW(); d.width |= 0; d.height |= 0; var k = h.Ki; h.Yga(d.width, d.height); k.translate(0 - d.x, d.height + d.y); var n = h.Ep(); h.p(n.x + d.x, n.y + d.y); this.ed(); for (d = 0; d < g; d++) f[d].J(k); this.Lk = t } h.J(c); this.arrivalOrder = 0; c.restore() } } else C.A.prototype.J.call(this, c) }; ka.HW = function() { var c = s; if (!this.l || 0 === this.l.length) return C.rect(0, 0, 10, 10); for (var d = this.l, f = 0; f < d.length; f++) { var g = d[f]; g && g.Ja && (c ? (g = g.JF()) && (c = C.MC(c, g)) : c = g.JF()) } return c }; ka = s } else C.assert("function" === typeof C.U.sT, C.n.Bf, "CCLayerWebGL.js"), C.U.sT(), delete C.U.sT; C.ai = C.qe.extend({ sb: q, hb: 255, Ig: 255, wb: s, od: s, Ag: t, Zf: t, qa: "LayerRGBA", ctor: function() { C.qe.prototype.ctor.call(this); this.wb = C.color(255, 255, 255, 255); this.od = C.color(255, 255, 255, 255) }, j: function() { var c = C.qe.prototype; this.nn = q; c.S.call(this, 0.5, 0.5); c.Ca.call(this, C.KJ); this.cascadeColor = this.cascadeOpacity = t; return q }, rb: A("Ig"), Tda: A("hb"), K: function(c) { this.hb = this.Ig = c; var d = 255, f = this.Vb; f && (f.sb && f.cascadeOpacity) && (d = f.hb); this.dc(d); this.wb.a = this.od.a = c }, dc: function(c) { this.hb = 0 | this.Ig * c / 255; if (this.Ag) { c = this.l; for (var d, f = 0; f < c.length; f++)(d = c[f]) && d.sb && d.dc(this.hb) } }, nI: A("Ag"), Qu: function(c) { this.Ag !== c && ((this.Ag = c) ? this.Sz() : this.dW()) }, Sz: function() { var c = 255, d = this.Vb; d && (d.sb && d.cascadeOpacity) && (c = d.hb); this.dc(c) }, dW: function() { this.hb = this.Ig; for (var c = this.l, d, f = 0; f < c.length; f++)(d = c[f]) && d.sb && d.dc(255) }, Xa: function() { var c = this.od; return C.color(c.r, c.g, c.b, c.a) }, xu: function() { var c = this.wb; return C.color(c.r, c.g, c.b) }, G: function(c) { var d = this.wb, f = this.od; d.r = f.r = c.r; d.g = f.g = c.g; d.b = f.b = c.b; d = (d = this.Vb) && d.sb && d.cascadeColor ? d.xu() : C.color.WHITE; this.Tb(d); c.a !== m && !c.jx && this.K(c.a) }, Tb: function(c) { var d = this.wb, f = this.od; d.r = 0 | f.r * c.r / 255; d.g = 0 | f.g * c.g / 255; d.b = 0 | f.b * c.b / 255; if (this.Zf) { c = this.l; for (var g = 0; g < c.length; g++)(f = c[g]) && f.sb && f.Tb(d) } }, mI: A("Zf"), Pu: function(c) { this.Zf !== c && ((this.Zf = c) ? this.Rz() : this.cW()) }, Rz: function() { var c; c = (c = this.Vb) && c.sb && c.cascadeColor ? c.xu() : C.color.WHITE; this.Tb(c) }, cW: function() { var c = this.wb, d = this.od; c.r = d.r; c.g = d.g; c.b = d.b; var c = this.l, d = C.color.WHITE, f, g; for (g = 0; g < c.length; g++)(f = c[g]) && f.sb && f.Tb(d) }, q: function(c, d, f) { C.A.prototype.q.call(this, c, d, f); this.Zf && this.Rz(); this.Ag && this.Sz() }, $d: u(), qg: B(t) }); C.assert("function" === typeof C.U.RT, C.n.Bf, "CCLayerPropertyDefine.js"); C.U.RT(); delete C.U.RT; C.gd = C.ai.extend({ C: s, qa: "LayerColor", ek: A("C"), SQa: function(c, d) { this.width = c; this.height = d }, RQa: x("width"), QQa: x("height"), $d: u(), qg: B(t), G: function(c) { C.ai.prototype.G.call(this, c); this.Gd() }, K: function(c) { C.ai.prototype.K.call(this, c); this.Gd() }, rA: t, ctor: s, j: function(c, d, f) { C.L !== C.cb && (this.shaderProgram = C.ug.Xd(C.JK)); var g = C.Q.aa; c = c || C.color(0, 0, 0, 255); d = d === m ? g.width: d; f = f === m ? g.height: f; g = this.wb; g.r = c.r; g.g = c.g; g.b = c.b; g = this.od; g.r = c.r; g.g = c.g; g.b = c.b; this.Ig = this.hb = c.a; c = C.gd.prototype; c.Ca.call(this, d, f); c.Gd.call(this); return q }, Yd: function(c, d) { this.C = d === m ? c: { src: c, ga: d }; C.L === C.cb && (this.rA = this.C && 1 == this.C.src && 771 == this.C.ga) }, Qh: s, Ph: s, Gd: s, Tb: function(c) { C.ai.prototype.Tb.call(this, c); this.Gd() }, dc: function(c) { C.ai.prototype.dc.call(this, c); this.Gd() }, ka: s }); C.gd.create = function(c, d, f) { return new C.gd(c, d, f) }; C.L === C.cb ? (H = C.gd.prototype, H.ctor = function(c, d, f) { C.ai.prototype.ctor.call(this); this.C = new C.Vm(C.Ic, C.Hc); C.gd.prototype.j.call(this, c, d, f) }, H.Qh = C.ai.prototype.Qh, H.Ph = C.ai.prototype.Ph, H.Gd = u(), H.ka = function(c) { c = c || C.t; var d = C.view, f = this.wb; c.fillStyle = "rgba(" + (0 | f.r) + "," + (0 | f.g) + "," + (0 | f.b) + "," + this.hb / 255 + ")"; c.fillRect(0, 0, this.width * d.ia, -this.height * d.pa); C.kl++ }, H.J = function(c) { if (this.gw) { c = c || C.t; var d, f = this.l, g = f.length; if (this.Ja) { var h = this.tL; c.save(); this.transform(c); if (this.Lk) { d = this.HW(); d.width |= 0; d.height |= 0; var k = h.Ki; h.Yga(d.width, d.height); var n = h.Ep(), p = this.ma; if (this.nn) k.translate(0 - d.x + p.x, d.height + d.y - p.y), h.p(n.x + d.x - p.x, n.y + d.y - p.y); else { var r = this.Ep(), v = p.x - r.x, p = p.y - r.y; k.translate(0 - d.x + v, d.height + d.y - p); h.p(n.x + d.x - v, n.y + d.y - p) } if (0 < g) { this.ed(); for (d = 0; d < g; d++) if (n = f[d], 0 > n.Wa) n.J(k); else break; for (this.ka(k); d < g; d++) f[d].J(k) } else this.ka(k); this.Lk = t } h.J(c); this.arrivalOrder = 0; c.restore() } } else C.A.prototype.J.call(this, c) }, H.HW = function() { var c = C.rect(0, 0, this.o.width, this.o.height), d = this.ql(), c = C.Gi(c, this.ql()); if (!this.l || 0 === this.l.length) return c; for (var f = this.l, g = 0; g < f.length; g++) { var h = f[g]; h && h.Ja && (h = h.JF(d), c = C.MC(c, h)) } return c }, H = s) : (C.assert("function" === typeof C.U.RU, C.n.Bf, "CCLayerWebGL.js"), C.U.RU(), delete C.U.RU); C.assert("function" === typeof C.U.PT, C.n.Bf, "CCLayerPropertyDefine.js"); C.U.PT(); delete C.U.PT; C.pq = C.gd.extend({ Kg: s, Ef: s, eB: 255, Tz: 255, Ji: s, LL: t, iA: s, hA: s, qa: "LayerGradient", ctor: function(c, d, f) { C.gd.prototype.ctor.call(this); this.Kg = C.color(0, 0, 0, 255); this.Ef = C.color(0, 0, 0, 255); this.Ji = C.d(0, -1); this.Tz = this.eB = 255; this.iA = C.d(0, 0); this.hA = C.d(0, 0); C.pq.prototype.j.call(this, c, d, f) }, j: function(c, d, f) { c = c || C.color(0, 0, 0, 255); d = d || C.color(0, 0, 0, 255); f = f || C.d(0, -1); var g = this.Kg, h = this.Ef; g.r = c.r; g.g = c.g; g.b = c.b; this.eB = c.a; h.r = d.r; h.g = d.g; h.b = d.b; this.Tz = d.a; this.Ji = f; this.LL = q; this.iA = C.d(0, 0); this.hA = C.d(0, 0); C.gd.prototype.j.call(this, C.color(c.r, c.g, c.b, 255)); C.pq.prototype.Gd.call(this); return q }, Ca: function(c, d) { C.gd.prototype.Ca.call(this, c, d); this.Gd() }, Qh: function(c) { C.gd.prototype.Qh.call(this, c); this.Gd() }, Ph: function(c) { C.gd.prototype.Ph.call(this, c); this.Gd() }, NP: A("od"), tg: x("color"), sg: function(c) { this.Ef = c; this.Gd() }, EP: A("Ef"), tia: function(c) { this.eB = c; this.Gd() }, TBa: A("eB"), Aha: function(c) { this.Tz = c; this.Gd() }, vAa: A("Tz"), UR: function(c) { this.Ji.x = c.x; this.Ji.y = c.y; this.Gd() }, mCa: function() { return C.d(this.Ji.x, this.Ji.y) }, mYa: A("LL"), H3a: function(c) { this.LL = c; this.Gd() }, AOa: s, Gd: s }); C.pq.create = function(c, d, f) { return new C.pq(c, d, f) }; C.L === C.cb ? (H = C.pq.prototype, H.ka = function(c) { c = c || C.t; this.rA && (c.globalCompositeOperation = "lighter"); c.save(); var d = C.view, f = this.hb / 255, g = this.width * d.ia, d = this.height * d.pa, h = c.createLinearGradient(this.iA.x, this.iA.y, this.hA.x, this.hA.y), k = this.wb, n = this.Ef; h.addColorStop(0, "rgba(" + Math.round(k.r) + "," + Math.round(k.g) + "," + Math.round(k.b) + "," + (f * (this.eB / 255)).toFixed(4) + ")"); h.addColorStop(1, "rgba(" + Math.round(n.r) + "," + Math.round(n.g) + "," + Math.round(n.b) + "," + (f * (this.Tz / 255)).toFixed(4) + ")"); c.fillStyle = h; c.fillRect(0, 0, g, -d); 0 != this.XA && c.rotate(this.rPa); c.restore() }, H.Gd = function() { var c = this.Ji, d = 0.5 * this.width, f = 0.5 * this.height; this.iA.x = d * -c.x + d; this.iA.y = f * c.y - f; this.hA.x = d * c.x + d; this.hA.y = f * -c.y - f }, H = s) : (C.assert("function" === typeof C.U.SU, C.n.Bf, "CCLayerWebGL.js"), C.U.SU(), delete C.U.SU); C.assert("function" === typeof C.U.QT, C.n.Bf, "CCLayerPropertyDefine.js"); C.U.QT(); delete C.U.QT; C.uT = C.qe.extend({ Yv: 0, oi: s, qa: "LayerMultiplex", ctor: function(c) { C.qe.prototype.ctor.call(this); c && C.uT.prototype.SCa.call(this, c) }, SCa: function(c) { 0 < c.length && c[c.length - 1] == s && C.log(C.n.Vma); this.oi = c; this.Yv = 0; this.q(this.oi[this.Yv]); return q }, e6a: function(c) { c >= this.oi.length ? C.log(C.n.Wma) : (this.removeChild(this.oi[this.Yv], q), this.Yv = c, this.q(this.oi[c])) }, f6a: function(c) { c >= this.oi.length ? C.log(C.n.Xma) : (this.removeChild(this.oi[this.Yv], q), this.oi[this.Yv] = s, this.Yv = c, this.q(this.oi[c])) }, aQa: function(c) { c ? this.oi.push(c) : C.log(C.n.Uma) } }); C.uT.create = function() { return new C.uT(arguments) }; C.U.TU = function() { var c = C.u.prototype; c.VY = function(c) { this.Da(q); this.qc(c.Vh(), c.fg, c.Gg); this.cf() }; c.$d = function(c) { this.Fb !== c && (this.Fb = c, this.ro()) }; c.dc = function(c) { C.ha.prototype.dc.call(this, c); this.ro() }; c.ctor = function(c, f, g) { C.ha.prototype.ctor.call(this); this.Xt = t; this.ld = C.d(0, 0); this.Nn = C.d(0, 0); this.C = { src: C.Ic, ga: C.Hc }; this.Ra = C.rect(0, 0, 0, 0); this.Td = new C.Uc; this.HN = C.t.createBuffer(); this.Aa = this.Ti = q; this.Jba(c, f, g) }; c.Yd = function(c, f) { var g = this.C; f === m ? (g.src = c.src, g.ga = c.ga) : (g.src = c, g.ga = f) }; c.j = function() { if (0 < arguments.length) return this.Ce(arguments[0], arguments[1]); C.ha.prototype.j.call(this); this.dirty = this.An = t; this.Fb = q; this.C.src = C.Ic; this.C.ga = C.Hc; this.texture = s; this.Aa = q; this.Bb = this.Db = t; this.anchorY = this.anchorX = 0.5; this.ld.x = 0; this.ld.y = 0; this.ap = t; var c = { r: 255, g: 255, b: 255, a: 255 }; this.Td.T.F = c; this.Td.Y.F = c; this.Td.X.F = c; this.Td.V.F = c; this.Ti = q; this.qc(C.rect(0, 0, 0, 0), t, C.size(0, 0)); return q }; c.ta = function(c, f, g) { C.assert(0 != arguments.length, C.n.dpa); g = g || t; if (!C.ha.prototype.j.call(this)) return t; this.wa = s; this.dirty = this.An = t; this.Fb = q; this.C.src = C.Ic; this.C.ga = C.Hc; this.Bb = this.Db = t; this.anchorY = this.anchorX = 0.5; this.ld.x = 0; this.ld.y = 0; this.ap = t; var h = C.color(255, 255, 255, 255), k = this.Td; k.T.F = h; k.Y.F = h; k.X.F = h; k.V.F = h; this.Aa = h = c.de; if (!h) return this.jf = g || t, f && (h = this.Ra, h.x = f.x, h.y = f.y, h.width = f.width, h.height = f.height), c.ye(this.oO, this), q; f || (f = C.rect(0, 0, c.width, c.height)); c && (g ? (h = f.x + f.height, k = f.y + f.width) : (h = f.x + f.width, k = f.y + f.height), h > c.width && C.error(C.n.YT, c.url), k > c.height && C.error(C.n.XT, c.url)); this.texture = c; this.qc(f, g); this.batchNode = s; return this.Ti = q }; c.oO = function(c) { if (!this.Aa) { this.Aa = q; var f = this.Ra; f ? C.wG(f) && (f.width = c.width, f.height = c.height) : f = C.rect(0, 0, c.width, c.height); this.texture = c; this.qc(f, this.jf); this.batchNode = this.wa; this.Ti = q; this.cf() } }; c.qc = function(c, f, g) { this.jf = f || t; this.Ca(g || c); this.x3(c); this.xba(c); c = this.Nn; this.Bb && (c.x = -c.x); this.Db && (c.y = -c.y); var h = this.Ra; this.ld.x = c.x + (this.o.width - h.width) / 2; this.ld.y = c.y + (this.o.height - h.height) / 2; if (this.wa) this.dirty = q; else { c = 0 + this.ld.x; f = 0 + this.ld.y; g = c + h.width; var h = f + h.height, k = this.Td; k.T.m = { x: c, y: f, f: 0 }; k.Y.m = { x: g, y: f, f: 0 }; k.X.m = { x: c, y: h, f: 0 }; k.V.m = { x: g, y: h, f: 0 }; this.Ti = q } }; c.$h = function() { if (this.dirty) { var c = this.Td, f = this.Vb; if (!this.Ja || f && f != this.wa && f.Xt) c.Y.m = { x: 0, y: 0, f: 0 }, c.X.m = { x: 0, y: 0, f: 0 }, c.V.m = { x: 0, y: 0, f: 0 }, c.T.m = { x: 0, y: 0, f: 0 }, this.Xt = q; else { this.Xt = t; var g = this.dx = !f || f == this.wa ? this.me() : C.Qg(this.me(), f.dx), h = this.Ra, f = this.ld.x, k = this.ld.y, n = f + h.width, p = k + h.height, r = g.na, v = g.oa, y = g.a, z = g.b, D = g.P, E = -g.H, g = f * y - k * E + r, h = f * z + k * D + v, F = n * y - k * E + r, k = n * z + k * D + v, G = n * y - p * E + r, n = n * z + p * D + v, r = f * y - p * E + r, f = f * z + p * D + v, p = this.gH; C.bU || (g |= 0, h |= 0, F |= 0, k |= 0, G |= 0, n |= 0, r |= 0, f |= 0); c.T.m = { x: g, y: h, f: p }; c.Y.m = { x: F, y: k, f: p }; c.X.m = { x: r, y: f, f: p }; c.V.m = { x: G, y: n, f: p } } this.textureAtlas.HJ(c, this.atlasIndex); this.dirty = this.An = t } this.ap && this.Jk(this.l, C.A.Gj.$h); C.Es && (c = [C.d(this.Td.T.m.x, this.Td.T.m.y), C.d(this.Td.Y.m.x, this.Td.Y.m.y), C.d(this.Td.V.m.x, this.Td.V.m.y), C.d(this.Td.X.m.x, this.Td.X.m.y)], C.Df.Of(c, 4, q)) }; c.q = function(c, f, g) { C.assert(c, C.n.Voa); f == s && (f = c.Wa); g == s && (g = c.tag); if (this.wa) { if (! (c instanceof C.u)) { C.log(C.n.Toa); return } c.texture.Sh !== this.textureAtlas.texture.Sh && C.log(C.n.Uoa); this.wa.appendChild(c); this.Oh || this.JY() } C.ha.prototype.q.call(this, c, f, g); this.ap = q }; c.K = function(c) { C.ha.prototype.K.call(this, c); this.ro() }; c.G = function(c) { C.ha.prototype.G.call(this, c); this.ro() }; c.Tb = function(c) { C.ha.prototype.Tb.call(this, c); this.ro() }; c.pc = function(c) { var f = this; "string" == typeof c && (c = C.Fe.nh(c), C.assert(c, C.n.mpa)); f.Da(q); var g = c.fb; f.Nn.x = g.x; f.Nn.y = g.y; g = c.ob(); c.Aa || (f.Aa = t, c.ye(function(c) { f.Aa = q; var d = c.ob(); d != f.da && (f.texture = d); f.qc(c.Vh(), c.fg, c.Gg); f.cf() }, f)); g != f.da && (f.texture = g); f.jf = c.fg; f.qc(c.Vh(), f.jf, c.Gg) }; c.hfa = function(c) { return C.Ega(c.Vh(), this.Ra) && c.ob().getName() == this.da.getName() && C.b2(c.fb, this.Nn) }; c.os = function(c) { if (this.wa = c) this.dx = { a: 1, b: 0, H: 0, P: 1, na: 0, oa: 0 }, this.textureAtlas = this.wa.textureAtlas; else { this.atlasIndex = C.u.nT; this.textureAtlas = s; this.dirty = this.An = t; c = this.ld.x; var f = this.ld.y, g = c + this.Ra.width, h = f + this.Ra.height, k = this.Td; k.T.m = { x: c, y: f, f: 0 }; k.Y.m = { x: g, y: f, f: 0 }; k.X.m = { x: c, y: h, f: 0 }; k.V.m = { x: g, y: h, f: 0 }; this.Ti = q } }; c.Va = function(c) { c && "string" === typeof c ? (c = C.kb.sd(c), this.Va(c), c = c.i(), this.qc(C.rect(0, 0, c.width, c.height))) : (C.assert(!c || c instanceof C.Ma, C.n.opa), this.wa && this.wa.texture != c ? C.log(C.n.npa) : (this.shaderProgram = c ? C.ug.Xd(C.Co) : C.ug.Xd(C.JK), !this.wa && this.da != c && (this.da = c, this.hl()))) }; c.ka = function() { if (this.Aa) { var c = C.t, f = this.da; f ? f.de && (this.pd.Af(), this.pd.Bj(), C.Gm(this.C.src, this.C.ga), C.M0(0, f), C.rf(C.Dv), c.bindBuffer(c.ARRAY_BUFFER, this.HN), this.Ti && (c.bufferData(c.ARRAY_BUFFER, this.Td.WO, c.DYNAMIC_DRAW), this.Ti = t), c.vertexAttribPointer(0, 3, c.FLOAT, t, 24, 0), c.vertexAttribPointer(1, 4, c.UNSIGNED_BYTE, q, 24, 12), c.vertexAttribPointer(2, 2, c.FLOAT, t, 24, 16), c.drawArrays(c.TRIANGLE_STRIP, 0, 4)) : (this.pd.Af(), this.pd.Bj(), C.Gm(this.C.src, this.C.ga), C.yi(s), C.rf(C.Ch | C.ZK), c.bindBuffer(c.ARRAY_BUFFER, this.HN), this.Ti && (C.t.bufferData(C.t.ARRAY_BUFFER, this.Td.WO, C.t.STATIC_DRAW), this.Ti = t), c.vertexAttribPointer(C.Lc, 3, c.FLOAT, t, 24, 0), c.vertexAttribPointer(C.Hi, 4, c.UNSIGNED_BYTE, q, 24, 12), c.drawArrays(c.TRIANGLE_STRIP, 0, 4)); C.kl++; if (0 !== C.Es || this.OY) 1 === C.Es || this.OY ? (c = this.Td, c = [C.d(c.X.m.x, c.X.m.y), C.d(c.T.m.x, c.T.m.y), C.d(c.Y.m.x, c.Y.m.y), C.d(c.V.m.x, c.V.m.y)], C.Df.Of(c, 4, q)) : 2 === C.Es && (c = this.WH(), f = this.ld, c = [C.d(f.x, f.y), C.d(f.x + c.width, f.y), C.d(f.x + c.width, f.y + c.height), C.d(f.x, f.y + c.height)], C.Df.Of(c, 4, q)) } }; delete c }; C.U.ST = function() { var c = C.u.prototype; C.e(c, "opacityModifyRGB", c.qg, c.$d); C.e(c, "opacity", c.rb, c.K); C.e(c, "color", c.Xa, c.G); C.e(c, "flippedX", c.oI, c.Nd); C.e(c, "flippedY", c.pI, c.Uf); C.e(c, "offsetX", c.Asa); C.e(c, "offsetY", c.Bsa); C.e(c, "texture", c.ob, c.Va); C.e(c, "textureRectRotated", c.BDa); C.e(c, "batchNode", c.XB, c.os); C.e(c, "quad", c.CBa) }; C.SB = function(c) { function d() { var d = C.SB, g = c.width, n = c.height; f[0].width = g; f[0].height = n; f[1].width = g; f[1].height = n; f[2].width = g; f[2].height = n; f[3].width = g; f[3].height = n; d.canvas.width = g; d.canvas.height = n; var p = d.canvas.getContext("2d"); p.drawImage(c, 0, 0); d.L3.width = g; d.L3.height = n; for (var p = p.getImageData(0, 0, g, n).data, r = 0; 4 > r; r++) { var v = f[r].getContext("2d"); v.getImageData(0, 0, g, n).data; d.Via.drawImage(c, 0, 0); for (var y = d.Via.getImageData(0, 0, g, n), z = y.data, D = 0; D < p.length; D += 4) z[D] = 0 === r ? p[D] : 0, z[D + 1] = 1 === r ? p[D + 1] : 0, z[D + 2] = 2 === r ? p[D + 2] : 0, z[D + 3] = p[D + 3]; v.putImageData(y, 0, 0) } c.onload = s } if (c.Pca) return c.Pca; var f = [C.bd("canvas"), C.bd("canvas"), C.bd("canvas"), C.bd("canvas")]; try { d() } catch(g) { c.onload = d } return c.Pca = f }; C.SB.canvas = C.bd("canvas"); C.SB.L3 = C.bd("canvas"); C.SB.Via = C.SB.L3.getContext("2d"); C.ESa = function(c, d, f) { f || (f = C.rect(0, 0, c.width, c.height), f = C.js(f)); var g = C.bd("canvas"), h = g.getContext("2d"); g.width != f.width && (g.width = f.width); g.height != f.height && (g.height = f.height); h.save(); h.drawImage(c, f.x, f.y, f.width, f.height, 0, 0, f.width, f.height); h.globalCompositeOperation = "source-in"; h.globalAlpha = d.a / 255; h.fillStyle = "rgb(" + d.r + "," + d.g + "," + d.b + ")"; h.fillRect(0, 0, f.width, f.height); h.restore(); return g }; C.TB = function(c, d, f, g, h) { g || (g = C.rect(0, 0, c.width, c.height)); c = f.r / 255; var k = f.g / 255; f = f.b / 255; var n = Math.min(g.width, d[0].width), p = Math.min(g.height, d[0].height), r; h ? (r = h.getContext("2d"), r.clearRect(0, 0, n, p)) : (h = C.bd("canvas"), h.width = n, h.height = p, r = h.getContext("2d")); r.save(); r.globalCompositeOperation = "lighter"; var v = r.globalAlpha; 0 < c && (r.globalAlpha = c * v, r.drawImage(d[0], g.x, g.y, n, p, 0, 0, n, p)); 0 < k && (r.globalAlpha = k * v, r.drawImage(d[1], g.x, g.y, n, p, 0, 0, n, p)); 0 < f && (r.globalAlpha = f * v, r.drawImage(d[2], g.x, g.y, n, p, 0, 0, n, p)); 1 > c + k + f && (r.globalAlpha = v, r.drawImage(d[3], g.x, g.y, n, p, 0, 0, n, p)); r.restore(); return h }; C.J_ = function(c, d) { if (!c) return s; if (!d) return c; var f = C.bd("canvas"); f.width = d.width; f.height = d.height; var g = f.getContext("2d"); g.translate(f.width / 2, f.height / 2); g.rotate( - 1.5707963267948966); g.drawImage(c, d.x, d.y, d.height, d.width, -d.height / 2, -d.width / 2, d.height, d.width); return f }; C.u = C.ha.extend({ sb: q, dirty: t, atlasIndex: 0, textureAtlas: s, wa: s, An: s, ap: s, Xt: t, dx: s, C: s, da: s, Ra: s, jf: t, ld: s, Nn: s, Fb: t, Bb: t, Db: t, Aa: t, ac: s, zX: s, qa: "Sprite", eD: A("Aa"), ye: function(c, d) { this.ac || (this.ac = []); this.ac.push({ jl: c, jj: d }) }, cf: function() { if (this.ac) { for (var c = this.ac, d = 0, f = c.length; d < f; d++) { var g = c[d]; g.jl.call(g.jj, this) } c.length = 0 } }, h1: A("dirty"), xha: x("dirty"), BDa: A("jf"), WB: A("atlasIndex"), C2: x("atlasIndex"), WH: function() { return C.rect(this.Ra.x, this.Ra.y, this.Ra.width, this.Ra.height) }, VH: A("textureAtlas"), p3: x("textureAtlas"), CVa: A("ld"), Asa: function() { return this.ld.x }, Bsa: function() { return this.ld.y }, ek: A("C"), mj: function(c) { C.assert(c, C.n.apa); c.Aa || (this.Aa = t, c.ye(this.VY, this)); var d = C.L === C.cb ? t: c.fg, d = this.ta(c.ob(), c.Vh(), d); this.pc(c); return d }, VY: s, pl: function(c) { C.assert(c, C.n.bpa); var d = C.Fe.nh(c); C.assert(d, c + C.n.cpa); return this.mj(d) }, K6a: function(c) { this.textureAtlas = c.textureAtlas; this.wa = c }, x3: function(c) { this.Ra.x = c.x; this.Ra.y = c.y; this.Ra.width = c.width; this.Ra.height = c.height }, ed: function() { if (this.Oh) { var c = this.l, d = c.length, f, g, h; for (f = 1; f < d; f++) { h = c[f]; for (g = f - 1; 0 <= g;) { if (h.Wa < c[g].Wa) c[g + 1] = c[g]; else if (h.Wa === c[g].Wa && h.arrivalOrder < c[g].arrivalOrder) c[g + 1] = c[g]; else break; g-- } c[g + 1] = h } this.wa && this.Jk(c, C.A.Gj.ed); this.Oh = t } }, OC: function(c, d) { C.assert(c, C.n.hpa); - 1 === this.l.indexOf(c) ? C.log(C.n.gpa) : d !== c.zIndex && (this.wa && !this.Oh && (this.JY(), this.wa.Wga(q)), C.A.prototype.OC.call(this, c, d)) }, removeChild: function(c, d) { this.wa && this.wa.by(c); C.A.prototype.removeChild.call(this, c, d) }, xf: function(c) { var d = this.l, f = this.wa; if (f && d != s) for (var g = 0, h = d.length; g < h; g++) f.by(d[g]); C.A.prototype.xf.call(this, c); this.ap = t }, yha: function(c) { this.dirty = this.An = c; c = this.l; for (var d, f = c ? c.length: 0, g = 0; g < f; g++) d = c[g], d instanceof C.u && d.yha(q) }, Da: function(c) { C.A.prototype.Da.call(this); ! c && (this.wa && !this.An) && (this.ap ? this.yha(q) : this.dirty = this.An = q) }, Hm: function(c) { this.wa ? C.log(C.n.Zoa) : C.A.prototype.Hm.call(this, c) }, Nd: function(c) { this.Bb != c && (this.Bb = c, this.qc(this.Ra, this.jf, this.o), this.Da(q)) }, Uf: function(c) { this.Db != c && (this.Db = c, this.qc(this.Ra, this.jf, this.o), this.Da(q)) }, oI: A("Bb"), pI: A("Db"), $d: s, qg: A("Fb"), dc: s, T3a: function(c, d) { C.assert(c, C.n.lpa); var f = C.oH.ll(c); f ? (f = f.Lh[d]) ? this.pc(f.nh()) : C.log(C.n.kpa) : C.log(C.n.jpa) }, XB: A("wa"), JY: function() { if (!this.Oh) { this.Oh = q; for (var c = this.Vb; c && c != this.wa;) c.JY(), c = c.parent } }, ob: A("da"), Td: s, HN: s, Ti: t, KL: t, rA: t, qi: s, jB: s, mW: s, ctor: s, Jba: function(c, d, f) { if (c === m) C.u.prototype.j.call(this); else if ("string" === typeof c)"#" === c[0] ? (c = C.Fe.nh(c.substr(1, c.length - 1)), this.mj(c)) : C.u.prototype.j.call(this, c, d); else if ("object" === typeof c) if (c instanceof C.Ma) this.ta(c, d, f); else if (c instanceof C.di) this.mj(c); else if (c instanceof HTMLImageElement || c instanceof HTMLCanvasElement) d = new C.Ma, d.Ng(c), d.Md(), this.ta(d) }, CBa: A("Td"), Yd: s, j: s, Ce: function(c, d) { C.assert(c, C.n.$oa); var f = C.kb.av(c); if (f) { if (!d) { var g = f.i(); d = C.rect(0, 0, g.width, g.height) } return this.ta(f, d) } f = C.kb.sd(c); return this.ta(f, d || C.rect(0, 0, f.o.width, f.o.height)) }, ta: s, oO: s, qc: s, $h: s, q: s, ro: function() { var c = this.wb, d = this.hb, c = { r: c.r, g: c.g, b: c.b, a: d }; this.Fb && (c.r *= d / 255, c.g *= d / 255, c.b *= d / 255); d = this.Td; d.T.F = c; d.Y.F = c; d.X.F = c; d.V.F = c; this.wa && (this.atlasIndex != C.u.nT ? this.textureAtlas.HJ(d, this.atlasIndex) : this.dirty = q); this.Ti = q }, K: s, G: s, Tb: s, pc: s, pHa: function(c) { C.log(C.n.ipa); this.pc(c) }, hfa: s, Hya: function() { return C.di.create(this.da, C.XI(this.Ra), this.jf, C.KFa(this.Nn), C.FIa(this.o)) }, os: s, Va: s, hl: function() { this.wa ? C.log(C.n.Soa) : !this.da || !this.da.Hp() ? (this.C.src = C.SRC_ALPHA, this.C.ga = C.ONE_MINUS_SRC_ALPHA, this.opacityModifyRGB = t) : (this.C.src = C.Ic, this.C.ga = C.Hc, this.opacityModifyRGB = q) }, ct: function() { var c, d = this.da, f = this.jB; if (d && (f.nD && this.qi) && (c = d.jd)) if (d = C.kb.OP(this.qi.jd)) this.KL = q, c instanceof HTMLCanvasElement && !this.jf && !this.zX ? C.TB(c, d, this.wb, f, c) : (c = C.TB(c, d, this.wb, f), d = new C.Ma, d.Ng(c), d.Md(), this.texture = d) }, xba: function(c) { c = C.XI(c); var d = this.wa ? this.textureAtlas.texture: this.da; if (d) { var f = d.pixelsWidth, g = d.pixelsHeight, h, k = this.Td; this.jf ? (C.Qy ? (d = (2 * c.x + 1) / (2 * f), f = d + (2 * c.height - 2) / (2 * f), h = (2 * c.y + 1) / (2 * g), c = h + (2 * c.width - 2) / (2 * g)) : (d = c.x / f, f = (c.x + c.height) / f, h = c.y / g, c = (c.y + c.width) / g), this.Bb && (g = h, h = c, c = g), this.Db && (g = d, d = f, f = g), k.T.v.xa = d, k.T.v.ea = h, k.Y.v.xa = d, k.Y.v.ea = c, k.X.v.xa = f, k.X.v.ea = h, k.V.v.xa = f, k.V.v.ea = c) : (C.Qy ? (d = (2 * c.x + 1) / (2 * f), f = d + (2 * c.width - 2) / (2 * f), h = (2 * c.y + 1) / (2 * g), c = h + (2 * c.height - 2) / (2 * g)) : (d = c.x / f, f = (c.x + c.width) / f, h = c.y / g, c = (c.y + c.height) / g), this.Bb && (g = d, d = f, f = g), this.Db && (g = h, h = c, c = g), k.T.v.xa = d, k.T.v.ea = c, k.Y.v.xa = f, k.Y.v.ea = c, k.X.v.xa = d, k.X.v.ea = h, k.V.v.xa = f, k.V.v.ea = h); this.Ti = q } }, ka: s }); C.u.create = function(c, d, f) { return new C.u(c, d, f) }; C.u.nT = -1; C.L === C.cb ? (H = C.u.prototype, H.VY = function(c) { this.Da(q); this.qc(c.Vh(), c.fg, c.Gg); c = this.color; (255 !== c.r || 255 !== c.g || 255 !== c.b) && this.ct(); this.cf() }, H.$d = function(c) { this.Fb !== c && (this.Fb = c, this.Da(q)) }, H.dc = function(c) { C.ha.prototype.dc.call(this, c); this.Fn() }, H.ctor = function(c, d, f) { C.ha.prototype.ctor.call(this); this.Xt = t; this.ld = C.d(0, 0); this.Nn = C.d(0, 0); this.C = { src: C.Ic, ga: C.Hc }; this.Ra = C.rect(0, 0, 0, 0); this.zX = t; this.Aa = q; this.jB = { x: 0, y: 0, width: 0, height: 0, nD: t }; this.mW = C.size(0, 0); this.Jba(c, d, f) }, H.Yd = function(c, d) { var f = this.C; d === m ? (f.src = c.src, f.ga = c.ga) : (f.src = c, f.ga = d); this.rA = f && (f.src == C.SRC_ALPHA && f.ga == C.ONE || f.src == C.ONE && f.ga == C.ONE) }, H.j = function() { if (0 < arguments.length) return this.Ce(arguments[0], arguments[1]); C.ha.prototype.j.call(this); this.dirty = this.An = t; this.Fb = q; this.C.src = C.Ic; this.C.ga = C.Hc; this.texture = s; this.Aa = q; this.Bb = this.Db = t; this.anchorY = this.anchorX = 0.5; this.ld.x = 0; this.ld.y = 0; this.ap = t; this.qc(C.rect(0, 0, 0, 0), t, C.size(0, 0)); return q }, H.ta = function(c, d, f) { C.assert(0 != arguments.length, C.n.ska); if ((f = f || t) && c.de) { var g = c.jd, g = C.J_(g, d), h = new C.Ma; h.Ng(g); h.Md(); c = h; this.Ra = C.rect(0, 0, d.width, d.height) } if (!C.ha.prototype.j.call(this)) return t; this.wa = s; this.dirty = this.An = t; this.Fb = q; this.C.src = C.Ic; this.C.ga = C.Hc; this.Bb = this.Db = t; this.anchorY = this.anchorX = 0.5; this.ld.x = 0; this.ld.y = 0; this.ap = t; this.Aa = g = c.de; if (!g) return this.jf = f, d && (this.Ra.x = d.x, this.Ra.y = d.y, this.Ra.width = d.width, this.Ra.height = d.height), c.ye(this.oO, this), q; d || (d = C.rect(0, 0, c.width, c.height)); c && (g = d.y + d.height, d.x + d.width > c.width && C.error(C.n.YT, c.url), g > c.height && C.error(C.n.XT, c.url)); this.texture = this.qi = c; this.qc(d, f); this.batchNode = s; return q }, H.oO = function(c) { if (!this.Aa) { this.Aa = q; var d = this.Ra; d ? C.wG(d) && (d.width = c.width, d.height = c.height) : d = C.rect(0, 0, c.width, c.height); this.texture = this.qi = c; this.qc(d, this.jf); this.batchNode = this.wa; this.cf() } }, H.qc = function(c, d, f) { this.jf = d || t; this.Ca(f || c); this.x3(c); d = this.jB; f = C.Ec(); d.x = 0 | c.x * f; d.y = 0 | c.y * f; d.width = 0 | c.width * f; d.height = 0 | c.height * f; d.nD = !(0 === d.width || 0 === d.height || 0 > d.x || 0 > d.y); c = this.Nn; this.Bb && (c.x = -c.x); this.Db && (c.y = -c.y); this.ld.x = c.x + (this.o.width - this.Ra.width) / 2; this.ld.y = c.y + (this.o.height - this.Ra.height) / 2; this.wa && (this.dirty = q) }, H.$h = function() { if (this.dirty) { var c = this.Vb; ! this.Ja || c && c != this.wa && c.Xt ? this.Xt = q: (this.Xt = t, this.dx = !c || c == this.wa ? this.me() : C.Qg(this.me(), c.dx)); this.dirty = this.An = t } this.ap && this.Jk(this.l, C.A.Gj.$h) }, H.q = function(c, d, f) { C.assert(c, C.n.qka); d == s && (d = c.Wa); f == s && (f = c.tag); C.ha.prototype.q.call(this, c, d, f); this.ap = q }, H.K = function(c) { C.ha.prototype.K.call(this, c); this.Fn() }, H.G = function(c) { var d = this.color; d.r === c.r && d.g === c.g && d.b === c.b || (C.ha.prototype.G.call(this, c), this.ct(), this.Fn()) }, H.Tb = function(c) { var d = this.color; C.ha.prototype.Tb.call(this, c); c = this.wb; d.r === c.r && d.g === c.g && d.b === c.b || (this.ct(), this.Fn()) }, H.pc = function(c) { var d = this; "string" == typeof c && (c = C.Fe.nh(c), C.assert(c, C.n.vka)); d.Da(q); var f = c.fb; d.Nn.x = f.x; d.Nn.y = f.y; d.jf = c.fg; var f = c.ob(), g = c.Aa; g || (d.Aa = t, c.ye(function(c) { d.Aa = q; var f = c.ob(); f != d.da && (d.texture = f); d.qc(c.Vh(), c.fg, c.Gg); d.cf() }, d)); f != d.da && (d.texture = f); d.jf && (d.qi = f); d.qc(c.Vh(), d.jf, c.Gg); d.KL = t; g && (c = d.color, (255 !== c.r || 255 !== c.g || 255 !== c.b) && d.ct()) }, H.hfa = function(c) { return c.ob() != this.da ? t: C.Ega(c.Vh(), this.Ra) }, H.os = function(c) { (this.wa = c) ? (this.dx = { a: 1, b: 0, H: 0, P: 1, na: 0, oa: 0 }, this.textureAtlas = this.wa.textureAtlas) : (this.atlasIndex = C.u.nT, this.textureAtlas = s, this.dirty = this.An = t) }, H.Va = function(c) { c && "string" === typeof c ? (c = C.kb.sd(c), this.Va(c), c = c.i(), this.qc(C.rect(0, 0, c.width, c.height))) : (C.assert(!c || c instanceof C.Ma, C.n.wka), this.da != c && (c && c.jd instanceof HTMLImageElement && (this.qi = c), this.da = c)) }, H.ka = function(c) { if (this.Aa) { c = c || C.t; this.rA && (c.globalCompositeOperation = "lighter"); var d = C.view.ia, f = C.view.pa; c.globalAlpha = this.hb / 255; var g = this.Ra, h = this.o, k = this.ld, n = this.mW, p = 0 | k.x, r = -k.y - g.height, v = this.jB; n.width = g.width * d; n.height = g.height * f; if (this.Bb || this.Db) c.save(), this.Bb && (p = -k.x - g.width, c.scale( - 1, 1)), this.Db && (r = k.y, c.scale(1, -1)); p *= d; r *= f; this.da && v.nD ? (h = this.da.jd, this.KL ? c.drawImage(h, 0, 0, v.width, v.height, p, r, n.width, n.height) : c.drawImage(h, v.x, v.y, v.width, v.height, p, r, n.width, n.height)) : !this.da && v.nD && (n = this.color, c.fillStyle = "rgba(" + n.r + "," + n.g + "," + n.b + ",1)", c.fillRect(p, r, h.width * d, h.height * f)); 1 === C.Es || this.OY ? (c.strokeStyle = "rgba(0,255,0,1)", p /= d, r = -(r / f), p = [C.d(p, r), C.d(p + g.width, r), C.d(p + g.width, r - g.height), C.d(p, r - g.height)], C.Df.Of(p, 4, q)) : 2 === C.Es && (c.strokeStyle = "rgba(0,255,0,1)", d = this.Ra, r = -r, p = [C.d(p, r), C.d(p + d.width, r), C.d(p + d.width, r - d.height), C.d(p, r - d.height)], C.Df.Of(p, 4, q)); (this.Bb || this.Db) && c.restore(); C.kl++ } }, delete H) : (C.assert("function" === typeof C.U.TU, C.n.Bf, "SpritesWebGL.js"), C.U.TU(), delete C.U.TU); C.assert("function" === typeof C.U.ST, C.n.Bf, "SpritesPropertyDefine.js"); C.U.ST(); delete C.U.ST; C.TS = 29; C.Bh = C.A.extend({ textureAtlas: s, C: s, Zg: s, qa: "SpriteBatchNode", Dwa: function(c, d, f) { C.assert(c, C.n.Moa); if (! (c instanceof C.u)) return C.log(C.n.Loa), s; c.atlasIndex = d; var g = 0, h = this.Zg; if (h && 0 < h.length) for (var k = 0; k < h.length; k++) { var n = h[k]; n && n.atlasIndex >= d && ++g } h.splice(g, 0, c); C.A.prototype.q.call(this, c, d, f); this.Wga(t); return this }, VH: A("textureAtlas"), p3: function(c) { c != this.textureAtlas && (this.textureAtlas = c) }, qAa: A("Zg"), Ce: function(c, d) { var f = C.kb.av(c); f || (f = C.kb.sd(c)); return this.ta(f, d) }, Fn: function() { this.Lk = q }, j: function(c, d) { var f = C.kb.av(c); f || (f = C.kb.sd(c)); return this.ta(f, d) }, aQ: function() { var c = this.textureAtlas.capacity, d = Math.floor(4 * (c + 1) / 3); C.log(C.n.Noa, c, d); this.textureAtlas.eR(d) || C.log(C.n.Ooa) }, sGa: function(c, d) { this.removeChild(this.l[c], d) }, Dga: function(c, d) { var f = c.children; if (f && 0 < f.length) for (var g = 0; g < f.length; g++) { var h = f[g]; h && 0 > h.zIndex && (d = this.Dga(h, d)) } ! c == this && (c.atlasIndex = d, d++); if (f && 0 < f.length) for (g = 0; g < f.length; g++)(h = f[g]) && 0 <= h.zIndex && (d = this.Dga(h, d)); return d }, S0: function(c) { var d = c.children; return ! d || 0 == d.length ? c.atlasIndex: this.S0(d[d.length - 1]) }, pEa: function(c) { var d = c.children; return ! d || 0 == d.length ? c.atlasIndex: this.pEa(d[d.length - 1]) }, axa: function(c, d) { var f = c.parent, g = f.children, h = g.indexOf(c), k = s; 0 < h && h < C.EU && (k = g[h - 1]); return f == this ? 0 == h ? 0 : this.S0(k) + 1 : 0 == h ? 0 > d ? f.atlasIndex: f.atlasIndex + 1 : 0 > k.zIndex && 0 > d || 0 <= k.zIndex && 0 <= d ? this.S0(k) + 1 : f.atlasIndex + 1 }, Wga: x("Oh"), Yd: function(c, d) { this.C = d === m ? c: { src: c, ga: d } }, ek: A("C"), OC: function(c, d) { C.assert(c, C.n.Roa); - 1 === this.l.indexOf(c) ? C.log(C.n.Qoa) : d !== c.zIndex && (C.A.prototype.OC.call(this, c, d), this.Da()) }, removeChild: function(c, d) { c != s && ( - 1 === this.l.indexOf(c) ? C.log(C.n.Poa) : (this.by(c), C.A.prototype.removeChild.call(this, c, d))) }, Hta: s, eu: s, KPa: t, qi: s, ctor: s, pF: function(c, d) { C.A.prototype.ctor.call(this); var f; d = d || C.TS; "string" == typeof c ? (f = C.kb.av(c)) || (f = C.kb.sd(c)) : c instanceof C.Ma && (f = c); f && this.ta(f, d) }, qF: function(c, d) { C.A.prototype.ctor.call(this); this.Hta = new C.Ia; var f; d = d || C.TS; "string" == typeof c ? (f = C.kb.av(c)) || (f = C.kb.sd(c)) : c instanceof C.Ma && (f = c); f && this.ta(f, d) }, lja: s, fwa: function(c, d) { C.assert(c, C.n.xka); c instanceof C.u ? (c.batchNode = this, c.atlasIndex = d, c.dirty = q, c.$h()) : C.log(C.n.CS) }, gwa: function(c, d) { C.assert(c, C.n.CS); if (c instanceof C.u) { for (var f = this.textureAtlas.capacity; d >= f || f == this.textureAtlas.totalQuads;) this.aQ(); c.batchNode = this; c.atlasIndex = d; c.dirty = q; c.$h() } else C.log(C.n.CS) }, cu: function(c, d) { var f = this.Zg, g = this.textureAtlas, h = g.quads, k = f[c], n = C.H8(h[c]); f[d].atlasIndex = c; f[c] = f[d]; g.HJ(h[d], c); f[d] = k; g.HJ(n, d) }, iQ: s, mta: function(c, d) { C.assert(c, C.n.uka); c instanceof C.u ? (c.batchNode = this, c.atlasIndex = d, c.dirty = q, c.$h(), this.l.splice(d, 0, c)) : C.log(C.n.tka) }, nta: function(c, d) { C.assert(c, C.n.fpa); if (c instanceof C.u) { for (var f = this.textureAtlas; d >= f.capacity || f.capacity === f.totalQuads;) this.aQ(); c.batchNode = this; c.atlasIndex = d; f.e1(c.quad, d); c.dirty = q; c.$h() } else C.log(C.n.epa) }, bca: function(c, d) { var f = 0, g = c.children; g && (f = g.length); var h = 0; if (0 === f) h = c.atlasIndex, c.atlasIndex = d, c.arrivalOrder = 0, h != d && this.cu(h, d), d++; else { h = q; 0 <= g[0].zIndex && (h = c.atlasIndex, c.atlasIndex = d, c.arrivalOrder = 0, h != d && this.cu(h, d), d++, h = t); for (f = 0; f < g.length; f++) { var k = g[f]; h && 0 <= k.zIndex && (h = c.atlasIndex, c.atlasIndex = d, c.arrivalOrder = 0, h != d && this.cu(h, d), d++, h = t); d = this.bca(k, d) } h && (h = c.atlasIndex, c.atlasIndex = d, c.arrivalOrder = 0, h != d && this.cu(h, d), d++) } return d }, hl: function() { this.textureAtlas.texture.Hp() || (this.C.src = C.SRC_ALPHA, this.C.ga = C.ONE_MINUS_SRC_ALPHA) }, ta: s, aX: function(c) { this.l = []; this.Zg = []; this.C = new C.Vm(C.Ic, C.Hc); this.eu = this.qi = c; return q }, bX: function(c, d) { this.l = []; this.Zg = []; this.C = new C.Vm(C.Ic, C.Hc); d = d || C.TS; this.textureAtlas = new C.uq; this.textureAtlas.ta(c, d); this.hl(); this.shaderProgram = C.ug.Xd(C.Co); return q }, d1: function(c, d) { c.batchNode = this; c.atlasIndex = d; c.dirty = q; var f = this.textureAtlas; f.totalQuads >= f.capacity && this.aQ(); f.e1(c.quad, d); this.Zg.splice(d, 0, c); var f = d + 1, g = this.Zg; if (g && 0 < g.length) for (; f < g.length; f++) g[f].atlasIndex++; var g = c.children, h; if (g) { f = 0; for (l = g.length || 0; f < l; f++)(h = g[f]) && this.d1(h, this.axa(h, h.zIndex)) } }, appendChild: s, Nqa: function(c) { this.Oh = q; c.batchNode = this; c.dirty = q; this.Zg.push(c); c.atlasIndex = this.Zg.length - 1; c = c.children; for (var d = 0, f = c.length || 0; d < f; d++) this.appendChild(c[d]) }, Oqa: function(c) { this.Oh = q; c.batchNode = this; c.dirty = q; this.Zg.push(c); var d = this.Zg.length - 1; c.atlasIndex = d; var f = this.textureAtlas; f.totalQuads == f.capacity && this.aQ(); f.e1(c.quad, d); c = c.children; d = 0; for (f = c.length || 0; d < f; d++) this.appendChild(c[d]) }, by: s, Cua: function(c) { c.batchNode = s; var d = this.Zg, f = d.indexOf(c); if ( - 1 != f) { d.splice(f, 1); for (var g = d.length; f < g; ++f) d[f].atlasIndex-- } if (c = c.children) { d = 0; for (f = c.length || 0; d < f; d++) c[d] && this.by(c[d]) } }, Dua: function(c) { this.textureAtlas.Vga(c.atlasIndex); c.batchNode = s; var d = this.Zg, f = d.indexOf(c); if ( - 1 != f) { d.splice(f, 1); for (var g = d.length; f < g; ++f) d[f].atlasIndex-- } if (c = c.children) { d = 0; for (f = c.length || 0; d < f; d++) c[d] && this.by(c[d]) } }, ob: s, MF: A("eu"), UW: function() { return this.textureAtlas.texture }, Va: s, KY: function(c) { this.eu = c; for (var d = this.l, f = 0; f < d.length; f++) d[f].texture = c }, LY: function(c) { this.textureAtlas.texture = c; this.hl() }, J: s, Hr: function(c) { var d = c || C.t; if (this.Ja) { d.save(); this.transform(c); var f = this.l; if (f) { this.ed(); for (c = 0; c < f.length; c++) f[c] && f[c].J(d) } d.restore() } }, fx: function(c) { c = c || C.t; if (this.Ja) { C.Zr(); var d = this.grid; d && d.zi() && (d.px(), this.CJ()); this.ed(); this.transform(c); this.ka(c); d && d.zi() && d.mx(this); C.Yr(); this.arrivalOrder = 0 } }, q: s, aV: function(c, d, f) { C.assert(c != s, C.n.rka); c instanceof C.u ? (d = d == s ? c.zIndex: d, f = f == s ? c.tag: f, C.A.prototype.q.call(this, c, d, f), this.appendChild(c), this.Da()) : C.log(C.n.pka) }, Jqa: function(c, d, f) { C.assert(c != s, C.n.Yoa); c instanceof C.u ? c.texture != this.textureAtlas.texture ? C.log(C.n.Xoa) : (d = d == s ? c.zIndex: d, f = f == s ? c.tag: f, C.A.prototype.q.call(this, c, d, f), this.appendChild(c), this.Da()) : C.log(C.n.Woa) }, xf: s, zua: function(c) { var d = this.Zg; if (d && 0 < d.length) for (var f = 0, g = d.length; f < g; f++) d[f] && (d[f].batchNode = s); C.A.prototype.xf.call(this, c); this.Zg.length = 0 }, Aua: function(c) { var d = this.Zg; if (d && 0 < d.length) for (var f = 0, g = d.length; f < g; f++) d[f] && (d[f].batchNode = s); C.A.prototype.xf.call(this, c); this.Zg.length = 0; this.textureAtlas.NC() }, ed: s, Eva: function() { if (this.Oh) { var c, d = 0, f = this.l, g = f.length, h; for (c = 1; c < g; c++) { var k = f[c], d = c - 1; for (h = f[d]; 0 <= d && (k.Wa < h.Wa || k.Wa == h.Wa && k.arrivalOrder < h.arrivalOrder);) f[d + 1] = h, d -= 1, h = f[d]; f[d + 1] = k } 0 < f.length && this.Jk(f, C.A.Gj.ed); this.Oh = t } }, Fva: function() { if (this.Oh) { var c = this.l, d, f = 0, g = c.length, h; for (d = 1; d < g; d++) { var k = c[d], f = d - 1; for (h = c[f]; 0 <= f && (k.Wa < h.Wa || k.Wa == h.Wa && k.arrivalOrder < h.arrivalOrder);) c[f + 1] = h, f -= 1, h = c[f]; c[f + 1] = k } if (0 < c.length) { this.Jk(c, C.A.Gj.ed); for (d = f = 0; d < c.length; d++) f = this.bca(c[d], f) } this.Oh = t } }, ka: s, gn: function() { 0 !== this.textureAtlas.totalQuads && (this.pd.Af(), this.pd.Bj(), this.Jk(this.l, C.A.Gj.$h), C.Gm(this.C.src, this.C.ga), this.textureAtlas.KB()) } }); H = C.Bh.prototype; C.L === C.la ? (H.ctor = H.qF, H.lja = H.gwa, H.iQ = H.nta, H.ta = H.bX, H.appendChild = H.Oqa, H.by = H.Dua, H.ob = H.UW, H.Va = H.LY, H.J = H.fx, H.q = H.Jqa, H.xf = H.Aua, H.ed = H.Fva, H.ka = H.gn) : (H.ctor = H.pF, H.lja = H.fwa, H.iQ = H.mta, H.ta = H.aX, H.appendChild = H.Nqa, H.by = H.Cua, H.ob = H.MF, H.Va = H.KY, H.J = H.Hr, H.xf = H.zua, H.q = H.aV, H.ed = H.Eva, H.ka = C.A.prototype.ka); C.e(H, "texture", H.ob, H.Va); C.e(H, "descendants", H.qAa); C.Bh.create = function(c, d) { return new C.Bh(c, d) }; C.ika = C.u.extend({ gi: s, Ki: s, ctor: function() { C.u.prototype.ctor.call(this); var c = document.createElement("canvas"); c.width = c.height = 10; this.gi = c; this.Ki = c.getContext("2d"); var d = new C.Ma; d.Ng(c); d.Md(); this.Va(d) }, rTa: A("Ki"), qTa: A("gi"), Yga: function(c, d) { d === m && (d = c.height, c = c.width); var f = this.gi; f.width = c; f.height = d; this.ob().Md(); this.qc(C.rect(0, 0, c, d), t) } }); C.Cl = C.O.extend({ vr: s, Jh: 0, rB: s, ctor: function(c, d, f) { this.vr = c || s; this.Jh = d || 0; this.rB = f || s }, s: function() { var c = new C.Cl; c.mj(this.vr.s(), this.Jh, this.rB); return c }, iP: function() { return C.s(this) }, copy: function() { var c = new C.Cl; c.mj(this.vr.s(), this.Jh, this.rB); return c }, mj: function(c, d, f) { this.vr = c; this.Jh = d; this.rB = f; return q }, nh: A("vr"), pc: x("vr"), aUa: A("Jh"), S3a: x("Jh"), qXa: A("rB"), K5a: x("rB") }); C.Cl.create = function(c, d, f) { return new C.Cl(c, d, f) }; C.gv = C.O.extend({ Lh: s, dr: 0, Kw: t, D: 0, Jh: 0, wp: 0, ctor: function(c, d, f) { this.Lh = []; if (c === m) this.cfa(s, 0); else { var g = c[0]; g && (g instanceof C.di ? this.cfa(c, d, f) : g instanceof C.Cl && this.bQ(c, d, f)) } }, KUa: A("Lh"), h4a: x("Lh"), OZ: function(c) { var d = new C.Cl; d.mj(c, 1, s); this.Lh.push(d); this.wp++ }, gQa: function(c) { c = C.kb.sd(c); var d = C.rect(0, 0, 0, 0); d.width = c.width; d.height = c.height; c = C.di.create(c, d); this.OZ(c) }, hQa: function(c, d) { var f = C.di.create(c, d); this.OZ(f) }, bQ: function(c, d, f) { C.yB(c, C.Cl); this.Jh = d; this.dr = f === m ? 1 : f; this.wp = 0; d = this.Lh; for (f = d.length = 0; f < c.length; f++) { var g = c[f]; d.push(g); this.wp += g.Jh } return q }, s: function() { var c = new C.gv; c.bQ(this.z9(), this.Jh, this.dr); c.KR(this.Kw); return c }, iP: function() { var c = new C.gv; c.bQ(this.z9(), this.Jh, this.dr); c.KR(this.Kw); return c }, z9: function() { for (var c = [], d = 0; d < this.Lh.length; d++) c.push(this.Lh[d].s()); return c }, copy: function() { return this.iP(s) }, jVa: A("dr"), x4a: x("dr"), KR: x("Kw"), nWa: A("Kw"), Rr: function() { return this.wp * this.Jh }, $Ta: A("Jh"), R3a: x("Jh"), dXa: A("wp"), cfa: function(c, d, f) { C.yB(c, C.di); this.dr = f === m ? 1 : f; this.Jh = d || 0; this.wp = 0; d = this.Lh; d.length = 0; if (c) { for (f = 0; f < c.length; f++) { var g = c[f], h = new C.Cl; h.mj(g, 1, s); d.push(h) } this.wp += c.length } return q }, fR: u(), rh: u() }); C.gv.create = function(c, d, f) { return new C.gv(c, d, f) }; C.oH = { jz: {}, lH: function(c, d) { this.jz[d] = c }, Y1a: function(c) { c && this.jz[c] && delete this.jz[c] }, ll: function(c) { return this.jz[c] ? this.jz[c] : s }, Iqa: function(c, d) { var f = c.animations; if (f) { var g = 1, h = c.properties; if (h) for (var g = h.format != s ? parseInt(h.format) : g, h = h.spritesheets, k = C.Fe, n = C.path, p = 0; p < h.length; p++) k.Lr(n.BB(d, h[p])); switch (g) { case 1: this.hua(f); break; case 2: this.iua(f); break; default: C.log(C.n.Pwa) } } else C.log(C.n.Owa) }, nwa: function(c) { C.assert(c, C.n.Xwa); var d = C.M.xd(c); d ? this.Iqa(d, c) : C.log(C.n.Wwa) }, hua: function(c) { var d = C.Fe, f; for (f in c) { var g = c[f], h = g.frames, g = parseFloat(g.delay) || 0, k = s; if (h) { for (var k = [], n = 0; n < h.length; n++) { var p = d.nh(h[n]); if (p) { var r = new C.Cl; r.mj(p, 1, s); k.push(r) } else C.log(C.n.Rwa, f, h[n]) } 0 === k.length ? C.log(C.n.Swa, f) : (k.length != h.length && C.log(C.n.Twa, f), k = C.gv.create(k, g, 1), C.oH.lH(k, f)) } else C.log(C.n.Qwa, f) } }, iua: function(c) { var d = C.Fe, f; for (f in c) { var g = c[f], h = parseInt(g.loops), h = g.loop ? C.xv: isNaN(h) ? 1 : h, k = g.restoreOriginalFrame && g.restoreOriginalFrame == q ? q: t, n = g.frames; if (n) { for (var p = [], r = 0; r < n.length; r++) { var v = n[r], y = v.spriteframe, z = d.nh(y); if (z) { var y = parseFloat(v.delayUnits) || 0, v = v.notification, D = new C.Cl; D.mj(z, y, v); p.push(D) } else C.log(C.n.Vwa, f, y) } g = parseFloat(g.delayPerUnit) || 0; n = new C.gv; n.bQ(p, g, h); n.KR(k); C.oH.lH(n, f) } else C.log(C.n.Uwa, f) } }, dt: function() { this.jz = {} } }; C.di = C.O.extend({ fb: s, Gg: s, Vi: s, fg: t, Ra: s, Yk: s, Zk: s, da: s, iB: "", Aa: t, pM: s, ctor: function(c, d, f, g, h) { this.fb = C.d(0, 0); this.Yk = C.d(0, 0); this.Gg = C.size(0, 0); this.fg = t; this.Zk = C.size(0, 0); this.iB = ""; this.da = s; this.Aa = t; c !== m && d !== m && (f === m || g === m || h === m ? this.ta(c, d) : this.ta(c, d, f, g, h)) }, eD: A("Aa"), ye: function(c, d) { this.pM == s && (this.pM = []); this.pM.push({ jl: c, jj: d }) }, cf: function() { var c = this.pM; if (c) { for (var d = 0, f = c.length; d < f; d++) { var g = c[d]; g.jl.call(g.jj, this) } c.length = 0 } }, EBa: function() { var c = this.Vi; return C.rect(c.x, c.y, c.width, c.height) }, X4a: function(c) { this.Vi || (this.Vi = C.rect(0, 0, 0, 0)); this.Vi.x = c.x; this.Vi.y = c.y; this.Vi.width = c.width; this.Vi.height = c.height; this.Ra = C.js(c) }, IYa: A("fg"), a5a: x("fg"), Vh: function() { var c = this.Ra; return C.rect(c.x, c.y, c.width, c.height) }, jia: function(c) { this.Ra || (this.Ra = C.rect(0, 0, 0, 0)); this.Ra.x = c.x; this.Ra.y = c.y; this.Ra.width = c.width; this.Ra.height = c.height; this.Vi = C.XI(this.Ra) }, BVa: A("Yk"), F4a: function(c) { this.Yk.x = c.x; this.Yk.y = c.y; C.RX(this.Yk, this.fb) }, GVa: A("Zk"), I4a: function(c) { this.Zk.width = c.width; this.Zk.height = c.height }, sBa: A("Gg"), H4a: function(c) { this.Gg.width = c.width; this.Gg.height = c.height }, ob: function() { if (this.da) return this.da; if ("" !== this.iB) { var c = C.kb.sd(this.iB); c && (this.Aa = c.de); return c } return s }, Va: function(c) { if (this.da != c) { var d = c.de; this.Aa = d; this.da = c; d || c.ye(function(c) { this.Aa = q; if (this.fg && C.L === C.cb) { var d = c.jd, d = C.J_(d, this.Vh()), h = new C.Ma; h.Ng(d); h.Md(); this.Va(h); d = this.Vh(); this.jia(C.rect(0, 0, d.width, d.height)) } d = this.Ra; 0 === d.width && 0 === d.height && (d = c.width, c = c.height, this.Ra.width = d, this.Ra.height = c, this.Vi = C.XI(this.Ra), this.Zk.width = this.Vi.width, this.Zk.height = this.Vi.height, this.Gg.width = d, this.Gg.height = c); this.cf() }, this) } }, hea: A("fb"), DR: function(c) { this.fb.x = c.x; this.fb.y = c.y }, s: function() { var c = new C.di; c.ta(this.iB, this.Vi, this.fg, this.Yk, this.Zk); c.Va(this.da); return c }, iP: function() { var c = new C.di; c.ta(this.iB, this.Vi, this.fg, this.Yk, this.Zk); c.Va(this.da); return c }, copy: function() { return this.iP() }, ta: function(c, d, f, g, h) { 2 === arguments.length && (d = C.XI(d)); g = g || C.d(0, 0); h = h || d; f = f || t; "string" == typeof c ? (this.da = s, this.iB = c) : c instanceof C.Ma && this.Va(c); if (c = this.ob()) { var k, n; f ? (k = d.x + d.height, n = d.y + d.width) : (k = d.x + d.width, n = d.y + d.height); k > c.width && C.error(C.n.YT, c.url); n > c.height && C.error(C.n.XT, c.url) } this.Vi = d; this.Ra = C.js(d); this.Yk.x = g.x; this.Yk.y = g.y; C.RX(g, this.fb); this.Zk.width = h.width; this.Zk.height = h.height; C.Fba(h, this.Gg); this.fg = f; return q } }); C.di.create = function(c, d, f, g, h) { return new C.di(c, d, f, g, h) }; C.di.DOa = function(c, d, f, g, h) { var k = new C.di; k.da = c; k.Vi = d; k.Ra = C.js(d); k.Yk.x = g.x; k.Yk.y = g.y; C.RX(k.Yk, k.fb); k.Zk.width = h.width; k.Zk.height = h.height; C.Fba(k.Zk, k.Gg); k.fg = f; return k }; C.Fe = { Q8: /^\s*\{\s*([\-]?\d+[.]?\d*)\s*,\s*([\-]?\d+[.]?\d*)\s*\}\s*$/, sqa: /^\s*\{\s*\{\s*([\-]?\d+[.]?\d*)\s*,\s*([\-]?\d+[.]?\d*)\s*\}\s*,\s*\{\s*([\-]?\d+[.]?\d*)\s*,\s*([\-]?\d+[.]?\d*)\s*\}\s*\}\s*$/, Hn: {}, wr: {}, bA: {}, aba: function(c) { c = this.sqa.exec(c); return ! c ? C.rect(0, 0, 0, 0) : C.rect(parseFloat(c[1]), parseFloat(c[2]), parseFloat(c[3]), parseFloat(c[4])) }, Paa: function(c) { c = this.Q8.exec(c); return ! c ? C.d(0, 0) : C.d(parseFloat(c[1]), parseFloat(c[2])) }, PY: function(c) { c = this.Q8.exec(c); return ! c ? C.size(0, 0) : C.size(parseFloat(c[1]), parseFloat(c[2])) }, nsa: function(c) { var d = C.M.xd(c); C.assert(d, C.n.NIa, c); C.M.rh(c); if (d.nA) return this.bA[c] = d; var f = d.frames, g = d.metadata || d.meta, d = {}, h = {}, k = 0; g && (k = g.format, k = 1 >= k.length ? parseInt(k) : k, h.HCa = g.textureFileName || g.textureFileName || g.image); for (var n in f) { var p = f[n]; if (p) { g = {}; if (0 == k) { g.rect = C.rect(p.x, p.y, p.width, p.height); g.jR = t; g.offset = C.d(p.offsetX, p.offsetY); var r = p.originalWidth, p = p.originalHeight; (!r || !p) && C.log(C.n.MIa); r = Math.abs(r); p = Math.abs(p); g.size = C.size(r, p) } else if (1 == k || 2 == k) g.rect = this.aba(p.frame), g.jR = p.rotated || t, g.offset = this.Paa(p.offset), g.size = this.PY(p.sourceSize); else if (3 == k) { var r = this.PY(p.spriteSize), v = this.aba(p.textureRect); r && (v = C.rect(v.x, v.y, r.width, r.height)); g.rect = v; g.jR = p.textureRotated || t; g.offset = this.Paa(p.spriteOffset); g.size = this.PY(p.spriteSourceSize); g.Gwa = p.aliases } else r = p.frame, v = p.sourceSize, n = p.filename || n, g.rect = C.rect(r.x, r.y, r.w, r.h), g.jR = p.rotated || t, g.offset = C.d(0, 0), g.size = C.size(v.w, v.h); d[n] = g } } return this.bA[c] = { nA: q, frames: d, qEa: h } }, Lr: function(c, d) { C.assert(c, C.n.PIa); var f = this.bA[c] || C.M.xd(c); if (f && f.frames) { var g = this.bA[c] || this.nsa(c), f = g.frames, g = g.qEa; d ? d instanceof C.Ma || ("string" == typeof d ? d = C.kb.sd(d) : C.assert(0, C.n.QIa)) : d = C.kb.sd(C.path.BB(c, g.HCa || ".png")); var g = this.wr, h = this.Hn, k; for (k in f) { var n = f[k], p = h[k]; if (!p) { p = C.di.create(d, n.rect, n.jR, n.offset, n.size); if (n = n.Gwa) for (var r = 0, v = n.length; r < v; r++) { var y = n[r]; g[y] && C.log(C.n.OIa, y); g[y] = k } C.L === C.cb && p.fg && p.ob().de && (n = p.ob().jd, n = C.J_(n, p.EBa()), r = new C.Ma, r.Ng(n), r.Md(), p.Va(r), n = p.Ra, p.jia(C.rect(0, 0, n.width, n.height))); h[k] = p } } } }, eOa: function(c) { c = c.frames; for (var d in c) this.Hn[d] && C.log(C.n.LIa, d) }, OZ: function(c, d) { this.Hn[d] = c }, q2a: function() { this.Hn = {}; this.wr = {} }, p2a: function(c) { c && (this.wr[c] && delete this.wr[c], this.Hn[c] && delete this.Hn[c]) }, AGa: function(c) { var d = this.Hn, f = this.wr; if (c = this.bA[c]) { c = c.frames; for (var g in c) if (d[g]) { delete d[g]; for (var h in f) f[h] == g && delete f[h] } } }, r2a: function(c) { var d = this.Hn, f = this.wr, g; for (g in d) { var h = d[g]; if (h && h.ob() == c) { delete d[g]; for (var k in f) f[k] == g && delete f[k] } } }, nh: function(c) { var d = this.Hn[c]; if (!d) { var f = this.wr[c]; f && ((d = this.Hn[f.toString()]) || delete this.wr[c]) } d || C.log(C.n.RIa, c); return d }, dt: function() { this.Hn = {}; this.wr = {}; this.bA = {} } }; C.FB = { KLa: 0, dNa: 1, INT: 2, xLa: 3, JKa: 4, bG: 0, Eta: 0, hZ: t, mO: t, fZ: t, gZ: t, iZ: t, dPa: 0, wX: 0, bL: "", dH: {}, nA: t, UF: function() { var c = this.dH; c["cocos2d.x.version"] = C.$S; c["cocos2d.x.compiled_with_profiler"] = t; c["cocos2d.x.compiled_with_gl_state_cache"] = C.an; this.nA = q }, pVa: A("bG"), oVa: A("Eta"), qVa: A("wX"), $5a: A("mO"), a6a: A("hZ"), Z5a: B(t), b6a: B(t), W5a: B(t), X5a: A("fZ"), Y5a: A("gZ"), c6a: A("iZ"), CB: function(c) { return - 1 < this.bL.indexOf(c) }, Qf: function(c, d) { this.nA || this.UF(); var f = this.dH; return f[c] ? f[c] : d }, ne: function(c, d) { this.dH[c] = d }, Sya: function() { 0 === C.an && (C.log(""), C.log(C.n.Mxa), C.log("")) }, Uza: function() { if (C.L !== C.cb) { this.nA || this.UF(); var c = C.t, d = this.dH; d["gl.vendor"] = c.getParameter(c.VENDOR); d["gl.renderer"] = c.getParameter(c.RENDERER); d["gl.version"] = c.getParameter(c.VERSION); this.bL = ""; for (var f = c.getSupportedExtensions(), g = 0; g < f.length; g++) this.bL += f[g] + " "; this.bG = c.getParameter(c.MAX_TEXTURE_SIZE); d["gl.max_texture_size"] = this.bG; this.wX = c.getParameter(c.MAX_COMBINED_TEXTURE_IMAGE_UNITS); d["gl.max_texture_units"] = this.wX; this.hZ = this.CB("GL_IMG_texture_compression_pvrtc"); d["gl.supports_PVRTC"] = this.hZ; this.mO = t; d["gl.supports_NPOT"] = this.mO; this.fZ = this.CB("GL_IMG_texture_format_BGRA888"); d["gl.supports_BGRA8888"] = this.fZ; this.gZ = this.CB("GL_EXT_discard_framebuffer"); d["gl.supports_discard_framebuffer"] = this.gZ; this.iZ = this.CB("vertex_array_object"); d["gl.supports_vertex_array_object"] = this.iZ; C.DB() } }, $_a: function(c) { this.nA || this.UF(); var d = C.M.xd(c); d || e("Please load the resource first : " + c); C.assert(d, C.n.Oxa, c); if (d = d.data) for (var f in d) this.dH[f] = d[f]; else C.log(C.n.Nxa, c) } }; C.U.WS = function() { C.zLa = C.O.extend({ H6a: u() }); var c = C.ec.prototype; c.py = function(c) { var f = this.aa; this.Aia(); var g = this.vn, h = g.jh.x / g.ia, k = g.jh.y / g.pa; switch (c) { case C.ec.Mna: C.Op(C.mq); C.kC(); g = new C.Ia; C.q1(g, 0, f.width, 0, f.height, -1024, 1024); C.lC(g); C.Op(C.lq); C.kC(); break; case C.ec.k7: var n = this.dI(), p = new C.Ia, g = new C.Ia; C.Op(C.mq); C.kC(); C.TDa(p, f.width / f.height, 2 * n); C.lC(p); C.Op(C.lq); C.kC(); n = C.nC(s, -h + f.width / 2, -k + f.height / 2, n); f = C.nC(s, -h + f.width / 2, -k + f.height / 2, 0); h = C.nC(s, 0, 1, 0); C.rfa(g, n, f, h); C.lC(g); break; case C.ec.Nna: break; default: C.log(C.n.Kla) } this.op = c; C.Ka.dispatchEvent(this.qM); C.$ha() }; c.wha = function(c) { var f = C.t; c ? (f.clearDepth(1), f.enable(f.DEPTH_TEST), f.depthFunc(f.LEQUAL)) : f.disable(f.DEPTH_TEST) }; c.W2 = function(c) { this.aa.width = C.Pb.width; this.aa.height = C.Pb.height; this.vn = c || C.view; c = C.FB; c.Uza(); c.Sya(); this.Kz(); this.Fha(); C.Ka && C.Ka.Ib(q) }; c.dt = function() { var c = C.t; c.clear(c.COLOR_BUFFER_BIT | c.DEPTH_BUFFER_BIT) }; c.vV = function() { C.Zr() }; c.cV = function() { C.Yr() }; c.Kz = function() { if (C.Gl) { if (! (C.ec.D$ == s || C.ec.D$ == t)) { var c = new C.Ma; c.Ng(C.ec.aA); c.Md(); var f = C.view.LH().height / 320; 0 === f && (f = this.aa.height / 320); var g = new C.Gl; g.CY(q); g.sf("00.0", c, 12, 32, "."); g.scale = f; this.Gk = g; g = new C.Gl; g.CY(q); g.sf("0.000", c, 12, 32, "."); g.scale = f; this.Hk = g; g = new C.Gl; g.CY(q); g.sf("000", c, 12, 32, "."); g.scale = f; this.Rk = g; c = C.US; this.Rk.p(c.x, 34 * f + c.y); this.Hk.p(c.x, 17 * f + c.y); this.Gk.p(c) } } else this.Bra() }; c.Bra = function() { var c = 0, c = this.aa.width > this.aa.height ? 0 | 24 * (this.aa.height / 320) : 0 | 24 * (this.aa.width / 320); this.Gk = C.fa.create("000.0", "Arial", c); this.Hk = C.fa.create("0.000", "Arial", c); this.Rk = C.fa.create("0000", "Arial", c); c = C.US; this.Rk.p(this.Rk.width / 2 + c.x, 5 * this.Rk.height / 2 + c.y); this.Hk.p(this.Hk.width / 2 + c.x, 3 * this.Hk.height / 2 + c.y); this.Gk.p(this.Gk.width / 2 + c.x, this.Gk.height / 2 + c.y) }; c.Sxa = function(c) { var f = new C.Ia; C.X5(f); var g = new C.Ia; C.SDa(g, f); var f = f.c[14] / f.c[15], h = this.vn.LH(), k = new C.Zc; C.Bfa(k, new C.Zc(2 * c.x / h.width - 1, 1 - 2 * c.y / h.height, f), g); return C.d(k.x, k.y) }; c.Uxa = function(c) { var f = new C.Ia; C.X5(f); var g = new C.Zc; C.Bfa(g, new C.Zc(c.x, c.y, 0), f); c = this.vn.LH(); return C.d(c.width * (0.5 * g.x + 0.5), c.height * (0.5 * -g.y + 0.5)) }; c.aI = function() { return this.vn.aI() }; c.L0 = function() { return this.vn.L0() }; c.dI = function() { return this.aa.height / 1.1566 }; c.Aia = function() { var c = this.vn; if (c) { var f = this.aa; c.AIa( - c.jh.x / c.ia, -c.jh.y / c.pa, f.width, f.height) } }; c.DVa = A("vn"); c.gWa = A("op"); c.WGa = function() { C.Gm(C.Ic, C.Hc) }; c.Fha = function() { this.WGa(); this.wha(t); this.py(this.op); C.t.clearColor(0, 0, 0, 1) } }; C.kl = 0; C.X5 = function(c) { var d = new C.Ia; C.rQ(C.mq, d); var f = new C.Ia; C.rQ(C.lq, f); C.Qp(c, d, f) }; C.ec = C.O.extend({ YOa: t, eG: t, xe: t, GN: t, Tt: t, TE: 0, FX: 0, op: 0, gz: 0, Ul: 1, yF: t, it: 0, zW: 0, Gk: s, Hk: s, Rk: s, aa: s, At: s, ep: s, qN: s, vn: s, rp: s, hY: s, gg: s, Lh: 0, tO: 0, vY: 0, zOa: s, hh: s, Pl: s, qM: s, qW: s, sW: s, rW: s, ctor: function() { var c = this; c.At = Date.now(); C.Ka.MZ(C.qf.JD, function() { c.At = Date.now() }) }, j: function() { this.FX = this.TE = 1 / C.wya; this.rp = []; this.op = C.ec.Ona; this.hY = s; this.zW = this.gz = 0; this.yF = t; this.tO = this.Lh = 0; this.At = Date.now(); this.GN = this.xe = t; this.aa = C.size(0, 0); this.vn = s; this.Ul = 1; this.hh = new C.cz; this.Pl = C.k4 ? new C.k4: s; this.hh.lR(this.Pl, C.cz.BK, t); this.qW = new C.jq(C.ec.Ula); this.qW.setUserData(this); this.sW = new C.jq(C.ec.Wla); this.sW.setUserData(this); this.rW = new C.jq(C.ec.Vla); this.rW.setUserData(this); this.qM = new C.jq(C.ec.ama); this.qM.setUserData(this); return q }, xxa: function() { var c = Date.now(); this.eG ? (this.it = 0, this.eG = t) : this.it = (c - this.At) / 1E3; 0 < C.qf.gj[C.qf.Wm.CH] && 0.2 < this.it && (this.it = 1 / 60); this.At = c }, Qya: function() { this.xxa(); this.xe || (this.hh.update(this.it), C.Ka.dispatchEvent(this.rW)); this.dt(); this.ep && this.OHa(); this.vV && this.vV(); this.gg && (this.gg.J(), C.Ka.dispatchEvent(this.sW)); this.qN && this.qN.J(); this.yF && this.Dva(); this.cV && this.cV(); C.Ka.dispatchEvent(this.qW); this.tO++; this.yF && this.fra() }, vV: s, cV: s, end: function() { this.GN = q }, JTa: A("Ul"), wVa: A("qN"), vXa: A("aa"), bI: function() { return C.size(this.aa.width * this.Ul, this.aa.height * this.Ul) }, pause: function() { this.xe || (this.FX = this.TE, this.hha(0.25), this.xe = q) }, j1a: function() { C.assert(this.gg, C.n.Hla); this.rp.pop(); var c = this.rp.length; 0 == c ? this.end() : (this.Tt = q, this.ep = this.rp[c - 1]) }, WFa: function() { C.oH.dt(); C.Fe.dt(); C.kb.dt() }, XFa: function() { this.Em().FJ(); C.Ka && C.Ka.Ib(t); this.gg && (this.gg.ph(), this.gg.Na(), this.gg.ze()); this.ep = this.gg = s; this.rp.length = 0; this.Qia(); this.WFa(); C.DB() }, ZFa: function(c) { C.assert(c, C.n.y5); this.Tt = t; this.rp.push(c); this.ep = c }, PC: function(c) { C.assert(c, C.n.y5); if (this.gg) { var d = this.rp.length; 0 === d ? (this.Tt = q, this.rp[d] = c) : (this.Tt = q, this.rp[d - 1] = c); this.ep = c } else this.ZFa(c), this.Nia() }, nk: function() { this.xe && (this.hha(this.FX), (this.At = Date.now()) || C.log(C.n.Jla), this.xe = t, this.it = 0) }, J3a: function(c) { c != this.Ul && (this.Ul = c, this.Kz()) }, Q3a: u(), B4a: x("eG"), OHa: function() { var c = t, d = t; C.tb && (c = this.gg ? this.gg instanceof C.tb: t, d = this.ep ? this.ep instanceof C.tb: t); if (!d) { if (d = this.gg) d.ph(), d.Na(); this.Tt && d && d.ze() } this.gg = this.ep; this.ep = s; ! c && this.gg != s && (this.gg.Z(), this.gg.qj()) }, D4a: x("qN"), ZB: A("hY"), bq: x("hY"), Dva: function() { this.Lh++; this.gz += this.it; this.Gk && this.Hk && this.Rk ? (this.gz > C.Ela && (this.Hk.string = this.vY.toFixed(3), this.zW = this.Lh / this.gz, this.gz = this.Lh = 0, this.Gk.string = this.zW.toFixed(1), this.Rk.string = (0 | C.kl).toString()), this.Gk.J(), this.Hk.J(), this.Rk.J()) : this.Kz(); C.kl = 0 }, JYa: A("Tt"), rWa: A("gg"), NSa: A("TE"), nYa: A("yF"), qHa: x("yF"), wWa: A("vY"), yYa: A("eG"), DYa: A("xe"), eXa: A("tO"), k1a: function() { this.LFa(1) }, LFa: function(c) { C.assert(this.gg, C.n.Ila); var d = this.rp, f = d.length; if (0 == f) this.end(); else if (! (c > f)) { for (; f > c;) { var g = d.pop(); g.running && (g.ph(), g.Na()); g.ze(); f-- } this.ep = d[d.length - 1]; this.Tt = t } }, Em: A("hh"), nia: function(c) { this.hh != c && (this.hh = c) }, UB: A("Pl"), eha: function(c) { this.Pl != c && (this.Pl = c) }, bUa: A("it"), Kz: s, fra: function() { this.vY = (Date.now() - this.At) / 1E3 } }); C.ec.ama = "director_projection_changed"; C.ec.Ula = "director_after_draw"; C.ec.Wla = "director_after_visit"; C.ec.Vla = "director_after_update"; C.Lla = C.ec.extend({ kQ: t, Nia: function() { this.eG = q; this.kQ = t }, Ofa: function() { this.GN ? (this.GN = t, this.XFa()) : this.kQ || this.Qya() }, Qia: function() { this.kQ = q }, hha: function(c) { this.TE = c; this.kQ || (this.Qia(), this.Nia()) } }); C.ec.z3 = s; C.ec.yda = q; C.ec.KW = function() { C.ec.yda && (C.ec.yda = t, C.ec.z3 = new C.Lla, C.ec.z3.j()); return C.ec.z3 }; C.wya = 60; C.ec.Mna = 0; C.ec.k7 = 1; C.ec.Nna = 3; C.ec.Ona = C.ec.k7; C.L === C.cb ? (H = C.ec.prototype, H.py = function(c) { this.op = c; C.Ka.dispatchEvent(this.qM) }, H.wha = u(), H.W2 = function(c) { this.aa.width = C.Pb.width; this.aa.height = C.Pb.height; this.vn = c || C.view; C.Ka && C.Ka.Ib(q) }, H.dt = function() { var c = this.vn.jh; C.t.clearRect( - c.x, c.y, c.width, -c.height) }, H.Kz = function() { var c = 0, c = this.aa.width > this.aa.height ? 0 | 24 * (this.aa.height / 320) : 0 | 24 * (this.aa.width / 320); this.Gk = C.fa.create("000.0", "Arial", c); this.Hk = C.fa.create("0.000", "Arial", c); this.Rk = C.fa.create("0000", "Arial", c); c = C.US; this.Rk.p(this.Rk.width / 2 + c.x, 5 * this.Rk.height / 2 + c.y); this.Hk.p(this.Hk.width / 2 + c.x, 3 * this.Hk.height / 2 + c.y); this.Gk.p(this.Gk.width / 2 + c.x, this.Gk.height / 2 + c.y) }, H.aI = A("aa"), H.L0 = function() { return C.d(0, 0) }) : (C.ec.aA = new Image, C.qb(C.ec.aA, "load", function() { C.ec.D$ = q }), C.aA && (C.ec.aA.src = C.aA), C.assert("function" === typeof C.U.WS, C.n.Bf, "CCDirectorWebGL.js"), C.U.WS(), delete C.U.WS); C.FD = C.O.extend({ BF: s, CF: s, DF: s, Dz: s, Ez: s, Fz: s, ZG: s, $G: s, aH: s, Ac: s, bN: s, ctor: function() { this.bN = new C.Ia; this.restore() }, description: function() { return "\x3cCCCamera | center \x3d(" + this.Dz + "," + this.Ez + "," + this.Fz + ")\x3e" }, xha: x("Ac"), h1: A("Ac"), restore: function() { this.BF = this.CF = 0; this.DF = C.FD.dI(); this.ZG = this.Dz = this.Ez = this.Fz = 0; this.$G = 1; this.aH = 0; C.Ox(this.bN); this.Ac = t }, yI: function() { if (this.Ac) { var c = new C.Zc, d = new C.Zc, f = new C.Zc; C.nC(c, this.BF, this.CF, this.DF); C.nC(d, this.Dz, this.Ez, this.Fz); C.nC(f, this.ZG, this.$G, this.aH); C.rfa(this.bN, c, d, f); this.Ac = t } C.lC(this.bN) }, X3a: function(c, d, f) { this.Dha(c, d, f) }, Dha: function(c, d, f) { this.BF = c; this.CF = d; this.DF = f; this.Ac = q }, B3a: function(c, d, f) { this.gHa(c, d, f) }, gHa: function(c, d, f) { this.Dz = c; this.Ez = d; this.Fz = f; this.Ac = q }, J5a: function(c, d, f) { this.wIa(c, d, f) }, wIa: function(c, d, f) { this.ZG = c; this.$G = d; this.aH = f; this.Ac = q }, BUa: function() { return { x: this.BF, y: this.CF, f: this.DF } }, Yda: function() { return { x: this.BF, y: this.CF, f: this.DF } }, ATa: function() { return { x: this.Dz, y: this.Ez, f: this.Fz } }, Oda: function() { return { x: this.Dz, y: this.Ez, f: this.Fz } }, pXa: function() { return { x: this.ZG, y: this.$G, f: this.aH } }, kCa: function() { return { x: this.ZG, y: this.$G, f: this.aH } }, TNa: u() }); C.FD.dI = function() { return C.rK }; C.QMa = C.BK + 1; C.yB = function(c, d) { if (c && 0 < c.length) for (var f = 0; f < c.length; f++) if (! (c[f] instanceof d)) return C.log(C.n.yB), t; return q }; C.Id = function(c, d) { for (var f = 0, g = c.length; f < g; f++) if (c[f] == d) { c.splice(f, 1); break } }; C.sQa = function(c, d) { for (var f = 0, g = d.length; f < g; f++) C.Id(c, d[f]) }; C.rQa = function(c, d, f) { c.splice.apply(c, [f, 0].concat(d)); return c }; C.y6 = function(c, d, f) { this.next = this.l1a = s; this.target = c; this.UFa = d; this.paused = f; this.GQ = t }; C.d6 = function(c, d, f) { this.list = c; this.Dx = d; this.target = f; this.WP = s }; C.wma = function(c, d) { this.eq = s; this.target = c; this.fD = 0; this.BH = this.AH = s; this.paused = d; this.WP = s }; C.b8 = C.O.extend({ Zq: 0, Xf: s, Xc: s, Bc: 0, qba: t, KO: t, kB: 0, lY: 0, WL: 0, UUa: A("Zq"), setInterval: x("Zq"), tTa: A("Xf"), ctor: function(c, d, f, g, h) { this.Xc = c; this.Xf = d; this.Bc = -1; this.Zq = f || 0; this.WL = h || 0; this.KO = 0 < this.WL; this.lY = g == s ? C.xv: g; this.qba = this.lY == C.xv }, jW: function() { if ("string" == typeof this.Xf) this.Xc[this.Xf](this.Bc); else this.Xf.call(this.Xc, this.Bc) }, update: function(c) { if ( - 1 == this.Bc) this.kB = this.Bc = 0; else { var d = this.Xc, f = this.Xf; this.Bc += c; this.qba && !this.KO ? this.Bc >= this.Zq && (d && f && this.jW(), this.Bc = 0) : (this.KO ? this.Bc >= this.WL && (d && f && this.jW(), this.Bc -= this.WL, this.kB += 1, this.KO = t) : this.Bc >= this.Zq && (d && f && this.jW(), this.Bc = 0, this.kB += 1), this.kB > this.lY && C.Q.Em().W3(d, f)) } } }); C.cz = C.O.extend({ fu: 1, ex: s, Wq: s, lL: s, Vq: s, ZNa: s, Cf: s, Vo: t, DO: t, ctor: function() { this.fu = 1; this.ex = [[], [], []]; this.Wq = {}; this.lL = []; this.Vq = {}; this.UE = []; this.Cf = s; this.DO = this.Vo = t }, kY: function(c) { delete this.Vq[c.target.ub]; C.Id(this.UE, c); c.b8 = s; c.target = s }, gba: function(c) { if (c = this.Wq[c.target.ub]) C.Id(c.list, c.Dx), delete this.Wq[c.target.ub], C.Id(this.lL, c), c.Dx = s, c.target = s }, Taa: function(c, d, f, g) { g = new C.y6(d, f, g); if (c) { for (var h = c.length - 1, k = 0; k <= h && !(f < c[k].UFa); k++); c.splice(k, 0, g) } else c = [], c.push(g); f = new C.d6(c, g, d); this.lL.push(f); this.Wq[d.ub] = f; return c }, Pqa: function(c, d, f) { f = new C.y6(d, 0, f); c.push(f); c = new C.d6(c, f, d); this.lL.push(c); this.Wq[d.ub] = c }, sIa: x("fu"), $Wa: A("fu"), update: function(c) { var d = this.ex, f = this.UE, g, h, k; this.DO = q; 1 != this.fu && (c *= this.fu); h = 0; for (k = d.length; h < k && 0 <= h; h++) for (var n = this.ex[h], p = 0, r = n.length; p < r; p++) g = n[p], !g.paused && !g.GQ && g.target.update(c); h = 0; for (k = f.length; h < k; h++) { g = f[h]; if (!g) break; this.Cf = g; this.Vo = t; if (!g.paused) for (g.fD = 0; g.fD < g.eq.length; g.fD++) g.AH = g.eq[g.fD], g.BH = t, g.AH.update(c), g.AH = s; this.Vo && 0 == g.eq.length && (this.kY(g), h--) } h = 0; for (k = d.length; h < k; h++) { n = this.ex[h]; p = 0; for (r = n.length; p < r;) { g = n[p]; if (!g) break; g.GQ ? this.gba(g) : p++ } } this.DO = t; this.Cf = s }, y2: function(c, d, f, g, h, k) { C.assert(d, C.n.Doa); C.assert(c, C.n.Eoa); f = f || 0; g = g == s ? C.xv: g; h = h || 0; k = k || t; var n = this.Vq[c.ub]; n || (n = new C.wma(c, k), this.UE.push(n), this.Vq[c.ub] = n); if (n.eq == s) n.eq = []; else for (var p = 0; p < n.eq.length; p++) if (k = n.eq[p], d == k.Xf) { C.log(C.n.Coa, k.Zq.toFixed(4), f.toFixed(4)); k.Zq = f; return } k = new C.b8(c, d, f, g, h); n.eq.push(k) }, lR: function(c, d, f) { if (c !== s) { var g = this.ex, h = this.Wq[c.ub]; h ? h.Dx.GQ = t: 0 == d ? this.Pqa(g[1], c, f) : 0 > d ? g[0] = this.Taa(g[0], c, d, f) : g[2] = this.Taa(g[2], c, d, f) } }, W3: function(c, d) { if (! (c == s || d == s)) { var f = this.Vq[c.ub]; if (f) for (var g = f.eq, h = 0, k = g.length; h < k; h++) { var n = g[h]; if (d == n.Xf) { n == f.AH && !f.BH && (f.BH = q); g.splice(h, 1); f.fD >= h && f.fD--; 0 == g.length && (this.Cf == f ? this.Vo = q: this.kY(f)); break } } } }, GJ: function(c) { c != s && (c = this.Wq[c.ub], c != s && (this.DO ? c.Dx.GQ = q: this.gba(c.Dx))) }, dja: function(c) { if (c != s) { var d = this.Vq[c.ub]; if (d) { var f = d.eq; ! d.BH && 0 <= f.indexOf(d.AH) && (d.BH = q); f.length = 0; this.Cf == d ? this.Vo = q: this.kY(d) } this.GJ(c) } }, FJ: function() { this.uJa(C.cz.BK) }, uJa: function(c) { for (var d = this.UE, f = this.ex, g = 0, h = d.length; g < h; g++) this.dja(d[g].target); for (g = 2; 0 <= g; g--) if (! (1 == g && 0 < c || 0 == g && 0 <= c)) for (var d = f[g], h = 0, k = d.length; h < k; h++) this.GJ(d[h].target) }, $0a: function() { return this.CFa(C.cz.BK) }, CFa: function() { for (var c = [], d, f = this.UE, g = this.ex, h = 0, k = f.length; h < k; h++) if (d = f[h]) d.paused = q, c.push(d.target); h = 0; for (k = g.length; h < k; h++) for (var f = g[h], n = 0, p = f.length; n < p; n++) if (d = f[n]) d.paused = q, c.push(d.target); return c }, FGa: function(c) { if (c) for (var d = 0; d < c.length; d++) this.Mm(c[d]) }, hs: function(c) { C.assert(c, C.n.Aoa); var d = this.Vq[c.ub]; d && (d.paused = q); (c = this.Wq[c.ub]) && (c.Dx.paused = q) }, Mm: function(c) { C.assert(c, C.n.Boa); var d = this.Vq[c.ub]; d && (d.paused = t); (c = this.Wq[c.ub]) && (c.Dx.paused = t) }, MYa: function(c) { C.assert(c, C.n.zoa); return (c = this.Vq[c.ub]) ? c.paused: t } }); C.cz.BK = -2147483648; C.V6 = 2 * Math.PI; C.z5 = C.O.extend({ BV: [], t: s, ctor: x("t"), S_: function(c, d) { d || (d = 1); var f = C.view.ia, g = C.d(c.x * f, c.y * C.view.pa); this.t.beginPath(); this.t.arc(g.x, -g.y, d * f, 0, 2 * Math.PI, t); this.t.closePath(); this.t.fill() }, Oya: function(c, d, f) { if (c != s) { f || (f = 1); d = this.t; var g = C.view.ia, h = C.view.pa; d.beginPath(); for (var k = 0, n = c.length; k < n; k++) d.arc(c[k].x * g, -c[k].y * h, f * g, 0, 2 * Math.PI, t); d.closePath(); d.fill() } }, Tn: function(c, d) { var f = this.t, g = C.view.ia, h = C.view.pa; f.beginPath(); f.moveTo(c.x * g, -c.y * h); f.lineTo(d.x * g, -d.y * h); f.closePath(); f.stroke() }, U_: function(c, d) { this.Tn(C.d(c.x, c.y), C.d(d.x, c.y)); this.Tn(C.d(d.x, c.y), C.d(d.x, d.y)); this.Tn(C.d(d.x, d.y), C.d(c.x, d.y)); this.Tn(C.d(c.x, d.y), C.d(c.x, c.y)) }, X_: function(c, d, f) { c = [c, C.d(d.x, c.y), d, C.d(c.x, d.y)]; this.W_(c, 4, f) }, Of: function(c, d, f, g) { g = g || t; if (c != s) { 3 > c.length && e(Error("Polygon's point must greater than 2")); var h = c[0]; d = this.t; var k = C.view.ia, n = C.view.pa; d.beginPath(); d.moveTo(h.x * k, -h.y * n); for (var h = 1, p = c.length; h < p; h++) d.lineTo(c[h].x * k, -c[h].y * n); f && d.closePath(); g ? d.fill() : d.stroke() } }, W_: function(c, d, f) { this.tj(f.r, f.g, f.b, f.a); this.Of(c, d, q, q) }, O_: function(c, d, f, g, h) { h = h || t; g = this.t; var k = C.view.ia, n = C.view.pa; g.beginPath(); g.arc(0 | c.x * k, 0 | -(c.y * n), d * k, -f, -(f - 2 * Math.PI), t); h && g.lineTo(0 | c.x * k, 0 | -(c.y * n)); g.stroke() }, T_: function(c, d, f, g) { for (var h = this.BV, k = h.length = 0, n = 0; n < g; n++) h.push(C.d(Math.pow(1 - k, 2) * c.x + 2 * (1 - k) * k * d.x + k * k * f.x, Math.pow(1 - k, 2) * c.y + 2 * (1 - k) * k * d.y + k * k * f.y)), k += 1 / g; h.push(C.d(f.x, f.y)); this.Of(h, g + 1, t, t) }, P_: function(c, d, f, g, h) { for (var k = this.BV, n = k.length = 0, p = 0; p < h; p++) k.push(C.d(Math.pow(1 - n, 3) * c.x + 3 * Math.pow(1 - n, 2) * n * d.x + 3 * (1 - n) * n * n * f.x + n * n * n * g.x, Math.pow(1 - n, 3) * c.y + 3 * Math.pow(1 - n, 2) * n * d.y + 3 * (1 - n) * n * n * f.y + n * n * n * g.y)), n += 1 / h; k.push(C.d(g.x, g.y)); this.Of(k, h + 1, t, t) }, N_: function(c, d) { this.zx(c, 0.5, d) }, zx: function(c, d, f) { C.t.strokeStyle = "rgba(255,255,255,1)"; var g = this.BV; g.length = 0; for (var h, k, n = 1 / c.length, p = 0; p < f + 1; p++) k = p / f, 1 == k ? (h = c.length - 1, k = 1) : (h = 0 | k / n, k = (k - n * h) / n), h = C.tla(C.og(c, h - 1), C.og(c, h - 0), C.og(c, h + 1), C.og(c, h + 2), d, k), g.push(h); this.Of(g, f + 1, t, t) }, drawImage: function(c, d, f, g, h) { switch (arguments.length) { case 2: this.t.drawImage(c, d.x, -(d.y + c.height)); break; case 3: this.t.drawImage(c, d.x, -(d.y + f.height), f.width, f.height); break; case 5: this.t.drawImage(c, d.x, d.y, f.width, f.height, g.x, -(g.y + h.height), h.width, h.height); break; default: e(Error("Argument must be non-nil")) } }, Rya: function(c, d, f) { c = c || this.t; d *= C.view.ia; f = "rgba(" + (0 | f.r) + "," + (0 | f.g) + "," + (0 | f.b); c.fillStyle = f + ",1)"; var g = d / 10; c.beginPath(); c.moveTo( - d, d); c.lineTo(0, g); c.lineTo(d, d); c.lineTo(g, 0); c.lineTo(d, -d); c.lineTo(0, -g); c.lineTo( - d, -d); c.lineTo( - g, 0); c.lineTo( - d, d); c.closePath(); c.fill(); var h = c.createRadialGradient(0, 0, g, 0, 0, d); h.addColorStop(0, f + ", 1)"); h.addColorStop(0.3, f + ", 0.8)"); h.addColorStop(1, f + ", 0.0)"); c.fillStyle = h; c.beginPath(); c.arc(0, 0, d - g, 0, C.V6, t); c.closePath(); c.fill() }, Lya: function(c, d, f) { c = c || this.t; d *= C.view.ia; f = "rgba(" + (0 | f.r) + "," + (0 | f.g) + "," + (0 | f.b); var g = c.createRadialGradient(0, 0, d / 10, 0, 0, d); g.addColorStop(0, f + ", 1)"); g.addColorStop(0.3, f + ", 0.8)"); g.addColorStop(0.6, f + ", 0.4)"); g.addColorStop(1, f + ", 0.0)"); c.fillStyle = g; c.beginPath(); c.arc(0, 0, d, 0, C.V6, t); c.closePath(); c.fill() }, fillText: function(c, d, f) { this.t.fillText(c, d, -f) }, tj: function(c, d, f, g) { this.t.fillStyle = "rgba(" + c + "," + d + "," + f + "," + g / 255 + ")"; this.t.strokeStyle = "rgba(" + c + "," + d + "," + f + "," + g / 255 + ")" }, Y2: u(), Su: function(c) { this.t.lineWidth = c * C.view.ia } }); C.Ola = C.O.extend({ t: s, VF: t, Te: s, To: -1, Lj: s, TX: -1, SX: -1, ctor: function(c) { c == s && (c = C.t); ! c instanceof WebGLRenderingContext && e("Can't initialise DrawingPrimitiveWebGL. context need is WebGLRenderingContext"); this.t = c; this.Lj = new Float32Array([1, 1, 1, 1]) }, $r: function() { this.VF || (this.Te = C.ug.Xd(C.aU), this.To = this.t.getUniformLocation(this.Te.Lx(), "u_color"), this.TX = this.t.getUniformLocation(this.Te.Lx(), "u_pointSize"), this.VF = q) }, ORa: function() { this.VF = t }, S_: function(c) { this.$r(); var d = this.t; this.Te.Af(); this.Te.Bj(); C.rf(C.Ch); d.uniform4fv(this.To, this.Lj); this.Te.sJ(this.TX, this.SX); var f = d.createBuffer(); d.bindBuffer(d.ARRAY_BUFFER, f); d.bufferData(d.ARRAY_BUFFER, new Float32Array([c.x, c.y]), d.STATIC_DRAW); d.vertexAttribPointer(C.Lc, 2, d.FLOAT, t, 0, 0); d.drawArrays(d.POINTS, 0, 1); d.deleteBuffer(f); C.nl() }, Oya: function(c) { if (c && 0 != c.length) { this.$r(); var d = this.t; this.Te.Af(); this.Te.Bj(); C.rf(C.Ch); d.uniform4fv(this.To, this.Lj); this.Te.sJ(this.TX, this.SX); var f = d.createBuffer(); d.bindBuffer(d.ARRAY_BUFFER, f); d.bufferData(d.ARRAY_BUFFER, this.DN(c), d.STATIC_DRAW); d.vertexAttribPointer(C.Lc, 2, d.FLOAT, t, 0, 0); d.drawArrays(d.POINTS, 0, c.length); d.deleteBuffer(f); C.nl() } }, DN: function(c) { for (var d = new Float32Array(2 * c.length), f = 0; f < c.length; f++) d[2 * f] = c[f].x, d[2 * f + 1] = c[f].y; return d }, Tn: function(c, d) { this.$r(); var f = this.t; this.Te.Af(); this.Te.Bj(); C.rf(C.Ch); f.uniform4fv(this.To, this.Lj); var g = f.createBuffer(); f.bindBuffer(f.ARRAY_BUFFER, g); f.bufferData(f.ARRAY_BUFFER, this.DN([c, d]), f.STATIC_DRAW); f.vertexAttribPointer(C.Lc, 2, f.FLOAT, t, 0, 0); f.drawArrays(f.LINES, 0, 2); f.deleteBuffer(g); C.nl() }, U_: function(c, d) { this.Tn(C.d(c.x, c.y), C.d(d.x, c.y)); this.Tn(C.d(d.x, c.y), C.d(d.x, d.y)); this.Tn(C.d(d.x, d.y), C.d(c.x, d.y)); this.Tn(C.d(c.x, d.y), C.d(c.x, c.y)) }, X_: function(c, d, f) { c = [c, C.d(d.x, c.y), d, C.d(c.x, d.y)]; this.W_(c, 4, f) }, Of: function(c, d, f) { this.$r(); d = this.t; this.Te.Af(); this.Te.Bj(); C.rf(C.Ch); d.uniform4fv(this.To, this.Lj); var g = d.createBuffer(); d.bindBuffer(d.ARRAY_BUFFER, g); d.bufferData(d.ARRAY_BUFFER, this.DN(c), d.STATIC_DRAW); d.vertexAttribPointer(C.Lc, 2, d.FLOAT, t, 0, 0); f ? d.drawArrays(d.LINE_LOOP, 0, c.length) : d.drawArrays(d.LINE_STRIP, 0, c.length); d.deleteBuffer(g); C.nl() }, W_: function(c, d, f) { this.$r(); f && this.tj(f.r, f.g, f.b, f.a); d = this.t; this.Te.Af(); this.Te.Bj(); C.rf(C.Ch); d.uniform4fv(this.To, this.Lj); f = d.createBuffer(); d.bindBuffer(d.ARRAY_BUFFER, f); d.bufferData(d.ARRAY_BUFFER, this.DN(c), d.STATIC_DRAW); d.vertexAttribPointer(C.Lc, 2, d.FLOAT, t, 0, 0); d.drawArrays(d.TRIANGLE_FAN, 0, c.length); d.deleteBuffer(f); C.nl() }, O_: function(c, d, f, g, h) { this.$r(); var k = 1; h && k++; var n = 2 * Math.PI / g; if (h = new Float32Array(2 * (g + 2))) { for (var p = 0; p <= g; p++) { var r = p * n, v = d * Math.sin(r + f) + c.y; h[2 * p] = d * Math.cos(r + f) + c.x; h[2 * p + 1] = v } h[2 * (g + 1)] = c.x; h[2 * (g + 1) + 1] = c.y; c = this.t; this.Te.Af(); this.Te.Bj(); C.rf(C.Ch); c.uniform4fv(this.To, this.Lj); d = c.createBuffer(); c.bindBuffer(c.ARRAY_BUFFER, d); c.bufferData(c.ARRAY_BUFFER, h, c.STATIC_DRAW); c.vertexAttribPointer(C.Lc, 2, c.FLOAT, t, 0, 0); c.drawArrays(c.LINE_STRIP, 0, g + k); c.deleteBuffer(d); C.nl() } }, T_: function(c, d, f, g) { this.$r(); for (var h = new Float32Array(2 * (g + 1)), k = 0, n = 0; n < g; n++) h[2 * n] = Math.pow(1 - k, 2) * c.x + 2 * (1 - k) * k * d.x + k * k * f.x, h[2 * n + 1] = Math.pow(1 - k, 2) * c.y + 2 * (1 - k) * k * d.y + k * k * f.y, k += 1 / g; h[2 * g] = f.x; h[2 * g + 1] = f.y; c = this.t; this.Te.Af(); this.Te.Bj(); C.rf(C.Ch); c.uniform4fv(this.To, this.Lj); d = c.createBuffer(); c.bindBuffer(c.ARRAY_BUFFER, d); c.bufferData(c.ARRAY_BUFFER, h, c.STATIC_DRAW); c.vertexAttribPointer(C.Lc, 2, c.FLOAT, t, 0, 0); c.drawArrays(c.LINE_STRIP, 0, g + 1); c.deleteBuffer(d); C.nl() }, P_: function(c, d, f, g, h) { this.$r(); for (var k = new Float32Array(2 * (h + 1)), n = 0, p = 0; p < h; p++) k[2 * p] = Math.pow(1 - n, 3) * c.x + 3 * Math.pow(1 - n, 2) * n * d.x + 3 * (1 - n) * n * n * f.x + n * n * n * g.x, k[2 * p + 1] = Math.pow(1 - n, 3) * c.y + 3 * Math.pow(1 - n, 2) * n * d.y + 3 * (1 - n) * n * n * f.y + n * n * n * g.y, n += 1 / h; k[2 * h] = g.x; k[2 * h + 1] = g.y; c = this.t; this.Te.Af(); this.Te.Bj(); C.rf(C.Ch); c.uniform4fv(this.To, this.Lj); d = c.createBuffer(); c.bindBuffer(c.ARRAY_BUFFER, d); c.bufferData(c.ARRAY_BUFFER, k, c.STATIC_DRAW); c.vertexAttribPointer(C.Lc, 2, c.FLOAT, t, 0, 0); c.drawArrays(c.LINE_STRIP, 0, h + 1); c.deleteBuffer(d); C.nl() }, N_: function(c, d) { this.zx(c, 0.5, d) }, zx: function(c, d, f) { this.$r(); for (var g = new Float32Array(2 * (f + 1)), h, k, n = 1 / c.length, p = 0; p < f + 1; p++) k = p / f, 1 == k ? (h = c.length - 1, k = 1) : (h = 0 | k / n, k = (k - n * h) / n), h = C.tla(C.og(c, h - 1), C.og(c, h), C.og(c, h + 1), C.og(c, h + 2), d, k), g[2 * p] = h.x, g[2 * p + 1] = h.y; c = this.t; this.Te.Af(); this.Te.Bj(); C.rf(C.Ch); c.uniform4fv(this.To, this.Lj); d = c.createBuffer(); c.bindBuffer(c.ARRAY_BUFFER, d); c.bufferData(c.ARRAY_BUFFER, g, c.STATIC_DRAW); c.vertexAttribPointer(C.Lc, 2, c.FLOAT, t, 0, 0); c.drawArrays(c.LINE_STRIP, 0, f + 1); c.deleteBuffer(d); C.nl() }, tj: function(c, d, f, g) { this.Lj[0] = c / 255; this.Lj[1] = d / 255; this.Lj[2] = f / 255; this.Lj[3] = g / 255 }, Y2: function(c) { this.SX = c * C.Ec() }, Su: function(c) { this.t.lineWidth && this.t.lineWidth(c) } }); C.U.QU = function() { var c = C.fa.prototype; c.G = C.u.prototype.G; c.Yj = function() { this.Dc = q; var c = this.Uw, f = this.Vw; this.aO = "rgba(128,128,128," + this.sr + ")"; this.tM = "rgba(" + (0 | f.r) + "," + (0 | f.g) + "," + (0 | f.b) + ", 1)"; this.gO = "rgba(" + (0 | c.r) + "," + (0 | c.g) + "," + (0 | c.b) + ", 1)" }; c.Tb = C.u.prototype.Tb; c.K = C.u.prototype.K; c.dc = C.u.prototype.dc; c.Z0 = function(c, f) { if (!C.u.prototype.j.call(this)) return t; this.shaderProgram = C.ug.Xd(C.fa.Bqa); this.uZ(f, t); this.string = c; return q }; c.zR = function(c) { var f = this.Vw; if (f.r != c.r || f.g != c.g || f.b != c.b) f.r = c.r, f.g = c.g, f.b = c.b, this.Yj(), this.Dc = q }; c.ka = function(c) { if (this.qd && "" != this.qd) { c = c || C.t; var f = this.da; f && f.de && (this.pd.Af(), this.pd.Bj(), C.Gm(this.C.src, this.C.ga), C.yi(f), C.rf(C.Dv), c.bindBuffer(c.ARRAY_BUFFER, this.HN), this.Ti && (c.bufferData(c.ARRAY_BUFFER, this.Td.WO, c.STATIC_DRAW), this.Ti = t), c.vertexAttribPointer(C.Lc, 3, c.FLOAT, t, 24, 0), c.vertexAttribPointer(C.Vg, 2, c.FLOAT, t, 24, 16), c.vertexAttribPointer(C.Hi, 4, c.UNSIGNED_BYTE, q, 24, 12), c.drawArrays(c.TRIANGLE_STRIP, 0, 4)); if (1 === C.Es) c = this.Td, c = [C.d(c.X.m.x, c.X.m.y), C.d(c.T.m.x, c.T.m.y), C.d(c.Y.m.x, c.Y.m.y), C.d(c.V.m.x, c.V.m.y)], C.Df.Of(c, 4, q); else if (2 === C.Es) { c = this.WH().ca; var f = this.offsetX, g = this.offsetY; c = [C.d(f, g), C.d(f + c.width, g), C.d(f + c.width, g + c.height), C.d(f, g + c.height)]; C.Df.Of(c, 4, q) } C.kl++ } }; c.qc = C.u.prototype.qc }; C.U.OT = function() { var c = C.fa.prototype; C.e(c, "color", c.Xa, c.G); C.e(c, "opacity", c.rb, c.K); C.e(c, "string", c.Wb, c.sa); C.e(c, "textAlign", c.EAa, c.S2); C.e(c, "verticalAlign", c.pCa, c.y3); C.e(c, "fontSize", c.Vn, c.Od); C.e(c, "fontName", c.Fp, c.Zd); C.e(c, "font", c.bw, c.rr); C.e(c, "boundingWidth", c.KF, c.VN); C.e(c, "boundingHeight", c.IW, c.UN); C.e(c, "fillStyle", c.msa, c.zR); C.e(c, "strokeStyle", c.Msa, c.vva); C.e(c, "lineWidth", c.xsa, c.cva); C.e(c, "shadowOffsetX", c.Isa, c.lva); C.e(c, "shadowOffsetY", c.Jsa, c.mva); C.e(c, "shadowOpacity", c.Ksa, c.nva); C.e(c, "shadowBlur", c.Hsa, c.kva) }; C.fa = C.u.extend({ ue: s, $o: C.Fs, xp: C.OE, Oc: s, Pc: 0, qd: "", KX: s, sA: t, kn: s, Jg: t, ih: s, sr: 0, Wt: 0, aO: s, pm: t, Uw: s, yr: 0, gO: s, Vw: s, tM: s, cZ: 0, dZ: 0, Dc: t, XM: s, YM: s, raa: s, qa: "LabelTTF", ctor: function(c, d, f, g, h, k) { C.u.prototype.ctor.call(this); this.ue = C.size(0, 0); this.$o = C.dz; this.xp = C.OE; this.Fb = t; this.kn = ""; this.Oc = "Arial"; this.Jg = this.sA = t; this.ih = C.d(0, 0); this.Wt = this.sr = 0; this.aO = "rgba(128, 128, 128, 0.5)"; this.pm = t; this.Uw = C.color(255, 255, 255, 255); this.yr = 0; this.gO = ""; this.Vw = C.color(255, 255, 255, 255); this.tM = "rgba(255,255,255,1)"; this.dZ = this.cZ = 0; this.Dc = t; this.raa = []; this.Yj(); d && d instanceof C.W5 ? this.Z0(c, d) : C.fa.prototype.sf.call(this, c, d, f, g, h, k) }, j: function() { return this.sf(" ", this.Oc, this.Pc) }, Fta: function() { this.LW().font = this.kn }, cG: function(c) { return this.LW().measureText(c).width }, jra: function(c, d) { var f = this.cG(c), g = Math.floor(c.length * d / f), h = c.indexOf("\n"); if (0.8 * g >= h && 0 < h) return h + 1; if (f < d) return c.length; for (var f = t, h = d + 1, k = -1, n = g, p, r = C.fa.lra, v = C.fa.Hua, y = C.fa.ira, z = c.substr(g); p = r.exec(z);) { n += p[0].length; h = this.cG(c.substr(0, n)); if ("\n" == p[2] && h < d) { f = q; k = n; break } if (h > d) { - 1 != k && (f = q); break } k = n; z = c.substr(n) } if (f) return k; z = c.substr(0, g); for (k = g; p = v.exec(z);) if (k = p[1].length, z = p[1], h = this.cG(z), h < d) { y.test(p[2]) && k++; break } return k || 1 }, description: function() { return "\x3ccc.LabelTTF | FontName \x3d" + this.Oc + " FontSize \x3d " + this.Pc.toFixed(1) + "\x3e" }, G: s, Yj: s, Tb: s, K: s, dc: s, G6a: function(c) { C.ha.prototype.dc.call(this, c); this.Yj() }, Wb: A("qd"), EAa: A("$o"), pCa: A("xp"), rAa: function() { return C.size(this.ue.width, this.ue.height) }, Vn: A("Pc"), Fp: A("Oc"), sf: function(c, d, f, g, h, k) { c = c ? c + "": ""; f = f || 16; g = g || C.size(0, f); h = h || C.dz; k = k || C.OE; this.Fb = t; this.ue = C.size(g.width, g.height); this.Oc = d || "Arial"; this.$o = h; this.xp = k; this.Pc = f; this.kn = this.Pc + "px '" + d + "'"; this.Yo = C.fa.QE(d, this.Pc); this.string = c; this.Yj(); this.JO(); this.Dc = t; return q }, Z0: s, m5a: function(c) { c && this.uZ(c, q) }, SWa: function() { return this.nua(t) }, a0: function(c, d, f, g) { f = f || 0.5; t === this.Jg && (this.Jg = q); var h = this.ih; if (h && h.x != c || h.cj != d) h.x = c, h.y = d; this.sr != f && (this.sr = f); this.Yj(); this.Wt != g && (this.Wt = g); this.Dc = q }, Isa: function() { return this.ih.x }, lva: function(c) { t === this.Jg && (this.Jg = q); this.ih.x != c && (this.ih.x = c, this.Dc = q) }, Jsa: function() { return this.ih.cj }, mva: function(c) { t === this.Jg && (this.Jg = q); this.ih.cj != c && (this.ih.cj = c, this.Dc = q) }, NOa: function() { return C.d(this.ih.x, this.ih.y) }, xPa: function(c) { t === this.Jg && (this.Jg = q); if (this.ih.x != c.x || this.ih.y != c.y) this.ih.x = c.x, this.ih.y = c.y, this.Dc = q }, Ksa: A("sr"), nva: function(c) { t === this.Jg && (this.Jg = q); this.sr != c && (this.sr = c, this.Yj(), this.Dc = q) }, Hsa: A("Wt"), kva: function(c) { t === this.Jg && (this.Jg = q); this.Wt != c && (this.Wt = c, this.Dc = q) }, BRa: function() { this.Jg && (this.Jg = t, this.Dc = q) }, zza: function(c, d) { this.pm === t && (this.pm = q); var f = this.Uw; if (f.r !== c.r || f.g !== c.g || f.b !== c.b) f.r = c.r, f.g = c.g, f.b = c.b, this.Yj(); this.yr !== d && (this.yr = d || 0); this.Dc = q }, Msa: A("Uw"), vva: function(c) { this.pm === t && (this.pm = q); var d = this.Uw; if (d.r !== c.r || d.g !== c.g || d.b !== c.b) d.r = c.r, d.g = c.g, d.b = c.b, this.Yj(), this.Dc = q }, xsa: A("yr"), cva: function(c) { this.pm === t && (this.pm = q); this.yr !== c && (this.yr = c || 0, this.Dc = q) }, CRa: function() { this.pm && (this.pm = t, this.Dc = q) }, zR: s, msa: A("Vw"), uZ: function(c, d) { c.zSa ? (this.ue.width = c.boundingWidth, this.ue.height = c.boundingHeight) : (this.ue.width = 0, this.ue.height = 0); this.$o = c.textAlign; this.xp = c.verticalAlign; this.Oc = c.fontName; this.Pc = c.fontSize || 12; this.kn = this.Pc + "px '" + this.Oc + "'"; this.Yo = C.fa.QE(this.Oc, this.Pc); c.Dia && this.a0(c.shadowOffsetX, c.shadowOffsetY, c.shadowOpacity, c.shadowBlur); c.I3 && this.zza(c.strokeStyle, c.lineWidth); this.zR(c.fillStyle); d && this.JO() }, nua: function(c) { var d = new C.W5; c ? (d.fontSize = this.Pc, d.boundingWidth = C.Ec() * this.ue.width, d.boundingHeight = C.Ec() * this.ue.height) : (d.fontSize = this.Pc, d.boundingWidth = this.ue.width, d.boundingHeight = this.ue.height); d.fontName = this.Oc; d.textAlign = this.$o; d.verticalAlign = this.xp; if (this.pm) { d.I3 = q; var f = this.Uw; d.strokeStyle = C.color(f.r, f.g, f.b); d.lineWidth = this.yr } else d.I3 = t; this.Jg ? (d.Dia = q, d.shadowBlur = this.Wt, d.shadowOpacity = this.sr, d.shadowOffsetX = (c ? C.Ec() : 1) * this.ih.x, d.shadowOffsetY = (c ? C.Ec() : 1) * this.ih.y) : d.Jg = t; c = this.Vw; d.fillStyle = C.color(c.r, c.g, c.b); return d }, Yo: 18, sa: function(c) { c = String(c); this.KX != c && (this.KX = c + "", this.HO(), this.Dc = q) }, HO: function() { this.qd = this.KX }, S2: function(c) { c !== this.$o && (this.$o = c, this.Dc = q) }, y3: function(c) { c != this.xp && (this.xp = c, this.Dc = q) }, N2: function(c) { if (c.width != this.ue.width || c.height != this.ue.height) this.ue = c, this.HO(), this.Dc = q }, KF: function() { return this.ue.width }, VN: function(c) { c != this.ue.width && (this.ue.width = c, this.HO(), this.Dc = q) }, IW: function() { return this.ue.height }, UN: function(c) { c != this.ue.height && (this.ue.height = c, this.HO(), this.Dc = q) }, Od: function(c) { this.Pc !== c && (this.Pc = c, this.kn = c + "px '" + this.Oc + "'", this.Yo = C.fa.QE(this.Oc, c), this.Dc = q) }, Zd: function(c) { this.Oc && this.Oc != c && (this.Oc = c, this.kn = this.Pc + "px '" + c + "'", this.Yo = C.fa.QE(c, this.Pc), this.Dc = q) }, bw: A("kn"), rr: function(c) { var d = C.fa.xM.exec(c); d && (this.Pc = parseInt(d[1]), this.Oc = d[2], this.kn = c, this.Yo = C.fa.QE(this.Oc, this.Pc), this.Dc = q) }, Mra: function(c) { if (c) { var d = this.cZ, f = this.dZ, g = this.o.height - f, h = this.xp, k = this.$o, n = this.Yo, p = this.yr; c.setTransform(1, 0, 0, 1, 0 + 0.5 * d, g + 0.5 * f); c.font != this.kn && (c.font = this.kn); c.fillStyle = this.tM; var r = f = 0, v = this.pm; v && (c.lineWidth = 2 * p, c.strokeStyle = this.gO); this.Jg && (p = this.ih, c.shadowColor = this.aO, c.shadowOffsetX = p.x, c.shadowOffsetY = -p.y, c.shadowBlur = this.Wt); c.textBaseline = C.fa.Qva[h]; c.textAlign = C.fa.Pva[k]; d = this.o.width - d; f = k === C.Q7 ? f + d: k === C.Fs ? f + d / 2 : f + 0; if (this.sA) { k = this.xr.length; h === C.J8 ? r = n + g - n * k: h === C.MU && (r = n / 2 + (g - n * k) / 2); for (h = 0; h < k; h++) d = this.xr[h], p = -g + n * h + r, v && c.strokeText(d, f, p), c.fillText(d, f, p) } else h !== C.J8 && (r = h === C.OE ? r - g: r - 0.5 * g), v && c.strokeText(this.qd, f, r), c.fillText(this.qd, f, r) } }, LW: function() { if (this.YM) return this.YM; if (!this.XM) { var c = C.bd("canvas"), d = new C.Ma; d.Ng(c); this.texture = d; this.XM = c } return this.YM = this.XM.getContext("2d") }, IO: function() { var c = this.ue.width, d, f, g = this.raa; g.length = 0; this.sA = t; this.Fta(); if (0 !== c) { var h = this.qd; this.xr = []; d = 0; for (f = this.qd.length; d < f;) { var k = this.jra(h.substr(d), c); this.xr.push(h.substr(d, k)); d += k } } else { this.xr = this.qd.split("\n"); d = 0; for (f = this.xr.length; d < f; d++) g.push(this.cG(this.xr[d])) } 0 < this.xr.length && (this.sA = q); f = d = 0; this.pm && (d = f = 2 * this.yr); this.Jg && (h = this.ih, d += 2 * Math.abs(h.x), f += 2 * Math.abs(h.y)); c = 0 === c ? this.sA ? C.size(0 | Math.max.apply(Math, g) + d, 0 | this.Yo * this.xr.length + f) : C.size(0 | this.cG(this.qd) + d, 0 | this.Yo + f) : 0 === this.ue.height ? this.sA ? C.size(0 | c + d, 0 | this.Yo * this.xr.length + f) : C.size(0 | c + d, 0 | this.Yo + f) : C.size(0 | c + d, 0 | this.ue.height + f); this.Ca(c); this.cZ = d; this.dZ = f; g = this.Ab; this.Nb.x = 0.5 * d + (c.width - d) * g.x; this.Nb.y = 0.5 * f + (c.height - f) * g.y }, i: function() { this.Dc && this.IO(); return C.u.prototype.i.call(this) }, ef: function() { this.Dc && this.IO(); return C.u.prototype.ef.call(this) }, Dg: function() { this.Dc && this.IO(); return C.u.prototype.Dg.call(this) }, JO: function() { var c = this.LW(), d = this.XM, f = this.o; if (0 === this.qd.length) return d.width = 1, d.height = f.height, this.qc(C.rect(0, 0, 1, f.height)), q; c.font = this.kn; this.IO(); var g = f.width, f = f.height, h = d.width == g && d.height == f; d.width = g; d.height = f; h && c.clearRect(0, 0, g, f); this.Mra(c); this.da && this.da.Md(); this.qc(C.rect(0, 0, g, f)); return q }, J: function(c) { this.qd && "" != this.qd && (this.Dc && (this.Dc = t, this.JO()), C.u.prototype.J.call(this, c || C.t)) }, ka: s, xba: function(c) { var d = this.wa ? this.textureAtlas.texture: this.da; if (d) { var f = d.pixelsWidth, g = d.pixelsHeight, h, k = this.Td; this.jf ? (C.Qy ? (d = (2 * c.x + 1) / (2 * f), f = d + (2 * c.height - 2) / (2 * f), h = (2 * c.y + 1) / (2 * g), c = h + (2 * c.width - 2) / (2 * g)) : (d = c.x / f, f = (c.x + c.height) / f, h = c.y / g, c = (c.y + c.width) / g), this.Bb && (g = h, h = c, c = g), this.Db && (g = d, d = f, f = g), k.T.v.xa = d, k.T.v.ea = h, k.Y.v.xa = d, k.Y.v.ea = c, k.X.v.xa = f, k.X.v.ea = h, k.V.v.xa = f, k.V.v.ea = c) : (C.Qy ? (d = (2 * c.x + 1) / (2 * f), f = d + (2 * c.width - 2) / (2 * f), h = (2 * c.y + 1) / (2 * g), c = h + (2 * c.height - 2) / (2 * g)) : (d = c.x / f, f = (c.x + c.width) / f, h = c.y / g, c = (c.y + c.height) / g), this.Bb && (g = d, d = f, f = g), this.Db && (g = h, h = c, c = g), k.T.v.xa = d, k.T.v.ea = c, k.Y.v.xa = f, k.Y.v.ea = c, k.X.v.xa = d, k.X.v.ea = h, k.V.v.xa = f, k.V.v.ea = h); this.Ti = q } } }); C.L === C.cb ? (H = C.fa.prototype, H.G = function(c) { C.ha.prototype.G.call(this, c); this.Yj() }, H.Yj = function() { this.Dc = q; var c = this.wb, d = this.hb, f = this.Uw, g = this.Vw; this.aO = "rgba(" + (0 | 0.5 * c.r) + "," + (0 | 0.5 * c.g) + "," + (0 | 0.5 * c.b) + "," + this.sr + ")"; this.tM = "rgba(" + (0 | c.r / 255 * g.r) + "," + (0 | c.g / 255 * g.g) + "," + (0 | c.b / 255 * g.b) + ", " + d / 255 + ")"; this.gO = "rgba(" + (0 | c.r / 255 * f.r) + "," + (0 | c.g / 255 * f.g) + "," + (0 | c.b / 255 * f.b) + ", " + d / 255 + ")" }, H.Tb = function(c) { C.ha.prototype.Tb.call(this, c); this.Yj() }, H.K = function(c) { this.Eb !== c && (C.u.prototype.K.call(this, c), this.Yj(), this.Dc = q) }, H.dc = C.u.prototype.dc, H.Z0 = function(c, d) { this.uZ(d, t); this.string = c; return q }, H.zR = function(c) { var d = this.Vw; if (d.r != c.r || d.g != c.g || d.b != c.b) d.r = c.r, d.g = c.g, d.b = c.b, this.Yj(), this.Dc = q }, H.ka = C.u.prototype.ka, H.qc = function(c, d, f) { this.jf = d || t; this.Ca(f || c); this.x3(c); d = this.jB; d.x = c.x; d.y = c.y; d.width = c.width; d.height = c.height; d.nD = !(0 === d.width || 0 === d.height || 0 > d.x || 0 > d.y); c = this.Nn; this.Bb && (c.x = -c.x); this.Db && (c.y = -c.y); this.ld.x = c.x + (this.o.width - this.Ra.width) / 2; this.ld.y = c.y + (this.o.height - this.Ra.height) / 2; this.wa && (this.dirty = q) }, H = s) : (C.assert("function" === typeof C.U.QU, C.n.Bf, "LabelTTFWebGL.js"), C.U.QU(), delete C.U.QU); C.assert("function" === typeof C.U.OT, C.n.Bf, "LabelTTFPropertyDefine.js"); C.U.OT(); delete C.U.OT; C.fa.Pva = ["left", "center", "right"]; C.fa.Qva = ["top", "middle", "bottom"]; C.fa.lra = /(.+?)([\s\n\r\-\/\\\:]|[\u4E00-\u9FA5]|[\uFE30-\uFFA0])/; C.fa.Hua = /(.*)([\s\n\r\-\/\\\:]|[\u4E00-\u9FA5]|[\uFE30-\uFFA0])/; C.fa.ira = /[\s\-\/\\\:]/; C.fa.xM = /^(\d+)px\s+['"]?([\w\s\d]+)['"]?$/; C.fa.create = function(c, d, f, g, h, k) { return new C.fa(c, d, f, g, h, k) }; C.fa.Bqa = C.nqa ? C.Co: C.$T; C.fa.Rs = C.bd("div"); C.fa.Rs.style.fontFamily = "Arial"; C.fa.Rs.style.position = "absolute"; C.fa.Rs.style.left = "-100px"; C.fa.Rs.style.top = "-100px"; C.fa.Rs.style.lineHeight = "normal"; document.body ? document.body.appendChild(C.fa.Rs) : C.qb(window, "load", function() { this.removeEventListener("load", arguments.callee, t); document.body.appendChild(C.fa.Rs) }, t); C.fa.QE = function(c, d) { var f = C.fa.R8[c + "." + d]; if (0 < f) return f; var g = C.fa.Rs; g.innerHTML = "ajghl~!"; g.style.fontFamily = c; g.style.fontSize = d + "px"; f = g.clientHeight; C.fa.R8[c + "." + d] = f; g.innerHTML = ""; return f }; C.fa.R8 = {}; C.vma = C.O.extend({ Ve: s, target: s, kx: 0, bk: s, wx: t, paused: t, WP: s, ctor: function() { this.Ve = []; this.target = s; this.kx = 0; this.bk = s; this.paused = this.wx = t; this.WP = s } }); C.k4 = C.O.extend({ mn: s, lz: s, Cf: s, Vo: t, tPa: function(c, d) { for (var f = 0; f < c.length; f++) if (d == c[f].target) return c[f]; return s }, ctor: function() { this.mn = {}; this.lz = []; this.Cf = s; this.Vo = t }, mwa: function(c, d, f) { c || e("cc.ActionManager.addAction(): action must be non-null"); d || e("cc.ActionManager.addAction(): action must be non-null"); var g = this.mn[d.ub]; g || (g = new C.vma, g.paused = f, g.target = d, this.mn[d.ub] = g, this.lz.push(g)); this.Hqa(g); g.Ve.push(c); c.R(d) }, P1a: function() { for (var c = this.lz, d = 0; d < c.length; d++) { var f = c[d]; f && this.Pga(f.target, q) } }, Pga: function(c, d) { if (c != s) { var f = this.mn[c.ub]; f && ( - 1 !== f.Ve.indexOf(f.bk) && !f.wx && (f.wx = q), f.Ve.length = 0, this.Cf == f && !d ? this.Vo = q: this.ZV(f)) } }, Oga: function(c) { if (c != s) { var d = this.mn[c.originalTarget.ub]; if (d) for (var f = 0; f < d.Ve.length; f++) { if (d.Ve[f] == c) { d.Ve.splice(f, 1); break } } else C.log(C.n.Ija) } }, nGa: function(c, d) { c == C.Gy && C.log(C.n.l4); C.assert(d, C.n.l4); var f = this.mn[d.ub]; if (f) for (var g = f.Ve.length, h = 0; h < g; ++h) { var k = f.Ve[h]; if (k && k.Fm() === c && k.originalTarget == d) { this.yua(h, f); break } } }, xP: function(c, d) { c == C.Gy && C.log(C.n.Gja); var f = this.mn[d.ub]; if (f) { if (f.Ve != s) for (var g = 0; g < f.Ve.length; ++g) { var h = f.Ve[g]; if (h && h.Fm() === c) return h } C.log(C.n.Hja, c) } return s }, wEa: function(c) { return (c = this.mn[c.ub]) ? c.Ve ? c.Ve.length: 0 : 0 }, hs: function(c) { (c = this.mn[c.ub]) && (c.paused = q) }, Mm: function(c) { (c = this.mn[c.ub]) && (c.paused = t) }, Z0a: function() { for (var c = [], d = this.lz, f = 0; f < d.length; f++) { var g = d[f]; g && !g.paused && (g.paused = q, c.push(g.target)) } return c }, FGa: function(c) { if (c) for (var d = 0; d < c.length; d++) c[d] && this.Mm(c[d]) }, t1a: function() { C.Q.Em().GJ(this) }, yua: function(c, d) { d.Ve[c] == d.bk && !d.wx && (d.wx = q); d.Ve.splice(c, 1); d.kx >= c && d.kx--; 0 == d.Ve.length && (this.Cf == d ? this.Vo = q: this.ZV(d)) }, ZV: function(c) { c && (delete this.mn[c.target.ub], C.Id(this.lz, c), c.Ve = s, c.target = s) }, Hqa: function(c) { c.Ve == s && (c.Ve = []) }, update: function(c) { for (var d = this.lz, f, g = 0; g < d.length; g++) { f = this.Cf = d[g]; if (!f.paused) for (f.kx = 0; f.kx < f.Ve.length; f.kx++) if (f.bk = f.Ve[f.kx], f.bk) { f.wx = t; f.bk.step(c * (f.bk.JG ? f.bk.Hf: 1)); if (f.wx) f.bk = s; else if (f.bk.ik()) { f.bk.stop(); var h = f.bk; f.bk = s; this.Oga(h) } f.bk = s } this.Vo && 0 === f.Ve.length && this.ZV(f) } } }); C.s_a = Number; C.iZa = Number; C.jZa = Number; C.Wy = 0; C.Xy = 1; C.r1 = 3.141592; C.WDa = 0.017453; C.XDa = 57.295779; C.xb = 0.015625; C.tf = function(c) { return c * c }; C.tI = function(c) { return c * C.WDa }; C.n_a = function(c) { return c * C.XDa }; C.uQ = function(c, d) { return c < d ? c: d }; C.tQ = function(c, d) { return c > d ? c: d }; C.hZa = function(c, d) { return c + C.xb > d && c - C.xb < d }; C.bo = function() { this.y = this.x = 0 }; C.w_a = function(c, d, f) { c.x = d; c.y = f; return c }; C.wQ = function(c) { return Math.sqrt(C.tf(c.x) + C.tf(c.y)) }; C.x_a = function(c) { return C.tf(c.x) + C.tf(c.y) }; C.cEa = function(c, d) { var f = 1 / C.wQ(d), g = new C.bo; g.x = d.x * f; g.y = d.y * f; c.x = g.x; c.y = g.y }; C.t_a = function(c, d, f) { c.x = d.x + f.x; c.y = d.y + f.y; return c }; C.v_a = function(c, d) { return c.x * d.x + c.y * d.y }; C.xQ = function(c, d, f) { c.x = d.x - f.x; c.y = d.y - f.y; return c }; C.z_a = function(c, d, f) { var g = new C.bo; g.x = d.x * f.c[0] + d.y * f.c[3] + f.c[6]; g.y = d.x * f.c[1] + d.y * f.c[4] + f.c[7]; c.x = g.x; c.y = g.y; return c }; C.A_a = B(s); C.y_a = function(c, d, f) { c.x = d.x * f; c.y = d.y * f; return c }; C.u_a = function(c, d) { return c.x < d.x + C.xb && c.x > d.x - C.xb && c.y < d.y + C.xb && c.y > d.y - C.xb }; C.Zc = function(c, d, f) { this.x = c || 0; this.y = d || 0; this.f = f || 0 }; C.nC = function(c, d, f, g) { if (!c) return new C.Zc(d, f, g); c.x = d; c.y = f; c.f = g; return c }; C.zfa = function(c) { return Math.sqrt(C.tf(c.x) + C.tf(c.y) + C.tf(c.f)) }; C.Afa = function(c) { return C.tf(c.x) + C.tf(c.y) + C.tf(c.f) }; C.jk = function(c, d) { var f = 1 / C.zfa(d); c.x = d.x * f; c.y = d.y * f; c.f = d.f * f }; C.Du = function(c, d, f) { c.x = d.y * f.f - d.f * f.y; c.y = d.f * f.x - d.x * f.f; c.f = d.x * f.y - d.y * f.x }; C.t1 = function(c, d) { return c.x * d.x + c.y * d.y + c.f * d.f }; C.yfa = function(c, d, f) { c.x = d.x + f.x; c.y = d.y + f.y; c.f = d.f + f.f }; C.v1 = function(c, d, f) { c.x = d.x - f.x; c.y = d.y - f.y; c.f = d.f - f.f }; C.F_a = function(c, d, f) { c.x = d.x * f.c[0] + d.y * f.c[4] + d.f * f.c[8] + f.c[12]; c.y = d.x * f.c[1] + d.y * f.c[5] + d.f * f.c[9] + f.c[13]; c.f = d.x * f.c[2] + d.y * f.c[6] + d.f * f.c[10] + f.c[14]; return c }; C.G_a = function(c, d, f) { c.x = d.x * f.c[0] + d.y * f.c[4] + d.f * f.c[8]; c.y = d.x * f.c[1] + d.y * f.c[5] + d.f * f.c[9]; c.f = d.x * f.c[2] + d.y * f.c[6] + d.f * f.c[10]; return c }; C.Bfa = function(c, d, f) { var g = new C.Cfa, h = new C.Cfa; C.dEa(h, d.x, d.y, d.f); C.Dfa(g, h, f); c.x = g.x / g.ba; c.y = g.y / g.ba; c.f = g.f / g.ba }; C.u1 = function(c, d, f) { c.x = d.x * f; c.y = d.y * f; c.f = d.f * f; return c }; C.B_a = function(c, d) { return c.x < d.x + C.xb && c.x > d.x - C.xb && c.y < d.y + C.xb && c.y > d.y - C.xb && c.f < d.f + C.xb && c.f > d.f - C.xb ? 1 : 0 }; C.C_a = function(c, d, f) { d = new C.Zc(d.x - f.c[12], d.y - f.c[13], d.f - f.c[14]); c.x = d.x * f.c[0] + d.y * f.c[1] + d.f * f.c[2]; c.y = d.x * f.c[4] + d.y * f.c[5] + d.f * f.c[6]; c.f = d.x * f.c[8] + d.y * f.c[9] + d.f * f.c[10]; return c }; C.D_a = function(c, d, f) { c.x = d.x * f.c[0] + d.y * f.c[1] + d.f * f.c[2]; c.y = d.x * f.c[4] + d.y * f.c[5] + d.f * f.c[6]; c.f = d.x * f.c[8] + d.y * f.c[9] + d.f * f.c[10]; return c }; C.uI = function(c, d) { c != d && (c.x = d.x, c.y = d.y, c.f = d.f) }; C.H_a = function(c) { c.x = 0; c.y = 0; c.f = 0; return c }; C.E_a = function(c) { if (!c) return s; var d = new Float32Array(3); d[0] = c.x; d[1] = c.y; d[2] = c.f; return d }; C.Cfa = function() { this.ba = this.f = this.y = this.x = 0 }; C.dEa = function(c, d, f, g) { c.x = d; c.y = f; c.f = g; c.ba = 1 }; C.I_a = function(c, d, f) { c.x = d.x + f.x; c.y = d.y + f.y; c.f = d.f + f.f; c.ba = d.ba + f.ba; return c }; C.L_a = function(c, d) { return c.x * d.x + c.y * d.y + c.f * d.f + c.ba * d.ba }; C.eEa = function(c) { return Math.sqrt(C.tf(c.x) + C.tf(c.y) + C.tf(c.f) + C.tf(c.ba)) }; C.M_a = function(c) { return C.tf(c.x) + C.tf(c.y) + C.tf(c.f) + C.tf(c.ba) }; C.N_a = da(); C.fEa = function(c, d) { var f = 1 / C.eEa(d); c.x *= f; c.y *= f; c.f *= f; c.ba *= f }; C.O_a = function(c, d, f) { C.fEa(c, d); c.x *= f; c.y *= f; c.f *= f; c.ba *= f; return c }; C.P_a = function(c, d, f) { c.x = d.x - f.x; c.y = d.y - f.y; c.f = d.f - f.f; c.ba = d.ba - f.ba; return c }; C.Dfa = function(c, d, f) { c.x = d.x * f.c[0] + d.y * f.c[4] + d.f * f.c[8] + d.ba * f.c[12]; c.y = d.x * f.c[1] + d.y * f.c[5] + d.f * f.c[9] + d.ba * f.c[13]; c.f = d.x * f.c[2] + d.y * f.c[6] + d.f * f.c[10] + d.ba * f.c[14]; c.ba = d.x * f.c[3] + d.y * f.c[7] + d.f * f.c[11] + d.ba * f.c[15] }; C.R_a = function(c, d, f, g, h, k) { for (var n = 0; n < k;) C.Dfa(c + n * d, f + n * g, h), ++n; return c }; C.J_a = function(c, d) { return c.x < d.x + C.xb && c.x > d.x - C.xb && c.y < d.y + C.xb && c.y > d.y - C.xb && c.f < d.f + C.xb && c.f > d.f - C.xb && c.ba < d.ba + C.xb && c.ba > d.ba - C.xb }; C.K_a = function(c, d) { if (c == d) return C.log("destVec and srcVec are same object"), c; c.x = d.x; c.y = d.y; c.f = d.f; c.ba = d.ba; return c }; C.Q_a = function(c) { if (!c) return s; var d = new Float32Array(4); d[0] = c.x; d[1] = c.y; d[2] = c.f; d[3] = c.ba; return d }; C.o_a = function(c) { this.start = c || new C.bo; this.start = c || new C.bo }; C.p_a = function(c, d, f, g, h) { c.start.x = d; c.start.y = f; c.dir.x = g; c.dir.y = h }; C.s1 = function(c, d, f, g) { var h = c.start.x, k = c.start.y, n = c.start.x + c.dir.x; c = c.start.y + c.dir.y; var p = d.x, r = d.y, v = f.x, y = f.y, z = (y - r) * (n - h) - (v - p) * (c - k); if (z > -C.xb && z < C.xb) return C.Wy; r = ((v - p) * (k - r) - (y - r) * (h - p)) / z; p = h + r * (n - h); r = k + r * (c - k); if (p < C.uQ(d.x, f.x) - C.xb || p > C.tQ(d.x, f.x) + C.xb || r < C.uQ(d.y, f.y) - C.xb || r > C.tQ(d.y, f.y) + C.xb || p < C.uQ(h, n) - C.xb || p > C.tQ(h, n) + C.xb || r < C.uQ(k, c) - C.xb || r > C.tQ(k, c) + C.xb) return C.Wy; g.x = p; g.y = r; return C.Xy }; C.m_ = function(c, d, f) { var g = new C.bo; C.xQ(g, d, c); f.x = -g.y; f.y = g.x; C.cEa(f, f) }; C.r_a = function(c, d, f, g, h, k) { var n = new C.bo, p = new C.bo, r = new C.bo, v = 1E4, y = C.Wy, z; C.s1(c, d, f, n) && (z = new C.bo, y = C.Xy, z = C.wQ(C.xQ(z, n, c.start)), z < v && (p.x = n.x, p.y = n.y, v = z, C.m_(d, f, r))); C.s1(c, f, g, n) && (z = new C.bo, y = C.Xy, z = C.wQ(C.xQ(z, n, c.start)), z < v && (p.x = n.x, p.y = n.y, v = z, C.m_(f, g, r))); C.s1(c, g, d, n) && (z = new C.bo, y = C.Xy, z = C.wQ(C.xQ(z, n, c.start)), z < v && (p.x = n.x, p.y = n.y, C.m_(g, d, r))); y && (h.x = p.x, h.y = p.y, k && (k.x = r.x, k.y = r.y)); return y }; C.q_a = function() { C.log("cc.kmRay2IntersectCircle() has not been implemented.") }; var Float32Array = Float32Array || Array; C.sQ = function() { this.c = new Float32Array([0, 0, 0, 0, 0, 0, 0, 0, 0]) }; C.rZa = function(c, d) { for (var f = 0; 9 > f; f++) c.c[f] = d; return c }; C.PDa = function(c, d) { c.c[0] = d.c[4] * d.c[8] - d.c[5] * d.c[7]; c.c[1] = d.c[2] * d.c[7] - d.c[1] * d.c[8]; c.c[2] = d.c[1] * d.c[5] - d.c[2] * d.c[4]; c.c[3] = d.c[5] * d.c[6] - d.c[3] * d.c[8]; c.c[4] = d.c[0] * d.c[8] - d.c[2] * d.c[6]; c.c[5] = d.c[2] * d.c[3] - d.c[0] * d.c[5]; c.c[6] = d.c[3] * d.c[7] - d.c[4] * d.c[6]; c.c[8] = d.c[0] * d.c[4] - d.c[1] * d.c[3] }; C.qfa = function(c) { c.c[1] = c.c[2] = c.c[3] = c.c[5] = c.c[6] = c.c[7] = 0; c.c[0] = c.c[4] = c.c[8] = 1 }; C.sZa = function(c, d, f) { var g = new C.sQ; if (0 === d) return s; d = 1 / d; C.PDa(g, f); C.QDa(c, g, d); return c }; C.sQ.YW = new Float32Array([1, 0, 0, 0, 1, 0, 0, 0, 1]); C.tZa = function(c) { for (var d = 0; 9 > d; d++) if (C.sQ.YW[d] !== c.c[d]) return t; return q }; C.EZa = function(c, d) { var f, g; for (f = 0; 3 > f; ++f) for (g = 0; 3 > g; ++g) c.c[3 * f + g] = d.c[3 * g + f]; return c }; C.qZa = function(c) { var d; d = c.c[0] * c.c[4] * c.c[8] + c.c[1] * c.c[5] * c.c[6] + c.c[2] * c.c[3] * c.c[7]; return d -= c.c[2] * c.c[4] * c.c[6] + c.c[0] * c.c[5] * c.c[7] + c.c[1] * c.c[3] * c.c[8] }; C.uZa = function(c, d, f) { d = d.c; f = f.c; c.c[0] = d[0] * f[0] + d[3] * f[1] + d[6] * f[2]; c.c[1] = d[1] * f[0] + d[4] * f[1] + d[7] * f[2]; c.c[2] = d[2] * f[0] + d[5] * f[1] + d[8] * f[2]; c.c[3] = d[0] * f[3] + d[3] * f[4] + d[6] * f[5]; c.c[4] = d[1] * f[3] + d[4] * f[4] + d[7] * f[5]; c.c[5] = d[2] * f[3] + d[5] * f[4] + d[8] * f[5]; c.c[6] = d[0] * f[6] + d[3] * f[7] + d[6] * f[8]; c.c[7] = d[1] * f[6] + d[4] * f[7] + d[7] * f[8]; c.c[8] = d[2] * f[6] + d[5] * f[7] + d[8] * f[8]; return c }; C.QDa = function(c, d, f) { for (var g = 0; 9 > g; g++) c.c[g] = d.c[g] * f }; C.wZa = function(c, d, f) { var g = Math.cos(f); f = Math.sin(f); c.c[0] = g + d.x * d.x * (1 - g); c.c[1] = d.f * f + d.y * d.x * (1 - g); c.c[2] = -d.y * f + d.f * d.x * (1 - g); c.c[3] = -d.f * f + d.x * d.y * (1 - g); c.c[4] = g + d.y * d.y * (1 - g); c.c[5] = d.x * f + d.f * d.y * (1 - g); c.c[6] = d.y * f + d.x * d.f * (1 - g); c.c[7] = -d.x * f + d.y * d.f * (1 - g); c.c[8] = g + d.f * d.f * (1 - g); return c }; C.pZa = function(c, d) { if (c == d) return C.log("cc.kmMat3Assign(): pOut equals pIn"), c; for (var f = 0; 9 > f; f++) c.c[f] = d.c[f]; return c }; C.oZa = function(c, d) { if (c == d) return q; for (var f = 0; 9 > f; ++f) if (! (c.c[f] + C.xb > d.c[f] && c.c[f] - C.xb < d.c[f])) return t; return q }; C.zZa = function(c, d) { c.c[0] = 1; c.c[1] = 0; c.c[2] = 0; c.c[3] = 0; c.c[4] = Math.cos(d); c.c[5] = Math.sin(d); c.c[6] = 0; c.c[7] = -Math.sin(d); c.c[8] = Math.cos(d); return c }; C.AZa = function(c, d) { c.c[0] = Math.cos(d); c.c[1] = 0; c.c[2] = -Math.sin(d); c.c[3] = 0; c.c[4] = 1; c.c[5] = 0; c.c[6] = Math.sin(d); c.c[7] = 0; c.c[8] = Math.cos(d); return c }; C.BZa = function(c, d) { c.c[0] = Math.cos(d); c.c[1] = -Math.sin(d); c.c[2] = 0; c.c[3] = Math.sin(d); c.c[4] = Math.cos(d); c.c[5] = 0; c.c[6] = 0; c.c[7] = 0; c.c[8] = 1; return c }; C.vZa = function(c, d) { c.c[0] = Math.cos(d); c.c[1] = Math.sin(d); c.c[2] = 0; c.c[3] = -Math.sin(d); c.c[4] = Math.cos(d); c.c[5] = 0; c.c[6] = 0; c.c[7] = 0; c.c[8] = 1; return c }; C.CZa = function(c, d, f) { C.qfa(c); c.c[0] = d; c.c[4] = f; return c }; C.DZa = function(c, d, f) { C.qfa(c); c.c[6] = d; c.c[7] = f; return c }; C.xZa = function(c, d) { if (!d || !c) return s; c.c[0] = 1 - 2 * (d.y * d.y + d.f * d.f); c.c[1] = 2 * (d.x * d.y - d.ba * d.f); c.c[2] = 2 * (d.x * d.f + d.ba * d.y); c.c[3] = 2 * (d.x * d.y + d.ba * d.f); c.c[4] = 1 - 2 * (d.x * d.x + d.f * d.f); c.c[5] = 2 * (d.y * d.f - d.ba * d.x); c.c[6] = 2 * (d.x * d.f - d.ba * d.y); c.c[7] = 2 * (d.y * d.f + d.ba * d.x); c.c[8] = 1 - 2 * (d.x * d.x + d.y * d.y); return c }; C.yZa = function(c, d, f) { C.wfa(m, f); C.xfa(m, c); return c }; C.Ia = function() { this.c = new Float32Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]) }; C.HZa = function(c, d) { c.c[0] = c.c[1] = c.c[2] = c.c[3] = c.c[4] = c.c[5] = c.c[6] = c.c[7] = c.c[8] = c.c[9] = c.c[10] = c.c[11] = c.c[12] = c.c[13] = c.c[14] = c.c[15] = d }; C.Ox = function(c) { c.c[1] = c.c[2] = c.c[3] = c.c[4] = c.c[6] = c.c[7] = c.c[8] = c.c[9] = c.c[11] = c.c[12] = c.c[13] = c.c[14] = 0; c.c[0] = c.c[5] = c.c[10] = c.c[15] = 1 }; C.Ia.Uk = function(c, d, f) { return c.c[d + 4 * f] }; C.Ia.Ut = function(c, d, f, g) { c.c[d + 4 * f] = g }; C.Ia.cu = function(c, d, f, g, h) { var k = C.Ia.Uk(c, d, f); C.Ia.Ut(c, d, f, C.Ia.Uk(c, g, h)); C.Ia.Ut(c, g, h, k) }; C.Ia.csa = function(c, d) { var f, g = 0, h = 0, k, n, p, r = [0, 0, 0, 0], v = [0, 0, 0, 0], y = [0, 0, 0, 0]; for (f = 0; 4 > f; f++) { for (k = p = 0; 4 > k; k++) if (1 != y[k]) for (n = 0; 4 > n; n++) 0 == y[n] && Math.abs(C.Ia.Uk(c, k, n)) >= p && (p = Math.abs(C.Ia.Uk(c, k, n)), h = k, g = n); ++y[g]; if (h != g) { for (k = 0; 4 > k; k++) C.Ia.cu(c, h, k, g, k); for (k = 0; 4 > k; k++) C.Ia.cu(d, h, k, g, k) } v[f] = h; r[f] = g; if (0 == C.Ia.Uk(c, g, g)) return C.Wy; n = 1 / C.Ia.Uk(c, g, g); C.Ia.Ut(c, g, g, 1); for (k = 0; 4 > k; k++) C.Ia.Ut(c, g, k, C.Ia.Uk(c, g, k) * n); for (k = 0; 4 > k; k++) C.Ia.Ut(d, g, k, C.Ia.Uk(d, g, k) * n); for (n = 0; 4 > n; n++) if (n != g) { p = C.Ia.Uk(c, n, g); C.Ia.Ut(c, n, g, 0); for (k = 0; 4 > k; k++) C.Ia.Ut(c, n, k, C.Ia.Uk(c, n, k) - C.Ia.Uk(c, g, k) * p); for (k = 0; 4 > k; k++) C.Ia.Ut(d, n, k, C.Ia.Uk(c, n, k) - C.Ia.Uk(d, g, k) * p) } } for (k = 3; 0 <= k; k--) if (v[k] != r[k]) for (n = 0; 4 > n; n++) C.Ia.cu(c, n, v[k], n, r[k]); return C.Xy }; C.Ia.YW = new Float32Array([1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]); C.SDa = function(c, d) { var f = new C.Ia, g = new C.Ia; C.Pp(f, d); C.Ox(g); C.Ia.csa(f, g) != C.Wy && C.Pp(c, f) }; C.LZa = function(c) { for (var d = 0; 16 > d; d++) if (C.Ia.YW[d] != c.c[d]) return t; return q }; C.TZa = function(c, d) { var f, g, h = c.c, k = d.c; for (g = 0; 4 > g; ++g) for (f = 0; 4 > f; ++f) h[4 * g + f] = k[4 * f + g]; return c }; C.Qp = function(c, d, f) { c = c.c; var g = d.c[0], h = d.c[1], k = d.c[2], n = d.c[3], p = d.c[4], r = d.c[5], v = d.c[6], y = d.c[7], z = d.c[8], D = d.c[9], E = d.c[10], F = d.c[11], G = d.c[12], K = d.c[13], O = d.c[14]; d = d.c[15]; var U = f.c[0], X = f.c[1], N = f.c[2], Q = f.c[3], S = f.c[4], M = f.c[5], R = f.c[6], $ = f.c[7], sa = f.c[8], aa = f.c[9], ta = f.c[10], ma = f.c[11], ba = f.c[12], xa = f.c[13], ca = f.c[14]; f = f.c[15]; c[0] = U * g + X * p + N * z + Q * G; c[1] = U * h + X * r + N * D + Q * K; c[2] = U * k + X * v + N * E + Q * O; c[3] = U * n + X * y + N * F + Q * d; c[4] = S * g + M * p + R * z + $ * G; c[5] = S * h + M * r + R * D + $ * K; c[6] = S * k + M * v + R * E + $ * O; c[7] = S * n + M * y + R * F + $ * d; c[8] = sa * g + aa * p + ta * z + ma * G; c[9] = sa * h + aa * r + ta * D + ma * K; c[10] = sa * k + aa * v + ta * E + ma * O; c[11] = sa * n + aa * y + ta * F + ma * d; c[12] = ba * g + xa * p + ca * z + f * G; c[13] = ba * h + xa * r + ca * D + f * K; c[14] = ba * k + xa * v + ca * E + f * O; c[15] = ba * n + xa * y + ca * F + f * d }; C.aBa = function() { var c = C.Iu.top.c, d = C.cs.top.c, f = new Float32Array(16); f[0] = c[0] * d[0] + c[4] * d[1] + c[8] * d[2] + c[12] * d[3]; f[1] = c[1] * d[0] + c[5] * d[1] + c[9] * d[2] + c[13] * d[3]; f[2] = c[2] * d[0] + c[6] * d[1] + c[10] * d[2] + c[14] * d[3]; f[3] = c[3] * d[0] + c[7] * d[1] + c[11] * d[2] + c[15] * d[3]; f[4] = c[0] * d[4] + c[4] * d[5] + c[8] * d[6] + c[12] * d[7]; f[5] = c[1] * d[4] + c[5] * d[5] + c[9] * d[6] + c[13] * d[7]; f[6] = c[2] * d[4] + c[6] * d[5] + c[10] * d[6] + c[14] * d[7]; f[7] = c[3] * d[4] + c[7] * d[5] + c[11] * d[6] + c[15] * d[7]; f[8] = c[0] * d[8] + c[4] * d[9] + c[8] * d[10] + c[12] * d[11]; f[9] = c[1] * d[8] + c[5] * d[9] + c[9] * d[10] + c[13] * d[11]; f[10] = c[2] * d[8] + c[6] * d[9] + c[10] * d[10] + c[14] * d[11]; f[11] = c[3] * d[8] + c[7] * d[9] + c[11] * d[10] + c[15] * d[11]; f[12] = c[0] * d[12] + c[4] * d[13] + c[8] * d[14] + c[12] * d[15]; f[13] = c[1] * d[12] + c[5] * d[13] + c[9] * d[14] + c[13] * d[15]; f[14] = c[2] * d[12] + c[6] * d[13] + c[10] * d[14] + c[14] * d[15]; f[15] = c[3] * d[12] + c[7] * d[13] + c[11] * d[14] + c[15] * d[15]; return f }; C.nVa = function(c, d, f) { c = c.c; d = d.c; var g = f.c; g[0] = c[0] * d[0] + c[4] * d[1] + c[8] * d[2] + c[12] * d[3]; g[1] = c[1] * d[0] + c[5] * d[1] + c[9] * d[2] + c[13] * d[3]; g[2] = c[2] * d[0] + c[6] * d[1] + c[10] * d[2] + c[14] * d[3]; g[3] = c[3] * d[0] + c[7] * d[1] + c[11] * d[2] + c[15] * d[3]; g[4] = c[0] * d[4] + c[4] * d[5] + c[8] * d[6] + c[12] * d[7]; g[5] = c[1] * d[4] + c[5] * d[5] + c[9] * d[6] + c[13] * d[7]; g[6] = c[2] * d[4] + c[6] * d[5] + c[10] * d[6] + c[14] * d[7]; g[7] = c[3] * d[4] + c[7] * d[5] + c[11] * d[6] + c[15] * d[7]; g[8] = c[0] * d[8] + c[4] * d[9] + c[8] * d[10] + c[12] * d[11]; g[9] = c[1] * d[8] + c[5] * d[9] + c[9] * d[10] + c[13] * d[11]; g[10] = c[2] * d[8] + c[6] * d[9] + c[10] * d[10] + c[14] * d[11]; g[11] = c[3] * d[8] + c[7] * d[9] + c[11] * d[10] + c[15] * d[11]; g[12] = c[0] * d[12] + c[4] * d[13] + c[8] * d[14] + c[12] * d[15]; g[13] = c[1] * d[12] + c[5] * d[13] + c[9] * d[14] + c[13] * d[15]; g[14] = c[2] * d[12] + c[6] * d[13] + c[10] * d[14] + c[14] * d[15]; g[15] = c[3] * d[12] + c[7] * d[13] + c[11] * d[14] + c[15] * d[15]; return f.c }; C.Pp = function(c, d) { if (c == d) C.log("cc.kmMat4Assign(): pOut equals pIn"); else { var f = c.c, g = d.c; f[0] = g[0]; f[1] = g[1]; f[2] = g[2]; f[3] = g[3]; f[4] = g[4]; f[5] = g[5]; f[6] = g[6]; f[7] = g[7]; f[8] = g[8]; f[9] = g[9]; f[10] = g[10]; f[11] = g[11]; f[12] = g[12]; f[13] = g[13]; f[14] = g[14]; f[15] = g[15] } }; C.FZa = function(c, d) { if (c == d) return C.log("cc.kmMat4AreEqual(): pMat1 and pMat2 are same object."), q; for (var f = 0; 16 > f; f++) if (! (c.c[f] + C.xb > d.c[f] && c.c[f] - C.xb < d.c[f])) return t; return q }; C.QZa = function(c, d) { c.c[0] = 1; c.c[1] = 0; c.c[2] = 0; c.c[3] = 0; c.c[4] = 0; c.c[5] = Math.cos(d); c.c[6] = Math.sin(d); c.c[7] = 0; c.c[8] = 0; c.c[9] = -Math.sin(d); c.c[10] = Math.cos(d); c.c[11] = 0; c.c[12] = 0; c.c[13] = 0; c.c[14] = 0; c.c[15] = 1; return c }; C.RZa = function(c, d) { c.c[0] = Math.cos(d); c.c[1] = 0; c.c[2] = -Math.sin(d); c.c[3] = 0; c.c[4] = 0; c.c[5] = 1; c.c[6] = 0; c.c[7] = 0; c.c[8] = Math.sin(d); c.c[9] = 0; c.c[10] = Math.cos(d); c.c[11] = 0; c.c[12] = 0; c.c[13] = 0; c.c[14] = 0; c.c[15] = 1; return c }; C.SZa = function(c, d) { c.c[0] = Math.cos(d); c.c[1] = Math.sin(d); c.c[2] = 0; c.c[3] = 0; c.c[4] = -Math.sin(d); c.c[5] = Math.cos(d); c.c[6] = 0; c.c[7] = 0; c.c[8] = 0; c.c[9] = 0; c.c[10] = 1; c.c[11] = 0; c.c[12] = 0; c.c[13] = 0; c.c[14] = 0; c.c[15] = 1; return c }; C.MZa = function(c, d, f, g) { var h = Math.cos(d); d = Math.sin(d); var k = Math.cos(f); f = Math.sin(f); var n = Math.cos(g); g = Math.sin(g); var p = d * f, r = h * f; c.c[0] = k * n; c.c[4] = k * g; c.c[8] = -f; c.c[1] = p * n - h * g; c.c[5] = p * g + h * n; c.c[9] = d * k; c.c[2] = r * n + d * g; c.c[6] = r * g - d * n; c.c[10] = h * k; c.c[3] = c.c[7] = c.c[11] = 0; c.c[15] = 1; return c }; C.NZa = function(c, d) { c.c[0] = 1 - 2 * (d.y * d.y + d.f * d.f); c.c[1] = 2 * (d.x * d.y + d.f * d.ba); c.c[2] = 2 * (d.x * d.f - d.y * d.ba); c.c[3] = 0; c.c[4] = 2 * (d.x * d.y - d.f * d.ba); c.c[5] = 1 - 2 * (d.x * d.x + d.f * d.f); c.c[6] = 2 * (d.f * d.y + d.x * d.ba); c.c[7] = 0; c.c[8] = 2 * (d.x * d.f + d.y * d.ba); c.c[9] = 2 * (d.y * d.f - d.x * d.ba); c.c[10] = 1 - 2 * (d.x * d.x + d.y * d.y); c.c[11] = 0; c.c[12] = 0; c.c[13] = 0; c.c[14] = 0; c.c[15] = 1; return c }; C.PZa = function(c, d, f) { c.c[0] = d.c[0]; c.c[1] = d.c[1]; c.c[2] = d.c[2]; c.c[3] = 0; c.c[4] = d.c[3]; c.c[5] = d.c[4]; c.c[6] = d.c[5]; c.c[7] = 0; c.c[8] = d.c[6]; c.c[9] = d.c[7]; c.c[10] = d.c[8]; c.c[11] = 0; c.c[12] = f.x; c.c[13] = f.y; c.c[14] = f.f; c.c[15] = 1; return c }; C.VDa = function(c, d, f, g) { c.c[0] = d; c.c[5] = f; c.c[10] = g; c.c[15] = 1; c.c[1] = c.c[2] = c.c[3] = c.c[4] = c.c[6] = c.c[7] = c.c[8] = c.c[9] = c.c[11] = c.c[12] = c.c[13] = c.c[14] = 0 }; C.sfa = function(c, d, f, g) { c.c[0] = c.c[5] = c.c[10] = c.c[15] = 1; c.c[1] = c.c[2] = c.c[3] = c.c[4] = c.c[6] = c.c[7] = c.c[8] = c.c[9] = c.c[11] = 0; c.c[12] = d; c.c[13] = f; c.c[14] = g }; C.KZa = function(c, d) { c.x = d.c[4]; c.y = d.c[5]; c.f = d.c[6]; C.jk(c, c); return c }; C.JZa = function(c, d) { c.x = d.c[0]; c.y = d.c[1]; c.f = d.c[2]; C.jk(c, c); return c }; C.IZa = function(c, d) { c.x = d.c[8]; c.y = d.c[9]; c.f = d.c[10]; C.jk(c, c); return c }; C.TDa = function(c, d, f) { var g = C.tI(30), h = f - 0.1, k = Math.sin(g); 0 == h || (0 == k || 0 == d) || (g = Math.cos(g) / k, C.Ox(c), c.c[0] = g / d, c.c[5] = g, c.c[10] = -(f + 0.1) / h, c.c[11] = -1, c.c[14] = -0.2 * f / h, c.c[15] = 0) }; C.q1 = function(c, d, f, g, h, k, n) { C.Ox(c); c.c[0] = 2 / (f - d); c.c[5] = 2 / (h - g); c.c[10] = -2 / (n - k); c.c[12] = -((f + d) / (f - d)); c.c[13] = -((h + g) / (h - g)); c.c[14] = -((n + k) / (n - k)) }; C.rfa = function(c, d, f, g) { var h = new C.Zc, k = new C.Zc, n = new C.Zc, p = new C.Zc, r = new C.Ia; C.v1(h, f, d); C.jk(h, h); C.uI(k, g); C.jk(k, k); C.Du(n, h, k); C.jk(n, n); C.Du(p, n, h); C.jk(n, n); C.Ox(c); c.c[0] = n.x; c.c[4] = n.y; c.c[8] = n.f; c.c[1] = p.x; c.c[5] = p.y; c.c[9] = p.f; c.c[2] = -h.x; c.c[6] = -h.y; c.c[10] = -h.f; C.sfa(r, -d.x, -d.y, -d.f); C.Qp(c, c, r) }; C.UDa = function(c, d, f) { var g = Math.cos(f); f = Math.sin(f); var h = new C.Zc; C.jk(h, d); c.c[0] = g + h.x * h.x * (1 - g); c.c[1] = h.f * f + h.y * h.x * (1 - g); c.c[2] = -h.y * f + h.f * h.x * (1 - g); c.c[3] = 0; c.c[4] = -h.f * f + h.x * h.y * (1 - g); c.c[5] = g + h.y * h.y * (1 - g); c.c[6] = h.x * f + h.f * h.y * (1 - g); c.c[7] = 0; c.c[8] = h.y * f + h.x * h.f * (1 - g); c.c[9] = -h.x * f + h.y * h.f * (1 - g); c.c[10] = g + h.f * h.f * (1 - g); c.c[11] = 0; c.c[12] = 0; c.c[13] = 0; c.c[14] = 0; c.c[15] = 1 }; C.RDa = function(c, d) { c.c[0] = d.c[0]; c.c[1] = d.c[1]; c.c[2] = d.c[2]; c.c[3] = d.c[4]; c.c[4] = d.c[5]; c.c[5] = d.c[6]; c.c[6] = d.c[8]; c.c[7] = d.c[9]; c.c[8] = d.c[10] }; C.GZa = function(c, d, f) { switch (f) { case C.Nma: c.a = d.c[3] - d.c[0]; c.b = d.c[7] - d.c[4]; c.H = d.c[11] - d.c[8]; c.P = d.c[15] - d.c[12]; break; case C.Lma: c.a = d.c[3] + d.c[0]; c.b = d.c[7] + d.c[4]; c.H = d.c[11] + d.c[8]; c.P = d.c[15] + d.c[12]; break; case C.Jma: c.a = d.c[3] + d.c[1]; c.b = d.c[7] + d.c[5]; c.H = d.c[11] + d.c[9]; c.P = d.c[15] + d.c[13]; break; case C.Oma: c.a = d.c[3] - d.c[1]; c.b = d.c[7] - d.c[5]; c.H = d.c[11] - d.c[9]; c.P = d.c[15] - d.c[13]; break; case C.Kma: c.a = d.c[3] - d.c[2]; c.b = d.c[7] - d.c[6]; c.H = d.c[11] - d.c[10]; c.P = d.c[15] - d.c[14]; break; case C.Mma: c.a = d.c[3] + d.c[2]; c.b = d.c[7] + d.c[6]; c.H = d.c[11] + d.c[10]; c.P = d.c[15] + d.c[14]; break; default: C.log("cc.kmMat4ExtractPlane(): Invalid plane index") } d = Math.sqrt(c.a * c.a + c.b * c.b + c.H * c.H); c.a /= d; c.b /= d; c.H /= d; c.P /= d; return c }; C.OZa = function(c, d, f) { d = new la; var g = new C.sQ; C.RDa(g, f); C.wfa(d, g); C.xfa(d, c); return c }; C.Lma = 0; C.Nma = 1; C.Jma = 2; C.Oma = 3; C.Mma = 4; C.Kma = 5; C.UZa = function(c, d, f, g) { this.a = c || 0; this.b = d || 0; this.H = f || 0; this.P = g || 0 }; C.Ina = 0; C.Hna = 1; C.Jna = 2; C.WZa = function(c, d) { return c.a * d.x + c.b * d.y + c.H * d.f + c.P * d.ba }; C.XZa = function(c, d) { return c.a * d.x + c.b * d.y + c.H * d.f + c.P }; C.YZa = function(c, d) { return c.a * d.x + c.b * d.y + c.H * d.f }; C.ZZa = function(c, d, f) { c.a = f.x; c.b = f.y; c.H = f.f; c.P = -C.t1(f, d); return c }; C.$Za = function(c, d, f, g) { var h = new C.Zc, k = new C.Zc, n = new C.Zc; C.v1(k, f, d); C.v1(n, g, d); C.Du(h, k, n); C.jk(h, h); c.a = h.x; c.b = h.y; c.H = h.f; c.P = C.t1(C.u1(h, h, -1), d); return c }; C.a_a = function() { e("cc.kmPlaneIntersectLine() hasn't been implemented.") }; C.b_a = function(c, d) { var f = new C.Zc; f.x = d.a; f.y = d.b; f.f = d.H; var g = 1 / C.zfa(f); C.jk(f, f); c.a = f.x; c.b = f.y; c.H = f.f; c.P = d.P * g; return c }; C.c_a = function() { C.log("cc.kmPlaneScale() has not been implemented.") }; C.VZa = function(c, d) { var f = c.a * d.x + c.b * d.y + c.H * d.f + c.P; return 0.0010 < f ? C.Ina: -0.0010 > f ? C.Hna: C.Jna }; function la() { this.ba = this.f = this.y = this.x = 0 } C.ZDa = function(c, d) { c.x = -d.x; c.y = -d.y; c.f = -d.f; c.ba = d.ba; return c }; C.$Da = function(c, d) { return c.ba * d.ba + c.x * d.x + c.y * d.y + c.f * d.f }; C.e_a = da(); C.aEa = function(c) { c.x = 0; c.y = 0; c.f = 0; c.ba = 1 }; C.f_a = function(c, d) { var f = C.tfa(d), g = new la; if (Math.abs(f) > C.xb) return c.x = 0, c.y = 0, c.f = 0, c.ba = 0, c; C.vQ(c, C.ZDa(g, d), 1 / f); return c }; C.g_a = function(c) { return 0 == c.x && 0 == c.y && 0 == c.f && 1 == c.ba }; C.tfa = function(c) { return Math.sqrt(C.bEa(c)) }; C.bEa = function(c) { return c.x * c.x + c.y * c.y + c.f * c.f + c.ba * c.ba }; C.h_a = da(); C.i_a = function(c, d, f) { c.ba = d.ba * f.ba - d.x * f.x - d.y * f.y - d.f * f.f; c.x = d.ba * f.x + d.x * f.ba + d.y * f.f - d.f * f.y; c.y = d.ba * f.y + d.y * f.ba + d.f * f.x - d.x * f.f; c.f = d.ba * f.f + d.f * f.ba + d.x * f.y - d.y * f.x; return c }; C.ufa = function(c, d) { var f = C.tfa(d); Math.abs(f) <= C.xb && e("cc.kmQuaternionNormalize(): pIn is an invalid value"); C.vQ(c, d, 1 / f) }; C.vfa = function(c, d) { var f = 0.5 * C.r1, g = Math.sin(f); c.ba = Math.cos(f); c.x = d.x * g; c.y = d.y * g; c.f = d.f * g }; C.wfa = function(c, d) { var f, g, h, k; f = []; g = k = 0; if (d) { f[0] = d.c[0]; f[1] = d.c[3]; f[2] = d.c[6]; f[4] = d.c[1]; f[5] = d.c[4]; f[6] = d.c[7]; f[8] = d.c[2]; f[9] = d.c[5]; f[10] = d.c[8]; f[15] = 1; var n = f[0]; g = n[0] + n[5] + n[10] + 1; g > C.xb ? (k = 2 * Math.sqrt(g), f = (n[9] - n[6]) / k, g = (n[2] - n[8]) / k, h = (n[4] - n[1]) / k, k *= 0.25) : n[0] > n[5] && n[0] > n[10] ? (k = 2 * Math.sqrt(1 + n[0] - n[5] - n[10]), f = 0.25 * k, g = (n[4] + n[1]) / k, h = (n[2] + n[8]) / k, k = (n[9] - n[6]) / k) : n[5] > n[10] ? (k = 2 * Math.sqrt(1 + n[5] - n[0] - n[10]), f = (n[4] + n[1]) / k, g = 0.25 * k, h = (n[9] + n[6]) / k, k = (n[2] - n[8]) / k) : (k = 2 * Math.sqrt(1 + n[10] - n[0] - n[5]), f = (n[2] + n[8]) / k, g = (n[9] + n[6]) / k, h = 0.25 * k, k = (n[4] - n[1]) / k); c.x = f; c.y = g; c.f = h; c.ba = k } }; C.l_a = function(c, d, f, g) { var h, k, n, p, r; h = C.tI(f) / 2; k = C.tI(d) / 2; n = C.tI(g) / 2; g = Math.cos(h); d = Math.cos(k); f = Math.cos(n); h = Math.sin(h); k = Math.sin(k); n = Math.sin(n); p = d * f; r = k * n; c.ba = g * p + h * r; c.x = h * p - g * r; c.y = g * k * f + h * d * n; c.f = g * d * n - h * k * f; C.ufa(c, c); return c }; C.m_a = function(c, d, f, g) { if (d.x == f.x && d.y == f.y && d.f == f.f && d.ba == f.ba) return c.x = d.x, c.y = d.y, c.f = d.f, c.ba = d.ba, c; var h = C.$Da(d, f), k = Math.acos(h), h = Math.sqrt(1 - C.tf(h)), n = Math.sin(g * k) / h, p = new la, r = new la; C.vQ(p, d, Math.sin((1 - g) * k) / h); C.vQ(r, f, n); C.YDa(c, p, r); return c }; C.xfa = function(c, d) { var f; f = Math.sqrt(C.tf(c.x) + C.tf(c.y) + C.tf(c.f)); f > -C.xb && f < C.xb || f < 2 * C.r1 + C.xb && f > 2 * C.r1 - C.xb ? (d.x = 0, d.y = 0, d.f = 1) : (d.x = c.x / f, d.y = c.y / f, d.f = c.f / f, C.jk(d, d)) }; C.vQ = function(c, d, f) { c.x = d.x * f; c.y = d.y * f; c.f = d.f * f; c.ba = d.ba * f }; C.d_a = function(c, d) { c.x = d.x; c.y = d.y; c.f = d.f; c.ba = d.ba; return c }; C.YDa = function(c, d, f) { c.x = d.x + f.x; c.y = d.y + f.y; c.f = d.f + f.f; c.ba = d.ba + f.ba }; C.k_a = function(c, d, f, g) { var h = new C.Zc, k = new C.Zc; C.uI(h, d); C.uI(k, f); C.jk(h, h); C.jk(k, k); f = C.t1(h, k); if (1 <= f) return C.aEa(c), c; - 0.999999 > f ? Math.abs(C.Afa(g)) < C.xb ? C.vfa(c, g) : (h = new C.Zc, k = new C.Zc, k.x = 1, k.y = 0, k.f = 0, C.Du(h, k, d), Math.abs(C.Afa(h)) < C.xb && (k = new C.Zc, k.x = 0, k.y = 1, k.f = 0, C.Du(h, k, d)), C.jk(h, h), C.vfa(c, h)) : (d = Math.sqrt(2 * (1 + f)), g = 1 / d, f = new C.Zc, C.Du(f, h, k), c.x = f.x * g, c.y = f.y * g, c.f = f.f * g, c.ba = 0.5 * d, C.ufa(c, c)); return c }; C.j_a = function(c, d, f) { var g = new C.Zc, h = new C.Zc, k = new C.Zc; k.x = d.x; k.y = d.y; k.f = d.f; C.Du(g, k, f); C.Du(h, k, g); C.u1(g, g, 2 * d.ba); C.u1(h, h, 2); C.yfa(c, f, g); C.yfa(c, c, h); return c }; C.dZa = function(c, d) { this.min = c || new C.Zc; this.max = d || new C.Zc }; C.fZa = function(c, d) { return c.x >= d.min.x && c.x <= d.max.x && c.y >= d.min.y && c.y <= d.max.y && c.f >= d.min.f && c.f <= d.max.f ? C.Xy: C.Wy }; C.eZa = function(c, d) { C.uI(c.min, d.min); C.uI(c.max, d.max); return c }; C.gZa = function() { C.log("cc.kmAABBScale hasn't been supported.") }; C.yQ = function(c, d, f, g) { this.top = f; this.stack = g }; C.yQ.YLa = 30; C.w1 = function(c) { c.stack = []; c.top = s }; C.zQ = function(c, d) { c.stack.push(c.top); c.top = new C.Ia; C.Pp(c.top, d) }; C.S_a = function(c) { c.top = c.stack.pop() }; C.x1 = function(c) { c.stack = s; c.top = s }; C.lq = 5888; C.mq = 5889; C.g6 = 5890; C.cs = new C.yQ; C.Iu = new C.yQ; C.zJ = new C.yQ; C.Jd = s; C.c1 = t; C.iEa = function() { if (!C.c1) { var c = new C.Ia; C.w1(C.cs); C.w1(C.Iu); C.w1(C.zJ); C.Jd = C.cs; C.c1 = q; C.Ox(c); C.zQ(C.cs, c); C.zQ(C.Iu, c); C.zQ(C.zJ, c) } }; C.iEa(); C.ODa = function() { C.x1(C.cs); C.x1(C.Iu); C.x1(C.zJ); C.c1 = t; C.Jd = s }; C.Zr = function() { C.zQ(C.Jd, C.Jd.top) }; C.lZa = function(c) { C.Jd.stack.push(C.Jd.top); C.Pp(c, C.Jd.top); C.Jd.top = c }; C.Yr = function() { C.Jd.top = C.Jd.stack.pop() }; C.Op = function(c) { switch (c) { case C.lq: C.Jd = C.cs; break; case C.mq: C.Jd = C.Iu; break; case C.g6: C.Jd = C.zJ; break; default: e("Invalid matrix mode specified") } }; C.kC = function() { C.Ox(C.Jd.top) }; C.kZa = function(c) { C.Pp(C.Jd.top, c) }; C.lC = function(c) { C.Qp(C.Jd.top, C.Jd.top, c) }; C.mC = function(c, d) { var f = new C.Ia; C.sfa(f, c, d, 0); C.Qp(C.Jd.top, C.Jd.top, f) }; C.mZa = function(c, d, f, g) { d = new C.Zc(d, f, g); f = new C.Ia; C.UDa(f, d, C.tI(c)); C.Qp(C.Jd.top, C.Jd.top, f) }; C.nZa = function(c, d, f) { var g = new C.Ia; C.VDa(g, c, d, f); C.Qp(C.Jd.top, C.Jd.top, g) }; C.rQ = function(c, d) { switch (c) { case C.lq: C.Pp(d, C.cs.top); break; case C.mq: C.Pp(d, C.Iu.top); break; case C.g6: C.Pp(d, C.zJ.top); break; default: e("Invalid matrix mode specified") } }; C.soa = "precision lowp float;\nvarying vec4 v_fragmentColor;\nvoid main() \n{ \n gl_FragColor \x3d v_fragmentColor; \n}\n"; C.toa = "attribute vec4 a_position;\nuniform vec4 u_color;\nuniform float u_pointSize;\nvarying lowp vec4 v_fragmentColor; \nvoid main(void) \n{\n gl_Position \x3d (CC_PMatrix * CC_MVMatrix) * a_position; \n gl_PointSize \x3d u_pointSize; \n v_fragmentColor \x3d u_color; \n}"; C.goa = "precision lowp float; \nvarying vec4 v_fragmentColor; \nvoid main() \n{ \n gl_FragColor \x3d v_fragmentColor; \n} "; C.joa = "attribute vec4 a_position;\nattribute vec4 a_color;\nvarying lowp vec4 v_fragmentColor;\nvoid main()\n{\n gl_Position \x3d (CC_PMatrix * CC_MVMatrix) * a_position; \n v_fragmentColor \x3d a_color; \n}"; C.hoa = "// #extension GL_OES_standard_derivatives : enable\nvarying mediump vec4 v_color;\nvarying mediump vec2 v_texcoord;\nvoid main()\t\n{ \n// #if defined GL_OES_standard_derivatives\t\n// gl_FragColor \x3d v_color*smoothstep(0.0, length(fwidth(v_texcoord)), 1.0 - length(v_texcoord)); \n// #else\t\ngl_FragColor \x3d v_color * step(0.0, 1.0 - length(v_texcoord)); \n// #endif \n}"; C.ioa = "attribute mediump vec4 a_position; \nattribute mediump vec2 a_texcoord; \nattribute mediump vec4 a_color;\t\nvarying mediump vec4 v_color; \nvarying mediump vec2 v_texcoord;\t\nvoid main() \n{ \n v_color \x3d a_color;//vec4(a_color.rgb * a_color.a, a_color.a); \n v_texcoord \x3d a_texcoord; \n gl_Position \x3d (CC_PMatrix * CC_MVMatrix) * a_position; \n}"; C.ooa = "precision lowp float; \nvarying vec2 v_texCoord; \nuniform sampler2D CC_Texture0; \nvoid main() \n{ \n gl_FragColor \x3d texture2D(CC_Texture0, v_texCoord); \n}"; C.roa = "attribute vec4 a_position; \nattribute vec2 a_texCoord; \nvarying mediump vec2 v_texCoord; \nvoid main() \n{ \n gl_Position \x3d (CC_PMatrix * CC_MVMatrix) * a_position; \n v_texCoord \x3d a_texCoord; \n}"; C.poa = "precision lowp float; \nuniform vec4 u_color; \nvarying vec2 v_texCoord; \nuniform sampler2D CC_Texture0; \nvoid main() \n{ \n gl_FragColor \x3d texture2D(CC_Texture0, v_texCoord) * u_color; \n}"; C.qoa = "attribute vec4 a_position;\nattribute vec2 a_texCoord; \nvarying mediump vec2 v_texCoord; \nvoid main() \n{ \n gl_Position \x3d (CC_PMatrix * CC_MVMatrix) * a_position; \n v_texCoord \x3d a_texCoord; \n}"; C.koa = "precision lowp float; \nvarying vec4 v_fragmentColor; \nvarying vec2 v_texCoord; \nuniform sampler2D CC_Texture0; \nvoid main() \n{ \n gl_FragColor \x3d vec4( v_fragmentColor.rgb, \n v_fragmentColor.a * texture2D(CC_Texture0, v_texCoord).a \n ); \n}"; C.loa = "attribute vec4 a_position; \nattribute vec2 a_texCoord; \nattribute vec4 a_color; \nvarying lowp vec4 v_fragmentColor; \nvarying mediump vec2 v_texCoord; \nvoid main() \n{ \n gl_Position \x3d (CC_PMatrix * CC_MVMatrix) * a_position; \n v_fragmentColor \x3d a_color; \n v_texCoord \x3d a_texCoord; \n}"; C.noa = "precision lowp float;\nvarying vec4 v_fragmentColor; \nvarying vec2 v_texCoord; \nuniform sampler2D CC_Texture0; \nvoid main() \n{ \n gl_FragColor \x3d v_fragmentColor * texture2D(CC_Texture0, v_texCoord); \n}"; C.D7 = "attribute vec4 a_position; \nattribute vec2 a_texCoord; \nattribute vec4 a_color; \nvarying lowp vec4 v_fragmentColor; \nvarying mediump vec2 v_texCoord; \nvoid main() \n{ \n gl_Position \x3d (CC_PMatrix * CC_MVMatrix) * a_position; \n v_fragmentColor \x3d a_color; \n v_texCoord \x3d a_texCoord; \n}"; C.moa = "precision lowp float; \nvarying vec4 v_fragmentColor; \nvarying vec2 v_texCoord; \nuniform sampler2D CC_Texture0; \nuniform float CC_alpha_value; \nvoid main() \n{ \n vec4 texColor \x3d texture2D(CC_Texture0, v_texCoord); \n // mimic: glAlphaFunc(GL_GREATER) \n //pass if ( incoming_pixel \x3e\x3d CC_alpha_value ) \x3d\x3e fail if incoming_pixel \x3c CC_alpha_value \n if ( texColor.a \x3c\x3d CC_alpha_value ) \n discard; \n gl_FragColor \x3d texColor * v_fragmentColor; \n}"; C.$Ma = "precision lowp float; \nvarying vec4 v_fragmentColor; \nvarying vec2 v_texCoord; \nuniform sampler2D u_texture; \nuniform sampler2D u_mask; \nvoid main() \n{ \n vec4 texColor \x3d texture2D(u_texture, v_texCoord); \n vec4 maskColor \x3d texture2D(u_mask, v_texCoord); \n vec4 finalColor \x3d vec4(texColor.r, texColor.g, texColor.b, maskColor.a * texColor.a); \n gl_FragColor \x3d v_fragmentColor * finalColor; \n}"; C.ug = { qU: 0, rU: 1, oU: 2, pU: 3, tU: 4, sU: 5, uU: 6, X7: 7, yNa: 8, Hg: {}, UF: function() { this.mEa(); return q }, Qi: function(c, d) { switch (d) { case this.qU: c.Np(C.D7, C.noa); c.Mg(C.ev, C.Lc); c.Mg(C.tD, C.Hi); c.Mg(C.Hy, C.Vg); break; case this.rU: c.Np(C.D7, C.moa); c.Mg(C.ev, C.Lc); c.Mg(C.tD, C.Hi); c.Mg(C.Hy, C.Vg); break; case this.oU: c.Np(C.joa, C.goa); c.Mg(C.ev, C.Lc); c.Mg(C.tD, C.Hi); break; case this.pU: c.Np(C.roa, C.ooa); c.Mg(C.ev, C.Lc); c.Mg(C.Hy, C.Vg); break; case this.tU: c.Np(C.qoa, C.poa); c.Mg(C.ev, C.Lc); c.Mg(C.Hy, C.Vg); break; case this.sU: c.Np(C.loa, C.koa); c.Mg(C.ev, C.Lc); c.Mg(C.tD, C.Hi); c.Mg(C.Hy, C.Vg); break; case this.uU: c.Np(C.toa, C.soa); c.Mg("aVertex", C.Lc); break; case this.X7: c.Np(C.ioa, C.hoa); c.Mg(C.ev, C.Lc); c.Mg(C.Hy, C.Vg); c.Mg(C.tD, C.Hi); break; default: C.log("cocos2d: cc.shaderCache._loadDefaultShader, error shader type"); return } c.link(); c.MJa() }, mEa: function() { var c = new C.yo; this.Qi(c, this.qU); this.Hg[C.Co] = c; this.Hg.ShaderPositionTextureColor = c; c = new C.yo; this.Qi(c, this.rU); this.Hg[C.KK] = c; this.Hg.ShaderPositionTextureColorAlphaTest = c; c = new C.yo; this.Qi(c, this.oU); this.Hg[C.JK] = c; this.Hg.ShaderPositionColor = c; c = new C.yo; this.Qi(c, this.pU); this.Hg[C.yE] = c; this.Hg.ShaderPositionTexture = c; c = new C.yo; this.Qi(c, this.tU); this.Hg[C.LK] = c; this.Hg.ShaderPositionTextureUColor = c; c = new C.yo; this.Qi(c, this.sU); this.Hg[C.$T] = c; this.Hg.ShaderPositionTextureA8Color = c; c = new C.yo; this.Qi(c, this.uU); this.Hg[C.aU] = c; this.Hg.ShaderPositionUColor = c; c = new C.yo; this.Qi(c, this.X7); this.Hg[C.C7] = c; this.Hg.ShaderPositionLengthTextureColor = c }, N1a: function() { var c = this.Xd(C.Co); c.reset(); this.Qi(c, this.qU); c = this.Xd(C.KK); c.reset(); this.Qi(c, this.rU); c = this.Xd(C.JK); c.reset(); this.Qi(c, this.oU); c = this.Xd(C.yE); c.reset(); this.Qi(c, this.pU); c = this.Xd(C.LK); c.reset(); this.Qi(c, this.tU); c = this.Xd(C.$T); c.reset(); this.Qi(c, this.sU); c = this.Xd(C.aU); c.reset(); this.Qi(c, this.uU) }, Xd: function(c) { return this.Hg[c] }, Lx: function(c) { return this.Hg[c] }, fQa: function(c, d) { this.Hg[d] = c } }; C.xma = function() { this.location = this.value = m; this.WP = {} }; C.yo = C.O.extend({ Qa: s, nd: s, Zj: s, Xl: s, ad: s, ln: s, hca: t, bj: function(c, d) { if (c == s) return t; for (var f = q, g = s, h = 0; h < this.ln.length; h++) this.ln[h].location == c && (g = this.ln[h]); g ? g.value == d ? f = t: g.value = d: (g = new C.xma, g.location = c, g.value = d, this.ln.push(g)); return f }, wOa: function() { return "\x3cCCGLProgram \x3d " + this.toString() + " | Program \x3d " + this.nd.toString() + ", VertexShader \x3d " + this.Zj.toString() + ", FragmentShader \x3d " + this.Xl.toString() + "\x3e" }, x9: function(c, d, f) { if (!f || !c) return t; this.Qa.shaderSource(c, "precision highp float; \nuniform mat4 CC_PMatrix; \nuniform mat4 CC_MVMatrix; \nuniform mat4 CC_MVPMatrix; \nuniform vec4 CC_Time; \nuniform vec4 CC_SinTime; \nuniform vec4 CC_CosTime; \nuniform vec4 CC_Random01; \n//CC INCLUDES END \n" + f); this.Qa.compileShader(c); f = this.Qa.getShaderParameter(c, this.Qa.COMPILE_STATUS); f || (C.log("cocos2d: ERROR: Failed to compile shader:\n" + this.Qa.getShaderSource(c)), d == this.Qa.VERTEX_SHADER ? C.log("cocos2d: \n" + this.RJa()) : C.log("cocos2d: \n" + this.Qza())); return 1 == f }, ctor: function(c, d, f) { this.ad = []; this.ln = []; this.Qa = f || C.t; c && d && this.j(c, d) }, xRa: function() { this.ln = this.ad = this.Xl = this.Zj = s; this.Qa.deleteProgram(this.nd) }, Np: function(c, d) { var f = this.Qa; this.nd = f.createProgram(); this.Xl = this.Zj = s; c && (this.Zj = f.createShader(f.VERTEX_SHADER), this.x9(this.Zj, f.VERTEX_SHADER, c) || C.log("cocos2d: ERROR: Failed to compile vertex shader")); d && (this.Xl = f.createShader(f.FRAGMENT_SHADER), this.x9(this.Xl, f.FRAGMENT_SHADER, d) || C.log("cocos2d: ERROR: Failed to compile fragment shader")); this.Zj && f.attachShader(this.nd, this.Zj); C.DB(); this.Xl && f.attachShader(this.nd, this.Xl); this.ln.length = 0; C.DB(); return q }, sf: function(c, d) { return this.Np(c, d) }, dDa: function(c, d) { var f = C.M.xd(c); f || e("Please load the resource firset : " + c); var g = C.M.xd(d); g || e("Please load the resource firset : " + d); return this.Np(f, g) }, j: function(c, d) { return this.dDa(c, d) }, Mg: function(c, d) { this.Qa.bindAttribLocation(this.nd, d, c) }, link: function() { if (!this.nd) return C.log("cc.GLProgram.link(): Cannot link invalid program"), t; this.Qa.linkProgram(this.nd); this.Zj && this.Qa.deleteShader(this.Zj); this.Xl && this.Qa.deleteShader(this.Xl); this.Xl = this.Zj = s; return C.qf.gj[C.qf.Wm.CH] && !this.Qa.getProgramParameter(this.nd, this.Qa.LINK_STATUS) ? (C.log("cocos2d: ERROR: Failed to link program: " + this.Qa.getProgramInfoLog(this.nd)), C.vCa(this.nd), this.nd = s, t) : q }, Af: function() { C.N0(this.nd) }, MJa: function() { this.ad[C.HU] = this.Qa.getUniformLocation(this.nd, C.hqa); this.ad[C.GU] = this.Qa.getUniformLocation(this.nd, C.fqa); this.ad[C.NE] = this.Qa.getUniformLocation(this.nd, C.gqa); this.ad[C.LU] = this.Qa.getUniformLocation(this.nd, C.lqa); this.ad[C.KU] = this.Qa.getUniformLocation(this.nd, C.kqa); this.ad[C.FU] = this.Qa.getUniformLocation(this.nd, C.eqa); this.hca = this.ad[C.LU] != s || this.ad[C.KU] != s || this.ad[C.FU] != s; this.ad[C.IU] = this.Qa.getUniformLocation(this.nd, C.iqa); this.ad[C.JU] = this.Qa.getUniformLocation(this.nd, C.jqa); this.Af(); this.zia(this.ad[C.JU], 0) }, mXa: function(c) { c || e("cc.GLProgram.getUniformLocationForName(): uniform name should be non-null"); this.nd || e("cc.GLProgram.getUniformLocationForName(): Invalid operation. Cannot get uniform location when program is not initialized"); return this.Qa.getUniformLocation(this.nd, c) }, nXa: function() { return this.ad[C.NE] }, oXa: function() { return this.ad[C.JU] }, zia: function(c, d) { this.bj(c, d) && this.Qa.uniform1i(c, d) }, B5a: function(c, d, f) { this.bj(c, [d, f]) && this.Qa.uniform2i(c, d, f) }, E5a: function(c, d, f, g) { this.bj(c, [d, f, g]) && this.Qa.uniform3i(c, d, f, g) }, H5a: function(c, d, f, g, h) { this.bj(c, [d, f, g, h]) && this.Qa.uniform4i(c, d, f, g, h) }, C5a: function(c, d) { this.bj(c, d) && this.Qa.uniform2iv(c, d) }, F5a: function(c, d) { this.bj(c, d) && this.Qa.uniform3iv(c, d) }, I5a: function(c, d) { this.bj(c, d) && this.Qa.uniform4iv(c, d) }, z5a: function(c, d) { this.zia(c, d) }, sJ: function(c, d) { this.bj(c, d) && this.Qa.uniform1f(c, d) }, uIa: function(c, d, f) { this.bj(c, [d, f]) && this.Qa.uniform2f(c, d, f) }, vIa: function(c, d, f, g) { this.bj(c, [d, f, g]) && this.Qa.uniform3f(c, d, f, g) }, tJ: function(c, d, f, g, h) { this.bj(c, [d, f, g, h]) && this.Qa.uniform4f(c, d, f, g, h) }, A5a: function(c, d) { this.bj(c, d) && this.Qa.uniform2fv(c, d) }, D5a: function(c, d) { this.bj(c, d) && this.Qa.uniform3fv(c, d) }, G5a: function(c, d) { this.bj(c, d) && this.Qa.uniform4fv(c, d) }, v3: function(c, d) { this.bj(c, d) && this.Qa.uniformMatrix4fv(c, t, d) }, y5a: function() { if (! (2 > arguments.length)) switch (arguments.length) { case 2: this.sJ(arguments[0], arguments[1]); break; case 3: this.uIa(arguments[0], arguments[1], arguments[2]); break; case 4: this.vIa(arguments[0], arguments[1], arguments[2], arguments[3]); break; case 5: this.tJ(arguments[0], arguments[1], arguments[2], arguments[3], arguments[4]) } }, uJ: function() { var c = new C.Ia, d = new C.Ia, f = new C.Ia; C.rQ(C.mq, c); C.rQ(C.lq, d); C.Qp(f, c, d); this.v3(this.ad[C.HU], c.c, 1); this.v3(this.ad[C.GU], d.c, 1); this.v3(this.ad[C.NE], f.c, 1); this.hca && (c = C.Q, c = c.tO * c.TE, this.tJ(this.ad[C.LU], c / 10, c, 2 * c, 4 * c), this.tJ(this.ad[C.KU], c / 8, c / 4, c / 2, Math.sin(c)), this.tJ(this.ad[C.FU], c / 8, c / 4, c / 2, Math.cos(c))); - 1 != this.ad[C.IU] && this.tJ(this.ad[C.IU], Math.random(), Math.random(), Math.random(), Math.random()) }, w5a: function() { this.Qa.uniformMatrix4fv(this.ad[C.NE], t, C.aBa()) }, x5a: function(c) { C.Qp(c, C.Iu.top, C.cs.top); this.Qa.uniformMatrix4fv(this.ad[C.NE], t, c.c) }, Bj: function() { this.Qa.uniformMatrix4fv(this.ad[C.GU], t, C.cs.top.c); this.Qa.uniformMatrix4fv(this.ad[C.HU], t, C.Iu.top.c) }, RJa: function() { return this.Qa.getShaderInfoLog(this.Zj) }, sXa: function() { return this.Qa.getShaderInfoLog(this.Zj) }, JUa: function() { return this.Qa.getShaderInfoLog(this.Zj) }, Qza: function() { return this.Qa.getShaderInfoLog(this.Xl) }, o1a: function() { return this.Qa.getProgramInfoLog(this.nd) }, fWa: function() { return this.Qa.getProgramInfoLog(this.nd) }, reset: function() { this.Xl = this.Zj = s; this.ad.length = 0; this.Qa.deleteProgram(this.nd); this.nd = s; for (var c = 0; c < this.ln.length; c++) this.ln[c].value = s, this.ln[c] = s; this.ln.length = 0 }, Lx: A("nd"), fR: u(), rh: u() }); C.yo.create = function(c, d) { return new C.yo(c, d) }; C.E9 = -1; C.yZ = t; C.xZ = t; C.zZ = t; C.an && (C.Zma = 16, C.sF = -1, C.rF = [ - 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], C.uz = -1, C.tz = -1, C.yqa = 0, C.jU && (C.Yba = 0)); C.DXa = function() { C.ODa(); C.E9 = -1; C.yZ = t; C.xZ = t; C.zZ = t; if (C.an) { C.sF = -1; for (var c = 0; c < C.Zma; c++) C.rF[c] = -1; C.uz = -1; C.tz = -1; C.yqa = 0 } }; C.N0 = function(c) { c !== C.sF && (C.sF = c, C.t.useProgram(c)) }; C.an || (C.N0 = function(c) { C.t.useProgram(c) }); C.vCa = function(c) { C.an && c === C.sF && (C.sF = -1); gl.deleteProgram(c) }; C.Gm = function(c, d) { if (c !== C.uz || d !== C.tz) C.uz = c, C.tz = d, C.tR(c, d) }; C.tR = function(c, d) { var f = C.t; c === f.ONE && d === f.ZERO ? f.disable(f.BLEND) : (f.enable(f.BLEND), C.t.blendFunc(c, d)) }; C.Gea = function(c, d) { if (c !== C.uz || d !== C.tz) { C.uz = c; C.tz = d; var f = C.t; c === f.ONE && d === f.ZERO ? f.disable(f.BLEND) : (f.enable(f.BLEND), f.blendFuncSeparate(f.SRC_ALPHA, d, c, d)) } }; C.an || (C.Gm = C.tR); C.AXa = function() { var c = C.t; c.blendEquation(c.FUNC_ADD); C.an ? C.tR(C.uz, C.tz) : C.tR(c.Ic, c.Hc) }; C.$ha = function() { C.E9 = -1 }; C.rf = function(c) { var d = C.t, f = c & C.Ch; f !== C.yZ && (f ? d.enableVertexAttribArray(C.Lc) : d.disableVertexAttribArray(C.Lc), C.yZ = f); f = c & C.ZK; f !== C.xZ && (f ? d.enableVertexAttribArray(C.Hi) : d.disableVertexAttribArray(C.Hi), C.xZ = f); c &= C.fz; c !== C.zZ && (c ? d.enableVertexAttribArray(C.Vg) : d.disableVertexAttribArray(C.Vg), C.zZ = c) }; C.yi = function(c) { C.M0(0, c) }; C.M0 = function(c, d) { if (C.rF[c] != d) { C.rF[c] = d; var f = C.t; f.activeTexture(f.TEXTURE0 + c); d ? f.bindTexture(f.TEXTURE_2D, d.Sh) : f.bindTexture(f.TEXTURE_2D, s) } }; C.an || (C.M0 = function(c, d) { var f = C.t; f.activeTexture(f.TEXTURE0 + c); d ? f.bindTexture(f.TEXTURE_2D, d.Sh) : f.bindTexture(f.TEXTURE_2D, s) }); C.BXa = function(c) { C.wCa(c) }; C.wCa = function(c) { C.an && c == C.rF[0] && (C.rF[0] = -1); C.t.deleteTexture(c) }; C.zXa = function(c) { C.jU && (C.an && C.Yba != c) && (C.Yba = c) }; C.CXa = u(); C.TLa = 0; C.ULa = 1; C.VLa = 2; C.Cs = function(c) { c -= 1; c |= c >> 1; c |= c >> 2; c |= c >> 4; c |= c >> 8; return (c | c >> 16) + 1 }; C.yv = C.A.extend({ sprite: s, eP: 0, w_: 0, qH: t, gi: s, Ki: s, sM: 0, uF: 0, hp: 0, da: s, VG: s, Xva: s, ip: C.Ma.qq, Jq: s, x_: 0, MV: s, qa: "RenderTexture", ctor: s, pF: function(c, d, f, g) { C.A.prototype.ctor.call(this); this.Jq = C.color(255, 255, 255, 255); this.MV = "rgba(255,255,255,1)"; this.gi = C.bd("canvas"); this.Ki = this.gi.getContext("2d"); this.anchorY = this.anchorX = 0; c !== m && d !== m && (f = f || C.Ma.qq, this.hQ(c, d, f, g || 0)) }, qF: function(c, d, f, g) { C.A.prototype.ctor.call(this); this.Jq = C.color(0, 0, 0, 0); c !== m && d !== m && (f = f || C.Ma.qq, this.hQ(c, d, f, g || 0)) }, ze: s, mra: function() { C.A.prototype.Na.call(this); this.gi = this.Ki = s }, nra: function() { C.A.prototype.Na.call(this); this.VG = s; var c = C.t; c.deleteFramebuffer(this.sM); this.uF && c.deleteRenderbuffer(this.uF); this.Xva = s }, E0: A("sprite"), NR: x("sprite"), hQ: s, hta: function(c, d) { var f = this.gi, g = C.Ec(); f.width = 0 | c * g; f.height = 0 | d * g; this.Ki.translate(0, f.height); g = new C.Ma; g.Ng(f); g.Md(); this.sprite = C.u.create(g); return q }, ita: function(c, d, f, g) { f == C.Ma.pE && C.log("cc.RenderTexture._initWithWidthAndHeightForWebGL() : only RGB and RGBA formats are valid for a render texture;"); var h = C.t, k = C.Ec(); c = 0 | c * k; d = 0 | d * k; this.hp = h.getParameter(h.FRAMEBUFFER_BINDING); var n; C.FB.mO ? (k = c, n = d) : (k = C.Cs(c), n = C.Cs(d)); for (var p = new Uint8Array(4 * k * n), r = 0; r < 4 * k * n; r++) p[r] = 0; this.ip = f; this.da = new C.Ma; if (!this.da) return t; r = this.da; r.Au(p, this.ip, k, n, C.size(c, d)); f = h.getParameter(h.RENDERBUFFER_BINDING); if (C.FB.CB("GL_QCOM")) { this.VG = new C.Ma; if (!this.VG) return t; this.VG.Au(p, this.ip, k, n, C.size(c, d)) } this.sM = h.createFramebuffer(); h.bindFramebuffer(h.FRAMEBUFFER, this.sM); h.framebufferTexture2D(h.FRAMEBUFFER, h.COLOR_ATTACHMENT0, h.TEXTURE_2D, r.Sh, 0); 0 != g && (this.uF = h.createRenderbuffer(), h.bindRenderbuffer(h.RENDERBUFFER, this.uF), h.renderbufferStorage(h.RENDERBUFFER, g, k, n), h.framebufferRenderbuffer(h.FRAMEBUFFER, h.DEPTH_ATTACHMENT, h.RENDERBUFFER, this.uF)); h.checkFramebufferStatus(h.FRAMEBUFFER) !== h.FRAMEBUFFER_COMPLETE && C.log("Could not attach texture to the framebuffer"); r.B2(); c = this.sprite = C.u.create(r); c.scaleY = -1; c.Yd(h.ONE, h.ONE_MINUS_SRC_ALPHA); h.bindRenderbuffer(h.RENDERBUFFER, f); h.bindFramebuffer(h.FRAMEBUFFER, this.hp); this.qH = t; this.q(c); return q }, Sn: s, Wqa: function() { C.t = this.Ki; C.view.vba() }, Xqa: function() { C.Op(C.mq); C.Zr(); C.Op(C.lq); C.Zr(); var c = C.Q; c.py(c.op); var d = this.da.o, f = C.Q.bI(), c = f.width / d.width, f = f.height / d.height, g = C.t; g.viewport(0, 0, d.width, d.height); d = new C.Ia; C.q1(d, -1 / c, 1 / c, -1 / f, 1 / f, -1, 1); C.lC(d); this.hp = g.getParameter(g.FRAMEBUFFER_BINDING); g.bindFramebuffer(g.FRAMEBUFFER, this.sM); C.FB.CB("GL_QCOM") && (g.framebufferTexture2D(g.FRAMEBUFFER, g.COLOR_ATTACHMENT0, g.TEXTURE_2D, this.VG.Sh, 0), g.clear(g.COLOR_BUFFER_BIT | g.DEPTH_BUFFER_BIT), g.framebufferTexture2D(g.FRAMEBUFFER, g.COLOR_ATTACHMENT0, g.TEXTURE_2D, this.da.Sh, 0)) }, nxa: function(c, d, f, g, h, k) { var n = C.t; h = h || n.COLOR_BUFFER_BIT; k = k || n.COLOR_BUFFER_BIT | n.DEPTH_BUFFER_BIT; this.wV(c, d, f, g, h, k, n.COLOR_BUFFER_BIT | n.DEPTH_BUFFER_BIT | n.STENCIL_BUFFER_BIT) }, wV: s, Yqa: function(c, d, f, g) { this.Sn(); c = c || 0; d = d || 0; f = f || 0; g = isNaN(g) ? 1 : g; var h = this.Ki, k = this.gi; h.save(); h.fillStyle = "rgba(" + (0 | c) + "," + (0 | d) + "," + (0 | f) + "," + g / 255 + ")"; h.clearRect(0, 0, k.width, -k.height); h.fillRect(0, 0, k.width, -k.height); h.restore() }, Zqa: function(c, d, f, g, h, k, n) { this.Sn(); var p = C.t, r = [0, 0, 0, 0], v = 0, y = 0; n & p.COLOR_BUFFER_BIT && (r = p.getParameter(p.COLOR_CLEAR_VALUE), p.clearColor(c, d, f, g)); n & p.DEPTH_BUFFER_BIT && (v = p.getParameter(p.DEPTH_CLEAR_VALUE), p.clearDepth(h)); n & p.STENCIL_BUFFER_BIT && (y = p.getParameter(p.STENCIL_CLEAR_VALUE), p.clearStencil(k)); p.clear(n); n & p.COLOR_BUFFER_BIT && p.clearColor(r[0], r[1], r[2], r[3]); n & p.DEPTH_BUFFER_BIT && p.clearDepth(v); n & p.STENCIL_BUFFER_BIT && p.clearStencil(y) }, end: s, Rra: function() { C.t = C.Dta; C.view.hba() }, Sra: function() { var c = C.t, d = C.Q; c.bindFramebuffer(c.FRAMEBUFFER, this.hp); d.Aia(); C.Op(C.mq); C.Yr(); C.Op(C.lq); C.Yr() }, clear: function(c, d, f, g) { this.nxa(c, d, f, g); this.end() }, clearRect: s, qra: function(c, d, f, g) { this.Ki.clearRect(c, d, f, -g) }, rra: u(), clearDepth: s, ora: function() { C.log("clearDepth isn't supported on Cocos2d-Html5") }, pra: function(c) { this.Sn(); var d = C.t, f = d.getParameter(d.DEPTH_CLEAR_VALUE); d.clearDepth(c); d.clear(d.DEPTH_BUFFER_BIT); d.clearDepth(f); this.end() }, clearStencil: s, sra: function() { C.log("clearDepth isn't supported on Cocos2d-Html5") }, tra: function(c) { var d = C.t, f = d.getParameter(d.STENCIL_CLEAR_VALUE); d.clearStencil(c); d.clear(d.STENCIL_BUFFER_BIT); d.clearStencil(f) }, J: s, Hr: function(c) { this.Ja && (c = c || C.t, c.save(), this.ka(c), this.transform(c), this.sprite.J(), c.restore(), this.arrivalOrder = 0) }, fx: function(c) { if (this.Ja) { C.Zr(); var d = this.grid; d && d.zi() && (d.px(), this.CJ()); this.transform(c); this.sprite.J(); this.ka(c); d && d.zi() && d.mx(this); C.Yr(); this.arrivalOrder = 0 } }, ka: s, Qq: function(c) { c = c || C.t; if (this.qH) { this.Sn(); if (this.eP) { var d = this.gi; c.save(); c.fillStyle = this.MV; c.clearRect(0, 0, d.width, -d.height); c.fillRect(0, 0, d.width, -d.height); c.restore() } this.ed(); c = this.l; for (var d = c.length, f = this.sprite, g = 0; g < d; g++) { var h = c[g]; h != f && h.J() } this.end() } }, gn: function() { var c = C.t; if (this.qH) { this.Sn(); var d = this.eP; if (d) { var f = [0, 0, 0, 0], g = 0, h = 0; d & c.COLOR_BUFFER_BIT && (f = c.getParameter(c.COLOR_CLEAR_VALUE), c.clearColor(this.Jq.r / 255, this.Jq.g / 255, this.Jq.b / 255, this.Jq.a / 255)); d & c.DEPTH_BUFFER_BIT && (g = c.getParameter(c.DEPTH_CLEAR_VALUE), c.clearDepth(this.w_)); d & c.STENCIL_BUFFER_BIT && (h = c.getParameter(c.STENCIL_CLEAR_VALUE), c.clearStencil(this.x_)); c.clear(d); d & c.COLOR_BUFFER_BIT && c.clearColor(f[0], f[1], f[2], f[3]); d & c.DEPTH_BUFFER_BIT && c.clearDepth(g); d & c.STENCIL_BUFFER_BIT && c.clearStencil(h) } this.ed(); c = this.l; for (d = 0; d < c.length; d++) f = c[d], f != this.sprite && f.J(); this.end() } }, g0a: function() { C.log("saveToFile isn't supported on cocos2d-html5"); return s }, fPa: function(c, d, f, g, h) { for (var k = 0; k < h; k++) c[d + k] = f[g + k] }, O2a: function() { C.log("saveToFile isn't supported on Cocos2d-Html5") }, W_a: function() { C.log("listenToBackground isn't supported on Cocos2d-Html5") }, X_a: function() { C.log("listenToForeground isn't supported on Cocos2d-Html5") }, ETa: A("eP"), D3a: x("eP"), jAa: A("Jq"), L2: s, Rua: function(c) { var d = this.Jq; d.r = c.r; d.g = c.g; d.b = c.b; d.a = c.a; this.MV = "rgba(" + (0 | c.r) + "," + (0 | c.g) + "," + (0 | c.b) + "," + c.a / 255 + ")" }, Sua: function(c) { var d = this.Jq; d.r = c.r; d.g = c.g; d.b = c.b; d.a = c.a }, DTa: A("w_"), C3a: x("w_"), FTa: A("x_"), E3a: x("x_"), cYa: A("qH"), r3a: x("qH") }); H = C.yv.prototype; C.L == C.la ? (H.ctor = H.qF, H.ze = H.nra, H.hQ = H.ita, H.Sn = H.Xqa, H.wV = H.Zqa, H.end = H.Sra, H.clearRect = H.rra, H.clearDepth = H.pra, H.clearStencil = H.tra, H.J = H.fx, H.ka = H.gn, H.L2 = H.Sua) : (H.ctor = H.pF, H.ze = H.mra, H.hQ = H.hta, H.Sn = H.Wqa, H.wV = H.Yqa, H.end = H.Rra, H.clearRect = H.qra, H.clearDepth = H.ora, H.clearStencil = H.sra, H.J = H.Hr, H.ka = H.Qq, H.L2 = H.Rua); C.e(H, "clearColorVal", H.jAa, H.L2); C.yv.create = function(c, d, f, g) { return new C.yv(c, d, f, g) }; C.Gl = C.gq.extend({ qd: s, rX: s, Aa: t, ac: s, qa: "LabelAtlas", ctor: function(c, d, f, g, h) { C.gq.prototype.ctor.call(this); d && C.Gl.prototype.sf.call(this, c, d, f, g, h) }, eD: A("Aa"), ye: function(c, d) { this.ac || (this.ac = []); this.ac.push({ jl: c, jj: d }) }, cf: function() { if (this.ac) { this.Aa = q; for (var c = this.ac, d = 0, f = c.length; d < f; d++) { var g = c[d]; g.jl.call(g.jj, this) } c.length = 0 } }, sf: function(c, d, f, g, h) { var k = c + "", n, p; if (f === m) { f = C.M.xd(d); if (1 !== parseInt(f.version, 10)) return C.log("cc.LabelAtlas.initWithString(): Unsupported version. Upgrade cocos2d version"), t; d = C.path.BB(d, f.textureFilename); g = C.Ec(); n = parseInt(f.itemWidth, 10) / g; p = parseInt(f.itemHeight, 10) / g; f = String.fromCharCode(parseInt(f.firstChar, 10)) } else n = f || 0, p = g || 0, f = h || " "; var r = s, r = d instanceof C.Ma ? d: C.kb.sd(d); (this.Aa = d = r.de) || r.ye(function() { this.ta(r, n, p, k.length); this.string = k; this.cf() }, this); return this.ta(r, n, p, k.length) ? (this.rX = f, this.string = k, q) : t }, G: function(c) { C.gq.prototype.G.call(this, c); this.iD() }, Wb: A("qd"), ka: function(c) { C.gq.prototype.ka.call(this, c); C.Qma && (c = this.size, c = [C.d(0, 0), C.d(c.width, 0), C.d(c.width, c.height), C.d(0, c.height)], C.Df.Of(c, 4, q)) }, aV: function(c, d, f) { c.xta = q; C.ha.prototype.q.call(this, c, d, f) }, iD: s, Yva: function() { for (var c = this.qd || "", d = c.length, f = this.texture, g = this.Tj, h = this.Oi, k = 0; k < d; k++) { var n = c.charCodeAt(k) - this.rX.charCodeAt(0), n = C.rect(parseInt(n % this.uA, 10) * g, parseInt(n / this.uA, 10) * h, g, h), p = c.charCodeAt(k), r = this.lj(k); r ? 32 == p ? (r.j(), r.qc(C.rect(0, 0, 10, 10), t, C.size(0, 0))) : (r.ta(f, n), r.visible = q, r.opacity = this.hb) : (r = new C.u, 32 == p ? (r.j(), r.qc(C.rect(0, 0, 10, 10), t, C.size(0, 0))) : r.ta(f, n), C.ha.prototype.q.call(this, r, 0, k)); r.p(k * g + g / 2, h / 2) } }, Zva: function() { var c = this.qd, d = c.length, f = this.textureAtlas, g = f.texture, h = g.pixelsWidth, g = g.pixelsHeight, k = this.Tj, n = this.Oi; this.IM || (k = this.Tj * C.Ec(), n = this.Oi * C.Ec()); d > f.Yf && C.log("cc.LabelAtlas._updateAtlasValues(): Invalid String length"); for (var p = f.quads, r = this.wb, r = { r: r.r, g: r.g, b: r.b, a: this.hb }, v = this.Tj, y = 0; y < d; y++) { var z = c.charCodeAt(y) - this.rX.charCodeAt(0), D = z % this.uA, E = 0 | z / this.uA, F; C.Qy ? (D = (2 * D * k + 1) / (2 * h), z = D + (2 * k - 2) / (2 * h), E = (2 * E * n + 1) / (2 * g), F = E + (2 * n - 2) / (2 * g)) : (D = D * k / h, z = D + k / h, E = E * n / g, F = E + n / g); var G = p[y], K = G.X, O = G.V, U = G.T, G = G.Y; K.v.xa = D; K.v.ea = E; O.v.xa = z; O.v.ea = E; U.v.xa = D; U.v.ea = F; G.v.xa = z; G.v.ea = F; U.m.x = y * v; U.m.y = 0; U.m.f = 0; G.m.x = y * v + v; G.m.y = 0; G.m.f = 0; K.m.x = y * v; K.m.y = this.Oi; K.m.f = 0; O.m.x = y * v + v; O.m.y = this.Oi; O.m.f = 0; K.F = r; O.F = r; U.F = r; G.F = r } 0 < d && (f.dirty = q, c = f.totalQuads, d > c && f.Pea(d - c)) }, sa: s, sva: function(c) { c = String(c); var d = c.length; this.qd = c; this.width = d * this.Tj; this.height = this.Oi; if (this.l) { c = this.l; for (var d = c.length, f = 0; f < d; f++) { var g = c[f]; g && !g.xta && (g.visible = t) } } this.iD(); this.quadsToDraw = d }, uva: function(c) { c = String(c); var d = c.length; d > this.textureAtlas.totalQuads && this.textureAtlas.eR(d); this.qd = c; this.width = d * this.Tj; this.height = this.Oi; this.iD(); this.quadsToDraw = d }, K: s, FY: function(c) { if (this.hb !== c) { C.gq.prototype.K.call(this, c); for (var d = this.l, f = 0, g = d.length; f < g; f++) d[f] && (d[f].opacity = c) } }, GY: function(c) { this.Eb !== c && C.gq.prototype.K.call(this, c) } }); H = C.Gl.prototype; C.L === C.la ? (H.iD = H.Zva, H.sa = H.uva, H.K = H.GY) : (H.iD = H.Yva, H.sa = H.sva, H.K = H.FY, H.q = H.aV); C.e(H, "opacity", H.rb, H.K); C.e(H, "string", H.Wb, H.sa); C.Gl.create = function(c, d, f, g, h) { return new C.Gl(c, d, f, g, h) }; C.eMa = -1; C.rv = C.Bh.extend({ sb: q, Fb: t, qd: "", Nk: s, FF: "", oA: "", RE: C.Fs, iH: -1, qaa: t, JM: s, kba: s, hb: 255, Ig: 255, wb: s, od: s, Zf: q, Ag: q, Aa: t, ac: s, qa: "LabelBMFont", wba: function(c, d) { d ? this.oA = c: this.qd = c; var f = this.l; if (f) for (var g = 0; g < f.length; g++) { var h = f[g]; h && h.va(t) } this.Aa && (this.jP(), d && this.zl()) }, ctor: function(c, d, f, g, h) { C.Bh.prototype.ctor.call(this); this.JM = C.d(0, 0); this.wb = C.color(255, 255, 255, 255); this.od = C.color(255, 255, 255, 255); this.kba = []; this.sf(c, d, f, g, h) }, eD: A("Aa"), ye: function(c, d) { this.ac || (this.ac = []); this.ac.push({ jl: c, jj: d }) }, cf: function() { if (this.ac) { for (var c = this.ac, d = 0, f = c.length; d < f; d++) { var g = c[d]; g.jl.call(g.jj, this) } c.length = 0 } }, ka: function(c) { C.Bh.prototype.ka.call(this, c); if (C.Rma) { c = this.i(); var d = C.d(0 | -this.Nb.x, 0 | -this.Nb.y); c = [C.d(d.x, d.y), C.d(d.x + c.width, d.y), C.d(d.x + c.width, d.y + c.height), C.d(d.x, d.y + c.height)]; C.Df.tj(0, 255, 0, 255); C.Df.Of(c, 4, q) } }, G: function(c) { var d = this.wb, f = this.od; f.r == c.r && f.g == c.g && f.b == c.b && f.a == c.a || (d.r = f.r = c.r, d.g = f.g = c.g, d.b = f.b = c.b, this.Aa && this.Zf && (d = C.color.WHITE, (f = this.Vb) && (f.sb && f.cascadeColor) && (d = f.xu()), this.Tb(d)), c.a !== m && !c.jx && this.K(c.a)) }, qg: A("Fb"), $d: function(c) { this.Fb = c; if (c = this.l) for (var d = 0; d < c.length; d++) { var f = c[d]; f && f.sb && (f.opacityModifyRGB = this.Fb) } }, rb: A("Ig"), Tda: A("hb"), K: function(c) { this.hb = this.Ig = c; if (this.Ag) { var d = 255, f = this.Vb; f && (f.sb && f.cascadeOpacity) && (d = f.hb); this.dc(d) } this.wb.a = this.od.a = c }, dc: function(c) { this.hb = this.Ig * c / 255; c = this.l; for (var d = 0; d < c.length; d++) { var f = c[d]; C.L == C.la ? f.dc(this.hb) : (C.ha.prototype.dc.call(f, this.hb), f.Da()) } this.ct() }, nI: B(t), Qu: x("Ag"), Xa: function() { var c = this.od; return C.color(c.r, c.g, c.b, c.a) }, xu: A("wb"), Tb: function(c) { var d = this.wb, f = this.od; d.r = f.r * c.r / 255; d.g = f.g * c.g / 255; d.b = f.b * c.b / 255; c = this.l; for (d = 0; d < c.length; d++) f = c[d], C.L == C.la ? f.Tb(this.wb) : (C.ha.prototype.Tb.call(f, this.wb), f.Da()); this.ct() }, ct: function() { if (C.L != C.la) { var c, d = this.texture; if (d && 0 < d.width && (c = d.jd)) if (d = C.kb.OP(this.qi.jd)) c instanceof HTMLCanvasElement && !this.jf ? C.TB(c, d, this.wb, s, c) : (c = C.TB(c, d, this.wb), d = new C.Ma, d.Ng(c), d.Md(), this.texture = d) } }, mI: B(t), Pu: x("Zf"), j: function() { return this.sf(s, s, s, s, s) }, sf: function(c, d, f, g, h) { c = c || ""; this.Nk && C.log("cc.LabelBMFont.initWithString(): re-init is no longer supported"); if (d) { var k = C.M.xd(d); if (!k) return C.log("cc.LabelBMFont.initWithString(): Impossible to create font. Please check file"), t; this.Nk = k; this.FF = d; d = C.kb.sd(k.Eca); (this.Aa = k = d.de) || d.ye(function(c) { this.Aa = q; this.ta(c, this.oA.length); this.sa(this.oA, q); this.cf() }, this) } else d = new C.Ma, k = new Image, d.Ng(k), this.Aa = t; return this.ta(d, c.length) ? (this.RE = g || C.dz, this.JM = h || C.d(0, 0), this.iH = f == s ? -1 : f, this.hb = this.Ig = 255, this.wb = C.color(255, 255, 255, 255), this.od = C.color(255, 255, 255, 255), this.Zf = this.Ag = q, this.o.width = 0, this.o.height = 0, this.S(0.5, 0.5), C.L === C.la && (f = this.textureAtlas.texture, this.Fb = f.Hp(), g = this.kba = new C.u, g.ta(f, C.rect(0, 0, 0, 0), t), g.batchNode = this), this.sa(c, q), q) : t }, jP: function() { var c = C.L, d = c === C.cb ? this.texture: this.textureAtlas.texture, f = 0, g = C.size(0, 0), h = 0, k = 1, n = this.qd, p = n ? n.length: 0; if (0 !== p) { var r, v = this.Nk, y = v.JDa, z = v.z_, D = v.Lza; for (r = 0; r < p - 1; r++) 10 == n.charCodeAt(r) && k++; var E = z * k, k = -(z - z * k), F = -1; for (r = 0; r < p; r++) if (z = n.charCodeAt(r), 0 != z) if (10 === z) f = 0, k -= v.z_; else { var G = y[F << 16 | z & 65535] || 0, K = D[z]; if (K) { var O = C.rect(K.rect.x, K.rect.y, K.rect.width, K.rect.height), O = C.js(O); O.x += this.JM.x; O.y += this.JM.y; (F = this.lj(r)) ? 32 === z && c === C.cb ? F.qc(O, t, C.size(0, 0)) : (F.qc(O, t), F.visible = q) : (F = new C.u, 32 === z && c === C.cb && (O = C.rect(0, 0, 0, 0)), F.ta(d, O, t), F.zX = q, this.q(F, 0, r)); F.opacityModifyRGB = this.Fb; C.L == C.la ? (F.Tb(this.wb), F.dc(this.hb)) : (C.ha.prototype.Tb.call(F, this.wb), C.ha.prototype.dc.call(F, this.hb), F.Da()); O = C.d(f + K.wja + 0.5 * K.rect.width + G, k + (v.z_ - K.xja) - 0.5 * O.height * C.Ec()); F.p(C.c2(O)); f += K.WJa + G; F = z; h < f && (h = f) } else C.log("cocos2d: LabelBMFont: character not found " + n[r]) } g.width = h; g.height = E; this.Ca(C.Gia(g)) } }, J6a: function(c) { var d = this.l; if (d) for (var f = 0, g = d.length; f < g; f++) { var h = d[f]; h && (h.visible = t) } this.Nk && this.jP(); c || this.zl() }, Wb: A("oA"), sa: function(c, d) { c = String(c); d == s && (d = q); if (c == s || "string" != typeof c) c += ""; this.oA = c; this.wba(c, d) }, tva: function(c) { this.sa(c, t) }, A3a: function(c) { this.sa(c, q) }, zl: function() { this.string = this.oA; if (0 < this.iH) { for (var c = this.qd.length, d = [], f = [], g = 1, h = 0, k = t, n = t, p = -1, r = -1, v = 0, y, z = 0, D = this.l.length; z < D; z++) { for (var E = 0; ! (y = this.lj(z + v + E));) E++; v += E; if (h >= c) break; var F = this.qd[h]; n || (r = this.OW(y), n = q); k || (p = r, k = q); if (10 == F.charCodeAt(0)) { f.push("\n"); d = d.concat(f); f.length = 0; k = n = t; p = r = -1; z--; v -= E; g++; if (h >= c) break; r || (r = this.OW(y), n = q); p || (p = r, k = q); h++ } else if (C.m1(F)) f.push(F), d = d.concat(f), f.length = 0, n = t, r = -1, h++; else if (this.wsa(y) - p > this.iH) if (this.qaa) { C.rja(f); f.push("\n"); d = d.concat(f); f.length = 0; k = n = t; p = r = -1; g++; if (h >= c) break; r || (r = this.OW(y), n = q); p || (p = r, k = q); z-- } else f.push(F), -1 != d.lastIndexOf(" ") ? C.rja(d) : d = [], 0 < d.length && d.push("\n"), g++, k = t, p = -1, h++; else f.push(F), h++ } d = d.concat(f); z = d.length; y = ""; for (h = 0; h < z; ++h) y += d[h]; y += String.fromCharCode(0); this.wba(y, t) } if (this.RE != C.dz) { d = h = 0; c = this.qd.length; f = []; for (g = 0; g < c; g++) if (10 == this.qd[g].charCodeAt(0) || 0 == this.qd[g].charCodeAt(0)) if (z = 0, k = f.length, 0 == k) d++; else { if (y = h + k - 1 + d, !(0 > y) && (z = this.lj(y), z != s)) { z = z.Rc() + z.ef() / 2; n = 0; switch (this.RE) { case C.Fs: n = this.width / 2 - z / 2; break; case C.Q7: n = this.width - z } if (0 != n) for (z = 0; z < k; z++) if (y = h + z + d, !(0 > y) && (y = this.lj(y))) y.x += n; h += k; d++; f.length = 0 } } else f.push(this.qd[h]) } }, VGa: function(c) { this.RE = c; this.zl() }, fsa: A("RE"), dHa: function(c) { this.iH = c; this.zl() }, KF: A("iH"), v4a: function(c) { this.qaa = c; this.zl() }, Za: function(c, d) { C.A.prototype.Za.call(this, c, d); this.zl() }, gb: function(c) { C.A.prototype.gb.call(this, c); this.zl() }, pb: function(c) { C.A.prototype.pb.call(this, c); this.zl() }, UC: function(c) { if (c != s && c != this.FF) { var d = C.M.xd(c); d ? (this.FF = c, this.Nk = d, c = C.kb.sd(d.Eca), this.Aa = d = c.de, this.texture = c, C.L === C.cb && (this.qi = this.texture), d ? this.jP() : c.ye(function(c) { this.Aa = q; this.texture = c; this.jP(); this.ct(); this.zl(); this.cf() }, this)) : C.log("cc.LabelBMFont.setFntFile() : Impossible to create font. Please check file") } }, GUa: A("FF"), S: function(c, d) { C.A.prototype.S.call(this, c, d); this.zl() }, tba: function(c) { C.A.prototype.tba.call(this, c); this.zl() }, Re: function(c) { C.A.prototype.Re.call(this, c); this.zl() }, Se: function(c) { C.A.prototype.Se.call(this, c); this.zl() }, aOa: u(), XOa: function(c, d) { var f = 0; if (this.wra.KDa) { var g = this.wra.KDa[(c << 16 | d & 65535).toString()]; g && (f = g.nQa) } return f }, OW: function(c) { return c.Rc() * this.ia - c.ef() * this.ia * c.Ab.x }, wsa: function(c) { return c.Rc() * this.ia + c.ef() * this.ia * c.Ab.x } }); H = C.rv.prototype; C.e(H, "opacityModifyRGB", H.qg, H.$d); C.e(H, "opacity", H.rb, H.K); C.e(H, "cascadeOpacity", H.nI, H.Qu); C.e(H, "color", H.Xa, H.G); C.e(H, "cascadeColor", H.mI, H.Pu); C.e(H, "string", H.Wb, H.tva); C.e(H, "boundingWidth", H.KF, H.dHa); C.e(H, "textAlign", H.fsa, H.VGa); C.rv.create = function(c, d, f, g, h) { return new C.rv(c, d, f, g, h) }; C.m1 = function(c) { c = c.charCodeAt(0); return 9 <= c && 13 >= c || 32 == c || 133 == c || 160 == c || 5760 == c || 8192 <= c && 8202 >= c || 8232 == c || 8233 == c || 8239 == c || 8287 == c || 12288 == c }; C.rja = function(c) { var d = c.length; if (! (0 >= d) && (d -= 1, C.m1(c[d]))) { for (var f = d - 1; 0 <= f; --f) if (C.m1(c[f])) d = f; else break; C.PJa(c, d) } }; C.PJa = function(c, d) { var f = c.length; d >= f || 0 > d || c.splice(d, f) }; C.$ra = { zma: /info [^\n]*(\n|$)/gi, Aka: /common [^\n]*(\n|$)/gi, Ena: /page [^\n]*(\n|$)/gi, zka: /char [^\n]*(\n|$)/gi, Hma: /kerning [^\n]*(\n|$)/gi, Bma: /\w+=[^ \r\n]+/gi, Ama: /^[\-]?\d+$/, nG: function(c) { c = c.match(this.Bma); var d = {}; if (c) for (var f = 0, g = c.length; f < g; f++) { var h = c[f], k = h.indexOf("\x3d"), n = h.substring(0, k), h = h.substring(k + 1); h.match(this.Ama) ? h = parseInt(h) : '"' == h[0] && (h = h.substring(1, h.length - 1)); d[n] = h } return d }, XEa: function(c, d) { var f = {}; this.nG(c.match(this.zma)[0]); var g = this.nG(c.match(this.Aka)[0]); f.z_ = g.lineHeight; if (C.L === C.la) { var h = C.FB.bG; (g.scaleW > h.width || g.scaleH > h.height) && C.log("cc.LabelBMFont._parseCommonArguments(): page can't be larger than supported") } 1 !== g.pages && C.log("cc.LabelBMFont._parseCommonArguments(): only supports 1 page"); g = this.nG(c.match(this.Ena)[0]); 0 !== g.id && C.log("cc.LabelBMFont._parseImageFileName() : file could not be found"); f.Eca = C.path.BB(d, g.file); for (var k = c.match(this.zka), n = f.Lza = {}, g = 0, h = k.length; g < h; g++) { var p = this.nG(k[g]); n[p.id] = { rect: { x: p.x, y: p.y, width: p.width, height: p.height }, wja: p.xoffset, xja: p.yoffset, WJa: p.xadvance } } k = f.JDa = {}; if (n = c.match(this.Hma)) { g = 0; for (h = n.length; g < h; g++) p = this.nG(n[g]), k[p.first << 16 | p.second & 65535] = p.amount } return f }, load: function(c, d, f, g) { var h = this; C.M.EQ(c, function(c, f) { if (c) return g(c); g(s, h.XEa(f, d)) }) } }; C.M.Zp(["fnt"], C.$ra); C.G6 = C.ha.extend({ texture: s, PB: t, dq: t, C: s, RG: 0, vW: 0, qw: 0, vX: 0, Jt: 0, eY: 0, VX: s, UX: s, bc: s, Iz: s, dl: s, lg: s, Jz: s, gB: s, qa: "MotionStreak", ctor: function(c, d, f, g, h) { C.ha.prototype.ctor.call(this); this.fm = C.d(0, 0); this.C = new C.Vm(C.SRC_ALPHA, C.ONE_MINUS_SRC_ALPHA); this.AZ = C.t.createBuffer(); this.dq = this.PB = t; this.texture = s; this.eY = this.Jt = this.vX = this.qw = this.vW = this.RG = 0; this.gB = this.Jz = this.lg = this.dl = this.Iz = this.bc = this.UX = this.VX = s; h !== m && this.RCa(c, d, f, g, h) }, ob: A("texture"), Va: function(c) { this.texture != c && (this.texture = c) }, ek: A("C"), Yd: function(c, d) { d === m ? this.C = c: (this.C.src = c, this.C.ga = d) }, rb: function() { C.log("cc.MotionStreak.getOpacity has not been supported."); return 0 }, K: function() { C.log("cc.MotionStreak.setOpacity has not been supported.") }, $d: u(), qg: B(t), Na: function() { C.A.prototype.Na.call(this); this.lg && C.t.deleteBuffer(this.lg); this.gB && C.t.deleteBuffer(this.gB); this.Jz && C.t.deleteBuffer(this.Jz) }, pYa: A("PB"), Y3a: x("PB"), KYa: A("dq"), f5a: x("dq"), RCa: function(c, d, f, g, h) { h || e("cc.MotionStreak.initWithFade(): Invalid filename or texture"); "string" === typeof h && (h = C.kb.sd(h)); C.A.prototype.p.call(this, C.d(0, 0)); this.anchorY = this.anchorX = 0; this.ignoreAnchor = q; this.dq = t; this.PB = q; this.qw = -1 == d ? f / 5 : d; this.qw *= this.qw; this.RG = f; this.vW = 1 / c; c = (0 | 60 * c) + 2; this.Jt = 0; this.UX = new Float32Array(c); this.VX = new Float32Array(2 * c); this.bc = new Float32Array(4 * c); this.dl = new Float32Array(4 * c); this.Iz = new Uint8Array(8 * c); this.vX = c; c = C.t; this.lg = c.createBuffer(); this.gB = c.createBuffer(); this.Jz = c.createBuffer(); this.C.src = c.SRC_ALPHA; this.C.ga = c.ONE_MINUS_SRC_ALPHA; this.shaderProgram = C.ug.Xd(C.Co); this.texture = h; this.color = g; this.Lu(); c.bindBuffer(c.ARRAY_BUFFER, this.lg); c.bufferData(c.ARRAY_BUFFER, this.bc, c.DYNAMIC_DRAW); c.bindBuffer(c.ARRAY_BUFFER, this.gB); c.bufferData(c.ARRAY_BUFFER, this.dl, c.DYNAMIC_DRAW); c.bindBuffer(c.ARRAY_BUFFER, this.Jz); c.bufferData(c.ARRAY_BUFFER, this.Iz, c.DYNAMIC_DRAW); return q }, w6a: function(c) { this.color = c; for (var d = this.Iz, f = 0, g = 2 * this.Jt; f < g; f++) d[4 * f] = c.r, d[4 * f + 1] = c.g, d[4 * f + 2] = c.b }, reset: function() { this.Jt = 0 }, p: function(c, d) { this.dq = q; d === m ? (this.fm.x = c.x, this.fm.y = c.y) : (this.fm.x = c, this.fm.y = d) }, Rc: function() { return this.fm.x }, rs: function(c) { this.fm.x = c; this.dq || (this.dq = q) }, Vd: function() { return this.fm.y }, Uu: function(c) { this.fm.y = c; this.dq || (this.dq = q) }, ka: function(c) { ! (1 >= this.Jt) && (this.texture && this.texture.de) && (c = c || C.t, C.BC(this), C.rf(C.Dv), C.Gm(this.C.src, this.C.ga), C.yi(this.texture), c.bindBuffer(c.ARRAY_BUFFER, this.lg), c.bufferData(c.ARRAY_BUFFER, this.bc, c.DYNAMIC_DRAW), c.vertexAttribPointer(C.Lc, 2, c.FLOAT, t, 0, 0), c.bindBuffer(c.ARRAY_BUFFER, this.gB), c.bufferData(c.ARRAY_BUFFER, this.dl, c.DYNAMIC_DRAW), c.vertexAttribPointer(C.Vg, 2, c.FLOAT, t, 0, 0), c.bindBuffer(c.ARRAY_BUFFER, this.Jz), c.bufferData(c.ARRAY_BUFFER, this.Iz, c.DYNAMIC_DRAW), c.vertexAttribPointer(C.Hi, 4, c.UNSIGNED_BYTE, q, 0, 0), c.drawArrays(c.TRIANGLE_STRIP, 0, 2 * this.Jt), C.kl++) }, update: function(c) { if (this.dq) { c *= this.vW; var d, f, g, h, k = 0, n = this.Jt, p = this.UX, r = this.VX, v = this.bc, y = this.Iz; for (g = 0; g < n; g++) p[g] -= c, 0 >= p[g] ? k++:(d = g - k, 0 < k ? (p[d] = p[g], r[2 * d] = r[2 * g], r[2 * d + 1] = r[2 * g + 1], h = 2 * g, f = 2 * d, v[2 * f] = v[2 * h], v[2 * f + 1] = v[2 * h + 1], v[2 * (f + 1)] = v[2 * (h + 1)], v[2 * (f + 1) + 1] = v[2 * (h + 1) + 1], h *= 4, f *= 4, y[f + 0] = y[h + 0], y[f + 1] = y[h + 1], y[f + 2] = y[h + 2], y[f + 4] = y[h + 4], y[f + 5] = y[h + 5], y[f + 6] = y[h + 6]) : f = 8 * d, d = 255 * p[d], y[f + 3] = d, y[f + 7] = d); n -= k; g = q; if (n >= this.vX) g = t; else if (0 < n && (c = C.lga(C.d(r[2 * (n - 1)], r[2 * (n - 1) + 1]), this.fm) < this.qw, f = 1 == n ? t: C.lga(C.d(r[2 * (n - 2)], r[2 * (n - 2) + 1]), this.fm) < 2 * this.qw, c || f)) g = t; g && (r[2 * n] = this.fm.x, r[2 * n + 1] = this.fm.y, p[n] = 1, p = 8 * n, g = this.wb, y[p] = g.r, y[p + 1] = g.g, y[p + 2] = g.b, y[p + 4] = g.r, y[p + 5] = g.g, y[p + 6] = g.b, y[p + 3] = 255, y[p + 7] = 255, 0 < n && this.PB && (1 < n ? C.d4(r, this.RG, this.bc, n, 1) : C.d4(r, this.RG, this.bc, 0, 2)), n++); this.PB || C.d4(r, this.RG, this.bc, 0, n); if (n && this.eY != n) { r = 1 / n; y = this.dl; for (g = 0; g < n; g++) y[4 * g] = 0, y[4 * g + 1] = r * g, y[2 * (2 * g + 1)] = 1, y[2 * (2 * g + 1) + 1] = r * g; this.eY = n } this.Jt = n } } }); C.G6.create = function(c, d, f, g, h) { return new C.G6(c, d, f, g, h) }; C.DT = C.A.extend({ grid: s, Xc: s, NH: A("grid"), wHa: x("grid"), pJ: x("Xc"), q: function(c, d, f) { C.A.prototype.q.call(this, c, d, f); c && !this.Xc && (this.Xc = c) }, J: function() { if (this.Ja) { var c = C.L == C.la, d = this.grid; c && (d && d.Wg) && d.px(); this.transform(); var f = this.l; if (f && 0 < f.length) { var g = f.length; this.ed(); for (i = 0; i < g; i++) { var h = f[i]; h && h.J() } } c && (d && d.Wg) && d.mx(this.Xc) } }, Wva: function() { var c = this.nZ, d = C.Jd.top, f = this.me(), g = c.c; g[0] = f.a; g[4] = f.H; g[12] = f.na; g[1] = f.b; g[5] = f.P; g[13] = f.oa; g[14] = this.gH; C.Qp(d, d, c); if (this.Gq != s && (!this.grid || !this.grid.zi())) c = this.Nb.x, d = this.Nb.y, 0 !== c || 0 !== d ? (C.bU || (c |= 0, d |= 0), C.mC(c, d), this.Gq.yI(), C.mC( - c, -d)) : this.Gq.yI() } }); H = C.DT.prototype; C.L === C.la && (H.transform = H.Wva); C.e(H, "target", s, H.pJ); C.DT.create = function() { return new C.DT }; C.M6a = function() { return { x: 0, y: 0 } }; C.cv = function(c, d) { return { x: c, y: d } }; C.Fi = function(c, d) { return C.cv(c.x + d.x, c.y + d.y) }; C.Ge = function(c, d) { return C.cv(c.x - d.x, c.y - d.y) }; C.Pg = function(c, d) { return C.cv(c.x * d, c.y * d) }; C.mD = function(c) { return C.cv( - c.y, c.x) }; C.Bl = function(c) { return C.cv( - c.x, -c.y) }; C.sja = function(c, d) { return c.x * d.x + c.y * d.y }; C.L6a = function(c) { return C.cv(Math.cos(c), Math.sin(c)) }; C.JJ = function(c) { c = C.vf(C.d(c.x, c.y)); return C.cv(c.x, c.y) }; C.Ii = function(c) { return C.cv(c.x, c.y) }; C.Mb = function(c) { return { xa: c.x, ea: c.y } }; C.Mla = C.A.extend({ $b: s, C: s, cg: 1, Pj: s, qa: "DrawNodeCanvas", ctor: function() { C.A.prototype.ctor.call(this); this.$b = []; this.Pj = C.color(255, 255, 255, 255); this.C = new C.Vm(C.Ic, C.Hc); this.j() }, ek: A("C"), Yd: function(c, d) { d === m ? (this.C.src = c.src, this.C.ga = c.ga) : (this.C.src = c, this.C.ga = d) }, Su: x("cg"), UAa: A("cg"), tj: function(c) { var d = this.Pj; d.r = c.r; d.g = c.g; d.b = c.b; d.a = c.a == s ? 255 : c.a }, lh: function() { return C.color(this.Pj.r, this.Pj.g, this.Pj.b, this.Pj.a) }, U_: function(c, d, f, g, h) { g = g || this.cg; h = h || this.lh(); h.a == s && (h.a = 255); c = [c, C.d(d.x, c.y), d, C.d(c.x, d.y)]; d = new C.Ms(C.Tg.Js); d.wg = c; d.lineWidth = g; d.as = h; d.lQ = q; d.Bu = q; d.lineCap = "butt"; if (d.fillColor = f) f.a == s && (f.a = 255), d.i1 = q; this.$b.push(d) }, O_: function(c, d, f, g, h, k, n) { k = k || this.cg; n = n || this.lh(); n.a == s && (n.a = 255); for (var p = 2 * Math.PI / g, r = [], v = 0; v <= g; v++) { var y = v * p; r.push(C.d(d * Math.cos(y + f) + c.x, d * Math.sin(y + f) + c.y)) } h && r.push(C.d(c.x, c.y)); c = new C.Ms(C.Tg.Js); c.wg = r; c.lineWidth = k; c.as = n; c.lQ = q; c.Bu = q; this.$b.push(c) }, T_: function(c, d, f, g, h, k) { h = h || this.cg; k = k || this.lh(); k.a == s && (k.a = 255); for (var n = [], p = 0, r = 0; r < g; r++) n.push(C.d(Math.pow(1 - p, 2) * c.x + 2 * (1 - p) * p * d.x + p * p * f.x, Math.pow(1 - p, 2) * c.y + 2 * (1 - p) * p * d.y + p * p * f.y)), p += 1 / g; n.push(C.d(f.x, f.y)); c = new C.Ms(C.Tg.Js); c.wg = n; c.lineWidth = h; c.as = k; c.Bu = q; c.lineCap = "round"; this.$b.push(c) }, P_: function(c, d, f, g, h, k, n) { k = k || this.cg; n = n || this.lh(); n.a == s && (n.a = 255); for (var p = [], r = 0, v = 0; v < h; v++) p.push(C.d(Math.pow(1 - r, 3) * c.x + 3 * Math.pow(1 - r, 2) * r * d.x + 3 * (1 - r) * r * r * f.x + r * r * r * g.x, Math.pow(1 - r, 3) * c.y + 3 * Math.pow(1 - r, 2) * r * d.y + 3 * (1 - r) * r * r * f.y + r * r * r * g.y)), r += 1 / h; p.push(C.d(g.x, g.y)); c = new C.Ms(C.Tg.Js); c.wg = p; c.lineWidth = k; c.as = n; c.Bu = q; c.lineCap = "round"; this.$b.push(c) }, N_: function(c, d, f, g) { this.zx(c, 0.5, d, f, g) }, zx: function(c, d, f, g, h) { g = g || this.cg; h = h || this.lh(); h.a == s && (h.a = 255); for (var k = [], n, p, r = 1 / c.length, v = 0; v < f + 1; v++) p = v / f, 1 == p ? (n = c.length - 1, p = 1) : (n = 0 | p / r, p = (p - r * n) / r), n = C.q_(C.og(c, n - 1), C.og(c, n - 0), C.og(c, n + 1), C.og(c, n + 2), d, p), k.push(n); c = new C.Ms(C.Tg.Js); c.wg = k; c.lineWidth = g; c.as = h; c.Bu = q; c.lineCap = "round"; this.$b.push(c) }, Q_: function(c, d, f) { f = f || this.lh(); f.a == s && (f.a = 255); var g = new C.Ms(C.Tg.W7); g.wg = [c]; g.lineWidth = d; g.fillColor = f; this.$b.push(g) }, Mya: function(c, d, f) { if (c && 0 != c.length) { f = f || this.lh(); f.a == s && (f.a = 255); for (var g = 0, h = c.length; g < h; g++) this.Q_(c[g], d, f) } }, V_: function(c, d, f, g) { f = f || this.cg; g = g || this.lh(); g.a == s && (g.a = 255); var h = new C.Ms(C.Tg.Js); h.wg = [c, d]; h.lineWidth = 2 * f; h.as = g; h.Bu = q; h.lineCap = "round"; this.$b.push(h) }, Pya: function(c, d, f, g) { f = f || this.cg; g = g || this.lh(); g.a == s && (g.a = 255); var h = new C.Ms(C.Tg.Js); h.wg = c; h.fillColor = d; h.lineWidth = f; h.as = g; h.lQ = q; h.Bu = q; h.lineCap = "round"; d && (h.i1 = q); this.$b.push(h) }, Of: function(c, d, f, g) { for (var h = [], k = 0; k < c.length; k++) h.push(C.d(c[k].x, c[k].y)); return this.Pya(h, d, f, g) }, ka: function(c) { c = c || C.t; this.C && (this.C.src == C.SRC_ALPHA && this.C.ga == C.ONE) && (c.globalCompositeOperation = "lighter"); for (var d = 0; d < this.$b.length; d++) { var f = this.$b[d]; switch (f.type) { case C.Tg.W7: this.Jra(c, f); break; case C.Tg.ypa: this.Lra(c, f); break; case C.Tg.Js: this.Kra(c, f) } } }, Jra: function(c, d) { var f = d.fillColor, g = d.wg[0], h = d.lineWidth, k = C.view.ia, n = C.view.pa; c.fillStyle = "rgba(" + (0 | f.r) + "," + (0 | f.g) + "," + (0 | f.b) + "," + f.a / 255 + ")"; c.beginPath(); c.arc(g.x * k, -g.y * n, h * k, 0, 2 * Math.PI, t); c.closePath(); c.fill() }, Lra: function(c, d) { var f = d.as, g = d.wg[0], h = d.wg[1], k = d.lineWidth, n = d.lineCap, p = C.view.ia, r = C.view.pa; c.strokeStyle = "rgba(" + (0 | f.r) + "," + (0 | f.g) + "," + (0 | f.b) + "," + f.a / 255 + ")"; c.lineWidth = k * p; c.beginPath(); c.lineCap = n; c.moveTo(g.x * p, -g.y * r); c.lineTo(h.x * p, -h.y * r); c.stroke() }, Kra: function(c, d) { var f = d.wg, g = d.lineCap, h = d.fillColor, k = d.lineWidth, n = d.as, p = d.lQ, r = d.i1, v = d.Bu; if (f != s) { var y = f[0], z = C.view.ia, D = C.view.pa; c.lineCap = g; h && (c.fillStyle = "rgba(" + (0 | h.r) + "," + (0 | h.g) + "," + (0 | h.b) + "," + h.a / 255 + ")"); k && (c.lineWidth = k * z); n && (c.strokeStyle = "rgba(" + (0 | n.r) + "," + (0 | n.g) + "," + (0 | n.b) + "," + n.a / 255 + ")"); c.beginPath(); c.moveTo(y.x * z, -y.y * D); g = 1; for (h = f.length; g < h; g++) c.lineTo(f[g].x * z, -f[g].y * D); p && c.closePath(); r && c.fill(); v && c.stroke() } }, clear: function() { this.$b.length = 0 } }); C.Nla = C.A.extend({ xz: 0, $b: s, Fr: s, Uba: s, Tba: s, cg: 1, Pj: s, C: s, Ac: t, qa: "DrawNodeWebGL", ek: A("C"), Yd: function(c, d) { d === m ? (this.C.src = c.src, this.C.ga = c.ga) : (this.C.src = c, this.C.ga = d) }, ctor: function() { C.A.prototype.ctor.call(this); this.$b = []; this.C = new C.Vm(C.Ic, C.Hc); this.Pj = C.color(255, 255, 255, 255); this.j() }, j: function() { return C.A.prototype.j.call(this) ? (this.shaderProgram = C.ug.Xd(C.C7), this.AF(64), this.Uba = C.t.createBuffer(), this.Ac = q) : t }, Su: x("cg"), UAa: A("cg"), tj: function(c) { var d = this.Pj; d.r = c.r; d.g = c.g; d.b = c.b; d.a = c.a }, lh: function() { return C.color(this.Pj.r, this.Pj.g, this.Pj.b, this.Pj.a) }, U_: function(c, d, f, g, h) { g = g || this.cg; h = h || this.lh(); h.a == s && (h.a = 255); c = [c, C.d(d.x, c.y), d, C.d(c.x, d.y)]; f == s ? this.gM(c, g, h, q) : this.Of(c, f, g, h) }, O_: function(c, d, f, g, h, k, n) { k = k || this.cg; n = n || this.lh(); n.a == s && (n.a = 255); var p = 2 * Math.PI / g, r = [], v; for (v = 0; v <= g; v++) { var y = v * p; r.push(C.d(d * Math.cos(y + f) + c.x, d * Math.sin(y + f) + c.y)) } h && r.push(C.d(c.x, c.y)); k *= 0.5; v = 0; for (c = r.length; v < c - 1; v++) this.V_(r[v], r[v + 1], k, n) }, T_: function(c, d, f, g, h, k) { h = h || this.cg; k = k || this.lh(); k.a == s && (k.a = 255); for (var n = [], p = 0, r = 0; r < g; r++) n.push(C.d(Math.pow(1 - p, 2) * c.x + 2 * (1 - p) * p * d.x + p * p * f.x, Math.pow(1 - p, 2) * c.y + 2 * (1 - p) * p * d.y + p * p * f.y)), p += 1 / g; n.push(C.d(f.x, f.y)); this.gM(n, h, k, t) }, P_: function(c, d, f, g, h, k, n) { k = k || this.cg; n = n || this.lh(); n.a == s && (n.a = 255); for (var p = [], r = 0, v = 0; v < h; v++) p.push(C.d(Math.pow(1 - r, 3) * c.x + 3 * Math.pow(1 - r, 2) * r * d.x + 3 * (1 - r) * r * r * f.x + r * r * r * g.x, Math.pow(1 - r, 3) * c.y + 3 * Math.pow(1 - r, 2) * r * d.y + 3 * (1 - r) * r * r * f.y + r * r * r * g.y)), r += 1 / h; p.push(C.d(g.x, g.y)); this.gM(p, k, n, t) }, N_: function(c, d, f, g) { this.zx(c, 0.5, d, f, g) }, zx: function(c, d, f, g, h) { g = g || this.cg; h = h || this.lh(); h.a == s && (h.a = 255); for (var k = [], n, p, r = 1 / c.length, v = 0; v < f + 1; v++) p = v / f, 1 == p ? (n = c.length - 1, p = 1) : (n = 0 | p / r, p = (p - r * n) / r), n = C.q_(C.og(c, n - 1), C.og(c, n - 0), C.og(c, n + 1), C.og(c, n + 2), d, p), k.push(n); g *= 0.5; c = 0; for (d = k.length; c < d - 1; c++) this.V_(k[c], k[c + 1], g, h) }, Rt: function() { var c = C.t; C.rf(C.Dv); c.bindBuffer(c.ARRAY_BUFFER, this.Uba); this.Ac && (c.bufferData(c.ARRAY_BUFFER, this.Fr, c.STREAM_DRAW), this.Ac = t); var d = C.Ug.BYTES_PER_ELEMENT; c.vertexAttribPointer(C.Lc, 2, c.FLOAT, t, d, 0); c.vertexAttribPointer(C.Hi, 4, c.UNSIGNED_BYTE, q, d, 8); c.vertexAttribPointer(C.Vg, 2, c.FLOAT, t, d, 12); c.drawArrays(c.TRIANGLES, 0, 3 * this.$b.length); C.nl() }, AF: function(c) { var d = this.$b; if (d.length + c > this.xz) { var f = C.be.BYTES_PER_ELEMENT; this.xz += Math.max(this.xz, c); if (d == s || 0 === d.length) this.$b = [], this.Fr = new ArrayBuffer(f * this.xz), this.Tba = new Uint8Array(this.Fr); else { c = []; for (var g = new ArrayBuffer(f * this.xz), h = 0; h < d.length; h++) c[h] = new C.be(d[h].a, d[h].b, d[h].H, g, h * f); this.Tba = new Uint8Array(g); this.Fr = g; this.$b = c } } }, ka: function() { C.Gm(this.C.src, this.C.ga); this.pd.Af(); this.pd.uJ(); this.Rt() }, Q_: function(c, d, f) { f = f || this.lh(); f.a == s && (f.a = 255); var g = { r: 0 | f.r, g: 0 | f.g, b: 0 | f.b, a: 0 | f.a }; f = { m: { x: c.x - d, y: c.y - d }, F: g, v: { xa: -1, ea: -1 } }; var h = { m: { x: c.x - d, y: c.y + d }, F: g, v: { xa: -1, ea: 1 } }, k = { m: { x: c.x + d, y: c.y + d }, F: g, v: { xa: 1, ea: 1 } }; c = { m: { x: c.x + d, y: c.y - d }, F: g, v: { xa: 1, ea: -1 } }; this.AF(6); this.$b.push(new C.be(f, h, k, this.Fr, this.$b.length * C.be.BYTES_PER_ELEMENT)); this.$b.push(new C.be(f, k, c, this.Fr, this.$b.length * C.be.BYTES_PER_ELEMENT)); this.Ac = q }, Mya: function(c, d, f) { if (c && 0 != c.length) { f = f || this.lh(); f.a == s && (f.a = 255); for (var g = 0, h = c.length; g < h; g++) this.Q_(c[g], d, f) } }, V_: function(c, d, f, g) { g = g || this.lh(); g.a == s && (g.a = 255); f = f || 0.5 * this.cg; this.AF(18); g = { r: 0 | g.r, g: 0 | g.g, b: 0 | g.b, a: 0 | g.a }; var h = C.Ii(c); d = C.Ii(d); c = C.JJ(C.mD(C.Ge(d, h))); var k = C.mD(c), n = C.Pg(c, f); f = C.Pg(k, f); var p = C.Fi(d, C.Ge(n, f)), r = C.Ge(d, n), v = C.Fi(d, n), y = C.Ge(h, n), z = C.Fi(h, n), D = C.Ge(h, C.Ge(n, f)), h = C.Fi(h, C.Fi(n, f)), E = C.be.BYTES_PER_ELEMENT, F = this.Fr, G = this.$b; G.push(new C.be({ m: C.Ge(d, C.Fi(n, f)), F: g, v: C.Mb(C.Bl(C.Fi(c, k))) }, { m: p, F: g, v: C.Mb(C.Ge(c, k)) }, { m: r, F: g, v: C.Mb(C.Bl(c)) }, F, G.length * E)); G.push(new C.be({ m: v, F: g, v: C.Mb(c) }, { m: p, F: g, v: C.Mb(C.Ge(c, k)) }, { m: r, F: g, v: C.Mb(C.Bl(c)) }, F, G.length * E)); G.push(new C.be({ m: v, F: g, v: C.Mb(c) }, { m: y, F: g, v: C.Mb(C.Bl(c)) }, { m: r, F: g, v: C.Mb(C.Bl(c)) }, F, G.length * E)); G.push(new C.be({ m: v, F: g, v: C.Mb(c) }, { m: y, F: g, v: C.Mb(C.Bl(c)) }, { m: z, F: g, v: C.Mb(c) }, F, G.length * E)); G.push(new C.be({ m: D, F: g, v: C.Mb(C.Ge(k, c)) }, { m: y, F: g, v: C.Mb(C.Bl(c)) }, { m: z, F: g, v: C.Mb(c) }, F, G.length * E)); G.push(new C.be({ m: D, F: g, v: C.Mb(C.Ge(k, c)) }, { m: h, F: g, v: C.Mb(C.Fi(c, k)) }, { m: z, F: g, v: C.Mb(c) }, F, G.length * E)); this.Ac = q }, Of: function(c, d, f, g) { if (d == s) this.gM(c, f, g, q); else { d.a == s && (d.a = 255); g.a == s && (g.a = 255); f = f || this.cg; f *= 0.5; d = { r: 0 | d.r, g: 0 | d.g, b: 0 | d.b, a: 0 | d.a }; g = { r: 0 | g.r, g: 0 | g.g, b: 0 | g.b, a: 0 | g.a }; var h = [], k, n, p, r, v = c.length; for (k = 0; k < v; k++) { n = C.Ii(c[(k - 1 + v) % v]); p = C.Ii(c[k]); r = C.Ii(c[(k + 1) % v]); var y = C.JJ(C.mD(C.Ge(p, n))); p = C.JJ(C.mD(C.Ge(r, p))); h[k] = { offset: C.Pg(C.Fi(y, p), 1 / (C.sja(y, p) + 1)), ds: p } } y = 0 < f; this.AF(3 * (3 * v - 2)); var z = C.be.BYTES_PER_ELEMENT, D = this.Fr, E = this.$b, F = y == t ? 0.5 : 0; for (k = 0; k < v - 2; k++) n = C.Ge(C.Ii(c[0]), C.Pg(h[0].offset, F)), p = C.Ge(C.Ii(c[k + 1]), C.Pg(h[k + 1].offset, F)), r = C.Ge(C.Ii(c[k + 2]), C.Pg(h[k + 2].offset, F)), E.push(new C.be({ m: n, F: d, v: C.Mb({ x: 0, y: 0 }) }, { m: p, F: d, v: C.Mb({ x: 0, y: 0 }) }, { m: r, F: d, v: C.Mb({ x: 0, y: 0 }) }, D, E.length * z)); for (k = 0; k < v; k++) { F = (k + 1) % v; n = C.Ii(c[k]); p = C.Ii(c[F]); r = h[k].ds; var G = h[k].offset, K = h[F].offset, F = y ? C.Ge(n, C.Pg(G, f)) : C.Ge(n, C.Pg(G, 0.5)), O = y ? C.Ge(p, C.Pg(K, f)) : C.Ge(p, C.Pg(K, 0.5)); n = y ? C.Fi(n, C.Pg(G, f)) : C.Fi(n, C.Pg(G, 0.5)); p = y ? C.Fi(p, C.Pg(K, f)) : C.Fi(p, C.Pg(K, 0.5)); y ? (E.push(new C.be({ m: F, F: g, v: C.Mb(C.Bl(r)) }, { m: O, F: g, v: C.Mb(C.Bl(r)) }, { m: p, F: g, v: C.Mb(r) }, D, E.length * z)), E.push(new C.be({ m: F, F: g, v: C.Mb(C.Bl(r)) }, { m: n, F: g, v: C.Mb(r) }, { m: p, F: g, v: C.Mb(r) }, D, E.length * z))) : (E.push(new C.be({ m: F, F: d, v: C.Mb({ x: 0, y: 0 }) }, { m: O, F: d, v: C.Mb({ x: 0, y: 0 }) }, { m: p, F: d, v: C.Mb(r) }, D, E.length * z)), E.push(new C.be({ m: F, F: d, v: C.Mb({ x: 0, y: 0 }) }, { m: n, F: d, v: C.Mb(r) }, { m: p, F: d, v: C.Mb(r) }, D, E.length * z))) } this.Ac = q } }, gM: function(c, d, f, g) { d = d || this.cg; f = f || this.Pj; f.a == s && (f.a = 255); d *= 0.5; if (! (0 >= d)) { f = { r: 0 | f.r, g: 0 | f.g, b: 0 | f.b, a: 0 | f.a }; var h = [], k, n, p, r, v = c.length; for (k = 0; k < v; k++) { n = C.Ii(c[(k - 1 + v) % v]); p = C.Ii(c[k]); r = C.Ii(c[(k + 1) % v]); var y = C.JJ(C.mD(C.Ge(p, n))); p = C.JJ(C.mD(C.Ge(r, p))); h[k] = { offset: C.Pg(C.Fi(y, p), 1 / (C.sja(y, p) + 1)), ds: p } } this.AF(3 * (3 * v - 2)); r = C.be.BYTES_PER_ELEMENT; var y = this.Fr, z = this.$b; g = g ? v: v - 1; for (k = 0; k < g; k++) { var D = (k + 1) % v; n = C.Ii(c[k]); p = C.Ii(c[D]); var E = h[k].ds, F = h[k].offset, D = h[D].offset, G = C.Ge(n, C.Pg(F, d)); n = C.Fi(n, C.Pg(F, d)); F = C.Fi(p, C.Pg(D, d)); z.push(new C.be({ m: G, F: f, v: C.Mb(C.Bl(E)) }, { m: C.Ge(p, C.Pg(D, d)), F: f, v: C.Mb(C.Bl(E)) }, { m: F, F: f, v: C.Mb(E) }, y, z.length * r)); z.push(new C.be({ m: G, F: f, v: C.Mb(C.Bl(E)) }, { m: n, F: f, v: C.Mb(E) }, { m: F, F: f, v: C.Mb(E) }, y, z.length * r)) } this.Ac = q } }, clear: function() { this.$b.length = 0; this.Ac = q } }); C.Tg = C.L == C.la ? C.Nla: C.Mla; C.Tg.create = function() { return new C.Tg }; C.Ms = function(c) { this.type = c; this.fillColor = this.wg = s; this.lineWidth = 0; this.as = s; this.lineCap = "butt"; this.Bu = this.i1 = this.lQ = t }; C.Tg.W7 = 0; C.Tg.ypa = 1; C.Tg.Js = 2; C.xy = -1; C.Yha = function(c, d) { c.shaderProgram = d; var f = c.children; if (f) for (var g = 0; g < f.length; g++) C.Yha(f[g], d) }; C.Tc = C.A.extend({ nx: 0, Yn: t, Ud: s, QF: t, ctor: function(c) { C.A.prototype.ctor.call(this); this.Ud = s; this.nx = 0; this.Yn = t; C.Tc.prototype.j.call(this, c || s) }, j: s, qa: "ClippingNode", cta: function(c) { this.Ud = c; this.nx = 1; this.Yn = t; C.Tc.MM = q; C.Tc.MM && (C.xy = C.t.getParameter(C.t.STENCIL_BITS), 0 >= C.xy && C.log("Stencil buffer is not enabled."), C.Tc.MM = t); return q }, bta: function(c) { this.Ud = c; this.nx = 1; this.Yn = t }, Z: function() { C.A.prototype.Z.call(this); this.Ud.Z() }, qj: function() { C.A.prototype.qj.call(this); this.Ud.qj() }, ph: function() { this.Ud.ph(); C.A.prototype.ph.call(this) }, Na: function() { this.Ud.Na(); C.A.prototype.Na.call(this) }, J: s, fx: function(c) { var d = c || C.t; if (1 > C.xy) C.A.prototype.J.call(this, c); else if (!this.Ud || !this.Ud.visible) this.Yn && C.A.prototype.J.call(this, c); else if (C.Tc.rn = -1, C.Tc.rn + 1 == C.xy) C.Tc.gx = q, C.Tc.gx && (C.log("Nesting more than " + C.xy + "stencils is not supported. Everything will be drawn without stencil for this node and its childs."), C.Tc.gx = t), C.A.prototype.J.call(this, c); else { C.Tc.rn++; var f = 1 << C.Tc.rn, g = f | f - 1, h = d.isEnabled(d.STENCIL_TEST), k = d.getParameter(d.STENCIL_WRITEMASK), n = d.getParameter(d.STENCIL_FUNC), p = d.getParameter(d.STENCIL_REF), r = d.getParameter(d.STENCIL_VALUE_MASK), v = d.getParameter(d.STENCIL_FAIL), y = d.getParameter(d.STENCIL_PASS_DEPTH_FAIL), z = d.getParameter(d.STENCIL_PASS_DEPTH_PASS); d.enable(d.STENCIL_TEST); d.stencilMask(f); var D = d.getParameter(d.DEPTH_WRITEMASK); d.depthMask(t); d.stencilFunc(d.NEVER, f, f); d.stencilOp(!this.Yn ? d.ZERO: d.REPLACE, d.KEEP, d.KEEP); C.Df.X_(C.d(0, 0), C.mga(), C.color(255, 255, 255, 255)); d.stencilFunc(d.NEVER, f, f); d.stencilOp(!this.Yn ? d.REPLACE: d.ZERO, d.KEEP, d.KEEP); if (1 > this.nx) { var f = C.ug.Xd(C.KK), E = d.getUniformLocation(f.Lx(), C.G8); C.N0(f.Lx()); f.sJ(E, this.nx); C.Yha(this.Ud, f) } C.Zr(); this.transform(); this.Ud.J(); C.Yr(); d.depthMask(D); d.stencilFunc(d.EQUAL, g, g); d.stencilOp(d.KEEP, d.KEEP, d.KEEP); C.A.prototype.J.call(this, c); d.stencilFunc(n, p, r); d.stencilOp(v, y, z); d.stencilMask(k); h || d.disable(d.STENCIL_TEST); C.Tc.rn-- } }, Hr: function(c) { if (!this.Ud || !this.Ud.visible) this.Yn && C.A.prototype.J.call(this, c); else { c = c || C.t; var d = c.canvas; if (this.Rv() || this.Ud instanceof C.u) { var f = C.Tc.TW(); f.width = d.width; f.height = d.height; f.getContext("2d").drawImage(d, 0, 0); c.save(); C.A.prototype.J.call(this, c); c.globalCompositeOperation = this.Yn ? "destination-out": "destination-in"; this.transform(c); this.Ud.J(); c.restore(); c.save(); c.setTransform(1, 0, 0, 1, 0, 0); c.globalCompositeOperation = "destination-over"; c.drawImage(f, 0, 0) } else { var f = this.l, g; c.save(); this.transform(c); this.Ud.J(c); this.Yn && (c.save(), c.setTransform(1, 0, 0, 1, 0, 0), c.moveTo(0, 0), c.lineTo(0, d.height), c.lineTo(d.width, d.height), c.lineTo(d.width, 0), c.lineTo(0, 0), c.restore()); c.clip(); this.Rv(q); var h = f.length; if (0 < h) { this.ed(); for (d = 0; d < h; d++) if (g = f[d], 0 > g.Wa) g.J(c); else break; for (this.ka(c); d < h; d++) f[d].J(c) } else this.ka(c); this.Rv(t) } c.restore() } }, VBa: A("Ud"), OR: s, rva: x("Ud"), qva: function(c) { this.Ud = c; var d = C.t; ! (c instanceof C.u) && c instanceof C.Tg && (c.ka = function() { var f = C.view.ia, g = C.view.pa; d.beginPath(); for (var h = 0; h < c.$b.length; h++) { var k = c.$b[h].wg, n = k[0]; d.moveTo(n.x * f, -n.y * g); for (var n = 1, p = k.length; n < p; n++) d.lineTo(k[n].x * f, -k[n].y * g) } }) }, HSa: A("nx"), m3a: x("nx"), uYa: A("Yn"), p4a: x("Yn"), Rv: function(c) { if (c === q || c === t) C.Tc.prototype.QF = c; return C.Tc.prototype.QF } }); H = C.Tc.prototype; C.L === C.la ? (H.j = H.cta, H.J = H.fx, H.OR = H.rva) : (H.j = H.bta, H.J = H.Hr, H.OR = H.qva); C.e(H, "stencil", H.VBa, H.OR); C.Tc.MM = s; C.Tc.gx = s; C.Tc.rn = s; C.Tc.GG = s; C.Tc.TW = function() { return C.Tc.GG || (C.Tc.GG = document.createElement("canvas")) }; C.Tc.create = function(c) { return new C.Tc(c) }; C.Ty = C.O.extend({ Wg: t, pp: 0, ua: s, da: s, om: s, gA: s, iw: t, pd: s, bW: 0, Ac: t, ctor: function(c, d, f) { C.LV(); this.Wg = t; this.pp = 0; this.da = this.ua = s; this.om = C.d(0, 0); this.gA = s; this.iw = t; this.pd = s; this.bW = 0; this.Ac = t; c !== m && this.Mp(c, d, f) }, zi: A("Wg"), setActive: function(c) { this.Wg = c; c || (c = C.Q, c.py(c.op)) }, oWa: A("pp"), gIa: x("pp"), CAa: function() { return C.size(this.ua.width, this.ua.height) }, j4a: function(c) { this.ua.width = parseInt(c.width); this.ua.height = parseInt(c.height) }, G0: function() { return C.d(this.om.x, this.om.y) }, g5a: function(c) { this.om.x = c.x; this.om.y = c.y }, NYa: A("iw"), n5a: function(c) { this.iw != c && (this.iw = c, this.cP()) }, Mp: function(c, d, f) { if (!d) { var g = C.Q.bI(), h = C.Cs(g.width), k = C.Cs(g.height), n = new Uint8Array(4 * h * k); if (!n) return C.log("cocos2d: CCGrid: not enough memory."), t; d = new C.Ma; d.Au(n, C.Ma.qq, h, k, g); if (!d) return C.log("cocos2d: CCGrid: error creating texture"), t } this.Wg = t; this.pp = 0; this.ua = c; this.da = d; this.iw = f || t; this.om.x = this.da.width / c.width; this.om.y = this.da.height / c.height; this.gA = new C.sma; if (!this.gA) return t; this.gA.yCa(this.da); this.pd = C.ug.Xd(C.yE); this.cP(); return q }, px: function() { this.bW = C.Q.op; this.TGa(); this.gA.mxa(this.da) }, mx: function(c) { this.gA.Fwa(this.da); C.Q.py(this.bW); if (c.Ix().h1()) { var d = c.Ep(); C.mC(d.x, d.y); c.Ix().yI(); C.mC( - d.x, -d.y) } C.yi(this.da); this.a_() }, a_: function() { C.log("cc.GridBase.blit(): Shall be overridden in subclass.") }, gR: function() { C.log("cc.GridBase.reuse(): Shall be overridden in subclass.") }, cP: function() { C.log("cc.GridBase.calculateVertexPoints(): Shall be overridden in subclass.") }, TGa: function() { var c = C.Q.bI(); C.t.viewport(0, 0, c.width, c.height); C.Op(C.mq); C.kC(); var d = new C.Ia; C.q1(d, 0, c.width, 0, c.height, -1, 1); C.lC(d); C.Op(C.lq); C.kC(); C.$ha() } }); C.Ty.create = function(c, d, f) { return new C.Ty(c, d, f) }; C.iT = C.Ty.extend({ qm: s, bc: s, jr: s, Qb: s, cl: s, lg: s, Vk: s, ctor: function(c, d, f) { C.Ty.prototype.ctor.call(this); this.Vk = this.lg = this.cl = this.Qb = this.jr = this.bc = this.qm = s; c !== m && this.Mp(c, d, f) }, uja: function(c) { (c.x !== (0 | c.x) || c.y !== (0 | c.y)) && C.log("cc.Grid3D.vertex() : Numbers must be integers"); c = 0 | 3 * (c.x * (this.ua.height + 1) + c.y); var d = this.bc; return new C.re(d[c], d[c + 1], d[c + 2]) }, uf: function(c) { (c.x !== (0 | c.x) || c.y !== (0 | c.y)) && C.log("cc.Grid3D.originalVertex() : Numbers must be integers"); c = 0 | 3 * (c.x * (this.ua.height + 1) + c.y); var d = this.jr; return new C.re(d[c], d[c + 1], d[c + 2]) }, wh: function(c, d) { (c.x !== (0 | c.x) || c.y !== (0 | c.y)) && C.log("cc.Grid3D.setVertex() : Numbers must be integers"); var f = 0 | 3 * (c.x * (this.ua.height + 1) + c.y), g = this.bc; g[f] = d.x; g[f + 1] = d.y; g[f + 2] = d.f; this.Ac = q }, a_: function() { var c = this.ua.width * this.ua.height; C.rf(C.Ch | C.fz); this.pd.Af(); this.pd.uJ(); var d = C.t, f = this.Ac; d.bindBuffer(d.ARRAY_BUFFER, this.lg); f && d.bufferData(d.ARRAY_BUFFER, this.bc, d.DYNAMIC_DRAW); d.vertexAttribPointer(C.Lc, 3, d.FLOAT, t, 0, 0); d.bindBuffer(d.ARRAY_BUFFER, this.cl); f && d.bufferData(d.ARRAY_BUFFER, this.qm, d.DYNAMIC_DRAW); d.vertexAttribPointer(C.Vg, 2, d.FLOAT, t, 0, 0); d.bindBuffer(d.ELEMENT_ARRAY_BUFFER, this.Vk); f && d.bufferData(d.ELEMENT_ARRAY_BUFFER, this.Qb, d.STATIC_DRAW); d.drawElements(d.TRIANGLES, 6 * c, d.UNSIGNED_SHORT, 0); f && (this.Ac = t); C.nl() }, gR: function() { if (0 < this.pp) { for (var c = this.jr, d = this.bc, f = 0, g = this.bc.length; f < g; f++) c[f] = d[f]; --this.pp } }, cP: function() { var c = C.t, d = this.da.pixelsWidth, f = this.da.pixelsHeight, g = this.da.o.height, h = this.ua, k = (h.width + 1) * (h.height + 1); this.bc = new Float32Array(3 * k); this.qm = new Float32Array(2 * k); this.Qb = new Uint16Array(6 * h.width * h.height); this.lg && c.deleteBuffer(this.lg); this.lg = c.createBuffer(); this.cl && c.deleteBuffer(this.cl); this.cl = c.createBuffer(); this.Vk && c.deleteBuffer(this.Vk); this.Vk = c.createBuffer(); for (var n, p, r = this.Qb, v = this.qm, y = this.iw, z = this.bc, k = 0; k < h.width; ++k) for (n = 0; n < h.height; ++n) { var D = n * h.width + k; p = k * this.om.x; var E = p + this.om.x, F = n * this.om.y, G = F + this.om.y, K = k * (h.height + 1) + n, O = (k + 1) * (h.height + 1) + n, U = (k + 1) * (h.height + 1) + (n + 1), X = k * (h.height + 1) + (n + 1); r[6 * D] = K; r[6 * D + 1] = O; r[6 * D + 2] = X; r[6 * D + 3] = O; r[6 * D + 4] = U; r[6 * D + 5] = X; var D = [3 * K, 3 * O, 3 * U, 3 * X], N = [{ x: p, y: F, f: 0 }, { x: E, y: F, f: 0 }, { x: E, y: G, f: 0 }, { x: p, y: G, f: 0 }], K = [2 * K, 2 * O, 2 * U, 2 * X], E = [C.d(p, F), C.d(E, F), C.d(E, G), C.d(p, G)]; for (p = 0; 4 > p; ++p) z[D[p]] = N[p].x, z[D[p] + 1] = N[p].y, z[D[p] + 2] = N[p].f, v[K[p]] = E[p].x / d, v[K[p] + 1] = y ? (g - E[p].y) / f: E[p].y / f } this.jr = new Float32Array(this.bc); c.bindBuffer(c.ARRAY_BUFFER, this.lg); c.bufferData(c.ARRAY_BUFFER, this.bc, c.DYNAMIC_DRAW); c.bindBuffer(c.ARRAY_BUFFER, this.cl); c.bufferData(c.ARRAY_BUFFER, this.qm, c.DYNAMIC_DRAW); c.bindBuffer(c.ELEMENT_ARRAY_BUFFER, this.Vk); c.bufferData(c.ELEMENT_ARRAY_BUFFER, this.Qb, c.STATIC_DRAW); this.Ac = q } }); C.iT.create = function(c, d, f) { return new C.iT(c, d, f) }; C.yU = C.Ty.extend({ qm: s, bc: s, jr: s, Qb: s, cl: s, lg: s, Vk: s, ctor: function(c, d, f) { C.Ty.prototype.ctor.call(this); this.Vk = this.lg = this.cl = this.Qb = this.jr = this.bc = this.qm = s; c !== m && this.Mp(c, d, f) }, Xia: function(c) { (c.x !== (0 | c.x) || c.y !== (0 | c.y)) && C.log("cc.TiledGrid3D.tile() : Numbers must be integers"); c = 12 * (this.ua.height * c.x + c.y); var d = this.bc; return new C.FK(new C.re(d[c], d[c + 1], d[c + 2]), new C.re(d[c + 3], d[c + 4], d[c + 5]), new C.re(d[c + 6], d[c + 7], d[c + 8]), new C.re(d[c + 9], d[c + 10], d[c + 11])) }, sl: function(c) { (c.x !== (0 | c.x) || c.y !== (0 | c.y)) && C.log("cc.TiledGrid3D.originalTile() : Numbers must be integers"); c = 12 * (this.ua.height * c.x + c.y); var d = this.jr; return new C.FK(new C.re(d[c], d[c + 1], d[c + 2]), new C.re(d[c + 3], d[c + 4], d[c + 5]), new C.re(d[c + 6], d[c + 7], d[c + 8]), new C.re(d[c + 9], d[c + 10], d[c + 11])) }, Aj: function(c, d) { (c.x !== (0 | c.x) || c.y !== (0 | c.y)) && C.log("cc.TiledGrid3D.setTile() : Numbers must be integers"); var f = 12 * (this.ua.height * c.x + c.y), g = this.bc; g[f] = d.T.x; g[f + 1] = d.T.y; g[f + 2] = d.T.f; g[f + 3] = d.Y.x; g[f + 4] = d.Y.y; g[f + 5] = d.Y.f; g[f + 6] = d.X.x; g[f + 7] = d.X.y; g[f + 8] = d.X.f; g[f + 9] = d.V.x; g[f + 10] = d.V.y; g[f + 11] = d.V.f; this.Ac = q }, a_: function() { var c = this.ua.width * this.ua.height; this.pd.Af(); this.pd.uJ(); var d = C.t, f = this.Ac; C.rf(C.Ch | C.fz); d.bindBuffer(d.ARRAY_BUFFER, this.lg); f && d.bufferData(d.ARRAY_BUFFER, this.bc, d.DYNAMIC_DRAW); d.vertexAttribPointer(C.Lc, 3, d.FLOAT, t, 0, this.bc); d.bindBuffer(d.ARRAY_BUFFER, this.cl); f && d.bufferData(d.ARRAY_BUFFER, this.qm, d.DYNAMIC_DRAW); d.vertexAttribPointer(C.Vg, 2, d.FLOAT, t, 0, this.qm); d.bindBuffer(d.ELEMENT_ARRAY_BUFFER, this.Vk); f && d.bufferData(d.ELEMENT_ARRAY_BUFFER, this.Qb, d.STATIC_DRAW); d.drawElements(d.TRIANGLES, 6 * c, d.UNSIGNED_SHORT, 0); f && (this.Ac = t); C.nl() }, gR: function() { if (0 < this.pp) { for (var c = this.bc, d = this.jr, f = 0; f < c.length; f++) d[f] = c[f]; --this.pp } }, cP: function() { var c = this.da.pixelsWidth, d = this.da.pixelsHeight, f = this.da.o.height, g = this.ua, h = g.width * g.height; this.bc = new Float32Array(12 * h); this.qm = new Float32Array(8 * h); this.Qb = new Uint16Array(6 * h); var k = C.t; this.lg && k.deleteBuffer(this.lg); this.lg = k.createBuffer(); this.cl && k.deleteBuffer(this.cl); this.cl = k.createBuffer(); this.Vk && k.deleteBuffer(this.Vk); this.Vk = k.createBuffer(); var n, p, r = 0, v = this.om, y = this.bc, z = this.qm, D = this.iw; for (n = 0; n < g.width; n++) for (p = 0; p < g.height; p++) { var E = n * v.x, F = E + v.x, G = p * v.y, K = G + v.y; y[12 * r] = E; y[12 * r + 1] = G; y[12 * r + 2] = 0; y[12 * r + 3] = F; y[12 * r + 4] = G; y[12 * r + 5] = 0; y[12 * r + 6] = E; y[12 * r + 7] = K; y[12 * r + 8] = 0; y[12 * r + 9] = F; y[12 * r + 10] = K; y[12 * r + 11] = 0; var O = G, U = K; D && (O = f - G, U = f - K); z[8 * r] = E / c; z[8 * r + 1] = O / d; z[8 * r + 2] = F / c; z[8 * r + 3] = O / d; z[8 * r + 4] = E / c; z[8 * r + 5] = U / d; z[8 * r + 6] = F / c; z[8 * r + 7] = U / d; r++ } c = this.Qb; for (n = 0; n < h; n++) c[6 * n + 0] = 4 * n + 0, c[6 * n + 1] = 4 * n + 1, c[6 * n + 2] = 4 * n + 2, c[6 * n + 3] = 4 * n + 1, c[6 * n + 4] = 4 * n + 2, c[6 * n + 5] = 4 * n + 3; this.jr = new Float32Array(this.bc); k.bindBuffer(k.ARRAY_BUFFER, this.lg); k.bufferData(k.ARRAY_BUFFER, this.bc, k.DYNAMIC_DRAW); k.bindBuffer(k.ARRAY_BUFFER, this.cl); k.bufferData(k.ARRAY_BUFFER, this.qm, k.DYNAMIC_DRAW); k.bindBuffer(k.ELEMENT_ARRAY_BUFFER, this.Vk); k.bufferData(k.ELEMENT_ARRAY_BUFFER, this.Qb, k.DYNAMIC_DRAW); this.Ac = q } }); C.yU.create = function(c, d, f) { return new C.yU(c, d, f) }; C.sma = C.O.extend({ aL: s, hp: s, Eaa: s, fA: s, ctor: function() { C.LV(); this.fA = C.t; this.Eaa = [0, 0, 0, 0]; this.hp = s; this.aL = this.fA.createFramebuffer() }, yCa: function(c) { var d = this.fA; this.hp = d.getParameter(d.FRAMEBUFFER_BINDING); d.bindFramebuffer(d.FRAMEBUFFER, this.aL); d.framebufferTexture2D(d.FRAMEBUFFER, d.COLOR_ATTACHMENT0, d.TEXTURE_2D, c.Sh, 0); d.checkFramebufferStatus(d.FRAMEBUFFER) != d.FRAMEBUFFER_COMPLETE && C.log("Frame Grabber: could not attach texture to frmaebuffer"); d.bindFramebuffer(d.FRAMEBUFFER, this.hp) }, mxa: function() { var c = this.fA; this.hp = c.getParameter(c.FRAMEBUFFER_BINDING); c.bindFramebuffer(c.FRAMEBUFFER, this.aL); this.Eaa = c.getParameter(c.COLOR_CLEAR_VALUE); c.clearColor(0, 0, 0, 0); c.clear(c.COLOR_BUFFER_BIT | c.DEPTH_BUFFER_BIT) }, Fwa: function() { var c = this.fA; c.bindFramebuffer(c.FRAMEBUFFER, this.hp); c.colorMask(q, q, q, q) }, vRa: function() { this.fA.deleteFramebuffer(this.aL) } }); C.Gy = -1; C.xg = C.O.extend({ originalTarget: s, target: s, tag: C.Gy, ctor: function() { this.target = this.originalTarget = s; this.tag = C.Gy }, copy: function() { C.log("copy is deprecated. Please use clone instead."); return this.s() }, s: function() { var c = new C.xg; c.originalTarget = s; c.target = s; c.tag = this.tag; return c }, ik: B(q), R: function(c) { this.target = this.originalTarget = c }, stop: function() { this.target = s }, step: function() { C.log("[Action step]. override me") }, update: function() { C.log("[Action update]. override me") }, zea: A("target"), pJ: x("target"), HVa: A("originalTarget"), J4a: x("originalTarget"), Fm: A("tag"), Qm: x("tag"), fR: u(), rh: u() }); C.xg.create = function() { return new C.xg }; C.kq = C.xg.extend({ D: 0, ctor: function() { C.xg.prototype.ctor.call(this); this.D = 0 }, Rr: function() { return this.D * (this.ke || 1) }, Wh: x("D"), reverse: function() { C.log("cocos2d: FiniteTimeAction#reverse: Implement me"); return s }, s: function() { return new C.kq } }); C.AE = C.xg.extend({ Hf: 0, Cc: s, ctor: function(c, d) { C.xg.prototype.ctor.call(this); this.Hf = 0; this.Cc = s; c && this.Ba(c, d) }, MP: A("Hf"), Xh: x("Hf"), Ba: function(c, d) { c || e("cc.Speed.initWithAction(): action must be non nil"); this.Cc = c; this.Hf = d; return q }, s: function() { var c = new C.AE; c.Ba(this.Cc.s(), this.Hf); return c }, R: function(c) { C.xg.prototype.R.call(this, c); this.Cc.R(c) }, stop: function() { this.Cc.stop(); C.xg.prototype.stop.call(this) }, step: function(c) { this.Cc.step(c * this.Hf) }, ik: function() { return this.Cc.ik() }, reverse: function() { return C.AE.create(this.Cc.reverse(), this.Hf) }, Hha: function(c) { this.Cc != c && (this.Cc = c) }, r0: A("Cc") }); C.AE.create = function(c, d) { return new C.AE(c, d) }; C.tK = C.xg.extend({ Zz: s, vz: t, AL: t, GM: s, GF: s, Px: 0, dy: 0, zy: 0, rx: 0, IZ: s, ctor: function(c, d) { C.xg.prototype.ctor.call(this); this.Zz = s; this.AL = this.vz = t; this.GF = this.GM = s; this.rx = this.zy = this.dy = this.Px = 0; this.IZ = C.rect(0, 0, 0, 0); c && (d ? this.jC(c, d) : this.jC(c)) }, s: function() { var c = new C.tK, d = this.IZ; c.jC(this.Zz, new C.az(d.x, d.y, d.width, d.height)); return c }, lYa: A("vz"), z3a: x("vz"), jC: function(c, d) { c || e("cc.Follow.initWithAction(): followedNode must be non nil"); d = d || C.rect(0, 0, 0, 0); this.Zz = c; this.IZ = d; this.vz = !C.wG(d); this.AL = t; var f = C.Q.aa; this.GF = C.d(f.width, f.height); this.GM = C.Wp(this.GF, 0.5); this.vz && (this.Px = -(d.x + d.width - this.GF.x), this.dy = -d.x, this.zy = -d.y, this.rx = -(d.y + d.height - this.GF.y), this.dy < this.Px && (this.dy = this.Px = (this.Px + this.dy) / 2), this.zy < this.rx && (this.zy = this.rx = (this.zy + this.rx) / 2), this.zy == this.rx && this.Px == this.dy && (this.AL = q)); return q }, step: function() { var c = this.Zz.x, d = this.Zz.y, c = this.GM.x - c, d = this.GM.y - d; this.vz ? this.AL || this.target.p(C.Nf(c, this.Px, this.dy), C.Nf(d, this.rx, this.zy)) : this.target.p(c, d) }, ik: function() { return ! this.Zz.running }, stop: function() { this.target = s; C.xg.prototype.stop.call(this) } }); C.tK.create = function(c, d) { return new C.tK(c, d) }; C.N = C.kq.extend({ Bc: 0, wM: t, Wl: s, ke: 1, xG: t, UA: t, Hf: 1, JG: t, ctor: function(c) { this.ke = this.Hf = 1; this.xG = t; this.MAX_VALUE = 2; this.JG = this.UA = t; C.kq.prototype.ctor.call(this); c !== m && this.k(c) }, rUa: A("Bc"), k: function(c) { this.D = 0 === c ? C.rK: c; this.Bc = 0; return this.wM = q }, ik: function() { return this.Bc >= this.D }, vb: function(c) { c.xG = this.xG; c.Hf = this.Hf; c.ke = this.ke; c.Wl = this.Wl; c.JG = this.JG; c.UA = this.UA }, si: function(c) { if (this.Wl) { c.Wl = []; for (var d = 0; d < this.Wl.length; d++) c.Wl.push(this.Wl[d].reverse()) } }, s: function() { var c = new C.N(this.D); this.vb(c); return c }, ra: function(c) { this.Wl ? this.Wl.length = 0 : this.Wl = []; for (var d = 0; d < arguments.length; d++) this.Wl.push(arguments[d]); return this }, Bg: function(c) { var d = this.Wl; if (!d || 0 === d.length) return c; for (var f = 0, g = d.length; f < g; f++) c = d[f].ra(c); return c }, step: function(c) { this.wM ? (this.wM = t, this.Bc = 0) : this.Bc += c; c = this.Bc / (1.192092896E-7 < this.D ? this.D: 1.192092896E-7); c = 1 > c ? c: 1; this.update(0 < c ? c: 0); this.UA && (1 < this.ke && this.ik()) && (this.xG || this.ke--, this.R(this.target), this.step(this.Bc - this.D)) }, R: function(c) { C.xg.prototype.R.call(this, c); this.Bc = 0; this.wM = q }, reverse: function() { C.log("cc.IntervalAction: reverse not implemented."); return s }, fy: function() { C.log("cc.ActionInterval.setAmplitudeRate(): it should be overridden in subclass.") }, Fx: function() { C.log("cc.ActionInterval.getAmplitudeRate(): it should be overridden in subclass."); return 0 }, speed: function(c) { if (0 >= c) return C.log("The speed parameter error"), this; this.JG = q; this.Hf *= c; return this }, MP: A("Hf"), Xh: function(c) { this.Hf = c; return this }, repeat: function(c) { c = Math.round(c); if (isNaN(c) || 1 > c) return C.log("The repeat parameter error"), this; this.UA = q; this.ke *= c; return this }, cR: function() { this.UA = q; this.ke = this.MAX_VALUE; this.xG = q; return this } }); C.N.create = function(c) { return new C.N(c) }; C.La = C.N.extend({ Lo: s, Lba: s, ZF: 0, ctor: function(c) { C.N.prototype.ctor.call(this); this.Lo = []; var d = c instanceof Array ? c: arguments, f = d.length - 1; 0 <= f && d[f] == s && C.log("parameters should not be ending with null in Javascript"); if (0 <= f) { for (var g = d[0], h = 1; h < f; h++) d[h] && (g = C.La.wq(g, d[h])); this.Nx(g, d[f]) } }, Nx: function(c, d) { (!c || !d) && e("cc.Sequence.initWithTwoActions(): arguments must all be non nil"); this.k(c.D + d.D); this.Lo[0] = c; this.Lo[1] = d; return q }, s: function() { var c = new C.La; this.vb(c); c.Nx(this.Lo[0].s(), this.Lo[1].s()); return c }, R: function(c) { C.N.prototype.R.call(this, c); this.Lba = this.Lo[0].D / this.D; this.ZF = -1 }, stop: function() { - 1 !== this.ZF && this.Lo[this.ZF].stop(); C.xg.prototype.stop.call(this) }, update: function(c) { c = this.Bg(c); var d = 0, f = this.Lba, g = this.Lo, h = this.ZF; c < f ? (c = 0 !== f ? c / f: 1, 0 === d && 1 === h && (g[1].update(0), g[1].stop())) : (d = 1, c = 1 === f ? 1 : (c - f) / (1 - f), -1 === h && (g[0].R(this.target), g[0].update(1), g[0].stop()), h || (g[0].update(1), g[0].stop())); h === d && g[d].ik() || (h !== d && g[d].R(this.target), g[d].update(c), this.ZF = d) }, reverse: function() { var c = C.La.wq(this.Lo[1].reverse(), this.Lo[0].reverse()); this.vb(c); this.si(c); return c } }); C.La.create = function(c) { var d = c instanceof Array ? c: arguments; 0 < d.length && d[d.length - 1] == s && C.log("parameters should not be ending with null in Javascript"); for (var f = d[0], g = 1; g < d.length; g++) d[g] && (f = C.La.wq(f, d[g])); return f }; C.La.wq = function(c, d) { var f = new C.La; f.Nx(c, d); return f }; C.uE = C.N.extend({ ke: 0, ku: 0, AX: 0, X8: t, Cc: s, ctor: function(c, d) { C.N.prototype.ctor.call(this); d !== m && this.Ba(c, d) }, Ba: function(c, d) { return this.k(c.D * d) ? (this.ke = d, this.Cc = c, c instanceof C.yh && (this.X8 = q, this.ke -= 1), this.ku = 0, q) : t }, s: function() { var c = new C.uE; this.vb(c); c.Ba(this.Cc.s(), this.ke); return c }, R: function(c) { this.ku = 0; this.AX = this.Cc.D / this.D; C.N.prototype.R.call(this, c); this.Cc.R(c) }, stop: function() { this.Cc.stop(); C.xg.prototype.stop.call(this) }, update: function(c) { c = this.Bg(c); var d = this.Cc, f = this.D, g = this.ke, h = this.AX; if (c >= h) { for (; c > h && this.ku < g;) d.update(1), this.ku++, d.stop(), d.R(this.target), this.AX = h += d.D / f; 1 <= c && this.ku < g && this.ku++; this.X8 || (this.ku === g ? (d.update(1), d.stop()) : d.update(c - (h - d.D / f))) } else d.update(c * g % 1) }, ik: function() { return this.ku == this.ke }, reverse: function() { var c = C.uE.create(this.Cc.reverse(), this.ke); this.vb(c); this.si(c); return c }, Hha: function(c) { this.Cc != c && (this.Cc = c) }, r0: A("Cc") }); C.uE.create = function(c, d) { return new C.uE(c, d) }; C.vE = C.N.extend({ Cc: s, ctor: function(c) { C.N.prototype.ctor.call(this); this.Cc = s; c && this.Ba(c) }, Ba: function(c) { c || e("cc.RepeatForever.initWithAction(): action must be non null"); this.Cc = c; return q }, s: function() { var c = new C.vE; this.vb(c); c.Ba(this.Cc.s()); return c }, R: function(c) { C.N.prototype.R.call(this, c); this.Cc.R(c) }, step: function(c) { var d = this.Cc; d.step(c); d.ik() && (d.R(this.target), d.step(d.Bc - d.D)) }, ik: B(t), reverse: function() { var c = C.vE.create(this.Cc.reverse()); this.vb(c); this.si(c); return c }, Hha: function(c) { this.Cc != c && (this.Cc = c) }, r0: A("Cc") }); C.vE.create = function(c) { return new C.vE(c) }; C.ci = C.N.extend({ ir: s, Gr: s, ctor: function(c) { C.N.prototype.ctor.call(this); this.Gr = this.ir = s; var d = c instanceof Array ? c: arguments, f = d.length - 1; 0 <= f && d[f] == s && C.log("parameters should not be ending with null in Javascript"); if (0 <= f) { for (var g = d[0], h = 1; h < f; h++) d[h] && (g = C.ci.wq(g, d[h])); this.Nx(g, d[f]) } }, Nx: function(c, d) { (!c || !d) && e("cc.Spawn.initWithTwoActions(): arguments must all be non null"); var f = t, g = c.D, h = d.D; this.k(Math.max(g, h)) && (this.ir = c, this.Gr = d, g > h ? this.Gr = C.La.wq(d, C.fd.create(g - h)) : g < h && (this.ir = C.La.wq(c, C.fd.create(h - g))), f = q); return f }, s: function() { var c = new C.ci; this.vb(c); c.Nx(this.ir.s(), this.Gr.s()); return c }, R: function(c) { C.N.prototype.R.call(this, c); this.ir.R(c); this.Gr.R(c) }, stop: function() { this.ir.stop(); this.Gr.stop(); C.xg.prototype.stop.call(this) }, update: function(c) { c = this.Bg(c); this.ir && this.ir.update(c); this.Gr && this.Gr.update(c) }, reverse: function() { var c = C.ci.wq(this.ir.reverse(), this.Gr.reverse()); this.vb(c); this.si(c); return c } }); C.ci.create = function(c) { var d = c instanceof Array ? c: arguments; 0 < d.length && d[d.length - 1] == s && C.log("parameters should not be ending with null in Javascript"); for (var f = d[0], g = 1; g < d.length; g++) d[g] != s && (f = C.ci.wq(f, d[g])); return f }; C.ci.wq = function(c, d) { var f = new C.ci; f.Nx(c, d); return f }; C.wE = C.N.extend({ hM: 0, LG: 0, K9: 0, nW: 0, dB: 0, L9: 0, ctor: function(c, d, f) { C.N.prototype.ctor.call(this); d !== m && this.k(c, d, f) }, k: function(c, d, f) { return C.N.prototype.k.call(this, c) ? (this.hM = d || 0, this.nW = f || this.hM, q) : t }, s: function() { var c = new C.wE; this.vb(c); c.k(this.D, this.hM, this.nW); return c }, R: function(c) { C.N.prototype.R.call(this, c); var d = c.rotationX % 360, f = this.hM - d; 180 < f && (f -= 360); - 180 > f && (f += 360); this.LG = d; this.K9 = f; this.dB = c.rotationY % 360; c = this.nW - this.dB; 180 < c && (c -= 360); - 180 > c && (c += 360); this.L9 = c }, reverse: function() { C.log("cc.RotateTo.reverse(): it should be overridden in subclass.") }, update: function(c) { c = this.Bg(c); this.target && (this.target.rotationX = this.LG + this.K9 * c, this.target.rotationY = this.dB + this.L9 * c) } }); C.wE.create = function(c, d, f) { return new C.wE(c, d, f) }; C.Ds = C.N.extend({ cn: 0, LG: 0, jL: 0, dB: 0, ctor: function(c, d, f) { C.N.prototype.ctor.call(this); d !== m && this.k(c, d, f) }, k: function(c, d, f) { return C.N.prototype.k.call(this, c) ? (this.cn = d || 0, this.jL = f || this.cn, q) : t }, s: function() { var c = new C.Ds; this.vb(c); c.k(this.D, this.cn, this.jL); return c }, R: function(c) { C.N.prototype.R.call(this, c); this.LG = c.rotationX; this.dB = c.rotationY }, update: function(c) { c = this.Bg(c); this.target && (this.target.rotationX = this.LG + this.cn * c, this.target.rotationY = this.dB + this.jL * c) }, reverse: function() { var c = C.Ds.create(this.D, -this.cn, -this.jL); this.vb(c); this.si(c); return c } }); C.Ds.create = function(c, d, f) { var g = new C.Ds; g.k(c, d, f); return g }; C.Dk = C.N.extend({ kp: s, of: s, Ff: s, ctor: function(c, d, f) { C.N.prototype.ctor.call(this); this.kp = C.d(0, 0); this.of = C.d(0, 0); this.Ff = C.d(0, 0); d !== m && this.k(c, d, f) }, k: function(c, d, f) { return C.N.prototype.k.call(this, c) ? (d.x !== m && (f = d.y, d = d.x), this.kp.x = d, this.kp.y = f, q) : t }, s: function() { var c = new C.Dk; this.vb(c); c.k(this.D, this.kp); return c }, R: function(c) { C.N.prototype.R.call(this, c); var d = c.Rc(); c = c.Vd(); this.Ff.x = d; this.Ff.y = c; this.of.x = d; this.of.y = c }, update: function(c) { c = this.Bg(c); if (this.target) { var d = this.kp.x * c; c *= this.kp.y; var f = this.of; if (C.iK) { var g = this.target.Vd(), h = this.Ff; f.x = f.x + this.target.Rc() - h.x; f.y = f.y + g - h.y; d += f.x; c += f.y; h.x = d; h.y = c; this.target.p(d, c) } else this.target.p(f.x + d, f.y + c) } }, reverse: function() { var c = C.Dk.create(this.D, C.d( - this.kp.x, -this.kp.y)); this.vb(c); this.si(c); return c } }); C.Dk.create = function(c, d, f) { return new C.Dk(c, d, f) }; C.Bs = C.Dk.extend({ Sk: s, ctor: function(c, d, f) { C.Dk.prototype.ctor.call(this); this.Sk = C.d(0, 0); d !== m && this.k(c, d, f) }, k: function(c, d, f) { return C.Dk.prototype.k.call(this, c, d, f) ? (d.x !== m && (f = d.y, d = d.x), this.Sk.x = d, this.Sk.y = f, q) : t }, s: function() { var c = new C.Bs; this.vb(c); c.k(this.D, this.Sk); return c }, R: function(c) { C.Dk.prototype.R.call(this, c); this.kp.x = this.Sk.x - c.Rc(); this.kp.y = this.Sk.y - c.Vd() } }); C.Bs.create = function(c, d, f) { return new C.Bs(c, d, f) }; C.rq = C.N.extend({ ig: 0, jg: 0, dO: 0, eO: 0, nM: 0, oM: 0, Nj: 0, Oj: 0, ctor: function(c, d, f) { C.N.prototype.ctor.call(this); f !== m && this.k(c, d, f) }, k: function(c, d, f) { var g = t; C.N.prototype.k.call(this, c) && (this.nM = d, this.oM = f, g = q); return g }, s: function() { var c = new C.rq; this.vb(c); c.k(this.D, this.nM, this.oM); return c }, R: function(c) { C.N.prototype.R.call(this, c); this.dO = c.skewX % 180; this.Nj = this.nM - this.dO; 180 < this.Nj && (this.Nj -= 360); - 180 > this.Nj && (this.Nj += 360); this.eO = c.skewY % 360; this.Oj = this.oM - this.eO; 180 < this.Oj && (this.Oj -= 360); - 180 > this.Oj && (this.Oj += 360) }, update: function(c) { c = this.Bg(c); this.target.skewX = this.dO + this.Nj * c; this.target.skewY = this.eO + this.Oj * c } }); C.rq.create = function(c, d, f) { return new C.rq(c, d, f) }; C.zE = C.rq.extend({ ctor: function(c, d, f) { C.rq.prototype.ctor.call(this); f !== m && this.k(c, d, f) }, k: function(c, d, f) { var g = t; C.rq.prototype.k.call(this, c, d, f) && (this.ig = d, this.jg = f, g = q); return g }, s: function() { var c = new C.zE; this.vb(c); c.k(this.D, this.ig, this.jg); return c }, R: function(c) { C.rq.prototype.R.call(this, c); this.Nj = this.ig; this.Oj = this.jg; this.nM = this.dO + this.Nj; this.oM = this.eO + this.Oj }, reverse: function() { var c = C.zE.create(this.D, -this.ig, -this.jg); this.vb(c); this.si(c); return c } }); C.zE.create = function(c, d, f) { var g = new C.zE; g && g.k(c, d, f); return g }; C.Ao = C.N.extend({ of: s, Wo: s, RF: 0, ar: 0, Ff: s, ctor: function(c, d, f, g, h) { C.N.prototype.ctor.call(this); this.of = C.d(0, 0); this.Ff = C.d(0, 0); this.Wo = C.d(0, 0); g !== m && this.k(c, d, f, g, h) }, k: function(c, d, f, g, h) { return C.N.prototype.k.call(this, c) ? (h === m && (h = g, g = f, f = d.y, d = d.x), this.Wo.x = d, this.Wo.y = f, this.RF = g, this.ar = h, q) : t }, s: function() { var c = new C.Ao; this.vb(c); c.k(this.D, this.Wo, this.RF, this.ar); return c }, R: function(c) { C.N.prototype.R.call(this, c); var d = c.Rc(); c = c.Vd(); this.Ff.x = d; this.Ff.y = c; this.of.x = d; this.of.y = c }, update: function(c) { c = this.Bg(c); if (this.target) { var d = c * this.ar % 1, d = 4 * this.RF * d * (1 - d), d = d + this.Wo.y * c; c *= this.Wo.x; var f = this.of; if (C.iK) { var g = this.target.Vd(), h = this.Ff; f.x = f.x + this.target.Rc() - h.x; f.y = f.y + g - h.y; c += f.x; d += f.y; h.x = c; h.y = d; this.target.p(c, d) } else this.target.p(f.x + c, f.y + d) } }, reverse: function() { var c = C.Ao.create(this.D, C.d( - this.Wo.x, -this.Wo.y), this.RF, this.ar); this.vb(c); this.si(c); return c } }); C.Ao.create = function(c, d, f, g, h) { return new C.Ao(c, d, f, g, h) }; C.uK = C.Ao.extend({ Sk: s, ctor: function(c, d, f, g, h) { C.Ao.prototype.ctor.call(this); this.Sk = C.d(0, 0); g !== m && this.k(c, d, f, g, h) }, k: function(c, d, f, g, h) { return C.Ao.prototype.k.call(this, c, d, f, g, h) ? (h === m && (f = d.y, d = d.x), this.Sk.x = d, this.Sk.y = f, q) : t }, R: function(c) { C.Ao.prototype.R.call(this, c); this.Wo.x = this.Sk.x - this.of.x; this.Wo.y = this.Sk.y - this.of.y }, s: function() { var c = new C.uK; this.vb(c); c.k(this.D, this.Sk, this.RF, this.ar); return c } }); C.uK.create = function(c, d, f, g, h) { return new C.uK(c, d, f, g, h) }; C.Ica = function(c, d, f, g) { return 0 * Math.pow(1 - g, 3) + 3 * g * Math.pow(1 - g, 2) * c + 3 * Math.pow(g, 2) * (1 - g) * d + Math.pow(g, 3) * f }; C.vs = C.N.extend({ Nk: s, of: s, Ff: s, ctor: function(c, d) { C.N.prototype.ctor.call(this); this.Nk = []; this.of = C.d(0, 0); this.Ff = C.d(0, 0); d && this.k(c, d) }, k: function(c, d) { return C.N.prototype.k.call(this, c) ? (this.Nk = d, q) : t }, s: function() { var c = new C.vs; this.vb(c); for (var d = [], f = 0; f < this.Nk.length; f++) { var g = this.Nk[f]; d.push(C.d(g.x, g.y)) } c.k(this.D, d); return c }, R: function(c) { C.N.prototype.R.call(this, c); var d = c.Rc(); c = c.Vd(); this.Ff.x = d; this.Ff.y = c; this.of.x = d; this.of.y = c }, update: function(c) { c = this.Bg(c); if (this.target) { var d = this.Nk, f = C.Ica(d[0].x, d[1].x, d[2].x, c); c = C.Ica(d[0].y, d[1].y, d[2].y, c); d = this.of; if (C.iK) { var g = this.target.Vd(), h = this.Ff; d.x = d.x + this.target.Rc() - h.x; d.y = d.y + g - h.y; f += d.x; c += d.y; h.x = f; h.y = c; this.target.p(f, c) } else this.target.p(d.x + f, d.y + c) } }, reverse: function() { var c = this.Nk, c = [C.ho(c[1], C.T1(c[2])), C.ho(c[0], C.T1(c[2])), C.T1(c[2])], c = C.vs.create(this.D, c); this.vb(c); this.si(c); return c } }); C.vs.create = function(c, d) { return new C.vs(c, d) }; C.QJ = C.vs.extend({ sO: s, ctor: function(c, d) { C.vs.prototype.ctor.call(this); this.sO = []; d && this.k(c, d) }, k: function(c, d) { return C.N.prototype.k.call(this, c) ? (this.sO = d, q) : t }, s: function() { var c = new C.QJ; this.vb(c); c.k(this.D, this.sO); return c }, R: function(c) { C.vs.prototype.R.call(this, c); c = this.of; var d = this.sO, f = this.Nk; f[0] = C.cc(d[0], c); f[1] = C.cc(d[1], c); f[2] = C.cc(d[2], c) } }); C.QJ.create = function(c, d) { return new C.QJ(c, d) }; C.ae = C.N.extend({ ia: 1, pa: 1, OG: 1, PG: 1, Uz: 0, Vz: 0, Nj: 0, Oj: 0, ctor: function(c, d, f) { C.N.prototype.ctor.call(this); d !== m && this.k(c, d, f) }, k: function(c, d, f) { return C.N.prototype.k.call(this, c) ? (this.Uz = d, this.Vz = f != s ? f: d, q) : t }, s: function() { var c = new C.ae; this.vb(c); c.k(this.D, this.Uz, this.Vz); return c }, R: function(c) { C.N.prototype.R.call(this, c); this.OG = c.scaleX; this.PG = c.scaleY; this.Nj = this.Uz - this.OG; this.Oj = this.Vz - this.PG }, update: function(c) { c = this.Bg(c); this.target && (this.target.scaleX = this.OG + this.Nj * c, this.target.scaleY = this.PG + this.Oj * c) } }); C.ae.create = function(c, d, f) { var g = new C.ae; g.k(c, d, f); return g }; C.Av = C.ae.extend({ R: function(c) { C.ae.prototype.R.call(this, c); this.Nj = this.OG * this.Uz - this.OG; this.Oj = this.PG * this.Vz - this.PG }, reverse: function() { var c = C.Av.create(this.D, 1 / this.Uz, 1 / this.Vz); this.vb(c); this.si(c); return c }, s: function() { var c = new C.Av; this.vb(c); c.k(this.D, this.Uz, this.Vz); return c } }); C.Av.create = function(c, d, f) { return new C.Av(c, d, f) }; C.yD = C.N.extend({ ke: 0, Jaa: t, ctor: function(c, d) { C.N.prototype.ctor.call(this); d !== m && this.k(c, d) }, k: function(c, d) { return C.N.prototype.k.call(this, c) ? (this.ke = d, q) : t }, s: function() { var c = new C.yD; this.vb(c); c.k(this.D, this.ke); return c }, update: function(c) { c = this.Bg(c); if (this.target && !this.ik()) { var d = 1 / this.ke; this.target.visible = c % d > d / 2 } }, R: function(c) { C.N.prototype.R.call(this, c); this.Jaa = c.visible }, stop: function() { this.target.visible = this.Jaa; C.N.prototype.stop.call(this) }, reverse: function() { var c = C.yD.create(this.D, this.ke); this.vb(c); this.si(c); return c } }); C.yD.create = function(c, d) { var f = new C.yD; f.k(c, d); return f }; C.xo = C.N.extend({ nB: 0, AM: 0, ctor: function(c, d) { C.N.prototype.ctor.call(this); d !== m && this.k(c, d) }, k: function(c, d) { return C.N.prototype.k.call(this, c) ? (this.nB = d, q) : t }, s: function() { var c = new C.xo; this.vb(c); c.k(this.D, this.nB); return c }, update: function(c) { c = this.Bg(c); if (this.target.sb) { var d = this.AM !== m ? this.AM: 255; this.target.opacity = d + (this.nB - d) * c } }, R: function(c) { C.N.prototype.R.call(this, c); this.target.sb && (this.AM = c.opacity) } }); C.xo.create = function(c, d) { return new C.xo(c, d) }; C.Ry = C.xo.extend({ rY: s, reverse: function() { var c = new C.Sy; c.k(this.D, 0); this.vb(c); this.si(c); return c }, s: function() { var c = new C.Ry; this.vb(c); c.k(this.D, this.nB); return c }, R: function(c) { this.rY && (this.nB = this.rY.AM); C.xo.prototype.R.call(this, c) } }); C.Ry.create = function(c) { return new C.Ry(c, 255) }; C.Sy = C.xo.extend({ reverse: function() { var c = new C.Ry; c.rY = this; c.k(this.D, 255); this.vb(c); this.si(c); return c }, s: function() { var c = new C.Sy; this.vb(c); c.k(this.D, this.nB); return c } }); C.Sy.create = function(c) { var d = new C.Sy; d.k(c, 0); return d }; C.ez = C.N.extend({ Jf: s, Qc: s, ctor: function(c, d, f, g) { C.N.prototype.ctor.call(this); this.Jf = C.color(0, 0, 0); this.Qc = C.color(0, 0, 0); g !== m && this.k(c, d, f, g) }, k: function(c, d, f, g) { return C.N.prototype.k.call(this, c) ? (this.Jf = C.color(d, f, g), q) : t }, s: function() { var c = new C.ez; this.vb(c); var d = this.Jf; c.k(this.D, d.r, d.g, d.b); return c }, R: function(c) { C.N.prototype.R.call(this, c); this.target.sb && (this.Qc = this.target.color) }, update: function(c) { c = this.Bg(c); var d = this.Qc, f = this.Jf; d && this.target.sb && (this.target.color = C.color(d.r + (f.r - d.r) * c, d.g + (f.g - d.g) * c, d.b + (f.b - d.b) * c)) } }); C.ez.create = function(c, d, f, g) { return new C.ez(c, d, f, g) }; C.IE = C.N.extend({ ZL: 0, YL: 0, XL: 0, G$: 0, F$: 0, E$: 0, ctor: function(c, d, f, g) { C.N.prototype.ctor.call(this); g !== m && this.k(c, d, f, g) }, k: function(c, d, f, g) { return C.N.prototype.k.call(this, c) ? (this.ZL = d, this.YL = f, this.XL = g, q) : t }, s: function() { var c = new C.IE; this.vb(c); c.k(this.D, this.ZL, this.YL, this.XL); return c }, R: function(c) { C.N.prototype.R.call(this, c); c.sb && (c = c.color, this.G$ = c.r, this.F$ = c.g, this.E$ = c.b) }, update: function(c) { c = this.Bg(c); this.target.sb && (this.target.color = C.color(this.G$ + this.ZL * c, this.F$ + this.YL * c, this.E$ + this.XL * c)) }, reverse: function() { var c = C.IE.create(this.D, -this.ZL, -this.YL, -this.XL); this.vb(c); this.si(c); return c } }); C.IE.create = function(c, d, f, g) { return new C.IE(c, d, f, g) }; C.fd = C.N.extend({ update: u(), reverse: function() { var c = C.fd.create(this.D); this.vb(c); this.si(c); return c }, s: function() { var c = new C.fd; this.vb(c); c.k(this.D); return c } }); C.fd.create = function(c) { return new C.fd(c) }; C.zv = C.N.extend({ kr: s, ctor: function(c) { C.N.prototype.ctor.call(this); this.kr = s; c && this.Ba(c) }, Ba: function(c) { c || e("cc.ReverseTime.initWithAction(): action must be non null"); c == this.kr && e("cc.ReverseTime.initWithAction(): the action was already passed in."); return C.N.prototype.k.call(this, c.D) ? (this.kr = c, q) : t }, s: function() { var c = new C.zv; this.vb(c); c.Ba(this.kr.s()); return c }, R: function(c) { C.N.prototype.R.call(this, c); this.kr.R(c) }, update: function(c) { c = this.Bg(c); this.kr && this.kr.update(1 - c) }, reverse: function() { return this.kr.s() }, stop: function() { this.kr.stop(); C.xg.prototype.stop.call(this) } }); C.zv.create = function(c) { return new C.zv(c) }; C.uD = C.N.extend({ Us: s, fG: 0, JX: s, rM: 0, UY: s, ctor: function(c) { C.N.prototype.ctor.call(this); this.UY = []; c && this.Uea(c) }, ll: A("Us"), gy: x("Us"), Uea: function(c) { c || e("cc.Animate.initWithAnimation(): animation must be non-NULL"); var d = c.Rr(); if (this.k(d * c.dr)) { this.fG = 0; this.gy(c); this.JX = s; this.rM = 0; var f = this.UY, g = f.length = 0, h = d / c.wp; c = c.Lh; C.yB(c, C.Cl); for (var k = 0; k < c.length; k++) { var n = g * h / d, g = g + c[k].Jh; f.push(n) } return q } return t }, s: function() { var c = new C.uD; this.vb(c); c.Uea(this.Us.s()); return c }, R: function(c) { C.N.prototype.R.call(this, c); this.Us.Kw && (this.JX = c.Hya()); this.rM = this.fG = 0 }, update: function(c) { c = this.Bg(c); 1 > c && (c *= this.Us.dr, (0 | c) > this.rM && (this.fG = 0, this.rM++), c %= 1); for (var d = this.Us.Lh, f = d.length, g = this.UY, h = this.fG; h < f; h++) if (g[h] <= c) this.target.pc(d[h].nh()), this.fG = h + 1; else break }, reverse: function() { var c = this.Us, d = c.Lh, f = []; C.yB(d, C.Cl); if (0 < d.length) for (var g = d.length - 1; 0 <= g; g--) { var h = d[g]; if (!h) break; f.push(h.s()) } d = C.gv.create(f, c.Jh, c.dr); d.KR(c.Kw); c = C.uD.create(d); this.vb(c); this.si(c); return c }, stop: function() { this.Us.Kw && this.target && this.target.pc(this.JX); C.xg.prototype.stop.call(this) } }); C.uD.create = function(c) { return new C.uD(c) }; C.XK = C.N.extend({ Ke: s, $z: s, ctor: function(c, d) { C.N.prototype.ctor.call(this); d && this.jC(c, d) }, jC: function(c, d) { return this.k(d.D) ? (this.$z = c, this.Ke = d, q) : t }, s: function() { var c = new C.XK; this.vb(c); c.jC(this.$z, this.Ke.s()); return c }, R: function(c) { C.N.prototype.R.call(this, c); this.Ke.R(this.$z) }, stop: function() { this.Ke.stop() }, update: function(c) { c = this.Bg(c); this.Ke.update(c) }, IUa: A("$z"), c4a: function(c) { this.$z != c && (this.$z = c) } }); C.XK.create = function(c, d) { return new C.XK(c, d) }; C.yh = C.kq.extend({ ik: B(q), step: function() { this.update(1) }, update: u(), reverse: function() { return this.s() }, s: function() { return new C.yh } }); C.Fj = C.yh.extend({ update: function() { this.target.visible = q }, reverse: function() { return C.Fl.create() }, s: function() { return new C.Fj } }); C.Fj.create = function() { return new C.Fj }; C.Fl = C.yh.extend({ update: function() { this.target.visible = t }, reverse: function() { return C.Fj.create() }, s: function() { return new C.Fl } }); C.Fl.create = function() { return new C.Fl }; C.JE = C.yh.extend({ update: function() { this.target.visible = !this.target.visible }, reverse: function() { return new C.JE }, s: function() { return new C.JE } }); C.JE.create = function() { return new C.JE }; C.tE = C.yh.extend({ SM: q, ctor: function(c) { C.kq.prototype.ctor.call(this); c !== m && this.j(c) }, update: function() { this.target.Lm(this.SM) }, j: function(c) { this.SM = c; return q }, reverse: function() { return new C.tE(this.SM) }, s: function() { return new C.tE(this.SM) } }); C.tE.create = function(c) { return new C.tE(c) }; C.lE = C.yh.extend({ Bb: t, ctor: function(c) { C.kq.prototype.ctor.call(this); this.Bb = t; c !== m && this.Xea(c) }, Xea: function(c) { this.Bb = c; return q }, update: function() { this.target.flippedX = this.Bb }, reverse: function() { return C.lE.create(!this.Bb) }, s: function() { var c = new C.lE; c.Xea(this.Bb); return c } }); C.lE.create = function(c) { return new C.lE(c) }; C.mE = C.yh.extend({ Db: t, ctor: function(c) { C.kq.prototype.ctor.call(this); this.Db = t; c !== m && this.Yea(c) }, Yea: function(c) { this.Db = c; return q }, update: function() { this.target.flippedY = this.Db }, reverse: function() { return C.mE.create(!this.Db) }, s: function() { var c = new C.mE; c.Yea(this.Db); return c } }); C.mE.create = function(c) { return new C.mE(c) }; C.EK = C.yh.extend({ Pn: 0, cj: 0, ctor: function(c, d) { C.kq.prototype.ctor.call(this); this.cj = this.Pn = 0; c !== m && (c.x !== m && (d = c.y, c = c.x), this.bfa(c, d)) }, bfa: function(c, d) { this.Pn = c; this.cj = d; return q }, update: function() { this.target.p(this.Pn, this.cj) }, s: function() { var c = new C.EK; c.bfa(this.Pn, this.cj); return c } }); C.EK.create = function(c, d) { return new C.EK(c, d) }; C.Jc = C.yh.extend({ km: s, $s: s, HF: s, Ih: s, ctor: function(c, d, f) { C.kq.prototype.ctor.call(this); c !== m && (d === m ? this.eQ(c) : this.eQ(c, d, f)) }, eQ: function(c, d, f) { d ? (this.Ih = f, this.$s = c, this.km = d) : c && (this.HF = c); return q }, execute: function() { this.$s != s ? this.$s.call(this.km, this.target, this.Ih) : this.HF && this.HF.call(s, this.target) }, update: function() { this.execute() }, PWa: A("km"), l5a: function(c) { c != this.km && (this.km && (this.km = s), this.km = c) }, s: function() { var c = new C.Jc; this.km ? c.eQ(this.$s, this.km, this.Ih) : this.HF && c.eQ(this.HF); return c } }); C.Jc.create = function(c, d, f) { return new C.Jc(c, d, f) }; C.hS = C.N.extend({ EV: 0, FV: 0, GV: 0, u$: 0, v$: 0, w$: 0, Zba: 0, $ba: 0, aca: 0, ctor: function() { C.N.prototype.ctor.call(this); this.aca = this.$ba = this.Zba = this.w$ = this.v$ = this.u$ = this.GV = this.FV = this.EV = 0 }, R: function(c) { C.N.prototype.R.call(this, c); c = c.Ix(); var d = c.Oda(); this.EV = d.x; this.FV = d.y; this.GV = d.f; d = c.Yda(); this.u$ = d.x; this.v$ = d.y; this.w$ = d.f; c = c.kCa(); this.Zba = c.x; this.$ba = c.y; this.aca = c.f }, s: function() { return new C.hS }, reverse: function() { return C.zv.create(this) } }); C.bi = C.hS.extend({ Ui: 0, $V: 0, SE: 0, H9: 0, cn: 0, G9: 0, Xaa: 0, Vaa: 0, Waa: 0, Uaa: 0, ctor: function(c, d, f, g, h, k, n) { C.hS.prototype.ctor.call(this); n !== m && this.k(c, d, f, g, h, k, n) }, k: function(c, d, f, g, h, k, n) { return C.N.prototype.k.call(this, c) ? (this.Ui = d, this.$V = f, this.SE = g, this.H9 = h, this.cn = k, this.G9 = n, this.Vaa = C.ng(h), this.Uaa = C.ng(n), q) : t }, JIa: function() { var c = this.target.Ix(), d = c.Yda(), f = c.Oda(), c = d.x - f.x, g = d.y - f.y, d = d.f - f.f, f = Math.sqrt(Math.pow(c, 2) + Math.pow(g, 2) + Math.pow(d, 2)), h = Math.sqrt(Math.pow(c, 2) + Math.pow(g, 2)); 0 === h && (h = C.rK); 0 === f && (f = C.rK); return { uEa: f / C.FD.dI(), XJa: Math.acos(d / f), azimuth: 0 > c ? Math.PI - Math.asin(g / h) : Math.asin(g / h) } }, R: function(c) { C.N.prototype.R.call(this, c); c = this.JIa(); isNaN(this.Ui) && (this.Ui = c.uEa); isNaN(this.SE) && (this.SE = C.LC(c.XJa)); isNaN(this.cn) && (this.cn = C.LC(c.azimuth)); this.Xaa = C.ng(this.SE); this.Waa = C.ng(this.cn) }, s: function() { var c = new C.bi; c.k(this.D, this.Ui, this.$V, this.SE, this.H9, this.cn, this.G9); return c }, update: function(c) { c = this.Bg(c); var d = (this.Ui + this.$V * c) * C.FD.dI(), f = this.Xaa + this.Vaa * c, g = this.Waa + this.Uaa * c; c = Math.sin(f) * Math.cos(g) * d + this.EV; g = Math.sin(f) * Math.sin(g) * d + this.FV; d = Math.cos(f) * d + this.GV; this.target.Ix().Dha(c, g, d) } }); C.bi.create = function(c, d, f, g, h, k, n) { return new C.bi(c, d, f, g, h, k, n) }; C.Zb = C.N.extend({ I: s, ctor: function(c) { C.N.prototype.ctor.call(this); c && this.Ba(c) }, Ba: function(c) { c || e("cc.ActionEase.initWithAction(): action must be non nil"); return this.k(c.Rr()) ? (this.I = c, q) : t }, s: function() { var c = new C.Zb; c.Ba(this.I.s()); return c }, R: function(c) { C.N.prototype.R.call(this, c); this.I.R(this.target) }, stop: function() { this.I.stop(); C.N.prototype.stop.call(this) }, update: function(c) { this.I.update(c) }, reverse: function() { return C.Zb.create(this.I.reverse()) }, r0: A("I") }); C.Zb.create = function(c) { return new C.Zb(c) }; C.ov = C.Zb.extend({ fe: 0, ctor: function(c, d) { C.Zb.prototype.ctor.call(this); d !== m && this.Ba(c, d) }, V4a: x("fe"), iWa: A("fe"), Ba: function(c, d) { return C.Zb.prototype.Ba.call(this, c) ? (this.fe = d, q) : t }, s: function() { var c = new C.ov; c.Ba(this.I.s(), this.fe); return c }, reverse: function() { return C.ov.create(this.I.reverse(), 1 / this.fe) } }); C.ov.create = function(c, d) { return new C.ov(c, d) }; C.$D = C.ov.extend({ update: function(c) { this.I.update(Math.pow(c, this.fe)) }, reverse: function() { return C.$D.create(this.I.reverse(), 1 / this.fe) }, s: function() { var c = new C.$D; c.Ba(this.I.s(), this.fe); return c } }); C.$D.create = function(c, d) { return new C.$D(c, d) }; C.iza = function(c) { return { fe: c, ra: function(c) { return Math.pow(c, this.fe) }, reverse: function() { return C.iza(1 / this.fe) } } }; C.As = C.ov.extend({ update: function(c) { this.I.update(Math.pow(c, 1 / this.fe)) }, reverse: function() { return C.As.create(this.I.reverse(), 1 / this.fe) }, s: function() { var c = new C.As; c.Ba(this.I.s(), this.fe); return c } }); C.As.create = function(c, d) { return new C.As(c, d) }; C.kza = function(c) { return { fe: c, ra: function(c) { return Math.pow(c, 1 / this.fe) }, reverse: function() { return C.kza(1 / this.fe) } } }; C.Oy = C.ov.extend({ update: function(c) { c *= 2; 1 > c ? this.I.update(0.5 * Math.pow(c, this.fe)) : this.I.update(1 - 0.5 * Math.pow(2 - c, this.fe)) }, s: function() { var c = new C.Oy; c.Ba(this.I.s(), this.fe); return c }, reverse: function() { return C.Oy.create(this.I.reverse(), this.fe) } }); C.Oy.create = function(c, d) { return new C.Oy(c, d) }; C.jza = function(c) { return { fe: c, ra: function(c) { c *= 2; return 1 > c ? 0.5 * Math.pow(c, this.fe) : 1 - 0.5 * Math.pow(2 - c, this.fe) }, reverse: function() { return C.jza(this.fe) } } }; C.lK = C.Zb.extend({ update: function(c) { this.I.update(0 === c ? 0 : Math.pow(2, 10 * (c - 1))) }, reverse: function() { return C.nK.create(this.I.reverse()) }, s: function() { var c = new C.lK; c.Ba(this.I.s()); return c } }); C.lK.create = function(c) { return new C.lK(c) }; C.d$ = { ra: function(c) { return 0 === c ? 0 : Math.pow(2, 10 * (c - 1)) }, reverse: function() { return C.f$ } }; C.fza = function() { return C.d$ }; C.nK = C.Zb.extend({ update: function(c) { this.I.update(1 == c ? 1 : -Math.pow(2, -10 * c) + 1) }, reverse: function() { return C.lK.create(this.I.reverse()) }, s: function() { var c = new C.nK; c.Ba(this.I.s()); return c } }); C.nK.create = function(c) { return new C.nK(c) }; C.f$ = { ra: function(c) { return 1 == c ? 1 : -Math.pow(2, -10 * c) + 1 }, reverse: function() { return C.d$ } }; C.hza = function() { return C.f$ }; C.mK = C.Zb.extend({ update: function(c) { 1 != c && 0 !== c && (c *= 2, c = 1 > c ? 0.5 * Math.pow(2, 10 * (c - 1)) : 0.5 * ( - Math.pow(2, -10 * (c - 1)) + 2)); this.I.update(c) }, reverse: function() { return C.mK.create(this.I.reverse()) }, s: function() { var c = new C.mK; c.Ba(this.I.s()); return c } }); C.mK.create = function(c) { return new C.mK(c) }; C.e$ = { ra: function(c) { return 1 !== c && 0 !== c ? (c *= 2, 1 > c ? 0.5 * Math.pow(2, 10 * (c - 1)) : 0.5 * ( - Math.pow(2, -10 * (c - 1)) + 2)) : c }, reverse: function() { return C.e$ } }; C.gza = function() { return C.e$ }; C.oK = C.Zb.extend({ update: function(c) { c = 0 === c || 1 === c ? c: -1 * Math.cos(c * Math.PI / 2) + 1; this.I.update(c) }, reverse: function() { return C.qK.create(this.I.reverse()) }, s: function() { var c = new C.oK; c.Ba(this.I.s()); return c } }); C.oK.create = function(c) { return new C.oK(c) }; C.p$ = { ra: function(c) { return 0 === c || 1 === c ? c: -1 * Math.cos(c * Math.PI / 2) + 1 }, reverse: function() { return C.r$ } }; C.uza = function() { return C.p$ }; C.qK = C.Zb.extend({ update: function(c) { c = 0 === c || 1 === c ? c: Math.sin(c * Math.PI / 2); this.I.update(c) }, reverse: function() { return C.oK.create(this.I.reverse()) }, s: function() { var c = new C.qK; c.Ba(this.I.s()); return c } }); C.qK.create = function(c) { return new C.qK(c) }; C.r$ = { ra: function(c) { return 0 === c || 1 == c ? c: Math.sin(c * Math.PI / 2) }, reverse: function() { return C.p$ } }; C.wza = function() { return C.r$ }; C.pK = C.Zb.extend({ update: function(c) { c = 0 === c || 1 === c ? c: -0.5 * (Math.cos(Math.PI * c) - 1); this.I.update(c) }, s: function() { var c = new C.pK; c.Ba(this.I.s()); return c }, reverse: function() { return C.pK.create(this.I.reverse()) } }); C.pK.create = function(c) { return new C.pK(c) }; C.q$ = { ra: function(c) { return 0 === c || 1 === c ? c: -0.5 * (Math.cos(Math.PI * c) - 1) }, reverse: function() { return C.q$ } }; C.vza = function() { return C.q$ }; C.Ny = C.Zb.extend({ md: 0.3, ctor: function(c, d) { C.Zb.prototype.ctor.call(this); c && this.Ba(c, d) }, XVa: A("md"), P4a: x("md"), Ba: function(c, d) { C.Zb.prototype.Ba.call(this, c); this.md = d == s ? 0.3 : d; return q }, reverse: function() { C.log("cc.EaseElastic.reverse(): it should be overridden in subclass."); return s }, s: function() { var c = new C.Ny; c.Ba(this.I.s(), this.md); return c } }); C.Ny.create = function(c, d) { return new C.Ny(c, d) }; C.XD = C.Ny.extend({ update: function(c) { var d = 0; 0 === c || 1 === c ? d = c: (d = this.md / 4, c -= 1, d = -Math.pow(2, 10 * c) * Math.sin(2 * (c - d) * Math.PI / this.md)); this.I.update(d) }, reverse: function() { return C.ZD.create(this.I.reverse(), this.md) }, s: function() { var c = new C.XD; c.Ba(this.I.s(), this.md); return c } }); C.XD.create = function(c, d) { return new C.XD(c, d) }; C.b$ = { ra: function(c) { if (0 === c || 1 === c) return c; c -= 1; return - Math.pow(2, 10 * c) * Math.sin(2 * (c - 0.075) * Math.PI / 0.3) }, reverse: function() { return C.c$ } }; C.qda = function(c) { return c && 0.3 !== c ? { md: c, ra: function(c) { if (0 === c || 1 === c) return c; c -= 1; return - Math.pow(2, 10 * c) * Math.sin(2 * (c - this.md / 4) * Math.PI / this.md) }, reverse: function() { return C.sda(this.md) } }: C.b$ }; C.ZD = C.Ny.extend({ update: function(c) { var d = 0, d = 0 === c || 1 == c ? c: Math.pow(2, -10 * c) * Math.sin(2 * (c - this.md / 4) * Math.PI / this.md) + 1; this.I.update(d) }, reverse: function() { return C.XD.create(this.I.reverse(), this.md) }, s: function() { var c = new C.ZD; c.Ba(this.I.s(), this.md); return c } }); C.ZD.create = function(c, d) { return new C.ZD(c, d) }; C.c$ = { ra: function(c) { return 0 === c || 1 === c ? c: Math.pow(2, -10 * c) * Math.sin(2 * (c - 0.075) * Math.PI / 0.3) + 1 }, reverse: function() { return C.b$ } }; C.sda = function(c) { return c && 0.3 !== c ? { md: c, ra: function(c) { return 0 === c || 1 === c ? c: Math.pow(2, -10 * c) * Math.sin(2 * (c - this.md / 4) * Math.PI / this.md) + 1 }, reverse: function() { return C.qda(this.md) } }: C.c$ }; C.YD = C.Ny.extend({ update: function(c) { var d = 0, d = this.md; if (0 === c || 1 == c) d = c; else { d || (d = this.md = 0.3 * 1.5); var f = d / 4; c = 2 * c - 1; d = 0 > c ? -0.5 * Math.pow(2, 10 * c) * Math.sin(2 * (c - f) * Math.PI / d) : 0.5 * Math.pow(2, -10 * c) * Math.sin(2 * (c - f) * Math.PI / d) + 1 } this.I.update(d) }, reverse: function() { return C.YD.create(this.I.reverse(), this.md) }, s: function() { var c = new C.YD; c.Ba(this.I.s(), this.md); return c } }); C.YD.create = function(c, d) { return new C.YD(c, d) }; C.rda = function(c) { return { md: c || 0.3, ra: function(c) { var f = 0, f = this.md; if (0 === c || 1 === c) f = c; else { f || (f = this.md = 0.3 * 1.5); var g = f / 4; c = 2 * c - 1; f = 0 > c ? -0.5 * Math.pow(2, 10 * c) * Math.sin(2 * (c - g) * Math.PI / f) : 0.5 * Math.pow(2, -10 * c) * Math.sin(2 * (c - g) * Math.PI / f) + 1 } return f }, reverse: function() { return C.rda(this.md) } } }; C.nv = C.Zb.extend({ Nr: function(c) { if (c < 1 / 2.75) return 7.5625 * c * c; if (c < 2 / 2.75) return c -= 1.5 / 2.75, 7.5625 * c * c + 0.75; if (c < 2.5 / 2.75) return c -= 2.25 / 2.75, 7.5625 * c * c + 0.9375; c -= 2.625 / 2.75; return 7.5625 * c * c + 0.984375 }, s: function() { var c = new C.nv; c.Ba(this.I.s()); return c }, reverse: function() { return C.nv.create(this.I.reverse()) } }); C.nv.create = function(c) { return new C.nv(c) }; C.OD = C.nv.extend({ update: function(c) { this.I.update(1 - this.Nr(1 - c)) }, reverse: function() { return C.QD.create(this.I.reverse()) }, s: function() { var c = new C.OD; c.Ba(this.I.s()); return c } }); C.OD.create = function(c) { return new C.OD(c) }; C.zL = function(c) { if (c < 1 / 2.75) return 7.5625 * c * c; if (c < 2 / 2.75) return c -= 1.5 / 2.75, 7.5625 * c * c + 0.75; if (c < 2.5 / 2.75) return c -= 2.25 / 2.75, 7.5625 * c * c + 0.9375; c -= 2.625 / 2.75; return 7.5625 * c * c + 0.984375 }; C.S9 = { ra: function(c) { return 1 - C.zL(1 - c) }, reverse: function() { return C.U9 } }; C.Xya = function() { return C.S9 }; C.QD = C.nv.extend({ update: function(c) { this.I.update(this.Nr(c)) }, reverse: function() { return C.OD.create(this.I.reverse()) }, s: function() { var c = new C.QD; c.Ba(this.I.s()); return c } }); C.QD.create = function(c) { return new C.QD(c) }; C.U9 = { ra: function(c) { return C.zL(c) }, reverse: function() { return C.S9 } }; C.Zya = function() { return C.U9 }; C.PD = C.nv.extend({ update: function(c) { var d = 0, d = 0.5 > c ? 0.5 * (1 - this.Nr(1 - 2 * c)) : 0.5 * this.Nr(2 * c - 1) + 0.5; this.I.update(d) }, s: function() { var c = new C.PD; c.Ba(this.I.s()); return c }, reverse: function() { return C.PD.create(this.I.reverse()) } }); C.PD.create = function(c) { return new C.PD(c) }; C.T9 = { ra: function(c) { return c = 0.5 > c ? 0.5 * (1 - C.zL(1 - 2 * c)) : 0.5 * C.zL(2 * c - 1) + 0.5 }, reverse: function() { return C.T9 } }; C.Yya = function() { return C.T9 }; C.KD = C.Zb.extend({ update: function(c) { this.I.update(0 === c || 1 == c ? c: c * c * (2.70158 * c - 1.70158)) }, reverse: function() { return C.MD.create(this.I.reverse()) }, s: function() { var c = new C.KD; c.Ba(this.I.s()); return c } }); C.KD.create = function(c) { return new C.KD(c) }; C.P9 = { ra: function(c) { return 0 === c || 1 === c ? c: c * c * (2.70158 * c - 1.70158) }, reverse: function() { return C.R9 } }; C.Tya = function() { return C.P9 }; C.MD = C.Zb.extend({ update: function(c) { c -= 1; this.I.update(c * c * (2.70158 * c + 1.70158) + 1) }, reverse: function() { return C.KD.create(this.I.reverse()) }, s: function() { var c = new C.MD; c.Ba(this.I.s()); return c } }); C.MD.create = function(c) { return new C.MD(c) }; C.R9 = { ra: function(c) { c -= 1; return c * c * (2.70158 * c + 1.70158) + 1 }, reverse: function() { return C.P9 } }; C.Vya = function() { return C.R9 }; C.LD = C.Zb.extend({ update: function(c) { c *= 2; 1 > c ? this.I.update(c * c * (3.5949095 * c - 2.5949095) / 2) : (c -= 2, this.I.update(c * c * (3.5949095 * c + 2.5949095) / 2 + 1)) }, s: function() { var c = new C.LD; c.Ba(this.I.s()); return c }, reverse: function() { return C.LD.create(this.I.reverse()) } }); C.LD.create = function(c) { return new C.LD(c) }; C.Q9 = { ra: function(c) { c *= 2; if (1 > c) return c * c * (3.5949095 * c - 2.5949095) / 2; c -= 2; return c * c * (3.5949095 * c + 2.5949095) / 2 + 1 }, reverse: function() { return C.Q9 } }; C.Uya = function() { return C.Q9 }; C.ND = C.Zb.extend({ vN: s, wN: s, xN: s, yN: s, ctor: function(c) { C.Zb.prototype.ctor.call(this, c) }, jb: function(c, d, f, g, h) { return Math.pow(1 - h, 3) * c + 3 * h * Math.pow(1 - h, 2) * d + 3 * Math.pow(h, 2) * (1 - h) * f + Math.pow(h, 3) * g }, update: function(c) { this.I.update(this.jb(this.vN, this.wN, this.xN, this.yN, c)) }, s: function() { var c = new C.ND; c.Ba(this.I.s()); c.kha(this.vN, this.wN, this.xN, this.yN); return c }, reverse: function() { var c = C.ND.create(this.I.reverse()); c.kha(this.yN, this.xN, this.wN, this.vN); return c }, kha: function(c, d, f, g) { this.vN = c || 0; this.wN = d || 0; this.xN = f || 0; this.yN = g || 0 } }); C.ND.create = function(c) { return new C.ND(c) }; C.Wya = function(c, d, f, g) { return { ra: function(h) { return C.ND.prototype.jb(c, d, f, g, h) }, reverse: function() { return C.Wya(g, f, d, c) } } }; C.aE = C.Zb.extend({ jb: function(c) { return Math.pow(c, 2) }, update: function(c) { this.I.update(this.jb(c)) }, s: function() { var c = new C.aE; c.Ba(this.I.s()); return c }, reverse: function() { return C.aE.create(this.I.reverse()) } }); C.aE.create = function(c) { return new C.aE(c) }; C.g$ = { ra: C.aE.prototype.jb, reverse: function() { return C.g$ } }; C.lza = function() { return C.g$ }; C.cE = C.Zb.extend({ jb: function(c) { return - c * (c - 2) }, update: function(c) { this.I.update(this.jb(c)) }, s: function() { var c = new C.cE; c.Ba(); return c }, reverse: function() { return C.cE.create(this.I.reverse()) } }); C.cE.create = function(c) { return new C.cE(c) }; C.i$ = { ra: C.cE.prototype.jb, reverse: function() { return C.i$ } }; C.nza = function() { return C.i$ }; C.bE = C.Zb.extend({ jb: function(c) { var d = c; c *= 2; 1 > c ? d = 0.5 * c * c: (--c, d = -0.5 * (c * (c - 2) - 1)); return d }, update: function(c) { this.I.update(this.jb(c)) }, s: function() { var c = new C.bE; c.Ba(this.I.s()); return c }, reverse: function() { return C.bE.create(this.I.reverse()) } }); C.bE.create = function(c) { return new C.bE(c) }; C.h$ = { ra: C.bE.prototype.jb, reverse: function() { return C.h$ } }; C.mza = function() { return C.h$ }; C.dE = C.Zb.extend({ jb: function(c) { return c * c * c * c }, update: function(c) { this.I.update(this.jb(c)) }, s: function() { var c = new C.dE; c.Ba(this.I.s()); return c }, reverse: function() { return C.dE.create(this.I.reverse()) } }); C.dE.create = function(c) { return new C.dE(c) }; C.j$ = { ra: C.dE.prototype.jb, reverse: function() { return C.j$ } }; C.oza = function() { return C.j$ }; C.fE = C.Zb.extend({ jb: function(c) { c -= 1; return - (c * c * c * c - 1) }, update: function(c) { this.I.update(this.jb(c)) }, s: function() { var c = new C.fE; c.Ba(this.I.s()); return c }, reverse: function() { return C.fE.create(this.I.reverse()) } }); C.fE.create = function(c) { return new C.fE(c) }; C.l$ = { ra: C.fE.prototype.jb, reverse: function() { return C.l$ } }; C.qza = function() { return C.l$ }; C.eE = C.Zb.extend({ jb: function(c) { c *= 2; if (1 > c) return 0.5 * c * c * c * c; c -= 2; return - 0.5 * (c * c * c * c - 2) }, update: function(c) { this.I.update(this.jb(c)) }, s: function() { var c = new C.eE; c.Ba(this.I.s()); return c }, reverse: function() { return C.eE.create(this.I.reverse()) } }); C.eE.create = function(c) { return new C.eE(c) }; C.k$ = { ra: C.eE.prototype.jb, reverse: function() { return C.k$ } }; C.pza = function() { return C.k$ }; C.gE = C.Zb.extend({ jb: function(c) { return c * c * c * c * c }, update: function(c) { this.I.update(this.jb(c)) }, s: function() { var c = new C.gE; c.Ba(this.I.s()); return c }, reverse: function() { return C.gE.create(this.I.reverse()) } }); C.gE.create = function(c) { return new C.gE(c) }; C.m$ = { ra: C.gE.prototype.jb, reverse: function() { return C.m$ } }; C.rza = function() { return C.m$ }; C.iE = C.Zb.extend({ jb: function(c) { c -= 1; return c * c * c * c * c + 1 }, update: function(c) { this.I.update(this.jb(c)) }, s: function() { var c = new C.iE; c.Ba(this.I.s()); return c }, reverse: function() { return C.iE.create(this.I.reverse()) } }); C.iE.create = function(c) { return new C.iE(c) }; C.o$ = { ra: C.iE.prototype.jb, reverse: function() { return C.o$ } }; C.tza = function() { return C.o$ }; C.hE = C.Zb.extend({ jb: function(c) { c *= 2; if (1 > c) return 0.5 * c * c * c * c * c; c -= 2; return 0.5 * (c * c * c * c * c + 2) }, update: function(c) { this.I.update(this.jb(c)) }, s: function() { var c = new C.hE; c.Ba(this.I.s()); return c }, reverse: function() { return C.hE.create(this.I.reverse()) } }); C.hE.create = function(c) { return new C.hE(c) }; C.n$ = { ra: C.hE.prototype.jb, reverse: function() { return C.n$ } }; C.sza = function() { return C.n$ }; C.RD = C.Zb.extend({ jb: function(c) { return - 1 * (Math.sqrt(1 - c * c) - 1) }, update: function(c) { this.I.update(this.jb(c)) }, s: function() { var c = new C.RD; c.Ba(this.I.s()); return c }, reverse: function() { return C.RD.create(this.I.reverse()) } }); C.RD.create = function(c) { return new C.RD(c) }; C.V9 = { ra: C.RD.prototype.jb, reverse: function() { return C.V9 } }; C.$ya = function() { return C.V9 }; C.TD = C.Zb.extend({ jb: function(c) { c -= 1; return Math.sqrt(1 - c * c) }, update: function(c) { this.I.update(this.jb(c)) }, s: function() { var c = new C.TD; c.Ba(this.I.s()); return c }, reverse: function() { return C.TD.create(this.I.reverse()) } }); C.TD.create = function(c) { return new C.TD(c) }; C.X9 = { ra: C.TD.prototype.jb, reverse: function() { return C.X9 } }; C.bza = function() { return C.X9 }; C.SD = C.Zb.extend({ jb: function(c) { c *= 2; if (1 > c) return - 0.5 * (Math.sqrt(1 - c * c) - 1); c -= 2; return 0.5 * (Math.sqrt(1 - c * c) + 1) }, update: function(c) { this.I.update(this.jb(c)) }, s: function() { var c = new C.SD; c.Ba(this.I.s()); return c }, reverse: function() { return C.SD.create(this.I.reverse()) } }); C.SD.create = function(c) { return new C.SD(c) }; C.W9 = { ra: C.SD.prototype.jb, reverse: function() { return C.W9 } }; C.aza = function() { return C.W9 }; C.UD = C.Zb.extend({ jb: function(c) { return c * c * c }, update: function(c) { this.I.update(this.jb(c)) }, s: function() { var c = new C.UD; c.Ba(this.I.s()); return c }, reverse: function() { return C.UD.create(this.I.reverse()) } }); C.UD.create = function(c) { return new C.UD(c) }; C.Y9 = { ra: C.UD.prototype.jb, reverse: function() { return C.Y9 } }; C.cza = function() { return C.Y9 }; C.WD = C.Zb.extend({ jb: function(c) { c -= 1; return c * c * c + 1 }, update: function(c) { this.I.update(this.jb(c)) }, s: function() { var c = new C.WD; c.Ba(this.I.s()); return c }, reverse: function() { return C.WD.create(this.I.reverse()) } }); C.WD.create = function(c) { return new C.WD(c) }; C.a$ = { ra: C.WD.prototype.jb, reverse: function() { return C.a$ } }; C.eza = function() { return C.a$ }; C.VD = C.Zb.extend({ jb: function(c) { c *= 2; if (1 > c) return 0.5 * c * c * c; c -= 2; return 0.5 * (c * c * c + 2) }, update: function(c) { this.I.update(this.jb(c)) }, s: function() { var c = new C.VD; c.Ba(this.I.s()); return c }, reverse: function() { return C.VD.create(this.I.reverse()) } }); C.VD.create = function(c) { return new C.VD(c) }; C.Z9 = { ra: C.VD.prototype.jb, reverse: function() { return C.Z9 } }; C.dza = function() { return C.Z9 }; C.q_ = function(c, d, f, g, h, k) { var n = k * k, p = n * k, r = (1 - h) / 2; h = r * ( - p + 2 * n - k); var v = r * ( - p + n) + (2 * p - 3 * n + 1); k = r * (p - 2 * n + k) + ( - 2 * p + 3 * n); n = r * (p - n); return C.d(c.x * h + d.x * v + f.x * k + g.x * n, c.y * h + d.y * v + f.y * k + g.y * n) }; C.bha = function(c) { for (var d = [], f = c.length - 1; 0 <= f; f--) d.push(C.d(c[f].x, c[f].y)); return d }; C.hP = function(c) { for (var d = [], f = 0; f < c.length; f++) d.push(C.d(c[f].x, c[f].y)); return d }; C.og = function(c, d) { var f = Math.min(c.length - 1, Math.max(d, 0)); return c[f] }; C.F2a = function(c) { for (var d = c.length, f = 0 | d / 2, g = 0; g < f; ++g) { var h = c[g]; c[g] = c[d - g - 1]; c[d - g - 1] = h } }; C.Xm = C.N.extend({ yn: s, I9: 0, fB: 0, Ff: s, W8: s, ctor: function(c, d, f) { C.N.prototype.ctor.call(this); this.yn = []; f !== m && this.k(c, d, f) }, k: function(c, d, f) { (!d || 0 == d.length) && e("Invalid configuration. It must at least have one control point"); return C.N.prototype.k.call(this, c) ? (this.WHa(d), this.fB = f, q) : t }, s: function() { var c = new C.Xm; c.k(this.D, C.hP(this.yn), this.fB); return c }, R: function(c) { C.N.prototype.R.call(this, c); this.I9 = 1 / (this.yn.length - 1); this.Ff = C.d(this.target.Rc(), this.target.Vd()); this.W8 = C.d(0, 0) }, update: function(c) { c = this.Bg(c); var d, f = this.yn; if (1 == c) d = f.length - 1, c = 1; else { var g = this.I9; d = 0 | c / g; c = (c - g * d) / g } d = C.q_(C.og(f, d - 1), C.og(f, d - 0), C.og(f, d + 1), C.og(f, d + 2), this.fB, c); if (C.iK && (f = this.target.Rc() - this.Ff.x, c = this.target.Vd() - this.Ff.y, 0 != f || 0 != c)) g = this.W8, f = g.x + f, c = g.y + c, g.x = f, g.y = c, d.x += f, d.y += c; this.jja(d) }, reverse: function() { var c = C.bha(this.yn); return C.Xm.create(this.D, c, this.fB) }, jja: function(c) { this.target.p(c); this.Ff = c }, ZVa: A("yn"), WHa: x("yn") }); C.Xm.create = function(c, d, f) { return new C.Xm(c, d, f) }; C.kv = C.Xm.extend({ of: s, ctor: function(c, d, f) { C.Xm.prototype.ctor.call(this); this.of = C.d(0, 0); f !== m && this.k(c, d, f) }, R: function(c) { C.Xm.prototype.R.call(this, c); this.of.x = c.Rc(); this.of.y = c.Vd() }, reverse: function() { for (var c = this.yn.slice(), d, f = c[0], g = 1; g < c.length; ++g) d = c[g], c[g] = C.cc(d, f), f = d; c = C.bha(c); f = c[c.length - 1]; c.pop(); f.x = -f.x; f.y = -f.y; c.unshift(f); for (g = 1; g < c.length; ++g) d = c[g], d.x = -d.x, d.y = -d.y, d.x += f.x, d.y += f.y, f = c[g] = d; return C.kv.create(this.D, c, this.fB) }, jja: function(c) { var d = this.of, f = c.x + d.x; c = c.y + d.y; this.Ff.x = f; this.Ff.y = c; this.target.p(f, c) }, s: function() { var c = new C.kv; c.k(this.D, C.hP(this.yn), this.fB); return c } }); C.kv.create = function(c, d, f) { return new C.kv(c, d, f) }; C.ZJ = C.Xm.extend({ ctor: function(c, d) { d && this.k(c, d) }, k: function(c, d) { return C.Xm.prototype.k.call(this, c, d, 0.5) }, s: function() { var c = new C.ZJ; c.k(this.D, C.hP(this.yn)); return c } }); C.ZJ.create = function(c, d) { return new C.ZJ(c, d) }; C.YJ = C.kv.extend({ ctor: function(c, d) { C.kv.prototype.ctor.call(this); d && this.k(c, d) }, k: function(c, d) { return C.Xm.prototype.k.call(this, c, d, 0.5) }, s: function() { var c = new C.YJ; c.k(this.D, C.hP(this.yn)); return c } }); C.YJ.create = function(c, d) { return new C.YJ(c, d) }; C.pKa = C.O.extend({ Z3: u() }); C.fv = C.N.extend({ key: "", wP: 0, BJ: 0, JB: 0, ctor: function(c, d, f, g) { C.N.prototype.ctor.call(this); this.key = ""; g !== m && this.k(c, d, f, g) }, k: function(c, d, f, g) { return C.N.prototype.k.call(this, c) ? (this.key = d, this.BJ = g, this.wP = f, q) : t }, R: function(c) { (!c || !c.Z3) && e("cc.ActionTween.startWithTarget(): target must be non-null, and target must implement updateTweenAction function"); C.N.prototype.R.call(this, c); this.JB = this.BJ - this.wP }, update: function(c) { this.target.Z3(this.BJ - this.JB * (1 - c), this.key) }, reverse: function() { return C.fv.create(this.duration, this.key, this.BJ, this.wP) }, s: function() { var c = new C.fv; c.k(this.D, this.key, this.wP, this.BJ); return c } }); C.fv.create = function(c, d, f, g) { var h = new C.fv; return h.k(c, d, f, g) ? h: s }; C.action = C.xg.create; C.speed = C.AE.create; C.ySa = C.tK.create; C.H0a = C.bi.create; C.JQa = C.Xm.create; C.IQa = C.kv.create; C.LQa = C.ZJ.create; C.KQa = C.YJ.create; C.show = C.Fj.create; C.JXa = C.Fl.create; C.x6a = C.JE.create; C.n2a = C.tE.create; C.Ada = C.lE.create; C.Bda = C.mE.create; C.e1a = C.EK.create; C.EQa = C.Jc.create; C.OPa = C.N.create; C.j3a = C.La.create; C.repeat = C.uE.create; C.cR = C.vE.create; C.U5a = C.ci.create; C.L2a = C.wE.create; C.K2a = C.Ds.create; C.moveBy = C.Dk.create; C.moveTo = C.Bs.create; C.T5a = C.rq.create; C.S5a = C.zE.create; C.RYa = C.Ao.create; C.SYa = C.uK.create; C.yQa = C.vs.create; C.zQa = C.QJ.create; C.Q2a = C.ae.create; C.P2a = C.Av.create; C.blink = C.yD.create; C.uSa = C.xo.create; C.sSa = C.Ry.create; C.tSa = C.Sy.create; C.v6a = C.ez.create; C.u6a = C.IE.create; C.rRa = C.fd.create; C.G2a = C.zv.create; C.oQa = C.uD.create; C.l6a = C.XK.create; C.PPa = C.fv.create; C.pe = C.N.extend({ ua: s, ctor: function(c, d) { C.LV(); C.N.prototype.ctor.call(this); this.ua = C.size(0, 0); d && this.k(c, d) }, s: function() { var c = new C.pe, d = this.ua; c.k(this.D, C.size(d.width, d.height)); return c }, R: function(c) { C.N.prototype.R.call(this, c); var d = this.NH(), f = this.target; (c = f.grid) && 0 < c.pp ? (d = c.CAa(), c.zi() && (d.width == this.ua.width && d.height == this.ua.height) && c.gR()) : (c && c.zi() && c.setActive(t), f.grid = d, f.grid.setActive(q)) }, reverse: function() { return C.zv.create(this) }, k: function(c, d) { return C.N.prototype.k.call(this, c) ? (this.ua.width = d.width, this.ua.height = d.height, q) : t }, NH: function() { C.log("cc.GridAction.getGrid(): it should be overridden in subclass.") } }); C.pe.create = function(c, d) { return new C.pe(c, d) }; C.Vf = C.pe.extend({ NH: function() { return C.iT.create(this.ua) }, uja: function(c) { return this.target.grid.uja(c) }, uf: function(c) { return this.target.grid.uf(c) }, wh: function(c, d) { this.target.grid.wh(c, d) } }); C.Vf.create = function(c, d) { return new C.Vf(c, d) }; C.Ie = C.pe.extend({ Xia: function(c) { return this.target.grid.Xia(c) }, sl: function(c) { return this.target.grid.sl(c) }, Aj: function(c, d) { this.target.grid.Aj(c, d) }, NH: function() { return C.yU.create(this.ua) } }); C.Ie.create = function(c, d) { return new C.Ie(c, d) }; C.Bv = C.yh.extend({ R: function(c) { C.yh.prototype.R.call(this, c); (c = this.target.grid) && c.zi() && c.setActive(t) } }); C.Bv.create = function() { return new C.Bv }; C.y7 = C.yh.extend({ ke: s, ctor: function(c) { C.yh.prototype.ctor.call(this); c !== m && this.aDa(c) }, aDa: function(c) { this.ke = c; return q }, R: function(c) { C.yh.prototype.R.call(this, c); this.target.grid && this.target.grid.zi() && this.target.grid.gIa(this.target.grid.pp + this.ke) } }); C.y7.create = function(c) { return new C.y7(c) }; C.L8 = C.Vf.extend({ ak: 0, kc: 0, lc: 0, ctor: function(c, d, f, g) { C.pe.prototype.ctor.call(this); g !== m && this.k(c, d, f, g) }, VB: A("kc"), RC: x("kc"), Fx: A("lc"), fy: x("lc"), k: function(c, d, f, g) { return C.Vf.prototype.k.call(this, c, d) ? (this.ak = f, this.kc = g, this.lc = 1, q) : t }, update: function(c) { for (var d = this.ua, f = this.kc, g = C.d(0, 0), h = this.lc, k = this.ak, n = 0; n < d.width + 1; ++n) for (var p = 0; p < d.height + 1; ++p) { g.x = n; g.y = p; var r = this.uf(g); r.f += Math.sin(2 * Math.PI * c * k + 0.01 * (r.y + r.x)) * f * h; this.wh(g, r) } } }); C.L8.create = function(c, d, f, g) { return new C.L8(c, d, f, g) }; C.gT = C.Vf.extend({ ctor: function(c) { c !== m ? C.pe.prototype.ctor.call(this, c, C.size(1, 1)) : C.pe.prototype.ctor.call(this) }, k: function(c) { return C.Vf.prototype.k.call(this, c, C.size(1, 1)) }, Mp: function(c, d) { return 1 != c.width || 1 != c.height ? (C.log("Grid size must be (1,1)"), t) : C.Vf.prototype.k.call(this, d, c) }, update: function(c) { var d = Math.PI * c; c = Math.sin(d); var f = Math.cos(d / 2), d = new C.re, g = C.d(0, 0); g.x = g.y = 1; var h = this.uf(g); g.x = g.y = 0; var g = this.uf(g), k = h.x, n = g.x, p, r; k > n ? (h = C.d(0, 0), g = C.d(0, 1), p = C.d(1, 0), r = C.d(1, 1)) : (p = C.d(0, 0), r = C.d(0, 1), h = C.d(1, 0), g = C.d(1, 1), k = n); d.x = k - k * f; d.f = Math.abs(parseFloat(k * c / 4)); c = this.uf(h); c.x = d.x; c.f += d.f; this.wh(h, c); c = this.uf(g); c.x = d.x; c.f += d.f; this.wh(g, c); c = this.uf(p); c.x -= d.x; c.f -= d.f; this.wh(p, c); c = this.uf(r); c.x -= d.x; c.f -= d.f; this.wh(r, c) } }); C.gT.create = function(c) { return new C.gT(c) }; C.V5 = C.gT.extend({ ctor: function(c) { c !== m ? C.pe.prototype.ctor.call(this, c, C.size(1, 1)) : C.pe.prototype.ctor.call(this) }, update: function(c) { var d = Math.PI * c; c = Math.sin(d); var f = Math.cos(d / 2), d = new C.re, g = C.d(0, 0); g.x = g.y = 1; var h = this.uf(g); g.x = g.y = 0; var g = this.uf(g), k = h.y, n = g.y, p, r; k > n ? (h = C.d(0, 0), g = C.d(0, 1), p = C.d(1, 0), r = C.d(1, 1)) : (g = C.d(0, 0), h = C.d(0, 1), r = C.d(1, 0), p = C.d(1, 1), k = n); d.y = k - k * f; d.f = Math.abs(parseFloat(k * c) / 4); c = this.uf(h); c.y = d.y; c.f += d.f; this.wh(h, c); c = this.uf(g); c.y -= d.y; c.f -= d.f; this.wh(g, c); c = this.uf(p); c.y = d.y; c.f += d.f; this.wh(p, c); c = this.uf(r); c.y -= d.y; c.f -= d.f; this.wh(r, c) } }); C.V5.create = function(c) { return new C.V5(c) }; C.w6 = C.Vf.extend({ ma: s, Ui: 0, ZM: 0, vra: t, Ac: t, ctor: function(c, d, f, g) { C.pe.prototype.ctor.call(this); this.ma = C.d(0, 0); g !== m && this.k(c, d, f, g) }, fVa: A("ZM"), u4a: x("ZM"), I3a: x("vra"), Ld: A("ma"), p: function(c) { C.b2(c, this.ma) || (this.ma.x = c.x, this.ma.y = c.y, this.Ac = q) }, k: function(c, d, f, g) { return C.Vf.prototype.k.call(this, c, d) ? (this.p(f), this.Ui = g, this.ZM = 0.7, this.Ac = q) : t }, update: function() { if (this.Ac) { for (var c = this.ua.width, d = this.ua.height, f = this.Ui, g = this.ZM, h = C.d(0, 0), k = C.d(0, 0), n, p, r, v = 0; v < c + 1; ++v) for (var y = 0; y < d + 1; ++y) h.x = v, h.y = y, n = this.uf(h), k.x = this.ma.x - n.x, k.y = this.ma.y - n.y, p = C.Ye(k), p < f && (p = f - p, p /= f, 0 == p && (p = 0.0010), p = Math.log(p) * g, r = Math.exp(p) * f, p = C.Ye(k), 0 < p && (k.x /= p, k.y /= p, k.x *= r, k.y *= r, n.f += C.Ye(k) * g)), this.wh(h, n); this.Ac = t } } }); C.w6.create = function(c, d, f, g) { return new C.w6(c, d, f, g) }; C.z7 = C.Vf.extend({ ma: s, Ui: 0, ak: 0, kc: 0, lc: 0, ctor: function(c, d, f, g, h, k) { C.pe.prototype.ctor.call(this); this.ma = C.d(0, 0); k !== m && this.k(c, d, f, g, h, k) }, Ld: A("ma"), p: function(c) { this.ma.x = c.x; this.ma.y = c.y }, VB: A("kc"), RC: x("kc"), Fx: A("lc"), fy: x("lc"), k: function(c, d, f, g, h, k) { return C.Vf.prototype.k.call(this, c, d) ? (this.p(f), this.Ui = g, this.ak = h, this.kc = k, this.lc = 1, q) : t }, update: function(c) { for (var d = this.ua.width, f = this.ua.height, g = C.d(0, 0), h = this.Ui, k = this.ak, n = this.kc, p = this.lc, r, v, y = C.d(0, 0), z = 0; z < d + 1; ++z) for (var D = 0; D < f + 1; ++D) g.x = z, g.y = D, r = this.uf(g), y.x = this.ma.x - r.x, y.y = this.ma.y - r.y, v = C.Ye(y), v < h && (v = h - v, r.f += Math.sin(2 * c * Math.PI * k + 0.1 * v) * n * p * Math.pow(v / h, 2)), this.wh(g, r) } }); C.z7.create = function(c, d, f, g, h, k) { return new C.z7(c, d, f, g, h, k) }; C.H7 = C.Vf.extend({ Qt: 0, FG: t, ctor: function(c, d, f, g) { C.pe.prototype.ctor.call(this); g !== m && this.k(c, d, f, g) }, k: function(c, d, f, g) { return C.Vf.prototype.k.call(this, c, d) ? (this.Qt = f, this.FG = g, q) : t }, update: function() { for (var c = this.ua.width, d = this.ua.height, f = this.Qt, g = this.FG, h = C.d(0, 0), k, n = 0; n < c + 1; ++n) for (var p = 0; p < d + 1; ++p) h.x = n, h.y = p, k = this.uf(h), k.x += C.dd() % (2 * f) - f, k.y += C.dd() % (2 * f) - f, g && (k.f += C.dd() % (2 * f) - f), this.wh(h, k) } }); C.H7.create = function(c, d, f, g) { return new C.H7(c, d, f, g) }; C.x6 = C.Vf.extend({ ak: 0, kc: 0, lc: 0, ctor: function(c, d, f, g) { C.pe.prototype.ctor.call(this); g !== m && this.k(c, d, f, g) }, VB: A("kc"), RC: x("kc"), Fx: A("lc"), fy: x("lc"), k: function(c, d, f, g) { return C.Vf.prototype.k.call(this, c, d) ? (this.ak = f, this.kc = g, this.lc = 1, q) : t }, update: function(c) { for (var d = this.ua.width, f = this.ua.height, g = C.d(0, 0), h = this.ak, k = this.kc, n = this.lc, p, r = 1; r < d; ++r) for (var v = 1; v < f; ++v) g.x = r, g.y = v, p = this.uf(g), p.x += Math.sin(2 * c * Math.PI * h + 0.01 * p.x) * k * n, p.y += Math.sin(2 * c * Math.PI * h + 0.01 * p.y) * k * n, this.wh(g, p) } }); C.x6.create = function(c, d, f, g) { return new C.x6(c, d, f, g) }; C.K8 = C.Vf.extend({ ak: 0, kc: 0, lc: 0, jca: t, Z$: t, ctor: function(c, d, f, g, h, k) { C.pe.prototype.ctor.call(this); k !== m && this.k(c, d, f, g, h, k) }, VB: A("kc"), RC: x("kc"), Fx: A("lc"), fy: x("lc"), k: function(c, d, f, g, h, k) { return C.Vf.prototype.k.call(this, c, d) ? (this.ak = f, this.kc = g, this.lc = 1, this.Z$ = h, this.jca = k, q) : t }, update: function(c) { for (var d = this.ua.width, f = this.ua.height, g = C.d(0, 0), h = this.jca, k = this.Z$, n = this.ak, p = this.kc, r = this.lc, v, y = 0; y < d + 1; ++y) for (var z = 0; z < f + 1; ++z) g.x = y, g.y = z, v = this.uf(g), h && (v.x += Math.sin(2 * c * Math.PI * n + 0.01 * v.y) * p * r), k && (v.y += Math.sin(2 * c * Math.PI * n + 0.01 * v.x) * p * r), this.wh(g, v) } }); C.K8.create = function(c, d, f, g, h, k) { return new C.K8(c, d, f, g, h, k) }; C.F8 = C.Vf.extend({ ma: s, Wba: 0, kc: 0, lc: 0, ctor: function(c, d, f, g, h) { C.pe.prototype.ctor.call(this); this.ma = C.d(0, 0); h !== m && this.k(c, d, f, g, h) }, Ld: A("ma"), p: function(c) { this.ma.x = c.x; this.ma.y = c.y }, VB: A("kc"), RC: x("kc"), Fx: A("lc"), fy: x("lc"), k: function(c, d, f, g, h) { return C.Vf.prototype.k.call(this, c, d) ? (this.p(f), this.Wba = g, this.kc = h, this.lc = 1, q) : t }, update: function(c) { for (var d = this.ma, f = this.ua.width, g = this.ua.height, h = C.d(0, 0), k = 0.1 * this.kc * this.lc, n = this.Wba, p, r, v, y = C.d(0, 0), z = 0; z < f + 1; ++z) for (var D = 0; D < g + 1; ++D) h.x = z, h.y = D, p = this.uf(h), y.x = z - f / 2, y.y = D - g / 2, r = C.Ye(y) * Math.cos(Math.PI / 2 + 2 * c * Math.PI * n) * k, v = Math.sin(r) * (p.y - d.y) + Math.cos(r) * (p.x - d.x), r = Math.cos(r) * (p.y - d.y) - Math.sin(r) * (p.x - d.x), p.x = d.x + v, p.y = d.y + r, this.wh(h, p) } }); C.F8.create = function(c, d, f, g, h) { return new C.F8(c, d, f, g, h) }; C.I7 = C.Ie.extend({ Qt: 0, FG: t, ctor: function(c, d, f, g) { C.pe.prototype.ctor.call(this); g !== m && this.k(c, d, f, g) }, k: function(c, d, f, g) { return C.Ie.prototype.k.call(this, c, d) ? (this.Qt = f, this.FG = g, q) : t }, update: function() { for (var c = this.ua, d = this.Qt, f = C.d(0, 0), g = 0; g < c.width; ++g) for (var h = 0; h < c.height; ++h) { f.x = g; f.y = h; var k = this.sl(f); k.T.x += C.dd() % (2 * d) - d; k.Y.x += C.dd() % (2 * d) - d; k.X.x += C.dd() % (2 * d) - d; k.V.x += C.dd() % (2 * d) - d; k.T.y += C.dd() % (2 * d) - d; k.Y.y += C.dd() % (2 * d) - d; k.X.y += C.dd() % (2 * d) - d; k.V.y += C.dd() % (2 * d) - d; this.FG && (k.T.f += C.dd() % (2 * d) - d, k.Y.f += C.dd() % (2 * d) - d, k.X.f += C.dd() % (2 * d) - d, k.V.f += C.dd() % (2 * d) - d); this.Aj(f, k) } } }); C.I7.create = function(c, d, f, g) { return new C.I7(c, d, f, g) }; C.J7 = C.Ie.extend({ Qt: 0, IX: t, Eba: t, ctor: function(c, d, f, g) { C.pe.prototype.ctor.call(this); g !== m && this.k(c, d, f, g) }, k: function(c, d, f, g) { return C.Ie.prototype.k.call(this, c, d) ? (this.IX = t, this.Qt = f, this.Eba = g, q) : t }, update: function() { if (this.IX === t) { for (var c = this.ua, d = this.Qt, f, g = C.d(0, 0), h = 0; h < c.width; ++h) for (var k = 0; k < c.height; ++k) g.x = h, g.y = k, f = this.sl(g), f.T.x += C.dd() % (2 * d) - d, f.Y.x += C.dd() % (2 * d) - d, f.X.x += C.dd() % (2 * d) - d, f.V.x += C.dd() % (2 * d) - d, f.T.y += C.dd() % (2 * d) - d, f.Y.y += C.dd() % (2 * d) - d, f.X.y += C.dd() % (2 * d) - d, f.V.y += C.dd() % (2 * d) - d, this.Eba && (f.T.f += C.dd() % (2 * d) - d, f.Y.f += C.dd() % (2 * d) - d, f.X.f += C.dd() % (2 * d) - d, f.V.f += C.dd() % (2 * d) - d), this.Aj(g, f); this.IX = q } } }); C.J7.create = function(c, d, f, g) { return new C.J7(c, d, f, g) }; function na() { this.position = C.d(0, 0); this.TIa = C.d(0, 0); this.JB = C.d(0, 0) } C.K7 = C.Ie.extend({ wY: 0, Cr: 0, up: s, $i: s, ctor: function(c, d, f) { C.pe.prototype.ctor.call(this); this.up = []; this.$i = []; f !== m && this.k(c, d, f) }, k: function(c, d, f) { return C.Ie.prototype.k.call(this, c, d) ? (this.wY = f, this.up.length = 0, this.$i.length = 0, q) : t }, A3: function(c, d) { for (var f = d - 1; 0 <= f; f--) { var g = 0 | C.dd() % (f + 1), h = c[f]; c[f] = c[g]; c[g] = h } }, p0: function(c) { var d = this.ua, f = c.width * d.height + c.height; return C.size(this.up[f] / d.height - c.width, this.up[f] % d.height - c.height) }, EFa: function(c, d) { var f = this.sl(c), g = this.target.grid.G0(), h = d.position; f.T.x += h.x * g.x; f.T.y += h.y * g.y; f.Y.x += h.x * g.x; f.Y.y += h.y * g.y; f.X.x += h.x * g.x; f.X.y += h.y * g.y; f.V.x += h.x * g.x; f.V.y += h.y * g.y; this.Aj(c, f) }, R: function(c) { C.Ie.prototype.R.call(this, c); c = this.ua; this.Cr = c.width * c.height; for (var d = this.up, f = d.length = 0; f < this.Cr; ++f) d[f] = f; this.A3(d, this.Cr); for (var d = this.$i, f = d.length = 0, g = C.size(0, 0), h = 0; h < c.width; ++h) for (var k = 0; k < c.height; ++k) d[f] = new na, d[f].position = C.d(h, k), d[f].TIa = C.d(h, k), g.width = h, g.height = k, d[f].JB = this.p0(g), ++f }, update: function(c) { for (var d = 0, f = this.ua, g = this.$i, h, k = C.d(0, 0), n = 0; n < f.width; ++n) for (var p = 0; p < f.height; ++p) k.x = n, k.y = p, h = g[d], h.position.x = h.JB.width * c, h.position.y = h.JB.height * c, this.EFa(k, h), ++d } }); C.K7.create = function(c, d, f) { return new C.K7(c, d, f) }; C.kE = C.Ie.extend({ cS: function(c, d) { var f = this.ua.width * d, g = this.ua.height * d; return 0 == f + g ? 1 : Math.pow((c.width + c.height) / (f + g), 6) }, R3: function(c) { this.Aj(c, this.sl(c)) }, Q3: function(c) { this.Aj(c, new C.FK) }, aja: function(c, d) { var f = this.sl(c), g = this.target.grid.G0(); f.T.x += g.x / 2 * (1 - d); f.T.y += g.y / 2 * (1 - d); f.Y.x -= g.x / 2 * (1 - d); f.Y.y += g.y / 2 * (1 - d); f.X.x += g.x / 2 * (1 - d); f.X.y -= g.y / 2 * (1 - d); f.V.x -= g.x / 2 * (1 - d); f.V.y -= g.y / 2 * (1 - d); this.Aj(c, f) }, update: function(c) { for (var d = this.ua, f = C.d(0, 0), g = C.size(0, 0), h, k = 0; k < d.width; ++k) for (var n = 0; n < d.height; ++n) f.x = k, f.y = n, g.width = k, g.height = n, h = this.cS(g, c), 0 == h ? this.Q3(f) : 1 > h ? this.aja(f, h) : this.R3(f) } }); C.kE.create = function(c, d) { return new C.kE(c, d) }; C.eT = C.kE.extend({ cS: function(c, d) { return 0 == c.width + c.height ? 1 : Math.pow((this.ua.width * (1 - d) + this.ua.height * (1 - d)) / (c.width + c.height), 6) } }); C.eT.create = function(c, d) { return new C.eT(c, d) }; C.sK = C.kE.extend({ cS: function(c, d) { var f = this.ua.height * d; return 0 == f ? 1 : Math.pow(c.height / f, 6) }, aja: function(c, d) { var f = this.sl(c), g = this.target.grid.G0(); f.T.y += g.y / 2 * (1 - d); f.Y.y += g.y / 2 * (1 - d); f.X.y -= g.y / 2 * (1 - d); f.V.y -= g.y / 2 * (1 - d); this.Aj(c, f) } }); C.sK.create = function(c, d) { return new C.sK(c, d) }; C.fT = C.sK.extend({ cS: function(c, d) { return 0 == c.height ? 1 : Math.pow(this.ua.height * (1 - d) / c.height, 6) } }); C.fT.create = function(c, d) { return new C.fT(c, d) }; C.CU = C.Ie.extend({ wY: s, Cr: 0, up: s, ctor: function(c, d, f) { C.pe.prototype.ctor.call(this); this.up = []; d !== m && this.k(c, d, f) }, k: function(c, d, f) { return C.Ie.prototype.k.call(this, c, d) ? (this.wY = f || 0, this.up.length = 0, q) : t }, A3: function(c, d) { for (var f = d - 1; 0 <= f; f--) { var g = 0 | C.dd() % (f + 1), h = c[f]; c[f] = c[g]; c[g] = h } }, R3: function(c) { this.Aj(c, this.sl(c)) }, Q3: function(c) { this.Aj(c, new C.FK) }, R: function(c) { C.Ie.prototype.R.call(this, c); this.Cr = this.ua.width * this.ua.height; c = this.up; for (var d = c.length = 0; d < this.Cr; ++d) c[d] = d; this.A3(c, this.Cr) }, update: function(c) { c = 0 | c * this.Cr; for (var d = this.ua, f, g = C.d(0, 0), h = this.up, k = 0; k < this.Cr; k++) f = h[k], g.x = 0 | f / d.height, g.y = f % (0 | d.height), k < c ? this.Q3(g) : this.R3(g) } }); C.CU.create = function(c, d, f) { return new C.CU(c, d, f) }; C.M8 = C.Ie.extend({ ak: 0, kc: 0, lc: 0, ctor: function(c, d, f, g) { C.pe.prototype.ctor.call(this); g !== m && this.k(c, d, f, g) }, VB: A("kc"), RC: x("kc"), Fx: A("lc"), fy: x("lc"), k: function(c, d, f, g) { return C.Ie.prototype.k.call(this, c, d) ? (this.ak = f, this.kc = g, this.lc = 1, q) : t }, update: function(c) { for (var d = this.ua, f = this.ak, g = this.kc, h = this.lc, k = C.d(0, 0), n, p = 0; p < d.width; p++) for (var r = 0; r < d.height; r++) k.x = p, k.y = r, n = this.sl(k), n.T.f = Math.sin(2 * c * Math.PI * f + 0.01 * (n.T.y + n.T.x)) * g * h, n.Y.f = n.T.f, n.X.f = n.T.f, n.V.f = n.T.f, this.Aj(k, n) } }); C.M8.create = function(c, d, f, g) { return new C.M8(c, d, f, g) }; C.f6 = C.Ie.extend({ ar: 0, kc: 0, lc: 0, ctor: function(c, d, f, g) { C.pe.prototype.ctor.call(this); g !== m && this.k(c, d, f, g) }, VB: A("kc"), RC: x("kc"), Fx: A("lc"), fy: x("lc"), k: function(c, d, f, g) { return C.Ie.prototype.k.call(this, c, d) ? (this.ar = f, this.kc = g, this.lc = 1, q) : t }, update: function(c) { var d = Math.sin(2 * Math.PI * c * this.ar) * this.kc * this.lc; c = Math.sin(Math.PI * (2 * c * this.ar + 1)) * this.kc * this.lc; for (var f = this.ua, g = this.target.grid, h, k = C.d(0, 0), n = 0; n < f.width; n++) for (var p = 0; p < f.height; p++) k.x = n, k.y = p, h = g.sl(k), 0 == (n + p) % 2 ? (h.T.f += d, h.Y.f += d, h.X.f += d, h.V.f += d) : (h.T.f += c, h.Y.f += c, h.X.f += c, h.V.f += c), g.Aj(k, h) } }); C.f6.create = function(c, d, f, g) { return new C.f6(c, d, f, g) }; C.gU = C.Ie.extend({ Jua: 0, jH: s, ctor: function(c, d) { C.pe.prototype.ctor.call(this); d !== m && this.k(c, d) }, k: function(c, d) { this.Jua = d; return C.Ie.prototype.k.call(this, c, C.size(1, d)) }, update: function(c) { for (var d = this.ua, f = this.jH.width, g, h, k = C.d(0, 0), n = 0; n < d.height; ++n) k.y = n, g = this.sl(k), h = 1, 0 == n % 2 && (h = -1), g.T.x += h * f * c, g.Y.x += h * f * c, g.X.x += h * f * c, g.V.x += h * f * c, this.Aj(k, g) }, R: function(c) { C.Ie.prototype.R.call(this, c); this.jH = C.Q.bI() } }); C.gU.create = function(c, d) { return new C.gU(c, d) }; C.fU = C.Ie.extend({ ura: 0, jH: s, ctor: function(c, d) { C.pe.prototype.ctor.call(this); d !== m && this.k(c, d) }, k: function(c, d) { this.ura = d; return C.Ie.prototype.k.call(this, c, C.size(d, 1)) }, update: function(c) { for (var d = this.ua.width, f = this.jH.height, g, h, k = C.d(0, 0), n = 0; n < d; ++n) k.x = n, g = this.sl(k), h = 1, 0 == n % 2 && (h = -1), g.T.y += h * f * c, g.Y.y += h * f * c, g.X.y += h * f * c, g.V.y += h * f * c, this.Aj(k, g) }, R: function(c) { C.Ie.prototype.R.call(this, c); this.jH = C.Q.bI() } }); C.fU.create = function(c, d) { return new C.fU(c, d) }; C.CK = C.Vf.extend({ update: function(c) { var d = Math.max(0, c - 0.25), d = -100 - 500 * d * d, f = +Math.PI / 2 + -Math.PI / 2 * Math.sqrt(c); c = Math.sin(f); for (var f = Math.cos(f), g = this.ua, h = C.d(0, 0), k = 0; k <= g.width; ++k) for (var n = 0; n <= g.height; ++n) { h.x = k; h.y = n; var p = this.uf(h), r = Math.sqrt(p.x * p.x + (p.y - d) * (p.y - d)), v = r * c, y = Math.asin(p.x / r) / c, z = Math.cos(y); p.x = y <= Math.PI ? v * Math.sin(y) : 0; p.y = r + d - v * (1 - z) * c; p.f = v * (1 - z) * f / 7; 0.5 > p.f && (p.f = 0.5); this.wh(h, p) } } }); C.CK.create = function(c, d) { return new C.CK(c, d) }; C.Lb = C.ha.extend({ xc: s, wn: 0, ie: s, tn: s, Lv: s, gh: t, qa: "ProgressTimer", eBa: function() { return C.d(this.tn.x, this.tn.y) }, KHa: function(c) { this.tn = C.jga(c) }, dAa: function() { return C.d(this.Lv.x, this.Lv.y) }, cHa: function(c) { this.Lv = C.jga(c) }, $H: A("xc"), uBa: A("wn"), E0: A("ie"), X2: function(c) { this.wn != c && (this.wn = C.Nf(c, 0, 100), this.tZ()) }, $d: u(), qg: B(t), yDa: A("gh"), zV: function(c) { if (c < C.Lb.O7) { var d = C.Lb.qpa; return this.gh ? C.d(d >> 7 - (c << 1) & 1, d >> 7 - ((c << 1) + 1) & 1) : C.d(d >> (c << 1) + 1 & 1, d >> (c << 1) & 1) } return C.d(0, 0) }, uN: s, Sw: 270, pW: 270, Ui: 0, TV: t, tV: s, Lg: 0, Ue: s, $j: s, AZ: s, fH: t, ctor: s, pF: function() { C.ha.prototype.ctor.call(this); this.xc = C.Lb.Fo; this.wn = 0; this.tn = C.d(0, 0); this.Lv = C.d(0, 0); this.gh = t; this.ie = s; this.uN = C.d(0, 0); this.pW = this.Sw = 270; this.Ui = 0; this.TV = t; this.tV = C.rect(0, 0, 0, 0) }, qF: function() { C.ha.prototype.ctor.call(this); this.xc = C.Lb.Fo; this.wn = 0; this.tn = C.d(0, 0); this.Lv = C.d(0, 0); this.gh = t; this.ie = s; this.AZ = C.t.createBuffer(); this.Lg = 0; this.$j = this.Ue = s; this.fH = t }, G: function(c) { this.ie.color = c; this.Gd() }, K: function(c) { this.ie.opacity = c; this.Gd() }, Xa: function() { return this.ie.color }, rb: function() { return this.ie.opacity }, lia: s, iva: function(c) { this.gh !== c && (this.gh = c) }, jva: function(c) { this.gh !== c && (this.gh = c, this.$j = this.Ue = s, this.Lg = 0) }, NR: s, ova: function(c) { this.ie != c && (this.ie = c, this.width = this.ie.width, this.height = this.ie.height) }, pva: function(c) { c && this.ie != c && (this.ie = c, this.width = c.width, this.height = c.height, this.Ue && (this.$j = this.Ue = s, this.Lg = 0)) }, rJ: s, xva: function(c) { c !== this.xc && (this.xc = c) }, yva: function(c) { c !== this.xc && (this.Ue && (this.$j = this.Ue = s, this.Lg = 0), this.xc = c) }, e3: s, gva: function(c) { this.gh !== c && (this.gh = c) }, hva: function(c) { this.gh !== c && (this.gh = c, this.$j = this.Ue = s, this.Lg = 0) }, ti: function(c) { var d = this.ie; if (!d) return { xa: 0, ea: 0 }; var f = d.quad, g = C.d(f.T.v.xa, f.T.v.ea), f = C.d(f.V.v.xa, f.V.v.ea); d.textureRectRotated && (d = c.x, c.x = c.y, c.y = d); return { xa: g.x * (1 - c.x) + f.x * c.x, ea: g.y * (1 - c.y) + f.y * c.y } }, vi: function(c) { if (!this.ie) return { x: 0, y: 0 }; var d = this.ie.quad, f = C.d(d.T.m.x, d.T.m.y), d = C.d(d.V.m.x, d.V.m.y); return { x: f.x * (1 - c.x) + d.x * c.x, y: f.y * (1 - c.y) + d.y * c.y } }, Y0: s, fta: function(c) { this.percentage = 0; this.anchorY = this.anchorX = 0.5; this.xc = C.Lb.Fo; this.gh = t; this.midPoint = C.d(0.5, 0.5); this.barChangeRate = C.d(1, 1); this.sprite = c; return q }, gta: function(c) { this.percentage = 0; this.$j = this.Ue = s; this.Lg = 0; this.anchorY = this.anchorX = 0.5; this.xc = C.Lb.Fo; this.gh = t; this.midPoint = C.d(0.5, 0.5); this.barChangeRate = C.d(1, 1); this.sprite = c; this.shaderProgram = C.ug.Xd(C.Co); return q }, ka: s, Qq: function(c) { c = c || C.t; var d = this.ie; d.rA && (c.globalCompositeOperation = "lighter"); var f = C.view.ia, g = C.view.pa; c.globalAlpha = d.hb / 255; var h = d.Ra, k = d.o, n = d.ld, p = d.mW, r = 0 | n.x, v = -n.y - h.height, y = d.jB; p.width = h.width * f; p.height = h.height * g; c.save(); d.Bb && (r = -n.x - h.width, c.scale( - 1, 1)); d.Db && (v = n.y, c.scale(1, -1)); r *= f; v *= g; this.xc == C.Lb.Is ? (h = this.tV, c.beginPath(), c.rect(h.x * f, h.y * g, h.width * f, h.height * g), c.clip(), c.closePath()) : this.xc == C.Lb.Fo && (h = this.uN.x * f, n = this.uN.y * g, c.beginPath(), c.arc(h, n, this.Ui * g, Math.PI / 180 * this.Sw, Math.PI / 180 * this.pW, this.TV), c.lineTo(h, n), c.clip(), c.closePath()); d.da && y.nD ? (f = d.da.jd, this.KL ? c.drawImage(f, 0, 0, y.width, y.height, r, v, p.width, p.height) : c.drawImage(f, y.x, y.y, y.width, y.height, r, v, p.width, p.height)) : 0 !== k.width && (p = this.color, c.fillStyle = "rgba(" + p.r + "," + p.g + "," + p.b + ",1)", c.fillRect(r, v, k.width * f, k.height * g)); c.restore(); C.nl() }, gn: function(c) { c = c || C.t; if (this.Ue && this.ie) { C.BC(this); var d = this.ie.ek(); C.Gm(d.src, d.ga); C.rf(C.Dv); C.yi(this.ie.texture); c.bindBuffer(c.ARRAY_BUFFER, this.AZ); this.fH && (c.bufferData(c.ARRAY_BUFFER, this.$j, c.DYNAMIC_DRAW), this.fH = t); d = C.Ug.BYTES_PER_ELEMENT; c.vertexAttribPointer(C.Lc, 2, c.FLOAT, t, d, 0); c.vertexAttribPointer(C.Hi, 4, c.UNSIGNED_BYTE, q, d, 8); c.vertexAttribPointer(C.Vg, 2, c.FLOAT, t, d, 12); this.xc === C.Lb.Fo ? c.drawArrays(c.TRIANGLE_FAN, 0, this.Lg) : this.xc == C.Lb.Is && (this.gh ? (c.drawArrays(c.TRIANGLE_STRIP, 0, this.Lg / 2), c.drawArrays(c.TRIANGLE_STRIP, 4, this.Lg / 2), C.kl++) : c.drawArrays(c.TRIANGLE_STRIP, 0, this.Lg)); C.kl++ } }, hwa: function() { if (this.ie) { var c, d = this.tn; c = this.wn / 100; var f = 2 * C.PI * (this.gh ? c: 1 - c), g = C.d(d.x, 1), h = C.TEa(g, d, f), f = 0; if (0 == c) h = g, f = 0; else if (1 == c) h = g, f = 4; else { var k = C.pv, n = C.Lb.O7; for (c = 0; c <= n; ++c) { var p = (c + (n - 1)) % n, r = this.zV(c % n), p = this.zV(p); 0 == c ? p = C.oga(r, p, 1 - d.x) : 4 == c && (r = C.oga(r, p, 1 - d.x)); var v = C.d(0, 0); if (C.R1(r, p, d, h, v) && (!(0 == c || 4 == c) || 0 <= v.x && 1 >= v.x) && 0 <= v.y && v.y < k) k = v.y, f = c } h = C.ho(d, C.Wp(C.cc(h, d), k)) } k = q; this.Lg != f + 3 && (k = t, this.$j = this.Ue = s, this.Lg = 0); if (!this.Ue) { n = this.Lg = f + 3; r = C.Ug.BYTES_PER_ELEMENT; this.$j = new ArrayBuffer(n * r); p = []; for (c = 0; c < n; c++) p[c] = new C.Ug(s, s, s, this.$j, c * r); this.Ue = p; if (!this.Ue) { C.log("cc.ProgressTimer._updateRadial() : Not enough memory"); return } } this.Gd(); n = this.Ue; if (!k) { n[0].v = this.ti(d); n[0].m = this.vi(d); n[1].v = this.ti(g); n[1].m = this.vi(g); for (c = 0; c < f; c++) d = this.zV(c), n[c + 2].v = this.ti(d), n[c + 2].m = this.vi(d) } n[this.Lg - 1].v = this.ti(h); n[this.Lg - 1].m = this.vi(h) } }, $va: function() { if (this.ie) { var c, d = this.wn / 100, f = this.Lv, f = C.Wp(C.d(1 - f.x + d * f.x, 1 - f.y + d * f.y), 0.5), d = C.cc(this.tn, f), f = C.ho(this.tn, f); 0 > d.x && (f.x += -d.x, d.x = 0); 1 < f.x && (d.x -= f.x - 1, f.x = 1); 0 > d.y && (f.y += -d.y, d.y = 0); 1 < f.y && (d.y -= f.y - 1, f.y = 1); if (this.gh) { if (!this.Ue) { this.Lg = 8; var g = C.Ug.BYTES_PER_ELEMENT; this.$j = new ArrayBuffer(8 * g); var h = []; for (c = 0; 8 > c; c++) h[c] = new C.Ug(s, s, s, this.$j, c * g); h[0].v = this.ti(C.d(0, 1)); h[0].m = this.vi(C.d(0, 1)); h[1].v = this.ti(C.d(0, 0)); h[1].m = this.vi(C.d(0, 0)); h[6].v = this.ti(C.d(1, 1)); h[6].m = this.vi(C.d(1, 1)); h[7].v = this.ti(C.d(1, 0)); h[7].m = this.vi(C.d(1, 0)); this.Ue = h } c = this.Ue; c[2].v = this.ti(C.d(d.x, f.y)); c[2].m = this.vi(C.d(d.x, f.y)); c[3].v = this.ti(C.d(d.x, d.y)); c[3].m = this.vi(C.d(d.x, d.y)); c[4].v = this.ti(C.d(f.x, f.y)); c[4].m = this.vi(C.d(f.x, f.y)); c[5].v = this.ti(C.d(f.x, d.y)); c[5].m = this.vi(C.d(f.x, d.y)) } else { if (!this.Ue) { this.Lg = 4; g = C.Ug.BYTES_PER_ELEMENT; this.$j = new ArrayBuffer(4 * g); this.Ue = []; for (c = 0; 4 > c; c++) this.Ue[c] = new C.Ug(s, s, s, this.$j, c * g) } c = this.Ue; c[0].v = this.ti(C.d(d.x, f.y)); c[0].m = this.vi(C.d(d.x, f.y)); c[1].v = this.ti(C.d(d.x, d.y)); c[1].m = this.vi(C.d(d.x, d.y)); c[2].v = this.ti(C.d(f.x, f.y)); c[2].m = this.vi(C.d(f.x, f.y)); c[3].v = this.ti(C.d(f.x, d.y)); c[3].m = this.vi(C.d(f.x, d.y)) } this.Gd() } }, Gd: function() { if (this.ie && this.Ue) { for (var c = this.ie.quad.X.F, d = this.Ue, f = 0, g = this.Lg; f < g; ++f) d[f].F = c; this.fH = q } }, tZ: s, dwa: function() { var c = this.ie, d = c.width, f = c.height, g = this.tn; if (this.xc == C.Lb.Fo) { this.Ui = Math.round(Math.sqrt(d * d + f * f)); var h, k = t, n = this.uN; n.x = d * g.x; n.y = -f * g.y; this.gh ? (h = 270, g = 270 - 3.6 * this.wn) : (g = -90, h = -90 + 3.6 * this.wn); c.Bb && (n.x -= d * 2 * this.tn.x, g = -g - 180, h = -h - 180, k = !k); c.Db && (n.y += f * 2 * this.tn.y, k = !k, g = -g, h = -h); this.Sw = g; this.pW = h; this.TV = k } else { h = this.Lv; n = this.wn / 100; k = this.tV; h = C.size(d * (1 - h.x), f * (1 - h.y)); var n = C.size((d - h.width) * n, (f - h.height) * n), n = C.size(h.width + n.width, h.height + n.height), p = C.d(d * g.x, f * g.y); h = p.x - n.width / 2; 0.5 < g.x && n.width / 2 >= d - p.x && (h = d - n.width); d = p.y - n.height / 2; 0.5 < g.y && n.height / 2 >= f - p.y && (d = f - n.height); k.x = 0; f = 1; c.Bb && (k.x -= n.width, f = -1); 0 < h && (k.x += h * f); k.y = 0; f = 1; c.Db && (k.y += n.height, f = -1); 0 < d && (k.y -= d * f); k.width = n.width; k.height = -n.height } }, ewa: function() { var c = this.xc; c === C.Lb.Fo ? this.hwa() : c === C.Lb.Is && this.$va(); this.fH = q } }); H = C.Lb.prototype; C.L == C.la ? (H.ctor = H.qF, H.lia = H.jva, H.NR = H.pva, H.rJ = H.yva, H.e3 = H.hva, H.Y0 = H.gta, H.ka = H.gn, H.tZ = H.ewa) : (H.ctor = H.pF, H.lia = H.iva, H.NR = H.ova, H.rJ = H.xva, H.e3 = H.gva, H.Y0 = H.fta, H.ka = H.Qq, H.tZ = C.Lb.prototype.dwa); C.e(H, "midPoint", H.eBa, H.KHa); C.e(H, "barChangeRate", H.dAa, H.cHa); C.e(H, "type", H.$H, H.rJ); C.e(H, "percentage", H.uBa, H.X2); C.e(H, "sprite", H.E0, H.NR); C.e(H, "reverseDir", H.yDa, H.e3); C.Lb.create = function(c) { var d = new C.Lb; return d.Y0(c) ? d: s }; C.Lb.O7 = 4; C.Lb.qpa = 75; C.Lb.Fo = 0; C.Lb.Is = 1; C.KT = C.N.extend({ Jf: 0, Qc: 0, ctor: function(c, d) { C.N.prototype.ctor.call(this); this.Qc = this.Jf = 0; d !== m && this.k(c, d) }, k: function(c, d) { return C.N.prototype.k.call(this, c) ? (this.Jf = d, q) : t }, s: function() { var c = new C.KT; c.k(this.D, this.Jf); return c }, reverse: function() { C.log("cc.ProgressTo.reverse(): reverse hasn't been supported."); return s }, R: function(c) { C.N.prototype.R.call(this, c); this.Qc = c.percentage; 100 == this.Qc && (this.Qc = 0) }, update: function(c) { this.target instanceof C.Lb && (this.target.percentage = this.Qc + (this.Jf - this.Qc) * c) } }); C.KT.create = function(c, d) { return new C.KT(c, d) }; C.sE = C.N.extend({ Jf: 0, Qc: 0, ctor: function(c, d, f) { C.N.prototype.ctor.call(this); this.Qc = this.Jf = 0; f !== m && this.k(c, d, f) }, k: function(c, d, f) { return C.N.prototype.k.call(this, c) ? (this.Jf = f, this.Qc = d, q) : t }, s: function() { var c = new C.sE; c.k(this.D, this.Qc, this.Jf); return c }, reverse: function() { return C.sE.create(this.D, this.Jf, this.Qc) }, R: function(c) { C.N.prototype.R.call(this, c) }, update: function(c) { this.target instanceof C.Lb && (this.target.percentage = this.Qc + (this.Jf - this.Qc) * c) } }); C.sE.create = function(c, d, f) { return new C.sE(c, d, f) }; C.xE = 4208917214; C.GNa = C.O.extend({ ck: u() }); C.wNa = 0; C.Hs = 1; C.VK = 0; C.vNa = 1; C.tb = C.Ll.extend({ ib: s, tc: s, D: s, on: t, maa: t, qa: "TransitionScene", ctor: function(c, d) { C.Ll.prototype.ctor.call(this); c !== m && d !== m && this.k(c, d) }, uba: function() { this.Zh(this.uba); var c = C.Q; this.maa = c.Tt; c.PC(this.ib); C.Ka.Ib(q); this.tc.visible = q }, qp: function() { this.on = q }, ka: function() { this.on ? (this.tc.J(), this.ib.J()) : (this.ib.J(), this.tc.J()) }, Z: function() { C.A.prototype.Z.call(this); C.Ka.Ib(t); this.tc.ph(); this.ib.Z() }, Na: function() { C.A.prototype.Na.call(this); C.Ka.Ib(q); this.tc.Na(); this.ib.qj() }, ze: function() { C.A.prototype.ze.call(this); this.maa && this.tc.ze() }, k: function(c, d) { d || e("cc.TransitionScene.initWithDuration(): Argument scene must be non-nil"); return this.j() ? (this.D = c, this.dj({ x: 0, y: 0, anchorX: 0, anchorY: 0 }), this.ib = d, this.tc = C.Q.gg, this.tc || (this.tc = C.Ll.create(), this.tc.j()), this.ib == this.tc && e("cc.TransitionScene.initWithDuration(): Incoming scene must be different from the outgoing scene"), this.qp(), q) : t }, finish: function() { this.ib.dj({ visible: q, x: 0, y: 0, scale: 1, rotation: 0 }); C.L === C.la && this.ib.Ix().restore(); this.tc.dj({ visible: t, x: 0, y: 0, scale: 1, rotation: 0 }); C.L === C.la && this.tc.Ix().restore(); this.rg(this.uba, 0) }, XP: function() { this.ib.visible = q; this.tc.visible = t } }); C.tb.create = function(c, d) { return new C.tb(c, d) }; C.Ls = C.tb.extend({ yw: 0, k: function(c, d, f) { C.tb.prototype.k.call(this, c, d) && (this.yw = f); return q } }); C.Ls.create = function(c, d, f) { var g = new C.Ls; g.k(c, d, f); return g }; C.v8 = C.tb.extend({ Z: function() { C.tb.prototype.Z.call(this); this.ib.dj({ scale: 0.0010, anchorX: 0.5, anchorY: 0.5 }); this.tc.dj({ scale: 1, anchorX: 0.5, anchorY: 0.5 }); var c = C.La.create(C.ci.create(C.Av.create(this.D / 2, 0.0010), C.Ds.create(this.D / 2, 720)), C.fd.create(this.D / 2)); this.tc.Ya(c); this.ib.Ya(C.La.create(c.reverse(), C.Jc.create(this.finish, this))) } }); C.v8.create = function(c, d) { var f = new C.v8; return f != s && f.k(c, d) ? f: s }; C.k8 = C.tb.extend({ Z: function() { C.tb.prototype.Z.call(this); var c = C.Q.aa; this.ib.dj({ scale: 0.5, x: c.width, y: 0, anchorX: 0.5, anchorY: 0.5 }); this.tc.anchorX = 0.5; this.tc.anchorY = 0.5; var d = C.Ao.create(this.D / 4, C.d( - c.width, 0), c.width / 4, 2), f = C.ae.create(this.D / 4, 1), c = C.ae.create(this.D / 4, 0.5), c = C.La.create(c, d), d = C.La.create(d, f), f = C.fd.create(this.D / 2); this.tc.Ya(c); this.ib.Ya(C.La.create(f, d, C.Jc.create(this.finish, this))) } }); C.k8.create = function(c, d) { var f = new C.k8; return f != s && f.k(c, d) ? f: s }; C.LE = C.tb.extend({ Z: function() { C.tb.prototype.Z.call(this); this.Vr(); var c = this.action(); this.ib.Ya(C.La.create(this.ck(c), C.Jc.create(this.finish, this))) }, Vr: function() { this.ib.p( - C.Q.aa.width, 0) }, action: function() { return C.Bs.create(this.D, C.d(0, 0)) }, ck: function(c) { return C.As.create(c, 2) } }); C.LE.create = function(c, d) { var f = new C.LE; return f != s && f.k(c, d) ? f: s }; C.m8 = C.LE.extend({ Vr: function() { this.ib.p(C.Q.aa.width, 0) } }); C.m8.create = function(c, d) { var f = new C.m8; return f != s && f.k(c, d) ? f: s }; C.n8 = C.LE.extend({ Vr: function() { this.ib.p(0, C.Q.aa.height) } }); C.n8.create = function(c, d) { var f = new C.n8; return f != s && f.k(c, d) ? f: s }; C.l8 = C.LE.extend({ Vr: function() { this.ib.p(0, -C.Q.aa.height) } }); C.l8.create = function(c, d) { var f = new C.l8; return f != s && f.k(c, d) ? f: s }; C.us = 0.5; C.ME = C.tb.extend({ qp: function() { this.on = t }, Z: function() { C.tb.prototype.Z.call(this); this.Vr(); var c = this.action(), d = this.action(), c = this.ck(c), d = C.La.create(this.ck(d), C.Jc.create(this.finish, this)); this.ib.Ya(c); this.tc.Ya(d) }, Vr: function() { this.ib.p( - C.Q.aa.width + C.us, 0) }, action: function() { return C.Dk.create(this.D, C.d(C.Q.aa.width - C.us, 0)) }, ck: function(c) { return C.As.create(c, 2) } }); C.ME.create = function(c, d) { var f = new C.ME; return f != s && f.k(c, d) ? f: s }; C.y8 = C.ME.extend({ qp: function() { this.on = q }, Vr: function() { this.ib.p(C.Q.aa.width - C.us, 0) }, action: function() { return C.Dk.create(this.D, C.d( - (C.Q.aa.width - C.us), 0)) } }); C.y8.create = function(c, d) { var f = new C.y8; return f != s && f.k(c, d) ? f: s }; C.x8 = C.ME.extend({ qp: function() { this.on = t }, Vr: function() { this.ib.p(0, C.Q.aa.height - C.us) }, action: function() { return C.Dk.create(this.D, C.d(0, -(C.Q.aa.height - C.us))) } }); C.x8.create = function(c, d) { var f = new C.x8; return f != s && f.k(c, d) ? f: s }; C.z8 = C.ME.extend({ qp: function() { this.on = q }, Vr: function() { this.ib.p(0, -(C.Q.aa.height - C.us)) }, action: function() { return C.Dk.create(this.D, C.d(0, C.Q.aa.height - C.us)) } }); C.z8.create = function(c, d) { var f = new C.z8; return f != s && f.k(c, d) ? f: s }; C.w8 = C.tb.extend({ Z: function() { C.tb.prototype.Z.call(this); this.ib.dj({ scale: 0.0010, anchorX: 2 / 3, anchorY: 0.5 }); this.tc.dj({ scale: 1, anchorX: 1 / 3, anchorY: 0.5 }); var c = C.ae.create(this.D, 0.01), d = C.ae.create(this.D, 1); this.ib.Ya(this.ck(d)); this.tc.Ya(C.La.create(this.ck(c), C.Jc.create(this.finish, this))) }, ck: function(c) { return C.As.create(c, 2) } }); C.w8.create = function(c, d) { var f = new C.w8; return f != s && f.k(c, d) ? f: s }; C.i8 = C.Ls.extend({ Z: function() { C.tb.prototype.Z.call(this); var c, d; this.ib.visible = t; var f; this.yw === C.Hs ? (c = 90, f = 270, d = 90) : (c = -90, f = 90, d = -90); c = C.La.create(C.fd.create(this.D / 2), C.Fj.create(), C.bi.create(this.D / 2, 1, 0, f, c, 0, 0), C.Jc.create(this.finish, this)); d = C.La.create(C.bi.create(this.D / 2, 1, 0, 0, d, 0, 0), C.Fl.create(), C.fd.create(this.D / 2)); this.ib.Ya(c); this.tc.Ya(d) } }); C.i8.create = function(c, d, f) { f == s && (f = C.Hs); var g = new C.i8; g.k(c, d, f); return g }; C.j8 = C.Ls.extend({ Z: function() { C.tb.prototype.Z.call(this); var c, d; this.ib.visible = t; var f; this.yw == C.VK ? (c = 90, f = 270, d = 90) : (c = -90, f = 90, d = -90); c = C.La.create(C.fd.create(this.D / 2), C.Fj.create(), C.bi.create(this.D / 2, 1, 0, f, c, 90, 0), C.Jc.create(this.finish, this)); d = C.La.create(C.bi.create(this.D / 2, 1, 0, 0, d, 90, 0), C.Fl.create(), C.fd.create(this.D / 2)); this.ib.Ya(c); this.tc.Ya(d) } }); C.j8.create = function(c, d, f) { f == s && (f = C.VK); var g = new C.j8; g.k(c, d, f); return g }; C.h8 = C.Ls.extend({ Z: function() { C.tb.prototype.Z.call(this); var c, d; this.ib.visible = t; var f; this.yw === C.Hs ? (c = 90, f = 270, d = 90) : (c = -90, f = 90, d = -90); c = C.La.create(C.fd.create(this.D / 2), C.Fj.create(), C.bi.create(this.D / 2, 1, 0, f, c, -45, 0), C.Jc.create(this.finish, this)); d = C.La.create(C.bi.create(this.D / 2, 1, 0, 0, d, 45, 0), C.Fl.create(), C.fd.create(this.D / 2)); this.ib.Ya(c); this.tc.Ya(d) } }); C.h8.create = function(c, d, f) { f == s && (f = C.Hs); var g = new C.h8; g.k(c, d, f); return g }; C.D8 = C.Ls.extend({ Z: function() { C.tb.prototype.Z.call(this); var c, d; this.ib.visible = t; var f; this.yw === C.Hs ? (c = 90, f = 270, d = 90) : (c = -90, f = 90, d = -90); c = C.La.create(C.fd.create(this.D / 2), C.ci.create(C.bi.create(this.D / 2, 1, 0, f, c, 0, 0), C.ae.create(this.D / 2, 1), C.Fj.create()), C.Jc.create(this.finish, this)); d = C.La.create(C.ci.create(C.bi.create(this.D / 2, 1, 0, 0, d, 0, 0), C.ae.create(this.D / 2, 0.5)), C.Fl.create(), C.fd.create(this.D / 2)); this.ib.scale = 0.5; this.ib.Ya(c); this.tc.Ya(d) } }); C.D8.create = function(c, d, f) { f == s && (f = C.Hs); var g = new C.D8; g.k(c, d, f); return g }; C.E8 = C.Ls.extend({ Z: function() { C.tb.prototype.Z.call(this); var c, d; this.ib.visible = t; var f; this.yw === C.VK ? (c = 90, f = 270, d = 90) : (c = -90, f = 90, d = -90); c = C.La.create(C.fd.create(this.D / 2), C.ci.create(C.bi.create(this.D / 2, 1, 0, f, c, 90, 0), C.ae.create(this.D / 2, 1), C.Fj.create()), C.Jc.create(this.finish, this)); d = C.La.create(C.ci.create(C.bi.create(this.D / 2, 1, 0, 0, d, 90, 0), C.ae.create(this.D / 2, 0.5)), C.Fl.create(), C.fd.create(this.D / 2)); this.ib.scale = 0.5; this.ib.Ya(c); this.tc.Ya(d) } }); C.E8.create = function(c, d, f) { f == s && (f = C.VK); var g = new C.E8; g.k(c, d, f); return g }; C.C8 = C.Ls.extend({ Z: function() { C.tb.prototype.Z.call(this); var c, d; this.ib.visible = t; var f; this.yw === C.Hs ? (c = 90, f = 270, d = 90) : (c = -90, f = 90, d = -90); c = C.La.create(C.fd.create(this.D / 2), C.ci.create(C.bi.create(this.D / 2, 1, 0, f, c, -45, 0), C.ae.create(this.D / 2, 1), C.Fj.create()), C.Fj.create(), C.Jc.create(this.finish, this)); d = C.La.create(C.ci.create(C.bi.create(this.D / 2, 1, 0, 0, d, 45, 0), C.ae.create(this.D / 2, 0.5)), C.Fl.create(), C.fd.create(this.D / 2)); this.ib.scale = 0.5; this.ib.Ya(c); this.tc.Ya(d) } }); C.C8.create = function(c, d, f) { f == s && (f = C.Hs); var g = new C.C8; g.k(c, d, f); return g }; C.d8 = C.tb.extend({ ya: s, ctor: function() { C.tb.prototype.ctor.call(this); this.ya = C.color() }, Z: function() { C.tb.prototype.Z.call(this); var c = C.gd.create(this.ya); this.ib.visible = t; this.q(c, 2, C.xE); var c = this.lj(C.xE), d = C.La.create(C.Ry.create(this.D / 2), C.Jc.create(this.XP, this), C.Sy.create(this.D / 2), C.Jc.create(this.finish, this)); c.Ya(d) }, Na: function() { C.tb.prototype.Na.call(this); this.$Q(C.xE, t) }, k: function(c, d, f) { f = f || C.color.BLACK; C.tb.prototype.k.call(this, c, d) && (this.ya.r = f.r, this.ya.g = f.g, this.ya.b = f.b, this.ya.a = 0); return q } }); C.d8.create = function(c, d, f) { var g = new C.d8; g.k(c, d, f); return g }; C.c8 = C.tb.extend({ Z: function() { C.tb.prototype.Z.call(this); var c = C.color(0, 0, 0, 0), d = C.Q.aa, c = C.gd.create(c), f = C.yv.create(d.width, d.height); if (s != f) { f.sprite.anchorX = 0.5; f.sprite.anchorY = 0.5; f.dj({ x: d.width / 2, y: d.height / 2, anchorX: 0.5, anchorY: 0.5 }); f.Sn(); this.ib.J(); f.end(); var g = C.yv.create(d.width, d.height); g.p(d.width / 2, d.height / 2); g.sprite.anchorX = g.anchorX = 0.5; g.sprite.anchorY = g.anchorY = 0.5; g.Sn(); this.tc.J(); g.end(); f.sprite.Yd(C.ONE, C.ONE); g.sprite.Yd(C.SRC_ALPHA, C.ONE_MINUS_SRC_ALPHA); c.q(f); c.q(g); f.sprite.opacity = 255; g.sprite.opacity = 255; d = C.La.create(C.xo.create(this.D, 0), C.Jc.create(this.XP, this), C.Jc.create(this.finish, this)); g.sprite.Ya(d); this.q(c, 2, C.xE) } }, Na: function() { this.$Q(C.xE, t); C.tb.prototype.Na.call(this) }, ka: u() }); C.c8.create = function(c, d) { var f = new C.c8; f.k(c, d); return f }; C.B8 = C.tb.extend({ qp: function() { this.on = t }, Z: function() { C.tb.prototype.Z.call(this); var c = C.Q.aa, c = C.CU.create(this.D, C.size(0 | 12 * (c.width / c.height), 12)), c = this.ck(c); this.tc.Ya(C.La.create(c, C.Jc.create(this.finish, this), C.Bv.create())) }, ck: da() }); C.B8.create = function(c, d) { var f = new C.B8; return f != s && f.k(c, d) ? f: s }; C.AU = C.tb.extend({ Z: function() { C.tb.prototype.Z.call(this); this.ib.visible = t; var c = this.action(), c = C.La.create(c, C.Jc.create(this.XP, this), c.reverse()); this.Ya(C.La.create(this.ck(c), C.Jc.create(this.finish, this), C.Bv.create())) }, ck: function(c) { return C.Oy.create(c, 3) }, action: function() { return C.fU.create(this.D / 2, 3) } }); C.AU.create = function(c, d) { var f = new C.AU; return f != s && f.k(c, d) ? f: s }; C.A8 = C.AU.extend({ action: function() { return C.gU.create(this.D / 2, 3) } }); C.A8.create = function(c, d) { var f = new C.A8; return f != s && f.k(c, d) ? f: s }; C.KE = C.tb.extend({ qp: function() { this.on = t }, Z: function() { C.tb.prototype.Z.call(this); var c = C.Q.aa, c = this.tB(C.size(0 | 12 * (c.width / c.height), 12)); this.tc.Ya(C.La.create(this.ck(c), C.Jc.create(this.finish, this), C.Bv.create())) }, ck: da(), tB: function(c) { return C.kE.create(this.D, c) } }); C.KE.create = function(c, d) { var f = new C.KE; return f != s && f.k(c, d) ? f: s }; C.e8 = C.KE.extend({ tB: function(c) { return C.eT.create(this.D, c) } }); C.e8.create = function(c, d) { var f = new C.e8; return f != s && f.k(c, d) ? f: s }; C.g8 = C.KE.extend({ tB: function(c) { return C.sK.create(this.D, c) } }); C.g8.create = function(c, d) { var f = new C.g8; return f != s && f.k(c, d) ? f: s }; C.f8 = C.KE.extend({ tB: function(c) { return C.fT.create(this.D, c) } }); C.f8.create = function(c, d) { var f = new C.f8; return f != s && f.k(c, d) ? f: s }; C.A7 = 49153; C.Ks = C.tb.extend({ Jf: 0, Qc: 0, RN: s, qa: "TransitionProgress", Nw: function(c, d, f) { c.dj({ x: d, y: f, anchorX: 0.5, anchorY: 0.5 }) }, Z: function() { C.tb.prototype.Z.call(this); this.Bba(); var c = C.Q.aa, d = C.yv.create(c.width, c.height); d.sprite.anchorX = 0.5; d.sprite.anchorY = 0.5; this.Nw(d, c.width / 2, c.height / 2); d.clear(0, 0, 0, 1); d.Sn(); this.RN.J(); d.end(); this.RN == this.tc && this.XP(); c = this.Gw(d); d = C.La.create(C.sE.create(this.D, this.Qc, this.Jf), C.Jc.create(this.finish, this)); c.Ya(d); this.q(c, 2, C.A7) }, Na: function() { this.$Q(C.A7, q); C.tb.prototype.Na.call(this) }, Bba: function() { this.RN = this.tc; this.Qc = 100; this.Jf = 0 }, Gw: function() { C.log("cc.TransitionProgress._progressTimerNodeWithRenderTexture(): should be overridden in subclass"); return s }, qp: function() { this.on = t } }); C.Ks.create = function(c, d) { var f = new C.Ks; return f != s && f.k(c, d) ? f: s }; C.s8 = C.Ks.extend({ Gw: function(c) { var d = C.Q.aa; c = C.Lb.create(c.sprite); C.L === C.la && (c.sprite.flippedY = q); c.type = C.Lb.Fo; c.reverseDir = t; c.percentage = 100; this.Nw(c, d.width / 2, d.height / 2); return c } }); C.s8.create = function(c, d) { var f = new C.s8; return f != s && f.k(c, d) ? f: s }; C.t8 = C.Ks.extend({ Gw: function(c) { var d = C.Q.aa; c = C.Lb.create(c.sprite); C.L === C.la && (c.sprite.flippedY = q); c.type = C.Lb.Fo; c.reverseDir = q; c.percentage = 100; this.Nw(c, d.width / 2, d.height / 2); return c } }); C.t8.create = function(c, d) { var f = new C.t8; return f != s && f.k(c, d) ? f: s }; C.p8 = C.Ks.extend({ Gw: function(c) { var d = C.Q.aa; c = C.Lb.create(c.sprite); C.L === C.la && (c.sprite.flippedY = q); c.type = C.Lb.Is; c.midPoint = C.d(1, 0); c.barChangeRate = C.d(1, 0); c.percentage = 100; this.Nw(c, d.width / 2, d.height / 2); return c } }); C.p8.create = function(c, d) { var f = new C.p8; return f != s && f.k(c, d) ? f: s }; C.u8 = C.Ks.extend({ Gw: function(c) { var d = C.Q.aa; c = C.Lb.create(c.sprite); C.L === C.la && (c.sprite.flippedY = q); c.type = C.Lb.Is; c.midPoint = C.d(0, 0); c.barChangeRate = C.d(0, 1); c.percentage = 100; this.Nw(c, d.width / 2, d.height / 2); return c } }); C.u8.create = function(c, d) { var f = new C.u8; return f != s && f.k(c, d) ? f: s }; C.q8 = C.Ks.extend({ Gw: function(c) { var d = C.Q.aa; c = C.Lb.create(c.sprite); C.L === C.la && (c.sprite.flippedY = q); c.type = C.Lb.Is; c.midPoint = C.d(0.5, 0.5); c.barChangeRate = C.d(1, 1); c.percentage = 0; this.Nw(c, d.width / 2, d.height / 2); return c }, qp: function() { this.on = t }, Bba: function() { this.RN = this.ib; this.Qc = 0; this.Jf = 100 } }); C.q8.create = function(c, d) { var f = new C.q8; return f != s && f.k(c, d) ? f: s }; C.r8 = C.Ks.extend({ Gw: function(c) { var d = C.Q.aa; c = C.Lb.create(c.sprite); C.L === C.la && (c.sprite.flippedY = q); c.type = C.Lb.Is; c.midPoint = C.d(0.5, 0.5); c.barChangeRate = C.d(1, 1); c.percentage = 100; this.Nw(c, d.width / 2, d.height / 2); return c } }); C.r8.create = function(c, d) { var f = new C.r8; return f != s && f.k(c, d) ? f: s }; C.o8 = C.tb.extend({ nL: q, qa: "TransitionPageTurn", k: function(c, d, f) { this.nL = f; C.tb.prototype.k.call(this, c, d); return q }, tB: function(c) { return this.nL ? C.zv.create(C.CK.create(this.D, c)) : C.CK.create(this.D, c) }, Z: function() { C.tb.prototype.Z.call(this); var c = C.Q.aa, d; c.width > c.height ? (c = 16, d = 12) : (c = 12, d = 16); c = this.tB(C.size(c, d)); this.nL ? (this.ib.visible = t, this.ib.Ya(C.La.create(C.Fj.create(), c, C.Jc.create(this.finish, this), C.Bv.create()))) : this.tc.Ya(C.La.create(c, C.Jc.create(this.finish, this), C.Bv.create())) }, qp: function() { this.on = this.nL } }); C.o8.create = function(c, d, f) { var g = new C.o8; g.k(c, d, f); return g }; C.$a = { name: "Jacob__Codec" }; C.vJa = function() { return C.$a.Kb.RP.apply(C.$a.Kb, arguments) }; C.wJa = function() { var c = C.$a.hv.eda.apply(C.$a.hv, arguments); return C.$a.Kb.RP.apply(C.$a.Kb, [c]) }; C.eja = function(c, d) { d = d || 1; var f = this.wJa(c), g = [], h, k, n; h = 0; for (n = f.length / d; h < n; h++) { g[h] = 0; for (k = d - 1; 0 <= k; --k) g[h] += f.charCodeAt(h * d + k) << 8 * k } return g }; C.D6a = function(c, d) { d = d || 1; var f = this.vJa(c), g = [], h, k, n; h = 0; for (n = f.length / d; h < n; h++) { g[h] = 0; for (k = d - 1; 0 <= k; --k) g[h] += f.charCodeAt(h * d + k) << 8 * k } return g }; C.iNa = function(c) { c = c.split(","); var d = [], f; for (f = 0; f < c.length; f++) d.push(parseInt(c[f])); return d }; C.$a.hv = { name: "Jacob__Codec__Base64" }; C.$a.hv.UM = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d"; C.$a.hv.eda = function(c) { var d = [], f, g, h, k, n, p = 0; for (c = c.replace(/[^A-Za-z0-9\+\/\=]/g, ""); p < c.length;) f = this.UM.indexOf(c.charAt(p++)), g = this.UM.indexOf(c.charAt(p++)), k = this.UM.indexOf(c.charAt(p++)), n = this.UM.indexOf(c.charAt(p++)), f = f << 2 | g >> 4, g = (g & 15) << 4 | k >> 2, h = (k & 3) << 6 | n, d.push(String.fromCharCode(f)), 64 != k && d.push(String.fromCharCode(g)), 64 != n && d.push(String.fromCharCode(h)); return d = d.join("") }; C.$a.hv.fda = function(c, d) { var f = this.eda(c), g = [], h, k, n; h = 0; for (n = f.length / d; h < n; h++) { g[h] = 0; for (k = d - 1; 0 <= k; --k) g[h] += f.charCodeAt(h * d + k) << 8 * k } return g }; C.sJa = function(c) { if (0 != c.length % 4) return s; for (var d = c.length / 4, f = window.KNa ? new Uint32Array(d) : [], g = 0; g < d; g++) { var h = 4 * g; f[g] = c[h] + 256 * c[h + 1] + 65536 * c[h + 2] + 16777216 * c[h + 3] } return f }; C.$a.Kb = function(c) { this.data = c; this.debug = t; this.Tr = m; this.files = 0; this.dS = []; this.j_ = Array(32768); this.Rn = 0; this.IQ = t; this.Lca = 0; this.zp = 1; this.zB = 0; this.AC = []; this.vda = m; this.vI = Array(C.$a.Kb.Tma); this.yx = Array(32); this.EJ = 0; this.IT = s; this.co = 0; this.RB = Array(17); this.RB[0] = 0; this.Gda = this.zda = m }; C.$a.Kb.RP = function(c) { return (new C.$a.Kb(c)).RP()[0][0] }; C.$a.Kb.kT = function() { this.ZO = this.YO = 0; this.o1 = s; this.HDa = -1 }; C.$a.Kb.Tma = 288; C.$a.Kb.J6 = 256; C.$a.Kb.$Z = [0, 128, 64, 192, 32, 160, 96, 224, 16, 144, 80, 208, 48, 176, 112, 240, 8, 136, 72, 200, 40, 168, 104, 232, 24, 152, 88, 216, 56, 184, 120, 248, 4, 132, 68, 196, 36, 164, 100, 228, 20, 148, 84, 212, 52, 180, 116, 244, 12, 140, 76, 204, 44, 172, 108, 236, 28, 156, 92, 220, 60, 188, 124, 252, 2, 130, 66, 194, 34, 162, 98, 226, 18, 146, 82, 210, 50, 178, 114, 242, 10, 138, 74, 202, 42, 170, 106, 234, 26, 154, 90, 218, 58, 186, 122, 250, 6, 134, 70, 198, 38, 166, 102, 230, 22, 150, 86, 214, 54, 182, 118, 246, 14, 142, 78, 206, 46, 174, 110, 238, 30, 158, 94, 222, 62, 190, 126, 254, 1, 129, 65, 193, 33, 161, 97, 225, 17, 145, 81, 209, 49, 177, 113, 241, 9, 137, 73, 201, 41, 169, 105, 233, 25, 153, 89, 217, 57, 185, 121, 249, 5, 133, 69, 197, 37, 165, 101, 229, 21, 149, 85, 213, 53, 181, 117, 245, 13, 141, 77, 205, 45, 173, 109, 237, 29, 157, 93, 221, 61, 189, 125, 253, 3, 131, 67, 195, 35, 163, 99, 227, 19, 147, 83, 211, 51, 179, 115, 243, 11, 139, 75, 203, 43, 171, 107, 235, 27, 155, 91, 219, 59, 187, 123, 251, 7, 135, 71, 199, 39, 167, 103, 231, 23, 151, 87, 215, 55, 183, 119, 247, 15, 143, 79, 207, 47, 175, 111, 239, 31, 159, 95, 223, 63, 191, 127, 255]; C.$a.Kb.Wca = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0]; C.$a.Kb.Xca = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0, 99, 99]; C.$a.Kb.Vca = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577]; C.$a.Kb.GB = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13]; C.$a.Kb.border = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]; C.$a.Kb.prototype.RP = function() { this.QI = []; oa(this); return this.dS }; C.$a.Kb.prototype.$ = function() { this.zB += 8; return this.Lca < this.data.length ? this.data.charCodeAt(this.Lca++) : -1 }; function qa(c) { var d; c.zB++; d = c.zp & 1; c.zp >>= 1; 0 == c.zp && (c.zp = c.$(), d = c.zp & 1, c.zp = c.zp >> 1 | 128); return d } function ra(c, d) { for (var f = 0, g = d; g--;) f = f << 1 | qa(c); d && (f = C.$a.Kb.$Z[f] >> 8 - d); return f } function wa(c, d) { c.j_[c.Rn++] = d; c.QI.push(String.fromCharCode(d)); 32768 == c.Rn && (c.Rn = 0) } function za(c) { for (;;) { if (c.RB[c.co] >= c.Gda) return - 1; if (c.zda[c.RB[c.co]] == c.co) return c.RB[c.co]++; c.RB[c.co]++ } } function Da(c) { var d = c.IT[c.EJ], f; if (17 == c.co) return - 1; c.EJ++; c.co++; f = za(c); if (0 <= f) d.YO = f; else if (d.YO = 32768, Da(c)) return - 1; f = za(c); if (0 <= f) d.ZO = f, d.o1 = s; else if (d.ZO = 32768, d.o1 = c.IT[c.EJ], d.HDa = c.EJ, Da(c)) return - 1; c.co--; return 0 } function Ea(c, d, f, g) { c.IT = d; c.EJ = 0; c.zda = g; c.Gda = f; for (d = 0; 17 > d; d++) c.RB[d] = 0; c.co = 0; return Da(c) ? -1 : 0 } function Ha(c, d) { for (var f, g, h = 0, k = d[h];;) if (f = qa(c)) { if (! (k.ZO & 32768)) return k.ZO; k = k.o1; f = d.length; for (g = 0; g < f; g++) if (d[g] === k) { h = g; break } } else { if (! (k.YO & 32768)) return k.YO; h++; k = d[h] } return - 1 } function Ja(c) { var d, f, g, h, k; do if (d = qa(c), g = ra(c, 2), 0 == g) { c.zp = 1; g = c.$(); g |= c.$() << 8; f = c.$(); f |= c.$() << 8; for ((g ^ ~f) & 65535 && document.write("BlockLen checksum mismatch\n"); g--;) f = c.$(), wa(c, f) } else if (1 == g) for (;;) if (g = C.$a.Kb.$Z[ra(c, 7)] >> 1, 23 < g ? (g = g << 1 | qa(c), 199 < g ? (g -= 128, g = g << 1 | qa(c)) : (g -= 48, 143 < g && (g += 136))) : g += 256, 256 > g) wa(c, g); else if (256 == g) break; else { var n; g -= 257; k = ra(c, C.$a.Kb.Xca[g]) + C.$a.Kb.Wca[g]; g = C.$a.Kb.$Z[ra(c, 5)] >> 3; 8 < C.$a.Kb.GB[g] ? (n = ra(c, 8), n |= ra(c, C.$a.Kb.GB[g] - 8) << 8) : n = ra(c, C.$a.Kb.GB[g]); n += C.$a.Kb.Vca[g]; for (g = 0; g < k; g++) f = c.j_[c.Rn - n & 32767], wa(c, f) } else if (2 == g) { var p = Array(320); f = 257 + ra(c, 5); n = 1 + ra(c, 5); h = 4 + ra(c, 4); for (g = 0; 19 > g; g++) p[g] = 0; for (g = 0; g < h; g++) p[C.$a.Kb.border[g]] = ra(c, 3); k = c.yx.length; for (h = 0; h < k; h++) c.yx[h] = new C.$a.Kb.kT; if (Ea(c, c.yx, 19, p)) { c.Rn = 0; return } k = f + n; h = 0; for (var r = -1; h < k;) if (r++, g = Ha(c, c.yx), 16 > g) p[h++] = g; else if (16 == g) { var v; g = 3 + ra(c, 2); if (h + g > k) { c.Rn = 0; return } for (v = h ? p[h - 1] : 0; g--;) p[h++] = v } else { g = 17 == g ? 3 + ra(c, 3) : 11 + ra(c, 7); if (h + g > k) { c.Rn = 0; return } for (; g--;) p[h++] = 0 } k = c.vI.length; for (h = 0; h < k; h++) c.vI[h] = new C.$a.Kb.kT; if (Ea(c, c.vI, f, p)) { c.Rn = 0; return } k = c.vI.length; for (h = 0; h < k; h++) c.yx[h] = new C.$a.Kb.kT; g = []; for (h = f; h < p.length; h++) g[h - f] = p[h]; if (Ea(c, c.yx, n, g)) { c.Rn = 0; return } for (;;) if (g = Ha(c, c.vI), 256 <= g) { g -= 256; if (0 == g) break; g--; k = ra(c, C.$a.Kb.Xca[g]) + C.$a.Kb.Wca[g]; g = Ha(c, c.yx); 8 < C.$a.Kb.GB[g] ? (n = ra(c, 8), n |= ra(c, C.$a.Kb.GB[g] - 8) << 8) : n = ra(c, C.$a.Kb.GB[g]); for (n += C.$a.Kb.Vca[g]; k--;) f = c.j_[c.Rn - n & 32767], wa(c, f) } else wa(c, g) } while (!d); c.Rn = 0; c.zp = 1 } function oa(c) { c.QI = []; c.IQ = t; var d = []; d[0] = c.$(); d[1] = c.$(); 120 == d[0] && 218 == d[1] && (Ja(c), c.dS[c.files] = [c.QI.join(""), "geonext.gxt"], c.files++); 31 == d[0] && 139 == d[1] && (La(c), c.dS[c.files] = [c.QI.join(""), "file"], c.files++); if (80 == d[0] && 75 == d[1] && (c.IQ = q, d[2] = c.$(), d[3] = c.$(), 3 == d[2] && 4 == d[3])) { d[0] = c.$(); d[1] = c.$(); c.Tr = c.$(); c.Tr |= c.$() << 8; d = c.$(); d |= c.$() << 8; c.$(); c.$(); c.$(); c.$(); c.$(); c.$(); c.$(); c.$(); c.$(); c.$(); c.$(); c.$(); var f = c.$(), f = f | c.$() << 8, g = c.$(), g = g | c.$() << 8, h = 0; for (c.AC = []; f--;) { var k = c.$(); "/" == k | ":" == k ? h = 0 : h < C.$a.Kb.J6 - 1 && (c.AC[h++] = String.fromCharCode(k)) } c.vda || (c.vda = c.AC); for (var h = 0; h < g;) c.$(), h++; 8 == d && (Ja(c), c.dS[c.files] = [c.QI.join(""), c.AC.join("")], c.files++); La(c) } } function La(c) { var d = [], f; c.Tr & 8 && (d[0] = c.$(), d[1] = c.$(), d[2] = c.$(), d[3] = c.$(), c.$(), c.$(), c.$(), c.$(), c.$(), c.$(), c.$(), c.$()); c.IQ && oa(c); d[0] = c.$(); if (8 == d[0]) { c.Tr = c.$(); c.$(); c.$(); c.$(); c.$(); c.$(); c.$(); if (c.Tr & 4) { d[0] = c.$(); d[2] = c.$(); c.co = d[0] + 256 * d[1]; for (d = 0; d < c.co; d++) c.$() } if (c.Tr & 8) { d = 0; for (c.AC = []; f = c.$();) { if ("7" == f || ":" == f) d = 0; d < C.$a.Kb.J6 - 1 && (c.AC[d++] = f) } } if (c.Tr & 16) for (; c.$();); c.Tr & 2 && (c.$(), c.$()); Ja(c); c.$(); c.$(); c.$(); c.$(); c.IQ && oa(c) } }; /* zlib.js 2012 - imaya [ https://github.com/imaya/zlib.js ] The MIT License */ (function() { function c(c) { e(c) } function d(c, d) { var f = c.split("."), g = N; ! (f[0] in g) && g.execScript && g.execScript("var " + f[0]); for (var h; f.length && (h = f.shift());) ! f.length && d !== U ? g[h] = d: g = g[h] ? g[h] : g[h] = {} } function f(c) { if ("string" === typeof c) { c = c.split(""); var d, f; d = 0; for (f = c.length; d < f; d++) c[d] = (c[d].charCodeAt(0) & 255) >>> 0 } d = 1; f = 0; for (var g = c.length, h, k = 0; 0 < g;) { h = 1024 < g ? 1024 : g; g -= h; do d += c[k++], f += d; while (--h); d %= 65521; f %= 65521 } return (f << 16 | d) >>> 0 } function g(d, f) { this.index = "number" === typeof f ? f: 0; this.hI = 0; this.buffer = d instanceof(Q ? Uint8Array: Array) ? d: new(Q ? Uint8Array: Array)(32768); 2 * this.buffer.length <= this.index && c(Error("invalid index")); this.buffer.length <= this.index && this.Un() } function h(c) { this.buffer = new(Q ? Uint16Array: Array)(2 * c); this.length = 0 } function k(c) { var d = c.length, f = 0, g = Number.POSITIVE_INFINITY, h, k, n, p, r, v, y, z, D; for (z = 0; z < d; ++z) c[z] > f && (f = c[z]), c[z] < g && (g = c[z]); h = 1 << f; k = new(Q ? Uint32Array: Array)(h); n = 1; p = 0; for (r = 2; n <= f;) { for (z = 0; z < d; ++z) if (c[z] === n) { v = 0; y = p; for (D = 0; D < n; ++D) v = v << 1 | y & 1, y >>= 1; for (D = v; D < h; D += r) k[D] = n << 16 | z; ++p }++n; p <<= 1; r <<= 1 } return [k, f, g] } function n(c, d) { this.Rf = ta; this.ba = 0; this.input = c; this.b = 0; d && (d.hEa && (this.ba = d.hEa), "number" === typeof d.A_ && (this.Rf = d.A_), d.QQ && (this.a = Q && d.QQ instanceof Array ? new Uint8Array(d.QQ) : d.QQ), "number" === typeof d.QEa && (this.b = d.QEa)); this.a || (this.a = new(Q ? Uint8Array: Array)(32768)) } function p(c, d) { this.length = c; this.rma = d } function r() { var d = ba; switch (X) { case 3 === d: return [257, d - 3, 0]; case 4 === d: return [258, d - 4, 0]; case 5 === d: return [259, d - 5, 0]; case 6 === d: return [260, d - 6, 0]; case 7 === d: return [261, d - 7, 0]; case 8 === d: return [262, d - 8, 0]; case 9 === d: return [263, d - 9, 0]; case 10 === d: return [264, d - 10, 0]; case 12 >= d: return [265, d - 11, 1]; case 14 >= d: return [266, d - 13, 1]; case 16 >= d: return [267, d - 15, 1]; case 18 >= d: return [268, d - 17, 1]; case 22 >= d: return [269, d - 19, 2]; case 26 >= d: return [270, d - 23, 2]; case 30 >= d: return [271, d - 27, 2]; case 34 >= d: return [272, d - 31, 2]; case 42 >= d: return [273, d - 35, 3]; case 50 >= d: return [274, d - 43, 3]; case 58 >= d: return [275, d - 51, 3]; case 66 >= d: return [276, d - 59, 3]; case 82 >= d: return [277, d - 67, 4]; case 98 >= d: return [278, d - 83, 4]; case 114 >= d: return [279, d - 99, 4]; case 130 >= d: return [280, d - 115, 4]; case 162 >= d: return [281, d - 131, 5]; case 194 >= d: return [282, d - 163, 5]; case 226 >= d: return [283, d - 195, 5]; case 257 >= d: return [284, d - 227, 5]; case 258 === d: return [285, d - 258, 0]; default: c("invalid length: " + d) } } function v(d, f) { function g(d, f) { var h = d.rma, k = [], n = 0, p; p = xa[d.length]; k[n++] = p & 65535; k[n++] = p >> 16 & 255; k[n++] = p >> 24; var r; switch (X) { case 1 === h: r = [0, h - 1, 0]; break; case 2 === h: r = [1, h - 2, 0]; break; case 3 === h: r = [2, h - 3, 0]; break; case 4 === h: r = [3, h - 4, 0]; break; case 6 >= h: r = [4, h - 5, 1]; break; case 8 >= h: r = [5, h - 7, 1]; break; case 12 >= h: r = [6, h - 9, 2]; break; case 16 >= h: r = [7, h - 13, 2]; break; case 24 >= h: r = [8, h - 17, 3]; break; case 32 >= h: r = [9, h - 25, 3]; break; case 48 >= h: r = [10, h - 33, 4]; break; case 64 >= h: r = [11, h - 49, 4]; break; case 96 >= h: r = [12, h - 65, 5]; break; case 128 >= h: r = [13, h - 97, 5]; break; case 192 >= h: r = [14, h - 129, 6]; break; case 256 >= h: r = [15, h - 193, 6]; break; case 384 >= h: r = [16, h - 257, 7]; break; case 512 >= h: r = [17, h - 385, 7]; break; case 768 >= h: r = [18, h - 513, 8]; break; case 1024 >= h: r = [19, h - 769, 8]; break; case 1536 >= h: r = [20, h - 1025, 9]; break; case 2048 >= h: r = [21, h - 1537, 9]; break; case 3072 >= h: r = [22, h - 2049, 10]; break; case 4096 >= h: r = [23, h - 3073, 10]; break; case 6144 >= h: r = [24, h - 4097, 11]; break; case 8192 >= h: r = [25, h - 6145, 11]; break; case 12288 >= h: r = [26, h - 8193, 12]; break; case 16384 >= h: r = [27, h - 12289, 12]; break; case 24576 >= h: r = [28, h - 16385, 13]; break; case 32768 >= h: r = [29, h - 24577, 13]; break; default: c("invalid distance") } p = r; k[n++] = p[0]; k[n++] = p[1]; k[n++] = p[2]; h = 0; for (n = k.length; h < n; ++h) D[E++] = k[h]; G[k[0]]++; K[k[3]]++; F = d.length + f - 1; z = s } var h, k, n, r, v, y = {}, z, D = Q ? new Uint16Array(2 * f.length) : [], E = 0, F = 0, G = new(Q ? Uint32Array: Array)(286), K = new(Q ? Uint32Array: Array)(30), M = d.ba, O; if (!Q) { for (n = 0; 285 >= n;) G[n++] = 0; for (n = 0; 29 >= n;) K[n++] = 0 } G[256] = 1; h = 0; for (k = f.length; h < k; ++h) { n = v = 0; for (r = 3; n < r && h + n !== k; ++n) v = v << 8 | f[h + n]; y[v] === U && (y[v] = []); n = y[v]; if (! (0 < F--)) { for (; 0 < n.length && 32768 < h - n[0];) n.shift(); if (h + 3 >= k) { z && g(z, -1); n = 0; for (r = k - h; n < r; ++n) O = f[h + n], D[E++] = O, ++G[O]; break } if (0 < n.length) { v = r = U; var S = 0, R = U, N = U, W = R = U, ca = f.length, N = 0, W = n.length; a: for (; N < W; N++) { r = n[W - N - 1]; R = 3; if (3 < S) { for (R = S; 3 < R; R--) if (f[r + R - 1] !== f[h + R - 1]) continue a; R = S } for (; 258 > R && h + R < ca && f[r + R] === f[h + R];)++R; R > S && (v = r, S = R); if (258 === R) break } r = new p(S, h - v); z ? z.length < r.length ? (O = f[h - 1], D[E++] = O, ++G[O], g(r, 0)) : g(z, -1) : r.length < M ? z = r: g(r, 0) } else z ? g(z, -1) : (O = f[h], D[E++] = O, ++G[O]) } n.push(h) } D[E++] = 256; G[256]++; d.Pma = G; d.Gma = K; return Q ? D.subarray(0, E) : D } function y(c, d) { function f(c) { var d = D[c][E[c]]; d === y ? (f(c + 1), f(c + 1)) : --z[d]; ++E[c] } var g = c.length, k = new h(572), n = new(Q ? Uint8Array: Array)(g), p, r, v; if (!Q) for (r = 0; r < g; r++) n[r] = 0; for (r = 0; r < g; ++r) 0 < c[r] && k.push(r, c[r]); g = Array(k.length / 2); p = new(Q ? Uint32Array: Array)(k.length / 2); if (1 === g.length) return n[k.pop().index] = 1, n; r = 0; for (v = k.length / 2; r < v; ++r) g[r] = k.pop(), p[r] = g[r].value; var y = p.length; r = new(Q ? Uint16Array: Array)(d); var k = new(Q ? Uint8Array: Array)(d), z = new(Q ? Uint8Array: Array)(y); v = Array(d); var D = Array(d), E = Array(d), F = (1 << d) - y, G = 1 << d - 1, K, M, O; r[d - 1] = y; for (K = 0; K < d; ++K) F < G ? k[K] = 0 : (k[K] = 1, F -= G), F <<= 1, r[d - 2 - K] = (r[d - 1 - K] / 2 | 0) + y; r[0] = k[0]; v[0] = Array(r[0]); D[0] = Array(r[0]); for (K = 1; K < d; ++K) r[K] > 2 * r[K - 1] + k[K] && (r[K] = 2 * r[K - 1] + k[K]), v[K] = Array(r[K]), D[K] = Array(r[K]); for (F = 0; F < y; ++F) z[F] = d; for (G = 0; G < r[d - 1]; ++G) v[d - 1][G] = p[G], D[d - 1][G] = G; for (F = 0; F < d; ++F) E[F] = 0; 1 === k[d - 1] && (--z[0], ++E[d - 1]); for (K = d - 2; 0 <= K; --K) { M = F = 0; O = E[K + 1]; for (G = 0; G < r[K]; G++) M = v[K + 1][O] + v[K + 1][O + 1], M > p[F] ? (v[K][G] = M, D[K][G] = y, O += 2) : (v[K][G] = p[F], D[K][G] = F, ++F); E[K] = 0; 1 === k[K] && f(K) } p = z; r = 0; for (v = g.length; r < v; ++r) n[g[r].index] = p[r]; return n } function z(d) { var f = new(Q ? Uint16Array: Array)(d.length), g = [], h = [], k = 0, n, p, r; n = 0; for (p = d.length; n < p; n++) g[d[n]] = (g[d[n]] | 0) + 1; n = 1; for (p = 16; n <= p; n++) h[n] = k, k += g[n] | 0, k > 1 << n && c("overcommitted"), k <<= 1; 65536 > k && c("undercommitted"); n = 0; for (p = d.length; n < p; n++) { k = h[d[n]]; h[d[n]] += 1; g = f[n] = 0; for (r = d[n]; g < r; g++) f[n] = f[n] << 1 | k & 1, k >>>= 1 } return f } function D(c, d) { this.input = c; this.a = new(Q ? Uint8Array: Array)(32768); this.Rf = ca.pQ; var f = {}, g; if ((d || !(d = {})) && "number" === typeof d.A_) this.Rf = d.A_; for (g in d) f[g] = d[g]; f.QQ = this.a; this.f = new n(this.input, f) } function E(d, f) { this.qQ = []; this.AQ = 32768; this.xm = this.g = this.H = this.ZQ = 0; this.input = Q ? new Uint8Array(d) : d; this.tl = t; this.FQ = W; this.q4 = t; if (f || !(f = {})) f.index && (this.H = f.index), f.k_ && (this.AQ = f.k_), f.l_ && (this.FQ = f.l_), f.$p && (this.q4 = f.$p); switch (this.FQ) { case Ma: this.b = 32768; this.a = new(Q ? Uint8Array: Array)(32768 + this.AQ + 258); break; case W: this.b = 0; this.a = new(Q ? Uint8Array: Array)(this.AQ); this.Un = this.Fma; this.K3 = this.tma; this.LQ = this.yma; break; default: c(Error("invalid inflate mode")) } } function F(d, f) { for (var g = d.g, h = d.xm, k = d.input, n = d.H, p; h < f;) p = k[n++], p === U && c(Error("input buffer is broken")), g |= p << h, h += 8; d.g = g >>> f; d.xm = h - f; d.H = n; return g & (1 << f) - 1 } function G(d, f) { for (var g = d.g, h = d.xm, k = d.input, n = d.H, p = f[0], r = f[1], v; h < r;) v = k[n++], v === U && c(Error("input buffer is broken")), g |= v << h, h += 8; k = p[g & (1 << r) - 1]; p = k >>> 16; d.g = g >> p; d.xm = h - p; d.H = n; return k & 65535 } function K(c) { function d(c, f, g) { var h, k, n, p; for (p = 0; p < c;) switch (h = G(this, f), h) { case 16: for (n = 3 + F(this, 2); n--;) g[p++] = k; break; case 17: for (n = 3 + F(this, 3); n--;) g[p++] = 0; k = 0; break; case 18: for (n = 11 + F(this, 7); n--;) g[p++] = 0; k = 0; break; default: k = g[p++] = h } return g } var f = F(c, 5) + 257, g = F(c, 5) + 1, h = F(c, 4) + 4, n = new(Q ? Uint8Array: Array)(pa.length), p; for (p = 0; p < h; ++p) n[pa[p]] = F(c, 3); h = k(n); n = new(Q ? Uint8Array: Array)(f); p = new(Q ? Uint8Array: Array)(g); c.LQ(k(d.call(c, f, h, n)), k(d.call(c, g, h, p))) } function O(d, f) { var g, h; this.input = d; this.H = 0; if (f || !(f = {})) f.index && (this.H = f.index), f.tja && (this.Yma = f.tja); g = d[this.H++]; h = d[this.H++]; switch (g & 15) { case Ka: this.method = Ka; break; default: c(Error("unsupported compression method")) } 0 !== ((g << 8) + h) % 31 && c(Error("invalid fcheck flag:" + ((g << 8) + h) % 31)); h & 32 && c(Error("fdict flag is not supported")); this.g4 = new E(d, { index: this.H, k_: f.k_, l_: f.l_, $p: f.$p }) } var U = m, X = q, N = this, Q = "undefined" !== typeof Uint8Array && "undefined" !== typeof Uint16Array && "undefined" !== typeof Uint32Array; g.prototype.Un = function() { var c = this.buffer, d, f = c.length, g = new(Q ? Uint8Array: Array)(f << 1); if (Q) g.set(c); else for (d = 0; d < f; ++d) g[d] = c[d]; return this.buffer = g }; g.prototype.P = function(c, d, f) { var g = this.buffer, h = this.index, k = this.hI, n = g[h]; f && 1 < d && (c = 8 < d ? (aa[c & 255] << 24 | aa[c >>> 8 & 255] << 16 | aa[c >>> 16 & 255] << 8 | aa[c >>> 24 & 255]) >> 32 - d: aa[c] >> 8 - d); if (8 > d + k) n = n << d | c, k += d; else for (f = 0; f < d; ++f) n = n << 1 | c >> d - f - 1 & 1, 8 === ++k && (k = 0, g[h++] = aa[n], n = 0, h === g.length && (g = this.Un())); g[h] = n; this.buffer = g; this.hI = k; this.index = h }; g.prototype.finish = function() { var c = this.buffer, d = this.index, f; 0 < this.hI && (c[d] <<= 8 - this.hI, c[d] = aa[c[d]], d++); Q ? f = c.subarray(0, d) : (c.length = d, f = c); return f }; var S = new(Q ? Uint8Array: Array)(256), M; for (M = 0; 256 > M; ++M) { for (var R = M, $ = R, sa = 7, R = R >>> 1; R; R >>>= 1) $ <<= 1, $ |= R & 1, --sa; S[M] = ($ << sa & 255) >>> 0 } var aa = S, S = [0, 1996959894, 3993919788, 2567524794, 124634137, 1886057615, 3915621685, 2657392035, 249268274, 2044508324, 3772115230, 2547177864, 162941995, 2125561021, 3887607047, 2428444049, 498536548, 1789927666, 4089016648, 2227061214, 450548861, 1843258603, 4107580753, 2211677639, 325883990, 1684777152, 4251122042, 2321926636, 335633487, 1661365465, 4195302755, 2366115317, 997073096, 1281953886, 3579855332, 2724688242, 1006888145, 1258607687, 3524101629, 2768942443, 901097722, 1119000684, 3686517206, 2898065728, 853044451, 1172266101, 3705015759, 2882616665, 651767980, 1373503546, 3369554304, 3218104598, 565507253, 1454621731, 3485111705, 3099436303, 671266974, 1594198024, 3322730930, 2970347812, 795835527, 1483230225, 3244367275, 3060149565, 1994146192, 31158534, 2563907772, 4023717930, 1907459465, 112637215, 2680153253, 3904427059, 2013776290, 251722036, 2517215374, 3775830040, 2137656763, 141376813, 2439277719, 3865271297, 1802195444, 476864866, 2238001368, 4066508878, 1812370925, 453092731, 2181625025, 4111451223, 1706088902, 314042704, 2344532202, 4240017532, 1658658271, 366619977, 2362670323, 4224994405, 1303535960, 984961486, 2747007092, 3569037538, 1256170817, 1037604311, 2765210733, 3554079995, 1131014506, 879679996, 2909243462, 3663771856, 1141124467, 855842277, 2852801631, 3708648649, 1342533948, 654459306, 3188396048, 3373015174, 1466479909, 544179635, 3110523913, 3462522015, 1591671054, 702138776, 2966460450, 3352799412, 1504918807, 783551873, 3082640443, 3233442989, 3988292384, 2596254646, 62317068, 1957810842, 3939845945, 2647816111, 81470997, 1943803523, 3814918930, 2489596804, 225274430, 2053790376, 3826175755, 2466906013, 167816743, 2097651377, 4027552580, 2265490386, 503444072, 1762050814, 4150417245, 2154129355, 426522225, 1852507879, 4275313526, 2312317920, 282753626, 1742555852, 4189708143, 2394877945, 397917763, 1622183637, 3604390888, 2714866558, 953729732, 1340076626, 3518719985, 2797360999, 1068828381, 1219638859, 3624741850, 2936675148, 906185462, 1090812512, 3747672003, 2825379669, 829329135, 1181335161, 3412177804, 3160834842, 628085408, 1382605366, 3423369109, 3138078467, 570562233, 1426400815, 3317316542, 2998733608, 733239954, 1555261956, 3268935591, 3050360625, 752459403, 1541320221, 2607071920, 3965973030, 1969922972, 40735498, 2617837225, 3943577151, 1913087877, 83908371, 2512341634, 3803740692, 2075208622, 213261112, 2463272603, 3855990285, 2094854071, 198958881, 2262029012, 4057260610, 1759359992, 534414190, 2176718541, 4139329115, 1873836001, 414664567, 2282248934, 4279200368, 1711684554, 285281116, 2405801727, 4167216745, 1634467795, 376229701, 2685067896, 3608007406, 1308918612, 956543938, 2808555105, 3495958263, 1231636301, 1047427035, 2932959818, 3654703836, 1088359270, 936918E3, 2847714899, 3736837829, 1202900863, 817233897, 3183342108, 3401237130, 1404277552, 615818150, 3134207493, 3453421203, 1423857449, 601450431, 3009837614, 3294710456, 1567103746, 711928724, 3020668471, 3272380065, 1510334235, 755167117]; Q && new Uint32Array(S); h.prototype.getParent = function(c) { return 2 * ((c - 2) / 4 | 0) }; h.prototype.push = function(c, d) { var f, g, h = this.buffer, k; f = this.length; h[this.length++] = d; for (h[this.length++] = c; 0 < f;) if (g = this.getParent(f), h[f] > h[g]) k = h[f], h[f] = h[g], h[g] = k, k = h[f + 1], h[f + 1] = h[g + 1], h[g + 1] = k, f = g; else break; return this.length }; h.prototype.pop = function() { var c, d, f = this.buffer, g, h, k; d = f[0]; c = f[1]; this.length -= 2; f[0] = f[this.length]; f[1] = f[this.length + 1]; for (k = 0;;) { h = 2 * k + 2; if (h >= this.length) break; h + 2 < this.length && f[h + 2] > f[h] && (h += 2); if (f[h] > f[k]) g = f[k], f[k] = f[h], f[h] = g, g = f[k + 1], f[k + 1] = f[h + 1], f[h + 1] = g; else break; k = h } return { index: c, value: d, length: this.length } }; var ta = 2, S = { NONE: 0, r: 1, pQ: ta, AMa: 3 }, ma = []; for (M = 0; 288 > M; M++) switch (X) { case 143 >= M: ma.push([M + 48, 8]); break; case 255 >= M: ma.push([M - 144 + 400, 9]); break; case 279 >= M: ma.push([M - 256 + 0, 7]); break; case 287 >= M: ma.push([M - 280 + 192, 8]); break; default: c("invalid literal: " + M) } n.prototype.ds = function() { var d, f, h, k, n = this.input; switch (this.Rf) { case 0: h = 0; for (k = n.length; h < k;) { f = Q ? n.subarray(h, h + 65535) : n.slice(h, h + 65535); h += f.length; var p = h === k, r = U, D = r = U, D = r = U, E = this.a, F = this.b; if (Q) { for (E = new Uint8Array(this.a.buffer); E.length <= F + f.length + 5;) E = new Uint8Array(E.length << 1); E.set(this.a) } r = p ? 1 : 0; E[F++] = r | 0; r = f.length; D = ~r + 65536 & 65535; E[F++] = r & 255; E[F++] = r >>> 8 & 255; E[F++] = D & 255; E[F++] = D >>> 8 & 255; if (Q) E.set(f, F), F += f.length, E = E.subarray(0, F); else { r = 0; for (D = f.length; r < D; ++r) E[F++] = f[r]; E.length = F } this.b = F; this.a = E } break; case 1: h = new g(new Uint8Array(this.a.buffer), this.b); h.P(1, 1, X); h.P(1, 2, X); n = v(this, n); f = 0; for (p = n.length; f < p; f++) if (k = n[f], g.prototype.P.apply(h, ma[k]), 256 < k) h.P(n[++f], n[++f], X), h.P(n[++f], 5), h.P(n[++f], n[++f], X); else if (256 === k) break; this.a = h.finish(); this.b = this.a.length; break; case ta: k = new g(new Uint8Array(this.a), this.b); var G, K, M, O = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], S, R, r = Array(19), N, E = ta; k.P(1, 1, X); k.P(E, 2, X); n = v(this, n); D = y(this.Pma, 15); S = z(D); E = y(this.Gma, 7); F = z(E); for (G = 286; 257 < G && 0 === D[G - 1]; G--); for (K = 30; 1 < K && 0 === E[K - 1]; K--); var W = G, ca = K; d = new(Q ? Uint32Array: Array)(W + ca); var $ = new(Q ? Uint32Array: Array)(316), aa, ba; R = new(Q ? Uint8Array: Array)(19); for (N = M = 0; N < W; N++) d[M++] = D[N]; for (N = 0; N < ca; N++) d[M++] = E[N]; if (!Q) { N = 0; for (ca = R.length; N < ca; ++N) R[N] = 0 } N = aa = 0; for (ca = d.length; N < ca; N += M) { for (M = 1; N + M < ca && d[N + M] === d[N]; ++M); W = M; if (0 === d[N]) if (3 > W) for (; 0 < W--;) $[aa++] = 0, R[0]++; else for (; 0 < W;) ba = 138 > W ? W: 138, ba > W - 3 && ba < W && (ba = W - 3), 10 >= ba ? ($[aa++] = 17, $[aa++] = ba - 3, R[17]++) : ($[aa++] = 18, $[aa++] = ba - 11, R[18]++), W -= ba; else if ($[aa++] = d[N], R[d[N]]++, W--, 3 > W) for (; 0 < W--;) $[aa++] = d[N], R[d[N]]++; else for (; 0 < W;) ba = 6 > W ? W: 6, ba > W - 3 && ba < W && (ba = W - 3), $[aa++] = 16, $[aa++] = ba - 3, R[16]++, W -= ba } d = Q ? $.subarray(0, aa) : $.slice(0, aa); R = y(R, 7); for (N = 0; 19 > N; N++) r[N] = R[O[N]]; for (M = 19; 4 < M && 0 === r[M - 1]; M--); O = z(R); k.P(G - 257, 5, X); k.P(K - 1, 5, X); k.P(M - 4, 4, X); for (N = 0; N < M; N++) k.P(r[N], 3, X); N = 0; for (r = d.length; N < r; N++) if (f = d[N], k.P(O[f], R[f], X), 16 <= f) { N++; switch (f) { case 16: p = 2; break; case 17: p = 3; break; case 18: p = 7; break; default: c("invalid code: " + f) } k.P(d[N], p, X) } p = [S, D]; F = [F, E]; f = p[0]; p = p[1]; E = F[0]; S = F[1]; F = 0; for (r = n.length; F < r; ++F) if (h = n[F], k.P(f[h], p[h], X), 256 < h) k.P(n[++F], n[++F], X), D = n[++F], k.P(E[D], S[D], X), k.P(n[++F], n[++F], X); else if (256 === h) break; this.a = k.finish(); this.b = this.a.length; break; default: c("invalid compression type") } return this.a }; M = []; var ba; for (ba = 3; 258 >= ba; ba++) R = r(), M[ba] = R[2] << 24 | R[1] << 16 | R[0]; var xa = Q ? new Uint32Array(M) : M, ca = S; D.prototype.ds = function() { var d, g, h, k, n = 0; k = this.a; d = Ka; switch (d) { case Ka: g = Math.LOG2E * Math.log(32768) - 8; break; default: c(Error("invalid compression method")) } g = g << 4 | d; k[n++] = g; switch (d) { case Ka: switch (this.Rf) { case ca.NONE: h = 0; break; case ca.r: h = 1; break; case ca.pQ: h = 2; break; default: c(Error("unsupported compression type")) } break; default: c(Error("invalid compression method")) } d = h << 6 | 0; k[n++] = d | 31 - (256 * g + d) % 31; d = f(this.input); this.f.b = n; k = this.f.ds(); n = k.length; Q && (k = new Uint8Array(k.buffer), k.length <= n + 4 && (this.a = new Uint8Array(k.length + 4), this.a.set(k), k = this.a), k = k.subarray(0, n + 4)); k[n++] = d >> 24 & 255; k[n++] = d >> 16 & 255; k[n++] = d >> 8 & 255; k[n++] = d & 255; return k }; d("Zlib.Deflate", D); d("Zlib.Deflate.compress", function(c, d) { return (new D(c, d)).ds() }); d("Zlib.Deflate.CompressionType", ca); d("Zlib.Deflate.CompressionType.NONE", ca.NONE); d("Zlib.Deflate.CompressionType.FIXED", ca.r); d("Zlib.Deflate.CompressionType.DYNAMIC", ca.pQ); var Ma = 0, W = 1, S = { Bla: Ma, oka: W }; E.prototype.d = function() { for (; ! this.tl;) { var d = F(this, 3); d & 1 && (this.tl = X); d >>>= 1; switch (d) { case 0: var d = this.input, f = this.H, g = this.a, h = this.b, k = U, n = U, p = U, r = g.length, k = U; this.xm = this.g = 0; k = d[f++]; k === U && c(Error("invalid uncompressed block header: LEN (first byte)")); n = k; k = d[f++]; k === U && c(Error("invalid uncompressed block header: LEN (second byte)")); n |= k << 8; k = d[f++]; k === U && c(Error("invalid uncompressed block header: NLEN (first byte)")); p = k; k = d[f++]; k === U && c(Error("invalid uncompressed block header: NLEN (second byte)")); p |= k << 8; n === ~p && c(Error("invalid uncompressed block header: length verify")); f + n > d.length && c(Error("input buffer is broken")); switch (this.FQ) { case Ma: for (; h + n > g.length;) { k = r - h; n -= k; if (Q) g.set(d.subarray(f, f + k), h), h += k, f += k; else for (; k--;) g[h++] = d[f++]; this.b = h; g = this.Un(); h = this.b } break; case W: for (; h + n > g.length;) g = this.Un({ ea: 2 }); break; default: c(Error("invalid inflate mode")) } if (Q) g.set(d.subarray(f, f + n), h), h += n, f += n; else for (; n--;) g[h++] = d[f++]; this.H = f; this.b = h; this.a = g; break; case 1: this.LQ(fb, gb); break; case 2: K(this); break; default: c(Error("unknown BTYPE: " + d)) } } return this.K3() }; M = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]; var pa = Q ? new Uint16Array(M) : M; M = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 258, 258]; var hb = Q ? new Uint16Array(M) : M; M = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0, 0, 0]; var Na = Q ? new Uint8Array(M) : M; M = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577]; var Gb = Q ? new Uint16Array(M) : M; M = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13]; var Aa = Q ? new Uint8Array(M) : M; M = new(Q ? Uint8Array: Array)(288); R = 0; for ($ = M.length; R < $; ++R) M[R] = 143 >= R ? 8 : 255 >= R ? 9 : 279 >= R ? 7 : 8; var fb = k(M); M = new(Q ? Uint8Array: Array)(30); R = 0; for ($ = M.length; R < $; ++R) M[R] = 5; var gb = k(M); E.prototype.LQ = function(c, d) { var f = this.a, g = this.b; this.xa = c; for (var h = f.length - 258, k, n, p; 256 !== (k = G(this, c));) if (256 > k) g >= h && (this.b = g, f = this.Un(), g = this.b), f[g++] = k; else { k -= 257; p = hb[k]; 0 < Na[k] && (p += F(this, Na[k])); k = G(this, d); n = Gb[k]; 0 < Aa[k] && (n += F(this, Aa[k])); for (g >= h && (this.b = g, f = this.Un(), g = this.b); p--;) f[g] = f[g++-n] } for (; 8 <= this.xm;) this.xm -= 8, this.H--; this.b = g }; E.prototype.yma = function(c, d) { var f = this.a, g = this.b; this.xa = c; for (var h = f.length, k, n, p; 256 !== (k = G(this, c));) if (256 > k) g >= h && (f = this.Un(), h = f.length), f[g++] = k; else { k -= 257; p = hb[k]; 0 < Na[k] && (p += F(this, Na[k])); k = G(this, d); n = Gb[k]; 0 < Aa[k] && (n += F(this, Aa[k])); for (g + p > h && (f = this.Un(), h = f.length); p--;) f[g] = f[g++-n] } for (; 8 <= this.xm;) this.xm -= 8, this.H--; this.b = g }; E.prototype.Un = function() { var c = new(Q ? Uint8Array: Array)(this.b - 32768), d = this.b - 32768, f, g, h = this.a; if (Q) c.set(h.subarray(32768, c.length)); else { f = 0; for (g = c.length; f < g; ++f) c[f] = h[f + 32768] } this.qQ.push(c); this.ZQ += c.length; if (Q) h.set(h.subarray(d, d + 32768)); else for (f = 0; 32768 > f; ++f) h[f] = h[d + f]; this.b = 32768; return h }; E.prototype.Fma = function(c) { var d, f = this.input.length / this.H + 1 | 0, g, h, k, n = this.input, p = this.a; c && ("number" === typeof c.ea && (f = c.ea), "number" === typeof c.mma && (f += c.mma)); 2 > f ? (g = (n.length - this.H) / this.xa[2], k = 258 * (g / 2) | 0, h = k < p.length ? p.length + k: p.length << 1) : h = p.length * f; Q ? (d = new Uint8Array(h), d.set(p)) : d = p; return this.a = d }; E.prototype.K3 = function() { var c = 0, d = this.a, f = this.qQ, g, h = new(Q ? Uint8Array: Array)(this.ZQ + (this.b - 32768)), k, n, p, r; if (0 === f.length) return Q ? this.a.subarray(32768, this.b) : this.a.slice(32768, this.b); k = 0; for (n = f.length; k < n; ++k) { g = f[k]; p = 0; for (r = g.length; p < r; ++p) h[c++] = g[p] } k = 32768; for (n = this.b; k < n; ++k) h[c++] = d[k]; this.qQ = []; return this.buffer = h }; E.prototype.tma = function() { var c, d = this.b; Q ? this.q4 ? (c = new Uint8Array(d), c.set(this.a.subarray(0, d))) : c = this.a.subarray(0, d) : (this.a.length > d && (this.a.length = d), c = this.a); return this.buffer = c }; O.prototype.d = function() { var d = this.input, g, h; g = this.g4.d(); this.H = this.g4.H; this.Yma && (h = (d[this.H++] << 24 | d[this.H++] << 16 | d[this.H++] << 8 | d[this.H++]) >>> 0, h !== f(g) && c(Error("invalid adler-32 checksum"))); return g }; d("Zlib.Inflate", O); d("Zlib.Inflate.BufferType", S); S.YJa = S.oka; S.IKa = S.Bla; d("Zlib.Inflate.prototype.decompress", O.prototype.d); S = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]; Q && new Uint16Array(S); S = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 258, 258]; Q && new Uint16Array(S); S = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0, 0, 0]; Q && new Uint8Array(S); S = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577]; Q && new Uint16Array(S); S = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13]; Q && new Uint8Array(S); S = new(Q ? Uint8Array: Array)(288); M = 0; for (R = S.length; M < R; ++M) S[M] = 143 >= M ? 8 : 255 >= M ? 9 : 279 >= M ? 7 : 8; k(S); S = new(Q ? Uint8Array: Array)(30); M = 0; for (R = S.length; M < R; ++M) S[M] = 5; k(S); var Ka = 8 }).call(this); H = window; H = H.SNa = H.Zlib; H.x5 = H.Deflate; H.x5.dRa = H.x5.compress; H.Inflate = H.Inflate; H.Inflate.YKa = H.Inflate.BufferType; H.Inflate.prototype.decompress = H.Inflate.prototype.decompress; C.Gna = C.O.extend({ ctor: function(c) { var d, f, g, h; this.data = c; this.hc = 8; this.U1 = []; this.$P = []; this.By = {}; this.td = s; this.text = {}; for (g = s;;) { d = this.is(); h = c = m; h = []; for (c = 0; 4 > c; ++c) h.push(String.fromCharCode(this.data[this.hc++])); c = h.join(""); switch (c) { case "IHDR": this.width = this.is(); this.height = this.is(); this.zB = this.data[this.hc++]; this.y_ = this.data[this.hc++]; this.eRa = this.data[this.hc++]; this.vSa = this.data[this.hc++]; this.aYa = this.data[this.hc++]; break; case "acTL": this.td = { v0a: this.is(), w0a: this.is() || Infinity, frames: [] }; break; case "PLTE": this.U1 = this.UI(d); break; case "fcTL": g && this.td.frames.push(g); this.hc += 4; g = { width: this.is(), height: this.is(), wja: this.is(), xja: this.is() }; c = this.Cga(); d = this.Cga() || 100; g.wm = 1E3 * c / d; g.IRa = this.data[this.hc++]; g.CQa = this.data[this.hc++]; g.data = []; break; case "IDAT": case "fdAT": "fdAT" === c && (this.hc += 4, d -= 4); c = (g != s ? g.data: m) || this.$P; for (h = 0; 0 <= d ? h < d: h > d; 0 <= d ? ++h: --h) c.push(this.data[this.hc++]); break; case "tRNS": this.By = {}; switch (this.y_) { case 3: this.By.T0 = this.UI(d); d = 255 - this.By.T0.length; if (0 < d) for (c = 0; 0 <= d ? c < d: c > d; 0 <= d ? ++c: --c) this.By.T0.push(255); break; case 0: this.By.FXa = this.UI(d)[0]; break; case 2: this.By.I2a = this.UI(d) } break; case "tEXt": h = this.UI(d); d = h.indexOf(0); c = String.fromCharCode.apply(String, h.slice(0, d)); this.text[c] = String.fromCharCode.apply(String, h.slice(d + 1)); break; case "IEND": g && this.td.frames.push(g); a: { switch (this.y_) { case 0: case 3: case 4: g = 1; break a; case 2: case 6: g = 3; break a } g = m } this.F = g; this.Nea = 4 === (f = this.y_) || 6 === f; f = this.F + (this.Nea ? 1 : 0); this.DFa = this.zB * f; a: { switch (this.F) { case 1: f = "DeviceGray"; break a; case 3: f = "DeviceRGB"; break a } f = m } this.aRa = f; Uint8Array != Array && (this.$P = new Uint8Array(this.$P)); return; default: this.hc += d } this.hc += 4; this.hc > this.data.length && e(Error("Incomplete or corrupt PNG file")) } }, UI: function(c) { var d, f; f = []; for (d = 0; 0 <= c ? d < c: d > c; 0 <= c ? ++d: --d) f.push(this.data[this.hc++]); return f }, is: function() { var c, d, f, g; c = this.data[this.hc++] << 24; d = this.data[this.hc++] << 16; f = this.data[this.hc++] << 8; g = this.data[this.hc++]; return c | d | f | g }, Cga: function() { var c, d; c = this.data[this.hc++] << 8; d = this.data[this.hc++]; return c | d }, tya: function(c) { var d, f, g, h, k, n, p, r, v, y, z, D, E, F, G; c == s && (c = this.$P); if (0 === c.length) return new Uint8Array(0); c = (new Zlib.Inflate(c, { index: 0, tja: t })).decompress(); r = this.DFa / 8; D = r * this.width; v = new Uint8Array(D * this.height); n = c.length; for (f = y = z = 0; y < n;) { switch (c[y++]) { case 0: for (d = 0; d < D; d += 1) v[f++] = c[y++]; break; case 1: for (h = E = 0; E < D; h = E += 1) d = c[y++], k = h < r ? 0 : v[f - r], v[f++] = (d + k) % 256; break; case 2: for (h = k = 0; k < D; h = k += 1) d = c[y++], g = (h - h % r) / r, E = z && v[(z - 1) * D + g * r + h % r], v[f++] = (E + d) % 256; break; case 3: for (h = G = 0; G < D; h = G += 1) d = c[y++], g = (h - h % r) / r, k = h < r ? 0 : v[f - r], E = z && v[(z - 1) * D + g * r + h % r], v[f++] = (d + Math.floor((k + E) / 2)) % 256; break; case 4: for (h = G = 0; G < D; h = G += 1) d = c[y++], g = (h - h % r) / r, k = h < r ? 0 : v[f - r], 0 === z ? E = F = 0 : (E = v[(z - 1) * D + g * r + h % r], F = g && v[(z - 1) * D + (g - 1) * r + h % r]), p = k + E - F, h = Math.abs(p - k), g = Math.abs(p - E), p = Math.abs(p - F), k = h <= g && h <= p ? k: g <= p ? E: F, v[f++] = (d + k) % 256; break; default: e(Error("Invalid filter algorithm: " + c[y - 1])) } z++ } return v }, Vxa: function(c, d) { var f, g, h, k, n, p, r, v; g = this.F; v = s; f = this.Nea; this.U1.length && (v = (h = this.Dra) != s ? h: this.Dra = this.sya(), g = 4, f = q); h = c.data || c; r = h.length; n = v || d; k = p = 0; if (1 === g) for (; k < r;) g = v ? 4 * d[k / 4] : p, p = n[g++], h[k++] = p, h[k++] = p, h[k++] = p, h[k++] = f ? n[g++] : 255, p = g; else for (; k < r;) g = v ? 4 * d[k / 4] : p, h[k++] = n[g++], h[k++] = n[g++], h[k++] = n[g++], h[k++] = f ? n[g++] : 255, p = g }, sya: function() { var c, d, f, g, h, k, n, p, r; f = this.U1; k = this.By.T0 || []; h = new Uint8Array((k.length || 0) + f.length); d = n = c = g = 0; for (p = f.length; n < p; d = n += 3) h[g++] = f[d], h[g++] = f[d + 1], h[g++] = f[d + 2], h[g++] = (r = k[c++]) != s ? r: 255; return h }, DGa: function(c) { var d; c.width = this.width; c.height = this.height; c = c.getContext("2d"); d = c.createImageData(this.width, this.height); this.Vxa(d, this.tya()); return c.putImageData(d, 0, 0) } }); C.mJa = { saa: t, Ww: s, xW: [], getUint8: function(c) { return this.Ww[c] }, getUint16: function(c) { return this.saa ? this.Ww[c + 1] << 8 | this.Ww[c] : this.Ww[c] << 8 | this.Ww[c + 1] }, getUint32: function(c) { var d = this.Ww; return this.saa ? d[c + 3] << 24 | d[c + 2] << 16 | d[c + 1] << 8 | d[c] : d[c] << 24 | d[c + 1] << 16 | d[c + 2] << 8 | d[c + 3] }, Gxa: function() { var c = this.getUint16(0); 18761 === c ? this.A1 = q: 19789 === c ? this.A1 = t: (console.log(c), e(TypeError("Invalid byte order value."))); return this.A1 }, CCa: function() { 42 !== this.getUint16(2) && e(RangeError("You forgot your towel!")); return q }, yAa: function(c) { var d = this.Kza; return c in d ? d[c] : s }, wAa: function(c) { var d = this.Jza; if (c in d) return d[c]; console.log("Unknown Field Tag:", c); return "Tag" + c }, xAa: function(c) { return - 1 !== ["BYTE", "ASCII", "SBYTE", "UNDEFINED"].indexOf(c) ? 1 : -1 !== ["SHORT", "SSHORT"].indexOf(c) ? 2 : -1 !== ["LONG", "SLONG", "FLOAT"].indexOf(c) ? 4 : -1 !== ["RATIONAL", "SRATIONAL", "DOUBLE"].indexOf(c) ? 8 : s }, zAa: function(c, d, f, g) { c = []; var h = this.xAa(d); if (4 >= h * f) this.A1 === t ? c.push(g >>> 8 * (4 - h)) : c.push(g); else for (var k = 0; k < f; k++) { var n = h * k; 8 <= h ? -1 !== ["RATIONAL", "SRATIONAL"].indexOf(d) ? (c.push(this.getUint32(g + n)), c.push(this.getUint32(g + n + 4))) : C.log("Can't handle this field type or size") : c.push(this.Lda(h, g + n)) } "ASCII" === d && c.forEach(function(c, d, f) { f[d] = String.fromCharCode(c) }); return c }, Lda: function(c, d) { if (0 >= c) C.log("No bytes requested"); else { if (1 >= c) return this.getUint8(d); if (2 >= c) return this.getUint16(d); if (3 >= c) return this.getUint32(d) >>> 8; if (4 >= c) return this.getUint32(d); C.log("Too many bytes requested") } }, eAa: function(c, d, f) { f = f || 0; d += Math.floor(f / 8); var g = f + c; c = 32 - c; var h, k; 0 >= g ? console.log("No bits requested") : 8 >= g ? (h = 24 + f, k = this.getUint8(d)) : 16 >= g ? (h = 16 + f, k = this.getUint16(d)) : 32 >= g ? (h = f, k = this.getUint32(d)) : console.log("Too many bits requested"); return { bits: k << h >>> c, byteOffset: d + Math.floor(g / 8), bitOffset: g % 8 } }, rga: function(c) { var d = this.getUint16(c), f = []; c += 2; for (var g = 0; g < d; c += 12, g++) { var h = this.getUint16(c), k = this.getUint16(c + 2), n = this.getUint32(c + 4), p = this.getUint32(c + 8), h = this.wAa(h), k = this.yAa(k), n = this.zAa(h, k, n, p); f[h] = { type: k, so: n } } this.xW.push(f); d = this.getUint32(c); 0 !== d && this.rga(d) }, sx: function(c, d) { var f = Math.pow(2, 8 - d); return Math.floor(c * f + (f - 1)) }, AFa: function(c, d) { d = d || C.bd("canvas"); this.Ww = c; this.canvas = d; this.Gxa(); if (this.CCa()) { var f = this.getUint32(4); this.xW.length = 0; this.rga(f); var g = this.xW[0], f = g.ImageWidth.so[0], h = g.ImageLength.so[0]; this.canvas.width = f; this.canvas.height = h; var k = [], n = g.Compression ? g.Compression.so[0] : 1, p = g.SamplesPerPixel.so[0], r = [], v = 0, y = t; g.BitsPerSample.so.forEach(function(c, d) { r[d] = { AB: c, TP: t, tH: m }; 0 === c % 8 && (r[d].TP = q, r[d].tH = c / 8); v += c }, this); if (0 === v % 8) var y = q, z = v / 8; var D = g.StripOffsets.so, E = D.length; if (g.StripByteCounts) var F = g.StripByteCounts.so; else C.log("Missing StripByteCounts!"), 1 === E ? F = [Math.ceil(f * h * v / 8)] : e(Error("Cannot recover from missing StripByteCounts")); for (var G = 0; G < E; G++) { var K = D[G]; k[G] = []; for (var O = F[G], U = 0, X = 0, N = 1, Q = q, S = [], M = 0, R = 0, $ = 0; U < O; U += N) switch (n) { case 1: N = 0; for (S = []; N < p; N++) r[N].TP ? S.push(this.Lda(r[N].tH, K + U + r[N].tH * N)) : (X = this.eAa(r[N].AB, K + U, X), S.push(X.zB), U = X.byteOffset - K, X = X.AQa, e(RangeError("Cannot handle sub-byte bits per sample"))); k[G].push(S); y ? N = z: (N = 0, e(RangeError("Cannot handle sub-byte bits per pixel"))); break; case 32773: if (Q) { var Q = t, sa = 1, aa = 1, N = this.getInt8(K + U); 0 <= N && 127 >= N ? sa = N + 1 : -127 <= N && -1 >= N ? aa = -N + 1 : Q = q } else { for (var ta = this.getUint8(K + U), N = 0; N < aa; N++) r[R].TP ? ($ = $ << 8 * M | ta, M++, M === r[R].tH && (S.push($), $ = M = 0, R++)) : e(RangeError("Cannot handle sub-byte bits per sample")), R === p && (k[G].push(S), S = [], R = 0); sa--; 0 === sa && (Q = q) } N = 1 } } if (d.getContext) { z = this.canvas.getContext("2d"); z.fillStyle = "rgba(255, 255, 255, 0)"; G = g.RowsPerStrip ? g.RowsPerStrip.so[0] : h; F = k.length; h %= G; h = 0 === h ? G: h; sa = G; y = 0; aa = g.PhotometricInterpretation.so[0]; n = []; p = 0; g.ExtraSamples && (n = g.ExtraSamples.so, p = n.length); if (g.ColorMap) var ma = g.ColorMap.so, ba = Math.pow(2, r[0].AB); for (G = 0; G < F; G++) { G + 1 === F && (sa = h); g = k[G].length; y *= G; for (E = D = 0; D < sa, E < g; D++) for (K = 0; K < f; K++, E++) { S = k[G][E]; M = U = O = 0; Q = 1; if (0 < p) for (R = 0; R < p; R++) if (1 === n[R] || 2 === n[R]) { Q = S[3 + R] / 256; break } switch (aa) { case 0: if (r[0].TP) var xa = Math.pow(16, 2 * r[0].tH); S.forEach(function(c, d, f) { f[d] = xa - c }); case 1: O = U = M = this.sx(S[0], r[0].AB); break; case 2: O = this.sx(S[0], r[0].AB); U = this.sx(S[1], r[1].AB); M = this.sx(S[2], r[2].AB); break; case 3: ma === m && e(Error("Palette image missing color map")); S = S[0]; O = this.sx(ma[S], 16); U = this.sx(ma[ba + S], 16); M = this.sx(ma[2 * ba + S], 16); break; default: e(RangeError("Unknown Photometric Interpretation:", aa)) } z.fillStyle = "rgba(" + O + ", " + U + ", " + M + ", " + Q + ")"; z.fillRect(K, y + D, 1, 1) } y = sa } } return this.canvas } }, Jza: { 315 : "Artist", 258 : "BitsPerSample", 265 : "CellLength", 264 : "CellWidth", 320 : "ColorMap", 259 : "Compression", 33432 : "Copyright", 306 : "DateTime", 338 : "ExtraSamples", 266 : "FillOrder", 289 : "FreeByteCounts", 288 : "FreeOffsets", 291 : "GrayResponseCurve", 290 : "GrayResponseUnit", 316 : "HostComputer", 270 : "ImageDescription", 257 : "ImageLength", 256 : "ImageWidth", 271 : "Make", 281 : "MaxSampleValue", 280 : "MinSampleValue", 272 : "Model", 254 : "NewSubfileType", 274 : "Orientation", 262 : "PhotometricInterpretation", 284 : "PlanarConfiguration", 296 : "ResolutionUnit", 278 : "RowsPerStrip", 277 : "SamplesPerPixel", 305 : "Software", 279 : "StripByteCounts", 273 : "StripOffsets", 255 : "SubfileType", 263 : "Threshholding", 282 : "XResolution", 283 : "YResolution", 326 : "BadFaxLines", 327 : "CleanFaxData", 343 : "ClipPath", 328 : "ConsecutiveBadFaxLines", 433 : "Decode", 434 : "DefaultImageColor", 269 : "DocumentName", 336 : "DotRange", 321 : "HalftoneHints", 346 : "Indexed", 347 : "JPEGTables", 285 : "PageName", 297 : "PageNumber", 317 : "Predictor", 319 : "PrimaryChromaticities", 532 : "ReferenceBlackWhite", 339 : "SampleFormat", 559 : "StripRowCounts", 330 : "SubIFDs", 292 : "T4Options", 293 : "T6Options", 325 : "TileByteCounts", 323 : "TileLength", 324 : "TileOffsets", 322 : "TileWidth", 301 : "TransferFunction", 318 : "WhitePoint", 344 : "XClipPathUnits", 286 : "XPosition", 529 : "YCbCrCoefficients", 531 : "YCbCrPositioning", 530 : "YCbCrSubSampling", 345 : "YClipPathUnits", 287 : "YPosition", 37378 : "ApertureValue", 40961 : "ColorSpace", 36868 : "DateTimeDigitized", 36867 : "DateTimeOriginal", 34665 : "Exif IFD", 36864 : "ExifVersion", 33434 : "ExposureTime", 41728 : "FileSource", 37385 : "Flash", 40960 : "FlashpixVersion", 33437 : "FNumber", 42016 : "ImageUniqueID", 37384 : "LightSource", 37500 : "MakerNote", 37377 : "ShutterSpeedValue", 37510 : "UserComment", 33723 : "IPTC", 34675 : "ICC Profile", 700 : "XMP", 42112 : "GDAL_METADATA", 42113 : "GDAL_NODATA", 34377 : "Photoshop" }, Kza: { 1 : "BYTE", 2 : "ASCII", 3 : "SHORT", 4 : "LONG", 5 : "RATIONAL", 6 : "SBYTE", 7 : "UNDEFINED", 8 : "SSHORT", 9 : "SLONG", 10 : "SRATIONAL", 11 : "FLOAT", 12 : "DOUBLE" } }; C.Hl = function(c, d, f, g, h, k, n, p, r, v, y, z) { this.hc = c ? c: C.d(0, 0); this.startPos = d ? d: C.d(0, 0); this.color = f ? f: { r: 0, g: 0, b: 0, a: 255 }; this.DH = g ? g: { r: 0, g: 0, b: 0, a: 255 }; this.size = h || 0; this.L_ = k || 0; this.rotation = n || 0; this.kda = p || 0; this.bv = r || 0; this.atlasIndex = v || 0; this.Wd = y ? y: new C.Hl.AT; this.oh = z ? z: new C.Hl.BT; this.ffa = t; this.FH = C.d(0, 0) }; C.Hl.AT = function(c, d, f) { this.dir = c ? c: C.d(0, 0); this.radialAccel = d || 0; this.tangentialAccel = f || 0 }; C.Hl.BT = function(c, d, f, g) { this.tm = c || 0; this.ida = d || 0; this.TI = f || 0; this.jda = g || 0 }; C.Hl.YK = [C.d(), C.d(), C.d(), C.d()]; C.B = C.A.extend({ CN: "", Bc: 0, N9: t, Wd: s, oh: s, qa: "ParticleSystem", WX: C.d(0, 0), Mt: s, Xv: 0, Wj: 0, wa: s, atlasIndex: 0, cx: t, iL: 0, pP: s, WR: s, pA: t, Og: 0, duration: 0, bB: s, Ot: s, nj: 0, qC: 0, tm: 0, wB: 0, ZC: 0, $C: 0, Bx: 0, MB: 0, Kg: s, Zt: s, Ef: s, nt: s, aD: 0, bD: 0, NB: 0, OB: 0, Ax: 0, wc: 0, da: s, C: s, Fb: t, qh: s, rH: t, Gb: 0, hf: s, Qb: s, Me: s, rG: s, Aa: s, eg: s, ctor: function(c) { C.A.prototype.ctor.call(this); this.Gb = C.B.rc; this.Wd = new C.B.AT; this.oh = new C.B.BT; this.C = { src: C.Ic, ga: C.Hc }; this.Mt = []; this.bB = C.d(0, 0); this.Ot = C.d(0, 0); this.Kg = C.color(255, 255, 255, 255); this.Zt = C.color(255, 255, 255, 255); this.Ef = C.color(255, 255, 255, 255); this.nt = C.color(255, 255, 255, 255); this.CN = ""; this.Bc = 0; this.N9 = t; this.WX = C.d(0, 0); this.Wj = this.Xv = 0; this.wa = s; this.atlasIndex = 0; this.cx = t; this.iL = 0; this.pP = C.B.uoa; this.WR = C.B.Uja; this.pA = t; this.wc = this.Ax = this.OB = this.NB = this.bD = this.aD = this.MB = this.Bx = this.$C = this.ZC = this.wB = this.tm = this.qC = this.nj = this.duration = this.Og = 0; this.da = s; this.Fb = t; this.qh = C.B.GE; this.rH = t; this.Me = [0, 0]; this.hf = []; this.Qb = []; this.rG = C.rect(0, 0, 0, 0); this.Aa = q; C.L === C.la && (this.eg = s); ! c || "number" === typeof c ? (c = c || 100, this.sHa(C.B.P7), this.Hb(c)) : c && this.Ce(c) }, U0: function() { for (var c = this.Qb, d = 0, f = this.wc; d < f; ++d) { var g = 6 * d, h = 4 * d; c[g + 0] = h + 0; c[g + 1] = h + 1; c[g + 2] = h + 2; c[g + 5] = h + 1; c[g + 4] = h + 2; c[g + 3] = h + 3 } }, Tea: function(c) { var d = C.Ec(), f = C.rect(c.x * d, c.y * d, c.width * d, c.height * d), g = c.width, h = c.height; this.da && (g = this.da.pixelsWidth, h = this.da.pixelsHeight); if (C.L !== C.cb) { C.Qy ? (c = (2 * f.x + 1) / (2 * g), d = (2 * f.y + 1) / (2 * h), g = c + (2 * f.width - 2) / (2 * g), f = d + (2 * f.height - 2) / (2 * h)) : (c = f.x / g, d = f.y / h, g = c + f.width / g, f = d + f.height / h); var h = f, f = d, d = h, k = 0, n = 0; this.wa ? (h = this.wa.textureAtlas.quads, k = this.atlasIndex, n = this.atlasIndex + this.wc) : (h = this.hf, k = 0, n = this.wc); for (; k < n; k++) { h[k] || (h[k] = C.I8()); var p = h[k]; p.T.v.xa = c; p.T.v.ea = d; p.Y.v.xa = g; p.Y.v.ea = d; p.X.v.xa = c; p.X.v.ea = f; p.V.v.xa = g; p.V.v.ea = f } } }, XB: A("wa"), os: function(c) { if (this.wa != c) { var d = this.wa; if (this.wa = c) for (var f = this.Mt, g = 0; g < this.wc; g++) f[g].atlasIndex = g; c ? d || (this.wa.textureAtlas.zra(this.hf, this.atlasIndex), C.t.deleteBuffer(this.Me[1])) : (this.d9(), this.U0(), this.Va(d.ob()), this.Pw()) } }, WB: A("atlasIndex"), C2: x("atlasIndex"), oUa: A("pP"), sHa: x("pP"), BWa: A("WR"), e5a: x("WR"), zi: A("pA"), VVa: A("Og"), N4a: x("Og"), Rr: A("duration"), Wh: x("duration"), RBa: function() { return { x: this.bB.x, y: this.bB.y } }, oIa: x("bB"), x0: function() { return { x: this.Ot.x, y: this.Ot.y } }, vk: x("Ot"), gVa: A("nj"), tk: x("nj"), hVa: A("qC"), uk: x("qC"), ISa: A("tm"), ok: x("tm"), JSa: A("wB"), pk: x("wB"), MH: function() { this.Gb !== C.B.rc && C.log("cc.ParticleBatchNode.getGravity() : Particle Mode should be Gravity"); var c = this.Wd.gravity; return C.d(c.x, c.y) }, oc: function(c) { this.Gb !== C.B.rc && C.log("cc.ParticleBatchNode.setGravity() : Particle Mode should be Gravity"); this.Wd.gravity = c }, MP: function() { this.Gb !== C.B.rc && C.log("cc.ParticleBatchNode.getSpeed() : Particle Mode should be Gravity"); return this.Wd.speed }, Xh: function(c) { this.Gb !== C.B.rc && C.log("cc.ParticleBatchNode.setSpeed() : Particle Mode should be Gravity"); this.Wd.speed = c }, tea: function() { this.Gb !== C.B.rc && C.log("cc.ParticleBatchNode.getSpeedVar() : Particle Mode should be Gravity"); return this.Wd.speedVar }, yj: function(c) { this.Gb !== C.B.rc && C.log("cc.ParticleBatchNode.setSpeedVar() : Particle Mode should be Gravity"); this.Wd.speedVar = c }, xea: function() { this.Gb !== C.B.rc && C.log("cc.ParticleBatchNode.getTangentialAccel() : Particle Mode should be Gravity"); return this.Wd.tangentialAccel }, no: function(c) { this.Gb !== C.B.rc && C.log("cc.ParticleBatchNode.setTangentialAccel() : Particle Mode should be Gravity"); this.Wd.tangentialAccel = c }, yea: function() { this.Gb !== C.B.rc && C.log("cc.ParticleBatchNode.getTangentialAccelVar() : Particle Mode should be Gravity"); return this.Wd.tangentialAccelVar }, oo: function(c) { this.Gb !== C.B.rc && C.log("cc.ParticleBatchNode.setTangentialAccelVar() : Particle Mode should be Gravity"); this.Wd.tangentialAccelVar = c }, mea: function() { this.Gb !== C.B.rc && C.log("cc.ParticleBatchNode.getRadialAccel() : Particle Mode should be Gravity"); return this.Wd.radialAccel }, wj: function(c) { this.Gb !== C.B.rc && C.log("cc.ParticleBatchNode.setRadialAccel() : Particle Mode should be Gravity"); this.Wd.radialAccel = c }, nea: function() { this.Gb !== C.B.rc && C.log("cc.ParticleBatchNode.getRadialAccelVar() : Particle Mode should be Gravity"); return this.Wd.radialAccelVar }, xj: function(c) { this.Gb !== C.B.rc && C.log("cc.ParticleBatchNode.setRadialAccelVar() : Particle Mode should be Gravity"); this.Wd.radialAccelVar = c }, FBa: function() { this.Gb !== C.B.rc && C.log("cc.ParticleBatchNode.getRotationIsDir() : Particle Mode should be Gravity"); return this.Wd.rotationIsDir }, iIa: function(c) { this.Gb !== C.B.rc && C.log("cc.ParticleBatchNode.setRotationIsDir() : Particle Mode should be Gravity"); this.Wd.rotationIsDir = c }, vea: function() { this.Gb !== C.B.Cj && C.log("cc.ParticleBatchNode.getStartRadius() : Particle Mode should be Radius"); return this.oh.startRadius }, n3: function(c) { this.Gb !== C.B.Cj && C.log("cc.ParticleBatchNode.setStartRadius() : Particle Mode should be Radius"); this.oh.startRadius = c }, wea: function() { this.Gb !== C.B.Cj && C.log("cc.ParticleBatchNode.getStartRadiusVar() : Particle Mode should be Radius"); return this.oh.startRadiusVar }, o3: function(c) { this.Gb !== C.B.Cj && C.log("cc.ParticleBatchNode.setStartRadiusVar() : Particle Mode should be Radius"); this.oh.startRadiusVar = c }, Wda: function() { this.Gb !== C.B.Cj && C.log("cc.ParticleBatchNode.getEndRadius() : Particle Mode should be Radius"); return this.oh.endRadius }, P2: function(c) { this.Gb !== C.B.Cj && C.log("cc.ParticleBatchNode.setEndRadius() : Particle Mode should be Radius"); this.oh.endRadius = c }, Xda: function() { this.Gb !== C.B.Cj && C.log("cc.ParticleBatchNode.getEndRadiusVar() : Particle Mode should be Radius"); return this.oh.endRadiusVar }, Q2: function(c) { this.Gb !== C.B.Cj && C.log("cc.ParticleBatchNode.setEndRadiusVar() : Particle Mode should be Radius"); this.oh.endRadiusVar = c }, oea: function() { this.Gb !== C.B.Cj && C.log("cc.ParticleBatchNode.getRotatePerSecond() : Particle Mode should be Radius"); return this.oh.hR }, g3: function(c) { this.Gb !== C.B.Cj && C.log("cc.ParticleBatchNode.setRotatePerSecond() : Particle Mode should be Radius"); this.oh.hR = c }, pea: function() { this.Gb !== C.B.Cj && C.log("cc.ParticleBatchNode.getRotatePerSecondVar() : Particle Mode should be Radius"); return this.oh.iR }, h3: function(c) { this.Gb !== C.B.Cj && C.log("cc.ParticleBatchNode.setRotatePerSecondVar() : Particle Mode should be Radius"); this.oh.iR = c }, Za: function(c, d) { this.cx = q; C.A.prototype.Za.call(this, c, d) }, th: function(c) { this.cx = q; C.A.prototype.th.call(this, c) }, gb: function(c) { this.cx = q; C.A.prototype.gb.call(this, c) }, pb: function(c) { this.cx = q; C.A.prototype.pb.call(this, c) }, GWa: A("ZC"), wk: x("ZC"), HWa: A("$C"), xk: x("$C"), uUa: A("Bx"), sk: x("Bx"), vUa: A("MB"), R2: x("MB"), NP: function() { return C.color(this.Kg.r, this.Kg.g, this.Kg.b, this.Kg.a) }, tg: function(c) { this.Kg = C.color(c) }, uea: function() { return C.color(this.Zt.r, this.Zt.g, this.Zt.b, this.Zt.a) }, zj: function(c) { this.Zt = C.color(c) }, EP: function() { return C.color(this.Ef.r, this.Ef.g, this.Ef.b, this.Ef.a) }, sg: function(c) { this.Ef = C.color(c) }, Vda: function() { return C.color(this.nt.r, this.nt.g, this.nt.b, this.nt.a) }, uj: function(c) { this.nt = C.color(c) }, IWa: A("aD"), uia: x("aD"), JWa: A("bD"), via: x("bD"), wUa: A("NB"), Bha: x("NB"), xUa: A("OB"), Cha: x("OB"), sUa: A("Ax"), qk: x("Ax"), cCa: A("wc"), yia: function(c) { if (C.L === C.cb) this.wc = 200 > c ? c: 200; else { if (c > this.iL) { var d = C.Uc.BYTES_PER_ELEMENT; this.Qb = new Uint16Array(6 * c); var f = new ArrayBuffer(c * d), g = this.Mt; g.length = 0; for (var h = this.hf, k = h.length = 0; k < c; k++) g[k] = new C.Hl, h[k] = new C.Uc(s, s, s, s, f, k * d); this.wc = this.iL = c; if (this.wa) for (d = 0; d < c; d++) g[d].atlasIndex = d; this.eg = f; this.U0(); this.Pw(); this.da && this.Tea(C.rect(0, 0, this.da.width, this.da.height)) } else this.wc = c; this.Zga() } }, ob: A("da"), Va: function(c) { c.de ? this.q3(c, C.rect(0, 0, c.width, c.height)) : (this.Aa = t, c.ye(function(c) { this.Aa = q; this.q3(c, C.rect(0, 0, c.width, c.height)) }, this)) }, ek: A("C"), Yd: function(c, d) { if (d === m) this.C != c && (this.C = c, this.hl()); else if (this.C.src != c || this.C.ga != d) this.C = { src: c, ga: d }, this.hl() }, qg: A("Fb"), $d: x("Fb"), lDa: function() { return this.C.src == C.SRC_ALPHA && this.C.ga == C.ONE || this.C.src == C.ONE && this.C.ga == C.ONE }, Nm: function(c) { var d = this.C; c ? (d.src = C.SRC_ALPHA, d.ga = C.ONE) : C.L === C.la ? this.da && !this.da.Hp() ? (d.src = C.SRC_ALPHA, d.ga = C.ONE_MINUS_SRC_ALPHA) : (d.src = C.Ic, d.ga = C.Hc) : (d.src = C.Ic, d.ga = C.Hc) }, xBa: A("qh"), a3: x("qh"), fYa: A("rH"), s3a: x("rH"), tUa: A("Gb"), rk: x("Gb"), j: function() { return this.Hb(150) }, Ce: function(c) { this.CN = c; c = C.M.xd(c); return ! c ? (C.log("cc.ParticleSystem.initWithFile(): Particles: file not found"), t) : this.Lp(c, "") }, fAa: function() { return C.rect(0, 0, C.Pb.width, C.Pb.height) }, Lp: function(c) { var d = t, f = s, f = this.jwa, g = parseInt(f("maxParticles", c)); if (this.Hb(g)) { this.tm = parseFloat(f("angle", c)); this.wB = parseFloat(f("angleVariance", c)); this.duration = parseFloat(f("duration", c)); this.C.src = parseInt(f("blendFuncSource", c)); this.C.ga = parseInt(f("blendFuncDestination", c)); d = this.Kg; d.r = 255 * parseFloat(f("startColorRed", c)); d.g = 255 * parseFloat(f("startColorGreen", c)); d.b = 255 * parseFloat(f("startColorBlue", c)); d.a = 255 * parseFloat(f("startColorAlpha", c)); d = this.Zt; d.r = 255 * parseFloat(f("startColorVarianceRed", c)); d.g = 255 * parseFloat(f("startColorVarianceGreen", c)); d.b = 255 * parseFloat(f("startColorVarianceBlue", c)); d.a = 255 * parseFloat(f("startColorVarianceAlpha", c)); d = this.Ef; d.r = 255 * parseFloat(f("finishColorRed", c)); d.g = 255 * parseFloat(f("finishColorGreen", c)); d.b = 255 * parseFloat(f("finishColorBlue", c)); d.a = 255 * parseFloat(f("finishColorAlpha", c)); d = this.nt; d.r = 255 * parseFloat(f("finishColorVarianceRed", c)); d.g = 255 * parseFloat(f("finishColorVarianceGreen", c)); d.b = 255 * parseFloat(f("finishColorVarianceBlue", c)); d.a = 255 * parseFloat(f("finishColorVarianceAlpha", c)); this.ZC = parseFloat(f("startParticleSize", c)); this.$C = parseFloat(f("startParticleSizeVariance", c)); this.Bx = parseFloat(f("finishParticleSize", c)); this.MB = parseFloat(f("finishParticleSizeVariance", c)); this.p(parseFloat(f("sourcePositionx", c)), parseFloat(f("sourcePositiony", c))); this.Ot.x = parseFloat(f("sourcePositionVariancex", c)); this.Ot.y = parseFloat(f("sourcePositionVariancey", c)); this.aD = parseFloat(f("rotationStart", c)); this.bD = parseFloat(f("rotationStartVariance", c)); this.NB = parseFloat(f("rotationEnd", c)); this.OB = parseFloat(f("rotationEndVariance", c)); this.Gb = parseInt(f("emitterType", c)); if (this.Gb == C.B.rc) d = this.Wd, d.gravity.x = parseFloat(f("gravityx", c)), d.gravity.y = parseFloat(f("gravityy", c)), d.speed = parseFloat(f("speed", c)), d.speedVar = parseFloat(f("speedVariance", c)), g = f("radialAcceleration", c), d.radialAccel = g ? parseFloat(g) : 0, g = f("radialAccelVariance", c), d.radialAccelVar = g ? parseFloat(g) : 0, g = f("tangentialAcceleration", c), d.tangentialAccel = g ? parseFloat(g) : 0, g = f("tangentialAccelVariance", c), d.tangentialAccelVar = g ? parseFloat(g) : 0, g = f("rotationIsDir", c).toLowerCase(), d.rotationIsDir = g != s && ("true" === g || "1" === g); else if (this.Gb == C.B.Cj) d = this.oh, d.startRadius = parseFloat(f("maxRadius", c)), d.startRadiusVar = parseFloat(f("maxRadiusVariance", c)), d.endRadius = parseFloat(f("minRadius", c)), d.endRadiusVar = 0, d.hR = parseFloat(f("rotatePerSecond", c)), d.iR = parseFloat(f("rotatePerSecondVariance", c)); else return C.log("cc.ParticleSystem.initWithDictionary(): Invalid emitterType in config file"), t; this.nj = parseFloat(f("particleLifespan", c)); this.qC = parseFloat(f("particleLifespanVariance", c)); this.Ax = this.wc / this.nj; if (!this.wa) if (this.Fb = t, d = f("textureFileName", c), d = C.path.BB(this.CN, d), g = C.kb.av(d)) this.Va(g); else if ((c = f("textureImageData", c)) && 0 == c.length) { g = C.kb.sd(d); if (!g) return t; this.Va(g) } else { f = C.eja(c, 1); if (!f) return C.log("cc.ParticleSystem: error decoding or ungzipping textureImageData"), t; c = C.JAa(f); if (c !== C.P5 && c !== C.dT) return C.log("cc.ParticleSystem: unknown image format with Data"), t; g = C.bd("canvas"); c === C.dT ? (new C.Gna(f)).DGa(g) : C.mJa.AFa(f, g); C.kb.wxa(d, g); (c = C.kb.av(d)) || C.log("cc.ParticleSystem.initWithDictionary() : error loading the texture"); this.Va(c) } d = q } return d }, Hb: function(c) { this.wc = c; var d, f = this.Mt; for (d = f.length = 0; d < c; d++) f[d] = new C.Hl; if (!f) return C.log("Particle system: not enough memory"), t; this.iL = c; if (this.wa) for (d = 0; d < this.wc; d++) f[d].atlasIndex = d; this.pA = q; this.C.src = C.Ic; this.C.ga = C.Hc; this.qh = C.B.GE; this.Gb = C.B.rc; this.cx = this.rH = t; this.cha(1); if (C.L === C.la) { if (!this.d9()) return t; this.U0(); this.Pw(); this.shaderProgram = C.ug.Xd(C.Co) } return q }, wRa: function() { this.hD() }, ywa: function() { if (this.tDa()) return t; var c, d = this.Mt; C.L === C.cb ? this.Og < d.length ? c = d[this.Og] : (c = new C.Hl, d.push(c)) : c = d[this.Og]; this.NCa(c); ++this.Og; return q }, NCa: function(c) { var d = C.$Fa; c.bv = this.nj + this.qC * d(); c.bv = Math.max(0, c.bv); c.hc.x = this.bB.x + this.Ot.x * d(); c.hc.y = this.bB.y + this.Ot.y * d(); var f, g; f = this.Kg; var h = this.Zt, k = this.Ef; g = this.nt; C.L === C.cb ? (f = C.color(C.Nf(f.r + h.r * d(), 0, 255), C.Nf(f.g + h.g * d(), 0, 255), C.Nf(f.b + h.b * d(), 0, 255), C.Nf(f.a + h.a * d(), 0, 255)), g = C.color(C.Nf(k.r + g.r * d(), 0, 255), C.Nf(k.g + g.g * d(), 0, 255), C.Nf(k.b + g.b * d(), 0, 255), C.Nf(k.a + g.a * d(), 0, 255))) : (f = { r: C.Nf(f.r + h.r * d(), 0, 255), g: C.Nf(f.g + h.g * d(), 0, 255), b: C.Nf(f.b + h.b * d(), 0, 255), a: C.Nf(f.a + h.a * d(), 0, 255) }, g = { r: C.Nf(k.r + g.r * d(), 0, 255), g: C.Nf(k.g + g.g * d(), 0, 255), b: C.Nf(k.b + g.b * d(), 0, 255), a: C.Nf(k.a + g.a * d(), 0, 255) }); c.color = f; h = c.DH; k = c.bv; h.r = (g.r - f.r) / k; h.g = (g.g - f.g) / k; h.b = (g.b - f.b) / k; h.a = (g.a - f.a) / k; f = this.ZC + this.$C * d(); f = Math.max(0, f); c.size = f; this.Bx === C.B.Kl ? c.L_ = 0 : (g = this.Bx + this.MB * d(), g = Math.max(0, g), c.L_ = (g - f) / k); f = this.aD + this.bD * d(); g = this.NB + this.OB * d(); c.rotation = f; c.kda = (g - f) / k; this.qh == C.B.GE ? c.startPos = this.vm(this.WX) : this.qh == C.B.vU && (c.startPos.x = this.ma.x, c.startPos.y = this.ma.y); f = C.ng(this.tm + this.wB * d()); if (this.Gb === C.B.rc) k = this.Wd, g = c.Wd, h = k.speed + k.speedVar * d(), g.dir.x = Math.cos(f), g.dir.y = Math.sin(f), C.JC(g.dir, h), g.radialAccel = k.radialAccel + k.radialAccelVar * d(), g.tangentialAccel = k.tangentialAccel + k.tangentialAccelVar * d(), k.rotationIsDir && (c.rotation = -C.LC(C.UEa(g.dir))); else { g = this.oh; c = c.oh; var h = g.startRadius + g.startRadiusVar * d(), n = g.endRadius + g.endRadiusVar * d(); c.TI = h; c.jda = g.endRadius === C.B.xoa ? 0 : (n - h) / k; c.tm = f; c.ida = C.ng(g.hR + g.iR * d()) } }, ZIa: function() { this.pA = t; this.Bc = this.duration; this.Xv = 0 }, Zga: function() { this.pA = q; this.Bc = 0; var c = this.Mt; for (this.Wj = 0; this.Wj < this.Og; ++this.Wj) c[this.Wj].bv = 0 }, tDa: function() { return this.Og >= this.wc }, IJa: function(c, d) { var f = s; this.wa ? (f = this.wa.textureAtlas.quads[this.atlasIndex + c.atlasIndex], this.wa.textureAtlas.dirty = q) : f = this.hf[this.Wj]; var g, h, k, n; this.Fb ? (g = 0 | c.color.r * c.color.a / 255, h = 0 | c.color.g * c.color.a / 255, k = 0 | c.color.b * c.color.a / 255) : (g = 0 | c.color.r, h = 0 | c.color.g, k = 0 | c.color.b); n = 0 | c.color.a; var p = f.T.F; p.r = g; p.g = h; p.b = k; p.a = n; p = f.Y.F; p.r = g; p.g = h; p.b = k; p.a = n; p = f.X.F; p.r = g; p.g = h; p.b = k; p.a = n; p = f.V.F; p.r = g; p.g = h; p.b = k; p.a = n; g = c.size / 2; if (c.rotation) { h = -g; k = -g; n = d.x; var p = d.y, r = -C.ng(c.rotation), v = Math.cos(r), r = Math.sin(r); f.T.m.x = h * v - k * r + n; f.T.m.y = h * r + k * v + p; f.Y.m.x = g * v - k * r + n; f.Y.m.y = g * r + k * v + p; f.X.m.x = h * v - g * r + n; f.X.m.y = h * r + g * v + p; f.V.m.x = g * v - g * r + n; f.V.m.y = g * r + g * v + p } else f.T.m.x = d.x - g, f.T.m.y = d.y - g, f.Y.m.x = d.x + g, f.Y.m.y = d.y - g, f.X.m.x = d.x - g, f.X.m.y = d.y + g, f.V.m.x = d.x + g, f.V.m.y = d.y + g }, MFa: function() { if (C.L === C.la) { var c = C.t; c.bindBuffer(c.ARRAY_BUFFER, this.Me[0]); c.bufferData(c.ARRAY_BUFFER, this.eg, c.DYNAMIC_DRAW) } }, update: function(c) { if (this.pA && this.Ax) { var d = 1 / this.Ax; this.Og < this.wc && (this.Xv += c); for (; this.Og < this.wc && this.Xv > d;) this.ywa(), this.Xv -= d; this.Bc += c; - 1 != this.duration && this.duration < this.Bc && this.ZIa() } this.Wj = 0; d = C.Hl.YK[0]; this.qh == C.B.GE ? C.gs(d, this.vm(this.WX)) : this.qh == C.B.vU && (d.x = this.ma.x, d.y = this.ma.y); if (this.Ja) { for (var f = C.Hl.YK[1], g = C.Hl.YK[2], h = C.Hl.YK[3], k = this.Mt; this.Wj < this.Og;) { C.TQ(f); C.TQ(g); C.TQ(h); var n = k[this.Wj]; n.bv -= c; if (0 < n.bv) { if (this.Gb == C.B.rc) { var p = h, r = f, v = g; n.hc.x || n.hc.y ? (C.gs(r, n.hc), C.SEa(r)) : C.TQ(r); C.gs(v, r); C.JC(r, n.Wd.radialAccel); var y = v.x; v.x = -v.y; v.y = y; C.JC(v, n.Wd.tangentialAccel); C.gs(p, r); C.RQ(p, v); C.RQ(p, this.Wd.gravity); C.JC(p, c); C.RQ(n.Wd.dir, p); C.gs(p, n.Wd.dir); C.JC(p, c); C.RQ(n.hc, p) } else p = n.oh, p.tm += p.ida * c, p.TI += p.jda * c, n.hc.x = -Math.cos(p.tm) * p.TI, n.hc.y = -Math.sin(p.tm) * p.TI; if (!this.N9 || C.L === C.cb) n.color.r += n.DH.r * c, n.color.g += n.DH.g * c, n.color.b += n.DH.b * c, n.color.a += n.DH.a * c, n.ffa = q; n.size += n.L_ * c; n.size = Math.max(0, n.size); n.rotation += n.kda * c; p = f; this.qh == C.B.GE || this.qh == C.B.vU ? (r = g, C.gs(r, d), C.pga(r, n.startPos), C.gs(p, n.hc), C.pga(p, r)) : C.gs(p, n.hc); this.wa && (p.x += this.ma.x, p.y += this.ma.y); C.L == C.la ? this.IJa(n, p) : C.gs(n.FH, p); ++this.Wj } else if (n = n.atlasIndex, this.Wj !== this.Og - 1 && (p = k[this.Wj], k[this.Wj] = k[this.Og - 1], k[this.Og - 1] = p), this.wa && (this.wa.Gya(this.atlasIndex + n), k[this.Og - 1].atlasIndex = n), --this.Og, 0 == this.Og && this.rH) { this.hD(); this.Vb.removeChild(this, q); return } } this.cx = t } this.wa || this.MFa() }, NJa: function() { this.update(0) }, jwa: function(c, d) { if (d) { var f = d[c]; return f != s ? f: "" } return "" }, hl: function() { if (this.wa) C.log("Can't change blending functions when the particle is being batched"); else { var c = this.da; if (c && c instanceof C.Ma) { this.Fb = t; var d = this.C; d.src == C.Ic && d.ga == C.Hc && (c.Hp() ? this.Fb = q: (d.src = C.SRC_ALPHA, d.ga = C.ONE_MINUS_SRC_ALPHA)) } } }, s: function() { var c = new C.B; if (c.Hb(this.wc)) { c.ok(this.tm); c.pk(this.wB); c.Wh(this.Rr()); var d = this.ek(); c.Yd(d.src, d.ga); c.tg(this.NP()); c.zj(this.uea()); c.sg(this.EP()); c.uj(this.Vda()); c.wk(this.ZC); c.xk(this.$C); c.sk(this.Bx); c.R2(this.MB); c.p(C.d(this.x, this.y)); c.vk(C.d(this.x0().x, this.x0().y)); c.uia(this.aD || 0); c.via(this.bD || 0); c.Bha(this.NB || 0); c.Cha(this.OB || 0); c.rk(this.Gb); this.Gb == C.B.rc ? (d = this.MH(), c.oc(C.d(d.x, d.y)), c.Xh(this.MP()), c.yj(this.tea()), c.wj(this.mea()), c.xj(this.nea()), c.no(this.xea()), c.oo(this.yea())) : this.Gb == C.B.Cj && (c.n3(this.vea()), c.o3(this.wea()), c.P2(this.Wda()), c.Q2(this.Xda()), c.g3(this.oea()), c.h3(this.pea())); c.tk(this.nj); c.uk(this.qC); c.qk(this.Ax); if (!this.XB() && (c.$d(this.qg()), d = this.ob())) { var f = d.i(); c.q3(d, C.rect(0, 0, f.width, f.height)) } } return c }, pHa: function(c) { var d = c.Yk; (0 != d.x || 0 != d.y) && C.log("cc.ParticleSystem.setDisplayFrame(): QuadParticle only supports SpriteFrames with no offsets"); C.L === C.la && (!this.da || c.ob().Sh != this.da.Sh) && this.Va(c.ob()) }, q3: function(c, d) { var f = this.da; if (C.L === C.la) { if ((!f || c.Sh != f.Sh) && f != c) this.da = c, this.hl() } else if ((!f || c != f) && f != c) this.da = c, this.hl(); this.rG = d; this.Tea(d) }, ka: function(c) { this.Aa && !this.wa && (C.L === C.cb ? this.Qq(c) : this.gn(c), C.kl++) }, Qq: function(c) { c = c || C.t; c.save(); c.globalCompositeOperation = this.lDa() ? "lighter": "source-over"; for (var d = 0; d < this.Og; d++) { var f = this.Mt[d], g = 0 | 0.5 * f.size; if (this.pP == C.B.P7) { if (g = this.da.jd, g.width && g.height) { c.save(); c.globalAlpha = f.color.a / 255; c.translate(0 | f.FH.x, -(0 | f.FH.y)); var h = 4 * Math.floor(f.size / 4), k = this.rG.width, n = this.rG.height; c.scale(Math.max(1 / k * h, 1E-6), Math.max(1 / n * h, 1E-6)); f.rotation && c.rotate(C.ng(f.rotation)); c.translate( - (0 | k / 2), -(0 | n / 2)); if (f.ffa && (h = C.kb.OP(g))) h.AJ || (h.AJ = C.bd("canvas"), h.AJ.width = g.width, h.AJ.height = g.height), C.TB(g, h, f.color, this.rG, h.AJ), g = h.AJ; c.drawImage(g, 0, 0); c.restore() } } else c.save(), c.globalAlpha = f.color.a / 255, c.translate(0 | f.FH.x, -(0 | f.FH.y)), this.WR == C.B.yoa ? (f.rotation && c.rotate(C.ng(f.rotation)), C.Df.Rya(c, g, f.color)) : C.Df.Lya(c, g, f.color), c.restore() } c.restore() }, gn: function(c) { this.da && (c = c || C.t, this.pd.Af(), this.pd.Bj(), C.yi(this.da), C.Gea(this.C.src, this.C.ga), C.rf(C.Dv), c.bindBuffer(c.ARRAY_BUFFER, this.Me[0]), c.vertexAttribPointer(C.Lc, 3, c.FLOAT, t, 24, 0), c.vertexAttribPointer(C.Hi, 4, c.UNSIGNED_BYTE, q, 24, 12), c.vertexAttribPointer(C.Vg, 2, c.FLOAT, t, 24, 16), c.bindBuffer(c.ELEMENT_ARRAY_BUFFER, this.Me[1]), c.drawElements(c.TRIANGLES, 6 * this.Wj, c.UNSIGNED_SHORT, 0)) }, V_a: function() { C.jU || this.Pw() }, zPa: u(), Pw: function() { if (C.L != C.cb) { var c = C.t; this.Me[0] = c.createBuffer(); c.bindBuffer(c.ARRAY_BUFFER, this.Me[0]); c.bufferData(c.ARRAY_BUFFER, this.eg, c.DYNAMIC_DRAW); this.Me[1] = c.createBuffer(); c.bindBuffer(c.ELEMENT_ARRAY_BUFFER, this.Me[1]); c.bufferData(c.ELEMENT_ARRAY_BUFFER, this.Qb, c.STATIC_DRAW) } }, d9: function() { if (C.L === C.cb) return q; if (this.wa) return C.log("cc.ParticleSystem._allocMemory(): Memory should not be allocated when not using batchNode"), t; var c = C.Uc.BYTES_PER_ELEMENT, d = this.wc, f = this.hf; f.length = 0; this.Qb = new Uint16Array(6 * d); for (var g = new ArrayBuffer(c * d), h = 0; h < d; h++) f[h] = new C.Uc(s, s, s, s, g, h * c); if (!f || !this.Qb) return C.log("cocos2d: Particle system: not enough memory"), t; this.eg = g; return q } }); H = C.B.prototype; C.e(H, "opacityModifyRGB", H.qg, H.$d); C.e(H, "batchNode", H.XB, H.os); C.e(H, "active", H.zi); C.e(H, "sourcePos", H.RBa, H.oIa); C.e(H, "posVar", H.x0, H.vk); C.e(H, "gravity", H.MH, H.oc); C.e(H, "speed", H.MP, H.Xh); C.e(H, "speedVar", H.tea, H.yj); C.e(H, "tangentialAccel", H.xea, H.no); C.e(H, "tangentialAccelVar", H.yea, H.oo); C.e(H, "radialAccel", H.mea, H.wj); C.e(H, "radialAccelVar", H.nea, H.xj); C.e(H, "rotationIsDir", H.FBa, H.iIa); C.e(H, "startRadius", H.vea, H.n3); C.e(H, "startRadiusVar", H.wea, H.o3); C.e(H, "endRadius", H.Wda, H.P2); C.e(H, "endRadiusVar", H.Xda, H.Q2); C.e(H, "rotatePerS", H.oea, H.g3); C.e(H, "rotatePerSVar", H.pea, H.h3); C.e(H, "startColor", H.NP, H.tg); C.e(H, "startColorVar", H.uea, H.zj); C.e(H, "endColor", H.EP, H.sg); C.e(H, "endColorVar", H.Vda, H.uj); C.e(H, "totalParticles", H.cCa, H.yia); C.e(H, "texture", H.ob, H.Va); C.B.create = function(c) { return new C.B(c) }; C.B.AT = function(c, d, f, g, h, k, n, p) { this.gravity = c ? c: C.d(0, 0); this.speed = d || 0; this.speedVar = f || 0; this.tangentialAccel = g || 0; this.tangentialAccelVar = h || 0; this.radialAccel = k || 0; this.radialAccelVar = n || 0; this.rotationIsDir = p || t }; C.B.BT = function(c, d, f, g, h, k) { this.startRadius = c || 0; this.startRadiusVar = d || 0; this.endRadius = f || 0; this.endRadiusVar = g || 0; this.hR = h || 0; this.iR = k || 0 }; C.B.uoa = 0; C.B.P7 = 1; C.B.yoa = 0; C.B.Uja = 1; C.B.$m = -1; C.B.Kl = -1; C.B.xoa = -1; C.B.rc = 0; C.B.Cj = 1; C.B.GE = 0; C.B.vU = 1; C.B.xNa = 2; C.o7 = C.B.extend({ j: function() { return this.Hb(C.L === C.la ? 300 : 150) }, Hb: function(c) { return C.B.prototype.Hb.call(this, c) ? (this.Wh(C.B.$m), this.rk(C.B.rc), this.oc(C.d(0, 0)), this.wj(0), this.xj(0), this.Xh(60), this.yj(20), this.ok(90), this.pk(10), this.p(C.Q.aa.width / 2, 60), this.vk(C.d(40, 20)), this.tk(3), this.uk(0.25), this.wk(54), this.xk(10), this.sk(C.B.Kl), this.qk(this.wc / this.nj), this.tg(C.color(194, 64, 31, 255)), this.zj(C.color(0, 0, 0, 0)), this.sg(C.color(0, 0, 0, 255)), this.uj(C.color(0, 0, 0, 0)), this.Nm(q), q) : t } }); C.o7.create = function() { var c = new C.o7; return c.j() ? c: s }; C.p7 = C.B.extend({ j: function() { return this.Hb(C.L === C.la ? 1500 : 150) }, Hb: function(c) { return C.B.prototype.Hb.call(this, c) ? (this.Wh(C.B.$m), this.rk(C.B.rc), this.oc(C.d(0, -90)), this.wj(0), this.xj(0), this.Xh(180), this.yj(50), c = C.Q.aa, this.p(c.width / 2, c.height / 2), this.ok(90), this.pk(20), this.tk(3.5), this.uk(1), this.qk(this.wc / this.nj), this.tg(C.color(128, 128, 128, 255)), this.zj(C.color(128, 128, 128, 255)), this.sg(C.color(26, 26, 26, 51)), this.uj(C.color(26, 26, 26, 51)), this.wk(8), this.xk(2), this.sk(C.B.Kl), this.Nm(t), q) : t } }); C.p7.create = function() { var c = new C.p7; return c.j() ? c: s }; C.x7 = C.B.extend({ j: function() { return this.Hb(C.L === C.la ? 350 : 150) }, Hb: function(c) { return C.B.prototype.Hb.call(this, c) ? (this.Nm(q), this.Wh(C.B.$m), this.rk(C.B.rc), this.oc(C.d(0, 0)), this.wj(0), this.xj(0), this.Xh(20), this.yj(5), this.ok(90), this.pk(360), c = C.Q.aa, this.p(c.width / 2, c.height / 2), this.vk(C.d(0, 0)), this.tk(1), this.uk(0.5), this.wk(30), this.xk(10), this.sk(C.B.Kl), this.qk(this.wc / this.nj), this.tg(C.color(194, 64, 31, 255)), this.zj(C.color(0, 0, 0, 0)), this.sg(C.color(0, 0, 0, 255)), this.uj(C.color(0, 0, 0, 0)), q) : t } }); C.x7.create = function() { var c = new C.x7; return c.j() ? c: s }; C.r7 = C.B.extend({ j: function() { return this.Hb(C.L === C.la ? 200 : 100) }, Hb: function(c) { return C.B.prototype.Hb.call(this, c) ? (this.Wh(C.B.$m), this.rk(C.B.rc), this.oc(C.d(0, 0)), this.Xh(60), this.yj(10), this.wj( - 80), this.xj(0), this.no(80), this.oo(0), this.ok(90), this.pk(360), c = C.Q.aa, this.p(c.width / 2, c.height / 2), this.vk(C.d(0, 0)), this.tk(4), this.uk(1), this.wk(37), this.xk(10), this.sk(C.B.Kl), this.qk(this.wc / this.nj), this.tg(C.color(31, 64, 194, 255)), this.zj(C.color(0, 0, 0, 0)), this.sg(C.color(0, 0, 0, 255)), this.uj(C.color(0, 0, 0, 0)), this.Nm(q), q) : t } }); C.r7.create = function() { var c = new C.r7; return c.j() ? c: s }; C.q7 = C.B.extend({ j: function() { return this.Hb(C.L === C.la ? 250 : 100) }, Hb: function(c) { return C.B.prototype.Hb.call(this, c) ? (this.Wh(C.B.$m), this.rk(C.B.rc), this.oc(C.d(0, 0)), this.Xh(80), this.yj(10), this.wj( - 60), this.xj(0), this.no(15), this.oo(0), this.ok(90), this.pk(360), c = C.Q.aa, this.p(c.width / 2, c.height / 2), this.vk(C.d(0, 0)), this.tk(4), this.uk(1), this.wk(30), this.xk(10), this.sk(C.B.Kl), this.qk(this.wc / this.nj), this.tg(C.color(128, 128, 128, 255)), this.zj(C.color(128, 128, 128, 128)), this.sg(C.color(0, 0, 0, 255)), this.uj(C.color(0, 0, 0, 0)), this.Nm(q), q) : t } }); C.q7.create = function() { var c = new C.q7; return c.j() ? c: s }; C.s7 = C.B.extend({ j: function() { return this.Hb(C.L === C.la ? 150 : 100) }, Hb: function(c) { return C.B.prototype.Hb.call(this, c) ? (this.Wh(C.B.$m), this.rk(C.B.rc), this.oc(C.d( - 200, 200)), this.Xh(15), this.yj(5), this.wj(0), this.xj(0), this.no(0), this.oo(0), this.ok(90), this.pk(360), c = C.Q.aa, this.p(c.width / 2, c.height / 2), this.vk(C.d(0, 0)), this.tk(2), this.uk(1), this.wk(60), this.xk(10), this.sk(C.B.Kl), this.qk(this.wc / this.nj), this.tg(C.color(51, 102, 179)), this.zj(C.color(0, 0, 51, 26)), this.sg(C.color(0, 0, 0, 255)), this.uj(C.color(0, 0, 0, 0)), this.Nm(q), q) : t } }); C.s7.create = function() { var c = new C.s7; return c.j() ? c: s }; C.w7 = C.B.extend({ j: function() { return this.Hb(C.L === C.la ? 500 : 100) }, Hb: function(c) { return C.B.prototype.Hb.call(this, c) ? (this.Wh(C.B.$m), this.rk(C.B.rc), this.oc(C.d(0, 0)), this.Xh(150), this.yj(0), this.wj( - 380), this.xj(0), this.no(45), this.oo(0), this.ok(90), this.pk(0), c = C.Q.aa, this.p(c.width / 2, c.height / 2), this.vk(C.d(0, 0)), this.tk(12), this.uk(0), this.wk(20), this.xk(0), this.sk(C.B.Kl), this.qk(this.wc / this.nj), this.tg(C.color(128, 128, 128, 255)), this.zj(C.color(128, 128, 128, 0)), this.sg(C.color(128, 128, 128, 255)), this.uj(C.color(128, 128, 128, 0)), this.Nm(t), q) : t } }); C.w7.create = function() { var c = new C.w7; return c.j() ? c: s }; C.n7 = C.B.extend({ j: function() { return this.Hb(C.L === C.la ? 700 : 300) }, Hb: function(c) { return C.B.prototype.Hb.call(this, c) ? (this.Wh(0.1), this.rk(C.B.rc), this.oc(C.d(0, 0)), this.Xh(70), this.yj(40), this.wj(0), this.xj(0), this.no(0), this.oo(0), this.ok(90), this.pk(360), c = C.Q.aa, this.p(c.width / 2, c.height / 2), this.vk(C.d(0, 0)), this.tk(5), this.uk(2), this.wk(15), this.xk(10), this.sk(C.B.Kl), this.qk(this.wc / this.Rr()), this.tg(C.color(179, 26, 51, 255)), this.zj(C.color(128, 128, 128, 0)), this.sg(C.color(128, 128, 128, 0)), this.uj(C.color(128, 128, 128, 0)), this.Nm(t), q) : t } }); C.n7.create = function() { var c = new C.n7; return c.j() ? c: s }; C.u7 = C.B.extend({ j: function() { return this.Hb(C.L === C.la ? 200 : 100) }, Hb: function(c) { return C.B.prototype.Hb.call(this, c) ? (this.Wh(C.B.$m), this.rk(C.B.rc), this.oc(C.d(0, 0)), this.wj(0), this.xj(0), this.Xh(25), this.yj(10), this.ok(90), this.pk(5), this.p(C.Q.aa.width / 2, 0), this.vk(C.d(20, 0)), this.tk(4), this.uk(1), this.wk(60), this.xk(10), this.sk(C.B.Kl), this.qk(this.wc / this.nj), this.tg(C.color(204, 204, 204, 255)), this.zj(C.color(5, 5, 5, 0)), this.sg(C.color(0, 0, 0, 255)), this.uj(C.color(0, 0, 0, 0)), this.Nm(t), q) : t } }); C.u7.create = function() { var c = new C.u7; return c.j() ? c: s }; C.v7 = C.B.extend({ j: function() { return this.Hb(C.L === C.la ? 700 : 250) }, Hb: function(c) { return C.B.prototype.Hb.call(this, c) ? (this.Wh(C.B.$m), this.rk(C.B.rc), this.oc(C.d(0, -1)), this.Xh(5), this.yj(1), this.wj(0), this.xj(1), this.no(0), this.oo(1), c = C.Q.aa, this.p(c.width / 2, c.height + 10), this.vk(C.d(c.width / 2, 0)), this.ok( - 90), this.pk(5), this.tk(45), this.uk(15), this.wk(10), this.xk(5), this.sk(C.B.Kl), this.qk(10), this.tg(C.color(255, 255, 255, 255)), this.zj(C.color(0, 0, 0, 0)), this.sg(C.color(255, 255, 255, 0)), this.uj(C.color(0, 0, 0, 0)), this.Nm(t), q) : t } }); C.v7.create = function() { var c = new C.v7; return c.j() ? c: s }; C.t7 = C.B.extend({ j: function() { return this.Hb(C.L === C.la ? 1E3: 300) }, Hb: function(c) { return C.B.prototype.Hb.call(this, c) ? (this.Wh(C.B.$m), this.rk(C.B.rc), this.oc(C.d(10, -10)), this.wj(0), this.xj(1), this.no(0), this.oo(1), this.Xh(130), this.yj(30), this.ok( - 90), this.pk(5), c = C.Q.aa, this.p(c.width / 2, c.height), this.vk(C.d(c.width / 2, 0)), this.tk(4.5), this.uk(0), this.wk(4), this.xk(2), this.sk(C.B.Kl), this.qk(20), this.tg(C.color(179, 204, 255, 255)), this.zj(C.color(0, 0, 0, 0)), this.sg(C.color(179, 204, 255, 128)), this.uj(C.color(0, 0, 0, 0)), this.Nm(t), q) : t } }); C.t7.create = function() { var c = new C.t7; return c.j() ? c: s }; C.OMa = 500; C.GT = C.A.extend({ textureAtlas: s, DNa: q, C: s, qa: "ParticleBatchNode", ctor: function(c, d) { C.A.prototype.ctor.call(this); this.C = { src: C.Ic, ga: C.Hc }; "string" == typeof c ? this.j(c, d) : c instanceof C.Ma && this.ta(c, d) }, ta: function(c, d) { this.textureAtlas = new C.uq; this.textureAtlas.ta(c, d); this.l.length = 0; C.L === C.la && (this.shaderProgram = C.ug.Xd(C.Co)); return q }, Ce: function(c, d) { var f = C.kb.sd(c); return this.ta(f, d) }, j: function(c, d) { var f = C.CNa.gk().sd(c); return this.ta(f, d) }, q: function(c, d, f) { c || e("cc.ParticleBatchNode.addChild() : child should be non-null"); c instanceof C.B || e("cc.ParticleBatchNode.addChild() : only supports cc.ParticleSystem as children"); d = d == s ? c.zIndex: d; f = f == s ? c.tag: f; c.ob() != this.textureAtlas.texture && e("cc.ParticleSystem.addChild() : the child is not using the same texture id"); var g = c.ek(); if (0 === this.l.length) this.Yd(g); else if (g.src != this.C.src || g.ga != this.C.ga) { C.log("cc.ParticleSystem.addChild() : Can't add a ParticleSystem that uses a different blending function"); return } d = this.Kqa(c, d, f); f = 0; 0 != d ? (d = this.l[d - 1], f = d.WB() + d.wc) : f = 0; this.d1(c, f); c.os(this) }, d1: function(c, d) { var f = c.wc, g = this.textureAtlas, h = g.totalQuads; c.C2(d); h + f > g.Yf && (this.Ysa(h + f), g.wda(g.Yf - f, f)); c.WB() + f != h && g.Sfa(d, d + f); g.Pea(f); this.rZ() }, removeChild: function(c, d) { if (c != s) if (c instanceof C.B || e("cc.ParticleBatchNode.removeChild(): only supports cc.ParticleSystem as children"), -1 == this.l.indexOf(c)) C.log("cc.ParticleBatchNode.removeChild(): doesn't contain the sprite. Can't remove it"); else { C.A.prototype.removeChild.call(this, c, d); var f = this.textureAtlas; f.yGa(c.WB(), c.wc); f.wda(f.totalQuads, c.wc); c.os(s); this.rZ() } }, OC: function(c, d) { c || e("cc.ParticleBatchNode.reorderChild(): child should be non-null"); c instanceof C.B || e("cc.ParticleBatchNode.reorderChild(): only supports cc.QuadParticleSystems as children"); if ( - 1 === this.l.indexOf(c)) C.log("cc.ParticleBatchNode.reorderChild(): Child doesn't belong to batch"); else if (d != c.zIndex) { if (1 < this.l.length) { var f = this.ksa(c, d); if (f.Zfa != f.Vfa) { this.l.splice(f.Zfa, 1); this.l.splice(f.Vfa, 0, c); f = c.WB(); this.rZ(); for (var g = 0, h = this.l, k = 0; k < h.length; k++) if (h[k] == c) { g = c.WB(); break } this.textureAtlas.Sfa(f, c.wc, g); c.NJa() } } c.Ow(d) } }, sGa: function(c, d) { this.removeChild(this.l[i], d) }, xf: function(c) { for (var d = this.l, f = 0; f < d.length; f++) d[f].os(s); C.A.prototype.xf.call(this, c); this.textureAtlas.NC() }, Gya: function(c) { c = this.textureAtlas.quads[c]; c.Y.m.x = c.Y.m.y = c.V.m.x = c.V.m.y = c.X.m.x = c.X.m.y = c.T.m.x = c.T.m.y = 0; this.textureAtlas.Vt(q) }, ka: function() { C.L !== C.cb && 0 != this.textureAtlas.totalQuads && (C.BC(this), C.Gea(this.C.src, this.C.ga), this.textureAtlas.KB()) }, ob: function() { return this.textureAtlas.texture }, Va: function(c) { this.textureAtlas.texture = c; var d = this.C; c && (!c.Hp() && d.src == C.Ic && d.ga == C.Hc) && (d.src = C.SRC_ALPHA, d.ga = C.ONE_MINUS_SRC_ALPHA) }, Yd: function(c, d) { d === m ? (this.C.src = c.src, this.C.ga = c.ga) : (this.C.src = c, this.C.src = d) }, ek: function() { return { src: this.C.src, ga: this.C.ga } }, J: function(c) { C.L !== C.cb && this.Ja && (C.Zr(), this.grid && this.grid.zi() && (this.grid.px(), this.CJ()), this.transform(c), this.ka(c), this.grid && this.grid.zi() && this.grid.mx(this), C.Yr()) }, rZ: function() { for (var c = 0, d = this.l, f = 0; f < d.length; f++) { var g = d[f]; g.C2(c); c += g.wc } }, Ysa: function(c) { C.log("cocos2d: cc.ParticleBatchNode: resizing TextureAtlas capacity from [" + this.textureAtlas.Yf + "] to [" + c + "]."); this.textureAtlas.eR(c) || C.log("cc.ParticleBatchNode._increaseAtlasCapacityTo() : WARNING: Not enough memory to resize the atlas") }, Mua: function(c) { for (var d = this.l, f = d.length, g = 0; g < f; g++) if (d[g].zIndex > c) return g; return f }, ksa: function(c, d) { for (var f = t, g = t, h = 0, k = 0, n = 0, p = this.l, r = p.length, v = 0; v < r; v++) { var y = p[v]; if (y.zIndex > d && !g && (h = v, g = q, f && g)) break; if (c == y && (k = v, f = q, g || (n = -1), f && g)) break } g || (h = r); return { Vfa: h + n, Zfa: k } }, Kqa: function(c, d, f) { c || e("cc.ParticleBatchNode._addChildHelper(): child should be non-null"); if (c.parent) return C.log("cc.ParticleBatchNode._addChildHelper(): child already added. It can't be added again"), s; this.l || (this.l = []); var g = this.Mua(d); this.l.splice(g, 0, c); c.tag = f; c.Ow(d); c.parent = this; this.$c && (c.Z(), c.qj()); return g }, hl: function() { this.textureAtlas.texture.Hp() || (this.C.src = C.SRC_ALPHA, this.C.ga = C.ONE_MINUS_SRC_ALPHA) }, VH: A("textureAtlas"), p3: x("textureAtlas") }); H = C.GT.prototype; C.e(H, "texture", H.ob, H.Va); C.GT.create = function(c, d) { return new C.GT(c, d) }; C.XLa = function(c, d, f) { this.Sn = c || C.rect(0, 0, 0, 0); this.end = d || C.rect(0, 0, 0, 0); this.duration = f || 0 }; C.WLa = C.O.extend({ ctor: function() { C.Kp.sca(this) }, aR: function() { C.Kp.aR(this) }, pH: function() { return C.Kp.Fca(this) }, nP: function() { return C.Kp.lda(this) }, o_: B(t), Dya: u(), p_: B(t), Eya: u(), lI: u(), mP: u(), o0: B(""), p1: u(), mfa: u(), nfa: u(), lfa: u() }); C.mT = C.O.extend({ ve: s, Xb: s, Nq: "", kw: s, ctor: function() { this.Xb = new C.mT.Dma; this.kw = C.d(0, 0) }, j: function() { if (!C.Sc.Xr) { this.ve = C.ic("#imeDispatcherInput"); this.ve || (this.ve = C.pD("input"), this.ve.setAttribute("type", "text"), this.ve.setAttribute("id", "imeDispatcherInput"), this.ve.$p(0, 0), this.ve.DJ(0, 0), this.ve.style.opacity = "0", this.ve.style.fontSize = "1px", this.ve.setAttribute("tabindex", 2), this.ve.style.position = "absolute", this.ve.style.top = 0, this.ve.style.left = 0, document.body.appendChild(this.ve)); var c = this; C.qb(this.ve, "input", function() { c.fY(c.ve.value) }, t); C.qb(this.ve, "keydown", function(d) { d.keyCode === C.Uy.aJa ? (d.stopPropagation(), d.preventDefault()) : d.keyCode == C.Uy.c0 && (c.EH("\n", 1), d.stopPropagation(), d.preventDefault()) }, t); /msie/i.test(navigator.userAgent) && C.qb(this.ve, "keyup", function(d) { d.keyCode == C.Uy.Gca && c.fY(c.ve.value) }, t); C.qb(window, "mousedown", function(d) { var f = d.pageY || 0; c.kw.x = d.pageX || 0; c.kw.y = f }, t) } }, fY: function(c) { var d, f; d = this.Nq.length < c.length ? this.Nq.length: c.length; for (f = 0; f < d && c[f] === this.Nq[f]; f++); var g = this.Nq.length - f, h = c.length - f; for (d = 0; d < g; d++) this.nda(); for (d = 0; d < h; d++) this.EH(c[f + d], 1); this.Nq = c }, EH: function(c, d) { this.Xb && c && !(0 >= d) && this.Xb.ki && this.Xb.ki.lI(c, d) }, nda: function() { this.Xb && this.Xb.ki && this.Xb.ki.mP() }, o0: function() { if (this.Xb && this.Xb.ki) { var c = this.Xb.ki.o0(); return c ? c: "" } return "" }, HRa: function(c) { if (this.Xb) for (var d = 0; d < this.Xb.Qk.length; d++) { var f = this.Xb.Qk[d]; f && f.p1(c) } }, FRa: function() { if (this.Xb) for (var c = 0; c < this.Xb.Qk.length; c++); }, GRa: function() { if (this.Xb) for (var c = 0; c < this.Xb.Qk.length; c++); }, ERa: function() { if (this.Xb) for (var c = 0; c < this.Xb.Qk.length; c++); }, sca: function(c) { c && this.Xb && ( - 1 < this.Xb.Qk.indexOf(c) || this.Xb.Qk.splice(0, 0, c)) }, Fca: function(c) { if (!this.Xb || !c || -1 == this.Xb.Qk.indexOf(c)) return t; if (this.Xb.ki) { if (!this.Xb.ki.p_() || !c.o_()) return t; this.Xb.ki = s; this.B$(c); return q } if (!c.o_()) return t; this.B$(c); return q }, B$: function(c) { C.Sc.Xr ? (this.Xb.ki = c, this.Nq = c.string || "", c = prompt("please enter your word:", this.Nq), c != s && this.fY(c), this.EH("\n", 1)) : (this.Xb.ki = c, this.Nq = c.string || "", this.ve.focus(), this.ve.value = this.Nq, this.Ira()); }, Ira: function() { / msie /i.test(navigator.userAgent) ? (this.ve.style.left = this.kw.x + "px", this.ve.style.top = this.kw.y + "px") : this.ve.DJ(this.kw.x, this.kw.y) }, lda: function(c) { if (!this.Xb || !c || this.Xb.ki != c || !c.p_()) return t; this.Xb.ki = s; C.Pb.focus(); return q }, aR: function(c) { this.Xb && c && -1 != this.Xb.Qk.indexOf(c) && (this.Xb.ki && c == this.Xb.ki && (this.Xb.ki = s), C.Id(this.Xb.Qk, c)) }, n1a: function(c) { 32 > c ? c == C.Uy.Gca ? this.nda() : c == C.Uy.c0 && this.EH("\n", 1) : 255 > c && this.EH(String.fromCharCode(c), 1) } }); C.mT.Dma = C.O.extend({ ki: s, Qk: s, ctor: function() { this.Qk = [] }, wSa: function(c) { for (var d = 0; d < this.Qk.length; d++) if (this.Qk[d] == c) return d; return s } }); C.Kp = new C.mT; document.body ? C.Kp.j() : C.qb(window, "load", function() { C.Kp.j() }, t); C.BNa = C.O.extend({ bga: B(t), dga: B(t), P1: B(t), cga: B(t), AEa: B(t) }); C.Hj = C.fa.extend({ delegate: s, gP: s, $Oa: s, Ni: "", Dw: "", IL: 0, qa: "TextFieldTTF", ctor: function(c, d, f, g, h) { this.gP = C.color(127, 127, 127); C.Kp.sca(this); C.fa.prototype.ctor.call(this); h !== m ? (this.WCa("", d, f, g, h), c && this.Di(c)) : g === m && f !== m && (this.sf("", d, f), c && this.Di(c)) }, ZB: A("delegate"), bq: x("delegate"), YB: A("IL"), ITa: A("gP"), F3a: x("gP"), WCa: function(c, d, f, g, h) { switch (arguments.length) { case 5: return c && this.Di(c), this.sf(this.Dw, g, h, d, f); case 3: return c && this.Di(c), this.sf(this.Dw, arguments[1], arguments[2]); default: e("Argument must be non-nil ") } }, sa: function(c) { this.Ni = (c = String(c)) || ""; this.Ni.length ? C.fa.prototype.sa.call(this, this.Ni) : C.fa.prototype.sa.call(this, this.Dw); this.IL = this.Ni.length }, Wb: A("Ni"), Di: function(c) { this.Dw = c || ""; this.Ni.length || C.fa.prototype.sa.call(this, this.Dw) }, cC: A("Dw"), ka: function(c) { c = c || C.t; if (this.Ni && 0 < this.Ni.length) C.fa.prototype.ka.call(this, c); else { var d = this.color; this.color = this.gP; C.L === C.cb && this.JO(); C.fa.prototype.ka.call(this, c); this.color = d } }, J: function(c) { this._super(c) }, pH: function() { return C.Kp.Fca(this) }, nP: function() { return C.Kp.lda(this) }, o_: function() { return this.delegate ? !this.delegate.bga(this) : q }, Dya: u(), p_: function() { return this.delegate ? !this.delegate.dga(this) : q }, Eya: u(), mP: function() { var c = this.Ni.length; if (0 != c && (!this.delegate || !this.delegate.cga(this, this.Ni[c - 1], 1))) 1 >= c ? (this.Ni = "", this.IL = 0, C.fa.prototype.sa.call(this, this.Dw)) : this.string = this.Ni.substring(0, c - 1) }, aR: function() { C.Kp.aR(this) }, lI: function(c) { var d = c; c = d.indexOf("\n"); - 1 < c && (d = d.substring(0, c)); if (0 < d.length) { if (this.delegate && this.delegate.P1(this, d, d.length)) return; d = this.Ni + d; this.IL = d.length; this.string = d } - 1 != c && (!this.delegate || !this.delegate.P1(this, "\n", 1)) && this.nP() }, o0: A("Ni"), p1: u(), mfa: u(), nfa: u(), lfa: u() }); H = C.Hj.prototype; C.e(H, "charCount", H.YB); C.e(H, "placeHolder", H.cC, H.Di); C.Hj.create = function(c, d, f, g, h) { return new C.Hj(c, d, f, g, h) }; C.FM = C.Cma; C.PF = "Arial"; C.T$ = t; C.af = C.ha.extend({ Wc: t, Xc: s, Xf: s, Sj: t, qa: "MenuItem", ctor: function(c, d) { var f = C.ha.prototype; f.ctor.call(this); this.Xf = this.Xc = s; this.Wc = this.Sj = t; f.S.call(this, 0.5, 0.5); this.Xc = d || s; if (this.Xf = c || s) this.Wc = q }, oQ: A("Sj"), $d: u(), qg: B(t), pJ: function(c, d) { this.Xc = d; this.Xf = c }, isEnabled: A("Wc"), Ib: x("Wc"), jI: function(c, d) { this.anchorY = this.anchorX = 0.5; this.Xc = d; this.Xf = c; this.Wc = q; this.Sj = t; return q }, rect: function() { var c = this.ma, d = this.o, f = this.Ab; return C.rect(c.x - d.width * f.x, c.y - d.height * f.y, d.width, d.height) }, selected: function() { this.Sj = q }, qo: function() { this.Sj = t }, pha: function(c, d) { this.Xc = d; this.Xf = c }, kH: function() { if (this.Wc) { var c = this.Xc, d = this.Xf; if (d) if (c && "string" == typeof d) c[d](this); else c && "function" == typeof d ? d.call(c, this) : d(this) } } }); H = C.af.prototype; C.e(H, "enabled", H.isEnabled, H.Ib); C.af.create = function(c, d) { return new C.af(c, d) }; C.vv = C.af.extend({ Pz: s, ee: s, aua: 0, kF: s, ctor: function(c, d, f) { C.af.prototype.ctor.call(this, d, f); this.ee = this.Pz = s; this.aua = 0; this.kF = s; c && (this.lG = 1, this.kF = C.color.WHITE, this.Pz = C.color(126, 126, 126), this.BR(c), this.cascadeOpacity = this.cascadeColor = q) }, sAa: A("Pz"), nHa: x("Pz"), QAa: A("ee"), BR: function(c) { c && (this.q(c), c.anchorX = 0, c.anchorY = 0, this.width = c.width, this.height = c.height); this.ee && this.removeChild(this.ee, q); this.ee = c }, Ib: function(c) { if (this.Wc != c) { var d = this.ee; c ? d.color = this.kF: (this.kF = d.color, d.color = this.Pz) } C.af.prototype.Ib.call(this, c) }, K: function(c) { this.ee.opacity = c }, rb: function() { return this.ee.opacity }, G: function(c) { this.ee.color = c }, Xa: function() { return this.ee.color }, $ea: function(c, d, f) { this.jI(d, f); this.lG = 1; this.kF = C.color.WHITE; this.Pz = C.color(126, 126, 126); this.BR(c); return this.cascadeOpacity = this.cascadeColor = q }, sa: function(c) { this.ee.string = c; this.width = this.ee.width; this.height = this.ee.height }, Wb: function() { return this.ee.string }, kH: function() { this.Wc && (this.yk(), this.scale = this.lG, C.af.prototype.kH.call(this)) }, selected: function() { if (this.Wc) { C.af.prototype.selected.call(this); var c = this.xP(C.$K); c ? this.yJ(c) : this.lG = this.scale; c = C.ae.create(0.1, 1.2 * this.lG); c.Qm(C.$K); this.Ya(c) } }, qo: function() { if (this.Wc) { C.af.prototype.qo.call(this); this.VIa(C.$K); var c = C.ae.create(0.1, this.lG); c.Qm(C.$K); this.Ya(c) } } }); H = C.vv.prototype; C.e(H, "string", H.Wb, H.sa); C.e(H, "disabledColor", H.sAa, H.nHa); C.e(H, "label", H.QAa, H.BR); C.vv.create = function(c, d, f) { return new C.vv(c, d, f) }; C.E6 = C.vv.extend({ ctor: function(c, d, f, g, h, k, n) { var p; c && 0 < c.length && (p = C.Gl.create(c, d, f, g, h)); C.vv.prototype.ctor.call(this, p, k, n) }, sf: function(c, d, f, g, h, k, n) { (!c || 0 == c.length) && e("cc.MenuItemAtlasFont.initWithString(): value should be non-null and its length should be greater than 0"); var p = new C.Gl; p.sf(c, d, f, g, h); this.$ea(p, k, n); return q } }); C.E6.create = function(c, d, f, g, h, k, n) { return new C.E6(c, d, f, g, h, k, n) }; C.uv = C.vv.extend({ Pc: s, Oc: s, ctor: function(c, d, f) { var g; c && 0 < c.length ? (this.Oc = C.PF, this.Pc = C.FM, g = C.fa.create(c, this.Oc, this.Pc)) : (this.Pc = 0, this.Oc = ""); C.vv.prototype.ctor.call(this, g, d, f) }, sf: function(c, d, f) { (!c || 0 == c.length) && e("Value should be non-null and its length should be greater than 0"); this.Oc = C.PF; this.Pc = C.FM; c = C.fa.create(c, this.Oc, this.Pc); this.$ea(c, d, f); return q }, Od: function(c) { this.Pc = c; this.$aa() }, Vn: A("Pc"), Zd: function(c) { this.Oc = c; this.$aa() }, Fp: A("Oc"), $aa: function() { var c = C.fa.create(this.ee.string, this.Oc, this.Pc); this.BR(c) } }); C.uv.Od = function(c) { C.FM = c }; C.uv.fontSize = function() { return C.FM }; C.uv.Zd = function(c) { C.T$ && (C.PF = ""); C.PF = c; C.T$ = q }; H = C.uv.prototype; C.e(H, "fontSize", H.Vn, H.Od); C.e(H, "fontName", H.Fp, H.Zd); C.uv.fontName = function() { return C.PF }; C.uv.create = function(c, d, f) { return new C.uv(c, d, f) }; C.Zy = C.af.extend({ Fg: s, Zi: s, Li: s, ctor: function(c, d, f, g, h) { C.af.prototype.ctor.call(this); this.Li = this.Zi = this.Fg = s; if (d !== m) { var k, n, p; h !== m ? (k = f, p = g, n = h) : g !== m && "function" === typeof g ? (k = f, p = g) : g !== m && "function" === typeof f ? (n = g, p = f, k = d) : f === m && (k = d); this.afa(c, d, k, p, n) } }, kBa: A("Fg"), V2: function(c) { this.Fg != c && (c && (this.q(c, 0, C.bna), c.anchorX = 0, c.anchorY = 0), this.Fg && this.removeChild(this.Fg, q), this.Fg = c, this.width = this.Fg.width, this.height = this.Fg.height, this.EO(), c.eD && !c.Aa && c.ye(function(c) { this.width = c.width; this.height = c.height }, this)) }, KBa: A("Zi"), k3: function(c) { this.Zi != c && (c && (this.q(c, 0, C.foa), c.anchorX = 0, c.anchorY = 0), this.Zi && this.removeChild(this.Zi, q), this.Zi = c, this.EO()) }, tAa: A("Li"), O2: function(c) { this.Li != c && (c && (this.q(c, 0, C.Gla), c.anchorX = 0, c.anchorY = 0), this.Li && this.removeChild(this.Li, q), this.Li = c, this.EO()) }, afa: function(c, d, f, g, h) { this.jI(g, h); this.V2(c); this.k3(d); this.O2(f); if (c = this.Fg) this.width = c.width, this.height = c.height, c.eD && !c.Aa && c.ye(function(c) { this.width = c.width; this.height = c.height; this.cascadeOpacity = this.cascadeColor = q }, this); return this.cascadeOpacity = this.cascadeColor = q }, G: function(c) { this.Fg.color = c; this.Zi && (this.Zi.color = c); this.Li && (this.Li.color = c) }, Xa: function() { return this.Fg.color }, K: function(c) { this.Fg.opacity = c; this.Zi && (this.Zi.opacity = c); this.Li && (this.Li.opacity = c) }, rb: function() { return this.Fg.opacity }, selected: function() { C.af.prototype.selected.call(this); this.Fg && (this.Li && (this.Li.visible = t), this.Zi ? (this.Fg.visible = t, this.Zi.visible = q) : this.Fg.visible = q) }, qo: function() { C.af.prototype.qo.call(this); this.Fg && (this.Fg.visible = q, this.Zi && (this.Zi.visible = t), this.Li && (this.Li.visible = t)) }, Ib: function(c) { this.Wc != c && (C.af.prototype.Ib.call(this, c), this.EO()) }, EO: function() { var c = this.Fg, d = this.Zi, f = this.Li; this.Wc ? (c && (c.visible = q), d && (d.visible = t), f && (f.visible = t)) : f ? (c && (c.visible = t), d && (d.visible = t), f && (f.visible = q)) : (c && (c.visible = q), d && (d.visible = t)) } }); H = C.Zy.prototype; C.e(H, "normalImage", H.kBa, H.V2); C.e(H, "selectedImage", H.KBa, H.k3); C.e(H, "disabledImage", H.tAa, H.O2); C.Zy.create = function(c, d, f, g, h) { return new C.Zy(c, d, f, g, h || m) }; C.wT = C.Zy.extend({ ctor: function(c, d, f, g, h) { var k = s, n = s, p = s, r = s, v = s; c === m ? C.Zy.prototype.ctor.call(this) : (k = C.u.create(c), d && (n = C.u.create(d)), g === m ? r = f: h === m ? (r = f, v = g) : h && (p = C.u.create(f), r = g, v = h), C.Zy.prototype.ctor.call(this, k, n, p, r, v)) }, PHa: function(c) { this.V2(C.u.create(c)) }, jIa: function(c) { this.k3(C.u.create(c)) }, oHa: function(c) { this.O2(C.u.create(c)) }, QXa: function(c, d, f, g, h) { var k = s, n = s, p = s; c && (k = C.u.create(c)); d && (n = C.u.create(d)); f && (p = C.u.create(f)); return this.afa(k, n, p, g, h) } }); C.wT.create = function(c, d, f, g, h) { return new C.wT(c, d, f, g, h) }; C.yT = C.af.extend({ vg: s, jm: 0, Eb: s, ya: s, ctor: function() { var c = arguments.length, d, f; "function" === typeof arguments[c - 2] ? (d = arguments[c - 2], f = arguments[c - 1], c -= 2) : "function" === typeof arguments[c - 1] && (d = arguments[c - 1], c -= 1); C.af.prototype.ctor.call(this, d, f); this.jm = 0; this.vg = []; this.Eb = 0; this.ya = C.color.WHITE; if (0 < c) { d = this.vg; for (f = d.length = 0; f < c; f++) arguments[f] && d.push(arguments[f]); this.jm = C.EU; this.lJ(0); this.Pu(q); this.Qu(q) } }, rb: A("Eb"), K: function(c) { this.Eb = c; if (this.vg && 0 < this.vg.length) for (var d = 0; d < this.vg.length; d++) this.vg[d].opacity = c; this.ya.a = c }, Xa: function() { var c = this.ya; return C.color(c.r, c.g, c.b, c.a) }, G: function(c) { var d = this.ya; d.r = c.r; d.g = c.g; d.b = c.b; if (this.vg && 0 < this.vg.length) for (d = 0; d < this.vg.length; d++) this.vg[d].G(c); c.a !== m && !c.jx && this.K(c.a) }, LBa: A("jm"), lJ: function(c) { if (c != this.jm) { this.jm = c; (c = this.lj(C.k5)) && c.Lm(t); c = this.vg[this.jm]; this.q(c, 0, C.k5); var d = c.width, f = c.height; this.width = d; this.height = f; c.p(d / 2, f / 2) } }, LWa: A("vg"), i5a: x("vg"), fQ: function(c) { var d = c.length; "function" === typeof c[c.length - 2] ? (this.jI(c[c.length - 2], c[c.length - 1]), d -= 2) : "function" === typeof c[c.length - 1] ? (this.jI(c[c.length - 1], s), d -= 1) : this.jI(s, s); for (var f = this.vg, g = f.length = 0; g < d; g++) c[g] && f.push(c[g]); this.jm = C.EU; this.lJ(0); return this.cascadeOpacity = this.cascadeColor = q }, iQa: function(c) { this.vg.push(c) }, kH: function() { this.Wc && this.lJ((this.jm + 1) % this.vg.length); C.af.prototype.kH.call(this) }, selected: function() { C.af.prototype.selected.call(this); this.vg[this.jm].selected() }, qo: function() { C.af.prototype.qo.call(this); this.vg[this.jm].qo() }, Ib: function(c) { if (this.Wc != c) { C.af.prototype.Ib.call(this, c); var d = this.vg; if (d && 0 < d.length) for (var f = 0; f < d.length; f++) d[f].enabled = c } }, e3a: function() { return this.vg[this.jm] }, Z: function() { C.A.prototype.Z.call(this); this.lJ(this.jm) } }); H = C.yT.prototype; C.e(H, "selectedIndex", H.LBa, H.lJ); C.yT.create = function() { 0 < arguments.length && arguments[arguments.length - 1] == s && C.log("parameters should not be ending with null in Javascript"); var c = new C.yT; c.fQ(Array.prototype.slice.apply(arguments)); return c }; C.oE = 0; C.nE = 1; C.uMa = -128; C.eK = 5; C.Yy = C.ai.extend({ enabled: t, ya: s, Eb: 0, Gf: s, zb: -1, ui: s, qa: "Menu", ctor: function(c) { C.ai.prototype.ctor.call(this); this.ya = C.color.WHITE; this.enabled = t; this.Eb = 255; this.Gf = s; this.zb = -1; this.ui = C.Oa.create({ event: C.Oa.Gs, yy: q, nc: this.Vta, yd: this.Zta, cd: this.Xta, Xe: this.Wta }); 0 < arguments.length && arguments[arguments.length - 1] == s && C.log("parameters should not be ending with null in Javascript"); var d = arguments.length, f; if (0 == d) f = []; else if (1 == d) f = c instanceof Array ? c: [c]; else if (1 < d) { f = []; for (var g = 0; g < d; g++) arguments[g] && f.push(arguments[g]) } this.Vea(f) }, Z: function() { var c = this.ui; c.Wi || C.Ka.addListener(c, this); C.A.prototype.Z.call(this) }, Xa: function() { var c = this.ya; return C.color(c.r, c.g, c.b, c.a) }, G: function(c) { var d = this.ya; d.r = c.r; d.g = c.g; d.b = c.b; if ((d = this.l) && 0 < d.length) for (var f = 0; f < d.length; f++) d[f].G(c); c.a !== m && !c.jx && this.K(c.a) }, rb: A("Eb"), K: function(c) { this.Eb = c; var d = this.l; if (d && 0 < d.length) for (var f = 0; f < d.length; f++) d[f].K(c); this.ya.a = c }, isEnabled: A("enabled"), Ib: x("enabled"), fQ: function(c) { var d = []; if (c) for (var f = 0; f < c.length; f++) c[f] && d.push(c[f]); return this.Vea(d) }, Vea: function(c) { if (C.ai.prototype.j.call(this)) { this.enabled = q; var d = C.KJ; this.p(d.width / 2, d.height / 2); this.Ca(d); this.S(0.5, 0.5); this.Hm(q); if (c) for (d = 0; d < c.length; d++) this.q(c[d], d); this.Gf = s; this.zb = C.oE; return this.cascadeOpacity = this.cascadeColor = q } return t }, q: function(c, d, f) { c instanceof C.af || e("cc.Menu.addChild() : Menu only supports MenuItem objects as children"); C.qe.prototype.q.call(this, c, d, f) }, Kwa: function() { this.RZ(C.eK) }, RZ: function(c) { var d = -c, f = this.l, g, h, k, n; if (f && 0 < f.length) { h = 0; for (g = f.length; h < g; h++) d += f[h].height * f[h].scaleY + c; var p = d / 2; h = 0; for (g = f.length; h < g; h++) n = f[h], k = n.height, d = n.scaleY, n.p(0, p - k * d / 2), p -= k * d + c } }, Hwa: function() { this.QZ(C.eK) }, QZ: function(c) { var d = -c, f = this.l, g, h, k, n; if (f && 0 < f.length) { g = 0; for (h = f.length; g < h; g++) d += f[g].width * f[g].scaleX + c; var p = -d / 2; g = 0; for (h = f.length; g < h; g++) n = f[g], d = n.scaleX, k = f[g].width, n.p(p + k * d / 2, 0), p += k * d + c } }, Iwa: function() { 0 < arguments.length && arguments[arguments.length - 1] == s && C.log("parameters should not be ending with null in Javascript"); for (var c = [], d = 0; d < arguments.length; d++) c.push(arguments[d]); var f = -5, g = 0, h = 0, k = 0, n, p, r, v = this.l; if (v && 0 < v.length) { d = 0; for (r = v.length; d < r; d++) if (! (g >= c.length) && (n = c[g])) p = v[d].height, h = h >= p || isNaN(p) ? h: p, ++k, k >= n && (f += h + 5, h = k = 0, ++g) } var y = C.Q.aa, z = n = h = g = 0, D = 0, f = f / 2; if (v && 0 < v.length) { d = 0; for (r = v.length; d < r; d++) { var E = v[d]; 0 == n && (n = c[g], D = z = y.width / (1 + n)); p = E.Dg(); h = h >= p || isNaN(p) ? h: p; E.p(D - y.width / 2, f - p / 2); D += z; ++k; k >= n && (f -= h + 5, h = n = k = 0, ++g) } } }, Jwa: function() { 0 < arguments.length && arguments[arguments.length - 1] == s && C.log("parameters should not be ending with null in Javascript"); var c = [], d; for (d = 0; d < arguments.length; d++) c.push(arguments[d]); var f = [], g = [], h = -10, k = -5, n = 0, p = 0, r = 0, v, y, z, D, E = this.l; if (E && 0 < E.length) { d = 0; for (z = E.length; d < z; d++) if (y = E[d], !(n >= c.length) && (v = c[n])) D = y.width, p = p >= D || isNaN(D) ? p: D, k += y.height + 5, ++r, r >= v && (f.push(p), g.push(k), h += p + 10, p = r = 0, k = -5, ++n) } k = C.Q.aa; v = p = n = 0; var h = -h / 2, F = 0; if (E && 0 < E.length) { d = 0; for (z = E.length; d < z; d++) y = E[d], 0 == v && (v = c[n], F = g[n]), D = y.ef(), p = p >= D || isNaN(D) ? p: D, y.p(h + f[n] / 2, F - k.height / 2), F -= y.height + 10, ++r, r >= v && (h += p + 5, p = v = r = 0, ++n) } }, removeChild: function(c, d) { c != s && (c instanceof C.af ? (this.Gf == c && (this.Gf = s), C.A.prototype.removeChild.call(this, c, d)) : C.log("cc.Menu.removeChild():Menu only supports MenuItem objects as children")) }, Vta: function(c, d) { var f = d.Cf; if (f.zb != C.oE || !f.Ja || !f.enabled) return t; for (var g = f.parent; g != s; g = g.parent) if (!g.Ja) return t; f.Gf = f.naa(c); return f.Gf ? (f.zb = C.nE, f.Gf.selected(), q) : t }, Xta: function(c, d) { var f = d.Cf; f.zb !== C.nE ? C.log("cc.Menu.onTouchEnded(): invalid state") : (f.Gf && (f.Gf.qo(), f.Gf.kH()), f.zb = C.oE) }, Wta: function(c, d) { var f = d.Cf; f.zb !== C.nE ? C.log("cc.Menu.onTouchCancelled(): invalid state") : (this.Gf && f.Gf.qo(), f.zb = C.oE) }, Zta: function(c, d) { var f = d.Cf; if (f.zb !== C.nE) C.log("cc.Menu.onTouchMoved(): invalid state"); else { var g = f.naa(c); g != f.Gf && (f.Gf && f.Gf.qo(), f.Gf = g, f.Gf && f.Gf.selected()) } }, Na: function() { this.zb == C.nE && (this.Gf && (this.Gf.qo(), this.Gf = s), this.zb = C.oE); C.A.prototype.Na.call(this) }, $d: u(), qg: B(t), naa: function(c) { c = c.mh(); var d = this.l, f; if (d && 0 < d.length) for (var g = 0; g < d.length; g++) if (f = d[g], f.Ja && f.isEnabled()) { var h = f.wi(c), k = f.rect(); k.x = 0; k.y = 0; if (C.Ju(k, h)) return f } return s } }); H = C.Yy.prototype; C.Yy.create = function(c) { var d = arguments.length; 0 < d && arguments[d - 1] == s && C.log("parameters should not be ending with null in Javascript"); return 0 == d ? new C.Yy: 1 == d ? new C.Yy(c) : new C.Yy(Array.prototype.slice.call(arguments, 0)) }; C.pNa = 0; C.lNa = 1; C.oNa = 2; C.mNa = 3; C.nNa = 4; C.kNa = 5; C.q6a = function(c, d, f) { var g = 2; if (g + 1 > d) return t; c = new C.jka(c); c.DR(g); f.type = c.$(); g += 10; if (g + 4 + 1 > d) return t; c.DR(g); f.width = c.dGa(); f.height = c.cGa(); f.pixelDepth = c.$(); if (g + 5 + 1 > d) return t; d = c.$(); f.Cda = 0; d & 32 && (f.Cda = 1); return q }; C.r6a = function(c, d, f) { var g, h; g = 0 | f.pixelDepth / 2; h = f.height * f.width * g; if (18 + h > d) return t; f.hk = C.dL(c, 18, 18 + h); if (3 <= g) for (c = 0; c < h; c += g) d = f.hk[c], f.hk[c] = f.hk[c + 2], f.hk[c + 2] = d; return q }; C.t6a = function(c) { var d, f; if (8 !== c.pixelDepth) { var g = c.pixelDepth / 8, h = new Uint8Array(c.height * c.width); if (h !== s) { for (f = d = 0; f < c.width * c.height; d += g, f++) h[f] = 0.3 * c.hk[d] + 0.59 * c.hk[d + 1] + 0.11 * c.hk[d + 2]; c.pixelDepth = 8; c.type = 3; c.hk = h } } }; C.o6a = function(c) { c && (c.hk = s) }; C.s6a = function(c, d, f) { var g, h, k, n = 0, p = 0, r = 0, v = [], y = 0, z = 18; g = f.pixelDepth / 8; h = f.height * f.width; for (k = 0; k < h; k++) { if (0 != y) y--, p = 0 != r; else { if (z + 1 > d) break; y = c[z]; z += 1; (r = y & 128) && (y -= 128); p = 0 } if (!p) { if (z + g > d) break; v = C.dL(c, z, z + g); z += g; 3 <= g && (p = v[0], v[0] = v[2], v[2] = p) } for (p = 0; p < g; p++) f.hk[n + p] = v[p]; n += g } return q }; C.p6a = function(c) { for (var d = c.width * (c.pixelDepth / 8), f = 0; f < c.height / 2; f++) { var g = C.dL(c.hk, f * d, f * d + d); C.S8(C.dL(c.hk, (c.height - (f + 1)) * d, d), c.hk, f * d); C.S8(g, c.hk, (c.height - (f + 1)) * d) } c.Cda = 0 }; C.dL = function(c, d, f) { return c instanceof Array ? c.slice(d, f) : c.subarray(d, f) }; C.S8 = function(c, d, f) { for (var g = 0; g < c.length; g++) d[f + g] = c[g] }; C.jka = C.O.extend({ rz: s, fb: 0, ctor: x("rz"), w3a: function(c) { this.rz = c; this.fb = 0 }, dTa: A("rz"), KV: function(c) { this.fb + Math.ceil(c / 8) < this.Ih.length || e(Error("Index out of bound")) }, XV: function(c, d) { var f = c + d + 1, g = f >> 3; this.KV(f); var f = Math.pow(2, d - 1) - 1, h = this.jY(c + d, 1, g), k = this.jY(c, d, g), n = 0, p = 2, r = 0; do for (var v = this.IN(++r, g), y = c % 8 || 8, z = 1 << y; z >>= 1;) v & z && (n += 1 / p), p *= 2; while (c -= y); this.fb += g; return k == (f << 1) + 1 ? n ? NaN: h ? -Infinity: Infinity: (1 + -2 * h) * (k || n ? !k ? Math.pow(2, -f + 1) * n: Math.pow(2, k - f) * (1 + n) : 0) }, IN: function(c, d) { return this.Ih[this.fb + d - c - 1] }, VL: function(c, d) { var f = this.jY(0, c, c / 8), g = Math.pow(2, c); this.fb += c / 8; return d && f >= g / 2 ? f - g: f }, NY: function(c, d) { for (++d; --d; c = 1073741824 == ((c %= 2147483648) & 1073741824) ? 2 * c: 2 * (c - 1073741824) + 2147483648); return c }, jY: function(c, d, f) { var g = (c + d) % 8, h = c % 8, k = f - (c >> 3) - 1; c = f + ( - (c + d) >> 3); var n = k - c; d = this.IN(k, f) >> h & (1 << (n ? 8 - h: d)) - 1; for (n && g && (d += (this.IN(c++, f) & (1 << g) - 1) << (n--<<3) - h); n;) d += this.NY(this.IN(c++, f), (n--<<3) - h); return d }, B1a: function() { return this.VL(32, q) }, cGa: function() { return this.VL(32, t) }, D1a: function() { return this.XV(23, 8) }, C1a: function() { return this.VL(16, q) }, dGa: function() { return this.VL(16, t) }, $: function() { var c = this.Ih[this.fb]; this.fb += 1; return c }, y1a: function(c, d) { return this.rz instanceof Array ? this.rz.slice(c, d) : this.rz.subarray(c, d) }, DR: x("fb"), hea: A("fb") }); C.RK = 0; C.PK = 1; C.QK = 2; C.OK = C.ha.extend({ zd: s, B1: s, CC: s, dg: s, rd: s, Br: s, qa: "TMXTiledMap", ctor: function(c, d) { C.A.prototype.ctor.call(this); this.dg = C.size(0, 0); this.rd = C.size(0, 0); d !== m ? this.b1(c, d) : c !== m && this.$0(c) }, s0: function() { return C.size(this.dg.width, this.dg.height) }, Mha: function(c) { this.dg.width = c.width; this.dg.height = c.height }, RW: function() { return this.dg.width }, EY: function(c) { this.dg.width = c }, QW: function() { return this.dg.height }, DY: function(c) { this.dg.height = c }, eC: function() { return C.size(this.rd.width, this.rd.height) }, xia: function(c) { this.rd.width = c.width; this.rd.height = c.height }, OF: function() { return this.rd.width }, EG: function(c) { this.rd.width = c }, NF: function() { return this.rd.height }, DG: function(c) { this.rd.height = c }, kVa: A("B1"), y4a: x("B1"), gea: A("CC"), Qha: x("CC"), KP: A("zd"), HR: x("zd"), $0: function(c) { (!c || 0 == c.length) && e("cc.TMXTiledMap.initWithTMXFile(): tmxFile should be non-null or non-empty string."); this.height = this.width = 0; c = C.CE.create(c); if (!c) return t; var d = c.Xw; (!d || 0 === d.length) && C.log("cc.TMXTiledMap.initWithTMXFile(): Map not found. Please check the filename."); this.o9(c); return q }, b1: function(c, d) { this.height = this.width = 0; var f = C.CE.create(c, d), g = f.Xw; (!g || 0 === g.length) && C.log("cc.TMXTiledMap.initWithXML(): Map not found. Please check the filename."); this.o9(f); return q }, o9: function(c) { this.dg = c.s0(); this.rd = c.eC(); this.B1 = c.orientation; this.CC = c.gea(); this.zd = c.zd; this.Br = c.Br; var d = 0, f = c.oi; if (f) for (var g = s, h = 0, k = f.length; h < k; h++) if ((g = f[h]) && g.visible) g = this.gua(g, c), this.q(g, d, d), this.width = Math.max(this.width, g.width), this.height = Math.max(this.height, g.height), d++ }, mQa: function() { for (var c = [], d = this.l, f = 0, g = d.length; f < g; f++) { var h = d[f]; h && h instanceof C.BE && c.push(h) } return c }, $Ua: function(c) { (!c || 0 === c.length) && e("cc.TMXTiledMap.getLayer(): layerName should be non-null or non-empty string."); for (var d = this.l, f = 0; f < d.length; f++) { var g = d[f]; if (g && g.DQ == c) return g } return s }, yVa: function(c) { (!c || 0 === c.length) && e("cc.TMXTiledMap.getObjectGroup(): groupName should be non-null or non-empty string."); if (this.CC) for (var d = 0; d < this.CC.length; d++) { var f = this.CC[d]; if (f && f.eI == c) return f } return s }, z0: function(c) { return this.zd[c.toString()] }, p1a: function(c) { return this.Br[c] }, gua: function(c, d) { var f = this.Tva(c, d), f = C.BE.create(f, c, d); c.iga = t; f.DIa(); return f }, Tva: function(c, d) { var f = c.nb, g = d.Xw; if (g) for (var h = g.length - 1; 0 <= h; h--) { var k = g[h]; if (k) for (var n = 0; n < f.height; n++) for (var p = 0; p < f.width; p++) { var r = c.$i[p + f.width * n]; if (0 != r && (r & C.kU) >>> 0 >= k.Ex) return k } } C.log("cocos2d: Warning: TMX Layer " + c.name + " has no tiles"); return s } }); H = C.OK.prototype; C.e(H, "mapWidth", H.RW, H.EY); C.e(H, "mapHeight", H.QW, H.DY); C.e(H, "tileWidth", H.OF, H.EG); C.e(H, "tileHeight", H.NF, H.DG); C.OK.create = function(c, d) { return new C.OK(c, d) }; C.upa = 0; C.rNa = 1; C.qNa = 2; C.tNa = 3; C.sNa = 4; C.uNa = 5; C.DE = 2147483648; C.EE = 1073741824; C.S7 = 536870912; C.T7 = (C.DE | C.EE | C.S7) >>> 0; C.kU = ~C.T7 >>> 0; C.Cv = C.O.extend({ zd: s, name: "", nb: s, $i: s, visible: s, Eb: s, iga: q, pw: 1E5, ow: 0, offset: s, ctor: function() { this.zd = []; this.name = ""; this.nb = s; this.$i = []; this.visible = q; this.Eb = 0; this.iga = q; this.pw = 1E5; this.ow = 0; this.offset = C.d(0, 0) }, KP: A("zd"), HR: x("zd") }); C.tpa = C.O.extend({ name: "", Ex: 0, rd: s, xJ: 0, margin: 0, Jia: "", ZP: s, ctor: function() { this.rd = C.size(0, 0); this.ZP = C.size(0, 0) }, WI: function(c) { var d = C.rect(0, 0, 0, 0); d.width = this.rd.width; d.height = this.rd.height; c &= C.kU; c -= parseInt(this.Ex, 10); var f = parseInt((this.ZP.width - 2 * this.margin + this.xJ) / (this.rd.width + this.xJ), 10); d.x = parseInt(c % f * (this.rd.width + this.xJ) + this.margin, 10); d.y = parseInt(parseInt(c / f, 10) * (this.rd.height + this.xJ) + this.margin, 10); return d } }); C.CE = C.GK.extend({ zd: s, orientation: s, parentElement: s, VQ: s, CQ: 0, H3: t, gD: s, I_: s, rN: s, dg: s, rd: s, oi: s, Xw: s, Br: s, PN: "", D9: 0, ctor: function(c, d) { C.GK.prototype.ctor.apply(this); this.dg = C.size(0, 0); this.rd = C.size(0, 0); this.oi = []; this.Xw = []; this.rN = []; this.zd = []; this.Br = {}; this.D9 = 0; d !== m ? this.b1(c, d) : c !== m && this.$0(c) }, FVa: A("orientation"), G4a: x("orientation"), s0: function() { return C.size(this.dg.width, this.dg.height) }, Mha: function(c) { this.dg.width = c.width; this.dg.height = c.height }, RW: function() { return this.dg.width }, EY: function(c) { this.dg.width = c }, QW: function() { return this.dg.height }, DY: function(c) { this.dg.height = c }, eC: function() { return C.size(this.rd.width, this.rd.height) }, xia: function(c) { this.rd.width = c.width; this.rd.height = c.height }, OF: function() { return this.rd.width }, EG: function(c) { this.rd.width = c }, NF: function() { return this.rd.height }, DG: function(c) { this.rd.height = c }, eVa: A("oi"), DHa: function(c) { this.oi.push(c) }, ZWa: A("Xw"), rIa: function(c) { this.Xw.push(c) }, gea: A("rN"), Qha: function(c) { this.rN.push(c) }, RVa: A("parentElement"), L4a: x("parentElement"), SVa: A("VQ"), M4a: x("VQ"), aVa: A("CQ"), q4a: x("CQ"), KWa: A("H3"), h5a: x("H3"), KP: A("zd"), HR: x("zd"), $0: function(c) { this.caa(c, s); return this.V1(c) }, b1: function(c, d) { this.caa(s, d); return this.BFa(c) }, V1: function(c, d) { var f = (d = d || t) ? c: C.M.xd(c); f || e("Please load the resource first : " + c); var g, h, f = this.MX(f).documentElement; g = f.getAttribute("version"); h = f.getAttribute("orientation"); if ("map" == f.nodeName && ("1.0" != g && g !== s && C.log("cocos2d: TMXFormat: Unsupported TMX version:" + g), "orthogonal" == h ? this.orientation = C.RK: "isometric" == h ? this.orientation = C.QK: "hexagonal" == h ? this.orientation = C.PK: h !== s && C.log("cocos2d: TMXFomat: Unsupported orientation:" + h), g = C.size(0, 0), g.width = parseFloat(f.getAttribute("width")), g.height = parseFloat(f.getAttribute("height")), this.Mha(g), g = C.size(0, 0), g.width = parseFloat(f.getAttribute("tilewidth")), g.height = parseFloat(f.getAttribute("tileheight")), this.xia(g), h = f.querySelectorAll("map \x3e properties \x3e property"))) { var k = {}; for (g = 0; g < h.length; g++) k[h[g].getAttribute("name")] = h[g].getAttribute("value"); this.zd = k } k = f.getElementsByTagName("tileset"); "map" !== f.nodeName && (k = [], k.push(f)); for (g = 0; g < k.length; g++) { h = k[g]; var n = h.getAttribute("source"); if (n) h = d ? C.path.join(this.PN, n) : C.path.BB(c, n), this.V1(h); else { n = new C.tpa; n.name = h.getAttribute("name") || ""; n.Ex = parseInt(h.getAttribute("firstgid")) || 0; n.xJ = parseInt(h.getAttribute("spacing")) || 0; n.margin = parseInt(h.getAttribute("margin")) || 0; var p = C.size(0, 0); p.width = parseFloat(h.getAttribute("tilewidth")); p.height = parseFloat(h.getAttribute("tileheight")); n.rd = p; var p = h.getElementsByTagName("image")[0].getAttribute("source"), r = -1; this.gD && (r = this.gD.lastIndexOf("/")); n.Jia = -1 !== r ? this.gD.substr(0, r + 1) + p: this.PN + (this.PN ? "/": "") + p; this.rIa(n); if (p = h.getElementsByTagName("tile")) for (r = 0; r < p.length; r++) { h = p[r]; this.VQ = parseInt(n.Ex) + parseInt(h.getAttribute("id") || 0); var v = h.querySelectorAll("properties \x3e property"); if (v) { var y = {}; for (h = 0; h < v.length; h++) { var z = v[h].getAttribute("name"); y[z] = v[h].getAttribute("value") } this.Br[this.VQ] = y } } } } if (k = f.getElementsByTagName("layer")) for (g = 0; g < k.length; g++) { p = k[g]; r = p.getElementsByTagName("data")[0]; n = new C.Cv; n.name = p.getAttribute("name"); h = C.size(0, 0); h.width = parseFloat(p.getAttribute("width")); h.height = parseFloat(p.getAttribute("height")); n.nb = h; h = p.getAttribute("visible"); n.visible = "0" != h; h = p.getAttribute("opacity") || 1; n.Eb = h ? parseInt(255 * parseFloat(h)) : 255; n.offset = C.d(parseFloat(p.getAttribute("x")) || 0, parseFloat(p.getAttribute("y")) || 0); v = ""; for (h = 0; h < r.childNodes.length; h++) v += r.childNodes[h].nodeValue; v = v.trim(); h = r.getAttribute("compression"); y = r.getAttribute("encoding"); if (h && "gzip" !== h && "zlib" !== h) return C.log("cc.TMXMapInfo.parseXMLFile(): unsupported compression method"), s; switch (h) { case "gzip": n.$i = C.eja(v, 4); break; case "zlib": h = new Zlib.Inflate(C.$a.hv.fda(v, 1)); n.$i = C.sJa(h.decompress()); break; case s: case "": if ("base64" == y) n.$i = C.$a.hv.fda(v, 4); else if ("csv" === y) { n.$i = []; h = v.split(","); for (r = 0; r < h.length; r++) n.$i.push(parseInt(h[r])) } else { h = r.getElementsByTagName("tile"); n.$i = []; for (r = 0; r < h.length; r++) n.$i.push(parseInt(h[r].getAttribute("gid"))) } break; default: this.CQ == C.Cv.i4 && C.log("cc.TMXMapInfo.parseXMLFile(): Only base64 and/or gzip/zlib maps are supported") } if (p = p.querySelectorAll("properties \x3e property")) { r = {}; for (h = 0; h < p.length; h++) r[p[h].getAttribute("name")] = p[h].getAttribute("value"); n.zd = r } this.DHa(n) } if (k = f.getElementsByTagName("objectgroup")) for (g = 0; g < k.length; g++) { p = k[g]; n = new C.spa; n.eI = p.getAttribute("name"); n.XHa(C.d(parseFloat(p.getAttribute("x")) * this.eC().width || 0, parseFloat(p.getAttribute("y")) * this.eC().height || 0)); if (r = p.querySelectorAll("objectgroup \x3e properties \x3e property")) for (h = 0; h < r.length; h++) v = {}, v[r[h].getAttribute("name")] = r[h].getAttribute("value"), n.zd = v; if (p = p.querySelectorAll("object")) for (h = 0; h < p.length; h++) { v = p[h]; r = {}; r.name = v.getAttribute("name") || ""; r.type = v.getAttribute("type") || ""; r.x = parseInt(v.getAttribute("x") || 0) + n.NA.x; y = parseInt(v.getAttribute("y") || 0) + n.NA.y; r.width = parseInt(v.getAttribute("width")) || 0; r.height = parseInt(v.getAttribute("height")) || 0; r.y = parseInt(this.s0().height * this.eC().height) - y - r.height; if (y = v.querySelectorAll("properties \x3e property")) for (z = 0; z < y.length; z++) r[y[z].getAttribute("name")] = y[z].getAttribute("value"); if ((y = v.querySelectorAll("polygon")) && 0 < y.length)(y = y[0].getAttribute("points")) && (r.polygonPoints = this.Laa(y)); if ((v = v.querySelectorAll("polyline")) && 0 < v.length)(v = v[0].getAttribute("points")) && (r.polylinePoints = this.Laa(v)); n.QHa(r) } this.Qha(n) } return f }, Laa: function(c) { if (!c) return s; var d = []; c = c.split(" "); for (var f = 0; f < c.length; f++) { var g = c[f].split(","); d.push({ x: g[0], y: g[1] }) } return d }, BFa: function(c) { return this.V1(c, q) }, WWa: A("Br"), q5a: function(c) { this.Br.push(c) }, TTa: A("I_"), M3a: x("I_"), OWa: A("gD"), k5a: x("gD"), caa: function(c, d) { this.Xw.length = 0; this.oi.length = 0; this.gD = c; d && (this.PN = d); this.rN.length = 0; this.zd.length = 0; this.Br.length = 0; this.I_ = ""; this.H3 = t; this.CQ = C.Cv.i4; this.parentElement = C.upa; this.D9 = 0 } }); H = C.CE.prototype; C.e(H, "mapWidth", H.RW, H.EY); C.e(H, "mapHeight", H.QW, H.DY); C.e(H, "tileWidth", H.OF, H.EG); C.e(H, "tileHeight", H.NF, H.DG); C.CE.create = function(c, d) { return new C.CE(c, d) }; C.M.Zp(["tmx", "tsx"], C.Xba); C.Cv.i4 = 1; C.Cv.iKa = 2; C.Cv.jKa = 4; C.Cv.kKa = 8; C.spa = C.O.extend({ zd: s, eI: "", NA: s, EA: s, ctor: function() { this.eI = ""; this.NA = C.d(0, 0); this.zd = []; this.EA = [] }, $Va: A("NA"), XHa: function(c) { this.NA.x = c.x; this.NA.y = c.y }, KP: A("zd"), HR: function(c) { this.zd.push(c) }, NUa: function() { return this.eI.toString() }, k4a: x("eI"), q1a: function(c) { return this.zd[c] }, z0a: function(c) { if (this.EA && 0 < this.EA.length) for (var d = this.EA, f = 0, g = d.length; f < g; f++) { var h = d[f].name; if (h && h == c) return d[f] } return s }, AVa: A("EA"), QHa: function(c) { this.EA.push(c) } }); C.BE = C.Bh.extend({ xh: s, xl: s, pC: s, zd: s, DQ: "", nb: s, Pe: s, Eb: 255, pw: s, ow: s, BZ: s, vZ: s, YNa: s, Cn: s, Dh: s, Ul: s, gi: s, Ki: s, CV: s, hO: s, iO: s, bu: 0, eZ: 0, yaa: 1E7, qa: "TMXLayer", ctor: function(c, d, f) { C.Bh.prototype.ctor.call(this); this.Zg = []; this.nb = C.size(0, 0); this.Pe = C.size(0, 0); if (C.L === C.cb) { var g = C.Pb, h = C.bd("canvas"); h.width = g.width; h.height = g.height; this.gi = h; this.Ki = this.gi.getContext("2d"); var k = new C.Ma; k.Ng(h); k.Md(); this.CV = k; this.width = g.width; this.height = g.height; this.Fq = this } f !== m && this.$Ca(c, d, f) }, Ca: function(c, d) { var f = this.o; C.A.prototype.Ca.call(this, c, d); if (C.L === C.cb) { var g = this.gi, h = C.Ec(); g.width = 0 | 1.5 * f.width * h; g.height = 0 | 1.5 * f.height * h; this.Ki.translate(0, g.height); f = this.CV.o; f.width = g.width; f.height = g.height; f = g.width * g.height; if (f > this.yaa) { this.hO || (this.hO = []); this.iO || (this.iO = []); this.bu = Math.ceil(f / this.yaa); f = this.hO; for (h = 0; h < this.bu; h++) { f[h] || (f[h] = document.createElement("canvas"), this.iO[h] = f[h].getContext("2d")); var k = f[h]; k.width = this.eZ = Math.round(g.width / this.bu); k.height = g.height } for (h = this.bu; h < f.length; h++) k.width = 0, k.height = 0 } else this.bu = 0 } }, ob: s, MF: A("CV"), J: s, Hr: function(c) { var d = c || C.t; if (this.Ja) { d.save(); this.transform(c); var f, g = this.l; if (this.Lk) { var h = C.view; h.vba(); var k = this.Ki, n = this.gi; k.clearRect(0, 0, n.width, -n.height); k.save(); k.translate(this.Nb.x, -this.Nb.y); if (g) { this.ed(); for (f = 0; f < g.length; f++) g[f] && g[f].J(k) } k.restore(); if (0 < this.bu) { g = this.eZ; k = n.height; for (f = 0; f < this.bu; f++) this.iO[f].drawImage(n, f * g, 0, g, k, 0, 0, g, k) } h.hba(); this.Lk = t } this.ka(c); d.restore() } }, ka: s, Qq: function(c) { c = c || C.t; var d = 0 | -this.Nb.x, f = 0 | -this.Nb.y, g = C.view, h = this.gi; if (h) { var k = this.bu, n = h.height * g.pa; if (0 < k) for (var h = this.hO, p = 0; p < k; p++) { var r = h[p]; c.drawImage(h[p], 0, 0, r.width, r.height, d + p * this.eZ, -(f + n), r.width * g.ia, n) } else c.drawImage(h, 0, 0, h.width, h.height, d, -(f + n), h.width * g.ia, n) } }, dVa: function() { return C.size(this.nb.width, this.nb.height) }, t4a: function(c) { this.nb.width = c.width; this.nb.height = c.height }, vsa: function() { return this.nb.width }, bva: function(c) { this.nb.width = c }, usa: function() { return this.nb.height }, ava: function(c) { this.nb.height = c }, lVa: function() { return C.size(this.Pe.width, this.Pe.height) }, z4a: function(c) { this.Pe.width = c.width; this.Pe.height = c.height }, OF: function() { return this.Pe.width }, EG: function(c) { this.Pe.width = c }, NF: function() { return this.Pe.height }, DG: function(c) { this.Pe.height = c }, XWa: A("xh"), r5a: x("xh"), YWa: A("xl"), s5a: x("xl"), cVa: A("pC"), s4a: x("pC"), KP: A("zd"), HR: x("zd"), $Ca: function(c, d, f) { var g = d.nb, h = 0.35 * parseInt(g.width * g.height) + 1, k; c && (k = C.kb.sd(c.Jia)); return this.ta(k, h) ? (this.DQ = d.name, this.nb = g, this.xh = d.$i, this.pw = d.pw, this.ow = d.ow, this.Eb = d.Eb, this.zd = d.zd, this.Ul = C.Q.Ul, this.xl = c, this.Pe = f.eC(), this.pC = f.orientation, c = this.era(d.offset), this.p(C.c2(c)), this.Dh = [], this.Ca(C.Gia(C.size(this.nb.width * this.Pe.width, this.nb.height * this.Pe.height))), this.vZ = t, this.BZ = 0, q) : t }, M1a: function() { this.xh && (this.xh = s); this.Dh && (this.Dh = s) }, VWa: function(c, d) { c || e("cc.TMXLayer.getTileAt(): pos should be non-null"); d !== m && (c = C.d(c, d)); (c.x >= this.nb.width || c.y >= this.nb.height || 0 > c.x || 0 > c.y) && e("cc.TMXLayer.getTileAt(): invalid position"); if (!this.xh || !this.Dh) return C.log("cc.TMXLayer.getTileAt(): TMXLayer: the tiles map has been released"), s; var f = s, g = this.H0(c); if (0 === g) return f; var h = 0 | c.x + c.y * this.nb.width, f = this.lj(h); f || (g = this.xl.WI(g), g = C.js(g), f = new C.u, f.ta(this.texture, g), f.batchNode = this, f.p(this.IP(c)), f.vertexZ = this.ica(c), f.anchorX = 0, f.anchorY = 0, f.opacity = this.Eb, g = this.hV(h), this.Dwa(f, g, h)); return f }, H0: function(c, d) { c || e("cc.TMXLayer.getTileGIDAt(): pos should be non-null"); d !== m && (c = C.d(c, d)); (c.x >= this.nb.width || c.y >= this.nb.height || 0 > c.x || 0 > c.y) && e("cc.TMXLayer.getTileGIDAt(): invalid position"); return ! this.xh || !this.Dh ? (C.log("cc.TMXLayer.getTileGIDAt(): TMXLayer: the tiles map has been released"), s) : (this.xh[0 | c.x + c.y * this.nb.width] & C.kU) >>> 0 }, aCa: function(c, d) { c || e("cc.TMXLayer.getTileFlagsAt(): pos should be non-null"); d !== m && (c = C.d(c, d)); (c.x >= this.nb.width || c.y >= this.nb.height || 0 > c.x || 0 > c.y) && e("cc.TMXLayer.getTileFlagsAt(): invalid position"); return ! this.xh || !this.Dh ? (C.log("cc.TMXLayer.getTileFlagsAt(): TMXLayer: the tiles map has been released"), s) : (this.xh[0 | c.x + c.y * this.nb.width] & C.T7) >>> 0 }, p5a: function(c, d, f, g) { d || e("cc.TMXLayer.setTileGID(): pos should be non-null"); g !== m ? d = C.d(d, f) : g = f; (d.x >= this.nb.width || d.y >= this.nb.height || 0 > d.x || 0 > d.y) && e("cc.TMXLayer.setTileGID(): invalid position"); if (!this.xh || !this.Dh) C.log("cc.TMXLayer.setTileGID(): TMXLayer: the tiles map has been released"); else if (0 !== c && c < this.xl.Ex) C.log("cc.TMXLayer.setTileGID(): invalid gid:" + c); else { g = g || 0; this.Fn(); f = this.aCa(d); var h = this.H0(d); if (h != c || f != g) if (f = (c | g) >>> 0, 0 === c) this.CGa(d); else if (0 === h) this.ota(f, d); else { var h = d.x + d.y * this.nb.width, k = this.lj(h); k ? (c = this.xl.WI(c), c = C.js(c), k.qc(c, t), g != s && this.$N(k, d, f), this.xh[h] = f) : this.iwa(f, d) } } }, CGa: function(c, d) { c || e("cc.TMXLayer.removeTileAt(): pos should be non-null"); d !== m && (c = C.d(c, d)); (c.x >= this.nb.width || c.y >= this.nb.height || 0 > c.x || 0 > c.y) && e("cc.TMXLayer.removeTileAt(): invalid position"); if (!this.xh || !this.Dh) C.log("cc.TMXLayer.removeTileAt(): TMXLayer: the tiles map has been released"); else if (0 !== this.H0(c)) { C.L === C.cb && this.Fn(); var f = 0 | c.x + c.y * this.nb.width, g = this.hV(f); this.xh[f] = 0; this.Dh.splice(g, 1); if (f = this.lj(f)) C.Bh.prototype.removeChild.call(this, f, q); else if (C.L === C.la && this.textureAtlas.Vga(g), this.l) for (var f = this.l, h = 0, k = f.length; h < k; h++) { var n = f[h]; if (n) { var p = n.atlasIndex; p >= g && (n.atlasIndex = p - 1) } } } }, IP: function(c, d) { d !== m && (c = C.d(c, d)); var f = C.d(0, 0); switch (this.pC) { case C.RK: f = this.mua(c); break; case C.QK: f = this.lua(c); break; case C.PK: f = this.kua(c) } return C.c2(f) }, z0: function(c) { return this.zd[c] }, DIa: function() { C.L === C.cb ? this.xl.ZP = this.qi.o: (this.xl.ZP = this.textureAtlas.texture.o, this.textureAtlas.texture.B2()); this.fua(); C.L === C.cb && this.Fn(); for (var c = this.nb.height, d = this.nb.width, f = 0; f < c; f++) for (var g = 0; g < d; g++) { var h = this.xh[g + d * f]; 0 !== h && (this.Qqa(h, C.d(g, f)), this.pw = Math.min(h, this.pw), this.ow = Math.max(h, this.ow)) } this.ow >= this.xl.Ex && this.pw >= this.xl.Ex || C.log("cocos2d:TMX: Only 1 tileset per layer is supported") }, q: function() { C.log("addChild: is not supported on cc.TMXLayer. Instead use setTileGID or tileAt.") }, removeChild: function(c, d) { if (c) if ( - 1 === this.l.indexOf(c)) C.log("cc.TMXLayer.removeChild(): Tile does not belong to TMXLayer"); else { C.L === C.cb && this.Fn(); var f = c.atlasIndex; this.xh[this.Dh[f]] = 0; this.Dh.splice(f, 1); C.Bh.prototype.removeChild.call(this, c, d) } }, bVa: A("DQ"), r4a: x("DQ"), lua: function(c) { return C.d(this.Pe.width / 2 * (this.nb.width + c.x - c.y - 1), this.Pe.height / 2 * (2 * this.nb.height - c.x - c.y - 2)) }, mua: function(c) { return C.d(c.x * this.Pe.width, (this.nb.height - c.y - 1) * this.Pe.height) }, kua: function(c) { return C.d(3 * c.x * this.Pe.width / 4, (this.nb.height - c.y - 1) * this.Pe.height + (1 == c.x % 2 ? -this.Pe.height / 2 : 0)) }, era: function(c) { var d = C.d(0, 0); switch (this.pC) { case C.RK: d = C.d(c.x * this.Pe.width, -c.y * this.Pe.height); break; case C.QK: d = C.d(this.Pe.width / 2 * (c.x - c.y), this.Pe.height / 2 * ( - c.x - c.y)); break; case C.PK: (0 !== c.x || 0 !== c.y) && C.log("offset for hexagonal map not implemented yet") } return d }, Qqa: function(c, d) { var f = this.xl.WI(c), f = C.js(f), g = 0 | d.x + d.y * this.nb.width, f = this.qY(f); this.$N(f, d, c); var h = this.Dh.length; this.iQ(f, h); this.Dh.splice(h, 0, g); return f }, ota: function(c, d) { var f = this.xl.WI(c), f = C.js(f), g = 0 | d.x + d.y * this.nb.width, f = this.qY(f); this.$N(f, d, c); var h = this.Tqa(g); this.iQ(f, h); this.Dh.splice(h, 0, g); if (this.l) for (var k = this.l, n = 0, p = k.length; n < p; n++) { var r = k[n]; if (r) { var v = r.atlasIndex; v >= h && (r.atlasIndex = v + 1) } } this.xh[g] = c; return f }, iwa: function(c, d) { var f = this.xl.WI(c), g = this.Ul, f = C.rect(f.x / g, f.y / g, f.width / g, f.height / g), g = d.x + d.y * this.nb.width, f = this.qY(f); this.$N(f, d, c); f.atlasIndex = this.hV(g); f.dirty = q; f.$h(); this.xh[g] = c; return f }, fua: function() { var c = this.z0("cc_vertexz"); if (c) if ("automatic" == c) { this.vZ = q; var d = this.z0("cc_alpha_func"), c = 0; d && (c = parseFloat(d)); C.L === C.la && (this.shaderProgram = C.ug.Xd(C.KK), d = C.t.getUniformLocation(this.shaderProgram.Lx(), C.G8), this.shaderProgram.Af(), this.shaderProgram.sJ(d, c)) } else this.BZ = parseInt(c, 10) }, $N: function(c, d, f) { var g = d.x + d.y * this.nb.width; c.p(this.IP(d)); C.L === C.la ? c.vertexZ = this.ica(d) : c.tag = g; c.anchorX = 0; c.anchorY = 0; c.opacity = this.Eb; C.L === C.la && (c.rotation = 0); c.Nd(t); c.Uf(t); (f & C.S7) >>> 0 ? (c.anchorX = 0.5, c.anchorY = 0.5, c.x = this.IP(d).x + c.width / 2, c.y = this.IP(d).y + c.height / 2, d = (f & (C.DE | C.EE) >>> 0) >>> 0, d == C.DE ? c.rotation = 90 : d == C.EE ? c.rotation = 270 : (c.rotation = d == (C.EE | C.DE) >>> 0 ? 90 : 270, c.Nd(q))) : ((f & C.DE) >>> 0 && c.Nd(q), (f & C.EE) >>> 0 && c.Uf(q)) }, qY: function(c) { C.L === C.la ? (this.Cn ? (this.Cn.batchNode = s, this.Cn.qc(c, t)) : (this.Cn = new C.u, this.Cn.ta(this.texture, c, t)), this.Cn.batchNode = this) : (this.Cn = new C.u, this.Cn.ta(this.eu, c, t), this.Cn.batchNode = this, this.Cn.parent = this); return this.Cn }, ica: function(c) { var d = 0, f = 0; if (this.vZ) switch (this.pC) { case C.QK: f = this.nb.width + this.nb.height; d = -(f - (c.x + c.y)); break; case C.RK: d = -(this.nb.height - c.y); break; case C.PK: C.log("TMX Hexa zOrder not supported"); break; default: C.log("TMX invalid value") } else d = this.BZ; return d }, hV: function(c) { var d; if (this.Dh) for (var f = this.Dh, g = 0, h = f.length; g < h && !(d = f[g], d == c); g++); "number" != typeof d && C.log("cc.TMXLayer._atlasIndexForExistantZ(): TMX atlas index not found. Shall not happen"); return g }, Tqa: function(c) { for (var d = this.Dh, f = 0, g = d.length; f < g && !(c < d[f]); f++); return f } }); H = C.BE.prototype; C.L == C.la ? (H.ka = C.Bh.prototype.ka, H.J = C.Bh.prototype.J, H.ob = C.Bh.prototype.ob) : (H.ka = H.Qq, H.J = H.Hr, H.ob = H.MF); C.e(H, "texture", H.ob, H.Va); C.e(H, "layerWidth", H.vsa, H.bva); C.e(H, "layerHeight", H.usa, H.ava); C.e(H, "tileWidth", H.OF, H.EG); C.e(H, "tileHeight", H.NF, H.DG); C.BE.create = function(c, d, f) { return new C.BE(c, d, f) }; C.JT = C.O.extend({ vG: s, fb: s, hF: s, jWa: A("vG"), W4a: x("vG"), hea: A("fb"), DR: x("fb"), CTa: A("hF"), iHa: x("hF"), PCa: function(c, d) { this.vG = c; this.fb = d; this.hF = s; return q } }); C.JT.create = function(c, d) { var f = new C.JT; f.PCa(c, d); return f }; C.m7 = C.ha.extend({ Yx: s, nX: s, qa: "ParallaxNode", QVa: A("Yx"), K4a: x("Yx"), ctor: function() { C.ha.prototype.ctor.call(this); this.Yx = []; this.nX = C.d( - 100, -100) }, q: function(c, d, f, g) { if (3 === arguments.length) C.log("ParallaxNode: use addChild(child, z, ratio, offset) instead"); else { c || e("cc.ParallaxNode.addChild(): child should be non-null"); var h = C.JT.create(f, g); h.iHa(c); this.Yx.push(h); c.p(this.ma.x * f.x + g.x, this.ma.y * f.y + g.y); C.ha.prototype.q.call(this, c, d, c.tag) } }, removeChild: function(c, d) { for (var f = this.Yx, g = 0; g < f.length; g++) if (f[g].hF == c) { f.splice(g, 1); break } C.ha.prototype.removeChild.call(this, c, d) }, xf: function(c) { this.Yx.length = 0; C.ha.prototype.xf.call(this, c) }, J: function() { var c = this.Gqa(); if (!C.b2(c, this.nX)) { for (var d = this.Yx, f = 0, g = d.length; f < g; f++) { var h = d[f]; h.hF.p( - c.x + c.x * h.vG.x + h.fb.x, -c.y + c.y * h.vG.y + h.fb.y) } this.nX = c } C.ha.prototype.J.call(this) }, Gqa: function() { for (var c = this.ma, d = this; d.parent != s;) d = d.parent, c = C.ho(c, d.Ld()); return c } }); C.m7.create = function() { return new C.m7 }; if (C.Sc.jO) { var Oa = C.S6a = new(window.AudioContext || window.webkitAudioContext || window.mozAudioContext); C.NU = C.O.extend({ Wz: s, $b: s, Rw: s, HZ: s, src: s, KC: s, autoplay: s, controls: s, d0a: s, currentTime: 0, startTime: 0, duration: 0, Uj: s, GZ: 1, AN: 0, xe: t, QG: q, dm: -1, ctor: function(c) { this.Wz = {}; this.src = c; this.HZ = Oa.createGain ? Oa.createGain() : Oa.createGainNode(); this.Uta = this.Tta.bind(this); this.Rta = this.Qta.bind(this) }, PX: function(c) { var d = this.Rw = Oa.createBufferSource(), f = this.HZ; c = c || 0; d.buffer = this.$b; f.gain.value = this.GZ; d.connect(f); f.connect(Oa.destination); d.loop = this.Uj; this.QG = this.xe = t; d.start ? d.start(0, c) : d.noteGrainOn ? (f = d.buffer.duration, this.loop ? d.noteGrainOn(0, c, f) : d.noteGrainOn(0, c, f - c)) : d.noteOn(0); this.AN = 0 }, Pba: function() { var c = this.Rw; this.QG || (c.stop ? c.stop(0) : c.k0a(0), this.QG = q) }, play: function() { if ( - 1 == this.dm) this.dm = 0; else if (1 == this.dm) { var c = this.Rw; if (this.QG || !(c && 2 == c.playbackState)) this.startTime = Oa.currentTime, this.PX(0) } }, pause: function() { this.AN = Oa.currentTime; this.xe = q; this.Pba() }, nk: function() { this.xe && this.PX(this.$b ? (this.AN - this.startTime) % this.$b.duration: 0) }, stop: function() { this.AN = 0; this.xe = t; this.Pba() }, load: function() { var c = this; if (1 != c.dm) { c.dm = -1; c.played = t; c.ended = q; var d = new XMLHttpRequest; d.open("GET", c.src, q); d.responseType = "arraybuffer"; d.onload = function() { Oa.decodeAudioData(d.response, c.Uta, c.Rta) }; d.send() } }, addEventListener: function(c, d) { this.Wz[c] = d.bind(this) }, removeEventListener: function(c) { delete this.Wz[c] }, GQa: function() { return C.Sc.jO }, Tta: function(c) { this.$b = c; c = this.Wz.success; var d = this.Wz.canplaythrough; c && c(); d && d(); (0 == this.dm || "autoplay" == this.autoplay || this.autoplay == q) && this.PX(); this.dm = 1 }, Qta: function() { var c = this.Wz.error; c && c(); this.dm = -2 }, cloneNode: function() { var c = new C.NU(this.src); c.volume = this.volume; c.dm = this.dm; c.$b = this.$b; (0 == c.dm || -1 == c.dm) && c.load(); return c } }); H = C.NU.prototype; C.e(H, "loop", A("Uj"), function(c) { this.Uj = c; this.Rw && (this.Rw.loop = c) }); C.e(H, "volume", A("GZ"), function(c) { this.GZ = c; this.HZ.gain.value = c }); C.e(H, "paused", A("xe")); C.e(H, "ended", function() { var c = this.Rw; return ! this.xe && (this.QG || !c || 3 == c.playbackState) }); C.e(H, "played", function() { var c = this.Rw; return c && 2 == c.playbackState }) } C.o4 = C.O.extend({ TY: t, Hh: s, QL: s, Vj: 0, f9: 0, li: {}, VE: {}, lM: 1, uX: 5, kt: s, qG: [], ctor: function() { this.TY = 0 < C.jV.kO.length; this.kt && (this.kt = this.kt.bind(this)) }, W6a: B(t), Uda: A("lM"), tga: function(c, d) { if (this.TY) { var f = this.Hh; f && this.au(f); c != this.QL && (this.Hh = f = this.GW(c), this.QL = c); f && (f.loop = d || t, this.QX(f)) } }, GW: function(c) { var d = C.M, f = d.xd(c); f || (d.load(c), f = d.xd(c)); return f }, QX: function(c) { c.ended || (c.stop ? c.stop() : (c.pause(), c.currentTime = 0)); this.Vj = 2; c.play() }, Sia: function(c) { if (0 < this.Vj) { var d = this.Hh; d && this.au(d) && (c && C.M.rh(this.QL), this.QL = this.Hh = s, this.Vj = 0) } }, au: function(c) { return c && !c.ended ? (c.stop ? c.stop() : c.duration && Infinity != c.duration ? c.currentTime = c.duration: c.pause(), q) : t }, Y1: function() { 2 == this.Vj && (this.Hh.pause(), this.Vj = 1) }, aha: function() { 1 == this.Vj && (this.qr(this.Hh), this.Vj = 2) }, qr: function(c) { c && !c.ended && (c.nk ? c.nk() : c.play()) }, GGa: function() { this.Hh && this.QX(this.Hh) }, iBa: function() { return 0 == this.Vj ? 0 : this.Hh.volume }, NHa: function(c) { 0 < this.Vj && (this.Hh.volume = Math.min(Math.max(c, 0), 1)) }, nQ: function() { return 2 == this.Vj && this.Hh && !this.Hh.ended }, JW: function(c) { var d = this.VE[c]; d || (d = this.VE[c] = []); return d }, P$: function(c) { var d; if (!this.TY) return s; for (var f = this.JW(c), g = 0, h = f.length; g < h; g++) { var k = f[g]; if (k.ended) { d = k; d.currentTime = 0; window.TQa && d.load(); break } } if (!d) { if (f.length >= this.uX) return C.log("Error: " + c + " greater than " + this.uX), s; d = this.GW(c); if (!d) return s; d = d.cloneNode(q); this.kt && C.qb(d, "pause", this.kt); d.volume = this.lM; f.push(d) } return d }, Zx: function(c, d) { var f = this.P$(c); if (!f) return s; f.loop = d || t; f.play(); var g = this.f9++; this.li[g] = f; return g }, zha: function(c) { c = this.lM = Math.min(Math.max(c, 0), 1); var d = this.li, f; for (f in d) d[f].volume = c }, X1: function(c) { (c = this.li[c]) && !c.ended && c.pause() }, W1: function() { var c = this.li, d; for (d in c) { var f = c[d]; f.ended || f.pause() } }, u2: function(c) { this.qr(this.li[c]) }, t2: function() { var c = this.li, d; for (d in c) this.qr(c[d]) }, G3: function(c) { this.au(this.li[c]); delete this.li[c] }, cD: function() { var c = this.li, d; for (d in c) this.au(c[d]), delete c[d] }, V3: function(c) { var d = C.M, f = this.li, g = this.JW(c); d.rh(c); if (0 != g.length) { d = g[0].src; delete this.VE[c]; for (var h in f) f[h].src == d && (this.au(f[h]), delete f[h]) } }, end: function() { this.Sia(); this.cD() }, Naa: function() { var c = this.li, d, f; for (f in c) if ((d = c[f]) && !d.ended && !d.paused) this.qG.push(d), d.pause(); this.nQ() && (this.qG.push(this.Hh), this.Hh.pause()) }, jba: function() { for (var c = this.qG, d = 0, f = c.length; d < f; d++) this.qr(c[d]); c.length = 0 } }); ! C.Sc.jO && 0 > C.Sc.Ova && (C.p4 = C.o4.extend({ mu: [], oG: [], Ok: s, uX: 2, kM: {}, tw: t, Xz: 0, hX: t, QX: function(c) { this.aZ(); this._super(c) }, aha: function() { 1 == this.Vj && (this.aZ(), this.tw = t, this.Xz = 0, this._super()) }, Zx: function(c, d) { var f = this.Ok, g = d ? this.P$(c) : this.Lsa(c); if (!g) return s; g.loop = d || t; var h = this.f9++; this.li[h] = g; this.nQ() && (this.Y1(), this.tw = q); f ? (f != g && this.mu.push(this.Mz), this.mu.push(h), f.pause()) : (this.Ok = g, this.Mz = h, g.play()); return h }, X1: function() { C.log("pauseEffect not supported in single audio mode!") }, W1: function() { var c = this.mu, d = this.oG, f = this.Ok; if (f) { for (var g = 0, h = c.length; g < h; g++) d.push(c[g]); c.length = 0; d.push(this.Mz); f.pause() } }, u2: function() { C.log("resumeEffect not supported in single audio mode!") }, t2: function() { var c = this.mu, d = this.oG; this.nQ() && (this.Y1(), this.tw = q); for (var f = 0, g = d.length; f < g; f++) c.push(d[f]); d.length = 0; if (!this.Ok && 0 <= c.length && (c = c.pop(), d = this.li[c])) this.Mz = c, this.Ok = d, this.qr(d) }, G3: function(c) { var d = this.Ok, f = this.mu, g = this.oG; d && this.Mz == c ? this.au(d) : (d = f.indexOf(c), 0 <= d ? f.splice(d, 1) : (d = g.indexOf(c), 0 <= d && g.splice(d, 1))) }, cD: function() { this.aZ(); ! this.Ok && this.tw && (this.qr(this.Hh), this.Vj = 2, this.tw = t, this.Xz = 0) }, V3: function(c) { var d = C.M, f = this.li, g = this.kM, h = this.JW(c), k = this.Ok; d.rh(c); if (0 != h.length || g[c]) { d = 0 < h.length ? h[0].src: g[c].src; delete this.VE[c]; delete g[c]; for (var n in f) f[n].src == d && delete f[n]; k && k.src == d && this.au(k) } }, Lsa: function(c) { var d = this.kM[c], f = this.mu, g = this.oG, h = this.li; if (d) d.currentTime = 0; else { d = this.GW(c); if (!d) return s; d = d.cloneNode(q); this.kt && C.qb(d, "pause", this.kt); d.volume = this.lM; this.kM[c] = d } c = 0; for (var k = f.length; c < k;) h[f[c]] == d ? f.splice(c, 1) : c++; c = 0; for (k = g.length; c < k;) h[g[c]] == d ? g.splice(c, 1) : c++; d.WF = q; return d }, aZ: function() { var c = this.Ok, d = this.VE, f = this.kM, g = this.mu, h = this.oG; if (c || !(0 == g.length && 0 == h.length)) { for (var k in f) { var n = f[k]; n.duration && Infinity != n.duration && (n.currentTime = n.duration) } g.length = 0; h.length = 0; for (k in d) { f = d[k]; g = 0; for (h = f.length; g < h; g++) n = f[g], n.loop = t, n.duration && Infinity != n.duration && (n.currentTime = n.duration) } c && this.au(c) } }, kt: function() { if (!this.hX) { var c = this.Psa(); if (c) c.WF ? (delete c.WF, c.play()) : this.qr(c); else if (this.tw) { c = this.Hh; if (c.duration && Infinity != c.duration) { var d = c.currentTime + this.Xz, d = d - c.duration * (d / c.duration | 0); c.currentTime = d } this.Xz = 0; this.qr(c); this.Vj = 2; this.tw = t } } }, Psa: function() { var c = this.mu, d = this.li, f = this.Ok, g = f ? f.currentTime - (f.startTime || 0) : 0; for (this.Xz += g; 0 != c.length;) { var h = c.pop(); if (f = d[h]) { if (f.WF || f.loop || f.duration && f.currentTime + g < f.duration) return this.Mz = h, this.Ok = f, !f.WF && (f.duration && Infinity != f.duration) && (c = f.currentTime + g, c -= f.duration * (c / f.duration | 0), f.currentTime = c), f.WF = t, f; f.duration && Infinity != f.duration && (f.currentTime = f.duration) } } return this.Ok = this.Mz = s }, Naa: function() { var c = this.Ok; this.hX = q; if (c = 2 == this.Vj ? this.Hh: c) this.qG.push(c), c.pause() }, jba: function() { var c = this.qG; this.hX = t; 0 < c.length && (this.qr(c[0]), c.length = 0) } })); C.jV = { kO: s, zP: function() { return C.M.dxa }, oX: function(c, d, f, g, h, k, n) { var p = this, r = C.M, v = C.path, y = this.kO, z = ""; if (0 == y.length) return n("can not support audio!"); if ( - 1 == g) z = (v.Cp(c) || "").toLowerCase(), p.exa(z) || (z = y[0], g = 0); else if (g < y.length) z = y[g]; else return n("can not found the resource of audio! Last match url is : " + c); if (0 <= h.indexOf(z)) return p.oX(c, d, f, g + 1, h, k, n); c = v.s_(c, z); h.push(z); k = p.yta(c, k, function(r) { if (r) return p.oX(c, d, f, g + 1, h, k, n); n(s, k) }, g == y.length - 1); r.fj[d] = k }, exa: function(c) { return ! c ? t: 0 <= this.kO.indexOf(c.toLowerCase()) }, yta: function(c, d, f, g) { var h = "file://" == location.origin ? Audio: C.NU || Audio; 2 == arguments.length ? (f = d, d = new h) : 3 < arguments.length && !d && (d = new h); d.src = c; d.KC = "auto"; h = navigator.userAgent; /Mobile/.test(h) && (/iPhone OS/.test(h) || /iPad/.test(h) || /Firefox/.test(h)) || /MSIE/.test(h) ? (d.load(), f(s, d)) : (C.qb(d, "canplaythrough", function() { f(s, d); this.removeEventListener("canplaythrough", arguments.callee, t); this.removeEventListener("error", arguments.callee, t) }, t), C.qb(d, "error", function() { f("load " + c + " failed"); g && (this.removeEventListener("canplaythrough", arguments.callee, t), this.removeEventListener("error", arguments.callee, t)) }, t), d.load()); return d }, load: function(c, d, f, g) { this.oX(c, d, f, -1, [], s, g) } }; C.jV.kO = function() { var c = C.bd("audio"), d = []; if (c.canPlayType) { var f = function(d) { d = c.canPlayType(d); return "no" != d && "" != d }; f('audio/ogg; codecs\x3d"vorbis"') && d.push(".ogg"); f("audio/mpeg") && d.push(".mp3"); f('audio/wav; codecs\x3d"1"') && d.push(".wav"); f("audio/mp4") && d.push(".mp4"); (f("audio/x-m4a") || f("audio/aac")) && d.push(".m4a") } return d } (); C.M.Zp(["mp3", "ogg", "wav", "mp4", "m4a"], C.jV); C.ud = C.p4 ? new C.p4: new C.o4; C.Ka.MZ(C.qf.kK, function() { C.ud.Naa() }); C.Ka.MZ(C.qf.JD, function() { C.ud.jba() }); C.KS = 9; C.nla = 1; C.qla = 2; C.rla = 4; C.ola = 8; C.pla = 16; C.f5 = 32; C.sla = 64; C.mla = 128; C.uo = 256; C.Rg = 1; C.jv = 2; C.iv = 4; C.mLa = 8; C.lLa = 8; C.Kc = C.ai.extend({ jaa: t, ROa: t, ui: s, qa: "Control", qg: A("jaa"), $d: function(c) { this.jaa = c; for (var d = this.le(), f = 0, g = d.length; f < g; f++) { var h = d[f]; h && h.sb && h.$d(c) } }, zb: C.Rg, UBa: A("zb"), Wc: t, SN: t, xt: t, $L: s, Ib: function(c) { this.zb = (this.Wc = c) ? C.Rg: C.iv; this.Tf() }, isEnabled: A("Wc"), Wu: function(c) { this.SN = c; this.Tf() }, oQ: A("SN"), vj: function(c) { this.xt = c; this.Tf() }, mQ: A("xt"), DCa: function() { for (var c = this.getParent(); c != s; c = c.getParent()) if (!c.Ja) return t; return q }, ctor: function() { C.ai.prototype.ctor.call(this); this.$L = {}; this.ya = C.color.WHITE }, j: function() { if (C.ai.prototype.j.call(this)) { this.zb = C.Rg; this.Wc = q; this.xt = this.SN = t; var c = C.Oa.create({ event: C.Oa.Gs }); this.nc && (c.nc = this.nc.bind(this)); this.yd && (c.yd = this.yd.bind(this)); this.cd && (c.cd = this.cd.bind(this)); this.Xe && (c.Xe = this.Xe.bind(this)); this.ui = c; return q } return t }, Z: function() { var c = this.ui; c.Wi || C.Ka.addListener(c, this); C.A.prototype.Z.call(this) }, Bi: function(c) { for (var d = 0, f = C.KS; d < f; d++) if (c & 1 << d) for (var g = this.iW(1 << d), h = 0, k = g.length; h < k; h++) g[h].jDa(this) }, nH: function(c, d, f) { for (var g = 0, h = C.KS; g < h; g++) f & 1 << g && this.b9(c, d, 1 << g) }, s2a: function(c, d, f) { for (var g = 0, h = C.KS; g < h; g++) f & 1 << g && this.Eua(c, d, 1 << g) }, Gp: function(c) { return this.wi(c.mh()) }, Zn: function(c) { c = c.mh(); c = this.getParent().wi(c); return C.Ju(this.Ae(), c) }, VOa: B(s), iW: function(c) { c = c.toString(); this.$L[c] || (this.$L[c] = []); return this.$L[c] }, b9: function(c, d, f) { c = new C.Ema(c, d, f); this.iW(f).push(c) }, Eua: function(c, d, f) { f = this.iW(f); if (!c && !d) f.length = 0; else for (var g = 0; g < f.length;) { var h = f[g], k = q; c && (k = c == h.zea()); d && (k = k && d == h.Qr()); k ? C.Id(f, h) : g++ } }, Tf: u() }); H = C.Kc.prototype; C.e(H, "state", H.UBa); C.e(H, "enabled", H.isEnabled, H.Ib); C.e(H, "selected", H.oQ, H.Wu); C.e(H, "highlighted", H.mQ, H.vj); H = s; C.Kc.create = function() { var c = new C.Kc; return c && c.j() ? c: s }; C.j5 = 3435855873; C.Ym = C.Kc.extend({ zF: t, MJ: t, Nh: s, XF: s, tF: s, SL: s, Yw: s, Eh: s, Eb: 0, tA: t, qO: s, WG: s, rO: s, Kv: s, Kaa: t, eN: 0, dN: 0, qa: "ControlButton", ctor: function() { C.Kc.prototype.ctor.call(this); this.Nh = C.size(0, 0); this.XF = C.d(0, 0); this.tF = ""; this.SL = C.color.WHITE; this.qO = {}; this.WG = {}; this.rO = {}; this.Kv = {} }, j: function() { return this.gQ(C.fa.create("", "Arial", 12), C.Sa.create()) }, Tf: function() { if (this.Kaa) { this.Yw && this.Yw.va(t); this.Eh && this.Eh.va(t); this.U2(this.XF); var c = this.zb; this.tF = this.I0(c); this.SL = this.bCa(c); var d = this.Yw = this.YH(c); d && d.sa && d.sa(this.tF); d && d.sb && d.G(this.SL); var f = this.i(); d && d.p(f.width / 2, f.height / 2); (c = this.Eh = this.cAa(c)) && c.p(f.width / 2, f.height / 2); f = C.size(0, 0); if (d) { var g = d.Ae(); f.width = g.width; f.height = g.height } this.zF ? c && c.Ca(f.width + 2 * this.dN, f.height + 2 * this.eN) : c && (g = c.Nh, g = C.size(g.width, g.height), 0 >= g.width && (g.width = f.width), 0 >= g.height && (g.height = f.height), c.Ca(g)); f = d ? d.Ae() : C.rect(0, 0, 0, 0); g = c ? c.Ae() : C.rect(0, 0, 0, 0); f = C.MC(f, g); this.Ca(f.width, f.height); f = this.i(); d && (d.p(f.width / 2, f.height / 2), d.va(q)); c && (c.p(f.width / 2, f.height / 2), c.va(q)) } }, gQ: function(c, d) { (!c || !c.sb) && e("cc.ControlButton.initWithLabelAndBackgroundSprite(): label should be non-null"); d || e("cc.ControlButton.initWithLabelAndBackgroundSprite(): backgroundSprite should be non-null"); return C.Kc.prototype.j.call(this, q) ? (this.Kaa = q, this.qO = {}, this.WG = {}, this.rO = {}, this.Kv = {}, this.tA = t, this.MJ = q, this.tF = s, this.fha(q), this.De(C.size(0, 0)), this.MJ = q, this.Hm(t), this.S(0.5, 0.5), this.Yw = c, this.Eh = d, this.K(255), this.$d(q), this.RR(c.Wb(), C.Rg), this.QR(c.Xa(), C.Rg), this.r3(c, C.Rg), this.sR(d, C.Rg), this.zb = C.Rg, this.dN = 24, this.eN = 12, this.XF = C.d(0.5, 0.5), this.De(C.size(0, 0)), this.Tf(), q) : t }, bDa: function(c, d, f) { c = C.fa.create(c, d, f); return this.gQ(c, C.Sa.create()) }, Wea: function(c) { var d = C.fa.create("", "Arial", 30); return this.gQ(d, c) }, JRa: A("zF"), fha: function(c) { this.zF = c; this.Tf() }, yXa: A("MJ"), Bia: function(c) { return this.MJ = c }, y0: A("Nh"), De: function(c) { if (0 === c.width && 0 === c.height) this.zF = q; else { this.zF = t; var d = this.Kv, f; for (f in d) d[f].De(c) } this.Nh = c; this.Tf() }, RAa: A("XF"), U2: function(c) { this.XF = c; this.Yw && this.Yw.S(c) }, FOa: A("tF"), GOa: A("SL"), rb: A("Eb"), K: function(c) { C.Kc.prototype.K.call(this, c); var d = this.Kv, f; for (f in d) d[f].K(c) }, G: function(c) { C.Kc.prototype.G.call(this, c); var d = this.Kv, f; for (f in d) d[f].G(c) }, Xa: function() { var c = this.od; return C.color(c.r, c.g, c.b, c.a) }, FYa: A("tA"), POa: A("eN"), IOa: A("dN"), A4a: function(c, d) { this.eN = d; this.dN = c; this.Tf() }, Ib: function(c) { C.Kc.prototype.Ib.call(this, c); this.Tf() }, Wu: function(c) { C.Kc.prototype.Wu.call(this, c); this.Tf() }, vj: function(c) { this.zb = c ? C.jv: C.Rg; C.Kc.prototype.vj.call(this, c); (c = this.xP(C.j5)) && this.yJ(c); this.Tf(); this.MJ && (c = C.ae.create(0.05, this.mQ() && this.isEnabled() && !this.oQ() ? 1.1 : 1), c.Qm(C.j5), this.Ya(c)) }, nc: function(c) { if (!this.Zn(c) || !this.isEnabled() || !this.Ja || !this.DCa()) return t; this.tA = q; this.vj(q); this.Bi(C.nla); return q }, yd: function(c) { ! this.Wc || !this.tA || this.SN ? this.xt && this.vj(t) : (c = this.Zn(c)) && !this.xt ? (this.vj(q), this.Bi(C.ola)) : c && this.xt ? this.Bi(C.qla) : !c && this.xt ? (this.vj(t), this.Bi(C.pla)) : !c && !this.xt && this.Bi(C.rla) }, cd: function(c) { this.tA = t; this.vj(t); this.Zn(c) ? this.Bi(C.f5) : this.Bi(C.sla) }, Xe: function() { this.tA = t; this.vj(t); this.Bi(C.mla) }, I0: function(c) { var d = this.qO; return d ? d[c] ? d[c] : d[C.Rg] : "" }, RR: function(c, d) { this.qO[d] = c || ""; this.zb == d && this.Tf() }, bCa: function(c) { return (c = this.WG[c]) ? c: (c = this.WG[C.Rg]) ? c: C.color.WHITE }, QR: function(c, d) { this.WG[d] = c; this.zb == d && this.Tf() }, YH: function(c) { var d = this.rO; return d[c] ? d[c] : d[C.Rg] }, r3: function(c, d) { var f = this.rO; if (f[d]) { var g = f[d]; g && this.removeChild(g, q) } f[d] = c; c.va(t); c.S(0.5, 0.5); this.q(c, 1); this.zb == d && this.Tf() }, s3: function(c, d) { var f = this.I0(d); f || (f = ""); this.r3(C.fa.create(f, c, 12), d) }, bXa: function(c) { c = this.YH(c); return c != s && c instanceof C.fa ? c.Fp() : "" }, t3: function(c, d) { var f = this.YH(d); f != s && f instanceof C.fa && f.Od(c) }, cXa: function(c) { c = this.YH(c); return c != s && c instanceof C.fa ? c.Vn() : 0 }, t5a: function(c, d) { var f = this.I0(d); f || (f = ""); this.r3(C.rv.create(f, c), d) }, aXa: function(c) { c = this.YH(c); return c != s && c instanceof C.rv ? c.FF: "" }, cAa: function(c) { var d = this.Kv; return d[c] ? d[c] : d[C.Rg] }, sR: function(c, d) { var f = this.Kv; if (f[d]) { var g = f[d]; g && this.removeChild(g, q) } f[d] = c; c.va(t); c.S(0.5, 0.5); this.q(c); f = this.Nh; (0 !== f.width || 0 !== f.height) && c.De(f); this.zb === d && this.Tf() }, D2: function(c, d) { var f = C.Sa.$xa(c); this.sR(f, d) } }); H = C.Ym.prototype; C.e(H, "adjustBackground", H.FSa, H.fha); C.e(H, "preferredSize", H.y0, H.De); C.e(H, "labelAnchor", H.RAa, H.U2); H = s; C.Ym.create = function(c, d) { var f; if (0 == arguments.length) return (f = new C.Ym) && f.j() ? f: s; 1 == arguments.length ? (f = new C.Ym, f.Wea(arguments[0])) : 2 == arguments.length ? (f = new C.Ym, f.gQ(c, d)) : 3 == arguments.length && (f = new C.Ym, f.bDa(arguments[0], arguments[1], arguments[2])); return f }; function Pa() { this.a = this.b = this.g = this.r = m } C.jT = function(c, d, f) { this.Rf = c; this.tl = d; this.ea = f }; C.Ah = {}; C.Ah.lx = function(c, d, f, g) { c = C.u.create("#" + c); if (!c) return s; c.p(f); c.S(g); d.q(c); return c }; C.Ah.uma = function(c) { var d = new C.jT, f, g; f = c.r < c.g ? c.r: c.g; f = f < c.b ? f: c.b; g = c.r > c.g ? c.r: c.g; g = g > c.b ? g: c.b; d.ea = g; f = g - f; if (0 < g) d.tl = f / g; else return d.tl = 0, d.Rf = -1, d; d.Rf = c.r >= g ? (c.g - c.b) / f: c.g >= g ? 2 + (c.b - c.r) / f: 4 + (c.r - c.g) / f; d.Rf *= 60; 0 > d.Rf && (d.Rf += 360); return d }; C.Ah.WT = function(c) { var d, f, g, h, k = new Pa; k.a = 1; if (0 >= c.tl) { if (!c.Rf) return k.r = c.ea, k.g = c.ea, k.b = c.ea, k; k.r = 0; k.g = 0; k.b = 0; return k } d = c.Rf; 360 <= d && (d = 0); d /= 60; h = 0 | d; g = d - h; d = c.ea * (1 - c.tl); f = c.ea * (1 - c.tl * g); g = c.ea * (1 - c.tl * (1 - g)); switch (h) { case 0: k.r = c.ea; k.g = g; k.b = d; break; case 1: k.r = f; k.g = c.ea; k.b = d; break; case 2: k.r = d; k.g = c.ea; k.b = g; break; case 3: k.r = d; k.g = f; k.b = c.ea; break; case 4: k.r = g; k.g = d; k.b = c.ea; break; default: k.r = c.ea, k.g = d, k.b = f } return k }; C.Ah.G4 = function(c, d) { return C.MC(c, d) }; C.Ema = C.O.extend({ Ke: s, Xc: s, OL: s, ctor: function(c, d, f) { this.Xc = c; this.Ke = d; this.OL = f }, Qr: A("Ke"), zea: A("Xc"), LTa: A("OL"), jDa: function(c) { if (this.Xc && this.Ke) if ("string" == typeof this.Ke) this.Xc[this.Ke](c, this.OL); else this.Ke.call(this.Xc, c, this.OL) } }); C.Sa = C.ha.extend({ sb: q, cB: s, s9: s, lp: t, Yi: s, iu: s, Zw: s, ju: s, lw: s, Iq: s, Lw: s, Zs: s, Nv: s, Ov: s, Mq: s, Fb: t, Gg: s, Nh: s, Eb: 0, ya: s, df: s, OM: 0, QM: 0, PM: 0, NM: 0, Mba: t, WY: t, Aa: t, ac: s, qa: "Scale9Sprite", eD: A("Aa"), ye: function(c, d) { this.ac.push({ jl: c, jj: d }) }, cf: function() { this.Aa = q; for (var c = this.ac, d = 0, f = c.length; d < f; d++) { var g = c[d]; g.jl.call(g.jj, this) } c.length = 0 }, BO: function() { var c; c = this.OM; var d = this.QM, f = this.PM, g = this.cB, h = this.NM; c = 0 === c && 0 === d && 0 === f && 0 === h ? C.rect(0, 0, 0, 0) : this.WY ? C.rect(h, c, g.width - f - c, g.height - d - h) : C.rect(c, d, g.width - c - f, g.height - d - h); this.Gc(c) }, cwa: function() { if (this.iu && this.ju && this.Ov && this.Zs && this.Iq) { var c = this.o, d = this.iu, f = this.ju, g = this.Ov, h = this.Zs, k = this.Iq, n = this.Iq.i(), p = d.i(), r = h.i(), v = c.width - p.width - f.i().width, c = c.height - p.height - g.i().height, v = v / n.width, c = c / n.height, p = n.width * v, y = n.height * c, z = r.width, r = r.height; if (C.L == C.la) { var D = Math.round(p); p != D && (p = D, v = p / n.width); D = Math.round(y); y != D && (y = D, c = y / n.height) } k.gb(v); k.pb(c); var n = this.lw, D = this.Lw, E = this.Zw, F = this.Nv, G = C.d(0, 0); h.S(G); g.S(G); d.S(G); f.S(G); n.S(G); D.S(G); E.S(G); F.S(G); k.S(G); h.p(0, 0); g.p(z + p, 0); d.p(0, r + y); f.p(z + p, r + y); n.p(0, r); n.pb(c); D.p(z + p, r); D.pb(c); F.p(z, 0); F.gb(v); E.p(z, r + y); E.gb(v); k.p(z, r) } }, ctor: function() { C.ha.prototype.ctor.call(this); this.cB = C.rect(0, 0, 0, 0); this.s9 = C.rect(0, 0, 0, 0); this.Mq = C.color(255, 255, 255, 255); this.Gg = C.size(0, 0); this.Nh = C.size(0, 0); this.ya = C.color(255, 255, 255, 255); this.Eb = 255; this.df = C.rect(0, 0, 0, 0); this.ac = [] }, sBa: A("Gg"), y0: A("Nh"), LOa: function() { return this.Nh.width }, KOa: function() { return this.Nh.height }, De: function(c) { this.Ca(c); this.Nh = c }, wPa: function(c) { this.Qh(c); this.Nh.width = c }, vPa: function(c) { this.Ph(c); this.Nh.height = c }, rb: A("Eb"), K: function(c) { if (this.Yi) { this.Eb = c; for (var d = this.Yi.le(), f = 0; f < d.length; f++) { var g = d[f]; g && g.sb && g.K(c) } this.ya.a = c } }, dc: function(c) { C.ha.prototype.dc.call(this, c); this.K(this.hb) }, Xa: function() { var c = this.ya; return C.color(c.r, c.g, c.b, c.a) }, G: function(c) { if (this.Yi) { var d = this.ya; d.r = c.r; d.g = c.g; d.b = c.b; for (var d = this.Yi.le(), f = 0; f < d.length; f++) { var g = d[f]; g && g.sb && g.G(c) } c.a !== m && !c.jx && this.K(c.a) } }, Tb: function(c) { C.ha.prototype.Tb.call(this, c); this.G(this.wb) }, l0: A("df"), Gc: function(c) { if (this.Yi) { var d = this.o, f = d.width, d = d.height; this.kD(this.Yi, this.cB, this.WY, c); this.Ca(f, d) } }, MAa: A("OM"), Jha: function(c) { this.OM = c; this.BO() }, OAa: A("QM"), Lha: function(c) { this.QM = c; this.BO() }, NAa: A("PM"), Kha: function(c) { this.PM = c; this.BO() }, LAa: A("NM"), Iha: function(c) { this.NM = c; this.BO() }, Ca: function(c, d) { C.A.prototype.Ca.call(this, c, d); this.lp = q }, Qh: function(c) { C.A.prototype.Qh.call(this, c); this.lp = q }, Ph: function(c) { C.A.prototype.Ph.call(this, c); this.lp = q }, J: function(c) { this.lp && (this.cwa(), this.lp = t); C.ha.prototype.J.call(this, c) }, j: function() { return this.dQ(s, C.rect(0, 0, 0, 0), t, C.rect(0, 0, 0, 0)) }, dQ: function(c, d, f, g) { g === m && (g = f, f = t); c && this.kD(c, d, f, g); this.S(0.5, 0.5); return this.lp = q }, Ce: function(c, d, f) { c instanceof C.az ? (f = c = d, d = C.rect(0, 0, 0, 0)) : (d = d || C.rect(0, 0, 0, 0), f = f || C.rect(0, 0, 0, 0)); c || e("cc.Scale9Sprite.initWithFile(): file should be non-null"); var g = C.kb.av(c); if (!g) { var g = C.kb.sd(c), h = g.de; (this.Aa = h) || g.ye(function(c) { var d = this.Nh, d = C.size(d.width, d.height); c = c.i(); this.kD(this.Yi, C.rect(0, 0, c.width, c.height), t, this.df); this.De(d); this.lp = q; this.cf() }, this) } return this.dQ(C.Bh.create(c, 9), d, t, f) }, mj: function(c, d) { (!c || !c.ob()) && e("cc.Scale9Sprite.initWithSpriteFrame(): spriteFrame should be non-null and its texture should be non-null"); d = d || C.rect(0, 0, 0, 0); var f = c.Aa; (this.Aa = f) || c.ye(function(c) { var d = this.Nh, d = C.size(d.width, d.height); this.kD(this.Yi, c.Vh(), C.L == C.la && c.fg, this.df); this.De(d); this.lp = q; this.cf() }, this); f = C.Bh.create(c.ob(), 9); return this.dQ(f, c.Vh(), C.L == C.la && c.fg, d) }, pl: function(c, d) { c || e("cc.Scale9Sprite.initWithSpriteFrameName(): spriteFrameName should be non-null"); d = d || C.rect(0, 0, 0, 0); var f = C.Fe.nh(c); return f == s ? (C.log("cc.Scale9Sprite.initWithSpriteFrameName(): can't find the sprite frame by spriteFrameName"), t) : this.mj(f, d) }, B2a: function(c) { var d = new C.Sa; return d && d.dQ(this.Yi, this.cB, t, c) ? d: s }, $d: function(c) { if (this.Yi) { this.Fb = c; var d = this.Yi.le(); if (d) for (var f = 0, g = d.length; f < g; f++) d[f].$d(c) } }, qg: A("Fb"), kD: function(c, d, f, g) { var h = this.rb(), k = this.Xa(); d = C.rect(d.x, d.y, d.width, d.height); this.xf(q); this.Yi != c && (this.Yi = c); c = c.ob(); var n = c.de; if (this.Aa = n) { c = this.Yi; c.xf(q); n = this.df; n.x = g.x; n.y = g.y; n.width = g.width; n.height = g.height; this.WY = f; n = c.ob(); C.wG(d) && (d = n.i(), d = C.rect(0, 0, d.width, d.height)); var p = this.cB = d; p.x = d.x; p.y = d.y; p.width = d.width; p.height = d.height; this.Gg.width = d.width; this.Gg.height = d.height; p = this.Nh; 0 === p.width && 0 === p.height && (p.width = d.width, p.height = d.height); p = this.s9; g && (p.x = g.x, p.y = g.y, p.width = g.width, p.height = g.height); var r = d.width; g = d.height; C.wG(p) && (p.x = r / 3, p.y = g / 3, p.width = r / 3, p.height = g / 3); var v = p.x, y = p.width, z = r - (v + y), D = p.y, E = p.height, F = g - (D + E), G = 0, K = 0; g = C.rect(G, K, v, D); var G = G + v, p = C.rect(G, K, y, D), r = C.rect(G + y, K, z, D), G = 0, K = 0 + D, O = C.rect(G, K, v, E), G = G + v, U = C.rect(G, K, y, E), G = G + y, X = C.rect(G, K, z, E), G = 0, K = 0 + D + E, D = C.rect(G, K, v, F), G = G + v, v = C.rect(G, K, y, F), G = G + y, y = C.rect(G, K, z, F), z = { a: 1, b: 0, H: 0, P: 1, na: 0, oa: 0 }; if (f) { f = U; var F = y, G = D, K = r, E = g, N = X, Q = O, S = v, M = p, z = C.OJ(z, d.height + d.x, d.y), z = C.Pja(z), U = C.Gi(U, z), y = C.Gi(y, z), D = C.Gi(D, z), r = C.Gi(r, z); g = C.Gi(g, z); X = C.Gi(X, z); O = C.Gi(O, z); v = C.Gi(v, z); p = C.Gi(p, z); f.x = U.x; f.y = U.y; F.x = y.x; F.y = y.y; G.x = D.x; G.y = D.y; K.x = r.x; K.y = r.y; E.x = g.x; E.y = g.y; N.x = X.x; N.y = X.y; Q.x = O.x; Q.y = O.y; S.x = v.x; S.y = v.y; M.x = p.x; M.y = p.y; this.Iq = new C.u; this.Iq.ta(n, f, q); c.q(this.Iq, 0, C.Sa.a7); this.Zw = new C.u; this.Zw.ta(n, M, q); c.q(this.Zw, 1, C.Sa.d7); this.Nv = new C.u; this.Nv.ta(n, S, q); c.q(this.Nv, 1, C.Sa.Z6); this.lw = new C.u; this.lw.ta(n, Q, q); c.q(this.lw, 1, C.Sa.b7); this.Lw = new C.u; this.Lw.ta(n, N, q); c.q(this.Lw, 1, C.Sa.c7); this.iu = new C.u; this.iu.ta(n, E, q); c.q(this.iu, 2, C.Sa.e7); this.ju = new C.u; this.ju.ta(n, K, q); c.q(this.ju, 2, C.Sa.f7); this.Zs = new C.u; this.Zs.ta(n, G, q); c.q(this.Zs, 2, C.Sa.Kna); this.Ov = new C.u; this.Ov.ta(n, F, q) } else z = C.OJ(z, d.x, d.y), C.Io(U, z), C.Io(y, z), C.Io(D, z), C.Io(r, z), C.Io(g, z), C.Io(X, z), C.Io(O, z), C.Io(v, z), C.Io(p, z), this.Iq = new C.u, this.Iq.ta(n, U), c.q(this.Iq, 0, C.Sa.a7), this.Zw = new C.u, this.Zw.ta(n, p), c.q(this.Zw, 1, C.Sa.d7), this.Nv = new C.u, this.Nv.ta(n, v), c.q(this.Nv, 1, C.Sa.Z6), this.lw = new C.u, this.lw.ta(n, O), c.q(this.lw, 1, C.Sa.b7), this.Lw = new C.u, this.Lw.ta(n, X), c.q(this.Lw, 1, C.Sa.c7), this.iu = new C.u, this.iu.ta(n, g), c.q(this.iu, 2, C.Sa.e7), this.ju = new C.u, this.ju.ta(n, r), c.q(this.ju, 2, C.Sa.f7), this.Zs = new C.u, this.Zs.ta(n, D), c.q(this.Zs, 2, C.Sa.Kna), this.Ov = new C.u, this.Ov.ta(n, y); c.q(this.Ov, 2, C.Sa.Lna); this.Ca(d); this.q(c); this.Mba && (this.K(h), (255 !== k.r || 255 !== k.g || 255 !== k.b) && this.G(k)); return this.Mba = q } c.ye(function() { this.lp = q; this.cf() }, this) }, pc: function(c) { var d = C.Bh.create(c.ob(), 9), f = c.Aa; (this.Aa = f) || c.ye(function(c) { var d = this.Nh, d = C.size(d.width, d.height); this.kD(this.Yi, c.Vh(), C.L == C.la && c.fg, this.df); this.De(d); this.lp = q; this.cf() }, this); this.kD(d, c.Vh(), C.L == C.la && c.fg, C.rect(0, 0, 0, 0)); this.NM = this.PM = this.QM = this.OM = 0 } }); H = C.Sa.prototype; C.e(H, "preferredSize", H.y0, H.De); C.e(H, "capInsets", H.l0, H.Gc); C.e(H, "insetLeft", H.MAa, H.Jha); C.e(H, "insetTop", H.OAa, H.Lha); C.e(H, "insetRight", H.NAa, H.Kha); C.e(H, "insetBottom", H.LAa, H.Iha); H = s; C.Sa.create = function(c, d, f) { var g; if (2 === arguments.length) if ("string" == typeof c) { if ((g = new C.Sa) && g.Ce(c, d)) return g } else { if (c instanceof C.az && (g = new C.Sa) && g.Ce(c, f)) return g } else if (3 === arguments.length) { if ((g = new C.Sa) && g.Ce(c, d, f)) return g } else if (1 === arguments.length) { if ((g = new C.Sa) && g.Ce(c)) return g } else if (0 === arguments.length && (g = new C.Sa) && g.j()) return g; return s }; C.Sa.$xa = function(c) { var d = new C.Sa; return d && d.mj(c, m) ? d: s }; C.Sa.cda = function(c, d) { c || e("cc.Scale9Sprite.createWithSpriteFrameName(): spriteFrameName should be non-null"); var f = new C.Sa; return f && f.pl(c, d) ? f: s }; C.Sa.a7 = 0; C.Sa.d7 = 1; C.Sa.b7 = 2; C.Sa.c7 = 3; C.Sa.Z6 = 4; C.Sa.f7 = 5; C.Sa.e7 = 6; C.Sa.Lna = 7; C.NK = C.qe.extend({}); C.NK.Q6a = function(c) { var d = new C.NK; d.j(); d.Ca(0, c); return d }; C.NK.MXa = function(c) { var d = new C.NK; d.j(); d.Ca(c, 0); return d }; C.wK = C.qe.extend({ sb: q, ya: s, Eb: 0, qa: "MenuPassive", ctor: u(), Xa: function() { var c = this.ya; return C.color(c.r, c.g, c.b, c.a) }, G: function(c) { var d = this.ya; d.r = c.r; d.g = c.g; d.b = c.b; if (this.l && 0 < this.l.length) for (d = 0; d < this.l.length; d++) this.l[d] && this.l[d].sb && this.l[d].G(c); c.a !== m && !c.jx && this.K(c.a) }, rb: A("Eb"), K: function(c) { this.Eb = c; if (this.l && 0 < this.l.length) for (var d = 0; d < this.l.length; d++) this.l[d] && this.l[d].sb && this.l[d].K(c); this.ya.a = c }, fQ: function(c, d) { if (this.j()) { var f = C.Q.aa; this.Hm(q); this.S(0.5, 0.5); this.Ca(f); this.p(f.width / 2, f.height / 2); f = 0; if (c) { this.q(c, f); for (var g = 0; g < d.length; g++) d[g] && (f++, this.q(d[g], f)) } return q } return t }, Kwa: function() { this.RZ(C.eK) }, RZ: function(c) { var d = -c, f; if (this.l && 0 < this.l.length) for (f = 0; f < this.l.length; f++) this.l[f] && (d += this.l[f].i().height * this.l[f].pa + c); var g = 0, h = d / 2; if (this.l && 0 < this.l.length) for (f = 0; f < this.l.length; f++) this.l[f] && (g = Math.max(g, this.l[f].i().width), this.l[f].p(0, h - this.l[f].i().height * this.l[f].pa / 2), h -= this.l[f].i().height * this.l[f].pa + c); this.Ca(g, d) }, Hwa: function() { this.QZ(C.eK) }, QZ: function(c) { var d = -c, f; if (this.l && 0 < this.l.length) for (f = 0; f < this.l.length; f++) this.l[f] && (d += this.l[f].i().width * this.l[f].ia + c); var g = 0, h = -d / 2; if (this.l && 0 < this.l.length) for (f = 0; f < this.l.length; f++) this.l[f] && (g = Math.max(g, this.l[f].i().height), this.l[f].p(h + this.l[f].i().width * this.l[f].ia / 2, 0), h += this.l[f].i().width * this.l[f].ia + c); this.Ca(d, g) }, Iwa: function(c) { var d = [], f; for (f = 1; f < arguments.length; f++) d.push(arguments[f]); var g = -5, h = 0, k = 0, n = 0, p, r; if (this.l && 0 < this.l.length) for (f = 0; f < this.l.length; f++) this.l[f] && (h >= d.length ? C.log("cc.MenuPassive.alignItemsInColumns(): invalid row index") : (p = d[h]) ? (r = this.l[f].i().height, k = 0 | (k >= r || r == s ? k: r), ++n, n >= p && (g += k + 5, k = n = 0, ++h)) : C.log("cc.MenuPassive.alignItemsInColumns(): can not have zero columns on a row")); var v = C.Q.aa, y = p = k = h = 0, z = 0, g = g / 2; if (this.l && 0 < this.l.length) for (f = 0; f < this.l.length; f++) this.l[f] && (0 == p && (p = d[h], z = y = v.width / (1 + p)), r = this.l[f].i().height, k = 0 | (k >= r || r == s ? k: r), this.l[f].p(z - v.width / 2, g - this.l[f].i().height / 2), z += y, ++n, n >= p && (g -= k + 5, k = p = n = 0, ++h)) }, Jwa: function(c) { var d = [], f; for (f = 1; f < arguments.length; f++) d.push(arguments[f]); var g = [], h = [], k = -10, n = -5, p = 0, r = 0, v = 0, y, z; if (this.l && 0 < this.l.length) for (f = 0; f < this.l.length; f++) this.l[f] && (p >= d.length ? C.log("cc.MenuPassive.alignItemsInRows(): invalid row index") : (y = d[p]) ? (z = this.l[f].i().width, r = 0 | (r >= z || z == s ? r: z), n += 0 | this.l[f].i().height + 5, ++v, v >= y && (g.push(r), h.push(n), k += r + 10, r = v = 0, n = -5, ++p)) : C.log("cc.MenuPassive.alignItemsInColumns(): can't have zero rows on a column")); n = C.Q.aa; r = p = 0; y = s; var k = -k / 2, D = 0; if (this.l && 0 < this.l.length) for (f = 0; f < this.l.length; f++) this.l[f] && (y == s && (y = d[p], D = h[p]), z = this.l[f].i().width, r = 0 | (r >= z || z == s ? r: z), this.l[f].p(k + g[p] / 2, D - n.height / 2), D -= this.l[f].i().height + 10, ++v, v >= y && (k += r + 5, r = y = v = 0, ++p)) }, $d: u(), qg: B(t) }); C.wK.create = function(c) { c || (c = s); for (var d = [], f = 1; f < arguments.length; f++) d.push(arguments[f]); return (f = new C.wK) && f.fQ(c, d) ? f: s }; C.wK.oRa = function(c) { return C.wK.create(c, s) }; C.dK = C.Kc.extend({ tY: 0, BL: 0, Le: s, bua: s, Cba: s, nm: s, je: s, Kk: 0, Eq: 0, qa: "ControlSaturationBrightnessPicker", IBa: A("tY"), gAa: A("BL"), KH: A("Le"), tBa: A("BL"), NBa: A("Cba"), D0: A("nm"), F0: A("je"), a1: function(c, d) { return C.Kc.prototype.j.call(this) ? (this.Le = C.Ah.lx("colourPickerBackground.png", c, d, C.d(0, 0)), this.bua = C.Ah.lx("colourPickerOverlay.png", c, d, C.d(0, 0)), this.Cba = C.Ah.lx("colourPickerShadow.png", c, d, C.d(0, 0)), this.nm = C.Ah.lx("colourPicker.png", c, d, C.d(0.5, 0.5)), this.je = d, this.Kk = 35, this.Eq = this.Le.i().width / 2, q) : t }, Ib: function(c) { C.Kc.prototype.Ib.call(this, c); this.nm && this.nm.K(c ? 255 : 128) }, qja: function(c) { var d = new C.jT; d.tl = 1; d.Rf = c.Rf; d.ea = 1; c = C.Ah.WT(d); this.Le.G(C.color(0 | 255 * c.r, 0 | 255 * c.g, 0 | 255 * c.b)) }, EJa: function(c) { c = C.d(this.je.x + this.Kk + this.Eq * (1 - c.tl), this.je.y + this.Kk + this.Eq * c.ea); this.GO(c) }, GO: function(c) { var d = this.je.x + 0.5 * this.Le.Ae().width, f = this.je.y + 0.5 * this.Le.Ae().height, g = c.x - d, h = c.y - f, k = Math.sqrt(g * g + h * h), g = Math.atan2(h, g), h = 0.5 * this.Le.Ae().width; k > h && (c.x = d + h * Math.cos(g), c.y = f + h * Math.sin(g)); this.nm.p(c); c.x < this.je.x + this.Kk ? c.x = this.je.x + this.Kk: c.x > this.je.x + this.Kk + this.Eq - 1 && (c.x = this.je.x + this.Kk + this.Eq - 1); c.y < this.je.y + this.Kk ? c.y = this.je.y + this.Kk: c.y > this.je.y + this.Kk + this.Eq && (c.y = this.je.y + this.Kk + this.Eq); this.tY = 1 - Math.abs((this.je.x + this.Kk - c.x) / this.Eq); this.BL = Math.abs((this.je.y + this.Kk - c.y) / this.Eq) }, gF: function(c) { var d = this.je.x + 0.5 * this.Le.Ae().width, f = this.je.y + 0.5 * this.Le.Ae().height, d = c.x - d, f = c.y - f; return Math.sqrt(d * d + f * f) <= 0.5 * this.Le.Ae().width ? (this.GO(c), this.Bi(C.uo), q) : t }, nc: function(c) { if (!this.isEnabled() || !this.Ja) return t; c = this.Gp(c); return this.gF(c) }, yd: function(c) { c = this.Gp(c); this.gF(c) } }); H = C.dK.prototype; C.e(H, "saturation", H.IBa); C.e(H, "brightness", H.gAa); C.e(H, "background", H.KH); C.e(H, "overlay", H.tBa); C.e(H, "shadow", H.NBa); C.e(H, "slider", H.D0); C.e(H, "startPos", H.F0); H = s; C.dK.create = function(c, d) { var f = new C.dK; f.a1(c, d); return f }; C.cK = C.Kc.extend({ kA: 0, TF: 0, Le: s, nm: s, je: s, qa: "ControlHuePicker", GAa: A("kA"), AR: function(c) { this.kA = c; this.Gha(this.kA / 360) }, HAa: A("TF"), Gha: function(c) { this.TF = c; this.kA = 360 * this.TF; c = this.Le.Ae(); var d = 0.5 * c.width - 15, f = C.ng(360 * this.TF - 180); this.nm.p(this.je.x + 0.5 * c.width + d * Math.cos(f), this.je.y + 0.5 * c.height + d * Math.sin(f)) }, Ib: function(c) { C.Kc.prototype.Ib.call(this, c); this.nm && this.nm.K(c ? 255 : 128) }, KH: A("Le"), D0: A("nm"), F0: A("je"), a1: function(c, d) { return C.Kc.prototype.j.call(this) ? (this.Le = C.Ah.lx("huePickerBackground.png", c, d, C.d(0, 0)), this.nm = C.Ah.lx("colourPicker.png", c, d, C.d(0.5, 0.5)), this.nm.p(d.x, d.y + 0.5 * this.Le.Ae().height), this.je = d, this.TF = this.kA = 0, q) : t }, GO: function(c) { var d = this.Le.Ae(); this.AR(C.LC(Math.atan2(c.y - (this.je.y + 0.5 * d.height), c.x - (this.je.x + 0.5 * d.width))) + 180); this.Bi(C.uo) }, gF: function(c) { var d = Math.sqrt(Math.pow(c.x + 10, 2) + Math.pow(c.y, 2)); return 80 > d && 59 < d ? (this.GO(c), q) : t }, nc: function(c) { if (!this.isEnabled() || !this.Ja) return t; c = this.Gp(c); return this.gF(c) }, yd: function(c) { c = this.Gp(c); this.gF(c) } }); H = C.cK.prototype; C.e(H, "hue", H.GAa, H.AR); C.e(H, "huePercent", H.HAa, H.Gha); C.e(H, "background", H.KH); C.e(H, "slider", H.D0); C.e(H, "startPos", H.F0); H = s; C.cK.create = function(c, d) { var f = new C.cK; f.a1(c, d); return f }; C.OS = C.Kc.extend({ Yl: s, ft: s, dw: s, Le: s, qa: "ControlColourPicker", GCa: function(c) { this.Yl.Rf = c.kA; c = C.Ah.WT(this.Yl); C.Kc.prototype.G.call(this, C.color(0 | 255 * c.r, 0 | 255 * c.g, 0 | 255 * c.b)); this.Bi(C.uo); this.awa() }, Lxa: function(c) { this.Yl.tl = c.tY; this.Yl.ea = c.BL; c = C.Ah.WT(this.Yl); C.Kc.prototype.G.call(this, C.color(0 | 255 * c.r, 0 | 255 * c.g, 0 | 255 * c.b)); this.Bi(C.uo) }, G: function(c) { C.Kc.prototype.G.call(this, c); var d = new Pa; d.r = c.r / 255; d.g = c.g / 255; d.b = c.b / 255; d.a = 1; this.Yl = C.Ah.uma(d); this.dca() }, KH: A("Le"), j: function() { if (C.Kc.prototype.j.call(this)) { C.Fe.Lr(I.E4); var c = C.Bh.create(I.F4); this.q(c); this.Yl = new C.jT(0, 0, 0); this.Le = C.Ah.lx("menuColourPanelBackground.png", c, C.d(0, 0), C.d(0.5, 0.5)); var d = C.cc(this.Le.Ld(), C.d(this.Le.i().width / 2, this.Le.i().height / 2)); this.dw = C.cK.create(c, C.d(d.x + 8, d.y + 8)); this.ft = C.dK.create(c, C.d(d.x + 28, d.y + 28)); this.dw.nH(this, this.GCa, C.uo); this.ft.nH(this, this.Lxa, C.uo); this.dca(); this.q(this.dw); this.q(this.ft); this.Ca(this.Le.i()); return q } return t }, awa: function() { this.dw.AR(this.Yl.Rf); this.ft.qja(this.Yl) }, dca: function() { this.dw.AR(this.Yl.Rf); this.ft.qja(this.Yl); this.ft.EJa(this.Yl) }, Ib: function(c) { C.Kc.prototype.Ib.call(this, c); this.dw != s && this.dw.Ib(c); this.ft && this.ft.Ib(c) }, nc: B(t) }); H = C.OS.prototype; C.e(H, "background", H.KH); H = s; C.OS.create = function() { var c = new C.OS; c.j(); return c }; var I = I || {}; I.E4 = I.E4 || "res/extensions/CCControlColourPickerSpriteSheet.plist"; I.F4 = I.F4 || "res/extensions/CCControlColourPickerSpriteSheet.png"; C.F7 = 24; C.aNa = 8; C.QS = C.Kc.extend({ Hd: 0, Rb: 0, sc: 0, iN: 0, gN: 0, vc: s, Pt: s, Eh: s, qa: "ControlSlider", Qf: A("Hd"), ne: function(c) { c = Math.max(c, this.Rb); this.Hd = c = Math.min(c, this.sc); this.Tf(); this.Bi(C.uo) }, QH: A("Rb"), iJ: function(c) { this.iN = this.Rb = c; this.Rb >= this.sc && (this.sc = this.Rb + 1); this.ne(this.Hd) }, PH: A("sc"), hJ: function(c) { this.gN = this.sc = c; this.sc <= this.Rb && (this.Rb = this.sc - 1); this.ne(this.Hd) }, Zn: function(c) { c = c.mh(); c = this.getParent().wi(c); var d = this.Ae(); d.width += this.vc.i().width; d.x -= this.vc.i().width / 2; return C.Ju(d, c) }, Tx: function(c) { c = c.mh(); c = this.wi(c); 0 > c.x ? c.x = 0 : c.x > this.Eh.i().width && (c.x = this.Eh.i().width); return c }, fBa: A("iN"), LHa: x("iN"), dBa: A("gN"), JHa: x("gN"), XH: A("vc"), zBa: A("Pt"), bAa: A("Eh"), YCa: function(c, d, f) { return C.Kc.prototype.j.call(this) ? (this.Hm(t), this.Eh = c, this.Pt = d, this.vc = f, c = C.Ah.G4(c.Ae(), f.Ae()), this.Ca(c.width, c.height), this.Eh.S(0.5, 0.5), this.Eh.p(c.width / 2, c.height / 2), this.q(this.Eh), this.Pt.S(0, 0.5), this.Pt.p(0, c.height / 2), this.q(this.Pt), this.vc.p(0, c.height / 2), this.q(this.vc), this.Rb = 0, this.sc = 1, this.ne(this.Rb), q) : t }, Ib: function(c) { C.Kc.prototype.Ib.call(this, c); this.vc && this.vc.K(c ? 255 : 128) }, GIa: function(c) { this.Wu(q); this.vc.G(C.color.GRAY); this.ne(this.c4(c)) }, IIa: function(c) { this.ne(this.c4(c)) }, HIa: function() { this.oQ() && this.ne(this.c4(this.vc.Ld())); this.vc.G(C.color.WHITE); this.Wu(t) }, hXa: function(c) { c = c.mh(); c = this.wi(c); 0 > c.x ? c.x = 0 : c.x > this.Eh.i().width + C.F7 && (c.x = this.Eh.i().width + C.F7); return c }, nc: function(c) { if (!this.Zn(c) || !this.isEnabled() || !this.Ja) return t; c = this.Tx(c); this.GIa(c); return q }, yd: function(c) { c = this.Tx(c); this.IIa(c) }, cd: function() { this.HIa(C.d(0, 0)) }, Tf: function() { this.vc.rs((this.Hd - this.Rb) / (this.sc - this.Rb) * this.Eh.i().width); var c = this.Pt.WH(), c = C.rect(c.x, c.y, this.vc.Rc(), c.height); this.Pt.qc(c, this.Pt.jf) }, c4: function(c) { c = c.x / this.Eh.i().width; return Math.max(Math.min(this.Rb + c * (this.sc - this.Rb), this.gN), this.iN) } }); H = C.QS.prototype; C.e(H, "value", H.Qf, H.ne); C.e(H, "minValue", H.QH, H.iJ); C.e(H, "maxValue", H.PH, H.hJ); C.e(H, "minAllowedValue", H.fBa, H.LHa); C.e(H, "maxAllowedValue", H.dBa, H.JHa); C.e(H, "thumbSprite", H.XH); C.e(H, "progressSprite", H.zBa); C.e(H, "backgroundSprite", H.bAa); H = s; C.QS.create = function(c, d, f) { "string" == typeof c && (c = C.u.create(c), d = C.u.create(d), f = C.u.create(f)); var g = new C.QS; g.YCa(c, d, f); return g }; C.q5 = C.Kc.extend({ If: s, aaa: 0, dG: t, FA: t, qa: "ControlSwitch", ctor: function() { C.Kc.prototype.ctor.call(this) }, W0: function(c, d, f, g, h, k) { c || e("cc.ControlSwitch.initWithMaskSprite(): maskSprite should be non-null."); d || e("cc.ControlSwitch.initWithMaskSprite(): onSprite should be non-null."); f || e("cc.ControlSwitch.initWithMaskSprite(): offSprite should be non-null."); g || e("cc.ControlSwitch.initWithMaskSprite(): thumbSprite should be non-null."); return this.j() ? (this.FA = q, this.If = new C.r5, this.If.W0(c, d, f, g, h, k), this.If.p(this.If.i().width / 2, this.If.i().height / 2), this.q(this.If), this.Hm(t), this.S(0.5, 0.5), this.Ca(this.If.i()), q) : t }, ER: function(c, d) { var f = (this.FA = c) ? this.If.Kt: this.If.ww; d || t ? this.If.Ya(C.fv.create(0.2, "sliderXPosition", this.If.tr, f)) : this.If.MR(f); this.Bi(C.uo) }, AYa: A("FA"), HXa: A("dG"), Ib: function(c) { this.Wc = c; this.If.K(c ? 255 : 128) }, Tx: function(c) { c = c.mh(); return c = this.wi(c) }, nc: function(c) { if (!this.Zn(c) || !this.isEnabled() || !this.Ja) return t; this.dG = t; this.aaa = this.Tx(c).x - this.If.tr; this.If.vc.G(C.color.GRAY); this.If.Tf(); return q }, yd: function(c) { c = this.Tx(c); c = C.d(c.x - this.aaa, 0); this.dG = q; this.If.MR(c.x) }, cd: function(c) { c = this.Tx(c); this.If.vc.G(C.color.WHITE); this.dG ? this.ER(!(c.x < this.If.i().width / 2), q) : this.ER(!this.FA, q) }, Xe: function(c) { c = this.Tx(c); this.If.vc.G(C.color.WHITE); this.dG ? this.ER(!(c.x < this.If.i().width / 2), q) : this.ER(!this.FA, q) } }); C.q5.create = function(c, d, f, g, h, k) { var n = new C.q5; return n && n.W0(c, d, f, g, h, k) ? n: s }; C.r5 = C.u.extend({ tr: 0, Kt: 0, ww: 0, Qba: 0, sX: 0, tX: s, un: s, hr: s, vc: s, kG: s, iG: s, Hz: s, Ud: s, l9: s, ctor: function() { C.u.prototype.ctor.call(this); this.sX = this.ww = this.Kt = this.tr = 0; this.tX = C.size(0, 0); this.iG = this.kG = this.vc = this.hr = this.un = s }, W0: function(c, d, f, g, h, k) { return C.u.prototype.ta.call(this, c.ob()) ? (this.Kt = 0, this.ww = -d.i().width + g.i().width / 2, this.tr = this.Kt, this.Uha(d), this.Sha(f), this.qJ(g), this.Tha(h), this.Rha(k), this.Ud = c, c = this.tX = this.Ud.i(), this.Ud.p(0, 0), this.Hz = C.Tc.create(), this.Hz.S(0.5, 0.5), this.Hz.p(c.width / 2, c.height / 2), this.Hz.OR(this.Ud), this.l9 = C.yv.create(c.width, c.height), this.Hz.q(this.l9.E0()), this.q(this.Hz), this.q(this.vc), this.Tf(), q) : t }, Tf: function() { this.un.p(this.un.i().width / 2 + this.tr, this.un.i().height / 2); this.hr.p(this.un.i().width + this.hr.i().width / 2 + this.tr, this.hr.i().height / 2); this.kG && this.kG.p(this.un.Rc() - this.vc.i().width / 6, this.un.i().height / 2); this.iG && this.iG.p(this.hr.Rc() + this.vc.i().width / 6, this.hr.i().height / 2); this.vc.p(this.un.i().width + this.tr, this.tX.height / 2) }, MR: function(c) { c <= this.ww ? c = this.ww: c >= this.Kt && (c = this.Kt); this.tr = c; this.Tf() }, QBa: A("tr"), Csa: function() { return this.un.i().width }, zsa: function() { return this.hr.i().height }, Z3: function(c, d) { C.log("key \x3d " + d + ", value \x3d " + c); this.MR(c) }, SHa: x("Kt"), qBa: A("Kt"), RHa: x("ww"), nBa: A("ww"), GHa: function(c) { this.Ud.Va(c) }, $Aa: function() { return this.Ud.ob() }, o5a: x("Qba"), UWa: A("Qba"), FHa: x("sX"), ZAa: A("sX"), Uha: x("un"), rBa: A("un"), Sha: x("hr"), oBa: A("hr"), qJ: x("vc"), XH: A("vc"), Tha: x("kG"), pBa: A("kG"), Rha: x("iG"), mBa: A("iG") }); H = C.r5.prototype; C.e(H, "sliderX", H.QBa, H.MR); C.e(H, "onPos", H.qBa, H.SHa); C.e(H, "offPos", H.nBa, H.RHa); C.e(H, "maskTexture", H.$Aa, H.GHa); C.e(H, "maskPos", H.ZAa, H.FHa); C.e(H, "onSprite", H.rBa, H.Uha); C.e(H, "offSprite", H.oBa, H.Sha); C.e(H, "thumbSprite", H.XH, H.qJ); C.e(H, "onLabel", H.pBa, H.Tha); C.e(H, "offLabel", H.mBa, H.Rha); C.e(H, "onSideWidth", H.Csa); C.e(H, "offSideWidth", H.zsa); H = s; C.h5 = 0; C.i5 = 1; C.XJ = 2; C.ED = C.color(55, 55, 55); C.LS = C.color(147, 147, 147); C.g5 = "CourierNewPSMT"; C.j4 = 0.15; C.Cja = 12; C.RS = C.Kc.extend({ bh: s, Si: s, Gt: s, Nt: s, Hd: 0, oF: t, pz: t, ou: t, Rb: 0, sc: 0, $t: 0, XG: t, bx: C.XJ, YE: 0, qa: "ControlStepper", ctor: function() { C.Kc.prototype.ctor.call(this); this.Nt = this.Gt = this.Si = this.bh = s; this.Hd = 0; this.ou = this.pz = this.oF = t; this.$t = this.sc = this.Rb = 0; this.XG = t; this.bx = C.XJ; this.YE = 0 }, TCa: function(c, d) { c || e("cc.ControlStepper.initWithMinusSpriteAndPlusSprite(): Minus sprite should be non-null."); d || e("cc.ControlStepper.initWithMinusSpriteAndPlusSprite(): Plus sprite should be non-null."); if (this.j()) { this.oF = this.pz = q; this.Rb = 0; this.sc = 100; this.Hd = 0; this.$t = 1; this.ou = t; this.Hm(t); this.Oha(c); this.bh.p(c.i().width / 2, c.i().height / 2); this.q(this.bh); this.Nha(C.fa.create("-", C.g5, 40, C.size(40, 40), C.Fs, C.MU)); this.Gt.G(C.LS); this.Gt.p(this.bh.i().width / 2, this.bh.i().height / 2); this.bh.q(this.Gt); this.Xha(d); this.Si.p(c.i().width + d.i().width / 2, c.i().height / 2); this.q(this.Si); this.Wha(C.fa.create("+", C.g5, 40, C.size(40, 40), C.Fs, C.MU)); this.Nt.G(C.ED); this.Nt.p(this.Si.i().width / 2, this.Si.i().height / 2); this.Si.q(this.Nt); var f = C.Ah.G4(this.bh.Ae(), this.Si.Ae()); this.Ca(this.bh.i().width + this.Si.i().height, f.height); return q } return t }, BIa: function(c) { if (this.ou = c) this.Gt.G(C.ED), this.Nt.G(C.ED); this.ne(this.Hd) }, uCa: A("ou"), iJ: function(c) { c >= this.sc && e("cc.ControlStepper.setMinimumValue(): minimumValue should be numerically less than maximumValue."); this.Rb = c; this.ne(this.Hd) }, QH: A("Rb"), hJ: function(c) { c <= this.Rb && e("cc.ControlStepper.setMaximumValue(): maximumValue should be numerically less than maximumValue."); this.sc = c; this.ne(this.Hd) }, PH: A("sc"), ne: function(c) { this.w3(c, q) }, Qf: A("Hd"), pIa: function(c) { 0 >= c && e("cc.ControlStepper.setMaximumValue(): stepValue should be numerically greater than 0."); this.$t = c }, WBa: A("$t"), rDa: A("oF"), w3: function(c, d) { c < this.Rb ? c = this.ou ? this.sc: this.Rb: c > this.sc && (c = this.ou ? this.Rb: this.sc); this.Hd = c; this.ou || (this.Gt.G(c == this.Rb ? C.LS: C.ED), this.Nt.G(c == this.sc ? C.LS: C.ED)); d && this.Bi(C.uo) }, Pia: function() { this.YE = -1; this.rg(this.update, C.j4, C.xv, 3 * C.j4) }, Ria: function() { this.Zh(this.update) }, update: function() { this.YE++; this.YE < C.Cja && 0 != this.YE % 3 || (this.bx == C.h5 ? this.w3(this.Hd - this.$t, this.oF) : this.bx == C.i5 && this.w3(this.Hd + this.$t, this.oF)) }, ija: function(c) { c.x < this.bh.i().width && this.Hd > this.Rb ? (this.bx = C.h5, this.bh.G(C.color.GRAY), this.Si.G(C.color.WHITE)) : c.x >= this.bh.i().width && this.Hd < this.sc ? (this.bx = C.i5, this.bh.G(C.color.WHITE), this.Si.G(C.color.GRAY)) : (this.bx = C.XJ, this.bh.G(C.color.WHITE), this.Si.G(C.color.WHITE)) }, nc: function(c) { if (!this.Zn(c) || !this.isEnabled() || !this.Ja) return t; c = this.Gp(c); this.ija(c); this.XG = q; this.pz && this.Pia(); return q }, yd: function(c) { this.Zn(c) ? (c = this.Gp(c), this.ija(c), this.XG || (this.XG = q, this.pz && this.Pia())) : (this.XG = t, this.bx = C.XJ, this.bh.G(C.color.WHITE), this.Si.G(C.color.WHITE), this.pz && this.Ria()) }, cd: function(c) { this.bh.G(C.color.WHITE); this.Si.G(C.color.WHITE); this.pz && this.Ria(); this.Zn(c) && (c = this.Gp(c), this.ne(this.Hd + (c.x < this.bh.i().width ? 0 - this.$t: this.$t))) }, Oha: x("bh"), hBa: A("bh"), Xha: x("Si"), wBa: A("Si"), Nha: x("Gt"), gBa: A("Gt"), Wha: x("Nt"), vBa: A("Nt") }); H = C.RS.prototype; C.e(H, "wraps", H.uCa, H.BIa); C.e(H, "value", H.Qf, H.ne); C.e(H, "minValue", H.QH, H.iJ); C.e(H, "maxValue", H.PH, H.hJ); C.e(H, "stepValue", H.WBa, H.pIa); C.e(H, "continuous", H.rDa); C.e(H, "minusSprite", H.hBa, H.Oha); C.e(H, "plusSprite", H.wBa, H.Xha); C.e(H, "minusLabel", H.gBa, H.Nha); C.e(H, "plusLabel", H.vBa, H.Wha); H = s; C.RS.create = function(c, d) { var f = new C.RS; return f && f.TCa(c, d) ? f: s }; C.PS = C.Kc.extend({ vc: s, RA: s, PA: s, Hd: 0, Rb: 0, sc: 1, qa: "ControlPotentiometer", cDa: function(c, d, f) { return this.j() ? (this.Zha(d), this.qJ(f), this.vc.p(d.Ld()), this.q(f, 2), this.q(d, 1), this.q(c), this.Ca(c.i()), this.Rb = 0, this.sc = 1, this.ne(this.Rb), q) : t }, Ib: function(c) { this.Ib(c); this.vc != NULL && this.vc.K(c ? 255 : 128) }, ne: function(c) { c < this.Rb && (c = this.Rb); c > this.sc && (c = this.sc); this.Hd = c; c = (c - this.Rb) / (this.sc - this.Rb); this.RA.X2(100 * c); this.vc.th(360 * c); this.Bi(C.uo) }, Qf: A("Hd"), iJ: function(c) { this.Rb = c; this.Rb >= this.sc && (this.sc = this.Rb + 1); this.ne(this.sc) }, QH: A("Rb"), hJ: function(c) { this.sc = c; this.sc <= this.Rb && (this.Rb = this.sc - 1); this.ne(this.Rb) }, PH: A("sc"), Zn: function(c) { c = this.Gp(c); return this.Iya(this.RA.Ld(), c) < Math.min(this.i().width / 2, this.i().height / 2) }, nc: function(c) { if (!this.Zn(c) || !this.isEnabled() || !this.Ja) return t; this.PA = this.Gp(c); this.NFa(this.PA); return q }, yd: function(c) { c = this.Gp(c); this.PFa(c) }, cd: function() { this.OFa(C.d(0, 0)) }, Iya: function(c, d) { var f = c.x - d.x, g = c.y - d.y; return Math.sqrt(f * f + g * g) }, Lwa: function(c, d, f, g) { return 180 * (Math.atan2(d.x - c.x, d.y - c.y) - Math.atan2(g.x - f.x, g.y - f.y)) / Math.PI }, NFa: function() { this.Wu(q); this.vc.G(C.color.GRAY) }, PFa: function(c) { var d = this.Lwa(this.RA.Ld(), c, this.RA.Ld(), this.PA); 180 < d ? d -= 360 : -180 > d && (d += 360); this.ne(this.Hd + d / 360 * (this.sc - this.Rb)); this.PA = c }, OFa: function() { this.vc.G(C.color.WHITE); this.Wu(t) }, qJ: x("vc"), XH: A("vc"), Zha: x("RA"), ABa: A("RA"), ZHa: x("PA"), JP: A("PA") }); H = C.PS.prototype; C.e(H, "value", H.Qf, H.ne); C.e(H, "minValue", H.QH, H.iJ); C.e(H, "maxValue", H.PH, H.hJ); C.e(H, "progressTimer", H.ABa, H.Zha); C.e(H, "thumbSprite", H.XH, H.qJ); C.e(H, "prevLocation", H.JP, H.ZHa); H = s; C.PS.create = function(c, d, f) { var g = new C.PS; return g && (c = C.u.create(c), f = C.u.create(f), d = C.Lb.create(C.u.create(d)), g.cDa(c, d, f)) ? g: s }; C.B7 = -1; C.bz = 0; C.IK = 1; C.HK = 2; C.Rxa = function(c) { var d = C.view; return c * ((d.ia + d.pa) / 2) / 160 }; C.Foa = C.O.extend({ MGa: u(), NGa: u() }); C.Ml = C.qe.extend({ NPa: 0, gPa: 0, ePa: 0, Oq: s, Kh: C.HK, fn: t, xra: s, Ta: s, sm: t, fN: s, hN: s, aF: t, jF: t, zG: s, pB: s, YG: 0, Kf: s, On: s, Baa: 0, Aaa: 0, mG: s, uY: t, Sba: s, ui: s, qa: "ScrollView", ctor: function() { C.qe.prototype.ctor.call(this); this.xra = C.d(0, 0); this.fN = C.d(0, 0); this.hN = C.d(0, 0); this.zG = C.d(0, 0); this.pB = C.d(0, 0); this.Kf = []; this.On = C.size(0, 0); this.mG = new C.az(0, 0, 0, 0); this.Sba = new C.az(0, 0, 0, 0) }, j: function() { return this.kI(C.size(200, 200), s) }, kI: function(c, d) { var f = C.d(0, 0); return C.qe.prototype.j.call(this) ? (this.Ta = d, this.Ta || (this.Ta = C.qe.create(), this.Ta.Hm(t), this.Ta.S(f)), this.VR(c), this.vh(q), this.Kf.length = 0, this.Oq = s, this.jF = this.aF = q, this.Kh = C.HK, this.Ta.p(f), this.YG = 0, this.q(this.Ta), this.Baa = this.Aaa = 1, q) : t }, SC: function(c, d) { if (d) this.lHa(c, 0.15); else { if (!this.aF) { var f = this.bs(), g = this.Fu(); c.x = Math.max(f.x, Math.min(g.x, c.x)); c.y = Math.max(f.y, Math.min(g.y, c.y)) } this.Ta.p(c) } }, lAa: function() { var c = this.Ta.Ld(); return C.d(c.x, c.y) }, lHa: function(c, d) { var f = C.Bs.create(d, c), g = C.Jc.create(this.Mva, this); this.Ta.Ya(C.La.create(f, g)); this.rg(this.OX) }, Cia: function(c, d) { if (d) this.CIa(c, 0.15); else { var f = this.Ta; if (f.SH() != c) { var g, h; 0 == this.YG ? (h = this.On, h = C.d(0.5 * h.width, 0.5 * h.height), h = this.vm(h)) : h = this.pB; g = f.wi(h); f.Za(Math.max(this.Baa, Math.min(this.Aaa, c))); g = f.vm(g); h = C.cc(h, g); this.SC(C.ho(f.Ld(), h)) } } }, Fea: function() { return this.Ta.SH() }, CIa: function(c, d) { if (0 < d) { var f = this.Ta.SH(); f != c && (f = C.fv.create(d, "zoomScale", f, c), this.Ya(f)) } else this.Cia(c) }, bs: function() { var c = this.Ta, d = c.i(), f = this.On; return C.d(f.width - d.width * c.ia, f.height - d.height * c.pa) }, Fu: function() { return C.d(0, 0) }, zYa: function(c) { var d = this.lAa(), f = this.On, g = this.Fea(), d = C.rect( - d.x / g, -d.y / g, f.width / g, f.height / g); return C.gGa(d, c.Ae()) }, pause: function() { this.Ta.pause(); for (var c = this.Ta.le(), d = 0; d < c.length; d++) c[d].pause(); this._super() }, nk: function() { for (var c = this.Ta.le(), d = 0, f = c.length; d < f; d++) c[d].nk(); this.Ta.nk(); this._super() }, oYa: A("fn"), OYa: A("sm"), mDa: A("aF"), mha: x("aF"), rCa: A("On"), VR: function(c) { this.On = c; C.A.prototype.Ca.call(this, c) }, kAa: A("Ta"), uha: function(c) { c && (this.xf(q), this.Ta = c, c.Hm(t), c.S(0, 0), this.q(c), this.VR(this.On)) }, $B: A("Kh"), sh: x("Kh"), ZB: A("Oq"), bq: x("Oq"), nc: function(c) { if (!this.Ja) return t; var d = this.VW(), f = this.Ta, g = f.vm(f.Bp(c)), h = this.Kf; if (2 < h.length || this.sm || !C.Ju(d, g)) return t; h.push(c); 1 === h.length ? (this.pB = this.Bp(c), this.sm = t, this.fn = q, this.zG.x = 0, this.YG = this.zG.y = 0) : 2 == h.length && (this.pB = C.S1(this.Bp(h[0]), this.Bp(h[1])), this.YG = C.kga(f.Bp(h[0]), f.Bp(h[1])), this.fn = t); return q }, yd: function(c) { if (this.Ja) if (1 === this.Kf.length && this.fn) { this.sm = q; this.VW(); var d = this.Bp(c); c = C.cc(d, this.pB); var f = 0, g = this.Kh, h; if (g === C.IK) f = c.y, h = this.Ta.Vd(), this.bs().y <= h && h <= this.Fu().y || (c.y *= 0.35); else if (g === C.bz) f = c.x, h = this.Ta.Rc(), this.bs().x <= h && h <= this.Fu().x || (c.x *= 0.35); else { f = Math.sqrt(c.x * c.x + c.y * c.y); h = this.Ta.Vd(); var k = this.bs(), n = this.Fu(); k.y <= h && h <= n.y || (c.y *= 0.35); h = this.Ta.Rc(); k.x <= h && h <= n.x || (c.x *= 0.35) } if (this.sm || !(0.04375 > Math.abs(C.Rxa(f)))) if (this.sm || (c.x = 0, c.y = 0), this.pB = d, this.sm = q, this.fn) { switch (g) { case C.IK: c.x = 0; break; case C.bz: c.y = 0 } f = this.Ta.Ld(); d = f.x + c.x; f = f.y + c.y; this.zG = c; this.SC(C.d(d, f)) } } else 2 === this.Kf.length && !this.fn && (c = C.kga(this.Ta.Bp(this.Kf[0]), this.Ta.Bp(this.Kf[1])), this.Cia(this.Fea() * c / this.YG)) }, cd: function() { this.Ja && (1 == this.Kf.length && this.sm && this.rg(this.WV), this.Kf.length = 0, this.sm = this.fn = t) }, Xe: function() { this.Ja && (this.Kf.length = 0, this.sm = this.fn = t) }, Ca: function(c, d) { this.Ta != s && (d === m ? this.Ta.Ca(c) : this.Ta.Ca(c, d), this.eS()) }, Qh: function(c) { var d = this.Ta; d != s && (d.Qh(c), this.eS()) }, Ph: function(c) { var d = this.Ta; d != s && (d.Ph(c), this.eS()) }, i: function() { return this.Ta.i() }, eS: function() { if (this.Ta != s) { var c = this.On, d = this.Fu(); this.fN.x = d.x + 0.2 * c.width; this.fN.y = d.y + 0.2 * c.height; d = this.bs(); this.hN.x = d.x - 0.2 * c.width; this.hN.y = d.y - 0.2 * c.height } }, pDa: A("jF"), sha: x("jF"), J: function(c) { if (this.Ja) { c = c || C.t; var d, f = this.l, g, h; if (C.L === C.cb) { c.save(); this.transform(c); this.m9(c); if (f && 0 < f.length) { h = f.length; this.ed(); for (d = 0; d < h; d++) if ((g = f[d]) && 0 > g.Wa) g.J(c); else break; for (this.ka(c); d < h; d++) f[d].J(c) } else this.ka(c); this.c9(); c.restore() } else { C.Zr(); var k = this.grid; k && k.zi() && (k.px(), this.CJ()); this.transform(c); this.m9(c); if (f && 0 < f.length) { h = f.length; for (d = 0; d < h; d++) if ((g = f[d]) && 0 > g.Wa) g.J(); else break; for (this.ka(c); d < h; d++) f[d].J() } else this.ka(c); this.c9(c); k && k.zi() && k.mx(this); C.Yr() } } }, q: function(c, d, f) { c || e(Error("child must not nil!")); d = d || c.Wa; f = f || c.Fm(); this.Ta != c ? this.Ta.q(c, d, f) : C.qe.prototype.q.call(this, c, d, f) }, k1: function() { return this.ui != s }, vh: function(c) { this.ui && C.Ka.removeListener(this.ui); this.ui = s; c ? (c = C.Oa.create({ event: C.Oa.Gs }), this.nc && (c.nc = this.nc.bind(this)), this.yd && (c.yd = this.yd.bind(this)), this.cd && (c.cd = this.cd.bind(this)), this.Xe && (c.Xe = this.Xe.bind(this)), this.ui = c, C.Ka.addListener(c, this)) : (this.sm = this.fn = t, this.Kf.length = 0) }, SOa: B(s), xua: function(c) { var d = this.bs(), f = this.Fu(), g = this.Kh, h = this.Ta.Ld(), k = h.x, n = h.y; if (g === C.HK || g === C.bz) k = Math.max(k, d.x), k = Math.min(k, f.x); if (g == C.HK || g == C.IK) n = Math.min(n, f.y), n = Math.max(n, d.y); (n != h.y || k != h.x) && this.SC(C.d(k, n), c) }, WV: function() { if (this.fn) this.Zh(this.WV); else { var c, d; c = this.Ta.Ld(); var f = this.zG; this.Ta.p(c.x + f.x, c.y + f.y); this.aF ? (c = this.fN, d = this.hN) : (c = this.Fu(), d = this.bs()); var g = this.Ta.Rc(), h = this.Ta.Vd(); f.x *= 0.95; f.y *= 0.95; this.SC(C.d(g, h)); if (1 >= Math.abs(f.x) && 1 >= Math.abs(f.y) || h > c.y || h < d.y || g > c.x || g < d.x || g == c.x || g == d.x || h == c.y || h == d.y) this.Zh(this.WV), this.xua(q) } }, OX: function() { this.fn && this.Zh(this.OX) }, Mva: function() { this.Zh(this.OX) }, m9: function(c) { if (this.jF) { this.uY = t; var d = this.VW(), f = C.view, g = this.ia, h = this.pa; c = c || C.t; if (C.L === C.cb) d = this.On.width * g * f.ia, f = this.On.height * h * f.pa, c.beginPath(), c.rect(0, 0, d, -f), c.clip(), c.closePath(); else if (f = C.view, f.ADa()) { if (this.uY = q, this.mG = f.JBa(), C.fGa(d, this.mG)) { var k = this.mG; c = Math.max(d.x, k.x); h = Math.max(d.y, k.y); g = Math.min(d.x + d.width, k.x + k.width); d = Math.min(d.y + d.height, k.y + k.height); f.LR(c, h, g - c, d - h) } } else c.enable(c.SCISSOR_TEST), f.LR(d.x, d.y, d.width, d.height) } }, c9: function(c) { this.jF && C.L === C.la && (this.uY ? (c = this.mG, C.view.LR(c.x, c.y, c.width, c.height)) : (c = c || C.t, c.disable(c.SCISSOR_TEST))) }, QOa: u(), VW: function() { for (var c = this.vm(C.d(0, 0)), d = this.On, f = this.ia, g = this.pa, h = this.Vb; h != s; h = h.getParent()) f *= h.ia, g *= h.pa; 0 > f && (c.x += d.width * f, f = -f); 0 > g && (c.y += d.height * g, g = -g); h = this.Sba; h.x = c.x; h.y = c.y; h.width = d.width * f; h.height = d.height * g; return h } }); H = C.Ml.prototype; C.e(H, "minOffset", H.bs); C.e(H, "maxOffset", H.Fu); C.e(H, "bounceable", H.mDa, H.mha); C.e(H, "viewSize", H.rCa, H.VR); C.e(H, "container", H.kAa, H.uha); C.e(H, "direction", H.$B, H.sh); C.e(H, "delegate", H.ZB, H.bq); C.e(H, "clippingToBounds", H.pDa, H.sha); H = s; C.Ml.create = function(c, d) { var f = new C.Ml; if (2 == arguments.length) { if (f && f.kI(c, d)) return f } else if (f && f.j()) return f; return s }; C.Joa = C.O.extend({ jJ: u(), Dm: B(0) }); C.Koa = C.Joa.extend({ EX: 0, ctor: function() { this.EX = 0 }, jJ: x("EX"), Dm: A("EX") }); function Sa(c, d) { return c.Dm() - d.Dm() } C.lS = C.O.extend({ En: s, ctor: function() { this.En = [] }, efa: function(c) { c || e("cc.ArrayForObjectSorting.insertSortedObject(): addObject should be non-null."); this.gDa(c, this.iC(c)) }, zGa: function(c) { if (0 != this.count()) { var d = this.iC(c); d < this.count() && d != C.zo && this.Ux(d).Dm() == c.Dm() && this.p2(d) } }, E4a: function(c, d) { var f = this.iC(d); if (f < this.count() && f != C.zo) { var g = this.Ux(f); g.Dm() == d.Dm() && (this.p2(f), g.jJ(c), this.efa(g)) } }, Yfa: function(c) { if (0 == this.count()) return s; var d = new C.Koa; d.jJ(c); var f = this.iC(d); f < this.count() && f != C.zo && (d = this.Ux(f), d.Dm() != c && (d = s)); return d }, zVa: B(s), iC: function(c) { var d = 0; if (c) { var f = 0; c = c.Dm(); for (var g = this.En, h = 0; h < g.length; h++) { var k = g[h].Dm(); if (c == k || c >= f && c < k) break; f = k; d++ } } else d = C.zo; return d }, count: function() { return this.En.length }, T_a: function() { var c = this.En; return 0 == c.length ? s: c[c.length - 1] }, Ux: function(c) { return this.En[c] }, wca: function(c) { this.En.push(c); this.En.sort(Sa) }, p2: function(c) { this.En.splice(c, 1); this.En.sort(Sa) }, gDa: function(c, d) { this.En.splice(d, 0, c); this.En.sort(Sa) } }); C.M7 = 0; C.ppa = 1; C.zpa = C.A.extend({ Yq: 0, qa: "TableViewCell", PUa: A("Yq"), xHa: x("Yq"), reset: function() { this.Yq = C.zo }, jJ: x("Yq"), Dm: A("Yq") }); H = C.zpa.prototype; C.e(H, "objectId", H.Dm, H.jJ); H = s; C.ANa = C.Foa.extend({ i6a: u(), h6a: u(), j6a: u(), k6a: u() }); C.zNa = C.O.extend({ bJa: function(c) { return this.Axa(c) }, Axa: function() { return C.size(0, 0) }, g6a: B(s), x0a: B(0) }); C.xU = C.Ml.extend({ sB: s, Qb: s, Cz: s, VV: s, jZ: s, sN: s, HL: s, Er: s, ctor: function() { C.Ml.prototype.ctor.call(this); this.sN = C.B7; this.HL = [] }, Dqa: function(c) { var d = 0, f = -1; switch (this.$B()) { case C.bz: c = c.x; break; default: c = c.y } for (var g = this.HL; f >= d;) { var h = 0 | d + (f - d) / 2, k = g[h], n = g[h + 1]; if (c >= k && c <= n) return h; c < k ? f = h - 1 : d = h + 1 } return 0 >= d ? 0 : -1 }, Zsa: function(c) { c = { x: c.x, y: c.y }; this.sB === C.M7 && (c.y = this.Ta.i().height - c.y); c = this.Dqa(c); - 1 != c && (c = Math.max(0, c), -1 < c && (c = C.zo)); return c }, Eqa: function(c) { switch (this.$B()) { case C.bz: c = C.d(this.HL[c], 0); break; default: c = C.d(0, this.HL[c]) } return c }, Kta: function(c) { var d = this.Eqa(c); c = this.VV.bJa(this, c); this.sB === C.M7 && (d.y = this.Ta.i().height - d.y - c.height); return d }, JPa: u(), sZ: function() { var c = C.size(0, 0); this.Ca(c); this.sN != this.Kh && (this.Kh == C.bz ? this.SC(C.d(0, 0)) : this.SC(C.d(0, this.bs().y)), this.sN = this.Kh) }, Caa: function(c) { this.Cz.wca(c); this.bt.zGa(c); C.Id(this.Qb, c.Yq); c.reset(); c.getParent() == this.Ta && this.Ta.removeChild(c, q) }, YN: function(c, d) { d.S(0, 0); d.p(this.Kta(c)); d.xHa(c) }, Y8: function(c) { c.getParent() != this.Ta && this.Ta.q(c); this.bt.efa(c); var d = this.Qb; c = c.Yq; - 1 == d.indexOf(c) && (d.push(c), d.sort(function(c, d) { return c - d })) }, pAa: A("VV"), vha: x("VV"), ZB: A("jZ"), bq: x("jZ"), zIa: function(c) { this.sB != c && (this.sB = c, 0 < this.bt.count() && this.mGa()) }, qCa: A("sB"), kI: function(c, d) { return C.Ml.prototype.kI.call(this, c, d) ? (this.bt = new C.lS, this.Cz = new C.lS, this.Qb = [], this.jZ = s, this.sB = C.ppa, this.sh(C.IK), C.Ml.prototype.bq.call(this, this), q) : t }, F6a: function(c) { if (! (c == C.zo || -1 < c)) { var d = this.r_(c); d && this.Caa(d); d = s; this.YN(c, d); this.Y8(d) } }, SXa: function(c) { if (! (c == C.zo || -1 < c)) { var d, f = this.bt; if (d = f.Yfa(c)) for (var g = d = f.iC(d); g < f.count(); g++) d = f.Ux(g), this.YN(d.Yq + 1, d); d = s; this.YN(c, d); this.Y8(d); this.sZ() } }, d2a: function(c) { if (! (c == C.zo || -1 < c)) { var d = this.r_(c); if (d) { var f = this.bt, g = f.iC(d); this.Caa(d); C.Id(this.Qb, c); for (c = f.count() - 1; c > g; c--) d = f.Ux(c), this.YN(d.Yq - 1, d) } } }, mGa: function() { this.sN = C.B7; for (var c = this.bt, d = this.Cz, f = this.Ta, g = 0, h = c.count(); g < h; g++) { var k = c.Ux(g); d.wca(k); k.reset(); k.getParent() == f && f.removeChild(k, q) } this.Qb = []; this.bt = new C.lS; this.sZ() }, uRa: function() { if (0 === this.Cz.count()) return s; var c = this.Cz.Ux(0); this.Cz.p2(0); return c }, r_: function(c) { return - 1 == this.Qb.indexOf(c) ? s: this.bt.Yfa(c) }, MGa: u(), NGa: u(), cd: function(c, d) { if (this.Ja) { if (this.Er) { var f = this.Ae(), g = C.d(f.x, f.y), g = this.Vb.vm(g); f.x = g.x; f.y = g.y; this.Er = s } C.Ml.prototype.cd.call(this, c, d) } }, nc: function(c, d) { if (!this.Ja) return t; var f = C.Ml.prototype.nc.call(this, c, d); if (1 === this.Kf.length) { var g; g = this.Ta.Bp(c); g = this.Zsa(g); this.Er = g === C.zo ? s: this.r_(g) } else this.Er && (this.Er = s); return f }, yd: function(c, d) { C.Ml.prototype.yd.call(this, c, d); this.Er && this.sm && (this.Er = s) }, Xe: function(c, d) { C.Ml.prototype.Xe.call(this, c, d); this.Er && (this.Er = s) } }); H = C.xU.prototype; C.e(H, "dataSource", H.pAa, H.vha); C.e(H, "delegate", H.ZB, H.bq); C.e(H, "verticalFillOrder", H.qCa, H.zIa); H = s; C.xU.create = function(c, d, f) { var g = new C.xU; g.kI(d, f); g.vha(c); g.sZ(); return g }; var Ta = "contentSize", Ua = "scale"; function Va(c) { C.log("Unexpected property: '" + c + "'!") } function Wa(c, d) { this.QGa = c; this.target = d } function Xa(c, d, f) { this.PGa = c; this.target = d; this.Qxa = f } C.Ea = C.O.extend({ Nz: s, ctor: function() { this.Nz = new C.Ev }, lEa: function(c, d) { return this.ji(c, d) }, zFa: function(c, d, f) { for (var g = f.zc(t), h = f.zc(t), h = g + h, k = 0; k < h; k++) { var n = k >= g, p = f.zc(t), r = f.wf(), v = t, y = f.$(); if (y === Ya || y === Za || y === $a) v = q; c instanceof C.zD ? c.fF && n && (c = c.fF, v = -1 != c.userObject.indexOf(r)) : n && c == f.Mc.hm && (n = c.userObject, n || (n = [], c.userObject = n), n.push(r)); switch (p) { case ab: p = this.sFa(c, d, f, r); v && this.HEa(c, d, r, p, f); break; case eb: p = this.qFa(c, d, f); v && this.Xx(c, d, r, p, f); break; case ib: p = this.rFa(c, d, f); v && this.GEa(c, d, r, p, f); break; case jb: p = this.uFa(c, d, f); v && this.es(c, d, r, p, f); break; case kb: p = this.tFa(c, d, f, r); v && this.IEa(c, d, r, p, f); break; case lb: p = this.lFa(c, d, f); v && this.FEa(c, d, r, p, f); break; case pb: p = this.iFa(c, d, f); v && this.Vx(c, d, r, p, f); break; case qb: p = this.gFa(c, d, f, r); v && this.EEa(c, d, r, p, f); break; case rb: p = this.jFa(c, d, f); v && this.EI(c, d, r, p, f); break; case sb: p = this.oFa(c, d, f); v && this.M1(c, d, r, p, f); break; case tb: p = this.pFa(c, d, f); v && this.Wx(c, d, r, p, f); break; case xb: p = this.kFa(c, d, f); v && this.K1(c, d, r, p, f); break; case yb: p = this.dFa(c, d, f, r); v && this.fo(c, d, r, p, f); break; case zb: p = this.vFa(c, d, f, r); v && this.fs(c, d, r, p, f); break; case Hb: p = this.YEa(c, d, f); v && this.DEa(c, d, r, p, f); break; case Ib: p = this.yFa(c, d, f); v && this.O1(c, d, r, p, f); break; case Jb: p = this.bFa(c, d, f, r); v && this.rl(c, d, r, p, f); break; case Kb: p = this.eFa(c, d, f, r); v && this.sj(c, d, r, p, f); break; case Lb: p = this.fFa(c, d, f); v && this.I1(c, d, r, p, f); break; case Mb: p = this.hFa(c, d, f); v && this.J1(c, d, r, p, f); break; case Nb: p = this.ZEa(c, d, f); v && this.rj(c, d, r, p, f); break; case Ob: p = f.Sl + this.mFa(c, d, f); v && this.L1(c, d, r, p, f); break; case Wb: p = this.nFa(c, d, f); v && this.FI(c, d, r, p, f); break; case Xb: p = this.wFa(c, d, f); v && this.N1(c, d, r, p, f); break; case Yb: p = this.xFa(c, d, f); v && this.GI(c, d, r, p, f); break; case Zb: p = this.$Ea(c, d, f); v && this.G1(c, d, r, p, f); break; case $b: p = this.aFa(c, d, f); v && p != s && this.H1(c, d, r, p, f); break; case ac: p = this.cFa(c, d, f); v && this.DI(c, d, r, p, f); break; default: C.log("Unexpected property type: '" + p + "'!") } } }, WTa: A("Nz"), ji: function() { return C.A.create() }, sFa: function(c, d, f, g) { var h = f.Yb(), k = f.Yb(), n = f.zc(t); d = f.Mc.AP(d); var p = C.FW(h, k, n, d); c.p(C.Vza(p, n, d)); - 1 < f.dn.indexOf(g) && f.Mc.iy([h, k, n], c, g); return p }, qFa: function(c, d, f) { c = f.Yb(); f = f.Yb(); return C.d(c, f) }, rFa: function(c, d, f) { c = f.Yb(); f = f.Yb(); return C.d(c, f) }, uFa: function(c, d, f) { c = f.Yb(); var g = f.Yb(), h = f.zc(t); d = f.Mc.AP(d); switch (h) { case bc: break; case ic: c = d.width - c; g = d.height - g; break; case jc: c = d.width * c / 100; g = d.height * g / 100; break; case kc: c = d.width * c / 100; break; case lc: g = d.height * g / 100; break; case mc: d = C.Jb.yu(); c *= d; g *= d; break; default: C.log("Unknown CCB type.") } return C.size(c, g) }, tFa: function(c, d, f, g) { d = f.Yb(); var h = f.Yb(), k = f.zc(t); C.kia(c, d, h, k); - 1 < f.dn.indexOf(g) && f.Mc.iy([d, h, k], c, g); k == nc && (d *= C.Jb.yu(), h *= C.Jb.yu()); return [d, h] }, iFa: function(c, d, f) { return f.Yb() }, gFa: function(c, d, f, g) { d = f.Yb(); - 1 < f.dn.indexOf(g) && f.Mc.iy(d, c, g); return d }, jFa: function(c, d, f) { c = f.Yb(); f.zc(t) == nc && (c *= C.Jb.yu()); return c }, oFa: function(c, d, f) { return f.zc(q) }, pFa: function(c, d, f) { return f.zc(q) }, kFa: function(c, d, f) { c = f.Yb(); f = f.Yb(); return [c, f] }, dFa: function(c, d, f, g) { d = f.VI(); - 1 < f.dn.indexOf(g) && f.Mc.iy(d, c, g); return d }, vFa: function(c, d, f, g) { d = f.wf(); var h = f.wf(), k; h != s && 0 != h.length && (0 == d.length ? (h = f.Sl + h, d = C.kb.sd(h), h = d.i(), h = C.rect(0, 0, h.width, h.height), k = C.di.create(d, h)) : (k = C.Fe, d = f.Sl + d, -1 == f.Ft.indexOf(d) && (k.Lr(d), f.Ft.push(d)), k = k.nh(h)), -1 < f.dn.indexOf(g) && f.Mc.iy(k, c, g)); return k }, YEa: function(c, d, f) { c = f.Sl + f.wf(); f = f.wf(); d = s; f = C.Jb.Efa(f); c = C.Jb.Efa(c); f != s && "" != f && (d = C.oH, d.nwa(c), d = d.ll(f)); return d }, yFa: function(c, d, f) { c = f.Sl + f.wf(); return "" != c ? C.kb.sd(c) : s }, bFa: function(c, d, f, g) { d = f.$(); - 1 < f.dn.indexOf(g) && f.Mc.iy(d, c, g); return d }, eFa: function(c, d, f, g) { d = f.$(); var h = f.$(), k = f.$(); d = { r: d, g: h, b: k }; - 1 < f.dn.indexOf(g) && f.Mc.iy(C.aK.create(d), c, g); return d }, fFa: function(c, d, f) { c = 0 | 255 * f.Yb(); d = 0 | 255 * f.Yb(); var g = 0 | 255 * f.Yb(), h = f.Yb(), h = 1 >= h ? 0 | 255 * h: h, k = 0 | 255 * f.Yb(), n = 0 | 255 * f.Yb(), p = 0 | 255 * f.Yb(); f = f.Yb(); var r = []; r[0] = { r: c, g: d, b: g, a: h }; r[1] = { r: k, g: n, b: p, a: 1 >= f ? 0 | 255 * f: f }; return r }, hFa: function(c, d, f) { c = f.VI(); f = f.VI(); return [c, f] }, ZEa: function(c, d, f) { c = f.zc(t); f = f.zc(t); return new C.Vm(c, f) }, mFa: function(c, d, f) { return f.wf() }, wFa: function(c, d, f) { return f.wf() }, xFa: function(c, d, f) { return f.wf() }, nFa: function(c, d, f) { return f.wf() }, $Ea: function(c, d, f) { d = f.wf(); var g = f.zc(t); if (g !== oc) { var h = s; if (f.qn) g === pc ? (f.PO(c), f.OO(d), f.NO(0)) : (f.zca(c), f.yca(d), f.xca(0)); else if (g === pc ? h = f.Mc.hm: g === qc && (h = f.Rd), h != s) if (0 < d.length) if (c = 0, h != s && h.NEa && (c = m), 0 == c && f.Bz != s && (c = m), 0 == c) C.log("Skipping selector '" + d + "' since no CCBSelectorResolver is present."); else return new Wa(c, h); else C.log("Unexpected empty selector."); else C.log("Unexpected NULL target for selector.") } return s }, aFa: function(c, d, f) { d = f.wf(); var g = f.zc(t), h = f.zc(t); if (g !== oc) if (f.qn) g == pc ? (f.PO(c), f.OO(d), f.NO(h)) : (f.zca(c), f.yca(d), f.xca(h)); else if (c = s, g == pc ? c = f.Mc.hm: g == qc && (c = f.Rd), c != s) if (0 < d.length) if (g = 0, c != s && c.MEa && (g = m), 0 == g && f.Bz != s && (g = m), 0 == g) C.log("Skipping selector '" + d + "' since no CCBSelectorResolver is present."); else return new Xa(g, c, h); else C.log("Unexpected empty selector."); else C.log("Unexpected NULL target for selector."); return s }, cFa: function(c, d, f) { var g = f.Sl + f.wf(), g = C.Jb.zya(g) + ".ccbi"; c = new C.Jb(f); var h = C.M.xd(g); h || (h = C.M.K0(g), h = C.M.Ifa(h), C.M.fj[g] = h); c.Au(h, f.Rd); c.Mc.f3(d.i()); c.iha(f.Iv); c.Mc.VC(f.Rd); d = c.Aga(t); f.iha(c.Iv); d && -1 != c.Mc.nz && c.Mc.v2(c.Mc.nz, 0); return d }, lFa: function(c, d, f) { c = f.Yb(); f = f.Yb(); return [c, f] }, HEa: function(c, d, f, g) { "position" === f ? c.p(g) : Va(f) }, Xx: function(c, d, f, g) { "anchorPoint" === f ? c.S(g) : Va(f) }, GEa: function(c, d, f) { Va(f) }, es: function(c, d, f, g) { f === Ta ? c.Ca(g) : Va(f) }, IEa: function(c, d, f, g) { f === Ua ? (c.gb(g[0]), c.pb(g[1])) : Va(f) }, FEa: function(c, d, f, g) { if ("skew" === f) c.nJ(g[0]), c.oJ(g[1]); else { d = f + "X"; var h = f + "Y"; (!c[d] || !c[h]) && Va(f); c[d](g[0]); c[h](g[1]) } }, Vx: function(c, d, f, g) { this.Nz.vl(g, f) }, EEa: function(c, d, f, g) { "rotation" === f ? c.th(g) : Va(f) }, EI: function(c, d, f) { Va(f) }, M1: function(c, d, f, g) { "tag" === f ? c.Qm(g) : Va(f) }, Wx: function(c, d, f) { Va(f) }, K1: function(c, d, f) { Va(f) }, fo: function(c, d, f, g) { "visible" === f ? c.va(g) : "ignoreAnchorPointForPosition" === f ? c.Hm(g) : Va(f) }, fs: function(c, d, f) { Va(f) }, DEa: function(c, d, f) { Va(f) }, O1: function(c, d, f) { Va(f) }, rl: function(c, d, f) { Va(f) }, sj: function(c, d, f) { Va(f) }, I1: function(c, d, f) { Va(f) }, J1: function(c, d, f) { Va(f) }, rj: function(c, d, f) { Va(f) }, L1: function(c, d, f) { Va(f) }, N1: function(c, d, f, g) { this.Nz.vl(g, f) }, GI: function(c, d, f) { Va(f) }, FI: function(c, d, f) { Va(f) }, G1: function(c, d, f) { Va(f) }, H1: function(c, d, f) { Va(f) }, DI: function(c, d, f) { Va(f) } }); C.Ea.M = function() { return new C.Ea }; C.CMa = C.O.extend({ C0a: u() }); C.bLa = C.O.extend({ NEa: u(), LEa: u(), MEa: u() }); C.aLa = C.O.extend({ lRa: u() }); C.$Ka = C.O.extend({ A0a: B(t), xEa: B(t) }); C.wS = C.Ea.extend({ ji: function() { return C.zD.create() }, DI: function(c, d, f, g, h) { "ccbFile" == f ? c.nha(g) : C.Ea.prototype.DI.call(this, c, d, f, g, h) } }); C.wS.M = function() { return new C.wS }; C.iq = C.Ea.extend({ ji: u(), H1: function(c, d, f, g, h) { "ccControl" == f ? c.nH(g.target, g.PGa, g.Qxa) : C.Ea.prototype.H1.call(this, c, d, f, g, h) }, fo: function(c, d, f, g, h) { "enabled" == f ? c.Ib(g) : "selected" == f ? c.Wu(g) : C.Ea.prototype.fo.call(this, c, d, f, g, h) } }); C.NS = C.iq.extend({ ji: function() { return C.Ym.create() }, fo: function(c, d, f, g, h) { "zoomOnTouchDown" == f ? c.Bia(g) : C.iq.prototype.fo.call(this, c, d, f, g, h) }, N1: function(c, d, f, g, h) { "title|1" == f ? c.RR(g, C.Rg) : "title|2" == f ? c.RR(g, C.jv) : "title|3" == f ? c.RR(g, C.iv) : C.iq.prototype.N1.call(this, c, d, f, g, h) }, FI: function(c, d, f, g, h) { "titleTTF|1" == f ? c.s3(g, C.Rg) : "titleTTF|2" == f ? c.s3(g, C.jv) : "titleTTF|3" == f ? c.s3(g, C.iv) : C.iq.prototype.FI.call(this, c, d, f, g, h) }, EI: function(c, d, f, g, h) { "titleTTFSize|1" == f ? c.t3(g, C.Rg) : "titleTTFSize|2" == f ? c.t3(g, C.jv) : "titleTTFSize|4" == f ? c.t3(g, C.iv) : C.iq.prototype.EI.call(this, c, d, f, g, h) }, Xx: function(c, d, f, g, h) { "labelAnchorPoint" == f ? c.U2(g) : C.iq.prototype.Xx.call(this, c, d, f, g, h) }, es: function(c, d, f, g, h) { "preferedSize" == f ? c.De(g) : C.iq.prototype.es.call(this, c, d, f, g, h) }, fs: function(c, d, f, g, h) { "backgroundSpriteFrame|1" == f ? g != s && c.D2(g, C.Rg) : "backgroundSpriteFrame|2" == f ? g != s && c.D2(g, C.jv) : "backgroundSpriteFrame|3" == f ? g != s && c.D2(g, C.iv) : C.iq.prototype.fs.call(this, c, d, f, g, h) }, sj: function(c, d, f, g, h) { "titleColor|1" == f ? c.QR(g, C.Rg) : "titleColor|2" == f ? c.QR(g, C.jv) : "titleColor|3" == f ? c.QR(g, C.iv) : C.iq.prototype.sj.call(this, c, d, f, g, h) } }); C.NS.M = function() { return new C.NS }; Ua = "scale"; C.dU = C.Ea.extend({ ji: function() { return C.Ml.create() }, es: function(c, d, f, g, h) { f == Ta ? c.VR(g) : C.Ea.prototype.es.call(this, c, d, f, g, h) }, DI: function(c, d, f, g, h) { "container" == f ? (c.uha(g), c.eS()) : C.Ea.prototype.DI.call(this, c, d, f, g, h) }, fo: function(c, d, f, g, h) { "clipsToBounds" == f ? c.sha(g) : "bounces" == f ? c.mha(g) : C.Ea.prototype.fo.call(this, c, d, f, g, h) }, Vx: function(c, d, f, g, h) { f == Ua ? c.Za(g) : C.Ea.prototype.Vx.call(this, c, d, f, g, h) }, Wx: function(c, d, f, g, h) { "direction" == f ? c.sh(g) : C.Ea.prototype.Wx.call(this, c, d, f, g, h) } }); C.dU.M = function() { return new C.dU }; var Ta = "contentSize", rc = "color", sc = "opacity", tc = "blendFunc"; C.cU = C.Ea.extend({ ji: function() { var c = C.Sa.create(); c.S(0, 0); return c }, sj: function(c, d, f, g, h) { f == rc ? (255 !== g.r || 255 !== g.g || 255 !== g.b) && c.G(g) : C.Ea.prototype.sj.call(this, c, d, f, g, h) }, rl: function(c, d, f, g, h) { f == sc ? c.K(g) : C.Ea.prototype.rl.call(this, c, d, f, g, h) }, rj: function(c, d, f, g, h) { f != tc && C.Ea.prototype.rj.call(this, c, d, f, g, h) }, fs: function(c, d, f, g, h) { "spriteFrame" == f ? c.pc(g) : C.Ea.prototype.fs.call(this, c, d, f, g, h) }, es: function(c, d, f, g, h) { f != Ta && ("preferedSize" == f ? c.De(g) : C.Ea.prototype.es.call(this, c, d, f, g, h)) }, Vx: function(c, d, f, g, h) { "insetLeft" == f ? c.Jha(g) : "insetTop" == f ? c.Lha(g) : "insetRight" == f ? c.Kha(g) : "insetBottom" == f ? c.Iha(g) : C.Ea.prototype.Vx.call(this, c, d, f, g, h) } }); C.cU.M = function() { return new C.cU }; rc = "color"; sc = "opacity"; tc = "blendFunc"; C.hU = C.Ea.extend({ ji: function() { return C.u.create() }, sj: function(c, d, f, g, h) { f === rc ? (255 !== g.r || 255 !== g.g || 255 !== g.b) && c.G(g) : C.Ea.prototype.sj.call(this, c, d, f, g, h) }, rl: function(c, d, f, g, h) { f === sc ? c.K(g) : C.Ea.prototype.rl.call(this, c, d, f, g, h) }, rj: function(c, d, f, g, h) { f === tc ? c.Yd(g) : C.Ea.prototype.rj.call(this, c, d, f, g, h) }, fs: function(c, d, f, g, h) { "displayFrame" === f ? g ? c.pc(g) : C.log("ERROR: SpriteFrame is null") : C.Ea.prototype.fs.call(this, c, d, f, g, h) }, J1: function(c, d, f, g, h) { "flip" === f ? (c.Nd(g[0]), c.Uf(g[1])) : C.Ea.prototype.J1.call(this, c, d, f, g, h) } }); C.hU.M = function() { return new C.hU }; C.Ck = C.Ea.extend({ ji: function() { var c = C.qe.create(); c.Ca(0, 0); return c }, fo: function(c, d, f, g, h) { "touchEnabled" === f || "isTouchEnabled" === f || "accelerometerEnabled" === f || "isAccelerometerEnabled" === f || "mouseEnabled" === f || "isMouseEnabled" === f || ("keyboardEnabled" === f || "isKeyboardEnabled" === f ? c.CHa && !C.Sc.wDa ? c.CHa(g) : C.log("The property 'isKeyboardEnabled' is not supported!") : C.Ea.prototype.fo.call(this, c, d, f, g, h)) } }); C.Ck.M = function() { return new C.Ck }; C.rT = C.Ck.extend({ ji: function() { return C.gd.create() }, sj: function(c, d, f, g, h) { f === rc ? c.G(g) : C.Ck.prototype.sj.call(this, c, d, f, g, h) }, rl: function(c, d, f, g, h) { f === sc ? c.K(g) : C.Ck.prototype.rl.call(this, c, d, f, g, h) }, rj: function(c, d, f, g, h) { f === tc ? c.Yd(g) : C.Ck.prototype.rj.call(this, c, d, f, g, h) } }); C.rT.M = function() { return new C.rT }; C.tT = C.Ck.extend({ ji: function() { return C.pq.create() }, sj: function(c, d, f, g, h) { "startColor" === f ? c.tg(g) : "endColor" == f ? c.sg(g) : C.Ck.prototype.sj.call(this, c, d, f, g, h) }, rl: function(c, d, f, g, h) { "startOpacity" === f ? c.tia(g) : "endOpacity" === f ? c.Aha(g) : C.Ck.prototype.rl.call(this, c, d, f, g, h) }, Xx: function(c, d, f, g, h) { "vector" === f ? c.UR(g) : C.Ck.prototype.Xx.call(this, c, d, f, g, h) }, rj: function(c, d, f, g, h) { f === tc ? c.Yd(g) : C.Ck.prototype.rj.call(this, c, d, f, g, h) } }); C.tT.M = function() { return new C.tT }; C.zT = C.Ck.extend({ ji: function() { var c = C.Yy.create(); c.Ca(0, 0); return c } }); C.zT.M = function() { return new C.zT }; C.F6 = C.Ea.extend({ ji: B(s), G1: function(c, d, f, g, h) { "block" === f ? s != g && c.pJ(g.QGa, g.target) : C.Ea.prototype.G1.call(this, c, d, f, g, h) }, fo: function(c, d, f, g, h) { "isEnabled" === f ? c.Ib(g) : C.Ea.prototype.fo.call(this, c, d, f, g, h) } }); C.xT = C.F6.extend({ ji: function() { return C.wT.create() }, fs: function(c, d, f, g, h) { "normalSpriteFrame" === f ? g != s && c.PHa(g) : "selectedSpriteFrame" === f ? g != s && c.jIa(g) : "disabledSpriteFrame" === f ? g != s && c.oHa(g) : C.F6.prototype.fs.call(this, c, d, f, g, h) } }); C.xT.M = function() { return new C.xT }; C.qT = C.Ea.extend({ ji: function() { return C.fa.create() }, sj: function(c, d, f, g, h) { f === rc ? (255 !== g.r || 255 !== g.g || 255 !== g.b) && c.G(g) : C.Ea.prototype.sj.call(this, c, d, f, g, h) }, rl: function(c, d, f, g, h) { f === sc ? c.K(g) : C.Ea.prototype.rl.call(this, c, d, f, g, h) }, rj: function(c, d, f, g, h) { f === tc ? c.Yd(g) : C.Ea.prototype.rj.call(this, c, d, f, g, h) }, FI: function(c, d, f, g, h) { "fontName" === f ? c.Zd(g) : C.Ea.prototype.FI.call(this, c, d, f, g, h) }, GI: function(c, d, f, g, h) { "string" === f ? c.sa(g) : C.Ea.prototype.GI.call(this, c, d, f, g, h) }, EI: function(c, d, f, g, h) { "fontSize" === f ? c.Od(g) : C.Ea.prototype.EI.call(this, c, d, f, g, h) }, Wx: function(c, d, f, g, h) { "horizontalAlignment" === f ? c.S2(g) : "verticalAlignment" === f ? c.y3(g) : C.Ea.prototype.Wx.call(this, c, d, f, g, h) }, es: function(c, d, f, g, h) { "dimensions" === f ? c.N2(g) : C.Ea.prototype.es.call(this, c, d, f, g, h) } }); C.qT.M = function() { return new C.qT }; C.pT = C.Ea.extend({ ji: function() { return C.rv.create() }, sj: function(c, d, f, g, h) { f === rc ? (255 !== g.r || 255 !== g.g || 255 !== g.b) && c.G(g) : C.Ea.prototype.sj.call(this, c, d, f, g, h) }, rl: function(c, d, f, g, h) { f === sc ? c.K(g) : C.Ea.prototype.rl.call(this, c, d, f, g, h) }, rj: function(c, d, f, g, h) { f === tc ? c.Yd(g) : C.Ea.prototype.rj.call(this, c, d, f, g, h) }, L1: function(c, d, f, g, h) { "fntFile" === f ? c.UC(g) : C.Ea.prototype.L1.call(this, c, d, f, g, h) }, GI: function(c, d, f, g, h) { "string" === f ? c.sa(g) : C.Ea.prototype.GI.call(this, c, d, f, g, h) } }); C.pT.M = function() { return new C.pT }; C.HT = C.Ea.extend({ ji: function() { return C.B.create() }, Wx: function(c, d, f, g, h) { "emitterMode" === f ? c.rk(g) : C.Ea.prototype.Wx.call(this, c, d, f, g, h) }, Xx: function(c, d, f, g, h) { "posVar" === f ? c.vk(g) : "gravity" === f ? c.oc(g) : C.Ea.prototype.Xx.call(this, c, d, f, g, h) }, Vx: function(c, d, f, g, h) { "emissionRate" === f ? c.qk(g) : "duration" === f ? c.Wh(g) : C.Ea.prototype.Vx.call(this, c, d, f, g, h) }, M1: function(c, d, f, g, h) { "totalParticles" === f ? c.yia(g) : C.Ea.prototype.M1.call(this, c, d, f, g, h) }, K1: function(c, d, f, g, h) { "life" === f ? (c.tk(g[0]), c.uk(g[1])) : "startSize" === f ? (c.wk(g[0]), c.xk(g[1])) : "endSize" === f ? (c.sk(g[0]), c.R2(g[1])) : "startSpin" === f ? (c.uia(g[0]), c.via(g[1])) : "endSpin" === f ? (c.Bha(g[0]), c.Cha(g[1])) : "angle" === f ? (c.ok(g[0]), c.pk(g[1])) : "speed" === f ? (c.Xh(g[0]), c.yj(g[1])) : "tangentialAccel" === f ? (c.no(g[0]), c.oo(g[1])) : "radialAccel" === f ? (c.wj(g[0]), c.xj(g[1])) : "startRadius" === f ? (c.n3(g[0]), c.o3(g[1])) : "endRadius" === f ? (c.P2(g[0]), c.Q2(g[1])) : "rotatePerSecond" === f ? (c.g3(g[0]), c.h3(g[1])) : C.Ea.prototype.K1.call(this, c, d, f, g, h) }, I1: function(c, d, f, g, h) { "startColor" === f ? (c.tg(g[0]), c.zj(g[1])) : "endColor" === f ? (c.sg(g[0]), c.uj(g[1])) : C.Ea.prototype.I1.call(this, c, d, f, g, h) }, rj: function(c, d, f, g, h) { f === tc ? c.Yd(g) : C.Ea.prototype.rj.call(this, c, d, f, g, h) }, O1: function(c, d, f, g, h) { "texture" === f ? c.Va(g) : C.Ea.prototype.O1.call(this, c, d, f, g, h) } }); C.HT.M = function() { return new C.HT }; C.Dj = C.O.extend({ Hq: s, ctor: function() { this.Hq = {} }, Mga: function() { this.lk("CCNode", C.Ea.M()); this.lk("CCLayer", C.Ck.M()); this.lk("CCLayerColor", C.rT.M()); this.lk("CCLayerGradient", C.tT.M()); this.lk("CCSprite", C.hU.M()); this.lk("CCLabelBMFont", C.pT.M()); this.lk("CCLabelTTF", C.qT.M()); this.lk("CCScale9Sprite", C.cU.M()); this.lk("CCScrollView", C.dU.M()); this.lk("CCBFile", C.wS.M()); this.lk("CCMenu", C.zT.M()); this.lk("CCMenuItemImage", C.xT.M()); this.lk("CCControlButton", C.NS.M()); this.lk("CCParticleSystemQuad", C.HT.M()) }, lk: function(c, d) { this.Hq[c] = d }, B6a: function(c) { this.Hq[c] && delete this.Hq[c] }, Mda: function(c) { return this.Hq[c] ? this.Hq[c] : s }, r1a: function(c) { if (c) for (var d in this.Hq) delete this.Hq[d]; this.Hq = {} } }); C.Dj.ZI = s; C.Dj.jEa = function() { return new C.Dj }; C.Dj.P5a = function() { C.Dj.ZI == s && (C.Dj.ZI = new C.Dj, C.Dj.ZI.Mga()); return C.Dj.ZI }; C.Dj.s1a = function() { C.Dj.ZI = s }; C.Dj.tEa = function() { var c = C.Dj.jEa(); c.Mga(); return c }; var ab = 0, jb = 1, eb = 2, ib = 3, kb = 4, qb = 5, sb = 6, pb = 7, xb = 8, yb = 9, zb = 10, Ib = 11, Jb = 12, Kb = 13, Lb = 14, Mb = 15, Nb = 16, Ob = 17, Yb = 18, Wb = 19, tb = 20, Zb = 21, Hb = 22, ac = 23, Xb = 24, $b = 25, rb = 26, lb = 27, Ya = 0, Za = 1, $a = 2, oc = 0, pc = 1, qc = 2, bc = 0, jc = 1, ic = 2, kc = 3, lc = 4, mc = 5, nc = 1; C.zD = C.A.extend({ fF: s, mTa: A("fF"), nha: x("fF") }); C.zD.create = function() { return new C.zD }; C.Jb = C.O.extend({ qn: t, Ih: s, Sl: "", bra: 0, Cg: 0, ht: 0, bZ: s, Ft: s, Rd: s, Mc: s, Iv: s, dn: s, eF: s, DV: s, GL: s, Bz: s, zw: s, Aw: s, BX: s, eV: s, HA: s, IA: s, GA: s, nPa: t, ctor: function(c, d, f, g) { this.bZ = []; this.Ft = []; this.Cg = this.ht = -1; 0 != arguments.length && (c instanceof C.Jb ? (this.Ft = c.Ft, this.eF = c.eF, this.GL = c.GL, this.Bz = c.Bz, this.DV = c.DV, this.HA = c.HA, this.IA = c.IA, this.GA = c.GA, this.zw = c.zw, this.Aw = c.Aw, this.Sl = c.Sl) : (this.eF = c, this.GL = d, this.Bz = f, this.DV = g)) }, oTa: A("Sl"), eHa: x("Sl"), Au: function(c, d) { this.Mc = new C.z4; this.Ih = c; this.bra = c.length; this.Cg = this.ht = 0; this.Rd = d; this.Mc.f3(C.Q.aa); return q }, bPa: function(c) { var d = this.cI(), f = "load " + c + " failed!"; d.open("GET", c, t); var g = s; if (/msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent)) { d.setRequestHeader("Accept-Charset", "x-user-defined"); d.send(s); if (200 != d.status) return C.log(f), s; if (d = C.RV(d.responseBody)) g = this.Nva(d), this.Vra[c] = g } else { d.overrideMimeType && d.overrideMimeType("text/plain; charset\x3dx-user-defined"); d.send(s); if (200 != d.status) return C.log(f), s; g = this.Nva(d.responseText); this.Vra[c] = g } return g }, Bga: function(c, d, f, g) { f == s ? f = C.Q.aa: f instanceof C.z4 && (g = f, f = C.Q.aa); var h = C.M.xd(c); h || (h = C.M.K0(c), h = C.M.Ifa(h), C.M.fj[c] = h); return this.bGa(h, d, f, g) }, bGa: function(c, d, f) { this.Au(c, d); c = this.Mc; c.f3(f); c.VC(d); this.zw = []; this.Aw = []; this.HA = []; this.IA = []; this.GA = []; this.Iv = new C.Ev; (d = this.Aga(q)) && -1 != c.nz && c.v2(c.nz, 0); if (this.qn) { f = []; c = []; for (var g = this.Iv, h = g.vB(), k = 0; k < h.length; k++) f.push(h[k]), c.push(g.Km(h[k])); this.BX = f; this.eV = c } return d }, nRa: function(c, d, f, g) { c = this.Bga(c, d, f, g); d = C.Ll.create(); d.q(c); return d }, nTa: A("GL"), pTa: A("Bz"), OSa: A("Mc"), p3a: x("Mc"), KSa: A("dn"), iVa: A("Ft"), iea: A("Rd"), zc: function(c) { for (var d = 0; ! this.O$();) d++; for (var f = 0, g = d - 1; 0 <= g; g--) this.O$() && (f |= 1 << g); f |= 1 << d; c = c ? f % 2 ? 0 | f / 2 : 0 | -f / 2 : f - 1; this.Mqa(); return c }, $: function() { var c = this.Ih[this.Cg]; this.Cg++; return c }, VI: function() { return 0 != this.$() }, Yb: function() { switch (this.$()) { case 0: return 0; case 1: return 1; case 2: return - 1; case 3: return 0.5; case 4: return this.zc(q); default: return this.XV(23, 8) } }, XV: function(c, d) { var f = c + d + 1, g = f >> 3; this.KV(f); var f = Math.pow(2, d - 1) - 1, h = this.Yaa(c + d, 1, g), k = this.Yaa(c, d, g), n = 0, p = 2, r = 0; do for (var v = this.JN(++r, g), y = c % 8 || 8, z = 1 << y; z >>= 1;) v & z && (n += 1 / p), p *= 2; while (c -= y); this.Cg += g; return k == (f << 1) + 1 ? n ? NaN: h ? -Infinity: Infinity: (1 + -2 * h) * (k || n ? !k ? Math.pow(2, -f + 1) * n: Math.pow(2, k - f) * (1 + n) : 0) }, Yaa: function(c, d, f) { var g = (c + d) % 8, h = c % 8, k = f - (c >> 3) - 1; c = f + ( - (c + d) >> 3); var n = k - c; d = this.JN(k, f) >> h & (1 << (n ? 8 - h: d)) - 1; for (n && g && (d += (this.JN(c++, f) & (1 << g) - 1) << (n--<<3) - h); n;) d += this.NY(this.JN(c++, f), (n--<<3) - h); return d }, JN: function(c, d) { return this.Ih[this.Cg + d - c - 1] }, NY: function(c, d) { for (++d; --d; c = 1073741824 == ((c %= 2147483648) & 1073741824) ? 2 * c: 2 * (c - 1073741824) + 2147483648); return c }, KV: function(c) { this.Cg + Math.ceil(c / 8) < this.Ih.length || e(Error("Index out of bound")) }, wf: function() { return this.bZ[this.zc(t)] }, vYa: A("qn"), JVa: A("HA"), KVa: A("IA"), IVa: A("GA"), LVa: A("zw"), MVa: A("Aw"), vVa: A("BX"), QSa: A("eV"), PSa: A("Iv"), iha: x("Iv"), yca: function(c) { this.HA.push(c) }, zca: function(c) { this.IA.push(c) }, xca: function(c) { this.GA.push(c) }, OO: function(c) { this.Mc.OO(c) }, PO: function(c) { this.Mc.PO(c) }, NO: function(c) { this.Mc.NO(c) }, Aga: function(c) { if (!this.rua() || !this.uua() || !this.sua()) return s; var d = this.Zaa(); this.Iv.vl(this.Mc, d); c && this.v9(d); return d }, bQa: function(c) { this.zw.push(c) }, cQa: function(c) { c != s && this.Aw.push(c) }, v9: function(c) { c.userObject = s; c = c.le(); for (var d = 0, f = c.length; d < f; d++) this.v9(c[d]) }, qua: function(c) { var d = this.zc(t); if (!d) return q; for (var f = new C.yS, g = this.qn, h = this.Mc, k = f.br, n = 0; n < d; n++) { var p = this.Yb(), r = this.wf(), v = this.zc(t), y = [r, v], z = new C.RJ; z.setTime(p); z.ne(y); g && h.VM.push(v + ":" + r); k.push(z) } c.fHa(f); return q }, tua: function(c) { var d = this.zc(t); if (!d) return q; for (var f = new C.yS, g = f.br, h = 0; h < d; h++) { var k = this.Yb(), n = this.wf(), p = this.Yb(), r = this.Yb(), v = this.Yb(), n = [n, p, r, v], p = new C.RJ; p.setTime(k); p.ne(n); g.push(p) } c.nIa(f); return q }, sua: function() { for (var c = this.Mc.YA, d = this.zc(t), f = 0; f < d; f++) { var g = new C.nka; g.Wh(this.Yb()); g.Ze(this.wf()); g.kIa(this.zc(t)); g.hHa(this.zc(q)); if (!this.qua(g) || !this.tua(g)) return t; c.push(g) } this.Mc.bHa(this.zc(q)); return q }, aGa: function(c) { var d = new C.RJ; d.setTime(this.Yb()); var f = this.zc(t), g = 0, h = s; if (2 === f || 3 === f || 4 === f || 5 === f || 6 === f || 7 === f) g = this.Yb(); d.Ru(f); d.tHa(g); c == yb ? h = this.VI() : c == Jb ? h = this.$() : c == Kb ? (c = C.color(this.$(), this.$(), this.$()), h = C.aK.create(c)) : c == lb ? h = [this.Yb(), this.Yb()] : c == qb ? h = this.Yb() : c == kb || c == ab || c == lb ? h = [this.Yb(), this.Yb()] : c == zb && (c = this.wf(), f = this.wf(), "" == c ? (f = this.Sl + f, c = C.kb.sd(f), f = c.i(), f = C.rect(0, 0, f.width, f.height), h = C.di.create(c, f)) : (c = this.Sl + c, g = C.Fe, -1 == this.Ft.indexOf(c) && (g.Lr(c), this.Ft.push(c)), h = g.nh(f))); d.ne(h); return d }, rua: function() { if (this.Ih == s) return t; var c = this.wua(this.Cg, 4, q); this.Cg += 4; if ("ccbi" != c) return t; c = this.zc(t); if (5 != c) return C.log("WARNING! Incompatible ccbi file version (file: " + c + " reader: 5)"), t; this.qn = this.VI(); this.Mc.qn = this.qn; return q }, wua: function(c, d, f) { c = ""; var g = this.Ih, h = this.Cg; if (f || t) for (f = d - 1; 0 <= f; f--) c += String.fromCharCode(g[h + f]); else for (f = 0; f < d; f++) c += String.fromCharCode(g[h + f]); return c }, uua: function() { for (var c = this.zc(t), d = 0; d < c; d++) this.vua(); return q }, vua: function() { for (var c = this.$(), d = this.$(), c = c << 8 | d, d = "", f = this.Ih, g = this.Cg, h = 0; h < c; h++) var k = f[g + h].toString("16").toUpperCase(), k = 1 < k.length ? k: "0" + k, d = d + ("%" + k); d = decodeURIComponent(d); this.Cg += c; this.bZ.push(d) }, Zaa: function(c) { var d = this.wf(), f, g = this.qn, h = this.Mc; g && (f = this.wf()); var k = this.zc(t), n; k != oc && (n = this.wf()); var p = this.eF.Mda(d); p || (p = this.eF.Mda("CCNode")); d = p.lEa(c, this); h.hm || h.hIa(d); g && d == h.hm && h.rHa(f); var r = new C.Ev, v = this.dn = [], y = this.zc(t); for (f = 0; f < y; ++f) { for (var z = this.zc(t), D = new C.Ev, E = this.zc(t), F = 0; F < E; ++F) { var G = new C.yS; G.Ze(this.wf()); G.rJ(this.zc(t)); v.push(G.getName()); for (var K = this.zc(t), O = G.br, U = 0; U < K; ++U) { var X = this.aGa(G.xc); O.push(X) } D.vl(G, G.getName()) } r.vl(D, z) } 0 < r.count() && h.SO(d, r); p.zFa(d, c, this); d instanceof C.zD && (f = d.fF, f.p(d.Ld()), f.th(d.Mx()), f.gb(d.ia), f.pb(d.pa), f.Qm(d.Fm()), f.va(q), h.rEa(d, f), d.nha(s), d = f); f = s; k != oc && g && (k == pc ? (h.wwa(n), h.xwa(d)) : (this.zw.push(n), this.Aw.push(d))); if (0 < p.Nz.length && !g && (f = d, f != s && f.xEa != s)) { g = p.Nz.vB(); for (f = 0; f < g.length; f++); } this.dn = s; g = this.zc(t); for (f = 0; f < g; f++) h = this.Zaa(d), d.q(h); return d }, O$: function() { var c = 0 != (this.Ih[this.Cg] & 1 << this.ht); this.ht++; 8 <= this.ht && (this.ht = 0, this.Cg++, this.Cg > this.Ih.length && e("out of the data bound")); return c }, Mqa: function() { this.ht && (this.ht = 0, this.Cg++) }, oPa: u() }); C.Jb.t9 = 1; C.Jb.Z4a = function(c) { C.Jb.t9 = c }; C.Jb.yu = function() { return C.Jb.t9 }; C.Jb.Z_a = function(c, d, f, g) { g = g || C.Jb.A0(); c = C.Jb.load(c, d, f, g); d = C.Ll.create(); d.q(c); return d }; C.Jb.y9 = {}; C.Jb.I1a = function(c, d) { C.Jb.y9[c] = C.O.extend(d) }; C.Jb.load = function(c, d, f, g) { g = g || C.Jb.A0(); var h = new C.Jb(C.Dj.tEa()); h.eHa(g); if (5 > c.length || c.toLowerCase().lastIndexOf(".ccbi") != c.length - 5) c += ".ccbi"; c = h.Bga(c, d, f); var k, n, p; if (d) { g = h.HA; var r = h.IA, v = h.GA; for (f = 0; f < g.length; f++) k = g[f], n = r[f], p = v[f], n instanceof C.Ym ? n.nH(d, d[k], p) : n.pha(d[k], d); g = h.zw; r = h.Aw; for (f = 0; f < g.length; f++) k = g[f], n = r[f], d[k] = n } g = h.BX; h = h.eV; if (!g || !h) return c; r = C.Jb.y9; for (f = 0; f < g.length; f++) { var y = g[f], v = h[f]; y.pQa = v; if (k = v.kW) { var z = r[k]; z || e("Can not find controller : " + k); z = new z; z.hRa = k; y.gRa = z; z.J2a = y; for (var D = v.cM, E = v.dM, F = v.bM, y = 0; y < D.length; y++) k = D[y], n = E[y], p = F[y], n instanceof C.Ym ? n.nH(z, z[k], p) : n.pha(z[k], z); p = v.eM; D = v.fM; for (y = 0; y < p.length; y++) k = p[y], n = D[y], z[k] = n; z.$fa && "function" == typeof z.$fa && z.$fa(); k = v.VM; for (y = 0; y < k.length; y++) p = k[y].split(":"), n = p[0], p = p[1], 1 == n ? v.oha(C.Jc.create(z[p], z), k[y]) : 2 == n && d && v.oha(C.Jc.create(d[p], d), k[y]) } } return c }; C.Jb.iba = ""; C.Jb.$4a = function(c) { C.Jb.iba = c }; C.Jb.A0 = function() { return C.Jb.iba }; C.Jb.Efa = function(c) { var d = c.lastIndexOf("/"); return - 1 != d ? c.substring(d + 1, c.length - d) : c }; C.Jb.zya = function(c) { var d = c.lastIndexOf("."); return - 1 != d ? c.substring(0, d) : c }; C.Jb.toLowerCase = function(c) { return c.toLowerCase() }; C.Jb.aSa = function(c, d) { return c.length >= d.length ? 0 == c.lastIndexOf(d) : t }; C.Jb.concat = function(c, d) { return c + d }; C.M.Zp(["ccbi"], C.$qa); C.ZLa = 0; C.NLa = 1; C.PMa = 2; C.KKa = 3; C.JNa = 4; C.aK = C.O.extend({ ya: s, ctor: function() { this.ya = C.color(0, 0, 0) }, Xa: A("ya") }); C.aK.create = function(c) { var d = new C.aK; d && (d.ya.r = c.r, d.ya.g = c.g, d.ya.b = c.b); return d }; C.C4 = C.O.extend({ Hd: s, xc: 0, TUa: u(), getFloatValue: u(), jTa: u(), lTa: u(), YVa: u(), Qf: A("Hd") }); C.C4.create = function() { return new C.C4 }; C.RJ = C.O.extend({ Hd: s, Rba: 0, iM: 0, oW: 0, Qf: A("Hd"), ne: x("Hd"), getTime: A("Rba"), setTime: x("Rba"), qUa: A("iM"), Ru: x("iM"), pUa: A("oW"), tHa: x("oW") }); C.nka = C.O.extend({ D: 0, kd: "", TN: 0, HV: 0, DL: s, bO: s, ctor: function() { this.kd = "" }, Rr: A("D"), Wh: x("D"), getName: A("kd"), Ze: x("kd"), xWa: A("TN"), kIa: x("TN"), BTa: A("HV"), hHa: x("HV"), uTa: A("DL"), fHa: x("DL"), DWa: A("bO"), nIa: x("bO") }); C.yS = C.O.extend({ kd: s, xc: 0, br: s, ctor: function() { this.j() }, j: function() { this.br = []; this.kd = "" }, getName: A("kd"), Ze: x("kd"), $H: A("xc"), rJ: x("xc"), YUa: A("br") }); C.Vza = function(c, d, f) { var g = C.d(0, 0); 0 === d ? g = c: 1 === d ? (g.x = c.x, g.y = f.height - c.y) : 2 === d ? (g.x = f.width - c.x, g.y = f.height - c.y) : 3 === d ? (g.x = f.width - c.x, g.y = c.y) : 4 === d ? (g.x = f.width * c.x / 100, g.y = f.height * c.y / 100) : 5 === d && (d = C.Jb.yu(), g.x = c.x * d, g.y = c.y * d); return g }; C.FW = function(c, d, f, g) { var h = C.d(0, 0); 0 === f ? (h.x = c, h.y = d) : 1 === f ? (h.x = c, h.y = g.height - d) : 2 === f ? (h.x = g.width - c, h.y = g.height - d) : 3 === f ? (h.x = g.width - c, h.y = d) : 4 === f ? (h.x = g.width * c / 100, h.y = g.height * d / 100) : 5 === f && (f = C.Jb.yu(), h.x = c * f, h.y = d * f); return h }; C.kia = function(c, d, f, g) { c || e("cc.setRelativeScale(): node should be non-null"); 5 === g && (g = C.Jb.yu(), d *= g, f *= g); c.gb(d); c.pb(f) }; C.ZKa = C.O.extend({ cRa: u() }); C.z4 = C.O.extend({ YA: s, gG: s, qz: s, nz: 0, hm: s, Rd: s, QN: s, Oq: s, yG: s, eM: s, fM: s, cM: s, dM: s, bM: s, kW: "", mX: "", VM: s, kX: s, dV: s, Xc: s, qn: t, ctor: function() { this.QN = C.size(0, 0); this.j() }, j: function() { this.YA = []; this.gG = new C.Ev; this.qz = new C.Ev; this.eM = []; this.fM = []; this.cM = []; this.dM = []; this.bM = []; this.VM = []; this.kX = {}; return q }, yWa: A("YA"), d5a: x("YA"), TSa: A("nz"), bHa: x("nz"), qWa: A("hm"), hIa: x("hm"), iea: A("Rd"), VC: x("Rd"), PO: function(c) { this.dM.push(c) }, OO: function(c) { this.cM.push(c) }, NO: function(c) { this.bM.push(c) }, xwa: function(c) { this.fM.push(c) }, wwa: function(c) { this.eM.push(c) }, rHa: x("kW"), kUa: A("kW"), iUa: A("cM"), jUa: A("dM"), hUa: A("bM"), lUa: A("eM"), mUa: A("fM"), ZUa: A("mX"), XUa: A("VM"), pWa: A("QN"), f3: function(c) { this.QN = C.size(c.width, c.height) }, ZB: A("Oq"), bq: x("Oq"), sWa: function() { return this.yG ? this.yG.getName() : s }, AP: function(c) { return c ? c.i() : this.QN }, SO: function(c, d) { this.gG.vl(d, c) }, iy: function(c, d, f) { var g = this.qz.Km(d); g || (g = new C.Ev, this.qz.vl(g, d)); g.vl(c, f) }, rEa: function(c, d) { var f = this.qz, g = f.Km(c); g != s && (f.vl(g, d), f.q2(c)); f = this.gG; g = f.Km(c); g != s && (f.vl(g, d), f.q2(c)) }, Wza: function(c) { var d = 0, f = []; c = c.br; for (var g = c.length, h = 0; h < g; ++h) { var k = c[h], n = k.getTime() - d, d = k.getTime(); 0 < n && f.push(C.fd.create(n)); n = k.Qf(); k = n[0]; n = n[1]; if (this.qn) k = this.kX[n + ":" + k], k != s && f.push(k); else { var p; n == pc ? p = this.hm: n == qc && (p = this.Rd); p != s && (0 < k.length ? (n = 0, p.LEa != s && (n = m), 0 == n ? C.log("Skipping selector '" + k + "' since no CCBSelectorResolver is present.") : f.push(C.Jc.create(n, p))) : C.log("Unexpected empty selector.")) } } return 1 > f.length ? s: C.La.create(f) }, Xza: function(c) { var d = 0, f = []; c = c.br; for (var g = c.length, h = 0; h < g; ++h) { var k = c[h], n = k.getTime() - d, d = k.getTime(); 0 < n && f.push(C.fd.create(n)); k = k.Qf(); f.push(C.AS.create(C.Jb.A0() + k[0], parseFloat(k[1]), parseFloat(k[2]), parseFloat(k[3]))) } return 1 > f.length ? s: C.La.create(f) }, M2a: function(c) { this.w2(this.SW(c), 0) }, N2a: function(c, d) { this.w2(this.SW(c), d) }, w2: function(c, d) { - 1 === c && e("cc.BuilderAnimationManager.runAnimationsForSequenceIdTweenDuration(): Sequence id should not be -1"); d = d || 0; this.hm.yk(); for (var f = this.gG.vB(), g = 0, h = f.length; g < h; g++) { var k = f[g]; k.yk(); var n = this.gG.Km(k).Km(c), p, r = []; if (n) { var v = n.vB(); for (p = 0; p < v.length; p++) { var y = v[p], z = n.Km(y); r.push(y); this.Wua(k, z, d); this.Kua(k, z, d) } } if (n = this.qz.Km(k)) { v = n.vB(); for (p = 0; p < v.length; p++) y = v[p], -1 == r.indexOf(y) && (z = n.Km(y), z != s && this.yY(y, k, z, d)) } } f = this.S$(c); g = C.La.create(C.fd.create(f.Rr() + d), C.Jc.create(this.Nua, this)); this.hm.Ya(g); f.DL && (g = this.Wza(f.DL)) && this.hm.Ya(g); f.bO && (g = this.Xza(f.bO)) && this.hm.Ya(g); this.yG = this.S$(c) }, v2: function(c, d) { this.w2("string" === typeof c ? this.SW(c) : c, d || 0) }, XGa: function(c, d) { this.Xc = c; this.dV = d }, G3a: function(c, d) { this.XGa(c, d) }, oha: function(c, d) { this.kX[d] = c }, debug: u(), IF: function(c, d) { var f = this.qz.Km(c); return f ? f.Km(d) : s }, SW: function(c) { for (var d = s, f = this.YA, g = 0, h = f.length; g < h; g++) if ((d = f[g]) && d.getName() === c) return d.TN; return - 1 }, S$: function(c) { for (var d = s, f = this.YA, g = 0, h = f.length; g < h; g++) if ((d = f[g]) && d.TN === c) return d; return s }, J$: function(c, d, f, g) { c = d.getTime() - (c ? c.getTime() : 0); var h; if ("rotation" === f) return C.xS.create(c, d.Qf()); if ("rotationX" === f) return C.A4.create(c, d.Qf()); if ("rotationY" === f) return C.B4.create(c, d.Qf()); if ("opacity" === f) return C.xo.create(c, d.Qf()); if ("color" === f) return g = d.Qf().Xa(), C.ez.create(c, g.r, g.g, g.b); if ("visible" === f) return d.Qf() ? C.La.create(C.fd.create(c), C.Fj.create()) : C.La.create(C.fd.create(c), C.Fl.create()); if ("displayFrame" === f) return C.La.create(C.fd.create(c), C.zS.create(d.Qf())); if ("position" === f) return f = this.IF(g, f), f = f[2], h = d.Qf(), d = h[0], h = h[1], g = this.AP(g.getParent()), g = C.FW(d, h, f, g), C.Bs.create(c, g); if ("scale" === f) return f = this.IF(g, f), f = f[2], h = d.Qf(), d = h[0], h = h[1], f === nc && (g = C.Jb.yu(), d *= g, h *= g), C.ae.create(c, d, h); if ("skew" === f) return h = d.Qf(), d = h[0], h = h[1], C.rq.create(c, d, h); C.log("BuilderReader: Failed to create animation for property: " + f); return s }, yY: function(c, d, f, g) { if (0 < g) { var h = new C.RJ; h.ne(f); h.setTime(g); h.Ru(1); f = this.J$(s, h, c, d); d.Ya(f) } else "position" === c ? (c = this.IF(d, c), c = c[2], g = f[0], f = f[1], d.p(C.FW(g, f, c, this.AP(d.getParent())))) : "scale" === c ? (c = this.IF(d, c), c = c[2], g = f[0], f = f[1], C.kia(d, g, f, c)) : "skew" === c ? (g = f[0], f = f[1], d.nJ(g), d.oJ(f)) : "rotation" === c ? d.th(f) : "rotationX" == c ? d.b5a(f) : "rotationY" == c ? d.c5a(f) : "opacity" === c ? d.K(f) : "displayFrame" === c ? d.pc(f) : "color" === c ? (f = f.Xa(), (255 !== f.r || 255 !== f.g || 255 !== f.b) && d.G(f)) : "visible" === c ? d.va(f || t) : C.log("unsupported property name is " + c) }, Wua: function(c, d, f) { var g = d.br; 0 === g.length ? ((g = this.IF(c, d.getName())) || C.log("cc.BuilderAnimationManager._setFirstFrame(): No baseValue found for property"), this.yY(d.getName(), c, g, f)) : this.yY(d.getName(), c, g[0].Qf(), f) }, lsa: function(c, d, f) { if (1 === d || 0 === d) return c; if (2 === d) return C.$D.create(c, f); if (3 === d) return C.As.create(c, f); if (4 === d) return C.Oy.create(c, f); if (11 === d) return C.KD.create(c); if (12 === d) return C.MD.create(c); if (13 === d) return C.LD.create(c); if (8 === d) return C.OD.create(c); if (9 === d) return C.QD.create(c); if (10 === d) return C.PD.create(c); if (5 === d) return C.XD.create(c, f); if (6 === d) return C.ZD.create(c, f); if (7 === d) return C.YD.create(c, f); C.log("BuilderReader: Unkown easing type " + d); return c }, Kua: function(c, d, f) { var g = d.br, h = g.length; if (1 < h) { var k = []; f = g[0].getTime() + f; 0 < f && k.push(C.fd.create(f)); for (f = 0; f < h - 1; ++f) { var n = g[f], p = this.J$(n, g[f + 1], d.getName(), c); p && (p = this.lsa(p, n.iM, n.oW), k.push(p)) } d = C.La.create(k); c.Ya(d) } }, Nua: function() { var c = this.yG; this.mX != c.getName() && (this.mX = c.getName()); c = c.HV; this.yG = s; - 1 != c && this.v2(c, 0); this.Xc && this.dV && this.dV.call(this.Xc) } }); C.zS = C.yh.extend({ vr: s, mj: function(c) { this.vr = c; return q }, update: function() { this.target.pc(this.vr) } }); C.zS.create = function(c) { var d = new C.zS; return d && d.mj(c) ? d: s }; C.xS = C.N.extend({ Sw: 0, O9: 0, J9: 0, k: function(c, d) { return C.N.prototype.k.call(this, c) ? (this.O9 = d, q) : t }, update: function(c) { this.target.th(this.Sw + this.J9 * c) }, R: function(c) { C.N.prototype.R.call(this, c); this.Sw = this.target.Mx(); this.J9 = this.O9 - this.Sw } }); C.xS.create = function(c, d) { var f = new C.xS; return f && f.k(c, d) ? f: s }; C.A4 = C.N.extend({}); C.A4.create = function() { e("rotationX has not been implemented in cocos2d-html5") }; C.B4 = C.N.extend({}); C.B4.create = function() { e("rotationY has not been implemented in cocos2d-html5") }; C.AS = C.yh.extend({ j: function(c) { this.Ura = c; return q }, update: function() { C.ud.Zx(this.Ura) } }); C.AS.create = function(c) { var d = new C.AS; return d && d.j(c) ? d: s }; C.Pd = {}; C.Pd.a9 = function(c) { for (var d in C.Pd.C1) c[d] = C.Pd.C1[d]; C.e(c, "x", c.Rc, c.rs); C.e(c, "y", c.Vd, c.Uu); C.e(c, "width", c.ef, c.Qh); C.e(c, "height", c.Dg, c.Ph); C.e(c, "anchorX", c.L$, c.Re); C.e(c, "anchorY", c.M$, c.Se); C.e(c, "scale", c.SH, c.Za); C.e(c, "scaleX", c.LP, c.gb); C.e(c, "scaleY", c.TH, c.TH); C.e(c, "rotation", c.Mx, c.th); C.e(c, "skewX", c.rea, c.nJ); C.e(c, "skewY", c.sea, c.oJ); C.e(c, "visible", c.l1, c.va); C.e(c, "parent", c.getParent, c.cq); C.e(c, "opacity", c.rb, c.K) }; C.Pd.C1 = { p: function(c, d) { d === m ? (this.ma.x = c.x, this.ma.y = c.y) : (this.ma.x = c, this.ma.y = d); this.Da(); this.ja.DJ(this.ma.x, -this.ma.y) }, Uu: function(c) { this.ma.y = c; this.Da(); this.ja.DJ(this.ma.x, -this.ma.y) }, rs: function(c) { this.ma.x = c; this.Da(); this.ja.DJ(this.ma.x, -this.ma.y) }, Za: function(c, d) { this.ia = c; this.pa = d || c; this.Da(); this.ja.$p(this.ia, this.pa) }, gb: function(c) { this.ia = c; this.Da(); this.ja.$p(this.ia, this.pa) }, pb: function(c) { this.pa = c; this.Da(); this.ja.$p(this.ia, this.pa) }, S: function(c, d) { var f = this.Ab; d === m ? (f.x = c.x, f.y = c.y) : (f.x = c, f.y = d); var g = this.Nb, h = this.o; g.x = h.width * f.x; g.y = h.height * f.y; this.ja.style[C.ic.Gu + "TransformOrigin"] = "" + g.x + "px " + -g.y + "px"; this.ignoreAnchor ? (this.ja.style.marginLeft = 0, this.ja.style.marginBottom = 0) : (this.ja.style.marginLeft = this.CDa ? 0 : -g.x + "px", this.ja.style.marginBottom = -g.y + "px"); this.Da() }, Re: function(c) { var d = this.Ab; c !== d.x && (d.x = c, c = this.Nb, c.x = this.o.width * d.x, this.ja.style[C.ic.Gu + "TransformOrigin"] = "" + c.x + "px " + -c.y + "px", this.ignoreAnchor ? (this.ja.style.marginLeft = 0, this.ja.style.marginBottom = 0) : this.ja.style.marginLeft = this.CDa ? 0 : -c.x + "px", this.Da()) }, Se: function(c) { var d = this.Ab; c !== d.y && (d.y = c, c = this.Nb, c.y = this.o.height * d.y, this.ja.style[C.ic.Gu + "TransformOrigin"] = "" + c.x + "px " + -c.y + "px", this.ignoreAnchor ? (this.ja.style.marginLeft = 0, this.ja.style.marginBottom = 0) : this.ja.style.marginBottom = -c.y + "px", this.Da()) }, Ca: function(c, d) { var f = this.o; d === m ? (f.width = c.width, f.height = c.height) : (f.width = c, f.height = d); var g = this.Nb, h = this.Ab; g.x = f.width * h.x; g.y = f.height * h.y; this.ja.width = f.width; this.ja.height = f.height; this.S(this.dk()); this.canvas && (this.canvas.width = f.width, this.canvas.height = f.height); this.Da(); this.m2() }, Qh: function(c) { var d = this.o; c !== d.width && (d.width = c, c = this.Ab, this.Nb.x = d.width * c.x, this.ja.width = d.width, this.anchorX = c.x, this.canvas && (this.canvas.width = d.width), this.Da(), this.m2()) }, Ph: function(c) { var d = this.o; c !== d.height && (d.height = c, c = this.Ab, this.Nb.y = d.height * c.y, this.ja.height = d.height, this.anchorY = c.y, this.canvas && (this.canvas.height = d.height), this.Da(), this.m2()) }, th: function(c) { this.XA != c && (this.Xi = this.im = c, this.Dn = this.Xi * (Math.PI / 180), this.Mw = this.im * (Math.PI / 180), this.Da(), this.ja.rotate(c)) }, nJ: function(c) { this.ig = c; this.Da(); this.ja.qia(this.ig, this.jg) }, oJ: function(c) { this.jg = c; this.Da(); this.ja.qia(this.ig, this.jg) }, va: function(c) { this.Ja = c; this.Da(); this.ja && (this.ja.style.display = c ? "block": "none") }, Ow: function(c) { this.Wa = c; this.Da(); this.ja && (this.ja.zIndex = c) }, cq: function(c) { this.Vb = c; c !== s && (c.S(c.dk()), this.Da(), C.Pd.UQ(this)) }, nk: function() { this.Em().Mm(this); this.UB().Mm(this); C.Ka.Mm(this); this.ja && !this.ja.parentNode && (this.getParent() ? C.Pd.UQ(this) : this.ja.ox(C.container)); this.ja && (this.ja.style.visibility = "visible") }, pause: function() { this.Em().hs(this); this.UB().hs(this); C.Ka.hs(this); this.ja && (this.ja.style.visibility = "hidden") }, ze: function() { this.yk(); this.FJ(); this.Jk(this.l, C.A.Gj.ze); this.ja && this.ja.remove() }, vGa: function() { this.ja.remove() }, K: function(c) { this.Eb = c; this.ja.style.opacity = c / 255 }, m2: function() { if (this.jfa) { var c = this.l; this.l = []; C.u.prototype.J.call(this, this.HB); this.l = c } else C.u.prototype.J.call(this, this.HB) } }; C.Pd.Gua = function() { var c = C.ic("#EGLViewDiv"); if (c) { var d = C.view, f = d.LH(), g = d.jh, h = d.$da(), k = d.Pq, n = f.width, p = f.height; 0 === f.width && 0 === f.height && (n = h.width, p = h.height); f = g.width / k; 0 === g.width && 0 === g.height && (f = h.width); c.style.position = "absolute"; c.style.width = n + "px"; c.style.maxHeight = p + "px"; c.style.margin = 0; c.$p(d.ia / k, d.pa / k); c.style.left = (f - n) / 2 + "px"; c.style.bottom = "0px" } }; C.Pd.UQ = function(c) { var d = c.getParent(); if (d && c.ja) if (d.ja || (C.Pd.placeHolder(d), d.cq = C.Pd.C1.cq), c.ja.ox(d.ja), d.S(d.dk()), d.getParent()) C.Pd.UQ(d); else if (d.$c) if (c = C.ic("#EGLViewDiv")) d.ja.ox(c); else { c = C.pD("div"); c.id = "EGLViewDiv"; var f = C.view, g = f.LH(), h = f.jh, k = f.$da(), n = f.Pq, p = g.width, r = g.height; 0 === g.width && 0 === g.height && (p = k.width, r = k.height); g = h.width / n; 0 === h.width && 0 === h.height && (g = k.width); c.style.position = "absolute"; c.style.width = p + "px"; c.style.maxHeight = r + "px"; c.style.margin = 0; c.$p(f.ia / n, f.pa / n); c.style.left = (g - p) / 2 + "px"; c.style.bottom = "0px"; d.ja.ox(c); c.ox(C.container) } }; C.Pd.setTransform = function(c) { if (c.HB) if (c.HB.translate(c.Ep().x, c.Ep().y), c.jfa) { var d = c.l; c.l = []; C.u.prototype.J.call(c, c.HB); c.l = d } else C.u.prototype.J.call(c, c.HB); c.ja && (c.ja.position.x = c.Rc(), c.ja.position.y = -c.Vd(), c.ja.rotation = c.Mx(), c.ja.scale = { x: c.ia, y: c.pa }, c.ja.wy = { x: c.ig, y: c.jg }, c.S && c.S(c.dk()), c.ja.Ay()) }; C.Pd.Mza = function(c) { c.ja = C.pD("div"); c.canvas = C.pD("canvas"); var d = c.i(); c.canvas.width = d.width; c.canvas.height = d.height; c.ja.style.position = "absolute"; c.ja.style.bottom = 0; c.HB = c.canvas.getContext("2d"); c.ja.appendChild(c.canvas); c.getParent() && C.Pd.UQ(c); c.jfa = q }; C.Pd.placeHolder = function(c) { c.ja = C.pD("div"); c.placeholder = q; c.ja.style.position = "absolute"; c.ja.style.bottom = 0; c.ja.style.width = (c.i().width || C.Q.aa.width) + "px"; c.ja.style.maxHeight = (c.i().height || C.Q.aa.height) + "px"; c.ja.style.margin = 0; C.Pd.setTransform(c); c.ja.Ay(); C.Pd.a9(c) }; C.Pd.B_ = function(c) { if (1 < arguments.length) C.Pd.B_(arguments); else if (1 == arguments.length && !arguments[0].length) C.Pd.B_([arguments[0]]); else for (var d = arguments[0], f = 0; f < d.length; f++) d[f] instanceof C.u ? d[f].ja || C.Pd.Mza(d[f]) : C.log("DOM converter only supports sprite and menuitems yet"), C.Pd.a9(d[f]), d[f].J = u(), d[f].transform = u(), C.Pd.setTransform(d[f]), d[f].va(d[f].Ja) }; C.Ima = 0; C.aMa = 1; C.dMa = 2; C.cMa = 3; C.bMa = 4; C.Rla = 0; C.FLa = 1; C.GLa = 2; C.HLa = 3; C.JLa = 4; C.ELa = 5; C.ILa = 6; C.Pla = 0; C.Qla = 1; C.DLa = 2; C.CLa = 3; C.BLa = 4; C.MLa = C.O.extend({ SRa: u(), TRa: u(), VRa: u(), URa: u() }); C.jE = C.Ym.extend({ lW: s, Oq: s, Qra: C.Rla, Pra: C.Qla, vta: C.Ima, CPa: "", xn: "", TG: s, MA: s, zaa: 50, Lqa: 18, Qd: s, Qz: 14, jM: "Arial", BN: "", pG: 14, FPa: t, qa: "EditBox", ctor: function(c) { function d() { h.blur() } C.Ym.prototype.ctor.call(this); this.TG = C.color.WHITE; this.MA = C.color.GRAY; this.Ca(c); var f = this.lW = new C.u; f.ka = u(); this.q(f); var g = this, h = this.Qd = C.bd("input"); h.type = "text"; h.style.fontSize = this.Qz + "px"; h.style.color = "#000000"; h.style.border = 0; h.style.background = "transparent"; h.style.width = "100%"; h.style.height = "100%"; h.style.active = 0; h.style.outline = "medium"; C.qb(h, "input", u()); C.qb(h, "keypress", function(c) { c.keyCode === C.Uy.c0 && (c.stopPropagation(), c.preventDefault(), C.Pb.focus()) }); C.qb(h, "focus", function() { this.value == g.xn && (this.value = "", this.style.fontSize = g.Qz + "px", this.style.color = C.Ap(g.TG)); C.qb(C.Pb, "click", d) }); C.qb(h, "blur", function() { "" == this.value && (this.value = g.xn, this.style.fontSize = g.pG + "px", this.style.color = C.Ap(g.MA)); C.Pb.removeEventListener("click", d) }); C.Pd.B_(f); f.ja.appendChild(h); f.ja.Q5a = t; f.ja.style.width = c.width - 6 + "px"; f.ja.style.height = c.height - 6 + "px"; f.canvas.remove() }, b4a: function(c, d) { this.Qz = d; this.jM = c; this.XN() }, rr: function(c) { if (c = C.fa.xM.exec(c)) this.Qz = parseInt(c[1]), this.jM = c[2], this.XN() }, Zd: function(c) { this.jM = c; this.XN() }, Od: function(c) { this.Qz = c; this.XN() }, XN: function() { this.Qd.value != this.xn && (this.Qd.style.fontFamily = this.jM, this.Qd.style.fontSize = this.Qz + "px") }, PR: function(c) { C.log("Please use the setString"); c != s && ("" == c ? (this.Qd.value = this.xn, this.Qd.style.color = C.Ap(this.MA)) : (this.Qd.value = c, this.Qd.style.color = C.Ap(this.TG))) }, sa: function(c) { c != s && ("" == c ? (this.Qd.value = this.xn, this.Qd.style.color = C.Ap(this.MA)) : (this.Qd.value = c, this.Qd.style.color = C.Ap(this.TG))) }, uHa: function(c) { this.TG = c; this.Qd.value != this.xn && (this.Qd.style.color = C.Ap(c)) }, qs: function(c) { ! isNaN(c) && 0 < c && (this.zaa = c, this.Qd.maxLength = c) }, Kx: A("zaa"), Di: function(c) { if (c != s) { var d = this.xn; this.xn = c; this.Qd.value == d && (this.Qd.value = c, this.Qd.style.color = C.Ap(this.MA), this.AG()) } }, Q4a: function(c, d) { this.BN = c; this.pG = d; this.AG() }, dva: function(c) { if (c = C.fa.xM.exec(c)) this.BN = c[2], this.pG = parseInt(c[1]), this.AG() }, UHa: function(c) { this.BN = c; this.AG() }, VHa: function(c) { this.pG = c; this.AG() }, AG: function() { this.Qd.value == this.xn && (this.Qd.style.fontFamily = this.BN, this.Qd.style.fontSize = this.pG + "px") }, THa: function(c) { this.MA = c; this.Qd.value == this.xn && (this.Qd.style.color = C.Ap(c)) }, zHa: function(c) { this.Pra = c; this.Qd.type = c == C.Pla ? "password": "text" }, QWa: function() { C.log("Please use the getString"); return this.Qd.value }, Wb: function() { return this.Qd.value }, XCa: function(c, d) { return this.Wea(d) ? (this.lW.x = 3, this.lW.y = 3, this.Bia(t), this.De(c), this.y = this.x = 0, this.b9(this, this.nJa, C.f5), q) : t }, bq: x("Oq"), cC: A("xn"), AHa: x("Qra"), fIa: x("vta"), p1: function(c) { var d = C.jE.Vh(this); d.y -= 4; d.bYa(c.end) ? this.Lqa = c.end.rVa() - d.sVa() : C.log("needn't to adjust view layout.") }, mfa: u(), nfa: u(), lfa: u(), nJa: u(), PXa: function(c, d) { this.Ora = c.width; this.ja.style.width = this.Ora.toString() + "px"; this.Nra = c.height; this.ja.style.height = this.Nra.toString() + "px"; this.ja.style.backgroundColor = C.Ap(d) } }); H = C.jE.prototype; C.e(H, "font", s, H.rr); C.e(H, "fontName", s, H.Zd); C.e(H, "fontSize", s, H.Od); C.e(H, "fontColor", s, H.uHa); C.e(H, "string", H.Wb, H.sa); C.e(H, "maxLength", H.Kx, H.qs); C.e(H, "placeHolder", H.cC, H.Di); C.e(H, "placeHolderFont", s, H.dva); C.e(H, "placeHolderFontName", s, H.UHa); C.e(H, "placeHolderFontSize", s, H.VHa); C.e(H, "placeHolderFontColor", s, H.THa); C.e(H, "inputFlag", s, H.zHa); C.e(H, "delegate", s, H.bq); C.e(H, "inputMode", s, H.AHa); C.e(H, "returnType", s, H.fIa); H = s; C.jE.Vh = function(c) { var d = c.i(), d = C.rect(0, 0, d.width, d.height); return C.Gi(d, c.ql()) }; C.jE.create = function(c, d, f, g) { var h = new C.jE(c); h.XCa(c, d) && (f && h.sR(f, C.jv), g && h.sR(g, C.iv)); return h }; C.Il = C.ha.extend({ fh: s, ON: t, lta: function(c, d) { this.ON = q; this.fh.push(c); c.Ow(d) }, ctor: function() { C.ha.prototype.ctor.call(this); this.fh = [] }, Yc: function(c, d, f) { C.assert(c != s, "child must be non-nil"); C.assert(!c.parent, "child already added. It can't be added again"); d = d || c.Wa; f && c.Qm(f); this.lta(c, d); c.cq(this); c.Vha(C.kR); this.$c && (c.Z(), this.TM && c.qj()); this.Zf && this.Rz(); this.Ag && this.Sz() }, BBa: function(c) { C.assert(c != C.yK, "Invalid tag"); for (var d = this.fh, f = 0, g = d.length; f < g; f++) if (d.Fm() == c) return d[f]; return s }, Ai: function(c, d) { d == s && (d = q); var f = this.fh; if (0 !== f.length) { var g = f.indexOf(c); - 1 < g && (this.$c && (c.ph(), c.Na()), d && c.ze(), c.cq(s), f.splice(g, 1)) } }, m2a: function(c, d) { C.assert(c != C.yK, "Invalid tag"); d == s && (d = q); var f = this.BBa(c); f == s ? C.log("cocos2d: removeChildByTag(tag \x3d %d): child not found!", c) : this.Ai(f, d) }, W1a: function() { this.oGa(q) }, oGa: function(c) { c == s && (c = q); for (var d = this.fh, f = 0, g = d.length; f < g; f++) { var h = d[f]; this.$c && (h.ph(), h.Na()); c && h.ze(); h.cq(s) } d.length = 0 }, x2a: function(c, d) { C.assert(c != s, "Child must be non-nil"); this.ON = q; c.Vha(C.kR++); c.Ow(d) }, YR: function() { if (this.ON) { var c = this.fh, d = c.length, f, g, h; for (f = 1; f < d; f++) { h = c[f]; for (g = f - 1; 0 <= g;) { if (h.Wa < c[g].Wa) c[g + 1] = c[g]; else if (h.Wa === c[g].Wa && h.arrivalOrder < c[g].arrivalOrder) c[g + 1] = c[g]; else break; g-- } c[g + 1] = h } this.ON = t } }, J: s, Hr: function(c) { if (this.Ja) { c = c || C.t; var d, f, g = this.l, h, k = this.fh, n = this.l.length, p = k.length; c.save(); this.transform(c); this.ed(); this.YR(); for (d = 0; d < n; d++) if (h = g[d], 0 > h.Wa) h.J(c); else break; for (f = 0; f < p; f++) if (h = k[f], 0 > h.Wa) h.J(c); else break; for (this.ka(c); d < n; d++) g[d] && g[d].J(c); for (; f < p; f++) k[d] && k[d].J(c); this.Lk = t; this.arrivalOrder = 0; c.restore() } }, fx: function() { if (this.Ja) { var c = C.t, d, f = C.Jd, g; f.stack.push(f.top); C.Pp(this.KG, f.top); f.top = this.KG; var h = this.grid; h && h.Wg && h.px(); this.transform(); var k = this.l, n = this.fh, p = k.length, r = n.length; this.ed(); this.YR(); for (d = 0; d < p; d++) if (k[d] && 0 > k[d].Wa) k[d].J(); else break; for (g = 0; g < r; g++) if (n[g] && 0 > n[g].Wa) n[g].J(); else break; for (this.ka(c); d < p; d++) k[d] && k[d].J(); for (; g < r; g++) n[g] && n[g].J(); this.arrivalOrder = 0; h && h.Wg && h.mx(this); f.top = f.stack.pop() } }, ze: function() { C.A.prototype.ze.call(this); for (var c = this.fh, d = 0, f = c.length; d < f; d++) c[d].ze() }, Z: function() { C.A.prototype.Z.call(this); for (var c = this.fh, d = 0, f = c.length; d < f; d++) c[d].Z() }, qj: function() { C.A.prototype.qj.call(this); for (var c = this.fh, d = 0, f = c.length; d < f; d++) c[d].qj() }, Na: function() { C.A.prototype.Na.call(this); for (var c = this.fh, d = 0, f = c.length; d < f; d++) c[d].Na() }, ph: function() { C.A.prototype.ph.call(this); for (var c = this.fh, d = 0, f = c.length; d < f; d++) c[d].ph() }, dc: function(c) { this.hb = this.Ig * c / 255; this.Gd(); if (this.Ag) { var d, f = this.l, g = this.hb; c = 0; for (d = f.length; c < d; c++) f[c].dc && f[c].dc(g); f = this.fh; c = 0; for (d = f.length; c < d; c++) f[c].dc && f[c].dc(g) } }, Tb: function(c) { var d = this.wb, f = this.od; d.r = f.r * c.r / 255; d.g = f.g * c.g / 255; d.b = f.b * c.b / 255; this.Gd(); if (this.Zf) { var g = this.l; c = 0; for (f = g.length; c < f; c++) g[c].Tb && g[c].Tb(d); g = this.fh; c = 0; for (f = g.length; c < f; c++) g[c].Tb && g[c].Tb(d) } }, yRa: function() { var c = C.color.WHITE, d, f, g = this.l; d = 0; for (f = g.length; d < f; d++) g[d].Tb(c); g = this.fh; d = 0; for (f = g.length; d < f; d++) g[d].Tb(c) } }); C.Il.prototype.J = C.L === C.cb ? C.Il.prototype.Hr: C.Il.prototype.fx; C.Il.create = function() { return new C.Il }; var uc = uc || C.O; uc.extend = uc.extend || C.O.extend; var vc = vc || C.Il; vc.extend = vc.extend || C.Il.extend; var J = vc.extend({ Wc: q, Pv: q, uO: t, Qv: s, CO: t, rm: s, oB: s, Dr: s, Ln: s, Mn: s, kd: "default", Jr: s, xq: 0, ca: C.size(0, 0), mc: s, wA: s, Ct: 0, Rq: t, Rj: q, Cb: t, bV: t, $A: s, hg: s, qh: s, Ed: s, qPa: t, cw: t, Ht: s, ui: s, ya: s, qa: "Widget", Bb: t, Db: t, Eb: 255, SF: t, Kn: s, ctor: function() { C.Il.prototype.ctor.call(this); this.Qv = J.rS; this.rm = C.d(0, 0); this.oB = C.d(0, 0); this.Dr = C.d(0, 0); this.Jr = J.HE; this.ca = C.size(0, 0); this.mc = C.size(0, 0); this.wA = {}; this.$A = J.E7; this.hg = C.d(0, 0); this.qh = J.g7; this.Ed = C.d(0, 0); this.Ht = []; this.ya = C.color(255, 255, 255, 255); this.Ct = wc.NONE; this.j() }, j: function() { return C.Il.prototype.j.call(this) ? (this.wA = {}, this.ol(), this.wR(q), this.CI = this.BEa.bind(this), this.PQ = s, this.S(C.d(0.5, 0.5)), this.We(q), this.Pu(q), this.Qu(q), q) : t }, Z: function() { this.pja(); C.Il.prototype.Z.call(this) }, Na: function() { this.hD(); C.Il.prototype.Na.call(this) }, J: function(c) { this.Ja && (this.Qn(), C.Il.prototype.J.call(this, c)) }, pg: function() { var c = this.getParent(); return c instanceof J ? c: s }, Mf: function(c) { var d = this.ca; this.Cb ? (d.width = c.width, d.height = c.height) : (d.width = this.mc.width, d.height = this.mc.height); this.gc() }, faa: function() { var c = this.K$(this); return c == s ? q: c && !c.isEnabled() ? t: c.faa() }, K$: function(c) { if (s == c) return s; c = c.getParent(); return s == c ? s: c instanceof J ? c: this.K$(c.getParent()) }, gaa: function(c) { return s == c ? q: (c = c.getParent()) && !c.Ja ? t: this.gaa(c) }, fOa: function() { this.Tra.removeEventListener(this.ui); this.jn == this && (this.jn = s) }, Ib: x("Wc"), ol: u(), SO: function(c, d, f) { c instanceof J ? C.log("Please use addChild to add a Widget.") : (C.A.prototype.q.call(this, c, d, f), this.Ht.push(c)) }, GP: function(c) { for (var d = this.Ht, f = 0; f < d.length; f++) { var g = d[f]; if (g && g.Fm() == c) return g } return s }, fea: A("Ht"), removeNode: function(c) { C.A.prototype.removeChild.call(this, c); C.Id(this.Ht, c) }, Uga: function(c) { var d = this.GP(c); d ? this.removeNode(d) : C.log("cocos2d: removeNodeByTag(tag \x3d %d): child not found!", c) }, Qga: function() { for (var c = 0; c < this.Ht.length; c++) C.A.prototype.removeChild.call(this, this.Ht[c]); this.Ht.length = 0 }, yf: function(c) { var d = this.mc.width = c.width; c = this.mc.height = c.height; this.Cb && (d = this.width, c = this.height); this.ca.width = d; this.ca.height = c; this.$c && ((c = this.pg()) ? (d = c.width, c = c.height) : (d = this.Vb.width, c = this.Vb.height), this.hg.x = 0 < d ? this.mc.width / d: 0, this.hg.y = 0 < c ? this.mc.height / c: 0); this.gc() }, Qh: function(c) { c = this.mc.width = c; this.Cb && (c = this.width); this.ca.width = c; this.$c && (c = (c = this.pg()) ? c.width: this.Vb.width, this.hg.x = 0 < c ? this.mc.width / c: 0); this.gc() }, Ph: function(c) { c = this.mc.height = c; this.Cb && (c = this.height); this.ca.height = c; this.$c && (c = (c = this.pg()) ? c.height: this.Vb.height, this.hg.y = 0 < c ? this.mc.height / c: 0); this.gc() }, pia: function(c) { this.hg.x = c.x; this.hg.y = c.y; var d = this.mc.width, f = this.mc.height; this.$c && ((f = this.pg()) ? (d = f.width * c.x, f = f.height * c.y) : (d = this.Vb.width * c.x, f = this.Vb.height * c.y)); this.Cb || (this.ca.width = d, this.ca.height = f); this.mc.width = d; this.mc.height = f; this.gc() }, Ava: function(c) { this.hg.x = c; var d = this.mc.width; this.$c && (d = this.pg(), d = (d ? d.width: this.Vb.width) * c); this.Cb || (this.ca.width = d); this.mc.width = d; this.gc() }, Yua: function(c) { this.hg.y = c; var d = this.mc.height; this.$c && (d = this.pg(), d = (d ? d.height: this.Vb.height) * c); this.Cb || (this.ca.height = d); this.mc.height = d; this.gc() }, pja: function(c) { c || (c = (c = this.pg()) ? c.TAa() : this.Vb.i()); var d; switch (this.$A) { case J.E7: d = this.Cb ? this.i() : this.mc; this.ca.width = d.width; this.ca.height = d.height; var f = d = 0; 0 < c.width && (d = this.mc.width / c.width); 0 < c.height && (f = this.mc.height / c.height); this.hg.x = d; this.hg.y = f; break; case J.voa: f = C.size(c.width * this.hg.x, c.height * this.hg.y), d = this.Cb ? this.Xn() : f, this.ca.width = d.width, this.ca.height = d.height, this.mc.width = f.width, this.mc.height = f.height } this.gc(); d = this.Ld(); switch (this.qh) { case J.g7: 0 >= c.width || 0 >= c.height ? (this.Ed.x = 0, this.Ed.y = 0) : (this.Ed.x = d.x / c.width, this.Ed.y = d.y / c.height); break; case J.h7: d = C.d(c.width * this.Ed.x, c.height * this.Ed.y) } this.p(d) }, l3: x("$A"), OBa: A("$A"), We: function(c) { this.Cb != c && (c = (this.Cb = c) ? this.i() : this.mc, this.ca.width = c.width, this.ca.height = c.height, this.gc()) }, rYa: A("Cb"), UH: function() { return C.size(this.ca) }, XTa: function() { return C.size(this.mc) }, TAa: function() { return C.size(this.ca) }, CWa: function() { return C.d(this.hg) }, Rsa: function() { return this.hg.x }, rsa: function() { return this.hg.y }, wXa: function() { return this.vm(C.d(this.Ab.x * this.o.width, this.Ab.y * this.o.height)) }, Sr: function() { return this }, Xn: function() { return C.size(this.o) }, gc: function() { this.Ca(this.ca); for (var c = this.le(), d = 0, f = c.length; d < f; d++) { var g = c[d]; g instanceof J && g.pja() } }, i: A("ca"), ef: function() { return this.ca.width }, Dg: function() { return this.ca.height }, vh: function(c) { this.uO !== c && ((this.uO = c) ? (this.ui = C.Oa.create({ event: C.Oa.Gs, yy: q, nc: this.nc.bind(this), yd: this.yd.bind(this), cd: this.cd.bind(this) }), C.Ka.addListener(this.ui, this)) : C.Ka.removeListener(this.ui)) }, k1: A("uO"), mQ: A("SF"), vj: function(c) { c != this.SF && (this.SF = c, this.Pv ? this.SF ? this.G2(J.qS) : this.G2(J.wD) : this.GC()) }, TR: function(c) { this.CO != c && ((this.CO = c) ? this.Lu() : this.hD()) }, DDa: A("CO"), sDa: A("Rq"), yR: function(c) { if (this.Rq = c) this.jn = this }, qYa: A("Rj"), a4a: x("Rq"), Pf: function(c, d) { if (s == this.PQ || s == this.PQ(c)) { var f = d instanceof L; if (this.Rq || f) { var g = this.getParent(); return s == g ? f ? d.Pf(c, d) : d: g.Pf(c, d) } return d } f = this.PQ(c); this.xx(this, f); return f }, z2a: function() { this != this.jn && this.xx(this.jn, this) }, RTa: A("jn"), YRa: u(), CI: s, PQ: s, Wr: function(c, d, f) { var g = this.pg(); g && g.Wr(c, d, f) }, BEa: function(c, d) { c && c.yR(t); d && d.yR(q) }, xx: function(c, d) { c && !c.Rq && (c = this.jn); d != c && (d && d.CI && d.CI(c, d), c && d.CI && c.CI(c, d), C.Ka.dispatchEvent(new C.fma(c, d))) }, wR: function(c) { (this.Pv = c) ? (this.Qv = J.rS, this.G2(J.wD)) : this.GC() }, G2: function(c) { if (this.Qv != c) switch (this.Qv = c = c || J.wD, this.Qv) { case J.wD: this.KI(); break; case J.qS: this.LI() } }, KI: u(), LI: u(), GC: u(), Fya: u(), nc: function(c) { this.cw = t; if (this.Ja && this.isEnabled() && this.faa() && this.gaa(this)) { var d = c.mh(); this.rm.x = d.x; this.rm.y = d.y; this.hC(this.rm) && this.f1(this.rm) && (this.cw = q) } if (!this.cw) return t; this.vj(q); (d = this.pg()) && d.Wr(J.lU, this, c); this.YFa(); return q }, yd: function(c) { var d = c.mh(); this.oB.x = d.x; this.oB.y = d.y; this.vj(this.hC(d)); (d = this.pg()) && d.Wr(J.FE, this, c); this.Rfa() }, cd: function(c) { var d = c.mh(); this.Dr.x = d.x; this.Dr.y = d.y; (d = this.pg()) && d.Wr(J.Eo, this, c); c = this.SF; this.vj(t); c ? this.o2() : this.Mca() }, Xe: function() { this.vj(t); this.Mca() }, E0a: u(), YFa: function() { this.Kn && this.Kn(this, J.lU); this.Ln && this.Mn && this.Mn.call(this.Ln, this, J.UK) }, Rfa: function() { this.Kn && this.Kn(this, J.FE); this.Ln && this.Mn && this.Mn.call(this.Ln, this, J.FE) }, o2: function() { this.Kn && this.Kn(this, J.Eo); this.Ln && this.Mn && this.Mn.call(this.Ln, this, J.Eo) }, Mca: function() { this.Kn && this.Kn(this, J.mU); this.Ln && this.Mn && this.Mn.call(this.Ln, this, J.mU) }, a0a: u(), uB: function(c, d) { d === m ? this.Kn = c: (this.Mn = c, this.Ln = d) }, hC: function(c) { var d = C.rect(0, 0, this.o.width, this.o.height); return C.Ju(d, this.wi(c)) }, f1: function(c) { this.bV = t; for (var d = this.getParent(), f = s; d;) { if (d instanceof L && d.Kq) { this.bV = q; f = d; break } d = d.getParent() } return ! this.bV ? q: f ? f.hC(c) ? f.f1(c) : t: q }, VQa: function(c) { C.log("clippingParentAreaContainPoint is deprecated. Please use isClippingParentContainsPoint instead."); this.f1(c) }, Exa: function(c, d, f) { var g = this.pg(); g && g.Exa(c, d, f) }, p: function(c, d) { if (this.$c) { var f = this.pg(); f && (f = f.UH(), 0 >= f.width || 0 >= f.height ? (this.Ed.x = 0, this.Ed.y = 0) : d ? (this.Ed.x = c / f.width, this.Ed.y = d / f.height) : (this.Ed.x = c.x / f.width, this.Ed.y = c.y / f.height)) } C.A.prototype.p.call(this, c, d) }, rs: function(c) { if (this.$c) { var d = this.pg(); d && (d = d.width, this.Ed.x = 0 >= d ? 0 : c / d) } C.A.prototype.rs.call(this, c) }, Uu: function(c) { if (this.$c) { var d = this.pg(); d && (d = d.height, this.Ed.y = 0 >= d ? 0 : c / d) } C.A.prototype.Uu.call(this, c) }, Z2: function(c) { this.Ed = c; if (this.$c && (c = this.pg())) c = c.UH(), this.p(c.width * this.Ed.x, c.height * this.Ed.y) }, Bva: function(c) { this.Ed.x = c; if (this.$c) { var d = this.pg(); d && this.rs(d.width * c) } }, Cva: function(c) { this.Ed.y = c; if (this.$c) { var d = this.pg(); d && this.Uu(d.height * c) } }, AJa: function() { this.S(this.dk()) }, aWa: function() { return C.d(this.Ed) }, Ssa: function() { return this.Ed.x }, Tsa: function() { return this.Ed.y }, a3: x("qh"), xBa: A("qh"), Nd: function(c) { this.Bb = c; this.Ak() }, oI: A("Bb"), Uf: function(c) { this.Db = c; this.yl() }, pI: A("Db"), Ak: u(), yl: u(), Qn: u(), nDa: A("Pv"), isEnabled: A("Wc"), yc: function() { return this.Rc() - this.Ab.x * this.ca.width }, wd: function() { return this.Vd() - this.Ab.y * this.ca.height }, Fc: function() { return this.yc() + this.ca.width }, Be: function() { return this.wd() + this.ca.height }, kXa: function() { C.log("getTouchStartPos is deprecated. Please use getTouchBeganPosition instead."); return this.J0() }, J0: function() { return C.d(this.rm) }, iXa: function() { C.log("getTouchMovePos is deprecated. Please use getTouchMovePosition instead."); return this.eCa() }, eCa: function() { return C.d(this.oB) }, gXa: function() { C.log("getTouchEndPos is deprecated. Please use getTouchEndPosition instead."); return this.dCa() }, dCa: function() { return C.d(this.Dr) }, Ze: x("kd"), getName: A("kd"), sCa: A("Jr"), ly: function(c) { c && (this.wA[c.Cm()] = c, this.Ct = c.Cm()) }, ml: function(c) { c = c || this.Ct; return this.wA[c] }, fk: B("Widget"), s: function() { var c = this.Uh(); c.vx(this); c.ux(this); return c }, Uh: function() { return J.create() }, ux: function(c) { c = c.le(); for (var d = 0; d < c.length; d++) { var f = c[d]; f instanceof J && this.q(f.s()) } }, xi: u(), vx: function(c) { this.Ib(c.isEnabled()); this.va(c.Ja); this.wR(c.Pv); this.vh(c.k1()); this.ul(c.Wa); this.TR(c.CO); this.Qm(c.Fm()); this.Ze(c.getName()); this.ey(c.xq); this.Cb.width = c.Cb.width; this.Cb.height = c.Cb.height; this.ca.width = c.ca.width; this.ca.height = c.ca.height; this.mc.width = c.mc.width; this.mc.height = c.mc.height; this.xi(c); this.$A = c.$A; this.hg.x = c.hg.x; this.hg.y = c.hg.y; this.qh = c.qh; this.Ed.x = c.Ed.x; this.Ed.y = c.Ed.y; this.p(c.Ld()); this.S(c.dk()); this.gb(c.ia); this.pb(c.pa); this.th(c.Mx()); this.i3(c.Xi); this.j3(c.im); this.Nd(c.oI()); this.Uf(c.pI()); this.G(c.Xa()); this.K(c.rb()); this.Kn = c.Kn; this.Ln = c.Ln; this.Mn = c.Mn; this.Rq = c.Rq; this.Rj = c.Rj; for (var d in c.wA) { var f = c.wA[d]; f && this.ly(f.s()) } this.gc() }, ey: x("xq"), Ida: A("xq"), Xa: function() { return C.color(this.ya.r, this.ya.g, this.ya.b, this.ya.a) }, K: function(c) { c !== this.ya.a && (this.ya.a = c, this.jD(c)) }, rb: A("hb"), jD: function(c) { for (var d in this.l) { var f = this.l[d]; f && f.sb && f.K(c) } }, Ei: function(c) { c.sb && c.G(this.ya) }, Al: function(c) { c.sb && c.K(this.ya.a) }, I6a: function(c) { c.G(this.ya); c.K(this.Eb) } }), H = J.prototype; C.e(H, "xPercent", H.Ssa, H.Bva); C.e(H, "yPercent", H.Tsa, H.Cva); C.e(H, "widthPercent", H.Rsa, H.Ava); C.e(H, "heightPercent", H.rsa, H.Yua); C.e(H, "widgetParent", H.pg); C.e(H, "enabled", H.isEnabled, H.Ib); C.e(H, "focused", H.sDa, H.yR); C.e(H, "sizeType", H.OBa, H.l3); C.e(H, "widgetType", H.sCa); C.e(H, "touchEnabled", H.k1, H.vh); C.e(H, "updateEnabled", H.DDa, H.TR); C.e(H, "bright", H.nDa, H.wR); C.e(H, "name", H.getName, H.Ze); C.e(H, "actionTag", H.Ida, H.ey); C.e(H, "opacity", H.rb, H.K); H = s; J.create = function() { return new J }; J.rS = -1; J.wD = 0; J.qS = 1; J.HE = 0; J.xpa = 1; J.bn = 0; J.Jl = 1; J.Nl = 0; J.Zm = 1; J.Pa = 0; J.ab = 1; J.UK = 0; J.FE = 1; J.Eo = 2; J.mU = 3; J.E7 = 0; J.voa = 1; J.g7 = 0; J.h7 = 1; C.fma = C.oe.extend({ kwa: s, lwa: s, ctor: function(c, d) { this.kwa = d; this.lwa = c } }); var L = J.extend({ Kq: t, Xs: s, Cd: s, qL: s, ZE: s, et: s, $E: J.Pa, ii: s, ff: s, ya: s, Kg: s, Ef: s, Ji: s, Eb: 255, rL: s, Dt: s, $g: q, JL: q, Lq: s, $f: s, XW: t, sPa: t, So: s, OV: s, qa: "Layout", Aq: s, Ga: 0, Ha: 0, mOa: 0, tOa: 0, oOa: 0, rOa: 0, sOa: 0, nOa: 0, pOa: 0, qOa: 0, lOa: 0, iOa: 0, jOa: 0, kOa: 0, j9: 0, cPa: 0, mw: t, Bw: t, $q: t, ctor: function() { this.Dt = L.yja; this.Jr = J.xpa; this.Lq = L.SJ; this.et = L.t4; J.prototype.ctor.call(this); this.ZE = C.rect(0, 0, 0, 0); this.ya = C.color(255, 255, 255, 255); this.Kg = C.color(255, 255, 255, 255); this.Ef = C.color(255, 255, 255, 255); this.Ji = C.d(0, -1); this.rL = C.size(0, 0); this.So = C.rect(0, 0, 0, 0); this.Aq = C.color(255, 255, 255, 255) }, Z: function() { J.prototype.Z.call(this); this.$f && this.$f.Z(); this.JL = this.$g = q }, Na: function() { J.prototype.Na.call(this); this.$f && this.$f.Na() }, w4a: x("mw"), xYa: A("mw"), O4a: x("Bw"), CYa: A("Bw"), Pf: function(c, d) { if (this.$q || this.Rq) { var f = this.getParent(); this.$q = t; if (this.Bw) { var g = this.Bw(c, d); return g instanceof L && f ? (f.$q = q, f.Pf(c, this)) : g } if (s == f) return this; f.$q = q; return f.Pf(c, this) } if (d.Rq || d instanceof L) if (this.Dt == L.nq) switch (c) { case J.bn: return this.EM(c, d); case J.Jl: return this.DM(c, d); case J.Zm: case J.Nl: return this.bp(this, c) ? this.jw(d, c) ? this.Pf(c, this) : d: this.Pf(c, this); default: return C.assert(0, "Invalid Focus Direction"), d } else if (this.Dt == L.oq) switch (c) { case J.bn: case J.Jl: return this.bp(this, c) ? this.jw(d, c) ? this.Pf(c, this) : d: this.Pf(c, this); case J.Zm: return this.DM(c, d); case J.Nl: return this.EM(c, d); default: return C.assert(0, "Invalid Focus Direction"), d } else return C.assert(0, "Un Supported Layout type, please use VBox and HBox instead!!!"), d; else return d }, FC: s, j: function() { return J.prototype.j.call(this) ? (this.We(t), this.yf(C.size(0, 0)), this.S(0, 0), this.FC = this.EF.bind(this), q) : t }, Fqa: function(c) { c = c || C.t; for (var d = this.$f, f = C.view.ia, g = C.view.pa, h = 0; h < d.$b.length; h++) { var k = d.$b[h].wg, n = k[0]; c.beginPath(); c.moveTo(n.x * f, -n.y * g); for (var n = 1, p = k.length; n < p; n++) c.lineTo(k[n].x * f, -k[n].y * g) } }, q: function(c, d, f) { c instanceof J && this.Tia(c); J.prototype.q.call(this, c, d, f); this.$g = q }, removeChild: function(c, d) { J.prototype.removeChild.call(this, c, d); this.$g = q }, xf: function(c) { J.prototype.xf.call(this, c); this.$g = q }, Ku: function(c) { J.prototype.Ku(c); this.$g = q }, oDa: A("Kq"), J: function(c) { if (this.Ja) if (this.Qn(), this.Vl(), this.Kq) switch (this.Lq) { case L.SJ: this.E3(c); break; case L.H4: this.z2(c) } else J.prototype.J.call(this, c) }, ed: function() { J.prototype.ed.call(this); this.Vl() }, E3: s, Lva: function(c) { var d = c || C.t; if (this.$f && this.$f.Ja) if (L.rn = -1, L.rn + 1 == C.xy) L.gx = q, L.gx && (C.log("Nesting more than " + C.xy + "stencils is not supported. Everything will be drawn without stencil for this node and its childs."), L.gx = t), C.A.prototype.J.call(this, c); else { L.rn++; var f = 1 << L.rn, g = f | f - 1; c = d.isEnabled(d.STENCIL_TEST); var h = d.getParameter(d.STENCIL_WRITEMASK), k = d.getParameter(d.STENCIL_FUNC), n = d.getParameter(d.STENCIL_REF), p = d.getParameter(d.STENCIL_VALUE_MASK), r = d.getParameter(d.STENCIL_FAIL), v = d.getParameter(d.STENCIL_PASS_DEPTH_FAIL), y = d.getParameter(d.STENCIL_PASS_DEPTH_PASS); d.enable(d.STENCIL_TEST); d.stencilMask(f); var z = d.getParameter(d.DEPTH_WRITEMASK); d.depthMask(t); d.stencilFunc(d.NEVER, f, f); d.stencilOp(d.ZERO, d.KEEP, d.KEEP); C.Df.X_(C.d(0, 0), C.mga(), C.color(255, 255, 255, 255)); d.stencilFunc(d.NEVER, f, f); d.stencilOp(d.REPLACE, d.KEEP, d.KEEP); C.Zr(); this.transform(); this.$f.J(); d.depthMask(z); d.stencilFunc(d.EQUAL, g, g); d.stencilOp(d.KEEP, d.KEEP, d.KEEP); g = f = 0; this.ed(); this.YR(); for (var z = this.l, D = this.fh, E = z.length, F = D.length, G; f < E; f++) if ((G = z[f]) && 0 > G.Wa) G.J(); else break; for (; g < F; g++) if ((G = D[g]) && 0 > G.Wa) G.J(); else break; for (this.ka(); f < E; f++) z[f].J(); for (; g < F; g++) D[g].J(); d.stencilFunc(k, n, p); d.stencilOp(r, v, y); d.stencilMask(h); c || d.disable(d.STENCIL_TEST); L.rn--; C.Yr() } }, Oba: function(c) { if (this.$f && this.$f.Ja) { c = c || C.t; if (this.Rv() || this.$f instanceof C.u) { var d = c.canvas, f = L.TW(); f.width = d.width; f.height = d.height; f.getContext("2d").drawImage(d, 0, 0); c.save(); C.A.prototype.J.call(this, c); c.globalCompositeOperation = "destination-in"; this.transform(c); this.$f.J(); c.restore(); c.save(); c.setTransform(1, 0, 0, 1, 0, 0); c.globalCompositeOperation = "destination-over"; c.drawImage(f, 0, 0) } else { var f = this.l, g; c.save(); this.transform(c); this.$f.J(c); c.clip(); this.Rv(q); this.ed(); this.YR(); for (var h, k = this.fh, n = f.length, p = k.length, d = 0; d < n; d++) if ((g = f[d]) && 0 > g.Wa) g.J(c); else break; for (h = 0; h < p; h++) if ((g = k[h]) && 0 > g.Wa) g.J(c); else break; for (; d < n; d++) f[d].J(c); for (; h < p; h++) k[h].J(c); this.Rv(t) } c.restore() } }, QF: t, Rv: function(c) { if (c === q || c === t) C.Tc.prototype.QF = c; return C.Tc.prototype.QF }, z2: s, Lua: function(c) { var d = this.Qda(); c = c || C.t; this.XW && c.enable(c.SCISSOR_TEST); C.view.LR(d.x, d.y, d.width, d.height); C.A.prototype.J.call(this); this.XW && c.disable(c.SCISSOR_TEST) }, aq: function(c) { if (c != this.Kq) switch (this.Kq = c, this.Lq) { case L.SJ: c ? (this.$f = C.Tg.create(), C.L === C.cb && (this.$f.ka = this.Fqa.bind(this)), this.$c && this.$f.Z(), this.wia(this.o)) : (this.$c && this.$f.Na(), this.$f = s) } }, tha: function(c) { if (c != this.Lq) { var d = this.Kq; this.aq(t); this.Lq = c; this.aq(d) } }, GTa: A("Lq"), wia: function(c) { if (this.Kq && this.Lq == L.SJ) { var d = []; d[0] = C.d(0, 0); d[1] = C.d(c.width, 0); d[2] = C.d(c.width, c.height); d[3] = C.d(0, c.height); c = C.color.GREEN; this.$f.clear(); this.$f.Of(d, 4, c, 0, c) } }, w2a: function() { this.Vl() }, Qda: function() { if (this.JL) { var c = this.vm(C.d(0, 0)), d = this.ql(), f = this.o.width * d.a, d = this.o.height * d.P, g; g = this; for (var h = t; g;) if ((g = g.getParent()) && g instanceof L && g.Kq) if (h || (this.OV = g, h = q), g.Lq == L.H4) { this.XW = t; break } if (this.OV) { g = this.OV.Qda(); var h = c.x - f * this.Ab.x, k = c.y - d * this.Ab.y, n = f, p = d, r = c.x - g.x; 0 > r && (h = g.x, n += r); f = c.x + f - (g.x + g.width); 0 < f && (n -= f); f = c.y + d - (g.y + g.height); 0 < f && (p -= f); c = c.y - g.y; 0 > c && (k = g.x, p += c); 0 > n && (n = 0); 0 > p && (p = 0); this.So.x = h; this.So.y = k; this.So.width = n; this.So.height = p } else this.So.x = c.x - f * this.Ab.x, this.So.y = c.y - d * this.Ab.y, this.So.width = f, this.So.height = d; this.JL = t } return this.So }, gc: function() { J.prototype.gc.call(this); this.wia(this.o); this.JL = this.$g = q; this.Cd && (this.Cd.p(0.5 * this.o.width, 0.5 * this.o.height), this.Xs && this.Cd instanceof C.Sa && this.Cd.De(this.o)); this.ii && this.ii.Ca(this.o); this.ff && this.ff.Ca(this.o) }, rR: function(c) { this.Xs != c && (this.Ai(this.Cd), this.Cd = s, this.Xs = c, this.lca(), this.Nu(this.qL, this.$E), this.bJ(this.ZE)) }, gYa: A("Xs"), Nu: function(c, d) { if (c) { d = d || J.Pa; this.Cd == s && this.lca(); this.qL = c; this.$E = d; if (this.Xs) { var f = this.Cd; switch (this.$E) { case J.Pa: f.Ce(c); break; case J.ab: f.pl(c) } f.De(this.o) } else switch (f = this.Cd, this.$E) { case J.Pa: f.Va(c); break; case J.ab: f.pc(c) } this.rL = this.Cd.i(); this.Cd.p(this.o.width / 2, this.o.height / 2); this.cca() } }, bJ: function(c) { this.ZE = c; this.Xs && this.Cd.Gc(c) }, ZSa: A("ZE"), Tia: function(c) { if (c) switch (this.Dt) { case L.nq: case L.oq: var d = c.ml(wc.LINEAR); d || c.ly(Ic.create()); break; case L.$y: (d = c.ml(wc.$y)) || c.ly(P.create()) } }, lca: function() { this.Xs ? (this.Cd = C.Sa.create(), this.Cd.De(this.o)) : this.Cd = C.u.create(); this.Yc(this.Cd, L.Sja, -1); this.Cd.p(this.o.width / 2, this.o.height / 2) }, b2a: function() { this.Cd && (this.Ai(this.Cd), this.Cd = s, this.qL = "", this.rL = C.size(0, 0)) }, pR: function(c) { if (this.et != c) { switch (this.et) { case L.t4: this.ii && (this.Ai(this.ii), this.ii = s); this.ff && (this.Ai(this.ff), this.ff = s); break; case L.oS: this.ii && (this.Ai(this.ii), this.ii = s); break; case L.nS: this.ff && (this.Ai(this.ff), this.ff = s) } this.et = c; switch (this.et) { case L.oS: this.ii = C.gd.create(); this.ii.Ca(this.o); this.ii.K(this.Eb); this.ii.G(this.ya); this.Yc(this.ii, L.r4, -1); break; case L.nS: this.ff = C.pq.create(C.color(255, 0, 0, 255), C.color(0, 255, 0, 255)), this.ff.Ca(this.o), this.ff.K(this.Eb), this.ff.tg(this.Kg), this.ff.sg(this.Ef), this.ff.UR(this.Ji), this.Yc(this.ff, L.r4, -1) } } }, WSa: A("et"), Mu: function(c, d) { d ? (this.Kg.r = c.r, this.Kg.g = c.g, this.Kg.b = c.b, this.ff && this.ff.tg(c), this.Ef = d, this.ff && this.ff.sg(d)) : (this.ya.r = c.r, this.ya.g = c.g, this.ya.b = c.b, this.ii && this.ii.G(c)) }, USa: function() { var c = this.ya; return C.color(c.r, c.g, c.b, c.a) }, bTa: function() { var c = this.Kg; return C.color(c.r, c.g, c.b, c.a) }, YSa: function() { var c = this.Ef; return C.color(c.r, c.g, c.b, c.a) }, oR: function(c) { this.Eb = c; switch (this.et) { case L.oS: this.ii.K(c); break; case L.nS: this.ff.K(c) } }, VSa: A("Eb"), qR: function(c) { this.Ji.x = c.x; this.Ji.y = c.y; this.ff && this.ff.UR(c) }, XSa: A("Ji"), t3a: function(c) { this.Aq.r = c.r; this.Aq.g = c.g; this.Aq.b = c.b; this.cca() }, u3a: function(c) { this.Aq.a = c; this.aAa() }, aAa: function() { var c = this.Aq; return C.color(c.r, c.g, c.b, c.a) }, $Sa: function() { return this.Aq.a }, cca: function() { this.Cd && this.Cd.G(this.Aq) }, aTa: A("rL"), Pm: function(c) { this.Dt = c; c = this.l; for (var d = s, f = 0; f < c.length; f++) d = c[f], d instanceof J && this.Tia(d); this.$g = q }, Cm: A("Dt"), y2a: function() { this.$g = q }, Vl: function() { if (this.$g) { var c = this.Ara(); c && c.Vl(this); this.$g = t } }, Ara: function() { var c = s; switch (this.Dt) { case L.oq: c = Jc.create(); break; case L.nq: c = Kc.create(); break; case L.$y: c = Lc.create() } return c }, MW: function() { return this.i() }, NW: function() { return this.le() }, lPa: u(), BOa: u(), iPa: u(), jPa: u(), Lta: u(), Lta: u(), HPa: function() { this.Cd && this.Cd.K(this.j9) }, IPa: function() { this.Cd && (this.Cd.G(this.Aq), this.Cd.K(this.j9)) }, R$: function() { for (var c = this.le(), d = C.size(0, 0), f = 0, g, h = 0, k = c.length; h < k; h++) if (g = c[h], s != g && g instanceof L) g = g.R$(), d.width += g.width, d.height += g.height; else if (g instanceof J) { f++; var n = w.ml().pi; g = w.i(); d.width += g.width + 0.5 * (n.right + n.left); d.height += g.height + 0.5 * (n.top + n.bottom) } c = this.Cm(); c == L.nq && (d.height -= d.height / f * (f - 1)); c == L.oq && (d.width -= d.width / f * (f - 1)); return d }, EF: function(c, d) { if (d == s || d == this) return this.x$(); var f = 0, g = this.le(), h = g.length, k, n = C.pv, p = 0; if (c == J.bn || c == J.Jl || c == J.Zm || c == J.Nl) { for (k = this.Zo(d); f < h;) { var r = g[f]; r && (r instanceof J && r.Rj) && (r = r instanceof L ? r.r9(d) : C.Ye(C.cc(this.Zo(r), k)), r < n && (p = f, n = r)); f++ } return p } C.assert(0, "invalid focus direction!"); return 0 }, vM: function(c, d) { if (d == s || d == this) return this.x$(); var f = 0, g = this.le().size(), h = -C.pv, k = 0; if (c == J.bn || c == J.Jl || c == J.Zm || c == J.Nl) { for (var n = this.Zo(d); f < g;) { if (w && w instanceof J && w.Rj) { var p = w instanceof L ? w.q9(d) : C.Ye(C.cc(this.Zo(w), n)); p > h && (k = f, h = p) } f++ } return k } C.assert(0, "invalid focus direction!!!"); return 0 }, r9: function(c) { for (var d = C.pv, f = this.Zo(c), g = this.l, h = 0, k = g.length; h < k; h++) { var n = g[h]; if (n instanceof L) n = n.r9(c); else if (n instanceof J && n.Rj) n = C.Ye(C.cc(this.Zo(n), f)); else continue; n < d && (d = n) } return d }, q9: function(c) { for (var d = -C.pv, f = this.Zo(c), g = this.l, h = 0, k = g.length; h < k; h++) { var n = g[h]; if (n instanceof L) n = n.q9(c); else if (n instanceof J && n.Rj) n = this.Zo(w), n = C.Ye(C.cc(n, f)); else continue; n > d && (d = n) } return d }, Xra: function(c, d) { if (d != s) { var f = this.Zo(d), g = this.Zo(this.y$()); c == J.bn ? this.FC = f.x > g.x ? this.EF.bind(this) : this.vM.bind(this) : c == J.Jl ? this.FC = f.x > g.x ? this.vM.bind(this) : this.EF.bind(this) : c == J.Zm ? this.FC = f.y > g.y ? this.EF.bind(this) : this.vM.bind(this) : c == J.Nl ? this.FC = f.y < g.y ? this.EF.bind(this) : this.vM.bind(this) : C.assert(0, "invalid direction!") } }, y$: function() { for (var c = this.l, d = 0, f = c.length; d < f; d++) { var g = c[d]; if (g instanceof L) { if (g = g.y$()) return g } else if (g instanceof C.QNa) return g } return s }, x$: function() { for (var c = 0, d = this.le(), f = d.length; c < f;) { var g = d[c]; if (g && g instanceof J && g.Rj) return c; c++ } return 0 }, Wra: function(c) { var d = this.eA(c); return d ? d.Rj ? d: this.Wra(c + 1) : s }, Zo: function(c) { var d = c instanceof L ? c.R$() : c.i(); return c.vm(C.d(d.width / 2, d.height / 2)) }, DM: function(c, d) { var f = s, f = this.l, g = f.indexOf(d), g = g + 1; if (g < f.length) { if (f = this.eA(g)) { if (f.Rj) { if (f instanceof L) return f.$q = q, f.Pf(c, f); this.xx(d, f); return f } return this.DM(c, f) } return d } if (this.mw) { if (this.JV()) { f = this.eA(0); if (f.Rj) { if (f instanceof L) return f.$q = q, f.Pf(c, f); this.xx(d, f); return f } return this.DM(c, f) } return d instanceof L ? d: this.jn } return this.bp(d, c) ? this.jw(this, c) ? this.Pf(c, this) : d instanceof L ? d: this.jn: this.Pf(c, this) }, EM: function(c, d) { var f = s, f = this.l, g = f.indexOf(d), g = g - 1; if (0 <= g) { f = this.eA(g); if (f.Rj) { if (f instanceof L) return f.$q = q, f.Pf(c, f); this.xx(d, f); return f } return this.EM(c, f) } if (this.mw) { if (this.JV()) { g = f.length - 1; f = this.eA(g); if (f.Rj) { if (f instanceof L) return f.$q = q, f.Pf(c, f); this.xx(d, f); return f } return this.EM(c, f) } return d instanceof L ? d: this.jn } return this.bp(d, c) ? this.jw(this, c) ? this.Pf(c, this) : d instanceof L ? d: this.jn: this.Pf(c, this) }, eA: function(c) { for (var d = this.l, f = d.length, g = 0, h = c; c < f;) { var k = d[c]; if (k && k instanceof J) return k; g++; c++ } for (c = 0; c < h;) { if ((f = d[c]) && f instanceof J) return f; g++; c++ } return s }, bp: function(c, d) { var f = c.getParent(); if (f instanceof L) return q; var g = f.le(), h = g.indexOf(c); if (f.Cm() == L.nq) { if (d == J.bn) return 0 == h ? 1 * this.bp(f, d) : t; if (d == J.Jl) return h == g.length - 1 ? 1 * this.bp(f, d) : t; if (d == J.Zm || d == J.Nl) return this.bp(f, d) } else if (f.Cm() == L.oq) { if (d == J.Nl) return 0 == h ? 1 * this.bp(f, d) : t; if (d == J.Zm) return h == g.length - 1 ? 1 * this.bp(f, d) : t; if (d == J.bn || d == J.Jl) return this.bp(f, d) } else C.assert(0, "invalid layout Type"); return t }, jw: function(c, d) { var f = c.getParent(); if (f == s) return t; if (f.mw) { var g = f.Cm(); if (g == L.nq) return d == J.bn || d == J.Jl ? q: this.jw(f, d); if (g == L.oq) return d == J.Zm || d == J.Nl ? q: this.jw(f, d); C.assert(0, "invalid layout type") } else return this.jw(f, d) }, Bw: function(c, d) { if (this.JV()) { var f = this.jn; this.Xra(c, f); f = this.FC(c, f); f = this.eA(f); if (f instanceof L) return f.$q = q, f.Pf(c, f); this.xx(d, f); return f } return this }, JV: function() { for (var c = this.l, d = 0, f = c.length; d < f; d++) { var g = c[d]; if (g && g instanceof J && g.Rj) return q } return t }, fk: B("Layout"), Uh: function() { return L.create() }, ux: function(c) { J.prototype.ux.call(this, c) }, xi: function(c) { this.rR(c.Xs); this.Nu(c.qL, c.$E); this.bJ(c.ZE); this.pR(c.et); this.Mu(c.ya); this.Mu(c.Kg, c.Ef); this.oR(c.Eb); this.qR(c.Ji); this.Pm(c.Dt); this.aq(c.Kq); this.tha(c.Lq); this.mw = c.mw; this.Bw = c.Bw } }); L.MM = s; L.gx = s; L.rn = s; L.GG = s; C.L == C.la ? (L.prototype.E3 = L.prototype.Lva, L.prototype.z2 = L.prototype.Lua) : (L.prototype.E3 = L.prototype.Oba, L.prototype.z2 = L.prototype.Oba); L.TW = function() { return C.Tc.GG || (C.Tc.GG = C.bd("canvas")) }; H = L.prototype; C.e(H, "clippingEnabled", H.oDa, H.aq); C.e(H, "clippingType", s, H.tha); C.e(H, "layoutType", H.Cm, H.Pm); H = s; L.create = function() { return new L }; L.t4 = 0; L.oS = 1; L.nS = 2; L.yja = 0; L.oq = 1; L.nq = 2; L.$y = 3; L.SJ = 0; L.H4 = 1; L.Sja = -2; L.r4 = -2; var Mc = uc.extend({ left: 0, top: 0, right: 0, bottom: 0, ctor: function(c, d, f, g) { c && d === m && (this.left = c.left, this.top = c.top, this.right = c.right, this.bottom = c.bottom); g !== m && (this.left = c, this.top = d, this.right = f, this.bottom = g) }, mo: function(c, d, f, g) { this.left = c; this.top = d; this.right = f; this.bottom = g }, cSa: function(c) { return this.left == c.left && this.top == c.top && this.right == c.right && this.bottom == c.bottom } }); function Nc() { return new Mc(0, 0, 0, 0) } var wc = uc.extend({ pi: s, Ct: s, ctor: function() { this.pi = new Mc; this.Ct = wc.NONE }, mo: function(c, d, f, g) { "object" === typeof c ? (this.pi.left = c.left, this.pi.top = c.top, this.pi.right = c.right, this.pi.bottom = c.bottom) : (this.pi.left = c, this.pi.top = d, this.pi.right = f, this.pi.bottom = g) }, mVa: A("pi"), Cm: A("Ct"), s: function() { var c = this.Uh(); c.vx(this); return c }, Uh: function() { return wc.create() }, vx: function(c) { this.pi = c.pi } }); wc.create = function() { return new wc }; wc.NONE = 0; wc.LINEAR = 1; wc.$y = 2; var Ic = wc.extend({ $M: s, ctor: function() { wc.prototype.ctor.call(this); this.$M = Ic.NONE; this.Ct = wc.LINEAR }, oc: x("$M"), MH: A("$M"), Uh: function() { return Ic.create() }, vx: function(c) { wc.prototype.vx.call(this, c); c && (this.mR(c.Iw), this.IR(c.SA), this.JR(c.TA), this.oc(c.$M)) } }); Ic.create = function() { return new Ic }; Ic.NONE = 0; Ic.bn = 1; Ic.U7 = 2; Ic.Jl = 3; Ic.pS = 4; Ic.ES = 5; Ic.DS = 6; var P = wc.extend({ Iw: s, TA: "", SA: "", ri: t, ctor: function() { wc.prototype.ctor.call(this); this.Iw = P.NONE; this.SA = this.TA = ""; this.ri = t; this.Ct = wc.$y }, mR: x("Iw"), GSa: A("Iw"), JR: x("TA"), lWa: A("TA"), IR: x("SA"), kWa: A("SA"), Uh: function() { return P.create() }, vx: function(c) { wc.prototype.vx.call(this, c); this.mR(c.Iw); this.JR(c.TA); this.IR(c.SA) } }); P.create = function() { return new P }; P.NONE = 0; P.T6 = 1; P.S6 = 2; P.U6 = 3; P.P6 = 4; P.yka = 5; P.R6 = 6; P.O6 = 7; P.N6 = 8; P.Q6 = 9; P.i6 = 10; P.h6 = 11; P.j6 = 12; P.p6 = 13; P.o6 = 14; P.n6 = 15; P.s6 = 16; P.r6 = 17; P.q6 = 18; P.l6 = 19; P.k6 = 20; P.m6 = 21; var bd = uc.extend({ Vl: u() }), Jc = bd.extend({ Vl: function(c) { var d = c.MW(); c = c.NW(); for (var f = d.height, g = 0, h = c.length; g < h; g++) { var k = c[g]; if (k) { var n = k.ml(); if (n) { var p = n.MH(), r = k.dk(), v = k.i(), y = r.x * v.width, f = f - (1 - r.y) * v.height; switch (p) { case Ic.Jl: y = d.width - (1 - r.x) * v.width; break; case Ic.DS: y = d.width / 2 - v.width * (0.5 - r.x) } n = n.pi; y += n.left; f -= n.top; k.p(y, f); f = k.Vd() - k.dk().y * k.i().height - n.bottom } } } } }); Jc.create = function() { return new Jc }; var Kc = bd.extend({ Vl: function(c) { var d = c.MW(); c = c.NW(); for (var f = 0, g = 0, h = c.length; g < h; g++) { var k = c[g]; if (k) { var n = k.ml(); if (n) { var p = n.MH(), r = k.dk(), v = k.UH(), f = f + r.x * v.width, y = d.height - (1 - r.y) * v.height; switch (p) { case Ic.pS: y = r.y * v.height; break; case Ic.ES: y = d.height / 2 - v.height * (0.5 - r.y) } n = n.pi; f += n.left; y -= n.top; k.p(f, y); f = k.Fc() + n.right } } } } }); Kc.create = function() { return new Kc }; var Lc = bd.extend({ qZ: s, LO: s, hH: s, Ga: 0, Ha: 0, ge: s, Vl: function(c) { for (var d = this.LO = this.gsa(c); 0 < this.qZ;) { for (var f = 0, g = d.length; f < g; f++) { this.hH = d[f]; var h = this.hH.ml(); h && !h.ri && this.dra(c) && (this.cra(), this.hH.p(this.Ga, this.Ha), h.ri = q) } this.qZ-- } this.LO.length = 0 }, gsa: function(c) { c = c.NW(); for (var d = [], f = 0, g = c.length; f < g; f++) { var h = c[f]; h && (h.ml().ri = t, this.qZ++, d.push(h)) } return d }, Gsa: function(c) { var d = s; if ((c = c.ml().TA) && 0 != c.length) for (var f = this.LO, g = 0, h = f.length; g < h; g++) { var k = f[g]; if (k) { var n = k.ml(); if (n && n.SA == c) { d = k; this.ge = n; break } } } return d }, dra: function(c) { var d = this.hH, f = d.dk(), g = d.i(); this.Ha = this.Ga = 0; var h = this.Gsa(d), d = d.ml().Iw; c = c.MW(); switch (d) { case P.NONE: case P.T6: this.Ga = f.x * g.width; this.Ha = c.height - (1 - f.y) * g.height; break; case P.S6: this.Ga = 0.5 * c.width - g.width * (0.5 - f.x); this.Ha = c.height - (1 - f.y) * g.height; break; case P.U6: this.Ga = c.width - (1 - f.x) * g.width; this.Ha = c.height - (1 - f.y) * g.height; break; case P.P6: this.Ga = f.x * g.width; this.Ha = 0.5 * c.height - g.height * (0.5 - f.y); break; case P.yka: this.Ga = 0.5 * c.width - g.width * (0.5 - f.x); this.Ha = 0.5 * c.height - g.height * (0.5 - f.y); break; case P.R6: this.Ga = c.width - (1 - f.x) * g.width; this.Ha = 0.5 * c.height - g.height * (0.5 - f.y); break; case P.O6: this.Ga = f.x * g.width; this.Ha = f.y * g.height; break; case P.N6: this.Ga = 0.5 * c.width - g.width * (0.5 - f.x); this.Ha = f.y * g.height; break; case P.Q6: this.Ga = c.width - (1 - f.x) * g.width; this.Ha = f.y * g.height; break; case P.i6: if (h) { if (this.ge && !this.ge.ri) return t; var d = h.Be(), k = h.yc(); this.Ha = d + f.y * g.height; this.Ga = k + f.x * g.width } break; case P.h6: if (h) { if (this.ge && !this.ge.ri) return t; c = h.i(); d = h.Be(); this.Ha = d + f.y * g.height; this.Ga = h.yc() + 0.5 * c.width + f.x * g.width - 0.5 * g.width } break; case P.j6: if (h) { if (this.ge && !this.ge.ri) return t; d = h.Be(); k = h.Fc(); this.Ha = d + f.y * g.height; this.Ga = k - (1 - f.x) * g.width } break; case P.p6: if (h) { if (this.ge && !this.ge.ri) return t; d = h.Be(); k = h.yc(); this.Ha = d - (1 - f.y) * g.height; this.Ga = k - (1 - f.x) * g.width } break; case P.o6: if (h) { if (this.ge && !this.ge.ri) return t; c = h.i(); k = h.yc(); this.Ga = k - (1 - f.x) * g.width; this.Ha = h.wd() + 0.5 * c.height + f.y * g.height - 0.5 * g.height } break; case P.n6: if (h) { if (this.ge && !this.ge.ri) return t; d = h.wd(); k = h.yc(); this.Ha = d + f.y * g.height; this.Ga = k - (1 - f.x) * g.width } break; case P.s6: if (h) { if (this.ge && !this.ge.ri) return t; d = h.Be(); k = h.Fc(); this.Ha = d - (1 - f.y) * g.height; this.Ga = k + f.x * g.width } break; case P.r6: if (h) { if (this.ge && !this.ge.ri) return t; c = h.i(); k = h.Fc(); this.Ga = k + f.x * g.width; this.Ha = h.wd() + 0.5 * c.height + f.y * g.height - 0.5 * g.height } break; case P.q6: if (h) { if (this.ge && !this.ge.ri) return t; d = h.wd(); k = h.Fc(); this.Ha = d + f.y * g.height; this.Ga = k + f.x * g.width } break; case P.l6: if (h) { if (this.ge && !this.ge.ri) return t; d = h.wd(); k = h.yc(); this.Ha = d - (1 - f.y) * g.height; this.Ga = k + f.x * g.width } break; case P.k6: if (h) { if (this.ge && !this.ge.ri) return t; c = h.i(); d = h.wd(); this.Ha = d - (1 - f.y) * g.height; this.Ga = h.yc() + 0.5 * c.width + f.x * g.width - 0.5 * g.width } break; case P.m6: if (h) { if (this.ge && !this.ge.ri) return t; d = h.wd(); k = h.Fc(); this.Ha = d - (1 - f.y) * g.height; this.Ga = k - (1 - f.x) * g.width } } return q }, cra: function() { var c = this.hH.ml(), d = c.pi; switch (c.Iw) { case P.NONE: case P.T6: this.Ga += d.left; this.Ha -= d.top; break; case P.S6: this.Ha -= d.top; break; case P.U6: this.Ga -= d.right; this.Ha -= d.top; break; case P.P6: this.Ga += d.left; break; case P.R6: this.Ga -= d.right; break; case P.O6: this.Ga += d.left; this.Ha += d.bottom; break; case P.N6: this.Ha += d.bottom; break; case P.Q6: this.Ga -= d.right; this.Ha += d.bottom; break; case P.i6: this.Ha += d.bottom; this.Ga += d.left; break; case P.j6: this.Ha += d.bottom; this.Ga -= d.right; break; case P.h6: this.Ha += d.bottom; break; case P.p6: this.Ga -= d.right; this.Ha -= d.top; break; case P.n6: this.Ga -= d.right; this.Ha += d.bottom; break; case P.o6: this.Ga -= d.right; break; case P.s6: this.Ga += d.left; this.Ha -= d.top; break; case P.q6: this.Ga += d.left; this.Ha += d.bottom; break; case P.r6: this.Ga += d.left; break; case P.l6: this.Ha -= d.top; this.Ga += d.left; break; case P.m6: this.Ha -= d.top; this.Ga -= d.right; break; case P.k6: this.Ha -= d.top } } }); Lc.create = function() { return new Lc }; var cd = L.extend({ j: function() { return L.prototype.j.call(this) ? (this.Pm(L.nq), q) : t }, Mp: function(c) { return this.j() ? (this.yf(c), q) : t } }); cd.create = function(c) { var d = new cd; return c ? d.Mp() ? d: s: d }; var dd = L.extend({ j: function() { return L.prototype.j.call(this) ? (this.Pm(L.$y), q) : t }, Mp: function(c) { return this.j() ? (this.yf(c), q) : t } }); dd.create = function(c) { var d = new dd; return c ? d.Mp() ? d: s: d }; var ed = L.extend({ j: function() { return L.prototype.j.call(this) ? (this.Pm(L.PNa), q) : t }, Mp: function(c) { return this.j() ? (this.yf(c), q) : t } }); ed.create = function(c) { var d = new ed; return c ? d.Mp() ? d: s: d }; function fd(c, d) { if (!c) return s; if (c.xq == d) return c; for (var f = c.le(), g = 0; g < f.length; g++) { var h = fd(f[g], d); if (h != s) return h } return s }; var gd = J.extend({ eb: s, Ob: s, Ub: s, kg: s, CX: "", NV: "", eW: "", Qe: q, W: t, zz: s, Az: s, yz: s, hG: J.Pa, sG: J.Pa, wF: J.Pa, It: s, bY: s, gW: s, YQ: t, pO: s, uw: 1, vw: 1, Ew: 1, Fw: 1, Jta: t, aY: t, Gra: t, Ag: q, qa: "Button", DX: q, $X: q, fW: q, Oc: "Thonburi", Pc: 12, xc: 0, ctor: function() { this.zz = C.rect(0, 0, 0, 0); this.Az = C.rect(0, 0, 0, 0); this.yz = C.rect(0, 0, 0, 0); var c = this.ca; this.It = C.size(c.width, c.height); this.bY = C.size(c.width, c.height); this.gW = C.size(c.width, c.height); this.pO = C.color.WHITE; J.prototype.ctor.call(this) }, j: function(c, d, f, g) { if (J.prototype.j.call(this)) { this.vh(q); if (c === m) return q; this.pj(c, d, f, g) } return t }, ol: function() { this.eb = C.u.create(); this.Ob = C.u.create(); this.Ub = C.u.create(); this.kg = C.fa.create(""); this.Yc(this.eb, gd.K6, -1); this.Yc(this.Ob, gd.i7, -1); this.Yc(this.Ub, gd.w5, -1); this.Yc(this.kg, gd.rpa, -1) }, uh: function(c) { this.W != c && (this.Qv = J.rS, this.W = c, this.Ai(this.eb), this.Ai(this.Ob), this.Ai(this.Ub), this.W ? (this.eb = C.Sa.create(), this.Ob = C.Sa.create(), this.Ub = C.Sa.create()) : (this.eb = C.u.create(), this.Ob = C.u.create(), this.Ub = C.u.create()), this.Rx(this.CX, this.hG), this.Sx(this.NV, this.sG), this.Qx(this.eW, this.wF), this.Yc(this.eb, gd.K6, -1), this.Yc(this.Ob, gd.i7, -1), this.Yc(this.Ub, gd.w5, -1), this.W ? (c = this.Cb, this.We(t), this.Qe = c) : this.We(this.Qe), this.I2(this.zz), this.J2(this.Az), this.H2(this.yz), this.wR(this.Pv)) }, j1: A("W"), We: function(c) { if (!this.W || this.W && !c) J.prototype.We.call(this, c), this.Qe = c }, Xn: A("It"), pj: function(c, d, f, g) { this.Rx(c, g); this.Sx(d, g); this.Qx(f, g) }, Rx: function(c, d) { if (c) { d = d || J.Pa; this.CX = c; this.hG = d; if (this.W) { var f = this.eb; switch (this.hG) { case J.Pa: f.Ce(c); break; case J.ab: f.pl(c) } f.Gc(this.zz) } else switch (f = this.eb, this.hG) { case J.Pa: f.Va(c); break; case J.ab: f.pc(c) } this.It = this.eb.i(); this.Ak(); this.yl(); this.eb.G(this.Xa()); this.eb.K(this.rb()); this.Mf(this.It); this.DX = this.Jta = q } }, Sx: function(c, d) { if (c) { d = d || J.Pa; this.NV = c; this.sG = d; if (this.W) { var f = this.Ob; switch (this.sG) { case J.Pa: f.Ce(c); break; case J.ab: f.pl(c) } f.Gc(this.Az) } else switch (f = this.Ob, this.sG) { case J.Pa: f.Va(c); break; case J.ab: f.pc(c) } this.bY = this.Ob.i(); this.Ak(); this.yl(); this.Ub.G(this.Xa()); this.Ub.K(this.rb()); this.$X = this.aY = q } }, Qx: function(c, d) { if (c) { d = d || J.Pa; this.eW = c; this.wF = d; if (this.W) { var f = this.Ub; switch (this.wF) { case J.Pa: f.Ce(c); break; case J.ab: f.pl(c) } f.Gc(this.yz) } else switch (f = this.Ub, this.wF) { case J.Pa: f.Va(c); break; case J.ab: f.pc(c) } this.gW = this.Ub.i(); this.Ak(); this.yl(); this.Ub.G(this.Xa()); this.Ub.K(this.rb()); this.fW = this.Gra = q } }, Gc: function(c) { this.I2(c); this.J2(c); this.H2(c) }, I2: function(c) { this.zz = c; this.W && this.eb.Gc(c) }, xTa: A("zz"), J2: function(c) { this.Az = c; this.W && this.Ob.Gc(c) }, yTa: A("Az"), H2: function(c) { this.yz = c; this.W && this.Ub.Gc(c) }, wTa: A("yz"), KI: function() { this.eb.va(q); this.Ob.va(t); this.Ub.va(t); if (this.aY) { if (this.YQ) { this.eb.yk(); this.Ob.yk(); var c = C.ae.create(0.05, this.uw, this.vw); this.eb.Ya(c); this.Ob.Za(this.Ew, this.Fw) } } else this.W ? this.JJa() : (this.eb.yk(), this.eb.Za(this.uw, this.vw)) }, LI: function() { if (this.aY) { if (this.eb.va(t), this.Ob.va(q), this.Ub.va(t), this.YQ) { this.eb.yk(); this.Ob.yk(); var c = C.ae.create(0.05, this.Ew + 0.1, this.Fw + 0.1); this.Ob.Ya(c); this.eb.Za(this.Ew + 0.1, this.Fw + 0.1) } } else this.eb.va(q), this.Ob.va(q), this.Ub.va(t), this.W ? this.eb.G(ja.GRAY) : (this.eb.yk(), this.eb.Za(this.uw + 0.1, this.vw + 0.1)) }, GC: function() { this.eb.va(t); this.Ob.va(t); this.Ub.va(q); this.eb.Za(this.uw, this.vw); this.Ob.Za(this.Ew, this.Fw) }, Nd: function(c) { this.kg.Nd(c); this.W || (this.eb.Nd(c), this.Ob.Nd(c), this.Ub.Nd(c)) }, Z3a: function(c) { this.kg.Uf(c); this.W || (this.eb.Uf(c), this.Ob.Uf(c), this.Ub.Uf(c)) }, oI: function() { return this.W ? t: this.eb.oI() }, pI: function() { return this.W ? t: this.eb.pI() }, Ak: function() { var c = this.Bb ? -1 : 1; this.kg.gb(c); this.W ? (this.eb.gb(c), this.Ob.gb(c), this.Ub.gb(c)) : (this.eb.Nd(this.Bb), this.Ob.Nd(this.Bb), this.Ub.Nd(this.Bb)) }, yl: function() { var c = this.Db ? -1 : 1; this.kg.pb(c); this.W ? (this.eb.pb(c), this.Ob.pb(c), this.Ub.pb(c)) : (this.eb.Uf(this.Db), this.Ob.Uf(this.Db), this.Ub.Uf(this.Db)) }, JJa: function() { this.eb.G(this.Xa()); this.Ob.G(this.Xa()); this.Ub.G(this.Xa()); this.eb.K(this.rb()); this.Ob.K(this.rb()); this.Ub.K(this.rb()) }, S: function(c, d) { d === m ? (J.prototype.S.call(this, c), this.eb.S(c), this.Ob.S(c), this.Ub.S(c)) : (J.prototype.S.call(this, c, d), this.eb.S(c, d), this.Ob.S(c, d), this.Ub.S(c, d)); this.kg.p(this.ca.width * (0.5 - this.Ab.x), this.ca.height * (0.5 - this.Ab.y)) }, Re: function(c) { J.prototype.Re.call(this, c); this.eb.Re(c); this.Ob.Re(c); this.Ub.Re(c); this.kg.rs(this.ca.width * (0.5 - this.Ab.x)) }, Se: function(c) { J.prototype.Se.call(this, c); this.eb.Se(c); this.Ob.Se(c); this.Ub.Se(c); this.kg.Uu(this.ca.height * (0.5 - this.Ab.y)) }, gc: function() { J.prototype.gc.call(this); this.KJa(); this.Xfa(); this.wga(); this.mda() }, i: A("It"), ef: function() { return this.W ? this.ca.width: this.It.width }, Dg: function() { return this.W ? this.ca.height: this.It.height }, Sr: function() { if (this.Pv) switch (this.Qv) { case J.wD: return this.eb; case J.qS: return this.Ob; default: return s } else return this.Ub }, Xfa: function() { if (this.Cb) this.W || (this.eb.Za(1), this.uw = this.vw = 1); else if (this.W) this.eb.De(this.ca), this.uw = this.vw = 1; else { var c = this.It; if (0 >= c.width || 0 >= c.height) { this.eb.Za(1); return } var d = this.ca.width / c.width, c = this.ca.height / c.height; this.eb.gb(d); this.eb.pb(c); this.uw = d; this.vw = c } this.eb.p(this.o.width / 2, this.o.height / 2) }, wga: function() { if (this.Cb) this.W || (this.Ob.Za(1), this.Ew = this.Fw = 1); else if (this.W) this.Ob.De(this.ca), this.Ew = this.Fw = 1; else { var c = this.bY; if (0 >= c.width || 0 >= c.height) { this.Ob.Za(1); return } var d = this.ca.width / c.width, c = this.ca.height / c.height; this.Ob.gb(d); this.Ob.pb(c); this.Ew = d; this.Fw = c } this.Ob.p(this.o.width / 2, this.o.height / 2) }, mda: function() { if (this.Cb) this.W || this.Ub.Za(1); else if (this.W) this.Ub.De(this.ca); else { var c = this.gW; if (0 >= c.width || 0 >= c.height) { this.Ub.Za(1); return } var d = this.ca.height / c.height; this.Ub.gb(this.ca.width / c.width); this.Ub.pb(d) } this.Ub.p(this.o.width / 2, this.o.height / 2) }, Qn: function() { this.DX && (this.Xfa(), this.DX = t); this.$X && (this.wga(), this.$X = t); this.fW && (this.mda(), this.fW = t) }, KJa: function() { this.kg.p(0.5 * this.o.width, 0.5 * this.o.height) }, oy: x("YQ"), vy: function(c) { this.kg.sa(c) }, Dea: function() { return this.kg.Wb() }, sy: function(c) { this.pO.r = c.r; this.pO.g = c.g; this.pO.b = c.b; this.kg.Tb(c) }, Aea: function() { return this.kg.Xa() }, uy: function(c) { this.kg.Od(c) }, Cea: function() { return this.kg.Vn() }, ty: function(c) { this.kg.Zd(c) }, Bea: function() { return this.kg.Fp() }, wva: function(c) { this.kg.font = c }, Nsa: function() { return this.kg.font }, IJ: function() { this.Ei(this.eb); this.Ei(this.Ob); this.Ei(this.Ub) }, fk: B("Button"), Uh: function() { return gd.create() }, xi: function(c) { this.Qe = c.Qe; this.uh(c.W); this.Rx(c.CX, c.hG); this.Sx(c.NV, c.sG); this.Qx(c.eW, c.wF); this.I2(c.zz); this.J2(c.Az); this.H2(c.yz); this.vy(c.Dea()); this.ty(c.Bea()); this.uy(c.Cea()); this.sy(c.Aea()); this.oy(c.YQ) } }), H = gd.prototype; C.e(H, "titleText", H.Dea, H.vy); C.e(H, "titleFont", H.Nsa, H.wva); C.e(H, "titleFontSize", H.Cea, H.uy); C.e(H, "titleFontName", H.Bea, H.ty); C.e(H, "titleColor", H.Aea, H.sy); H = s; gd.create = function(c, d, f, g) { var h = new gd; if (c === m) return h; h.j(c, d, f, g) }; gd.K6 = -2; gd.i7 = -2; gd.w5 = -2; gd.rpa = -1; gd.G7 = 0; gd.vpa = 1; var hd = J.extend({ Vc: s, te: s, Oe: s, se: s, we: s, Sj: q, Tv: s, Uv: s, Sv: s, pV: J.Pa, oV: J.Pa, DW: J.Pa, nV: J.Pa, BW: J.Pa, i9: "", k9: "", I$: "", h9: "", H$: "", qa: "CheckBox", pL: q, sL: q, CM: q, oL: q, BM: q, ctor: function() { J.prototype.ctor.call(this) }, j: function(c, d, f, g, h, k) { return J.prototype.j.call(this) ? (this.Sj = q, this.vh(q), c === m && this.pj(c, d, f, g, h, k), q) : t }, ol: function() { this.Vc = C.u.create(); this.te = C.u.create(); this.Oe = C.u.create(); this.se = C.u.create(); this.we = C.u.create(); this.Yc(this.Vc, hd.Zja, -1); this.Yc(this.te, hd.$ja, -1); this.Yc(this.Oe, hd.qma, -1); this.Yc(this.se, hd.Yja, -1); this.Yc(this.we, hd.pma, -1); window.test = [this.Vc, this.te, this.Oe, this.se, this.we]; window.a = this }, pj: function(c, d, f, g, h, k) { this.uC(c, k); this.wC(d, k); this.xC(f, k); this.vC(g, k); this.yC(h, k) }, uC: function(c, d) { if (c) { d = d || J.Pa; this.i9 = c; this.pV = d; var f = this.Vc; switch (this.pV) { case J.Pa: f.Va(c); break; case J.ab: f.pc(c) } this.YZ(); f.Aa || (this.Vc.Ca(this.mc), f.ye(function() { this.YZ() }, this)); this.Ak(); this.yl(); this.Vc.G(this.Xa()); this.Vc.K(this.rb()); this.Mf(this.Vc.i()); this.pL = q } }, wC: function(c, d) { if (c) { d = d || J.Pa; this.k9 = c; this.oV = d; switch (this.oV) { case J.Pa: this.te.Va(c); break; case J.ab: this.te.pc(c) } this.Ak(); this.yl(); this.te.G(this.Xa()); this.te.K(this.rb()); this.sL = q } }, xC: function(c, d) { if (c) { d = d || J.Pa; this.I$ = c; this.DW = d; switch (this.DW) { case J.Pa: this.Oe.Va(c); break; case J.ab: this.Oe.pc(c) } this.Ak(); this.yl(); this.Oe.G(this.Xa()); this.Oe.K(this.rb()); this.CM = q } }, vC: function(c, d) { if (c) { d = d || J.Pa; this.h9 = c; this.nV = d; switch (this.nV) { case J.Pa: this.se.Va(c); break; case J.ab: this.se.pc(c) } this.Ak(); this.yl(); this.se.G(this.Xa()); this.se.K(this.rb()); this.oL = q } }, yC: function(c, d) { if (c) { d = d || J.Pa; this.H$ = c; this.BW = d; switch (this.BW) { case J.Pa: this.we.Va(c); break; case J.ab: this.we.pc(c) } this.Ak(); this.yl(); this.we.G(this.Xa()); this.we.K(this.rb()); this.BM = q } }, KI: function() { this.Vc.va(q); this.te.va(t); this.se.va(t); this.we.va(t) }, LI: function() { this.Vc.va(t); this.te.va(q); this.se.va(t); this.we.va(t) }, GC: function() { this.Vc.va(t); this.te.va(t); this.se.va(q); this.Oe.va(t); this.Sj && this.we.va(q) }, qy: function(c) { c != this.Sj && (this.Sj = c, this.Oe.va(this.Sj)) }, MBa: A("Sj"), RGa: function() { this.Sv && this.Sv(this, hd.K5); this.Tv && this.Uv && this.Uv.call(this.Tv, this, hd.K5) }, tJa: function() { this.Sv && this.Sv(this, hd.M5); this.Tv && this.Uv && this.Uv.call(this.Tv, this, hd.M5) }, o2: function() { J.prototype.o2.call(this); this.Sj ? (this.qy(t), this.tJa()) : (this.qy(q), this.RGa()) }, UPa: function(c, d) { this.Uv = c; this.Tv = d }, addEventListener: x("Sv"), Xn: function() { return this.Vc.i() }, Ak: function() { this.Vc.Nd(this.Bb); this.te.Nd(this.Bb); this.Oe.Nd(this.Bb); this.se.Nd(this.Bb); this.we.Nd(this.Bb) }, yl: function() { this.Vc.Uf(this.Db); this.te.Uf(this.Db); this.Oe.Uf(this.Db); this.se.Uf(this.Db); this.we.Uf(this.Db) }, S: function(c, d) { d === m ? (J.prototype.S.call(this, c), this.Vc.S(c), this.te.S(c), this.se.S(c), this.Oe.S(c), this.we.S(c)) : (J.prototype.S.call(this, c, d), this.Vc.S(c, d), this.te.S(c, d), this.se.S(c, d), this.Oe.S(c, d), this.we.S(c, d)) }, Re: function(c) { J.prototype.Re.call(this, c); this.Vc.Re(c); this.te.Re(c); this.se.Re(c); this.Oe.Re(c); this.we.Re(c) }, Se: function(c) { J.prototype.Se.call(this, c); this.Vc.Se(c); this.te.Se(c); this.se.Se(c); this.Oe.Se(c); this.we.Se(c) }, gc: function() { J.prototype.gc.call(this); this.BM = this.oL = this.CM = this.sL = this.pL = q }, i: function() { return this.Vc.i() }, ef: function() { return this.Vc.ef() }, Dg: function() { return this.Vc.Dg() }, Sr: A("Vc"), YZ: function() { if (this.Cb) this.Vc.Za(1); else { var c = this.Vc.i(); if (0 >= c.width || 0 >= c.height) { this.Vc.Za(1); return } var d = this.ca.height / c.height; this.Vc.gb(this.ca.width / c.width); this.Vc.pb(d) } c = this.o.width / 2; d = this.o.height / 2; this.Vc.p(c, d); this.te.p(c, d); this.Oe.p(c, d); this.se.p(c, d); this.we.p(c, d) }, kxa: function() { if (this.Cb) this.te.Za(1); else { var c = this.te.i(); if (0 >= c.width || 0 >= c.height) this.te.Za(1); else { var d = this.ca.height / c.height; this.te.gb(this.ca.width / c.width); this.te.pb(d) } } }, Tza: function() { if (this.Cb) this.Oe.Za(1); else { var c = this.Oe.i(); if (0 >= c.width || 0 >= c.height) this.Oe.Za(1); else { var d = this.ca.height / c.height; this.Oe.gb(this.ca.width / c.width); this.Oe.pb(d) } } }, jxa: function() { if (this.Cb) this.se.Za(1); else { var c = this.se.i(); if (0 >= c.width || 0 >= c.height) this.se.Za(1); else { var d = this.ca.height / c.height; this.se.gb(this.ca.width / c.width); this.se.pb(d) } } }, Sza: function() { if (this.Cb) this.we.Za(1); else { var c = this.we.i(); if (0 >= c.width || 0 >= c.height) this.we.Za(1); else { var d = this.ca.height / c.height; this.we.gb(this.ca.width / c.width); this.we.pb(d) } } }, IJ: function() { this.Ei(this.Vc); this.Ei(this.te); this.Ei(this.Oe); this.Ei(this.se); this.Ei(this.we) }, jD: function() { this.Al(this.Vc); this.Al(this.te); this.Al(this.Oe); this.Al(this.se); this.Al(this.we) }, fk: B("CheckBox"), Uh: function() { return hd.create() }, xi: function(c) { c instanceof hd && (this.uC(c.i9, c.pV), this.wC(c.k9, c.oV), this.xC(c.I$, c.DW), this.vC(c.h9, c.nV), this.yC(c.H$, c.BW), this.qy(c.Sj), this.Tv = c.Tv, this.Uv = c.Uv, this.Sv = c.Sv) }, Qn: function() { this.pL && (this.YZ(), this.pL = t); this.sL && (this.kxa(), this.sL = t); this.CM && (this.Tza(), this.CM = t); this.oL && (this.jxa(), this.oL = t); this.BM && (this.Sza(), this.BM = t) } }), H = hd.prototype; C.e(H, "selected", H.MBa, H.qy); H = s; hd.create = function(c, d, f, g, h, k) { var n = new hd; c === m ? n.j() : n.j(c, d, f, g, h, k); return n }; hd.K5 = 0; hd.M5 = 1; hd.Zja = -1; hd.$ja = -1; hd.Yja = -1; hd.qma = -1; hd.pma = -1; var id = J.extend({ W: t, Qe: q, df: s, Dd: s, Jn: "", LM: J.Pa, lA: s, qa: "ImageView", KM: q, ctor: function() { this.df = C.rect(0, 0, 0, 0); this.lA = C.size(this.ca.width, this.ca.height); J.prototype.ctor.call(this) }, j: function(c, d) { J.prototype.j.call(this); c !== m && this.Sf(c, d); return q }, ol: function() { this.Dd = C.u.create(); this.Yc(this.Dd, id.Fk, -1) }, Sf: function(c, d) { if (c) { d = d || J.Pa; this.Jn = c; this.LM = d; var f = this.Dd; switch (this.LM) { case J.Pa: this.W ? (f.Ce(c), f.Gc(this.df)) : f.Va(c); break; case J.ab: this.W ? (f.pl(c), f.Gc(this.df)) : f.pc(c) } this.lA = f.i(); this.Ak(); this.yl(); f.G(this.Xa()); f.K(this.rb()); this.Mf(this.lA); this.KM = q } }, qc: function(c) { this.W || this.Dd.qc(c) }, Ak: function() { this.W ? this.Dd.gb(this.Bb ? -1 : 1) : this.Dd.Nd(this.Bb) }, yl: function() { this.W ? this.Dd.pb(this.Db ? -1 : 1) : this.Dd.Uf(this.Db) }, Qn: function() { this.KM && (this.ICa(), this.KM = t) }, uh: function(c) { this.W != c && (this.W = c, this.Ai(this.Dd), this.Dd = s, this.Dd = this.W ? C.Sa.create() : C.u.create(), this.Sf(this.Jn, this.LM), this.Yc(this.Dd, id.Fk, -1), this.W ? (c = this.Cb, this.We(t), this.Qe = c) : this.We(this.Qe), this.Gc(this.df)) }, j1: A("W"), We: function(c) { if (!this.W || this.W && !c) J.prototype.We.call(this, c), this.Qe = c }, Gc: function(c) { this.df = c; this.W && this.Dd.Gc(c) }, l0: A("df"), S: function(c, d) { d === m ? (J.prototype.S.call(this, c), this.Dd.S(c)) : (J.prototype.S.call(this, c, d), this.Dd.S(c, d)) }, Re: function(c) { J.prototype.Re.call(this, c); this.Dd.Re(c) }, Se: function(c) { J.prototype.Se.call(this, c); this.Dd.Se(c) }, gc: function() { J.prototype.gc.call(this); this.KM = q }, i: A("lA"), ef: function() { return this.lA.width }, Dg: function() { return this.lA.height }, Sr: A("Dd"), ICa: function() { if (this.Cb) this.W || this.Dd.Za(1); else if (this.W) this.Dd.De(this.ca); else { var c = this.Dd.i(); if (0 >= c.width || 0 >= c.height) { this.Dd.Za(1); return } this.Dd.gb(this.ca.width / c.width); this.Dd.pb(this.ca.height / c.height) } this.Dd.p(this.o.width / 2, this.o.height / 2) }, IJ: function() { this.Ei(this.Dd) }, jD: function() { this.Al(this.Dd) }, fk: B("ImageView"), Xn: u(), Uh: function() { return id.create() }, xi: function(c) { c instanceof id && (this.Qe = c.Qe, this.uh(c.W), this.Sf(c.Jn, c.LM), this.Gc(c.df)) } }); id.create = function(c, d) { var f = new id; c !== m && f.j(c, d); return f }; id.Fk = -1; var jd = J.extend({ Kh: s, em: 100, ax: 0, lb: s, MN: J.Pa, Rl: s, W: t, Qe: q, df: s, Jn: "", sta: t, qa: "LoadingBar", Bq: q, ctor: function() { this.Kh = jd.WK; this.Rl = C.size(0, 0); this.df = C.rect(0, 0, 0, 0); J.prototype.ctor.call(this) }, ol: function() { this.lb = C.u.create(); C.A.prototype.q.call(this, this.lb, jd.Fk, -1); this.lb.S(0, 0.5) }, sh: function(c) { if (this.Kh != c) switch (this.Kh = c, this.Kh) { case jd.WK: this.lb.S(0, 0.5); this.lb.p(0.5 * -this.ax, 0); this.W || this.lb.Nd(t); break; case jd.wU: this.lb.S(1, 0.5), this.lb.p(0.5 * this.ax, 0), this.W || this.lb.Nd(q) } }, $B: A("Kh"), Sf: function(c, d) { if (c) { this.MN = d = d || J.Pa; this.Jn = c; var f = this.lb; switch (this.MN) { case J.Pa: this.W ? (f.Ce(c), f.Gc(this.df)) : f.Va(c); break; case J.ab: this.W ? (f.pl(c), f.Gc(this.df)) : f.pc(c) } f.G(this.Xa()); f.K(this.rb()); var g = f.i(); this.Rl.width = g.width; this.Rl.height = g.height; switch (this.Kh) { case jd.WK: f.S(0, 0.5); this.W || f.Nd(t); break; case jd.wU: f.S(1, 0.5), this.W || f.Nd(q) } this.$O(); this.Mf(this.Rl); this.Bq = q } }, uh: function(c) { this.W != c && (this.W = c, this.Ai(this.lb), this.lb = this.W ? C.Sa.create() : C.u.create(), this.Sf(this.Jn, this.MN), this.Yc(this.lb, jd.Fk, -1), this.W ? (c = this.Cb, this.We(t), this.Qe = c) : this.We(this.Qe), this.Gc(this.df), this.Ci(this.em)) }, j1: A("W"), Gc: function(c) { this.df = c; this.W && this.lb.Gc(c) }, l0: A("df"), Ci: function(c) { if (! (0 > c || 100 < c) && !(0 >= this.ax)) if (this.em = c, c = this.em / 100, this.W) this.mia(); else { var d = this.lb.WH(); this.lb.qc(C.rect(d.x, d.y, this.Rl.width * c, this.Rl.height)) } }, u0: A("em"), gc: function() { J.prototype.gc.call(this); this.Bq = q }, We: function(c) { if (!this.W || this.W && !c) J.prototype.We.call(this, c), this.Qe = c }, Xn: A("Rl"), i: A("Rl"), ef: function() { return this.Rl.width }, Dg: function() { return this.Rl.height }, Sr: A("lb"), $O: function() { var c = this.lb; if (this.Cb) this.W || (this.ax = this.Rl.width, c.Za(1)); else if (this.ax = this.ca.width, this.W) this.mia(); else { var d = this.Rl; if (0 >= d.width || 0 >= d.height) { c.Za(1); return } var f = this.ca.height / d.height; c.gb(this.ca.width / d.width); c.pb(f) } switch (this.Kh) { case jd.WK: c.p(0, 0.5 * this.o.height); break; case jd.wU: c.p(this.ax, 0.5 * this.o.height) } }, Qn: function() { this.Bq && (this.$O(), this.Bq = t) }, mia: function() { this.lb.De(C.size(this.em / 100 * this.ax, this.ca.height)) }, IJ: function() { this.Ei(this.lb) }, jD: function() { this.Al(this.lb) }, fk: B("LoadingBar"), Uh: function() { return jd.create() }, xi: function(c) { c instanceof jd && (this.Qe = c.Qe, this.uh(c.W), this.Sf(c.Jn, c.MN), this.Gc(c.df), this.Ci(c.em), this.sh(c.Kh)) } }), H = jd.prototype; C.e(H, "direction", H.$B, H.sh); C.e(H, "percent", H.u0, H.Ci); H = s; jd.create = function(c, d) { var f = new jd; c !== m && f.Sf(c); d !== m && f.Ci(d); return f }; jd.WK = 0; jd.wU = 1; jd.Fk = -1; var kd = J.extend({ lb: s, Sd: s, QA: s, bl: s, mm: s, lm: s, aB: s, uL: 0, em: 0, W: t, Qe: q, Jn: "", gY: "", Hba: "", Iba: "", Gba: "", EL: s, FL: s, HG: s, IG: s, vL: J.Pa, FN: J.Pa, rV: J.Pa, sV: J.Pa, qV: J.Pa, sta: t, qa: "Slider", Bq: q, uG: q, ctor: function() { this.QA = C.size(0, 0); this.EL = C.rect(0, 0, 0, 0); this.FL = C.rect(0, 0, 0, 0); J.prototype.ctor.call(this) }, j: function() { return J.prototype.j.call(this) ? q: t }, ol: function() { this.lb = C.u.create(); this.Sd = C.u.create(); this.Sd.S(0, 0.5); this.Yc(this.lb, kd.s4, -1); this.Yc(this.Sd, kd.j7, -1); this.bl = C.u.create(); this.mm = C.u.create(); this.mm.va(t); this.lm = C.u.create(); this.lm.va(t); this.aB = C.A.create(); this.aB.q(this.bl); this.aB.q(this.mm); this.aB.q(this.lm); this.Yc(this.aB, kd.Tja, -1) }, kk: function(c, d) { if (c) { d = d || J.Pa; this.Jn = c; this.vL = d; var f = this.lb; switch (this.vL) { case J.Pa: this.W ? f.Ce(c) : f.Va(c); break; case J.ab: this.W ? f.pl(c) : f.pc(c) } f.G(this.Xa()); f.K(this.rb()); this.uG = this.Bq = q; this.Mf(this.lb.i()) } }, Eu: function(c, d) { if (c) { d = d || J.Pa; this.gY = c; this.FN = d; var f = this.Sd; switch (this.FN) { case J.Pa: this.W ? f.Ce(c) : f.Va(c); break; case J.ab: this.W ? f.pl(c) : f.pc(c) } this.Sd.G(this.Xa()); this.Sd.K(this.rb()); this.Sd.S(C.d(0, 0.5)); f = this.Sd.i(); this.QA = { width: f.width, height: f.height }; this.uG = q } }, uh: function(c) { this.W != c && (this.W = c, this.Ai(this.lb, q), this.Ai(this.Sd, q), this.Sd = this.lb = s, this.W ? (this.lb = C.Sa.create(), this.Sd = C.Sa.create()) : (this.lb = C.u.create(), this.Sd = C.u.create()), this.kk(this.Jn, this.vL), this.Eu(this.gY, this.FN), this.Yc(this.lb, kd.s4, -1), this.Yc(this.Sd, kd.j7, -1), this.W ? (c = this.Cb, this.We(t), this.Qe = c) : this.We(this.Qe), this.rha(this.EL), this.qha(this.FL)) }, j1: A("W"), We: function(c) { if (!this.W || this.W && !c) J.prototype.We.call(this, c), this.Qe = c }, Gc: function(c) { this.rha(c); this.qha(c) }, rha: function(c) { this.EL = c; this.W && this.lb.Gc(c) }, vTa: A("EL"), qha: function(c) { this.FL = c; this.W && this.Sd.Gc(c) }, zTa: A("FL"), Lfa: function(c, d, f, g) { this.sC(c, g); this.tC(d, g); this.rC(f, g) }, sC: function(c, d) { if (c) { d = d || J.Pa; this.Hba = c; this.rV = d; switch (this.rV) { case J.Pa: this.bl.Va(c); break; case J.ab: this.bl.pc(c) } this.bl.G(this.Xa()); this.bl.K(this.rb()) } }, tC: function(c, d) { if (c) { d = d || J.Pa; this.Iba = c; this.sV = d; switch (this.sV) { case J.Pa: this.mm.Va(c); break; case J.ab: this.mm.pc(c) } this.mm.G(this.Xa()); this.mm.K(this.rb()) } }, rC: function(c, d) { if (c) { d = d || J.Pa; this.Gba = c; this.qV = d; switch (this.qV) { case J.Pa: this.lm.Va(c); break; case J.ab: this.lm.pc(c) } this.lm.G(this.Xa()); this.lm.K(this.rb()) } }, Ci: function(c) { 100 < c && (c = 100); 0 > c && (c = 0); this.em = c; c = this.uL * (c / 100); this.aB.p(C.d(c, this.o.height / 2)); if (this.W) this.Sd.De(C.size(c, this.QA.height)); else { var d = this.Sd, f = d.WH(); d.qc(C.rect(f.x, f.y, c, f.height), d.jf) } }, hC: function(c) { c = this.bl.wi(c); var d = this.bl.i(), d = C.rect(0, 0, d.width, d.height); return C.Ju(d, c) }, nc: function(c, d) { var f = J.prototype.nc.call(this, c, d); if (this.cw) { var g = this.wi(this.rm); this.Ci(this.jea(g.x)); this.sga() } return f }, yd: function(c) { c = this.wi(c.mh()); this.Ci(this.jea(c.x)); this.sga() }, cd: function(c, d) { J.prototype.cd.call(this, c, d) }, Xe: function(c, d) { J.prototype.Xe.call(this, c, d) }, jea: function(c) { return 100 * (c / this.uL) }, YPa: function(c, d) { this.IG = c; this.HG = d }, addEventListener: x("mb"), sga: function() { this.HG && this.IG && this.IG.call(this.HG, this, kd.E5); this.mb && this.mb(kd.E5) }, u0: A("em"), gc: function() { J.prototype.gc.call(this); this.uG = this.Bq = q }, Qn: function() { this.Bq && (this.$O(), this.Bq = t); this.uG && (this.VFa(), this.uG = t) }, Xn: function() { return this.lb.i() }, Sr: A("lb"), $O: function() { if (this.Cb) this.lb.Za(1), this.uL = this.o.width; else if (this.uL = this.o.width, this.W) this.lb.De(this.o); else { var c = this.lb.i(); if (0 >= c.width || 0 >= c.height) { this.lb.Za(1); return } var d = this.o.height / c.height; this.lb.gb(this.o.width / c.width); this.lb.pb(d) } this.lb.p(this.o.width / 2, this.o.height / 2); this.Ci(this.em) }, VFa: function() { if (this.Cb) { if (!this.W) { var c = this.QA, d = this.o.width / c.width, c = this.o.height / c.height; this.Sd.gb(d); this.Sd.pb(c) } } else if (this.W) this.Sd.De(this.o), this.QA = this.Sd.i(); else { c = this.QA; if (0 >= c.width || 0 >= c.height) { this.Sd.Za(1); return } d = this.o.width / c.width; c = this.o.height / c.height; this.Sd.gb(d); this.Sd.pb(c) } this.Sd.p(0, this.o.height / 2); this.Ci(this.em) }, i: function() { var c = this.lb.i(); return C.size(c.width, c.height) }, ef: function() { return this.lb.ef() }, Dg: function() { return this.lb.Dg() }, KI: function() { this.bl.va(q); this.mm.va(t); this.lm.va(t) }, LI: function() { this.bl.va(t); this.mm.va(q); this.lm.va(t) }, GC: function() { this.bl.va(t); this.mm.va(t); this.lm.va(q) }, fk: B("Slider"), Uh: function() { return kd.create() }, xi: function(c) { this.Qe = c.Qe; this.uh(c.W); this.kk(c.Jn, c.vL); this.Eu(c.gY, c.FN); this.sC(c.Hba, c.rV); this.tC(c.Iba, c.sV); this.rC(c.Gba, c.qV); this.Ci(c.em); this.HG = c.HG; this.IG = c.IG; this.mb = c.mb }, IJ: function() { this.Ei(this.lb); this.Ei(this.Sd); this.Ei(this.bl); this.Ei(this.mm); this.Ei(this.lm) }, jD: function() { this.Al(this.lb); this.Al(this.Sd); this.Al(this.bl); this.Al(this.mm); this.Al(this.lm) } }), H = kd.prototype; C.e(H, "percent", H.u0, H.Ci); H = s; kd.create = function() { var c = new kd; return c && c.j() ? c: s }; kd.E5 = 0; kd.s4 = -3; kd.j7 = -2; kd.Tja = -1; var ld = J.extend({ xO: t, oN: 1, pN: 1, Oc: "Thonburi", Pc: 10, Gaa: 0.5, yb: "", hB: s, EPa: 0, DPa: 0, qa: "Text", xc: s, cr: q, ctor: function() { this.xc = ld.aqa.G7; this.hB = C.size(0, 0); J.prototype.ctor.call(this) }, j: function(c, d, f) { return J.prototype.j.call(this) ? (0 < arguments.length && (this.sa(c), this.Zd(d), this.Od(f)), q) : t }, ol: function() { this.yb = C.fa.create(); C.A.prototype.q.call(this, this.yb, ld.Fk, -1) }, PR: function(c) { C.log("Please use the setString"); this.sa(c) }, sa: function(c) { this.yb.sa(c); this.Mf(this.yb.i()); this.cr = q }, getStringValue: function() { C.log("Please use the getString"); return this.yb.Wb() }, Wb: function() { return this.yb.Wb() }, zu: function() { return this.yb.zu() }, Od: function(c) { this.Pc = c; this.yb.Od(c); this.Mf(this.yb.i()); this.cr = q }, Vn: A("Pc"), Zd: function(c) { this.Oc = c; this.yb.Zd(c); this.Mf(this.yb.i()); this.cr = q }, ry: function(c) { this.yb.N2(c); this.Mf(this.yb.i()); this.cr = q }, RWa: function() { return this.yb.rAa() }, Xu: function(c) { this.yb.S2(c); this.Mf(this.yb.i()); this.cr = q }, XBa: function() { return this.yb.$o }, Yu: function(c) { this.yb.y3(c); this.Mf(this.yb.i()); this.cr = q }, YBa: function() { return this.yb.xp }, SR: x("xO"), PYa: A("xO"), KI: function() { this.xO && (this.yb.gb(this.oN), this.yb.pb(this.pN)) }, LI: function() { this.xO && (this.yb.gb(this.oN + this.Gaa), this.yb.pb(this.pN + this.Gaa)) }, GC: u(), Ak: function() { this.Bb ? this.yb.gb( - 1) : this.yb.gb(1) }, gc: function() { J.prototype.gc.call(this); this.cr = q }, Qn: function() { this.cr && (this.BQ(), this.cr = t) }, Xn: function() { return this.yb.i() }, Sr: A("yb"), BQ: function() { if (this.Cb) this.yb.Za(1), this.oN = this.pN = 1; else { this.yb.N2(C.size(this.o.width, this.o.height)); var c = this.yb.i(); if (0 >= c.width || 0 >= c.height) { this.yb.Za(1); return } var d = this.o.width / c.width, c = this.o.height / c.height; this.yb.gb(d); this.yb.pb(c); this.oN = d; this.pN = c } this.yb.p(this.o.width / 2, this.o.height / 2) }, fk: B("Label"), a0: function(c, d, f) { this.yb.a0(c, d, f) }, $Ra: u(), ZRa: u(), ARa: u(), Uh: function() { return ld.create() }, Fp: A("Oc"), $H: A("xc"), rr: function(c) { var d = C.fa.xM.exec(c); d && (this.Pc = parseInt(d[1]), this.Oc = d[2], this.yb.rr(c), this.BQ()) }, bw: function() { return this.yb.bw() }, VN: function(c) { this.hB.width = c; this.yb.VN(c); this.BQ() }, UN: function(c) { this.hB.height = c; this.yb.UN(c); this.BQ() }, KF: function() { return this.hB.width }, IW: function() { return this.hB.height }, xi: function(c) { c instanceof c && (this.Zd(c.Oc), this.Od(c.Vn()), this.sa(c.Wb()), this.SR(c.y6a), this.ry(c.hB), this.Xu(c.yb.$o), this.Yu(c.yb.xp)) } }), H = ld.prototype; C.e(H, "boundingWidth", H.KF, H.VN); C.e(H, "boundingHeight", H.IW, H.UN); C.e(H, "string", H.Wb, H.sa); C.e(H, "stringLength", H.zu); C.e(H, "font", H.bw, H.rr); C.e(H, "fontSize", H.Vn, H.Od); C.e(H, "fontName", H.Fp, H.Zd); C.e(H, "textAlign", H.XBa, H.Xu); C.e(H, "verticalAlign", H.YBa, H.Yu); H = s; ld.create = function(c, d, f) { var g = new ld; if (0 < arguments.length) { if (g && g.j(c, d, f)) return g } else if (g && g.j()) return g; return s }; ld.Fk = -1; ld.aqa = { G7: 0, vpa: 1 }; var md = J.extend({ Mh: s, Tw: "", IV: "", Tj: 0, Oi: 0, $Y: "", qa: "TextAtlas", YF: s, ctor: function() { J.prototype.ctor.call(this) }, ol: function() { this.Mh = new C.Gl; this.Mh.S(C.d(0.5, 0.5)); this.Yc(this.Mh, md.Fk, -1) }, setProperty: function(c, d, f, g, h) { this.Tw = c; this.IV = d; this.Tj = f; this.Oi = g; this.$Y = h; this.Mh.sf(c, this.IV, this.Tj, this.Oi, this.$Y[0]); this.Mf(this.Mh.i()); this.YF = q }, sa: function(c) { this.Tw = c; this.Mh.sa(c); this.Mf(this.Mh.i()); this.YF = q }, setStringValue: function(c) { C.log("Please use the setString"); this.sa(c) }, getStringValue: function() { C.log("Please use the getString"); return this.Wb() }, Wb: function() { return this.Mh.Wb() }, zu: function() { return this.Mh.zu() }, gc: function() { J.prototype.gc.call(this); this.YF = q }, Qn: function() { this.YF && (this.gEa(), this.YF = t) }, Xn: function() { return this.Mh.i() }, Sr: A("Mh"), gEa: function() { if (this.Cb) this.Mh.Za(1); else { var c = this.Mh.i(); if (0 >= c.width || 0 >= c.height) { this.Mh.Za(1); return } var d = this.ca.height / c.height; this.Mh.gb(this.ca.width / c.width); this.Mh.pb(d) } this.Mh.p(this.o.width / 2, this.o.height / 2) }, fk: B("LabelAtlas"), Uh: function() { return md.create() }, xi: function(c) { c && this.setProperty(c.Tw, c.IV, c.Tj, c.Oi, c.$Y) } }), H = md.prototype; C.e(H, "string", H.Wb, H.sa); H = s; md.create = function(c, d, f, g, h) { var k = new md; return k && k.j() ? (0 < arguments.length && k.setProperty(c, d, f, g, h), k) : s }; md.Fk = -1; var nd, od = nd = J.extend({ ah: s, A$: t, Zra: "", Tw: "", qa: "TextBMFont", WM: q, ctor: function() { J.prototype.ctor.call(this) }, ol: function() { this.ah = C.rv.create(); this.Yc(this.ah, nd.Fk, -1) }, UC: function(c) { c && (this.Zra = c, this.ah.sf("", c), this.AJa(), this.y1(), this.ah.Aa || this.ah.ye(function() { this.y1() }, this), this.ah.G(this.Xa()), this.ah.K(this.rb()), this.A$ = q, this.sa(this.Tw)) }, PR: function(c) { C.log("Please use the setString"); this.sa(c) }, sa: function(c) { this.Tw = c; this.A$ && (this.ah.sa(c), this.Mf(this.ah.i()), this.WM = q) }, Wb: A("Tw"), zu: function() { return this.ah.zu() }, gc: function() { J.prototype.gc.call(this); this.WM = q }, Qn: function() { this.WM && (this.y1(), this.WM = t) }, Xn: function() { return this.ah.i() }, Sr: A("ah"), y1: function() { if (this.Cb) this.ah.Za(1); else { var c = this.ah.i(); if (0 >= c.width || 0 >= c.height) { this.ah.Za(1); return } var d = this.ca.height / c.height; this.ah.gb(this.ca.width / c.width); this.ah.pb(d) } this.ah.p(this.o.width / 2, this.o.height / 2) }, fk: B("LabelBMFont") }), H = nd.prototype; C.e(H, "string", H.Wb, H.setStringValue); H = s; nd.create = function(c, d) { var f = new nd; return f && f.j() ? (d && c && (f.UC(d), f.sa(c)), f) : s }; nd.Fk = -1; var pd = C.Hj.extend({ maxLengthEnabled: t, maxLength: 0, passwordEnabled: t, Cw: "", iV: t, aW: t, cX: t, YV: t, qa: "UICCTextField", In: q, ctor: function() { C.Hj.prototype.ctor.call(this); this.maxLengthEnabled = t; this.maxLength = 0; this.passwordEnabled = t; this.Cw = "*"; this.YV = this.cX = this.aW = this.iV = t }, Z: function() { C.Hj.prototype.bq.call(this, this) }, bga: function() { this.aJ(q); return t }, P1: function(c, d, f) { if (1 == f && "\n" == d) return t; this.gJ(q); return this.maxLengthEnabled && C.Hj.prototype.YB.call(this) >= this.maxLength ? q: t }, cga: function() { this.cJ(q); return t }, dga: function() { this.dJ(q); return t }, lI: function(c, d) { "\n" != c && this.maxLengthEnabled && this.Wb().length >= this.maxLength ? this.passwordEnabled && this.FR(this.Wb()) : (C.Hj.prototype.lI.call(this, c, d), this.passwordEnabled && 0 < C.Hj.prototype.YB.call(this) && this.FR(this.Wb())) }, mP: function() { C.Hj.prototype.mP.call(this); 0 < C.Hj.prototype.YB.call(this) && this.passwordEnabled && this.FR(this.Ni) }, F0a: function() { C.Hj.prototype.pH.call(this) }, WQa: function() { C.Hj.prototype.nP.call(this) }, my: x("maxLengthEnabled"), qI: A("maxLengthEnabled"), qs: x("maxLength"), Kx: A("maxLength"), YB: function() { return C.Hj.prototype.YB.call(this) }, ny: x("passwordEnabled"), rI: A("passwordEnabled"), WC: function(c) { if (! (1 < c.length)) { var d = c.charCodeAt(0); 33 > d || 126 < d || (this.Cw = c) } }, FR: function(c) { var d = "", f = c.length; c = f; this.maxLengthEnabled && f > this.maxLength && (c = this.maxLength); for (f = 0; f < c; ++f) d += this.Cw; C.fa.prototype.sa.call(this, d) }, aJ: x("iV"), yP: A("iV"), dJ: x("aW"), DP: A("aW"), gJ: x("cX"), FP: A("cX"), cJ: x("YV"), CP: A("YV"), j: function() { return J.prototype.j.call(this) ? (this.vh(q), q) : t }, AEa: B(t) }); pd.create = function(c, d, f) { var g = new pd; return g && g.sf("", d, f) ? (c && g.Di(c), g) : s }; var qd = J.extend({ za: s, yO: 0, vO: 0, fca: t, zr: s, Ar: s, bOa: s, xOa: s, TOa: s, uOa: s, cOa: s, yOa: s, UOa: s, vOa: s, Cw: "", In: q, ctor: function() { J.prototype.ctor.call(this) }, j: function() { return J.prototype.j.call(this) ? (this.vh(q), q) : t }, Z: function() { J.prototype.Z.call(this); this.TR(q) }, Na: function() { this.TR(t); L.prototype.Na.call(this) }, ol: function() { this.za = pd.create("input words here", "Thonburi", 20); this.Yc(this.za, qd.Fk, -1) }, u3: function(c) { this.yO = c.width; this.vO = c.height }, u5a: x("fca"), Qn: function() { this.In && (this.cJa(), this.In = t) }, hC: function(c) { if (this.fca) { c = this.wi(c); var d = C.rect( - this.yO * this.Ab.x, -this.vO * this.Ab.y, this.yO, this.vO); if (c.x >= d.origin.x && c.x <= d.origin.x + d.size.width && c.y >= d.origin.y && c.y <= d.origin.y + d.size.height) return q } else return J.prototype.hC.call(this, c); return t }, jXa: function() { return C.size(this.yO, this.vO) }, PR: function(c) { C.log("Please use the setString"); this.sa(c) }, sa: function(c) { c && (c = String(c), this.qI() && (c = c.substr(0, this.Kx())), this.rI() ? (this.za.FR(c), this.za.sa(""), this.za.lI(c, c.length)) : this.za.sa(c), this.In = q, this.Mf(this.za.i())) }, Di: function(c) { this.za.Di(c); this.In = q; this.Mf(this.za.i()) }, cC: function() { return this.za.cC() }, rr: function(c) { this.za.rr(c); this.In = q }, bw: function() { return this.za.bw() }, Od: function(c) { this.za.Od(c); this.In = q; this.Mf(this.za.i()) }, Vn: function() { return this.za.NWa() }, Zd: function(c) { this.za.Zd(c); this.In = q; this.Mf(this.za.i()) }, Fp: function() { return this.za.MWa() }, Fya: function() { this.za.nP() }, getStringValue: function() { C.log("Please use the getString"); return this.Wb() }, Wb: function() { return this.za.Wb() }, zu: function() { return this.za.zu() }, nc: function(c, d) { var f = this, g = J.prototype.nc.call(f, c, d); f.cw && setTimeout(function() { f.za.pH() }, 0); return g }, my: function(c) { this.za.my(c) }, qI: function() { return this.za.qI() }, qs: function(c) { this.za.qs(c); this.sa(this.Wb()) }, Kx: function() { return this.za.Kx() }, ny: function(c) { this.za.ny(c) }, rI: function() { return this.za.rI() }, WC: function(c) { this.za.WC(c); this.Cw = c; this.sa(this.Wb()) }, WVa: A("Cw"), update: function() { this.yP() && (this.bxa(), this.aJ(t)); this.DP() && (this.Bya(), this.dJ(t)); this.FP() && (this.hDa(), this.gJ(t), this.In = q, this.Mf(this.za.i())); this.CP() && (this.yya(), this.cJ(t), this.In = q, this.Mf(this.za.i())) }, yP: function() { return this.za.yP() }, aJ: function(c) { this.za.aJ(c) }, DP: function() { return this.za.DP() }, dJ: function(c) { this.za.dJ(c) }, FP: function() { return this.za.FP() }, gJ: function(c) { this.za.gJ(c) }, CP: function() { return this.za.CP() }, cJ: function(c) { this.za.cJ(c) }, bxa: function() { this.zr && this.Ar && this.Ar.call(this.zr, this, qd.Xla); this.mb && this.mb(this, 0) }, Bya: function() { this.zr && this.Ar && this.Ar.call(this.zr, this, qd.Zla); this.mb && this.mb(this, 1) }, hDa: function() { this.zr && this.Ar && this.Ar.call(this.zr, this, qd.$la); this.mb && this.mb(this, 2) }, yya: function() { this.zr && this.Ar && this.Ar.call(this.zr, this, qd.Yla); this.mb && this.mb(this, 3) }, ZPa: function(c, d) { this.Ar = c; this.zr = d }, S: function(c, d) { d === m ? (J.prototype.S.call(this, c), this.za.S(c)) : (J.prototype.S.call(this, c, d), this.za.S(c, d)) }, Re: function(c) { J.prototype.Re.call(this, c); this.za.Re(c) }, Se: function(c) { J.prototype.Se.call(this, c); this.za.Se(c) }, gc: function() { J.prototype.gc.call(this); this.In = q }, cJa: function() { if (this.Cb) { this.za.Za(1); var c = this.i(); this.ca.width = c.width; this.ca.height = c.height } else { c = this.i(); if (0 >= c.width || 0 >= c.height) { this.za.Za(1); return } var d = this.ca.height / c.height; this.za.gb(this.ca.width / c.width); this.za.pb(d) } this.za.p(this.o.width / 2, this.o.height / 2) }, i: function() { return this.za.i() }, ef: function() { return this.za.ef() }, Dg: function() { return this.za.Dg() }, Sr: A("za"), IJ: function() { this.Ei(this.za) }, jD: function() { this.Al(this.za) }, fk: B("TextField"), pH: function() { this.za.pH() }, Uh: function() { return qd.create() }, xi: function(c) { this.sa(c.za.Wb()); this.Di(c.Wb()); this.Od(c.za.Vn()); this.Zd(c.za.Fp()); this.my(c.qI()); this.qs(c.Kx()); this.ny(c.rI()); this.WC(c.Cw); this.aJ(c.yP()); this.dJ(c.DP()); this.gJ(c.FP()); this.cJ(c.CP()) } }); qd.create = function(c, d, f) { var g = new qd; return g && g.j() ? (c && (d && f) && (g.Di(c), g.Zd(d), g.Od(f)), g) : s }; H = qd.prototype; C.e(H, "string", H.Wb, H.sa); C.e(H, "placeHolder", H.cC, H.Di); C.e(H, "font", H.bw, H.rr); C.e(H, "fontSize", H.Vn, H.Od); C.e(H, "fontName", H.Fp, H.Zd); C.e(H, "maxLengthEnabled", H.qI, H.my); C.e(H, "maxLength", H.Kx, H.qs); C.e(H, "passwordEnabled", H.rI, H.ny); H = s; qd.create = function() { return new qd }; qd.Xla = 0; qd.Zla = 1; qd.$la = 2; qd.Yla = 3; qd.Fk = -1; var rd = uc.extend({ type: 0, tag: 0, color: s, ctor: function() { this.tag = this.type = 0; this.color = C.color(255, 255, 255, 255) }, j: function(c, d, f) { this.tag = c; this.color.r = d.r; this.color.g = d.g; this.color.b = d.b; this.color.a = f } }), sd = rd.extend({ text: "", fontName: "", fontSize: 0, ctor: function() { rd.prototype.ctor.call(this); this.type = rd.iU; this.fontName = this.text = ""; this.fontSize = 0 }, j: function(c, d, f, g, h, k) { rd.prototype.j.call(this, c, d, f); this.text = g; this.fontName = h; this.fontSize = k } }); sd.create = function(c, d, f, g, h, k) { var n = new sd; n.j(c, d, f, g, h, k); return n }; var td = rd.extend({ sP: "", kJa: s, lJa: 0, ctor: function() { rd.prototype.ctor.call(this); this.type = rd.lT; this.sP = ""; this.kJa = C.rect(0, 0, 0, 0); this.lJa = 0 }, j: function(c, d, f, g) { rd.prototype.j.call(this, c, d, f); this.sP = g } }); td.create = function(c, d, f, g) { var h = new td; h.j(c, d, f, g); return h }; var ud = rd.extend({ kP: s, ctor: function() { rd.prototype.ctor.call(this); this.type = rd.hq; this.kP = s }, j: function(c, d, f, g) { rd.prototype.j.call(this, c, d, f); this.kP = g } }); ud.create = function(c, d, f, g) { var h = new ud; h.j(c, d, f, g); return h }; var vd = J.extend({ $v: t, VA: s, mt: s, sn: 0, CZ: 0, lt: s, ctor: function() { J.prototype.ctor.call(this); this.$v = t; this.VA = []; this.mt = []; this.CZ = this.sn = 0 }, ol: function() { this.lt = C.A.create(); this.lt.S(0.5, 0.5); this.Yc(this.lt, 0, -1) }, VXa: function(c, d) { this.VA.splice(d, 0, c); this.$v = q }, v1a: function(c) { this.VA.push(c); this.$v = q }, h2a: function(c) { "number" === typeof c ? this.VA.splice(c, 1) : C.Id(this.VA, c); this.$v = q }, Pza: function() { if (this.$v) { this.lt.xf(); this.mt.length = 0; var c, d, f = this.VA; if (this.Cb) { this.RO(); for (c = 0; c < f.length; c++) { d = f[c]; var g = s; switch (d.type) { case rd.iU: g = C.fa.create(d.text, d.fontName, d.fontSize); break; case rd.lT: g = C.u.create(d.sP); break; case rd.hq: g = d.kP } g.G(d.color); g.K(d.color.a); this.SI(g) } } else { this.RO(); for (c = 0; c < f.length; c++) switch (d = f[c], d.type) { case rd.iU: this.Lea(d.text, d.fontName, d.fontSize, d.color); break; case rd.lT: this.zCa(d.sP, d.color, d.color.a); break; case rd.hq: this.Kea(d.kP) } } this.Oza(); this.$v = t } }, Lea: function(c, d, f, g) { var h = C.fa.create(c, d, f), k = h.i().width; this.sn -= k; 0 > this.sn ? (h = c.length * (1 - -this.sn / k), k = c.substr(0, h), c = c.substr(h, c.length - 1), 0 < h && (h = C.fa.create(k.substr(0, h), d, f), h.G(g), h.K(g.a), this.SI(h)), this.RO(), this.Lea(c, d, f, g)) : (h.G(g), h.K(g.a), this.SI(h)) }, zCa: function(c) { c = C.u.create(c); this.Kea(c) }, Kea: function(c) { var d = c.i(); this.sn -= d.width; 0 > this.sn ? (this.RO(), this.SI(c), this.sn -= d.width) : this.SI(c) }, RO: function() { this.sn = this.mc.width; this.mt.push([]) }, Oza: function() { var c = 0, d = this.lt, f = this.mt; if (this.Cb) { for (var g = 0, h = f[0], k = 0, n = 0; n < h.length; n++) { var p = h[n]; p.S(C.d(0, 0)); p.p(C.d(k, 0)); d.q(p, 1, n); f = p.i(); g += f.width; c = Math.max(c, f.height); k += f.width } d.Ca(C.size(g, c)) } else { for (var g = [], r = 0; r < f.length; r++) { h = f[r]; for (n = k = 0; n < h.length; n++) p = h[n], k = Math.max(p.i().height, k); g[r] = k; c += g[r] } c = this.mc.height; for (r = 0; r < f.length; r++) { h = f[r]; k = 0; c -= g[r] + this.CZ; for (n = 0; n < h.length; n++) p = h[n], p.S(C.d(0, 0)), p.p(C.d(k, c)), d.q(p, 1, 10 * r + n), k += p.i().width } d.Ca(this.ca) } this.mt.length = 0; this.Cb ? (h = this.Xn(), this.ca.width = h.width, this.ca.height = h.height) : (this.ca.width = this.mc.width, this.ca.height = this.mc.height); this.Mf(this.ca); d.p(0.5 * this.o.width, 0.5 * this.o.height) }, SI: function(c) { 0 >= this.mt.length || this.mt[this.mt.length - 1].push(c) }, J: function(c) { this.Wc && (this.Pza(), J.prototype.J.call(this, c)) }, L5a: x("CZ"), S: function(c) { J.prototype.S.call(this, c); this.lt.S(c) }, Xn: function() { return this.lt.i() }, i: function() { return this.lt.i() }, We: function(c) { this.Cb != c && (this.$v = q, J.prototype.We.call(this, c)) }, fk: B("RichText") }); vd.create = function() { return new vd }; rd.iU = 0; rd.lT = 1; rd.hq = 2; var T = L.extend({ z: s, direction: s, Mo: s, Rh: 0, fi: 0, bg: 0, kf: 0, Ro: 0, No: 0, Po: 0, Qo: 0, WE: t, oz: 0, Ql: 0, XE: 0, eX: t, lN: t, Xg: s, wL: t, Qw: 0, jN: s, iF: 0, Et: t, hu: t, St: t, Ys: t, su: t, bF: t, Oo: s, yL: 0, iI: t, mf: s, nf: s, qa: "ScrollView", mb: s, ctor: function() { L.prototype.ctor.call(this); this.direction = T.Fla; this.Mo = C.d(0, 0); this.Qo = this.Po = this.No = this.Ro = this.kf = this.bg = this.fi = this.Rh = 0; this.WE = t; this.Ql = this.oz = 0; this.XE = -1E3; this.lN = this.eX = t; this.Xg = C.d(0, 0); this.wL = t; this.Qw = 0; this.jN = C.d(0, 0); this.iF = 5; this.bF = this.su = this.Ys = this.St = this.hu = this.Et = t; this.Oo = C.d(0, 0); this.yL = 0; this.iI = q; this.nf = this.mf = s }, j: function() { return L.prototype.j.call(this) ? (this.aq(q), this.z.vh(t), q) : t }, Z: function() { L.prototype.Z.call(this); this.Lu(q) }, Pf: function(c, d) { return this.Cm() == L.oq || this.Cm() == L.nq ? this.z.Pf(c, d) : J.prototype.Pf.call(this, c, d) }, ol: function() { L.prototype.ol.call(this); this.z = L.create(); this.Yc(this.z, 1, 1) }, gc: function() { L.prototype.gc.call(this); var c = this.o; this.Rh = c.height; this.kf = c.width; var d = c.width / 3, f = c.height / 3; this.Ro = c.height - f; this.No = f; this.Po = d; this.Qo = this.o.width - d; f = this.z.i(); d = f.height; f = Math.max(f.width, c.width); d = Math.max(d, c.height); this.z.Ca(C.size(f, d)); this.z.p(0, c.height - this.z.i().height) }, ky: function(c) { var d = this.o, f = d.width, g = d.height, h = this.z.i(); c.width < d.width ? C.log("Inner width \x3c\x3d scrollview width, it will be force sized!") : f = c.width; c.height < d.height ? C.log("Inner height \x3c\x3d scrollview height, it will be force sized!") : g = c.height; this.z.yf(C.size(f, g)); switch (this.direction) { case T.wo: c = this.z.i(); h = h.height - c.height; this.ko(0, h); break; case T.vo: this.z.Fc() <= d.width && (c = this.z.i(), h = h.width - c.width, this.ko(h, 0)); break; case T.zg: c = this.z.i(), f = h.height - c.height, g = 0, this.z.Fc() <= d.width && (g = h.width - c.width), this.ko(g, f) } h = this.z; c = h.i(); f = h.Ld(); g = h.dk(); 0 < h.yc() && h.p(g.x * c.width, f.y); h.Fc() < d.width && h.p(d.width - (1 - g.x) * c.width, f.y); 0 < f.y && h.p(f.x, g.y * c.height); h.Be() < d.height && h.p(f.x, d.height - (1 - g.y) * c.height) }, $ua: function(c) { var d = this.o.width, f = d, g = this.z, h = g.width; c < d ? C.log("Inner width \x3c\x3d scrollview width, it will be force sized!") : f = c; g.width = f; switch (this.direction) { case T.vo: case T.zg: g.Fc() <= d && this.ko(h - g.width, 0) } c = g.anchorX; 0 < g.yc() && (g.x = c * f); g.Fc() < d && (g.x = d - (1 - c) * f) }, Zua: function(c) { var d = this.o.height, f = d, g = this.z, h = g.height; c < d ? C.log("Inner height \x3c\x3d scrollview height, it will be force sized!") : f = c; g.height = f; switch (this.direction) { case T.wo: case T.zg: this.ko(0, h - f) } c = g.anchorY; 0 < g.yc() && (g.y = c * f); g.Fc() < d && (g.y = d - (1 - c) * f) }, KAa: function() { return this.z.i() }, tsa: function() { return this.z.width }, ssa: function() { return this.z.height }, q: function(c, d, f) { if (!c) return t; d = d || c.Wa; f = f || c.Fm(); return this.z.q(c, d, f) }, xf: function() { this.Ku(q) }, Ku: function(c) { this.z.Ku(c) }, removeChild: function(c, d) { return this.z.removeChild(c, d) }, le: function() { return this.z.le() }, m0: function() { return this.z.m0() }, lj: function(c) { return this.z.lj(c) }, Pda: function(c) { return this.z.Pda(c) }, SO: function(c, d, f) { this.z.SO(c, d, f) }, GP: function(c) { return this.z.GP(c) }, fea: function() { return this.z.fea() }, removeNode: function(c) { this.z.removeNode(c) }, Uga: function(c) { this.z.Uga(c) }, Qga: function() { this.z.Qga() }, eo: function(c, d) { var f = this.z.Ld(); this.jN.x = f.x + c; this.jN.y = f.y + d; this.z.p(this.jN) }, hxa: function(c) { var d = this.oz; this.oz += c; if (this.eX) 0 >= this.Ql + this.XE * this.oz ? (this.dD(), this.wH()) : (d = (this.Ql + 0.5 * this.XE * (2 * d + c)) * c, this.ko(d * this.Mo.x, d * this.Mo.y) || (this.dD(), this.wH())); else if (this.lN) { var d = this.Mo.x * c * this.Ql, f = this.Mo.y * c * this.Ql; c = this.Fxa(d, f); d = this.ko(d, f); if (!c || !d) this.dD(), this.wH() } else this.ko(this.Mo.x * c * this.Ql, this.Mo.y * c * this.Ql) || (this.dD(), this.wH()) }, txa: function(c) { var d = this.yL, f = this.Oo; 0 >= d && this.F3(); this.uxa(f.x * c * d, f.y * c * d) || this.F3() }, wH: function() { if (!this.su) return t; this.Dxa(); if (this.hu || this.Ys || this.Et || this.St) { var c, d; this.hu && this.Et ? (c = C.cc(C.d(0, this.o.height), C.d(this.z.yc(), this.z.Be())), d = C.Ye(c) / 0.2, this.Oo = C.vf(c), this.$u(d)) : this.hu && this.St ? (c = C.cc(C.d(this.o.width, this.o.height), C.d(this.z.Fc(), this.z.Be())), d = C.Ye(c) / 0.2, this.Oo = C.vf(c), this.$u(d)) : this.Ys && this.Et ? (c = C.cc(C.d(0, 0), C.d(this.z.yc(), this.z.wd())), d = C.Ye(c) / 0.2, this.Oo = C.vf(c), this.$u(d)) : this.Ys && this.St ? (c = C.cc(C.d(this.o.width, 0), C.d(this.z.Fc(), this.z.wd())), d = C.Ye(c) / 0.2, this.Oo = C.vf(c), this.$u(d)) : this.hu ? (c = C.cc(C.d(0, this.o.height), C.d(0, this.z.Be())), d = C.Ye(c) / 0.2, this.Oo = C.vf(c), this.$u(d)) : this.Ys ? (c = C.cc(C.d(0, 0), C.d(0, this.z.wd())), d = C.Ye(c) / 0.2, this.Oo = C.vf(c), this.$u(d)) : this.Et ? (c = C.cc(C.d(0, 0), C.d(this.z.yc(), 0)), d = C.Ye(c) / 0.2, this.Oo = C.vf(c), this.$u(d)) : this.St && (c = C.cc(C.d(this.o.width, 0), C.d(this.z.Fc(), 0)), d = C.Ye(c) / 0.2, this.Oo = C.vf(c), this.$u(d)); return q } return t }, Dxa: function() { this.z.wd() > this.fi ? (this.ks(), this.Ys = q) : this.Ys = t; this.z.Be() < this.Rh ? (this.ns(), this.hu = q) : this.hu = t; this.z.Fc() < this.kf ? (this.ms(), this.St = q) : this.St = t; this.z.yc() > this.bg ? (this.ls(), this.Et = q) : this.Et = t }, $u: function(c) { this.yL = c; this.bF = q }, F3: function() { this.bF = t; this.yL = 0; this.Ys = this.hu = this.St = this.Et = t }, Oia: function(c, d, f, g) { this.dD(); this.Mo = c; this.eX = f; this.Ql = d; this.WE = q; this.XE = g }, po: function(c, d, f) { this.lN = t; this.Xg = c; var g = C.cc(c, this.z.Ld()); c = C.vf(g); var h = 0, k = -1E3, g = C.Ye(g); f ? (k = -(2 * g) / (d * d), h = 2 * g / d) : (this.lN = q, h = g / d); this.Oia(c, h, f, k) }, ao: function(c, d) { c.x !== m && (d = c.y, c = c.x); var f = c, g = d; switch (this.direction) { case T.wo: 0 >= d && (g = Math.max(d, this.o.height - this.z.i().height)); break; case T.vo: 0 >= c && (f = Math.max(c, this.o.width - this.z.i().width)); break; case T.zg: 0 >= d && (g = Math.max(d, this.o.height - this.z.i().height)), 0 >= c && (f = Math.max(c, this.o.width - this.z.i().width)) } this.z.p(f, g) }, dD: function() { this.WE = t; this.oz = this.Ql = 0 }, uxa: function(c, d) { var f = q, g, h, k; 0 < c && 0 < d ? (g = c, h = d, k = this.z.Fc(), k + g >= this.kf && (g = this.kf - k, this.g_(), f = t), k = this.z.Be(), k + d >= this.Rh && (h = this.Rh - k, this.h_(), f = t), this.eo(g, h)) : 0 > c && 0 < d ? (g = c, h = d, k = this.z.yc(), k + g <= this.bg && (g = this.bg - k, this.f_(), f = t), k = this.z.Be(), k + d >= this.Rh && (h = this.Rh - k, this.h_(), f = t), this.eo(g, h)) : 0 > c && 0 > d ? (g = c, h = d, k = this.z.yc(), k + g <= this.bg && (g = this.bg - k, this.f_(), f = t), k = this.z.wd(), k + d <= this.fi && (h = this.fi - k, this.b_(), f = t), this.eo(g, h)) : 0 < c && 0 > d ? (g = c, h = d, k = this.z.Fc(), k + g >= this.kf && (g = this.kf - k, this.g_(), f = t), k = this.z.wd(), k + d <= this.fi && (h = this.fi - k, this.b_(), f = t), this.eo(g, h)) : 0 == c && 0 < d ? (h = d, k = this.z.Be(), k + d >= this.Rh && (h = this.Rh - k, this.h_(), f = t), this.eo(0, h)) : 0 == c && 0 > d ? (h = d, k = this.z.wd(), k + d <= this.fi && (h = this.fi - k, this.b_(), f = t), this.eo(0, h)) : 0 < c && 0 == d ? (g = c, k = this.z.Fc(), k + g >= this.kf && (g = this.kf - k, this.g_(), f = t), this.eo(g, 0)) : 0 > c && 0 == d && (g = c, h = this.z.yc(), h + g <= this.bg && (g = this.bg - h, this.f_(), f = t), this.eo(g, 0)); return f }, Fxa: function(c, d) { var f = q, g; switch (this.direction) { case T.wo: 0 < this.Mo.y ? (g = this.z.wd(), g + d >= this.Xg.y && (f = t)) : (g = this.z.wd(), g + d <= this.Xg.y && (f = t)); break; case T.vo: 0 < this.Mo.x ? (g = this.z.yc(), g + c >= this.Xg.x && (f = t)) : (g = this.z.yc(), g + c <= this.Xg.x && (f = t)); break; case T.zg: 0 < c && 0 < d ? (g = this.z.yc(), g + c >= this.Xg.x && (f = t), g = this.z.wd(), g + d >= this.Xg.y && (f = t)) : 0 > c && 0 < d ? (g = this.z.Fc(), g + c <= this.Xg.x && (f = t), g = this.z.wd(), g + d >= this.Xg.y && (f = t)) : 0 > c && 0 > d ? (g = this.z.Fc(), g + c <= this.Xg.x && (f = t), g = this.z.Be(), g + d <= this.Xg.y && (f = t)) : 0 < c && 0 > d ? (g = this.z.yc(), g + c >= this.Xg.x && (f = t), g = this.z.Be(), g + d <= this.Xg.y && (f = t)) : 0 == c && 0 < d ? (g = this.z.wd(), g + d >= this.Xg.y && (f = t)) : 0 > c && 0 == d ? (g = this.z.Fc(), g + c <= this.Xg.x && (f = t)) : 0 == c && 0 > d ? (g = this.z.Be(), g + d <= this.Xg.y && (f = t)) : 0 < c && 0 == d && (g = this.z.yc(), g + c >= this.Xg.x && (f = t)) } return f }, MTa: function(c) { this.Ql -= this.XE * c; return this.Ql * c }, ko: function(c, d) { var f = q; this.OGa(); switch (this.direction) { case T.wo: f = this.LGa(c, d); break; case T.vo: f = this.KGa(c, d); break; case T.zg: f = this.JGa(c, d) } return f }, LGa: function(c, d) { var f = d, g = q, h; this.su ? (h = this.z.wd(), h + d >= this.No && (f = this.No - h, this.ks(), g = t), h = this.z.Be(), h + d <= this.Ro && (f = this.Ro - h, this.ns(), g = t)) : (h = this.z.wd(), h + d >= this.fi && (f = this.fi - h, this.ks(), g = t), h = this.z.Be(), h + d <= this.Rh && (f = this.Rh - h, this.ns(), g = t)); this.eo(0, f); return g }, KGa: function(c) { var d = q, f = c, g; this.su ? (g = this.z.Fc(), g + c <= this.Qo && (f = this.Qo - g, this.ms(), d = t), g = this.z.yc(), g + c >= this.Po && (f = this.Po - g, this.ls(), d = t)) : (g = this.z.Fc(), g + c <= this.kf && (f = this.kf - g, this.ms(), d = t), g = this.z.yc(), g + c >= this.bg && (f = this.bg - g, this.ls(), d = t)); this.eo(f, 0); return d }, JGa: function(c, d) { var f = q, g = c, h = d, k; this.su ? 0 < c && 0 < d ? (k = this.z.yc(), k + c >= this.Po && (g = this.Po - k, this.ls(), f = t), k = this.z.wd(), k + d >= this.No && (h = this.No - k, this.ks(), f = t)) : 0 > c && 0 < d ? (k = this.z.Fc(), k + c <= this.Qo && (g = this.Qo - k, this.ms(), f = t), k = this.z.wd(), k + d >= this.No && (h = this.No - k, this.ks(), f = t)) : 0 > c && 0 > d ? (k = this.z.Fc(), k + c <= this.Qo && (g = this.Qo - k, this.ms(), f = t), k = this.z.Be(), k + d <= this.Ro && (h = this.Ro - k, this.ns(), f = t)) : 0 < c && 0 > d ? (k = this.z.yc(), k + c >= this.Po && (g = this.Po - k, this.ls(), f = t), k = this.z.Be(), k + d <= this.Ro && (h = this.Ro - k, this.ns(), f = t)) : 0 == c && 0 < d ? (k = this.z.wd(), k + d >= this.No && (h = this.No - k, this.ks(), f = t)) : 0 > c && 0 == d ? (k = this.z.Fc(), k + c <= this.Qo && (g = this.Qo - k, this.ms(), f = t)) : 0 == c && 0 > d ? (k = this.z.Be(), k + d <= this.Ro && (h = this.Ro - k, this.ns(), f = t)) : 0 < c && 0 == d && (k = this.z.yc(), k + c >= this.Po && (g = this.Po - k, this.ls(), f = t)) : 0 < c && 0 < d ? (k = this.z.yc(), k + c >= this.bg && (g = this.bg - k, this.ls(), f = t), k = this.z.wd(), k + d >= this.fi && (h = this.fi - k, this.ks(), f = t)) : 0 > c && 0 < d ? (k = this.z.Fc(), k + c <= this.kf && (g = this.kf - k, this.ms(), f = t), k = this.z.wd(), k + d >= this.fi && (h = this.fi - k, this.ks(), f = t)) : 0 > c && 0 > d ? (k = this.z.Fc(), k + c <= this.kf && (g = this.kf - k, this.ms(), f = t), k = this.z.Be(), k + d <= this.Rh && (h = this.Rh - k, this.ns(), f = t)) : 0 < c && 0 > d ? (k = this.z.yc(), k + c >= this.bg && (g = this.bg - k, this.ls(), f = t), k = this.z.Be(), k + d <= this.Rh && (h = this.Rh - k, this.ns(), f = t)) : 0 == c && 0 < d ? (k = this.z.wd(), k + d >= this.fi && (h = this.fi - k, this.ks(), f = t)) : 0 > c && 0 == d ? (k = this.z.Fc(), k + c <= this.kf && (g = this.kf - k, this.ms(), f = t)) : 0 == c && 0 > d ? (k = this.z.Be(), k + d <= this.Rh && (h = this.Rh - k, this.ns(), f = t)) : 0 < c && 0 == d && (k = this.z.yc(), k + c >= this.bg && (g = this.bg - k, this.ls(), f = t)); this.eo(g, h); return f }, T2a: function(c, d) { this.po(C.d(this.z.Rc(), 0), c, d) }, a3a: function(c, d) { this.po(C.d(this.z.Rc(), this.o.height - this.z.i().height), c, d) }, W2a: function(c, d) { this.po(C.d(0, this.z.Vd()), c, d) }, $2a: function(c, d) { this.po(C.d(this.o.width - this.z.i().width, this.z.Vd()), c, d) }, b3a: function(c, d) { this.direction != T.zg ? C.log("Scroll direction is not both!") : this.po(C.d(0, this.o.height - this.z.i().height), c, d) }, c3a: function(c, d) { if (this.direction != T.zg) C.log("Scroll direction is not both!"); else { var f = this.z.i(); this.po(C.d(this.o.width - f.width, this.o.height - f.height), c, d) } }, U2a: function(c, d) { this.direction != T.zg ? C.log("Scroll direction is not both!") : this.po(C.d(0, 0), c, d) }, V2a: function(c, d) { this.direction != T.zg ? C.log("Scroll direction is not both!") : this.po(C.d(this.o.width - this.z.i().width, 0), c, d) }, Z2a: function(c, d, f) { var g = this.o.height - this.z.i().height; this.po(C.d(this.z.Rc(), g + c * -g / 100), d, f) }, Y2a: function(c, d, f) { var g = this.z.i().width - this.o.width; this.po(C.d( - (c * g / 100), this.z.Vd()), d, f) }, X2a: function(c, d, f) { if (this.direction == T.zg) { var g = this.o.height - this.z.i().height, h = -g, k = this.z.i().width - this.o.width; this.po(C.d( - (c.x * k / 100), g + c.y * h / 100), d, f) } }, TYa: function() { this.ao(this.z.Rc(), 0) }, aZa: function() { this.ao(this.z.Rc(), this.o.height - this.z.i().height) }, WYa: function() { this.ao(0, this.z.Vd()) }, $Ya: function() { this.ao(this.o.width - this.z.i().width, this.z.Vd()) }, bZa: function() { this.direction != T.zg ? C.log("Scroll direction is not both!") : this.ao(0, this.o.height - this.z.i().height) }, cZa: function() { if (this.direction != T.zg) C.log("Scroll direction is not both!"); else { var c = this.z.i(); this.ao(this.o.width - c.width, this.o.height - c.height) } }, UYa: function() { this.direction != T.zg ? C.log("Scroll direction is not both!") : this.ao(0, 0) }, VYa: function() { this.direction != T.zg ? C.log("Scroll direction is not both!") : this.ao(this.o.width - this.z.i().width, 0) }, ZYa: function(c) { var d = this.o.height - this.z.i().height; this.ao(this.z.Rc(), d + c * -d / 100) }, YYa: function(c) { var d = this.z.i().width - this.o.width; this.ao( - (c * d / 100), this.z.Vd()) }, XYa: function(c) { if (this.direction == T.zg) { var d = this.z.i(), f = this.o.height - d.height; this.ao( - (c.x * (d.width - this.o.width) / 100), f + c.y * -f / 100) } }, UIa: function() { this.WE && this.dD(); this.bF && this.F3(); this.Qw = 0 }, Aza: function() { if (!this.wH() && this.iI && !(0.016 >= this.Qw)) { var c = 0, d; switch (this.direction) { case T.wo: c = this.Dr.y - this.rm.y; d = 0 > c ? T.boa: T.eoa; break; case T.vo: c = this.Dr.x - this.rm.x; d = 0 > c ? T.coa: T.doa; break; case T.zg: d = C.cc(this.Dr, this.rm), c = C.Ye(d), d = C.vf(d) } c = Math.min(Math.abs(c) / this.Qw, T.Dja); this.Oia(d, c, q, -1E3); this.Qw = 0 } }, gI: function() { this.UIa(); this.wL = q }, fI: function(c) { c = C.cc(c.mh(), c.JP()); switch (this.direction) { case T.wo: this.ko(0, c.y); break; case T.vo: this.ko(c.x, 0); break; case T.zg: this.ko(c.x, c.y) } }, fC: function() { this.Aza(); this.wL = t }, nc: function(c, d) { var f = L.prototype.nc.call(this, c, d); this.cw && this.gI(c); return f }, yd: function(c, d) { L.prototype.yd.call(this, c, d); this.fI(c) }, cd: function(c, d) { L.prototype.cd.call(this, c, d); this.fC(c) }, Xe: function(c, d) { L.prototype.Xe.call(this, c, d) }, update: function(c) { this.WE && this.hxa(c); this.bF && this.txa(c); this.eGa(c) }, eGa: function(c) { this.wL && (this.Qw += c) }, Wr: function(c, d, f) { var g = f.mh(); switch (c) { case J.lU: this.rm.x = g.x; this.rm.y = g.y; this.gI(f); break; case J.FE: C.Ye(C.cc(d.J0(), g)) > this.iF && (d.vj(t), this.oB.x = g.x, this.oB.y = g.y, this.fI(f)); break; case J.mU: case J.Eo: this.Dr.x = g.x, this.Dr.y = g.y, this.fC(f) } }, ns: function() { this.mf && this.nf && this.nf.call(this.mf, this, T.J5); this.mb && this.mb(this, T.J5) }, ks: function() { this.mf && this.nf && this.nf.call(this.mf, this, T.G5); this.mb && this.mb(this, T.G5) }, ls: function() { this.mf && this.nf && this.nf.call(this.mf, this, T.H5); this.mb && this.mb(this, T.H5) }, ms: function() { this.mf && this.nf && this.nf.call(this.mf, this, T.I5); this.mb && this.mb(this, T.I5) }, OGa: function() { this.mf && this.nf && this.nf.call(this.mf, this, T.F5); this.mb && this.mb(this, T.F5) }, h_: function() { this.mf && this.nf && this.nf.call(this.mf, this, T.D5); this.mb && this.mb(this, T.D5) }, b_: function() { this.mf && this.nf && this.nf.call(this.mf, this, T.A5); this.mb && this.mb(this, T.A5) }, f_: function() { this.mf && this.nf && this.nf.call(this.mf, this, T.B5); this.mb && this.mb(this, T.B5) }, g_: function() { this.mf && this.nf && this.nf.call(this.mf, this, T.C5); this.mb && this.mb(this, T.C5) }, XPa: function(c, d) { this.nf = c; this.mf = d }, addEventListener: x("mb"), sh: x("direction"), $B: A("direction"), vR: x("su"), kYa: A("su"), yHa: x("iI"), tYa: A("iI"), RUa: A("z"), Pm: function(c) { this.z.Pm(c) }, Cm: function() { return this.z.Cm() }, Vl: function() { this.$g && (this.$g = t) }, fk: B("ScrollView"), Uh: function() { return T.create() }, ux: function(c) { L.prototype.ux.call(this, c) }, xi: function(c) { c instanceof T && (L.prototype.xi.call(this, c), this.ky(c.KAa()), this.sh(c.direction), this.vR(c.su), this.yHa(c.iI), this.mf = c.mf, this.nf = c.nf, this.mb = c.mb) } }), H = T.prototype; C.e(H, "innerWidth", H.tsa, H.$ua); C.e(H, "innerHeight", H.ssa, H.Zua); H = s; T.create = function() { return new T }; T.Fla = 0; T.wo = 1; T.vo = 2; T.zg = 3; T.J5 = 0; T.G5 = 1; T.H5 = 2; T.I5 = 3; T.F5 = 4; T.D5 = 5; T.A5 = 6; T.B5 = 7; T.C5 = 8; T.Dja = 1E3; T.eoa = C.d(0, 1); T.boa = C.d(0, -1); T.coa = C.d( - 1, 0); T.doa = C.d(1, 0); var wd = T.extend({ rw: s, Eg: s, wt: s, pn: 0, yA: s, zA: s, UV: 0, gm: q, qa: "ListView", ctor: function() { T.prototype.ctor.call(this); this.rw = s; this.Eg = []; this.wt = wd.hT; this.pn = 0; this.zA = this.yA = s; this.UV = 0; this.gm = q }, j: function() { return T.prototype.j.call(this) ? (this.Pm(L.oq), q) : t }, BHa: function(c) { c && (this.rw = c) }, FJa: function() { switch (this.direction) { case T.wo: for (var c = this.Eg.length, d = (c - 1) * this.pn, f = 0; f < c; f++) var g = this.Eg[f], d = d + g.i().height; c = this.o.width; this.ky(C.size(c, d)); break; case T.vo: c = this.Eg.length; d = (c - 1) * this.pn; for (f = 0; f < c; f++) g = this.Eg[f], d += g.i().width; c = this.o.height; this.ky(C.size(d, c)) } }, YI: function(c) { if (c) switch (this.direction) { case T.wo: var d = c.ml(); if (d) switch (0 == this.OH(c) ? d.mo(Nc()) : d.mo(new Mc(0, this.pn, 0, 0)), this.wt) { case wd.a6: d.oc(Ic.bn); break; case wd.b6: d.oc(Ic.Jl); break; case wd.hT: d.oc(Ic.DS) } else { d = Ic.create(); switch (this.wt) { case wd.a6: d.oc(Ic.bn); break; case wd.b6: d.oc(Ic.Jl); break; case wd.hT: d.oc(Ic.DS) } 0 == this.OH(c) ? d.mo(Nc()) : d.mo(new Mc(0, this.pn, 0, 0)); c.ly(d) } break; case T.vo: if (d = c.ml()) switch (0 == this.OH(c) ? d.mo(Nc()) : d.mo(new Mc(this.pn, 0, 0, 0)), this.wt) { case wd.c6: d.oc(Ic.U7); break; case wd.Y5: d.oc(Ic.pS); break; case wd.Z5: d.oc(Ic.ES) } else { d = Ic.create(); switch (this.wt) { case wd.c6: d.oc(Ic.U7); break; case wd.Y5: d.oc(Ic.pS); break; case wd.Z5: d.oc(Ic.ES) } 0 == this.OH(c) ? d.mo(Nc()) : d.mo(new Mc(this.pn, 0, 0, 0)); c.ly(d) } } }, u1a: function() { if (this.rw) { var c = this.rw.s(); this.YI(c); this.q(c); this.gm = q } }, UXa: function(c) { if (this.rw) { var d = this.rw.s(); this.Eg.splice(c, 0, d); T.prototype.q.call(this, d); this.YI(d); this.gm = q } }, yga: function(c) { this.YI(c); this.q(c); this.gm = q }, q: function(c, d, f) { c && (d = d || c.Wa, f = f || c.Fm(), T.prototype.q.call(this, c, d, f), this.Eg.push(c)) }, removeChild: function(c, d) { if (c) { var f = this.Eg.indexOf(c); - 1 < f && this.Eg.splice(f, 1); T.prototype.removeChild.call(this, c, d) } }, xf: function() { this.Ku(q) }, Ku: function(c) { T.prototype.Ku.call(this, c); this.Eg = [] }, TXa: function(c, d) { this.Eg.splice(d, 0, c); T.prototype.q.call(this, c); this.YI(c); this.gm = q }, removeItem: function(c) { if (c = this.getItem(c)) this.removeChild(c), this.gm = q }, i2a: function() { this.removeItem(this.Eg.length - 1) }, S1a: function() { this.xf() }, getItem: function(c) { return 0 > c || c >= this.Eg.length ? s: this.Eg[c] }, VUa: A("Eg"), OH: function(c) { return this.Eg.indexOf(c) }, oc: function(c) { this.wt != c && (this.wt = c, this.gm = q) }, T2: function(c) { this.pn != c && (this.pn = c, this.gm = q) }, WUa: A("pn"), sh: function(c) { switch (c) { case T.wo: this.Pm(L.oq); break; case T.vo: this.Pm(L.nq); break; case T.zg: return; default: return } T.prototype.sh.call(this, c) }, A2a: function() { this.gm = q }, iGa: function() { for (var c = 0; c < this.Eg.length; c++) { var d = this.Eg[c]; d.ul(c); this.YI(d) } this.FJa() }, Vl: function() { L.prototype.Vl.call(this); this.gm && (this.iGa(), this.gm = t) }, VPa: function(c, d) { this.yA = d; this.zA = c }, addEventListener: x("mb"), SGa: function(c) { c = c == J.lU ? wd.xna: wd.wna; this.yA && this.zA && this.zA.call(this.yA, this, c); this.mb && this.mb(this, c) }, Wr: function(c, d, f) { T.prototype.Wr.call(this, c, d, f); if (1 != c) { for (f = d; f;) { if (f && f.getParent() == this.z) { this.UV = this.OH(f); break } f = f.getParent() } d.mQ() && this.SGa(c) } }, OTa: A("UV"), gc: function() { T.prototype.gc.call(this); this.gm = q }, fk: B("ListView"), Uh: function() { return wd.create() }, ux: function(c) { c = c.Eg; for (var d = 0; d < c.length; d++) this.yga(c[d].s()) }, xi: function(c) { T.prototype.xi.call(this, c); this.BHa(c.rw); this.T2(c.pn); this.oc(c.wt); this.yA = c.yA; this.zA = c.zA; this.mb = c.mb } }); wd.create = function() { return new wd }; wd.LLa = 0; wd.xna = 0; wd.wna = 1; wd.a6 = 0; wd.b6 = 1; wd.hT = 2; wd.c6 = 3; wd.Y5 = 4; wd.Z5 = 5; var xd = L.extend({ Mj: 0, uc: s, wO: s, Vva: 0, Uva: 0, Gta: s, xA: s, WA: s, bg: 0, kf: 0, fw: t, Jj: 0, mL: 0, lV: 0, iF: 0, JA: s, KA: s, qa: "PageView", mb: s, ctor: function() { L.prototype.ctor.call(this); this.Mj = 0; this.uc = []; this.wO = xd.nU; this.Uva = this.Vva = 0; this.WA = this.xA = this.Gta = s; this.kf = this.bg = 0; this.fw = t; this.lV = this.mL = this.Jj = 0; this.iF = 5; this.KA = this.JA = s }, j: function() { return L.prototype.j.call(this) ? (this.aq(q), q) : t }, Z: function() { L.prototype.Z.call(this); this.Lu(q) }, lQa: function(c, d, f) { if (c && !(0 > d)) { var g = this.uc.length; d >= g ? f && (d > g && C.log("pageIdx is %d, it will be added as page id [%d]", d, g), d = this.Xxa(), d.q(c), this.TO(d)) : (d = this.uc[d]) && d.q(c) } }, Xxa: function() { var c = L.create(); c.Ca(this.i()); return c }, TO: function(c) { c && -1 == this.uc.indexOf(c) && (this.Yc(c), this.uc.push(c), this.$g = q) }, XXa: function(c, d) { 0 > d || (!c || -1 != this.uc.indexOf(c)) || (d >= this.uc.length ? this.TO(c) : (this.uc[d] = c, this.Yc(c)), this.$g = q) }, xGa: function(c) { c && (this.Ai(c), c = this.uc.indexOf(c), -1 < c && this.uc.splice(c, 1), this.$g = q) }, l2a: function(c) { 0 > c || c >= this.uc.length || (c = this.uc[c]) && this.xGa(c) }, V1a: function() { for (var c = this.uc, d = 0, f = c.length; d < f; d++) this.Ai(c[d]); this.uc.length = 0 }, CJa: function() { 0 >= this.uc.length ? this.WA = this.xA = s: (this.xA = this.uc[0], this.WA = this.uc[this.uc.length - 1]) }, OVa: function() { return this.uc.length }, cWa: function(c) { return this.UH().width * (c - this.Mj) }, gc: function() { L.prototype.gc.call(this); this.kf = this.i().width; this.$g = q }, zJa: function() { for (var c = this.i(), d = this.uc, f = 0, g = d.length; f < g; f++) d[f].Ca(c) }, yJa: function() { var c = this.uc.length; if (0 >= c) this.Mj = 0; else { this.Mj >= c && (this.Mj = c - 1); for (var d = this.i().width, f = this.uc, g = 0; g < c; g++) f[g].p(C.d((g - this.Mj) * d, 0)) } }, A2: function(c) { 0 > c || c >= this.uc.length || (this.Mj = c, this.Jj = -this.uc[c].Ld().x, this.mL = Math.abs(this.Jj) / 0.2, this.lV = 0 < this.Jj ? 1 : 0, this.fw = q) }, update: function(c) { this.fw && this.gxa(c) }, gxa: function(c) { switch (this.lV) { case 0: c *= this.mL; 0 <= this.Jj + c ? (c = -this.Jj, this.Jj = 0, this.fw = t) : this.Jj += c; this.$I( - c); this.fw || this.qga(); break; case 1: c *= this.mL, 0 >= this.Jj - c ? (c = this.Jj, this.Jj = 0, this.fw = t) : this.Jj -= c, this.$I(c), this.fw || this.qga() } }, nc: function(c, d) { var f = L.prototype.nc.call(this, c, d); this.cw && this.gI(c); return f }, yd: function(c) { this.fI(c); var d = this.pg(); d && d.Wr(J.FE, this, c); this.Rfa() }, cd: function(c, d) { L.prototype.cd.call(this, c, d); this.fC(c) }, Xe: function(c, d) { L.prototype.Xe.call(this, c, d); this.fC(c) }, Vl: function() { this.$g && (this.yJa(), this.zJa(), this.CJa(), this.$g = t) }, E1: function(c) { for (var d = this.uc, f = d.length, g = 0; g < f; g++) { var h = d[g], k = h.Ld(); h.p(k.x + c, k.y) } }, $I: function(c) { if (0 >= this.uc.length || !this.xA || !this.WA) return t; var d = c; switch (this.wO) { case xd.nU: if (this.WA.Fc() + c <= this.kf) return d = this.kf - this.WA.Fc(), this.E1(d), t; break; case xd.V7: if (this.xA.yc() + c >= this.bg) return d = this.bg - this.xA.yc(), this.E1(d), t } this.E1(d); return q }, gI: u(), fI: function(c) { c = c.mh().x - c.JP().x; 0 > c ? this.wO = xd.nU: 0 < c && (this.wO = xd.V7); this.$I(c) }, fC: function() { if (! (0 >= this.uc.length)) { var c = this.uc[this.Mj]; if (c) { var d = c.Ld(), c = this.uc.length, d = d.x, f = this.UH().width / 2; d <= -f ? this.Mj >= c - 1 ? this.$I( - d) : this.A2(this.Mj + 1) : d >= f ? 0 >= this.Mj ? this.$I( - d) : this.A2(this.Mj - 1) : this.A2(this.Mj) } } }, Wr: function(c, d, f) { switch (c) { case 0: this.gI(f); break; case 1: c = 0; c = Math.abs(d.J0().x - f.x); c > this.iF && (d.yR(t), this.fI(f)); break; case 2: this.fC(f) } }, qga: function() { this.JA && this.KA && this.KA.call(this.JA, this, xd.L5); this.mb && this.mb(this, xd.L5) }, WPa: function(c, d) { this.KA = c; this.JA = d }, addEventListener: x("mb"), NTa: A("Mj"), PVa: A("uc"), NVa: function(c) { return 0 > c || c >= this.uc.size() ? s: this.uc[c] }, fk: B("PageView"), Uh: function() { return xd.create() }, ux: function(c) { c = c.uc; for (var d = 0; d < c.length; d++) this.TO(c[d].s()) }, xi: function(c) { L.prototype.xi.call(this, c); this.mb = c.mb; this.JA = c.JA; this.KA = c.KA } }); xd.create = function() { var c = new xd; return c && c.j() ? c: s }; xd.L5 = 0; xd.nU = 0; xd.V7 = 1; C.zh = C.O.extend({ Rd: s, kd: "", Wc: q, ctor: function() { this.Rd = s; this.kd = ""; this.Wc = q }, j: B(q), Z: u(), Na: u(), update: u(), QC: u(), isEnabled: A("Wc"), Ib: x("Wc"), getName: A("kd"), Ze: x("kd"), VC: x("Rd"), iea: A("Rd") }); C.zh.create = function() { return new C.zh }; C.o5 = C.O.extend({ Gh: s, Rd: s, ctor: function(c) { this.Gh = s; this.Rd = c }, Rda: function(c) { c || e("cc.ComponentContainer.getComponent(): name should be non-null"); c = c.trim(); return this.Gh[c] }, add: function(c) { c || e("cc.ComponentContainer.add(): component should be non-null"); if (c.Rd) return C.log("cc.ComponentContainer.add(): Component already added. It can't be added again"), t; this.Gh == s && (this.Gh = {}, this.Rd.Lu()); if (this.Gh[c.getName()]) return C.log("cc.ComponentContainer.add(): Component already added. It can't be added again"), t; c.VC(this.Rd); this.Gh[c.getName()] = c; c.Z(); return q }, remove: function(c) { c || e("cc.ComponentContainer.remove(): name should be non-null"); if (!this.Gh) return t; if (c instanceof C.zh) return this.eba(c); c = c.trim(); return this.eba(this.Gh[c]) }, eba: function(c) { if (c) return t; c.Na(); c.VC(s); delete this.Gh[c.getName()]; return q }, mk: function() { if (this.Gh) { var c = this.Gh, d; for (d in c) { var f = c[d]; f.Na(); f.VC(s); delete c[d] } this.Rd.hD(); this.Gh = s } }, XNa: function() { this.Gh = {} }, J: function(c) { if (this.Gh) { var d = this.Gh, f; for (f in d) d[f].update(c) } }, gfa: function() { if (!this.Gh) return q; for (var c in this.Gh) return t; return q } }); var V = V || {}; V.O = V.O || C.O; V.O.extend = V.O.extend || C.O.extend; V.A = V.A || C.A; V.A.extend = V.A.extend || C.A.extend; V.ha = V.ha || C.ha; V.ha.extend = V.ha.extend || C.ha.extend; V.u = V.u || C.u; V.u.extend = V.u.extend || C.u.extend; V.zh = V.zh || C.zh; V.zh.extend = V.zh.extend || C.zh.extend; V.YQa = "v1.3.0.0"; V.mKa = V.O.extend({ Lp: function(c, d, f) { c = c.substr(c.lastIndexOf("/") + 1, c.length()); C.log("filename \x3d\x3d %s", c.toString()); for (var g = [], h = d.actionlist, k = 0; k < h; k++) { var n = new ActionObject; n.Lp(d.actionlist[k], f); g.push(n) } this.vq[c] = g }, i0: function(c, d) { var f = this.vq[c]; if (f) for (var g = 0; g < f.length; g++) { var h = f[g]; if (d == h.getName()) return h } }, GFa: function(c, d) { var f = this.i0(c, d); f && f.play(); return f }, kGa: function() { for (var c in this.vq) delete this.vq[c]; this.vq = [] } }); V.MNa = 0.3; V.oqa = 1; V.pqa = 1.1; V.$ma = 5E6; V.Aja = 50; V.Bja = 100; V.hKa = V.$ma / V.Aja / V.Bja; V.lKa = t; V.ID = t; V.mv = t; V.qQa = B("v1.1.0.0"); V.e5 = "version"; V.WJ = 2; V.xs = 0.3; V.JS = "skeleton"; V.Dka = "armatures"; V.J4 = "armature"; V.DD = "b"; V.dla = "d"; V.Bka = "animations"; V.I4 = "animation"; V.c5 = "mov"; V.IS = "f"; V.jla = "TextureAtlas"; V.d5 = "SubTexture"; V.yg = "name"; V.Iy = "dr"; V.Pka = "fi"; V.P4 = "to"; V.Q4 = "drTW"; V.U4 = "lp"; V.AD = "sc"; V.V4 = "dl"; V.O4 = "dI"; V.hLa = "vert"; V.eLa = "frag"; V.Tka = "plist"; V.FS = "parent"; V.TJ = "kX"; V.UJ = "kY"; V.BD = "cX"; V.CD = "cY"; V.HS = "z"; V.R4 = "evt"; V.Vka = "sd"; V.Wka = "sdE"; V.VJ = "twE"; V.Xka = "twR"; V.Oka = "twEP"; V.Rka = "isArmature"; V.Nka = "displayType"; V.Ska = "mov"; V.Ika = "bd"; V.Hka = "bd_src"; V.Gka = "bd_dst"; V.Jy = "x"; V.Ky = "y"; V.M4 = "cocos2d_x"; V.N4 = "cocos2d_y"; V.Z4 = "width"; V.T4 = "height"; V.W4 = "pX"; V.X4 = "pY"; V.Kka = "cocos2d_pX"; V.Lka = "cocos2d_pY"; V.K4 = "a"; V.Y4 = "r"; V.S4 = "g"; V.L4 = "b"; V.Fka = "aM"; V.Uka = "rM"; V.Qka = "gM"; V.Jka = "bM"; V.Mka = "colorTransform"; V.GS = "tweenFrame"; V.fLa = "rotation"; V.gLa = "uci"; V.a5 = "con"; V.cla = "con_vt"; V.iLa = "movementEventFrame"; V.kLa = "soundFrame"; V.b5 = "NaN"; V.fla = "frame_data"; V.gla = "mov_bone_data"; V.jLa = "mov_frame_data"; V.hla = "mov_data"; V.Cka = "animation_data"; V.ela = "display_data"; V.ila = "skin_data"; V.Yka = "bone_data"; V.Eka = "armature_data"; V.bla = "contour_data"; V.kla = "texture_data"; V.lla = "vertex"; V.Zka = "color"; V.$ka = "config_file_path"; V.ala = "content_scale"; function yd() { this.uQa = s; this.fRa = []; this.yH = 1; this.xQa = this.filename = ""; this.EB = this.tP = 0 } V.lP = { nF: [], COa: V.WJ, gOa: V.xs, OA: 1, mz: 0, Jv: 0, R4a: x("OA"), bWa: A("OA"), clear: function() { this.nF = []; this.Jv = this.mz = 0 }, rca: function(c, d) { if ( - 1 == this.nF.indexOf(c)) { this.nF.push(c); var f = C.path.Cp(c).toLowerCase(), g = new yd; g.filename = c; g.ZZ = this.$sa(c); ".xml" == f ? this.vwa(c, g) : (".json" == f || ".exportjson" == f) && this.twa(c, g, d) } }, swa: function(c, d, f, g) { if ( - 1 != this.nF.indexOf(c)) d && f && (0 == this.Jv && 0 == this.mz ? this.gV(d, f, 1) : this.gV(d, f, (this.Jv - this.mz) / this.Jv)); else { this.Jv++; this.mz++; var h = this; C.Q.Em().y2(this, function() { h.rca(c, g); h.mz--; h.gV(d, f, (h.Jv - h.mz) / h.Jv) }, 0.1, t) } }, gV: function(c, d, f) { if (c && "string" == typeof d) c[d](f); else c && "function" == typeof d && d.call(c, f) }, $sa: function(c) { var d = c.lastIndexOf("/"); return c = -1 < d ? c.substr(0, d + 1) : "" }, vwa: function(c, d) { var f = C.M.xd(c); f || e("Please load the resource first : " + c); (f = C.IGa.parse(f).documentElement) && this.rwa(f, d) }, rwa: function(c, d) { if (c) { d.tP = parseFloat(c.getAttribute(V.e5)); for (var f = c.querySelectorAll(V.JS + " \x3e " + V.Dka + " \x3e " + V.J4 + ""), g = V.Mr, h = 0; h < f.length; h++) { var k = this.eya(f[h], d); g.LZ(k.name, k, d.filename) } f = c.querySelectorAll(V.JS + " \x3e " + V.Bka + " \x3e " + V.I4 + ""); for (h = 0; h < f.length; h++) k = this.cya(f[h], d), g.KZ(k.name, k, d.filename); f = c.querySelectorAll(V.JS + " \x3e " + V.jla + " \x3e " + V.d5 + ""); for (h = 0; h < f.length; h++) k = this.uya(f[h], d), g.Aca(k.name, k, d.filename) } else C.log("XML error or XML is empty.") }, eya: function(c, d) { var f = c.getAttribute(V.yg), g = new V.kS; g.name = f; for (var f = c.querySelectorAll(V.J4 + " \x3e " + V.DD), h = 0; h < f.length; h++) { var k = f[h], n = k.getAttribute(V.FS), p = s; if (n) for (var r = 0; r < f.length && !(p = f[r], n == f[r].getAttribute(V.yg)); r++); k = this.gya(k, p, d); g.nca(k) } return g }, gya: function(c, d, f) { var g = c.getAttribute(V.yg); if ("" != g) { d = new V.y4; d.name = g; d.RI = c.getAttribute(V.FS) || ""; d.Tm = parseInt(c.getAttribute(V.HS)) || 0; c = c.querySelectorAll(V.DD + " \x3e " + V.dla); for (var h, g = 0; g < c.length; g++) h = c[g], h = this.hya(h, f), d.tca(h); return d } }, hya: function(c) { var d = s; 1 == (parseFloat(c.getAttribute(V.Rka)) || 0) ? (d = new V.vD, d.il = V.Ly) : (d = new V.sq, d.il = V.zs); (c = c.getAttribute(V.yg) || "") && (d.displayName = c); return d }, cya: function(c, d) { var f = c.getAttribute(V.yg), g = new V.jS, h = V.Mr.Gx(f); g.name = f; for (var f = c.querySelectorAll(V.I4 + " \x3e " + V.c5), k = s, n = 0; n < f.length; n++) k = f[n], k = this.oya(k, h, d), g.uca(k); return g }, oya: function(c, d, f) { var g = c.getAttribute(V.yg), h = new V.I6; h.name = g; g = g = 0; g = parseFloat(c.getAttribute(V.Iy)) || 0; h.duration = g; g = parseFloat(c.getAttribute(V.P4)) || 0; h.wu = g; g = parseFloat(c.getAttribute(V.Q4)) || 0; h.qP = g; g = c.getAttribute(V.U4); h.loop = g ? Boolean(parseFloat(g)) : q; if (g = c.getAttribute(V.VJ)) g != V.b5 ? (g = parseFloat(g) || 0, h.tweenEasing = 2 == g ? V.bb.XC: g) : h.tweenEasing = V.bb.oj; c = c.querySelectorAll(V.c5 + " \x3e " + V.DD); for (var k = s, g = 0; g < c.length; g++) { var k = c[g], n = k.getAttribute(V.yg); if (!h.t0(n)) { var n = d.Hx(n), p = n.RI, r = s; if ("" != p) for (var v = 0; v < c.length && !(r = c[v], p == r.getAttribute(V.yg)); v++); k = this.pya(k, r, n, f); h.vca(k) } } return h }, pya: function(c, d, f, g) { var h = new V.H6, k; c && (k = parseFloat(c.getAttribute(V.AD)) || 0, h.scale = k, k = parseFloat(c.getAttribute(V.V4)) || 0, 0 < k && (k -= 1), h.wm = k); var n = 0, p = k = 0, r = s, v = []; if (d != s) { for (var y = d.querySelectorAll(V.DD + " \x3e " + V.IS), n = 0; n < y.length; n++) v.push(y[n]); n = v.length } var y = 0, z = c.getAttribute(V.yg); h.name = z; c = c.querySelectorAll(V.DD + " \x3e " + V.IS); for (var D = z = 0; D < c.length; D++) { var E = c[D]; if (d) for (; z < n && (r ? y < k || y >= k + p: 1);) r = v[z], k += p, p = parseFloat(r.getAttribute(V.Iy)), z++; E = this.mya(E, r, f, g); h.QO(E); E.kj = y; y += E.duration; h.duration = y } d = h.kh; f = Math.PI; for (n = d.length - 1; 0 <= n; n--) if (0 < n) { g = d[n].skewX - d[n - 1].skewX; k = d[n].skewY - d[n - 1].skewY; if (g < -f || g > f) d[n - 1].skewX = 0 > g ? d[n - 1].skewX - 2 * f: d[n - 1].skewX + 2 * f; if (k < -f || k > f) d[n - 1].skewY = 0 > k ? d[n - 1].skewY - 2 * f: d[n - 1].skewY + 2 * f } 0 < h.kh.length && (E = new V.qv, E.copy(h.kh[h.kh.length - 1]), E.kj = h.duration, h.QO(E)); return h }, mya: function(c, d, f, g) { f = new V.qv; f.zC = c.getAttribute(V.Ska) || ""; f.event = c.getAttribute(V.R4) || ""; f.pxa = parseInt(c.getAttribute(V.Ika)) || V.u4; var h = f.blendFunc; switch (f.pxa) { case V.u4: h.src = C.Ic; h.ga = C.Hc; break; case V.Vja: h.src = C.SRC_ALPHA; h.ga = C.ONE; break; case V.Wja: h.src = C.ONE_MINUS_SRC_ALPHA; h.ga = C.ONE_MINUS_DST_COLOR; break; case V.Xja: h.src = C.ONE, h.ga = C.ONE_MINUS_DST_COLOR } f.ZR = c.getAttribute(V.Vka) || ""; f.$R = c.getAttribute(V.Wka) || ""; h = c.getAttribute(V.GS); h == s && (h = q); f.Cu = Boolean(h); g.tP >= V.WJ ? (f.x = parseFloat(c.getAttribute(V.M4)) || 0, f.y = -parseFloat(c.getAttribute(V.N4)) || 0) : (f.x = parseFloat(c.getAttribute(V.Jy)) || 0, f.y = -parseFloat(c.getAttribute(V.Ky)) || 0); f.x *= this.OA; f.y *= this.OA; f.scaleX = parseFloat(c.getAttribute(V.BD)) || 0; f.scaleY = parseFloat(c.getAttribute(V.CD)) || 0; f.skewX = C.ng(parseFloat(c.getAttribute(V.TJ)) || 0); f.skewY = C.ng( - parseFloat(c.getAttribute(V.UJ)) || 0); f.duration = parseFloat(c.getAttribute(V.Iy)) || 0; f.ij = parseFloat(c.getAttribute(V.O4)) || 0; f.Tm = parseFloat(c.getAttribute(V.HS)) || 0; f.Cy = parseFloat(c.getAttribute(V.Xka)) || 0; h = c.querySelectorAll(V.IS + " \x3e " + V.Mka); if (0 < h.length) { var k = h[0], n = 0, p = 0, r = 0, v = 0, y = 0, z = 0, D = 100, h = parseFloat(k.getAttribute(V.K4)) || 0, n = parseFloat(k.getAttribute(V.Y4)) || n, p = parseFloat(k.getAttribute(V.S4)) || p, r = parseFloat(k.getAttribute(V.L4)) || r, E = k.getAttribute(V.Fka); E && (v = parseFloat(E)); (E = k.getAttribute(V.Uka)) && (y = parseFloat(E)); var F = k.getAttribute(V.Qka); E && (z = parseFloat(F)); (k = k.getAttribute(V.Jka)) && (D = parseFloat(k)); f.a = 2.55 * v + h; f.r = 2.55 * y + n; f.g = 2.55 * z + p; f.b = 2.55 * D + r; f.$n = q } - 1 == f.ij && (f.a = 0); (c = c.getAttribute(V.VJ)) && (f.tweenEasing = c != V.b5 ? 2 == c ? V.bb.XC: c: V.bb.oj); d && (c = new V.Um, g.tP >= V.WJ ? (c.x = parseFloat(d.getAttribute(V.M4)) || 0, c.y = parseFloat(d.getAttribute(V.N4)) || 0) : (c.x = parseFloat(d.getAttribute(V.Jy)) || 0, c.y = parseFloat(d.getAttribute(V.Ky)) || 0), c.skewX = parseFloat(d.getAttribute(V.TJ)) || 0, c.skewY = parseFloat(d.getAttribute(V.UJ)) || 0, c.y = -c.y, c.skewX = C.ng(c.skewX), c.skewY = C.ng( - c.skewY), V.Ij.pJa(f, c)); return f }, uya: function(c, d) { var f = new V.a8; c.getAttribute(V.yg) && (f.name = c.getAttribute(V.yg)); var g, h, k, n = 0; d.tP >= V.WJ ? (g = parseFloat(c.getAttribute(V.Kka)) || 0, h = parseFloat(c.getAttribute(V.Lka)) || 0) : (g = parseFloat(c.getAttribute(V.W4)) || 0, h = parseFloat(c.getAttribute(V.X4)) || 0); k = parseFloat(c.getAttribute(V.Z4)) || 0; n = parseFloat(c.getAttribute(V.T4)) || 0; f.WQ = g / k; f.XQ = (n - h) / n; g = c.querySelectorAll(V.d5 + " \x3e " + V.a5); for (h = 0; h < g.length; h++) this.kya(g[h], d); return f }, kya: function(c) { var d = new V.p5; c = c.querySelectorAll(V.a5 + " \x3e " + V.cla); for (var f, g = 0; g < c.length; g++) { f = c[g]; var h = C.d(0, 0); h.x = parseFloat(f.getAttribute(V.Jy)) || 0; h.y = parseFloat(f.getAttribute(V.Ky)) || 0; d.dv.push(h) } return d }, twa: function(c, d, f) { this.uwa(C.M.xd(c), d, f) }, uwa: function(c, d, f) { d.yH = c[V.ala] || 1; for (var g = c[V.Eka] || [], h, k = 0; k < g.length; k++) h = this.fya(g[k], d), V.Mr.LZ(h.name, h, d.filename); g = c[V.Cka] || []; for (k = 0; k < g.length; k++) h = this.dya(g[k], d), V.Mr.KZ(h.name, h, d.filename); g = c[V.kla] || []; for (k = 0; k < g.length; k++) h = this.vya(g[k], d), V.Mr.Aca(h.name, h, d.filename); if (f) { c = c[V.$ka] || []; for (k = 0; k < c.length; k++) f = c[k], g = f.lastIndexOf("."), f = f.substring(0, g), g = d.ZZ + f + ".plist", f = d.ZZ + f + ".png", V.Mr.mH(g, f, d.filename) } }, fya: function(c, d) { var f = new V.kS, g = c[V.yg]; g && (f.name = g); d.EB = f.IB = c[V.e5] || 0.1; for (var g = c[V.Yka], h = 0; h < g.length; h++) f.nca(this.jya(g[h], d)); return f }, jya: function(c, d) { var f = new V.y4; this.gda(f, c, d); f.name = c[V.yg] || ""; f.RI = c[V.FS] || ""; for (var g = c[V.ela] || [], h = 0; h < g.length; h++) { var k = this.iya(g[h], d); f.tca(k) } return f }, iya: function(c, d) { var f = c[V.Nka] || V.zs, g = s; switch (f) { case V.zs: g = new V.sq; g.displayName = c[V.yg] || ""; var h = (c[V.ila] || [])[0]; if (h) { var k = g.skinData; k.x = (h[V.Jy] || 0) * this.OA; k.y = (h[V.Ky] || 0) * this.OA; h[V.BD] !== m && (k.scaleX = h[V.BD]); h[V.CD] !== m && (k.scaleY = h[V.CD]); k.skewX = h[V.TJ] || 0; k.skewY = h[V.UJ] || 0; k.x *= d.yH; k.y *= d.yH } break; case V.Ly: g = new V.vD; g.displayName = c[V.yg] || ""; break; case V.HD: g = new V.DK; g.displayName = d.ZZ + c[V.Tka] || ""; break; default: g = new V.sq } g.il = f; return g }, dya: function(c, d) { var f = new V.jS; f.name = c[V.yg] || ""; for (var g = c[V.hla] || [], h = 0; h < g.length; h++) { var k = this.rya(g[h], d); f.uca(k) } return f }, rya: function(c, d) { var f = new V.I6; f.loop = c[V.U4] || t; f.qP = c[V.Q4] || 0; f.wu = c[V.P4] || 0; f.duration = c[V.Iy] || 0; c[V.AD] !== m && (f.scale = c[V.AD]); f.tweenEasing = c[V.VJ] || V.bb.oj; f.name = c[V.yg] || ""; for (var g = c[V.gla] || [], h = 0; h < g.length; h++) { var k = this.qya(g[h], d); f.vca(k) } return f }, qya: function(c, d) { var f = new V.H6; f.wm = c[V.V4] || 0; c[V.AD] !== m && (f.scale = c[V.AD]); f.name = c[V.yg] || ""; for (var g = c[V.fla] || [], h = 0; h < g.length; h++) { var k = this.nya(g[h], d); f.QO(k); d.EB < V.xs && (k.kj = f.duration, f.duration += k.duration) } if (d.EB < V.oqa) { g = f.kh; k = Math.PI; for (h = g.length - 1; 0 <= h; h--) if (0 < h) { var n = g[h].skewX - g[h - 1].skewX, p = g[h].skewY - g[h - 1].skewY; if (n < -k || n > k) g[h - 1].skewX = 0 > n ? g[h - 1].skewX - 2 * k: g[h - 1].skewX + 2 * k; if (p < -k || p > k) g[h - 1].skewY = 0 > p ? g[h - 1].skewY - 2 * k: g[h - 1].skewY + 2 * k } } d.EB < V.xs && 0 < f.kh.length && (k = new V.qv, k.copy(f.kh[f.kh.length - 1]), f.QO(k), k.kj = f.duration); return f }, nya: function(c, d) { var f = new V.qv; this.gda(f, c, d); f.duration = c[V.Iy] || 0; f.tweenEasing = c[V.VJ] || V.bb.oj; f.ij = c[V.O4] || 0; var g = c[V.Gka] || C.Hc; f.blendFunc.src = c[V.Hka] || C.Ic; f.blendFunc.ga = g; f.event = c[V.R4] || s; c[V.GS] !== m && (f.Cu = c[V.GS]); d.EB < V.xs ? f.duration = c[V.Iy] || 0 : f.kj = c[V.Pka] || 0; for (var g = c[V.Oka] || [], h = 0; h < g.length; h++) f.LB[h] = g[h]; return f }, vya: function(c) { var d = new V.a8; d.name = c[V.yg] || ""; d.width = c[V.Z4] || 0; d.height = c[V.T4] || 0; d.WQ = c[V.W4] || 0; d.XQ = c[V.X4] || 0; c = c[V.bla] || []; for (var f = 0; f < c.length; f++) { var g = this.lya(c[f]); d.tx.push(g) } return d }, lya: function(c) { var d = new V.p5; c = c[V.lla] || []; for (var f = 0; f < c.length; f++) { var g = c[f], h = C.d(0, 0); h.x = g[V.Jy] || 0; h.y = g[V.Ky] || 0; d.dv.push(h) } return d }, gda: function(c, d, f) { c.x = d[V.Jy] || 0; c.y = d[V.Ky] || 0; c.x *= f.yH; c.y *= f.yH; c.Tm = d[V.HS] || 0; c.skewX = d[V.TJ] || 0; c.skewY = d[V.UJ] || 0; d[V.BD] !== m && (c.scaleX = d[V.BD]); d[V.CD] !== m && (c.scaleY = d[V.CD]); if (d = d[V.Zka] || s) f.EB < V.pqa && (d = d[0]), c.a = d[V.K4], c.r = d[V.Y4], c.g = d[V.S4], c.b = d[V.L4], c.$n = q, delete d }, uGa: function(c) { C.Id(this.nF, c) } }; V.Mia = { nO: {}, Wsa: [], mH: function(c, d) { C.Fe.Lr(c, d) }, $Ba: B(s), clear: function() { this.nO = {}; this.Wsa = [] } }; V.Ij = V.Ij || V.O.extend({}); V.Ij.UP = { a: 1, b: 0, H: 0, P: 1, na: 0, oa: 0 }; V.Ij.VP = { a: 1, b: 0, H: 0, P: 1, na: 0, oa: 0 }; V.Ij.Ip = C.d(0, 0); V.Ij.Jp = C.d(0, 0); V.Ij.pJa = function(c, d) { this.F1(c, this.UP); this.F1(d, this.VP); this.VP = C.iS(this.VP); this.UP = C.Qg(this.UP, this.VP); this.Pfa(this.UP, c) }; V.Ij.F1 = function(c, d) { if (c.skewX == -c.skewY) { var f = Math.sin(c.skewX), g = Math.cos(c.skewX); d.a = c.scaleX * g; d.b = c.scaleX * -f; d.H = c.scaleY * f; d.P = c.scaleY * g } else d.a = c.scaleX * Math.cos(c.skewY), d.b = c.scaleX * Math.sin(c.skewY), d.H = c.scaleY * Math.sin(c.skewX), d.P = c.scaleY * Math.cos(c.skewY); d.na = c.x; d.oa = c.y }; V.Ij.Pfa = function(c, d) { this.Ip.x = 0; this.Ip.y = 1; this.Ip = C.wv(this.Ip, c); this.Ip.x -= c.na; this.Ip.y -= c.oa; this.Jp.x = 1; this.Jp.y = 0; this.Jp = C.wv(this.Jp, c); this.Jp.x -= c.na; this.Jp.y -= c.oa; d.skewX = -(Math.atan2(this.Ip.y, this.Ip.x) - 1.5707964); d.skewY = Math.atan2(this.Jp.y, this.Jp.x); d.scaleX = Math.sqrt(c.a * c.a + c.b * c.b); d.scaleY = Math.sqrt(c.H * c.H + c.P * c.P); d.x = c.na; d.y = c.oa }; V.Ij.h0a = function(c, d) { c.x += d.x; c.y += d.y; c.skewX += d.skewX; c.skewY += d.skewY; c.scaleX += d.scaleX; c.scaleY += d.scaleY }; V.Ij.vEa = function(c, d) { c.x -= d.x; c.y -= d.y; c.skewX -= d.skewX; c.skewY -= d.skewY; c.scaleX -= d.scaleX; c.scaleY -= d.scaleY }; V.bb = { bya: -1, oj: 0, B3: 1, C3: 2, XC: 3, d2: 4, f2: 5, e2: 6, F_: 7, H_: 8, G_: 9, g2: 10, i2: 11, h2: 12, j2: 13, l2: 14, k2: 15, e0: 16, g0: 17, f0: 18, u_: 19, xza: 20, v_: 21, Y_: 22, $_: 23, Z_: 24, VZ: 25, XZ: 26, WZ: 27, c_: 28, e_: 29, d_: 30, bja: 1E4 }; V.jc = V.jc || V.O.extend({}); V.Bo = 2 * Math.PI; V.D6 = Math.PI / 2; V.ana = Math.PI; V.jc.rJa = function(c, d, f) { var g = 0; switch (d) { case V.bb.bya: g = this.aya(c, f); break; case V.bb.oj: g = this.oj(c); break; case V.bb.B3: g = this.B3(c); break; case V.bb.C3: g = this.C3(c); break; case V.bb.XC: g = this.XC(c); break; case V.bb.d2: g = this.d2(c); break; case V.bb.f2: g = this.f2(c); break; case V.bb.e2: g = this.e2(c); break; case V.bb.F_: g = this.F_(c); break; case V.bb.H_: g = this.H_(c); break; case V.bb.G_: g = this.G_(c); break; case V.bb.g2: g = this.g2(c); break; case V.bb.i2: g = this.i2(c); break; case V.bb.h2: g = this.h2(c); break; case V.bb.j2: g = this.j2(c); break; case V.bb.l2: g = this.l2(c); break; case V.bb.k2: g = this.k2(c); break; case V.bb.e0: g = this.e0(c); break; case V.bb.g0: g = this.g0(c); break; case V.bb.f0: g = this.f0(c); break; case V.bb.u_: g = this.u_(c); break; case V.bb.xza: g = this.Hxa(c); break; case V.bb.v_: g = this.v_(c); break; case V.bb.Y_: g = this.Y_(c, f); break; case V.bb.$_: g = this.$_(c, f); break; case V.bb.Z_: g = this.Z_(c, f); break; case V.bb.VZ: g = this.VZ(c); break; case V.bb.XZ: g = this.XZ(c); break; case V.bb.WZ: g = this.WZ(c); break; case V.bb.c_: g = this.c_(c); break; case V.bb.e_: g = this.e_(c); break; case V.bb.d_: g = this.d_(c); break; default: g = this.XC(c) } return g }; V.jc.oj = da(); V.jc.B3 = function(c) { return - 1 * Math.cos(c * V.D6) + 1 }; V.jc.C3 = function(c) { return Math.sin(c * V.D6) }; V.jc.XC = function(c) { return - 0.5 * (Math.cos(V.ana * c) - 1) }; V.jc.d2 = function(c) { return c * c }; V.jc.f2 = function(c) { return - 1 * c * (c - 2) }; V.jc.e2 = function(c) { c *= 2; if (1 > c) return 0.5 * c * c; --c; return - 0.5 * (c * (c - 2) - 1) }; V.jc.F_ = function(c) { return c * c * c }; V.jc.H_ = function(c) { c -= 1; return c * c * c + 1 }; V.jc.G_ = function(c) { c *= 2; if (1 > c) return 0.5 * c * c * c; c -= 2; return 0.5 * (c * c * c + 2) }; V.jc.g2 = function(c) { return c * c * c * c }; V.jc.i2 = function(c) { c -= 1; return - (c * c * c * c - 1) }; V.jc.h2 = function(c) { c *= 2; if (1 > c) return 0.5 * c * c * c * c; c -= 2; return - 0.5 * (c * c * c * c - 2) }; V.jc.j2 = function(c) { return c * c * c * c * c }; V.jc.l2 = function(c) { c -= 1; return c * c * c * c * c + 1 }; V.jc.k2 = function(c) { c *= 2; if (1 > c) return 0.5 * c * c * c * c * c; c -= 2; return 0.5 * (c * c * c * c * c + 2) }; V.jc.e0 = function(c) { return 0 == c ? 0 : Math.pow(2, 10 * (c - 1)) - 0.0010 }; V.jc.g0 = function(c) { return 1 == c ? 1 : -Math.pow(2, -10 * c) + 1 }; V.jc.f0 = function(c) { c /= 0.5; return c = 1 > c ? 0.5 * Math.pow(2, 10 * (c - 1)) : 0.5 * ( - Math.pow(2, -10 * (c - 1)) + 2) }; V.jc.u_ = function(c) { return - 1 * (Math.sqrt(1 - c * c) - 1) }; V.jc.Hxa = function(c) { c -= 1; return Math.sqrt(1 - c * c) }; V.jc.v_ = function(c) { c *= 2; if (1 > c) return - 0.5 * (Math.sqrt(1 - c * c) - 1); c -= 2; return 0.5 * (Math.sqrt(1 - c * c) + 1) }; V.jc.Y_ = function(c, d) { var f = 0.3; 0 < d.length && (f = d[0]); var g = 0; 0 == c || 1 == c ? g = c: (c -= 1, g = -Math.pow(2, 10 * c) * Math.sin((c - f / 4) * V.Bo / f)); return g }; V.jc.$_ = function(c, d) { var f = 0.3; 0 < d.length && (f = d[0]); var g = 0; return g = 0 == c || 1 == c ? c: Math.pow(2, -10 * c) * Math.sin((c - f / 4) * V.Bo / f) + 1 }; V.jc.Z_ = function(c, d) { var f = 0.3; 0 < d.length && (f = d[0]); var g = 0; 0 == c || 1 == c ? g = c: (f || (f = 0.3 * 1.5), g = f / 4, c = 2 * c - 1, g = 0 > c ? -0.5 * Math.pow(2, 10 * c) * Math.sin((c - g) * V.Bo / f) : 0.5 * Math.pow(2, -10 * c) * Math.sin((c - g) * V.Bo / f) + 1); return g }; V.jc.VZ = function(c) { return c * c * (2.70158 * c - 1.70158) }; V.jc.XZ = function(c) { c -= 1; return c * c * (2.70158 * c + 1.70158) + 1 }; V.jc.WZ = function(c) { c *= 2; if (1 > c) return c * c * (3.5949095 * c - 2.5949095) / 2; c -= 2; return c * c * (3.5949095 * c + 2.5949095) / 2 + 1 }; V.Nr = function(c) { if (c < 1 / 2.75) return 7.5625 * c * c; if (c < 2 / 2.75) return c -= 1.5 / 2.75, 7.5625 * c * c + 0.75; if (c < 2.5 / 2.75) return c -= 2.25 / 2.75, 7.5625 * c * c + 0.9375; c -= 2.625 / 2.75; return 7.5625 * c * c + 0.984375 }; V.jc.c_ = function(c) { return 1 - V.Nr(1 - c) }; V.jc.e_ = function(c) { return V.Nr(c) }; V.jc.d_ = function(c) { var d = 0; return d = 0.5 > c ? 0.5 * (1 - V.Nr(1 - 2 * c)) : 0.5 * V.Nr(2 * c - 1) + 0.5 }; V.jc.aya = function(c, d) { if (0 < d.length) { var f = 1 - c; return d[1] * f * f * f + 3 * d[3] * c * f * f + 3 * d[5] * c * c * f + d[7] * c * c * c } return c }; V.QB = function(c, d) { for (; c > d;) c -= d; return c }; function zd(c) { c && c.rh && c.rh() } V.kfa = function(c, d, f) { var g = C.d(0, 0); f && (g = c.wi(d)); c = c.i(); c = C.rect(0, 0, c.width, c.height); return C.Ju(c, g) }; V.cNa = V.kfa; V.woa = V.kfa; V.eSa = function(c, d, f, g, h) { var k = C.d(0, 0); g && !h && (k.x = Math.pow(1 - c, 2) * d.x + 2 * c * (1 - c) * f.x + Math.pow(c, 2) * g.x, k.y = Math.pow(1 - c, 2) * d.y + 2 * c * (1 - c) * f.y + Math.pow(c, 2) * g.y); h && (k.x = d.x * Math.pow(1 - c, 3) + 3 * c * f.x * Math.pow(1 - c, 2) + 3 * g.x * Math.pow(c, 2) * (1 - c) + h.x * Math.pow(c, 3), k.y = d.y * Math.pow(1 - c, 3) + 3 * c * f.y * Math.pow(1 - c, 2) + 3 * g.y * Math.pow(c, 2) * (1 - c) + h.y * Math.pow(c, 3)); return k }; V.fSa = function(c, d, f, g, h) { var k = C.d(0, 0); k.x = d.x + f * Math.cos(g + h * c); k.y = d.y + f * Math.sin(g + h * c); return k }; function Ad() { this.a2 = []; this.SZ = []; this.xB = []; this.M3 = [] } V.Mr = { Vs: {}, Ws: {}, du: {}, Vqa: t, LN: {}, $1a: function(c) { for (var d = this.RH(c), f = 0; f < d.SZ.length; f++) { var g = d.SZ[f]; this.rGa(g) } for (f = 0; f < d.xB.length; f++) g = d.xB[f], this.pGa(g); for (f = 0; f < d.M3.length; f++) g = d.M3[f], this.BGa(g); for (f = 0; f < d.a2.length; f++) g = d.a2[f], C.Fe.AGa(g); delete this.LN[c]; V.lP.uGa(c) }, LZ: function(c, d, f) { this.Ws && (this.RH(f).SZ.push(c), this.Ws[c] = d) }, rGa: function(c) { this.Ws[c] && delete this.Ws[c] }, Gx: function(c) { var d = s; this.Ws && (d = this.Ws[c]); return d }, RSa: A("Ws"), KZ: function(c, d, f) { this.Vs && (this.RH(f).xB.push(c), this.Vs[c] = d) }, pGa: function(c) { this.Vs[c] && delete this.Vs[c] }, Jda: function(c) { var d = s; this.Vs[c] && (d = this.Vs[c]); return d }, LSa: A("Vs"), Aca: function(c, d, f) { this.du && (this.RH(f).M3.push(c), this.du[c] = d) }, BGa: function(c) { this.du[c] && delete this.du[c] }, ZBa: function(c) { var d = s; this.du && (d = this.du[c]); return d }, TWa: A("du"), pwa: function() { var c, d, f, g = t; 1 == arguments.length ? (f = arguments[0], g = q, this.UO(f)) : 3 == arguments.length && (c = arguments[0], d = arguments[1], f = arguments[2], this.UO(f), this.mH(d, c, f)); V.lP.rca(f, g) }, RPa: function() { var c, d, f, g, h, k = t; 3 == arguments.length ? (f = arguments[0], h = arguments[1], g = arguments[2], k = q, this.UO(f)) : 5 == arguments.length && (c = arguments[0], d = arguments[1], f = arguments[2], h = arguments[3], g = arguments[4], this.UO(f), this.mH(d, c, f)); V.lP.swa(f, g, h, k) }, mH: function(c, d, f) { this.RH(f).a2.push(c); V.Mia.mH(c, d) }, eYa: A("Vqa"), UO: function(c) { this.LN[c] || (this.LN[c] = new Ad) }, RH: function(c) { return this.LN[c] }, clear: function() { this.Vs = {}; this.Ws = {}; this.du = {}; V.Mia.clear(); V.lP.clear() } }; V.u4 = 0; V.EKa = 1; V.zKa = 2; V.Wja = 3; V.FKa = 4; V.Xja = 5; V.GKa = 6; V.CKa = 7; V.Vja = 8; V.HKa = 9; V.AKa = 10; V.DKa = 11; V.yKa = 12; V.BKa = 13; V.zs = 0; V.Ly = 1; V.HD = 2; V.gK = 3; V.Um = V.O.extend({ x: 0, y: 0, Tm: 0, skewX: 0, skewY: 0, scaleX: 1, scaleY: 1, Cy: 0, $n: t, r: 255, g: 255, b: 255, a: 255, ctor: function() { this.skewY = this.skewX = this.Tm = this.y = this.x = 0; this.scaleY = this.scaleX = 1; this.Cy = 0; this.$n = t; this.a = this.b = this.g = this.r = 255 }, copy: function(c) { this.x = c.x; this.y = c.y; this.Tm = c.Tm; this.scaleX = c.scaleX; this.scaleY = c.scaleY; this.skewX = c.skewX; this.skewY = c.skewY; this.Cy = c.Cy; this.$n = c.$n; this.r = c.r; this.g = c.g; this.b = c.b; this.a = c.a }, G: function(c) { this.r = c.r; this.g = c.g; this.b = c.b; this.a = c.a }, Xa: function() { return C.color(this.r, this.g, this.b, this.a) }, J3: function(c, d, f) { this.x = d.x - c.x; this.y = d.y - c.y; this.scaleX = d.scaleX - c.scaleX; this.scaleY = d.scaleY - c.scaleY; this.skewX = d.skewX - c.skewX; this.skewY = d.skewY - c.skewY; this.$n || c.$n || d.$n ? (this.a = d.a - c.a, this.r = d.r - c.r, this.g = d.g - c.g, this.b = d.b - c.b, this.$n = q) : (this.a = this.r = this.g = this.b = 0, this.$n = t); f && (this.skewX > C.PI && (this.skewX -= V.Bo), this.skewX < -C.PI && (this.skewX += V.Bo), this.skewY > C.PI && (this.skewY -= V.Bo), this.skewY < -C.PI && (this.skewY += V.Bo)); d.Cy && (this.skewX += d.Cy * V.Bo, this.skewY -= d.Cy * V.Bo) } }); V.My = V.O.extend({ il: V.gK, displayName: "", ctor: function() { this.il = V.gK }, PQa: function(c) { var d = c.lastIndexOf("."); - 1 != d && (c = c.substring(0, d)); return c }, copy: function(c) { this.displayName = c.displayName; this.il = c.il } }); V.sq = V.My.extend({ skinData: s, ctor: function() { this.skinData = new V.Um; this.il = V.zs }, copy: function(c) { V.My.prototype.copy.call(this, c); this.skinData = c.skinData } }); V.vD = V.My.extend({ displayName: "", ctor: function() { this.displayName = ""; this.il = V.Ly } }); V.DK = V.My.extend({ ctor: function() { this.il = V.HD } }); V.y4 = V.Um.extend({ oP: s, name: "", RI: "", qxa: s, ctor: function() { this.oP = []; this.RI = this.name = ""; this.qxa = s }, j: u(), tca: function(c) { this.oP.push(c) }, Am: function(c) { return this.oP[c] } }); V.kS = V.O.extend({ sH: s, name: "", IB: 0.1, ctor: function() { this.sH = {}; this.name = ""; this.IB = 0.1 }, j: B(q), nca: function(c) { this.sH[c.name] = c }, gTa: A("sH"), Hx: function(c) { return this.sH[c] } }); V.qv = V.Um.extend({ duration: 0, tweenEasing: 0, GH: 0, LB: s, ij: -1, zC: "", event: "", ZR: "", $R: "", blendFunc: 0, kj: 0, Cu: q, ctor: function() { V.Um.prototype.ctor.call(this); this.duration = 1; this.tweenEasing = V.bb.oj; this.GH = 0; this.LB = []; this.ij = 0; this.$R = this.ZR = this.event = this.zC = ""; this.blendFunc = new C.Vm(C.Ic, C.Hc); this.kj = 0; this.Cu = q }, copy: function(c) { V.Um.prototype.copy.call(this, c); this.duration = c.duration; this.tweenEasing = c.tweenEasing; this.ij = c.ij; this.zC = c.zC; this.event = c.event; this.ZR = c.ZR; this.$R = c.$R; this.blendFunc = c.blendFunc; this.Cu = c.Cu; this.GH = c.GH; this.LB = []; if (0 != this.GH) for (var d = 0; d < this.GH; d++) this.LB[d] = c.LB[d] } }); V.H6 = V.O.extend({ wm: 0, scale: 1, duration: 0, kh: s, name: "", ctor: function() { this.wm = 0; this.scale = 1; this.duration = 0; this.kh = []; this.name = "" }, j: function() { this.kh = [] }, QO: function(c) { this.kh.push(c) }, Zda: function(c) { return this.kh[c] } }); V.I6 = V.O.extend({ D1: s, duration: 0, scale: 1, wu: 0, qP: V.bb.oj, loop: q, tweenEasing: 2, name: "", ctor: function() { this.name = ""; this.duration = 0; this.scale = 1; this.qP = this.wu = 0; this.loop = q; this.tweenEasing = V.bb.oj; this.D1 = {} }, vca: function(c) { this.D1[c.name] = c }, t0: function(c) { return this.D1[c] } }); V.jS = V.O.extend({ JQ: s, AI: s, name: "", ctor: function() { this.JQ = {}; this.AI = [] }, uca: function(c) { this.JQ[c.name] = c; this.AI.push(c.name) }, cea: function(c) { return this.JQ[c] }, dea: function() { return Object.keys(this.JQ).length } }); function Bd(c, d) { this.x = c || 0; this.y = d || 0 } V.p5 = V.O.extend({ dv: s, ctor: function() { this.dv = [] }, j: function() { this.dv = []; return q }, kQa: function(c) { c = Bd(c.x, c.y); this.dv.push(c) } }); V.a8 = V.O.extend({ height: 0, width: 0, WQ: 0, XQ: 0, name: "", tx: s, ctor: function() { this.width = this.height = 0; this.XQ = this.WQ = 0.5; this.name = ""; this.tx = [] }, j: function() { this.tx = [] }, qca: function(c) { this.tx.push(c) }, BP: function(c) { return this.tx[c] } }); V.hK = V.O.extend({ jt: s, Kj: s, xF: s, ctor: function() { this.xF = this.Kj = this.jt = s }, j: B(q), eJ: x("jt"), fUa: A("jt"), jHa: x("Kj"), HTa: A("Kj"), TC: x("xF"), Am: A("xF"), rh: function() { zd(this.jt); this.jt = s; zd(this.xF); this.xF = s; zd(this.Kj); this.Kj = s } }); V.hK.create = function() { var c = new V.hK; return c && c.j() ? c: s }; V.Sg = V.Sg || V.O.extend({}); V.Sg.NZ = function(c, d, f) { switch (f.il) { case V.zs: this.Cwa(c, d, f); break; case V.HD: this.zwa(c, d, f); break; case V.Ly: this.owa(c, d, f) } }; V.Sg.Wxa = function(c, d) { switch (d.Am().il) { case V.zs: this.bda(c, d); break; case V.HD: this.ada(c, d); break; case V.Ly: this.Zca(c, d) } }; V.Sg.Vsa = { a: 1, b: 0, H: 0, P: 1, na: 0, oa: 0 }; V.Sg.DJa = function(c, d, f) { var g = c.aC(); if (g) { switch (c.q0()) { case V.zs: f && g.fja(); break; case V.HD: this.HJa(c, g, d); break; case V.Ly: this.BJa(g, d); break; default: d = c.uVa(), g.UGa(d) } if ((V.ID || V.mv) && f) if (g = c.Kd.en, f = g.Kj) { d = g.jt; var h = d.me(), g = this.Vsa; g.a = h.a; g.b = h.b; g.H = h.H; g.P = h.P; g.na = h.na; g.oa = h.oa; d = d.Ep(); d = C.wv(d, g); g.na = d.x; g.oa = d.y; c = C.Qg(g, c.Nc.me()); f.$h(c) } } }; V.Sg.Cwa = function(c, d, f) { var g = new V.sq; g.copy(f); d.TC(g); this.bda(c, d) }; V.Sg.bda = function(c, d) { var f = s, g = d.Am(), f = g.displayName, h = f.lastIndexOf("."); - 1 != h && (f = f.substring(0, h)); f = "" == f ? V.Do.create() : V.Do.cda(f + ".png"); d.eJ(f); f.E2(c); this.V0(c, d, g.displayName, f); (h = c.Nc) && (h.Gx().IB >= V.xs ? f.ss(g.skinData) : f.ss(c.Hx())) }; V.Sg.V0 = function(c, d, f, g) { var h = f.lastIndexOf("."); - 1 != h && (f = f.substring(0, h)); (f = V.Mr.ZBa(f)) && g.S(f.WQ, f.XQ); if ((V.ID || V.mv) && f && 0 < f.tx.length) c = V.$J.create(c), c.qwa(f.tx), d.jHa(c) }; V.Sg.owa = function(c, d, f) { var g = new V.vD; g.copy(f); d.TC(g); this.Zca(c, d) }; V.Sg.Zca = function(c, d) { var f = V.Bk.create(d.Am().displayName, c); d.eJ(f) }; V.Sg.BJa = function(c, d) { c && (c.ed(), c.update(d)) }; V.Sg.zwa = function(c, d, f) { var g = new V.DK; g.copy(f); d.TC(g); this.ada(c, d) }; V.Sg.ada = function(c, d) { var f = C.B.create(d.Am().displayName); f.Lm(); f.ze(); c.Nc && f.cq(c.Nc); d.eJ(f) }; V.Sg.HJa = function(c, d, f) { var g = new V.Um; V.Ij.Pfa(c.nu, g); d.p(g.x, g.y); d.gb(g.scaleX); d.pb(g.scaleY); d.update(f) }; V.XS = V.O.extend({ ag: s, en: s, Ne: s, Xo: -1, yM: t, hd: s, Ja: q, aM: s, ctor: function() { this.ag = []; this.Ne = this.en = s; this.Xo = -1; this.yM = t; this.hd = s; this.Ja = q; this.aM = V.gK }, j: function(c) { this.hd = c; this.Sea(c.Hx()); return q }, NZ: function(c, d) { var f = s; 0 <= d && d < this.ag.length ? f = this.ag[d] : (f = V.hK.create(), this.ag.push(f)); var g = s; if (c instanceof V.Do) { c.E2(this.hd); g = new V.sq; V.Sg.V0(this.hd, f, c.Wv, c); var h = f.Am(); if (h instanceof V.sq) c.ss(h.skinData), g.skinData = h.skinData; else for (h = this.ag.length - 2; 0 <= h; h--) { var k = this.ag[h].Am(); if (k instanceof V.sq) { c.ss(k.skinData); g.skinData = k.skinData; break } } } else c instanceof C.B ? (g = new V.DK, c.Lm(), c.ze(), (h = this.hd.Nc) && c.cq(h)) : c instanceof V.Bk ? (h = c, g = new V.vD, g.displayName = h.getName(), h.Tu(this.hd)) : g = new V.My; f.eJ(c); f.TC(g); d == this.Xo && (this.Xo = -1, this.Or(d, t)) }, UNa: function(c, d) { var f = s; if (d instanceof V.Do) { d.E2(this.hd); f = new V.sq; f.displayName = d.Wv; V.Sg.V0(this.hd, c, d.Wv, d); var g = c.Am(); if (g instanceof V.sq) d.ss(g.skinData); else { for (var g = t, h = this.ag.length - 2; 0 <= h; h--) { var k = this.ag[h].Am(); if (k) { g = q; d.ss(k.skinData); f.skinData = k.skinData; break } } g || d.ss(new V.Um); d.ss(new V.Um) } } else d instanceof C.B ? (f = new V.DK, f.displayName = d.CN) : d instanceof V.Bk ? (f = new V.vD, f.displayName = d.getName(), d.Tu(this.hd)) : f = new V.My; c.eJ(d); c.TC(f) }, Sga: function(c) { this.ag.splice(c, 1); c == this.Xo && this.xR(s) }, ZTa: A("ag"), Or: function(c, d) { if (c >= this.ag.length) C.log("the index value is out of range"); else if (this.yM = d, 0 > c) this.Xo = c, this.Ne && (this.Ne.Lm(q), this.xR(s), this.Ne = s); else if (this.Xo != c) { this.Xo = c; var f = this.ag[this.Xo]; f && this.xR(f) } }, Oca: function(c, d) { for (var f = 0; f < this.ag.length; f++) if (this.ag[f].Am().displayName == c) { this.Or(f, d); break } }, xR: function(c) { var d = this.en; (V.ID || V.mv) && d && d.Kj && d.Kj.setActive(t); d = this.en = c; (V.ID || V.mv) && d && d.Kj && d.Kj.setActive(q); c = d == s ? s: d.jt; this.Ne && (this.Ne instanceof V.Bk && this.hd.K2(s), this.Ne.Lm(q), this.Ne = s); (this.Ne = c) ? (c instanceof V.Bk ? this.hd.K2(c) : c instanceof C.B && c.Zga(), c.sb && (c.G(this.hd.xu()), c.K(this.hd.hb)), this.aM = this.en.Am().il) : this.aM = V.gK }, aC: A("Ne"), q0: A("aM"), QTa: A("Xo"), PTa: A("en"), YTa: function(c) { return this.ag[c] }, Sea: function(c) { this.ag = []; if (c) { c = c.oP; for (var d = 0; d < c.length; d++) { var f = c[d], g = V.hK.create(); g.TC(f); V.Sg.Wxa(this.hd, g); this.ag.push(g) } } }, Pxa: function(c, d) { var f = C.d(0, 0); d === m ? (f.x = c.x, f.y = c.y) : (f.x = c, f.y = d); if (!this.Ja || 0 > this.Xo) return t; var g = t; switch (this.en.Am().il) { case V.zs: var g = C.d(0, 0), h = this.en.jt, h = h.lj(0), g = V.woa(h, f, g) } return g }, va: function(c) { this.Ne && (this.Ja = c, this.Ne.va(c)) }, l1: A("Ja"), i: function() { return ! this.Ne ? C.size(0, 0) : this.Ne.i() }, Ae: function() { return ! this.Ne ? C.rect(0, 0, 0, 0) : this.Ne.Ae() }, dk: function() { return ! this.Ne ? C.d(0, 0) : this.Ne.dk() }, Ep: function() { return ! this.Ne ? C.d(0, 0) : this.Ne.Ep() }, HUa: A("yM"), rh: function() { this.ag = []; this.Ne && (this.Ne.Lm(q), this.Ne = s) } }); V.XS.create = function(c) { var d = new V.XS; return d && d.j(c) ? d: s }; V.Do = V.u.extend({ QY: s, ej: s, RY: s, Wv: "", Nc: s, qa: "Skin", ctor: function() { C.u.prototype.ctor.call(this); this.ej = this.QY = s; this.Wv = ""; this.RY = { a: 1, b: 0, H: 0, P: 1, na: 0, oa: 0 }; this.Nc = s }, pl: function(c) { var d = C.u.prototype.pl.call(this, c); this.Wv = c; return d }, Ce: function(c) { var d = C.u.prototype.Ce.call(this, c); this.Wv = c; return d }, ss: function(c) { this.QY = c; this.gb(c.scaleX); this.pb(c.scaleY); this.i3(C.LC(c.skewX)); this.j3(C.LC( - c.skewY)); this.p(c.x, c.y); c = this.me(); var d = this.RY; d.a = c.a; d.b = c.b; d.H = c.H; d.P = c.P; d.na = c.na; d.oa = c.oa; this.fja() }, PBa: A("QY"), E2: x("ej"), Kda: A("ej"), fja: function() { var c = this.Lf = C.Qg(this.RY, this.ej.nu), d = this.Nc; d && d.XB() && (this.Lf = C.Qg(c, d.me())); C.L === C.cb && (c = this.Lf, c.b *= -1, c.H *= -1, c.b = [c.H, c.H = c.b][0]) }, Ae: function() { var c = C.rect(0, 0, this.o.width, this.o.height), d = this.me(); C.L === C.cb && (d.b *= -1, d.H *= -1, d.b = [d.H, d.H = d.b][0]); return C.Gi(c, d) }, uAa: A("Wv"), ql: function() { return C.Qg(this.Lf, this.ej.Nc.ql()) }, j0a: function() { var c = this.Lf, d = this.Nb, d = C.wv(d, c); c.na = d.x; c.oa = d.y; return C.Qg(c, this.ej.Nc.ql()) } }); V.Do.prototype.me = C.A.prototype.nN; H = V.Do.prototype; C.e(H, "skinData", H.PBa, H.ss); C.e(H, "displayName", H.uAa); H = s; V.Do.create = function(c, d) { var f = arguments.length, g = new V.Do; if (0 === f) { if (g.j()) return g } else if (g && g.Ce(c, d)) return g; return s }; V.Do.cda = function(c) { var d = new V.Do; return d && d.pl(c) ? d: s }; V.NJ = -4; V.rD = -3; V.sD = -2; V.h4 = -1; V.gS = 0; V.zja = 1; V.qD = 2; V.Ek = V.O.extend({ np: 1, $l: q, yt: q, am: t, Pk: 0, zn: 0, Xk: 0, zO: 0, VO: s, Yg: 0, Qj: 0, dh: 0, Lz: s, qta: t, ctor: function() { this.np = 1; this.yt = this.$l = q; this.am = t; this.zn = this.Qj = this.Pk = this.Yg = 0; this.Xk = V.zja; this.zO = V.bb.oj; this.VO = 1 / 60; this.Qj = this.Lz = 0; this.qta = t }, pause: function() { this.yt = q; this.am = t }, nk: function() { this.yt = t; this.am = q }, stop: function() { this.$l = q; this.am = t }, play: function(c, d) { this.yt = this.$l = t; this.am = q; this.Yg = 0; this.dh = c; this.zO = d }, update: function(c) { if (this.$l || this.yt || 0 >= this.zn) return t; var d = this.dh, f = this.Yg; 0 >= d ? (this.Pk = 1, f = 0) : (f += this.np * (c / this.VO), this.Pk = f / d, f = V.QB(f, d)); this.Yg = f; this.X3(); return q }, X3: u(), Hea: function(c) { var d = this.Xk; d == V.rD ? d = V.qD: d == V.sD && (d = V.gS); this.Xk = d; this.Lz = c; this.dh = this.Qj }, nAa: function() { return this.Lz = (this.zn - 1) * this.Pk }, xDa: A("yt"), qDa: A("$l"), oAa: A("Pk"), DBa: A("zn"), bea: A("Xk"), iCa: A("zO"), MSa: A("VO"), n3a: x("VO"), eWa: A("np"), GR: x("np"), ifa: A("am") }); H = V.Ek.prototype; C.e(H, "currentFrameIndex", H.nAa); C.e(H, "paused", H.xDa); C.e(H, "completed", H.qDa); C.e(H, "currentPercent", H.oAa); C.e(H, "rawDuration", H.DBa); C.e(H, "loop", H.bea); C.e(H, "tweenEasing", H.iCa); C.e(H, "playing", H.ifa); H = s; V.xK = { start: 0, complete: 1, oEa: 2 }; V.m4 = V.O.extend({ e9: s, $s: s, km: s, ctor: function(c, d, f) { this.Ih = f; this.$s = d; this.km = c }, call: function() { this.$s && this.$s.apply(this.km, this.e9) }, jha: x("e9") }); function Cd() { this.armature = s; this.Tfa = this.Ufa = "" } function Dd() { this.ej = s; this.Hda = ""; this.currentFrameIndex = this.fga = 0 } V.PJ = V.Ek.extend({ qu: s, er: s, Nc: s, sw: "", oua: 0, vp: 0, aj: s, cA: s, CA: s, Yt: 1, Ur: t, yW: s, yX: s, userObject: s, gr: s, xw: t, kN: t, dp: 0, ctor: function() { V.Ek.prototype.ctor.call(this); this.er = this.qu = s; this.sw = ""; this.Nc = s; this.vp = this.oua = 0; this.aj = []; this.CA = this.cA = s; this.Yt = 1; this.Ur = t; this.yW = []; this.yX = []; this.userObject = s; this.gr = []; this.kN = this.xw = t; this.dp = 0 }, j: function(c) { this.Nc = c; this.aj = []; return q }, pause: function() { for (var c = 0; c < this.aj.length; c++) this.aj[c].pause(); V.Ek.prototype.pause.call(this) }, nk: function() { for (var c = 0; c < this.aj.length; c++) this.aj[c].nk(); V.Ek.prototype.nk.call(this) }, stop: function() { for (var c = 0; c < this.aj.length; c++) this.aj[c].stop(); this.aj = []; V.Ek.prototype.stop.call(this) }, sia: function(c) { if (c != this.Yt) { this.Yt = c; this.np = !this.er ? this.Yt: this.Yt * this.er.scale; c = this.Nc.Fh; for (var d in c) { var f = c[d]; f.lu.GR(this.np); f.Tl && f.Tl.ll().GR(this.np) } } }, SBa: A("Yt"), Zza: A("Yt"), YGa: function(c) { return this.sia(c) }, play: function(c, d, f) { if (this.qu == s) C.log("this.animationData can not be null"); else if (this.er = this.qu.cea(c), this.er == s) C.log("this._movementData can not be null"); else { d === m && (d = -1); f === m && (f = -1); var g = this.er; this.zn = g.duration; this.sw = c; this.np = this.Yt * g.scale; d = -1 == d ? g.wu: d; c = g.qP; c = 0 == c ? this.zn: c; var h = g.tweenEasing; f = 0 > f ? g.loop: Boolean(f); this.xw = t; V.Ek.prototype.play.call(this, d, h); 0 == this.zn ? this.Xk = V.NJ: (this.Xk = f ? V.sD: V.rD, this.Qj = c); this.aj = []; var k, n = this.Nc.Fh, p; for (p in n) { var r = n[p]; k = g.t0(r.getName()); var v = r.lu; k && 0 < k.kh.length ? (this.aj.push(v), k.duration = g.duration, v.play(k, d, c, f, h), v.GR(this.np), r.Tl && r.Tl.ll().GR(this.np)) : r.YP || (r.Kd.Or( - 1, t), v.stop()) } this.Nc.update(0) } }, h1a: function(c, d, f) { this.gr = []; this.kN = f; this.xw = q; for (f = this.dp = 0; f < c.length; f++) this.gr.push({ name: c[f], wu: d }); this.Y3() }, Y3: function() { if (this.xw) { if (this.kN) { var c = this.gr[this.dp]; this.play(c.name, c.wu, -1, 0); this.dp++; this.dp >= this.gr.length && (this.dp = 0) } else this.dp < this.gr.length ? (c = this.gr[this.dp], this.play(c.name, c.wu, -1, 0), this.dp++) : this.xw = t; this.xw = q } }, QP: function(c) { if (!this.er || 0 > c || c >= this.er.duration) C.log("Please ensure you have played a movement, and the frameIndex is in the range."); else { var d = this.Ur; this.am = this.Ur = q; this.$l = this.yt = t; V.Ek.prototype.Hea.call(this, c); this.Pk = this.Lz / (this.er.duration - 1); this.Yg = this.dh * this.Pk; for (var f = 0; f < this.aj.length; f++) this.aj[f].QP(c); this.Nc.update(0); this.Ur = d } }, xCa: function(c) { this.QP(c); this.pause() }, IFa: function(c, d, f, g) { "undefined" == typeof d && (d = -1); "undefined" == typeof g && (g = -1); f = this.qu.AI; - 1 > c || c >= f.length || this.play(f[c], d, g, 0) }, f1a: function(c, d, f, g, h) { C.log("playByIndex is deprecated. Use playWithIndex instead."); this.IFa(c, d, f, g, h) }, g1a: function(c, d, f) { this.gr = []; this.kN = f; this.xw = q; this.dp = 0; f = this.qu.AI; for (var g = 0; g < c.length; g++) this.gr.push({ name: f[c[g]], wu: d }); this.Y3() }, dea: function() { return this.qu.dea() }, update: function(c) { if (V.Ek.prototype.update.call(this, c)) for (var d = 0; d < this.aj.length; d++) this.aj[d].update(c); for (c = this.yW; 0 < c.length;) d = c.shift(), this.Ur = q, this.yxa([d.ej, d.Hda, d.fga, d.currentFrameIndex]), this.Ur = t; for (c = this.yX; 0 < c.length;) d = c.shift(), this.zxa([d.armature, d.Ufa, d.Tfa]) }, X3: function() { var c = this.Pk; if (1 <= c) { switch (this.Xk) { case V.rD: if (this.Xk = V.qD, this.Yg = (c - 1) * this.dh, c = this.Yg / this.Qj, 1 > c) { this.dh = this.Qj; this.KQ(this.Nc, V.xK.start, this.sw); break } case V.qD: case V.NJ: c = 1; this.$l = q; this.am = t; this.KQ(this.Nc, V.xK.complete, this.sw); this.Y3(); break; case V.sD: this.Xk = V.gS; c = V.QB(c, 1); this.Yg = 0 == this.dh ? 0 : V.QB(this.Yg, this.dh); this.dh = 0 < this.Qj ? this.Qj: 1; this.KQ(this, V.xK.start, this.sw); break; default: this.Yg = V.QB(this.Yg, this.dh), this.vp = 0, this.KQ(this.Nc, V.xK.oEa, this.sw) } this.Pk = c } }, STa: function() { return this.$l ? "": this.sw }, MHa: function(c, d) { this.CA = new V.m4(d, c) }, zxa: function(c) { this.CA && (this.CA.jha(c), this.CA.call()) }, d4a: function(c, d) { this.cA = new V.m4(d, c) }, yxa: function(c) { this.cA && (this.cA.jha(c), this.cA.call()) }, KQ: function(c, d, f) { if (this.CA) { var g = new Cd; g.armature = c; g.Ufa = d; g.Tfa = f; this.yX.push(g) } }, Rza: function(c, d, f, g) { if (this.cA) { var h = new Dd; h.ej = c; h.Hda = d; h.fga = f; h.currentFrameIndex = g; this.yW.push(h) } }, gha: x("qu"), Jda: A("qu"), xIa: x("userObject"), lCa: A("userObject"), sYa: A("Ur"), m4a: x("Ur") }); H = V.PJ.prototype; C.e(H, "speedScale", H.SBa, H.sia); C.e(H, "animationScale", H.Zza, H.YGa); H = s; V.PJ.create = function(c) { var d = new V.PJ; return d && d.j(c) ? d: s }; V.DU = V.Ek.extend({ Fd: s, Jf: s, Qc: s, Cq: s, Ri: s, hd: s, dA: 0, Mv: 0, $w: 0, vp: 0, Sq: 0, td: s, LA: t, ctor: function() { V.Ek.prototype.ctor.call(this); this.Ri = this.hd = this.Cq = this.Qc = this.Jf = this.Fd = s; this.dA = V.bb.oj; this.Sq = this.vp = 0; this.td = s; this.LA = t }, j: function(c) { this.Qc = new V.qv; this.Cq = new V.qv; this.hd = c; this.Fd = this.hd.Fd; this.Fd.ij = -1; if (c = c.Nc) this.td = c.ll(); return q }, play: function(c, d, f, g, h) { V.Ek.prototype.play.call(this, d, h); this.Xk = g ? V.sD: V.rD; this.Sq = this.vp = this.Mv = this.$w = 0; h = c != this.Ri; this.Ri = c; this.zn = this.Ri.duration; c = this.Ri.Zda(0); this.Fd.ij = c.ij; this.hd.Nc.Gx().IB >= V.xs && (V.Ij.vEa(this.Fd, this.hd.Hx()), this.Fd.scaleX += 1, this.Fd.scaleY += 1); 0 == this.zn || 1 == this.Ri.kh.length ? (this.Xk = V.NJ, 0 == d ? this.Ou(c, c) : this.Ou(this.Fd, c), this.dA = V.bb.oj) : 1 < this.Ri.kh.length && (this.Qj = f * this.Ri.scale, g && 0 != this.Ri.wm ? this.Ou(this.Fd, this.S3(this.hja(1 - this.Ri.wm), this.Cq)) : !h || 0 == d ? this.Ou(c, c) : this.Ou(this.Fd, c)); this.S3(0) }, QP: function(c) { V.Ek.prototype.Hea.call(this, c); this.Sq = this.vp = this.Mv = this.$w = 0; this.am = q; this.$l = this.yt = t; this.Pk = this.Lz / (this.zn - 1); this.Yg = this.dh * this.Pk }, xCa: function(c) { this.QP(c); this.pause() }, X3: function() { var c = this.Pk, d = this.Xk; if (1 <= c) switch (d) { case V.NJ: c = 1; this.$l = q; this.am = t; break; case V.rD: d = V.qD; c = 0 >= this.Qj ? 1 : (c - 1) * this.dh / this.Qj; 1 <= c ? (c = 1, this.$l = q, this.am = t) : (this.dh = this.Qj, this.Yg = c * this.dh, this.Sq = this.vp = this.Mv = this.$w = 0); break; case V.sD: d = V.gS; this.dh = 0 < this.Qj ? this.Qj: 1; 0 != this.Ri.wm ? (this.Yg = (1 - this.Ri.wm) * this.dh, c = this.Yg / this.dh) : this.Yg = c = 0; this.Sq = this.vp = this.Mv = this.$w = 0; break; case V.qD: c = 1; this.$l = q; this.am = t; break; default: this.Yg = V.QB(this.Yg, this.dh), this.Mv = this.$w = 0 } 1 > c && d < V.h4 && (c = Math.sin(c * C.PI / 2)); this.Pk = c; this.Xk = d; d > V.h4 && (c = this.hja(c)); this.dA != V.bb.bja && this.S3(c) }, Ou: function(c, d, f) { "undefined" == typeof f && (f = q); 0 > c.ij && 0 <= d.ij ? (this.Qc.copy(d), this.Cq.J3(d, d, f)) : 0 > d.ij && 0 <= c.ij ? (this.Qc.copy(c), this.Cq.J3(d, d, f)) : (this.Qc.copy(c), this.Cq.J3(c, d, f)); c.Cu || (this.Fd.copy(c), this.Fd.Cu = q); this.Zwa(c) }, Zwa: function(c) { if (c) { var d = this.hd, f = c.ij, g = d.Kd; g.yM || (g.Or(f, t), (f = g.aC()) && f.Yd(c.blendFunc)); this.Fd.Tm = c.Tm; d.OJa(); (d = d.Tl) && "" != c.zC && d.ll().play(c.zC) } }, S3: function(c, d) { d || (d = this.Fd); var f = this.Qc, g = this.Cq; f.Cu || (c = 0); d.x = f.x + c * g.x; d.y = f.y + c * g.y; d.scaleX = f.scaleX + c * g.scaleX; d.scaleY = f.scaleY + c * g.scaleY; d.skewX = f.skewX + c * g.skewX; d.skewY = f.skewY + c * g.skewY; this.hd.tIa(q); d && g.$n && this.qJa(c, d); return d }, qJa: function(c, d) { var f = this.Qc, g = this.Cq; d.a = f.a + c * g.a; d.r = f.r + c * g.r; d.g = f.g + c * g.g; d.b = f.b + c * g.b; this.hd.ro() }, hja: function(c) { 1 < c && 0 != this.Ri.wm && (c = V.QB(c, 1)); var d = (this.zn - 1) * c, f, g, h = this.$w, k = this.Mv, n = this.vp; if (d < h || d >= h + k) { var k = this.Ri.kh.length, p = this.Ri.kh; if (d < p[0].kj) return f = g = p[0], this.Ou(f, g), c; if (d >= p[k - 1].kj) { if (this.LA) return f = g = p[k - 1], this.Ou(f, g), c; this.LA = q } else this.LA = t; do if (this.Sq = n, f = p[this.Sq], h = f.kj, n = this.Sq + 1, n >= k && (n = 0), g = p[n], f.event && !this.td.Ur && this.td.Rza(this.hd, f.event, f.kj, d), d == f.kj || this.LA && this.Sq == k - 1) break; while (d < f.kj || d >= g.kj); k = g.kj - f.kj; this.dA = f.tweenEasing; this.Ou(f, g, t); this.$w = h; this.Mv = k; this.vp = n } c = 0 == k ? 0 : (d - h) / k; d = this.dA != V.bb.oj ? this.dA: this.zO; d != V.bb.bja && (d != V.bb.oj && !this.LA) && (c = V.jc.rJa(c, d, this.Qc.LB)); return c }, gy: x("td"), ll: A("td"), rh: function() { this.Cq = this.Qc = s } }); V.DU.create = function(c) { var d = new V.DU; return d && d.j(c) ? d: s }; V.RMa = 32; V.m5 = V.O.extend({ w9: 0, V$: 0, ctor: function(c, d) { this.w9 = c || 0; this.V$ = d || 0 }, oja: function(c) { c.ZQa = this.w9; c.group = this.V$ } }); V.xla = V.O.extend({ shape: s, D_: s, colliderFilter: s, dF: s, ctor: function(c) { this.shape = s; this.D_ = c; this.colliderFilter = new V.m5; V.mv && (this.dF = []) }, BP: A("D_"), L3a: x("D_"), zWa: A("shape"), lIa: x("shape"), Jx: A("colliderFilter"), ps: x("colliderFilter"), sTa: A("dF") }); V.$J = V.O.extend({ hi: s, hd: s, ei: s, Wg: t, uM: s, ctor: function() { this.hi = []; this.ei = this.hd = s; this.Wg = t; this.uM = s }, j: function(c) { this.hi = []; c && (this.hd = c); this.uM = new V.m5; return q }, qca: function(c) { var d = new V.xla(c); this.hi.push(d); if (V.mv) { d = d.dF; c = c.dv; for (var f = 0; f < c.length; f++) d.push(new Bd(0, 0)) } }, qwa: function(c) { for (var d = 0; d < c.length; d++) this.qca(c[d]) }, f2a: function(c) { for (var d = this.hi, f = 0; f < d.length; f++) if (d[f].BP() == c) { d.splice(f, 1); break } }, mk: function() { this.hi = [] }, ps: function(c) { this.uM = c; for (var d = 0; d < this.hi.length; d++) { var f = this.hi[d]; f.ps(c); V.ID && f.shape && f.Jx().oja(f.shape) } }, Jx: A("uM"), setActive: function(c) { if (this.Wg != c) { this.Wg = c; c = this.ei; var d; if (c) if (d = s, this.Wg) for (var f = 0; f < this.hi.length; f++) d = this.hi[f], d = d.shape, c.D3.Awa(d); else for (f = 0; f < this.hi.length; f++) d = this.hi[f], d = d.shape, c.D3.o2a(d) } }, Yza: A("Wg"), n0: A("hi"), ECa: C.d(0, 0), $h: function(c) { if (this.Wg) for (var d = s, f = this.ei, g = this.ECa, h = 0; h < this.hi.length; h++) { var d = this.hi[h], k = d.BP(), n = s; f && (n = d.shape); for (var k = k.dv, p = d.dF, d = 0; d < k.length; d++) if (g.x = k[d].x, g.y = k[d].y, g = C.wv(g, c), n && (n.wg[2 * d] = g.x, n.wg[2 * d + 1] = g.y), V.mv) { var r = C.d(0, 0); r.x = g.x; r.y = g.y; p[d] = r } if (n) for (d = 0; d < k.length; d++) p = cp.ea.normalize(cp.ea.d1a(cp.ea.sub(n.wg[(d + 1) % n.wg.length], n.wg[d]))), n.ixa[d].ds = p, n.ixa[d].P = cp.ea.KRa(p, n.wg[d]) } }, k0: A("ei"), uR: function(c) { this.ei = c; for (var d = 0; d < this.hi.length; d++) { c = this.hi[d]; for (var f = [], g = c.BP().dv, d = 0; d < g.length; d++) { var h = g[d]; f.push(h.x); f.push(h.y) } f = new cp.UMa(this.ei, f, cp.R6a); f.i3a = q; f.data = this.hd; this.Wg && this.ei.D3.Awa(f); c.lIa(f); c.Jx().oja(f) } } }); H = V.$J.prototype; C.e(H, "colliderFilter", H.Jx, H.ps); C.e(H, "active", H.Yza, H.setActive); C.e(H, "body", H.k0, H.uR); H = s; V.$J.create = function(c) { var d = new V.$J; return d && d.j(c) ? d: s }; V.Bk = V.ha.extend({ td: s, ru: s, batchNode: s, name: "", Sva: s, zN: s, Fh: s, gu: s, Rqa: s, gp: s, version: 0, kz: q, ei: s, nO: s, C: s, qa: "Armature", ctor: function(c, d) { C.ha.prototype.ctor.call(this); this.batchNode = this.ru = this.td = s; this.name = ""; this.gu = this.Fh = this.zN = this.Sva = s; this.Rqa = {}; this.gp = C.d(0, 0); this.version = 0; this.kz = q; this.C = this.nO = this.ei = s; d && V.Bk.prototype.j.call(this, c, d) }, j: function(c, d) { C.ha.prototype.j.call(this); d && (this.zN = d); this.xf(); this.td = new V.PJ; this.td.j(this); this.Fh = {}; this.gu = []; this.nO = {}; this.C = { src: C.Ic, ga: C.Hc }; this.name = !c ? "": c; var f = V.Mr; if ("" != c) { var g = f.Jda(c); if (!g) return C.log("AnimationData not exist! "), t; this.td.gha(g); this.ru = f = f.Gx(c); var f = f.sH, h; for (h in f) { var f = this.$ca(String(h)), k = g.cea(g.AI[0]); if (k && (k = k.t0(f.getName())) && !(0 >= k.kh.length)) if (k = k.Zda(0)) f.Fd.copy(k), f.Or(k.ij, t) } this.update(0); this.GJa() } else this.name = "new_armature", this.ru = new V.kS, this.ru.name = this.name, g = new V.jS, g.name = this.name, f.LZ(this.name, this.ru), f.KZ(this.name, g), this.td.gha(g); C.L === C.la && this.mJ(C.ug.Xd(C.LK)); this.Qu(q); this.Pu(q); return q }, Z: function() { C.ha.prototype.Z.call(this); this.Lu() }, Na: function() { C.ha.prototype.Na.call(this); this.hD() }, $ca: function(c) { var d = this.Kda(c); if (d) return d; var d = this.ru.Hx(c), f = d.RI, g = s; "" != f ? (this.$ca(f), g = V.ws.create(c), this.mca(g, f)) : (g = V.ws.create(c), this.mca(g, "")); g.lha(d); g.Kd.Or( - 1, t); return g }, mca: function(c, d) { if (c) if (this.Fh[c.getName()]) C.log("bone already added. It can't be added again"); else { if (d) { var f = this.Fh[d]; f ? f.oca(c) : this.gu.push(c) } else this.gu.push(c); c.nR(this); this.Fh[c.getName()] = c; this.q(c) } else C.log("Argument must be non-nil") }, c2a: function(c, d) { c ? (c.nR(s), c.Lm(d), C.Id(this.gu, c), delete this.Fh[c.getName()], this.removeChild(c, q)) : C.log("bone must be added to the bone dictionary!") }, Kda: function(c) { return this.Fh[c] }, NQa: function(c, d) { if (c) { var f = c.HP(); f && (C.Id(f.Mk, c), c.Tu(s)); d && ((f = this.Fh[d]) ? (f.oca(c), C.Id(this.gu, c)) : this.gu.push(c)) } else C.log("bone must be added to the bone dictionary!") }, hTa: A("Fh"), GJa: function() { var c = this.i_(); this.Ca(c); var d = this.gp; d.x = -c.x; d.y = -c.y; 0 != c.width && 0 != c.height && this.S(d.x / c.width, d.y / c.height) }, update: function(c) { this.td.update(c); for (var d = this.gu, f = 0; f < d.length; f++) d[f].update(c); this.kz = t }, me: s, nN: function() { if (this.el) { this.kz = q; var c = this.ma.x, d = this.ma.y, f = this.Nb.x, g = -f, h = this.Nb.y, k = -h, n = this.ia, p = this.pa; this.nn && (c += f, d += h); var r = 1, v = 0, y = 1, z = 0; if (0 !== this.Xi || 0 !== this.im) r = Math.cos( - this.Dn), v = Math.sin( - this.Dn), y = Math.cos( - this.Mw), z = Math.sin( - this.Mw); var c = c + (y * this.gp.x * this.ia + -v * this.gp.y * this.pa), d = d + (z * this.gp.x * this.ia + r * this.gp.y * this.pa), D = this.ig || this.jg; if (!D && (0 !== f || 0 !== h)) c += y * g * n + -v * k * p, d += z * g * n + r * k * p; c = { a: y * n, b: z * n, H: -v * p, P: r * p, na: c, oa: d }; if (D && (c = C.Qg({ a: 1, b: Math.tan(C.ng(this.jg)), H: Math.tan(C.ng(this.ig)), P: 1, na: 0, oa: 0 }, c), 0 !== f || 0 !== h)) c = C.OJ(c, g, k); this.yq && (c = C.Qg(c, this.iz), this.yq = t); this.Lf = c; this.el = t } return this.Lf }, Ita: function() { this.Lf || (this.Lf = { a: 1, b: 0, H: 0, P: 1, na: 0, oa: 0 }); if (this.el) { this.kz = q; var c = this.Lf; c.na = this.ma.x; c.oa = this.ma.y; var d = 1, f = 0; this.Xi && (d = Math.cos( - this.Dn), f = Math.sin( - this.Dn)); c.a = c.P = d; c.H = -f; c.b = f; var g = this.ia, h = this.pa, k = this.Nb.x, n = this.Nb.y, p = 1E-6 > g && -1E-6 < g ? 1E-6: g, r = 1E-6 > h && -1E-6 < h ? 1E-6: h; c.na += d * this.gp.x * g + -f * this.gp.y * h; c.oa += f * this.gp.x * g + d * this.gp.y * h; if (this.ig || this.jg) { var v = Math.tan( - this.ig * Math.PI / 180), y = Math.tan( - this.jg * Math.PI / 180), z = n * v * p, D = k * y * r; c.a = d + -f * y; c.H = d * v + -f; c.b = f + d * y; c.P = f * v + d; c.na += d * z + -f * D; c.oa += f * z + d * D } if (1 !== g || 1 !== h) c.a *= p, c.b *= p, c.H *= r, c.P *= r; c.na += d * -k * p + -f * -n * r; c.oa += f * -k * p + d * -n * r; this.nn && (c.na += k, c.oa += n); this.yq && (this.Lf = C.Qg(this.Lf, this.iz), this.yq = t); c.na |= 0; c.oa |= 0; this.el = t } return this.Lf }, ka: u(), Yd: x("C"), ek: A("C"), i_: function() { for (var c = 0, d = 0, f = 0, g = 0, h = q, g = C.rect(0, 0, 0, 0), k = 0; k < this.l.length; k++) if (c = this.l[k], c instanceof V.ws) { var n = c.Kd.Ae(); h ? (c = C.io(n), d = C.jo(n), f = C.Xp(n), g = C.Yp(n), h = t) : (c = C.io(n) < C.io(g) ? C.io(n) : C.io(g), d = C.jo(n) < C.jo(g) ? C.jo(n) : C.jo(g), f = C.Xp(n) > C.Xp(g) ? C.Xp(n) : C.Xp(g), g = C.Yp(n) > C.Yp(g) ? C.Yp(n) : C.Yp(g)); g = C.rect(c, d, f - c, g - d) } return C.Gi(g, this.me()) }, fTa: function(c, d) { for (var f = this.l.length - 1; 0 <= f; f--) { var g = this.l[f]; if (g instanceof V.ws && g.Kd.Pxa(c, d)) return g } return s }, $Ba: B(s), Tu: function(c) { this.zN = c; for (var d in this.Fh) this.Fh[d].nR(this) }, ps: function(c) { for (var d in this.Fh) this.Fh[d].ps(c) }, NRa: function() { C.Df.tj(255, 255, 255, 255); C.Df.Su(1); for (var c in this.Fh) for (var d = this.Fh[c].n0(), f = 0; f < d.length; f++) { var g = d[f].dF; C.Df.Of(g, g.length, q) } }, HP: A("zN"), ll: A("td"), gy: x("td"), Gx: A("ru"), q3a: x("ru"), getName: A("name"), Ze: x("name"), XB: A("batchNode"), os: x("batchNode"), rXa: A("version"), setVersion: x("version"), SSa: A("kz"), k0: A("ei"), uR: function(c) { if (this.ei != c) { this.ei = c; this.ei.data = this; var d, f; for (c = 0; c < this.l.length; c++) if (d = this.l[c], d instanceof V.ws) { d = d.Kd.ag; for (var g = 0; g < d.length; g++) f = d[g], (f = f.Kj) && f.uR(this.ei) } } }, AWa: function() { return this.ei ? this.ei.O5a: [] } }); V.Bk.prototype.me = C.L == C.la ? V.Bk.prototype.nN: V.Bk.prototype.Ita; H = V.Bk.prototype; C.e(H, "parentBone", H.HP, H.Tu); C.e(H, "body", H.k0, H.uR); C.e(H, "colliderFilter", s, H.ps); H = s; V.Bk.create = function(c, d) { var f = new V.Bk; return f && f.j(c, d) ? f: s }; V.ws = V.ha.extend({ Dq: s, Nc: s, Tl: s, Kd: s, YP: t, lu: s, Fd: s, name: "", Mk: s, parentBone: s, um: t, nu: s, C: 0, aP: t, MO: s, fV: s, F9: 0, qa: "Bone", ctor: function() { C.ha.prototype.ctor.call(this); this.Kd = this.Tl = this.Nc = this.Dq = s; this.YP = t; this.Fd = this.lu = s; this.name = ""; this.Mk = []; this.parentBone = s; this.um = q; this.nu = { a: 1, b: 0, H: 0, P: 1, na: 0, oa: 0 }; this.C = new C.Vm(C.Ic, C.Hc); this.aP = t }, rh: function() { zd(this.Fd); for (var c = 0; c < this.Mk.length; c++) zd(this.Mk[c]); this.Mk = []; zd(this.lu); zd(this.Kd); zd(this.Dq); zd(this.Tl) }, j: function(c) { C.ha.prototype.j.call(this); c && (this.name = c); this.Fd = new V.qv; this.lu = new V.DU; this.lu.j(this); this.Kd = new V.XS; this.Kd.j(this); this.MO = new V.Um; this.Dq = new V.Um; return q }, lha: function(c) { c ? (this.Dq = c, this.name = this.Dq.name, this.ul(this.Dq.Tm), this.Kd.Sea(c)) : C.log("boneData must not be null") }, Hx: A("Dq"), nR: function(c) { (this.Nc = c) ? (this.lu.gy(this.Nc.ll()), this.F9 = this.Nc.Gx().IB, this.fV = this.Nc.HP()) : this.fV = s }, $za: A("Nc"), update: function(c) { var d = this.parentBone, f = this.Nc, g = this.Fd, h = this.nu, k = this.MO, n = this.fV; d && (this.um = this.um || d.um); n && !this.um && (this.um = n.um); this.um && (this.F9 >= V.xs && (d = this.Dq, g.x += d.x, g.y += d.y, g.skewX += d.skewX, g.skewY += d.skewY, g.scaleX += d.scaleX, g.scaleY += d.scaleY, g.scaleX -= 1, g.scaleY -= 1), k.x = g.x + this.ma.x, k.y = g.y + this.ma.y, k.scaleX = g.scaleX * this.ia, k.scaleY = g.scaleY * this.pa, k.skewX = g.skewX + this.ig + this.Xi, k.skewY = g.skewY + this.jg - this.im, this.parentBone ? this.Cca(this.parentBone) : n && this.Cca(n), V.Ij.F1(k, h), n && (this.nu = C.Qg(h, f.me()))); V.Sg.DJa(this, c, this.um || f.kz); f = this.Mk; for (g = 0; g < f.length; g++) f[g].update(c); this.um = t }, Cca: function(c) { var d = this.MO, f = c.nu; c = c.MO; var g = d.x, h = d.y; d.x = g * f.a + h * f.H + c.x; d.y = g * f.b + h * f.P + c.y; d.scaleX *= c.scaleX; d.scaleY *= c.scaleY; d.skewX += c.skewX; d.skewY += c.skewY }, J: function(c) { if (this.Ja) { var d = this.Kd.aC(); d && d.J(c) } }, Tb: function(c) { this.od = C.color(255, 255, 255); C.ha.prototype.Tb.call(this, c); this.ro() }, dc: function(c) { this.Ig = 255; C.ha.prototype.dc.call(this, c); this.ro() }, G: function(c) { C.ha.prototype.G.call(this, c); this.ro() }, K: function(c) { C.ha.prototype.K.call(this, c); this.ro() }, ro: function() { var c = this.Kd.aC(); if (c && c.sb) { var d = this.wb, f = this.Fd, g = this.hb * f.a / 255, d = C.color(d.r * f.r / 255, d.g * f.g / 255, d.b * f.b / 255); c.K(g); c.G(d) } }, OJa: function() { this.Nc.Gx().IB >= V.xs ? this.ul(this.Fd.Tm + this.Dq.Tm) : this.ul(this.Fd.Tm) }, oca: function(c) { c ? c.parentBone ? C.log("child already added. It can't be added again") : 0 > this.Mk.indexOf(c) && (this.Mk.push(c), c.Tu(this)) : C.log("Argument must be non-nil") }, Rga: function(c, d) { for (var f = 0; f < this.Mk.length; f++) if (this.Mk[f] == c) { if (d) for (var g = c.Mk, h = 0; h < g.length; h++) c.Rga(g[h], d); c.Tu(s); c.Kd.xR(s); C.Id(this.Mk, c) } }, Lm: function(c) { this.parentBone && this.parentBone.Rga(this, c) }, Tu: x("parentBone"), HP: A("parentBone"), K2: function(c) { this.Tl != c && (c == s && this.Tl && this.Tl.Tu(s), this.Tl = c) }, hAa: A("Tl"), iAa: A("Mk"), gCa: A("lu"), ul: function(c) { this.MPa != c && C.A.prototype.ul.call(this, c) }, tIa: x("um"), QYa: A("um"), i0a: A("nu"), ql: function() { return C.Qg(this.nu, this.Nc.ql()) }, aC: function() { return this.Kd.aC() }, q0: function() { return this.Kd.q0() }, NZ: function(c, d) { return this.Kd.NZ(c, d || 0) }, Sga: function(c) { this.Kd.Sga(c) }, Bwa: function(c, d) { return this.Kd.Bwa(c, d || 0) }, OQa: function(c, d) { C.log("changeDisplayByIndex is deprecated. Use changeDisplayWithIndex instead."); this.Or(c, d) }, Or: function(c, d) { this.Kd.Or(c, d) }, Oca: function(c, d) { this.Kd.Oca(c, d) }, n0: function() { var c = this.Kd.en; return c && (c = c.Kj) ? c.n0() : [] }, ps: function(c) { for (var d = this.Kd.ag, f = 0; f < d.length; f++) { var g = d[f].Kj; g && g.ps(c) } }, Jx: function() { var c = this.Kd.en; return c && (c = c.Kj) ? c.Jx() : s }, U3a: x("Kd"), gUa: A("Kd"), n4a: x("YP"), QUa: A("YP"), hCa: A("Fd"), Ze: x("name"), getName: A("name"), Yd: function(c) { if (this.C.src != c.src || this.C.ga != c.ga) this.C = c, this.aP = q }, ek: A("C"), x3a: x("aP"), jYa: A("aP") }); H = V.ws.prototype; C.e(H, "boneData", H.Hx, H.lha); C.e(H, "armature", H.$za, H.nR); C.e(H, "childArmature", H.hAa, H.K2); C.e(H, "childrenBone", H.iAa); C.e(H, "tween", H.gCa); C.e(H, "tweenData", H.hCa); C.e(H, "colliderFilter", H.Jx, H.ps); H = s; V.ws.create = function(c) { var d = new V.ws; return d && d.j(c) ? d: s }; V.R5 = 0; V.T5 = 1; V.S5 = 2; V.U5 = 3; V.Q5 = 4; V.oma = 5; V.fc = { oLa: -1, sv: 0, Goa: 1, Ioa: 2, Hoa: 3, Sna: 4, Una: 5, Tna: 6, yla: 7, Ala: 8, zla: 9, Vna: 10, Xna: 11, Wna: 12, Yna: 13, $na: 14, Zna: 15, jma: 16, lma: 17, kma: 18, ula: 19, wla: 20, vla: 21, bma: 22, dma: 23, cma: 24, fka: 25, hka: 26, gka: 27, kka: 28, mka: 29, lka: 30 }; V.to = V.O.extend({ Pr: 0, ym: 0, Dp: 0, BSa: s, time: 0, ctor: function() { this.time = this.Dp = this.ym = this.Pr = 0 }, Qr: B(s), LF: function(c) { if (c === s) return console.error("Action cannot be null!"), s; var d; switch (this.ym) { case V.fc.sv: d = c; break; case V.fc.Goa: d = c.ra(C.uza()); break; case V.fc.Ioa: d = c.ra(C.wza()); break; case V.fc.Hoa: d = c.ra(C.vza()); break; case V.fc.Sna: d = c.ra(C.lza()); break; case V.fc.Una: d = c.ra(C.nza()); break; case V.fc.Tna: d = c.ra(C.mza()); break; case V.fc.yla: d = c.ra(C.cza()); break; case V.fc.Ala: d = c.ra(C.eza()); break; case V.fc.zla: d = c.ra(C.dza()); break; case V.fc.Vna: d = c.ra(C.oza()); break; case V.fc.Xna: d = c.ra(C.qza()); break; case V.fc.Wna: d = c.ra(C.pza()); break; case V.fc.Yna: d = c.ra(C.rza()); break; case V.fc.$na: d = c.ra(C.tza()); break; case V.fc.Zna: d = c.ra(C.sza()); break; case V.fc.jma: d = c.ra(C.fza()); break; case V.fc.lma: d = c.ra(C.hza()); break; case V.fc.kma: d = c.ra(C.gza()); break; case V.fc.ula: d = c.ra(C.$ya()); break; case V.fc.wla: d = c.ra(C.bza()); break; case V.fc.vla: d = c.ra(C.aza()); break; case V.fc.bma: d = c.ra(C.qda()); break; case V.fc.dma: d = c.ra(C.sda()); break; case V.fc.cma: d = c.ra(C.rda()); break; case V.fc.fka: d = c.ra(C.Tya()); break; case V.fc.hka: d = c.ra(C.Vya()); break; case V.fc.gka: d = c.ra(C.Uya()); break; case V.fc.kka: d = c.ra(C.Xya()); break; case V.fc.mka: d = c.ra(C.Zya()); break; case V.fc.lka: d = c.ra(C.Yya()) } return d }, fJ: function(c) { this.Aqa = []; for (var d = 0; d < c.length; d++) this.Aqa.push(c[d]) }, Ru: x("iM") }); V.Jja = V.to.extend({ ma: s, ctor: function() { V.to.prototype.ctor.call(this); this.ma = C.d(0, 0); this.Pr = V.R5 }, p: function(c, d) { d === m ? (this.ma.x = c.x, this.ma.y = c.y) : (this.ma.x = c, this.ma.y = d) }, Ld: A("ma"), Qr: function(c) { c = C.Bs.create(c, this.ma); c.ym = this.ym || V.fc.sv; return this.LF(c) } }); V.Nja = V.to.extend({ ia: 1, pa: 1, ctor: function() { V.to.prototype.ctor.call(this); this.pa = this.ia = 1; this.Pr = V.T5 }, gb: x("ia"), LP: A("ia"), pb: x("pa"), TH: A("pa"), Qr: function(c) { c = C.ae.create(c, this.ia, this.pa); c.ym = this.ym || V.fc.sv; return this.LF(c) } }); V.Mja = V.to.extend({ XA: 0, ctor: function() { V.to.prototype.ctor.call(this); this.XA = 0; this.Pr = V.S5 }, th: x("XA"), Mx: A("XA"), Qr: function(c) { c = C.wE.create(c, this.XA); c.ym = this.ym || V.fc.sv; return this.LF(c) } }); V.Fja = V.to.extend({ Eb: 255, ctor: function() { V.to.prototype.ctor.call(this); this.Eb = 255; this.Pr = V.Q5 }, K: x("Eb"), rb: A("Eb"), Qr: function(c) { c = C.xo.create(c, this.Eb); c.ym = this.ym || V.fc.sv; return this.LF(c) } }); V.Oja = V.to.extend({ ya: s, ctor: function() { V.to.prototype.ctor.call(this); this.ya = C.color(255, 255, 255, 255); this.Pr = V.U5 }, G: function(c) { var d = this.ya; d.r = c.r; d.g = c.g; d.b = c.b }, Xa: function() { var c = this.ya; return C.color(c.r, c.g, c.b, c.a) }, Qr: function(c) { c = C.ez.create(c, this.ya.r, this.ya.g, this.ya.b); c.ym = this.ym || V.fc.sv; return this.LF(c) } }); V.actionManager = { vq: {}, Lp: function(c, d, f) { c = c.substr(c.lastIndexOf("/") + 1, c.length); d = d.actionlist; for (var g = [], h = 0; h < d.length; h++) { var k = new V.Lja; k.Lp(d[h], f); g.push(k) } this.vq[c] = g }, i0: function(c, d) { var f = this.vq[c]; if (!f) return s; for (var g = 0; g < f.length; g++) { var h = f[g]; if (d == h.getName()) return h } return s }, GFa: function(c, d, f) { (c = this.i0(c, d)) && c.play(f) }, kGa: function() { this.vq = {} }, clear: function() { this.vq = {} } }; V.Kja = V.O.extend({ Cra: 0, Era: 0, fl: 0, xq: 0, ara: s, hz: s, Ke: s, Mi: s, aw: 0, ctor: function() { this.Era = this.Cra = 0; this.fl = 0.1; this.xq = 0; this.Ke = this.hz = this.ara = s; this.Mi = []; this.aw = V.oma; for (var c = 0; c < this.aw; c++) this.Mi.push([]) }, Lp: function(c, d) { this.ey(c.ActionTag); for (var f = c.actionframelist, g = 0; g < f.length; g++) { for (var h = f[g], k = h.tweenType, n = h.tweenParameter, p = [], r = 0; r < n; r++) p.push(h.tweenParameter[r]); if (h.positionx !== m) { var r = h.positionx, v = h.positiony, n = new V.Jja; n.Ru(k); n.fJ(p); n.p(r, v); r = this.Mi[V.R5]; r.push(n) } h.scalex !== m && (r = h.scalex, v = h.scaley, n = new V.Nja, n.Ru(k), n.fJ(p), n.gb(r), n.pb(v), r = this.Mi[V.T5], r.push(n)); h.rotation !== m && (r = h.rotation, n = new V.Mja, n.Ru(k), n.fJ(p), n.th(r), r = this.Mi[V.S5], r.push(n)); h.opacity !== m && (r = h.opacity, n = new V.Fja, n.Ru(k), n.fJ(p), n.K(r), r = this.Mi[V.Q5], r.push(n)); h.colorr !== m && (r = h.colorr, v = h.colorg, h = h.colorb, n = new V.Oja, n.Ru(k), n.fJ(p), n.G(C.color(r, v, h)), r = this.Mi[V.U5], r.push(n)) } this.JCa(d) }, JCa: function(c) { c instanceof J && (c = fd(c, this.xq)) && this.vl(c) }, vJ: function(c) { this.fl = c; this.hGa() }, jCa: A("fl"), ey: x("xq"), Ida: A("xq"), vl: x("DA"), lBa: A("DA"), j0: function() { return this.DA instanceof C.A || this.DA instanceof J ? this.DA: s }, WXa: function(c, d) { d != s && this.Mi[d.Pr].splice(c, 0, d) }, $Pa: function(c) { c && this.Mi[c.Pr].push(c) }, sRa: function(c) { c != s && C.Id(this.Mi[c.Pr], c) }, UQa: function() { for (var c = 0; c < this.aw; c++) this.Mi[c] = [] }, hGa: function() { if (this.DA == s) return s; for (var c = [], d = 0; d < this.aw; d++) { var f = this.Mi[d]; if (! (0 >= f.length)) { for (var g = [], h = 0; h < f.length; h++) { var k = f[h]; 0 != h && (k = k.Qr((k.Dp - f[h - 1].Dp) * this.fl)) && g.push(k) } g && (f = C.La.create(g), f != s && c.push(f)) } } this.Ke = s; return this.hz = C.ci.create(c) }, FFa: function(c) { this.DA == s || this.hz == s || (this.Ke = c ? C.La.create(this.hz, c) : C.La.create(this.hz), this.Ya()) }, Ya: function() { var c = this.j0(); c != s && this.Ke != s && c.Ya(this.Ke) }, yJ: function() { var c = this.j0(); c != s && this.Ke != s && (this.Ke.ik() || c.yJ(this.Ke)) }, AAa: function() { for (var c = 99999, d = t, f = 0; f < this.aw; f++) { var g = this.Mi[f]; 0 >= g.length || (d = q, g = g[0].Dp, c = c > g ? g: c) } d || (c = 0); return c }, SAa: function() { for (var c = -1, d = t, f = 0; f < this.aw; f++) { var g = this.Mi[f]; 0 >= g.length || (d = q, g = g[g.length - 1].Dp, c = c < g ? g: c) } d || (c = 0); return c }, xJa: function(c) { for (var d = t, f = this.fl, g = 0; g < this.aw; g++) { var h = this.Mi[g]; if (h != s) for (var k = 0; k < h.length; k++) { var n = h[k]; if (n.Dp * f == c) { this.rP(1, 1, n); d = q; break } else if (n.Dp * f > c) { 0 == k ? (this.rP(1, 1, n), d = t) : (d = h[k - 1], h = (n.Dp - d.Dp) * f, k = c - d.Dp * f, this.rP(h, 1, d), this.rP(h, k / h, n), d = q); break } } } return d }, rP: function(c, d, f) { c = f.Qr(c); f = this.j0(); c == s || f == s || (c.R(f), c.update(d)) }, kDa: function() { return this.Ke == s ? q: this.Ke.ik() } }); V.Lja = V.O.extend({ Ik: s, kd: "", Uj: t, NX: t, Oaa: t, fl: 0, RL: 0, hh: s, uW: 0, ctor: function() { this.Ik = []; this.kd = ""; this.Oaa = this.NX = this.Uj = t; this.fl = 0.1; this.uW = this.RL = 0; this.hh = new C.cz; C.Q.Em().lR(this.hh, 0, t) }, Ze: x("kd"), getName: A("kd"), CR: x("Uj"), bea: A("Uj"), vJ: function(c) { this.fl = c; c = this.Ik.length; for (var d = 0; d < c; d++) this.Ik[d].vJ(this.fl) }, jCa: A("fl"), VTa: A("RL"), N3a: x("RL"), fXa: A("uW"), ifa: A("Oaa"), Lp: function(c, d) { this.Ze(c.name); this.CR(c.loop); this.vJ(c.unittime); for (var f = c.actionnodelist, g = 0, h = 0; h < f.length; h++) { var k = new V.Kja; k.Lp(f[h], d); k.vJ(this.fl); this.Ik.push(k); k = k.SAa() - k.AAa(); k > g && (g = k) } this.uW = g * this.fl }, QPa: function(c) { c && (this.Ik.push(c), c.vJ(this.fl)) }, O1a: function(c) { c != s && C.Id(this.Ik, c) }, play: function(c) { this.stop(); this.LJa(0); for (var d = this.Ik.length, f = 0; f < d; f++) this.Ik[f].FFa(c); this.Uj && this.hh.y2(this, this.Fia, 0, C.xv, 0, t) }, pause: function() { this.NX = q }, stop: function() { for (var c = 0; c < this.Ik.length; c++) this.Ik[c].yJ(); this.hh.W3(this, this.Fia); this.NX = t }, LJa: function(c) { this.RL = c; for (var d = 0; d < this.Ik.length; d++) this.Ik[d].xJa(c) }, Fia: function() { if (this.Uj) { for (var c = q, d = this.Ik, f = 0; f < d.length; f++) if (d[f].kDa() == t) { c = t; break } c && this.play() } } }); V.MS = V.zh.extend({ Pi: s, Fa: "", ctor: function() { C.zh.prototype.ctor.call(this); this.Pi = {}; this.Fa = ""; this.kd = "CCComAttribute" }, j: function() { this.Pi = {}; return q }, o4a: function(c, d) { c ? this.Pi[c] = d: C.log("Argument must be non-nil") }, V3a: function(c, d) { c ? this.Pi[c] = d: C.log("Argument must be non-nil") }, $3a: function(c, d) { c ? this.Pi[c] = d: C.log("Argument must be non-nil") }, y3a: function(c, d) { c ? this.Pi[c] = d: C.log("Argument must be non-nil") }, sa: function(c, d) { c ? this.Pi[c] = d: C.log("Argument must be non-nil") }, vl: function(c, d) { c ? this.Pi[c] = d: C.log("Argument must be non-nil") }, SUa: function(c) { return parseInt(this.Pi[c] || 0) }, nUa: function(c) { return parseFloat(this.Pi[c] || 0) }, FUa: function(c) { return parseFloat(this.Pi[c] || 0) }, iTa: function(c) { return Boolean(this.Pi[c] || t) }, Wb: function(c) { return this.Pi[c] || "" }, lBa: function(c) { return this.Pi[c] }, parse: function(c) { this.Pi = C.M.xd(c) } }); V.MS.create = function() { var c = new V.MS; return c && c.j() ? c: s }; V.bK = V.zh.extend({ Fa: "", Uj: t, ctor: function() { C.zh.prototype.ctor.call(this); this.kd = "Audio" }, j: B(q), Z: u(), Na: function() { this.WIa(q); this.cD() }, end: function() { C.ud.end() }, QFa: function(c) { C.M.load(c) }, HFa: function(c, d) { c ? C.ud.tga(c, d) : C.ud.tga(this.Fa, this.Uj) }, WIa: function(c) { C.ud.Sia(c) }, a1a: function() { C.ud.Y1() }, D2a: function() { C.ud.aha() }, H2a: function() { C.ud.GGa() }, V6a: B(t), hYa: function() { return C.ud.nQ() }, cTa: function() { return C.ud.iBa() }, v3a: function(c) { C.ud.NHa(c) }, Uda: function() { return C.ud.Uda() }, zha: function(c) { C.ud.zha(c) }, Zx: function(c, d) { return c ? C.ud.Zx(c, d) : C.ud.Zx(this.Fa, this.Uj) }, X1: function(c) { C.ud.X1(c) }, W1: function() { C.ud.W1() }, u2: function(c) { C.ud.u2(c) }, t2: function() { C.ud.t2() }, G3: function(c) { C.ud.G3(c) }, cD: function() { C.ud.cD() }, RFa: function(c) { this.Eha(c); this.CR(t) }, V3: function(c) { C.ud.V3(c) }, Eha: x("Fa"), CR: x("Uj"), getFile: A("Fa"), wYa: A("Uj") }); V.bK.create = function() { var c = new V.bK; return c && c.j() ? c: s }; V.n5 = V.zh.extend({ ctor: function() { C.zh.prototype.ctor.call(this); this.kd = "ComController" }, j: B(q), Z: function() { this.Rd != s && this.Rd.Lu() }, Na: u(), update: u(), isEnabled: A("Wc"), Ib: function() { this.Wc = b } }); V.n5.create = function() { var c = new V.n5; return c && c.j() ? c: s }; V.lv = V.zh.extend({ Rt: s, ctor: function(c, d) { C.zh.prototype.ctor.call(this); this.Rt = c; this.kd = d; this.GYa = q }, Z: function() { this.Rd && this.Rd.q(this.Rt) }, Na: function() { this.Rd && (this.Rd.removeChild(this.Rt, q), this.Rt = s) }, tVa: A("Rt"), C4a: x("Rt") }); V.lv.create = function(c, d) { var f = new V.lv(c, d); return f && f.j() ? f: s }; V.BI = { AO: {}, Aya: function() { this.Zl = s }, zH: function(c) { var d = s; (c = this.AO[c]) && (d = new c.ut); return d }, Nga: function(c) { this.AO[c.qa] = c }, kRa: function(c) { var d = s; "Panel" === c ? c = "Layout": "TextArea" === c ? c = "Label": "TextButton" === c && (c = "Button"); if ((c = this.AO[c]) && c.ut) d = c.ut; return d }, Yxa: function(c) { var d = s; if ((c = this.AO[c]) && c.ut) d = c.ut; return d } }; V.R7 = V.O.extend({ qa: "", ut: s, ctor: function(c, d) { d ? (this.qa = c, this.ut = d) : (this.qa = c.qa, this.ut = c.ut); V.BI.Nga(this) } }); V.h3a = function(c) { c = V.P3.get(c); if (c != s) for (var d = 0; d < c.length; d++); }; V.J1a = function(c, d) { new V.R7(c, d) }; V.P3 = { hn: {}, Vba: {}, fr: [], Aya: function() { this.mk(); this.Zl = s }, parse: function(c) { for (var d = 0; d < c.length; ++d) { var f = c[d], g = V.BU.create(); g.QC(f); for (var f = g.cH, h = 0; h < f.length; h++) this.add(f[h], g); this.Vba[g.ni] = g } }, get: function(c) { return this.hn[c] }, fCa: function(c) { return this.Vba[c] }, add: function(c, d) { var f = this.hn[c]; f || (f = []); - 1 == f.indexOf(d) && (f.push(d), this.hn[c] = f) }, mk: function() { for (var c in this.hn) for (var d = this.hn[c], f = 0; f < d.length; f++) d[f].mk(); this.hn = {} }, remove: function(c, d) { if (d) return this.Bua(c, d); var f = t, g = this.hn[c]; if (g) { for (f = 0; f < g.length; f++) { var h = g[f]; h && h.mk() } delete this.hn[c]; f = q } return f }, Bua: function(c, d) { var f = t; do { var g = this.hn[c]; if (g) { for (f = 0; f < g.length; f++) { var h = g[f]; if (h && h == d) { h.mk(); g.splice(f, 1); break } } f = q } } while ( 0 ); return f }, v2a: function(c) { c = this.fCa(c); if (!c) return t; for (var d = c.cH, f = 0; f < d.length; f++) this.remove(d[f], c); return q }, gfa: function() { return ! this.hn || 0 >= this.hn.length }, SPa: function(c, d, f) { if (! (c == s || f == s || d == s)) { for (var g, h = t, k = 0; k < this.fr.length; k++) if ((g = this.fr[k]) && g[0] == c) g.kca(d, f), h = q; h || (g = new V.Qja, c.ll().MHa(g.Ywa, g), g.kca(d, f), this.fr.push([c, g])) } }, a2a: function(c, d, f) { if (! (c == s || d == s || f == s)) for (var g, h = 0; h < this.fr.length; h++)(g = this.fr[h]) && g[0] == c && g.qGa(f, d) }, Z1a: function(c) { if (c != s) for (var d, f = 0; f < this.fr.length; f++) if ((d = this.fr[f]) && d[0] == c) { this.fr.splice(f, 1); break } }, Q1a: function() { this.fr = [] }, version: B("1.2.0.0") }; V.Qja = V.O.extend({ nw: s, ctor: function() { this.nw = [] }, Ywa: function(c, d, f) { for (var g, h, k = 0; k < this.nw.length; k++) g = this.nw[k], h = g[0], (g = g[1]) && g.call(h, c, d, f) }, kca: function(c, d) { this.nw.push([d, c]) }, qGa: function(c, d) { for (var f, g = 0; g < this.nw.length; g++) f = this.nw[g], f[0] == d && this.nw.splice(g, 1) } }); V.XKa = V.O.extend({ ctor: u(), j: B(q), M_: B(q), QC: u(), mk: u() }); V.WKa = V.O.extend({ ctor: u(), j: B(q), Jya: u(), QC: u(), mk: u() }); V.BU = V.O.extend({ gt: s, Gv: s, ni: 0, mM: q, cH: s, ctor: function() { this.ni = 0; this.mM = q }, j: function() { this.gt = []; this.Gv = []; this.cH = []; return q }, M_: function() { if (!this.mM || 0 == this.gt.length) return q; for (var c = q, d = s, f = 0; f < this.gt.length; f++)(d = this.gt[f]) && d.M_ && (c = c && d.M_()); return c }, Jya: function() { if (this.mM && 0 != this.Gv.length) for (var c = 0; c < this.Gv.length; c++); }, mk: function() { for (var c = s, d = 0; d < this.gt.length; d++)(c = this.gt[d]) && c.mk(); this.gt = []; for (d = 0; d < this.Gv.length; d++)(c = this.Gv[d]) && c.mk(); this.Gv = [] }, QC: function(c) { this.ni = c.id || 0; for (var d = c.conditions || [], f = 0; f < d.length; f++) { var g = d[f], h = g.classname, k = V.BI.zH(h); k ? (k.QC(g), k.j(), this.gt.push(k)) : C.log("class named classname(" + h + ") can not implement!") } d = c.actions || []; for (f = 0; f < d.length; f++) g = d[f], h = g.classname, (k = V.BI.zH(h)) ? (k.QC(g), k.j(), this.Gv.push(k)) : C.log("class named classname(" + h + ") can not implement!"); c = c.events || []; for (f = 0; f < c.length; f++) g = c[f], g = g.id, 0 > g || this.cH.push(g) }, IAa: A("ni"), W3a: x("mM"), AUa: A("cH") }); V.BU.create = function() { var c = new V.BU; return c.j() ? c: s }; V.zk = { Fa: "", Faa: t, wW: {}, pX: {}, qX: {}, nCa: function(c) { if (!c) return 0; var d = c.length; if (7 > d) return 0; var f = c.indexOf("."), g = c.substr(0, f); c = c.substr(f + 1, d - 1); var f = c.indexOf("."), h = c.substr(0, f); c = c.substr(f + 1, d - 1); var f = c.indexOf("."), k = c.substr(0, f); c = c.substr(f + 1, d - 1); f = c.indexOf("."); return 1E3 * parseInt(g) + 100 * parseInt(h) + 10 * parseInt(k) + parseInt( - 1 == f ? c: c.substr(0, f)) }, aS: function(c, d) { this.wW[c] = d }, CUa: function(c) { return this.wW[c] }, SJa: function(c) { var d = C.M.xd(c); d || e("Please load the resource first : " + c); var f = C.path.dirname(c); this.Fa = "" == f ? f: f + "/"; var f = d.version, g = this.nCa(f); c = (f ? 250 > g ? new V.O8: new V.qqa: new V.O8).E_(d, this.Fa, c); if (!f || 250 > g) this.Faa = q; return c }, clear: function() { this.Fa = ""; this.Faa = t; this.wW = {} }, K1a: function(c, d, f, g) { d = V.BI; var h = new V.R7(c, f); d.Nga(h); f && (this.pX[c] = f); g && (this.qX[c] = g) }, DUa: A("Fa"), UVa: A("pX"), TVa: A("qX") }; V.N8 = V.O.extend({ Fa: "", E_: u(), oD: u() }); V.O8 = V.N8.extend({ E_: function(c, d, f) { this.Fa = "" == d ? d: C.path.join(d, "/"); for (var g = c.textures, h = 0; h < g.length; h++) { var k = d, k = k + g[h]; C.Fe.Lr(k) } d = c.designWidth; g = c.designHeight; 0 >= d || 0 >= g ? (C.log("Read design size error!"), V.zk.aS(f, C.Q.aa)) : V.zk.aS(f, C.size(d, g)); h = this.oD(c.widgetTree); k = h.i(); 0 == k.width && 0 == k.height && h.yf(C.size(d, g)); V.actionManager.Lp(f, c.animation, h); return h }, oD: function(c) { var d = s, f = c.classname, g = c.options; "Button" == f ? (d = gd.create(), this.kJ(d, g)) : "CheckBox" == f ? (d = hd.create(), this.bia(d, g)) : "Label" == f ? (d = ld.create(), this.c3(d, g)) : "LabelAtlas" == f ? (d = md.create(), this.dia(d, g)) : "LoadingBar" == f ? (d = jd.create(), this.fia(d, g)) : "ScrollView" == f ? (d = T.create(), this.d3(d, g)) : "TextArea" == f ? (d = ld.create(), this.c3(d, g)) : "TextButton" == f ? (d = gd.create(), this.kJ(d, g)) : "TextField" == f ? (d = qd.create(), this.hia(d, g)) : "ImageView" == f ? (d = id.create(), this.cia(d, g)) : "Panel" == f ? (d = L.create(), this.Vu(d, g)) : "Slider" == f ? (d = kd.create(), this.gia(d, g)) : "LabelBMFont" == f ? (d = nd.create(), this.eia(d, g)) : "DragPanel" == f && (d = T.create(), this.d3(d, g)); c = c.children; for (f = 0; f < c.length; f++)(g = this.oD(c[f])) && d.q(g); return d }, Ee: function(c, d) { d.ignoreSize !== m && c.We(d.ignoreSize); c.yf(C.size(d.width, d.height)); c.Qm(d.tag); c.ey(d.actiontag); c.vh(d.touchAble); var f = d.name; c.Ze(f ? f: "default"); c.p(C.d(d.x, d.y)); d.scaleX !== m && c.gb(d.scaleX); d.scaleY !== m && c.pb(d.scaleY); d.rotation !== m && c.th(d.rotation); d.visible !== m && c.va(d.visible); c.ul(d.ZOrder) }, b3: u(), aia: u(), Ad: function(c, d) { d.opacity !== m && c.K(d.opacity); c.G(C.color(d.colorR !== m ? d.colorR: 255, d.colorG !== m ? d.colorG: 255, d.colorB !== m ? d.colorB: 255)); c.S(d.anchorPointX !== m ? d.anchorPointX: c.Jr == J.HE ? 0.5 : 0, d.anchorPointY !== m ? d.anchorPointY: c.Jr == J.HE ? 0.5 : 0); var f = d.flipY; c.Nd(d.flipX); c.Uf(f) }, kJ: function(c, d) { this.Ee(c, d); var f = d.scale9Enable; c.uh(f); var g = d.normal, h = d.pressed, k = d.disabled, n = g ? this.Fa + g: s, p = h ? this.Fa + h: s, r = k ? this.Fa + k: s, v = d.useMergedTexture; f ? (v ? c.pj(g, h, k, J.ab) : c.pj(n, p, r), d.scale9Width !== m && d.scale9Height !== m && c.yf(C.size(d.scale9Width, d.scale9Height))) : v ? c.pj(g, h, k, J.ab) : c.pj(n, p, r); d.text !== m && (f = d.text || "") && c.vy(f); d.fontSize !== m && c.uy(d.fontSize); d.fontName !== m && c.ty(d.fontName); f = C.color(d.textColorR !== m ? d.textColorR: 255, d.textColorG !== m ? d.textColorG: 255, d.textColorB !== m ? d.textColorB: 255); c.sy(f); this.Ad(c, d) }, bia: function(c, d) { this.Ee(c, d); var f = d.backGroundBox, g = d.backGroundBoxSelected, h = d.frontCross, k = d.backGroundBoxDisabled, n = d.frontCrossDisabled, p = this.Fa, r = f ? p + f: s, v = g ? p + g: s, y = h ? p + h: s, z = k ? p + k: s, p = n ? p + n: s; d.useMergedTexture ? c.pj(f, g, h, k, n, J.ab) : c.pj(r, v, y, z, p); c.qy(d.selectedState || t); this.Ad(c, d) }, cia: function(c, d) { this.Ee(c, d); var f = d.fileName, g = d.scale9Enable || t; c.uh(g); var h = this.Fa, k = s; f && (k = h + f); h = d.useMergedTexture; g ? (h ? c.Sf(f, J.ab) : c.Sf(k), d.scale9Width !== m && d.scale9Height !== m && c.yf(C.size(d.scale9Width, d.scale9Height)), c.Gc(C.rect(d.capInsetsX, d.capInsetsY, d.capInsetsWidth, d.capInsetsHeight))) : h ? c.Sf(f, J.ab) : c.Sf(k); this.Ad(c, d) }, c3: function(c, d) { this.Ee(c, d); c.SR(d.touchScaleEnable); c.sa(d.text); d.fontSize !== m && c.Od(d.fontSize); d.fontName !== m && c.Zd(d.fontName); if (d.areaWidth !== m && d.areaHeight !== m) { var f = C.size(d.areaWidth, d.areaHeight); c.ry(f) } d.hAlignment && c.Xu(d.hAlignment); d.vAlignment && c.Yu(d.vAlignment); this.Ad(c, d) }, dia: function(c, d) { this.Ee(c, d); var f = d.charMapFile !== m, g = d.itemWidth !== m, h = d.itemHeight !== m, k = d.startCharMap !== m; d.stringValue !== m && (f && g && h && k && d.charMapFile) && c.setProperty(d.stringValue, this.Fa + d.charMapFile, d.itemWidth, d.itemHeight, d.startCharMap); this.Ad(c, d) }, Vu: function(c, d) { this.Ee(c, d); ! (c instanceof T) && !(c instanceof wd) && c.aq(d.clipAble); var f = d.backGroundScale9Enable; c.rR(f); var g = d.bgColorR, h = d.bgColorG, k = d.bgColorB, n = d.bgStartColorR, p = d.bgStartColorG, r = d.bgStartColorB, v = d.bgEndColorR, y = d.bgEndColorG, z = d.bgEndColorB; c.qR(C.d(d.vectorX, d.vectorY)); var D = d.bgColorOpacity; c.pR(d.colorType); c.Mu(C.color(n, p, r), C.color(v, y, z)); c.Mu(C.color(g, h, k)); c.oR(D); h = (g = d.backGroundImage) ? this.Fa + g: s; d.useMergedTexture ? c.Nu(g, J.ab) : c.Nu(h); f && c.bJ(C.rect(d.capInsetsX, d.capInsetsY, d.capInsetsWidth, d.capInsetsHeight)); this.Ad(c, d) }, d3: function(c, d) { this.Vu(c, d); c.ky(C.size(d.innerWidth, d.innerHeight)); c.sh(d.direction); c.vR(d.bounceEnable); this.Ad(c, d) }, T4a: function(c, d) { this.Ee(c, d); (c instanceof T || c instanceof wd) && c.aq(d.clipAble); this.Ad(c, d) }, gia: function(c, d) { this.Ee(c, d); var f = d.barTextureScale9Enable || t; c.uh(f); var g = d.length, h = d.useMergedTexture; if (d.barFileName !== m) if (f) { var k = (f = d.barFileName) ? this.Fa + f: s; h ? c.kk(f, J.ab) : c.kk(k); c.yf(C.size(g, c.i().height)) } else k = (f = d.barFileName) ? this.Fa + f: s, h ? c.kk(f, J.ab) : c.kk(k); var g = d.ballNormal, f = d.ballPressed, k = d.ballDisabled, n = g ? this.Fa + g: s, p = f ? this.Fa + f: s, r = k ? this.Fa + k: s; h ? c.Lfa(g, f, k, J.ab) : c.Lfa(n, p, r); c.Ci(d.percent); k = (f = d.progressBarFileName) ? this.Fa + f: s; h ? c.Eu(f, J.ab) : c.Eu(k); this.Ad(c, d) }, cIa: function(c, d) { this.Ee(c, d); c.sa(d.text); d.fontSize !== m && c.Od(d.fontSize); c.G(C.color(d.colorR, d.colorG, d.colorB)); c.Zd(d.fontName); if (d.areaWidth !== m && d.areaHeight !== m) { var f = C.size(d.areaWidth, d.areaHeight); c.ry(f) } d.hAlignment && c.Xu(d.hAlignment); d.vAlignment && c.Yu(d.vAlignment); this.Ad(c, d) }, dIa: function(c, d) { this.kJ(c, d); c.vy(d.text || ""); c.sy(C.color(d.textColorR !== m ? d.textColorR: 255, d.textColorG !== m ? d.textColorG: 255, d.textColorB !== m ? d.textColorB: 255)); d.fontSize !== m && c.uy(d.fontSize); d.fontName !== m && c.ty(d.fontName); this.Ad(c, d) }, hia: function(c, d) { this.Ee(c, d); d.placeHolder !== m && c.Di(d.placeHolder); c.sa(d.text); d.fontSize !== m && c.Od(d.fontSize); d.fontName !== m && c.Zd(d.fontName); d.touchSizeWidth !== m && d.touchSizeHeight !== m && c.u3(C.size(d.touchSizeWidth, d.touchSizeHeight)); var f = d.maxLengthEnable; c.my(f); f && c.qs(d.maxLength); f = d.passwordEnable; c.ny(f); f && c.WC(d.passwordStyleText); this.Ad(c, d) }, fia: function(c, d) { this.Ee(c, d); var f = d.texture, g = f ? this.Fa + f: s; d.useMergedTexture ? c.Sf(f, J.ab) : c.Sf(g); c.sh(d.direction); c.Ci(d.percent); this.Ad(c, d) }, aIa: function(c, d) { this.Vu(c, d) }, bIa: function(c, d) { this.Vu(c, d) }, eia: function(c, d) { this.Ee(c, d); c.UC(this.Fa + d.fileName); c.sa(d.text); this.Ad(c, d) } }); V.qqa = V.N8.extend({ E_: function(c, d, f) { this.Fa = "" == d ? d: C.path.join(d, "/"); for (var g = c.textures, h = 0; h < g.length; h++) { var k = d, k = k + g[h]; C.Fe.Lr(k) } d = c.designWidth; g = c.designHeight; 0 >= d || 0 >= g ? (C.log("Read design size error!"), V.zk.aS(f, C.Q.aa)) : V.zk.aS(f, C.size(d, g)); h = this.oD(c.widgetTree); k = h.i(); 0 == k.width && 0 == k.height && h.yf(C.size(d, g)); V.actionManager.Lp(f, c.animation, h); return h }, b3: function(c, d, f) { c.Bd(d, f) }, aia: function(c, d, f) { var g = V.zk, h = g.pX[c], g = g.qX[c]; h && g && h.f3a.call(this, c, d, f) }, oD: function(c) { var d = s, f = c.classname, g = c.options; "Button" == f ? d = gd.create() : "CheckBox" == f ? d = hd.create() : "Label" == f ? d = ld.create() : "LabelAtlas" == f ? d = md.create() : "LoadingBar" == f ? d = jd.create() : "ScrollView" == f ? d = T.create() : "TextArea" == f ? d = ld.create() : "TextButton" == f ? d = gd.create() : "TextField" == f ? d = qd.create() : "ImageView" == f ? d = id.create() : "Panel" == f ? d = L.create() : "Slider" == f ? d = kd.create() : "LabelBMFont" == f ? d = nd.create() : "DragPanel" == f ? d = T.create() : "ListView" == f ? d = wd.create() : "PageView" == f ? d = xd.create() : "Widget" == f && (d = J.create()); var h = f; switch (h) { case "Panel": h = "Layout"; break; case "TextArea": h = "Label"; break; case "TextButton": h = "Button" } if (h = V.BI.Yxa(h + "Reader")) this.b3(h, d, g); else { var k; d instanceof gd ? k = V.D4: d instanceof hd ? k = V.l5: d instanceof id ? k = V.e6: d instanceof md ? k = V.t6: d instanceof od ? k = V.u6: d instanceof ld ? k = V.v6: d instanceof jd ? k = V.B6: d instanceof kd ? k = V.L7: d instanceof qd ? k = V.Y7: d instanceof wd ? k = V.z6: d instanceof T ? k = V.eU: d instanceof xd ? k = V.l7: d instanceof L ? k = V.vK: d instanceof J && (k = V.Je); this.b3(k, d, g); g || C.log("GetParseError"); this.aia(f, d, g) } c = c.children; for (f = 0; f < c.length; f++) if (g = this.oD(c[f])) d instanceof xd ? d.TO(g) : d instanceof wd ? d.yga(g) : (d instanceof L && (g.qh == J.h7 && (k = g.Ld(), h = d.dk(), g.Z2(C.d(k.x + h.x, k.y + h.y))), k = d.Ep(), g.p(C.d(g.Rc() + k.x, g.Vd() + k.y))), d.q(g)); return d }, Ee: function(c, d) { var f = d.name; c.Ze(f ? f: "default"); d.ignoreSize !== m && c.We(d.ignoreSize); c.l3(d.sizeType); c.a3(d.positionType); c.pia(C.d(d.sizePercentX, d.sizePercentY)); c.Z2(C.d(d.positionPercentX, d.positionPercentY)); c.yf(C.size(d.width, d.height)); c.Qm(d.tag); c.ey(d.actiontag); c.vh(d.touchAble); c.p(C.d(d.x, d.y)); d.scaleX !== m && c.gb(d.scaleX); d.scaleY !== m && c.pb(d.scaleY); d.rotation !== m && c.th(d.rotation); d.visible !== m && c.va(d.visible); c.ul(d.ZOrder); if (f = d.layoutParameter) { var g; switch (f.type) { case 1: g = Ic.create(); g.oc(f.gravity); break; case 2: g = P.create(), g.IR(f.relativeName), g.JR(f.relativeToName), g.mR(f.align) } g.mo(new Mc(f.marginLeft, f.marginTop, f.marginRight, f.marginDown)); c.ly(g) } }, Ad: function(c, d) { d.opacity !== m && c.K(d.opacity); c.G(C.color(d.colorR !== m ? d.colorR: 255, d.colorG !== m ? d.colorG: 255, d.colorB !== m ? d.colorB: 255)); c.S(d.anchorPointX !== m ? d.anchorPointX: c.Jr == J.HE ? 0.5 : 0, d.anchorPointY !== m ? d.anchorPointY: c.Jr == J.HE ? 0.5 : 0); var f = d.flipY; c.Nd(d.flipX); c.Uf(f) }, kJ: function(c, d) { this.Ee(c, d); var f = d.scale9Enable; c.uh(f); var g = d.normalData; switch (g.resourceType) { case 0: g = g.path; c.Rx(g ? this.Fa + g: s); break; case 1: g = g.path, c.Rx(g, J.ab) } g = d.pressedData; switch (g.resourceType) { case 0: g = g.path; c.Sx(g ? this.Fa + g: s); break; case 1: g = g.path, c.Sx(g, J.ab) } g = d.disabledData; switch (g.resourceType) { case 0: g = g.path; c.Qx(g ? this.Fa + g: s); break; case 1: g = g.path, c.Qx(g, J.ab) } f && (c.Gc(C.rect(d.capInsetsX, d.capInsetsY, d.capInsetsWidth, d.capInsetsHeight)), d.scale9Width !== m && d.scale9Height !== m && c.yf(C.size(d.scale9Width, d.scale9Height))); d.text !== m && (f = d.text || "") && c.vy(f); d.fontSize !== m && c.uy(d.fontSize); d.fontName !== m && c.ty(d.fontName); f = C.color(d.textColorR !== m ? d.textColorR: 255, d.textColorG !== m ? d.textColorG: 255, d.textColorB !== m ? d.textColorB: 255); c.sy(f); this.Ad(c, d) }, bia: function(c, d) { this.Ee(c, d); var f = d.backGroundBoxData; switch (f.resourceType) { case 0: f = f.path; c.uC(f ? this.Fa + f: s); break; case 1: f = f.path, c.uC(f, J.ab) } f = d.backGroundBoxSelectedData; switch (f.resourceType) { case 0: f = f.path; c.wC(f ? this.Fa + f: s); break; case 1: f = f.path, c.wC(f, J.ab) } f = d.frontCrossData; switch (f.resourceType) { case 0: f = f.path; c.xC(f ? this.Fa + f: s); break; case 1: f = f.path, c.xC(f, J.ab) } f = d.backGroundBoxDisabledData; switch (f.resourceType) { case 0: f = f.path; c.vC(f ? this.Fa + f: s); break; case 1: f = f.path, c.vC(f, J.ab) } switch (d.frontCrossDisabledData.resourceType) { case 0: f = d.path; c.yC(f ? this.Fa + f: s); break; case 1: f = d.path, c.yC(f, J.ab) } c.qy(d.selectedState || t); c.qy(d, "selectedState"); this.Ad(c, d) }, cia: function(c, d) { this.Ee(c, d); var f = d.fileNameData; switch (f.resourceType) { case 0: var g = this.Fa; (f = f.path) && c.Sf(g + f); break; case 1: f = f.path, c.Sf(f, J.ab) } g = d.scale9Enable || t; c.uh(g); g && (d.scale9Width !== m && d.scale9Height !== m && c.yf(C.size(d.scale9Width, d.scale9Height)), c.Gc(C.rect(d.capInsetsX, d.capInsetsY, d.capInsetsWidth, d.capInsetsHeight))); this.Ad(c, d) }, c3: function(c, d) { this.Ee(c, d); c.SR(d.touchScaleEnable); c.sa(d.text); d.fontSize !== m && c.Od(d.fontSize); d.fontName !== m && c.Zd(d.fontName); if (d.areaWidth !== m && d.areaHeight !== m) { var f = C.size(d.areaWidth, d.areaHeight); c.ry(f) } d.hAlignment && c.Xu(d.hAlignment); d.vAlignment && c.Yu(d.vAlignment); this.Ad(c, d) }, dia: function(c, d) { this.Ee(c, d); var f = d.charMapFile !== m, g = d.itemWidth !== m, h = d.itemHeight !== m, k = d.startCharMap !== m; if (d.stringValue !== m && f && g && h && k) switch (f = d.charMapFileData, f.resourceType) { case 0: c.setProperty(d.stringValue, this.Fa + f.path, d.itemWidth, d.itemHeight, d.startCharMap); break; case 1: C.log("Wrong res type of LabelAtlas!") } this.Ad(c, d) }, Vu: function(c, d) { this.Ee(c, d); ! (c instanceof T) && !(c instanceof wd) && c.aq(d.clipAble); var f = d.backGroundScale9Enable; c.rR(f); var g = d.bgColorR, h = d.bgColorG, k = d.bgColorB, n = d.bgStartColorR, p = d.bgStartColorG, r = d.bgStartColorB, v = d.bgEndColorR, y = d.bgEndColorG, z = d.bgEndColorB; c.qR(C.d(d.vectorX, d.vectorY)); var D = d.bgColorOpacity; c.pR(d.colorType); c.Mu(C.color(n, p, r), C.color(v, y, z)); c.Mu(C.color(g, h, k)); c.oR(D); g = d.backGroundImageData || {}; switch (g.resourceType) { case 0: g = g.path; c.Nu(g ? this.Fa + g: s); break; case 1: g = g.path, c.Nu(g, J.ab) } f && c.bJ(C.rect(d.capInsetsX, d.capInsetsY, d.capInsetsWidth, d.capInsetsHeight)); c.Pm(d.layoutType); this.Ad(c, d) }, d3: function(c, d) { this.Vu(c, d); c.ky(C.size(d.innerWidth, d.innerHeight)); c.sh(d.direction); c.vR(d.bounceEnable); this.Ad(c, d) }, gia: function(c, d) { this.Ee(c, d); var f = d.barTextureScale9Enable || t; c.uh(f); var g = d.length; if (d.barFileName !== m) if (f) { var f = d.barFileNameData, h = f.resourceType; switch (h) { case 0: f = (f = f.path) ? this.Fa + f: s; c.kk(f); break; case 1: f = f.path, c.kk(f, J.ab) } c.yf(C.size(g, c.i().height)) } else switch (f = d.barFileNameData, h = f.resourceType, h) { case 0: f = (f = f.path) ? this.Fa + f: s; c.kk(f); break; case 1: f = f.path, c.kk(f, J.ab) } g = d.ballNormalData; switch (g.resourceType) { case 0: g = g.path; c.sC(g ? this.Fa + g: s); break; case 1: g = g.path, c.sC(g, J.ab) } g = d.ballPressedData; switch (g.resourceType) { case 0: g = g.path; c.tC(g ? this.Fa + g: s); break; case 1: g = g.path, c.tC(g, J.ab) } g = d.ballDisabledData; switch (g.resourceType) { case 0: g = g.path; c.rC(g ? this.Fa + g: s); break; case 1: g = g.path, c.rC(g, J.ab) } g = d.progressBarData; switch (g.resourceType) { case 0: f = (f = g.path) ? this.Fa + f: s; c.Eu(f); break; case 1: f = g.path, c.Eu(f, J.ab) } this.Ad(c, d); c.Ci(d.percent) }, cIa: function(c, d) { this.Ee(c, d); c.sa(d.text); d.fontSize !== m && c.Od(d.fontSize); c.G(C.color(d.colorR, d.colorG, d.colorB)); c.Zd(d.fontName); if (d.areaWidth !== m && d.areaHeight !== m) { var f = C.size(d.areaWidth, d.areaHeight); c.ry(f) } d.hAlignment && c.Xu(d.hAlignment); d.vAlignment && c.Yu(d.vAlignment); this.Ad(c, d) }, dIa: function(c, d) { this.kJ(c, d); c.vy(d.text || ""); c.sy(C.color(d.textColorR !== m ? d.textColorR: 255, d.textColorG !== m ? d.textColorG: 255, d.textColorB !== m ? d.textColorB: 255)); d.fontSize !== m && c.uy(d.fontSize); d.fontName !== m && c.ty(d.fontName); this.Ad(c, d) }, hia: function(c, d) { this.Ee(c, d); d.placeHolder !== m && c.Di(d.placeHolder); c.sa(d.text); d.fontSize !== m && c.Od(d.fontSize); d.fontName !== m && c.Zd(d.fontName); d.touchSizeWidth !== m && d.touchSizeHeight !== m && c.u3(C.size(d.touchSizeWidth, d.touchSizeHeight)); var f = d.maxLengthEnable; c.my(f); f && c.qs(d.maxLength); f = d.passwordEnable; c.ny(f); f && c.WC(d.passwordStyleText); this.Ad(c, d) }, fia: function(c, d) { this.Ee(c, d); var f = d.textureData; switch (f.resourceType) { case 0: var g = this.Fa; (f = f.path) && c.Sf(g + f); break; case 1: f = f.path, c.Sf(f, J.ab) } g = d.scale9Enable; c.uh(g); g && (c.Gc(C.rect(d.capInsetsX, d.capInsetsY, d.capInsetsWidth, d.capInsetsHeight)), c.yf(C.size(d.width, d.height))); c.sh(d.direction); c.Ci(d.percent); this.Ad(c, d) }, aIa: function(c, d) { this.Vu(c, d); c.ky(C.size(d.innerWidth || 0, d.innerHeight || 0)); c.sh(d.direction || 0); c.oc(d.gravity || 0); c.T2(d.itemMargin || 0) }, bIa: function(c, d) { this.Vu(c, d) }, eia: function(c, d) { this.Ee(c, d); var f = d.fileNameData; switch (f.resourceType) { case 0: c.UC(this.Fa + f.path); break; case 1: C.log("Wrong res type of LabelAtlas!") } c.sa(d.text); this.Ad(c, d) } }); V.R2a = { uV: "", AA: s, xY: s, gf: s, mRa: function(c) { this.gf = s; this.uV = C.path.dirname(c); var d = C.M.xd(c); d || e("Please load the resource first : " + c); this.gf = this.zH(d, s); V.P3.parse(d.Triggers || []); return this.gf }, zH: function(c, d) { var f = c.classname; if ("CCNode" == f) { var g = s; d ? (g = C.A.create(), d.q(g)) : g = C.A.create(); this.$Ha(g, c); for (var h = c.components, k = 0; k < h.length; k++) { var n = h[k]; if (!n) break; var f = n.classname, p = n.name, r = n.fileData, v = "", y = "", z = 0; r != s && (z = r.resourceType !== m ? r.resourceType: -1, v = C.path.join(this.uV, r.path), y = r.plistFile); var D = C.path.Cp(v); if ("CCSprite" == f) { f = s; if (0 == z) { if (".png" != D) continue; f = C.u.create(v) } else if (1 == z) { if (".plist" != D) continue; y = C.path.join(this.uV, y); C.Fe.Lr(y, C.path.s_(y, ".png")); f = C.u.create("#" + r.path) } else continue; v = V.lv.create(f, "CCSprite"); p != s && v.Ze(p); g.pu(v); this.at(f, n) } else if ("CCTMXTiledMap" == f) r = s, 0 == z && ".tmx" == D && (r = C.OK.create(v), v = V.lv.create(r, "CCTMXTiledMap"), p != s && v.Ze(p), g.pu(v), this.at(r, n)); else if ("CCParticleSystemQuad" == f)".plist" == D && (D = s, 0 == z ? (D = C.B.create(v), D.p(0, 0), v = V.lv.create(D, "CCParticleSystemQuad"), p != s && v.Ze(p), g.pu(v), this.at(D, n)) : C.log("unknown resourcetype on CCParticleSystemQuad!")); else if ("CCArmature" == f) 0 == z && ((z = C.M.xd(v)) || C.log("Please load the resource [%s] first!", v), z = z.armature_data[0].name, V.Mr.pwa(v), z = V.Bk.create(z), v = V.lv.create(z, "CCArmature"), p != s && v.Ze(p), g.pu(v), (p = n.selectedactionname) && z.ll() && z.ll().play(p), this.at(z, n)); else if ("CCComAudio" == f) { var E = s; 0 == z && (E = V.bK.create(), E.RFa(v), p && E.Ze(p), g.pu(E), this.at(E, n)) } else "CCComAttribute" == f ? (D = s, 0 == z ? (D = V.MS.create(), "" != v && D.parse(v), p && D.Ze(p), g.pu(D), this.at(D, n)) : C.log("unknown resourcetype on CCComAttribute!")) : "CCBackgroundAudio" == f ? D && 0 == z && (E = V.bK.create(), E.QFa(v), E.Eha(v), z = Boolean(n.loop || 0), E.CR(z), p && E.Ze(p), g.pu(E), E.HFa(v, z), this.at(E, n)) : "GUIComponent" == f && (v = V.zk.SJa(v), v = V.lv.create(v, "GUIComponent"), p != s && v.Ze(p), g.pu(v), this.at(E, n)) } h = c.gameobjects; for (k = 0; k < h.length; k++) { n = h[k]; if (!n) break; this.zH(n, g) } return g } return s }, Wfa: function(c, d) { if (c == s) return s; for (var f = s, g = c.le(), h = 0; h < g.length && !((f = g[h]) && f.Fm() == d) && !(f = this.Wfa(f, d)); h++); return f }, GP: function(c) { return this.gf == s ? s: this.gf.Fm() == c ? this.gf: this.Wfa(this.gf, c) }, $Ha: function(c, d) { c.p("undefined" === typeof d.x ? 0 : d.x, "undefined" === typeof d.y ? 0 : d.y); c.va(Boolean("undefined" === typeof d.visible ? 1 : d.visible)); c.Qm("undefined" === typeof d.objecttag ? -1 : d.objecttag); c.ul("undefined" === typeof d.zorder ? 0 : d.zorder); var f = "undefined" === typeof d.scaley ? 1 : d.scaley; c.gb("undefined" === typeof d.scalex ? 1 : d.scalex); c.pb(f); c.th("undefined" === typeof d.rotation ? 0 : d.rotation) }, pJ: function(c, d) { this.AA = d; this.xY = c }, at: function(c, d) { this.xY && this.xY.call(this.AA, c, d) }, version: B("1.2.0.0"), clear: function() { V.P3.mk(); C.ud.end() } }; V.RNa = V.O.extend({ Bd: u() }); V.Je = { gk: function() { return V.Je }, Bd: function(c, d) { var f = d.ignoreSize; f && c.We(f); c.l3(d.sizeType); c.a3(d.positionType); c.pia(C.d(d.sizePercentX, d.sizePercentY)); c.Z2(C.d(d.positionPercentX, d.positionPercentY)); c.yf(C.size(d.width, d.height)); c.Qm(d.tag); c.ey(d.actiontag); c.vh(d.touchAble); f = d.name; c.Ze(f ? f: "default"); c.p(C.d(d.x, d.y)); (f = d.scalex) && c.gb(f); (f = d.scaleY) && c.pb(f); (f = d.rotation) && c.th(f); (f = d.visible) && c.va(f); c.ul(d.ZOrder); if (d.layoutParameter) { var f = d.layoutParameter, g = s; switch (f.type) { case 1: g = new Ic; g.oc(f.gravity); break; case 2: var h = g = new P; h.IR(f.relativeName); h.JR(f.relativeToName); h.mR(f.align) } g && (g.mo(f.marginLeft, f.marginTop, f.marginRight, f.marginDown), c.ly(g)) } }, lo: function(c, d) { var f = d.opacity; f && c.K(f); c.G(C.color(d.colorR || 255, d.colorG || 255, d.colorB || 255)); c.S(C.d(d.anchorPointX || (c.Jr === V.rqa ? 0.5 : 0), d.anchorPointY || (c.Jr === V.rqa ? 0.5 : 0))) } }; V.D4 = { gk: function() { return V.D4 }, Bd: function(c, d) { V.Je.Bd.call(this, c, d); var f = V.zk.Fa, g = d.scale9Enable; c.uh(g); var h = d.normalData; switch (h.resourceType) { case 0: h = h.path; c.Rx(h && "" !== h ? f + h: s); break; case 1: h = h.path, c.Rx(h, 1) } h = d.pressedData; switch (h.resourceType) { case 0: h = h.path; c.Sx(h && "" !== h ? f + h: s); break; case 1: h = h.path, c.Sx(h, 1) } h = d.disabledData; switch (h.resourceType) { case 0: h = h.path; c.Qx(h && "" !== h ? f + h: s); break; case 1: h = h.path, c.Qx(h, 1) } g && (c.Gc(C.rect(d.capInsetsX, d.capInsetsY, d.capInsetsWidth, d.capInsetsHeight)), f = d.scale9Height, d.scale9Width && f && c.yf(C.size(d.scale9Width, d.scale9Height))); d.text && (f = d.text) && c.vy(f); c.sy(C.color(d.textColorR ? d.textColorR: 255, d.textColorG ? d.textColorG: 255, d.textColorB ? d.textColorB: 255)); d.fontSize && c.uy(d.fontSize); d.fontName && c.ty(d.fontName); V.Je.lo.call(this, c, d) } }; V.l5 = { gk: function() { return V.l5 }, Bd: function(c, d) { V.Je.Bd.call(this, c, d); var f = V.zk.Fa, g = d.backGroundBoxData; switch (g.resourceType) { case 0: g = g.path; c.uC(g && "" !== g ? f + g: s); break; case 1: g = g.path, c.uC(g, 1) } g = d.backGroundBoxSelectedData; switch (g.resourceType) { case 0: g = g.path; c.wC(g && "" !== g ? f + g: s); break; case 1: g = g.path, c.wC(g, 1) } g = d.frontCrossData; switch (g.resourceType) { case 0: g = g.path; c.xC(g && "" !== g ? f + g: s); break; case 1: g = g.path, c.xC(g, 1) } g = d.backGroundBoxDisabledData; switch (g.resourceType) { case 0: g = g.path; c.vC(g && "" !== g ? f + g: s); break; case 1: g = g.path, c.vC(g, 1) } switch (d.frontCrossDisabledData.resourceType) { case 0: g = d.path; c.yC(g && "" !== g ? f + g: s); break; case 1: g = d.path, c.yC(g, 1) } V.Je.lo.call(this, c, d) } }; V.e6 = { gk: function() { return V.e6 }, Bd: function(c, d) { V.Je.Bd.call(this, c, d); var f = V.zk.Fa, g = d.fileNameData; switch (g.resourceType) { case 0: (g = g.path) && "" !== g && c.Sf(f + g); break; case 1: g = g.path, c.Sf(g, 1) } f = t; d.scale9Enable && (f = d.scale9Enable); c.uh(f); f && (f = d.scale9Height, d.scale9Width && f && c.yf(C.size(d.scale9Width, d.scale9Height)), c.Gc(C.rect(d.capInsetsX, d.capInsetsY, d.capInsetsWidth, d.capInsetsHeight))); V.Je.lo.call(this, c, d) } }; V.t6 = { gk: function() { return V.t6 }, Bd: function(c, d) { V.Je.Bd.call(this, c, d); var f = V.zk.Fa, g = d.charMapFileData || d.charMapFile, h = d.itemWidth, k = d.itemHeight, n = d.startCharMap; if (d.stringValue && g && h && k && n) switch (g = d.charMapFileData, g.resourceType) { case 0: c.setProperty(d.stringValue, f + g.path, d.itemWidth, d.itemHeight, d.startCharMap); break; case 1: C.log("Wrong res type of LabelAtlas!") } V.Je.lo.call(this, c, d) } }; V.u6 = { gk: function() { return V.u6 }, Bd: function(c, d) { V.Je.Bd.call(this, c, d); var f = V.zk.Fa, g = d.fileNameData; switch (g.resourceType) { case 0: c.UC(f + g.path); break; case 1: C.log("Wrong res type of LabelAtlas!") } c.PR(d.text); V.Je.lo.call(this, c, d) } }; V.v6 = { gk: function() { return V.v6 }, Bd: function(c, d) { V.Je.Bd.call(this, c, d); c.SR(d.touchScaleEnable); c.sa(d.text); d.fontSize && c.Od(d.fontSize); d.fontName && c.Zd(d.fontName); var f = d.areaHeight; d.areaWidth && f && (f = C.size(d.areaWidth, d.areaHeight), c.ry(f)); d.hAlignment && c.Xu(d.hAlignment); d.vAlignment && c.Yu(d.vAlignment); V.Je.lo.call(this, c, d) } }; V.vK = { gk: function() { return V.vK }, Bd: function(c, d) { V.Je.Bd.call(this, c, d); var f = V.zk.Fa, g = 0, h = 0; d.adaptScreen ? (h = C.Q.aa, g = h.width, h = h.height) : (g = d.width, h = d.height); c.yf(C.size(g, h)); c.aq(d.clipAble); g = d.backGroundScale9Enable; c.rR(g); var h = d.bgColorR, k = d.bgColorG, n = d.bgColorB, p = d.bgStartColorR, r = d.bgStartColorG, v = d.bgStartColorB, y = d.bgEndColorR, z = d.bgEndColorG, D = d.bgEndColorB; c.qR(C.d(d.vectorX, d.vectorY)); var E = d.bgColorOpacity; c.pR(d.colorType); c.Mu(C.color(p, r, v), C.color(y, z, D)); c.Mu(C.color(h, k, n)); c.oR(E); if (h = d.backGroundImageData) switch (h.resourceType) { case 0: h = h.path; c.Nu(h && "" !== h ? f + h: s); break; case 1: h = h.path, c.Nu(h, 1) } g && c.bJ(C.rect(d.capInsetsX, d.capInsetsY, d.capInsetsWidth, d.capInsetsHeight)); c.Pm(d.layoutType); V.Je.lo.call(this, c, d) } }; V.eU = { gk: function() { return V.eU }, Bd: function(c, d) { V.vK.Bd.call(this, c, d); c.ky(C.size(d.innerWidth, d.innerHeight)); c.sh(d.direction); c.vR(d.bounceEnable); V.Je.lo.call(this, c, d) } }; V.z6 = { gk: function() { return V.z6 }, Bd: function(c, d) { V.eU.Bd.call(this, c, d); c.sh(d.direction); c.oc(d.gravity); c.T2(d.itemMargin) } }; V.B6 = { gk: function() { return V.B6 }, Bd: function(c, d) { V.Je.Bd.call(this, c, d); var f = V.zk.Fa, g = d.textureData; switch (g.resourceType) { case 0: (g = g.path) && "" !== g && c.Sf(f + g); break; case 1: g = g.path, c.Sf(g, 1) } f = d.scale9Enable; c.uh(f); f && (c.Gc(C.rect(d.capInsetsX, d.capInsetsY, d.capInsetsWidth, d.capInsetsHeight)), c.yf(C.size(d.width, d.height))); c.sh(d.direction); c.Ci(d.percent); V.Je.lo.call(this, c, d) } }; V.l7 = { $Xa: s, gk: function() { return V.l7 }, Bd: function(c, d) { V.vK.Bd.call(this, c, d) } }; V.L7 = { gk: function() { return V.L7 }, Bd: function(c, d) { V.Je.Bd.call(this, c, d); var f = V.zk.Fa, g = d.scale9Enable; c.uh(g); var h = d.length; if (d.barFileName) { if (g) { var g = d.barFileNameData, k = d.resourceType; switch (k) { case 0: g = (g = g.path) && "" !== g ? f + g: s; c.kk(g); break; case 1: g = g.path, c.kk(g, 1) } c.yf(C.size(h, c.i().height)) } } else switch (g = d.barFileNameData, k = g.resourceType, k) { case 0: g = (g = g.path) && "" !== g ? f + g: s; c.kk(g); break; case 1: g = g.path, c.kk(g, 1) } h = d.ballNormalData; switch (h.resourceType) { case 0: h = h.path; c.sC(h && "" !== h ? f + h: s); break; case 1: h = h.path, c.sC(h, 1) } h = d.ballPressedData; switch (h.resourceType) { case 0: h = h.path; c.tC(h && "" !== h ? f + h: s); break; case 1: h = h.path, c.tC(h, 1) } h = d.ballDisabledData; switch (h.resourceType) { case 0: h = h.path; c.rC(h && "" !== h ? f + h: s); break; case 1: h = h.path, c.rC(h, 1) } h = d.progressBarData; switch (h.resourceType) { case 0: g = (g = h.path) && "" !== g ? f + g: s; c.Eu(g); break; case 1: g = h.path, c.Eu(g, 1) } V.Je.lo.call(this, c, d) } }; V.Y7 = { gk: function() { return V.Y7 }, Bd: function(c, d) { V.Je.Bd.call(this, c, d); var f = d.placeHolder; f && c.Di(f); c.sa(d.text); (f = d.fontSize1) && c.Od(f); (f = d.fontName) && c.Zd(f); var f = d.touchSizeWidth, g = d.touchSizeHeight; f && g && c.u3(f, g); f = d.maxLengthEnable; c.my(f); f && c.qs(d.maxLength); f = d.passwordEnable; c.ny(f); f && c.WC(d.passwordStyleText); f = d.areaWidth; g = d.areaHeight; f && g && (f = C.size(f, g), c.ry(f)); (f = d.hAlignment) && c.Xu(f); (f = d.vAlignment) && c.Yu(f); V.Je.lo.call(this, c, d) } }; function Ed(c, d) { this.name = c; this.parent = d } Ed.prototype = { length: 0, x: 0, y: 0, Rea: q, Qea: q }; function Fd(c, d) { this.name = c; this.boneData = d } Fd.prototype = { TZ: s, PZ: t }; function Gd(c, d) { this.data = c; this.parent = d; this.Zu() } Gd.prototype = { x: 0, y: 0, Im: 0, Rp: 0, Rm: 0, Jm: 0, m11: 0, Sm: 0, LJ: 0, Dy: 1, Ey: 1, lD: function(c, d) { var f = this.parent; f != s ? (this.Rm = this.x * f.Im + this.y * f.Rp + f.Rm, this.Sm = this.x * f.Jm + this.y * f.m11 + f.Sm, this.data.Rea ? (this.Dy = f.Dy * this.scaleX, this.Ey = f.Ey * this.scaleY) : (this.Dy = this.scaleX, this.Ey = this.scaleY), this.LJ = this.data.Qea ? f.LJ + this.rotation: this.rotation) : (this.Rm = c ? -this.x: this.x, this.Sm = d != t ? -this.y: this.y, this.Dy = this.scaleX, this.Ey = this.scaleY, this.LJ = this.rotation); var g = this.LJ * Math.PI / 180, f = Math.cos(g), g = Math.sin(g); this.Im = f * this.Dy; this.Jm = g * this.Dy; this.Rp = -g * this.Ey; this.m11 = f * this.Ey; c && (this.Im = -this.Im, this.Rp = -this.Rp); d != t && (this.Jm = -this.Jm, this.m11 = -this.m11) }, Zu: function() { var c = this.data; this.x = c.x; this.y = c.y; this.rotation = c.rotation; this.scaleX = c.scaleX; this.scaleY = c.scaleY } }; function Hd(c, d, f) { this.data = c; this.wl = d; this.ej = f; this.Zu() } Hd.prototype = { Uqa: 0, Th: s, hy: function(c) { this.Th = c; this.Uqa = this.wl.time }, Zu: function() { var c = this.data; this.r = c.r; this.g = c.g; this.b = c.b; this.a = c.a; for (var d = this.wl.data.zf, f = 0, g = d.length; f < g; f++) if (d[f] == c) { this.hy(!c.TZ ? s: Id(this.wl, f, c.TZ)); break } } }; function Jd(c) { this.name = c; this.XO = {} } Jd.prototype = { JH: function(c, d) { return this.XO[c + ":" + d] } }; function Kd(c, d, f) { this.name = c; this.Yia = d; this.duration = f } Kd.prototype = { apply: function(c, d, f, g, h) { g && 0 != this.duration && (f %= this.duration, d %= this.duration); g = this.Yia; for (var k = 0, n = g.length; k < n; k++) g[k].apply(c, d, f, h, 1) } }; function Ld(c, d, f) { var g = 0, h = Math.floor(c.length / f) - 2; if (0 == h) return f; for (var k = h >>> 1;;) { c[(k + 1) * f] <= d ? g = k + 1 : h = k; if (g == h) return (g + 1) * f; k = g + h >>> 1 } } function Md(c) { this.hj = []; this.hj.length = 6 * (c - 1) } Md.prototype = {}; function Nd(c, d, f) { f = 0 > f ? 0 : 1 < f ? 1 : f; var g = 6 * d, h = c.hj; d = h[g]; if (!d) return f; if ( - 1 == d) return 0; c = h[g + 1]; for (var k = h[g + 2], n = h[g + 3], p = h[g + 4], r = h[g + 5], g = d, h = c, v = 8;;) { if (g >= f) return d = g - d, c = h - c, c + (h - c) * (f - d) / (g - d); if (0 == v) break; v--; d += k; c += n; k += p; n += r; g += d; h += c } return h + (1 - h) * (f - g) / (1 - g) } function Od(c) { this.hj = new Md(c); this.frames = []; this.frames.length = 2 * c } Od.prototype = { qx: 0, Bm: function() { return this.frames.length / 2 }, Om: function(c, d, f) { c *= 2; this.frames[c] = d; this.frames[c + 1] = f }, apply: function(c, d, f, g, h) { d = this.frames; if (! (f < d[0])) { c = c.vd[this.qx]; if (f >= d[d.length - 2]) d = c.data.rotation + d[d.length - 1] - c.rotation; else { var k = Ld(d, f, 2); g = d[k - 1]; var n = d[k]; f = 1 - (f - n) / (d[k - 2] - n); f = Nd(this.hj, k / 2 - 1, f); for (d = d[k + 1] - g; 180 < d;) d -= 360; for (; - 180 > d;) d += 360; d = c.data.rotation + (g + d * f) - c.rotation } for (; 180 < d;) d -= 360; for (; - 180 > d;) d += 360; c.rotation += d * h } } }; function Pd(c) { this.hj = new Md(c); this.frames = []; this.frames.length = 3 * c } Pd.prototype = { qx: 0, Bm: function() { return this.frames.length / 3 }, Om: function(c, d, f, g) { c *= 3; this.frames[c] = d; this.frames[c + 1] = f; this.frames[c + 2] = g }, apply: function(c, d, f, g, h) { d = this.frames; if (! (f < d[0])) if (c = c.vd[this.qx], f >= d[d.length - 3]) c.x += (c.data.x + d[d.length - 2] - c.x) * h, c.y += (c.data.y + d[d.length - 1] - c.y) * h; else { g = Ld(d, f, 3); var k = d[g - 2], n = d[g - 1], p = d[g]; f = 1 - (f - p) / (d[g + -3] - p); f = Nd(this.hj, g / 3 - 1, f); c.x += (c.data.x + k + (d[g + 1] - k) * f - c.x) * h; c.y += (c.data.y + n + (d[g + 2] - n) * f - c.y) * h } } }; function Qd(c) { this.hj = new Md(c); this.frames = []; this.frames.length = 3 * c } Qd.prototype = { qx: 0, Bm: function() { return this.frames.length / 3 }, Om: function(c, d, f, g) { c *= 3; this.frames[c] = d; this.frames[c + 1] = f; this.frames[c + 2] = g }, apply: function(c, d, f, g, h) { d = this.frames; if (! (f < d[0])) if (c = c.vd[this.qx], f >= d[d.length - 3]) c.scaleX += (c.data.scaleX - 1 + d[d.length - 2] - c.scaleX) * h, c.scaleY += (c.data.scaleY - 1 + d[d.length - 1] - c.scaleY) * h; else { g = Ld(d, f, 3); var k = d[g - 2], n = d[g - 1], p = d[g]; f = 1 - (f - p) / (d[g + -3] - p); f = Nd(this.hj, g / 3 - 1, f); c.scaleX += (c.data.scaleX - 1 + k + (d[g + 1] - k) * f - c.scaleX) * h; c.scaleY += (c.data.scaleY - 1 + n + (d[g + 2] - n) * f - c.scaleY) * h } } }; function Rd(c) { this.hj = new Md(c); this.frames = []; this.frames.length = 5 * c } Rd.prototype = { YC: 0, Bm: function() { return this.frames.length / 5 }, Om: function(c, d, f, g, h, k) { c *= 5; this.frames[c] = d; this.frames[c + 1] = f; this.frames[c + 2] = g; this.frames[c + 3] = h; this.frames[c + 4] = k }, apply: function(c, d, f, g, h) { d = this.frames; if (! (f < d[0])) if (c = c.zf[this.YC], f >= d[d.length - 5]) h = d.length - 1, c.r = d[h - 3], c.g = d[h - 2], c.b = d[h - 1], c.a = d[h]; else { g = Ld(d, f, 5); var k = d[g - 4], n = d[g - 3], p = d[g - 2], r = d[g - 1], v = d[g]; f = 1 - (f - v) / (d[g - 5] - v); f = Nd(this.hj, g / 5 - 1, f); k += (d[g + 1] - k) * f; n += (d[g + 2] - n) * f; p += (d[g + 3] - p) * f; d = r + (d[g + 4] - r) * f; 1 > h ? (c.r += (k - c.r) * h, c.g += (n - c.g) * h, c.b += (p - c.b) * h, c.a += (d - c.a) * h) : (c.r = k, c.g = n, c.b = p, c.a = d) } } }; function Sd(c) { this.hj = new Md(c); this.frames = []; this.frames.length = c; this.UZ = []; this.UZ.length = c } Sd.prototype = { YC: 0, Bm: function() { return this.frames.length }, Om: function(c, d, f) { this.frames[c] = d; this.UZ[c] = f }, apply: function(c, d, f) { d = this.frames; f < d[0] || (f = this.UZ[f >= d[d.length - 1] ? d.length - 1 : Ld(d, f, 1) - 1], c.zf[this.YC].hy(!f ? s: Id(c, this.YC, f))) } }; function Td(c) { this.frames = []; this.frames.length = c; this.zm = []; this.zm.length = c } Td.prototype = { Bm: function() { return this.frames.length }, Om: function(c, d, f) { this.frames[c] = d; this.zm[c] = f }, apply: function(c, d, f, g, h) { if (g) { var k = this.frames, n = k.length; if (d > f) this.apply(c, d, Number.MAX_VALUE, g, h), d = -1; else if (d >= k[n - 1]) return; if (! (f < k[0])) { if (d < k[0]) c = 0; else { c = Ld(k, d, 1); for (d = k[c]; 0 < c && k[c - 1] == d;) c-- } for (d = this.zm; c < n && f >= k[c]; c++) g.push(d[c]) } } } }; function Ud(c) { this.frames = []; this.frames.length = c; this.R_ = []; this.R_.length = c } Ud.prototype = { Bm: function() { return this.frames.length }, Om: function(c, d, f) { this.frames[c] = d; this.R_[c] = f }, apply: function(c, d, f) { var g = this.frames; if (! (f < g[0])) { d = c.vu; var h = c.zf; if (f = this.R_[f >= g[g.length - 1] ? g.length - 1 : Ld(g, f, 1) - 1]) { g = 0; for (k = f.length; g < k; g++) d[g] = c.zf[f[g]] } else for (var g = 0, k = h.length; g < k; g++) d[g] = h[g] } } }; function Vd() { this.vd = []; this.zf = []; this.Iia = []; this.zm = []; this.xB = [] } Vd.prototype = { K_: s, HH: function(c) { for (var d = this.vd, f = 0, g = d.length; f < g; f++) if (d[f].name == c) return d[f]; return s }, xda: function(c) { for (var d = this.vd, f = 0, g = d.length; f < g; f++) if (d[f].name == c) return f; return - 1 }, h0: function(c) { for (var d = this.zf, f = 0, g = d.length; f < g; f++) if (d[f].name == c) return d[f]; return s }, IH: function(c) { for (var d = this.zf, f = 0, g = d.length; f < g; f++) if (d[f].name == c) return f; return - 1 } }; function Wd(c, d) { for (var f = c.xB, g = 0, h = f.length; g < h; g++) if (f[g].name == d) return f[g]; return s } function Xd(c) { this.data = c; this.vd = []; for (var d = 0, f = c.vd.length; d < f; d++) { var g = c.vd[d]; this.vd.push(new Gd(g, !g.parent ? s: this.vd[c.vd.indexOf(g.parent)])) } this.zf = []; this.vu = []; d = 0; for (f = c.zf.length; d < f; d++) g = c.zf[d], g = new Hd(g, this, this.vd[c.vd.indexOf(g.boneData)]), this.zf.push(g), this.vu.push(g) } Xd.prototype = { x: 0, y: 0, wJ: s, time: 0, Ada: t, Bda: t, lD: function() { for (var c = this.Ada, d = this.Bda, f = this.vd, g = 0, h = f.length; g < h; g++) f[g].lD(c, d) }, Zu: function() { this.F2(); this.m3() }, F2: function() { for (var c = this.vd, d = 0, f = c.length; d < f; d++) c[d].Zu() }, m3: function() { for (var c = this.zf, d = 0, f = c.length; d < f; d++) c[d].Zu(d) }, HH: function(c) { for (var d = this.vd, f = 0, g = d.length; f < g; f++) if (d[f].data.name == c) return d[f]; return s }, xda: function(c) { for (var d = this.vd, f = 0, g = d.length; f < g; f++) if (d[f].data.name == c) return f; return - 1 }, h0: function(c) { for (var d = this.zf, f = 0, g = d.length; f < g; f++) if (d[f].data.name == c) return d[f]; return s }, IH: function(c) { for (var d = this.zf, f = 0, g = d.length; f < g; f++) if (d[f].data.name == c) return f; return - 1 }, ria: function(c) { if (this.wJ && c) { var d = this.wJ; console.log(d.XO); for (var f in d.XO) { var g = f.indexOf(":"), d = parseInt(f.substring(0, g)), h = f.substring(g + 1), g = this.zf[d]; g.Th && g.Th.name == h && (d = c.JH(d, h)) && g.hy(d) } } this.wJ = c }, hy: function(c, d) { for (var f = this.zf, g = 0, h = f.length; g < h; g++) { var k = f[g]; if (k.data.name == c) { f = s; d && ((f = this.JH(g, d)) || e("Attachment not found: " + d + ", for slot: " + c)); k.hy(f); return } } e("Slot not found: " + c) }, update: function(c) { this.time += c } }; function Id(c, d, f) { if (c.wJ) { var g = c.wJ.JH(d, f); if (g) return g } return c.data.K_ ? c.data.K_.JH(d, f) : s } function Yd(c) { this.name = c } Yd.prototype = { jQ: 0, uP: 0, stringValue: s }; function Zd(c) { this.data = c } Zd.prototype = { jQ: 0, uP: 0, stringValue: s }; var $d = { region: 0, vxa: 1 }; function ae(c) { this.name = c; this.offset = []; this.offset.length = 8; this.fq = []; this.fq.length = 8 } ae.prototype = { x: 0, y: 0, cy: s, Gga: 0, Hga: 0, Kga: 0, Fga: 0, Jga: 0, Iga: 0 }; function be(c, d, f, g, h) { d += g.Rm; f += g.Sm; var k = g.Im, n = g.Rp, p = g.Jm; g = g.m11; c = c.offset; h[0] = c[0] * k + c[1] * n + d; h[1] = c[0] * p + c[1] * g + f; h[2] = c[2] * k + c[3] * n + d; h[3] = c[2] * p + c[3] * g + f; h[4] = c[4] * k + c[5] * n + d; h[5] = c[4] * p + c[5] * g + f; h[6] = c[6] * k + c[7] * n + d; h[7] = c[6] * p + c[7] * g + f } function de(c) { this.name = c; this.m = [] } de.prototype = {}; function ee(c) { this.Hia = c; this.Bca = {} } ee.prototype = { xya: 0, Pha: function(c, d, f) { this.Bca[c.name + ":" + d.name] = f } }; function fe(c, d, f) { return (d = c.Bca[d.name + ":" + f.name]) ? d: c.xya } function ge() {} ge.prototype = { next: s, Hu: s, td: s, wm: 0, time: 0, oC: -1, Cx: 0, N3: 1, zI: 0, HQ: 0, Vp: s, Up: s, DC: s, EC: s }; function he(c) { this.data = c; this.Yh = []; this.zm = [] } he.prototype = { Vp: s, Up: s, DC: s, EC: s, N3: 1, update: function(c) { c *= this.N3; for (var d = 0; d < this.Yh.length; d++) { var f = this.Yh[d]; if (f) { var g = c * f.N3; f.time += g; f.Hu && (f.Hu.time += g, f.zI += g); (g = f.next) ? f.oC >= g.wm && ie(this, d, g) : !f.loop && f.oC >= f.Cx && this.fP(d) } } }, apply: function(c) { for (var d = 0; d < this.Yh.length; d++) { var f = this.Yh[d]; if (f) { this.zm.length = 0; var g = f.time, h = f.oC, k = f.Cx, n = f.loop; ! n && g > k && (g = k); var p = f.Hu; if (p) { var r = p.time; ! p.loop && r > p.Cx && (r = p.Cx); p.td.apply(c, r, r, p.loop, s); var v = f.zI / f.HQ; 1 <= v && (v = 1, f.Hu = s); var y = f.td, p = c, r = f.oC, z = g, D = this.zm; n && 0 != y.duration && (z %= y.duration, r %= y.duration); for (var y = y.Yia, E = 0, F = y.length; E < F; E++) y[E].apply(p, r, z, D, v) } else f.td.apply(c, f.oC, g, n, this.zm); p = 0; for (r = this.zm.length; p < r; p++) z = this.zm[p], f.EC != s && f.EC(d, z), this.EC != s && this.EC(d, z); if (n ? h % k > g % k: h < k && g >= k) g = Math.floor(g / k), f.DC && f.DC(d, g), this.DC && this.DC(d, g); f.oC = f.time } } }, Qca: function() { for (var c = 0, d = this.Yh.length; c < d; c++) this.fP(c); this.Yh.length = 0 }, fP: function(c) { if (! (c >= this.Yh.length)) { var d = this.Yh[c]; d && (d.Up != s && d.Up(c), this.Up != s && this.Up(c), this.Yh[c] = s) } }, gy: function(c, d, f) { var g = new ge; g.td = d; g.loop = f; g.Cx = d.duration; ie(this, c, g); return g }, lH: function(c, d, f, g) { var h = new ge; h.td = d; h.loop = f; h.Cx = d.duration; if (f = je(this, c)) { for (; f.next;) f = f.next; f.next = h } else this.Yh[c] = h; 0 >= g && (g = f ? g + (f.Cx - fe(this.data, f.td, d)) : 0); h.wm = g; return h }, Sda: function(c) { return c >= this.Yh.length ? s: this.Yh[c] } }; function ie(c, d, f) { var g = je(c, d); if (g) { var h = g.Hu; g.Hu = s; g.Up != s && g.Up(d); c.Up != s && c.Up(d); f.HQ = fe(c.data, g.td, f.td); 0 < f.HQ && (f.zI = 0, f.Hu = h && 0.5 > g.zI / g.HQ ? h: g) } c.Yh[d] = f; f.Vp != s && f.Vp(d); c.Vp != s && c.Vp(d) } function je(c, d) { if (d < c.Yh.length) return c.Yh[d]; for (; d >= c.Yh.length;) c.Yh.push(s); return s } function ke(c) { this.cxa = c } ke.prototype = {}; function le(c, d, f) { var g = f.curve; if (g) if ("stepped" == g) c.hj.hj[6 * d] = -1; else if (g instanceof Array) { f = g[0]; var h = g[1], k = g[2], n = g[3], p = 0.1 * 0.1, g = 0.1 * p, r = 3 * 0.1, v = 3 * p, p = 6 * p, y = 6 * g, z = 2 * -f + k, D = 2 * -h + n, k = 3 * (f - k) + 1, n = 3 * (h - n) + 1; d *= 6; c = c.hj.hj; c[d] = f * r + z * v + k * g; c[d + 1] = h * r + D * v + n * g; c[d + 2] = z * p + k * y; c[d + 3] = D * p + n * y; c[d + 4] = k * y; c[d + 5] = n * y } } function me(c, d) { 8 != c.length && e("Color hexidecimal length must be 8, recieved: " + c); return parseInt(c.substring(2 * d, 2 * d + 2), 16) / 255 } function ne(c, d) { this.n6a = d; this.WEa = []; this.Lga = []; var f = new oe(c), g = []; g.length = 4; for (var h = s;;) { var k = pe(f); if (k == s) break; k = f.trim(k); if (0 == k.length) h = s; else if (h) { var n = new qe; n.name = k; n.page = h; n.rotate = "true" == re(f); se(f, g); var k = parseInt(g[0]), p = parseInt(g[1]); se(f, g); var r = parseInt(g[0]), v = parseInt(g[1]); n.xa = k / h.width; n.ea = p / h.height; n.rotate ? (n.T3 = (k + v) / h.width, n.a4 = (p + r) / h.height) : (n.T3 = (k + r) / h.width, n.a4 = (p + v) / h.height); n.x = k; n.y = p; n.width = Math.abs(r); n.height = Math.abs(v); 4 == se(f, g) && (n.KIa = [parseInt(g[0]), parseInt(g[1]), parseInt(g[2]), parseInt(g[3])], 4 == se(f, g) && (n.VEa = [parseInt(g[0]), parseInt(g[1]), parseInt(g[2]), parseInt(g[3])], se(f, g))); n.hga = parseInt(g[0]); n.gga = parseInt(g[1]); se(f, g); n.offsetX = parseInt(g[0]); n.offsetY = parseInt(g[1]); n.index = parseInt(re(f)); this.Lga.push(n) } else h = new te, h.name = k, h.Nza = ue[re(f)], se(f, g), h.Qfa = ve[g[0]], h.Nfa = ve[g[1]], n = re(f), h.U3 = we, h.b4 = we, "x" == n ? h.U3 = xe: "y" == n ? h.b4 = xe: "xy" == n && (h.U3 = h.b4 = xe), d.load(h, k, this), this.WEa.push(h) } } ne.prototype = {}; var ue = { wKa: 0, $La: 1, sMa: 2, RGB565: 3, YMa: 4, XMa: 5, ZMa: 6 }, ve = { BMa: 0, sv: 1, vMa: 2, zMa: 3, xMa: 4, yMa: 5, wMa: 6 }, we = 1, xe = 2; function te() {} te.prototype = { Nza: s, Qfa: s, Nfa: s, U3: s, b4: s, cy: s }; function qe() {} qe.prototype = { page: s, x: 0, y: 0, xa: 0, ea: 0, T3: 0, a4: 0, hga: 0, gga: 0, index: 0, rotate: t, KIa: s, VEa: s }; function oe(c) { this.Hfa = c.split(/\r\n|\r|\n/) } oe.prototype = { index: 0, trim: function(c) { return c.replace(/^\s+|\s+$/g, "") } }; function se(c, d) { var f = pe(c), g = f.indexOf(":"); - 1 == g && e("Invalid line: " + f); for (var h = 0, g = g + 1; 3 > h; h++) { var k = f.indexOf(",", g); if ( - 1 == k) { 0 == h && e("Invalid line: " + f); break } d[h] = c.trim(f.substr(g, k - g)); g = k + 1 } d[h] = c.trim(f.substring(g)); return h + 1 } function re(c) { var d = pe(c), f = d.indexOf(":"); - 1 == f && e("Invalid line: " + d); return c.trim(d.substring(f + 1)) } function pe(c) { return c.index >= c.Hfa.length ? s: c.Hfa[c.index++] } function ye(c) { this.$wa = c } ye.prototype = {}; var Be = C.ha.extend({ he: s, Iua: s, fu: 1, UL: t, TL: t, EN: t, cua: s, $Na: s, C: s, ctor: function() { C.ha.prototype.ctor.call(this); this.C = { src: C.Ic, ga: C.Hc } }, j: function() { C.A.prototype.j.call(this); this.$d(q); this.C.src = C.ONE; this.C.ga = C.ONE_MINUS_SRC_ALPHA; C.L === C.la && this.mJ(C.ug.Xd(C.Co)); this.Lu() }, P3a: x("UL"), O3a: x("TL"), sIa: x("fu"), cQ: function(c, d, f) { var g, h, k, n; if ("string" == typeof c) { if ("string" == typeof d) { var p = C.M.xd(d); ze.aHa(d); h = new ne(p, ze) } else h = d; k = f || 1 / C.Q.Ul; var r = new ke(new ye(h)); r.scale = k; for (var v = C.M.xd(c), y = new Vd, z = v.bones, D = 0, E = z.length; D < E; D++) { var F = z[D], G = s; F.parent && ((G = y.HH(F.parent)) || e("Parent bone not found: " + F.parent)); var K = new Ed(F.name, G); K.length = (F.length || 0) * r.scale; K.x = (F.x || 0) * r.scale; K.y = (F.y || 0) * r.scale; K.rotation = F.rotation || 0; K.scaleX = F.scaleX || 1; K.scaleY = F.scaleY || 1; K.Rea = !F.inheritScale || "true" == F.inheritScale; K.Qea = !F.inheritRotation || "true" == F.inheritRotation; y.vd.push(K) } for (var O = v.slots, D = 0, E = O.length; D < E; D++) { var U = O[D]; (K = y.HH(U.bone)) || e("Slot bone not found: " + U.bone); var X = new Fd(U.name, K), N = U.color; N && (X.r = me(N, 0), X.g = me(N, 1), X.b = me(N, 2), X.a = me(N, 3)); X.TZ = U.attachment; X.PZ = U.additive && "true" == U.additive; y.zf.push(X) } var Q = v.skins, S; for (S in Q) if (Q.hasOwnProperty(S)) { var M = Q[S], R = new Jd(S), $; for ($ in M) if (M.hasOwnProperty($)) { var sa = y.IH($), aa = M[$], ta; for (ta in aa) if (aa.hasOwnProperty(ta)) { var ma, ba = r, xa = ta, ca = aa[ta], xa = ca.name || xa, Ma = $d[ca.type || "region"], W = m; a: { switch (Ma) { case $d.vxa: W = new de(xa); break a; case $d.region: var pa; b: { for (var hb = ba.cxa.$wa.Lga, Na = 0, Gb = hb.length; Na < Gb; Na++) if (hb[Na].name == xa) { pa = hb[Na]; break b } pa = s } pa || e("Region not found in atlas: " + xa + " (" + Ma + ")"); var Aa = new ae(xa); Aa.cy = pa; var fb = pa.xa, gb = pa.ea, Ka = pa.T3, Ab = pa.a4, va = Aa.fq; pa.rotate ? (va[2] = fb, va[3] = Ab, va[4] = fb, va[5] = gb, va[6] = Ka, va[7] = gb, va[0] = Ka, va[1] = Ab) : (va[0] = fb, va[1] = Ab, va[2] = fb, va[3] = gb, va[4] = Ka, va[5] = gb, va[6] = Ka, va[7] = Ab); Aa.Gga = pa.offsetX; Aa.Hga = pa.offsetY; Aa.Kga = pa.width; Aa.Fga = pa.height; Aa.Jga = pa.hga; Aa.Iga = pa.gga; W = Aa; break a } e("Unknown attachment type: " + Ma) } if (Ma == $d.region) { W.x = (ca.x || 0) * ba.scale; W.y = (ca.y || 0) * ba.scale; W.scaleX = ca.scaleX || 1; W.scaleY = ca.scaleY || 1; W.rotation = ca.rotation || 0; W.width = (ca.width || 32) * ba.scale; W.height = (ca.height || 32) * ba.scale; var Oc = W.width / W.Jga * W.scaleX, Pc = W.height / W.Iga * W.scaleY, cc = -W.width / 2 * W.scaleX + W.Gga * Oc, dc = -W.height / 2 * W.scaleY + W.Hga * Pc, Qc = cc + W.Kga * Oc, Rc = dc + W.Fga * Pc, Sc = W.rotation * Math.PI / 180, Bb = Math.cos(Sc), Cb = Math.sin(Sc), Tc = cc * Bb + W.x, Uc = cc * Cb, Vc = dc * Bb + W.y, Wc = dc * Cb, Xc = Qc * Bb + W.x, Yc = Qc * Cb, Zc = Rc * Bb + W.y, $c = Rc * Cb, Ra = W.offset; Ra[0] = Tc - Wc; Ra[1] = Vc + Uc; Ra[2] = Tc - $c; Ra[3] = Zc + Uc; Ra[4] = Xc - $c; Ra[5] = Zc + Yc; Ra[6] = Xc - Wc; Ra[7] = Vc + Yc } else if (Ma == $d.i_) for (var ad = ca.vertices, hc = 0, ce = ad.length; hc < ce; hc++) W.m.push(ad[hc] * ba.scale); ma = W; ma != s && (R.XO[sa + ":" + ta] = ma) } } y.Iia.push(R); "default" == R.name && (y.K_ = R) } var ec = v.events, Db; for (Db in ec) if (ec.hasOwnProperty(Db)) { var fc = ec[Db], Eb = new Yd(Db); Eb.jQ = fc["int"] || 0; Eb.uP = fc["float"] || 0; Eb.stringValue = fc.string || s; y.zm.push(Eb) } var gc = v.animations, Fb; for (Fb in gc) if (gc.hasOwnProperty(Fb)) { var Oe = r, Pe = Fb, Pb = gc[Fb], mb = y, bb = [], Fa = 0, xc = Pb.bones, nb = m; for (nb in xc) if (xc.hasOwnProperty(nb)) { var yc = mb.xda(nb); - 1 == yc && e("Bone not found: " + nb); var zc = xc[nb], Ba; for (Ba in zc) if (zc.hasOwnProperty(Ba)) { var Ca = zc[Ba]; if ("rotate" == Ba) { var Z = new Od(Ca.length); Z.qx = yc; for (var ua = 0, ia = 0, Ia = Ca.length; ia < Ia; ia++) { var ya = Ca[ia]; Z.Om(ua, ya.time, ya.angle); le(Z, ua, ya); ua++ } bb.push(Z); Fa = Math.max(Fa, Z.frames[2 * Z.Bm() - 2]) } else if ("translate" == Ba || "scale" == Ba) { var Ac = 1; "scale" == Ba ? Z = new Qd(Ca.length) : (Z = new Pd(Ca.length), Ac = Oe.scale); Z.qx = yc; ia = ua = 0; for (Ia = Ca.length; ia < Ia; ia++) ya = Ca[ia], Z.Om(ua, ya.time, (ya.x || 0) * Ac, (ya.y || 0) * Ac), le(Z, ua, ya), ua++; bb.push(Z); Fa = Math.max(Fa, Z.frames[3 * Z.Bm() - 3]) } else e("Invalid timeline type for a bone: " + Ba + " (" + nb + ")") } } var Bc = Pb.slots, ub = m; for (ub in Bc) if (Bc.hasOwnProperty(ub)) { var Cc = Bc[ub], vb = mb.IH(ub); for (Ba in Cc) if (Cc.hasOwnProperty(Ba)) if (Ca = Cc[Ba], "color" == Ba) { Z = new Rd(Ca.length); Z.YC = vb; ia = ua = 0; for (Ia = Ca.length; ia < Ia; ia++) { var ya = Ca[ia], Qb = ya.color, Qe = me(Qb, 0), Re = me(Qb, 1), Se = me(Qb, 2), Te = me(Qb, 3); Z.Om(ua, ya.time, Qe, Re, Se, Te); le(Z, ua, ya); ua++ } bb.push(Z); Fa = Math.max(Fa, Z.frames[5 * Z.Bm() - 5]) } else if ("attachment" == Ba) { Z = new Sd(Ca.length); Z.YC = vb; ia = ua = 0; for (Ia = Ca.length; ia < Ia; ia++) ya = Ca[ia], Z.Om(ua++, ya.time, ya.name); bb.push(Z); Fa = Math.max(Fa, Z.frames[Z.Bm() - 1]) } else e("Invalid timeline type for a slot: " + Ba + " (" + ub + ")") } var Rb = Pb.events; if (Rb) { Z = new Td(Rb.length); ia = ua = 0; for (Ia = Rb.length; ia < Ia; ia++) { var Qa = Rb[ia], cb; a: { for (var Dc = mb.zm, Sb = 0, Ue = Dc.length; Sb < Ue; Sb++) if (Dc[Sb].name == Qa.name) { cb = Dc[Sb]; break a } cb = s } cb || e("Event not found: " + Qa.name); var Tb = new Zd(cb); Tb.jQ = Qa.hasOwnProperty("int") ? Qa["int"] : cb.jQ; Tb.uP = Qa.hasOwnProperty("float") ? Qa["float"] : cb.uP; Tb.stringValue = Qa.hasOwnProperty("string") ? Qa.string: cb.stringValue; Z.Om(ua++, Qa.time, Tb) } bb.push(Z); Fa = Math.max(Fa, Z.frames[Z.Bm() - 1]) } var Ub = Pb.draworder; if (Ub) { for (var Z = new Ud(Ub.length), wb = mb.zf.length, ia = ua = 0, Ia = Ub.length; ia < Ia; ia++) { var Ec = Ub[ia], db = s; if (Ec.offsets) { db = []; db.length = wb; for (var Ga = wb - 1; 0 <= Ga; Ga--) db[Ga] = -1; var Fc = Ec.offsets, Vb = []; Vb.length = wb - Fc.length; for (var ob = 0, Gc = 0, Ga = 0, Ve = Fc.length; Ga < Ve; Ga++) { var Hc = Fc[Ga], vb = mb.IH(Hc.slot); for ( - 1 == vb && e("Slot not found: " + Hc.slot); ob != vb;) Vb[Gc++] = ob++; db[ob + Hc.offset] = ob++ } for (; ob < wb;) Vb[Gc++] = ob++; for (Ga = wb - 1; 0 <= Ga; Ga--) - 1 == db[Ga] && (db[Ga] = Vb[--Gc]) } Z.Om(ua++, Ec.time, db) } bb.push(Z); Fa = Math.max(Fa, Z.frames[Z.Bm() - 1]) } mb.xB.push(new Kd(Pe, bb, Fa)) } g = y; n = q } else g = c, n = d; this.mIa(g, n); this.j() }, i_: function() { for (var c = C.pv, d = C.pv, f = C.O5, g = C.O5, h = this.ia, k = this.pa, n = [], p = this.he.zf, r = 0, v = p.length; r < v; ++r) { var y = p[r]; if (y.Th && 0 == y.Th.type) { var z = y.wl.x, D = y.wl.y, E = y.ej, F = n, y = y.Th.offset, z = z + E.Rm, D = D + E.Sm; F[0] = y[0] * E.Im + y[1] * E.Rp + z; F[1] = y[0] * E.Jm + y[1] * E.m11 + D; F[2] = y[2] * E.Im + y[3] * E.Rp + z; F[3] = y[2] * E.Jm + y[3] * E.m11 + D; F[4] = y[4] * E.Im + y[5] * E.Rp + z; F[5] = y[4] * E.Jm + y[5] * E.m11 + D; F[6] = y[6] * E.Im + y[7] * E.Rp + z; F[7] = y[6] * E.Jm + y[7] * E.m11 + D; c = Math.min(c, n[0] * h, n[6] * h, n[2] * h, n[4] * h); d = Math.min(d, n[1] * k, n[7] * k, n[3] * k, n[5] * k); f = Math.max(f, n[0] * h, n[6] * h, n[2] * h, n[4] * h); g = Math.max(g, n[1] * k, n[7] * k, n[3] * k, n[5] * k) } } h = this.Ld(); return C.rect(h.x + c, h.y + d, f - c, g - d) }, lD: function() { this.he.lD() }, Zu: function() { this.he.Zu() }, F2: function() { this.he.F2() }, m3: function() { this.he.m3() }, HH: function(c) { return this.he.HH(c) }, h0: function(c) { return this.he.h0(c) }, ria: function(c) { var d = this.he, f; a: { f = d.data.Iia; for (var g = 0, h = f.length; g < h; g++) if (f[g].name == c) { f = f[g]; break a } f = s } f || e("Skin not found: " + c); d.ria(f) }, JH: function(c, d) { return Id(this.he, this.he.data.IH(c), d) }, hy: function(c, d) { return this.he.hy(c, d) }, $d: x("EN"), qg: A("EN"), mIa: function(c, d) { this.he = new Xd(c); this.Iua = 0 == this.he.vd.length ? s: this.he.vd[0]; this.cua = d; if (C.L === C.cb) for (var f = this.he, g, h, k = 0, n = f.vu.length; k < n; k++) { var p = f.vu[k]; g = p.Th; g instanceof ae && (g = g.cy, h = C.rect(g.x, g.y, g.width, g.height), g = C.u.create(g.page.da, h, g.rotate), this.q(g, -1), p.dda = g) } }, VH: function(c) { return c.cy.page.cy }, ek: A("C"), Yd: x("C"), update: function(c) { this.he.update(c); if (C.L === C.cb) { this.Xa(); this.he.lD(); c = this.he.vu; for (var d = 0, f = c.length; d < f; d++) { var g = c[d], h = g.Th, k = g.dda; if (h instanceof ae) { if (!k) { var n = h.cy, p = C.rect(n.x, n.y, n.width, n.height), n = C.u.create(n.page.da, p, n.rotate); this.q(n, -1); g.dda = n } k.va(q); k.Yd(C.Ic, g.data.PZ ? C.ONE: C.Hc); n = g.ej; k.p(n.Rm + h.x * n.Im + h.y * n.Rp, n.Sm + h.x * n.Jm + h.y * n.m11); k.Za(n.Dy, n.Ey); k.th( - (g.ej.LJ + h.rotation)) } else k && k.va(t) } } }, ka: s, gn: function() { C.BC(this); var c = this.Xa(), d = this.he; d.r = c.r / 255; d.g = c.g / 255; d.b = c.b / 255; d.a = this.rb() / 255; this.EN && (d.r *= d.a, d.g *= d.a, d.b *= d.a); var f, g, h, k, n, p = new C.Uc, r = this.C, c = 0; for (n = d.zf.length; c < n; c++) if (k = d.vu[c], k.Th && 0 == k.Th.type) { h = k.Th; var v = this.VH(h); k.data.PZ != f ? (g && (g.KB(), g.NC()), f = !f, C.Gm(r.src, f ? C.ONE: r.ga)) : v != g && g && (g.KB(), g.NC()); g = v; v = g.Sb; if (g.Yf == v && (g.KB(), g.NC(), !g.eR(2 * g.Yf))) return; Ae(h, k, p, this.EN); g.HJ(p, v) } g && (g.KB(), g.NC()); f = C.Df; if (this.UL) { f.tj(0, 0, 255, 255); f.Su(1); c = 0; for (n = d.zf.length; c < n; c++) k = d.vu[c], k.Th && 0 == k.Th.type && (h = k.Th, p = new C.Uc, Ae(h, k, p), g = [], g.push(C.d(p.T.m.x, p.T.m.y)), g.push(C.d(p.Y.m.x, p.Y.m.y)), g.push(C.d(p.V.m.x, p.V.m.y)), g.push(C.d(p.X.m.x, p.X.m.y)), f.Of(g, 4, q)) } if (this.TL) { f.Su(2); f.tj(255, 0, 0, 255); c = 0; for (n = d.vd.length; c < n; c++) p = d.vd[c], g = p.data.length * p.Im + p.Rm, h = p.data.length * p.Jm + p.Sm, f.Tn(C.d(p.Rm, p.Sm), C.d(g, h)); f.Y2(4); f.tj(0, 0, 255, 255); c = 0; for (n = d.vd.length; c < n; c++) p = d.vd[c], f.S_(C.d(p.Rm, p.Sm)), 0 == c && f.tj(0, 255, 0, 255) } }, Qq: function() { if (this.UL || this.TL) { var c = this.he, d, f, g, h, k = C.Df; if (this.UL) { k.tj(0, 0, 255, 255); k.Su(1); var n = []; g = 0; for (h = c.zf.length; g < h; g++) if (f = c.vu[g], f.Th && 0 == f.Th.type) { d = f.Th; var p = n; if (p) { var r = {}; be(d, f.wl.x, f.wl.y, f.ej, r); p.length = 0; p.push(C.d(r[0], r[1])); p.push(C.d(r[6], r[7])); p.push(C.d(r[4], r[5])); p.push(C.d(r[2], r[3])) } k.Of(n, 4, q) } } if (this.TL) { k.Su(2); k.tj(255, 0, 0, 255); g = 0; for (h = c.vd.length; g < h; g++) d = c.vd[g], f = d.data.length * d.Im + d.Rm, n = d.data.length * d.Jm + d.Sm, k.Tn(C.d(d.Rm, d.Sm), C.d(f, n)); k.Y2(4); k.tj(0, 0, 255, 255); g = 0; for (h = c.vd.length; g < h; g++) d = c.vd[g], k.S_(C.d(d.Rm, d.Sm)), 0 === g && k.tj(0, 255, 0, 255) } } } }); Be.prototype.ka = C.L === C.la ? Be.prototype.gn: Be.prototype.Qq; Be.Zxa = function(c, d) { var f = new Be; f.cQ.apply(f, arguments); return f }; Be.create = function(c, d, f) { var g = new Be; g.cQ.apply(g, arguments); return g }; var ze = { Kia: s, aHa: x("Kia"), load: function(c, d) { var f = C.path.join(C.path.dirname(this.Kia), d); C.L === C.la ? (f = C.kb.sd(f), c.cy = C.uq.create(f, 128), c.width = f.w0(), c.height = f.v0()) : c.da = C.kb.sd(f) }, A6a: u() }; function Ae(c, d, f, g) { var h = {}; be(c, d.wl.x, d.wl.y, d.ej, h); var k = 255 * d.wl.r * d.r, n = 255 * d.wl.g * d.g, p = 255 * d.wl.b * d.b; d = d.wl.a * d.a; g && (k *= d, n *= d, p *= d); f.T.F.r = f.X.F.r = f.V.F.r = f.Y.F.r = k; f.T.F.g = f.X.F.g = f.V.F.g = f.Y.F.g = n; f.T.F.b = f.X.F.b = f.V.F.b = f.Y.F.b = p; f.T.F.a = f.X.F.a = f.V.F.a = f.Y.F.a = 255 * d; f.T.m.x = h[0]; f.T.m.y = h[1]; f.X.m.x = h[2]; f.X.m.y = h[3]; f.V.m.x = h[4]; f.V.m.y = h[5]; f.Y.m.x = h[6]; f.Y.m.y = h[7]; f.T.v.xa = c.fq[0]; f.T.v.ea = c.fq[1]; f.X.v.xa = c.fq[2]; f.X.v.ea = c.fq[3]; f.V.v.xa = c.fq[4]; f.V.v.ea = c.fq[5]; f.Y.v.xa = c.fq[6]; f.Y.v.ea = c.fq[7] } var Ce = Be.extend({ zb: s, Xc: s, Xf: s, j: function() { this._super(); this.ZGa(new ee(this.he.data)) }, ZGa: function(c) { c = new he(c); c.Vp = this.Pta.bind(this); c.DC = this.Mta.bind(this); c.Up = this.Nta.bind(this); c.EC = this.Ota.bind(this); this.zb = c }, Pha: function(c, d, f) { var g = this.zb.data, h = Wd(g.Hia, c); h || e("Animation not found: " + c); (c = Wd(g.Hia, d)) || e("Animation not found: " + d); g.Pha(h, c, f) }, o3a: function(c, d) { this.Xc = c; this.Xf = d }, gy: function(c, d, f) { var g = Wd(this.he.data, d); return ! g ? (C.log("Spine: Animation not found: " + d), 0) : this.zb.gy(c, g, f) }, lH: function(c, d, f, g) { var h = Wd(this.he.data, d); return ! h ? (C.log("Spine: Animation not found:" + d), 0) : this.zb.lH(c, h, f, g) }, Sda: function(c) { return this.zb.Sda(c) }, Qca: function() { this.zb.Qca() }, fP: function(c) { this.zb.fP(c) }, update: function(c) { this._super(c); c *= this.fu; this.zb.update(c); this.zb.apply(this.he); this.he.lD() }, Pta: function(c) { this.kL(c, 0, s, 0) }, Nta: function(c) { this.kL(c, 1, s, 0) }, Mta: function(c, d) { this.kL(c, 2, s, d) }, Ota: function(c, d) { this.kL(c, 3, d, 0) }, kL: function(c, d, f, g) { this.Xc && this.Xf && this.Xf.call(this.Xc, this, c, d, f, g) } }); Ce.Zxa = function(c) { var d = new Ce; d.cQ.apply(d, arguments); return d }; Ce.create = function(c, d, f) { var g = new Ce; g.cQ.apply(g, arguments); return g }; C.i1a = { jp: {}, w1a: function(c) { if (c instanceof C.A) { var d = c.constructor.prototype.YU; if (!d) { var f = { writable: q, enumerable: t, configurable: q }; f.value = ha.eea(); Object.defineProperty(c.constructor.prototype, "__pid", f) } this.jp[d] || (this.jp[d] = []); c.C6a(); this.jp[d].push(c) } }, BCa: function(c) { c = this.jp[c.prototype.YU]; return ! c || 0 == c.length ? t: q }, j2a: function(c) { var d = c.constructor.prototype.YU; if (d && (d = this.jp[d])) for (var f = 0; f < d.length; f++) c === d[f] && (c.rh(), d.splice(f, 1)) }, LUa: function(c) { if (this.BCa(c)) { var d = this.jp[c.prototype.YU], f = Array.prototype.slice.call(arguments); f.shift(); d = d.pop(); d.gR.apply(d, f); return d } }, MRa: function() { for (var c in this.jp) for (var d = 0; d < this.jp[c].length; d++) this.jp[c][d].rh(); this.jp = {} } }; var I = { Nwa: "res/anglebg.png", Mwa: "res/angle.png", DQa: "res/box.png", t_: "res/char1.png", ofa: "res/kiss1.png", LDa: "res/kiss2.png", xH: "res/closebtn.png", Rca: "res/cloud.png", Ffa: "res/lastword.png", Dda: "res/floor.png", IXa: "res/height.png", R0: "res/morebtn2.png", FCa: "res/help.png", LXa: "res/highscorebg.png", KXa: "res/highscore.png", FDa: "res/jiesuan.png", Mfa: "res/logo.png", b0a: "res/m.png", Z1: "res/startbtn.png", vga: "res/powerdi.png", uga: "res/power.png", Lia: "res/speedline.png", e4: "res/again.png", f4: "res/morebtn.png", Bxa: "res/char.plist", Cxa: "res/char.png", XR: "res/skycity.png", Gfa: "res/light.png", Jca: "res/boom.wav", dP: "res/choose.wav", tda: "res/fall.wav", Fda: "res/fly.wav", vja: "res/kiss.wav", Dca: "res/arrow.png", Jea: "res/hand.png", z1: "res/lips.png" }, De = [I.Mfa, I.XR, I.t_, I.Z1, I.R0, I.xH], Ee = [I.XR, I.t_, I.Rca, I.Bxa, I.Cxa, I.Lia, I.Ffa, I.e4, I.f4, I.vga, I.uga, I.Gfa, I.ofa, I.LDa, I.dP, I.tda, I.vja, I.Jca, I.Fda, I.Dca, I.Jea, I.z1]; var Fe = 640, Ge = 960, Y = 1, He = 1, Ie = "\u4e07\u4e07\u6ca1\u60f3\u5230\uff0c\u6211\u6454\u6b7b\u4e86 \u64e6\u64e6\uff0c\u6211\u5c45\u7136\u6b7b\u4e86 \u6211\u60f3\u518d\u6d3b500\u5e74 \u4e8c\u5341\u5e74\u540e\u53c8\u662f\u6761\u597d\u866b \u751f\u7684\u4f1f\u5927\uff0c\u6b7b\u7684\u60e8\u70c8 \u7b56\u5212\uff0c\u6211\u4eec\u6765\u8c08\u8c08\u4eba\u751f".split(" "), Je = [125, 4500, 12E3, 15E3, 18E3, 21E3, 24E3, 27E3, 3E4, 33E3, 39E3, 41E3, 43E3, 45E3, 47E3, 49E3, 50816], Ke = "\u4f60\u9017\u6211\u73a9\u5462\uff1f \u5c31\u8fd9\u6210\u7ee9\uff0c\u6d17\u6d17\u7761\u5427 \u8bf4\u51fa\u53bb\u90fd\u662f\u6cea\uff01 \u7ee7\u7eed\u52aa\u529b\u5427\uff01 \u9e1f\u98de\u5f97\u90fd\u6bd4\u4f60\u9ad8\uff01 \u4f60\u6bd4\u9e1f\u98de\u5f97\u9ad8\u4e86 \u98de\u884c\u59ff\u52bf\u4e0d\u5bf9\uff0c\u91cd\u98de \u98de\u884c\u59ff\u52bf\u4e0d\u9519\u54e6 \u6e10\u5165\u4f73\u5883 \u6709\u70b9\u5b9e\u529b \u8d85\u8d76\u5927\u90e8\u5206\u4eba \u7ed9\u4f60\u70b9\u8d5e \u518d\u6765\u4e00\u6b21 \u53ef\u4ee5\u5f00\u8bfe\u6559\u98de\u4e86 \u5f00\u6302\u4e86\u5427\uff01 \u79bb\u795e\u53ea\u6709\u4e00\u6b65 \u819c\u62dc\u5927\u795e\u554a\uff01".split(" "), Le = [0, 2, 5, 7, 10, 13, 16, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39], Me = "\u4f60\u662f\u7334\u5b50\u6d3e\u6765\u7684\u9017\u6bd4\u5417\uff1f;\u5c0f\u660e\u7ad9\u8d77\u6765\uff01;\u4f1a\u98de\u7684\u4e0d\u4e00\u5b9a\u662f\u8d85\u4eba\uff0c\u8fd8\u6709\u53ef\u80fd\u662f\u9e1f\u4eba;zuo\u6bd4\u5012\u602a\u6b7b\u5f97\u5feb;\u6218\u4e94\u661f\u7684\u6e23\u6e23;\u653e\u5b66\u522b\u8d70\uff0c\u300a\u65b0\u795e\u66f2\u300b\u548c\u4f60\u5355\u6311;\u5206\u6570\u592a\u4f4e\uff0c\u6012\u7838\u624b\u673a\u5427\uff01;\u4e8c\u5e08\u5144\uff0c\u4f60\u98de\u7684\u6bd4\u5927\u5e08\u5144\u90fd\u9ad8;\u8001\u6e7f\uff0c\u4e0dgelivable\u5440;\u4f4e\u5206\u515a\uff0c\u54ed\u6655\u5728\u5395\u6240;\u6218\u4e94\u6e23\uff0c\u5b8c\u8d25\u65b0\u795e\u66f2\u5e7f\u573a\u821edama;\u8981\u8ba9\u6240\u6709\u4eba\u77e5\u9053\uff0c\u65b0\u795e\u66f2\u88ab\u4f60\u627f\u5305\u4e86;\u65b0\u795e\u66f2\u73a9\u5f97\u8fd9\u4e48\u597d\u4e00\u5b9a\u662f\u9e1f\u4e0d\u62c9\u5c4e\u5927\u738b;\u9e1f\u4eba\u7ec8\u4e00\u6b7b\uff0c\u6216\u91cd\u4e8e\u9e3f\u6bdb\u6216\u91cd\u4e8e\u5176\u4ed6\u6bdb;\u98de\u7684\u597d\u9ad8\uff0c\u4f60\u7684\u80a5\u7682\u6389\u4e86;\u5438\u4e00\u53e3\u96fe\u973e\uff0c\u91cd\u5934\u518d\u6765;\u836f\u4e0d\u80fd\u505c;\u81ea\u4ece\u5403\u4e86\u65b0\u795e\u66f2\u7075\u836f\uff0c\u7cbe\u795e\u75c5\u8d8a\u6765\u8d8a\u597d;\u60f3\u8d77\u5728\u5929\u7a7a\u4e0b\u98de\u884c\uff0c\u90a3\u662f\u6211\u901d\u53bb\u7684\u9752\u6625;\u98a4\u6296\u5427\uff0c\u4eba\u7c7b;\u5206\u4f4e\u966a\u4f60\u4e1c\u5c71\u518d\u8d77\uff1b\u5206\u9ad8\u7838\u70c2\u4f60\u624b\u673a;\u65b0\u795e\u66f2\u53cb\u60c5\u63d0\u793a\uff1a\u5929\u53f0\u5df2\u6ee1\uff0c\u8bf7\u5230\u6cb3\u8fb9;No zuo no die;\u5f85\u4f60\u957f\u53d1\u53ca\u8170\uff0c\u51e4\u59d0\u5ac1\u4f60\u53ef\u597d\uff1f;\u6253\u8d25\u4f60\u7684\u4e0d\u662f\u5929\u771f\uff0c\u662f\u6ca1\u7535;\u770b\uff0c\u5929\u4e0a\u6709\u9e1f\u4eba;\u4e14\u98de\u4e14\u73cd\u60dc;\u4e09\u4ef6\u4e8b\u62db\u4eba\u6068\uff0c\u5206\u9ad8\uff0c\u5904\u5973\u5ea7\uff0c\u6ca1\u73a9\u65b0\u795e\u66f2;\u5931\u8282\u4e8b\u5c0f\uff0c\u6454\u6b7b\u4e8b\u5927;\u6012\u4e0b\u65b0\u795e\u66f2\uff0c\u53ef\u5f97\u6ee1\u5206;\u6211\u52d2\u4e2a\u64e6\uff0c\u8fd9\u5206\u6570\u633a\u5e26\u611f\u5440;\u6709\u7fc5\u8180\u7684\u4e0d\u4e00\u5b9a\u662f\u5929\u4f7f\uff0c\u4e5f\u6709\u53ef\u80fd\u662f\u9e1f\u4eba;\u54e5\u98de\u7684\u7684\u4e0d\u662f\u65b0\u795e\u66f2\u5929\u7a7a\u4e4b\u57ce\uff0c\u662f\u9017\u6bd4;\u597d\u9ad8\u7684\u5206\uff0c\u597d\u5389\u5bb3\u601d\u5bc6\u8fbe;\u98de\u518d\u9ad8\uff0c\u4f60\u4e5f\u4e0a\u4e0d\u4e86\u5934\u6761;\u597d\u9ad8\u7684\u5206\u6570 \u67e5\u6c34\u8868\uff0c\u8bf7\u5f00\u95e8;\u5173\u516c\u6218\u79e6\u743c\uff0czuo\u6bd4\u6218dou\u6bd4;\u4f60\u6709\u672c\u4e8b\u73a9\u9ad8\u5206\u4eba \u4f60\u6709\u672c\u4e8b\u5f00\u95e8\u5440;\u597d\u9ad8\u7684\u5206\uff0c\u4f60\u8fc7\u6765 \u6211\u4fdd\u8bc1\u4e0d\u6253\u6b7b\u4f60\uff01".split(";"); var Ne = C.qe.extend({ AA: s, j: function() { if (this._super()) { winSize = C.Q.aa; var c = C.gd.create(C.color(0, 0, 0, 230), winSize.width, winSize.height); this.q(c, 100); var d = C.u.create(I.Dca); d.x = winSize.width - 5; d.y = winSize.height; d.anchorX = 1; d.anchorY = 1; d.scale = 0.8; c.q(d, 2); d = C.fa.create("请点击右上角菜单\n \n分享给小伙伴哦~", "Arial", 16, C.size(200, 260), C.Fs); d.dj({ x: winSize.width / 2, y: 160, anchorX: 0.5, anchorY: 0.5, fillStyle: C.color(255, 255, 255, 255) }); c.q(d, 10); this.AA = C.Oa.create({ event: C.Oa.Gs, yy: q, nc: B(q), cd: function(c, d) { d.Cf.getParent().Lm(q) } }); C.Ka.addListener(this.AA, c); return q } return t }, Na: function() { C.Ka.removeListener(this.AA); this._super() }, B0a: function() { this.Lm(q) } }); Ne.create = function() { var c = new Ne; return c && c.j() ? c: s }; var Ze = C.qe.extend({ Ua: s, xL: s, Hf: 0, ce: [], zb: 4, zq: 6, or: 0, Ss: s, Ts: s, gX: q, Xj: s, pr: s, fX: q, lf: 0, zt: s, Hf: 0, Kba: 0, Gn: 0, tp: s, Zv: s, ur: s, Yz: 0, Bt: s, ZOa: s, sp: s, Kr: s, Ir: s, Dba: s, Uq: s, aPa: s, APa: 2, Wk: s, j: function() { var c = t; this._super() && (winSize = C.Q.aa, C.Fe.Lr("res/char.plist", "res/char.png"), this.xL = C.gd.create(C.color(255, 255, 255, 255), winSize.width, winSize.height), this.xL.anchorX = 0, this.xL.anchorY = 0, this.q(this.xL, 0, 1), this.tp = C.u.create(I.XR), this.tp.x = winSize.width / 2, this.tp.y = winSize.height - 45 * He, this.tp.anchorY = 1, this.tp.scale = 0.4 * Y, this.q(this.tp, 2), c = C.gd.create(C.color(0, 0, 0, 255), 5, winSize.height), c.anchorX = 0, c.anchorY = 0, this.q(c, 1), c = C.gd.create(C.color(0, 0, 0, 255), 5, winSize.height), c.anchorX = 1, c.anchorY = 0, c.x = winSize.width - 5, this.q(c, 1), this.Ua = C.u.create(C.Fe.nh("char1.png")), this.Ua.anchorY = 0, this.Ua.x = winSize.width / 2, this.Ua.y = -2, this.Ua.scale = 0.8 * Y, this.Ua.rotation = -18, this.q(this.Ua, 2, 8), this.ur = C.u.create(I.Lia), this.ur.anchorY = 1, this.ur.x = this.Ua.x + 4 * Y, this.ur.y = -1, this.ur.scale = 0.8 * Y, this.q(this.ur, 2), this.Zv = C.u.create(I.Dda), this.Zv.anchorX = 0, this.Zv.y = 5, this.Zv.scale = Y, this.q(this.Zv, 0, 2), this.KCa(), this.OCa(), this.LCa(), this.MCa(), "mouse" in C.Sc.uH && C.Ka.addListener({ event: C.Oa.tv, JI: function(c) { c.AV == C.$e.eka && c.Cf.xga(c) } }, this), C.Sc.uH.hasOwnProperty("touches") && C.Ka.addListener({ m1a: -1, event: C.Oa.TK, HC: function(c, f) { f.Cf.xga(c[0]) } }, this), this.rg(this.gja, 0.1), c = q); return c }, xga: function() { 4 === this.zb ? (this.Zh(this.gja), this.zb = 5, this.Xj.visible = q, this.pr.visible = q, this.Uq.x = winSize.width - 84 * Y, this.Uq.flippedX = q, this.rg(this.kja, 0.01)) : 5 === this.zb && (this.or = this.Xj.wn, this.Uq.visible = t, this.zb = 1, this.Zh(this.kja), this.CEa()) }, KCa: function() { for (var c = 0; 5 > c; ++c) this.ce[c] = C.u.create(I.Rca), this.ce[c].x = -100 * Y, this.ce[c].y = -100 * Y, this.ce[c].scale = Y, this.q(this.ce[c], 0, 100 + c); this.ce[0].x = 120 * Y; this.ce[0].y = winSize.height - 40 / He; this.ce[1].x = winSize.width - 45 * Y; this.ce[1].y = winSize.height - 120 * He }, OCa: function() { var c = C.u.create("res/height.png"); c.anchorX = 0; c.x = 10 * Y; c.y = winSize.height - 30 * He; c.scale = 1.5 * Y; this.q(c, 2); this.zt = C.Gl.create("::::0", "res/num.png", 32, 34, "0"); this.q(this.zt, 2, 101); this.zt.anchorX = 0; this.zt.x = 135 * Y; this.zt.y = winSize.height - 62 * He; this.zt.scale = 1.2 * Y; c = C.u.create("res/m.png"); c.anchorX = 0; c.x = 328 * Y; c.y = winSize.height - 30 * He; c.scale = 1.5 * Y; this.q(c, 2) }, LCa: function() { this.Ss = C.u.create(I.Nwa); this.Ss.x = 80 * Y; this.Ss.y = 70 * Y; this.Ss.scale = 1 * Y; this.q(this.Ss, 2, 1001); this.Ts = C.u.create(I.Mwa); this.Ts.x = 80 * Y; this.Ts.y = 26 * Y; this.Ts.anchorY = 0.08; this.Ts.scale = 1 * Y; this.q(this.Ts, 2, 1002); this.pr = C.u.create(I.vga); this.pr.x = winSize.width - 40 * Y; this.pr.y = 25 * Y; this.pr.anchorY = 0; this.pr.scale = 1 * Y; this.q(this.pr, 2, 1003); this.pr.visible = t; this.Xj = C.Lb.create(C.u.create(I.uga)); this.Xj.type = C.Lb.Is; this.Xj.midPoint = C.d(1, 0); this.Xj.barChangeRate = C.d(0, 1); this.Xj.x = winSize.width - 40 * Y; this.Xj.y = 25 * Y; this.Xj.anchorY = 0; this.Xj.scale = 1 * Y; this.q(this.Xj, 2, 1004); this.Xj.visible = t; this.Uq = C.u.create(I.Jea); this.Uq.x = this.Ss.x + 85 * Y; this.Uq.y = this.Ss.y - 5 * Y; this.Uq.scale = Y; this.q(this.Uq, 2, 1005); var c = C.ae.create(0.4, 1.15 * Y), d = C.ae.create(0.4, 0.85 * Y), c = C.La.create(c, d); this.Uq.Ya(c.cR()) }, MCa: function() { this.Bt = C.u.create(I.Ffa); this.Bt.x = winSize.width / 2 + 75; this.Bt.y = 60; this.Bt.scale = Y; this.q(this.Bt, 2); this.Bt.visible = t }, Eia: function() { this.sp = C.u.create(I.FDa); this.sp.x = winSize.width / 2; this.sp.y = winSize.height / 2; this.sp.scale = Y; this.q(this.sp, 2); var c = gd.create(); c.scale = 1.5; c.vh(q); c.oy(q); c.pj(I.xH, I.xH, ""); c.x = 480; c.y = 310; c.uB(this.zEa, this); this.sp.q(c, 10, 89); this.Ir = gd.create(); this.Ir.scale = 0.95; this.Ir.vh(q); this.Ir.oy(q); this.Ir.pj(I.e4, I.e4, ""); this.Ir.x = 135; this.Ir.y = 60; this.Ir.uB(this.OEa, this); this.sp.q(this.Ir, 10, 90); this.Kr = gd.create(); this.Kr.scale = 0.95; this.Kr.vh(q); this.Kr.oy(q); this.Kr.pj(I.f4, I.f4, ""); this.Kr.x = 365; this.Kr.y = 60; this.Kr.uB(this.PEa, this); this.sp.q(this.Kr, 10, 91); var c = "\u98de\u884c" + this.lf + "\u7c73\uff0c" + this.aea(this.lf), d = C.fa.create(c, "Arial", 30, C.size(430, 360), C.dz); d.dj({ x: 230, y: 100, anchorX: 0.5, anchorY: 0.5, fillStyle: C.color(0, 0, 0, 255) }); 13 < c.length && (d.y = 112); this.sp.q(d, 10) }, zEa: function(c, d) { (this.removeChild(this.sp, q), We.KC(De, function() { C.Q.PC(new Xe.x2) }, this)) }, OEa: function(c, d) { this.zEa(c,d); }, PEa: function(c, d) { clickMore(); }, CEa: function() { this.rxa(); this.Hf = 10 * this.or; this.Gn = this.Hf * Math.cos(0.017453293 * this.zq); this.Kba = this.Hf * Math.sin(0.017453293 * this.zq); 0 > this.Gn && (this.Gn *= -1) }, gja: function() { this.gX ? (this.zq += 6, 45 < this.zq && (this.gX = t)) : (this.zq -= 6, -45 > this.zq && (this.gX = q)); this.Ts.rotation = this.zq }, kja: function() { this.fX ? (this.or += 5, 99 < this.or && (this.fX = t)) : (this.or -= 5, 1 > this.or && (this.fX = q)); this.Xj.X2(this.or) }, SIa: function() { this.Ua.pc(C.Fe.nh("charfly" + Math.round(3 * Math.random() + 1) + ".png")); this.Ua.rotation = 0; Ye(I.Fda, q); this.rg(this.nja, 0.025); this.rg(this.mja, 0.8) }, nja: function() { if (this.Ua.y < winSize.height / 2 - 50 * He) { if (this.Ua.y + 0.2 * this.Gn > winSize.height / 2 - 50 * He) { this.Ua.y = winSize.height / 2 - 50 * He; for (var c = 0; 5 > c; c++) this.ce[c].visible = q; this.tp.scale = 0.4 * Y; this.Zv.visible = t } else this.Ua.y += 0.2 * this.Gn; this.ur.y = this.Ua.y } else for (c = 0; 5 > c; c++) - 10 > this.ce[c].y && 0.5 < Math.random() ? (this.ce[c].y = winSize.height + 10, this.ce[c].x = Math.round(Math.random() * winSize.width), this.ce[c].scale = 0.6 * Math.random(), this.ce[c].flippedX = 0.5 < Math.random() ? q: t) : this.ce[c].y -= 0.2 * 0.2 * this.Gn; this.Ua.x += 0.1 * (0.2 * this.Kba) * Y; this.ur.x = this.Ua.x; this.tp.scale = 0.2 * (this.lf / 5E4) + 0.4 * Y; this.lf += 0.2 * this.Gn - 0.2; this.zt.sa(this.Wb(Math.round(this.lf))); this.Gn -= 2; 0 > this.Gn && (49999 < this.lf && (this.lf = 50815, this.zt.sa(this.Wb(Math.round(this.lf)))), this.aga()); if (this.Ua.x > winSize.width - 15 || 15 > this.Ua.x) this.Ua.x = 15 > this.Ua.x ? 15 : winSize.width - 15, this.aga() }, mja: function() { this.Ua.pc(C.Fe.nh("charfly" + Math.round(3 * Math.random() + 1) + ".png")) }, rxa: function() { var c = C.Ds.create(0.3, 8), d = c.reverse(), c = C.La.create(c, d); this.Ua.Ya(c.cR()); this.rg(this.YIa, 1, t) }, YIa: function() { this.Ua.yk(); this.sxa(); Ye(I.Jca) }, sxa: function() { this.Ua.pc(C.Fe.nh("char2.png")); var c = C.Av.create(0.3, 1.2), d = c.reverse(), c = C.La.create(c, d); this.Ua.Ya(c); this.rg(this.XIa, 0.4, t) }, XIa: function() { this.Ua.yk(); this.Ss.visible = t; this.Ts.visible = t; this.Xj.visible = t; this.pr.visible = t; this.SIa() }, Wb: function(c) { return 10 > c ? "::::" + c: 100 > c ? ":::" + c: 1E3 > c ? "::" + c: 1E4 > c ? ":" + c: "" + c }, aea: function(c) { for (var d = 0; 17 > d; ++d) if (c < Je[d]) return Ke[d]; return "error" }, B0: function(c) { for (var d = 0; 16 > d && !(c < Je[d]); ++d); return Me[Math.round(Math.random() * (Le[d + 1] - Le[d] - 1)) + Le[d]] }, aga: function() { this.Zh(this.nja); this.Zh(this.mja); this.ur.visible = t; 49E3 < this.lf ? (this.finish(), Ye(I.vja)) : (Ye(I.tda), this.Ua.pc(C.Fe.nh("charfly4.png")), this.Ua.flippedY = q, this.rg(this.uda, 0.1)) }, uda: function() { if (4 > this.Ua.y) this.Zh(this.uda), this.finish(); else { if (this.Ua.y > winSize.height / 2 - 50 * He && 5 > this.Yz) { for (var c = 0; 5 > c; c++) - 10 > this.ce[c].y && 0.5 < Math.random() ? (this.ce[c].y = winSize.height + 10, this.ce[c].x = Math.round(Math.random() * winSize.width), this.ce[c].scale = Math.random() * Y, this.ce[c].flippedX = 0.5 < Math.random() ? q: t) : this.ce[c].y += this.Yz; this.tp.scale -= this.Yz / 100 } else this.Ua.y < winSize.height / 2 - 60 && (this.Zv.visible = q), this.Ua.y -= this.Yz; this.Yz += 1 } }, finish: function() { dp_submitScore(Math.round(this.lf) ); for (var c = 0; 5 > c; c++) this.ce[c].visible = t; console.dir("我在《新神曲》“zuo比飞越天空之城”中,飞行" + Math.round(this.lf) + "\u7c73\uff0c" + this.aea(this.lf) + "\u3010" + this.B0(this.lf) + "\u3011"); console.dir("\u98de\u884c" + Math.round(this.lf) + "\u7c73\u3010" + this.B0(this.lf) + "\u3011"); console.dir( "我在zuo比飞越天空之城”,你敢挑战我吗?"); if (49001 > this.lf) this.Bt.visible = q, c = C.fa.create(Ie[Math.round(5 * Math.random())], "Arial", 25, C.size(180, 120), C.dz), c.dj({ x: 118, y: 65, anchorX: 0.5, anchorY: 0.5, fillStyle: C.color(0, 0, 0, 255) }), this.Bt.q(c, 30), this.lf = Math.round(this.lf), this.Eia(); else { c = C.u.create(I.Gfa); c.x = winSize.width / 2; c.y = winSize.height - 90 * Y; c.scale = 0.42; this.q(c, 1); c = C.di.create(I.ofa, C.rect(0, 0, 130, 130)); this.Ua.pc(c); this.Ua.x = winSize.width / 2; this.Ua.y = winSize.height - 155 * Y; this.Ua.flippedY = t; this.rg(this.NDa, 0.5); this.Wk = C.u.create(I.z1); this.Wk.x = winSize.width / 2; this.Wk.y = winSize.height - 115 * Y; this.Wk.scale = 0.1; this.Wk.visible = t; this.q(this.Wk, 10); this.cm = []; for (c = 0; 5 > c; ++c) this.cm[c] = C.u.create(I.z1), this.cm[c].x = winSize.width / 2, this.cm[c].y = winSize.height - 115 * Y, this.cm[c].scale = 0.2, this.q(this.cm[c], 5); this.rg(this.Eda, 0.2) } }, SV: 0, A9: 0, Eda: function() { for (var c = 0; 5 > c; ++c) this.cm[c].x += 20 * Math.sin(15 * (c - 2)), this.cm[c].y += 20 * Math.cos(15 * (c - 2)); this.SV++; if (2 <= this.A9) { for (c = 0; 5 > c; ++c) this.cm[c].visible = t; this.Zh(this.Eda); this.Wk.visible = q; this.rg(this.pfa, 0.16) } if (6 <= this.SV) { this.SV = 0; this.A9++; for (c = 0; 5 > c; ++c) this.cm[c].x = winSize.width / 2, this.cm[c].y = winSize.height - 115 * Y } }, pfa: function() { this.Wk.y -= 10; this.Wk.scale += 0.15; 2 < this.Wk.scale && this.rg(this.MDa, 0.8, t) }, MDa: function() { this.Wk.visible = t; this.lf = Math.round(this.lf); this.Eia(); this.Zh(this.pfa) }, lX: 1, NDa: function() { this.lX = 1 === this.lX ? 2 : 1; this.Ua.pc(C.Fe.nh("kiss" + this.lX + ".png")) } }); Ze.create = function() { var c = new Ze; return c && c.j() ? c: s }; Ze.x2 = function() { var c = C.Ll.create(), d = Ze.create(); c.q(d, 1); return c }; MyParticleExplosion = C.B.extend({ j: function() { return this.Hb(15) }, Hb: function(c) { return C.B.prototype.Hb.call(this, c) ? (this.Wh(C.B.$m), this.rk(C.B.rc), this.oc(C.d(0, 0)), this.Xh(94), this.yj(43), this.wj( - 57), this.xj(17.55), this.no(144.37), this.oo( - 187.61), this.ok(114), this.pk(175), c = C.Q.aa, this.p(c.width / 2, c.height / 2), this.vk(C.d(0, 0)), this.tk(1.8), this.uk(0.38), this.tg(C.color(255, 0, 0, 250)), this.zj(C.color(0, 0, 0, 0)), this.sg(C.color(255, 0, 0, 200)), this.uj(C.color(0, 0, 0, 0.09)), this.wk(50), this.xk(20), this.sk(100), this.R2(20), this.qk(this.wc / this.Rr()), this.Nm(t), q) : t } }); MyParticleExplosion.create = function() { var c = new MyParticleExplosion; return c.j() ? c: s }; function Ye(c, d) { try { C.ud.cD(), d ? C.ud.Zx(c, q) : C.ud.Zx(c) } catch(f) {} } var Xe = C.qe.extend({ Ua: s, zb: 0, nr: s, Xq: s, j: function() { var c = t; if (this._super()) { winSize = C.Q.aa; console.dir("init"); c = C.gd.create(C.color(255, 255, 255, 255), winSize.width, winSize.height); c.anchorX = 0; c.anchorY = 0; this.q(c, 0, 1); c = C.u.create(I.XR); c.dj({ x: winSize.width / 2, y: winSize.height - 130 * He, scaleX: Y, scaleY: He }); this.q(c, 2); c = C.u.create(I.Mfa); c.dj({ x: winSize.width / 2, y: winSize.height - 310 * He, scaleX: Y, scaleY: He }); this.q(c, 3); c = C.gd.create(C.color(0, 0, 0, 255), 5, winSize.height); c.anchorX = 0; c.anchorY = 0; this.q(c, 1); c = C.gd.create(C.color(0, 0, 0, 255), 5, winSize.height); c.anchorX = 1; c.anchorY = 0; c.x = winSize.width - 5; this.q(c, 1); this.nr = gd.create(); this.nr.scale = 1 * He; this.nr.vh(q); this.nr.oy(q); this.nr.pj(I.Z1, I.Z1, ""); this.nr.x = winSize.width / 2; this.nr.y = winSize.height / 2 - 45 * He; this.nr.uB(this.KEa, this); this.q(this.nr); this.Xq = gd.create(); this.Xq.scale = 1 * He; this.Xq.vh(q); this.Xq.oy(q); this.Xq.pj(I.R0, I.R0, ""); this.Xq.x = winSize.width / 2; this.Xq.y = winSize.height / 2 - 170 * He; this.Xq.uB(this.JEa, this); this.q(this.Xq); this.Ua = C.u.create(I.t_); this.Ua.anchorY = 0; this.Ua.x = winSize.width / 2; this.Ua.y = -2; this.Ua.scale = Y; this.Ua.rotation = -18; this.q(this.Ua, 2, 8); var c = C.Ds.create(4, 30), d = c.reverse(), c = C.La.create(c, d); this.Ua.Ya(c.cR()); c = C.u.create(I.Dda); c.anchorX = 0; c.y = 5; c.scale = Y; this.q(c, 0, 2); c = q } return c }, KEa: function(c, d) { console.dir(c); console.dir(d); d == J.UK && Ye(I.dP); d == J.Eo && 0 === this.zb && We.KC(Ee, function() { var c = C.Ll.create(); c.q(Ze.create()); C.Q.PC(c) }, this) }, JEa: function(c, d) { clickMore(); return; d == J.UK && Ye(I.dP); if (d == J.Eo && 0 === this.zb) { this.zb = 3; var f = C.u.create(I.FCa); f.x = winSize.width / 2; f.y = winSize.height / 2 - 40 * He; f.scale = Y; this.q(f, 10, 88); var g = gd.create(); g.scale = 3 * Y; g.vh(q); g.oy(q); g.pj(I.xH, I.xH, ""); g.x = f.x + 210 / Y; g.y = f.y + 90 / He; g.uB(this.yEa, this); this.lj(88).q(g, 10, 89) } }, yEa: function(c, d) { d == J.UK && Ye(I.dP); d == J.Eo && (this.zb = 0, this.$Q(88, Boolean)) } }); Xe.create = function() { var c = new Xe; return c && c.j() ? c: s }; Xe.x2 = function() { var c = C.Ll.create(), d = Xe.create(); c.q(d); return c }; var We = C.Ll.extend({ Zq: s, $F: 0, Vv: 0, ee: s, qa: "LoadingScene", j: function() { var c = this.xV = C.gd.create(C.color(32, 32, 32, 255)); c.p(C.ts.bP); this.q(c, 0); var d = this.ee = C.fa.create("Loading... 0%", "Arial", 24); d.p(C.ho(C.ts.vH, C.d(0, 0))); d.G(C.color(180, 180, 180)); c.q(this.ee, 10); return q }, $$: function(c, d) { var f = this.Rva = new C.Ma; f.Ng(c); f.Md(); f = this.Cta = C.u.create(f); f.Za(C.Ec()); f.x = d.x; f.y = d.y; this.xV.q(f, 10) }, Z: function() { C.A.prototype.Z.call(this); this.rg(this.MG, 0.3) }, Na: function() { C.A.prototype.Na.call(this); this.ee.sa("Loading... 0%") }, X0: function(c, d) { "string" == typeof c && (c = [c]); this.s2 = c || []; this.mg = d }, MG: function() { var c = this; c.Zh(c.MG); var d = c.s2; c.$F = d.length; c.Vv = 0; C.M.load(d, function(d, g) { c.Vv = g }, function() { c.mg && c.mg() }); c.rg(c.bH) }, bH: function() { var c = this.Vv, d = this.$F, f; f = Math.min(100 * (c / d) | 0, 100); this.ee.sa("Loading... " + f + "%"); c >= d && this.Zh(this.bH) } }); We.KC = function(c, d) { this.Zl || (this.Zl = new We, this.Zl.j()); this.Zl.X0(c, d); C.Q.PC(this.Zl); return this.Zl }; C.qf.Vp = function() { C.view.Ewa(q); 640 > window.innerWidth && (Fe = window.innerWidth); Ge = 0.7656 * window.innerHeight; Y = Fe / 640; He = Ge / 960; C.view.M2(Fe, Ge, C.Ej.MK); C.view.EGa(q); We.KC(De, function() { C.Q.PC(new Xe.x2) }, this) }; C.qf.HGa();