/* Copyright 2014 Mozilla Foundation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ console.time("Load Player Dependencies"); console.time("Load Shared Dependencies"); var Shumway, Shumway$$inline_18 = Shumway || (Shumway = {}); Shumway$$inline_18.version = "0.11.243"; Shumway$$inline_18.build = "3403d9c"; var jsGlobal = function() { return this || (0,eval)("this//# sourceURL=jsGlobal-getter"); }(), inBrowser = "undefined" !== typeof window && "document" in window && "plugins" in window.document, inFirefox = "undefined" !== typeof navigator && 0 <= navigator.userAgent.indexOf("Firefox"); jsGlobal.performance || (jsGlobal.performance = {}); jsGlobal.performance.now || (jsGlobal.performance.now = function() { return Date.now(); }); function lazyInitializer(f, b, g) { Object.defineProperty(f, b, {get:function() { var q = g(); Object.defineProperty(f, b, {value:q, configurable:!0, enumerable:!0}); return q; }, configurable:!0, enumerable:!0}); } var START_TIME = performance.now(); (function(f) { function b(a) { return (a | 0) === a; } function g(a) { return "object" === typeof a || "function" === typeof a; } function q(a) { return String(Number(a)) === a; } function u(a) { var h = 0; if ("number" === typeof a) { return h = a | 0, a === h && 0 <= h ? !0 : a >>> 0 === a; } if ("string" !== typeof a) { return !1; } var c = a.length; if (0 === c) { return !1; } if ("0" === a) { return !0; } if (c > f.UINT32_CHAR_BUFFER_LENGTH) { return !1; } var e = 0, h = a.charCodeAt(e++) - 48; if (1 > h || 9 < h) { return !1; } for (var d = 0, l = 0;e < c;) { l = a.charCodeAt(e++) - 48; if (0 > l || 9 < l) { return !1; } d = h; h = 10 * h + l; } return d < f.UINT32_MAX_DIV_10 || d === f.UINT32_MAX_DIV_10 && l <= f.UINT32_MAX_MOD_10 ? !0 : !1; } (function(a) { a[a._0 = 48] = "_0"; a[a._1 = 49] = "_1"; a[a._2 = 50] = "_2"; a[a._3 = 51] = "_3"; a[a._4 = 52] = "_4"; a[a._5 = 53] = "_5"; a[a._6 = 54] = "_6"; a[a._7 = 55] = "_7"; a[a._8 = 56] = "_8"; a[a._9 = 57] = "_9"; })(f.CharacterCodes || (f.CharacterCodes = {})); f.UINT32_CHAR_BUFFER_LENGTH = 10; f.UINT32_MAX = 4294967295; f.UINT32_MAX_DIV_10 = 429496729; f.UINT32_MAX_MOD_10 = 5; f.isString = function(a) { return "string" === typeof a; }; f.isFunction = function(a) { return "function" === typeof a; }; f.isNumber = function(a) { return "number" === typeof a; }; f.isInteger = b; f.isArray = function(a) { return a instanceof Array; }; f.isNumberOrString = function(a) { return "number" === typeof a || "string" === typeof a; }; f.isObject = g; f.toNumber = function(a) { return +a; }; f.isNumericString = q; f.isNumeric = function(a) { if ("number" === typeof a) { return !0; } if ("string" === typeof a) { var h = a.charCodeAt(0); return 65 <= h && 90 >= h || 97 <= h && 122 >= h || 36 === h || 95 === h ? !1 : u(a) || q(a); } return !1; }; f.isIndex = u; f.isNullOrUndefined = function(a) { return void 0 == a; }; f.argumentsToString = function(a) { for (var h = [], c = 0;c < a.length;c++) { var e = a[c]; try { var d; d = "object" === typeof e && e ? "toString" in e ? e.toString() : Object.prototype.toString.call(e) : e + ""; h.push(d); } catch (l) { h.push(""); } } return h.join(", "); }; var k; (function(a) { a.error = function(a) { console.error(a); throw Error(a); }; a.assert = function(h, c) { void 0 === c && (c = "assertion failed"); "" === h && (h = !0); if (!h) { if ("undefined" !== typeof console && "assert" in console) { throw console.assert(!1, c), Error(c); } a.error(c.toString()); } }; a.assertUnreachable = function(a) { var h = Error().stack.split("\n")[1]; throw Error("Reached unreachable location " + h + a); }; a.assertNotImplemented = function(h, c) { h || a.error("notImplemented: " + c); }; var h = Object.create(null); a.warning = function(a, h, c) { }; a.warnCounts = function() { var a = [], c; for (c in h) { a.push({key:c, count:h[c]}); } a.sort(function(a, h) { return h.count - a.count; }); return a.reduce(function(a, h) { return a + ("\n" + h.count + "\t" + h.key); }, ""); }; a.notUsed = function(a) { }; a.notImplemented = function(a) { }; a.dummyConstructor = function(a) { }; a.abstractMethod = function(a) { }; var c = {}; a.somewhatImplemented = function(h) { c[h] || (c[h] = !0, a.warning("somewhatImplemented: " + h)); }; a.unexpected = function(h) { a.assert(!1, "Unexpected: " + h); }; a.unexpectedCase = function(h) { a.assert(!1, "Unexpected Case: " + h); }; })(k = f.Debug || (f.Debug = {})); f.getTicks = function() { return performance.now(); }; (function(a) { function h(a, h) { for (var c = 0, e = a.length;c < e;c++) { if (a[c] === h) { return c; } } a.push(h); return a.length - 1; } a.popManyInto = function(a, h, c) { for (var e = h - 1;0 <= e;e--) { c[e] = a.pop(); } c.length = h; }; a.popMany = function(a, h) { var c = a.length - h, e = a.slice(c, this.length); a.length = c; return e; }; a.popManyIntoVoid = function(a, h) { a.length -= h; }; a.pushMany = function(a, h) { for (var c = 0;c < h.length;c++) { a.push(h[c]); } }; a.top = function(a) { return a.length && a[a.length - 1]; }; a.last = function(a) { return a.length && a[a.length - 1]; }; a.peek = function(a) { return a[a.length - 1]; }; a.indexOf = function(a, h) { for (var c = 0, e = a.length;c < e;c++) { if (a[c] === h) { return c; } } return -1; }; a.equals = function(a, h) { if (a.length !== h.length) { return !1; } for (var c = 0;c < a.length;c++) { if (a[c] !== h[c]) { return !1; } } return !0; }; a.pushUnique = h; a.unique = function(a) { for (var c = [], e = 0;e < a.length;e++) { h(c, a[e]); } return c; }; a.copyFrom = function(h, c) { h.length = 0; a.pushMany(h, c); }; a.ensureTypedArrayCapacity = function(a, h) { if (a.length < h) { var c = a; a = new a.constructor(f.IntegerUtilities.nearestPowerOfTwo(h)); a.set(c, 0); } return a; }; a.memCopy = function(a, h, c, e, m) { void 0 === c && (c = 0); void 0 === e && (e = 0); void 0 === m && (m = 0); 0 < e || 0 < m && m < h.length ? (0 >= m && (m = h.length - e), a.set(h.subarray(e, e + m), c)) : a.set(h, c); }; var c = function() { function a(h) { void 0 === h && (h = 16); this._f32 = this._i32 = this._u16 = this._u8 = null; this._offset = 0; this.ensureCapacity(h); } a.prototype.reset = function() { this._offset = 0; }; Object.defineProperty(a.prototype, "offset", {get:function() { return this._offset; }, enumerable:!0, configurable:!0}); a.prototype.getIndex = function(a) { return this._offset / a; }; a.prototype.ensureAdditionalCapacity = function(a) { this.ensureCapacity(this._offset + a); }; a.prototype.ensureCapacity = function(a) { if (!this._u8) { this._u8 = new Uint8Array(a); } else { if (this._u8.length > a) { return; } } var h = 2 * this._u8.length; h < a && (h = a); a = new Uint8Array(h); a.set(this._u8, 0); this._u8 = a; this._u16 = new Uint16Array(a.buffer); this._i32 = new Int32Array(a.buffer); this._f32 = new Float32Array(a.buffer); }; a.prototype.writeInt = function(a) { this.ensureCapacity(this._offset + 4); this.writeIntUnsafe(a); }; a.prototype.writeIntAt = function(a, h) { this.ensureCapacity(h + 4); this._i32[h >> 2] = a; }; a.prototype.writeIntUnsafe = function(a) { this._i32[this._offset >> 2] = a; this._offset += 4; }; a.prototype.writeFloat = function(a) { this.ensureCapacity(this._offset + 4); this.writeFloatUnsafe(a); }; a.prototype.writeFloatUnsafe = function(a) { this._f32[this._offset >> 2] = a; this._offset += 4; }; a.prototype.write4Floats = function(a, h, c, e) { this.ensureCapacity(this._offset + 16); this.write4FloatsUnsafe(a, h, c, e); }; a.prototype.write4FloatsUnsafe = function(a, h, c, e) { var m = this._offset >> 2; this._f32[m + 0] = a; this._f32[m + 1] = h; this._f32[m + 2] = c; this._f32[m + 3] = e; this._offset += 16; }; a.prototype.write6Floats = function(a, h, c, e, m, p) { this.ensureCapacity(this._offset + 24); this.write6FloatsUnsafe(a, h, c, e, m, p); }; a.prototype.write6FloatsUnsafe = function(a, h, c, e, m, p) { var d = this._offset >> 2; this._f32[d + 0] = a; this._f32[d + 1] = h; this._f32[d + 2] = c; this._f32[d + 3] = e; this._f32[d + 4] = m; this._f32[d + 5] = p; this._offset += 24; }; a.prototype.subF32View = function() { return this._f32.subarray(0, this._offset >> 2); }; a.prototype.subI32View = function() { return this._i32.subarray(0, this._offset >> 2); }; a.prototype.subU16View = function() { return this._u16.subarray(0, this._offset >> 1); }; a.prototype.subU8View = function() { return this._u8.subarray(0, this._offset); }; a.prototype.hashWords = function(a, h, c) { h = this._i32; for (var e = 0;e < c;e++) { a = (31 * a | 0) + h[e] | 0; } return a; }; a.prototype.reserve = function(a) { a = a + 3 & -4; this.ensureCapacity(this._offset + a); this._offset += a; }; return a; }(); a.ArrayWriter = c; })(f.ArrayUtilities || (f.ArrayUtilities = {})); var r = function() { function a(h) { this._u8 = new Uint8Array(h); this._u16 = new Uint16Array(h); this._i32 = new Int32Array(h); this._f32 = new Float32Array(h); this._offset = 0; } Object.defineProperty(a.prototype, "offset", {get:function() { return this._offset; }, enumerable:!0, configurable:!0}); a.prototype.isEmpty = function() { return this._offset === this._u8.length; }; a.prototype.readInt = function() { var a = this._i32[this._offset >> 2]; this._offset += 4; return a; }; a.prototype.readFloat = function() { var a = this._f32[this._offset >> 2]; this._offset += 4; return a; }; return a; }(); f.ArrayReader = r; (function(a) { function h(a, h) { return Object.prototype.hasOwnProperty.call(a, h); } function c(a, e) { for (var m in e) { h(e, m) && (a[m] = e[m]); } } a.boxValue = function(a) { return void 0 == a || g(a) ? a : Object(a); }; a.toKeyValueArray = function(a) { var h = Object.prototype.hasOwnProperty, c = [], e; for (e in a) { h.call(a, e) && c.push([e, a[e]]); } return c; }; a.isPrototypeWriteable = function(a) { return Object.getOwnPropertyDescriptor(a, "prototype").writable; }; a.hasOwnProperty = h; a.propertyIsEnumerable = function(a, h) { return Object.prototype.propertyIsEnumerable.call(a, h); }; a.getPropertyDescriptor = function(a, h) { do { var c = Object.getOwnPropertyDescriptor(a, h); if (c) { return c; } a = Object.getPrototypeOf(a); } while (a); return null; }; a.hasOwnGetter = function(a, h) { var c = Object.getOwnPropertyDescriptor(a, h); return !(!c || !c.get); }; a.getOwnGetter = function(a, h) { var c = Object.getOwnPropertyDescriptor(a, h); return c ? c.get : null; }; a.hasOwnSetter = function(a, h) { var c = Object.getOwnPropertyDescriptor(a, h); return !(!c || !c.set); }; a.createMap = function() { return Object.create(null); }; a.createArrayMap = function() { return []; }; a.defineReadOnlyProperty = function(a, h, c) { Object.defineProperty(a, h, {value:c, writable:!1, configurable:!0, enumerable:!1}); }; a.getOwnPropertyDescriptors = function(h) { for (var c = a.createMap(), e = Object.getOwnPropertyNames(h), m = 0;m < e.length;m++) { c[e[m]] = Object.getOwnPropertyDescriptor(h, e[m]); } return c; }; a.cloneObject = function(a) { var h = Object.create(Object.getPrototypeOf(a)); c(h, a); return h; }; a.copyProperties = function(a, h) { for (var c in h) { a[c] = h[c]; } }; a.copyOwnProperties = c; a.copyOwnPropertyDescriptors = function(a, c, e, m, d) { void 0 === e && (e = null); void 0 === m && (m = !0); void 0 === d && (d = !1); for (var p in c) { if (h(c, p) && (!e || e(p))) { var l = Object.getOwnPropertyDescriptor(c, p); if (m || !h(a, p)) { try { d && !1 === l.writable && (l.writable = !0), Object.defineProperty(a, p, l); } catch (t) { k.assert("Can't define: " + p); } } } } }; a.copyPropertiesByList = function(a, h, c) { for (var e = 0;e < c.length;e++) { var m = c[e]; a[m] = h[m]; } }; a.getLatestGetterOrSetterPropertyDescriptor = function(a, h) { for (var c = {};a;) { var e = Object.getOwnPropertyDescriptor(a, h); e && (c.get = c.get || e.get, c.set = c.set || e.set); if (c.get && c.set) { break; } a = Object.getPrototypeOf(a); } return c; }; a.defineNonEnumerableGetterOrSetter = function(h, c, e, m) { var d = a.getLatestGetterOrSetterPropertyDescriptor(h, c); d.configurable = !0; d.enumerable = !1; m ? d.get = e : d.set = e; Object.defineProperty(h, c, d); }; a.defineNonEnumerableGetter = function(a, h, c) { Object.defineProperty(a, h, {get:c, configurable:!0, enumerable:!1}); }; a.defineNonEnumerableSetter = function(a, h, c) { Object.defineProperty(a, h, {set:c, configurable:!0, enumerable:!1}); }; a.defineNonEnumerableProperty = function(a, h, c) { Object.defineProperty(a, h, {value:c, writable:!0, configurable:!0, enumerable:!1}); }; a.defineNonEnumerableForwardingProperty = function(a, h, c) { Object.defineProperty(a, h, {get:d.makeForwardingGetter(c), set:d.makeForwardingSetter(c), writable:!0, configurable:!0, enumerable:!1}); }; a.defineNewNonEnumerableProperty = function(h, c, e) { a.defineNonEnumerableProperty(h, c, e); }; a.createPublicAliases = function(a, h) { for (var c = {value:null, writable:!0, configurable:!0, enumerable:!1}, e = 0;e < h.length;e++) { var m = h[e]; c.value = a[m]; Object.defineProperty(a, "$Bg" + m, c); } }; })(f.ObjectUtilities || (f.ObjectUtilities = {})); var d; (function(a) { a.makeForwardingGetter = function(a) { return new Function('return this["' + a + '"]//# sourceURL=fwd-get-' + a + ".as"); }; a.makeForwardingSetter = function(a) { return new Function("value", 'this["' + a + '"] = value;//# sourceURL=fwd-set-' + a + ".as"); }; a.bindSafely = function(a, c) { function e() { return a.apply(c, arguments); } e.boundTo = c; return e; }; })(d = f.FunctionUtilities || (f.FunctionUtilities = {})); (function(a) { function h(a) { return "string" === typeof a ? '"' + a + '"' : "number" === typeof a || "boolean" === typeof a ? String(a) : a instanceof Array ? "[] " + a.length : typeof a; } function c(a, h, e) { d[0] = a; d[1] = h; d[2] = e; return d.join(""); } function e(a, h, c, m) { l[0] = a; l[1] = h; l[2] = c; l[3] = m; return l.join(""); } a.repeatString = function(a, h) { for (var c = "", e = 0;e < h;e++) { c += a; } return c; }; a.memorySizeToString = function(a) { a |= 0; return 1024 > a ? a + " B" : 1048576 > a ? (a / 1024).toFixed(2) + "KB" : (a / 1048576).toFixed(2) + "MB"; }; a.toSafeString = h; a.toSafeArrayString = function(a) { for (var c = [], e = 0;e < a.length;e++) { c.push(h(a[e])); } return c.join(", "); }; a.utf8decode = function(a) { for (var h = new Uint8Array(4 * a.length), c = 0, e = 0, m = a.length;e < m;e++) { var d = a.charCodeAt(e); if (127 >= d) { h[c++] = d; } else { if (55296 <= d && 56319 >= d) { var p = a.charCodeAt(e + 1); 56320 <= p && 57343 >= p && (d = ((d & 1023) << 10) + (p & 1023) + 65536, ++e); } 0 !== (d & 4292870144) ? (h[c++] = 248 | d >>> 24 & 3, h[c++] = 128 | d >>> 18 & 63, h[c++] = 128 | d >>> 12 & 63, h[c++] = 128 | d >>> 6 & 63) : 0 !== (d & 4294901760) ? (h[c++] = 240 | d >>> 18 & 7, h[c++] = 128 | d >>> 12 & 63, h[c++] = 128 | d >>> 6 & 63) : 0 !== (d & 4294965248) ? (h[c++] = 224 | d >>> 12 & 15, h[c++] = 128 | d >>> 6 & 63) : h[c++] = 192 | d >>> 6 & 31; h[c++] = 128 | d & 63; } } return h.subarray(0, c); }; a.utf8encode = function(a) { for (var h = 0, c = "";h < a.length;) { var e = a[h++] & 255; if (127 >= e) { c += String.fromCharCode(e); } else { var m = 192, d = 5; do { if ((e & (m >> 1 | 128)) === m) { break; } m = m >> 1 | 128; --d; } while (0 <= d); if (0 >= d) { c += String.fromCharCode(e); } else { for (var e = e & (1 << d) - 1, m = !1, p = 5;p >= d;--p) { var v = a[h++]; if (128 != (v & 192)) { m = !0; break; } e = e << 6 | v & 63; } if (m) { for (d = h - (7 - p);d < h;++d) { c += String.fromCharCode(a[d] & 255); } } else { c = 65536 <= e ? c + String.fromCharCode(e - 65536 >> 10 & 1023 | 55296, e & 1023 | 56320) : c + String.fromCharCode(e); } } } } return c; }; a.base64ArrayBuffer = function(a) { var h = ""; a = new Uint8Array(a); for (var d = a.byteLength, p = d % 3, d = d - p, l, t, n, b, w = 0;w < d;w += 3) { b = a[w] << 16 | a[w + 1] << 8 | a[w + 2], l = (b & 16515072) >> 18, t = (b & 258048) >> 12, n = (b & 4032) >> 6, b &= 63, h += e("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[l], "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[t], "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[n], "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[b]); } 1 == p ? (b = a[d], h += c("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(b & 252) >> 2], "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(b & 3) << 4], "==")) : 2 == p && (b = a[d] << 8 | a[d + 1], h += e("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(b & 64512) >> 10], "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(b & 1008) >> 4], "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(b & 15) << 2], "=")); return h; }; a.escapeString = function(a) { void 0 !== a && (a = a.replace(/[^\w$]/gi, "$"), /^\d/.test(a) && (a = "$" + a)); return a; }; a.fromCharCodeArray = function(a) { for (var h = "", c = 0;c < a.length;c += 16384) { var e = Math.min(a.length - c, 16384), h = h + String.fromCharCode.apply(null, a.subarray(c, c + e)) } return h; }; a.variableLengthEncodeInt32 = function(a) { for (var h = 32 - Math.clz32(a), c = Math.ceil(h / 6), h = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789$_"[c], c = c - 1;0 <= c;c--) { h += "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789$_"[a >> 6 * c & 63]; } return h; }; a.toEncoding = function(a) { return "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789$_"[a]; }; a.fromEncoding = function(a) { if (65 <= a && 90 >= a) { return a - 65; } if (97 <= a && 122 >= a) { return a - 71; } if (48 <= a && 57 >= a) { return a + 4; } if (36 === a) { return 62; } if (95 === a) { return 63; } }; a.variableLengthDecodeInt32 = function(h) { for (var c = a.fromEncoding(h.charCodeAt(0)), e = 0, m = 0;m < c;m++) { var d = 6 * (c - m - 1), e = e | a.fromEncoding(h.charCodeAt(1 + m)) << d } return e; }; a.trimMiddle = function(a, h) { if (a.length <= h) { return a; } var c = h >> 1, e = h - c - 1; return a.substr(0, c) + "\u2026" + a.substr(a.length - e, e); }; a.multiple = function(a, h) { for (var c = "", e = 0;e < h;e++) { c += a; } return c; }; a.indexOfAny = function(a, h, c) { for (var e = a.length, m = 0;m < h.length;m++) { var d = a.indexOf(h[m], c); 0 <= d && (e = Math.min(e, d)); } return e === a.length ? -1 : e; }; var d = Array(3), l = Array(4), t = Array(5), n = Array(6), b = Array(7), g = Array(8), r = Array(9); a.concat3 = c; a.concat4 = e; a.concat5 = function(a, h, c, e, m) { t[0] = a; t[1] = h; t[2] = c; t[3] = e; t[4] = m; return t.join(""); }; a.concat6 = function(a, h, c, e, m, d) { n[0] = a; n[1] = h; n[2] = c; n[3] = e; n[4] = m; n[5] = d; return n.join(""); }; a.concat7 = function(a, h, c, e, m, d, p) { b[0] = a; b[1] = h; b[2] = c; b[3] = e; b[4] = m; b[5] = d; b[6] = p; return b.join(""); }; a.concat8 = function(a, h, c, e, m, d, p, v) { g[0] = a; g[1] = h; g[2] = c; g[3] = e; g[4] = m; g[5] = d; g[6] = p; g[7] = v; return g.join(""); }; a.concat9 = function(a, h, c, e, m, d, p, v, l) { r[0] = a; r[1] = h; r[2] = c; r[3] = e; r[4] = m; r[5] = d; r[6] = p; r[7] = v; r[8] = l; return r.join(""); }; })(f.StringUtilities || (f.StringUtilities = {})); (function(a) { var h = new Uint8Array([7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22, 5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20, 4, 11, 16, 23, 4, 11, 16, 23, 4, 11, 16, 23, 4, 11, 16, 23, 6, 10, 15, 21, 6, 10, 15, 21, 6, 10, 15, 21, 6, 10, 15, 21]), c = new Int32Array([-680876936, -389564586, 606105819, -1044525330, -176418897, 1200080426, -1473231341, -45705983, 1770035416, -1958414417, -42063, -1990404162, 1804603682, -40341101, -1502002290, 1236535329, -165796510, -1069501632, 643717713, -373897302, -701558691, 38016083, -660478335, -405537848, 568446438, -1019803690, -187363961, 1163531501, -1444681467, -51403784, 1735328473, -1926607734, -378558, -2022574463, 1839030562, -35309556, -1530992060, 1272893353, -155497632, -1094730640, 681279174, -358537222, -722521979, 76029189, -640364487, -421815835, 530742520, -995338651, -198630844, 1126891415, -1416354905, -57434055, 1700485571, -1894986606, -1051523, -2054922799, 1873313359, -30611744, -1560198380, 1309151649, -145523070, -1120210379, 718787259, -343485551]); a.hashBytesTo32BitsMD5 = function(a, e, d) { var p = 1732584193, l = -271733879, t = -1732584194, n = 271733878, b = d + 72 & -64, g = new Uint8Array(b), r; for (r = 0;r < d;++r) { g[r] = a[e++]; } g[r++] = 128; for (a = b - 8;r < a;) { g[r++] = 0; } g[r++] = d << 3 & 255; g[r++] = d >> 5 & 255; g[r++] = d >> 13 & 255; g[r++] = d >> 21 & 255; g[r++] = d >>> 29 & 255; g[r++] = 0; g[r++] = 0; g[r++] = 0; a = new Int32Array(16); for (r = 0;r < b;) { for (d = 0;16 > d;++d, r += 4) { a[d] = g[r] | g[r + 1] << 8 | g[r + 2] << 16 | g[r + 3] << 24; } var k = p; e = l; var q = t, f = n, u, E; for (d = 0;64 > d;++d) { 16 > d ? (u = e & q | ~e & f, E = d) : 32 > d ? (u = f & e | ~f & q, E = 5 * d + 1 & 15) : 48 > d ? (u = e ^ q ^ f, E = 3 * d + 5 & 15) : (u = q ^ (e | ~f), E = 7 * d & 15); var J = f, k = k + u + c[d] + a[E] | 0; u = h[d]; f = q; q = e; e = e + (k << u | k >>> 32 - u) | 0; k = J; } p = p + k | 0; l = l + e | 0; t = t + q | 0; n = n + f | 0; } return p; }; a.hashBytesTo32BitsAdler = function(a, h, c) { var e = 1, m = 0; for (c = h + c;h < c;++h) { e = (e + (a[h] & 255)) % 65521, m = (m + e) % 65521; } return m << 16 | e; }; a.mixHash = function(a, h) { return (31 * a | 0) + h | 0; }; })(f.HashUtilities || (f.HashUtilities = {})); var a = function() { function a() { } a.seed = function(h) { a._state[0] = h; a._state[1] = h; }; a.reset = function() { a._state[0] = 57005; a._state[1] = 48879; }; a.next = function() { var a = this._state, c = Math.imul(18273, a[0] & 65535) + (a[0] >>> 16) | 0; a[0] = c; var e = Math.imul(36969, a[1] & 65535) + (a[1] >>> 16) | 0; a[1] = e; a = (c << 16) + (e & 65535) | 0; return 2.3283064365386963E-10 * (0 > a ? a + 4294967296 : a); }; a._state = new Uint32Array([57005, 48879]); return a; }(); f.Random = a; Math.random = function() { return a.next(); }; (function() { function a() { this.id = "$weakmap" + h++; } if ("function" !== typeof jsGlobal.WeakMap) { var h = 0; a.prototype = {has:function(a) { return a.hasOwnProperty(this.id); }, get:function(a, h) { return a.hasOwnProperty(this.id) ? a[this.id] : h; }, set:function(a, h) { Object.defineProperty(a, this.id, {value:h, enumerable:!1, configurable:!0}); }, delete:function(a) { delete a[this.id]; }}; jsGlobal.WeakMap = a; } })(); r = function() { function a() { "undefined" !== typeof ShumwayCom && ShumwayCom.getWeakMapKeys ? this._map = new WeakMap : this._list = []; } a.prototype.clear = function() { this._map ? this._map.clear() : this._list.length = 0; }; a.prototype.push = function(a) { this._map ? this._map.set(a, null) : this._list.push(a); }; a.prototype.remove = function(a) { this._map ? this._map.delete(a) : this._list[this._list.indexOf(a)] = null; }; a.prototype.forEach = function(a) { if (this._map) { ShumwayCom.getWeakMapKeys(this._map).forEach(function(c) { 0 !== c._referenceCount && a(c); }); } else { for (var c = this._list, e = 0, d = 0;d < c.length;d++) { var p = c[d]; p && (0 === p._referenceCount ? (c[d] = null, e++) : a(p)); } if (16 < e && e > c.length >> 2) { e = []; for (d = 0;d < c.length;d++) { (p = c[d]) && 0 < p._referenceCount && e.push(p); } this._list = e; } } }; Object.defineProperty(a.prototype, "length", {get:function() { return this._map ? -1 : this._list.length; }, enumerable:!0, configurable:!0}); return a; }(); f.WeakList = r; var c; (function(a) { a.pow2 = function(a) { return a === (a | 0) ? 0 > a ? 1 / (1 << -a) : 1 << a : Math.pow(2, a); }; a.clamp = function(a, c, e) { return Math.max(c, Math.min(e, a)); }; a.roundHalfEven = function(a) { if (.5 === Math.abs(a % 1)) { var c = Math.floor(a); return 0 === c % 2 ? c : Math.ceil(a); } return Math.round(a); }; a.altTieBreakRound = function(a, c) { return .5 !== Math.abs(a % 1) || c ? Math.round(a) : a | 0; }; a.epsilonEquals = function(a, c) { return 1E-7 > Math.abs(a - c); }; })(c = f.NumberUtilities || (f.NumberUtilities = {})); (function(a) { a[a.MaxU16 = 65535] = "MaxU16"; a[a.MaxI16 = 32767] = "MaxI16"; a[a.MinI16 = -32768] = "MinI16"; })(f.Numbers || (f.Numbers = {})); var e; (function(a) { function h(a) { return 256 * a << 16 >> 16; } var c = new ArrayBuffer(8); a.i8 = new Int8Array(c); a.u8 = new Uint8Array(c); a.i32 = new Int32Array(c); a.f32 = new Float32Array(c); a.f64 = new Float64Array(c); a.nativeLittleEndian = 1 === (new Int8Array((new Int32Array([1])).buffer))[0]; a.floatToInt32 = function(h) { a.f32[0] = h; return a.i32[0]; }; a.int32ToFloat = function(h) { a.i32[0] = h; return a.f32[0]; }; a.swap16 = function(a) { return (a & 255) << 8 | a >> 8 & 255; }; a.swap32 = function(a) { return (a & 255) << 24 | (a & 65280) << 8 | a >> 8 & 65280 | a >> 24 & 255; }; a.toS8U8 = h; a.fromS8U8 = function(a) { return a / 256; }; a.clampS8U8 = function(a) { return h(a) / 256; }; a.toS16 = function(a) { return a << 16 >> 16; }; a.bitCount = function(a) { a -= a >> 1 & 1431655765; a = (a & 858993459) + (a >> 2 & 858993459); return 16843009 * (a + (a >> 4) & 252645135) >> 24; }; a.ones = function(a) { a -= a >> 1 & 1431655765; a = (a & 858993459) + (a >> 2 & 858993459); return 16843009 * (a + (a >> 4) & 252645135) >> 24; }; a.trailingZeros = function(h) { return a.ones((h & -h) - 1); }; a.getFlags = function(a, h) { var c = ""; for (a = 0;a < h.length;a++) { a & 1 << a && (c += h[a] + " "); } return 0 === c.length ? "" : c.trim(); }; a.isPowerOfTwo = function(a) { return a && 0 === (a & a - 1); }; a.roundToMultipleOfFour = function(a) { return a + 3 & -4; }; a.nearestPowerOfTwo = function(a) { a--; a |= a >> 1; a |= a >> 2; a |= a >> 4; a |= a >> 8; a |= a >> 16; a++; return a; }; a.roundToMultipleOfPowerOfTwo = function(a, h) { var c = (1 << h) - 1; return a + c & ~c; }; a.toHEX = function(a) { return "0x" + ("00000000" + (0 > a ? 4294967295 + a + 1 : a).toString(16)).substr(-8); }; Math.imul || (Math.imul = function(a, h) { var c = a & 65535, e = h & 65535; return c * e + ((a >>> 16 & 65535) * e + c * (h >>> 16 & 65535) << 16 >>> 0) | 0; }); Math.clz32 || (Math.clz32 = function(h) { h |= h >> 1; h |= h >> 2; h |= h >> 4; h |= h >> 8; return 32 - a.ones(h | h >> 16); }); })(e = f.IntegerUtilities || (f.IntegerUtilities = {})); (function(a) { function h(a, h, c, e, d, p) { return (c - a) * (p - h) - (e - h) * (d - a); } a.pointInPolygon = function(a, h, c) { for (var e = 0, d = c.length - 2, p = 0;p < d;p += 2) { var l = c[p + 0], t = c[p + 1], n = c[p + 2], b = c[p + 3]; (t <= h && b > h || t > h && b <= h) && a < l + (h - t) / (b - t) * (n - l) && e++; } return 1 === (e & 1); }; a.signedArea = h; a.counterClockwise = function(a, c, e, d, p, l) { return 0 < h(a, c, e, d, p, l); }; a.clockwise = function(a, c, e, d, p, l) { return 0 > h(a, c, e, d, p, l); }; a.pointInPolygonInt32 = function(a, h, c) { a |= 0; h |= 0; for (var e = 0, d = c.length - 2, p = 0;p < d;p += 2) { var l = c[p + 0], t = c[p + 1], n = c[p + 2], b = c[p + 3]; (t <= h && b > h || t > h && b <= h) && a < l + (h - t) / (b - t) * (n - l) && e++; } return 1 === (e & 1); }; })(f.GeometricUtilities || (f.GeometricUtilities = {})); (function(a) { a[a.Error = 1] = "Error"; a[a.Warn = 2] = "Warn"; a[a.Debug = 4] = "Debug"; a[a.Log = 8] = "Log"; a[a.Info = 16] = "Info"; a[a.All = 31] = "All"; })(f.LogLevel || (f.LogLevel = {})); r = function() { function a(h, c) { void 0 === h && (h = !1); this._tab = " "; this._padding = ""; this._suppressOutput = h; this._out = c || a._consoleOut; this._outNoNewline = c || a._consoleOutNoNewline; } Object.defineProperty(a.prototype, "suppressOutput", {get:function() { return this._suppressOutput; }, set:function(a) { this._suppressOutput = a; }, enumerable:!0, configurable:!0}); a.prototype.write = function(a, c) { void 0 === a && (a = ""); void 0 === c && (c = !1); this._suppressOutput || this._outNoNewline((c ? this._padding : "") + a); }; a.prototype.writeLn = function(a) { void 0 === a && (a = ""); this._suppressOutput || this._out(this._padding + a); }; a.prototype.writeObject = function(a, c) { void 0 === a && (a = ""); this._suppressOutput || this._out(this._padding + a, c); }; a.prototype.writeTimeLn = function(a) { void 0 === a && (a = ""); this._suppressOutput || this._out(this._padding + performance.now().toFixed(2) + " " + a); }; a.prototype.writeComment = function(a) { a = (a || "").split("\n"); if (1 === a.length) { this.writeLn("// " + a[0]); } else { this.writeLn("/**"); for (var c = 0;c < a.length;c++) { this.writeLn(" * " + a[c]); } this.writeLn(" */"); } }; a.prototype.writeLns = function(a) { a = (a || "").split("\n"); for (var c = 0;c < a.length;c++) { this.writeLn(a[c]); } }; a.prototype.errorLn = function(h) { a.logLevel & 1 && this.boldRedLn(h); }; a.prototype.warnLn = function(h) { a.logLevel & 2 && this.yellowLn(h); }; a.prototype.debugLn = function(h) { a.logLevel & 4 && this.purpleLn(h); }; a.prototype.logLn = function(h) { a.logLevel & 8 && this.writeLn(h); }; a.prototype.infoLn = function(h) { a.logLevel & 16 && this.writeLn(h); }; a.prototype.yellowLn = function(h) { this.colorLn(a.YELLOW, h); }; a.prototype.greenLn = function(h) { this.colorLn(a.GREEN, h); }; a.prototype.boldRedLn = function(h) { this.colorLn(a.BOLD_RED, h); }; a.prototype.redLn = function(h) { this.colorLn(a.RED, h); }; a.prototype.purpleLn = function(h) { this.colorLn(a.PURPLE, h); }; a.prototype.colorLn = function(h, c) { this._suppressOutput || (inBrowser ? this._out(this._padding + c) : this._out(this._padding + h + c + a.ENDC)); }; a.prototype.redLns = function(h) { this.colorLns(a.RED, h); }; a.prototype.colorLns = function(a, c) { for (var e = (c || "").split("\n"), d = 0;d < e.length;d++) { this.colorLn(a, e[d]); } }; a.prototype.enter = function(a) { this._suppressOutput || this._out(this._padding + a); this.indent(); }; a.prototype.leaveAndEnter = function(a) { this.leave(a); this.indent(); }; a.prototype.leave = function(a) { this.outdent(); !this._suppressOutput && a && this._out(this._padding + a); }; a.prototype.indent = function() { this._padding += this._tab; }; a.prototype.outdent = function() { 0 < this._padding.length && (this._padding = this._padding.substring(0, this._padding.length - this._tab.length)); }; a.prototype.writeArray = function(a, c, e) { void 0 === c && (c = !1); void 0 === e && (e = !1); c = c || !1; for (var d = 0, p = a.length;d < p;d++) { var l = ""; c && (l = null === a[d] ? "null" : void 0 === a[d] ? "undefined" : a[d].constructor.name, l += " "); var t = e ? "" : ("" + d).padRight(" ", 4); this.writeLn(t + l + a[d]); } }; a.PURPLE = "\u001b[94m"; a.YELLOW = "\u001b[93m"; a.GREEN = "\u001b[92m"; a.RED = "\u001b[91m"; a.BOLD_RED = "\u001b[1;91m"; a.ENDC = "\u001b[0m"; a.logLevel = 31; a._consoleOut = console.log.bind(console); a._consoleOutNoNewline = console.log.bind(console); return a; }(); f.IndentingWriter = r; var l = function() { return function(a, c) { this.value = a; this.next = c; }; }(), r = function() { function a(c) { this._compare = c; this._head = null; this._length = 0; } a.prototype.push = function(a) { this._length++; if (this._head) { var c = this._head, e = null; a = new l(a, null); for (var d = this._compare;c;) { if (0 < d(c.value, a.value)) { e ? (a.next = c, e.next = a) : (a.next = this._head, this._head = a); return; } e = c; c = c.next; } e.next = a; } else { this._head = new l(a, null); } }; a.prototype.forEach = function(c) { for (var e = this._head, d = null;e;) { var l = c(e.value); if (l === a.RETURN) { break; } else { l === a.DELETE ? e = d ? d.next = e.next : this._head = this._head.next : (d = e, e = e.next); } } }; a.prototype.isEmpty = function() { return !this._head; }; a.prototype.pop = function() { if (this._head) { this._length--; var a = this._head; this._head = this._head.next; return a.value; } }; a.prototype.contains = function(a) { for (var c = this._head;c;) { if (c.value === a) { return !0; } c = c.next; } return !1; }; a.prototype.toString = function() { for (var a = "[", c = this._head;c;) { a += c.value.toString(), (c = c.next) && (a += ","); } return a + "]"; }; a.RETURN = 1; a.DELETE = 2; return a; }(); f.SortedList = r; r = function() { function a(c, e) { void 0 === e && (e = 12); this.start = this.index = 0; this._size = 1 << e; this._mask = this._size - 1; this.array = new c(this._size); } a.prototype.get = function(a) { return this.array[a]; }; a.prototype.forEachInReverse = function(a) { if (!this.isEmpty()) { for (var c = 0 === this.index ? this._size - 1 : this.index - 1, e = this.start - 1 & this._mask;c !== e && !a(this.array[c], c);) { c = 0 === c ? this._size - 1 : c - 1; } } }; a.prototype.write = function(a) { this.array[this.index] = a; this.index = this.index + 1 & this._mask; this.index === this.start && (this.start = this.start + 1 & this._mask); }; a.prototype.isFull = function() { return (this.index + 1 & this._mask) === this.start; }; a.prototype.isEmpty = function() { return this.index === this.start; }; a.prototype.reset = function() { this.start = this.index = 0; }; return a; }(); f.CircularBuffer = r; (function(a) { function c(h) { return h + (a.BITS_PER_WORD - 1) >> a.ADDRESS_BITS_PER_WORD << a.ADDRESS_BITS_PER_WORD; } function e(a, c) { a = a || "1"; c = c || "0"; for (var h = "", d = 0;d < length;d++) { h += this.get(d) ? a : c; } return h; } function d(a) { for (var c = [], h = 0;h < length;h++) { this.get(h) && c.push(a ? a[h] : h); } return c.join(", "); } a.ADDRESS_BITS_PER_WORD = 5; a.BITS_PER_WORD = 1 << a.ADDRESS_BITS_PER_WORD; a.BIT_INDEX_MASK = a.BITS_PER_WORD - 1; var l = function() { function e(d) { this.size = c(d); this.dirty = this.count = 0; this.length = d; this.bits = new Uint32Array(this.size >> a.ADDRESS_BITS_PER_WORD); } e.prototype.recount = function() { if (this.dirty) { for (var a = this.bits, c = 0, h = 0, e = a.length;h < e;h++) { var d = a[h], d = d - (d >> 1 & 1431655765), d = (d & 858993459) + (d >> 2 & 858993459), c = c + (16843009 * (d + (d >> 4) & 252645135) >> 24) } this.count = c; this.dirty = 0; } }; e.prototype.set = function(c) { var h = c >> a.ADDRESS_BITS_PER_WORD, e = this.bits[h]; c = e | 1 << (c & a.BIT_INDEX_MASK); this.bits[h] = c; this.dirty |= e ^ c; }; e.prototype.setAll = function() { for (var a = this.bits, c = 0, h = a.length;c < h;c++) { a[c] = 4294967295; } this.count = this.size; this.dirty = 0; }; e.prototype.assign = function(a) { this.count = a.count; this.dirty = a.dirty; this.size = a.size; for (var c = 0, h = this.bits.length;c < h;c++) { this.bits[c] = a.bits[c]; } }; e.prototype.clear = function(c) { var h = c >> a.ADDRESS_BITS_PER_WORD, e = this.bits[h]; c = e & ~(1 << (c & a.BIT_INDEX_MASK)); this.bits[h] = c; this.dirty |= e ^ c; }; e.prototype.get = function(c) { return 0 !== (this.bits[c >> a.ADDRESS_BITS_PER_WORD] & 1 << (c & a.BIT_INDEX_MASK)); }; e.prototype.clearAll = function() { for (var a = this.bits, c = 0, h = a.length;c < h;c++) { a[c] = 0; } this.dirty = this.count = 0; }; e.prototype._union = function(a) { var c = this.dirty, h = this.bits; a = a.bits; for (var e = 0, d = h.length;e < d;e++) { var m = h[e], p = m | a[e]; h[e] = p; c |= m ^ p; } this.dirty = c; }; e.prototype.intersect = function(a) { var c = this.dirty, h = this.bits; a = a.bits; for (var e = 0, d = h.length;e < d;e++) { var m = h[e], p = m & a[e]; h[e] = p; c |= m ^ p; } this.dirty = c; }; e.prototype.subtract = function(a) { var c = this.dirty, h = this.bits; a = a.bits; for (var e = 0, d = h.length;e < d;e++) { var m = h[e], p = m & ~a[e]; h[e] = p; c |= m ^ p; } this.dirty = c; }; e.prototype.negate = function() { for (var a = this.dirty, c = this.bits, h = 0, e = c.length;h < e;h++) { var d = c[h], m = ~d; c[h] = m; a |= d ^ m; } this.dirty = a; }; e.prototype.forEach = function(c) { for (var h = this.bits, e = 0, d = h.length;e < d;e++) { var m = h[e]; if (m) { for (var l = 0;l < a.BITS_PER_WORD;l++) { m & 1 << l && c(e * a.BITS_PER_WORD + l); } } } }; e.prototype.toArray = function() { for (var c = [], h = this.bits, e = 0, d = h.length;e < d;e++) { var m = h[e]; if (m) { for (var l = 0;l < a.BITS_PER_WORD;l++) { m & 1 << l && c.push(e * a.BITS_PER_WORD + l); } } } return c; }; e.prototype.equals = function(a) { if (this.size !== a.size) { return !1; } var c = this.bits; a = a.bits; for (var h = 0, e = c.length;h < e;h++) { if (c[h] !== a[h]) { return !1; } } return !0; }; e.prototype.contains = function(a) { if (this.size !== a.size) { return !1; } var c = this.bits; a = a.bits; for (var h = 0, e = c.length;h < e;h++) { if ((c[h] | a[h]) !== c[h]) { return !1; } } return !0; }; e.prototype.isEmpty = function() { this.recount(); return 0 === this.count; }; e.prototype.clone = function() { var a = new e(this.length); a._union(this); return a; }; return e; }(); a.Uint32ArrayBitSet = l; var t = function() { function e(a) { this.dirty = this.count = 0; this.size = c(a); this.bits = 0; this.singleWord = !0; this.length = a; } e.prototype.recount = function() { if (this.dirty) { var a = this.bits, a = a - (a >> 1 & 1431655765), a = (a & 858993459) + (a >> 2 & 858993459); this.count = 0 + (16843009 * (a + (a >> 4) & 252645135) >> 24); this.dirty = 0; } }; e.prototype.set = function(c) { var h = this.bits; this.bits = c = h | 1 << (c & a.BIT_INDEX_MASK); this.dirty |= h ^ c; }; e.prototype.setAll = function() { this.bits = 4294967295; this.count = this.size; this.dirty = 0; }; e.prototype.assign = function(a) { this.count = a.count; this.dirty = a.dirty; this.size = a.size; this.bits = a.bits; }; e.prototype.clear = function(c) { var h = this.bits; this.bits = c = h & ~(1 << (c & a.BIT_INDEX_MASK)); this.dirty |= h ^ c; }; e.prototype.get = function(c) { return 0 !== (this.bits & 1 << (c & a.BIT_INDEX_MASK)); }; e.prototype.clearAll = function() { this.dirty = this.count = this.bits = 0; }; e.prototype._union = function(a) { var c = this.bits; this.bits = a = c | a.bits; this.dirty = c ^ a; }; e.prototype.intersect = function(a) { var c = this.bits; this.bits = a = c & a.bits; this.dirty = c ^ a; }; e.prototype.subtract = function(a) { var c = this.bits; this.bits = a = c & ~a.bits; this.dirty = c ^ a; }; e.prototype.negate = function() { var a = this.bits, c = ~a; this.bits = c; this.dirty = a ^ c; }; e.prototype.forEach = function(c) { var h = this.bits; if (h) { for (var e = 0;e < a.BITS_PER_WORD;e++) { h & 1 << e && c(e); } } }; e.prototype.toArray = function() { var c = [], h = this.bits; if (h) { for (var e = 0;e < a.BITS_PER_WORD;e++) { h & 1 << e && c.push(e); } } return c; }; e.prototype.equals = function(a) { return this.bits === a.bits; }; e.prototype.contains = function(a) { var c = this.bits; return (c | a.bits) === c; }; e.prototype.isEmpty = function() { this.recount(); return 0 === this.count; }; e.prototype.clone = function() { var a = new e(this.length); a._union(this); return a; }; return e; }(); a.Uint32BitSet = t; t.prototype.toString = d; t.prototype.toBitString = e; l.prototype.toString = d; l.prototype.toBitString = e; a.BitSetFunctor = function(e) { var d = 1 === c(e) >> a.ADDRESS_BITS_PER_WORD ? t : l; return function() { return new d(e); }; }; })(f.BitSets || (f.BitSets = {})); r = function() { function a() { } a.randomStyle = function() { a._randomStyleCache || (a._randomStyleCache = "#ff5e3a #ff9500 #ffdb4c #87fc70 #52edc7 #1ad6fd #c644fc #ef4db6 #4a4a4a #dbddde #ff3b30 #ff9500 #ffcc00 #4cd964 #34aadc #007aff #5856d6 #ff2d55 #8e8e93 #c7c7cc #5ad427 #c86edf #d1eefc #e0f8d8 #fb2b69 #f7f7f7 #1d77ef #d6cec3 #55efcb #ff4981 #ffd3e0 #f7f7f7 #ff1300 #1f1f21 #bdbec2 #ff3a2d".split(" ")); return a._randomStyleCache[a._nextStyle++ % a._randomStyleCache.length]; }; a.gradientColor = function(h) { return a._gradient[a._gradient.length * c.clamp(h, 0, 1) | 0]; }; a.contrastStyle = function(a) { a = parseInt(a.substr(1), 16); return 128 <= (299 * (a >> 16) + 587 * (a >> 8 & 255) + 114 * (a & 255)) / 1E3 ? "#000000" : "#ffffff"; }; a.reset = function() { a._nextStyle = 0; }; a.TabToolbar = "#252c33"; a.Toolbars = "#343c45"; a.HighlightBlue = "#1d4f73"; a.LightText = "#f5f7fa"; a.ForegroundText = "#b6babf"; a.Black = "#000000"; a.VeryDark = "#14171a"; a.Dark = "#181d20"; a.Light = "#a9bacb"; a.Grey = "#8fa1b2"; a.DarkGrey = "#5f7387"; a.Blue = "#46afe3"; a.Purple = "#6b7abb"; a.Pink = "#df80ff"; a.Red = "#eb5368"; a.Orange = "#d96629"; a.LightOrange = "#d99b28"; a.Green = "#70bf53"; a.BlueGrey = "#5e88b0"; a._nextStyle = 0; a._gradient = "#FF0000 #FF1100 #FF2300 #FF3400 #FF4600 #FF5700 #FF6900 #FF7B00 #FF8C00 #FF9E00 #FFAF00 #FFC100 #FFD300 #FFE400 #FFF600 #F7FF00 #E5FF00 #D4FF00 #C2FF00 #B0FF00 #9FFF00 #8DFF00 #7CFF00 #6AFF00 #58FF00 #47FF00 #35FF00 #24FF00 #12FF00 #00FF00".split(" "); return a; }(); f.ColorStyle = r; r = function() { function a(c, e, d, p) { this.xMin = c | 0; this.yMin = e | 0; this.xMax = d | 0; this.yMax = p | 0; } a.FromUntyped = function(c) { return new a(c.xMin, c.yMin, c.xMax, c.yMax); }; a.FromRectangle = function(c) { return new a(20 * c.x | 0, 20 * c.y | 0, 20 * (c.x + c.width) | 0, 20 * (c.y + c.height) | 0); }; a.prototype.setElements = function(a, c, e, d) { this.xMin = a; this.yMin = c; this.xMax = e; this.yMax = d; }; a.prototype.copyFrom = function(a) { this.setElements(a.xMin, a.yMin, a.xMax, a.yMax); }; a.prototype.contains = function(a, c) { return a < this.xMin !== a < this.xMax && c < this.yMin !== c < this.yMax; }; a.prototype.unionInPlace = function(a) { a.isEmpty() || (this.extendByPoint(a.xMin, a.yMin), this.extendByPoint(a.xMax, a.yMax)); }; a.prototype.extendByPoint = function(a, c) { this.extendByX(a); this.extendByY(c); }; a.prototype.extendByX = function(a) { 134217728 === this.xMin ? this.xMin = this.xMax = a : (this.xMin = Math.min(this.xMin, a), this.xMax = Math.max(this.xMax, a)); }; a.prototype.extendByY = function(a) { 134217728 === this.yMin ? this.yMin = this.yMax = a : (this.yMin = Math.min(this.yMin, a), this.yMax = Math.max(this.yMax, a)); }; a.prototype.intersects = function(a) { return this.contains(a.xMin, a.yMin) || this.contains(a.xMax, a.yMax); }; a.prototype.isEmpty = function() { return this.xMax <= this.xMin || this.yMax <= this.yMin; }; Object.defineProperty(a.prototype, "width", {get:function() { return this.xMax - this.xMin; }, set:function(a) { this.xMax = this.xMin + a; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "height", {get:function() { return this.yMax - this.yMin; }, set:function(a) { this.yMax = this.yMin + a; }, enumerable:!0, configurable:!0}); a.prototype.getBaseWidth = function(a) { var c = Math.abs(Math.cos(a)); a = Math.abs(Math.sin(a)); return c * (this.xMax - this.xMin) + a * (this.yMax - this.yMin); }; a.prototype.getBaseHeight = function(a) { var c = Math.abs(Math.cos(a)); return Math.abs(Math.sin(a)) * (this.xMax - this.xMin) + c * (this.yMax - this.yMin); }; a.prototype.setEmpty = function() { this.xMin = this.yMin = this.xMax = this.yMax = 0; }; a.prototype.setToSentinels = function() { this.xMin = this.yMin = this.xMax = this.yMax = 134217728; }; a.prototype.clone = function() { return new a(this.xMin, this.yMin, this.xMax, this.yMax); }; a.prototype.toString = function() { return "{ xMin: " + this.xMin + ", xMin: " + this.yMin + ", xMax: " + this.xMax + ", xMax: " + this.yMax + " }"; }; return a; }(); f.Bounds = r; r = function() { function a(c, e, d, p) { k.assert(b(c)); k.assert(b(e)); k.assert(b(d)); k.assert(b(p)); this._xMin = c | 0; this._yMin = e | 0; this._xMax = d | 0; this._yMax = p | 0; } a.FromUntyped = function(c) { return new a(c.xMin, c.yMin, c.xMax, c.yMax); }; a.FromRectangle = function(c) { return new a(20 * c.x | 0, 20 * c.y | 0, 20 * (c.x + c.width) | 0, 20 * (c.y + c.height) | 0); }; a.prototype.setElements = function(a, c, e, d) { this.xMin = a; this.yMin = c; this.xMax = e; this.yMax = d; }; a.prototype.copyFrom = function(a) { this.setElements(a.xMin, a.yMin, a.xMax, a.yMax); }; a.prototype.contains = function(a, c) { return a < this.xMin !== a < this.xMax && c < this.yMin !== c < this.yMax; }; a.prototype.unionInPlace = function(a) { a.isEmpty() || (this.extendByPoint(a.xMin, a.yMin), this.extendByPoint(a.xMax, a.yMax)); }; a.prototype.extendByPoint = function(a, c) { this.extendByX(a); this.extendByY(c); }; a.prototype.extendByX = function(a) { 134217728 === this.xMin ? this.xMin = this.xMax = a : (this.xMin = Math.min(this.xMin, a), this.xMax = Math.max(this.xMax, a)); }; a.prototype.extendByY = function(a) { 134217728 === this.yMin ? this.yMin = this.yMax = a : (this.yMin = Math.min(this.yMin, a), this.yMax = Math.max(this.yMax, a)); }; a.prototype.intersects = function(a) { return this.contains(a._xMin, a._yMin) || this.contains(a._xMax, a._yMax); }; a.prototype.isEmpty = function() { return this._xMax <= this._xMin || this._yMax <= this._yMin; }; Object.defineProperty(a.prototype, "xMin", {get:function() { return this._xMin; }, set:function(a) { k.assert(b(a)); this._xMin = a; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "yMin", {get:function() { return this._yMin; }, set:function(a) { k.assert(b(a)); this._yMin = a | 0; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "xMax", {get:function() { return this._xMax; }, set:function(a) { k.assert(b(a)); this._xMax = a | 0; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "width", {get:function() { return this._xMax - this._xMin; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "yMax", {get:function() { return this._yMax; }, set:function(a) { k.assert(b(a)); this._yMax = a | 0; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "height", {get:function() { return this._yMax - this._yMin; }, enumerable:!0, configurable:!0}); a.prototype.getBaseWidth = function(a) { var c = Math.abs(Math.cos(a)); a = Math.abs(Math.sin(a)); return c * (this._xMax - this._xMin) + a * (this._yMax - this._yMin); }; a.prototype.getBaseHeight = function(a) { var c = Math.abs(Math.cos(a)); return Math.abs(Math.sin(a)) * (this._xMax - this._xMin) + c * (this._yMax - this._yMin); }; a.prototype.setEmpty = function() { this._xMin = this._yMin = this._xMax = this._yMax = 0; }; a.prototype.clone = function() { return new a(this.xMin, this.yMin, this.xMax, this.yMax); }; a.prototype.toString = function() { return "{ xMin: " + this._xMin + ", yMin: " + this._yMin + ", xMax: " + this._xMax + ", yMax: " + this._yMax + " }"; }; a.prototype.assertValid = function() { }; return a; }(); f.DebugBounds = r; r = function() { function a(c, e, d, l) { this.r = c; this.g = e; this.b = d; this.a = l; } a.FromARGB = function(c) { return new a((c >> 16 & 255) / 255, (c >> 8 & 255) / 255, (c >> 0 & 255) / 255, (c >> 24 & 255) / 255); }; a.FromRGBA = function(c) { return a.FromARGB(n.RGBAToARGB(c)); }; a.prototype.toRGBA = function() { return 255 * this.r << 24 | 255 * this.g << 16 | 255 * this.b << 8 | 255 * this.a; }; a.prototype.toCSSStyle = function() { return n.rgbaToCSSStyle(this.toRGBA()); }; a.prototype.set = function(a) { this.r = a.r; this.g = a.g; this.b = a.b; this.a = a.a; }; a.randomColor = function(c) { void 0 === c && (c = 1); return new a(Math.random(), Math.random(), Math.random(), c); }; a.parseColor = function(c) { a.colorCache || (a.colorCache = Object.create(null)); if (a.colorCache[c]) { return a.colorCache[c]; } var e = document.createElement("span"); document.body.appendChild(e); e.style.backgroundColor = c; var d = getComputedStyle(e).backgroundColor; document.body.removeChild(e); (e = /^rgb\((\d+), (\d+), (\d+)\)$/.exec(d)) || (e = /^rgba\((\d+), (\d+), (\d+), ([\d.]+)\)$/.exec(d)); d = new a(0, 0, 0, 0); d.r = parseFloat(e[1]) / 255; d.g = parseFloat(e[2]) / 255; d.b = parseFloat(e[3]) / 255; d.a = e[4] ? parseFloat(e[4]) / 255 : 1; return a.colorCache[c] = d; }; a.Red = new a(1, 0, 0, 1); a.Green = new a(0, 1, 0, 1); a.Blue = new a(0, 0, 1, 1); a.None = new a(0, 0, 0, 0); a.White = new a(1, 1, 1, 1); a.Black = new a(0, 0, 0, 1); a.colorCache = {}; return a; }(); f.Color = r; var n; (function(a) { function c(a) { var e, h, d = a >> 24 & 255; h = (Math.imul(a >> 16 & 255, d) + 127) / 255 | 0; e = (Math.imul(a >> 8 & 255, d) + 127) / 255 | 0; a = (Math.imul(a >> 0 & 255, d) + 127) / 255 | 0; return d << 24 | h << 16 | e << 8 | a; } a.RGBAToARGB = function(a) { return a >> 8 & 16777215 | (a & 255) << 24; }; a.ARGBToRGBA = function(a) { return a << 8 | a >> 24 & 255; }; a.rgbaToCSSStyle = function(a) { return f.StringUtilities.concat9("rgba(", a >> 24 & 255, ",", a >> 16 & 255, ",", a >> 8 & 255, ",", (a & 255) / 255, ")"); }; a.cssStyleToRGBA = function(a) { if ("#" === a[0]) { if (7 === a.length) { return parseInt(a.substring(1), 16) << 8 | 255; } } else { if ("r" === a[0]) { return a = a.substring(5, a.length - 1).split(","), (parseInt(a[0]) & 255) << 24 | (parseInt(a[1]) & 255) << 16 | (parseInt(a[2]) & 255) << 8 | 255 * parseFloat(a[3]) & 255; } } return 4278190335; }; a.hexToRGB = function(a) { return parseInt(a.slice(1), 16); }; a.rgbToHex = function(a) { return "#" + ("000000" + (a >>> 0).toString(16)).slice(-6); }; a.isValidHexColor = function(a) { return /^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(a); }; a.clampByte = function(a) { return Math.max(0, Math.min(255, a)); }; a.unpremultiplyARGB = function(a) { var c, e, h = a >> 24 & 255; e = Math.imul(255, a >> 16 & 255) / h & 255; c = Math.imul(255, a >> 8 & 255) / h & 255; a = Math.imul(255, a >> 0 & 255) / h & 255; return h << 24 | e << 16 | c << 8 | a; }; a.premultiplyARGB = c; var d; a.ensureUnpremultiplyTable = function() { if (!d) { d = new Uint8Array(65536); for (var a = 0;256 > a;a++) { for (var c = 0;256 > c;c++) { d[(c << 8) + a] = Math.imul(255, a) / c; } } } }; a.tableLookupUnpremultiplyARGB = function(a) { a |= 0; var c = a >> 24 & 255; if (0 === c) { return 0; } if (255 === c) { return a; } var e, h, l = c << 8, p = d; h = p[l + (a >> 16 & 255)]; e = p[l + (a >> 8 & 255)]; a = p[l + (a >> 0 & 255)]; return c << 24 | h << 16 | e << 8 | a; }; a.blendPremultipliedBGRA = function(a, c) { var e, h; h = 256 - (c & 255); e = Math.imul(a & 16711935, h) >> 8; h = Math.imul(a >> 8 & 16711935, h) >> 8; return ((c >> 8 & 16711935) + h & 16711935) << 8 | (c & 16711935) + e & 16711935; }; var l = e.swap32; a.convertImage = function(a, e, p, n) { var b = p.length; if (a === e) { if (p !== n) { for (a = 0;a < b;a++) { n[a] = p[a]; } } } else { if (1 === a && 3 === e) { for (f.ColorUtilities.ensureUnpremultiplyTable(), a = 0;a < b;a++) { var g = p[a]; e = g & 255; if (0 === e) { n[a] = 0; } else { if (255 === e) { n[a] = 4278190080 | g >> 8 & 16777215; } else { var r = g >> 24 & 255, q = g >> 16 & 255, g = g >> 8 & 255, u = e << 8, D = d, g = D[u + g], q = D[u + q], r = D[u + r]; n[a] = e << 24 | r << 16 | q << 8 | g; } } } } else { if (2 === a && 3 === e) { for (a = 0;a < b;a++) { n[a] = l(p[a]); } } else { if (3 === a && 1 === e) { for (a = 0;a < b;a++) { e = p[a], n[a] = l(c(e & 4278255360 | e >> 16 & 255 | (e & 255) << 16)); } } else { for (k.somewhatImplemented("Image Format Conversion: " + t[a] + " -> " + t[e]), a = 0;a < b;a++) { n[a] = p[a]; } } } } } }; })(n = f.ColorUtilities || (f.ColorUtilities = {})); r = function() { function a(c) { void 0 === c && (c = 32); this._list = []; this._maxSize = c; } a.prototype.acquire = function(c) { if (a._enabled) { for (var e = this._list, d = 0;d < e.length;d++) { var l = e[d]; if (l.byteLength >= c) { return e.splice(d, 1), l; } } } return new ArrayBuffer(c); }; a.prototype.release = function(c) { if (a._enabled) { var e = this._list; e.length === this._maxSize && e.shift(); e.push(c); } }; a.prototype.ensureUint8ArrayLength = function(a, c) { if (a.length >= c) { return a; } var e = Math.max(a.length + c, (3 * a.length >> 1) + 1), e = new Uint8Array(this.acquire(e), 0, e); e.set(a); this.release(a.buffer); return e; }; a.prototype.ensureFloat64ArrayLength = function(a, c) { if (a.length >= c) { return a; } var e = Math.max(a.length + c, (3 * a.length >> 1) + 1), e = new Float64Array(this.acquire(e * Float64Array.BYTES_PER_ELEMENT), 0, e); e.set(a); this.release(a.buffer); return e; }; a._enabled = !0; return a; }(); f.ArrayBufferPool = r; (function(a) { (function(a) { a[a.EXTERNAL_INTERFACE_FEATURE = 1] = "EXTERNAL_INTERFACE_FEATURE"; a[a.CLIPBOARD_FEATURE = 2] = "CLIPBOARD_FEATURE"; a[a.SHAREDOBJECT_FEATURE = 3] = "SHAREDOBJECT_FEATURE"; a[a.VIDEO_FEATURE = 4] = "VIDEO_FEATURE"; a[a.SOUND_FEATURE = 5] = "SOUND_FEATURE"; a[a.NETCONNECTION_FEATURE = 6] = "NETCONNECTION_FEATURE"; })(a.Feature || (a.Feature = {})); (function(a) { a[a.AVM1_ERROR = 1] = "AVM1_ERROR"; a[a.AVM2_ERROR = 2] = "AVM2_ERROR"; })(a.ErrorTypes || (a.ErrorTypes = {})); a.instance; })(f.Telemetry || (f.Telemetry = {})); (function(a) { a.instance; })(f.FileLoadingService || (f.FileLoadingService = {})); (function(a) { a[a.BuiltinAbc = 0] = "BuiltinAbc"; a[a.PlayerglobalAbcs = 1] = "PlayerglobalAbcs"; a[a.PlayerglobalManifest = 2] = "PlayerglobalManifest"; a[a.ShellAbc = 3] = "ShellAbc"; })(f.SystemResourceId || (f.SystemResourceId = {})); (function(a) { a.instance; })(f.SystemResourcesLoadingService || (f.SystemResourcesLoadingService = {})); f.registerCSSFont = function(a, c, e) { if (inBrowser) { var d = document.head; d.insertBefore(document.createElement("style"), d.firstChild); d = document.styleSheets[0]; c = "@font-face{font-family:swffont" + a + ";src:url(data:font/opentype;base64," + f.StringUtilities.base64ArrayBuffer(c.buffer) + ")}"; d.insertRule(c, d.cssRules.length); e && (e = document.createElement("div"), e.style.fontFamily = "swffont" + a, e.innerHTML = "hello", document.body.appendChild(e), document.body.removeChild(e)); } else { k.warning("Cannot register CSS font outside the browser"); } }; (function(a) { a.instance = {enabled:!1, initJS:function(a) { }, registerCallback:function(a) { }, unregisterCallback:function(a) { }, eval:function(a) { }, call:function(a) { }, getId:function() { return null; }}; })(f.ExternalInterfaceService || (f.ExternalInterfaceService = {})); (function(a) { a.instance = {setClipboard:function(a) { k.notImplemented("setClipboard"); }}; })(f.ClipboardService || (f.ClipboardService = {})); r = function() { function a() { this._queues = {}; } a.prototype.register = function(a, c) { k.assert(a); k.assert(c); var e = this._queues[a]; if (e) { if (-1 < e.indexOf(c)) { return; } } else { e = this._queues[a] = []; } e.push(c); }; a.prototype.unregister = function(a, c) { k.assert(a); k.assert(c); var e = this._queues[a]; if (e) { var d = e.indexOf(c); -1 !== d && e.splice(d, 1); 0 === e.length && (this._queues[a] = null); } }; a.prototype.notify = function(a, c) { var e = this._queues[a]; if (e) { e = e.slice(); c = Array.prototype.slice.call(arguments, 0); for (var d = 0;d < e.length;d++) { e[d].apply(null, c); } } }; a.prototype.notify1 = function(a, c) { var e = this._queues[a]; if (e) { for (var e = e.slice(), d = 0;d < e.length;d++) { (0,e[d])(a, c); } } }; return a; }(); f.Callback = r; (function(a) { a[a.None = 0] = "None"; a[a.PremultipliedAlphaARGB = 1] = "PremultipliedAlphaARGB"; a[a.StraightAlphaARGB = 2] = "StraightAlphaARGB"; a[a.StraightAlphaRGBA = 3] = "StraightAlphaRGBA"; a[a.JPEG = 4] = "JPEG"; a[a.PNG = 5] = "PNG"; a[a.GIF = 6] = "GIF"; })(f.ImageType || (f.ImageType = {})); var t = f.ImageType; f.getMIMETypeForImageType = function(a) { switch(a) { case 4: return "image/jpeg"; case 5: return "image/png"; case 6: return "image/gif"; default: return "text/plain"; } }; (function(a) { a.toCSSCursor = function(a) { switch(a) { case 0: return "auto"; case 2: return "pointer"; case 3: return "grab"; case 4: return "text"; default: return "default"; } }; })(f.UI || (f.UI = {})); r = function() { function a() { this.promise = new Promise(function(a, c) { this.resolve = a; this.reject = c; }.bind(this)); } a.prototype.then = function(a, c) { return this.promise.then(a, c); }; return a; }(); f.PromiseWrapper = r; })(Shumway || (Shumway = {})); (function() { function f(a) { if ("function" !== typeof a) { throw new TypeError("Invalid deferred constructor"); } var c = l(); a = new a(c); var e = c.resolve; if ("function" !== typeof e) { throw new TypeError("Invalid resolve construction function"); } c = c.reject; if ("function" !== typeof c) { throw new TypeError("Invalid reject construction function"); } return {promise:a, resolve:e, reject:c}; } function b(a, c) { if ("object" !== typeof a || null === a) { return !1; } try { var e = a.then; if ("function" !== typeof e) { return !1; } e.call(a, c.resolve, c.reject); } catch (h) { e = c.reject, e(h); } return !0; } function g(a) { return "object" === typeof a && null !== a && "undefined" !== typeof a.promiseStatus; } function q(a, c) { if ("unresolved" === a.promiseStatus) { var e = a.rejectReactions; a.result = c; a.resolveReactions = void 0; a.rejectReactions = void 0; a.promiseStatus = "has-rejection"; u(e, c); } } function u(a, c) { for (var e = 0;e < a.length;e++) { k({reaction:a[e], argument:c}); } } function k(a) { 0 === m.length && setTimeout(r, 0); m.push(a); } function r() { for (;0 < m.length;) { var a = m[0]; try { a: { var c = a.reaction, e = c.deferred, h = c.handler, d = void 0, l = void 0; try { d = h(a.argument); } catch (t) { var n = e.reject; n(t); break a; } if (d === e.promise) { n = e.reject, n(new TypeError("Self resolution")); } else { try { if (l = b(d, e), !l) { var g = e.resolve; g(d); } } catch (r) { n = e.reject, n(r); } } } } catch (k) { if ("function" === typeof p.onerror) { p.onerror(k); } } m.shift(); } } function d(a) { throw a; } function a(a) { return a; } function c(a) { return function(c) { q(a, c); }; } function e(a) { return function(c) { if ("unresolved" === a.promiseStatus) { var e = a.resolveReactions; a.result = c; a.resolveReactions = void 0; a.rejectReactions = void 0; a.promiseStatus = "has-resolution"; u(e, c); } }; } function l() { function a(c, e) { a.resolve = c; a.reject = e; } return a; } function n(a, c, e) { return function(h) { if (h === a) { return e(new TypeError("Self resolution")); } var d = a.promiseConstructor; if (g(h) && h.promiseConstructor === d) { return h.then(c, e); } d = f(d); return b(h, d) ? d.promise.then(c, e) : c(h); }; } function t(a, c, e, h) { return function(d) { c[a] = d; h.countdown--; 0 === h.countdown && e.resolve(c); }; } function p(a) { if ("function" !== typeof a) { throw new TypeError("resolver is not a function"); } if ("object" !== typeof this) { throw new TypeError("Promise to initialize is not an object"); } this.promiseStatus = "unresolved"; this.resolveReactions = []; this.rejectReactions = []; this.result = void 0; var h = e(this), d = c(this); try { a(h, d); } catch (m) { q(this, m); } this.promiseConstructor = p; return this; } var h = Function("return this")(); if (h.Promise) { "function" !== typeof h.Promise.all && (h.Promise.all = function(a) { var c = 0, e = [], d, m, l = new h.Promise(function(a, c) { d = a; m = c; }); a.forEach(function(a, h) { c++; a.then(function(a) { e[h] = a; c--; 0 === c && d(e); }, m); }); 0 === c && d(e); return l; }), "function" !== typeof h.Promise.resolve && (h.Promise.resolve = function(a) { return new h.Promise(function(c) { c(a); }); }); } else { var m = []; p.all = function(a) { var c = f(this), e = [], h = {countdown:0}, d = 0; a.forEach(function(a) { this.cast(a).then(t(d, e, c, h), c.reject); d++; h.countdown++; }, this); 0 === d && c.resolve(e); return c.promise; }; p.cast = function(a) { if (g(a)) { return a; } var c = f(this); c.resolve(a); return c.promise; }; p.reject = function(a) { var c = f(this); c.reject(a); return c.promise; }; p.resolve = function(a) { var c = f(this); c.resolve(a); return c.promise; }; p.prototype = {"catch":function(a) { this.then(void 0, a); }, then:function(c, e) { if (!g(this)) { throw new TypeError("this is not a Promises"); } var h = f(this.promiseConstructor), m = "function" === typeof e ? e : d, l = {deferred:h, handler:n(this, "function" === typeof c ? c : a, m)}, m = {deferred:h, handler:m}; switch(this.promiseStatus) { case "unresolved": this.resolveReactions.push(l); this.rejectReactions.push(m); break; case "has-resolution": k({reaction:l, argument:this.result}); break; case "has-rejection": k({reaction:m, argument:this.result}); } return h.promise; }}; h.Promise = p; } })(); "undefined" !== typeof exports && (exports.Shumway = Shumway); (function() { function f(b, g, q) { b[g] || Object.defineProperty(b, g, {value:q, writable:!0, configurable:!0, enumerable:!1}); } f(String.prototype, "padRight", function(b, g) { var q = this, f = q.replace(/\033\[[0-9]*m/g, "").length; if (!b || f >= g) { return q; } for (var f = (g - f) / b.length, k = 0;k < f;k++) { q += b; } return q; }); f(String.prototype, "padLeft", function(b, g) { var q = this, f = q.length; if (!b || f >= g) { return q; } for (var f = (g - f) / b.length, k = 0;k < f;k++) { q = b + q; } return q; }); f(String.prototype, "trim", function() { return this.replace(/^\s+|\s+$/g, ""); }); f(String.prototype, "endsWith", function(b) { return -1 !== this.indexOf(b, this.length - b.length); }); f(Array.prototype, "replace", function(b, g) { if (b === g) { return 0; } for (var q = 0, f = 0;f < this.length;f++) { this[f] === b && (this[f] = g, q++); } return q; }); })(); (function(f) { (function(b) { var g = f.isObject, q = function() { function d(a, c, e, d) { this.shortName = a; this.longName = c; this.type = e; d = d || {}; this.positional = d.positional; this.parseFn = d.parse; this.value = d.defaultValue; } d.prototype.parse = function(a) { this.value = "boolean" === this.type ? a : "number" === this.type ? parseInt(a, 10) : a; this.parseFn && this.parseFn(this.value); }; return d; }(); b.Argument = q; var u = function() { function d() { this.args = []; } d.prototype.addArgument = function(a, c, e, d) { a = new q(a, c, e, d); this.args.push(a); return a; }; d.prototype.addBoundOption = function(a) { this.args.push(new q(a.shortName, a.longName, a.type, {parse:function(c) { a.value = c; }})); }; d.prototype.addBoundOptionSet = function(a) { var c = this; a.options.forEach(function(a) { k.isOptionSet(a) ? c.addBoundOptionSet(a) : c.addBoundOption(a); }); }; d.prototype.getUsage = function() { var a = ""; this.args.forEach(function(c) { a = c.positional ? a + c.longName : a + ("[-" + c.shortName + "|--" + c.longName + ("boolean" === c.type ? "" : " " + c.type[0].toUpperCase()) + "]"); a += " "; }); return a; }; d.prototype.parse = function(a) { var c = {}, e = []; this.args.forEach(function(a) { a.positional ? e.push(a) : (c["-" + a.shortName] = a, c["--" + a.longName] = a); }); for (var d = [];a.length;) { var n = a.shift(), t = null, p = n; if ("--" == n) { d = d.concat(a); break; } else { if ("-" == n.slice(0, 1) || "--" == n.slice(0, 2)) { t = c[n]; if (!t) { continue; } p = "boolean" !== t.type ? a.shift() : !0; } else { e.length ? t = e.shift() : d.push(p); } } t && t.parse(p); } return d; }; return d; }(); b.ArgumentParser = u; var k = function() { function d(a, c) { void 0 === c && (c = null); this.open = !1; this.name = a; this.settings = c || {}; this.options = []; } d.isOptionSet = function(a) { return a instanceof d ? !0 : "object" !== typeof a || null === a || a instanceof r ? !1 : "options" in a && "name" in a && "settings" in a; }; d.prototype.register = function(a) { if (d.isOptionSet(a)) { for (var c = 0;c < this.options.length;c++) { var e = this.options[c]; if (d.isOptionSet(e) && e.name === a.name) { return e; } } } this.options.push(a); if (this.settings) { if (d.isOptionSet(a)) { c = this.settings[a.name], g(c) && (a.settings = c.settings, a.open = c.open); } else { if ("undefined" !== typeof this.settings[a.longName]) { switch(a.type) { case "boolean": a.value = !!this.settings[a.longName]; break; case "number": a.value = +this.settings[a.longName]; break; default: a.value = this.settings[a.longName]; } } } } return a; }; d.prototype.trace = function(a) { a.enter(this.name + " {"); this.options.forEach(function(c) { c.trace(a); }); a.leave("}"); }; d.prototype.getSettings = function() { var a = {}; this.options.forEach(function(c) { d.isOptionSet(c) ? a[c.name] = {settings:c.getSettings(), open:c.open} : a[c.longName] = c.value; }); return a; }; d.prototype.setSettings = function(a) { a && this.options.forEach(function(c) { d.isOptionSet(c) ? c.name in a && c.setSettings(a[c.name].settings) : c.longName in a && (c.value = a[c.longName]); }); }; return d; }(); b.OptionSet = k; var r = function() { function d(a, c, e, d, n, t) { void 0 === t && (t = null); this.longName = c; this.shortName = a; this.type = e; this.value = this.defaultValue = d; this.description = n; this.config = t; } d.prototype.parse = function(a) { this.value = a; }; d.prototype.trace = function(a) { a.writeLn(("-" + this.shortName + "|--" + this.longName).padRight(" ", 30) + " = " + this.type + " " + this.value + " [" + this.defaultValue + "] (" + this.description + ")"); }; return d; }(); b.Option = r; })(f.Options || (f.Options = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { b.ROOT = "Shumway Options"; b.shumwayOptions = new f.Options.OptionSet(b.ROOT); b.setSettings = function(q) { b.shumwayOptions.setSettings(q); }; b.getSettings = function() { return b.shumwayOptions.getSettings(); }; })(f.Settings || (f.Settings = {})); var b = f.Options.Option; f.loggingOptions = f.Settings.shumwayOptions.register(new f.Options.OptionSet("Logging Options")); f.omitRepeatedWarnings = f.loggingOptions.register(new b("wo", "warnOnce", "boolean", !0, "Omit Repeated Warnings")); })(Shumway || (Shumway = {})); (function(f) { (function(b) { var g = function() { function b(g, k) { this._parent = g; this._timers = f.ObjectUtilities.createMap(); this._name = k; this._count = this._total = this._last = this._begin = 0; } b.time = function(g, k) { b.start(g); k(); b.stop(); }; b.start = function(g) { b._top = b._top._timers[g] || (b._top._timers[g] = new b(b._top, g)); b._top.start(); g = b._flat._timers[g] || (b._flat._timers[g] = new b(b._flat, g)); g.start(); b._flatStack.push(g); }; b.stop = function() { b._top.stop(); b._top = b._top._parent; b._flatStack.pop().stop(); }; b.stopStart = function(g) { b.stop(); b.start(g); }; b.prototype.start = function() { this._begin = f.getTicks(); }; b.prototype.stop = function() { this._last = f.getTicks() - this._begin; this._total += this._last; this._count += 1; }; b.prototype.toJSON = function() { return {name:this._name, total:this._total, timers:this._timers}; }; b.prototype.trace = function(b) { b.enter(this._name + ": " + this._total.toFixed(2) + " ms, count: " + this._count + ", average: " + (this._total / this._count).toFixed(2) + " ms"); for (var g in this._timers) { this._timers[g].trace(b); } b.outdent(); }; b.trace = function(g) { b._base.trace(g); b._flat.trace(g); }; b._base = new b(null, "Total"); b._top = b._base; b._flat = new b(null, "Flat"); b._flatStack = []; return b; }(); b.Timer = g; g = function() { function b(g) { this._enabled = g; this.clear(); } Object.defineProperty(b.prototype, "counts", {get:function() { return this._counts; }, enumerable:!0, configurable:!0}); b.prototype.setEnabled = function(b) { this._enabled = b; }; b.prototype.clear = function() { this._counts = f.ObjectUtilities.createMap(); this._times = f.ObjectUtilities.createMap(); }; b.prototype.toJSON = function() { return {counts:this._counts, times:this._times}; }; b.prototype.count = function(b, g, r) { void 0 === g && (g = 1); void 0 === r && (r = 0); if (this._enabled) { return void 0 === this._counts[b] && (this._counts[b] = 0, this._times[b] = 0), this._counts[b] += g, this._times[b] += r, this._counts[b]; } }; b.prototype.trace = function(b) { for (var g in this._counts) { b.writeLn(g + ": " + this._counts[g]); } }; b.prototype._pairToString = function(b, g) { var r = g[0], d = g[1], a = b[r], r = r + ": " + d; a && (r += ", " + a.toFixed(4), 1 < d && (r += " (" + (a / d).toFixed(4) + ")")); return r; }; b.prototype.toStringSorted = function() { var b = this, g = this._times, r = [], d; for (d in this._counts) { r.push([d, this._counts[d]]); } r.sort(function(a, c) { return c[1] - a[1]; }); return r.map(function(a) { return b._pairToString(g, a); }).join(", "); }; b.prototype.traceSorted = function(b, g) { void 0 === g && (g = !1); var r = this, d = this._times, a = [], c; for (c in this._counts) { a.push([c, this._counts[c]]); } a.sort(function(a, c) { return c[1] - a[1]; }); g ? b.writeLn(a.map(function(a) { return r._pairToString(d, a); }).join(", ")) : a.forEach(function(a) { b.writeLn(r._pairToString(d, a)); }); }; b.instance = new b(!0); return b; }(); b.Counter = g; g = function() { function b(g) { this._samples = new Float64Array(g); this._index = this._count = 0; } b.prototype.push = function(b) { this._count < this._samples.length && this._count++; this._index++; this._samples[this._index % this._samples.length] = b; }; b.prototype.average = function() { for (var b = 0, g = 0;g < this._count;g++) { b += this._samples[g]; } return b / this._count; }; return b; }(); b.Average = g; })(f.Metrics || (f.Metrics = {})); })(Shumway || (Shumway = {})); var __extends = this.__extends || function(f, b) { function g() { this.constructor = f; } for (var q in b) { b.hasOwnProperty(q) && (f[q] = b[q]); } g.prototype = b.prototype; f.prototype = new g; }; (function(f) { (function(b) { function g(a) { for (var c = Math.max.apply(null, a), e = a.length, h = 1 << c, d = new Uint32Array(h), l = c << 16 | 65535, p = 0;p < h;p++) { d[p] = l; } for (var l = 0, p = 1, t = 2;p <= c;l <<= 1, ++p, t <<= 1) { for (var n = 0;n < e;++n) { if (a[n] === p) { for (var b = 0, g = 0;g < p;++g) { b = 2 * b + (l >> g & 1); } for (g = b;g < h;g += t) { d[g] = p << 16 | n; } ++l; } } } return {codes:d, maxBits:c}; } var q; (function(a) { a[a.INIT = 0] = "INIT"; a[a.BLOCK_0 = 1] = "BLOCK_0"; a[a.BLOCK_1 = 2] = "BLOCK_1"; a[a.BLOCK_2_PRE = 3] = "BLOCK_2_PRE"; a[a.BLOCK_2 = 4] = "BLOCK_2"; a[a.DONE = 5] = "DONE"; a[a.ERROR = 6] = "ERROR"; a[a.VERIFY_HEADER = 7] = "VERIFY_HEADER"; })(q || (q = {})); q = function() { function a(c) { } a.prototype.push = function(a) { }; a.prototype.close = function() { }; a.create = function(a) { return "undefined" !== typeof ShumwayCom && ShumwayCom.createSpecialInflate ? new t(a, ShumwayCom.createSpecialInflate) : new f(a); }; a.prototype._processZLibHeader = function(a, c, e) { if (c + 2 > e) { return 0; } a = a[c] << 8 | a[c + 1]; c = null; 2048 !== (a & 3840) ? c = "inflate: unknown compression method" : 0 !== a % 31 ? c = "inflate: bad FCHECK" : 0 !== (a & 32) && (c = "inflate: FDICT bit set"); if (c) { if (this.onError) { this.onError(c); } return -1; } return 2; }; a.inflate = function(c, e, h) { var d = new Uint8Array(e), l = 0; e = a.create(h); e.onData = function(a) { var c = Math.min(a.length, d.length - l); c && b.memCopy(d, a, l, 0, c); l += c; }; e.onError = function(a) { throw Error(a); }; e.push(c); e.close(); return d; }; return a; }(); b.Inflate = q; var f = function(h) { function p(v) { h.call(this, v); this._buffer = null; this._bitLength = this._bitBuffer = this._bufferPosition = this._bufferSize = 0; this._window = new Uint8Array(65794); this._windowPosition = 0; this._state = v ? 7 : 0; this._isFinalBlock = !1; this._distanceTable = this._literalTable = null; this._block0Read = 0; this._block2State = null; this._copyState = {state:0, len:0, lenBits:0, dist:0, distBits:0}; if (!n) { k = new Uint8Array([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]); r = new Uint16Array(30); d = new Uint8Array(30); for (var t = v = 0, b = 1;30 > v;++v) { r[v] = b, b += 1 << (d[v] = ~~((t += 2 < v ? 1 : 0) / 2)); } var q = new Uint8Array(288); for (v = 0;32 > v;++v) { q[v] = 5; } a = g(q.subarray(0, 32)); c = new Uint16Array(29); e = new Uint8Array(29); t = v = 0; for (b = 3;29 > v;++v) { c[v] = b - (28 == v ? 1 : 0), b += 1 << (e[v] = ~~((t += 4 < v ? 1 : 0) / 4 % 6)); } for (v = 0;288 > v;++v) { q[v] = 144 > v || 279 < v ? 8 : 256 > v ? 9 : 7; } l = g(q); n = !0; } } __extends(p, h); p.prototype.push = function(a) { if (!this._buffer || this._buffer.length < this._bufferSize + a.length) { var c = new Uint8Array(this._bufferSize + a.length); this._buffer && c.set(this._buffer); this._buffer = c; } this._buffer.set(a, this._bufferSize); this._bufferSize += a.length; this._bufferPosition = 0; a = !1; do { c = this._windowPosition; if (0 === this._state && (a = this._decodeInitState())) { break; } switch(this._state) { case 1: a = this._decodeBlock0(); break; case 3: if (a = this._decodeBlock2Pre()) { break; } ; case 2: ; case 4: a = this._decodeBlock(); break; case 6: ; case 5: this._bufferPosition = this._bufferSize; break; case 7: var e = this._processZLibHeader(this._buffer, this._bufferPosition, this._bufferSize); 0 < e ? (this._bufferPosition += e, this._state = 0) : 0 === e ? a = !0 : this._state = 6; } if (0 < this._windowPosition - c) { this.onData(this._window.subarray(c, this._windowPosition)); } 65536 <= this._windowPosition && ("copyWithin" in this._buffer ? this._window.copyWithin(0, this._windowPosition - 32768, this._windowPosition) : this._window.set(this._window.subarray(this._windowPosition - 32768, this._windowPosition)), this._windowPosition = 32768); } while (!a && this._bufferPosition < this._bufferSize); this._bufferPosition < this._bufferSize ? ("copyWithin" in this._buffer ? this._buffer.copyWithin(0, this._bufferPosition, this._bufferSize) : this._buffer.set(this._buffer.subarray(this._bufferPosition, this._bufferSize)), this._bufferSize -= this._bufferPosition) : this._bufferSize = 0; }; p.prototype._decodeInitState = function() { if (this._isFinalBlock) { return this._state = 5, !1; } var c = this._buffer, e = this._bufferSize, h = this._bitBuffer, d = this._bitLength, m = this._bufferPosition; if (3 > (e - m << 3) + d) { return !0; } 3 > d && (h |= c[m++] << d, d += 8); var p = h & 7, h = h >> 3, d = d - 3; switch(p >> 1) { case 0: d = h = 0; if (4 > e - m) { return !0; } var v = c[m] | c[m + 1] << 8, c = c[m + 2] | c[m + 3] << 8, m = m + 4; if (65535 !== (v ^ c)) { this._error("inflate: invalid block 0 length"); c = 6; break; } 0 === v ? c = 0 : (this._block0Read = v, c = 1); break; case 1: c = 2; this._literalTable = l; this._distanceTable = a; break; case 2: if (26 > (e - m << 3) + d) { return !0; } for (;14 > d;) { h |= c[m++] << d, d += 8; } v = (h >> 10 & 15) + 4; if ((e - m << 3) + d < 14 + 3 * v) { return !0; } for (var e = {numLiteralCodes:(h & 31) + 257, numDistanceCodes:(h >> 5 & 31) + 1, codeLengthTable:void 0, bitLengths:void 0, codesRead:0, dupBits:0}, h = h >> 14, d = d - 14, t = new Uint8Array(19), n = 0;n < v;++n) { 3 > d && (h |= c[m++] << d, d += 8), t[k[n]] = h & 7, h >>= 3, d -= 3; } for (;19 > n;n++) { t[k[n]] = 0; } e.bitLengths = new Uint8Array(e.numLiteralCodes + e.numDistanceCodes); e.codeLengthTable = g(t); this._block2State = e; c = 3; break; default: return this._error("inflate: unsupported block type"), !1; } this._isFinalBlock = !!(p & 1); this._state = c; this._bufferPosition = m; this._bitBuffer = h; this._bitLength = d; return !1; }; p.prototype._error = function(a) { if (this.onError) { this.onError(a); } }; p.prototype._decodeBlock0 = function() { var a = this._bufferPosition, c = this._windowPosition, e = this._block0Read, h = 65794 - c, d = this._bufferSize - a, m = d < e, l = Math.min(h, d, e); this._window.set(this._buffer.subarray(a, a + l), c); this._windowPosition = c + l; this._bufferPosition = a + l; this._block0Read = e - l; return e === l ? (this._state = 0, !1) : m && h < d; }; p.prototype._readBits = function(a) { var c = this._bitBuffer, e = this._bitLength; if (a > e) { var h = this._bufferPosition, d = this._bufferSize; do { if (h >= d) { return this._bufferPosition = h, this._bitBuffer = c, this._bitLength = e, -1; } c |= this._buffer[h++] << e; e += 8; } while (a > e); this._bufferPosition = h; } this._bitBuffer = c >> a; this._bitLength = e - a; return c & (1 << a) - 1; }; p.prototype._readCode = function(a) { var c = this._bitBuffer, e = this._bitLength, h = a.maxBits; if (h > e) { var d = this._bufferPosition, m = this._bufferSize; do { if (d >= m) { return this._bufferPosition = d, this._bitBuffer = c, this._bitLength = e, -1; } c |= this._buffer[d++] << e; e += 8; } while (h > e); this._bufferPosition = d; } a = a.codes[c & (1 << h) - 1]; h = a >> 16; if (a & 32768) { return this._error("inflate: invalid encoding"), this._state = 6, -1; } this._bitBuffer = c >> h; this._bitLength = e - h; return a & 65535; }; p.prototype._decodeBlock2Pre = function() { var a = this._block2State, c = a.numLiteralCodes + a.numDistanceCodes, e = a.bitLengths, h = a.codesRead, d = 0 < h ? e[h - 1] : 0, m = a.codeLengthTable, l; if (0 < a.dupBits) { l = this._readBits(a.dupBits); if (0 > l) { return !0; } for (;l--;) { e[h++] = d; } a.dupBits = 0; } for (;h < c;) { var p = this._readCode(m); if (0 > p) { return a.codesRead = h, !0; } if (16 > p) { e[h++] = d = p; } else { var v; switch(p) { case 16: v = 2; l = 3; p = d; break; case 17: l = v = 3; p = 0; break; case 18: v = 7, l = 11, p = 0; } for (;l--;) { e[h++] = p; } l = this._readBits(v); if (0 > l) { return a.codesRead = h, a.dupBits = v, !0; } for (;l--;) { e[h++] = p; } d = p; } } this._literalTable = g(e.subarray(0, a.numLiteralCodes)); this._distanceTable = g(e.subarray(a.numLiteralCodes)); this._state = 4; this._block2State = null; return !1; }; p.prototype._decodeBlock = function() { var a = this._literalTable, h = this._distanceTable, m = this._window, l = this._windowPosition, p = this._copyState, v, t, n, b; if (0 !== p.state) { switch(p.state) { case 1: if (0 > (v = this._readBits(p.lenBits))) { return !0; } p.len += v; p.state = 2; case 2: if (0 > (v = this._readCode(h))) { return !0; } p.distBits = d[v]; p.dist = r[v]; p.state = 3; case 3: v = 0; if (0 < p.distBits && 0 > (v = this._readBits(p.distBits))) { return !0; } b = p.dist + v; t = p.len; for (v = l - b;t--;) { m[l++] = m[v++]; } p.state = 0; if (65536 <= l) { return this._windowPosition = l, !1; } break; } } do { v = this._readCode(a); if (0 > v) { return this._windowPosition = l, !0; } if (256 > v) { m[l++] = v; } else { if (256 < v) { this._windowPosition = l; v -= 257; n = e[v]; t = c[v]; v = 0 === n ? 0 : this._readBits(n); if (0 > v) { return p.state = 1, p.len = t, p.lenBits = n, !0; } t += v; v = this._readCode(h); if (0 > v) { return p.state = 2, p.len = t, !0; } n = d[v]; b = r[v]; v = 0 === n ? 0 : this._readBits(n); if (0 > v) { return p.state = 3, p.len = t, p.dist = b, p.distBits = n, !0; } b += v; for (v = l - b;t--;) { m[l++] = m[v++]; } } else { this._state = 0; break; } } } while (65536 > l); this._windowPosition = l; return !1; }; return p; }(q), k, r, d, a, c, e, l, n = !1, t = function(a) { function c(e, h) { a.call(this, e); this._verifyHeader = e; this._specialInflate = h(); this._specialInflate.setDataCallback(function(a) { this.onData(a); }.bind(this)); } __extends(c, a); c.prototype.push = function(a) { if (this._verifyHeader) { var c; this._buffer ? (c = new Uint8Array(this._buffer.length + a.length), c.set(this._buffer), c.set(a, this._buffer.length), this._buffer = null) : c = new Uint8Array(a); var e = this._processZLibHeader(c, 0, c.length); if (0 === e) { this._buffer = c; return; } this._verifyHeader = !0; 0 < e && (a = c.subarray(e)); } this._specialInflate.push(a); }; c.prototype.close = function() { this._specialInflate && (this._specialInflate.close(), this._specialInflate = null); }; return c; }(q), p; (function(a) { a[a.WRITE = 0] = "WRITE"; a[a.DONE = 1] = "DONE"; a[a.ZLIB_HEADER = 2] = "ZLIB_HEADER"; })(p || (p = {})); var h = function() { function a() { this.a = 1; this.b = 0; } a.prototype.update = function(a, c, e) { for (var h = this.a, d = this.b;c < e;++c) { h = (h + (a[c] & 255)) % 65521, d = (d + h) % 65521; } this.a = h; this.b = d; }; a.prototype.getChecksum = function() { return this.b << 16 | this.a; }; return a; }(); b.Adler32 = h; p = function() { function a(c) { this._state = (this._writeZlibHeader = c) ? 2 : 0; this._adler32 = c ? new h : null; } a.prototype.push = function(a) { 2 === this._state && (this.onData(new Uint8Array([120, 156])), this._state = 0); for (var c = a.length, e = c + 5 * Math.ceil(c / 65535), e = new Uint8Array(e), h = 0, d = 0;65535 < c;) { e.set(new Uint8Array([0, 255, 255, 0, 0]), h), h += 5, e.set(a.subarray(d, d + 65535), h), d += 65535, h += 65535, c -= 65535; } e.set(new Uint8Array([0, c & 255, c >> 8 & 255, ~c & 255, ~c >> 8 & 255]), h); e.set(a.subarray(d, c), h + 5); this.onData(e); this._adler32 && this._adler32.update(a, 0, c); }; a.prototype.close = function() { this._state = 1; this.onData(new Uint8Array([1, 0, 0, 255, 255])); if (this._adler32) { var a = this._adler32.getChecksum(); this.onData(new Uint8Array([a & 255, a >> 8 & 255, a >> 16 & 255, a >>> 24 & 255])); } }; return a; }(); b.Deflate = p; })(f.ArrayUtilities || (f.ArrayUtilities = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { function g(a) { for (var c = new Uint16Array(a), e = 0;e < a;e++) { c[e] = 1024; } return c; } function q(a, c, e, h) { for (var d = 1, m = 0, l = 0;l < e;l++) { var p = h.decodeBit(a, d + c), d = (d << 1) + p, m = m | p << l } return m; } function f(a, e) { var h = []; h.length = e; for (var d = 0;d < e;d++) { h[d] = new c(a); } return h; } var k = function() { function a() { this.pos = this.available = 0; this.buffer = new Uint8Array(2E3); } a.prototype.append = function(a) { var c = this.pos + this.available, e = c + a.length; if (e > this.buffer.length) { for (var h = 2 * this.buffer.length;h < e;) { h *= 2; } e = new Uint8Array(h); e.set(this.buffer); this.buffer = e; } this.buffer.set(a, c); this.available += a.length; }; a.prototype.compact = function() { 0 !== this.available && (this.buffer.set(this.buffer.subarray(this.pos, this.pos + this.available), 0), this.pos = 0); }; a.prototype.readByte = function() { if (0 >= this.available) { throw Error("Unexpected end of file"); } this.available--; return this.buffer[this.pos++]; }; return a; }(), r = function() { function a(c) { this.onData = c; this.processed = 0; } a.prototype.writeBytes = function(a) { this.onData.call(null, a); this.processed += a.length; }; return a; }(), d = function() { function a(c) { this.outStream = c; this.buf = null; this.size = this.pos = 0; this.isFull = !1; this.totalPos = this.writePos = 0; } a.prototype.create = function(a) { this.buf = new Uint8Array(a); this.pos = 0; this.size = a; this.isFull = !1; this.totalPos = this.writePos = 0; }; a.prototype.putByte = function(a) { this.totalPos++; this.buf[this.pos++] = a; this.pos === this.size && (this.flush(), this.pos = 0, this.isFull = !0); }; a.prototype.getByte = function(a) { return this.buf[a <= this.pos ? this.pos - a : this.size - a + this.pos]; }; a.prototype.flush = function() { this.writePos < this.pos && (this.outStream.writeBytes(this.buf.subarray(this.writePos, this.pos)), this.writePos = this.pos === this.size ? 0 : this.pos); }; a.prototype.copyMatch = function(a, c) { for (var e = this.pos, h = this.size, d = this.buf, m = a <= e ? e - a : h - a + e, l = c;0 < l;) { for (var p = Math.min(Math.min(l, h - e), h - m), v = 0;v < p;v++) { var t = d[m++]; d[e++] = t; } e === h && (this.pos = e, this.flush(), e = 0, this.isFull = !0); m === h && (m = 0); l -= p; } this.pos = e; this.totalPos += c; }; a.prototype.checkDistance = function(a) { return a <= this.pos || this.isFull; }; a.prototype.isEmpty = function() { return 0 === this.pos && !this.isFull; }; return a; }(), a = function() { function a(c) { this.inStream = c; this.code = this.range = 0; this.corrupted = !1; } a.prototype.init = function() { 0 !== this.inStream.readByte() && (this.corrupted = !0); this.range = -1; for (var a = 0, c = 0;4 > c;c++) { a = a << 8 | this.inStream.readByte(); } a === this.range && (this.corrupted = !0); this.code = a; }; a.prototype.isFinishedOK = function() { return 0 === this.code; }; a.prototype.decodeDirectBits = function(a) { var c = 0, e = this.range, h = this.code; do { var e = e >>> 1 | 0, h = h - e | 0, d = h >> 31, h = h + (e & d) | 0; h === e && (this.corrupted = !0); 0 <= e && 16777216 > e && (e <<= 8, h = h << 8 | this.inStream.readByte()); c = (c << 1) + d + 1 | 0; } while (--a); this.range = e; this.code = h; return c; }; a.prototype.decodeBit = function(a, c) { var e = this.range, h = this.code, d = a[c], m = (e >>> 11) * d; h >>> 0 < m ? (d = d + (2048 - d >> 5) | 0, e = m | 0, m = 0) : (d = d - (d >> 5) | 0, h = h - m | 0, e = e - m | 0, m = 1); a[c] = d & 65535; 0 <= e && 16777216 > e && (e <<= 8, h = h << 8 | this.inStream.readByte()); this.range = e; this.code = h; return m; }; return a; }(), c = function() { function a(c) { this.numBits = c; this.probs = g(1 << c); } a.prototype.decode = function(a) { for (var c = 1, e = 0;e < this.numBits;e++) { c = (c << 1) + a.decodeBit(this.probs, c); } return c - (1 << this.numBits); }; a.prototype.reverseDecode = function(a) { return q(this.probs, 0, this.numBits, a); }; return a; }(), e = function() { function a() { this.choice = g(2); this.lowCoder = f(3, 16); this.midCoder = f(3, 16); this.highCoder = new c(8); } a.prototype.decode = function(a, c) { return 0 === a.decodeBit(this.choice, 0) ? this.lowCoder[c].decode(a) : 0 === a.decodeBit(this.choice, 1) ? 8 + this.midCoder[c].decode(a) : 16 + this.highCoder.decode(a); }; return a; }(), l = function() { function m(c, e) { this.rangeDec = new a(c); this.outWindow = new d(e); this.markerIsMandatory = !1; this.dictSizeInProperties = this.dictSize = this.lp = this.pb = this.lc = 0; this.leftToUnpack = this.unpackSize = void 0; this.reps = new Int32Array(4); this.state = 0; } m.prototype.decodeProperties = function(a) { var c = a[0]; if (225 <= c) { throw Error("Incorrect LZMA properties"); } this.lc = c % 9; c = c / 9 | 0; this.pb = c / 5 | 0; this.lp = c % 5; for (c = this.dictSizeInProperties = 0;4 > c;c++) { this.dictSizeInProperties |= a[c + 1] << 8 * c; } this.dictSize = this.dictSizeInProperties; 4096 > this.dictSize && (this.dictSize = 4096); }; m.prototype.create = function() { this.outWindow.create(this.dictSize); this.init(); this.rangeDec.init(); this.reps[0] = 0; this.reps[1] = 0; this.reps[2] = 0; this.state = this.reps[3] = 0; this.leftToUnpack = this.unpackSize; }; m.prototype.decodeLiteral = function(a, c) { var e = this.outWindow, h = this.rangeDec, d = 0; e.isEmpty() || (d = e.getByte(1)); var m = 1, d = 768 * (((e.totalPos & (1 << this.lp) - 1) << this.lc) + (d >> 8 - this.lc)); if (7 <= a) { e = e.getByte(c + 1); do { var l = e >> 7 & 1, e = e << 1, p = h.decodeBit(this.litProbs, d + ((1 + l << 8) + m)), m = m << 1 | p; if (l !== p) { break; } } while (256 > m); } for (;256 > m;) { m = m << 1 | h.decodeBit(this.litProbs, d + m); } return m - 256 & 255; }; m.prototype.decodeDistance = function(a) { var c = a; 3 < c && (c = 3); a = this.rangeDec; c = this.posSlotDecoder[c].decode(a); if (4 > c) { return c; } var e = (c >> 1) - 1, h = (2 | c & 1) << e; 14 > c ? h = h + q(this.posDecoders, h - c, e, a) | 0 : (h = h + (a.decodeDirectBits(e - 4) << 4) | 0, h = h + this.alignDecoder.reverseDecode(a) | 0); return h; }; m.prototype.init = function() { this.litProbs = g(768 << this.lc + this.lp); this.posSlotDecoder = f(6, 4); this.alignDecoder = new c(4); this.posDecoders = g(115); this.isMatch = g(192); this.isRep = g(12); this.isRepG0 = g(12); this.isRepG1 = g(12); this.isRepG2 = g(12); this.isRep0Long = g(192); this.lenDecoder = new e; this.repLenDecoder = new e; }; m.prototype.decode = function(a) { for (var c = this.rangeDec, e = this.outWindow, d = this.pb, m = this.dictSize, l = this.markerIsMandatory, v = this.leftToUnpack, b = this.isMatch, g = this.isRep, r = this.isRepG0, k = this.isRepG1, q = this.isRepG2, f = this.isRep0Long, E = this.lenDecoder, u = this.repLenDecoder, L = this.reps[0], M = this.reps[1], P = this.reps[2], R = this.reps[3], O = this.state;;) { if (a && 48 > c.inStream.available) { this.outWindow.flush(); break; } if (0 === v && !l && (this.outWindow.flush(), c.isFinishedOK())) { return p; } var Q = e.totalPos & (1 << d) - 1; if (0 === c.decodeBit(b, (O << 4) + Q)) { if (0 === v) { return n; } e.putByte(this.decodeLiteral(O, L)); O = 4 > O ? 0 : 10 > O ? O - 3 : O - 6; v--; } else { if (0 !== c.decodeBit(g, O)) { if (0 === v || e.isEmpty()) { return n; } if (0 === c.decodeBit(r, O)) { if (0 === c.decodeBit(f, (O << 4) + Q)) { O = 7 > O ? 9 : 11; e.putByte(e.getByte(L + 1)); v--; continue; } } else { var W; 0 === c.decodeBit(k, O) ? W = M : (0 === c.decodeBit(q, O) ? W = P : (W = R, R = P), P = M); M = L; L = W; } Q = u.decode(c, Q); O = 7 > O ? 8 : 11; } else { R = P; P = M; M = L; Q = E.decode(c, Q); O = 7 > O ? 7 : 10; L = this.decodeDistance(Q); if (-1 === L) { return this.outWindow.flush(), c.isFinishedOK() ? t : n; } if (0 === v || L >= m || !e.checkDistance(L)) { return n; } } Q += 2; W = !1; void 0 !== v && v < Q && (Q = v, W = !0); e.copyMatch(L + 1, Q); v -= Q; if (W) { return n; } } } this.state = O; this.reps[0] = L; this.reps[1] = M; this.reps[2] = P; this.reps[3] = R; this.leftToUnpack = v; return h; }; m.prototype.flushOutput = function() { this.outWindow.flush(); }; return m; }(), n = 0, t = 1, p = 2, h = 3, m; (function(a) { a[a.WAIT_FOR_LZMA_HEADER = 0] = "WAIT_FOR_LZMA_HEADER"; a[a.WAIT_FOR_SWF_HEADER = 1] = "WAIT_FOR_SWF_HEADER"; a[a.PROCESS_DATA = 2] = "PROCESS_DATA"; a[a.CLOSED = 3] = "CLOSED"; a[a.ERROR = 4] = "ERROR"; })(m || (m = {})); m = function() { function a(c) { void 0 === c && (c = !1); this._state = c ? 1 : 0; this.buffer = null; } a.prototype.push = function(a) { if (2 > this._state) { var c = this.buffer ? this.buffer.length : 0, e = (1 === this._state ? 17 : 13) + 5; if (c + a.length < e) { e = new Uint8Array(c + a.length); 0 < c && e.set(this.buffer); e.set(a, c); this.buffer = e; return; } var d = new Uint8Array(e); 0 < c && d.set(this.buffer); d.set(a.subarray(0, e - c), c); this._inStream = new k; this._inStream.append(d.subarray(e - 5)); this._outStream = new r(function(a) { this.onData.call(null, a); }.bind(this)); this._decoder = new l(this._inStream, this._outStream); if (1 === this._state) { this._decoder.decodeProperties(d.subarray(12, 17)), this._decoder.markerIsMandatory = !1, this._decoder.unpackSize = ((d[4] | d[5] << 8 | d[6] << 16 | d[7] << 24) >>> 0) - 8; } else { this._decoder.decodeProperties(d.subarray(0, 5)); for (var c = 0, m = !1, p = 0;8 > p;p++) { var v = d[5 + p]; 255 !== v && (m = !0); c |= v << 8 * p; } this._decoder.markerIsMandatory = !m; this._decoder.unpackSize = m ? c : void 0; } this._decoder.create(); a = a.subarray(e); this._state = 2; } else { if (2 !== this._state) { return; } } try { this._inStream.append(a); var t = this._decoder.decode(!0); this._inStream.compact(); t !== h && this._checkError(t); } catch (n) { this._decoder.flushOutput(), this._decoder = null, this._error(n); } }; a.prototype.close = function() { if (2 === this._state) { this._state = 3; try { var a = this._decoder.decode(!1); this._checkError(a); } catch (c) { this._decoder.flushOutput(), this._error(c); } this._decoder = null; } }; a.prototype._error = function(a) { this._state = 4; if (this.onError) { this.onError(a); } }; a.prototype._checkError = function(a) { var c; a === n ? c = "LZMA decoding error" : a === h ? c = "Decoding is not complete" : a === t ? void 0 !== this._decoder.unpackSize && this._decoder.unpackSize !== this._outStream.processed && (c = "Finished with end marker before than specified size") : c = "Internal LZMA Error"; c && this._error(c); }; return a; }(); b.LzmaDecoder = m; })(f.ArrayUtilities || (f.ArrayUtilities = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { function g(a) { return "string" === typeof a ? a : void 0 == a ? null : a + ""; } var q = f.Debug.notImplemented, u = f.StringUtilities.utf8decode, k = f.StringUtilities.utf8encode, r = f.NumberUtilities.clamp, d = function() { return function(a, c, e) { this.buffer = a; this.length = c; this.littleEndian = e; }; }(); b.PlainObjectDataBuffer = d; for (var a = new Uint32Array(33), c = 1, e = 0;32 >= c;c++) { a[c] = e = e << 1 | 1; } var l; (function(a) { a[a.U8 = 1] = "U8"; a[a.I32 = 2] = "I32"; a[a.F32 = 4] = "F32"; })(l || (l = {})); c = function() { function c(a) { void 0 === a && (a = c.INITIAL_SIZE); this._buffer || (this._buffer = new ArrayBuffer(a), this._position = this._length = 0, this._resetViews(), this._littleEndian = c._nativeLittleEndian, this._bitLength = this._bitBuffer = 0); } c.FromArrayBuffer = function(a, e) { void 0 === e && (e = -1); var h = Object.create(c.prototype); h._buffer = a; h._length = -1 === e ? a.byteLength : e; h._position = 0; h._resetViews(); h._littleEndian = c._nativeLittleEndian; h._bitBuffer = 0; h._bitLength = 0; return h; }; c.FromPlainObject = function(a) { var e = c.FromArrayBuffer(a.buffer, a.length); e._littleEndian = a.littleEndian; return e; }; c.prototype.toPlainObject = function() { return new d(this._buffer, this._length, this._littleEndian); }; c.prototype._resetViews = function() { this._u8 = new Uint8Array(this._buffer); this._f32 = this._i32 = null; }; c.prototype._requestViews = function(a) { 0 === (this._buffer.byteLength & 3) && (null === this._i32 && a & 2 && (this._i32 = new Int32Array(this._buffer)), null === this._f32 && a & 4 && (this._f32 = new Float32Array(this._buffer))); }; c.prototype.getBytes = function() { return new Uint8Array(this._buffer, 0, this._length); }; c.prototype._ensureCapacity = function(a) { var e = this._buffer; if (e.byteLength < a) { for (var h = Math.max(e.byteLength, 1);h < a;) { h *= 2; } h = c._arrayBufferPool.acquire(h); a = this._u8; this._buffer = h; this._resetViews(); this._u8.set(a); h = this._u8; for (a = a.length;a < h.length;a++) { h[a] = 0; } c._arrayBufferPool.release(e); } }; c.prototype.clear = function() { this._position = this._length = 0; }; c.prototype.readBoolean = function() { return 0 !== this.readUnsignedByte(); }; c.prototype.readByte = function() { return this.readUnsignedByte() << 24 >> 24; }; c.prototype.readUnsignedByte = function() { this._position + 1 > this._length && this.sec.throwError("flash.errors.EOFError", Errors.EOFError); return this._u8[this._position++]; }; c.prototype.readBytes = function(a, c, e) { void 0 === c && (c = 0); void 0 === e && (e = 0); var d = this._position; c || (c = 0); e || (e = this._length - d); d + e > this._length && this.sec.throwError("flash.errors.EOFError", Errors.EOFError); a.length < c + e && (a._ensureCapacity(c + e), a.length = c + e); a._u8.set(new Uint8Array(this._buffer, d, e), c); this._position += e; }; c.prototype.readShort = function() { return this.readUnsignedShort() << 16 >> 16; }; c.prototype.readUnsignedShort = function() { var a = this._u8, c = this._position; c + 2 > this._length && this.sec.throwError("flash.errors.EOFError", Errors.EOFError); var e = a[c + 0], a = a[c + 1]; this._position = c + 2; return this._littleEndian ? a << 8 | e : e << 8 | a; }; c.prototype.readInt = function() { var a = this._u8, c = this._position; c + 4 > this._length && this.sec.throwError("flash.errors.EOFError", Errors.EOFError); var e = a[c + 0], d = a[c + 1], l = a[c + 2], a = a[c + 3]; this._position = c + 4; return this._littleEndian ? a << 24 | l << 16 | d << 8 | e : e << 24 | d << 16 | l << 8 | a; }; c.prototype.readUnsignedInt = function() { return this.readInt() >>> 0; }; c.prototype.readFloat = function() { var a = this._position; a + 4 > this._length && this.sec.throwError("flash.errors.EOFError", Errors.EOFError); this._position = a + 4; this._requestViews(4); if (this._littleEndian && 0 === (a & 3) && this._f32) { return this._f32[a >> 2]; } var c = this._u8, e = f.IntegerUtilities.u8; this._littleEndian ? (e[0] = c[a + 0], e[1] = c[a + 1], e[2] = c[a + 2], e[3] = c[a + 3]) : (e[3] = c[a + 0], e[2] = c[a + 1], e[1] = c[a + 2], e[0] = c[a + 3]); return f.IntegerUtilities.f32[0]; }; c.prototype.readDouble = function() { var a = this._u8, c = this._position; c + 8 > this._length && this.sec.throwError("flash.errors.EOFError", Errors.EOFError); var e = f.IntegerUtilities.u8; this._littleEndian ? (e[0] = a[c + 0], e[1] = a[c + 1], e[2] = a[c + 2], e[3] = a[c + 3], e[4] = a[c + 4], e[5] = a[c + 5], e[6] = a[c + 6], e[7] = a[c + 7]) : (e[0] = a[c + 7], e[1] = a[c + 6], e[2] = a[c + 5], e[3] = a[c + 4], e[4] = a[c + 3], e[5] = a[c + 2], e[6] = a[c + 1], e[7] = a[c + 0]); this._position = c + 8; return f.IntegerUtilities.f64[0]; }; c.prototype.writeBoolean = function(a) { this.writeByte(a ? 1 : 0); }; c.prototype.writeByte = function(a) { var c = this._position + 1; this._ensureCapacity(c); this._u8[this._position++] = a; c > this._length && (this._length = c); }; c.prototype.writeUnsignedByte = function(a) { var c = this._position + 1; this._ensureCapacity(c); this._u8[this._position++] = a; c > this._length && (this._length = c); }; c.prototype.writeRawBytes = function(a) { var c = this._position + a.length; this._ensureCapacity(c); this._u8.set(a, this._position); this._position = c; c > this._length && (this._length = c); }; c.prototype.writeBytes = function(a, c, e) { f.isNullOrUndefined(a) && this.sec.throwError("TypeError", Errors.NullPointerError, "bytes"); c >>>= 0; e >>>= 0; 2 > arguments.length && (c = 0); 3 > arguments.length && (e = 0); c === r(c, 0, a.length) && c + e === r(c + e, 0, a.length) || this.sec.throwError("RangeError", Errors.ParamRangeError); 0 === e && (e = a.length - c); this.writeRawBytes(new Int8Array(a._buffer, c, e)); }; c.prototype.writeShort = function(a) { this.writeUnsignedShort(a); }; c.prototype.writeUnsignedShort = function(a) { var c = this._position; this._ensureCapacity(c + 2); var e = this._u8; this._littleEndian ? (e[c + 0] = a, e[c + 1] = a >> 8) : (e[c + 0] = a >> 8, e[c + 1] = a); this._position = c += 2; c > this._length && (this._length = c); }; c.prototype.writeInt = function(a) { this.writeUnsignedInt(a); }; c.prototype.write2Ints = function(a, c) { this.write2UnsignedInts(a, c); }; c.prototype.write4Ints = function(a, c, e, d) { this.write4UnsignedInts(a, c, e, d); }; c.prototype.writeUnsignedInt = function(a) { var e = this._position; this._ensureCapacity(e + 4); this._requestViews(2); if (this._littleEndian === c._nativeLittleEndian && 0 === (e & 3) && this._i32) { this._i32[e >> 2] = a; } else { var h = this._u8; this._littleEndian ? (h[e + 0] = a, h[e + 1] = a >> 8, h[e + 2] = a >> 16, h[e + 3] = a >> 24) : (h[e + 0] = a >> 24, h[e + 1] = a >> 16, h[e + 2] = a >> 8, h[e + 3] = a); } this._position = e += 4; e > this._length && (this._length = e); }; c.prototype.write2UnsignedInts = function(a, e) { var h = this._position; this._ensureCapacity(h + 8); this._requestViews(2); this._littleEndian === c._nativeLittleEndian && 0 === (h & 3) && this._i32 ? (this._i32[(h >> 2) + 0] = a, this._i32[(h >> 2) + 1] = e, this._position = h += 8, h > this._length && (this._length = h)) : (this.writeUnsignedInt(a), this.writeUnsignedInt(e)); }; c.prototype.write4UnsignedInts = function(a, e, h, d) { var l = this._position; this._ensureCapacity(l + 16); this._requestViews(2); this._littleEndian === c._nativeLittleEndian && 0 === (l & 3) && this._i32 ? (this._i32[(l >> 2) + 0] = a, this._i32[(l >> 2) + 1] = e, this._i32[(l >> 2) + 2] = h, this._i32[(l >> 2) + 3] = d, this._position = l += 16, l > this._length && (this._length = l)) : (this.writeUnsignedInt(a), this.writeUnsignedInt(e), this.writeUnsignedInt(h), this.writeUnsignedInt(d)); }; c.prototype.writeFloat = function(a) { var e = this._position; this._ensureCapacity(e + 4); this._requestViews(4); if (this._littleEndian === c._nativeLittleEndian && 0 === (e & 3) && this._f32) { this._f32[e >> 2] = a; } else { var h = this._u8; f.IntegerUtilities.f32[0] = a; a = f.IntegerUtilities.u8; this._littleEndian ? (h[e + 0] = a[0], h[e + 1] = a[1], h[e + 2] = a[2], h[e + 3] = a[3]) : (h[e + 0] = a[3], h[e + 1] = a[2], h[e + 2] = a[1], h[e + 3] = a[0]); } this._position = e += 4; e > this._length && (this._length = e); }; c.prototype.write6Floats = function(a, e, h, d, l, b) { var g = this._position; this._ensureCapacity(g + 24); this._requestViews(4); this._littleEndian === c._nativeLittleEndian && 0 === (g & 3) && this._f32 ? (this._f32[(g >> 2) + 0] = a, this._f32[(g >> 2) + 1] = e, this._f32[(g >> 2) + 2] = h, this._f32[(g >> 2) + 3] = d, this._f32[(g >> 2) + 4] = l, this._f32[(g >> 2) + 5] = b, this._position = g += 24, g > this._length && (this._length = g)) : (this.writeFloat(a), this.writeFloat(e), this.writeFloat(h), this.writeFloat(d), this.writeFloat(l), this.writeFloat(b)); }; c.prototype.writeDouble = function(a) { var c = this._position; this._ensureCapacity(c + 8); var e = this._u8; f.IntegerUtilities.f64[0] = a; a = f.IntegerUtilities.u8; this._littleEndian ? (e[c + 0] = a[0], e[c + 1] = a[1], e[c + 2] = a[2], e[c + 3] = a[3], e[c + 4] = a[4], e[c + 5] = a[5], e[c + 6] = a[6], e[c + 7] = a[7]) : (e[c + 0] = a[7], e[c + 1] = a[6], e[c + 2] = a[5], e[c + 3] = a[4], e[c + 4] = a[3], e[c + 5] = a[2], e[c + 6] = a[1], e[c + 7] = a[0]); this._position = c += 8; c > this._length && (this._length = c); }; c.prototype.readRawBytes = function() { return new Int8Array(this._buffer, 0, this._length); }; c.prototype.writeUTF = function(a) { a = g(a); a = u(a); this.writeShort(a.length); this.writeRawBytes(a); }; c.prototype.writeUTFBytes = function(a) { a = g(a); a = u(a); this.writeRawBytes(a); }; c.prototype.readUTF = function() { return this.readUTFBytes(this.readShort()); }; c.prototype.readUTFBytes = function(a) { a >>>= 0; var c = this._position; c + a > this._length && this.sec.throwError("flash.errors.EOFError", Errors.EOFError); this._position += a; return k(new Int8Array(this._buffer, c, a)); }; Object.defineProperty(c.prototype, "length", {get:function() { return this._length; }, set:function(a) { a >>>= 0; a > this._buffer.byteLength && this._ensureCapacity(a); this._length = a; this._position = r(this._position, 0, this._length); }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "bytesAvailable", {get:function() { return this._length - this._position; }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "position", {get:function() { return this._position; }, set:function(a) { this._position = a >>> 0; }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "buffer", {get:function() { return this._buffer; }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "bytes", {get:function() { return this._u8; }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "ints", {get:function() { this._requestViews(2); return this._i32; }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "objectEncoding", {get:function() { return this._objectEncoding; }, set:function(a) { this._objectEncoding = a >>> 0; }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "endian", {get:function() { return this._littleEndian ? "littleEndian" : "bigEndian"; }, set:function(a) { a = g(a); this._littleEndian = "auto" === a ? c._nativeLittleEndian : "littleEndian" === a; }, enumerable:!0, configurable:!0}); c.prototype.toString = function() { return k(new Int8Array(this._buffer, 0, this._length)); }; c.prototype.toBlob = function(a) { return new Blob([new Int8Array(this._buffer, this._position, this._length)], {type:a}); }; c.prototype.writeMultiByte = function(a, c) { q("packageInternal flash.utils.ObjectOutput::writeMultiByte"); }; c.prototype.readMultiByte = function(a, c) { q("packageInternal flash.utils.ObjectInput::readMultiByte"); }; c.prototype.getValue = function(a) { a |= 0; return a >= this._length ? void 0 : this._u8[a]; }; c.prototype.setValue = function(a, c) { a |= 0; var e = a + 1; this._ensureCapacity(e); this._u8[a] = c; e > this._length && (this._length = e); }; c.prototype.readFixed = function() { return this.readInt() / 65536; }; c.prototype.readFixed8 = function() { return this.readShort() / 256; }; c.prototype.readFloat16 = function() { var a = this.readUnsignedShort(), c = a >> 15 ? -1 : 1, e = (a & 31744) >> 10, a = a & 1023; return e ? 31 === e ? a ? NaN : Infinity * c : c * Math.pow(2, e - 15) * (1 + a / 1024) : c * Math.pow(2, -14) * (a / 1024); }; c.prototype.readEncodedU32 = function() { var a = this.readUnsignedByte(); if (!(a & 128)) { return a; } a = a & 127 | this.readUnsignedByte() << 7; if (!(a & 16384)) { return a; } a = a & 16383 | this.readUnsignedByte() << 14; if (!(a & 2097152)) { return a; } a = a & 2097151 | this.readUnsignedByte() << 21; return a & 268435456 ? a & 268435455 | this.readUnsignedByte() << 28 : a; }; c.prototype.readBits = function(a) { return this.readUnsignedBits(a) << 32 - a >> 32 - a; }; c.prototype.readUnsignedBits = function(c) { for (var e = this._bitBuffer, h = this._bitLength;c > h;) { e = e << 8 | this.readUnsignedByte(), h += 8; } h -= c; c = e >>> h & a[c]; this._bitBuffer = e; this._bitLength = h; return c; }; c.prototype.readFixedBits = function(a) { return this.readBits(a) / 65536; }; c.prototype.readString = function(a) { var c = this._position; if (a) { c + a > this._length && this.sec.throwError("flash.errors.EOFError", Errors.EOFError), this._position += a; } else { a = 0; for (var e = c;e < this._length && this._u8[e];e++) { a++; } this._position += a + 1; } return k(new Int8Array(this._buffer, c, a)); }; c.prototype.align = function() { this._bitLength = this._bitBuffer = 0; }; c.prototype.deflate = function() { this.compress("deflate"); }; c.prototype.inflate = function() { this.uncompress("deflate"); }; c.prototype.compress = function(a) { a = 0 === arguments.length ? "zlib" : g(a); var e; switch(a) { case "zlib": e = new b.Deflate(!0); break; case "deflate": e = new b.Deflate(!1); break; default: return; } var h = new c; e.onData = h.writeRawBytes.bind(h); e.push(this._u8.subarray(0, this._length)); e.close(); this._ensureCapacity(h._u8.length); this._u8.set(h._u8); this.length = h.length; this._position = 0; }; c.prototype.uncompress = function(a) { a = 0 === arguments.length ? "zlib" : g(a); var e; switch(a) { case "zlib": e = b.Inflate.create(!0); break; case "deflate": e = b.Inflate.create(!1); break; case "lzma": e = new b.LzmaDecoder(!1); break; default: return; } var h = new c, d; e.onData = h.writeRawBytes.bind(h); e.onError = function(a) { return d = a; }; e.push(this._u8.subarray(0, this._length)); d && this.sec.throwError("IOError", Errors.CompressedDataError); e.close(); this._ensureCapacity(h._u8.length); this._u8.set(h._u8); this.length = h.length; this._position = 0; }; c._nativeLittleEndian = 1 === (new Int8Array((new Int32Array([1])).buffer))[0]; c.INITIAL_SIZE = 128; c._arrayBufferPool = new f.ArrayBufferPool; return c; }(); b.DataBuffer = c; })(f.ArrayUtilities || (f.ArrayUtilities = {})); })(Shumway || (Shumway = {})); (function(f) { var b = f.ArrayUtilities.DataBuffer, g = f.ArrayUtilities.ensureTypedArrayCapacity; (function(b) { b[b.BeginSolidFill = 1] = "BeginSolidFill"; b[b.BeginGradientFill = 2] = "BeginGradientFill"; b[b.BeginBitmapFill = 3] = "BeginBitmapFill"; b[b.EndFill = 4] = "EndFill"; b[b.LineStyleSolid = 5] = "LineStyleSolid"; b[b.LineStyleGradient = 6] = "LineStyleGradient"; b[b.LineStyleBitmap = 7] = "LineStyleBitmap"; b[b.LineEnd = 8] = "LineEnd"; b[b.MoveTo = 9] = "MoveTo"; b[b.LineTo = 10] = "LineTo"; b[b.CurveTo = 11] = "CurveTo"; b[b.CubicCurveTo = 12] = "CubicCurveTo"; })(f.PathCommand || (f.PathCommand = {})); (function(b) { b[b.Linear = 16] = "Linear"; b[b.Radial = 18] = "Radial"; })(f.GradientType || (f.GradientType = {})); (function(b) { b[b.Pad = 0] = "Pad"; b[b.Reflect = 1] = "Reflect"; b[b.Repeat = 2] = "Repeat"; })(f.GradientSpreadMethod || (f.GradientSpreadMethod = {})); (function(b) { b[b.RGB = 0] = "RGB"; b[b.LinearRGB = 1] = "LinearRGB"; })(f.GradientInterpolationMethod || (f.GradientInterpolationMethod = {})); (function(b) { b[b.None = 0] = "None"; b[b.Normal = 1] = "Normal"; b[b.Vertical = 2] = "Vertical"; b[b.Horizontal = 3] = "Horizontal"; })(f.LineScaleMode || (f.LineScaleMode = {})); var q = function() { return function(b, g, d, a, c, e, l, n, t, p, h) { this.commands = b; this.commandsPosition = g; this.coordinates = d; this.morphCoordinates = a; this.coordinatesPosition = c; this.styles = e; this.stylesLength = l; this.morphStyles = n; this.morphStylesLength = t; this.hasFills = p; this.hasLines = h; }; }(); f.PlainObjectShapeData = q; var u; (function(b) { b[b.Commands = 32] = "Commands"; b[b.Coordinates = 128] = "Coordinates"; b[b.Styles = 16] = "Styles"; })(u || (u = {})); u = function() { function k(b) { void 0 === b && (b = !0); b && this.clear(); } k.FromPlainObject = function(g) { var d = new k(!1); d.commands = g.commands; d.coordinates = g.coordinates; d.morphCoordinates = g.morphCoordinates; d.commandsPosition = g.commandsPosition; d.coordinatesPosition = g.coordinatesPosition; d.styles = b.FromArrayBuffer(g.styles, g.stylesLength); d.styles.endian = "auto"; g.morphStyles && (d.morphStyles = b.FromArrayBuffer(g.morphStyles, g.morphStylesLength), d.morphStyles.endian = "auto"); d.hasFills = g.hasFills; d.hasLines = g.hasLines; return d; }; k.prototype.moveTo = function(b, d) { this.ensurePathCapacities(1, 2); this.commands[this.commandsPosition++] = 9; this.coordinates[this.coordinatesPosition++] = b; this.coordinates[this.coordinatesPosition++] = d; }; k.prototype.lineTo = function(b, d) { this.ensurePathCapacities(1, 2); this.commands[this.commandsPosition++] = 10; this.coordinates[this.coordinatesPosition++] = b; this.coordinates[this.coordinatesPosition++] = d; }; k.prototype.curveTo = function(b, d, a, c) { this.ensurePathCapacities(1, 4); this.commands[this.commandsPosition++] = 11; this.coordinates[this.coordinatesPosition++] = b; this.coordinates[this.coordinatesPosition++] = d; this.coordinates[this.coordinatesPosition++] = a; this.coordinates[this.coordinatesPosition++] = c; }; k.prototype.cubicCurveTo = function(b, d, a, c, e, l) { this.ensurePathCapacities(1, 6); this.commands[this.commandsPosition++] = 12; this.coordinates[this.coordinatesPosition++] = b; this.coordinates[this.coordinatesPosition++] = d; this.coordinates[this.coordinatesPosition++] = a; this.coordinates[this.coordinatesPosition++] = c; this.coordinates[this.coordinatesPosition++] = e; this.coordinates[this.coordinatesPosition++] = l; }; k.prototype.beginFill = function(b) { this.ensurePathCapacities(1, 0); this.commands[this.commandsPosition++] = 1; this.styles.writeUnsignedInt(b); this.hasFills = !0; }; k.prototype.writeMorphFill = function(b) { this.morphStyles.writeUnsignedInt(b); }; k.prototype.endFill = function() { this.ensurePathCapacities(1, 0); this.commands[this.commandsPosition++] = 4; }; k.prototype.endLine = function() { this.ensurePathCapacities(1, 0); this.commands[this.commandsPosition++] = 8; }; k.prototype.lineStyle = function(b, d, a, c, e, l, n) { this.ensurePathCapacities(2, 0); this.commands[this.commandsPosition++] = 5; this.coordinates[this.coordinatesPosition++] = b; b = this.styles; b.writeUnsignedInt(d); b.writeBoolean(a); b.writeUnsignedByte(c); b.writeUnsignedByte(e); b.writeUnsignedByte(l); b.writeUnsignedByte(n); this.hasLines = !0; }; k.prototype.writeMorphLineStyle = function(b, d) { this.morphCoordinates[this.coordinatesPosition - 1] = b; this.morphStyles.writeUnsignedInt(d); }; k.prototype.beginBitmap = function(b, d, a, c, e) { this.ensurePathCapacities(1, 0); this.commands[this.commandsPosition++] = b; b = this.styles; b.writeUnsignedInt(d); this._writeStyleMatrix(a, !1); b.writeBoolean(c); b.writeBoolean(e); this.hasFills = !0; }; k.prototype.writeMorphBitmap = function(b) { this._writeStyleMatrix(b, !0); }; k.prototype.beginGradient = function(b, d, a, c, e, l, n, t) { this.ensurePathCapacities(1, 0); this.commands[this.commandsPosition++] = b; b = this.styles; b.writeUnsignedByte(c); b.writeShort(t); this._writeStyleMatrix(e, !1); c = d.length; b.writeByte(c); for (e = 0;e < c;e++) { b.writeUnsignedByte(a[e]), b.writeUnsignedInt(d[e]); } b.writeUnsignedByte(l); b.writeUnsignedByte(n); this.hasFills = !0; }; k.prototype.writeMorphGradient = function(b, d, a) { this._writeStyleMatrix(a, !0); a = this.morphStyles; for (var c = 0;c < b.length;c++) { a.writeUnsignedByte(d[c]), a.writeUnsignedInt(b[c]); } }; k.prototype.writeCommandAndCoordinates = function(b, d, a) { this.ensurePathCapacities(1, 2); this.commands[this.commandsPosition++] = b; this.coordinates[this.coordinatesPosition++] = d; this.coordinates[this.coordinatesPosition++] = a; }; k.prototype.writeCoordinates = function(b, d) { this.ensurePathCapacities(0, 2); this.coordinates[this.coordinatesPosition++] = b; this.coordinates[this.coordinatesPosition++] = d; }; k.prototype.writeMorphCoordinates = function(b, d) { this.morphCoordinates = g(this.morphCoordinates, this.coordinatesPosition); this.morphCoordinates[this.coordinatesPosition - 2] = b; this.morphCoordinates[this.coordinatesPosition - 1] = d; }; k.prototype.clear = function() { this.commandsPosition = this.coordinatesPosition = 0; this.commands = new Uint8Array(32); this.coordinates = new Int32Array(128); this.styles = new b(16); this.styles.endian = "auto"; this.hasFills = this.hasLines = !1; }; k.prototype.isEmpty = function() { return 0 === this.commandsPosition; }; k.prototype.clone = function() { var g = new k(!1); g.commands = new Uint8Array(this.commands); g.commandsPosition = this.commandsPosition; g.coordinates = new Int32Array(this.coordinates); g.coordinatesPosition = this.coordinatesPosition; g.styles = new b(this.styles.length); g.styles.writeRawBytes(this.styles.bytes.subarray(0, this.styles.length)); this.morphStyles && (g.morphStyles = new b(this.morphStyles.length), g.morphStyles.writeRawBytes(this.morphStyles.bytes.subarray(0, this.morphStyles.length))); g.hasFills = this.hasFills; g.hasLines = this.hasLines; return g; }; k.prototype.toPlainObject = function() { return new q(this.commands, this.commandsPosition, this.coordinates, this.morphCoordinates, this.coordinatesPosition, this.styles.buffer, this.styles.length, this.morphStyles && this.morphStyles.buffer, this.morphStyles ? this.morphStyles.length : 0, this.hasFills, this.hasLines); }; Object.defineProperty(k.prototype, "buffers", {get:function() { var b = [this.commands.buffer, this.coordinates.buffer, this.styles.buffer]; this.morphCoordinates && b.push(this.morphCoordinates.buffer); this.morphStyles && b.push(this.morphStyles.buffer); return b; }, enumerable:!0, configurable:!0}); k.prototype._writeStyleMatrix = function(b, d) { (d ? this.morphStyles : this.styles).write6Floats(b.a, b.b, b.c, b.d, b.tx, b.ty); }; k.prototype.ensurePathCapacities = function(b, d) { this.commands = g(this.commands, this.commandsPosition + b); this.coordinates = g(this.coordinates, this.coordinatesPosition + d); }; return k; }(); f.ShapeData = u; })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(b) { b[b.CODE_END = 0] = "CODE_END"; b[b.CODE_SHOW_FRAME = 1] = "CODE_SHOW_FRAME"; b[b.CODE_DEFINE_SHAPE = 2] = "CODE_DEFINE_SHAPE"; b[b.CODE_FREE_CHARACTER = 3] = "CODE_FREE_CHARACTER"; b[b.CODE_PLACE_OBJECT = 4] = "CODE_PLACE_OBJECT"; b[b.CODE_REMOVE_OBJECT = 5] = "CODE_REMOVE_OBJECT"; b[b.CODE_DEFINE_BITS = 6] = "CODE_DEFINE_BITS"; b[b.CODE_DEFINE_BUTTON = 7] = "CODE_DEFINE_BUTTON"; b[b.CODE_JPEG_TABLES = 8] = "CODE_JPEG_TABLES"; b[b.CODE_SET_BACKGROUND_COLOR = 9] = "CODE_SET_BACKGROUND_COLOR"; b[b.CODE_DEFINE_FONT = 10] = "CODE_DEFINE_FONT"; b[b.CODE_DEFINE_TEXT = 11] = "CODE_DEFINE_TEXT"; b[b.CODE_DO_ACTION = 12] = "CODE_DO_ACTION"; b[b.CODE_DEFINE_FONT_INFO = 13] = "CODE_DEFINE_FONT_INFO"; b[b.CODE_DEFINE_SOUND = 14] = "CODE_DEFINE_SOUND"; b[b.CODE_START_SOUND = 15] = "CODE_START_SOUND"; b[b.CODE_STOP_SOUND = 16] = "CODE_STOP_SOUND"; b[b.CODE_DEFINE_BUTTON_SOUND = 17] = "CODE_DEFINE_BUTTON_SOUND"; b[b.CODE_SOUND_STREAM_HEAD = 18] = "CODE_SOUND_STREAM_HEAD"; b[b.CODE_SOUND_STREAM_BLOCK = 19] = "CODE_SOUND_STREAM_BLOCK"; b[b.CODE_DEFINE_BITS_LOSSLESS = 20] = "CODE_DEFINE_BITS_LOSSLESS"; b[b.CODE_DEFINE_BITS_JPEG2 = 21] = "CODE_DEFINE_BITS_JPEG2"; b[b.CODE_DEFINE_SHAPE2 = 22] = "CODE_DEFINE_SHAPE2"; b[b.CODE_DEFINE_BUTTON_CXFORM = 23] = "CODE_DEFINE_BUTTON_CXFORM"; b[b.CODE_PROTECT = 24] = "CODE_PROTECT"; b[b.CODE_PATHS_ARE_POSTSCRIPT = 25] = "CODE_PATHS_ARE_POSTSCRIPT"; b[b.CODE_PLACE_OBJECT2 = 26] = "CODE_PLACE_OBJECT2"; b[b.CODE_REMOVE_OBJECT2 = 28] = "CODE_REMOVE_OBJECT2"; b[b.CODE_SYNC_FRAME = 29] = "CODE_SYNC_FRAME"; b[b.CODE_FREE_ALL = 31] = "CODE_FREE_ALL"; b[b.CODE_DEFINE_SHAPE3 = 32] = "CODE_DEFINE_SHAPE3"; b[b.CODE_DEFINE_TEXT2 = 33] = "CODE_DEFINE_TEXT2"; b[b.CODE_DEFINE_BUTTON2 = 34] = "CODE_DEFINE_BUTTON2"; b[b.CODE_DEFINE_BITS_JPEG3 = 35] = "CODE_DEFINE_BITS_JPEG3"; b[b.CODE_DEFINE_BITS_LOSSLESS2 = 36] = "CODE_DEFINE_BITS_LOSSLESS2"; b[b.CODE_DEFINE_EDIT_TEXT = 37] = "CODE_DEFINE_EDIT_TEXT"; b[b.CODE_DEFINE_VIDEO = 38] = "CODE_DEFINE_VIDEO"; b[b.CODE_DEFINE_SPRITE = 39] = "CODE_DEFINE_SPRITE"; b[b.CODE_NAME_CHARACTER = 40] = "CODE_NAME_CHARACTER"; b[b.CODE_PRODUCT_INFO = 41] = "CODE_PRODUCT_INFO"; b[b.CODE_DEFINE_TEXT_FORMAT = 42] = "CODE_DEFINE_TEXT_FORMAT"; b[b.CODE_FRAME_LABEL = 43] = "CODE_FRAME_LABEL"; b[b.CODE_DEFINE_BEHAVIOUR = 44] = "CODE_DEFINE_BEHAVIOUR"; b[b.CODE_SOUND_STREAM_HEAD2 = 45] = "CODE_SOUND_STREAM_HEAD2"; b[b.CODE_DEFINE_MORPH_SHAPE = 46] = "CODE_DEFINE_MORPH_SHAPE"; b[b.CODE_GENERATE_FRAME = 47] = "CODE_GENERATE_FRAME"; b[b.CODE_DEFINE_FONT2 = 48] = "CODE_DEFINE_FONT2"; b[b.CODE_GEN_COMMAND = 49] = "CODE_GEN_COMMAND"; b[b.CODE_DEFINE_COMMAND_OBJECT = 50] = "CODE_DEFINE_COMMAND_OBJECT"; b[b.CODE_CHARACTER_SET = 51] = "CODE_CHARACTER_SET"; b[b.CODE_EXTERNAL_FONT = 52] = "CODE_EXTERNAL_FONT"; b[b.CODE_DEFINE_FUNCTION = 53] = "CODE_DEFINE_FUNCTION"; b[b.CODE_PLACE_FUNCTION = 54] = "CODE_PLACE_FUNCTION"; b[b.CODE_GEN_TAG_OBJECTS = 55] = "CODE_GEN_TAG_OBJECTS"; b[b.CODE_EXPORT_ASSETS = 56] = "CODE_EXPORT_ASSETS"; b[b.CODE_IMPORT_ASSETS = 57] = "CODE_IMPORT_ASSETS"; b[b.CODE_ENABLE_DEBUGGER = 58] = "CODE_ENABLE_DEBUGGER"; b[b.CODE_DO_INIT_ACTION = 59] = "CODE_DO_INIT_ACTION"; b[b.CODE_DEFINE_VIDEO_STREAM = 60] = "CODE_DEFINE_VIDEO_STREAM"; b[b.CODE_VIDEO_FRAME = 61] = "CODE_VIDEO_FRAME"; b[b.CODE_DEFINE_FONT_INFO2 = 62] = "CODE_DEFINE_FONT_INFO2"; b[b.CODE_DEBUG_ID = 63] = "CODE_DEBUG_ID"; b[b.CODE_ENABLE_DEBUGGER2 = 64] = "CODE_ENABLE_DEBUGGER2"; b[b.CODE_SCRIPT_LIMITS = 65] = "CODE_SCRIPT_LIMITS"; b[b.CODE_SET_TAB_INDEX = 66] = "CODE_SET_TAB_INDEX"; b[b.CODE_FILE_ATTRIBUTES = 69] = "CODE_FILE_ATTRIBUTES"; b[b.CODE_PLACE_OBJECT3 = 70] = "CODE_PLACE_OBJECT3"; b[b.CODE_IMPORT_ASSETS2 = 71] = "CODE_IMPORT_ASSETS2"; b[b.CODE_DO_ABC_DEFINE = 72] = "CODE_DO_ABC_DEFINE"; b[b.CODE_DEFINE_FONT_ALIGN_ZONES = 73] = "CODE_DEFINE_FONT_ALIGN_ZONES"; b[b.CODE_CSM_TEXT_SETTINGS = 74] = "CODE_CSM_TEXT_SETTINGS"; b[b.CODE_DEFINE_FONT3 = 75] = "CODE_DEFINE_FONT3"; b[b.CODE_SYMBOL_CLASS = 76] = "CODE_SYMBOL_CLASS"; b[b.CODE_METADATA = 77] = "CODE_METADATA"; b[b.CODE_DEFINE_SCALING_GRID = 78] = "CODE_DEFINE_SCALING_GRID"; b[b.CODE_DO_ABC = 82] = "CODE_DO_ABC"; b[b.CODE_DEFINE_SHAPE4 = 83] = "CODE_DEFINE_SHAPE4"; b[b.CODE_DEFINE_MORPH_SHAPE2 = 84] = "CODE_DEFINE_MORPH_SHAPE2"; b[b.CODE_DEFINE_SCENE_AND_FRAME_LABEL_DATA = 86] = "CODE_DEFINE_SCENE_AND_FRAME_LABEL_DATA"; b[b.CODE_DEFINE_BINARY_DATA = 87] = "CODE_DEFINE_BINARY_DATA"; b[b.CODE_DEFINE_FONT_NAME = 88] = "CODE_DEFINE_FONT_NAME"; b[b.CODE_START_SOUND2 = 89] = "CODE_START_SOUND2"; b[b.CODE_DEFINE_BITS_JPEG4 = 90] = "CODE_DEFINE_BITS_JPEG4"; b[b.CODE_DEFINE_FONT4 = 91] = "CODE_DEFINE_FONT4"; b[b.CODE_TELEMETRY = 93] = "CODE_TELEMETRY"; })(b.SwfTag || (b.SwfTag = {})); (function(b) { b[b.CODE_DEFINE_SHAPE = 2] = "CODE_DEFINE_SHAPE"; b[b.CODE_DEFINE_BITS = 6] = "CODE_DEFINE_BITS"; b[b.CODE_DEFINE_BUTTON = 7] = "CODE_DEFINE_BUTTON"; b[b.CODE_DEFINE_FONT = 10] = "CODE_DEFINE_FONT"; b[b.CODE_DEFINE_TEXT = 11] = "CODE_DEFINE_TEXT"; b[b.CODE_DEFINE_SOUND = 14] = "CODE_DEFINE_SOUND"; b[b.CODE_DEFINE_BITS_LOSSLESS = 20] = "CODE_DEFINE_BITS_LOSSLESS"; b[b.CODE_DEFINE_BITS_JPEG2 = 21] = "CODE_DEFINE_BITS_JPEG2"; b[b.CODE_DEFINE_SHAPE2 = 22] = "CODE_DEFINE_SHAPE2"; b[b.CODE_DEFINE_SHAPE3 = 32] = "CODE_DEFINE_SHAPE3"; b[b.CODE_DEFINE_TEXT2 = 33] = "CODE_DEFINE_TEXT2"; b[b.CODE_DEFINE_BUTTON2 = 34] = "CODE_DEFINE_BUTTON2"; b[b.CODE_DEFINE_BITS_JPEG3 = 35] = "CODE_DEFINE_BITS_JPEG3"; b[b.CODE_DEFINE_BITS_LOSSLESS2 = 36] = "CODE_DEFINE_BITS_LOSSLESS2"; b[b.CODE_DEFINE_EDIT_TEXT = 37] = "CODE_DEFINE_EDIT_TEXT"; b[b.CODE_DEFINE_SPRITE = 39] = "CODE_DEFINE_SPRITE"; b[b.CODE_DEFINE_MORPH_SHAPE = 46] = "CODE_DEFINE_MORPH_SHAPE"; b[b.CODE_DEFINE_FONT2 = 48] = "CODE_DEFINE_FONT2"; b[b.CODE_DEFINE_FONT3 = 75] = "CODE_DEFINE_FONT3"; b[b.CODE_DEFINE_SHAPE4 = 83] = "CODE_DEFINE_SHAPE4"; b[b.CODE_DEFINE_MORPH_SHAPE2 = 84] = "CODE_DEFINE_MORPH_SHAPE2"; b[b.CODE_DEFINE_BINARY_DATA = 87] = "CODE_DEFINE_BINARY_DATA"; b[b.CODE_DEFINE_BITS_JPEG4 = 90] = "CODE_DEFINE_BITS_JPEG4"; b[b.CODE_DEFINE_FONT4 = 91] = "CODE_DEFINE_FONT4"; })(b.DefinitionTags || (b.DefinitionTags = {})); (function(b) { b[b.CODE_DEFINE_BITS = 6] = "CODE_DEFINE_BITS"; b[b.CODE_DEFINE_BITS_JPEG2 = 21] = "CODE_DEFINE_BITS_JPEG2"; b[b.CODE_DEFINE_BITS_JPEG3 = 35] = "CODE_DEFINE_BITS_JPEG3"; b[b.CODE_DEFINE_BITS_JPEG4 = 90] = "CODE_DEFINE_BITS_JPEG4"; })(b.ImageDefinitionTags || (b.ImageDefinitionTags = {})); (function(b) { b[b.CODE_DEFINE_FONT = 10] = "CODE_DEFINE_FONT"; b[b.CODE_DEFINE_FONT2 = 48] = "CODE_DEFINE_FONT2"; b[b.CODE_DEFINE_FONT3 = 75] = "CODE_DEFINE_FONT3"; b[b.CODE_DEFINE_FONT4 = 91] = "CODE_DEFINE_FONT4"; })(b.FontDefinitionTags || (b.FontDefinitionTags = {})); (function(b) { b[b.CODE_PLACE_OBJECT = 4] = "CODE_PLACE_OBJECT"; b[b.CODE_PLACE_OBJECT2 = 26] = "CODE_PLACE_OBJECT2"; b[b.CODE_PLACE_OBJECT3 = 70] = "CODE_PLACE_OBJECT3"; b[b.CODE_REMOVE_OBJECT = 5] = "CODE_REMOVE_OBJECT"; b[b.CODE_REMOVE_OBJECT2 = 28] = "CODE_REMOVE_OBJECT2"; b[b.CODE_START_SOUND = 15] = "CODE_START_SOUND"; b[b.CODE_START_SOUND2 = 89] = "CODE_START_SOUND2"; })(b.ControlTags || (b.ControlTags = {})); (function(b) { b[b.Move = 1] = "Move"; b[b.HasCharacter = 2] = "HasCharacter"; b[b.HasMatrix = 4] = "HasMatrix"; b[b.HasColorTransform = 8] = "HasColorTransform"; b[b.HasRatio = 16] = "HasRatio"; b[b.HasName = 32] = "HasName"; b[b.HasClipDepth = 64] = "HasClipDepth"; b[b.HasClipActions = 128] = "HasClipActions"; b[b.HasFilterList = 256] = "HasFilterList"; b[b.HasBlendMode = 512] = "HasBlendMode"; b[b.HasCacheAsBitmap = 1024] = "HasCacheAsBitmap"; b[b.HasClassName = 2048] = "HasClassName"; b[b.HasImage = 4096] = "HasImage"; b[b.HasVisible = 8192] = "HasVisible"; b[b.OpaqueBackground = 16384] = "OpaqueBackground"; b[b.Reserved = 32768] = "Reserved"; })(b.PlaceObjectFlags || (b.PlaceObjectFlags = {})); (function(b) { b[b.Load = 1] = "Load"; b[b.EnterFrame = 2] = "EnterFrame"; b[b.Unload = 4] = "Unload"; b[b.MouseMove = 8] = "MouseMove"; b[b.MouseDown = 16] = "MouseDown"; b[b.MouseUp = 32] = "MouseUp"; b[b.KeyDown = 64] = "KeyDown"; b[b.KeyUp = 128] = "KeyUp"; b[b.Data = 256] = "Data"; b[b.Initialize = 512] = "Initialize"; b[b.Press = 1024] = "Press"; b[b.Release = 2048] = "Release"; b[b.ReleaseOutside = 4096] = "ReleaseOutside"; b[b.RollOver = 8192] = "RollOver"; b[b.RollOut = 16384] = "RollOut"; b[b.DragOver = 32768] = "DragOver"; b[b.DragOut = 65536] = "DragOut"; b[b.KeyPress = 131072] = "KeyPress"; b[b.Construct = 262144] = "Construct"; })(b.AVM1ClipEvents || (b.AVM1ClipEvents = {})); })(b.Parser || (b.Parser = {})); })(f.SWF || (f.SWF = {})); })(Shumway || (Shumway = {})); (function(f) { var b = f.Debug.unexpected, g = function() { function g(b, k, r, d) { this.url = b; this.method = k; this.mimeType = r; this.data = d; } g.prototype.readAll = function(g, k) { var r = this.url, d = this.xhr = new XMLHttpRequest({mozSystem:!0}); d.open(this.method || "GET", this.url, !0); d.responseType = "arraybuffer"; g && (d.onprogress = function(a) { g(d.response, a.loaded, a.total); }); d.onreadystatechange = function(a) { 4 === d.readyState && (200 !== d.status && 0 !== d.status || null === d.response ? (b("Path: " + r + " not found."), k(null, d.statusText)) : k(d.response)); }; this.mimeType && d.setRequestHeader("Content-Type", this.mimeType); d.send(this.data || null); }; g.prototype.readChunked = function(b, g, r, d, a, c) { if (0 >= b) { this.readAsync(g, r, d, a, c); } else { var e = 0, l = new Uint8Array(b), n = 0, t; this.readAsync(function(a, c) { t = c.total; for (var d = a.length, v = 0;e + d >= b;) { var r = b - e; l.set(a.subarray(v, v + r), e); v += r; d -= r; n += b; g(l, {loaded:n, total:t}); e = 0; } l.set(a.subarray(v), e); e += d; }, r, d, function() { 0 < e && (n += e, g(l.subarray(0, e), {loaded:n, total:t}), e = 0); a && a(); }, c); } }; g.prototype.readAsync = function(b, g, r, d, a) { var c = this.xhr = new XMLHttpRequest({mozSystem:!0}), e = this.url, l = 0, n = 0; c.open(this.method || "GET", e, !0); c.responseType = "moz-chunked-arraybuffer"; var t = "moz-chunked-arraybuffer" !== c.responseType; t && (c.responseType = "arraybuffer"); c.onprogress = function(a) { t || (l = a.loaded, n = a.total, b(new Uint8Array(c.response), {loaded:l, total:n})); }; c.onreadystatechange = function(p) { 2 === c.readyState && a && a(e, c.status, c.getAllResponseHeaders()); 4 === c.readyState && (200 !== c.status && 0 !== c.status || null === c.response && (0 === n || l !== n) ? g(c.statusText) : (t && (p = c.response, b(new Uint8Array(p), {loaded:p.byteLength, total:p.byteLength})), d && d())); }; this.mimeType && c.setRequestHeader("Content-Type", this.mimeType); c.send(this.data || null); r && r(); }; g.prototype.abort = function() { this.xhr && (this.xhr.abort(), this.xhr = null); }; return g; }(); f.BinaryFileReader = g; })(Shumway || (Shumway = {})); (function(f) { var b = function() { function b() { this.isAS3TraceOn = !0; this._startTime = Date.now(); } Object.defineProperty(b.prototype, "currentTimestamp", {get:function() { return Date.now() - this._startTime; }, enumerable:!0, configurable:!0}); b.prototype._writeLine = function(b) { }; b.prototype.writeAS3Trace = function(b) { }; return b; }(); f.FlashLog = b; f.flashlog = null; })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { b[b.Objects = 0] = "Objects"; b[b.References = 1] = "References"; })(b.RemotingPhase || (b.RemotingPhase = {})); (function(b) { b[b.HasMatrix = 1] = "HasMatrix"; b[b.HasBounds = 2] = "HasBounds"; b[b.HasChildren = 4] = "HasChildren"; b[b.HasColorTransform = 8] = "HasColorTransform"; b[b.HasClipRect = 16] = "HasClipRect"; b[b.HasMiscellaneousProperties = 32] = "HasMiscellaneousProperties"; b[b.HasMask = 64] = "HasMask"; b[b.HasClip = 128] = "HasClip"; })(b.MessageBits || (b.MessageBits = {})); (function(b) { b[b.None = 0] = "None"; b[b.Asset = 134217728] = "Asset"; })(b.IDMask || (b.IDMask = {})); (function(b) { b[b.EOF = 0] = "EOF"; b[b.UpdateFrame = 100] = "UpdateFrame"; b[b.UpdateGraphics = 101] = "UpdateGraphics"; b[b.UpdateBitmapData = 102] = "UpdateBitmapData"; b[b.UpdateTextContent = 103] = "UpdateTextContent"; b[b.UpdateStage = 104] = "UpdateStage"; b[b.UpdateNetStream = 105] = "UpdateNetStream"; b[b.RequestBitmapData = 106] = "RequestBitmapData"; b[b.DrawToBitmap = 200] = "DrawToBitmap"; b[b.MouseEvent = 300] = "MouseEvent"; b[b.KeyboardEvent = 301] = "KeyboardEvent"; b[b.FocusEvent = 302] = "FocusEvent"; })(b.MessageTag || (b.MessageTag = {})); (function(b) { b[b.Blur = 0] = "Blur"; b[b.DropShadow = 1] = "DropShadow"; b[b.ColorMatrix = 2] = "ColorMatrix"; })(b.FilterType || (b.FilterType = {})); (function(b) { b[b.Identity = 0] = "Identity"; b[b.AlphaMultiplierOnly = 1] = "AlphaMultiplierOnly"; b[b.All = 2] = "All"; })(b.ColorTransformEncoding || (b.ColorTransformEncoding = {})); (function(b) { b[b.Initialized = 0] = "Initialized"; b[b.Metadata = 1] = "Metadata"; b[b.PlayStart = 2] = "PlayStart"; b[b.PlayStop = 3] = "PlayStop"; b[b.BufferEmpty = 4] = "BufferEmpty"; b[b.BufferFull = 5] = "BufferFull"; b[b.Pause = 6] = "Pause"; b[b.Unpause = 7] = "Unpause"; b[b.Seeking = 8] = "Seeking"; b[b.Seeked = 9] = "Seeked"; b[b.Progress = 10] = "Progress"; b[b.Error = 11] = "Error"; })(b.VideoPlaybackEvent || (b.VideoPlaybackEvent = {})); (function(b) { b[b.Init = 1] = "Init"; b[b.Pause = 2] = "Pause"; b[b.Seek = 3] = "Seek"; b[b.GetTime = 4] = "GetTime"; b[b.GetBufferLength = 5] = "GetBufferLength"; b[b.SetSoundLevels = 6] = "SetSoundLevels"; b[b.GetBytesLoaded = 7] = "GetBytesLoaded"; b[b.GetBytesTotal = 8] = "GetBytesTotal"; b[b.EnsurePlaying = 9] = "EnsurePlaying"; })(b.VideoControlEvent || (b.VideoControlEvent = {})); (function(b) { b[b.ShowAll = 0] = "ShowAll"; b[b.ExactFit = 1] = "ExactFit"; b[b.NoBorder = 2] = "NoBorder"; b[b.NoScale = 4] = "NoScale"; })(b.StageScaleMode || (b.StageScaleMode = {})); (function(b) { b[b.None = 0] = "None"; b[b.Top = 1] = "Top"; b[b.Bottom = 2] = "Bottom"; b[b.Left = 4] = "Left"; b[b.Right = 8] = "Right"; b[b.TopLeft = b.Top | b.Left] = "TopLeft"; b[b.BottomLeft = b.Bottom | b.Left] = "BottomLeft"; b[b.BottomRight = b.Bottom | b.Right] = "BottomRight"; b[b.TopRight = b.Top | b.Right] = "TopRight"; })(b.StageAlignFlags || (b.StageAlignFlags = {})); b.MouseEventNames = "click dblclick mousedown mousemove mouseup mouseover mouseout".split(" "); b.KeyboardEventNames = ["keydown", "keypress", "keyup"]; (function(b) { b[b.CtrlKey = 1] = "CtrlKey"; b[b.AltKey = 2] = "AltKey"; b[b.ShiftKey = 4] = "ShiftKey"; })(b.KeyboardEventFlags || (b.KeyboardEventFlags = {})); (function(b) { b[b.DocumentHidden = 0] = "DocumentHidden"; b[b.DocumentVisible = 1] = "DocumentVisible"; b[b.WindowBlur = 2] = "WindowBlur"; b[b.WindowFocus = 3] = "WindowFocus"; })(b.FocusEventType || (b.FocusEventType = {})); })(f.Remoting || (f.Remoting = {})); })(Shumway || (Shumway = {})); var throwError, Errors; (function(f) { (function(b) { (function(b) { var f = function() { function b() { } b.toRGBA = function(b, d, a, c) { void 0 === c && (c = 1); return "rgba(" + b + "," + d + "," + a + "," + c + ")"; }; return b; }(); b.UI = f; var u = function() { function b() { } b.prototype.tabToolbar = function(b) { void 0 === b && (b = 1); return f.toRGBA(37, 44, 51, b); }; b.prototype.toolbars = function(b) { void 0 === b && (b = 1); return f.toRGBA(52, 60, 69, b); }; b.prototype.selectionBackground = function(b) { void 0 === b && (b = 1); return f.toRGBA(29, 79, 115, b); }; b.prototype.selectionText = function(b) { void 0 === b && (b = 1); return f.toRGBA(245, 247, 250, b); }; b.prototype.splitters = function(b) { void 0 === b && (b = 1); return f.toRGBA(0, 0, 0, b); }; b.prototype.bodyBackground = function(b) { void 0 === b && (b = 1); return f.toRGBA(17, 19, 21, b); }; b.prototype.sidebarBackground = function(b) { void 0 === b && (b = 1); return f.toRGBA(24, 29, 32, b); }; b.prototype.attentionBackground = function(b) { void 0 === b && (b = 1); return f.toRGBA(161, 134, 80, b); }; b.prototype.bodyText = function(b) { void 0 === b && (b = 1); return f.toRGBA(143, 161, 178, b); }; b.prototype.foregroundTextGrey = function(b) { void 0 === b && (b = 1); return f.toRGBA(182, 186, 191, b); }; b.prototype.contentTextHighContrast = function(b) { void 0 === b && (b = 1); return f.toRGBA(169, 186, 203, b); }; b.prototype.contentTextGrey = function(b) { void 0 === b && (b = 1); return f.toRGBA(143, 161, 178, b); }; b.prototype.contentTextDarkGrey = function(b) { void 0 === b && (b = 1); return f.toRGBA(95, 115, 135, b); }; b.prototype.blueHighlight = function(b) { void 0 === b && (b = 1); return f.toRGBA(70, 175, 227, b); }; b.prototype.purpleHighlight = function(b) { void 0 === b && (b = 1); return f.toRGBA(107, 122, 187, b); }; b.prototype.pinkHighlight = function(b) { void 0 === b && (b = 1); return f.toRGBA(223, 128, 255, b); }; b.prototype.redHighlight = function(b) { void 0 === b && (b = 1); return f.toRGBA(235, 83, 104, b); }; b.prototype.orangeHighlight = function(b) { void 0 === b && (b = 1); return f.toRGBA(217, 102, 41, b); }; b.prototype.lightOrangeHighlight = function(b) { void 0 === b && (b = 1); return f.toRGBA(217, 155, 40, b); }; b.prototype.greenHighlight = function(b) { void 0 === b && (b = 1); return f.toRGBA(112, 191, 83, b); }; b.prototype.blueGreyHighlight = function(b) { void 0 === b && (b = 1); return f.toRGBA(94, 136, 176, b); }; return b; }(); b.UIThemeDark = u; u = function() { function b() { } b.prototype.tabToolbar = function(b) { void 0 === b && (b = 1); return f.toRGBA(235, 236, 237, b); }; b.prototype.toolbars = function(b) { void 0 === b && (b = 1); return f.toRGBA(240, 241, 242, b); }; b.prototype.selectionBackground = function(b) { void 0 === b && (b = 1); return f.toRGBA(76, 158, 217, b); }; b.prototype.selectionText = function(b) { void 0 === b && (b = 1); return f.toRGBA(245, 247, 250, b); }; b.prototype.splitters = function(b) { void 0 === b && (b = 1); return f.toRGBA(170, 170, 170, b); }; b.prototype.bodyBackground = function(b) { void 0 === b && (b = 1); return f.toRGBA(252, 252, 252, b); }; b.prototype.sidebarBackground = function(b) { void 0 === b && (b = 1); return f.toRGBA(247, 247, 247, b); }; b.prototype.attentionBackground = function(b) { void 0 === b && (b = 1); return f.toRGBA(161, 134, 80, b); }; b.prototype.bodyText = function(b) { void 0 === b && (b = 1); return f.toRGBA(24, 25, 26, b); }; b.prototype.foregroundTextGrey = function(b) { void 0 === b && (b = 1); return f.toRGBA(88, 89, 89, b); }; b.prototype.contentTextHighContrast = function(b) { void 0 === b && (b = 1); return f.toRGBA(41, 46, 51, b); }; b.prototype.contentTextGrey = function(b) { void 0 === b && (b = 1); return f.toRGBA(143, 161, 178, b); }; b.prototype.contentTextDarkGrey = function(b) { void 0 === b && (b = 1); return f.toRGBA(102, 115, 128, b); }; b.prototype.blueHighlight = function(b) { void 0 === b && (b = 1); return f.toRGBA(0, 136, 204, b); }; b.prototype.purpleHighlight = function(b) { void 0 === b && (b = 1); return f.toRGBA(91, 95, 255, b); }; b.prototype.pinkHighlight = function(b) { void 0 === b && (b = 1); return f.toRGBA(184, 46, 229, b); }; b.prototype.redHighlight = function(b) { void 0 === b && (b = 1); return f.toRGBA(237, 38, 85, b); }; b.prototype.orangeHighlight = function(b) { void 0 === b && (b = 1); return f.toRGBA(241, 60, 0, b); }; b.prototype.lightOrangeHighlight = function(b) { void 0 === b && (b = 1); return f.toRGBA(217, 126, 0, b); }; b.prototype.greenHighlight = function(b) { void 0 === b && (b = 1); return f.toRGBA(44, 187, 15, b); }; b.prototype.blueGreyHighlight = function(b) { void 0 === b && (b = 1); return f.toRGBA(95, 136, 176, b); }; return b; }(); b.UIThemeLight = u; })(b.Theme || (b.Theme = {})); })(f.Tools || (f.Tools = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { var f = function() { function b(g, r) { this._buffers = g || []; this._snapshots = []; this._windowStart = this._startTime = r; this._maxDepth = 0; } b.prototype.addBuffer = function(b) { this._buffers.push(b); }; b.prototype.getSnapshotAt = function(b) { return this._snapshots[b]; }; Object.defineProperty(b.prototype, "hasSnapshots", {get:function() { return 0 < this.snapshotCount; }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "snapshotCount", {get:function() { return this._snapshots.length; }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "startTime", {get:function() { return this._startTime; }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "endTime", {get:function() { return this._endTime; }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "totalTime", {get:function() { return this.endTime - this.startTime; }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "windowStart", {get:function() { return this._windowStart; }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "windowEnd", {get:function() { return this._windowEnd; }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "windowLength", {get:function() { return this.windowEnd - this.windowStart; }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "maxDepth", {get:function() { return this._maxDepth; }, enumerable:!0, configurable:!0}); b.prototype.forEachSnapshot = function(b) { for (var g = 0, d = this.snapshotCount;g < d;g++) { b(this._snapshots[g], g); } }; b.prototype.createSnapshots = function() { var b = Number.MIN_VALUE, g = 0; for (this._snapshots = [];0 < this._buffers.length;) { var d = this._buffers.shift().createSnapshot(); d && (b < d.endTime && (b = d.endTime), g < d.maxDepth && (g = d.maxDepth), this._snapshots.push(d)); } this._windowEnd = this._endTime = b; this._maxDepth = g; }; b.prototype.setWindow = function(b, g) { if (b > g) { var d = b; b = g; g = d; } d = Math.min(g - b, this.totalTime); b < this._startTime ? (b = this._startTime, g = this._startTime + d) : g > this._endTime && (b = this._endTime - d, g = this._endTime); this._windowStart = b; this._windowEnd = g; }; b.prototype.moveWindowTo = function(b) { this.setWindow(b - this.windowLength / 2, b + this.windowLength / 2); }; return b; }(); b.Profile = f; })(b.Profiler || (b.Profiler = {})); })(f.Tools || (f.Tools = {})); })(Shumway || (Shumway = {})); __extends = this.__extends || function(f, b) { function g() { this.constructor = f; } for (var q in b) { b.hasOwnProperty(q) && (f[q] = b[q]); } g.prototype = b.prototype; f.prototype = new g; }; (function(f) { (function(b) { (function(b) { var f = function() { return function(b) { this.kind = b; this.totalTime = this.selfTime = this.count = 0; }; }(); b.TimelineFrameStatistics = f; var u = function() { function b(g, d, a, c, e, l) { this.parent = g; this.kind = d; this.startData = a; this.endData = c; this.startTime = e; this.endTime = l; this.maxDepth = 0; } Object.defineProperty(b.prototype, "totalTime", {get:function() { return this.endTime - this.startTime; }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "selfTime", {get:function() { var b = this.totalTime; if (this.children) { for (var d = 0, a = this.children.length;d < a;d++) { var c = this.children[d], b = b - (c.endTime - c.startTime) } } return b; }, enumerable:!0, configurable:!0}); b.prototype.getChildIndex = function(b) { for (var d = this.children, a = 0;a < d.length;a++) { if (d[a].endTime > b) { return a; } } return 0; }; b.prototype.getChildRange = function(b, d) { if (this.children && b <= this.endTime && d >= this.startTime && d >= b) { var a = this._getNearestChild(b), c = this._getNearestChildReverse(d); if (a <= c) { return b = this.children[a].startTime, d = this.children[c].endTime, {startIndex:a, endIndex:c, startTime:b, endTime:d, totalTime:d - b}; } } return null; }; b.prototype._getNearestChild = function(b) { var d = this.children; if (d && d.length) { if (b <= d[0].endTime) { return 0; } for (var a, c = 0, e = d.length - 1;e > c;) { a = (c + e) / 2 | 0; var l = d[a]; if (b >= l.startTime && b <= l.endTime) { return a; } b > l.endTime ? c = a + 1 : e = a; } return Math.ceil((c + e) / 2); } return 0; }; b.prototype._getNearestChildReverse = function(b) { var d = this.children; if (d && d.length) { var a = d.length - 1; if (b >= d[a].startTime) { return a; } for (var c, e = 0;a > e;) { c = Math.ceil((e + a) / 2); var l = d[c]; if (b >= l.startTime && b <= l.endTime) { return c; } b > l.endTime ? e = c : a = c - 1; } return (e + a) / 2 | 0; } return 0; }; b.prototype.query = function(b) { if (b < this.startTime || b > this.endTime) { return null; } var d = this.children; if (d && 0 < d.length) { for (var a, c = 0, e = d.length - 1;e > c;) { var l = (c + e) / 2 | 0; a = d[l]; if (b >= a.startTime && b <= a.endTime) { return a.query(b); } b > a.endTime ? c = l + 1 : e = l; } a = d[e]; if (b >= a.startTime && b <= a.endTime) { return a.query(b); } } return this; }; b.prototype.queryNext = function(b) { for (var d = this;b > d.endTime;) { if (d.parent) { d = d.parent; } else { break; } } return d.query(b); }; b.prototype.getDepth = function() { for (var b = 0, d = this;d;) { b++, d = d.parent; } return b; }; b.prototype.calculateStatistics = function() { function b(a) { if (a.kind) { var c = d[a.kind.id] || (d[a.kind.id] = new f(a.kind)); c.count++; c.selfTime += a.selfTime; c.totalTime += a.totalTime; } a.children && a.children.forEach(b); } var d = this.statistics = []; b(this); }; b.prototype.trace = function(b) { var d = (this.kind ? this.kind.name + ": " : "Profile: ") + (this.endTime - this.startTime).toFixed(2); if (this.children && this.children.length) { b.enter(d); for (d = 0;d < this.children.length;d++) { this.children[d].trace(b); } b.outdent(); } else { b.writeLn(d); } }; return b; }(); b.TimelineFrame = u; u = function(b) { function g(d) { b.call(this, null, null, null, null, NaN, NaN); this.name = d; } __extends(g, b); return g; }(u); b.TimelineBufferSnapshot = u; })(b.Profiler || (b.Profiler = {})); })(f.Tools || (f.Tools = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { var q = function() { function u(b, g) { void 0 === b && (b = ""); this.name = b || ""; this._startTime = f.isNullOrUndefined(g) ? jsGlobal.START_TIME : g; } u.prototype.getKind = function(b) { return this._kinds[b]; }; Object.defineProperty(u.prototype, "kinds", {get:function() { return this._kinds.concat(); }, enumerable:!0, configurable:!0}); Object.defineProperty(u.prototype, "depth", {get:function() { return this._depth; }, enumerable:!0, configurable:!0}); u.prototype._initialize = function() { this._depth = 0; this._stack = []; this._data = []; this._kinds = []; this._kindNameMap = Object.create(null); this._marks = new f.CircularBuffer(Int32Array, 20); this._times = new f.CircularBuffer(Float64Array, 20); }; u.prototype._getKindId = function(b) { var g = u.MAX_KINDID; if (void 0 === this._kindNameMap[b]) { if (g = this._kinds.length, g < u.MAX_KINDID) { var d = {id:g, name:b, visible:!0}; this._kinds.push(d); this._kindNameMap[b] = d; } else { g = u.MAX_KINDID; } } else { g = this._kindNameMap[b].id; } return g; }; u.prototype._getMark = function(b, g, d) { var a = u.MAX_DATAID; f.isNullOrUndefined(d) || g === u.MAX_KINDID || (a = this._data.length, a < u.MAX_DATAID ? this._data.push(d) : a = u.MAX_DATAID); return b | a << 16 | g; }; u.prototype.enter = function(b, g, d) { d = (f.isNullOrUndefined(d) ? performance.now() : d) - this._startTime; this._marks || this._initialize(); this._depth++; b = this._getKindId(b); this._marks.write(this._getMark(u.ENTER, b, g)); this._times.write(d); this._stack.push(b); }; u.prototype.leave = function(b, g, d) { d = (f.isNullOrUndefined(d) ? performance.now() : d) - this._startTime; var a = this._stack.pop(); b && (a = this._getKindId(b)); this._marks.write(this._getMark(u.LEAVE, a, g)); this._times.write(d); this._depth--; }; u.prototype.count = function(b, g, d) { }; u.prototype.createSnapshot = function() { var k; void 0 === k && (k = Number.MAX_VALUE); if (!this._marks) { return null; } var r = this._times, d = this._kinds, a = this._data, c = new b.TimelineBufferSnapshot(this.name), e = [c], l = 0; this._marks || this._initialize(); this._marks.forEachInReverse(function(c, t) { var p = a[c >>> 16 & u.MAX_DATAID], h = d[c & u.MAX_KINDID]; if (f.isNullOrUndefined(h) || h.visible) { var m = c & 2147483648, v = r.get(t), w = e.length; if (m === u.LEAVE) { if (1 === w && (l++, l > k)) { return !0; } e.push(new b.TimelineFrame(e[w - 1], h, null, p, NaN, v)); } else { if (m === u.ENTER) { if (h = e.pop(), m = e[e.length - 1]) { for (m.children ? m.children.unshift(h) : m.children = [h], m = e.length, h.depth = m, h.startData = p, h.startTime = v;h;) { if (h.maxDepth < m) { h.maxDepth = m, h = h.parent; } else { break; } } } else { return !0; } } } } }); c.children && c.children.length && (c.startTime = c.children[0].startTime, c.endTime = c.children[c.children.length - 1].endTime); return c; }; u.prototype.reset = function(b) { this._startTime = f.isNullOrUndefined(b) ? performance.now() : b; this._marks ? (this._depth = 0, this._data = [], this._marks.reset(), this._times.reset()) : this._initialize(); }; u.FromFirefoxProfile = function(b, g) { for (var d = b.profile.threads[0].samples, a = new u(g, d[0].time), c = [], e, l = 0;l < d.length;l++) { e = d[l]; var n = e.time, t = e.frames, p = 0; for (e = Math.min(t.length, c.length);p < e && t[p].location === c[p].location;) { p++; } for (var h = c.length - p, m = 0;m < h;m++) { e = c.pop(), a.leave(e.location, null, n); } for (;p < t.length;) { e = t[p++], a.enter(e.location, null, n); } c = t; } for (;e = c.pop();) { a.leave(e.location, null, n); } return a; }; u.FromChromeProfile = function(b, g) { var d = b.timestamps, a = b.samples, c = new u(g, d[0] / 1E3), e = [], l = {}, n; u._resolveIds(b.head, l); for (var t = 0;t < d.length;t++) { var p = d[t] / 1E3, h = []; for (n = l[a[t]];n;) { h.unshift(n), n = n.parent; } var m = 0; for (n = Math.min(h.length, e.length);m < n && h[m] === e[m];) { m++; } for (var v = e.length - m, w = 0;w < v;w++) { n = e.pop(), c.leave(n.functionName, null, p); } for (;m < h.length;) { n = h[m++], c.enter(n.functionName, null, p); } e = h; } for (;n = e.pop();) { c.leave(n.functionName, null, p); } return c; }; u._resolveIds = function(b, g) { g[b.id] = b; if (b.children) { for (var d = 0;d < b.children.length;d++) { b.children[d].parent = b, u._resolveIds(b.children[d], g); } } }; u.ENTER = 0; u.LEAVE = -2147483648; u.MAX_KINDID = 65535; u.MAX_DATAID = 32767; return u; }(); b.TimelineBuffer = q; })(b.Profiler || (b.Profiler = {})); })(f.Tools || (f.Tools = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(g) { (function(b) { b[b.DARK = 0] = "DARK"; b[b.LIGHT = 1] = "LIGHT"; })(g.UIThemeType || (g.UIThemeType = {})); var q = function() { function u(b, g) { void 0 === g && (g = 0); this._container = b; this._headers = []; this._charts = []; this._profiles = []; this._activeProfile = null; this.themeType = g; this._tooltip = this._createTooltip(); } u.prototype.createProfile = function(b, r) { var d = new g.Profile(b, r); d.createSnapshots(); this._profiles.push(d); this.activateProfile(d); return d; }; u.prototype.activateProfile = function(b) { this.deactivateProfile(); this._activeProfile = b; this._createViews(); this._initializeViews(); }; u.prototype.activateProfileAt = function(b) { this.activateProfile(this.getProfileAt(b)); }; u.prototype.deactivateProfile = function() { this._activeProfile && (this._destroyViews(), this._activeProfile = null); }; u.prototype.resize = function() { this._onResize(); }; u.prototype.getProfileAt = function(b) { return this._profiles[b]; }; Object.defineProperty(u.prototype, "activeProfile", {get:function() { return this._activeProfile; }, enumerable:!0, configurable:!0}); Object.defineProperty(u.prototype, "profileCount", {get:function() { return this._profiles.length; }, enumerable:!0, configurable:!0}); Object.defineProperty(u.prototype, "container", {get:function() { return this._container; }, enumerable:!0, configurable:!0}); Object.defineProperty(u.prototype, "themeType", {get:function() { return this._themeType; }, set:function(g) { switch(g) { case 0: this._theme = new b.Theme.UIThemeDark; break; case 1: this._theme = new b.Theme.UIThemeLight; } }, enumerable:!0, configurable:!0}); Object.defineProperty(u.prototype, "theme", {get:function() { return this._theme; }, enumerable:!0, configurable:!0}); u.prototype.getSnapshotAt = function(b) { return this._activeProfile.getSnapshotAt(b); }; u.prototype._createViews = function() { if (this._activeProfile) { var b = this; this._overviewHeader = new g.FlameChartHeader(this, 0); this._overview = new g.FlameChartOverview(this, 0); this._activeProfile.forEachSnapshot(function(r, d) { b._headers.push(new g.FlameChartHeader(b, 1)); b._charts.push(new g.FlameChart(b, r)); }); window.addEventListener("resize", this._onResize.bind(this)); } }; u.prototype._destroyViews = function() { if (this._activeProfile) { this._overviewHeader.destroy(); for (this._overview.destroy();this._headers.length;) { this._headers.pop().destroy(); } for (;this._charts.length;) { this._charts.pop().destroy(); } window.removeEventListener("resize", this._onResize.bind(this)); } }; u.prototype._initializeViews = function() { if (this._activeProfile) { var b = this, g = this._activeProfile.startTime, d = this._activeProfile.endTime; this._overviewHeader.initialize(g, d); this._overview.initialize(g, d); this._activeProfile.forEachSnapshot(function(a, c) { b._headers[c].initialize(g, d); b._charts[c].initialize(g, d); }); } }; u.prototype._onResize = function() { if (this._activeProfile) { var b = this, g = this._container.offsetWidth; this._overviewHeader.setSize(g); this._overview.setSize(g); this._activeProfile.forEachSnapshot(function(d, a) { b._headers[a].setSize(g); b._charts[a].setSize(g); }); } }; u.prototype._updateViews = function() { if (this._activeProfile) { var b = this, g = this._activeProfile.windowStart, d = this._activeProfile.windowEnd; this._overviewHeader.setWindow(g, d); this._overview.setWindow(g, d); this._activeProfile.forEachSnapshot(function(a, c) { b._headers[c].setWindow(g, d); b._charts[c].setWindow(g, d); }); } }; u.prototype._drawViews = function() { }; u.prototype._createTooltip = function() { var b = document.createElement("div"); b.classList.add("profiler-tooltip"); b.style.display = "none"; this._container.insertBefore(b, this._container.firstChild); return b; }; u.prototype.setWindow = function(b, g) { this._activeProfile.setWindow(b, g); this._updateViews(); }; u.prototype.moveWindowTo = function(b) { this._activeProfile.moveWindowTo(b); this._updateViews(); }; u.prototype.showTooltip = function(b, g, d, a) { this.removeTooltipContent(); this._tooltip.appendChild(this.createTooltipContent(b, g)); this._tooltip.style.display = "block"; var c = this._tooltip.firstChild; g = c.clientWidth; c = c.clientHeight; d += d + g >= b.canvas.clientWidth - 50 ? -(g + 20) : 25; a += b.canvas.offsetTop - c / 2; this._tooltip.style.left = d + "px"; this._tooltip.style.top = a + "px"; }; u.prototype.hideTooltip = function() { this._tooltip.style.display = "none"; }; u.prototype.createTooltipContent = function(b, g) { var d = Math.round(1E5 * g.totalTime) / 1E5, a = Math.round(1E5 * g.selfTime) / 1E5, c = Math.round(1E4 * g.selfTime / g.totalTime) / 100, e = document.createElement("div"), l = document.createElement("h1"); l.textContent = g.kind.name; e.appendChild(l); l = document.createElement("p"); l.textContent = "Total: " + d + " ms"; e.appendChild(l); d = document.createElement("p"); d.textContent = "Self: " + a + " ms (" + c + "%)"; e.appendChild(d); if (a = b.getStatistics(g.kind)) { c = document.createElement("p"), c.textContent = "Count: " + a.count, e.appendChild(c), c = Math.round(1E5 * a.totalTime) / 1E5, d = document.createElement("p"), d.textContent = "All Total: " + c + " ms", e.appendChild(d), a = Math.round(1E5 * a.selfTime) / 1E5, c = document.createElement("p"), c.textContent = "All Self: " + a + " ms", e.appendChild(c); } this.appendDataElements(e, g.startData); this.appendDataElements(e, g.endData); return e; }; u.prototype.appendDataElements = function(b, g) { if (!f.isNullOrUndefined(g)) { b.appendChild(document.createElement("hr")); var d; if (f.isObject(g)) { for (var a in g) { d = document.createElement("p"), d.textContent = a + ": " + g[a], b.appendChild(d); } } else { d = document.createElement("p"), d.textContent = g.toString(), b.appendChild(d); } } }; u.prototype.removeTooltipContent = function() { for (var b = this._tooltip;b.firstChild;) { b.removeChild(b.firstChild); } }; return u; }(); g.Controller = q; })(b.Profiler || (b.Profiler = {})); })(f.Tools || (f.Tools = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { var q = f.NumberUtilities.clamp, u = function() { function b(d) { this.value = d; } b.prototype.toString = function() { return this.value; }; b.AUTO = new b("auto"); b.DEFAULT = new b("default"); b.NONE = new b("none"); b.HELP = new b("help"); b.POINTER = new b("pointer"); b.PROGRESS = new b("progress"); b.WAIT = new b("wait"); b.CELL = new b("cell"); b.CROSSHAIR = new b("crosshair"); b.TEXT = new b("text"); b.ALIAS = new b("alias"); b.COPY = new b("copy"); b.MOVE = new b("move"); b.NO_DROP = new b("no-drop"); b.NOT_ALLOWED = new b("not-allowed"); b.ALL_SCROLL = new b("all-scroll"); b.COL_RESIZE = new b("col-resize"); b.ROW_RESIZE = new b("row-resize"); b.N_RESIZE = new b("n-resize"); b.E_RESIZE = new b("e-resize"); b.S_RESIZE = new b("s-resize"); b.W_RESIZE = new b("w-resize"); b.NE_RESIZE = new b("ne-resize"); b.NW_RESIZE = new b("nw-resize"); b.SE_RESIZE = new b("se-resize"); b.SW_RESIZE = new b("sw-resize"); b.EW_RESIZE = new b("ew-resize"); b.NS_RESIZE = new b("ns-resize"); b.NESW_RESIZE = new b("nesw-resize"); b.NWSE_RESIZE = new b("nwse-resize"); b.ZOOM_IN = new b("zoom-in"); b.ZOOM_OUT = new b("zoom-out"); b.GRAB = new b("grab"); b.GRABBING = new b("grabbing"); return b; }(); b.MouseCursor = u; var k = function() { function b(d, a) { this._target = d; this._eventTarget = a; this._wheelDisabled = !1; this._boundOnMouseDown = this._onMouseDown.bind(this); this._boundOnMouseUp = this._onMouseUp.bind(this); this._boundOnMouseOver = this._onMouseOver.bind(this); this._boundOnMouseOut = this._onMouseOut.bind(this); this._boundOnMouseMove = this._onMouseMove.bind(this); this._boundOnMouseWheel = this._onMouseWheel.bind(this); this._boundOnDrag = this._onDrag.bind(this); a.addEventListener("mousedown", this._boundOnMouseDown, !1); a.addEventListener("mouseover", this._boundOnMouseOver, !1); a.addEventListener("mouseout", this._boundOnMouseOut, !1); a.addEventListener("onwheel" in document ? "wheel" : "mousewheel", this._boundOnMouseWheel, !1); } b.prototype.destroy = function() { var b = this._eventTarget; b.removeEventListener("mousedown", this._boundOnMouseDown); b.removeEventListener("mouseover", this._boundOnMouseOver); b.removeEventListener("mouseout", this._boundOnMouseOut); b.removeEventListener("onwheel" in document ? "wheel" : "mousewheel", this._boundOnMouseWheel); window.removeEventListener("mousemove", this._boundOnDrag); window.removeEventListener("mouseup", this._boundOnMouseUp); this._killHoverCheck(); this._target = this._eventTarget = null; }; b.prototype.updateCursor = function(d) { if (!b._cursorOwner || b._cursorOwner === this._target) { var a = this._eventTarget.parentElement; b._cursor !== d && (b._cursor = d, ["", "-moz-", "-webkit-"].forEach(function(c) { a.style.cursor = c + d; })); b._cursorOwner = b._cursor === u.DEFAULT ? null : this._target; } }; b.prototype._onMouseDown = function(b) { this._killHoverCheck(); if (0 === b.button) { var a = this._getTargetMousePos(b, b.target); this._dragInfo = {start:a, current:a, delta:{x:0, y:0}, hasMoved:!1, originalTarget:b.target}; window.addEventListener("mousemove", this._boundOnDrag, !1); window.addEventListener("mouseup", this._boundOnMouseUp, !1); this._target.onMouseDown(a.x, a.y); } }; b.prototype._onDrag = function(b) { var a = this._dragInfo; b = this._getTargetMousePos(b, a.originalTarget); var c = {x:b.x - a.start.x, y:b.y - a.start.y}; a.current = b; a.delta = c; a.hasMoved = !0; this._target.onDrag(a.start.x, a.start.y, b.x, b.y, c.x, c.y); }; b.prototype._onMouseUp = function(b) { window.removeEventListener("mousemove", this._boundOnDrag); window.removeEventListener("mouseup", this._boundOnMouseUp); var a = this; b = this._dragInfo; if (b.hasMoved) { this._target.onDragEnd(b.start.x, b.start.y, b.current.x, b.current.y, b.delta.x, b.delta.y); } else { this._target.onClick(b.current.x, b.current.y); } this._dragInfo = null; this._wheelDisabled = !0; setTimeout(function() { a._wheelDisabled = !1; }, 500); }; b.prototype._onMouseOver = function(b) { b.target.addEventListener("mousemove", this._boundOnMouseMove, !1); if (!this._dragInfo) { var a = this._getTargetMousePos(b, b.target); this._target.onMouseOver(a.x, a.y); this._startHoverCheck(b); } }; b.prototype._onMouseOut = function(b) { b.target.removeEventListener("mousemove", this._boundOnMouseMove, !1); if (!this._dragInfo) { this._target.onMouseOut(); } this._killHoverCheck(); }; b.prototype._onMouseMove = function(b) { if (!this._dragInfo) { var a = this._getTargetMousePos(b, b.target); this._target.onMouseMove(a.x, a.y); this._killHoverCheck(); this._startHoverCheck(b); } }; b.prototype._onMouseWheel = function(b) { if (!(b.altKey || b.metaKey || b.ctrlKey || b.shiftKey || (b.preventDefault(), this._dragInfo || this._wheelDisabled))) { var a = this._getTargetMousePos(b, b.target); b = q("undefined" !== typeof b.deltaY ? b.deltaY / 16 : -b.wheelDelta / 40, -1, 1); b = Math.pow(1.2, b) - 1; this._target.onMouseWheel(a.x, a.y, b); } }; b.prototype._startHoverCheck = function(d) { this._hoverInfo = {isHovering:!1, timeoutHandle:setTimeout(this._onMouseMoveIdleHandler.bind(this), b.HOVER_TIMEOUT), pos:this._getTargetMousePos(d, d.target)}; }; b.prototype._killHoverCheck = function() { if (this._hoverInfo) { clearTimeout(this._hoverInfo.timeoutHandle); if (this._hoverInfo.isHovering) { this._target.onHoverEnd(); } this._hoverInfo = null; } }; b.prototype._onMouseMoveIdleHandler = function() { var b = this._hoverInfo; b.isHovering = !0; this._target.onHoverStart(b.pos.x, b.pos.y); }; b.prototype._getTargetMousePos = function(b, a) { var c = a.getBoundingClientRect(); return {x:b.clientX - c.left, y:b.clientY - c.top}; }; b.HOVER_TIMEOUT = 500; b._cursor = u.DEFAULT; return b; }(); b.MouseController = k; })(b.Profiler || (b.Profiler = {})); })(f.Tools || (f.Tools = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(b) { b[b.NONE = 0] = "NONE"; b[b.WINDOW = 1] = "WINDOW"; b[b.HANDLE_LEFT = 2] = "HANDLE_LEFT"; b[b.HANDLE_RIGHT = 3] = "HANDLE_RIGHT"; b[b.HANDLE_BOTH = 4] = "HANDLE_BOTH"; })(b.FlameChartDragTarget || (b.FlameChartDragTarget = {})); var f = function() { function f(k) { this._controller = k; this._initialized = !1; this._canvas = document.createElement("canvas"); this._context = this._canvas.getContext("2d"); this._mouseController = new b.MouseController(this, this._canvas); k = k.container; k.appendChild(this._canvas); k = k.getBoundingClientRect(); this.setSize(k.width); } Object.defineProperty(f.prototype, "canvas", {get:function() { return this._canvas; }, enumerable:!0, configurable:!0}); f.prototype.setSize = function(b, g) { void 0 === g && (g = 20); this._width = b; this._height = g; this._resetCanvas(); this.draw(); }; f.prototype.initialize = function(b, g) { this._initialized = !0; this.setRange(b, g); this.setWindow(b, g, !1); this.draw(); }; f.prototype.setWindow = function(b, g, d) { void 0 === d && (d = !0); this._windowStart = b; this._windowEnd = g; !d || this.draw(); }; f.prototype.setRange = function(b, g) { var d = !1; void 0 === d && (d = !0); this._rangeStart = b; this._rangeEnd = g; !d || this.draw(); }; f.prototype.destroy = function() { this._mouseController.destroy(); this._mouseController = null; this._controller.container.removeChild(this._canvas); this._controller = null; }; f.prototype._resetCanvas = function() { var b = window.devicePixelRatio, g = this._canvas; g.width = this._width * b; g.height = this._height * b; g.style.width = this._width + "px"; g.style.height = this._height + "px"; }; f.prototype.draw = function() { }; f.prototype._almostEq = function(b, g) { var d; void 0 === d && (d = 10); d = Math.pow(10, d); return Math.abs(b - g) < 1 / d; }; f.prototype._windowEqRange = function() { return this._almostEq(this._windowStart, this._rangeStart) && this._almostEq(this._windowEnd, this._rangeEnd); }; f.prototype._decimalPlaces = function(b) { return (+b).toFixed(10).replace(/^-?\d*\.?|0+$/g, "").length; }; f.prototype._toPixelsRelative = function(b) { return 0; }; f.prototype._toPixels = function(b) { return 0; }; f.prototype._toTimeRelative = function(b) { return 0; }; f.prototype._toTime = function(b) { return 0; }; f.prototype.onMouseWheel = function(b, g, d) { b = this._toTime(b); g = this._windowStart; var a = this._windowEnd, c = a - g; d = Math.max((f.MIN_WINDOW_LEN - c) / c, d); this._controller.setWindow(g + (g - b) * d, a + (a - b) * d); this.onHoverEnd(); }; f.prototype.onMouseDown = function(b, g) { }; f.prototype.onMouseMove = function(b, g) { }; f.prototype.onMouseOver = function(b, g) { }; f.prototype.onMouseOut = function() { }; f.prototype.onDrag = function(b, g, d, a, c, e) { }; f.prototype.onDragEnd = function(b, g, d, a, c, e) { }; f.prototype.onClick = function(b, g) { }; f.prototype.onHoverStart = function(b, g) { }; f.prototype.onHoverEnd = function() { }; f.DRAGHANDLE_WIDTH = 4; f.MIN_WINDOW_LEN = .1; return f; }(); b.FlameChartBase = f; })(b.Profiler || (b.Profiler = {})); })(f.Tools || (f.Tools = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { var q = f.StringUtilities.trimMiddle, u = function(k) { function r(b, a) { k.call(this, b); this._textWidth = {}; this._minFrameWidthInPixels = 1; this._snapshot = a; this._kindStyle = Object.create(null); } __extends(r, k); r.prototype.setSize = function(b, a) { k.prototype.setSize.call(this, b, a || this._initialized ? 12.5 * this._maxDepth : 100); }; r.prototype.initialize = function(b, a) { this._initialized = !0; this._maxDepth = this._snapshot.maxDepth; this.setRange(b, a); this.setWindow(b, a, !1); this.setSize(this._width, 12.5 * this._maxDepth); }; r.prototype.destroy = function() { k.prototype.destroy.call(this); this._snapshot = null; }; r.prototype.draw = function() { var b = this._context, a = window.devicePixelRatio; f.ColorStyle.reset(); b.save(); b.scale(a, a); b.fillStyle = this._controller.theme.bodyBackground(1); b.fillRect(0, 0, this._width, this._height); this._initialized && this._drawChildren(this._snapshot); b.restore(); }; r.prototype._drawChildren = function(b, a) { void 0 === a && (a = 0); var c = b.getChildRange(this._windowStart, this._windowEnd); if (c) { for (var e = c.startIndex;e <= c.endIndex;e++) { var l = b.children[e]; this._drawFrame(l, a) && this._drawChildren(l, a + 1); } } }; r.prototype._drawFrame = function(b, a) { var c = this._context, e = this._toPixels(b.startTime), l = this._toPixels(b.endTime), n = l - e; if (n <= this._minFrameWidthInPixels) { return c.fillStyle = this._controller.theme.tabToolbar(1), c.fillRect(e, 12.5 * a, this._minFrameWidthInPixels, 12 + 12.5 * (b.maxDepth - b.depth)), !1; } 0 > e && (l = n + e, e = 0); var l = l - e, t = this._kindStyle[b.kind.id]; t || (t = f.ColorStyle.randomStyle(), t = this._kindStyle[b.kind.id] = {bgColor:t, textColor:f.ColorStyle.contrastStyle(t)}); c.save(); c.fillStyle = t.bgColor; c.fillRect(e, 12.5 * a, l, 12); 12 < n && (n = b.kind.name) && n.length && (n = this._prepareText(c, n, l - 4), n.length && (c.fillStyle = t.textColor, c.textBaseline = "bottom", c.fillText(n, e + 2, 12.5 * (a + 1) - 1))); c.restore(); return !0; }; r.prototype._prepareText = function(b, a, c) { var e = this._measureWidth(b, a); if (c > e) { return a; } for (var e = 3, l = a.length;e < l;) { var n = e + l >> 1; this._measureWidth(b, q(a, n)) < c ? e = n + 1 : l = n; } a = q(a, l - 1); e = this._measureWidth(b, a); return e <= c ? a : ""; }; r.prototype._measureWidth = function(b, a) { var c = this._textWidth[a]; c || (c = b.measureText(a).width, this._textWidth[a] = c); return c; }; r.prototype._toPixelsRelative = function(b) { return b * this._width / (this._windowEnd - this._windowStart); }; r.prototype._toPixels = function(b) { return this._toPixelsRelative(b - this._windowStart); }; r.prototype._toTimeRelative = function(b) { return b * (this._windowEnd - this._windowStart) / this._width; }; r.prototype._toTime = function(b) { return this._toTimeRelative(b) + this._windowStart; }; r.prototype._getFrameAtPosition = function(b, a) { var c = 1 + a / 12.5 | 0, e = this._snapshot.query(this._toTime(b)); if (e && e.depth >= c) { for (;e && e.depth > c;) { e = e.parent; } return e; } return null; }; r.prototype.onMouseDown = function(d, a) { this._windowEqRange() || (this._mouseController.updateCursor(b.MouseCursor.ALL_SCROLL), this._dragInfo = {windowStartInitial:this._windowStart, windowEndInitial:this._windowEnd, target:1}); }; r.prototype.onMouseMove = function(b, a) { }; r.prototype.onMouseOver = function(b, a) { }; r.prototype.onMouseOut = function() { }; r.prototype.onDrag = function(b, a, c, e, l, n) { if (b = this._dragInfo) { l = this._toTimeRelative(-l), this._controller.setWindow(b.windowStartInitial + l, b.windowEndInitial + l); } }; r.prototype.onDragEnd = function(d, a, c, e, l, n) { this._dragInfo = null; this._mouseController.updateCursor(b.MouseCursor.DEFAULT); }; r.prototype.onClick = function(d, a) { this._dragInfo = null; this._mouseController.updateCursor(b.MouseCursor.DEFAULT); }; r.prototype.onHoverStart = function(b, a) { var c = this._getFrameAtPosition(b, a); c && (this._hoveredFrame = c, this._controller.showTooltip(this, c, b, a)); }; r.prototype.onHoverEnd = function() { this._hoveredFrame && (this._hoveredFrame = null, this._controller.hideTooltip()); }; r.prototype.getStatistics = function(b) { var a = this._snapshot; a.statistics || a.calculateStatistics(); return a.statistics[b.id]; }; return r; }(b.FlameChartBase); b.FlameChart = u; })(b.Profiler || (b.Profiler = {})); })(f.Tools || (f.Tools = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { var q = f.NumberUtilities.clamp; (function(b) { b[b.OVERLAY = 0] = "OVERLAY"; b[b.STACK = 1] = "STACK"; b[b.UNION = 2] = "UNION"; })(b.FlameChartOverviewMode || (b.FlameChartOverviewMode = {})); var u = function(f) { function r(b, a) { void 0 === a && (a = 1); this._mode = a; this._overviewCanvasDirty = !0; this._overviewCanvas = document.createElement("canvas"); this._overviewContext = this._overviewCanvas.getContext("2d"); f.call(this, b); } __extends(r, f); r.prototype.setSize = function(b, a) { f.prototype.setSize.call(this, b, a || 64); }; Object.defineProperty(r.prototype, "mode", {set:function(b) { this._mode = b; this.draw(); }, enumerable:!0, configurable:!0}); r.prototype._resetCanvas = function() { f.prototype._resetCanvas.call(this); this._overviewCanvas.width = this._canvas.width; this._overviewCanvas.height = this._canvas.height; this._overviewCanvasDirty = !0; }; r.prototype.draw = function() { var b = this._context, a = window.devicePixelRatio, c = this._width, e = this._height; b.save(); b.scale(a, a); b.fillStyle = this._controller.theme.bodyBackground(1); b.fillRect(0, 0, c, e); b.restore(); this._initialized && (this._overviewCanvasDirty && (this._drawChart(), this._overviewCanvasDirty = !1), b.drawImage(this._overviewCanvas, 0, 0), this._drawSelection()); }; r.prototype._drawSelection = function() { var b = this._context, a = this._height, c = window.devicePixelRatio, e = this._selection ? this._selection.left : this._toPixels(this._windowStart), l = this._selection ? this._selection.right : this._toPixels(this._windowEnd), n = this._controller.theme; b.save(); b.scale(c, c); this._selection ? (b.fillStyle = n.selectionText(.15), b.fillRect(e, 1, l - e, a - 1), b.fillStyle = "rgba(133, 0, 0, 1)", b.fillRect(e + .5, 0, l - e - 1, 4), b.fillRect(e + .5, a - 4, l - e - 1, 4)) : (b.fillStyle = n.bodyBackground(.4), b.fillRect(0, 1, e, a - 1), b.fillRect(l, 1, this._width, a - 1)); b.beginPath(); b.moveTo(e, 0); b.lineTo(e, a); b.moveTo(l, 0); b.lineTo(l, a); b.lineWidth = .5; b.strokeStyle = n.foregroundTextGrey(1); b.stroke(); a = Math.abs((this._selection ? this._toTime(this._selection.right) : this._windowEnd) - (this._selection ? this._toTime(this._selection.left) : this._windowStart)); b.fillStyle = n.selectionText(.5); b.font = "8px sans-serif"; b.textBaseline = "alphabetic"; b.textAlign = "end"; b.fillText(a.toFixed(2), Math.min(e, l) - 4, 10); b.fillText((a / 60).toFixed(2), Math.min(e, l) - 4, 20); b.restore(); }; r.prototype._drawChart = function() { var b = window.devicePixelRatio, a = this._height, c = this._controller.activeProfile, e = 4 * this._width, l = c.totalTime / e, n = this._overviewContext, t = this._controller.theme.blueHighlight(1); n.save(); n.translate(0, b * a); var p = -b * a / (c.maxDepth - 1); n.scale(b / 4, p); n.clearRect(0, 0, e, c.maxDepth - 1); 1 == this._mode && n.scale(1, 1 / c.snapshotCount); for (var h = 0, m = c.snapshotCount;h < m;h++) { var v = c.getSnapshotAt(h); if (v) { var g = null, r = 0; n.beginPath(); n.moveTo(0, 0); for (var f = 0;f < e;f++) { r = c.startTime + f * l, r = (g = g ? g.queryNext(r) : v.query(r)) ? g.getDepth() - 1 : 0, n.lineTo(f, r); } n.lineTo(f, 0); n.fillStyle = t; n.fill(); 1 == this._mode && n.translate(0, -a * b / p); } } n.restore(); }; r.prototype._toPixelsRelative = function(b) { return b * this._width / (this._rangeEnd - this._rangeStart); }; r.prototype._toPixels = function(b) { return this._toPixelsRelative(b - this._rangeStart); }; r.prototype._toTimeRelative = function(b) { return b * (this._rangeEnd - this._rangeStart) / this._width; }; r.prototype._toTime = function(b) { return this._toTimeRelative(b) + this._rangeStart; }; r.prototype._getDragTargetUnderCursor = function(d, a) { if (0 <= a && a < this._height) { var c = this._toPixels(this._windowStart), e = this._toPixels(this._windowEnd), l = 2 + b.FlameChartBase.DRAGHANDLE_WIDTH / 2, n = d >= c - l && d <= c + l, t = d >= e - l && d <= e + l; if (n && t) { return 4; } if (n) { return 2; } if (t) { return 3; } if (!this._windowEqRange() && d > c + l && d < e - l) { return 1; } } return 0; }; r.prototype.onMouseDown = function(d, a) { var c = this._getDragTargetUnderCursor(d, a); 0 === c ? (this._selection = {left:d, right:d}, this.draw()) : (1 === c && this._mouseController.updateCursor(b.MouseCursor.GRABBING), this._dragInfo = {windowStartInitial:this._windowStart, windowEndInitial:this._windowEnd, target:c}); }; r.prototype.onMouseMove = function(d, a) { var c = b.MouseCursor.DEFAULT, e = this._getDragTargetUnderCursor(d, a); 0 === e || this._selection || (c = 1 === e ? b.MouseCursor.GRAB : b.MouseCursor.EW_RESIZE); this._mouseController.updateCursor(c); }; r.prototype.onMouseOver = function(b, a) { this.onMouseMove(b, a); }; r.prototype.onMouseOut = function() { this._mouseController.updateCursor(b.MouseCursor.DEFAULT); }; r.prototype.onDrag = function(d, a, c, e, l, n) { if (this._selection) { this._selection = {left:d, right:q(c, 0, this._width - 1)}, this.draw(); } else { d = this._dragInfo; if (4 === d.target) { if (0 !== l) { d.target = 0 > l ? 2 : 3; } else { return; } } a = this._windowStart; c = this._windowEnd; l = this._toTimeRelative(l); switch(d.target) { case 1: a = d.windowStartInitial + l; c = d.windowEndInitial + l; break; case 2: a = q(d.windowStartInitial + l, this._rangeStart, c - b.FlameChartBase.MIN_WINDOW_LEN); break; case 3: c = q(d.windowEndInitial + l, a + b.FlameChartBase.MIN_WINDOW_LEN, this._rangeEnd); break; default: return; } this._controller.setWindow(a, c); } }; r.prototype.onDragEnd = function(b, a, c, e, l, n) { this._selection && (this._selection = null, this._controller.setWindow(this._toTime(b), this._toTime(c))); this._dragInfo = null; this.onMouseMove(c, e); }; r.prototype.onClick = function(b, a) { this._selection = this._dragInfo = null; this._windowEqRange() || (0 === this._getDragTargetUnderCursor(b, a) && this._controller.moveWindowTo(this._toTime(b)), this.onMouseMove(b, a)); this.draw(); }; r.prototype.onHoverStart = function(b, a) { }; r.prototype.onHoverEnd = function() { }; return r; }(b.FlameChartBase); b.FlameChartOverview = u; })(b.Profiler || (b.Profiler = {})); })(f.Tools || (f.Tools = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { var q = f.NumberUtilities.clamp; (function(b) { b[b.OVERVIEW = 0] = "OVERVIEW"; b[b.CHART = 1] = "CHART"; })(b.FlameChartHeaderType || (b.FlameChartHeaderType = {})); var u = function(f) { function r(b, a) { this._type = a; f.call(this, b); } __extends(r, f); r.prototype.draw = function() { var b = this._context, a = window.devicePixelRatio, c = this._width, e = this._height; b.save(); b.scale(a, a); b.fillStyle = this._controller.theme.tabToolbar(1); b.fillRect(0, 0, c, e); this._initialized && (0 == this._type ? (a = this._toPixels(this._windowStart), c = this._toPixels(this._windowEnd), b.fillStyle = this._controller.theme.bodyBackground(1), b.fillRect(a, 0, c - a, e), this._drawLabels(this._rangeStart, this._rangeEnd), this._drawDragHandle(a), this._drawDragHandle(c)) : this._drawLabels(this._windowStart, this._windowEnd)); b.restore(); }; r.prototype._drawLabels = function(b, a) { var c = this._context, e = this._calculateTickInterval(b, a), l = Math.ceil(b / e) * e, n = 500 <= e, t = n ? 1E3 : 1, p = this._decimalPlaces(e / t), n = n ? "s" : "ms", h = this._toPixels(l), m = this._height / 2, v = this._controller.theme; c.lineWidth = 1; c.strokeStyle = v.contentTextDarkGrey(.5); c.fillStyle = v.contentTextDarkGrey(1); c.textAlign = "right"; c.textBaseline = "middle"; c.font = "11px sans-serif"; for (v = this._width + r.TICK_MAX_WIDTH;h < v;) { var g = (l / t).toFixed(p) + " " + n; c.fillText(g, h - 7, m + 1); c.beginPath(); c.moveTo(h, 0); c.lineTo(h, this._height + 1); c.closePath(); c.stroke(); l += e; h = this._toPixels(l); } }; r.prototype._calculateTickInterval = function(b, a) { var c = (a - b) / (this._width / r.TICK_MAX_WIDTH), e = Math.pow(10, Math.floor(Math.log(c) / Math.LN10)), c = c / e; return 5 < c ? 10 * e : 2 < c ? 5 * e : 1 < c ? 2 * e : e; }; r.prototype._drawDragHandle = function(d) { var a = this._context; a.lineWidth = 2; a.strokeStyle = this._controller.theme.bodyBackground(1); a.fillStyle = this._controller.theme.foregroundTextGrey(.7); this._drawRoundedRect(a, d - b.FlameChartBase.DRAGHANDLE_WIDTH / 2, b.FlameChartBase.DRAGHANDLE_WIDTH, this._height - 2); }; r.prototype._drawRoundedRect = function(b, a, c, e) { var l, n = !0; void 0 === n && (n = !0); void 0 === l && (l = !0); b.beginPath(); b.moveTo(a + 2, 1); b.lineTo(a + c - 2, 1); b.quadraticCurveTo(a + c, 1, a + c, 3); b.lineTo(a + c, 1 + e - 2); b.quadraticCurveTo(a + c, 1 + e, a + c - 2, 1 + e); b.lineTo(a + 2, 1 + e); b.quadraticCurveTo(a, 1 + e, a, 1 + e - 2); b.lineTo(a, 3); b.quadraticCurveTo(a, 1, a + 2, 1); b.closePath(); n && b.stroke(); l && b.fill(); }; r.prototype._toPixelsRelative = function(b) { return b * this._width / (0 === this._type ? this._rangeEnd - this._rangeStart : this._windowEnd - this._windowStart); }; r.prototype._toPixels = function(b) { return this._toPixelsRelative(b - (0 === this._type ? this._rangeStart : this._windowStart)); }; r.prototype._toTimeRelative = function(b) { return b * (0 === this._type ? this._rangeEnd - this._rangeStart : this._windowEnd - this._windowStart) / this._width; }; r.prototype._toTime = function(b) { return this._toTimeRelative(b) + (0 === this._type ? this._rangeStart : this._windowStart); }; r.prototype._getDragTargetUnderCursor = function(d, a) { if (0 <= a && a < this._height) { if (0 === this._type) { var c = this._toPixels(this._windowStart), e = this._toPixels(this._windowEnd), l = 2 + b.FlameChartBase.DRAGHANDLE_WIDTH / 2, c = d >= c - l && d <= c + l, e = d >= e - l && d <= e + l; if (c && e) { return 4; } if (c) { return 2; } if (e) { return 3; } } if (!this._windowEqRange()) { return 1; } } return 0; }; r.prototype.onMouseDown = function(d, a) { var c = this._getDragTargetUnderCursor(d, a); 1 === c && this._mouseController.updateCursor(b.MouseCursor.GRABBING); this._dragInfo = {windowStartInitial:this._windowStart, windowEndInitial:this._windowEnd, target:c}; }; r.prototype.onMouseMove = function(d, a) { var c = b.MouseCursor.DEFAULT, e = this._getDragTargetUnderCursor(d, a); 0 !== e && (1 !== e ? c = b.MouseCursor.EW_RESIZE : 1 !== e || this._windowEqRange() || (c = b.MouseCursor.GRAB)); this._mouseController.updateCursor(c); }; r.prototype.onMouseOver = function(b, a) { this.onMouseMove(b, a); }; r.prototype.onMouseOut = function() { this._mouseController.updateCursor(b.MouseCursor.DEFAULT); }; r.prototype.onDrag = function(d, a, c, e, l, n) { d = this._dragInfo; if (4 === d.target) { if (0 !== l) { d.target = 0 > l ? 2 : 3; } else { return; } } a = this._windowStart; c = this._windowEnd; l = this._toTimeRelative(l); switch(d.target) { case 1: c = 0 === this._type ? 1 : -1; a = d.windowStartInitial + c * l; c = d.windowEndInitial + c * l; break; case 2: a = q(d.windowStartInitial + l, this._rangeStart, c - b.FlameChartBase.MIN_WINDOW_LEN); break; case 3: c = q(d.windowEndInitial + l, a + b.FlameChartBase.MIN_WINDOW_LEN, this._rangeEnd); break; default: return; } this._controller.setWindow(a, c); }; r.prototype.onDragEnd = function(b, a, c, e, l, n) { this._dragInfo = null; this.onMouseMove(c, e); }; r.prototype.onClick = function(d, a) { 1 === this._dragInfo.target && this._mouseController.updateCursor(b.MouseCursor.GRAB); }; r.prototype.onHoverStart = function(b, a) { }; r.prototype.onHoverEnd = function() { }; r.TICK_MAX_WIDTH = 75; return r; }(b.FlameChartBase); b.FlameChartHeader = u; })(b.Profiler || (b.Profiler = {})); })(f.Tools || (f.Tools = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(b) { var g = function() { function b(d, a, c, e, l) { this.pageLoaded = d; this.threadsTotal = a; this.threadsLoaded = c; this.threadFilesTotal = e; this.threadFilesLoaded = l; } b.prototype.toString = function() { return "[" + ["pageLoaded", "threadsTotal", "threadsLoaded", "threadFilesTotal", "threadFilesLoaded"].map(function(b, a, c) { return b + ":" + this[b]; }, this).join(", ") + "]"; }; return b; }(); b.TraceLoggerProgressInfo = g; var f = function() { function r(b) { this._baseUrl = b; this._threads = []; this._progressInfo = null; } r.prototype.loadPage = function(b, a, c) { this._threads = []; this._pageLoadCallback = a; this._pageLoadProgressCallback = c; this._progressInfo = new g(!1, 0, 0, 0, 0); this._loadData([b], this._onLoadPage.bind(this)); }; Object.defineProperty(r.prototype, "buffers", {get:function() { for (var b = [], a = 0, c = this._threads.length;a < c;a++) { b.push(this._threads[a].buffer); } return b; }, enumerable:!0, configurable:!0}); r.prototype._onProgress = function() { this._pageLoadProgressCallback && this._pageLoadProgressCallback.call(this, this._progressInfo); }; r.prototype._onLoadPage = function(d) { if (d && 1 == d.length) { var a = this, c = 0; d = d[0]; var e = d.length; this._threads = Array(e); this._progressInfo.pageLoaded = !0; this._progressInfo.threadsTotal = e; for (var l = 0;l < d.length;l++) { var n = d[l], t = [n.dict, n.tree]; n.corrections && t.push(n.corrections); this._progressInfo.threadFilesTotal += t.length; this._loadData(t, function(d) { return function(h) { h && (h = new b.Thread(h), h.buffer.name = "Thread " + d, a._threads[d] = h); c++; a._progressInfo.threadsLoaded++; a._onProgress(); c === e && a._pageLoadCallback.call(a, null, a._threads); }; }(l), function(c) { a._progressInfo.threadFilesLoaded++; a._onProgress(); }); } this._onProgress(); } else { this._pageLoadCallback.call(this, "Error loading page.", null); } }; r.prototype._loadData = function(b, a, c) { var e = 0, l = 0, n = b.length, t = []; t.length = n; for (var p = 0;p < n;p++) { var h = this._baseUrl + b[p], m = /\.tl$/i.test(h), v = new XMLHttpRequest, m = m ? "arraybuffer" : "json"; v.open("GET", h, !0); v.responseType = m; v.onload = function(b, h) { return function(d) { if ("json" === h) { if (d = this.response, "string" === typeof d) { try { d = JSON.parse(d), t[b] = d; } catch (m) { l++; } } else { t[b] = d; } } else { t[b] = this.response; } ++e; c && c(e); e === n && a(t); }; }(p, m); v.send(); } }; r.colors = "#0044ff #8c4b00 #cc5c33 #ff80c4 #ffbfd9 #ff8800 #8c5e00 #adcc33 #b380ff #bfd9ff #ffaa00 #8c0038 #bf8f30 #f780ff #cc99c9 #aaff00 #000073 #452699 #cc8166 #cca799 #000066 #992626 #cc6666 #ccc299 #ff6600 #526600 #992663 #cc6681 #99ccc2 #ff0066 #520066 #269973 #61994d #739699 #ffcc00 #006629 #269199 #94994d #738299 #ff0000 #590000 #234d8c #8c6246 #7d7399 #ee00ff #00474d #8c2385 #8c7546 #7c8c69 #eeff00 #4d003d #662e1a #62468c #8c6969 #6600ff #4c2900 #1a6657 #8c464f #8c6981 #44ff00 #401100 #1a2466 #663355 #567365 #d90074 #403300 #101d40 #59562d #66614d #cc0000 #002b40 #234010 #4c2626 #4d5e66 #00a3cc #400011 #231040 #4c3626 #464359 #0000bf #331b00 #80e6ff #311a33 #4d3939 #a69b00 #003329 #80ffb2 #331a20 #40303d #00a658 #40ffd9 #ffc480 #ffe1bf #332b26 #8c2500 #9933cc #80fff6 #ffbfbf #303326 #005e8c #33cc47 #b2ff80 #c8bfff #263332 #00708c #cc33ad #ffe680 #f2ffbf #262a33 #388c00 #335ccc #8091ff #bfffd9".split(" "); return r; }(); b.TraceLogger = f; })(b.TraceLogger || (b.TraceLogger = {})); })(b.Profiler || (b.Profiler = {})); })(f.Tools || (f.Tools = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(f) { var u; (function(b) { b[b.START_HI = 0] = "START_HI"; b[b.START_LO = 4] = "START_LO"; b[b.STOP_HI = 8] = "STOP_HI"; b[b.STOP_LO = 12] = "STOP_LO"; b[b.TEXTID = 16] = "TEXTID"; b[b.NEXTID = 20] = "NEXTID"; })(u || (u = {})); u = function() { function f(r) { 2 <= r.length && (this._text = r[0], this._data = new DataView(r[1]), this._buffer = new b.TimelineBuffer, this._walkTree(0)); } Object.defineProperty(f.prototype, "buffer", {get:function() { return this._buffer; }, enumerable:!0, configurable:!0}); f.prototype._walkTree = function(b) { var d = this._data, a = this._buffer; do { var c = b * f.ITEM_SIZE, e = 4294967295 * d.getUint32(c + 0) + d.getUint32(c + 4), l = 4294967295 * d.getUint32(c + 8) + d.getUint32(c + 12), n = d.getUint32(c + 16), c = d.getUint32(c + 20), t = 1 === (n & 1), n = n >>> 1, n = this._text[n]; a.enter(n, null, e / 1E6); t && this._walkTree(b + 1); a.leave(n, null, l / 1E6); b = c; } while (0 !== b); }; f.ITEM_SIZE = 24; return f; }(); f.Thread = u; })(b.TraceLogger || (b.TraceLogger = {})); })(b.Profiler || (b.Profiler = {})); })(f.Tools || (f.Tools = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { var q = f.NumberUtilities.clamp, u = function() { function b() { this.length = 0; this.lines = []; this.format = []; this.time = []; this.repeat = []; this.length = 0; } b.prototype.append = function(b, a) { var c = this.lines; 0 < c.length && c[c.length - 1] === b ? this.repeat[c.length - 1]++ : (this.lines.push(b), this.repeat.push(1), this.format.push(a ? {backgroundFillStyle:a} : void 0), this.time.push(performance.now()), this.length++); }; b.prototype.get = function(b) { return this.lines[b]; }; b.prototype.getFormat = function(b) { return this.format[b]; }; b.prototype.getTime = function(b) { return this.time[b]; }; b.prototype.getRepeat = function(b) { return this.repeat[b]; }; return b; }(); b.Buffer = u; var k = function() { function b(d) { this.lineColor = "#2A2A2A"; this.alternateLineColor = "#262626"; this.textColor = "#FFFFFF"; this.selectionColor = "#96C9F3"; this.selectionTextColor = "#000000"; this.ratio = 1; this.showLineNumbers = !0; this.showLineCounter = this.showLineTime = !1; this.canvas = d; this.canvas.focus(); this.context = d.getContext("2d", {original:!0}); this.context.fillStyle = "#FFFFFF"; this.fontSize = 10; this.columnIndex = this.pageIndex = this.lineIndex = 0; this.selection = null; this.lineHeight = 15; this.hasFocus = !1; window.addEventListener("resize", this._resizeHandler.bind(this), !1); this._resizeHandler(); this.textMarginBottom = this.textMarginLeft = 4; this.refreshFrequency = 0; this.buffer = new u; d.addEventListener("keydown", function(b) { var d = 0; switch(b.keyCode) { case f: this.printHelp(); break; case g: this.showLineNumbers = !this.showLineNumbers; break; case r: this.showLineTime = !this.showLineTime; break; case n: d = -1; break; case t: d = 1; break; case a: d = -this.pageLineCount; break; case c: d = this.pageLineCount; break; case e: d = -this.lineIndex; break; case l: d = this.buffer.length - this.lineIndex; break; case p: this.columnIndex -= b.metaKey ? 10 : 1; 0 > this.columnIndex && (this.columnIndex = 0); b.preventDefault(); break; case h: this.columnIndex += b.metaKey ? 10 : 1; b.preventDefault(); break; case m: if (b.metaKey || b.ctrlKey) { this.selection = {start:0, end:this.buffer.length - 1}, b.preventDefault(); } break; case v: ; case k: if (b.metaKey || b.ctrlKey) { var q = ""; if (this.selection) { for (var u = this.selection.start;u <= this.selection.end;u++) { q += this.buffer.get(u) + "\n"; } } else { q = this.buffer.get(this.lineIndex); } b.keyCode === v ? alert(q) : window.open(URL.createObjectURL(new Blob([q], {type:"text/plain"})), "_blank"); } ; } b.metaKey && (d *= this.pageLineCount); d && (this.scroll(d), b.preventDefault()); d && b.shiftKey ? this.selection ? this.lineIndex > this.selection.start ? this.selection.end = this.lineIndex : this.selection.start = this.lineIndex : 0 < d ? this.selection = {start:this.lineIndex - d, end:this.lineIndex} : 0 > d && (this.selection = {start:this.lineIndex, end:this.lineIndex - d}) : d && (this.selection = null); this.paint(); }.bind(this), !1); d.addEventListener("focus", function(a) { this.hasFocus = !0; }.bind(this), !1); d.addEventListener("blur", function(a) { this.hasFocus = !1; }.bind(this), !1); var a = 33, c = 34, e = 36, l = 35, n = 38, t = 40, p = 37, h = 39, m = 65, v = 67, g = 78, r = 84, f = 72, k = 83; } b.prototype.printHelp = function() { var b = this; "h - help;n - turn on/off line numbers;t - turn on/off line time;arrow_keys - navigation;cmd/ctrl+a - select all;cmd/ctrl+c - copy/alert selection;cmd/ctrl+s - open selection in new tab;shift+arrow_keys - selection".split(";").forEach(function(a) { return b.buffer.append(a, "#002000"); }); }; b.prototype.resize = function() { this._resizeHandler(); }; b.prototype._resizeHandler = function() { var b = this.canvas.parentElement, a = b.clientWidth, b = b.clientHeight - 1, c = window.devicePixelRatio || 1; 1 !== c ? (this.ratio = c / 1, this.canvas.width = a * this.ratio, this.canvas.height = b * this.ratio, this.canvas.style.width = a + "px", this.canvas.style.height = b + "px") : (this.ratio = 1, this.canvas.width = a, this.canvas.height = b); this.pageLineCount = Math.floor(this.canvas.height / this.lineHeight); }; b.prototype.gotoLine = function(b) { this.lineIndex = q(b, 0, this.buffer.length - 1); }; b.prototype.scrollIntoView = function() { this.lineIndex < this.pageIndex ? this.pageIndex = this.lineIndex : this.lineIndex >= this.pageIndex + this.pageLineCount && (this.pageIndex = this.lineIndex - this.pageLineCount + 1); }; b.prototype.scroll = function(b) { this.gotoLine(this.lineIndex + b); this.scrollIntoView(); }; b.prototype.paint = function() { var b = this.pageLineCount; this.pageIndex + b > this.buffer.length && (b = this.buffer.length - this.pageIndex); var a = this.textMarginLeft, c = a + (this.showLineNumbers ? 5 * (String(this.buffer.length).length + 2) : 0), e = c + (this.showLineTime ? 40 : 10), l = e + 25; this.context.font = this.fontSize + 'px Consolas, "Liberation Mono", Courier, monospace'; this.context.setTransform(this.ratio, 0, 0, this.ratio, 0, 0); for (var n = this.canvas.width, t = this.lineHeight, p = 0;p < b;p++) { var h = p * this.lineHeight, m = this.pageIndex + p, v = this.buffer.get(m), g = this.buffer.getFormat(m), r = this.buffer.getRepeat(m), f = 1 < m ? this.buffer.getTime(m) - this.buffer.getTime(0) : 0; this.context.fillStyle = m % 2 ? this.lineColor : this.alternateLineColor; g && g.backgroundFillStyle && (this.context.fillStyle = g.backgroundFillStyle); this.context.fillRect(0, h, n, t); this.context.fillStyle = this.selectionTextColor; this.context.fillStyle = this.textColor; this.selection && m >= this.selection.start && m <= this.selection.end && (this.context.fillStyle = this.selectionColor, this.context.fillRect(0, h, n, t), this.context.fillStyle = this.selectionTextColor); this.hasFocus && m === this.lineIndex && (this.context.fillStyle = this.selectionColor, this.context.fillRect(0, h, n, t), this.context.fillStyle = this.selectionTextColor); 0 < this.columnIndex && (v = v.substring(this.columnIndex)); h = (p + 1) * this.lineHeight - this.textMarginBottom; this.showLineNumbers && this.context.fillText(String(m), a, h); this.showLineTime && this.context.fillText(f.toFixed(1).padLeft(" ", 6), c, h); 1 < r && this.context.fillText(String(r).padLeft(" ", 3), e, h); this.context.fillText(v, l, h); } }; b.prototype.refreshEvery = function(b) { function a() { c.paint(); c.refreshFrequency && setTimeout(a, c.refreshFrequency); } var c = this; this.refreshFrequency = b; c.refreshFrequency && setTimeout(a, c.refreshFrequency); }; b.prototype.isScrolledToBottom = function() { return this.lineIndex === this.buffer.length - 1; }; return b; }(); b.Terminal = k; })(b.Terminal || (b.Terminal = {})); })(f.Tools || (f.Tools = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { var f = function() { function b(g) { this._lastWeightedTime = this._lastTime = this._index = 0; this._gradient = "#FF0000 #FF1100 #FF2300 #FF3400 #FF4600 #FF5700 #FF6900 #FF7B00 #FF8C00 #FF9E00 #FFAF00 #FFC100 #FFD300 #FFE400 #FFF600 #F7FF00 #E5FF00 #D4FF00 #C2FF00 #B0FF00 #9FFF00 #8DFF00 #7CFF00 #6AFF00 #58FF00 #47FF00 #35FF00 #24FF00 #12FF00 #00FF00".split(" "); this._container = g; this._canvas = document.createElement("canvas"); this._container.appendChild(this._canvas); this._context = this._canvas.getContext("2d"); this._listenForContainerSizeChanges(); } b.prototype._listenForContainerSizeChanges = function() { var b = this._containerWidth, g = this._containerHeight; this._onContainerSizeChanged(); var d = this; setInterval(function() { if (b !== d._containerWidth || g !== d._containerHeight) { d._onContainerSizeChanged(), b = d._containerWidth, g = d._containerHeight; } }, 10); }; b.prototype._onContainerSizeChanged = function() { var b = this._containerWidth, g = this._containerHeight, d = window.devicePixelRatio || 1; 1 !== d ? (this._ratio = d / 1, this._canvas.width = b * this._ratio, this._canvas.height = g * this._ratio, this._canvas.style.width = b + "px", this._canvas.style.height = g + "px") : (this._ratio = 1, this._canvas.width = b, this._canvas.height = g); }; Object.defineProperty(b.prototype, "_containerWidth", {get:function() { return this._container.clientWidth; }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "_containerHeight", {get:function() { return this._container.clientHeight; }, enumerable:!0, configurable:!0}); b.prototype.tickAndRender = function(b, g) { void 0 === b && (b = !1); void 0 === g && (g = 0); if (0 === this._lastTime) { this._lastTime = performance.now(); } else { var d = 1 * (performance.now() - this._lastTime) + 0 * this._lastWeightedTime, a = this._context, c = 2 * this._ratio, e = 30 * this._ratio, l = performance; l.memory && (e += 30 * this._ratio); var n = (this._canvas.width - e) / (c + 1) | 0, t = this._index++; this._index > n && (this._index = 0); n = this._canvas.height; a.globalAlpha = 1; a.fillStyle = "black"; a.fillRect(e + t * (c + 1), 0, 4 * c, this._canvas.height); var p = Math.min(1E3 / 60 / d, 1); a.fillStyle = "#00FF00"; a.globalAlpha = b ? .5 : 1; p = n / 2 * p | 0; a.fillRect(e + t * (c + 1), n - p, c, p); g && (p = Math.min(1E3 / 240 / g, 1), a.fillStyle = "#FF6347", p = n / 2 * p | 0, a.fillRect(e + t * (c + 1), n / 2 - p, c, p)); 0 === t % 16 && (a.globalAlpha = 1, a.fillStyle = "black", a.fillRect(0, 0, e, this._canvas.height), a.fillStyle = "white", a.font = 8 * this._ratio + "px Arial", a.textBaseline = "middle", c = (1E3 / d).toFixed(0), g && (c += " " + g.toFixed(0)), l.memory && (c += " " + (l.memory.usedJSHeapSize / 1024 / 1024).toFixed(2)), a.fillText(c, 2 * this._ratio, this._containerHeight / 2 * this._ratio)); this._lastTime = performance.now(); this._lastWeightedTime = d; } }; return b; }(); b.FPS = f; })(b.Mini || (b.Mini = {})); })(f.Tools || (f.Tools = {})); })(Shumway || (Shumway = {})); console.timeEnd("Load Shared Dependencies"); console.time("Load AVM2 Dependencies"); "use strict"; (function(f) { (function(b) { b.timelineBuffer = new f.Tools.Profiler.TimelineBuffer("AVM2"); b.counter = new f.Metrics.Counter(!1); b.countTimeline = function(g, f) { void 0 === f && (f = 1); b.timelineBuffer && b.timelineBuffer.count(g, f); }; b.enterTimeline = function(b, f) { }; b.leaveTimeline = function(b) { }; })(f.AVM2 || (f.AVM2 = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { b.timelineBuffer = new f.Tools.Profiler.TimelineBuffer("AVX"); b.counter = new f.Metrics.Counter(!1); b.countTimeline = function(g, f) { void 0 === f && (f = 1); b.timelineBuffer && b.timelineBuffer.count(g, f); }; b.enterTimeline = function(b, f) { }; b.leaveTimeline = function(b) { }; })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { function g(b) { for (var g = [], d = 1;d < arguments.length;d++) { g[d - 1] = arguments[d]; } var a = b.message; g.forEach(function(c, b) { a = a.replace("%" + (b + 1), c); }); return "Error #" + b.code + ": " + a; } b.Errors = {NotImplementedError:{code:1001, message:"The method %1 is not implemented."}, InvalidPrecisionError:{code:1002, message:"Number.toPrecision has a range of 1 to 21. Number.toFixed and Number.toExponential have a range of 0 to 20. Specified value is not within expected range."}, InvalidRadixError:{code:1003, message:"The radix argument must be between 2 and 36; got %1."}, InvokeOnIncompatibleObjectError:{code:1004, message:"Method %1 was invoked on an incompatible object."}, ArrayIndexNotIntegerError:{code:1005, message:"Array index is not a positive integer (%1)."}, CallOfNonFunctionError:{code:1006, message:"%1 is not a function."}, ConstructOfNonFunctionError:{code:1007, message:"Instantiation attempted on a non-constructor."}, ConvertNullToObjectError:{code:1009, message:"Cannot access a property or method of a null object reference."}, ConvertUndefinedToObjectError:{code:1010, message:"A term is undefined and has no properties."}, ClassNotFoundError:{code:1014, message:"Class %1 could not be found."}, DescendentsError:{code:1016, message:"Descendants operator (..) not supported on type %1."}, StackOverflowError:{code:1023, message:"Stack overflow occurred."}, CpoolIndexRangeError:{code:1032, message:"Cpool index %1 is out of range %2."}, CpoolEntryWrongTypeError:{code:1033, message:"Cpool entry %1 is wrong type."}, CheckTypeFailedError:{code:1034, message:"Type Coercion failed: cannot convert %1 to %2."}, CannotAssignToMethodError:{code:1037, message:"Cannot assign to a method %1 on %2."}, CantUseInstanceofOnNonObjectError:{code:1040, message:"The right-hand side of instanceof must be a class or function."}, IsTypeMustBeClassError:{code:1041, message:"The right-hand side of operator must be a class."}, InvalidMagicError:{code:1042, message:"Not an ABC file. major_version=%1 minor_version=%2."}, UnsupportedTraitsKindError:{code:1045, message:"Unsupported traits kind=%1."}, PrototypeTypeError:{code:1049, message:"Prototype objects must be vanilla Objects."}, ConvertToPrimitiveError:{code:1050, message:"Cannot convert %1 to primitive."}, InvalidURIError:{code:1052, message:"Invalid URI passed to %1 function."}, WriteSealedError:{code:1056, message:"Cannot create property %1 on %2."}, WrongArgumentCountError:{code:1063, message:"Argument count mismatch on %1. Expected %2, got %3."}, UndefinedVarError:{code:1065, message:"Variable %1 is not defined."}, ReadSealedError:{code:1069, message:"Property %1 not found on %2 and there is no default value."}, ConstWriteError:{code:1074, message:"Illegal write to read-only property %1 on %2."}, XMLPrefixNotBound:{code:1083, message:'The prefix "%1" for element "%2" is not bound.'}, XMLUnterminatedElementTag:{code:1085, message:'The element type "%1" must be terminated by the matching end-tag "".'}, XMLOnlyWorksWithOneItemLists:{code:1086, message:"The %1 method only works on lists containing one item."}, XMLAssignmentToIndexedXMLNotAllowed:{code:1087, message:"Assignment to indexed XML is not allowed."}, XMLMarkupMustBeWellFormed:{code:1088, message:"The markup in the document following the root element must be well-formed."}, XMLAssigmentOneItemLists:{code:1089, message:"Assignment to lists with more than one item is not supported."}, XMLMalformedElement:{code:1090, message:"XML parser failure: element is malformed."}, XMLUnterminatedCData:{code:1091, message:"XML parser failure: Unterminated CDATA section."}, XMLUnterminatedXMLDecl:{code:1092, message:"XML parser failure: Unterminated XML declaration."}, XMLUnterminatedDocTypeDecl:{code:1093, message:"XML parser failure: Unterminated DOCTYPE declaration."}, XMLUnterminatedComment:{code:1094, message:"XML parser failure: Unterminated comment."}, XMLUnterminatedElement:{code:1096, message:"XML parser failure: Unterminated element."}, XMLNamespaceWithPrefixAndNoURI:{code:1098, message:"Illegal prefix %1 for no namespace."}, RegExpFlagsArgumentError:{code:1100, message:"Cannot supply flags when constructing one RegExp from another."}, InvalidBaseClassError:{code:1108, message:"The OP_newclass opcode was used with the incorrect base class."}, XMLInvalidName:{code:1117, message:"Invalid XML name: %1."}, XMLIllegalCyclicalLoop:{code:1118, message:"Illegal cyclical loop between nodes."}, FilterError:{code:1123, message:"Filter operator not supported on type %1."}, OutOfRangeError:{code:1125, message:"The index %1 is out of range %2."}, VectorFixedError:{code:1126, message:"Cannot change the length of a fixed Vector."}, TypeAppOfNonParamType:{code:1127, message:"Type application attempted on a non-parameterized type."}, WrongTypeArgCountError:{code:1128, message:"Incorrect number of type parameters for %1. Expected %2, got %3."}, JSONCyclicStructure:{code:1129, message:"Cyclic structure cannot be converted to JSON string."}, JSONInvalidReplacer:{code:1131, message:"Replacer argument to JSON stringifier must be an array or a two parameter function."}, JSONInvalidParseInput:{code:1132, message:"Invalid JSON parse input."}, InvalidRangeError:{code:1506, message:"The specified range is invalid."}, NullArgumentError:{code:1507, message:"Argument %1 cannot be null."}, InvalidArgumentError:{code:1508, message:"The value specified for argument %1 is invalid."}, ArrayFilterNonNullObjectError:{code:1510, message:"When the callback argument is a method of a class, the optional this argument must be null."}, InvalidParamError:{code:2004, message:"One of the parameters is invalid."}, ParamRangeError:{code:2006, message:"The supplied index is out of bounds."}, NullPointerError:{code:2007, message:"Parameter %1 must be non-null."}, InvalidEnumError:{code:2008, message:"Parameter %1 must be one of the accepted values."}, CantInstantiateError:{code:2012, message:"%1 class cannot be instantiated."}, InvalidBitmapData:{code:2015, message:"Invalid BitmapData."}, EOFError:{code:2030, message:"End of file was encountered.", fqn:"flash.errors.EOFError"}, CompressedDataError:{code:2058, message:"There was an error decompressing the data.", fqn:"flash.errors.IOError"}, ProxyGetPropertyError:{code:2088, message:"The Proxy class does not implement getProperty. It must be overridden by a subclass."}, ProxySetPropertyError:{code:2089, message:"The Proxy class does not implement setProperty. It must be overridden by a subclass."}, ProxyCallPropertyError:{code:2090, message:"The Proxy class does not implement callProperty. It must be overridden by a subclass."}, ProxyHasPropertyError:{code:2091, message:"The Proxy class does not implement hasProperty. It must be overridden by a subclass."}, ProxyDeletePropertyError:{code:2092, message:"The Proxy class does not implement deleteProperty. It must be overridden by a subclass."}, ProxyGetDescendantsError:{code:2093, message:"The Proxy class does not implement getDescendants. It must be overridden by a subclass."}, ProxyNextNameIndexError:{code:2105, message:"The Proxy class does not implement nextNameIndex. It must be overridden by a subclass."}, ProxyNextNameError:{code:2106, message:"The Proxy class does not implement nextName. It must be overridden by a subclass."}, ProxyNextValueError:{code:2107, message:"The Proxy class does not implement nextValue. It must be overridden by a subclass."}, TooFewArgumentsError:{code:2001, message:"Too few arguments were specified; got %1, %2 expected."}, ParamTypeError:{code:2005, message:"Parameter %1 is of the incorrect type. Should be type %2."}, SocketConnectError:{code:2011, message:"Socket connection failed to %1:%2."}, CantAddSelfError:{code:2024, message:"An object cannot be added as a child of itself."}, NotAChildError:{code:2025, message:"The supplied DisplayObject must be a child of the caller."}, DelayRangeError:{code:2066, message:"The Timer delay specified is out of range."}, ExternalInterfaceNotAvailableError:{code:2067, message:"The ExternalInterface is not available in this container. ExternalInterface requires Internet Explorer ActiveX, Firefox, Mozilla 1.7.5 and greater, or other browsers that support NPRuntime."}, InvalidLoaderMethodError:{code:2069, message:"The Loader class does not implement this method."}, InvalidStageMethodError:{code:2071, message:"The Stage class does not implement this property or method."}, LoadingObjectNotSWFError:{code:2098, message:"The loading object is not a .swf file, you cannot request SWF properties from it."}, LoadingObjectNotInitializedError:{code:2099, message:"The loading object is not sufficiently loaded to provide this information."}, DecodeParamError:{code:2101, message:"The String passed to URLVariables.decode() must be a URL-encoded query string containing name/value pairs."}, SceneNotFoundError:{code:2108, message:"Scene %1 was not found."}, FrameLabelNotFoundError:{code:2109, message:"Frame label %1 not found in scene %2."}, InvalidLoaderInfoMethodError:{code:2118, message:"The LoaderInfo class does not implement this method."}, CantAddParentError:{code:2150, message:"An object cannot be added as a child to one of it's children (or children's children, etc.)."}, ObjectWithStringsParamError:{code:2196, message:"Parameter %1 must be an Object with only String values."}, InternalErrorIV:{code:3343, message:"Internal Error."}}; for (var q in b.Errors) { var u = b.Errors[q]; u.typeName = q; b.Errors[u.code] = u; } b.getErrorMessage = function(g) { var r = "Error #" + g; if (!f.AVM2.Runtime.debuggerMode.value) { return r; } g = b.Errors[g]; return r + ": " + (g && g.message || "(unknown)"); }; b.getErrorInfo = function(g) { return b.Errors[g]; }; b.formatErrorMessage = g; b.translateErrorMessage = function(k) { if (k.type) { switch(k.type) { case "undefined_method": return g(b.Errors.CallOfNonFunctionError, "value"); default: throw f.Debug.notImplemented(k.type);; } } else { return 0 <= k.message.indexOf("is not a function") ? g(b.Errors.CallOfNonFunctionError, "value") : k.message; } }; })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); Errors = Shumway.AVMX.Errors; var Shumway$$inline_752 = Shumway || (Shumway = {}), AVM2$$inline_753 = Shumway$$inline_752.AVM2 || (Shumway$$inline_752.AVM2 = {}), Option$$inline_754 = Shumway$$inline_752.Options.Option, OptionSet$$inline_755 = Shumway$$inline_752.Options.OptionSet, avm2Options$$inline_756 = Shumway$$inline_752.Settings.shumwayOptions.register(new OptionSet$$inline_755("AVM2")), Runtime$$inline_757 = AVM2$$inline_753.Runtime || (AVM2$$inline_753.Runtime = {}), options$$inline_758 = avm2Options$$inline_756.register(new OptionSet$$inline_755("Runtime")); Runtime$$inline_757.traceRuntime = options$$inline_758.register(new Option$$inline_754("tr", "traceRuntime", "boolean", !1, "trace runtime")); Runtime$$inline_757.traceExecution = options$$inline_758.register(new Option$$inline_754("tx", "traceExecution", "boolean", !1, "trace execution")); Runtime$$inline_757.traceInterpreter = options$$inline_758.register(new Option$$inline_754("ti", "traceInterpreter", "boolean", !1, "trace interpreter")); Runtime$$inline_757.debuggerMode = options$$inline_758.register(new Option$$inline_754("db", "debuggerMode", "boolean", !0, "enable debugger mode")); var ExecutionMode$$inline_759 = Runtime$$inline_757.ExecutionMode || (Runtime$$inline_757.ExecutionMode = {}); ExecutionMode$$inline_759[ExecutionMode$$inline_759.INTERPRET = 1] = "INTERPRET"; ExecutionMode$$inline_759[ExecutionMode$$inline_759.COMPILE = 2] = "COMPILE"; var ExecutionMode$$inline_760 = Runtime$$inline_757.ExecutionMode; (function(f) { (function(b) { (function(b) { var q = null; "undefined" !== typeof TextDecoder && (q = new TextDecoder); var u = function() { function b(g) { this._bytes = g; this._view = new DataView(g.buffer, g.byteOffset); this._position = 0; } b._getResultBuffer = function(g) { if (!b._resultBuffer || b._resultBuffer.length < g) { b._resultBuffer = new Int32Array(2 * g); } return b._resultBuffer; }; Object.defineProperty(b.prototype, "position", {get:function() { return this._position; }, enumerable:!0, configurable:!0}); b.prototype.remaining = function() { return this._bytes.length - this._position; }; b.prototype.seek = function(b) { this._position = b; }; b.prototype.advance = function(b) { this._position += b; }; b.prototype.readU8 = function() { return this._bytes[this._position++]; }; b.prototype.readU8s = function(b) { var d = new Uint8Array(b); d.set(this._bytes.subarray(this._position, this._position + b), 0); this._position += b; return d; }; b.prototype.viewU8s = function(b) { var d = this._bytes.subarray(this._position, this._position + b); this._position += b; return d; }; b.prototype.readS8 = function() { return this._bytes[this._position++] << 24 >> 24; }; b.prototype.readU32 = function() { return this.readS32() >>> 0; }; b.prototype.readU30 = function() { return this.readU32(); }; b.prototype.readU30Unsafe = function() { return this.readU32(); }; b.prototype.readS16 = function() { return this.readU30Unsafe() << 16 >> 16; }; b.prototype.readS32 = function() { var b = this.readU8(); b & 128 && (b = b & 127 | this.readU8() << 7, b & 16384 && (b = b & 16383 | this.readU8() << 14, b & 2097152 && (b = b & 2097151 | this.readU8() << 21, b & 268435456 && (b = b & 268435455 | this.readU8() << 28, b &= 4294967295)))); return b; }; b.prototype.readWord = function() { var b = this._view.getUint32(this._position, !0); this._position += 4; return b; }; b.prototype.readS24 = function() { return (this.readU8() | this.readU8() << 8 | this.readU8() << 16) << 8 >> 8; }; b.prototype.readDouble = function() { var b = this._view.getFloat64(this._position, !0); this._position += 8; return b; }; b.prototype.readUTFString = function(g) { if (q) { var d = this._position; this._position += g; return q.decode(this._bytes.subarray(d, d + g)); } var d = this._position, a = d + g, c = this._bytes, e = 0; for (g = b._getResultBuffer(2 * g);d < a;) { var l = c[d++]; if (127 >= l) { g[e++] = l; } else { if (192 <= l) { var n = 0; 224 > l ? n = (l & 31) << 6 | c[d++] & 63 : 240 > l ? n = (l & 15) << 12 | (c[d++] & 63) << 6 | c[d++] & 63 : (n = ((l & 7) << 18 | (c[d++] & 63) << 12 | (c[d++] & 63) << 6 | c[d++] & 63) - 65536, g[e++] = ((n & 1047552) >>> 10) + 55296, n = (n & 1023) + 56320); g[e++] = n; } } } this._position = d; return f.StringUtilities.fromCharCodeArray(g.subarray(0, e)); }; b._resultBuffer = new Int32Array(256); return b; }(); b.AbcStream = u; })(b.ABC || (b.ABC = {})); })(f.AVM2 || (f.AVM2 = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { function g(a, c) { var e; void 0 === e && (e = 0); b.BytecodeFlags[a] = e; b.BytecodeFormat[a] = c; } function q() { g(1, ""); g(2, ""); g(3, ""); g(4, "e"); g(5, "e"); g(6, "e"); g(7, ""); g(8, "e"); g(9, ""); g(10, ""); g(11, ""); g(12, "d"); g(13, "d"); g(14, "d"); g(15, "d"); g(16, "d"); g(17, "d"); g(18, "d"); g(19, "d"); g(20, "d"); g(21, "d"); g(22, "d"); g(23, "d"); g(24, "d"); g(25, "d"); g(26, "d"); g(27, ""); g(28, ""); g(29, ""); g(30, ""); g(31, ""); g(32, ""); g(33, ""); g(35, ""); g(36, "b"); g(37, "c"); g(38, ""); g(39, ""); g(40, ""); g(41, ""); g(42, ""); g(43, ""); g(44, "e"); g(45, "e"); g(46, "e"); g(47, "e"); g(48, ""); g(49, "e"); g(50, "ee"); g(53, ""); g(54, ""); g(55, ""); g(56, ""); g(57, ""); g(58, ""); g(59, ""); g(60, ""); g(61, ""); g(62, ""); g(64, "e"); g(65, "e"); g(66, "e"); g(67, "ee"); g(68, "ee"); g(69, "ee"); g(70, "ee"); g(71, ""); g(72, ""); g(73, "e"); g(74, "ee"); g(75, ""); g(76, "ee"); g(77, ""); g(78, "ee"); g(79, "ee"); g(80, ""); g(81, ""); g(82, ""); g(83, "e"); g(84, ""); g(85, "e"); g(86, "e"); g(87, ""); g(88, "e"); g(89, "e"); g(90, "e"); g(93, "e"); g(94, "e"); g(95, ""); g(96, "e"); g(97, "e"); g(98, "e"); g(99, "e"); g(100, ""); g(101, "e"); g(102, "e"); g(103, ""); g(104, "e"); g(106, "e"); g(108, "e"); g(109, "e"); g(110, "e"); g(111, "e"); g(112, ""); g(113, ""); g(114, ""); g(115, ""); g(116, ""); g(117, ""); g(118, ""); g(119, ""); g(120, ""); g(121, ""); g(122, ""); g(123, ""); g(128, "e"); g(129, ""); g(130, ""); g(131, ""); g(132, ""); g(133, ""); g(134, "e"); g(135, ""); g(136, ""); g(137, ""); g(144, ""); g(145, ""); g(146, "e"); g(147, ""); g(148, "e"); g(149, ""); g(150, ""); g(151, ""); g(160, ""); g(161, ""); g(162, ""); g(163, ""); g(164, ""); g(165, ""); g(166, ""); g(167, ""); g(168, ""); g(169, ""); g(170, ""); g(171, ""); g(172, ""); g(173, ""); g(174, ""); g(175, ""); g(176, ""); g(177, ""); g(178, "e"); g(179, ""); g(180, ""); g(192, ""); g(193, ""); g(194, "e"); g(195, "e"); g(196, ""); g(197, ""); g(198, ""); g(199, ""); g(208, ""); g(209, ""); g(210, ""); g(211, ""); g(212, ""); g(213, ""); g(214, ""); g(215, ""); g(237, ""); g(239, "aeae"); g(240, "e"); g(241, "e"); g(242, "e"); g(243, ""); } var u = f.Debug.assert; new f.IndentingWriter; (function(a) { a[a.BKPT = 1] = "BKPT"; a[a.NOP = 2] = "NOP"; a[a.THROW = 3] = "THROW"; a[a.GETSUPER = 4] = "GETSUPER"; a[a.SETSUPER = 5] = "SETSUPER"; a[a.DXNS = 6] = "DXNS"; a[a.DXNSLATE = 7] = "DXNSLATE"; a[a.KILL = 8] = "KILL"; a[a.LABEL = 9] = "LABEL"; a[a.LF32X4 = 10] = "LF32X4"; a[a.SF32X4 = 11] = "SF32X4"; a[a.IFNLT = 12] = "IFNLT"; a[a.IFNLE = 13] = "IFNLE"; a[a.IFNGT = 14] = "IFNGT"; a[a.IFNGE = 15] = "IFNGE"; a[a.JUMP = 16] = "JUMP"; a[a.IFTRUE = 17] = "IFTRUE"; a[a.IFFALSE = 18] = "IFFALSE"; a[a.IFEQ = 19] = "IFEQ"; a[a.IFNE = 20] = "IFNE"; a[a.IFLT = 21] = "IFLT"; a[a.IFLE = 22] = "IFLE"; a[a.IFGT = 23] = "IFGT"; a[a.IFGE = 24] = "IFGE"; a[a.IFSTRICTEQ = 25] = "IFSTRICTEQ"; a[a.IFSTRICTNE = 26] = "IFSTRICTNE"; a[a.LOOKUPSWITCH = 27] = "LOOKUPSWITCH"; a[a.PUSHWITH = 28] = "PUSHWITH"; a[a.POPSCOPE = 29] = "POPSCOPE"; a[a.NEXTNAME = 30] = "NEXTNAME"; a[a.HASNEXT = 31] = "HASNEXT"; a[a.PUSHNULL = 32] = "PUSHNULL"; a[a.PUSHUNDEFINED = 33] = "PUSHUNDEFINED"; a[a.PUSHFLOAT = 34] = "PUSHFLOAT"; a[a.NEXTVALUE = 35] = "NEXTVALUE"; a[a.PUSHBYTE = 36] = "PUSHBYTE"; a[a.PUSHSHORT = 37] = "PUSHSHORT"; a[a.PUSHTRUE = 38] = "PUSHTRUE"; a[a.PUSHFALSE = 39] = "PUSHFALSE"; a[a.PUSHNAN = 40] = "PUSHNAN"; a[a.POP = 41] = "POP"; a[a.DUP = 42] = "DUP"; a[a.SWAP = 43] = "SWAP"; a[a.PUSHSTRING = 44] = "PUSHSTRING"; a[a.PUSHINT = 45] = "PUSHINT"; a[a.PUSHUINT = 46] = "PUSHUINT"; a[a.PUSHDOUBLE = 47] = "PUSHDOUBLE"; a[a.PUSHSCOPE = 48] = "PUSHSCOPE"; a[a.PUSHNAMESPACE = 49] = "PUSHNAMESPACE"; a[a.HASNEXT2 = 50] = "HASNEXT2"; a[a.LI8 = 53] = "LI8"; a[a.LI16 = 54] = "LI16"; a[a.LI32 = 55] = "LI32"; a[a.LF32 = 56] = "LF32"; a[a.LF64 = 57] = "LF64"; a[a.SI8 = 58] = "SI8"; a[a.SI16 = 59] = "SI16"; a[a.SI32 = 60] = "SI32"; a[a.SF32 = 61] = "SF32"; a[a.SF64 = 62] = "SF64"; a[a.NEWFUNCTION = 64] = "NEWFUNCTION"; a[a.CALL = 65] = "CALL"; a[a.CONSTRUCT = 66] = "CONSTRUCT"; a[a.CALLMETHOD = 67] = "CALLMETHOD"; a[a.CALLSTATIC = 68] = "CALLSTATIC"; a[a.CALLSUPER = 69] = "CALLSUPER"; a[a.CALLPROPERTY = 70] = "CALLPROPERTY"; a[a.RETURNVOID = 71] = "RETURNVOID"; a[a.RETURNVALUE = 72] = "RETURNVALUE"; a[a.CONSTRUCTSUPER = 73] = "CONSTRUCTSUPER"; a[a.CONSTRUCTPROP = 74] = "CONSTRUCTPROP"; a[a.CALLSUPERID = 75] = "CALLSUPERID"; a[a.CALLPROPLEX = 76] = "CALLPROPLEX"; a[a.CALLINTERFACE = 77] = "CALLINTERFACE"; a[a.CALLSUPERVOID = 78] = "CALLSUPERVOID"; a[a.CALLPROPVOID = 79] = "CALLPROPVOID"; a[a.SXI1 = 80] = "SXI1"; a[a.SXI8 = 81] = "SXI8"; a[a.SXI16 = 82] = "SXI16"; a[a.APPLYTYPE = 83] = "APPLYTYPE"; a[a.PUSHFLOAT4 = 84] = "PUSHFLOAT4"; a[a.NEWOBJECT = 85] = "NEWOBJECT"; a[a.NEWARRAY = 86] = "NEWARRAY"; a[a.NEWACTIVATION = 87] = "NEWACTIVATION"; a[a.NEWCLASS = 88] = "NEWCLASS"; a[a.GETDESCENDANTS = 89] = "GETDESCENDANTS"; a[a.NEWCATCH = 90] = "NEWCATCH"; a[a.FINDPROPSTRICT = 93] = "FINDPROPSTRICT"; a[a.FINDPROPERTY = 94] = "FINDPROPERTY"; a[a.FINDDEF = 95] = "FINDDEF"; a[a.GETLEX = 96] = "GETLEX"; a[a.SETPROPERTY = 97] = "SETPROPERTY"; a[a.GETLOCAL = 98] = "GETLOCAL"; a[a.SETLOCAL = 99] = "SETLOCAL"; a[a.GETGLOBALSCOPE = 100] = "GETGLOBALSCOPE"; a[a.GETSCOPEOBJECT = 101] = "GETSCOPEOBJECT"; a[a.GETPROPERTY = 102] = "GETPROPERTY"; a[a.GETOUTERSCOPE = 103] = "GETOUTERSCOPE"; a[a.INITPROPERTY = 104] = "INITPROPERTY"; a[a.UNUSED_69 = 105] = "UNUSED_69"; a[a.DELETEPROPERTY = 106] = "DELETEPROPERTY"; a[a.UNUSED_6B = 107] = "UNUSED_6B"; a[a.GETSLOT = 108] = "GETSLOT"; a[a.SETSLOT = 109] = "SETSLOT"; a[a.GETGLOBALSLOT = 110] = "GETGLOBALSLOT"; a[a.SETGLOBALSLOT = 111] = "SETGLOBALSLOT"; a[a.CONVERT_S = 112] = "CONVERT_S"; a[a.ESC_XELEM = 113] = "ESC_XELEM"; a[a.ESC_XATTR = 114] = "ESC_XATTR"; a[a.CONVERT_I = 115] = "CONVERT_I"; a[a.CONVERT_U = 116] = "CONVERT_U"; a[a.CONVERT_D = 117] = "CONVERT_D"; a[a.CONVERT_B = 118] = "CONVERT_B"; a[a.CONVERT_O = 119] = "CONVERT_O"; a[a.CHECKFILTER = 120] = "CHECKFILTER"; a[a.CONVERT_F = 121] = "CONVERT_F"; a[a.UNPLUS = 122] = "UNPLUS"; a[a.CONVERT_F4 = 123] = "CONVERT_F4"; a[a.BC_7C = 124] = "BC_7C"; a[a.BC_7D = 125] = "BC_7D"; a[a.BC_7E = 126] = "BC_7E"; a[a.BC_7F = 127] = "BC_7F"; a[a.COERCE = 128] = "COERCE"; a[a.COERCE_B = 129] = "COERCE_B"; a[a.COERCE_A = 130] = "COERCE_A"; a[a.COERCE_I = 131] = "COERCE_I"; a[a.COERCE_D = 132] = "COERCE_D"; a[a.COERCE_S = 133] = "COERCE_S"; a[a.ASTYPE = 134] = "ASTYPE"; a[a.ASTYPELATE = 135] = "ASTYPELATE"; a[a.COERCE_U = 136] = "COERCE_U"; a[a.COERCE_O = 137] = "COERCE_O"; a[a.NEGATE = 144] = "NEGATE"; a[a.INCREMENT = 145] = "INCREMENT"; a[a.INCLOCAL = 146] = "INCLOCAL"; a[a.DECREMENT = 147] = "DECREMENT"; a[a.DECLOCAL = 148] = "DECLOCAL"; a[a.TYPEOF = 149] = "TYPEOF"; a[a.NOT = 150] = "NOT"; a[a.BITNOT = 151] = "BITNOT"; a[a.UNUSED_98 = 152] = "UNUSED_98"; a[a.UNUSED_99 = 153] = "UNUSED_99"; a[a.UNUSED_9A = 154] = "UNUSED_9A"; a[a.UNUSED_9B = 155] = "UNUSED_9B"; a[a.UNUSED_9C = 156] = "UNUSED_9C"; a[a.UNUSED_9D = 157] = "UNUSED_9D"; a[a.UNUSED_9E = 158] = "UNUSED_9E"; a[a.UNUSED_9F = 159] = "UNUSED_9F"; a[a.ADD = 160] = "ADD"; a[a.SUBTRACT = 161] = "SUBTRACT"; a[a.MULTIPLY = 162] = "MULTIPLY"; a[a.DIVIDE = 163] = "DIVIDE"; a[a.MODULO = 164] = "MODULO"; a[a.LSHIFT = 165] = "LSHIFT"; a[a.RSHIFT = 166] = "RSHIFT"; a[a.URSHIFT = 167] = "URSHIFT"; a[a.BITAND = 168] = "BITAND"; a[a.BITOR = 169] = "BITOR"; a[a.BITXOR = 170] = "BITXOR"; a[a.EQUALS = 171] = "EQUALS"; a[a.STRICTEQUALS = 172] = "STRICTEQUALS"; a[a.LESSTHAN = 173] = "LESSTHAN"; a[a.LESSEQUALS = 174] = "LESSEQUALS"; a[a.GREATERTHAN = 175] = "GREATERTHAN"; a[a.GREATEREQUALS = 176] = "GREATEREQUALS"; a[a.INSTANCEOF = 177] = "INSTANCEOF"; a[a.ISTYPE = 178] = "ISTYPE"; a[a.ISTYPELATE = 179] = "ISTYPELATE"; a[a.IN = 180] = "IN"; a[a.UNUSED_B5 = 181] = "UNUSED_B5"; a[a.UNUSED_B6 = 182] = "UNUSED_B6"; a[a.UNUSED_B7 = 183] = "UNUSED_B7"; a[a.UNUSED_B8 = 184] = "UNUSED_B8"; a[a.UNUSED_B9 = 185] = "UNUSED_B9"; a[a.UNUSED_BA = 186] = "UNUSED_BA"; a[a.UNUSED_BB = 187] = "UNUSED_BB"; a[a.UNUSED_BC = 188] = "UNUSED_BC"; a[a.UNUSED_BD = 189] = "UNUSED_BD"; a[a.UNUSED_BE = 190] = "UNUSED_BE"; a[a.UNUSED_BF = 191] = "UNUSED_BF"; a[a.INCREMENT_I = 192] = "INCREMENT_I"; a[a.DECREMENT_I = 193] = "DECREMENT_I"; a[a.INCLOCAL_I = 194] = "INCLOCAL_I"; a[a.DECLOCAL_I = 195] = "DECLOCAL_I"; a[a.NEGATE_I = 196] = "NEGATE_I"; a[a.ADD_I = 197] = "ADD_I"; a[a.SUBTRACT_I = 198] = "SUBTRACT_I"; a[a.MULTIPLY_I = 199] = "MULTIPLY_I"; a[a.UNUSED_C8 = 200] = "UNUSED_C8"; a[a.UNUSED_C9 = 201] = "UNUSED_C9"; a[a.UNUSED_CA = 202] = "UNUSED_CA"; a[a.UNUSED_CB = 203] = "UNUSED_CB"; a[a.UNUSED_CC = 204] = "UNUSED_CC"; a[a.UNUSED_CD = 205] = "UNUSED_CD"; a[a.UNUSED_CE = 206] = "UNUSED_CE"; a[a.UNUSED_CF = 207] = "UNUSED_CF"; a[a.GETLOCAL0 = 208] = "GETLOCAL0"; a[a.GETLOCAL1 = 209] = "GETLOCAL1"; a[a.GETLOCAL2 = 210] = "GETLOCAL2"; a[a.GETLOCAL3 = 211] = "GETLOCAL3"; a[a.SETLOCAL0 = 212] = "SETLOCAL0"; a[a.SETLOCAL1 = 213] = "SETLOCAL1"; a[a.SETLOCAL2 = 214] = "SETLOCAL2"; a[a.SETLOCAL3 = 215] = "SETLOCAL3"; a[a.UNUSED_D8 = 216] = "UNUSED_D8"; a[a.UNUSED_D9 = 217] = "UNUSED_D9"; a[a.UNUSED_DA = 218] = "UNUSED_DA"; a[a.UNUSED_DB = 219] = "UNUSED_DB"; a[a.UNUSED_DC = 220] = "UNUSED_DC"; a[a.UNUSED_DD = 221] = "UNUSED_DD"; a[a.UNUSED_DE = 222] = "UNUSED_DE"; a[a.UNUSED_DF = 223] = "UNUSED_DF"; a[a.UNUSED_E0 = 224] = "UNUSED_E0"; a[a.UNUSED_E1 = 225] = "UNUSED_E1"; a[a.UNUSED_E2 = 226] = "UNUSED_E2"; a[a.UNUSED_E3 = 227] = "UNUSED_E3"; a[a.UNUSED_E4 = 228] = "UNUSED_E4"; a[a.UNUSED_E5 = 229] = "UNUSED_E5"; a[a.UNUSED_E6 = 230] = "UNUSED_E6"; a[a.UNUSED_E7 = 231] = "UNUSED_E7"; a[a.UNUSED_E8 = 232] = "UNUSED_E8"; a[a.UNUSED_E9 = 233] = "UNUSED_E9"; a[a.UNUSED_EA = 234] = "UNUSED_EA"; a[a.UNUSED_EB = 235] = "UNUSED_EB"; a[a.UNUSED_EC = 236] = "UNUSED_EC"; a[a.UNUSED_ED = 237] = "UNUSED_ED"; a[a.UNUSED_EE = 238] = "UNUSED_EE"; a[a.INVALID = 237] = "INVALID"; a[a.DEBUG = 239] = "DEBUG"; a[a.DEBUGLINE = 240] = "DEBUGLINE"; a[a.DEBUGFILE = 241] = "DEBUGFILE"; a[a.BKPTLINE = 242] = "BKPTLINE"; a[a.TIMESTAMP = 243] = "TIMESTAMP"; a[a.RESTARGC = 244] = "RESTARGC"; a[a.RESTARG = 245] = "RESTARG"; a[a.UNUSED_F6 = 246] = "UNUSED_F6"; a[a.UNUSED_F7 = 247] = "UNUSED_F7"; a[a.UNUSED_F8 = 248] = "UNUSED_F8"; a[a.UNUSED_F9 = 249] = "UNUSED_F9"; a[a.UNUSED_FA = 250] = "UNUSED_FA"; a[a.UNUSED_FB = 251] = "UNUSED_FB"; a[a.UNUSED_FC = 252] = "UNUSED_FC"; a[a.UNUSED_FD = 253] = "UNUSED_FD"; a[a.UNUSED_FE = 254] = "UNUSED_FE"; a[a.END = 255] = "END"; })(b.Bytecode || (b.Bytecode = {})); var k = b.Bytecode, r; (function(a) { a[a.NONE = 0] = "NONE"; a[a.STOP = 1] = "STOP"; a[a.FALL_THROUGH = 2] = "FALL_THROUGH"; a[a.BRANCH = 4] = "BRANCH"; a[a.CAN_THROW = 8] = "CAN_THROW"; a[a.RETURN = 16] = "RETURN"; })(r || (r = {})); b.BytecodeFlags = new Uint32Array(256); b.BytecodeFormat = Array(256); b.defineBytecodes = q; q(); var d = function() { function a() { } a.u8 = function(a, b) { return a[b]; }; a.s32 = function(a, b) { var d = a[b]; d & 128 && (d = d & 127 | a[b + 1] << 7, d & 16384 && (d = d & 16383 | a[b + 2] << 14, d & 2097152 && (d = d & 2097151 | a[b + 3] << 21, d & 268435456 && (d = d & 268435455 | a[b + 4] << 28, d &= 4294967295)))); return d; }; a.u32 = function(c, b) { return a.s32(c, b) >>> 0; }; a.u30 = function(c, b) { return a.u32(c, b); }; a.s32Length = function(a, b) { var d = a[b]; return d & 128 ? (d = d & 127 | a[b + 1] << 7, d & 16384 ? (d = d & 16383 | a[b + 2] << 14, d & 2097152 ? (d = d & 2097151 | a[b + 3] << 21, d & 268435456 ? 5 : 4) : 3) : 2) : 1; }; return a; }(); b.Bytes = d; (function(a) { a[a.u08 = 0] = "u08"; a[a.s08 = 1] = "s08"; a[a.s16 = 2] = "s16"; a[a.s24 = 3] = "s24"; a[a.u30 = 4] = "u30"; a[a.u32 = 5] = "u32"; })(b.Sizes || (b.Sizes = {})); r = function() { function a(a) { this._code = a; this.setBCI(0); } a.prototype.next = function() { this.setBCI(this._nextBCI); }; a.prototype.endBCI = function() { return this._code.length; }; Object.defineProperty(a.prototype, "nextBCI", {get:function() { return this._nextBCI; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "currentBCI", {get:function() { return this._currentBCI; }, enumerable:!0, configurable:!0}); a.prototype.currentBytecode = function() { return this._bytecode; }; a.prototype.nextBC = function() { return d.u8(this._code, this._nextBCI); }; a.prototype.setBCI = function(a) { this._currentBCI = a; if (this._currentBCI < this._code.length) { this._bytecode = d.u8(this._code, a); var e = this._code, l = 1, n = e[a]; if (27 === n) { var l = l + 3, t = d.u30(e, a + l) + 1, l = l + d.s32Length(e, a + l), l = l + 3 * t } else { if (t = b.BytecodeFormat[n], "" !== t) { for (u(t, "OP: " + k[n] + " " + n), n = 0;n < t.length;n++) { switch(t[n].charCodeAt(0) - 97) { case 0: ; case 1: l += 1; continue; case 3: l += 3; continue; case 2: ; case 4: ; case 5: l += d.s32Length(e, a + l); } } } } this._nextBCI = a + l; } else { this._bytecode = 255, this._nextBCI = this._currentBCI; } }; return a; }(); b.BytecodeStream = r; })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); __extends = this.__extends || function(f, b) { function g() { this.constructor = f; } for (var q in b) { b.hasOwnProperty(q) && (f[q] = b[q]); } g.prototype = b.prototype; f.prototype = new g; }; (function(f) { (function(b) { function g(a, c) { if (a.method) { return a.method; } var e = a.getMethodInfo(), h; e.flags & 32 ? (h = e.getNativeMetadata()) || a.holder instanceof B ? (h ? h = b.AS.getNative(h.getValueAt(0)) : (h = a.getName(), h = b.AS.getNative(h.uri + "." + h.name)), h = q(h, c.object.sec)) : h = b.AS.getMethodOrAccessorNative(a) : h = function() { return b.interpret(this === jsGlobal ? c.global.object : this, e, c, arguments, null); }; a.method = h; h.methodInfo = e; h.methodInfo = e; return h; } function q(a, c) { return function() { switch(arguments.length) { case 0: return a(c); case 1: return a(c, arguments[0]); case 2: return a(c, arguments[0], arguments[1]); case 3: return a(c, arguments[0], arguments[1], arguments[2]); default: for (var b = [c], e = 0;e < arguments.length;e++) { b.push(arguments[e]); } return a.apply(this, b); } }; } function u(a, c) { var b = a + c; return E[b] || (E[b] = new I(a, c, "")); } function k(a, c, b) { var e = a + c + b, h = E[e]; h || (h = E[e] = new I(a, c, b)); return h; } var r = f.Debug.assert, d = f.HashUtilities.hashBytesTo32BitsAdler, a = f.AVM2.ABC.AbcStream; new f.IndentingWriter; (function(a) { a[a.Undefined = 0] = "Undefined"; a[a.Utf8 = 1] = "Utf8"; a[a.Float = 2] = "Float"; a[a.Int = 3] = "Int"; a[a.UInt = 4] = "UInt"; a[a.PrivateNs = 5] = "PrivateNs"; a[a.Double = 6] = "Double"; a[a.QName = 7] = "QName"; a[a.Namespace = 8] = "Namespace"; a[a.Multiname = 9] = "Multiname"; a[a.False = 10] = "False"; a[a.True = 11] = "True"; a[a.Null = 12] = "Null"; a[a.QNameA = 13] = "QNameA"; a[a.MultinameA = 14] = "MultinameA"; a[a.RTQName = 15] = "RTQName"; a[a.RTQNameA = 16] = "RTQNameA"; a[a.RTQNameL = 17] = "RTQNameL"; a[a.RTQNameLA = 18] = "RTQNameLA"; a[a.NameL = 19] = "NameL"; a[a.NameLA = 20] = "NameLA"; a[a.NamespaceSet = 21] = "NamespaceSet"; a[a.PackageNamespace = 22] = "PackageNamespace"; a[a.PackageInternalNs = 23] = "PackageInternalNs"; a[a.ProtectedNamespace = 24] = "ProtectedNamespace"; a[a.ExplicitNamespace = 25] = "ExplicitNamespace"; a[a.StaticProtectedNs = 26] = "StaticProtectedNs"; a[a.MultinameL = 27] = "MultinameL"; a[a.MultinameLA = 28] = "MultinameLA"; a[a.TypeName = 29] = "TypeName"; a[a.ClassSealed = 1] = "ClassSealed"; a[a.ClassFinal = 2] = "ClassFinal"; a[a.ClassInterface = 4] = "ClassInterface"; a[a.ClassProtectedNs = 8] = "ClassProtectedNs"; })(b.CONSTANT || (b.CONSTANT = {})); var c = b.CONSTANT; (function(a) { a[a.NeedArguments = 1] = "NeedArguments"; a[a.Activation = 2] = "Activation"; a[a.NeedRest = 4] = "NeedRest"; a[a.HasOptional = 8] = "HasOptional"; a[a.IgnoreRest = 16] = "IgnoreRest"; a[a.Native = 32] = "Native"; a[a.Setsdxns = 64] = "Setsdxns"; a[a.HasParamNames = 128] = "HasParamNames"; a[a.HasBody = 256] = "HasBody"; a[a.InstanceInitializer = 512] = "InstanceInitializer"; a[a.ClassInitializer = 1024] = "ClassInitializer"; a[a.ScriptInitializer = 2048] = "ScriptInitializer"; })(b.METHOD || (b.METHOD = {})); (function(a) { a[a.Slot = 0] = "Slot"; a[a.Method = 1] = "Method"; a[a.Getter = 2] = "Getter"; a[a.Setter = 3] = "Setter"; a[a.Class = 4] = "Class"; a[a.Function = 5] = "Function"; a[a.Const = 6] = "Const"; a[a.GetterSetter = 7] = "GetterSetter"; })(b.TRAIT || (b.TRAIT = {})); var e = b.TRAIT; (function(a) { a[a.Final = 1] = "Final"; a[a.Override = 2] = "Override"; a[a.Metadata = 4] = "Metadata"; })(b.ATTR || (b.ATTR = {})); (function(a) { a[a.Public = 0] = "Public"; a[a.Protected = 1] = "Protected"; a[a.PackageInternal = 2] = "PackageInternal"; a[a.Private = 3] = "Private"; a[a.Explicit = 4] = "Explicit"; a[a.StaticProtected = 5] = "StaticProtected"; })(b.NamespaceType || (b.NamespaceType = {})); var l = b.NamespaceType; (function(a) { a[a.CASEINSENSITIVE = 1] = "CASEINSENSITIVE"; a[a.DESCENDING = 2] = "DESCENDING"; a[a.UNIQUESORT = 4] = "UNIQUESORT"; a[a.RETURNINDEXEDARRAY = 8] = "RETURNINDEXEDARRAY"; a[a.NUMERIC = 16] = "NUMERIC"; })(b.SORT || (b.SORT = {})); var n = function() { function a(c, b, e, h) { this.abc = c; this.name = b; this.keys = e; this.values = h; } a.prototype.getName = function() { "number" === typeof this.name && (this.name = this.abc.getString(this.name)); return this.name; }; a.prototype.getKeyAt = function(a) { return this.abc.getString(this.keys[a]); }; a.prototype.getValueAt = function(a) { return this.abc.getString(this.values[a]); }; a.prototype.getValue = function(a) { for (var c = 0;c < this.keys.length;c++) { if (this.abc.getString(this.keys[c]) === a) { return this.abc.getString(this.values[c]); } } return null; }; return a; }(); b.MetadataInfo = n; var t = function() { function a(c) { this.traits = c; this._resolved = !1; } a.prototype.resolve = function() { if (!this._resolved) { for (var a = 0;a < this.traits.length;a++) { this.traits[a].resolve(); } this._resolved = !0; } }; a.prototype.attachHolder = function(a) { for (var c = 0;c < this.traits.length;c++) { this.traits[c].holder = a; } }; a.prototype.trace = function(a) { void 0 === a && (a = new f.IndentingWriter); this.resolve(); this.traits.forEach(function(c) { return a.writeLn(c.toString()); }); }; a.prototype.indexOf = function(a) { var c = a.name; a = a.namespaces; for (var b = this.traits, e = 0;e < b.length;e++) { var h = b[e].name; if (h.name === c) { for (var h = h.namespaces[0], d = 0;d < a.length;d++) { if (h === a[d]) { return e; } } } } return -1; }; a.prototype.getTrait = function(a) { a = this.indexOf(a); return 0 <= a ? this.traits[a] : null; }; a.prototype.resolveRuntimeTraits = function(a, c, b) { this.resolve(); var e = Object.create(a ? a.protectedNsMappings : null); a = new h(a, c, e); for (c = 0;c < this.traits.length;c++) { var d = this.traits[c], l = d.name, e = new m(l, d.kind, d.abc); 1 === l.namespaces[0].type && (a.protectedNsMappings[l.name] && (e.name = a.protectedNsMappings[l.name].name), a.protectedNsMappings[l.name] = e); l = a.addTrait(e); switch(d.kind) { case 1: d = g(d, b); e.value = d; break; case 2: e.get = g(d, b); l && l.set && (e.set = l.set, e.kind = 7); break; case 3: e.set = g(d, b); l && l.get && (e.get = l.get, e.kind = 7); break; case 0: ; case 6: ; case 4: e.writable = !0, e.slot = d.slot, e.value = d.getDefaultValue(), e.typeName = d.typeName, a.addSlotTrait(e); } } return a; }; return a; }(); b.Traits = t; var p = function() { function a(c, b, e) { this.abc = c; this.kind = b; this.name = e; this.holder = this.metadata = null; } a.prototype.getMetadata = function() { if (!this.metadata) { return null; } if (this.metadata instanceof Uint32Array) { for (var a = Array(this.metadata.length), c = 0;c < this.metadata.length;c++) { a[c] = this.abc.getMetadataInfo(this.metadata[c]); } this.metadata = a; } return this.metadata; }; a.prototype.getName = function() { return this.name; }; a.prototype.resolve = function() { "number" === typeof this.name && (this.name = this.abc.getMultiname(this.name)); }; a.prototype.toString = function() { return e[this.kind] + " " + this.name; }; a.prototype.toFlashlogString = function() { this.resolve(); return this.getName().toFlashlogString(); }; a.prototype.isConst = function() { return 6 === this.kind; }; a.prototype.isSlot = function() { return 0 === this.kind; }; a.prototype.isMethod = function() { return 1 === this.kind; }; a.prototype.isGetter = function() { return 2 === this.kind; }; a.prototype.isSetter = function() { return 3 === this.kind; }; a.prototype.isAccessor = function() { return 2 === this.kind || 3 === this.kind; }; a.prototype.isMethodOrAccessor = function() { return this.isAccessor() || 1 === this.kind; }; return a; }(); b.TraitInfo = p; var h = function() { function a(c, b, e) { this.superTraits = c; this.protectedNs = b; this.protectedNsMappings = e; this.slots = []; this._nextSlotID = 1; b = this._traits = Object.create(null); if (c) { c = c._traits; for (var h in c) { b[h] = Object.create(c[h]); } } } a.prototype.addTrait = function(a) { var c = a.name, b = this._traits[c.name]; b || (b = this._traits[c.name] = Object.create(null)); var c = c.namespaces[0].mangledName, e = b[c]; b[c] = a; return e; }; a.prototype.addSlotTrait = function(a) { var c = a.slot; c ? this._nextSlotID = c + 1 : c = a.slot = this._nextSlotID++; this.slots[c] = a; }; a.prototype.getTrait = function(a, c) { var b = this._traits[c]; if (!b) { return null; } for (var e, h = 0;h < a.length;h++) { var d = a[h]; if (e = b[d.mangledName]) { return e; } if (1 === d.type) { for (var m = this;m;) { if (m.protectedNs === d && (e = m.protectedNsMappings[c])) { return e; } m = m.superTraits; } } } return null; }; a.prototype.getTraitsList = function() { var a = [], c = this._traits, b; for (b in c) { var e = c[b], h; for (h in e) { a.push(e[h]); } } return a; }; a.prototype.getSlotPublicTraitNames = function() { for (var a = this.slots, c = [], b = 1;b < a.length;b++) { var e = a[b]; e.name.namespace.isPublic() && c.push(e.name.name); } return c; }; a.prototype.getSlot = function(a) { return this.slots[a]; }; return a; }(); b.RuntimeTraits = h; var m = function() { function a(c, b, e) { this.name = c; this.kind = b; this.abc = e; this.configurable = !0; this._type = void 0; this.typeName = null; } a.prototype.getType = function() { if (void 0 !== this._type) { return this._type; } if (null === this.typeName) { return this._type = null; } var a = this.abc.applicationDomain.getClass(this.typeName); return this._type = a && a.axCoerce ? a : null; }; return a; }(); b.RuntimeTraitInfo = m; var v = {__proto__:null, $BgNumber:NaN, $Bgint:0, $Bguint:0, $BgBoolean:!1}, w = function(a) { function c(b, e, h, d, m, l, v) { a.call(this, b, e, h); this.slot = d; this.typeName = m; this.defaultValueKind = l; this.defaultValueIndex = v; } __extends(c, a); c.prototype.resolve = function() { a.prototype.resolve.call(this); "number" === typeof this.typeName && (this.typeName = this.abc.getMultiname(this.typeName)); }; c.prototype.getTypeName = function() { this.resolve(); return this.typeName; }; c.prototype.getDefaultValue = function() { if (-1 === this.defaultValueKind) { if (null === this.typeName) { return; } var a = v[this.typeName.getMangledName()]; return void 0 === a ? null : a; } return this.abc.getConstant(this.defaultValueKind, this.defaultValueIndex); }; return c; }(p); b.SlotTraitInfo = w; var H = function(a) { function c(b, e, h, d) { a.call(this, b, e, h); this.methodInfo = d; this.method = null; } __extends(c, a); c.prototype.getMethodInfo = function() { return this.methodInfo; }; c.prototype.resolve = function() { a.prototype.resolve.call(this); "number" === typeof this.methodInfo && (this.methodInfo = this.abc.getMethodInfo(this.methodInfo)); }; return c; }(p); b.MethodTraitInfo = H; var K = function(a) { function c(b, e, h, d, m) { a.call(this, b, e, h, d, 0, 0, -1); this.classInfo = m; } __extends(c, a); return c; }(w); b.ClassTraitInfo = K; var z = function() { function a(c, b, e, h, d) { this.abc = c; this.type = b; this.name = e; this.optionalValueKind = h; this.optionalValueIndex = d; } a.prototype.getName = function() { "number" === typeof this.name && (this.name = this.abc.getString(this.name)); return this.name; }; a.prototype.getType = function() { "number" === typeof this.type && (this.type = this.abc.getMultiname(this.type)); return this.type; }; a.prototype.hasOptionalValue = function() { return 0 <= this.optionalValueKind; }; a.prototype.getOptionalValue = function() { return this.abc.getConstant(this.optionalValueKind, this.optionalValueIndex); }; a.prototype.toString = function() { var a = "", a = this.name ? a + this.getName() : a + "?"; this.type && (a += ": " + this.getType().name); 0 <= this.optionalValueKind && (a += " = " + this.abc.getConstant(this.optionalValueKind, this.optionalValueIndex)); return a; }; return a; }(); b.ParameterInfo = z; p = function() { return function() { }; }(); b.Info = p; var A = function(a) { function c(b, e, h, d, m, l, v, p) { a.call(this); this.abc = b; this.name = e; this.superName = h; this.flags = d; this.protectedNs = m; this.interfaceNameIndices = l; this.initializer = v; this.traits = p; this._interfaces = this.runtimeTraits = this.classInfo = null; } __extends(c, a); c.prototype.getInitializer = function() { "number" === typeof this.initializer && (this.initializer = this.abc.getMethodInfo(this.initializer)); return this.initializer; }; c.prototype.getName = function() { "number" === typeof this.name && (this.name = this.abc.getMultiname(this.name)); return this.name; }; c.prototype.getClassName = function() { var a = this.getName(); return a.namespaces[0].uri ? a.namespaces[0].uri + "." + a.name : a.name; }; c.prototype.getSuperName = function() { "number" === typeof this.superName && (this.superName = this.abc.getMultiname(this.superName)); return this.superName; }; c.prototype.getInterfaces = function(a) { if (this._interfaces) { return this._interfaces; } var c; (a = a.superClass) && (c = a.classInfo.instanceInfo.getInterfaces(a)); var b = this._interfaces = new Set(c); for (c = 0;c < this.interfaceNameIndices.length;c++) { a = this.abc.getMultiname(this.interfaceNameIndices[c]), a = this.abc.applicationDomain.getClass(a), b.add(a), a.classInfo.instanceInfo.getInterfaces(a).forEach(function(a) { return b.add(a); }); } return b; }; c.prototype.toString = function() { return "InstanceInfo " + this.getName().name; }; c.prototype.toFlashlogString = function() { return this.getName().toFlashlogString(); }; c.prototype.trace = function(a) { a.enter("InstanceInfo: " + this.getName()); this.superName && a.writeLn("Super: " + this.getSuperName()); this.traits.trace(a); a.outdent(); }; c.prototype.isInterface = function() { return !!(this.flags & 4); }; c.prototype.isSealed = function() { return !!(this.flags & 1); }; c.prototype.isFinal = function() { return !!(this.flags & 2); }; return c; }(p); b.InstanceInfo = A; var B = function(a) { function c(b, e, h) { a.call(this); this.abc = b; this.initializer = e; this.traits = h; this.global = null; this.state = 0; } __extends(c, a); c.prototype.getInitializer = function() { return this.abc.getMethodInfo(this.initializer); }; c.prototype.trace = function(a) { a.enter("ScriptInfo"); this.traits.trace(a); a.outdent(); }; return c; }(p); b.ScriptInfo = B; var x = function(a) { function c(b, e, h, d) { a.call(this); this.abc = b; this.instanceInfo = e; this.initializer = h; this.traits = d; this.runtimeTraits = this.trait = null; } __extends(c, a); c.prototype.getNativeMetadata = function() { if (!this.trait) { return null; } var a = this.trait.getMetadata(); if (!a) { return null; } for (var c = 0;c < a.length;c++) { if ("native" === a[c].getName()) { return a[c]; } } return null; }; c.prototype.getInitializer = function() { return "number" === typeof this.initializer ? this.initializer = this.abc.getMethodInfo(this.initializer) : this.initializer; }; c.prototype.toString = function() { return "ClassInfo " + this.instanceInfo.getName(); }; c.prototype.trace = function(a) { a.enter("ClassInfo"); this.traits.trace(a); a.outdent(); }; return c; }(p); b.ClassInfo = x; var C = function() { function a(c, b, e, h, d, m) { this.abc = c; this.start = b; this.end = e; this.target = h; this.type = d; this.varName = m; this._traits = this.catchPrototype = null; } a.prototype.getType = function() { "number" === typeof this.type && (this.type = this.abc.getMultiname(this.type)); return this.type; }; a.prototype.getTraits = function() { if (!this._traits) { var a = []; this.varName && a.push(new w(this.abc, 0, this.varName, 1, this.type, 0, 0)); this._traits = new t(a); this._traits.resolve(); } return this._traits; }; return a; }(); b.ExceptionInfo = C; var y = function(a) { function c(b, e, h, d, m, l, v) { a.call(this); this.maxStack = b; this.localCount = e; this.initScopeDepth = h; this.maxScopeDepth = d; this.code = m; this.catchBlocks = l; this.traits = v; this.activationPrototype = null; } __extends(c, a); c.prototype.trace = function(a) { a.writeLn("Code: " + this.code.length); for (var c = new b.BytecodeStream(this.code);255 !== c._bytecode;) { a.writeLn(c.currentBCI + ": " + b.Bytecode[c._bytecode]), c.next(); } }; return c; }(p); b.MethodBodyInfo = y; var D = function() { function a(c, b, e, h, d, m, l) { this.abc = c; this._index = b; this.name = e; this.returnTypeNameIndex = h; this.parameters = d; this.optionalCount = m; this.flags = l; this._body = this.trait = null; this.minArgs = d.length - m; } a.prototype.getNativeMetadata = function() { if (!this.trait) { return null; } var a = this.trait.getMetadata(); if (!a) { return null; } for (var c = 0;c < a.length;c++) { if ("native" === a[c].getName()) { return a[c]; } } return null; }; a.prototype.getBody = function() { return this._body || (this._body = this.abc.getMethodBodyInfo(this._index)); }; a.prototype.getType = function() { if (void 0 !== this._returnType) { return this._returnType; } if (0 === this.returnTypeNameIndex) { this._returnType = null; } else { var a = this.abc.getMultiname(this.returnTypeNameIndex); this._returnType = this.abc.applicationDomain.getClass(a); } return this._returnType; }; a.prototype.getName = function() { return this.name ? this.abc.getString(this.name) : this.trait ? this.trait.getName().name : "anonymous"; }; a.prototype.toString = function() { var a = "anonymous"; this.name && (a = this.abc.getString(this.name)); a += " (" + this.parameters.join(", ") + ")"; this.returnTypeNameIndex && (a += ": " + this.abc.getMultiname(this.returnTypeNameIndex).name); return a; }; a.prototype.toFlashlogString = function() { var a = this.trait, c = 2 === a.kind ? "get " : 3 === a.kind ? "set " : "", b = a.toFlashlogString(), a = a.holder, e; a && a instanceof A && (e = a.toFlashlogString(), c = e + "/" + c); a && a instanceof x && a.trait && (e = a.trait.toFlashlogString(), c = e + "$/" + c); var h; e && 0 < (h = b.indexOf("::")) && 0 === e.indexOf(b.substring(0, h + 2)) && (b = b.substring(h + 2)); return "MTHD " + c + b + " ()"; }; a.prototype.isNative = function() { return !!(this.flags & 32); }; a.prototype.needsRest = function() { return !!(this.flags & 4); }; a.prototype.needsArguments = function() { return !!(this.flags & 1); }; return a; }(); b.MethodInfo = D; var G = function() { function a(c, b, e, h, d, m) { void 0 === m && (m = null); this.abc = c; this.index = b; this.kind = e; this.namespaces = h; this.name = d; this.parameterType = m; this.id = a._nextID++; this._mangledName = null; } a.FromFQNString = function(c, b) { var e = c.lastIndexOf("."), h = -1 === e ? "" : c.substr(0, e), e = -1 === e ? c : c.substr(e + 1), h = u(b, h); return new a(null, 0, 15, [h], e); }; a.prototype._nameToString = function() { return this.isAnyName() ? "*" : this.isRuntimeName() ? "[" + this.name + "]" : this.name; }; a.prototype.isRuntime = function() { switch(this.kind) { case 7: ; case 13: ; case 9: ; case 14: return !1; } return !0; }; a.prototype.isRuntimeName = function() { switch(this.kind) { case 17: ; case 18: ; case 27: ; case 28: return !0; } return !1; }; a.prototype.isRuntimeNamespace = function() { switch(this.kind) { case 15: ; case 16: ; case 17: ; case 18: return !0; } return !1; }; a.prototype.isAnyName = function() { return !this.isRuntimeName() && null === this.name; }; a.prototype.isAnyNamespace = function() { return this.isRuntimeNamespace() || 1 < this.namespaces.length ? !1 : 0 === this.namespaces.length || "" === this.namespaces[0].uri; }; a.prototype.isQName = function() { var a = this.kind; return 29 === a || 7 === a || 13 === a || 15 <= a && 18 >= a; }; Object.defineProperty(a.prototype, "namespace", {get:function() { return this.namespaces[0]; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "uri", {get:function() { return this.namespaces[0].uri; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "prefix", {get:function() { return this.namespaces[0].prefix; }, set:function(a) { var c = this.namespaces[0]; c.prefix !== a && (this.namespaces[0] = k(c.type, c.uri, a)); }, enumerable:!0, configurable:!0}); a.prototype.equalsQName = function(a) { return this.name === a.name && this.namespaces[0].uri === a.namespaces[0].uri; }; a.prototype.matches = function(a) { var c = a.isAnyName(); if (c && !a.isQName()) { return !0; } if (!c && this.name !== a.name) { return !1; } for (var c = this.namespaces[0].uri, b = a.namespaces.length;b--;) { if (a.namespaces[b].uri === c) { return !0; } } return !1; }; a.prototype.isAttribute = function() { switch(this.kind) { case 13: ; case 16: ; case 18: ; case 14: ; case 28: return !0; } return !1; }; a.prototype.getMangledName = function() { return this._mangledName || this._mangleName(); }; a.prototype._mangleName = function() { var a = "$" + this.namespaces[0].mangledName + b.axCoerceString(this.name); this.isRuntime() || (this._mangledName = a); return a; }; a.prototype.getPublicMangledName = function() { return f.isNumeric(this.name) ? this.name : "$Bg" + b.axCoerceString(this.name); }; a.isPublicQualifiedName = function(a) { return 0 === a.indexOf("$Bg"); }; a.getPublicMangledName = function(a) { return f.isNumeric(a) ? a : "$Bg" + a; }; a.prototype.toFQNString = function(a) { var c = this.namespaces[0].uri; c.length && (c += a ? "::" : "."); return c + this.name; }; a.prototype.toString = function() { var a = c[this.kind] + " ", a = a + (this.isAttribute() ? "@" : ""); if (this.isRuntimeNamespace()) { var b = this.namespaces ? this.namespaces.map(function(a) { return String(a); }).join(", ") : null, a = a + ("[" + b + "]::" + this._nameToString()) } else { this.isQName() ? (a += this.namespaces[0] + "::", a += this._nameToString()) : (a += "{" + this.namespaces.map(function(a) { return String(a); }).join(", ") + "}", a += "::" + this._nameToString()); } this.parameterType && (a += "<" + this.parameterType + ">"); return a; }; a.prototype.toFlashlogString = function() { var a = this.uri; return a ? a + "::" + this.name : this.name; }; a.stripPublicMangledName = function(a) { if (0 === a.indexOf("$Bg")) { return a.substring(3); } }; a.FromSimpleName = function(c) { var b = c.lastIndexOf("."); 0 >= b && (b = c.lastIndexOf(" ")); var e = "", h; 0 < b && b < c.length - 1 ? (h = c.substring(b + 1).trim(), e = c.substring(0, b).trim()) : h = c; c = u(0, e); return new a(null, 0, 15, [c], h); }; a._nextID = 1; return a; }(); b.Multiname = G; var F = new Int32Array(100), I = function() { function a(c, b, e) { this.type = c; this.uri = b; this.prefix = e; this.mangledName = null; r(void 0 !== c); this.mangleName(); } a.prototype.toString = function() { return l[this.type] + ("" !== this.uri ? ":" + this.uri : ""); }; a._hashNamespace = function(c, b, e) { b += ""; e += ""; var h = a._knownNames.indexOf(b); if (0 <= h) { return c << 2 | h; } var h = 1 + b.length + e.length, h = 101 > h ? F : new Int32Array(h), d = 0; h[d++] = c; for (c = 0;c < b.length;c++) { h[d++] = b.charCodeAt(c); } for (c = 0;c < e.length;c++) { h[d++] = e.charCodeAt(c); } return f.HashUtilities.hashBytesTo32BitsMD5(h, 0, d); }; a.prototype.mangleName = function() { if (0 === this.type && "" === this.uri) { this.mangledName = "Bg"; } else { var c = a._hashNamespace(this.type, this.uri, this.prefix); this.mangledName = f.StringUtilities.variableLengthEncodeInt32(c); } }; a.prototype.isPublic = function() { return 0 === this.type; }; Object.defineProperty(a.prototype, "reflectedURI", {get:function() { return this.uri || (0 === this.type ? null : this.uri); }, enumerable:!0, configurable:!0}); a._knownNames = [""]; return a; }(); b.Namespace = I; var E = {}; b.internNamespace = u; b.internPrefixedNamespace = k; I.PUBLIC = u(0, ""); var J = function() { function c(b, e) { this._buffer = e; this.env = b; this._stream = new a(e); this.hash = d(e, 0, e.length); this._checkMagic(); this._parseConstantPool(); this._parseNamespaces(); this._parseNamespaceSets(); this._parseMultinames(); this._parseMethodInfos(); this._parseMetaData(); this._parseInstanceAndClassInfos(); this._parseScriptInfos(); this._parseMethodBodyInfos(); } Object.defineProperty(c.prototype, "applicationDomain", {get:function() { return this.env.app; }, enumerable:!0, configurable:!0}); c.prototype._parseConstantPool = function() { this._parseNumericConstants(); this._parseStringConstants(); }; c.prototype._parseNumericConstants = function() { var a = 0, c = this._stream, a = c.readU30(), b = new Int32Array(a); b[0] = 0; for (var e = 1;e < a;e++) { b[e] = c.readS32(); } this.ints = b; a = c.readU30(); b = new Uint32Array(a); b[0] = 0; for (e = 1;e < a;e++) { b[e] = c.readS32(); } this.uints = b; a = c.readU30(); b = new Float64Array(a); b[0] = NaN; for (e = 1;e < a;e++) { b[e] = c.readDouble(); } this.doubles = b; }; c.prototype._parseStringConstants = function() { var a = 0, c = this._stream, a = c.readU30(); this._strings = Array(a); this._strings[0] = null; var b = this._stringOffsets = new Uint32Array(a); b[0] = -1; for (var e = 1;e < a;e++) { b[e] = c.position, c.advance(c.readU30()); } }; c.prototype._parseNamespaces = function() { var a = this._stream, c = a.readU30(); this._namespaces = Array(c); var b = this._namespaceOffsets = new Uint32Array(c); b[0] = -1; for (var e = 1;e < c;e++) { b[e] = a.position, a.readU8(), a.readU30(); } }; c.prototype._parseNamespaceSets = function() { var a = this._stream, c = a.readU30(); this._namespaceSets = Array(c); var b = this._namespaceSetOffsets = new Uint32Array(c); b[0] = -1; for (var e = 1;e < c;e++) { b[e] = a.position; for (var h = a.readU30(), d = 0;d < h;d++) { a.readU30(); } } }; c.prototype._consumeMultiname = function() { var a = this._stream, c = a.readU8(); switch(c) { case 7: ; case 13: a.readU30(); a.readU30(); break; case 15: ; case 16: a.readU30(); break; case 17: ; case 18: break; case 9: ; case 14: a.readU30(); a.readU30(); break; case 27: ; case 28: a.readU30(); break; case 29: a.readU32(); a.readU32(); a.readU32(); break; default: f.Debug.unexpected(c); } }; c.prototype._parseMultinames = function() { var a = this._stream, c = a.readU30(); this._multinames = Array(c); var b = this._multinameOffsets = new Uint32Array(c); b[0] = -1; for (var e = 1;e < c;e++) { b[e] = a.position, this._consumeMultiname(); } }; c.prototype._parseMultiname = function(a) { var c = this._stream, b = !1, e, h = !0, d = 0, m = c.readU8(); switch(m) { case 7: ; case 13: e = c.readU30(); h = !1; d = c.readU30(); break; case 15: ; case 16: b = !0; d = c.readU30(); break; case 17: ; case 18: b = !0; break; case 9: ; case 14: d = c.readU30(); e = c.readU30(); break; case 27: ; case 28: e = c.readU30(); break; case 29: return b = c.readU32(), c.readU32(), c = this.getMultiname(c.readU32()), b = this.getMultiname(b), new G(this, a, m, b.namespaces, b.name, c); default: f.Debug.unexpected(); } c = 0 === d ? null : this.getString(d); b = b ? null : h ? this.getNamespaceSet(e) : [this.getNamespace(e)]; return new G(this, a, m, b, c); }; c.prototype._checkMagic = function() { var a = this._stream.readWord(); 3014671 > a && this.env.app.sec.throwError("VerifierError", b.Errors.InvalidMagicError, a >> 16, a & 65535); }; c.prototype._checkForDuplicateStrings = function() { for (var a = [], c = 0;c < this._strings.length;c++) { a.push(this.getString(c)); } a.sort(); for (c = 0;c < a.length - 1;c++) { if (a[c] === a[c + 1]) { return !0; } } return !1; }; c.prototype.getString = function(a) { var c = this._strings[a]; if (void 0 === c) { c = this._stream; c.seek(this._stringOffsets[a]); var b = c.readU30(), c = this._strings[a] = c.readUTFString(b); } return c; }; c.prototype.getMultiname = function(a) { (0 > a || a >= this._multinameOffsets.length) && this.applicationDomain.sec.throwError("VerifierError", b.Errors.CpoolIndexRangeError, a, this._multinameOffsets.length); if (0 === a) { return null; } var c = this._multinames[a]; void 0 === c && (this._stream.seek(this._multinameOffsets[a]), c = this._multinames[a] = this._parseMultiname(a)); return c; }; c.prototype.getNamespace = function(a) { (0 > a || a >= this._namespaceOffsets.length) && this.applicationDomain.sec.throwError("VerifierError", b.Errors.CpoolIndexRangeError, a, this._namespaceOffsets.length); if (0 === a) { return I.PUBLIC; } var c = this._namespaces[a]; if (void 0 !== c) { return c; } var e = this._stream; e.seek(this._namespaceOffsets[a]); var c = e.readU8(), e = (e = e.readU30()) ? this.getString(e) : void 0, h; switch(c) { case 8: ; case 22: h = 0; break; case 23: h = 2; break; case 24: h = 1; break; case 25: h = 4; break; case 26: h = 5; break; case 5: h = 3; break; default: this.applicationDomain.sec.throwError("VerifierError", b.Errors.CpoolEntryWrongTypeError, a); } e && 3 !== h || void 0 === e && (e = ""); return c = this._namespaces[a] = u(h, e); }; c.prototype.getNamespaceSet = function(a) { (0 > a || a >= this._namespaceSets.length) && this.applicationDomain.sec.throwError("VerifierError", b.Errors.CpoolIndexRangeError, a, this._namespaceSets.length); if (0 === a) { return null; } var c = this._namespaceSets[a]; if (void 0 === c) { var e = this._stream, h = this._namespaceSetOffsets[a]; e.seek(h); var d = e.readU30(), c = this._namespaceSets[a] = Array(d), h = e.position; for (a = 0;a < d;a++) { e.seek(h); var m = e.readU30(), h = e.position; c[a] = this.getNamespace(m); } } return c; }; c.prototype._parseMethodInfos = function() { var a = this._stream, c = a.readU30(); this._methods = Array(c); this._methodInfoOffsets = new Uint32Array(c); for (var b = 0;b < c;++b) { this._methodInfoOffsets[b] = a.position, this._consumeMethodInfo(); } }; c.prototype._consumeMethodInfo = function() { var a = this._stream, c = a.readU30(); a.readU30(); for (var b = 0;b < c;b++) { a.readU30(); } a.readU30(); var e = a.readU8(); if (e & 8) { for (b = a.readU30(), b = c - b;b < c;b++) { a.readU30(), a.readU8(); } } if (e & 128) { for (b = 0;b < c;b++) { a.readU30(); } } }; c.prototype._parseMethodInfo = function(a) { for (var c = this._stream, b = c.readU30(), e = c.readU30(), h = Array(b), d = 0;d < b;d++) { h[d] = new z(this, c.readU30(), 0, -1, -1); } var m = c.readU30(), l = c.readU8(), v = 0; if (l & 8) { for (v = c.readU30(), d = b - v;d < b;d++) { h[d].optionalValueIndex = c.readU30(), h[d].optionalValueKind = c.readU8(); } } if (l & 128) { for (d = 0;d < b;d++) { h[d].name = c.readU30(); } } return new D(this, a, m, e, h, v, l); }; c.prototype.getMethodInfo = function(a) { var c = this._methods[a]; void 0 === c && (this._stream.seek(this._methodInfoOffsets[a]), c = this._methods[a] = this._parseMethodInfo(a)); return c; }; c.prototype.getMethodBodyInfo = function(a) { return this._methodBodies[a]; }; c.prototype._parseMetaData = function() { var a = this._stream, c = a.readU30(); this._metadata = Array(c); for (var b = this._metadataInfoOffsets = new Uint32Array(c), e = 0;e < c;e++) { b[e] = a.position; a.readU30(); for (var h = a.readU30(), d = 0;d < h;d++) { a.readU30(), a.readU30(); } } }; c.prototype.getMetadataInfo = function(a) { var c = this._metadata[a]; if (void 0 === c) { c = this._stream; c.seek(this._metadataInfoOffsets[a]); for (var b = c.readU30(), e = c.readU30(), h = new Uint32Array(e), d = 0;d < e;d++) { h[d] = c.readU30(); } for (var m = new Uint32Array(e), d = 0;d < e;d++) { m[d] = c.readU30(); } c = this._metadata[a] = new n(this, b, h, m); } return c; }; c.prototype._parseInstanceAndClassInfos = function() { for (var a = this._stream, c = a.readU30(), b = this.instances = Array(c), e = 0;e < c;e++) { b[e] = this._parseInstanceInfo(); } this._parseClassInfos(c); for (var h = a.position, e = 0;e < c;e++) { b[e].classInfo = this.classes[e]; } a.seek(h); }; c.prototype._parseInstanceInfo = function() { var a = this._stream, c = a.readU30(), b = a.readU30(), e = a.readU8(), h = 0; e & 8 && (h = a.readU30()); for (var d = a.readU30(), m = [], l = 0;l < d;l++) { m[l] = a.readU30(); } d = a.readU30(); a = this._parseTraits(); c = new A(this, c, b, e, h, m, d, a); a.attachHolder(c); return c; }; c.prototype._parseTraits = function() { for (var a = this._stream.readU30(), c = [], b = 0;b < a;b++) { c.push(this._parseTrait()); } return new t(c); }; c.prototype._parseTrait = function() { var a = this._stream, c = a.readU30(), e = a.readU8(), h = e & 15, e = e >> 4 & 15, d; switch(h) { case 0: ; case 6: d = a.readU30(); var m = a.readU30(), l = a.readU30(), v = -1; 0 !== l && (v = a.readU8()); d = new w(this, h, c, d, m, v, l); break; case 1: ; case 2: ; case 3: a.readU30(); d = a.readU30(); m = a.position; d = this.getMethodInfo(d); d = d.trait = new H(this, h, c, d); a.seek(m); break; case 4: d = a.readU30(); m = this.classes[a.readU30()]; d = m.trait = new K(this, h, c, d, m); break; default: this.applicationDomain.sec.throwError("VerifierError", b.Errors.UnsupportedTraitsKindError, h); } if (e & 4) { c = a.readU30(); h = new Uint32Array(c); for (e = 0;e < c;e++) { h[e] = a.readU30(); } d.metadata = h; } return d; }; c.prototype._parseClassInfos = function(a) { for (var c = this.classes = Array(a), b = 0;b < a;b++) { c[b] = this._parseClassInfo(b); } }; c.prototype._parseClassInfo = function(a) { var c = this._stream.readU30(), b = this._parseTraits(); a = new x(this, this.instances[a], c, b); b.attachHolder(a); return a; }; c.prototype._parseScriptInfos = function() { for (var a = this._stream.readU30(), c = this.scripts = Array(a), b = 0;b < a;b++) { c[b] = this._parseScriptInfo(); } }; c.prototype._parseScriptInfo = function() { var a = this._stream.readU30(), c = this._parseTraits(), a = new B(this, a, c); c.attachHolder(a); return a; }; c.prototype._parseMethodBodyInfos = function() { for (var a = this._stream, c = this._methodBodies = Array(this._methods.length), b = a.readU30(), e = 0;e < b;e++) { for (var h = a.readU30(), d = a.readU30(), m = a.readU30(), l = a.readU30(), v = a.readU30(), p = a.viewU8s(a.readU30()), n = a.readU30(), t = Array(n), g = 0;g < n;++g) { t[g] = this._parseException(); } n = this._parseTraits(); c[h] = new y(d, m, l, v, p, t, n); n.attachHolder(c[h]); } }; c.prototype._parseException = function() { var a = this._stream, c = a.readU30(), b = a.readU30(), e = a.readU30(), h = a.readU30(), a = a.readU30(); return new C(this, c, b, e, h, a); }; c.prototype.getConstant = function(a, c) { switch(a) { case 3: return this.ints[c]; case 4: return this.uints[c]; case 6: return this.doubles[c]; case 1: return this.getString(c); case 11: return !0; case 10: return !1; case 12: return null; case 8: ; case 23: return this.getNamespace(c); case 7: ; case 14: ; case 15: ; case 16: ; case 17: ; case 18: ; case 19: ; case 20: return this.getMultiname(c); case 2: f.Debug.warning("TODO: CONSTANT.Float may be deprecated?"); } }; c.prototype.stress = function() { for (var a = 0;a < this._multinames.length;a++) { this.getMultiname(a); } for (a = 0;a < this._namespaceSets.length;a++) { this.getNamespaceSet(a); } for (a = 0;a < this._namespaces.length;a++) { this.getNamespace(a); } for (a = 0;a < this._strings.length;a++) { this.getString(a); } }; c.prototype.trace = function(a) { a.writeLn("Multinames: " + this._multinames.length); a.indent(); for (var c = 0;c < this._multinames.length;c++) { a.writeLn(c + " " + this.getMultiname(c)); } a.outdent(); a.writeLn("Namespace Sets: " + this._namespaceSets.length); a.indent(); for (c = 0;c < this._namespaceSets.length;c++) { a.writeLn(c + " " + this.getNamespaceSet(c)); } a.outdent(); a.writeLn("Namespaces: " + this._namespaces.length); a.indent(); for (c = 0;c < this._namespaces.length;c++) { a.writeLn(c + " " + this.getNamespace(c)); } a.outdent(); a.writeLn("Strings: " + this._strings.length); a.indent(); for (c = 0;c < this._strings.length;c++) { a.writeLn(c + " " + this.getString(c)); } a.outdent(); a.writeLn("MethodInfos: " + this._methods.length); a.indent(); for (c = 0;c < this._methods.length;c++) { a.writeLn(c + " " + this.getMethodInfo(c)), this._methodBodies[c] && this._methodBodies[c].trace(a); } a.outdent(); a.writeLn("InstanceInfos: " + this.instances.length); a.indent(); for (c = 0;c < this.instances.length;c++) { a.writeLn(c + " " + this.instances[c]), this.instances[c].trace(a); } a.outdent(); a.writeLn("ClassInfos: " + this.classes.length); a.indent(); for (c = 0;c < this.classes.length;c++) { this.classes[c].trace(a); } a.outdent(); a.writeLn("ScriptInfos: " + this.scripts.length); a.indent(); for (c = 0;c < this.scripts.length;c++) { this.scripts[c].trace(a); } a.outdent(); }; return c; }(); b.ABCFile = J; p = function() { function a(c, b, e) { this.app = c; this.map = f.ObjectUtilities.createMap(); this.abcs = b; this.scripts = f.ObjectUtilities.createMap(); for (c = 0;c < e.length;c++) { b = e[c]; this.scripts[b.name] = b; for (var h = 0;h < b.defs.length;h++) { var d = b.defs[h].split(":"), m = this.map[d[1]]; m || (m = this.map[d[1]] = Object.create(null)); m[d[0]] = b.name; } } } a.prototype.getABCByScriptName = function(a) { var c = this.scripts[a]; return c ? new J({url:a, app:this.app}, this.abcs.subarray(c.offset, c.offset + c.length)) : null; }; a.prototype.getABCByMultiname = function(a) { var c = this.map[a.name]; if (!c) { return null; } a = a.namespaces; for (var b = 0;b < a.length;b++) { var e = c[a[b].uri]; if (e) { return this.getABCByScriptName(e); } } return null; }; return a; }(); b.ABCCatalog = p; })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { function g(a, c, e) { e.id = c.id; e.kind = c.kind; if (c.isRuntimeName()) { var d = a.pop(); if (d && d.axClass && d.axClass === d.sec.AXQName) { d = d.name; e.kind = c.isAttribute() ? 18 : 17; e.id = d.id; e.name = d.name; e.namespaces = d.namespaces; return; } e.name = d; e.id = -1; } else { e.name = c.name; } c.isRuntimeNamespace() ? (a = a.pop(), a._ns && (a = a._ns), e.namespaces = [a], e.id = -1) : e.namespaces = c.namespaces; b.interpreterWriter && b.interpreterWriter.greenLn("Name: " + e.name); } function q(a, c, e, d, n, t, p, h, m) { var v = c instanceof Error && "string" === typeof c.name && "string" === typeof c.message; if (v) { if (c instanceof RangeError || "InternalError" === c.name) { var g = Object.create(a.AXError.tPrototype); g._errorID = 1023; if ("allocation size overflow" === c.message) { return g.$Bgmessage = "allocation size overflow", g; } if (-1 < c.message.indexOf("recursion") || -1 < c.message.indexOf("call stack size exceeded")) { return g.$Bgmessage = "Stack overflow occurred", b.scopeStacks.length = m, g; } } else { if (c instanceof TypeError) { if (-1 < c.message.indexOf("convert") && (-1 < c.message.indexOf("to primitive") || -1 < c.message.indexOf("to string"))) { return a.createError("TypeError", b.Errors.ConvertToPrimitiveError, "value"); } if ("Conversion to Array failed" === c.message) { return a.createError("TypeError", b.Errors.CheckTypeFailedError, "value", "Array"); } } } } m = !1; switch(e) { case 65: if (!d || !d.axApply) { return a.createError("TypeError", b.Errors.CallOfNonFunctionError, "value"); } break; case 66: if (!n || !n.axConstruct) { return a.createError("TypeError", b.Errors.ConstructOfNonFunctionError); } break; case 88: if (!d || !a.AXClass.axIsType(d)) { return a.createError("VerifyError", b.Errors.InvalidBaseClassError); } break; case 78: ; case 73: m = !0; case 70: ; case 79: ; case 76: ; case 74: ; case 69: if (null === n) { return a.createError("TypeError", b.Errors.ConvertNullToObjectError); } if (void 0 === n) { return a.createError("TypeError", b.Errors.ConvertUndefinedToObjectError); } if (!(n.axResolveMultiname(h) in n)) { return c = m ? n.axClass.superClass : n.axClass, c.classInfo.instanceInfo.isSealed() ? a.createError("ReferenceError", b.Errors.ReadSealedError, h.name, c.name.toFQNString(!1)) : a.createError("TypeError", m ? b.Errors.ConstructOfNonFunctionError : b.Errors.CallOfNonFunctionError, h.name); } if (v && "RangeError" === c.name && (-1 < c.message.indexOf("arguments array passed") || -1 < c.message.indexOf("call stack size"))) { return a.createError("RangeError", b.Errors.StackOverflowError); } break; case 4: ; case 102: if (null === n) { return a.createError("TypeError", b.Errors.ConvertNullToObjectError); } if (void 0 === n) { return a.createError("TypeError", b.Errors.ConvertUndefinedToObjectError); } break; case 104: ; case 97: if (null === n) { return a.createError("TypeError", b.Errors.ConvertNullToObjectError); } if (void 0 === n) { return a.createError("TypeError", b.Errors.ConvertUndefinedToObjectError); } h = n.axResolveMultiname(h); if (h in n && !1 === k(n, h).writable) { return a.createError("ReferenceError", b.Errors.ConstWriteError, h, n.axClass.name.name); } break; case 177: if (!n || !n.axIsInstanceOf) { return a.createError("TypeError", b.Errors.CantUseInstanceofOnNonObjectError); } break; case 134: ; case 135: if (n && !n.axAsType) { return a.createError("TypeError", b.Errors.ConvertNullToObjectError); } ; case 178: ; case 179: if (null === n) { return a.createError("TypeError", b.Errors.ConvertNullToObjectError); } if (void 0 === n) { return a.createError("TypeError", b.Errors.ConvertUndefinedToObjectError); } if (!n.axIsType) { return a.createError("TypeError", b.Errors.IsTypeMustBeClassError); } break; case 128: if (!n) { return a.createError("ReferenceError", b.Errors.ClassNotFoundError, h.toFQNString(!1)); } break; case 180: if (null === n) { return a.createError("TypeError", b.Errors.ConvertNullToObjectError); } if (void 0 === n) { return a.createError("TypeError", b.Errors.ConvertUndefinedToObjectError); } break; case 19: ; case 20: ; case 171: if (typeof t !== typeof p && ("object" === typeof t && t && "object" !== typeof p || "object" === typeof p && p && "object" !== typeof t)) { return a.createError("TypeError", b.Errors.ConvertToPrimitiveError, "Object"); } break; default: if (!c || "string" !== typeof c.message || "string" !== typeof c.stack || "string" !== typeof c.name) { break; } var f = c.stack.split("\n"); n = 0 === f[0].indexOf("at ") ? f[0].substr(3) : f[0]; switch(c.name) { case "TypeError": if (0 === n.indexOf("AXBasePrototype_valueOf") || 0 === n.indexOf("AXBasePrototype_toString")) { return a.createError("TypeError", b.Errors.CallOfNonFunctionError, "value"); } ; } ; } e = "Uncaught VM-internal exception during op " + b.Bytecode[e] + ": "; try { e += c.toString(), f = c.stack; } catch (r) { e += "[Failed to stringify exception]"; } console.error(e, "\n", f); return a.createError("Error", b.Errors.InternalErrorIV); } var u = f.ArrayUtilities.popManyInto, k = f.ObjectUtilities.getPropertyDescriptor, r = function() { function a(a) { this.parent = a; this.stack = []; this.isWith = []; } a.prototype.push = function(a, b) { this.stack.push(a); this.isWith.push(!!b); }; a.prototype.get = function(a) { return this.stack[a]; }; a.prototype.clear = function() { this.stack.length = 0; this.isWith.length = 0; }; a.prototype.pop = function() { this.isWith.pop(); this.stack.pop(); this.scopes && this.scopes.length > this.stack.length && this.scopes.length--; }; a.prototype.topScope = function() { if (!this.scopes) { if (0 === this.stack.length) { return this.parent; } this.scopes = []; } for (var a = this.parent, e = 0;e < this.stack.length;e++) { var d = this.stack[e], n = this.isWith[e], t = this.scopes[e]; t && t.parent === a && t.object === d && t.isWith === n || (t = this.scopes[e] = new b.Scope(a, d, n)); a = t; } return a; }; return a; }(); b.ScopeStack = r; b.interpret = function(a, c, e, l, n) { b.executionWriter && b.executionWriter.enter("> " + c); try { var t; a: { var p = new d(a, c, e, l, n), h = p.stack, m = p.locals, v = p.scopes, w = p.sec, r = c.abc, k = new b.Multiname(r, 0, null, null, null), z, A, B, x, C, y, D, G; a = []; l = 0; var F = b.scopeStacks.length; b.scopeStacks.push(p.scopes); b: for (;;) { try { var I = p.bc(); switch(I) { case 9: continue; case 3: throw h.pop();; case 8: m[p.u30()] = void 0; break; case 12: C = h.pop(); x = h.pop(); y = p.s24(); x < C || (p.pc += y); continue; case 24: C = h.pop(); x = h.pop(); y = p.s24(); x >= C && (p.pc += y); continue; case 13: C = h.pop(); x = h.pop(); y = p.s24(); x <= C || (p.pc += y); continue; case 23: C = h.pop(); x = h.pop(); y = p.s24(); x > C && (p.pc += y); continue; case 14: C = h.pop(); x = h.pop(); y = p.s24(); x > C || (p.pc += y); continue; case 22: C = h.pop(); x = h.pop(); y = p.s24(); x <= C && (p.pc += y); continue; case 15: C = h.pop(); x = h.pop(); y = p.s24(); x >= C || (p.pc += y); continue; case 21: C = h.pop(); x = h.pop(); y = p.s24(); x < C && (p.pc += y); continue; case 16: p.pc = p.s24() + p.pc; continue; case 17: y = p.s24(); h.pop() && (p.pc += y); continue; case 18: y = p.s24(); h.pop() || (p.pc += y); continue; case 19: C = h.pop(); x = h.pop(); y = p.s24(); b.axEquals(x, C, w) && (p.pc += y); continue; case 20: C = h.pop(); x = h.pop(); y = p.s24(); b.axEquals(x, C, w) || (p.pc += y); continue; case 25: C = h.pop(); x = h.pop(); y = p.s24(); x === C && (p.pc += y); continue; case 26: C = h.pop(); x = h.pop(); y = p.s24(); x !== C && (p.pc += y); continue; case 27: var E = p.pc - 1; y = p.s24(); var J = p.u30(); D = h.pop(); D <= J && (p.pc += 3 * D, y = p.s24()); p.pc = E + y; continue; case 29: v.pop(); break; case 30: D = h.pop(); B = w.box(p.peekStack()); h[h.length - 1] = B.axNextName(D); break; case 35: D = h.pop(); B = w.box(p.peekStack()); h[h.length - 1] = B.axNextValue(D); break; case 50: var L = p.getHasNext2Info(), M = p.u30(), P = p.u30(); L.next(w.box(m[M]), m[P]); m[M] = L.object; m[P] = L.index; h.push(!!L.index); break; case 32: h.push(null); break; case 33: h.push(void 0); break; case 36: h.push(p.code[p.pc++] << 24 >> 24); break; case 37: h.push(p.u30() << 16 >> 16); break; case 44: h.push(r.getString(p.u30())); break; case 45: h.push(r.ints[p.u30()]); break; case 46: h.push(r.uints[p.u30()]); break; case 47: h.push(r.doubles[p.u30()]); break; case 38: h.push(!0); break; case 39: h.push(!1); break; case 40: h.push(NaN); break; case 41: h.pop(); break; case 42: h.push(h[h.length - 1]); break; case 43: z = h[h.length - 1]; h[h.length - 1] = h[h.length - 2]; h[h.length - 2] = z; break; case 48: v.push(w.box(h.pop()), !1); break; case 28: v.push(w.box(h.pop()), !0); break; case 49: h.push(w.AXNamespace.FromNamespace(r.getNamespace(p.u30()))); break; case 64: h.push(w.createFunction(r.getMethodInfo(p.u30()), v.topScope())); break; case 65: u(h, p.u30(), a); A = h.pop(); z = h[h.length - 1]; b.validateCall(w, z, a.length); h[h.length - 1] = z.axApply(A, a); break; case 66: u(h, p.u30(), a); B = w.box(p.peekStack()); b.validateConstruct(w, B, a.length); h[h.length - 1] = B.axConstruct(a); break; case 71: b.scopeStacks.length--; t = void 0; break a; case 72: z = h.pop(); c.returnTypeNameIndex && (B = c.getType()) && (z = B.axCoerce(z)); b.scopeStacks.length--; t = z; break a; case 73: u(h, p.u30(), a); e.object.superClass.tPrototype.axInitializer.apply(h.pop(), a); break; case 74: D = p.u30(); u(h, p.u30(), a); g(h, r.getMultiname(D), k); B = w.box(p.peekStack()); h[h.length - 1] = B.axConstructProperty(k, a); break; case 76: ; case 70: ; case 79: D = p.u30(); l = p.u30(); u(h, l, a); g(h, r.getMultiname(D), k); B = w.box(h[h.length - 1]); G = B.axCallProperty(k, a, 76 === I); 79 === I ? h.length-- : h[h.length - 1] = G; break; case 69: ; case 78: D = p.u30(); l = p.u30(); u(h, l, a); g(h, r.getMultiname(D), k); B = w.box(h[h.length - 1]); G = B.axCallSuper(k, e, a); 78 === I ? h.length-- : h[h.length - 1] = G; break; case 83: u(h, p.u30(), a); h[h.length - 1] = w.applyType(h[h.length - 1], a); break; case 85: A = Object.create(w.AXObject.tPrototype); l = p.u30(); for (var R = h.length - 2 * l;R < h.length;R += 2) { z = h[R + 1], A.axSetPublicProperty(h[R], z); } h.length -= 2 * l; h.push(A); break; case 86: A = []; l = p.u30(); for (R = h.length - l;R < h.length;R++) { A.push(h[R]); } h.length -= l; h.push(w.AXArray.axBox(A)); break; case 87: h.push(w.createActivation(c, v.topScope())); break; case 88: z = h[h.length - 1]; h[h.length - 1] = w.createClass(r.classes[p.u30()], z, v.topScope()); break; case 89: g(h, r.getMultiname(p.u30()), k); void 0 === k.name && (k.name = "*"); G = b.axGetDescendants(h[h.length - 1], k, w); h[h.length - 1] = G; break; case 90: h.push(w.createCatch(p.body.catchBlocks[p.u30()], v.topScope())); break; case 94: ; case 93: g(h, r.getMultiname(p.u30()), k); h.push(v.topScope().findScopeProperty(k, 93 === I, !1)); break; case 96: g(h, r.getMultiname(p.u30()), k); A = v.topScope().findScopeProperty(k, !0, !1); G = A.axGetProperty(k); h.push(G); break; case 104: ; case 97: z = h.pop(); g(h, r.getMultiname(p.u30()), k); B = w.box(h.pop()); B.axSetProperty(k, z, 104, c); break; case 102: g(h, r.getMultiname(p.u30()), k); B = w.box(p.peekStack()); G = B.axGetProperty(k); h[h.length - 1] = G; break; case 106: g(h, r.getMultiname(p.u30()), k); B = w.box(p.peekStack()); h[h.length - 1] = B.axDeleteProperty(k); break; case 4: g(h, r.getMultiname(p.u30()), k); B = w.box(p.peekStack()); G = B.axGetSuper(k, e); h[h.length - 1] = G; break; case 5: z = h.pop(); g(h, r.getMultiname(p.u30()), k); B = w.box(h.pop()); B.axSetSuper(k, e, z); break; case 98: h.push(m[p.u30()]); break; case 99: m[p.u30()] = h.pop(); break; case 100: h.push(e.global.object); break; case 101: h.push(v.get(p.code[p.pc++])); break; case 108: B = w.box(p.peekStack()); G = B.axGetSlot(p.u30()); h[h.length - 1] = G; break; case 109: z = h.pop(); B = w.box(h.pop()); B.axSetSlot(p.u30(), z); break; case 110: G = e.global.object.axGetSlot(p.u30()); h[h.length - 1] = G; break; case 111: z = h.pop(); e.global.object.axSetSlot(p.u30(), z); break; case 114: h[h.length - 1] = b.AS.escapeAttributeValue(h[h.length - 1]); break; case 113: h[h.length - 1] = b.AS.escapeElementValue(h[h.length - 1]); break; case 131: ; case 115: h[h.length - 1] |= 0; break; case 136: ; case 116: h[h.length - 1] >>>= 0; break; case 132: ; case 117: h[h.length - 1] = +h[h.length - 1]; break; case 129: ; case 118: h[h.length - 1] = !!h[h.length - 1]; break; case 133: h[h.length - 1] = b.axCoerceString(h[h.length - 1]); break; case 112: h[h.length - 1] = b.axConvertString(h[h.length - 1]); break; case 120: h[h.length - 1] = b.axCheckFilter(w, h[h.length - 1]); break; case 128: g(h, r.getMultiname(p.u30()), k); B = v.topScope().getScopeProperty(k); h[h.length - 1] = B.axCoerce(h[h.length - 1]); break; case 130: break; case 134: g(h, r.getMultiname(p.u30()), k); B = v.topScope().getScopeProperty(k); h[h.length - 2] = B.axAsType(h[h.length - 1]); break; case 135: B = h.pop(); h[h.length - 1] = B.axAsType(h[h.length - 1]); break; case 137: A = h[h.length - 1]; h[h.length - 1] = void 0 == A ? null : A; break; case 144: h[h.length - 1] = -h[h.length - 1]; break; case 145: ++h[h.length - 1]; break; case 146: ++m[p.u30()]; break; case 147: --h[h.length - 1]; break; case 148: --m[p.u30()]; break; case 149: h[h.length - 1] = b.axTypeOf(h[h.length - 1], w); break; case 150: h[h.length - 1] = !h[h.length - 1]; break; case 151: h[h.length - 1] = ~h[h.length - 1]; break; case 160: C = h.pop(); x = h[h.length - 1]; h[h.length - 1] = "number" === typeof x && "number" === typeof C ? x + C : b.axAdd(x, C, w); break; case 161: h[h.length - 2] -= h.pop(); break; case 162: h[h.length - 2] *= h.pop(); break; case 163: h[h.length - 2] /= h.pop(); break; case 164: h[h.length - 2] %= h.pop(); break; case 165: h[h.length - 2] <<= h.pop(); break; case 166: h[h.length - 2] >>= h.pop(); break; case 167: h[h.length - 2] >>>= h.pop(); break; case 168: h[h.length - 2] &= h.pop(); break; case 169: h[h.length - 2] |= h.pop(); break; case 170: h[h.length - 2] ^= h.pop(); break; case 171: x = h[h.length - 2]; C = h.pop(); h[h.length - 1] = b.axEquals(x, C, w); break; case 172: h[h.length - 2] = h[h.length - 2] === h.pop(); break; case 173: h[h.length - 2] = h[h.length - 2] < h.pop(); break; case 174: h[h.length - 2] = h[h.length - 2] <= h.pop(); break; case 175: h[h.length - 2] = h[h.length - 2] > h.pop(); break; case 176: h[h.length - 2] = h[h.length - 2] >= h.pop(); break; case 177: B = h.pop(); h[h.length - 1] = B.axIsInstanceOf(h[h.length - 1]); break; case 178: g(h, r.getMultiname(p.u30()), k); B = v.topScope().findScopeProperty(k, !0, !1); h[h.length - 1] = B.axIsType(h[h.length - 1]); break; case 179: B = h.pop(); h[h.length - 1] = B.axIsType(h[h.length - 1]); break; case 180: B = w.box(h.pop()); var O = h[h.length - 1]; h[h.length - 1] = O && O.axClass === w.AXQName ? B.axHasProperty(O.name) : B.axHasPublicProperty(O); break; case 192: h[h.length - 1] = (h[h.length - 1] | 0) + 1; break; case 193: h[h.length - 1] = (h[h.length - 1] | 0) - 1; break; case 194: D = p.u30(); m[D] = (m[D] | 0) + 1; break; case 195: D = p.u30(); m[D] = (m[D] | 0) - 1; break; case 196: h[h.length - 1] = -(h[h.length - 1] | 0); break; case 197: h[h.length - 2] = (h[h.length - 2] | 0) + (h.pop() | 0) | 0; break; case 198: h[h.length - 2] = (h[h.length - 2] | 0) - (h.pop() | 0) | 0; break; case 199: h[h.length - 2] = (h[h.length - 2] | 0) * (h.pop() | 0) | 0; break; case 208: ; case 209: ; case 210: ; case 211: h.push(m[I - 208]); break; case 212: ; case 213: ; case 214: ; case 215: m[I - 212] = h.pop(); break; case 6: v.topScope().defaultNamespace = b.internNamespace(0, r.getString(p.u30())); break; case 7: v.topScope().defaultNamespace = b.internNamespace(0, h.pop()); break; case 239: p.pc++; p.u30(); p.pc++; p.u30(); break; case 240: ; case 241: p.u30(); break; case 2: ; case 1: break; default: f.Debug.notImplemented(b.Bytecode[I]); } } catch (Q) { b.isValidASValue(Q) || (Q = q(w, Q, I, z, B, x, C, k, F + 1)); for (var W = p.body.catchBlocks, R = 0;R < W.length;R++) { var T = W[R]; if (p.pc >= T.start && p.pc <= T.end) { var X = T.getType(); if (!X || p.app.getClass(X).axIsType(Q)) { h.length = 0; h.push(Q); v.clear(); p.pc = T.target; continue b; } } } b.scopeStacks.length--; throw Q; } } } b.executionWriter && b.executionWriter.leave("< " + c.trait); return t; } catch (N) { throw b.executionWriter && b.executionWriter.leave("< " + c.trait + ", Exception: " + N), N; } }; var d = function() { function a(a, e, d, n, t) { this.pc = 0; this.stack = []; this.hasNext2Infos = null; this.code = (this.body = e.getBody()).code; this.scopes = new r(d); for (var p = this.locals = [a], h = this.sec = (this.app = e.abc.applicationDomain).sec, m = n.length, v, g = 0, f = e.parameters.length;g < f;g++) { var k = e.parameters[g]; v = g < m ? n[g] : k.hasOptionalValue() ? k.getOptionalValue() : void 0; (k = k.getType()) && !k.isAnyName() && (v = d.getScopeProperty(k).axCoerce(v)); p.push(v); } e.needsRest() ? p.push(h.createArrayUnsafe(b.sliceArguments(n, e.parameters.length))) : e.needsArguments() && (d = b.sliceArguments(n, 0), h = Object.create(h.argumentsPrototype), h.value = d, h.callee = t, h.receiver = a, h.methodInfo = e, p.push(h)); } a.prototype.bc = function() { return this.code[this.pc++]; }; a.prototype.peekStack = function() { return this.stack[this.stack.length - 1]; }; a.prototype.u30 = function() { var a = this.code, b = this.pc, d = a[b++]; d & 128 && (d = d & 127 | a[b++] << 7, d & 16384 && (d = d & 16383 | a[b++] << 14, d & 2097152 && (d = d & 2097151 | a[b++] << 21, d & 268435456 && (d = d & 268435455 | a[b++] << 28, d &= 4294967295)))); this.pc = b; return d >>> 0; }; a.prototype.s24 = function() { var a = this.code, b = this.pc, a = a[b] | a[b + 1] << 8 | a[b + 2] << 16; this.pc = b + 3; return a << 8 >> 8; }; a.prototype.getHasNext2Info = function() { var a = this.pc, e = this.hasNext2Infos; e || (e = this.hasNext2Infos = []); e[a] || (e[a] = new b.HasNext2Info(null, 0)); return e[a]; }; return a; }(); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { function g(a, c) { return Array.prototype.slice.call(a, c); } function q(a) { return a[0]; } function u(a) { var c = Object.create(this.tPrototype); c.value = a; return c; } function k(a) { return null == a ? null : a; } function r(a, c) { var b = c[0]; return null == b ? Object.create(this.tPrototype) : b; } function d(a) { a = a[0]; return null == a ? Object.create(this.tPrototype) : a; } function a(a) { return a | 0; } function c(a) { return a >>> 0; } function e(a) { return as3Compatibility && ("string" === typeof a || a && "object" === typeof a && (a = a.valueOf(), "string" === typeof a)) ? b.AS.ASNumber.convertStringToDouble(a) : +a; } function l(a) { return !!a; } function n(a) { return "string" === typeof a ? a : void 0 == a ? null : a + ""; } function t(a) { return "string" === typeof a ? a : a + ""; } function p(a) { return "number" === typeof a; } function h(a) { return "number" === typeof a && (a | 0) === a; } function m(a) { return "number" === typeof a && a >>> 0 === a; } function v(a) { return "boolean" === typeof a; } function w(a) { return "string" === typeof a; } function H(a, c) { return c.AXXML.dPrototype.isPrototypeOf(a) || c.AXXMLList.dPrototype.isPrototypeOf(a); } function K() { return !1; } function z() { var a = this.callee; return a ? a : null === this.methodInfo.trait ? (console.error("arguments.callee used on trait-less methodInfo function. Probably a constructor"), null) : this.receiver.axGetProperty(this.methodInfo.trait.name); } function A(a) { return null === a || void 0 === a || "number" === typeof a || "string" === typeof a || "boolean" === typeof a; } function B(a) { if (f.isNullOrUndefined(a)) { return null; } this.axIsType(a) || this.sec.throwError("TypeError", b.Errors.CheckTypeFailedError, a, this.classInfo.instanceInfo.getClassName()); return a; } function x(a) { return this.classInfo.instanceInfo.getInterfaces(this.axClass).has(a); } function C(a) { return this.dPrototype.isPrototypeOf(this.sec.box(a)) || a === this.dPrototype; } function y(a) { return a && "object" === typeof a ? a.axImplementsInterface(this) : !1; } function D(a) { return this.axIsType(a) ? a : null; } function G(a) { return this.dPrototype.isPrototypeOf(this.sec.box(a)); } function F(a) { return !1; } function I(a, c) { U(a, "traits", c); for (var e = c.getTraitsList(), h = 0;h < e.length;h++) { var d = e[h], m = d; m.value instanceof b.Namespace && (m = {value:b.AS.ASNamespace.FromNamespace.call(a.sec.AXNamespace, m.value)}); Object.defineProperty(a, d.name.getMangledName(), m); } } function E() { var a = this.hasOwnProperty("classInfo") ? "Object" : this.classInfo.instanceInfo.name.name; return f.StringUtilities.concat3("[object ", a, "]"); } function J() { return this.$BgtoString.axCall(this); } function L() { return this; } function M() { return this.$BgvalueOf.axCall(this); } function P(a) { var c = a.axClass; if (!c || c === c.sec.AXObject) { return null; } var b = c.dPrototype; b === a && (b = c.superClass.dPrototype); return b; } function R(a) { var c = Object.create(this.tPrototype); c.axInitializer.apply(c, a); return c; } function O() { } function Q() { this.sec.throwError("VerifierError", b.Errors.NotImplementedError, this.name.name); } function W(a, c) { return this.axCoerce(c ? c[0] : void 0); } b.validateCall = function(a, c, e) { c && c.axApply || a.throwError("TypeError", b.Errors.CallOfNonFunctionError, c && c.methodInfo ? c.methodInfo.getName() : "value"); c.methodInfo && e < c.methodInfo.minArgs && a.throwError("ArgumentError", b.Errors.WrongArgumentCountError, c.methodInfo.getName(), c.methodInfo.minArgs, e); }; b.validateConstruct = function(a, c, e) { if (!c || !c.axConstruct) { var h = c && c.classInfo ? c.classInfo.instanceInfo.getName().name : "value"; a.throwError("TypeError", b.Errors.ConstructOfNonFunctionError, h); } h = c.classInfo.getInitializer(); e < h.minArgs && a.throwError("ArgumentError", b.Errors.WrongArgumentCountError, c.classInfo.instanceInfo.getName().name, h.minArgs, e); }; b.checkNullParameter = function(a, c, e) { a || e.throwError("TypeError", b.Errors.NullPointerError, c); }; b.checkParameterType = function(a, c, e, h) { if (null == a) { if (h) { return; } e.sec.throwError("TypeError", b.Errors.NullPointerError, c); } e.axIsType(a) || e.sec.throwError("TypeError", b.Errors.CheckTypeFailedError, a, e.classInfo.instanceInfo.getClassName()); }; b.forEachPublicProperty = function(a, c, b) { for (var e = a.axGetEnumerableKeys(), h = 0;h < e.length;h++) { var d = e[h], m = a.axGetPublicProperty(d); c.call(b, d, m); } }; (function(a) { a[a.None = 0] = "None"; a[a.Runtime = 1] = "Runtime"; a[a.Execution = 2] = "Execution"; a[a.Interpreter = 4] = "Interpreter"; })(b.WriterFlags || (b.WriterFlags = {})); var T = new f.IndentingWriter(!1, function(a) { }); b.runtimeWriter = null; b.executionWriter = null; b.interpreterWriter = null; b.sliceArguments = g; b.setWriters = function(a) { b.runtimeWriter = a & 1 ? T : null; b.executionWriter = a & 6 ? T : null; b.interpreterWriter = a & 4 ? T : null; }; (function(a) { a[a.None = 0] = "None"; a[a.Executing = 1] = "Executing"; a[a.Executed = 2] = "Executed"; })(b.ScriptInfoState || (b.ScriptInfoState = {})); var X = f.Debug.assert, N = f.ObjectUtilities.defineNonEnumerableProperty, U = f.ObjectUtilities.defineReadOnlyProperty; b.ensureBoxedReceiver = function(a, c, e) { if (c && "object" === typeof c) { return c; } a = a.box(c); a || (b.scopeStacks.length ? a = b.scopeStacks[b.scopeStacks.length - 1].topScope().global.object : e.receiver && (a = e.receiver.scope.global.object)); return a; }; b.axCoerceInt = a; b.axCoerceUint = c; b.axCoerceNumber = e; b.axCoerceBoolean = l; b.axCoerceString = n; b.axCoerceName = function(a) { return "string" === typeof a ? a : void 0 == a ? "null" : a.toString(); }; b.axConvertString = t; b.axIsTypeNumber = p; b.axIsTypeInt = h; b.axIsTypeUint = m; b.axIsTypeBoolean = v; b.axIsTypeString = w; b.axGetDescendants = function(a, c, e) { H(a, e) || e.throwError("TypeError", b.Errors.DescendentsError, a); return a.descendants(c); }; b.axCheckFilter = function(a, c) { if (!c || !b.AS.isXMLCollection(c, a)) { var e = c && c.axClass ? c.axClass.name.toFQNString(!1) : "[unknown]"; a.throwError("TypeError", b.Errors.FilterError, e); } return c; }; b.axFalse = K; b.axDefaultCompareFunction = function(a, c) { return String(a).localeCompare(String(c)); }; b.axCompare = function(a, c, b, e, h) { var d = 0; b & 1 && (a = String(a).toLowerCase(), c = String(c).toLowerCase()); b & 16 ? (a = +a, c = +c, d = a < c ? -1 : a > c ? 1 : 0) : d = h(a, c); return d * e; }; b.axCompareFields = function(a, c, b, e) { var h = 0, d; for (d = 0;d < b.length && 0 === h;d++) { var m = b[d], h = a[m], m = c[m], l = e[d]; l & 1 && (h = String(h).toLowerCase(), m = String(m).toLowerCase()); l & 16 ? (h = +h, m = +m, h = h < m ? -1 : h > m ? 1 : 0) : h = String(h).localeCompare(String(m)); } e[d - 1] & 2 && (h *= -1); return h; }; b.axAdd = function(a, c, e) { return "string" === typeof a || "string" === typeof c ? String(a) + String(c) : b.AS.isXMLCollection(a, e) && b.AS.isXMLCollection(c, e) ? b.AS.ASXMLList.addXML(a, c) : a + c; }; b.axEquals = function(a, c, e) { return b.AS.isXMLType(a, e) ? a.equals(c) : b.AS.isXMLType(c, e) ? c.equals(a) : a == c; }; b.isValidASValue = function(a) { return b.AXBasePrototype.isPrototypeOf(a) || A(a); }; b.checkValue = function(a) { }; b.axTypeOf = function(a, c) { if (a) { if (a.value) { return typeof a.value; } if (H(a, c)) { return "xml"; } } return typeof a; }; b.axIsCallable = function(a) { return a && "function" === typeof a.axApply; }; var V = function() { function a(c, b, e) { void 0 === e && (e = !1); this.parent = c; this.object = b; this.global = c ? c.global : this; this.isWith = e; this.cache = []; this.defaultNamespace = null; } a.prototype.findDepth = function(a) { for (var c = this, b = 0;c;) { if (c.object === a) { return b; } b++; c = c.parent; } return -1; }; a.prototype.getScopeObjects = function() { for (var a = [], c = this;c;) { a.unshift(c.object), c = c.parent; } return a; }; a.prototype.getScopeProperty = function(a) { return this.findScopeProperty(a, !0, !1).axGetProperty(a); }; a.prototype.findScopeProperty = function(a, c, e) { null === a.name && this.global.object.sec.throwError("ReferenceError", b.Errors.UndefinedVarError, "*"); var h; if (!e && !a.isRuntime() && (h = this.cache[a.id])) { return h; } if (this.object && (this.isWith ? this.object.axHasPropertyInternal(a) : this.object.traits.getTrait(a.namespaces, a.name))) { return this.isWith || a.isRuntime() ? this.object : this.cache[a.id] = this.object; } if (this.parent) { return h = this.parent.findScopeProperty(a, c, e), 7 === a.kind && (this.cache[a.id] = h), h; } if (e) { return null; } a.isAttribute() && this.object.sec.throwError("ReferenceError", b.Errors.UndefinedVarError, a.name); e = this.global.object; if (h = e.applicationDomain.findProperty(a, c, !0)) { return h; } c && (a.getPublicMangledName() in e || this.global.object.sec.throwError("ReferenceError", b.Errors.UndefinedVarError, a.name)); return e; }; return a; }(); b.Scope = V; b.applyTraits = I; b.AXBasePrototype = null; Function.prototype.axApply = Function.prototype.apply; Function.prototype.axCall = Function.prototype.call; b.safeGetPrototypeOf = P; var ca = function() { function a(c, b) { this.object = c; this.index = b; } a.prototype.next = function(a, c) { if (f.isNullOrUndefined(a)) { this.index = 0, this.object = null; } else { this.object = a; this.index = c; var b = a.axNextNameIndex(this.index); if (0 < b) { this.index = b; } else { for (;;) { a = P(a); if (!a) { this.index = 0; this.object = null; break; } b = a.axNextNameIndex(0); if (0 < b) { this.index = b; this.object = a; break; } } } } }; return a; }(); b.HasNext2Info = ca; b.scopeStacks = []; b.getCurrentScope = function() { return 0 === b.scopeStacks.length ? null : b.scopeStacks[b.scopeStacks.length - 1].topScope(); }; b.getCurrentABC = function() { return 0 === b.scopeStacks.length ? null : b.scopeStacks[b.scopeStacks.length - 1].topScope().global.object.scriptInfo.abc; }; ca = function() { function f() { if (!b.AXBasePrototype) { var a = b.AS.ASObject.prototype; b.AXBasePrototype = Object.create(null); N(b.AXBasePrototype, "axHasPropertyInternal", a.axHasPropertyInternal); N(b.AXBasePrototype, "axHasProperty", a.axHasProperty); N(b.AXBasePrototype, "axSetProperty", a.axSetProperty); N(b.AXBasePrototype, "axHasProperty", a.axHasProperty); N(b.AXBasePrototype, "axHasPublicProperty", a.axHasPublicProperty); N(b.AXBasePrototype, "axSetPublicProperty", a.axSetPublicProperty); N(b.AXBasePrototype, "axGetPublicProperty", a.axGetPublicProperty); N(b.AXBasePrototype, "axCallPublicProperty", a.axCallPublicProperty); N(b.AXBasePrototype, "axDeletePublicProperty", a.axDeletePublicProperty); N(b.AXBasePrototype, "axGetProperty", a.axGetProperty); N(b.AXBasePrototype, "axDeleteProperty", a.axDeleteProperty); N(b.AXBasePrototype, "axGetSuper", a.axGetSuper); N(b.AXBasePrototype, "axSetSuper", a.axSetSuper); N(b.AXBasePrototype, "axSetSlot", a.axSetSlot); N(b.AXBasePrototype, "axGetSlot", a.axGetSlot); N(b.AXBasePrototype, "axCallProperty", a.axCallProperty); N(b.AXBasePrototype, "axCallSuper", a.axCallSuper); N(b.AXBasePrototype, "axConstructProperty", a.axConstructProperty); N(b.AXBasePrototype, "axResolveMultiname", a.axResolveMultiname); N(b.AXBasePrototype, "axNextNameIndex", a.axNextNameIndex); N(b.AXBasePrototype, "axNextName", a.axNextName); N(b.AXBasePrototype, "axNextValue", a.axNextValue); N(b.AXBasePrototype, "axGetEnumerableKeys", a.axGetEnumerableKeys); N(b.AXBasePrototype, "axImplementsInterface", x); N(b.AXBasePrototype, "traits", new b.RuntimeTraits(null, null, Object.create(null))); N(b.AXBasePrototype, "isPrototypeOf", Object.prototype.isPrototypeOf); N(b.AXBasePrototype, "hasOwnProperty", Object.prototype.hasOwnProperty); b.AXBasePrototype.$BgtoString = E; b.AXBasePrototype.toString = J; b.AXBasePrototype.$BgvalueOf = L; b.AXBasePrototype.valueOf = M; } this.system = new S(this, null); this.application = new S(this, this.system); this.classAliases = new b.ClassAliases; this.nativeClasses = Object.create(null); this.vectorClasses = new Map; this._catalogs = []; } Object.defineProperty(f.prototype, "xmlParser", {get:function() { return this._xmlParser || (this._xmlParser = new b.AS.XMLParser(this)); }, enumerable:!0, configurable:!0}); Object.defineProperty(f.prototype, "AXFunctionUndefinedPrototype", {get:function() { return this._AXFunctionUndefinedPrototype || (this._AXFunctionUndefinedPrototype = this.createObject()); }, enumerable:!0, configurable:!0}); f.prototype.addCatalog = function(a) { this._catalogs.push(a); }; f.prototype.findDefiningABC = function(a) { b.runtimeWriter && b.runtimeWriter.writeLn("findDefiningABC: " + a); for (var c = null, e = 0;e < this._catalogs.length;e++) { if (c = this._catalogs[e].getABCByMultiname(a)) { return c; } } return null; }; f.prototype.throwError = function(a, c, b, e, h, d) { throw this.createError.apply(this, arguments); }; f.prototype.createError = function(a, c, e, h, d, m) { var l = b.formatErrorMessage.apply(null, g(arguments, 1)), v = b.Multiname.FromFQNString(a, 0); return this.system.getProperty(v, !0, !0).axConstruct([l, c.code]); }; f.prototype.applyType = function(a, c) { this.ObjectVector.axClass.superClass.dPrototype.isPrototypeOf(a.dPrototype) || this.throwError("TypeError", b.Errors.TypeAppOfNonParamType); 1 !== c.length && this.throwError("TypeError", b.Errors.WrongTypeArgCountError, "__AS3__.vec::Vector", 1, c.length); return this.getVectorClass(c[0] || this.AXObject); }; f.prototype.getVectorClass = function(a) { var c = this.vectorClasses.get(a); if (c) { return c; } switch(a ? a.classInfo.instanceInfo.getName().getMangledName() : "$BgObject") { case "$BgNumber": ; case "$Bgdouble": c = this.Float64Vector.axClass; break; case "$Bgint": c = this.Int32Vector.axClass; break; case "$Bguint": c = this.Uint32Vector.axClass; break; default: c = this.createVectorClass(a); } this.vectorClasses.set(a, c); return c; }; f.prototype.createVectorClass = function(a) { var c = this.ObjectVector.axClass, b = Object.create(c); b.tPrototype = Object.create(c.tPrototype); b.tPrototype.axClass = b; b.dPrototype = c.dPrototype; b.superClass = c; b.type = a; return b; }; f.prototype.createObject = function() { return Object.create(this.AXObject.tPrototype); }; f.prototype.createObjectFromJS = function(a, c) { void 0 === c && (c = !1); for (var e = Object.keys(a), h = this.createObject(), d = 0;d < e.length;d++) { var m = a[e[d]]; c && (m = b.AS.transformJSValueToAS(this, m, !0)); h.axSetPublicProperty(e[d], m); } return h; }; f.prototype.createArrayUnsafe = function(a) { var c = Object.create(this.AXArray.tPrototype); c.value = a; return c; }; f.prototype.createArray = function(a) { var c = this.createArrayUnsafe([]), b; for (b in a) { c.axSetPublicProperty(b, a[b]); } c.length = a.length; return c; }; f.prototype.boxFunction = function(a) { var c = Object.create(this.AXFunction.tPrototype); c.value = a; return c; }; f.prototype.createClass = function(a, c, e) { var h = a.instanceInfo, d = h.getName().toFQNString(!1), m = this.nativeClasses[d] || Object.create(this.AXClass.tPrototype), l = new V(e, m); this.nativeClasses[d] ? m.tPrototype.axInitializer = this.createInitializerFunction(a, l) : h.isInterface() ? (m.dPrototype = Object.create(this.objectPrototype), m.tPrototype = Object.create(m.dPrototype), m.tPrototype.axInitializer = Q, m.axIsInstanceOf = F, m.axIsType = y) : (m.dPrototype = c === this.AXObject ? Object.create(this.objectPrototype) : Object.create(c.dPrototype), m.tPrototype = Object.create(m.dPrototype), m.tPrototype.axInitializer = this.createInitializerFunction(a, l)); m.classInfo = m.dPrototype.classInfo = a; m.dPrototype.axClass = m; m.superClass = c; m.scope = e; "Object" !== d && "Class" !== d && this.initializeRuntimeTraits(m, c, l); N(m.dPrototype, "$Bgconstructor", m); b.AS.tryLinkNativeClass(m); a = a.getInitializer(); c = a.getBody().code; 208 === c[0] && 48 === c[1] && 71 === c[2] || b.interpret(m, a, l, [m], null); return m; }; f.prototype.initializeRuntimeTraits = function(a, c, b) { var e = a.classInfo, h = e.instanceInfo, d; d = a === this.AXClass ? h.traits.resolveRuntimeTraits(null, null, b) : e.traits.resolveRuntimeTraits(this.AXClass.classInfo.instanceInfo.runtimeTraits, null, b.parent); e.runtimeTraits = d; I(a, d); c = c ? c.classInfo.instanceInfo.runtimeTraits : null; e = e.abc.getNamespace(h.protectedNs); b = h.traits.resolveRuntimeTraits(c, e, b); h.runtimeTraits = b; I(a.tPrototype, b); }; f.prototype.createFunction = function(a, c) { var e = this.boxFunction(function() { return b.interpret(this === jsGlobal ? c.global.object : this, a, c, arguments, e); }); e.receiver = {scope:c}; return e; }; f.prototype.createInitializerFunction = function(a, c) { var e = a.instanceInfo.getInitializer(), h = b.AS.getNativeInitializer(a); h || (h = function() { return b.interpret(this, e, c, arguments, null); }, h.methodInfo = e); return h; }; f.prototype.createActivation = function(a, c) { var b = a.getBody(); b.activationPrototype || (b.traits.resolve(), b.activationPrototype = Object.create(this.AXActivationPrototype), U(b.activationPrototype, "traits", b.traits.resolveRuntimeTraits(null, null, c))); return Object.create(b.activationPrototype); }; f.prototype.createCatch = function(a, c) { if (!a.catchPrototype) { var b = a.getTraits(); a.catchPrototype = Object.create(this.AXCatchPrototype); U(a.catchPrototype, "traits", b.resolveRuntimeTraits(null, null, c)); } return Object.create(a.catchPrototype); }; f.prototype.box = function(a) { if (void 0 == a || b.AXBasePrototype.isPrototypeOf(a)) { return a; } if (a instanceof Array) { return this.AXArray.axBox(a); } if ("number" === typeof a) { return this.AXNumber.axBox(a); } if ("boolean" === typeof a) { return this.AXBoolean.axBox(a); } if ("string" === typeof a) { return this.AXString.axBox(a); } X(!1, "Cannot box: " + a); }; f.prototype.isPrimitive = function(a) { return A(a) || this.AXPrimitiveBox.dPrototype.isPrototypeOf(a); }; f.prototype.createAXGlobal = function(a, c) { var b = Object.create(this.AXGlobalPrototype); b.applicationDomain = a; b.scriptInfo = c; var e = b.scope = new V(null, b, !1), e = c.traits.resolveRuntimeTraits(this.AXObject.classInfo.instanceInfo.runtimeTraits, null, e); I(b, e); return b; }; f.prototype.prepareRootClassPrototype = function() { var a = Object.create(this.objectPrototype), a = Object.create(a); a.$BgtoString = function() { return "[class " + this.classInfo.instanceInfo.getName().name + "]"; }; N(a, "axBox", q); N(a, "axCoerce", B); N(a, "axIsType", C); N(a, "axAsType", D); N(a, "axIsInstanceOf", G); N(a, "axConstruct", R); N(a, "axApply", W); Object.defineProperty(a, "name", {get:function() { return this.classInfo.instanceInfo.name; }}); this.rootClassPrototype = a; }; f.prototype.initializeCoreNatives = function() { this.prepareRootClassPrototype(); var a = this.prepareNativeClass("AXClass", "Class", !1); a.classInfo = this.system.findClassInfo("Class"); a.defaultValue = null; this.prepareNativeClass("AXObject", "Object", !1).classInfo = this.system.findClassInfo("Object"); var c = this.prepareNativeClass("AXFunction", "Function", !1); N(c, "axBox", u); var a = new V(null, a, !1), c = this.AXObject.classInfo, b = c.instanceInfo, b = b.runtimeTraits = b.traits.resolveRuntimeTraits(null, null, a); I(this.AXObject.tPrototype, b); var e = this.AXClass.classInfo, h = e.instanceInfo; h.runtimeTraits = h.traits.resolveRuntimeTraits(b, null, a); I(this.AXClass.tPrototype, h.runtimeTraits); e.runtimeTraits = e.traits.resolveRuntimeTraits(b, null, a); I(this.AXClass, e.runtimeTraits); c.runtimeTraits = c.traits.resolveRuntimeTraits(h.runtimeTraits, null, a); I(this.AXObject, c.runtimeTraits); }; f.prototype.prepareNativeClass = function(a, c, b) { var e = Object.create(this.rootClassPrototype); "Object" === c ? (e.dPrototype = Object.getPrototypeOf(this.objectPrototype), e.tPrototype = this.objectPrototype) : "Class" === c ? (e.dPrototype = Object.getPrototypeOf(this.rootClassPrototype), e.tPrototype = this.rootClassPrototype) : (e.dPrototype = Object.create(b ? this.AXPrimitiveBox.dPrototype : "AXMethodClosure" === a ? this.AXFunction.dPrototype : this.objectPrototype), e.tPrototype = Object.create(e.dPrototype)); return this[a] = this.nativeClasses[c] = e; }; f.prototype.preparePrimitiveClass = function(a, c, b, e, h, d, m) { a = this.prepareNativeClass(a, c, !0); N(a, "axBox", u); N(a, "axApply", function(a, c) { return b(c && c.length ? c[0] : e); }); N(a, "axConstruct", function(a) { return b(a && a.length ? a[0] : e); }); N(a, "axCoerce", h); N(a, "axIsType", d); N(a, "axIsInstanceOf", m); N(a.dPrototype, "value", e); return a; }; f.prototype.initialize = function() { var g = Object.create(b.AXBasePrototype); g.sec = this; Object.defineProperty(this, "objectPrototype", {value:Object.create(g)}); this.initializeCoreNatives(); this.AXGlobalPrototype = Object.create(this.objectPrototype); this.AXGlobalPrototype.$BgtoString = function() { return "[object global]"; }; this.AXActivationPrototype = Object.create(this.objectPrototype); this.AXActivationPrototype.$BgtoString = function() { return "[Activation]"; }; this.AXCatchPrototype = Object.create(this.objectPrototype); this.AXCatchPrototype.$BgtoString = function() { return "[Catch]"; }; var f = this.AXObject, g = this.AXFunction; N(f, "axApply", r); N(f, "axConstruct", d); N(f.tPrototype, "axInitializer", O); N(f, "axCoerce", k); this.prepareNativeClass("AXMethodClosure", "builtin.as$0.MethodClosure", !1); this.prepareNativeClass("AXError", "Error", !1); this.prepareNativeClass("AXMath", "Math", !1); this.prepareNativeClass("AXDate", "Date", !1); this.prepareNativeClass("AXXML", "XML", !1); this.prepareNativeClass("AXXMLList", "XMLList", !1); this.prepareNativeClass("AXQName", "QName", !1); this.prepareNativeClass("AXNamespace", "Namespace", !1); f = this.prepareNativeClass("AXArray", "Array", !1); N(f, "axBox", u); f.tPrototype.$BgtoString = g.axBox(function() { return this.value.toString(); }); f.dPrototype.value = []; this.argumentsPrototype = Object.create(this.AXArray.tPrototype); Object.defineProperty(this.argumentsPrototype, "$Bgcallee", {get:z}); this.prepareNativeClass("AXRegExp", "RegExp", !1).dPrototype.value = /(?:)/; f = this.prepareNativeClass("AXPrimitiveBox", "PrimitiveBox", !1); N(f.dPrototype, "$BgtoString", g.axBox(function() { return this.value.toString(); })); this.preparePrimitiveClass("AXBoolean", "Boolean", l, !1, l, v, v); this.preparePrimitiveClass("AXString", "String", t, "", n, w, w); this.preparePrimitiveClass("AXNumber", "Number", e, 0, e, p, p); this.preparePrimitiveClass("AXInt", "int", a, 0, a, h, K); this.preparePrimitiveClass("AXUint", "uint", c, 0, c, m, K); b.AS.installClassLoaders(this.application, this); b.AS.installNativeFunctions(this); }; return f; }(); b.AXSecurityDomain = ca; var S = function() { function a(c, b) { this.sec = c; this.system = (this.parent = b) ? b.system : this; this._abcs = []; } a.prototype.loadABC = function(a) { X(0 > this._abcs.indexOf(a)); this._abcs.push(a); }; a.prototype.loadAndExecuteABC = function(a) { this.loadABC(a); this.executeABC(a); }; a.prototype.executeABC = function(a) { this.executeScript(a.scripts[a.scripts.length - 1]); }; a.prototype.findClassInfo = function(a) { for (var c = 0;c < this._abcs.length;c++) { for (var b = this._abcs[c], e = 0;e < b.instances.length;e++) { var h = b.classes[e]; if (h.instanceInfo.getName().name === a) { return h; } } } return null; }; a.prototype.executeScript = function(a) { X(0 === a.state); b.runtimeWriter && b.runtimeWriter.writeLn("Running Script: " + a); var c = this.sec.createAXGlobal(this, a); a.global = c; a.state = 1; b.interpret(c, a.getInitializer(), c.scope, [], null); a.state = 2; }; a.prototype.findProperty = function(a, c, b) { return (a = this.findDefiningScript(a, b)) ? a.global : null; }; a.prototype.getClass = function(a) { return this.getProperty(a, !0, !0); }; a.prototype.getProperty = function(a, c, b) { return (c = this.findProperty(a, c, b)) ? c.axGetProperty(a) : null; }; a.prototype.findDefiningScript = function(a, c) { var b; if (this.parent && (b = this.parent.findDefiningScript(a, c))) { return b; } for (var e = 0;e < this._abcs.length;e++) { if (b = this._abcs[e], b = this._findDefiningScriptInABC(b, a, c)) { return b; } } return (b = this.system.sec.findDefiningABC(a)) ? (this.loadABC(b), b = this._findDefiningScriptInABC(b, a, c)) : null; }; a.prototype._findDefiningScriptInABC = function(a, c, b) { a = a.scripts; for (var e = 0;e < a.length;e++) { var h = a[e], d = h.traits; d.resolve(); if (d.getTrait(c)) { return b && 0 === h.state && this.executeScript(h), h; } } return null; }; return a; }(); b.AXApplicationDomain = S; })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { var f = function() { return function() { }; }(); b.ASObject = f; var u = function(b) { function g() { b.apply(this, arguments); } __extends(g, b); return g; }(f); b.ASNative = u; f = function(b) { function g() { b.apply(this, arguments); } __extends(g, b); return g; }(f); b.ASError = f; })(b.AS || (b.AS = {})); })(f.AVM2 || (f.AVM2 = {})); })(Shumway || (Shumway = {})); var as3Compatibility = !0; function as3ToLowerCase(f) { for (var b = null, g = 0;g < f.length;g++) { var q = f.charCodeAt(g); 4256 <= q && 4293 >= q && (b || (b = Array(f.length)), b[g] = String.fromCharCode(q + 48)); } if (b) { for (g = 0;g < b.length;g++) { b[g] || (b[g] = f.charAt(g).toLocaleString()); } return b.join(""); } return f.toLowerCase(); } (function(f) { (function(b) { (function(g) { function q(a, c) { for (var b = 0, e = a.length;b < e;b++) { c[a[b]] || (c[a[b]] = Object.create(null)), c = c[a[b]]; } return c; } function u(a) { return function(c) { for (var b = [], e = 1;e < arguments.length;e++) { b[e - 1] = arguments[e]; } return a.apply(jsGlobal, b); }; } function k(a, c) { var e = new F(null, 0, 17, [], null); e.namespaces = c ? [c] : [b.Namespace.PUBLIC]; e.name = a; return e; } function r(a) { return f.isIndex(a) ? a : "$Bg" + a; } function d(a, c, b) { B(a, c, a.sec.AXFunction.axBox(b)); } function a(a, c) { if (1 === c.length && "number" === typeof c[0]) { var e = c[0]; try { return Array(e); } catch (h) { a.throwError("RangeError", b.Errors.ArrayIndexNotIntegerError, e); } } return Array.apply(Array, c); } function c(a) { if (!a || !a.sec) { throw new TypeError("Conversion to Array failed"); } return a.sec.AXArray.axCoerce(a); } function e(a, c, b) { if ("object" !== typeof c || x(c)) { return c; } if (Array.isArray(c)) { for (var h = [], d = 0;d < c.length;d++) { var m = c[d], m = b ? e(a, m, !0) : m; h.push(m); } return a.createArray(h); } return a.createObjectFromJS(c, b); } function l(a, c, b) { if ("object" !== typeof c || x(c)) { return c; } if (a.AXArray.axIsType(c)) { var e = []; c = c.value; for (var h = 0;h < c.length;h++) { var d = c[h], d = b ? l(a, d, !0) : d; e.push(d); } return e; } e = Object.keys(c); d = {}; for (h = 0;h < e.length;h++) { var m = e[h], v = m; f.isNumeric(m) || (v = m.substr(3)); m = c[m]; b && (m = l(a, m, !0)); d[v] = m; } return d; } function n(a, c) { var b = a.createArray(c); b.axSetPublicProperty("index", c.index); b.axSetPublicProperty("input", c.input); return b; } function t(a, c, e, h) { var d = c[e]; if (Array.isArray(d)) { for (var m = 0, l = d.length;m < l;m++) { var v = t(a, d, b.axCoerceString(m), h); void 0 === v ? delete d[m] : d[m] = v; } } else { if (null !== d && "boolean" !== typeof d && "number" !== typeof d && "string" !== typeof d) { for (m in d) { if (!d.hasOwnProperty(m) || !F.isPublicQualifiedName(m)) { break; } v = t(a, d, m, h); void 0 === v ? delete d[m] : d[m] = v; } } } return h.call(c, e, d); } function p(a, c, b, e) { void 0 === b && (b = a); void 0 === e && (e = 0); E[a] = c; na.push({name:a, alias:b, nsType:e}); } function h(a, c) { J[a] = c; } function m(a) { return Date.now() - a.flash.display.Loader.axClass.runtimeStartTime; } function v(a, c, e) { null !== c && void 0 !== c || a.throwError("TypeError", b.Errors.NullPointerError, "request"); a.flash.net.URLRequest.axClass.axIsType(c) || a.throwError("TypeError", b.Errors.CheckTypeFailedError, c, "flash.net.URLRequest"); c = c.url; x(c) && a.throwError("TypeError", b.Errors.NullPointerError, "url"); if (0 === c.toLowerCase().indexOf("fscommand:")) { var h = a.flash.system.fscommand.value; h(a, c.substring(10), e); } else { f.FileLoadingService.instance.navigateTo(c, e); } } function w(a) { var c = null, e; a.holder instanceof b.InstanceInfo ? (c = a.holder.getClassName(), a = Y[c] || E[c], e = [a.prototype], a.instanceNatives && y(e, a.instanceNatives)) : a.holder instanceof b.ClassInfo && (c = a.holder.instanceInfo.getClassName(), a = Y[c] || E[c], e = [a], a.classNatives && y(e, a.classNatives)); return e; } function H(a, c, b) { for (var e = 0;e < c.traits.length;e++) { var h = c.traits[e], d; a: { d = a; for (var m = h.getName().name, l = 0;l < d.length;l++) { var v = d[l]; if (0 <= v.indexOf(m)) { var p = "!" === v[v.length - 1]; p && (v = v.slice(0, v.length - 1)); if (m === v) { d = p; break a; } } } d = !1; } if (d) { if (h.isConst()) { C("Don't link against const traits."); break; } d = h.getName().name; m = h.getName().getMangledName(); h.isSlot() ? Object.defineProperty(b, d, {get:new Function("", "return this." + m + "//# sourceURL=get-" + m + ".as"), set:new Function("v", "this." + m + " = v;//# sourceURL=set-" + m + ".as")}) : h.isGetter() ? Object.defineProperty(b, d, {get:new Function("", "return this." + m + "//# sourceURL=get-" + m + ".as")}) : C(h.toString()); } } } function K(a) { return 0 !== a.indexOf("native_"); } function z(a, c, e, h) { Object.defineProperty(c, h, {get:function() { function d() { return m.axConstruct(arguments); } b.runtimeWriter && b.runtimeWriter.writeLn("Running Memoizer: " + e.name); var m = a.getClass(e); d.axIsType = function(a) { return m.axIsType(a); }; d.axClass = m; Object.defineProperty(c, h, {value:d, writable:!1}); return d; }, configurable:!0}); } var A = f.ObjectUtilities.hasOwnProperty, B = f.ObjectUtilities.defineNonEnumerableProperty, x = f.isNullOrUndefined, C = f.Debug.notImplemented, y = f.ArrayUtilities.pushMany, D = f.ObjectUtilities.copyOwnPropertyDescriptors, G = f.ObjectUtilities.copyPropertiesByList, F = f.AVMX.Multiname; new f.IndentingWriter; var I; (function(a) { function c(a, b) { switch(typeof b) { case "undefined": return "void"; case "object": return null === b ? "null" : b.classInfo.instanceInfo.name.toFQNString(!0); case "number": return (b | 0) === b ? "int" : "Number"; case "string": return "String"; case "boolean": return "Boolean"; } } a.print = function(a, c, b, e, h, d) { var m = Array.prototype.slice.call(arguments, 1); jsGlobal.print.apply(null, m); }; a.debugBreak = function(a) { debugger; }; a.bugzilla = function(a, c) { switch(c) { case 574600: return !0; } return !1; }; a.decodeURI = function(a, c) { try { return jsGlobal.decodeURI(c); } catch (e) { a.throwError("URIError", b.Errors.InvalidURIError, "decodeURI"); } }; a.decodeURIComponent = function(a, c) { try { return jsGlobal.decodeURIComponent(c); } catch (e) { a.throwError("URIError", b.Errors.InvalidURIError, "decodeURIComponent"); } }; a.encodeURI = function(a, c) { try { return jsGlobal.encodeURI(c); } catch (e) { a.throwError("URIError", b.Errors.InvalidURIError, "encodeURI"); } }; a.encodeURIComponent = function(a, c) { try { return jsGlobal.encodeURIComponent(c); } catch (e) { a.throwError("URIError", b.Errors.InvalidURIError, "encodeURIComponent"); } }; a.isNaN = u(jsGlobal.isNaN); a.isFinite = u(jsGlobal.isFinite); a.parseInt = u(jsGlobal.parseInt); a.parseFloat = u(jsGlobal.parseFloat); a.escape = u(jsGlobal.escape); a.unescape = u(jsGlobal.unescape); a.isXMLName = function() { return !1; }; a.notImplemented = u(jsGlobal.Shumway.Debug.notImplemented); a.getQualifiedClassName = c; a.getQualifiedSuperclassName = function(a, b) { if (x(b)) { return "null"; } b = a.box(b); var e = b.sec.AXClass.axIsType(b) ? b.superClass : b.axClass.superClass; return c(a, e); }; a.getDefinitionByName = function(a, c) { c = b.axCoerceString(c).replace("::", "."); var e = F.FromFQNString(c, 0); return b.getCurrentABC().env.app.getClass(e); }; a.describeType = function(a, c, b) { return g.describeType(a, c, b); }; a.describeTypeJSON = function(a, c, b) { return g.describeTypeJSON(a, c, b); }; })(I = g.Natives || (g.Natives = {})); var E = f.ObjectUtilities.createMap(), J = f.ObjectUtilities.createMap(); g.getNative = function(a) { for (var c = a.split("."), b = I, e = 0, h = c.length;e < h;e++) { b = b && b[c[e]]; } b || (b = J[a]); return b; }; var L = new F(null, 0, 17, [], null); g.makeMultiname = k; g.addPrototypeFunctionAlias = d; g.checkReceiverType = function(a, c, e) { c.dPrototype.isPrototypeOf(a) || a.sec.throwError("TypeError", b.Errors.InvokeOnIncompatibleObjectError, e); }; var M = function() { function a() { } a.classInitializer = function() { var c = this.dPrototype, b = a.prototype; d(c, "$BghasOwnProperty", b.native_hasOwnProperty); d(c, "$BgpropertyIsEnumerable", b.native_propertyIsEnumerable); d(c, "$BgsetPropertyIsEnumerable", b.native_setPropertyIsEnumerable); d(c, "$BgisPrototypeOf", b.native_isPrototypeOf); d(c, "$BgtoLocaleString", b.toString); }; a._init = function() { }; a.init = function() { }; a.prototype.native_isPrototypeOf = function(a) { return this.isPrototypeOf(this.sec.box(a)); }; a.prototype.native_hasOwnProperty = function(a) { return this.axHasOwnProperty(k(a)); }; a.prototype.native_propertyIsEnumerable = function(a) { a = Object.getOwnPropertyDescriptor(this, r(b.axCoerceString(a))); return !!a && a.enumerable; }; a.prototype.native_setPropertyIsEnumerable = function(a, c) { void 0 === c && (c = !0); var e = r(b.axCoerceString(a)); c = !!c; var h = this.axClass.classInfo.instanceInfo; h.isSealed() && this !== this.axClass.dPrototype && this.sec.throwError("ReferenceError", b.Errors.WriteSealedError, a, h.name.name); h = Object.getOwnPropertyDescriptor(this.axClass.tPrototype, e); h && this !== this.axClass.dPrototype || (h = Object.getOwnPropertyDescriptor(this, e)) && h.enumerable !== c && (h.enumerable = c, Object.defineProperty(this, e, h)); }; a.prototype.axResolveMultiname = function(a) { var c = a.name; return "number" === typeof c || f.isNumeric(c = b.axCoerceName(c)) ? +c : (a = this.traits.getTrait(a.namespaces, c)) ? a.name.getMangledName() : "$Bg" + c; }; a.prototype.axHasProperty = function(a) { return this.axHasPropertyInternal(a); }; a.prototype.axHasPublicProperty = function(a) { L.name = a; return this.axHasProperty(L); }; a.prototype.axSetProperty = function(a, c, e) { var h = a.name; if ("number" === typeof h || f.isNumeric(h = b.axCoerceName(h))) { this[+h] = c; } else { var d = !1, m = this.traits.getTrait(a.namespaces, h); if (m) { a = m.name.getMangledName(); switch(m.kind) { case 1: this.sec.throwError("ReferenceError", b.Errors.CannotAssignToMethodError, h, this.axClass.name.name); case 2: this.sec.throwError("ReferenceError", b.Errors.ConstWriteError, h, this.axClass.name.name); case 4: ; case 6: 104 !== e && this.sec.throwError("ReferenceError", b.Errors.ConstWriteError, h, this.axClass.name.name), d = !0; } (e = m.getType()) && (c = e.axCoerce(c)); } else { a = "$Bg" + h; } this[a] = c; d && Object.defineProperty(this, a, {__proto__:null, writable:!1}); } }; a.prototype.axGetProperty = function(a) { a = this.axResolveMultiname(a); var c = this[a]; return "function" === typeof c ? this.axGetMethod(a) : c; }; a.prototype.axGetMethod = function(a) { var c = this._methodClosureCache; c || (Object.defineProperty(this, "_methodClosureCache", {value:Object.create(null)}), c = this._methodClosureCache); var b = c[a]; b || (b = c[a] = this.sec.AXMethodClosure.Create(this, this[a])); return b; }; a.prototype.axGetSuper = function(a, c) { var e = b.axCoerceName(a.name), e = c.parent.object.tPrototype.traits.getTrait(a.namespaces, e); return 2 === e.kind || 7 === e.kind ? e.get.call(this) : this[e.name.getMangledName()]; }; a.prototype.axSetSuper = function(a, c, e) { var h = b.axCoerceName(a.name); a = c.parent.object.tPrototype.traits.getTrait(a.namespaces, h); (c = a.getType()) && (e = c.axCoerce(e)); 3 === a.kind || 7 === a.kind ? a.set.call(this, e) : this[a.name.getMangledName()] = e; }; a.prototype.axDeleteProperty = function(a) { var c = b.axCoerceName(a.name); return this.traits.getTrait(a.namespaces, c) ? !1 : delete this[a.getPublicMangledName()]; }; a.prototype.axCallProperty = function(a, c, e) { a = this[this.axResolveMultiname(a)]; b.validateCall(this.sec, a, c.length); return a.axApply(e ? null : this, c); }; a.prototype.axCallSuper = function(a, c, e) { a = this.axResolveMultiname(a); c = c.parent.object.tPrototype[a]; b.validateCall(this.sec, c, e.length); return c.axApply(this, e); }; a.prototype.axConstructProperty = function(a, c) { var e = this[this.axResolveMultiname(a)]; b.validateConstruct(this.sec, e, c.length); return e.axConstruct(c); }; a.prototype.axHasPropertyInternal = function(a) { return this.axResolveMultiname(a) in this; }; a.prototype.axHasOwnProperty = function(a) { a = this.axResolveMultiname(a); return this.hasOwnProperty(a) || this.axClass.tPrototype.hasOwnProperty(a); }; a.prototype.axGetEnumerableKeys = function() { if (this.sec.isPrimitive(this)) { return []; } for (var a = Object.getPrototypeOf(this), c = Object.keys(this), b = [], e = 0;e < c.length;e++) { var h = c[e]; f.isNumeric(h) ? b.push(h) : a.hasOwnProperty(h) || (h = F.stripPublicMangledName(h), void 0 !== h && b.push(h)); } return b; }; a.prototype.axGetPublicProperty = function(a) { return this[F.getPublicMangledName(a)]; }; a.prototype.axSetPublicProperty = function(a, c) { this[F.getPublicMangledName(a)] = c; }; a.prototype.axCallPublicProperty = function(a, c) { return this[F.getPublicMangledName(a)].axApply(this, c); }; a.prototype.axDeletePublicProperty = function(a) { return delete this[F.getPublicMangledName(a)]; }; a.prototype.axGetSlot = function(a) { return this[this.traits.getSlot(a).name.getMangledName()]; }; a.prototype.axSetSlot = function(a, c) { var b = this.traits.getSlot(a), e = b.name.getMangledName(), b = b.getType(); this[e] = b ? b.axCoerce(c) : c; }; a.prototype.axNextNameIndex = function(a) { 0 === a && B(this, "axEnumerableKeys", this.axGetEnumerableKeys()); for (var c = this.axEnumerableKeys;a < c.length;) { L.name = c[a]; if (this.axHasPropertyInternal(L)) { return a + 1; } a++; } return 0; }; a.prototype.axNextName = function(a) { return this.axEnumerableKeys[a - 1]; }; a.prototype.axNextValue = function(a) { return this.axGetPublicProperty(this.axNextName(a)); }; a.prototype.axSetNumericProperty = function(a, c) { this.axSetPublicProperty(a, c); }; a.prototype.axGetNumericProperty = function(a) { return this.axGetPublicProperty(a); }; a.classSymbols = null; a.instanceSymbols = null; return a; }(); g.ASObject = M; var P = function(a) { function c() { a.apply(this, arguments); } __extends(c, a); c.prototype.axCoerce = function(a) { return a; }; Object.defineProperty(c.prototype, "prototype", {get:function() { return this.dPrototype; }, enumerable:!0, configurable:!0}); c.classInitializer = null; return c; }(M); g.ASClass = P; var R = function(e) { function h() { e.call(this); this.value = a(this.sec, arguments); } __extends(h, e); h.classInitializer = function() { var a = this.dPrototype, c = h.prototype; B(this, "$BgCASEINSENSITIVE", 1); B(this, "$BgDESCENDING", 2); B(this, "$BgUNIQUESORT", 4); B(this, "$BgRETURNINDEXEDARRAY", 8); B(this, "$BgNUMERIC", 16); d(a, "$Bgpush", c.generic_push); d(a, "$Bgpop", c.generic_pop); d(a, "$Bgshift", c.generic_shift); d(a, "$Bgunshift", c.generic_unshift); d(a, "$Bgreverse", c.generic_reverse); d(a, "$Bgconcat", c.generic_concat); d(a, "$Bgslice", c.generic_slice); d(a, "$Bgsplice", c.generic_splice); d(a, "$Bgjoin", c.generic_join); d(a, "$BgtoString", c.generic_toString); d(a, "$BgindexOf", c.generic_indexOf); d(a, "$BglastIndexOf", c.generic_lastIndexOf); d(a, "$Bgevery", c.generic_every); d(a, "$Bgsome", c.generic_some); d(a, "$BgforEach", c.generic_forEach); d(a, "$Bgmap", c.generic_map); d(a, "$Bgfilter", c.generic_filter); d(a, "$Bgsort", c.generic_sort); d(a, "$BgsortOn", c.generic_sortOn); d(a, "$BghasOwnProperty", c.native_hasOwnProperty); d(a, "$BgpropertyIsEnumerable", c.native_propertyIsEnumerable); d(a, "$BgtoLocaleString", c.generic_toString); }; h.prototype.native_hasOwnProperty = function(a) { return this.axHasOwnProperty(k(a)); }; h.prototype.native_propertyIsEnumerable = function(a) { if ("number" === typeof a || f.isNumeric(a = b.axCoerceName(a))) { return a = Object.getOwnPropertyDescriptor(this.value, a), !!a && a.enumerable; } e.prototype.native_propertyIsEnumerable.call(this, a); }; h.axApply = function(c, b) { return this.sec.createArrayUnsafe(a(this.sec, b)); }; h.axConstruct = function(c) { return this.sec.createArrayUnsafe(a(this.sec, c)); }; h.prototype.push = function() { if (4294967295 < this.value.length + arguments.length) { for (var a = 4294967295 - this.value.length, c = 0;c < a;c++) { this.value.push(arguments[c]); } return 4294967295; } return this.value.push.apply(this.value, arguments); }; h.prototype.generic_push = function() { if (this && this.value instanceof Array) { return this.push.apply(this, arguments); } for (var a = this.axGetPublicProperty("length") >>> 0, c = 0;c < arguments.length;c++) { this.axSetNumericProperty(a++, arguments[c]); } this.axSetPublicProperty("length", a); return a; }; h.prototype.pop = function() { return this.value.pop(); }; h.prototype.generic_pop = function() { if (this && this.value instanceof Array) { return this.value.pop(); } var a = this.axGetPublicProperty("length") >>> 0; if (a) { var c = this.axGetNumericProperty(a - 1); L.name = a - 1; L.namespaces = [b.Namespace.PUBLIC]; this.axDeleteProperty(L); this.axSetPublicProperty("length", a - 1); return c; } this.axSetPublicProperty("length", 0); }; h.prototype.shift = function() { return this.value.shift(); }; h.prototype.generic_shift = function() { return c(this).shift(); }; h.prototype.unshift = function() { return this.value.unshift.apply(this.value, arguments); }; h.prototype.generic_unshift = function() { var a = c(this); return a.value.unshift.apply(a.value, arguments); }; h.prototype.reverse = function() { this.value.reverse(); return this; }; h.prototype.generic_reverse = function() { return c(this).reverse(); }; h.prototype.concat = function() { for (var a = this.value.slice(), c = 0;c < arguments.length;c++) { var b = arguments[c]; "object" === typeof b && b && b.sec && Array.isArray(b.value) ? a.push.apply(a, b.value) : a.push(b); } return this.sec.createArrayUnsafe(a); }; h.prototype.generic_concat = function() { return c(this).concat.apply(this, arguments); }; h.prototype.slice = function(a, c) { return this.sec.createArray(this.value.slice(a, c)); }; h.prototype.generic_slice = function(a, b) { return c(this).slice(a, b); }; h.prototype.splice = function() { var a = this.value; return 0 === arguments.length ? void 0 : this.sec.createArray(a.splice.apply(a, arguments)); }; h.prototype.generic_splice = function() { return c(this).splice.apply(this, arguments); }; h.prototype.join = function(a) { return this.value.join(a); }; h.prototype.generic_join = function(a) { return c(this).join(a); }; h.prototype.toString = function() { return this.value.join(","); }; h.prototype.generic_toString = function() { return c(this).join(","); }; h.prototype.indexOf = function(a, c) { return this.value.indexOf(a, c | 0); }; h.prototype.generic_indexOf = function(a, b) { return c(this).indexOf(a, b | 0); }; h.prototype.lastIndexOf = function(a, c) { return this.value.lastIndexOf(a, 1 < arguments.length ? c : 2147483647); }; h.prototype.generic_lastIndexOf = function(a, b) { return c(this).lastIndexOf(a, 1 < arguments.length ? b : 2147483647); }; h.prototype.every = function(a, c) { if (!a || !a.value || "function" !== typeof a.value) { return !0; } c = b.ensureBoxedReceiver(this.sec, c, a); for (var e = this.value, h = 0;h < e.length;h++) { if (!0 !== a.value.call(c, e[h], h, e)) { return !1; } } return !0; }; h.prototype.generic_every = function(a, b) { return c(this).every(a, b); }; h.prototype.some = function(a, c) { if (!a || !a.value || "function" !== typeof a.value) { return !1; } c = b.ensureBoxedReceiver(this.sec, c, a); var e = this; return this.value.some(function(b, h, d) { return a.value.call(c, b, h, e); }); }; h.prototype.generic_some = function(a, b) { return c(this).some(a, b); }; h.prototype.forEach = function(a, c) { if (a && a.value && "function" === typeof a.value) { c = b.ensureBoxedReceiver(this.sec, c, a); var e = this; this.value.forEach(function(b, h) { a.value.call(c, b, h, e); }); } }; h.prototype.generic_forEach = function(a, b) { return c(this).forEach(a, b); }; h.prototype.map = function(a, c) { if (!a || !a.value || "function" !== typeof a.value) { return this.sec.createArrayUnsafe([]); } c = b.ensureBoxedReceiver(this.sec, c, a); var e = this; return this.sec.createArrayUnsafe(this.value.map(function(b, h) { return a.value.call(c, b, h, e); })); }; h.prototype.generic_map = function(a, b) { return c(this).map(a, b); }; h.prototype.filter = function(a, c) { if (!a || !a.value || "function" !== typeof a.value) { return this.sec.createArrayUnsafe([]); } c = b.ensureBoxedReceiver(this.sec, c, a); for (var e = [], h = this.value, d = 0;d < h.length;d++) { !0 === a.value.call(c, h[d], d, h) && e.push(h[d]); } return this.sec.createArrayUnsafe(e); }; h.prototype.generic_filter = function(a, b) { return c(this).filter(a, b); }; h.prototype.toLocaleString = function() { for (var a = this.sec.AXArray.axCoerce(this).value, c = "", b = 0, e = a.length;b < e;b++) { var h = a[b]; null !== h && void 0 !== h && (c += h.toLocaleString()); b + 1 < e && (c += ","); } return c; }; h.prototype.sort = function() { var a = this.value; if (0 === arguments.length) { return a.sort(), this; } var c, e = 0; this.sec.AXFunction.axIsInstanceOf(arguments[0]) ? c = arguments[0].value : f.isNumber(arguments[0]) && (e = arguments[0]); f.isNumber(arguments[1]) && (e = arguments[1]); if (!e) { return a.sort(c), this; } c || (c = b.axDefaultCompareFunction); var h = e & 2 ? -1 : 1; a.sort(function(a, d) { return b.axCompare(a, d, e, h, c); }); return this; }; h.prototype.generic_sort = function() { return c(this).sort.apply(this, arguments); }; h.prototype.sortOn = function(a, c) { 0 === arguments.length && this.sec.throwError("ArgumentError", b.Errors.WrongArgumentCountError, "Array/http://adobe.com/AS3/2006/builtin::sortOn()", "1", "0"); var e = this.value, h = []; if (f.isString(a)) { a = [F.getPublicMangledName(a)], h = [c | 0]; } else { if (a && Array.isArray(a.value)) { a = a.value; for (var d = 0;d < a.length;d++) { a[d] = F.getPublicMangledName(a[d]); } if (c && Array.isArray(c.value)) { if (c = c.value, c.length === a.length) { for (d = 0;d < c.length;d++) { h[d] = c[d] | 0; } } else { for (d = 0;d < a.length;d++) { h[d] = 0; } } } else { for (var m = c | 0, d = 0;d < a.length;d++) { h[d] = m; } } } else { return this; } } m = h[0]; e.sort(function(c, e) { return b.axCompareFields(c, e, a, h); }); return this; }; h.prototype.generic_sortOn = function() { return c(this).sortOn.apply(this, arguments); }; Object.defineProperty(h.prototype, "length", {get:function() { return this.value.length; }, set:function(a) { this.value.length = a >>> 0; }, enumerable:!0, configurable:!0}); h.prototype.axGetEnumerableKeys = function() { return Object.keys(this.value).concat(e.prototype.axGetEnumerableKeys.call(this)); }; h.prototype.axHasPropertyInternal = function(a) { var c = a.name; return "number" === typeof c || f.isNumeric(c = b.axCoerceName(c)) ? c in this.value : this.traits.getTrait(a.namespaces, c) ? !0 : "$Bg" + c in this; }; h.prototype.axHasOwnProperty = function(a) { var c = a.name; return "number" === typeof c || f.isNumeric(c = b.axCoerceName(c)) ? this.value.hasOwnProperty(c) : !!this.traits.getTrait(a.namespaces, c) || this.hasOwnProperty("$Bg" + c); }; h.prototype.axGetProperty = function(a) { var c = a.name; return "number" === typeof c || f.isNumeric(c = b.axCoerceName(c)) ? this.value[c] : e.prototype.axGetProperty.call(this, a); }; h.prototype.axSetProperty = function(a, c, h) { var d = a.name; "number" === typeof d || f.isNumeric(d = b.axCoerceName(d)) ? this.value[d] = c : e.prototype.axSetProperty.call(this, a, c, h); }; h.prototype.axDeleteProperty = function(a) { var c = a.name; return "number" === typeof c || f.isNumeric(c = b.axCoerceName(c)) ? delete this.value[c] : this.traits.getTrait(a.namespaces, c) ? !1 : delete this["$Bg" + c]; }; h.prototype.axGetPublicProperty = function(a) { return "number" === typeof a || f.isNumeric(a = b.axCoerceName(a)) ? this.value[a] : this["$Bg" + a]; }; h.prototype.axSetPublicProperty = function(a, c) { "number" === typeof a || f.isNumeric(a = b.axCoerceName(a)) ? this.value[a] = c : this["$Bg" + a] = c; }; return h; }(M); g.ASArray = R; var O = function(a) { function c() { a.apply(this, arguments); this._prototypeInitialzed = !1; } __extends(c, a); c.classInitializer = function() { var a = this.dPrototype, b = c.prototype; d(a, "$BgtoString", b.toString); d(a, "$Bgcall", b.call); d(a, "$Bgapply", b.apply); B(a, "value", b.native_functionValue); }; c.prototype.axConstruct = function(a) { var c = this.prototype; x(c) && (c = this.sec.AXFunctionUndefinedPrototype); c = Object.create(c); c.__ctorFunction = this; this.value.apply(c, a); return c; }; c.prototype.axIsInstanceOf = function(a) { return a && a.__ctorFunction === this; }; c.prototype.native_functionValue = function() { }; Object.defineProperty(c.prototype, "prototype", {get:function() { this._prototypeInitialzed || (this._prototype = Object.create(this.sec.AXObject.tPrototype), this._prototypeInitialzed = !0); return this._prototype; }, set:function(a) { x(a) ? a = void 0 : ("object" !== typeof a || this.sec.isPrimitive(a)) && this.sec.throwError("TypeError", b.Errors.PrototypeTypeError); this._prototypeInitialzed = !0; this._prototype = a; }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "length", {get:function() { return this.value.length; }, enumerable:!0, configurable:!0}); c.prototype.toString = function() { return "function Function() {}"; }; c.prototype.call = function(a) { a = b.ensureBoxedReceiver(this.sec, a, this); return this.value.apply(a, b.sliceArguments(arguments, 1)); }; c.prototype.apply = function(a, c) { a = b.ensureBoxedReceiver(this.sec, a, this); return this.value.apply(a, c ? c.value : void 0); }; c.prototype.axCall = function(a) { return this.value.apply(a, b.sliceArguments(arguments, 1)); }; c.prototype.axApply = function(a, c) { return this.value.apply(a, c); }; return c; }(M); g.ASFunction = O; var Q = function(a) { function c() { a.apply(this, arguments); } __extends(c, a); c.classInitializer = function() { var a = this.dPrototype, b = c.prototype; B(a, "$Bgcall", b.call); B(a, "$Bgapply", b.apply); }; c.Create = function(a, c) { var b = Object.create(this.sec.AXMethodClosure.tPrototype); b.receiver = a; b.value = c; b.methodInfo = c.methodInfo; return b; }; Object.defineProperty(c.prototype, "prototype", {get:function() { return null; }, set:function(a) { this.sec.throwError("ReferenceError", b.Errors.ConstWriteError, "prototype", "MethodClosure"); }, enumerable:!0, configurable:!0}); c.prototype.axCall = function(a) { return this.value.apply(this.receiver, b.sliceArguments(arguments, 1)); }; c.prototype.axApply = function(a, c) { return this.value.apply(this.receiver, c); }; c.prototype.call = function(a) { return this.value.apply(this.receiver, b.sliceArguments(arguments, 1)); }; c.prototype.apply = function(a, c) { return this.value.apply(this.receiver, c ? c.value : void 0); }; return c; }(O); g.ASMethodClosure = Q; var W = function(a) { function c() { a.apply(this, arguments); } __extends(c, a); c.classInitializer = function() { var a = this.dPrototype, b = c.prototype; d(a, "$BgtoString", b.toString); d(a, "$BgvalueOf", b.valueOf); }; c.prototype.toString = function() { return this.value.toString(); }; c.prototype.valueOf = function() { return this.value.valueOf(); }; return c; }(M); g.ASBoolean = W; var T = function(a) { function c() { a.apply(this, arguments); } __extends(c, a); c.classInitializer = function() { var a = this.dPrototype, b = c.prototype; d(a, "$BgindexOf", b.generic_indexOf); d(a, "$BglastIndexOf", b.generic_lastIndexOf); d(a, "$BgcharAt", b.generic_charAt); d(a, "$BgcharCodeAt", b.generic_charCodeAt); d(a, "$Bgconcat", b.generic_concat); d(a, "$BglocaleCompare", b.generic_localeCompare); d(a, "$Bgmatch", b.generic_match); d(a, "$Bgreplace", b.generic_replace); d(a, "$Bgsearch", b.generic_search); d(a, "$Bgslice", b.generic_slice); d(a, "$Bgsplit", b.generic_split); d(a, "$Bgsubstring", b.generic_substring); d(a, "$Bgsubstr", b.generic_substr); d(a, "$BgtoLowerCase", b.generic_toLowerCase); d(a, "$BgtoLocaleLowerCase", b.generic_toLowerCase); d(a, "$BgtoUpperCase", b.generic_toUpperCase); d(a, "$BgtoLocaleUpperCase", b.generic_toUpperCase); d(a, "$BgtoString", b.toString); d(a, "$BgtoString", b.public_toString); d(a, "$BgvalueOf", b.public_valueOf); d(this, "$BgfromCharCode", c.fromCharCode); }; c.fromCharCode = function() { for (var a = [], c = 0;c < arguments.length;c++) { a[c - 0] = arguments[c]; } return String.fromCharCode.apply(null, a); }; c.prototype.indexOf = function(a, c) { return this.value.indexOf(a, c); }; c.prototype.lastIndexOf = function(a, c) { return this.value.lastIndexOf(a, c); }; c.prototype.charAt = function(a) { return this.value.charAt(a); }; c.prototype.charCodeAt = function(a) { return this.value.charCodeAt(a); }; c.prototype.concat = function() { return this.value.concat.apply(this.value, arguments); }; c.prototype.localeCompare = function(a) { 1 < arguments.length && this.sec.throwError("ArgumentError", b.Errors.WrongArgumentCountError, "Function/()", 0, 2); var c = this.value; a = String(a); if (a === c) { return 0; } for (var e = Math.min(c.length, a.length), h = 0;h < e;h++) { if (c[h] !== a[h]) { return c.charCodeAt(h) - a.charCodeAt(h); } } return c.length > a.length ? 1 : -1; }; c.prototype.match = function(a) { a = this.sec.AXRegExp.axIsType(a) ? a.value : b.axCoerceString(a); a = this.value.match(a); if (!a) { return null; } try { return n(this.sec, a); } catch (c) { return null; } }; c.prototype.replace = function(a, c) { a = this.sec.AXRegExp.axIsType(a) ? a.value : b.axCoerceString(a); this.sec.AXFunction.axIsType(c) && (c = c.value); try { return this.value.replace(a, c); } catch (e) { return this.value; } }; c.prototype.search = function(a) { a = this.sec.AXRegExp.axIsType(a) ? a.value : b.axCoerceString(a); try { return this.value.search(a); } catch (c) { return -1; } }; c.prototype.slice = function(a, c) { a = 1 > arguments.length ? 0 : a | 0; c = 2 > arguments.length ? 4294967295 : c | 0; return this.value.slice(a, c); }; c.prototype.split = function(a, c) { a = this.sec.AXRegExp.axIsType(a) ? a.value : b.axCoerceString(a); try { return this.sec.createArray(this.value.split(a, void 0 === c ? -1 : c | 0)); } catch (e) { return this.sec.createArrayUnsafe([this.value]); } }; c.prototype.substring = function(a, c) { return this.value.substring(a, c); }; c.prototype.substr = function(a, c) { return this.value.substr(a, c); }; c.prototype.toLocaleLowerCase = function() { return this.value.toLowerCase(); }; c.prototype.toLowerCase = function() { return as3Compatibility ? as3ToLowerCase(this.value) : this.value.toLowerCase(); }; c.prototype.toLocaleUpperCase = function() { return this.value.toUpperCase(); }; c.prototype.toUpperCase = function() { return this.value.toUpperCase(); }; c.prototype.generic_indexOf = function(a, c) { return String.prototype.indexOf.call(void 0 == this ? "" : this, a, c); }; c.prototype.generic_lastIndexOf = function(a, c) { return String.prototype.lastIndexOf.call(void 0 == this ? "" : this, a, c); }; c.prototype.generic_charAt = function(a) { return String.prototype.charAt.call(void 0 == this ? "" : this, a); }; c.prototype.generic_charCodeAt = function(a) { return String.prototype.charCodeAt.call(void 0 == this ? "" : this, a); }; c.prototype.generic_concat = function() { return String.prototype.concat.apply(void 0 == this ? "" : this, arguments); }; c.prototype.generic_localeCompare = function(a) { var c = this.sec.AXString.axBox(String(this)); return c.localeCompare.apply(c, arguments); }; c.prototype.generic_match = function(a) { return this.sec.AXString.axBox(String(this)).match(a); }; c.prototype.generic_replace = function(a, c) { return this.sec.AXString.axBox(String(this)).replace(a, c); }; c.prototype.generic_search = function(a) { return this.sec.AXString.axBox(String(this)).search(a); }; c.prototype.generic_slice = function(a, c) { return String.prototype.slice.call(void 0 == this ? "" : this, a, c); }; c.prototype.generic_split = function(a, c) { c = 2 > arguments.length ? 4294967295 : c | 0; return this.sec.AXString.axBox(String(this)).split(a, c); }; c.prototype.generic_substring = function(a, c) { return String.prototype.substring.call(void 0 == this ? "" : this, a, c); }; c.prototype.generic_substr = function(a, c) { return String.prototype.substr.call(void 0 == this ? "" : this, a, c); }; c.prototype.generic_toLowerCase = function() { var a = void 0 == this ? "" : this; if (as3Compatibility) { return as3ToLowerCase(String(a)); } String.prototype.toLowerCase.call(a); }; c.prototype.generic_toUpperCase = function() { return String.prototype.toUpperCase.call(void 0 == this ? "" : this); }; c.prototype.toString = function() { return this.value.toString(); }; c.prototype.public_toString = function() { if (this === this.sec.AXString.dPrototype) { return ""; } this.axClass !== this.sec.AXString && this.sec.throwError("TypeError", b.Errors.InvokeOnIncompatibleObjectError, "String.prototype.toString"); return this.value.toString(); }; c.prototype.valueOf = function() { return this.value.valueOf(); }; c.prototype.public_valueOf = function() { if (this === this.sec.AXString.dPrototype) { return ""; } this.axClass !== this.sec.AXString && this.sec.throwError("TypeError", b.Errors.InvokeOnIncompatibleObjectError, "String.prototype.valueOf"); return this.value.valueOf(); }; Object.defineProperty(c.prototype, "length", {get:function() { return this.value.length; }, enumerable:!0, configurable:!0}); c.classNatives = [String]; return c; }(M); g.ASString = T; var X = function(a) { function c() { a.apply(this, arguments); } __extends(c, a); c.classInitializer = function() { var a = this.dPrototype, b = c.prototype; d(a, "$BgtoString", b.toString); d(a, "$BgtoLocaleString", b.toString); d(a, "$BgvalueOf", b.valueOf); d(a, "$BgtoFixed", b.toFixed); d(a, "$BgtoExponential", b.toExponential); d(a, "$BgtoPrecision", b.toPrecision); B(this, "$BgNaN", Number.NaN); B(this, "$BgNEGATIVE_INFINITY", -1 / 0); B(this, "$BgPOSITIVE_INFINITY", 1 / 0); B(this, "$BgMAX_VALUE", Number.MAX_VALUE); B(this, "$BgMIN_VALUE", Number.MIN_VALUE); B(this, "$BgE", Math.E); B(this, "$BgLN10", Math.LN10); B(this, "$BgLN2", Math.LN2); B(this, "$BgLOG10E", Math.LOG10E); B(this, "$BgLOG2E", Math.LOG2E); B(this, "$BgPI", Math.PI); B(this, "$BgSQRT1_2", Math.SQRT2); B(this, "$BgSQRT2", Math.SQRT2); }; c.prototype.toString = function(a) { 0 === arguments.length ? a = 10 : (a |= 0, (2 > a || 36 < a) && this.sec.throwError("RangeError", b.Errors.InvalidRadixError, a)); this.axClass !== this.sec.AXNumber && this.sec.throwError("TypeError", b.Errors.InvokeOnIncompatibleObjectError, "Number.prototype.toString"); return this.value.toString(a); }; c.prototype.valueOf = function() { this.axClass !== this.sec.AXNumber && this.sec.throwError("TypeError", b.Errors.InvokeOnIncompatibleObjectError, "Number.prototype.valueOf"); return this.value; }; c.prototype.toExponential = function(a) { a |= 0; (0 > a || 20 < a) && this.sec.throwError("RangeError", b.Errors.InvalidPrecisionError); return this.axClass !== this.sec.AXNumber ? "NaN" : this.value.toExponential(a); }; c.prototype.toPrecision = function(a) { a = a ? a | 0 : 1; (1 > a || 21 < a) && this.sec.throwError("RangeError", b.Errors.InvalidPrecisionError); return this.axClass !== this.sec.AXNumber ? "NaN" : this.value.toPrecision(a); }; c.prototype.toFixed = function(a) { a |= 0; (0 > a || 20 < a) && this.sec.throwError("RangeError", b.Errors.InvalidPrecisionError); return this.axClass !== this.sec.AXNumber ? "NaN" : this.value.toFixed(a); }; c._minValue = function() { return Number.MIN_VALUE; }; c.convertStringToDouble = function(a) { var c = a.indexOf(String.fromCharCode(0)); return 0 <= c ? +a.substring(0, c) : +a; }; c.classNatives = [Math]; return c; }(M); g.ASNumber = X; var N = function(a) { function c() { a.apply(this, arguments); } __extends(c, a); c.classInitializer = function() { var a = this.dPrototype, b = c.prototype; d(a, "$BgtoString", b.toString); d(a, "$BgtoLocaleString", b.toString); d(a, "$BgvalueOf", b.valueOf); B(this, "$BgMAX_VALUE", 2147483647); B(this, "$BgMIN_VALUE", -2147483648); }; c.prototype.toString = function(a) { 0 === arguments.length ? a = 10 : (a |= 0, (2 > a || 36 < a) && this.sec.throwError("RangeError", b.Errors.InvalidRadixError, a)); this.axClass !== this.sec.AXNumber && this.sec.throwError("TypeError", b.Errors.InvokeOnIncompatibleObjectError, "Number.prototype.toString"); return this.value.toString(a); }; c.prototype.valueOf = function() { this.axClass !== this.sec.AXNumber && this.sec.throwError("TypeError", b.Errors.InvokeOnIncompatibleObjectError, "Number.prototype.valueOf"); return this.value; }; c.staticNatives = [Math]; c.instanceNatives = [X.prototype]; return c; }(X); g.ASInt = N; var U = function(a) { function c() { a.apply(this, arguments); } __extends(c, a); c.classInitializer = function() { var a = this.dPrototype, b = c.prototype; d(a, "$BgtoString", b.toString); d(a, "$BgtoLocaleString", b.toString); d(a, "$BgvalueOf", b.valueOf); B(this, "$BgMAX_VALUE", 4294967295); B(this, "$BgMIN_VALUE", 0); }; c.prototype.toString = function(a) { 0 === arguments.length ? a = 10 : (a |= 0, (2 > a || 36 < a) && this.sec.throwError("RangeError", b.Errors.InvalidRadixError, a)); this.axClass !== this.sec.AXNumber && this.sec.throwError("TypeError", b.Errors.InvokeOnIncompatibleObjectError, "Number.prototype.toString"); return this.value.toString(a); }; c.prototype.valueOf = function() { this.axClass !== this.sec.AXNumber && this.sec.throwError("TypeError", b.Errors.InvokeOnIncompatibleObjectError, "Number.prototype.valueOf"); return this.value; }; c.staticNatives = [Math]; c.instanceNatives = [X.prototype]; return c; }(X); g.ASUint = U; var V = function(a) { function c() { a.apply(this, arguments); } __extends(c, a); c.classNatives = [Math]; c.classInitializer = function() { B(this, "$BgE", Math.E); B(this, "$BgLN10", Math.LN10); B(this, "$BgLN2", Math.LN2); B(this, "$BgLOG10E", Math.LOG10E); B(this, "$BgLOG2E", Math.LOG2E); B(this, "$BgPI", Math.PI); B(this, "$BgSQRT1_2", Math.SQRT2); B(this, "$BgSQRT2", Math.SQRT2); }; return c; }(M); g.ASMath = V; var ca = function(a) { function c(e, h) { a.call(this); this._extended = this._dotall = !1; this._captureNames = []; var d; if (void 0 === e) { e = d = ""; } else { if (this.sec.AXRegExp.axIsType(e)) { h && this.sec.throwError("TypeError", b.Errors.RegExpFlagsArgumentError), d = e.source, e = e.value; } else { e = String(e); d = e.replace(/(^|^[\/]|(?:\\\\)+)\//g, "$1\\/"); if (h) { var m = h; h = ""; for (var l = 0;l < m.length;l++) { var v = m[l]; switch(v) { case "s": this._dotall = !0; break; case "x": this._extended = !0; case "g": ; case "i": ; case "m": h += v; } } } e = this._parse(d); } } this.value = new RegExp(e, h); this._source = d; } __extends(c, a); c.prototype._parse = function(a) { for (var b = "", e = this._captureNames, h = [], d = 0, m = 0;m < a.length;m++) { var l = a[m]; switch(l) { case "(": b += l; h.push(1 < d ? d - 1 : d); d = 0; if ("?" === a[m + 1]) { switch(a[m + 2]) { case ":": ; case "=": ; case "!": b += "?" + a[m + 2]; m += 2; break; default: if (/\(\?P<([\w$]+)>/.exec(a.substr(m))) { l = RegExp.$1, "length" !== l && e.push(l), e.indexOf(l), m += RegExp.lastMatch.length - 1; } else { return c.UNMATCHABLE_PATTERN; } ; } } else { e.push(null); } if (406 < e.length) { return c.UNMATCHABLE_PATTERN; } break; case ")": if (!h.length) { return c.UNMATCHABLE_PATTERN; } b += l; d = h.pop() + 1; break; case "|": b += l; break; case "\\": b += l; /\\|c[A-Z]|x[0-9,a-z,A-Z]{2}|u[0-9,a-z,A-Z]{4}|./.exec(a.substr(m + 1)) && (b += RegExp.lastMatch, m += RegExp.lastMatch.length); 1 >= d && d++; break; case "[": if (/\[[^\]]*\]/.exec(a.substr(m))) { b += RegExp.lastMatch, m += RegExp.lastMatch.length - 1, 1 >= d && d++; } else { return c.UNMATCHABLE_PATTERN; } break; case "{": if (/\{[^\{]*?(?:,[^\{]*?)?\}/.exec(a.substr(m))) { b += RegExp.lastMatch, m += RegExp.lastMatch.length - 1; } else { return c.UNMATCHABLE_PATTERN; } break; case ".": b = this._dotall ? b + "[\\s\\S]" : b + l; 1 >= d && d++; break; case "?": ; case "*": ; case "+": if (!d) { return c.UNMATCHABLE_PATTERN; } b += l; "?" === a[m + 1] && (m++, b += "?"); break; case " ": if (this._extended) { break; } ; default: b += l, 1 >= d && d++; } if (32767 < b.length) { return c.UNMATCHABLE_PATTERN; } } return h.length ? c.UNMATCHABLE_PATTERN : b; }; c.prototype.ecmaToString = function() { var a = "/" + this._source + "/"; this.value.global && (a += "g"); this.value.ignoreCase && (a += "i"); this.value.multiline && (a += "m"); this._dotall && (a += "s"); this._extended && (a += "x"); return a; }; c.prototype.axCall = function(a) { return this.exec.apply(this, arguments); }; c.prototype.axApply = function(a, c) { return this.exec.apply(this, c); }; Object.defineProperty(c.prototype, "source", {get:function() { return this._source; }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "global", {get:function() { return this.value.global; }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "ignoreCase", {get:function() { return this.value.ignoreCase; }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "multiline", {get:function() { return this.value.multiline; }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "lastIndex", {get:function() { return this.value.lastIndex; }, set:function(a) { this.value.lastIndex = a; }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "dotall", {get:function() { return this._dotall; }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "extended", {get:function() { return this._extended; }, enumerable:!0, configurable:!0}); c.prototype.exec = function(a) { void 0 === a && (a = ""); a = this.value.exec(a); if (!a) { return null; } var c = n(this.sec, a), b = this._captureNames; if (b) { for (var e = 0;e < b.length;e++) { var h = b[e]; if (null !== h) { var d = a[e + 1] || ""; a[h] = d; c.axSetPublicProperty(h, d); } } return c; } }; c.prototype.test = function(a) { void 0 === a && (a = ""); return null !== this.exec(a); }; c.UNMATCHABLE_PATTERN = "^(?!)$"; c.classInitializer = function() { var a = this.dPrototype, b = c.prototype; d(a, "$BgtoString", b.ecmaToString); d(a, "$Bgexec", b.exec); d(a, "$Bgtest", b.test); }; return c; }(M); g.ASRegExp = ca; var S = function(a) { function c(b, e) { a.call(this); 1 > arguments.length && (b = ""); this.$Bgmessage = String(b); this._errorID = e | 0; } __extends(c, a); c.throwError = function(a, c) { for (var e = [b.getErrorInfo(c)], h = 2;h < arguments.length;h++) { e.push(arguments[h]); } e = b.formatErrorMessage.apply(null, e); throw a.axConstruct([e, c]); }; c.classInitializer = function(a) { B(this, "$Bglength", 1); B(this.dPrototype, "$Bgname", this.classInfo.instanceInfo.getName().name); a === c && (B(this.dPrototype, "$Bgmessage", "Error"), B(this.dPrototype, "$BgtoString", c.prototype.toString)); }; c.prototype.toString = function() { return "" !== this.$Bgmessage ? this.$Bgname + ": " + this.$Bgmessage : this.$Bgname; }; Object.defineProperty(c.prototype, "errorID", {get:function() { return this._errorID; }, enumerable:!0, configurable:!0}); c.prototype.getStackTrace = function() { return null; }; c.getErrorMessage = f.AVMX.getErrorMessage; return c; }(M); g.ASError = S; var Z = function(a) { function c() { a.apply(this, arguments); } __extends(c, a); return c; }(S); g.ASDefinitionError = Z; var ba = function(a) { function c() { a.apply(this, arguments); } __extends(c, a); return c; }(S); g.ASEvalError = ba; var aa = function(a) { function c() { a.apply(this, arguments); } __extends(c, a); return c; }(S); g.ASRangeError = aa; var ea = function(a) { function c() { a.apply(this, arguments); } __extends(c, a); return c; }(S); g.ASReferenceError = ea; var da = function(a) { function c() { a.apply(this, arguments); } __extends(c, a); return c; }(S); g.ASSecurityError = da; var fa = function(a) { function c() { a.apply(this, arguments); } __extends(c, a); return c; }(S); g.ASSyntaxError = fa; var ha = function(a) { function c() { a.apply(this, arguments); } __extends(c, a); return c; }(S); g.ASTypeError = ha; var ka = function(a) { function c() { a.apply(this, arguments); } __extends(c, a); return c; }(S); g.ASURIError = ka; var ga = function(a) { function c() { a.apply(this, arguments); } __extends(c, a); return c; }(S); g.ASVerifyError = ga; var ia = function(a) { function c() { a.apply(this, arguments); } __extends(c, a); return c; }(S); g.ASUninitializedError = ia; var ja = function(a) { function c() { a.apply(this, arguments); } __extends(c, a); return c; }(S); g.ASArgumentError = ja; var la = function(a) { function c() { a.apply(this, arguments); } __extends(c, a); return c; }(S); g.ASIOError = la; var qa = function(a) { function c() { a.apply(this, arguments); } __extends(c, a); return c; }(S); g.ASEOFError = qa; var ra = function(a) { function c() { a.apply(this, arguments); } __extends(c, a); return c; }(S); g.ASMemoryError = ra; var sa = function(a) { function c() { a.apply(this, arguments); } __extends(c, a); return c; }(S); g.ASIllegalOperationError = sa; g.transformJSValueToAS = e; g.transformASValueToJS = l; var ta = function(a) { function c() { a.apply(this, arguments); } __extends(c, a); c.parse = function(a, c) { void 0 === c && (c = null); a = b.axCoerceString(a); null === c || b.axIsCallable(c) || this.sec.throwError("TypeError", b.Errors.CheckTypeFailedError, c, "Function"); null === a && this.sec.throwError("SyntaxError", b.Errors.JSONInvalidParseInput); try { var h = e(this.sec, JSON.parse(a), !0); } catch (d) { this.sec.throwError("SyntaxError", b.Errors.JSONInvalidParseInput); } return null === c ? h : t(this.sec, {"":h}, "", c.value); }; c.stringify = function(a, c, e) { void 0 === c && (c = null); void 0 === e && (e = null); if (null !== c) { var h = "object" === typeof c ? c.sec : null; h && (h.AXFunction.axIsType(c) || h.AXArray.axIsType(c)) || this.sec.throwError("TypeError", b.Errors.JSONInvalidReplacer); } e = "string" === typeof e ? 10 < e.length ? e.substring(0, 10) : e : "number" === typeof e ? " ".substring(0, Math.min(10, e | 0)) : ""; return null === c ? this.stringifySpecializedToString(a, null, null, e) : h.AXArray.axIsType(c) ? this.stringifySpecializedToString(a, this.computePropertyList(c.value), null, e) : this.stringifySpecializedToString(a, null, c.value, e); }; c.computePropertyList = function(a) { for (var c = [], e = Object.create(null), h = 0, d = a.length;h < d;h++) { if (a.hasOwnProperty(h)) { var m = a[h], l = null; "string" === typeof m ? l = m : "number" === typeof m && (l = b.axCoerceString(m)); null === l || e[l] || (e[l] = !0, c.push(l)); } } return c; }; c.stringifySpecializedToString = function(a, c, e, h) { try { return void 0 === a ? "null" : JSON.stringify(l(this.sec, a, !0), e, h); } catch (d) { this.sec.throwError("TypeError", b.Errors.JSONCyclicStructure); } }; return c; }(M); g.ASJSON = ta; var Y = f.ObjectUtilities.createMap(), E = f.ObjectUtilities.createMap(), na = []; g.initializeBuiltins = function() { Y.Object = M; Y.Class = P; Y.Function = O; Y.Boolean = W; Y["builtin.as$0.MethodClosure"] = Q; Y.Namespace = g.ASNamespace; Y.Number = X; Y["int"] = N; Y.uint = U; Y.String = T; Y.Array = R; Y["__AS3__.vec.Vector"] = g.Vector; Y["__AS3__.vec.Vector$object"] = g.GenericVector; Y["__AS3__.vec.Vector$int"] = g.Int32Vector; Y["__AS3__.vec.Vector$uint"] = g.Uint32Vector; Y["__AS3__.vec.Vector$double"] = g.Float64Vector; Y.Namespace = g.ASNamespace; Y.QName = g.ASQName; Y.XML = g.ASXML; Y.XMLList = g.ASXMLList; Y["flash.xml.XMLNode"] = g.flash.xml.XMLNode; Y["flash.xml.XMLDocument"] = g.flash.xml.XMLDocument; Y["flash.xml.XMLParser"] = g.flash.xml.XMLParser; Y["flash.xml.XMLTag"] = g.flash.xml.XMLTag; Y["flash.xml.XMLNodeType"] = g.flash.xml.XMLNodeType; Y.Math = V; Y.Date = g.ASDate; Y.RegExp = ca; Y.JSON = ta; Y["flash.utils.Proxy"] = g.flash.utils.ASProxy; Y["flash.utils.Dictionary"] = g.flash.utils.Dictionary; Y["flash.utils.ByteArray"] = g.flash.utils.ByteArray; Y["avmplus.System"] = g.flash.system.OriginalSystem; Y.Error = S; Y.DefinitionError = Z; Y.EvalError = ba; Y.RangeError = aa; Y.ReferenceError = ea; Y.SecurityError = da; Y.SyntaxError = fa; Y.TypeError = ha; Y.URIError = ka; Y.VerifyError = ga; Y.UninitializedError = ia; Y.ArgumentError = ja; Y["flash.errors.IOError"] = la; Y["flash.errors.EOFError"] = qa; Y["flash.errors.MemoryError"] = ra; Y["flash.errors.IllegalOperationError"] = sa; }; g.registerNativeClass = p; g.registerNativeFunction = h; p("__AS3__.vec.Vector$object", g.GenericVector, "ObjectVector", 2); p("__AS3__.vec.Vector$int", g.Int32Vector, "Int32Vector", 2); p("__AS3__.vec.Vector$uint", g.Uint32Vector, "Uint32Vector", 2); p("__AS3__.vec.Vector$double", g.Float64Vector, "Float64Vector", 2); g.FlashUtilScript_getTimer = m; g.FlashNetScript_navigateToURL = v; h("FlashUtilScript::getDefinitionByName", function(a, c) { var e = String(c).replace("::", "."); return b.getCurrentABC().env.app.getClass(F.FromSimpleName(e)); }); J["FlashUtilScript::getTimer"] = m; J["FlashUtilScript::navigateToURL"] = v; J["FlashNetScript::navigateToURL"] = v; h("FlashNetScript::sendToURL", function(a, c) { x(c) && a.throwError("TypeError", b.Errors.NullPointerError, "request"); a.flash.net.URLRequest.axClass.axIsType(c) || a.throwError("TypeError", b.Errors.CheckTypeFailedError, c, "flash.net.URLRequest"); var e = f.FileLoadingService.instance.createSession(); e.onprogress = function() { }; e.open(c); }); J["FlashUtilScript::escapeMultiByte"] = u(jsGlobal.escape); J["FlashUtilScript::unescapeMultiByte"] = u(jsGlobal.unescape); h("Toplevel::registerClassAlias", function(a, c, e) { (c = b.axCoerceString(c)) || a.throwError("TypeError", b.Errors.NullPointerError, "aliasName"); e || a.throwError("TypeError", b.Errors.NullPointerError, "classObject"); a.classAliases.registerClassAlias(c, e); }); h("Toplevel::getClassByAlias", function(a, c) { (c = b.axCoerceString(c)) || a.throwError("TypeError", b.Errors.NullPointerError, "aliasName"); var e = a.classAliases.getClassByAlias(c); e || a.throwError("ReferenceError", b.Errors.ClassNotFoundError, c); return e; }); g.getNativesForTrait = w; g.getNativeInitializer = function(a) { var c = a.instanceInfo.getInitializer(); a = a.instanceInfo.getClassName(); a = Y[a] || E[a]; return c.isNative() ? a : null; }; g.getMethodOrAccessorNative = function(a) { for (var c = w(a), b = a.getName().name, e = 0;e < c.length;e++) { var h = c[e], d = b; !A(h, b) && A(h, "native_" + b) && (d = "native_" + b); if (A(h, d)) { return a.isAccessor() ? (c = Object.getOwnPropertyDescriptor(h, d), a = a.isGetter() ? c.get : c.set) : a = h[d], a; } } f.Debug.warning("No native method for: " + a.holder + " " + a + ", make sure you've got the static keyword for static methods."); return null; }; g.tryLinkNativeClass = function(a) { var c = a.classInfo.instanceInfo.getClassName(); if (c = Y[c] || E[c]) { a.asClass = c; c.classSymbols && H(c.classSymbols, a.classInfo.traits, a); c.instanceSymbols && H(c.instanceSymbols, a.classInfo.instanceInfo.traits, a.tPrototype); if (c.classNatives) { for (var e = 0;e < c.classNatives.length;e++) { D(a, c.classNatives[e], K); } } D(a, c, K, !0, !0); if (c.instanceNatives) { for (e = 0;e < c.instanceNatives.length;e++) { D(a.dPrototype, c.instanceNatives[e], K); } } D(a.dPrototype, c.prototype, K); G(a.dPrototype, c.prototype, va); c.classInitializer && c.classInitializer.call(a, c); if (b.runtimeWriter) { b.runtimeWriter.enter("Class: " + a.classInfo); b.runtimeWriter.enter("Traps:"); for (var h in c.prototype) { 0 === h.indexOf("ax") && (a = c.hasOwnProperty(h), b.runtimeWriter.writeLn((a ? "Own" : "Inherited") + " trap: " + h)); } b.runtimeWriter.leave(); b.runtimeWriter.leave(); } } }; var va = "axResolveMultiname axHasProperty axDeleteProperty axCallProperty axCallSuper axConstructProperty axHasPropertyInternal axHasOwnProperty axSetProperty axGetProperty axGetSuper axSetSuper axNextNameIndex axNextName axNextValue axGetEnumerableKeys axHasPublicProperty axSetPublicProperty axGetPublicProperty axCallPublicProperty axDeletePublicProperty axSetNumericProperty axGetNumericProperty axGetSlot axSetSlot".split(" "); g.installClassLoaders = function(a, c) { for (var e = 0;e < na.length;e++) { var h = a, d = c, m = na[e].name, l = na[e].alias, v = na[e].nsType; b.runtimeWriter && b.runtimeWriter.writeLn("Defining Memoizer: " + m); var p = l.split("."), l = p.pop(), d = q(p, d), m = F.FromFQNString(m, v); z(h, d, m, l); } }; g.installNativeFunctions = function(a) { for (var c in J) { var b = c.split("."), e = b.pop(); q(b, a)[e] = a.boxFunction(J[c]); } }; })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(g) { var q = f.ObjectUtilities.defineNonEnumerableProperty, u = function(g) { function d() { g.apply(this, arguments); } __extends(d, g); d.prototype.axGetProperty = function(a) { var c = a.name, c = "number" === typeof c ? c : b.axCoerceName(c); return (c | 0) === c || f.isNumeric(c) ? this.axGetNumericProperty("number" === typeof c ? c : c | 0) : g.prototype.axGetProperty.call(this, a); }; d.prototype.axSetProperty = function(a, c, e) { var d = a.name, d = "number" === typeof d ? d : b.axCoerceName(d); (d | 0) === d || f.isNumeric(d) ? this.axSetNumericProperty("number" === typeof d ? d : d | 0, c) : g.prototype.axSetProperty.call(this, a, c, e); }; d.prototype.axGetPublicProperty = function(a) { a = "number" === typeof a ? a : b.axCoerceName(a); return (a | 0) === a || f.isNumeric(a) ? this.axGetNumericProperty("number" === typeof a ? a : a | 0) : this["$Bg" + a]; }; d.prototype.axSetPublicProperty = function(a, c) { a = "number" === typeof a ? a : b.axCoerceName(a); (a | 0) === a || f.isNumeric(a) ? this.axSetNumericProperty("number" === typeof a ? a : a | 0, c) : this["$Bg" + a] = c; }; d.prototype.axNextName = function(a) { return a - 1; }; d.prototype.checkVectorMethodArgs = function(a, c) { if (f.isNullOrUndefined(a)) { return !1; } var e = this.sec; b.axIsCallable(a) || e.throwError("TypeError", b.Errors.CheckTypeFailedError, a, "Function"); a.axClass !== e.AXMethodClosure || f.isNullOrUndefined(c) || e.throwError("TypeError", b.Errors.ArrayFilterNonNullObjectError); return !0; }; return d; }(g.ASObject); g.BaseVector = u; var k = function(b) { function d() { b.apply(this, arguments); } __extends(d, b); d.axIsType = function(a) { return this.dPrototype.isPrototypeOf(a) || this.sec.Int32Vector.axClass.dPrototype.isPrototypeOf(a) || this.sec.Uint32Vector.axClass.dPrototype.isPrototypeOf(a) || this.sec.Float64Vector.axClass.dPrototype.isPrototypeOf(a) || this.sec.ObjectVector.axClass.dPrototype.isPrototypeOf(a); }; return d; }(g.ASObject); g.Vector = k; u = function(r) { function d(a, c) { void 0 === a && (a = 0); void 0 === c && (c = !1); r.call(this); a >>>= 0; this._fixed = !!c; this._buffer = Array(a); this._fill(a, this.axClass.defaultValue); } __extends(d, r); d.classInitializer = function() { var a = this.dPrototype, c = this.tPrototype; c.axGetProperty = a.axGetProperty; c.axGetNumericProperty = a.axGetNumericProperty; c.axSetProperty = a.axSetProperty; c.axSetNumericProperty = a.axSetNumericProperty; c.axHasPropertyInternal = a.axHasPropertyInternal; c.axNextName = a.axNextName; c.axNextNameIndex = a.axNextNameIndex; c.axNextValue = a.axNextValue; a.axGetProperty = g.ASObject.prototype.axGetProperty; a.axGetNumericProperty = g.ASObject.prototype.axGetNumericProperty; a.axSetProperty = g.ASObject.prototype.axSetProperty; a.axSetNumericProperty = g.ASObject.prototype.axSetNumericProperty; a.axHasPropertyInternal = g.ASObject.prototype.axHasPropertyInternal; a.axNextName = g.ASObject.prototype.axNextName; a.axNextNameIndex = g.ASObject.prototype.axNextNameIndex; a.axNextValue = g.ASObject.prototype.axNextValue; c = d.prototype; q(a, "$Bgjoin", c.join); q(a, "$BgtoString", c.join); q(a, "$BgtoLocaleString", c.toLocaleString); q(a, "$Bgpop", c.pop); q(a, "$Bgpush", c.push); q(a, "$Bgreverse", c.reverse); q(a, "$Bgconcat", c.concat); q(a, "$Bgsplice", c.splice); q(a, "$Bgslice", c.slice); q(a, "$Bgshift", c.shift); q(a, "$Bgunshift", c.unshift); q(a, "$BgindexOf", c.indexOf); q(a, "$BglastIndexOf", c.lastIndexOf); q(a, "$BgforEach", c.forEach); q(a, "$Bgmap", c.map); q(a, "$Bgfilter", c.filter); q(a, "$Bgsome", c.some); q(a, "$Bgevery", c.every); q(a, "$Bgsort", c.sort); q(a, "checkVectorMethodArgs", c.checkVectorMethodArgs); }; d.axApply = function(a, c) { var b = c[0]; if (this.axIsType(b)) { return b; } var d = b.axGetPublicProperty("length"); if (void 0 !== d) { for (var n = this.axConstruct([d, !1]), t = 0;t < d;t++) { n.axSetNumericProperty(t, b.axGetPublicProperty(t)); } return n; } f.Debug.unexpected(); }; d.defaultCompareFunction = function(a, c) { return String(a).localeCompare(String(c)); }; d.compare = function(a, c, b, l) { var n = 0; l || (l = d.defaultCompareFunction); b & d.NUMERIC ? (a = f.toNumber(a), c = f.toNumber(c), n = a < c ? -1 : a > c ? 1 : 0) : n = l(a, c); b & d.DESCENDING && (n *= -1); return n; }; d.prototype._fill = function(a, c) { for (var b = 0;b < a;b++) { this._buffer[0 + b] = c; } }; d.prototype.toString = function() { for (var a = [], c = 0;c < this._buffer.length;c++) { var b = this._buffer[c]; a.push(null === b ? "null" : b + ""); } return a.join(","); }; d.prototype.toLocaleString = function() { for (var a = [], c = 0;c < this._buffer.length;c++) { var b = this._buffer[c]; b && "object" === typeof b ? a.push(b.$BgtoLocaleString()) : a.push(b + ""); } return a.join(","); }; d.prototype.sort = function(a) { if (0 === arguments.length) { return this._buffer.sort(), this; } if (this.sec.AXFunction.axIsType(a)) { return this._buffer.sort(a.value), this; } var c = a | 0; if (c & d.NUMERIC) { if (c & d.DESCENDING) { return this._buffer.sort(function(a, c) { return b.axCoerceNumber(c) - b.axCoerceNumber(a); }), this; } this._buffer.sort(function(a, c) { return b.axCoerceNumber(a) - b.axCoerceNumber(c); }); return this; } if (c & d.CASEINSENSITIVE) { if (c & d.DESCENDING) { return this._buffer.sort(function(a, c) { return b.axCoerceString(c).toLowerCase() - b.axCoerceString(a).toLowerCase(); }), this; } this._buffer.sort(function(a, c) { return b.axCoerceString(a).toLowerCase() - b.axCoerceString(c).toLowerCase(); }); return this; } if (c & d.DESCENDING) { return this._buffer.sort(function(a, c) { return c - a; }), this; } this._buffer.sort(); return this; }; d.prototype.every = function(a, c) { if (!this.checkVectorMethodArgs(a, c)) { return !0; } for (var b = 0;b < this._buffer.length;b++) { if (!a.axCall(c, this.axGetNumericProperty(b), b, this)) { return !1; } } return !0; }; d.prototype.filter = function(a, c) { var b = this.axClass.axConstruct([0, !1]); if (!this.checkVectorMethodArgs(a, c)) { return b; } for (var d = 0;d < this._buffer.length;d++) { a.call(c, this.axGetNumericProperty(d), d, this) && b.push(this.axGetNumericProperty(d)); } return b; }; d.prototype.map = function(a, c) { var b = this.axClass.axConstruct([this.length, !1]); if (!this.checkVectorMethodArgs(a, c)) { return b; } for (var d = 0;d < this._buffer.length;d++) { b.push(this._coerce(a.call(c, this.axGetNumericProperty(d), d, this))); } return b; }; d.prototype.some = function(a, c) { if (!this.checkVectorMethodArgs(a, c)) { return !1; } for (var b = 0;b < this._buffer.length;b++) { if (a.call(c, this.axGetNumericProperty(b), b, this)) { return !0; } } return !1; }; d.prototype.forEach = function(a, c) { if (this.checkVectorMethodArgs(a, c)) { for (var b = 0;b < this._buffer.length;b++) { a.call(c, this.axGetNumericProperty(b), b, this); } } }; d.prototype.join = function(a) { void 0 === a && (a = ","); for (var c = this._buffer, b = this._buffer.length, d = "", n = 0;n < b - 1;n++) { d += c[n] + a; } 0 < b && (d += c[b - 1]); return d; }; d.prototype.indexOf = function(a, c) { void 0 === c && (c = 0); return this._buffer.indexOf(a, c); }; d.prototype.lastIndexOf = function(a, c) { void 0 === c && (c = 2147483647); return this._buffer.lastIndexOf(a, c); }; d.prototype.push = function(a, c, b, d, n, t, p, h) { this._checkFixed(); for (var m = 0;m < arguments.length;m++) { this._buffer.push(this._coerce(arguments[m])); } }; d.prototype.pop = function() { this._checkFixed(); return 0 === this._buffer.length ? void 0 : this._buffer.pop(); }; d.prototype.concat = function() { for (var a = [], c = 0;c < arguments.length;c++) { a.push(this._coerce(arguments[c])._buffer); } a = this._buffer.concat.apply(this._buffer, a); c = this.axClass.axConstruct([]); c._buffer = a; return c; }; d.prototype.reverse = function() { this._buffer.reverse(); return this; }; d.prototype._coerce = function(a) { return this.axClass.type.axCoerce(a); }; d.prototype.shift = function() { this._checkFixed(); return 0 === this._buffer.length ? void 0 : this._buffer.shift(); }; d.prototype.unshift = function() { if (arguments.length) { this._checkFixed(); for (var a = 0;a < arguments.length;a++) { this._buffer.unshift(this._coerce(arguments[a])); } } }; d.prototype.slice = function(a, c) { void 0 === a && (a = 0); void 0 === c && (c = 2147483647); var b = this._buffer, d = b.length, n = Math.min(Math.max(a, 0), d), d = Math.min(Math.max(c, n), d), t = this.axClass.axConstruct([d - n, this.fixed]); t._buffer = b.slice(n, d); return t; }; d.prototype.splice = function(a, c) { var b = this._buffer, d = b.length, n = Math.min(Math.max(a, 0), d), d = Math.min(Math.max(c, 0), d - n), t = arguments.length - 2; d !== t && this._checkFixed(); for (var n = [n, d], p = 2;p < t + 2;p++) { n[p] = this._coerce(arguments[p]); } d = this.axClass.axConstruct([d, this.fixed]); d._buffer = b.splice.apply(b, n); return d; }; Object.defineProperty(d.prototype, "length", {get:function() { return this._buffer.length; }, set:function(a) { a >>>= 0; if (a > this._buffer.length) { for (var c = this._buffer.length;c < a;c++) { this._buffer[c] = this.axClass.defaultValue; } } else { this._buffer.length = a; } }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "fixed", {get:function() { return this._fixed; }, set:function(a) { this._fixed = !!a; }, enumerable:!0, configurable:!0}); d.prototype._checkFixed = function() { this._fixed && this.sec.throwError("RangeError", b.Errors.VectorFixedError); }; d.prototype.axGetNumericProperty = function(a) { var c = a | 0; (0 > c || c >= this._buffer.length || c != a) && this.sec.throwError("RangeError", b.Errors.OutOfRangeError, a, this._buffer.length); return this._buffer[c]; }; d.prototype.axSetNumericProperty = function(a, c) { var e = this._buffer.length, d = a | 0; (0 > d || d > e || d != a || d === e && this._fixed) && this.sec.throwError("RangeError", b.Errors.OutOfRangeError, a, e); this._buffer[d] = this._coerce(c); }; d.prototype.axHasPropertyInternal = function(a) { if ((a.name | 0) === a.name) { return 0 <= a.name && a.name < this._buffer.length; } var c = b.axCoerceName(a.name); return a.isRuntimeName() && f.isIndex(c) ? (a = c >>> 0, 0 <= a && a < this._buffer.length) : this.axResolveMultiname(a) in this; }; d.prototype.axNextValue = function(a) { return this._buffer[a - 1]; }; d.prototype.axNextNameIndex = function(a) { a += 1; return a <= this._buffer.length ? a : 0; }; d.CASEINSENSITIVE = 1; d.DESCENDING = 2; d.UNIQUESORT = 4; d.RETURNINDEXEDARRAY = 8; d.NUMERIC = 16; d.defaultValue = null; return d; }(u); g.GenericVector = u; })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(g) { var q = f.Debug.assert, u = f.ObjectUtilities.defineNonEnumerableProperty, k = function(r) { function d(a, c) { void 0 === a && (a = 0); void 0 === c && (c = !1); r.call(this); a >>>= 0; this._fixed = !!c; this._buffer = new Int32Array(Math.max(d.INITIAL_CAPACITY, a + d.EXTRA_CAPACITY)); this._offset = 0; this._length = a; } __extends(d, r); d.classInitializer = function() { var a = this.dPrototype, c = this.tPrototype; c.axGetProperty = a.axGetProperty; c.axGetNumericProperty = a.axGetNumericProperty; c.axSetProperty = a.axSetProperty; c.axSetNumericProperty = a.axSetNumericProperty; c.axHasPropertyInternal = a.axHasPropertyInternal; c.axNextName = a.axNextName; c.axNextNameIndex = a.axNextNameIndex; c.axNextValue = a.axNextValue; a.axGetProperty = g.ASObject.prototype.axGetProperty; a.axGetNumericProperty = g.ASObject.prototype.axGetNumericProperty; a.axSetProperty = g.ASObject.prototype.axSetProperty; a.axSetNumericProperty = g.ASObject.prototype.axSetNumericProperty; a.axHasPropertyInternal = g.ASObject.prototype.axHasPropertyInternal; a.axNextName = g.ASObject.prototype.axNextName; a.axNextNameIndex = g.ASObject.prototype.axNextNameIndex; a.axNextValue = g.ASObject.prototype.axNextValue; c = d.prototype; u(a, "$Bgjoin", c.join); u(a, "$BgtoString", c.join); u(a, "$BgtoLocaleString", c.toLocaleString); u(a, "$Bgpop", c.pop); u(a, "$Bgpush", c.push); u(a, "$Bgreverse", c.reverse); u(a, "$Bgconcat", c.concat); u(a, "$Bgsplice", c.splice); u(a, "$Bgslice", c.slice); u(a, "$Bgshift", c.shift); u(a, "$Bgunshift", c.unshift); u(a, "$BgindexOf", c.indexOf); u(a, "$BglastIndexOf", c.lastIndexOf); u(a, "$BgforEach", c.forEach); u(a, "$Bgmap", c.map); u(a, "$Bgfilter", c.filter); u(a, "$Bgsome", c.some); u(a, "$Bgevery", c.every); u(a, "$Bgsort", c.sort); u(a, "checkVectorMethodArgs", c.checkVectorMethodArgs); }; d.axApply = function(a, c) { var b = c[0]; if (this.axIsType(b)) { return b; } var d = b.axGetPublicProperty("length"); if (void 0 !== d) { for (var n = this.axConstruct([d, !1]), t = 0;t < d;t++) { n.axSetNumericProperty(t, b.axGetPublicProperty(t)); } return n; } f.Debug.unexpected(); }; d.prototype.internalToString = function() { for (var a = "", c = this._offset, b = c + this._length, d = 0;d < this._buffer.length;d++) { d === c && (a += "["), d === b && (a += "]"), a += this._buffer[d], d < this._buffer.length - 1 && (a += ","); } this._offset + this._length === this._buffer.length && (a += "]"); return a + ": offset: " + this._offset + ", length: " + this._length + ", capacity: " + this._buffer.length; }; d.prototype.toString = function() { for (var a = "", c = 0;c < this._length;c++) { a += this._buffer[this._offset + c], c < this._length - 1 && (a += ","); } return a; }; d.prototype.toLocaleString = function() { for (var a = "", c = 0;c < this._length;c++) { a += this._buffer[this._offset + c], c < this._length - 1 && (a += ","); } return a; }; d.prototype._view = function() { return this._buffer.subarray(this._offset, this._offset + this._length); }; d.prototype._ensureCapacity = function(a) { var c = this._offset + a; c < this._buffer.length || (a <= this._buffer.length ? (c = this._buffer.length - a >> 2, this._buffer.set(this._view(), c), this._offset = c) : (a = (3 * this._buffer.length >> 1) + 1, a < c && (a = c), c = new Int32Array(a), c.set(this._buffer, 0), this._buffer = c)); }; d.prototype.concat = function() { for (var a = this._length, c = 0;c < arguments.length;c++) { var b = arguments[c]; b._buffer instanceof Int32Array || q(!1); a += b._length; } var a = new this.sec.Int32Vector(a), d = a._buffer; d.set(this._buffer); for (var n = this._length, c = 0;c < arguments.length;c++) { b = arguments[c], n + b._buffer.length < b._buffer.length ? d.set(b._buffer, n) : d.set(b._buffer.subarray(0, b._length), n), n += b._length; } return a; }; d.prototype.every = function(a, c) { if (!this.checkVectorMethodArgs(a, c)) { return !0; } for (var b = 0;b < this._length;b++) { if (!a.call(c, this._buffer[this._offset + b], b, this)) { return !1; } } return !0; }; d.prototype.filter = function(a, c) { var b = new this.sec.Int32Vector; if (!this.checkVectorMethodArgs(a, c)) { return b; } for (var d = 0;d < this._length;d++) { a.call(c, this._buffer[this._offset + d], d, this) && b.push(this._buffer[this._offset + d]); } return b; }; d.prototype.map = function(a, c) { var b = this.axClass.axConstruct([this.length, !1]); if (!this.checkVectorMethodArgs(a, c)) { return b; } for (var d = 0;d < this._length;d++) { b[d] = a.call(c, this._buffer[this._offset + d], d, this); } return b; }; d.prototype.some = function(a, c) { if (!this.checkVectorMethodArgs(a, c)) { return !1; } for (var b = 0;b < this._length;b++) { if (a.call(c, this._buffer[this._offset + b], b, this)) { return !0; } } return !1; }; d.prototype.forEach = function(a, c) { if (this.checkVectorMethodArgs(a, c)) { for (var b = 0;b < this._length;b++) { a.call(c, this._buffer[this._offset + b], b, this); } } }; d.prototype.join = function(a) { void 0 === a && (a = ","); for (var c = this.length, b = this._buffer, d = this._offset, n = "", t = 0;t < c - 1;t++) { n += b[d + t] + a; } 0 < c && (n += b[d + c - 1]); return n; }; d.prototype.indexOf = function(a, c) { void 0 === c && (c = 0); var b = this._length, d = c | 0; if (0 > d) { d += b, 0 > d && (d = 0); } else { if (d >= b) { return -1; } } for (var n = this._buffer, b = this._length, t = this._offset, b = t + b, d = d + t;d < b;d++) { if (n[d] === a) { return d - t; } } return -1; }; d.prototype.lastIndexOf = function(a, c) { void 0 === c && (c = 2147483647); var b = this._length, d = c | 0; if (0 > d) { if (d += b, 0 > d) { return -1; } } else { d >= b && (d = b); } for (var b = this._buffer, n = this._offset, d = d + n;d-- > n;) { if (b[d] === a) { return d - n; } } return -1; }; d.prototype.push = function(a, c, b, d, n, t, p, h) { this._checkFixed(); this._ensureCapacity(this._length + arguments.length); for (var m = 0;m < arguments.length;m++) { this._buffer[this._offset + this._length++] = arguments[m]; } }; d.prototype.pop = function() { this._checkFixed(); if (0 === this._length) { return d.DEFAULT_VALUE; } this._length--; return this._buffer[this._offset + this._length]; }; d.prototype.reverse = function() { for (var a = this._offset, c = this._offset + this._length - 1, b = this._buffer;a < c;) { var d = b[a]; b[a] = b[c]; b[c] = d; a++; c--; } return this; }; d.prototype.sort = function(a) { if (0 === arguments.length) { return Array.prototype.sort.call(this._view()), this; } if (this.sec.AXFunction.axIsType(a)) { return Array.prototype.sort.call(this._view(), a.value), this; } (a | 0) & d.DESCENDING ? Array.prototype.sort.call(this._view(), function(a, b) { return b - a; }) : Array.prototype.sort.call(this._view(), function(a, b) { return a - b; }); return this; }; d.prototype.shift = function() { this._checkFixed(); if (0 === this._length) { return 0; } this._length--; return this._buffer[this._offset++]; }; d.prototype.unshift = function() { this._checkFixed(); if (arguments.length) { this._ensureCapacity(this._length + arguments.length); this._slide(arguments.length); this._offset -= arguments.length; this._length += arguments.length; for (var a = 0;a < arguments.length;a++) { this._buffer[this._offset + a] = arguments[a]; } } }; d.prototype.slice = function(a, c) { void 0 === a && (a = 0); void 0 === c && (c = 2147483647); var b = this._buffer, d = this._length, n = Math.min(Math.max(a, 0), d), d = Math.min(Math.max(c, n), d), t = new this.sec.Int32Vector(d - n, this.fixed); t._buffer.set(b.subarray(this._offset + n, this._offset + d), t._offset); return t; }; d.prototype.splice = function(a, c) { var b = this._buffer, d = this._length, n = Math.min(Math.max(a, 0), d), t = this._offset + n, p = Math.min(Math.max(c, 0), d - n), n = arguments.length - 2, h, m = new this.sec.Int32Vector(p, this.fixed); 0 < p && (h = b.subarray(t, t + p), m._buffer.set(h, m._offset)); this._ensureCapacity(d - p + n); b.set(b.subarray(t + p, d), t + n); this._length += n - p; for (d = 0;d < n;d++) { b[t + d] = arguments[d + 2]; } return m; }; d.prototype._slide = function(a) { this._buffer.set(this._view(), this._offset + a); this._offset += a; }; Object.defineProperty(d.prototype, "length", {get:function() { return this._length; }, set:function(a) { a >>>= 0; if (a > this._length) { this._ensureCapacity(a); for (var c = this._offset + this._length, b = this._offset + a;c < b;c++) { this._buffer[c] = d.DEFAULT_VALUE; } } this._length = a; }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "fixed", {get:function() { return this._fixed; }, set:function(a) { this._fixed = !!a; }, enumerable:!0, configurable:!0}); d.prototype._checkFixed = function() { this._fixed && this.sec.throwError("RangeError", b.Errors.VectorFixedError); }; d.prototype.axGetNumericProperty = function(a) { var c = this._length, e = a | 0; (0 > e || e >= c || e != a) && this.sec.throwError("RangeError", b.Errors.OutOfRangeError, a, c); return this._buffer[this._offset + e]; }; d.prototype.axSetNumericProperty = function(a, c) { var e = this._length, d = a | 0; (0 > d || d > e || d != a || d === e && this._fixed) && this.sec.throwError("RangeError", b.Errors.OutOfRangeError, a, e); d === this._length && (this._ensureCapacity(this._length + 1), this._length++); this._buffer[this._offset + d] = c; }; d.prototype.axHasPropertyInternal = function(a) { if ((a.name | 0) === a.name) { return 0 <= a.name && a.name < this._length; } var c = b.axCoerceName(a.name); return a.isRuntimeName() && f.isIndex(c) ? (a = c >>> 0, 0 <= a && a < this._length) : this.axResolveMultiname(a) in this; }; d.prototype.axNextValue = function(a) { return this._buffer[this._offset + a - 1]; }; d.prototype.axNextNameIndex = function(a) { a += 1; return a <= this._length ? a : 0; }; d.EXTRA_CAPACITY = 4; d.INITIAL_CAPACITY = 10; d.DEFAULT_VALUE = 0; d.DESCENDING = 2; d.UNIQUESORT = 4; d.RETURNINDEXEDARRAY = 8; return d; }(g.BaseVector); g.Int32Vector = k; })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(g) { var q = f.Debug.assert, u = f.ObjectUtilities.defineNonEnumerableProperty, k = function(r) { function d(a, c) { void 0 === a && (a = 0); void 0 === c && (c = !1); r.call(this); a >>>= 0; this._fixed = !!c; this._buffer = new Uint32Array(Math.max(d.INITIAL_CAPACITY, a + d.EXTRA_CAPACITY)); this._offset = 0; this._length = a; } __extends(d, r); d.classInitializer = function() { var a = this.dPrototype, c = this.tPrototype; c.axGetProperty = a.axGetProperty; c.axGetNumericProperty = a.axGetNumericProperty; c.axSetProperty = a.axSetProperty; c.axSetNumericProperty = a.axSetNumericProperty; c.axHasPropertyInternal = a.axHasPropertyInternal; c.axNextName = a.axNextName; c.axNextNameIndex = a.axNextNameIndex; c.axNextValue = a.axNextValue; a.axGetProperty = g.ASObject.prototype.axGetProperty; a.axGetNumericProperty = g.ASObject.prototype.axGetNumericProperty; a.axSetProperty = g.ASObject.prototype.axSetProperty; a.axSetNumericProperty = g.ASObject.prototype.axSetNumericProperty; a.axHasPropertyInternal = g.ASObject.prototype.axHasPropertyInternal; a.axNextName = g.ASObject.prototype.axNextName; a.axNextNameIndex = g.ASObject.prototype.axNextNameIndex; a.axNextValue = g.ASObject.prototype.axNextValue; c = d.prototype; u(a, "$Bgjoin", c.join); u(a, "$BgtoString", c.join); u(a, "$BgtoLocaleString", c.toLocaleString); u(a, "$Bgpop", c.pop); u(a, "$Bgpush", c.push); u(a, "$Bgreverse", c.reverse); u(a, "$Bgconcat", c.concat); u(a, "$Bgsplice", c.splice); u(a, "$Bgslice", c.slice); u(a, "$Bgshift", c.shift); u(a, "$Bgunshift", c.unshift); u(a, "$BgindexOf", c.indexOf); u(a, "$BglastIndexOf", c.lastIndexOf); u(a, "$BgforEach", c.forEach); u(a, "$Bgmap", c.map); u(a, "$Bgfilter", c.filter); u(a, "$Bgsome", c.some); u(a, "$Bgevery", c.every); u(a, "$Bgsort", c.sort); u(a, "checkVectorMethodArgs", c.checkVectorMethodArgs); }; d.axApply = function(a, c) { var b = c[0]; if (this.axIsType(b)) { return b; } var d = b.axGetPublicProperty("length"); if (void 0 !== d) { for (var n = this.axConstruct([d, !1]), t = 0;t < d;t++) { n.axSetNumericProperty(t, b.axGetPublicProperty(t)); } return n; } f.Debug.unexpected(); }; d.prototype.internalToString = function() { for (var a = "", c = this._offset, b = c + this._length, d = 0;d < this._buffer.length;d++) { d === c && (a += "["), d === b && (a += "]"), a += this._buffer[d], d < this._buffer.length - 1 && (a += ","); } this._offset + this._length === this._buffer.length && (a += "]"); return a + ": offset: " + this._offset + ", length: " + this._length + ", capacity: " + this._buffer.length; }; d.prototype.toString = function() { for (var a = "", c = 0;c < this._length;c++) { a += this._buffer[this._offset + c], c < this._length - 1 && (a += ","); } return a; }; d.prototype.toLocaleString = function() { for (var a = "", c = 0;c < this._length;c++) { a += this._buffer[this._offset + c], c < this._length - 1 && (a += ","); } return a; }; d.prototype._view = function() { return this._buffer.subarray(this._offset, this._offset + this._length); }; d.prototype._ensureCapacity = function(a) { var c = this._offset + a; c < this._buffer.length || (a <= this._buffer.length ? (c = this._buffer.length - a >> 2, this._buffer.set(this._view(), c), this._offset = c) : (a = (3 * this._buffer.length >> 1) + 1, a < c && (a = c), c = new Uint32Array(a), c.set(this._buffer, 0), this._buffer = c)); }; d.prototype.concat = function() { for (var a = this._length, c = 0;c < arguments.length;c++) { var b = arguments[c]; b._buffer instanceof Uint32Array || q(!1); a += b._length; } var a = new this.sec.Uint32Vector(a), d = a._buffer; d.set(this._buffer); for (var n = this._length, c = 0;c < arguments.length;c++) { b = arguments[c], n + b._buffer.length < b._buffer.length ? d.set(b._buffer, n) : d.set(b._buffer.subarray(0, b._length), n), n += b._length; } return a; }; d.prototype.every = function(a, c) { if (!this.checkVectorMethodArgs(a, c)) { return !0; } for (var b = 0;b < this._length;b++) { if (!a.call(c, this._buffer[this._offset + b], b, this)) { return !1; } } return !0; }; d.prototype.filter = function(a, c) { var b = new this.sec.Uint32Vector; if (!this.checkVectorMethodArgs(a, c)) { return b; } for (var d = 0;d < this._length;d++) { a.call(c, this._buffer[this._offset + d], d, this) && b.push(this._buffer[this._offset + d]); } return b; }; d.prototype.map = function(a, c) { var b = this.axClass.axConstruct([this.length, !1]); if (!this.checkVectorMethodArgs(a, c)) { return b; } for (var d = 0;d < this._length;d++) { b[d] = a.call(c, this._buffer[this._offset + d], d, this); } return b; }; d.prototype.some = function(a, c) { if (!this.checkVectorMethodArgs(a, c)) { return !1; } for (var b = 0;b < this._length;b++) { if (a.call(c, this._buffer[this._offset + b], b, this)) { return !0; } } return !1; }; d.prototype.forEach = function(a, c) { if (this.checkVectorMethodArgs(a, c)) { for (var b = 0;b < this._length;b++) { a.call(c, this._buffer[this._offset + b], b, this); } } }; d.prototype.join = function(a) { void 0 === a && (a = ","); for (var c = this.length, b = this._buffer, d = this._offset, n = "", t = 0;t < c - 1;t++) { n += b[d + t] + a; } 0 < c && (n += b[d + c - 1]); return n; }; d.prototype.indexOf = function(a, c) { void 0 === c && (c = 0); var b = this._length, d = c | 0; if (0 > d) { d += b, 0 > d && (d = 0); } else { if (d >= b) { return -1; } } for (var n = this._buffer, b = this._length, t = this._offset, b = t + b, d = d + t;d < b;d++) { if (n[d] === a) { return d - t; } } return -1; }; d.prototype.lastIndexOf = function(a, c) { void 0 === c && (c = 2147483647); var b = this._length, d = c | 0; if (0 > d) { if (d += b, 0 > d) { return -1; } } else { d >= b && (d = b); } for (var b = this._buffer, n = this._offset, d = d + n;d-- > n;) { if (b[d] === a) { return d - n; } } return -1; }; d.prototype.push = function(a, c, b, d, n, t, p, h) { this._checkFixed(); this._ensureCapacity(this._length + arguments.length); for (var m = 0;m < arguments.length;m++) { this._buffer[this._offset + this._length++] = arguments[m]; } }; d.prototype.pop = function() { this._checkFixed(); if (0 === this._length) { return d.DEFAULT_VALUE; } this._length--; return this._buffer[this._offset + this._length]; }; d.prototype.reverse = function() { for (var a = this._offset, c = this._offset + this._length - 1, b = this._buffer;a < c;) { var d = b[a]; b[a] = b[c]; b[c] = d; a++; c--; } return this; }; d.prototype.sort = function(a) { if (0 === arguments.length) { return Array.prototype.sort.call(this._view()), this; } if (this.sec.AXFunction.axIsType(a)) { return Array.prototype.sort.call(this._view(), a.value), this; } (a | 0) & d.DESCENDING ? Array.prototype.sort.call(this._view(), function(a, b) { return b - a; }) : Array.prototype.sort.call(this._view(), function(a, b) { return a - b; }); return this; }; d.prototype.shift = function() { this._checkFixed(); if (0 === this._length) { return 0; } this._length--; return this._buffer[this._offset++]; }; d.prototype.unshift = function() { this._checkFixed(); if (arguments.length) { this._ensureCapacity(this._length + arguments.length); this._slide(arguments.length); this._offset -= arguments.length; this._length += arguments.length; for (var a = 0;a < arguments.length;a++) { this._buffer[this._offset + a] = arguments[a]; } } }; d.prototype.slice = function(a, c) { void 0 === a && (a = 0); void 0 === c && (c = 2147483647); var b = this._buffer, d = this._length, n = Math.min(Math.max(a, 0), d), d = Math.min(Math.max(c, n), d), t = new this.sec.Uint32Vector(d - n, this.fixed); t._buffer.set(b.subarray(this._offset + n, this._offset + d), t._offset); return t; }; d.prototype.splice = function(a, c) { var b = this._buffer, d = this._length, n = Math.min(Math.max(a, 0), d), t = this._offset + n, p = Math.min(Math.max(c, 0), d - n), n = arguments.length - 2, h, m = new this.sec.Uint32Vector(p, this.fixed); 0 < p && (h = b.subarray(t, t + p), m._buffer.set(h, m._offset)); this._ensureCapacity(d - p + n); b.set(b.subarray(t + p, d), t + n); this._length += n - p; for (d = 0;d < n;d++) { b[t + d] = arguments[d + 2]; } return m; }; d.prototype._slide = function(a) { this._buffer.set(this._view(), this._offset + a); this._offset += a; }; Object.defineProperty(d.prototype, "length", {get:function() { return this._length; }, set:function(a) { a >>>= 0; if (a > this._length) { this._ensureCapacity(a); for (var c = this._offset + this._length, b = this._offset + a;c < b;c++) { this._buffer[c] = d.DEFAULT_VALUE; } } this._length = a; }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "fixed", {get:function() { return this._fixed; }, set:function(a) { this._fixed = !!a; }, enumerable:!0, configurable:!0}); d.prototype._checkFixed = function() { this._fixed && this.sec.throwError("RangeError", b.Errors.VectorFixedError); }; d.prototype.axGetNumericProperty = function(a) { var c = this._length, e = a | 0; (0 > e || e >= c || e != a) && this.sec.throwError("RangeError", b.Errors.OutOfRangeError, a, c); return this._buffer[this._offset + e]; }; d.prototype.axSetNumericProperty = function(a, c) { var e = this._length, d = a | 0; (0 > d || d > e || d != a || d === e && this._fixed) && this.sec.throwError("RangeError", b.Errors.OutOfRangeError, a, e); d === this._length && (this._ensureCapacity(this._length + 1), this._length++); this._buffer[this._offset + d] = c; }; d.prototype.axHasPropertyInternal = function(a) { if ((a.name | 0) === a.name) { return 0 <= a.name && a.name < this._length; } var c = b.axCoerceName(a.name); return a.isRuntimeName() && f.isIndex(c) ? (a = c >>> 0, 0 <= a && a < this._length) : this.axResolveMultiname(a) in this; }; d.prototype.axNextValue = function(a) { return this._buffer[this._offset + a - 1]; }; d.prototype.axNextNameIndex = function(a) { a += 1; return a <= this._length ? a : 0; }; d.EXTRA_CAPACITY = 4; d.INITIAL_CAPACITY = 10; d.DEFAULT_VALUE = 0; d.DESCENDING = 2; d.UNIQUESORT = 4; d.RETURNINDEXEDARRAY = 8; return d; }(g.BaseVector); g.Uint32Vector = k; })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(g) { var q = f.Debug.assert, u = f.ObjectUtilities.defineNonEnumerableProperty, k = function(r) { function d(a, c) { void 0 === a && (a = 0); void 0 === c && (c = !1); r.call(this); a >>>= 0; this._fixed = !!c; this._buffer = new Float64Array(Math.max(d.INITIAL_CAPACITY, a + d.EXTRA_CAPACITY)); this._offset = 0; this._length = a; } __extends(d, r); d.classInitializer = function() { var a = this.dPrototype, c = this.tPrototype; c.axGetProperty = a.axGetProperty; c.axGetNumericProperty = a.axGetNumericProperty; c.axSetProperty = a.axSetProperty; c.axSetNumericProperty = a.axSetNumericProperty; c.axHasPropertyInternal = a.axHasPropertyInternal; c.axNextName = a.axNextName; c.axNextNameIndex = a.axNextNameIndex; c.axNextValue = a.axNextValue; a.axGetProperty = g.ASObject.prototype.axGetProperty; a.axGetNumericProperty = g.ASObject.prototype.axGetNumericProperty; a.axSetProperty = g.ASObject.prototype.axSetProperty; a.axSetNumericProperty = g.ASObject.prototype.axSetNumericProperty; a.axHasPropertyInternal = g.ASObject.prototype.axHasPropertyInternal; a.axNextName = g.ASObject.prototype.axNextName; a.axNextNameIndex = g.ASObject.prototype.axNextNameIndex; a.axNextValue = g.ASObject.prototype.axNextValue; c = d.prototype; u(a, "$Bgjoin", c.join); u(a, "$BgtoString", c.join); u(a, "$BgtoLocaleString", c.toLocaleString); u(a, "$Bgpop", c.pop); u(a, "$Bgpush", c.push); u(a, "$Bgreverse", c.reverse); u(a, "$Bgconcat", c.concat); u(a, "$Bgsplice", c.splice); u(a, "$Bgslice", c.slice); u(a, "$Bgshift", c.shift); u(a, "$Bgunshift", c.unshift); u(a, "$BgindexOf", c.indexOf); u(a, "$BglastIndexOf", c.lastIndexOf); u(a, "$BgforEach", c.forEach); u(a, "$Bgmap", c.map); u(a, "$Bgfilter", c.filter); u(a, "$Bgsome", c.some); u(a, "$Bgevery", c.every); u(a, "$Bgsort", c.sort); u(a, "checkVectorMethodArgs", c.checkVectorMethodArgs); }; d.axApply = function(a, c) { var b = c[0]; if (this.axIsType(b)) { return b; } var d = b.axGetPublicProperty("length"); if (void 0 !== d) { for (var n = this.axConstruct([d, !1]), t = 0;t < d;t++) { n.axSetNumericProperty(t, b.axGetPublicProperty(t)); } return n; } f.Debug.unexpected(); }; d.prototype.internalToString = function() { for (var a = "", c = this._offset, b = c + this._length, d = 0;d < this._buffer.length;d++) { d === c && (a += "["), d === b && (a += "]"), a += this._buffer[d], d < this._buffer.length - 1 && (a += ","); } this._offset + this._length === this._buffer.length && (a += "]"); return a + ": offset: " + this._offset + ", length: " + this._length + ", capacity: " + this._buffer.length; }; d.prototype.toString = function() { for (var a = "", c = 0;c < this._length;c++) { a += this._buffer[this._offset + c], c < this._length - 1 && (a += ","); } return a; }; d.prototype.toLocaleString = function() { for (var a = "", c = 0;c < this._length;c++) { a += this._buffer[this._offset + c], c < this._length - 1 && (a += ","); } return a; }; d.prototype._view = function() { return this._buffer.subarray(this._offset, this._offset + this._length); }; d.prototype._ensureCapacity = function(a) { var c = this._offset + a; c < this._buffer.length || (a <= this._buffer.length ? (c = this._buffer.length - a >> 2, this._buffer.set(this._view(), c), this._offset = c) : (a = (3 * this._buffer.length >> 1) + 1, a < c && (a = c), c = new Float64Array(a), c.set(this._buffer, 0), this._buffer = c)); }; d.prototype.concat = function() { for (var a = this._length, c = 0;c < arguments.length;c++) { var b = arguments[c]; b._buffer instanceof Float64Array || q(!1); a += b._length; } var a = new this.sec.Float64Vector(a), d = a._buffer; d.set(this._buffer); for (var n = this._length, c = 0;c < arguments.length;c++) { b = arguments[c], n + b._buffer.length < b._buffer.length ? d.set(b._buffer, n) : d.set(b._buffer.subarray(0, b._length), n), n += b._length; } return a; }; d.prototype.every = function(a, c) { if (!this.checkVectorMethodArgs(a, c)) { return !0; } for (var b = 0;b < this._length;b++) { if (!a.call(c, this._buffer[this._offset + b], b, this)) { return !1; } } return !0; }; d.prototype.filter = function(a, c) { var b = new this.sec.Float64Vector; if (!this.checkVectorMethodArgs(a, c)) { return b; } for (var d = 0;d < this._length;d++) { a.call(c, this._buffer[this._offset + d], d, this) && b.push(this._buffer[this._offset + d]); } return b; }; d.prototype.map = function(a, c) { var b = this.axClass.axConstruct([this.length, !1]); if (!this.checkVectorMethodArgs(a, c)) { return b; } for (var d = 0;d < this._length;d++) { b[d] = a.call(c, this._buffer[this._offset + d], d, this); } return b; }; d.prototype.some = function(a, c) { if (!this.checkVectorMethodArgs(a, c)) { return !1; } for (var b = 0;b < this._length;b++) { if (a.call(c, this._buffer[this._offset + b], b, this)) { return !0; } } return !1; }; d.prototype.forEach = function(a, c) { if (this.checkVectorMethodArgs(a, c)) { for (var b = 0;b < this._length;b++) { a.call(c, this._buffer[this._offset + b], b, this); } } }; d.prototype.join = function(a) { void 0 === a && (a = ","); for (var c = this.length, b = this._buffer, d = this._offset, n = "", t = 0;t < c - 1;t++) { n += b[d + t] + a; } 0 < c && (n += b[d + c - 1]); return n; }; d.prototype.indexOf = function(a, c) { void 0 === c && (c = 0); var b = this._length, d = c | 0; if (0 > d) { d += b, 0 > d && (d = 0); } else { if (d >= b) { return -1; } } for (var n = this._buffer, b = this._length, t = this._offset, b = t + b, d = d + t;d < b;d++) { if (n[d] === a) { return d - t; } } return -1; }; d.prototype.lastIndexOf = function(a, c) { void 0 === c && (c = 2147483647); var b = this._length, d = c | 0; if (0 > d) { if (d += b, 0 > d) { return -1; } } else { d >= b && (d = b); } for (var b = this._buffer, n = this._offset, d = d + n;d-- > n;) { if (b[d] === a) { return d - n; } } return -1; }; d.prototype.push = function(a, c, b, d, n, t, p, h) { this._checkFixed(); this._ensureCapacity(this._length + arguments.length); for (var m = 0;m < arguments.length;m++) { this._buffer[this._offset + this._length++] = arguments[m]; } }; d.prototype.pop = function() { this._checkFixed(); if (0 === this._length) { return d.DEFAULT_VALUE; } this._length--; return this._buffer[this._offset + this._length]; }; d.prototype.reverse = function() { for (var a = this._offset, c = this._offset + this._length - 1, b = this._buffer;a < c;) { var d = b[a]; b[a] = b[c]; b[c] = d; a++; c--; } return this; }; d.prototype.sort = function(a) { if (0 === arguments.length) { return Array.prototype.sort.call(this._view()), this; } if (this.sec.AXFunction.axIsType(a)) { return Array.prototype.sort.call(this._view(), a.value), this; } (a | 0) & d.DESCENDING ? Array.prototype.sort.call(this._view(), function(a, b) { return b - a; }) : Array.prototype.sort.call(this._view(), function(a, b) { return a - b; }); return this; }; d.prototype.shift = function() { this._checkFixed(); if (0 === this._length) { return 0; } this._length--; return this._buffer[this._offset++]; }; d.prototype.unshift = function() { this._checkFixed(); if (arguments.length) { this._ensureCapacity(this._length + arguments.length); this._slide(arguments.length); this._offset -= arguments.length; this._length += arguments.length; for (var a = 0;a < arguments.length;a++) { this._buffer[this._offset + a] = arguments[a]; } } }; d.prototype.slice = function(a, c) { void 0 === a && (a = 0); void 0 === c && (c = 2147483647); var b = this._buffer, d = this._length, n = Math.min(Math.max(a, 0), d), d = Math.min(Math.max(c, n), d), t = new this.sec.Float64Vector(d - n, this.fixed); t._buffer.set(b.subarray(this._offset + n, this._offset + d), t._offset); return t; }; d.prototype.splice = function(a, c) { var b = this._buffer, d = this._length, n = Math.min(Math.max(a, 0), d), t = this._offset + n, p = Math.min(Math.max(c, 0), d - n), n = arguments.length - 2, h, m = new this.sec.Float64Vector(p, this.fixed); 0 < p && (h = b.subarray(t, t + p), m._buffer.set(h, m._offset)); this._ensureCapacity(d - p + n); b.set(b.subarray(t + p, d), t + n); this._length += n - p; for (d = 0;d < n;d++) { b[t + d] = arguments[d + 2]; } return m; }; d.prototype._slide = function(a) { this._buffer.set(this._view(), this._offset + a); this._offset += a; }; Object.defineProperty(d.prototype, "length", {get:function() { return this._length; }, set:function(a) { a >>>= 0; if (a > this._length) { this._ensureCapacity(a); for (var c = this._offset + this._length, b = this._offset + a;c < b;c++) { this._buffer[c] = d.DEFAULT_VALUE; } } this._length = a; }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "fixed", {get:function() { return this._fixed; }, set:function(a) { this._fixed = !!a; }, enumerable:!0, configurable:!0}); d.prototype._checkFixed = function() { this._fixed && this.sec.throwError("RangeError", b.Errors.VectorFixedError); }; d.prototype.axGetNumericProperty = function(a) { var c = this._length, e = a | 0; (0 > e || e >= c || e != a) && this.sec.throwError("RangeError", b.Errors.OutOfRangeError, a, c); return this._buffer[this._offset + e]; }; d.prototype.axSetNumericProperty = function(a, c) { var e = this._length, d = a | 0; (0 > d || d > e || d != a || d === e && this._fixed) && this.sec.throwError("RangeError", b.Errors.OutOfRangeError, a, e); d === this._length && (this._ensureCapacity(this._length + 1), this._length++); this._buffer[this._offset + d] = c; }; d.prototype.axHasPropertyInternal = function(a) { if ((a.name | 0) === a.name) { return 0 <= a.name && a.name < this._length; } var c = b.axCoerceName(a.name); return a.isRuntimeName() && f.isIndex(c) ? (a = c >>> 0, 0 <= a && a < this._length) : this.axResolveMultiname(a) in this; }; d.prototype.axNextValue = function(a) { return this._buffer[this._offset + a - 1]; }; d.prototype.axNextNameIndex = function(a) { a += 1; return a <= this._length ? a : 0; }; d.EXTRA_CAPACITY = 4; d.INITIAL_CAPACITY = 10; d.DEFAULT_VALUE = 0; d.DESCENDING = 2; d.UNIQUESORT = 4; d.RETURNINDEXEDARRAY = 8; return d; }(g.BaseVector); g.Float64Vector = k; })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(g) { function q(a, c) { return "object" === typeof a && a && (a.axClass === c.AXXML || a.axClass === c.AXXMLList || a.axClass === c.AXQName || a.axClass === c.AXNamespace); } function u(a, c) { if (!a || a.axClass !== c.AXXML) { return String(a); } switch(a._kind) { case 3: ; case 2: return a._value; default: if (a.hasSimpleContent()) { for (var b = "", e = 0;e < a._children.length;e++) { var h = a._children[e]; 4 !== h._kind && 5 !== h._kind && (b += u(h, c)); } return b; } return l(c, a); } } function k(a) { a = String(a); for (var c = 0, b;c < a.length && "&" !== (b = a[c]) && "<" !== b && ">" !== b;) { c++; } if (c >= a.length) { return a; } for (var e = a.substring(0, c);c < a.length;) { switch(b = a[c++], b) { case "&": e += "&"; break; case "<": e += "<"; break; case ">": e += ">"; break; default: e += b; } } return e; } function r(a) { a = String(a); for (var c = 0, b;c < a.length && "&" !== (b = a[c]) && "<" !== b && '"' !== b && "\n" !== b && "\r" !== b && "\t" !== b;) { c++; } if (c >= a.length) { return a; } for (var e = a.substring(0, c);c < a.length;) { switch(b = a[c++], b) { case "&": e += "&"; break; case "<": e += "<"; break; case '"': e += """; break; case "\n": e += " "; break; case "\r": e += " "; break; case "\t": e += " "; break; default: e += b; } } return e; } function d(a, c) { var b = a[c]; return " " === b || "\n" === b || "\r" === b || "\t" === b; } function a(a) { for (var c = 0;c < a.length && d(a, c);) { c++; } if (c >= a.length) { return ""; } for (var b = a.length - 1;d(a, b);) { b--; } return 0 === c && b === a.length - 1 ? a : a.substring(c, b + 1); } function c(a) { if (0 < a) { if (void 0 !== B[a]) { return B[a]; } for (var c = "", b = 0;b < a;b++) { c += " "; } return B[a] = c; } return ""; } function e(a) { for (var c = 1, b;;) { b = "_ns" + c; if (!a.some(function(a) { return a.prefix === b; })) { return b; } c++; } } function l(a, c) { if (null === c || void 0 === c) { throw new TypeError; } return q(c, a) ? c.toXMLString() : k(String(c)); } function n(a, c) { null === a && c.throwError("TypeError", b.Errors.ConvertNullToObjectError); void 0 === a && c.throwError("TypeError", b.Errors.ConvertUndefinedToObjectError); if (a.axClass === c.AXXML) { return a; } if (a.axClass === c.AXXMLList) { return 1 !== a._children.length && c.throwError("TypeError", b.Errors.XMLMarkupMustBeWellFormed), a._children[0]; } var e = c.xmlParser.parseFromString(b.axCoerceString(a)), h = e._children.length; if (0 === h) { return H(c, 3); } if (1 === h) { return e._children[0]._parent = null, e._children[0]; } c.throwError("TypeError", b.Errors.XMLMarkupMustBeWellFormed); } function t(a, c) { null === a && c.sec.throwError("TypeError", b.Errors.ConvertNullToObjectError); void 0 === a && c.sec.throwError("TypeError", b.Errors.ConvertUndefinedToObjectError); if (a.axClass === c.sec.AXXML) { c.append(a); } else { var e = m(c.sec), e = '' + a + ""; if (e = n(e, c.sec)._children) { for (var h = 0;h < e.length;h++) { var d = e[h]; d._parent = null; c.append(d); } } } } function p(a, c) { if (void 0 === a) { return C; } var e; if ("object" === typeof a && null !== a) { if (a instanceof b.Multiname) { return a; } if (a.axClass === c.AXQName) { return a.name; } e = String(a); } else { "number" === typeof a ? e = a + "" : "string" === typeof a ? e = "*" === a ? null : a : c.throwError("TypeError", b.Errors.XMLInvalidName, a); } return e && "@" === e[0] ? (e = e.substr(1), "*" === e && (e = null), new b.Multiname(null, 0, 13, [], e)) : new b.Multiname(null, 0, 7, [], e); } function h(a, c) { var b = x; b.kind = a.kind; a.name && a.name.axClass === c.AXQName && (a = a.name.name); if (a.isQName()) { b.name = a.name, b.namespaces = a.namespaces; } else { if (a.isAnyNamespace()) { b.namespaces = a.namespaces; } else { for (var e = m(c), h = a.namespaces, d = !1, v = 0;v < h.length;v++) { var p = h[v]; if (p.uri === e.uri && p.prefix === e.prefix && p.type === e.type) { d = !0; break; } } b.namespaces = d ? a.namespaces : a.namespaces.concat(e); } } e = a.name; a.isAnyName() || "*" === e || null === e ? b.name = null : 1 < e.length && "@" === e[0] ? b.isAttribute() ? b.name = e : (b.name = "@*" === e ? null : e.substr(1), b.kind = 13) : b.name = e; return b; } function m(a) { for (var c = b.getCurrentScope();c;) { if (c.defaultNamespace) { return c.defaultNamespace; } c = c.parent; } return a.AXNamespace.defaultNamespace; } function v(a, c) { for (var b = a.uri, e = 0;c && e < c.length;e++) { if (b === c[e].uri) { return c[e]; } } return a.namespaces[0]; } function w(a, c) { try { c.AXQName.Create(a); } catch (b) { return !1; } return !0; } function H(a, c, e, h, d) { void 0 === c && (c = 3); void 0 === e && (e = ""); void 0 === h && (h = ""); a = a.AXXML.Create(); e = b.internPrefixedNamespace(0, e, d || ""); h = new b.Multiname(null, 0, 2 === c ? 13 : 7, [e], h, null); a.init(c, h); return a; } var K = f.Debug.assert, z = f.Debug.notImplemented, A = f.ObjectUtilities.defineNonEnumerableProperty; g.isXMLType = q; g.isXMLCollection = function(a, c) { return "object" === typeof a && a && (a.axClass === c.AXXML || a.axClass === c.AXXMLList); }; g.escapeElementValue = k; g.escapeAttributeValue = r; var B = []; g.isXMLName = w; var x = new b.Multiname(null, 0, 7, [], null), C = new b.Multiname(null, 0, 7, [], null); (function(a) { a[a.NoError = 0] = "NoError"; a[a.EndOfDocument = -1] = "EndOfDocument"; a[a.UnterminatedCdat = -2] = "UnterminatedCdat"; a[a.UnterminatedXmlDeclaration = -3] = "UnterminatedXmlDeclaration"; a[a.UnterminatedDoctypeDeclaration = -4] = "UnterminatedDoctypeDeclaration"; a[a.UnterminatedComment = -5] = "UnterminatedComment"; a[a.MalformedElement = -6] = "MalformedElement"; a[a.OutOfMemory = -7] = "OutOfMemory"; a[a.UnterminatedAttributeValue = -8] = "UnterminatedAttributeValue"; a[a.UnterminatedElement = -9] = "UnterminatedElement"; a[a.ElementNeverBegun = -10] = "ElementNeverBegun"; })(g.XMLParserErrorCode || (g.XMLParserErrorCode = {})); var y = function() { function a() { } a.prototype.resolveEntities = function(a) { return a.replace(/&([^;]+);/g, function(a, c) { if ("#x" === c.substring(0, 2)) { return String.fromCharCode(parseInt(c.substring(2), 16)); } if ("#" === c.substring(0, 1)) { return String.fromCharCode(parseInt(c.substring(1), 10)); } switch(c) { case "lt": return "<"; case "gt": return ">"; case "amp": return "&"; case "quot": return '"'; } return a; }); }; a.prototype.parseContent = function(a, c) { function b() { for (;e < a.length && d(a, e);) { ++e; } } for (var e = c, h, m = [];e < a.length && !d(a, e) && ">" !== a[e] && "/" !== a[e];) { ++e; } h = a.substring(c, e); for (b();e < a.length && ">" !== a[e] && "/" !== a[e] && "?" !== a[e];) { b(); for (var v = "", p = "";e < a.length && !d(a, e) && "=" !== a[e];) { v += a[e], ++e; } b(); if ("=" !== a[e]) { return null; } ++e; b(); p = a[e]; if ('"' !== p && "'" !== p) { return null; } var l = a.indexOf(p, ++e); if (0 > l) { return null; } p = a.substring(e, l); m.push({name:v, value:this.resolveEntities(p)}); e = l + 1; b(); } return {name:h, attributes:m, parsed:e - c}; }; a.prototype.parseProcessingInstruction = function(a, c) { for (var b = c, e, h;b < a.length && !d(a, b) && ">" !== a[b] && "/" !== a[b];) { ++b; } for (e = a.substring(c, b);b < a.length && d(a, b);) { ++b; } for (h = b;b < a.length && ("?" !== a[b] || ">" != a[b + 1]);) { ++b; } h = a.substring(h, b); return {name:e, value:h, parsed:b - c}; }; a.prototype.parseXml = function(a) { for (var c = 0;c < a.length;) { var b = c; if ("<" === a[c]) { switch(++b, a[b]) { case "/": ++b; c = a.indexOf(">", b); if (0 > c) { this.onError(-9); return; } this.onEndElement(a.substring(b, c)); b = c + 1; break; case "?": ++b; c = this.parseProcessingInstruction(a, b); if ("?>" != a.substring(b + c.parsed, b + c.parsed + 2)) { this.onError(-3); return; } this.onPi(c.name, c.value); b += c.parsed + 2; break; case "!": if ("--" === a.substring(b + 1, b + 3)) { c = a.indexOf("--\x3e", b + 3); if (0 > c) { this.onError(-5); return; } this.onComment(a.substring(b + 3, c)); b = c + 3; } else { if ("[CDATA[" === a.substring(b + 1, b + 8)) { c = a.indexOf("]]\x3e", b + 8); if (0 > c) { this.onError(-2); return; } this.onCdata(a.substring(b + 8, c)); b = c + 3; } else { if ("DOCTYPE" === a.substring(b + 1, b + 8)) { var e = a.indexOf("[", b + 8), h = !1, c = a.indexOf(">", b + 8); if (0 > c) { this.onError(-4); return; } if (0 < e && c > e) { c = a.indexOf("]>", b + 8); if (0 > c) { this.onError(-4); return; } h = !0; } b = a.substring(b + 8, c + (h ? 1 : 0)); this.onDoctype(b); b = c + (h ? 2 : 1); } else { this.onError(-6); return; } } } break; default: c = this.parseContent(a, b); if (null === c) { this.onError(-6); return; } h = !1; if ("/>" === a.substring(b + c.parsed, b + c.parsed + 2)) { h = !0; } else { if (">" !== a.substring(b + c.parsed, b + c.parsed + 1)) { this.onError(-9); return; } } this.onBeginElement(c.name, c.attributes, h); b += c.parsed + (h ? 2 : 1); } } else { for (;b++ < a.length && "<" !== a[b];) { } c = a.substring(c, b); this.onText(this.resolveEntities(c)); } c = b; } }; a.prototype.onPi = function(a, c) { }; a.prototype.onComment = function(a) { }; a.prototype.onCdata = function(a) { }; a.prototype.onDoctype = function(a) { }; a.prototype.onText = function(a) { }; a.prototype.onBeginElement = function(a, c, b) { }; a.prototype.onEndElement = function(a) { }; a.prototype.onError = function(a) { }; return a; }(); g.XMLParserBase = y; y = function(c) { function e(a) { c.call(this); this.sec = a; this.scopes = []; } __extends(e, c); e.prototype.isWhitespacePreserved = function() { for (var a = this.scopes, c = a.length - 1;0 <= c;--c) { if ("preserve" === a[c].space) { return !0; } } return !1; }; e.prototype.lookupDefaultNs = function() { for (var a = this.scopes, c = a.length - 1;0 <= c;--c) { if ("xmlns" in a[c]) { return a[c].xmlns; } } return ""; }; e.prototype.lookupNs = function(a) { for (var c = this.scopes, b = c.length - 1;0 <= b;--b) { if (a in c[b].lookup) { return c[b].lookup[a]; } } }; e.prototype.getName = function(a, c) { var e = a.indexOf(":"); if (0 <= e) { var h = a.substring(0, e), e = a.substring(e + 1), d = this.lookupNs(h); void 0 === d && this.sec.throwError("TypeError", b.Errors.XMLPrefixNotBound, h, e); return {name:d + "::" + e, localName:e, prefix:h, namespace:d}; } return c ? {name:a, localName:a, prefix:"", namespace:this.lookupDefaultNs()} : {name:a, localName:a, prefix:"", namespace:""}; }; e.prototype.onError = function(a) { switch(a) { case -6: this.sec.throwError("TypeError", b.Errors.XMLMalformedElement); break; case -9: this.sec.throwError("TypeError", b.Errors.XMLUnterminatedElement); break; case -4: this.sec.throwError("TypeError", b.Errors.XMLUnterminatedDocTypeDecl); break; case -2: this.sec.throwError("TypeError", b.Errors.XMLUnterminatedCData); break; case -5: this.sec.throwError("TypeError", b.Errors.XMLUnterminatedComment); break; case -3: this.sec.throwError("TypeError", b.Errors.XMLUnterminatedXMLDecl); } }; e.prototype.onPi = function(a, c) { this.pi(a, c); }; e.prototype.onComment = function(a) { this.comment(a); }; e.prototype.onCdata = function(a) { this.cdata(a); }; e.prototype.onDoctype = function(a) { this.doctype(a); }; e.prototype.onText = function(a) { this.text(a, this.isWhitespacePreserved()); }; e.prototype.onBeginElement = function(c, e, h) { for (var d = this.scopes, m = {namespaces:[], lookup:Object.create(null), inScopes:null}, v = 0;v < e.length;++v) { var p = e[v], l = p.name; "xmlns:" === l.substring(0, 6) ? (l = l.substring(6), p = p.value, this.lookupNs(l) !== p && (m.lookup[l] = a(p), p = b.internPrefixedNamespace(0, p, l), m.namespaces.push(p)), e[v] = null) : "xmlns" === l ? (p = p.value, this.lookupDefaultNs() !== p && (m.xmlns = a(p), p = b.internNamespace(0, p), m.namespaces.push(p)), e[v] = null) : "xml:" === l.substring(0, 4) && (l = l.substring(4), m[l] = a(p.value)); } var n = []; m.namespaces.forEach(function(a) { a.prefix && m.lookup[a.prefix] !== a.uri || n.push(a); }); d[d.length - 1].inScopes.forEach(function(a) { (!a.prefix || a.prefix in m.lookup) && (a.prefix || "xmlns" in m) || n.push(a); }); m.inScopes = n; d.push(m); l = []; for (v = 0;v < e.length;++v) { (p = e[v]) && l.push({name:this.getName(p.name, !1), value:p.value}); } this.beginElement(this.getName(c, !0), l, n, h); h && d.pop(); }; e.prototype.onEndElement = function(a) { this.endElement(this.getName(a, !0)); this.scopes.pop(); }; e.prototype.beginElement = function(a, c, b, e) { var h = this.currentElement; this.elementsStack.push(h); this.currentElement = H(this.sec, 1, a.namespace, a.localName, a.prefix); for (a = 0;a < c.length;++a) { var d = c[a], m = H(this.sec, 2, d.name.namespace, d.name.localName, d.name.prefix); m._value = d.value; m._parent = this.currentElement; this.currentElement._attributes.push(m); } for (a = 0;a < b.length;++a) { this.currentElement._inScopeNamespaces.push(b[a]); } h.insert(h._children.length, this.currentElement); e && (this.currentElement = this.elementsStack.pop()); }; e.prototype.endElement = function(a) { this.currentElement = this.elementsStack.pop(); }; e.prototype.text = function(c, b) { this.sec.AXXML.ignoreWhitespace && (c = a(c)); if (!(0 === c.length || b && this.sec.AXXML.ignoreWhitespace)) { var e = H(this.sec); e._value = c; this.currentElement.insert(this.currentElement._children.length, e); } }; e.prototype.cdata = function(a) { var c = H(this.sec); c._value = a; this.currentElement.insert(this.currentElement._children.length, c); }; e.prototype.comment = function(a) { if (!this.sec.AXXML.ignoreComments) { var c = H(this.sec, 4, "", ""); c._value = a; this.currentElement.insert(this.currentElement._children.length, c); } }; e.prototype.pi = function(a, c) { if (!this.sec.AXXML.ignoreProcessingInstructions) { var b = H(this.sec, 5, "", a); b._value = c; this.currentElement.insert(this.currentElement._children.length, b); } }; e.prototype.doctype = function(a) { }; e.prototype.parseFromString = function(a, c) { var e = this.currentElement = H(this.sec, 1, "", "", ""); this.elementsStack = []; var h = m(this.sec); this.scopes = [{namespaces:[], lookup:{xmlns:"http://www.w3.org/2000/xmlns/", xml:"http://www.w3.org/XML/1998/namespace"}, inScopes:[h], space:"default", xmlns:h.uri}]; this.parseXml(a); this.currentElement = null; 0 < this.elementsStack.length && (h = this.elementsStack.pop()._name.name, this.sec.throwError("TypeError", b.Errors.XMLUnterminatedElementTag, h, h)); this.elementsStack = null; return e; }; return e; }(y); g.XMLParser = y; y = function(a) { function c(e, h) { a.call(this); var d = "", m = ""; if (0 !== arguments.length) { if (1 === arguments.length) { var v = e; if (v instanceof b.Namespace) { this._ns = v; return; } v && "object" === typeof v ? v.axClass === this.sec.AXNamespace ? (d = v, m = d.prefix, d = d.uri) : v.axClass === this.sec.AXQName && null !== v.uri && (d = v.uri) : (d = u(v, this.sec), m = "" === d ? "" : void 0); } else { v = h, d = f.isObject(v) && v.axClass === this.sec.AXQName && null !== v.uri ? v.uri : u(v, this.sec), "" === d ? void 0 === e || "" === u(e, this.sec) ? m = "" : this.sec.throwError("TypeError", b.Errors.XMLNamespaceWithPrefixAndNoURI, e) : m = void 0 === e ? void 0 : !1 === w(e, this.sec) ? void 0 : u(e, this.sec); } } this._ns = b.internPrefixedNamespace(0, d, m); } __extends(c, a); c.classInitializer = function() { A(this, "$Bglength", 2); A(this.dPrototype, "$BgtoString", c.prototype.toString); }; c.axApply = function(a, c) { var b = c[0], e = c[1]; if (1 === c.length && f.isObject(b) && b.axClass === this.sec.AXNamespace) { return b; } switch(c.length) { case 0: return this.sec.AXNamespace.Create(); case 1: return this.sec.AXNamespace.Create(b); default: return this.sec.AXNamespace.Create(b, e); } }; c.Create = function(a, c) { var b = Object.create(this.sec.AXNamespace.tPrototype); b.axInitializer.apply(b, arguments); return b; }; c.FromNamespace = function(a) { var c = Object.create(this.sec.AXNamespace.tPrototype); c._ns = a; return c; }; c.prototype.equals = function(a) { return a && a.axClass === this.axClass && a._ns.uri === this._ns.uri || "string" === typeof a && this._ns.uri === a; }; Object.defineProperty(c.prototype, "prefix", {get:function() { return this._ns.prefix; }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "uri", {get:function() { return this._ns.uri; }, enumerable:!0, configurable:!0}); c.prototype.toString = function() { return this === this.axClass.dPrototype ? "" : this._ns.uri; }; c.prototype.valueOf = function() { return this === this.axClass.dPrototype ? "" : this._ns.uri; }; c.instanceConstructor = c; c.defaultNamespace = b.Namespace.PUBLIC; return c; }(g.ASObject); g.ASNamespace = y; y = function(a) { function c(e, h) { a.call(this); var d, v; 0 === arguments.length ? d = "" : 1 === arguments.length ? d = e : (v = e, d = h); if (d && d.axClass === this.sec.AXQName) { if (2 > arguments.length) { this.name = d.name; return; } d = d.localName; } d = void 0 === d ? "" : u(d, this.sec); void 0 === v && (v = "*" === d ? null : m(this.sec)); var p = null; null !== v && (v.axClass !== this.sec.AXNamespace && (v = this.sec.AXNamespace.Create(v)), p = v._ns); this.name = new b.Multiname(null, 0, 7, [p], d); } __extends(c, a); c.classInitializer = function() { A(this, "$Bglength", 2); A(this.dPrototype, "$BgtoString", c.prototype.ecmaToString); }; c.Create = function(a, c, b) { var e = Object.create(this.sec.AXQName.tPrototype); e.axInitializer.apply(e, arguments); return e; }; c.FromMultiname = function(a) { var c = Object.create(this.sec.AXQName.tPrototype); c.name = a; return c; }; c.axApply = function(a, c) { var b = c[0], e = c[1]; if (1 === c.length && b && b.axClass === this.sec.AXQName) { return b; } switch(c.length) { case 0: return this.sec.AXQName.Create(); case 1: return this.sec.AXQName.Create(b); default: return this.sec.AXQName.Create(b, e); } }; c.prototype.equals = function(a) { return a && a.axClass === this.sec.AXQName && a.uri === this.uri && a.name.name === this.name.name || "string" === typeof a && this.toString() === a; }; Object.defineProperty(c.prototype, "localName", {get:function() { return this.name.name; }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "uri", {get:function() { var a = this.name.namespaces; return 1 < a.length ? "" : a[0] ? a[0].uri : null; }, enumerable:!0, configurable:!0}); c.prototype.ecmaToString = function() { if (this && this === this.sec.AXQName.dPrototype) { return ""; } this && this.axClass === this.sec.AXQName || this.sec.throwError("TypeError", b.Errors.InvokeOnIncompatibleObjectError, "QName.prototype.toString"); return this.toString(); }; c.prototype.toString = function() { var a = this.uri; if ("" === a) { return this.name.name; } if (null === a) { return "*::" + this.name.name; } var a = a + "", c = a.charCodeAt(a.length - 1), b = a; 57344 <= c && 63743 >= c && (b = a.substr(0, a.length - 1)); return "" === b ? this.name.name : b + "::" + this.name.name; }; c.prototype.valueOf = function() { return this; }; Object.defineProperty(c.prototype, "prefix", {get:function() { return this.name.namespaces[0] ? this.name.namespaces[0].prefix : null; }, enumerable:!0, configurable:!0}); return c; }(g.ASObject); g.ASQName = y; var D; (function(a) { a[a.FLAG_IGNORE_COMMENTS = 1] = "FLAG_IGNORE_COMMENTS"; a[a.FLAG_IGNORE_PROCESSING_INSTRUCTIONS = 2] = "FLAG_IGNORE_PROCESSING_INSTRUCTIONS"; a[a.FLAG_IGNORE_WHITESPACE = 4] = "FLAG_IGNORE_WHITESPACE"; a[a.FLAG_PRETTY_PRINTING = 8] = "FLAG_PRETTY_PRINTING"; a[a.ALL = a.FLAG_IGNORE_COMMENTS | a.FLAG_IGNORE_PROCESSING_INSTRUCTIONS | a.FLAG_IGNORE_WHITESPACE | a.FLAG_PRETTY_PRINTING] = "ALL"; })(D || (D = {})); (function(a) { a[a.Unknown = 0] = "Unknown"; a[a.Element = 1] = "Element"; a[a.Attribute = 2] = "Attribute"; a[a.Text = 3] = "Text"; a[a.Comment = 4] = "Comment"; a[a.ProcessingInstruction = 5] = "ProcessingInstruction"; })(g.ASXMLKind || (g.ASXMLKind = {})); var G = [null, "element", "attribute", "text", "comment", "processing-instruction"], y = function(d) { function l(a) { d.call(this); this._parent = null; f.isNullOrUndefined(a) && (a = ""); if ("string" === typeof a && 0 === a.length) { this._kind = 3, this._value = ""; } else { var c = n(a, this.sec); q(a, this.sec) && (c = c._deepCopy()); this._kind = c._kind; this._name = c._name; this._value = c._value; this._attributes = c._attributes; this._inScopeNamespaces = c._inScopeNamespaces; if (this._children = a = c._children) { for (c = 0;c < a.length;c++) { a[c]._parent = this; } } } } __extends(l, d); l.classInitializer = function() { A(this, "$Bglength", 1); var a = this.dPrototype, c = l.prototype; g.addPrototypeFunctionAlias(a, "$BgvalueOf", c.valueOf); A(a, "$BghasOwnProperty", c.native_hasOwnProperty); A(a, "$BgpropertyIsEnumerable", c.native_propertyIsEnumerable); g.addPrototypeFunctionAlias(this, "$Bgsettings", l.native_settings); g.addPrototypeFunctionAlias(this, "$BgsetSettings", l.native_setSettings); g.addPrototypeFunctionAlias(this, "$BgdefaultSettings", l.native_defaultSettings); g.addPrototypeFunctionAlias(a, "$BgtoString", c.toString); g.addPrototypeFunctionAlias(a, "$BgaddNamespace", c.addNamespace); g.addPrototypeFunctionAlias(a, "$BgappendChild", c.appendChild); g.addPrototypeFunctionAlias(a, "$Bgattribute", c.attribute); g.addPrototypeFunctionAlias(a, "$Bgattributes", c.attributes); g.addPrototypeFunctionAlias(a, "$Bgchild", c.child); g.addPrototypeFunctionAlias(a, "$BgchildIndex", c.childIndex); g.addPrototypeFunctionAlias(a, "$Bgchildren", c.children); g.addPrototypeFunctionAlias(a, "$Bgcomments", c.comments); g.addPrototypeFunctionAlias(a, "$Bgcontains", c.contains); g.addPrototypeFunctionAlias(a, "$Bgcopy", c.copy); g.addPrototypeFunctionAlias(a, "$Bgdescendants", c.descendants); g.addPrototypeFunctionAlias(a, "$Bgelements", c.elements); g.addPrototypeFunctionAlias(a, "$BghasComplexContent", c.hasComplexContent); g.addPrototypeFunctionAlias(a, "$BghasSimpleContent", c.hasSimpleContent); g.addPrototypeFunctionAlias(a, "$BginScopeNamespaces", c.inScopeNamespaces); g.addPrototypeFunctionAlias(a, "$BginsertChildAfter", c.insertChildAfter); g.addPrototypeFunctionAlias(a, "$BginsertChildBefore", c.insertChildBefore); g.addPrototypeFunctionAlias(a, "$Bglength", c.length); g.addPrototypeFunctionAlias(a, "$BglocalName", c.localName); g.addPrototypeFunctionAlias(a, "$Bgname", c.name); g.addPrototypeFunctionAlias(a, "$Bgnamespace", c.namespace); g.addPrototypeFunctionAlias(a, "$BgnamespaceDeclarations", c.namespaceDeclarations); g.addPrototypeFunctionAlias(a, "$BgnodeKind", c.nodeKind); g.addPrototypeFunctionAlias(a, "$Bgnormalize", c.normalize); g.addPrototypeFunctionAlias(a, "$Bgparent", c.parent); g.addPrototypeFunctionAlias(a, "$BgprocessingInstructions", c.processingInstructions); g.addPrototypeFunctionAlias(a, "$BgprependChild", c.prependChild); g.addPrototypeFunctionAlias(a, "$BgremoveNamespace", c.removeNamespace); g.addPrototypeFunctionAlias(a, "$Bgreplace", c.replace); g.addPrototypeFunctionAlias(a, "$BgsetChildren", c.setChildren); g.addPrototypeFunctionAlias(a, "$BgsetLocalName", c.setLocalName); g.addPrototypeFunctionAlias(a, "$BgsetName", c.setName); g.addPrototypeFunctionAlias(a, "$BgsetNamespace", c.setNamespace); g.addPrototypeFunctionAlias(a, "$Bgtext", c.text); g.addPrototypeFunctionAlias(a, "$BgtoXMLString", c.toXMLString); g.addPrototypeFunctionAlias(a, "$BgtoJSON", c.toJSON); }; l.Create = function(a) { var c = Object.create(this.sec.AXXML.tPrototype); c.axInitializer(a); return c; }; l.resetSettings = function() { this._flags = D.ALL; }; l.native_settings = function() { var a = Object.create(this.sec.AXObject.tPrototype); a.$BgignoreComments = this.ignoreComments; a.$BgignoreProcessingInstructions = this.ignoreProcessingInstructions; a.$BgignoreWhitespace = this.ignoreWhitespace; a.$BgprettyPrinting = this.prettyPrinting; a.$BgprettyIndent = this.prettyIndent; return a; }; l.native_setSettings = function(a) { f.isNullOrUndefined(a) ? (this.prettyPrinting = this.ignoreWhitespace = this.ignoreProcessingInstructions = this.ignoreComments = !0, this.prettyIndent = 2) : ("boolean" === typeof a.$BgignoreComments && (this.ignoreComments = a.$BgignoreComments), "boolean" === typeof a.$BgignoreProcessingInstructions && (this.ignoreProcessingInstructions = a.$BgignoreProcessingInstructions), "boolean" === typeof a.$BgignoreWhitespace && (this.ignoreWhitespace = a.$BgignoreWhitespace), "boolean" === a.$BgprettyPrinting && (this.prettyPrinting = a.$BgprettyPrinting), "number" === a.$BgprettyIndent && (this.prettyIndent = a.$BgprettyIndent)); }; l.native_defaultSettings = function() { return {__proto__:this.sec.AXObject.tPrototype, $BgignoreComments:!0, $BgignoreProcessingInstructions:!0, $BgignoreWhitespace:!0, $BgprettyPrinting:!0, $BgprettyIndent:2}; }; l.axApply = function(a, c) { var b = c[0]; f.isNullOrUndefined(b) && (b = ""); return n(b, this.sec); }; l.prototype.valueOf = function() { return this; }; l.prototype.equals = function(a) { return a && a.axClass === this.sec.AXXMLList ? a.equals(this) : a && a.axClass === this.sec.AXXML ? (3 === this._kind || 2 === this._kind) && a.hasSimpleContent() || (3 === a._kind || 2 === a._kind) && this.hasSimpleContent() ? this.toString() === a.toString() : this._deepEquals(a) : this.hasSimpleContent() && this.toString() === b.axCoerceString(a); }; l.prototype.init = function(a, c) { this._name = c; this._kind = a; this._parent = null; switch(a) { case 1: this._inScopeNamespaces = []; this._attributes = []; this._children = []; break; case 4: ; case 5: ; case 2: ; case 3: this._value = ""; } return this; }; l.prototype._deepEquals = function(a) { if (!a || a.axClass !== this.sec.AXXML || this._kind !== a._kind || !!this._name !== !!a._name || this._name && !this._name.equalsQName(a._name)) { return !1; } if (1 !== this._kind) { return this._value !== a._value ? !1 : !0; } var c = this._attributes, b = a._attributes; if (c.length !== b.length) { return !1; } var e = this._children; a = a._children; if (e.length !== a.length) { return !1; } var h = 0; a: for (;h < c.length;h++) { for (var d = c[h], m = 0;m < b.length;m++) { var l = b[m]; if (l._name.equalsQName(d._name) && l._value === d._value) { continue a; } } return !1; } for (h = 0;h < e.length;h++) { if (!e[h].equals(a[h])) { return !1; } } return !0; }; l.prototype._deepCopy = function() { var a = this._kind, c = this.sec.AXXML.Create(); c._kind = a; c._name = this._name; switch(a) { case 1: c._inScopeNamespaces = this._inScopeNamespaces.slice(); c._attributes = this._attributes.map(function(a) { a = a._deepCopy(); a._parent = c; return a; }); c._children = this._children.map(function(a) { a = a._deepCopy(); a._parent = c; return a; }); break; case 4: ; case 5: ; case 2: ; case 3: c._value = this._value; } return c; }; l.prototype.resolveValue = function() { return this; }; l.prototype._addInScopeNamespace = function(a) { this._inScopeNamespaces.some(function(c) { return c.uri === a.uri && c.prefix === a.prefix; }) || this._inScopeNamespaces.push(a); }; Object.defineProperty(l, "ignoreComments", {get:function() { return !!(this._flags & 1); }, set:function(a) { this._flags = a ? this._flags | 1 : this._flags & -2; }, enumerable:!0, configurable:!0}); Object.defineProperty(l, "ignoreProcessingInstructions", {get:function() { return !!(this._flags & 2); }, set:function(a) { this._flags = a ? this._flags | 2 : this._flags & -3; }, enumerable:!0, configurable:!0}); Object.defineProperty(l, "ignoreWhitespace", {get:function() { return !!(this._flags & 4); }, set:function(a) { this._flags = a ? this._flags | 4 : this._flags & -5; }, enumerable:!0, configurable:!0}); Object.defineProperty(l, "prettyPrinting", {get:function() { return !!(this._flags & 8); }, set:function(a) { this._flags = a ? this._flags | 8 : this._flags & -9; }, enumerable:!0, configurable:!0}); Object.defineProperty(l, "prettyIndent", {get:function() { return this._prettyIndent; }, set:function(a) { this._prettyIndent = a | 0; }, enumerable:!0, configurable:!0}); l.prototype.toString = function() { return this === this.axClass.dPrototype ? "" : this.hasComplexContent() ? this.toXMLString() : u(this, this.sec); }; l.prototype.native_hasOwnProperty = function(a) { if (this === this.axClass.dPrototype) { return g.ASObject.prototype.native_hasOwnProperty.call(this, a); } a = p(a, this.sec); return this.hasProperty(a) ? !0 : this.axHasOwnProperty(a); }; l.prototype.native_propertyIsEnumerable = function(a) { void 0 === a && (a = void 0); return "0" === String(a); }; l.prototype.addNamespace = function(a) { this && this.axClass === this.sec.AXXML || this.sec.throwError("TypeError", b.Errors.CheckTypeFailedError, this, "XML"); this._addInScopeNamespace(a); return this; }; l.prototype.appendChild = function(a) { this && this.axClass === this.sec.AXXML || this.sec.throwError("TypeError", b.Errors.CheckTypeFailedError, this, "XML"); if (a._parent) { var c = a._parent._children.indexOf(a); a._parent._children.splice(c, 1); } this._children.push(a); a._parent = this; return this; }; l.prototype.attribute = function(a) { this && this.axClass === this.sec.AXXML || this.sec.throwError("TypeError", b.Errors.CheckTypeFailedError, this, "XML"); f.isNullOrUndefined(a) && 0 < arguments.length && this.sec.throwError("TypeError", b.Errors.ConvertUndefinedToObjectError); if (a && a.axClass === this.sec.AXQName) { return this.getProperty(a.name); } a = b.axCoerceString(a); if ("*" === a || 0 === arguments.length) { a = null; } x.name = a; x.namespaces = [b.Namespace.PUBLIC]; x.kind = 13; return this.getProperty(x); }; l.prototype.attributes = function() { this && this.axClass === this.sec.AXXML || this.sec.throwError("TypeError", b.Errors.CheckTypeFailedError, this, "XML"); var a = this.sec.AXXMLList.CreateList(this, this._name); Array.prototype.push.apply(a._children, this._attributes); return a; }; l.prototype.child = function(a) { this && this.axClass === this.sec.AXXML || this.sec.throwError("TypeError", b.Errors.CheckTypeFailedError, this, "XML"); if (f.isIndex(a)) { var c = this.sec.AXXMLList.CreateList(null, null); this._children && a < this._children.length && c.append(this._children[a | 0]); return c; } a && a.axClass === this.sec.AXQName ? c = a.name : (c = x, c.kind = 7, c.name = u(a, this.sec)); return this.getProperty(c); }; l.prototype.childIndex = function() { this && this.axClass === this.sec.AXXML || this.sec.throwError("TypeError", b.Errors.CheckTypeFailedError, this, "XML"); return this._parent && 2 !== this._kind ? this._parent._children.indexOf(this) : -1; }; l.prototype.children = function() { this && this.axClass === this.sec.AXXML || this.sec.throwError("TypeError", b.Errors.CheckTypeFailedError, this, "XML"); var a = this.sec.AXXMLList.CreateList(this, this._name); Array.prototype.push.apply(a._children, this._children); return a; }; l.prototype.comments = function() { this && this.axClass === this.sec.AXXML || this.sec.throwError("TypeError", b.Errors.CheckTypeFailedError, this, "XML"); var a = this.sec.AXXMLList.CreateList(this, this._name); this._children && this._children.forEach(function(c, b) { 4 === c._kind && a.append(c); }); return a; }; l.prototype.contains = function(a) { this && this.axClass === this.sec.AXXML || this.sec.throwError("TypeError", b.Errors.CheckTypeFailedError, this, "XML"); return this === a; }; l.prototype.copy = function() { this && this.axClass === this.sec.AXXML || this.sec.throwError("TypeError", b.Errors.CheckTypeFailedError, this, "XML"); return this._deepCopy(); }; l.prototype.descendants = function(a) { this && this.axClass === this.sec.AXXML || this.sec.throwError("TypeError", b.Errors.CheckTypeFailedError, this, "XML"); var c = this.sec.AXXMLList.CreateList(this, this._name); return this.descendantsInto(p(a, this.sec), c); }; l.prototype.elements = function(a) { this && this.axClass === this.sec.AXXML || this.sec.throwError("TypeError", b.Errors.CheckTypeFailedError, this, "XML"); return this.getProperty(p(a, this.sec)); }; l.prototype.hasComplexContent = function() { this && this.axClass === this.sec.AXXML || this.sec.throwError("TypeError", b.Errors.CheckTypeFailedError, this, "XML"); return 2 === this._kind || 4 === this._kind || 5 === this._kind || 3 === this._kind ? !1 : this._children.some(function(a) { return 1 === a._kind; }); }; l.prototype.hasSimpleContent = function() { this && this.axClass === this.sec.AXXML || this.sec.throwError("TypeError", b.Errors.CheckTypeFailedError, this, "XML"); return 4 === this._kind || 5 === this._kind ? !1 : 1 !== this._kind || !this._children && 0 === this._children.length ? !0 : this._children.every(function(a) { return 1 !== a._kind; }); }; l.prototype.inScopeNamespaces = function() { this && this.axClass === this.sec.AXXML || this.sec.throwError("TypeError", b.Errors.CheckTypeFailedError, this, "XML"); for (var a = this._inScopeNamespacesImpl(), c = [], e = 0;e < a.length;e++) { c[e] = this.sec.AXNamespace.FromNamespace(a[e]); } return this.sec.AXArray.axBox(c); }; l.prototype._inScopeNamespacesImpl = function() { for (var a = this, c = [];null !== a;) { for (var b = a._inScopeNamespaces, e = 0;b && e < b.length;e++) { var h = b[e]; c[h.prefix] || (c[h.prefix] = h, c.push(h)); } a = a._parent; } return c; }; l.prototype.insertChildAfter = function(a, c) { this && this.axClass === this.sec.AXXML || this.sec.throwError("TypeError", b.Errors.CheckTypeFailedError, this, "XML"); if (!(1 < this._kind)) { if (null == a) { return this.insert(0, c), this; } a.axClass === this.sec.AXXMLList && 1 === a._children.length && (a = a._children[0]); if (a.axClass === this.sec.AXXML) { for (var e = 0;e < this._children.length;e++) { if (this._children[e] === a) { return this.insert(e + 1, c), this; } } } } }; l.prototype.insertChildBefore = function(a, c) { this && this.axClass === this.sec.AXXML || this.sec.throwError("TypeError", b.Errors.CheckTypeFailedError, this, "XML"); if (!(1 < this._kind)) { if (null == a) { return this.insert(this._children.length, c), this; } a.axClass === this.sec.AXXMLList && 1 === a._children.length && (a = a._children[0]); if (a.axClass === this.sec.AXXML) { for (var e = 0;e < this._children.length;e++) { if (this._children[e] === a) { return this.insert(e, c), this; } } } } }; l.prototype.length = function() { this && this.axClass === this.sec.AXXML || this.sec.throwError("TypeError", b.Errors.CheckTypeFailedError, this, "XML"); return this._children ? this._children.length : 0; }; l.prototype.localName = function() { this && this.axClass === this.sec.AXXML || this.sec.throwError("TypeError", b.Errors.CheckTypeFailedError, this, "XML"); return this._name.name; }; l.prototype.name = function() { this && this.axClass === this.sec.AXXML || this.sec.throwError("TypeError", b.Errors.CheckTypeFailedError, this, "XML"); return this.sec.AXQName.FromMultiname(this._name); }; l.prototype.namespace = function(a) { this && this.axClass === this.sec.AXXML || this.sec.throwError("TypeError", b.Errors.CheckTypeFailedError, this, "XML"); if (0 === arguments.length && 3 <= this._kind) { return null; } var c = this._inScopeNamespacesImpl(); if (0 === arguments.length) { return this.sec.AXNamespace.FromNamespace(v(this._name, c)); } a = b.axCoerceString(a); for (var e = 0;e < c.length;e++) { var h = c[e]; if (h.prefix === a) { return this.sec.AXNamespace.FromNamespace(h); } } }; l.prototype.namespaceDeclarations = function() { this && this.axClass === this.sec.AXXML || this.sec.throwError("TypeError", b.Errors.CheckTypeFailedError, this, "XML"); z("public.XML::namespaceDeclarations"); }; l.prototype.nodeKind = function() { this && this.axClass === this.sec.AXXML || this.sec.throwError("TypeError", b.Errors.CheckTypeFailedError, this, "XML"); return G[this._kind]; }; l.prototype.normalize = function() { this && this.axClass === this.sec.AXXML || this.sec.throwError("TypeError", b.Errors.CheckTypeFailedError, this, "XML"); for (var a = 0;a < this._children.length;) { var c = this._children[a]; if (1 === c._kind) { c.normalize(), a++; } else { if (3 === c._kind) { for (a++;a < this._children.length;) { var e = this._children[a]; if (3 !== e._kind) { break; } c._value += e._value; this.removeByIndex(a); } 0 === c._value.length ? this.removeByIndex(a) : a++; } else { a++; } } } return this; }; l.prototype.removeByIndex = function(a) { this._children[a]._parent = null; this._children.splice(a, 1); }; l.prototype.parent = function() { return this._parent || void 0; }; l.prototype.processingInstructions = function(a) { var c = this.sec.AXXMLList.CreateList(this, this._name); c._targetObject = this; c._targetProperty = null; return this.processingInstructionsInto(p(a, this.sec), c); }; l.prototype.processingInstructionsInto = function(a, c) { var b = a || "*", e = this._children; if (!e) { return c; } for (var h = 0;h < e.length;h++) { var d = e[h]; 5 !== d._kind || "*" !== b && d._name.name !== b || c._children.push(d); } return c; }; l.prototype.prependChild = function(a) { this.insert(0, a); return this; }; l.prototype.removeNamespace = function(a) { z("public.XML::removeNamespace"); }; l.prototype.replace = function(a, c) { if (1 < this._kind) { return this; } if (1 === c._kind) { for (var b = this;b;) { if (b === c) { throw "Error in XML.prototype.replace()"; } b = b._parent; } } var e; a && a.axClass === this.sec.AXQName && (e = a.name); e = p(a, this.sec); var b = e.name >>> 0, h = this._children; if (String(e.name) === String(b)) { b >= h.length && (b = h.length), h && h[b] && (h[b]._parent = null); } else { b = this.getProperty(e); if (0 === b._children.length) { return this; } b._children.forEach(function(a, c) { var b = h.indexOf(a); a._parent = null; 0 === c ? (e.name = String(b), h.splice(b, 1, void 0)) : h.splice(b, 1); }); } 1 !== c._kind && 3 !== c._kind && 4 !== c._kind && 5 !== c._kind && (b = u(c, this.sec), c = H(this.sec), c._value = b); c._parent = this; h[e.name] = c; return this; }; l.prototype.setChildren = function(a) { this.setProperty(C, a); return this; }; l.prototype.setLocalName = function(a) { 3 !== this._kind && 4 !== this._kind && (a = a && a.axClass === this.sec.AXQName ? a.localName : b.axCoerceString(a), this._name.name = a); }; l.prototype.setName = function(a) { if (3 !== this._kind && 4 !== this._kind) { a && a.axClass === this.sec.AXQName && null === a.uri && (a = a.localName); a = this.sec.AXQName.Create(a).name; 5 === this._kind && (a.namespaces[0] = b.Namespace.PUBLIC); this._name = a; var c = this; if (2 === this._kind) { if (null === this._parent) { return; } c = this._parent; } c.addInScopeNamespace(a.namespaces[0]); } }; l.prototype.setNamespace = function(a) { 3 !== this._kind && 4 !== this._kind && 5 !== this._kind && (a = this.sec.AXNamespace.Create(a)._ns, this._name.namespaces = [a], 2 === this._kind ? this._parent && this._parent.addInScopeNamespace(a) : 1 === this._kind && this.addInScopeNamespace(a)); }; l.prototype.text = function() { var a = this.sec.AXXMLList.CreateList(this, this._name); this._children && this._children.forEach(function(c, b) { 3 === c._kind && a.append(c); }); return a; }; l.prototype.toXMLString = function() { return this.toXMLStringImpl(); }; l.prototype.toXMLStringImpl = function(h, d) { var m = this.sec, l = m.AXXML.prettyPrinting; d |= 0; var p = l ? c(d) : ""; switch(this._kind) { case 3: return l ? p + k(a(this._value)) : k(this._value); case 2: return p + r(this._value); case 4: return p + "\x3c!--" + this._value + "--\x3e"; case 5: return p + ""; } h = h || []; for (var n = [], t = 0;this._inScopeNamespaces && t < this._inScopeNamespaces.length;t++) { var g = this._inScopeNamespaces[t]; h.every(function(a) { return a.uri !== g.uri || a.prefix !== g.prefix; }) && n.push(g); } var w = h.concat(n), f = v(this._name, w); void 0 === f.prefix && (t = e(w), t = b.internPrefixedNamespace(0, f.uri, t), n.push(t), w.push(t)); var H = (f.prefix ? f.prefix + ":" : "") + this._name.name, p = p + ("<" + H); this._attributes && this._attributes.forEach(function(a) { a = v(a._name, w); if (void 0 === a.prefix) { var c = e(w); a = b.internPrefixedNamespace(0, a.uri, c); n.push(a); w.push(a); } }); for (t = 0;t < n.length;t++) { f = n[t], "" !== f.uri && (p += " " + (f.prefix ? "xmlns:" + f.prefix : "xmlns") + '="' + r(f.uri) + '"'); } this._attributes && this._attributes.forEach(function(a) { var c = a._name, b = v(c, h); p += " " + (b.prefix ? b.prefix + ":" + c.name : c.name) + '="' + r(a._value) + '"'; }); if (0 === this._children.length) { return p += "/>"; } var p = p + ">", q = 1 < this._children.length || 1 === this._children.length && 3 !== this._children[0]._kind, u = l && q ? d + m.AXXML._prettyIndent : 0; this._children.forEach(function(a, c) { l && q && (p += "\n"); p += a.toXMLStringImpl(w, u); }); l && q && (p += "\n" + c(d)); return p += ""; }; l.prototype.toJSON = function(a) { return "XML"; }; l.prototype.axGetEnumerableKeys = function() { if (this === this.axClass.dPrototype) { return d.prototype.axGetEnumerableKeys.call(this); } for (var a = [], c = 0;c < this._children.length;c++) { a.push(this._children[c]._name.name); } return a; }; l.prototype.setProperty = function(a, c) { a.isAnyName() || a.isAttribute() || a.name !== a.name >>> 0 || this.sec.throwError("TypeError", b.Errors.XMLAssignmentToIndexedXMLNotAllowed); if (3 !== this._kind && 4 !== this._kind && 5 !== this._kind && 2 !== this._kind) { var e; e = q(c, this.sec) && 3 !== c._kind && 2 !== c._kind ? c._deepCopy() : u(c, this.sec); if (a.isAttribute()) { if (e && e.axClass === this.sec.AXXMLList) { if (0 === e._children.length) { e = ""; } else { for (var h = u(e._children[0], this.sec), d = 1;d < e._children.length;d++) { h += " " + u(e._children[d], this.sec); } e = h; } } else { e = b.axCoerceString(e); } for (var l = null, v = this._attributes, h = this._attributes = [], d = 0;v && d < v.length;d++) { var p = v[d]; if (p._name.equalsQName(a)) { if (l) { p._parent = null; continue; } else { l = p; } } h.push(p); } l || (v = "", 1 === a.namespaces.length && (v = a.namespaces[0].uri), l = H(this.sec, 2, v, a.name), l._parent = this, h.push(l)); l._value = e; } else { for (var v = a.isAnyName(), h = !q(e, this.sec) && !v && "*" !== a.name, p = a.isAnyNamespace(), n = this._children.length - 1;0 <= n;n--) { (v || 1 === this._children[n]._kind && this._children[n]._name.name === a.name) && (p || 1 === this._children[n]._kind && this._children[n]._name.matches(a)) && (void 0 !== d && this.deleteByIndex(d), d = n); } void 0 === d && (d = this._children.length, h && (p = a.namespaces[0], v = null, null !== p.uri && (v = p.uri, l = p.prefix), null === v && (l = m(this.sec), v = l.uri, l = l.prefix), l = H(this.sec, 1, v, a.name, l), l._parent = this, this.replace(String(d), l), p = l._name.namespace, l.addInScopeNamespace(p))); h ? (this._children[d]._children = [], h = u(e, this.sec), "" !== h && this._children[d].replace("0", h)) : this.replace(String(d), e); } } }; l.prototype.axSetProperty = function(a, c, b) { this === this.axClass.dPrototype ? this[this.axResolveMultiname(a)] = c : this.setProperty(h(a, this.sec), c); }; l.prototype.getProperty = function(a) { var c = a.name; if (f.isIndex(c)) { return 0 === (c | 0) ? this : null; } var b = this.sec.AXXMLList.CreateList(this, this._name); b._targetObject = this; b._targetProperty = a; var e = 0, h = a.isAnyName(), d = a.isAnyNamespace(); if (a.isAttribute()) { for (var m = 0;this._attributes && m < this._attributes.length;m++) { var l = this._attributes[m]; !h && l._name.name !== c || !d && !l._name.matches(a) || (b._children[e++] = l, K(b._children[0])); } return b; } for (m = 0;this._children && m < this._children.length;m++) { l = this._children[m], (h || 1 === l._kind && l._name.name === c) && (d || l._name.matches(a)) && (b._children[e++] = l, K(b._children[0])); } return b; }; l.prototype.axGetProperty = function(a) { return this === this.axClass.dPrototype ? this[this.axResolveMultiname(a)] : this.getProperty(h(a, this.sec)); }; l.prototype.hasProperty = function(a) { if (f.isIndex(a.name)) { return 0 === (a.name | 0); } var c = p(a, this.sec), b = c.isAnyName(), e = c.isAnyNamespace(); if (a.isAttribute()) { for (a = 0;this._attributes && a < this._attributes.length;a++) { var h = this._attributes[a]; if (b || h._name.matches(c)) { return !0; } } return !1; } for (a = 0;a < this._children.length;a++) { if (h = this._children[a], (b || 1 === h._kind && h._name.name === c.name) && (e || 1 === h._kind && h._name.matches(c))) { return !0; } } }; l.prototype.deleteProperty = function(a) { if (f.isIndex(a.name)) { return !0; } var c = p(a, this.sec), b = c.name, e = a.isAnyName(), h = a.isAnyNamespace(); if (a.isAttribute()) { if (a = this._attributes) { for (var d = this._attributes = [], m = 0;m < a.length;m++) { var l = a[m], v = l._name; !e && v.name !== b || !h && !v.matches(c) ? d.push(l) : l._parent = null; } } } else { if (this._children.some(function(a, b) { return (e || 1 === a._kind && a._name.name === c.name) && (h || 1 === a._kind && a._name.matches(c)); })) { return !0; } } }; l.prototype.axHasProperty = function(a) { return this === this.axClass.dPrototype ? d.prototype.axHasPropertyInternal.call(this, a) : this.axHasPropertyInternal(a); }; l.prototype.axHasPropertyInternal = function(a) { return this.hasProperty(a) ? !0 : !!this[this.axResolveMultiname(a)]; }; l.prototype.axDeleteProperty = function(a) { return this.deleteProperty(a) ? !0 : delete this[this.axResolveMultiname(a)]; }; l.prototype.axCallProperty = function(a, c) { var e = this[this.axResolveMultiname(a)]; e || (e = this["$Bg" + a.name]); if (e) { return b.validateCall(this.sec, e, c.length), e.axApply(this, c); } if (this.hasSimpleContent()) { return this.sec.box(u(this, this.sec)).axCallProperty(a, c); } this.sec.throwError("TypeError", b.Errors.CallOfNonFunctionError, "value"); }; l.prototype._delete = function(a, c) { z("XML.[[Delete]]"); }; l.prototype.deleteByIndex = function(a) { if (String(a >>> 0) !== String(a)) { throw "TypeError in XML.prototype.deleteByIndex(): invalid index " + a; } var c = this._children; a < c.length && c[a] && (c[a]._parent = null, c.splice(a, 1)); }; l.prototype.insert = function(a, c) { if (!(1 < this._kind)) { var e = a >>> 0; if (String(a) !== String(e)) { throw "TypeError in XML.prototype.insert(): invalid property name " + a; } if (c && c.axClass === this.axClass) { for (var h = this;h;) { h === c && this.sec.throwError("TypeError", b.Errors.XMLIllegalCyclicalLoop), h = h._parent; } } h = 1; if (c && c.axClass === this.sec.AXXMLList && (h = this._children.length, 0 === h)) { return; } for (var d = this._children.length - 1;d >= e;d--) { this._children[d + h] = this._children[d], K(this._children[0]); } if (c && c.axClass === this.sec.AXXMLList) { for (h = c._children.length, d = 0;d < h;d++) { c._children[d]._parent = this, this[e + d] = c[d]; } } else { c && c.axClass === this.axClass || (c = this.sec.AXXML.Create(c)), c._parent = this, this._children || (this._children = []), this._children[e] = c, K(this._children[0]); } } }; l.prototype.addInScopeNamespace = function(a) { if (3 !== this._kind && 4 !== this._kind && 5 !== this._kind && 2 !== this._kind) { var c = a.prefix; if (void 0 !== c && ("" !== c || "" !== this._name.uri)) { var b = null; this._inScopeNamespaces.forEach(function(a, e) { a.prefix === c && (b = a); }); null !== b && b.uri !== a.uri && this._inScopeNamespaces.forEach(function(c, e) { c.prefix === b.prefix && (this._inScopeNamespaces[e] = a); }); this._name.prefix === c && (this._name.prefix = void 0); this._attributes.forEach(function(a, b) { a._name.prefix === c && (a._name.prefix = void 0); }); } } }; l.prototype.descendantsInto = function(a, c) { if (1 !== this._kind) { return c; } var b = c._children.length, e = a.isAnyName(); a.isAttribute() ? this._attributes.forEach(function(h, d) { if (e || h._name.matches(a)) { c._children[b++] = h, K(c._children[0]); } }) : this._children.forEach(function(h, d) { if (e || h._name.matches(a)) { c._children[b++] = h, K(c._children[0]); } }); this._children.forEach(function(b, e) { b.descendantsInto(a, c); }); return c; }; l.instanceConstructor = l; l._flags = D.ALL; l._prettyIndent = 2; return l; }(g.ASObject); g.ASXML = y; y = function(a) { function c(b) { a.call(this); this._children = []; f.isNullOrUndefined(b) && (b = ""); if (b) { if (b && b.axClass === this.sec.AXXMLList) { b = b._children; for (var e = 0;e < b.length;e++) { this._children[e] = b[e], K(this._children[0]); } } else { t(b, this); } } } __extends(c, a); c.classInitializer = function() { A(this, "$Bglength", 1); var a = this.dPrototype, b = c.prototype; A(a, "$BgvalueOf", Object.prototype.$BgvalueOf); A(a, "$BghasOwnProperty", b.native_hasOwnProperty); A(a, "$BgpropertyIsEnumerable", b.native_propertyIsEnumerable); g.addPrototypeFunctionAlias(a, "$BgtoString", b.toString); g.addPrototypeFunctionAlias(a, "$BgaddNamespace", b.addNamespace); g.addPrototypeFunctionAlias(a, "$BgappendChild", b.appendChild); g.addPrototypeFunctionAlias(a, "$Bgattribute", b.attribute); g.addPrototypeFunctionAlias(a, "$Bgattributes", b.attributes); g.addPrototypeFunctionAlias(a, "$Bgchild", b.child); g.addPrototypeFunctionAlias(a, "$BgchildIndex", b.childIndex); g.addPrototypeFunctionAlias(a, "$Bgchildren", b.children); g.addPrototypeFunctionAlias(a, "$Bgcomments", b.comments); g.addPrototypeFunctionAlias(a, "$Bgcontains", b.contains); g.addPrototypeFunctionAlias(a, "$Bgcopy", b.copy); g.addPrototypeFunctionAlias(a, "$Bgdescendants", b.descendants); g.addPrototypeFunctionAlias(a, "$Bgelements", b.elements); g.addPrototypeFunctionAlias(a, "$BghasComplexContent", b.hasComplexContent); g.addPrototypeFunctionAlias(a, "$BghasSimpleContent", b.hasSimpleContent); g.addPrototypeFunctionAlias(a, "$BginScopeNamespaces", b.inScopeNamespaces); g.addPrototypeFunctionAlias(a, "$BginsertChildAfter", b.insertChildAfter); g.addPrototypeFunctionAlias(a, "$BginsertChildBefore", b.insertChildBefore); g.addPrototypeFunctionAlias(a, "$Bglength", b.length); g.addPrototypeFunctionAlias(a, "$BglocalName", b.localName); g.addPrototypeFunctionAlias(a, "$Bgname", b.name); g.addPrototypeFunctionAlias(a, "$Bgnamespace", b.namespace); g.addPrototypeFunctionAlias(a, "$BgnamespaceDeclarations", b.namespaceDeclarations); g.addPrototypeFunctionAlias(a, "$BgnodeKind", b.nodeKind); g.addPrototypeFunctionAlias(a, "$Bgnormalize", b.normalize); g.addPrototypeFunctionAlias(a, "$Bgparent", b.parent); g.addPrototypeFunctionAlias(a, "$BgprocessingInstructions", b.processingInstructions); g.addPrototypeFunctionAlias(a, "$BgprependChild", b.prependChild); g.addPrototypeFunctionAlias(a, "$BgremoveNamespace", b.removeNamespace); g.addPrototypeFunctionAlias(a, "$Bgreplace", b.replace); g.addPrototypeFunctionAlias(a, "$BgsetChildren", b.setChildren); g.addPrototypeFunctionAlias(a, "$BgsetLocalName", b.setLocalName); g.addPrototypeFunctionAlias(a, "$BgsetName", b.setName); g.addPrototypeFunctionAlias(a, "$BgsetNamespace", b.setNamespace); g.addPrototypeFunctionAlias(a, "$Bgtext", b.text); g.addPrototypeFunctionAlias(a, "$BgtoXMLString", b.toXMLString); g.addPrototypeFunctionAlias(a, "$BgtoJSON", b.toJSON); }; c.axApply = function(a, c) { var b = c[0]; f.isNullOrUndefined(b) && (b = ""); if (b && b.axClass === this.sec.AXXMLList) { return b; } var e = this.sec.AXXMLList.Create(); t(b, e); return e; }; c.addXML = function(a, c) { var b; a.axClass === a.sec.AXXML ? (b = a.sec.AXXMLList.Create(), b.append(a)) : b = a; b.append(c); return b; }; c.Create = function(a) { var c = Object.create(this.sec.AXXMLList.tPrototype); c.axInitializer(a); return c; }; c.CreateList = function(a, c) { var b = this.Create(); b._targetObject = a; b._targetProperty = c; return b; }; c.prototype.valueOf = function() { return this; }; c.prototype.equals = function(a) { var c = this._children; if (void 0 === a && 0 === c.length) { return !0; } if (a && a.axClass === this.sec.AXXMLList) { a = a._children; if (a.length !== c.length) { return !1; } for (var b = 0;b < c.length;b++) { if (!c[b].equals(a[b])) { return !1; } } return !0; } return 1 === c.length && c[0].equals(a); }; c.prototype.toString = function() { if (this.hasComplexContent()) { return this.toXMLString(); } for (var a = "", c = 0;c < this._children.length;c++) { a += u(this._children[c], this.sec); } return a; }; c.prototype._deepCopy = function() { for (var a = this.sec.AXXMLList.CreateList(this._targetObject, this._targetProperty), c = this._children.length, b = 0;b < c;b++) { a._children[b] = this._children[b]._deepCopy(), K(a._children[0]); } return a; }; c.prototype._shallowCopy = function() { for (var a = this.sec.AXXMLList.CreateList(this._targetObject, this._targetProperty), c = this._children.length, b = 0;b < c;b++) { a._children[b] = this._children[b], K(a._children[0]); } return a; }; c.prototype.native_hasOwnProperty = function(a) { a = b.axCoerceString(a); if (this === this.sec.AXXMLList.dPrototype) { return g.ASObject.prototype.native_hasOwnProperty.call(this, a); } if (f.isIndex(a)) { return (a | 0) < this._children.length; } a = p(a, this.sec); for (var c = this._children, e = 0;e < c.length;e++) { var h = c[e]; if (1 === h._kind && h.hasProperty(a)) { return !0; } } return !1; }; c.prototype.native_propertyIsEnumerable = function(a) { return f.isIndex(a) && (a | 0) < this._children.length; }; c.prototype.attribute = function(a) { f.isNullOrUndefined(a) && 0 < arguments.length && this.sec.throwError("TypeError", b.Errors.ConvertUndefinedToObjectError); if (a && a.axClass === this.sec.AXQName) { return this.getProperty(a.name); } a = b.axCoerceString(a); if ("*" === a || 0 === arguments.length) { a = null; } x.name = a; x.namespaces = [b.Namespace.PUBLIC]; x.kind = 13; return this.getProperty(x); }; c.prototype.attributes = function() { x.name = null; x.namespaces = []; x.kind = 13; return this.getProperty(x); }; c.prototype.child = function(a) { if (f.isIndex(a)) { var c = this.sec.AXXMLList.CreateList(this._targetObject, this._targetProperty); (a | 0) < this._children.length && (c._children[0] = this._children[a | 0]._deepCopy(), K(c._children[0])); return c; } return this.getProperty(p(a, this.sec)); }; c.prototype.children = function() { return this.getProperty(C); }; c.prototype.descendants = function(a) { a = p(a, this.sec); for (var c = this.sec.AXXMLList.CreateList(this._targetObject, this._targetProperty), b = 0;b < this._children.length;b++) { var e = this._children[b]; 1 === e._kind && e.descendantsInto(a, c); } return c; }; c.prototype.comments = function() { var a = this.sec.AXXMLList.CreateList(this._targetObject, this._targetProperty); this._children.forEach(function(c) { 1 === c._kind && (c = c.comments(), Array.prototype.push.apply(a._children, c._children)); }); return a; }; c.prototype.contains = function(a) { for (var c = this._children, b = 0;b < c.length;b++) { if (c[b].equals(a)) { return !0; } } return !1; }; c.prototype.copy = function() { return this._deepCopy(); }; c.prototype.elements = function(a) { var c = p(a, this.sec), b = this.sec.AXXMLList.CreateList(this._targetObject, c); this._children.forEach(function(a) { 1 === a._kind && (a = a.elements(c), Array.prototype.push.apply(b._children, a._children)); }); return b; }; c.prototype.hasComplexContent = function() { switch(this._children.length) { case 0: return !1; case 1: return this._children[0].hasComplexContent(); default: return this._children.some(function(a) { return 1 === a._kind; }); } }; c.prototype.hasSimpleContent = function() { switch(this._children.length) { case 0: return !0; case 1: return this._children[0].hasSimpleContent(); default: return this._children.every(function(a) { return 1 !== a._kind; }); } }; c.prototype.length = function() { return this._children.length; }; c.prototype.name = function() { return this._children[0].name(); }; c.prototype.normalize = function() { for (var a = 0;a < this._children.length;) { var c = this._children[a]; if (1 === c._kind) { c.normalize(), a++; } else { if (3 === c._kind) { for (a++;a < this._children.length;) { var b = this._children[a]; if (3 !== b._kind) { break; } c._value += b._value; this.removeByIndex(a); } 0 === c._value.length ? this.removeByIndex(a) : a++; } else { a++; } } } return this; }; c.prototype.parent = function() { var a = this._children; if (0 !== a.length) { for (var c = a[0]._parent, b = 1;b < a.length;b++) { if (a[b]._parent !== c) { return; } } return c; } }; c.prototype.processingInstructions = function(a) { a = p(a, this.sec); var c = this.sec.AXXMLList.CreateList(this._targetObject, this._targetProperty); c._targetObject = this; c._targetProperty = null; for (var b = this._children, e = 0;e < b.length;e++) { b[e].processingInstructionsInto(a, c); } return c; }; c.prototype.text = function() { var a = this.sec.AXXMLList.CreateList(this._targetObject, this._targetProperty); this._children.forEach(function(c, b) { if (1 === c._kind) { var e = c.text(); 0 < e._children.length && a._children.push(e); } }); return a; }; c.prototype.toXMLString = function() { var a = this.sec; return this._children.map(function(c) { return l(a, c); }).join(a.AXXML.prettyPrinting ? "\n" : ""); }; c.prototype.toJSON = function(a) { return "XMLList"; }; c.prototype.addNamespace = function(a) { 1 !== this._children.length && this.sec.throwError("TypeError", b.Errors.XMLOnlyWorksWithOneItemLists, "addNamespace"); var c = this._children[0]; c.addNamespace(a); return c; }; c.prototype.appendChild = function(a) { 1 !== this._children.length && this.sec.throwError("TypeError", b.Errors.XMLOnlyWorksWithOneItemLists, "appendChild"); var c = this._children[0]; c.appendChild(a); return c; }; c.prototype.append = function(a) { var c = this._children, b = c.length, e = 1; if (a && a.axClass === this.sec.AXXMLList) { if (this._targetObject = a._targetObject, this._targetProperty = a._targetProperty, a = a._children, e = a.length, 0 !== e) { for (e = 0;e < a.length;e++) { c[b + e] = a[e]; } } } else { c[b] = a, this._targetProperty = a._name; } }; c.prototype.childIndex = function() { 1 !== this._children.length && this.sec.throwError("TypeError", b.Errors.XMLOnlyWorksWithOneItemLists, "childIndex"); return this._children[0].childIndex(); }; c.prototype.inScopeNamespaces = function() { 1 !== this._children.length && this.sec.throwError("TypeError", b.Errors.XMLOnlyWorksWithOneItemLists, "inScopeNamespaces"); return this._children[0].inScopeNamespaces(); }; c.prototype.insertChildAfter = function(a, c) { 1 !== this._children.length && this.sec.throwError("TypeError", b.Errors.XMLOnlyWorksWithOneItemLists, "insertChildAfter"); return this._children[0].insertChildAfter(a, c); }; c.prototype.insertChildBefore = function(a, c) { 1 !== this._children.length && this.sec.throwError("TypeError", b.Errors.XMLOnlyWorksWithOneItemLists, "insertChildBefore"); return this._children[0].insertChildBefore(a, c); }; c.prototype.nodeKind = function() { 1 !== this._children.length && this.sec.throwError("TypeError", b.Errors.XMLOnlyWorksWithOneItemLists, "nodeKind"); return this._children[0].nodeKind(); }; c.prototype.namespace = function(a) { 1 !== this._children.length && this.sec.throwError("TypeError", b.Errors.XMLOnlyWorksWithOneItemLists, "namespace"); var c = this._children[0]; return arguments.length ? c.namespace(a) : c.namespace(); }; c.prototype.localName = function() { 1 !== this._children.length && this.sec.throwError("TypeError", b.Errors.XMLOnlyWorksWithOneItemLists, "localName"); return this._children[0].localName(); }; c.prototype.namespaceDeclarations = function() { 1 !== this._children.length && this.sec.throwError("TypeError", b.Errors.XMLOnlyWorksWithOneItemLists, "namespaceDeclarations"); return this._children[0].namespaceDeclarations(); }; c.prototype.prependChild = function(a) { 1 !== this._children.length && this.sec.throwError("TypeError", b.Errors.XMLOnlyWorksWithOneItemLists, "prependChild"); return this._children[0].prependChild(a); }; c.prototype.removeNamespace = function(a) { 1 !== this._children.length && this.sec.throwError("TypeError", b.Errors.XMLOnlyWorksWithOneItemLists, "removeNamespace"); return this._children[0].removeNamespace(a); }; c.prototype.replace = function(a, c) { 1 !== this._children.length && this.sec.throwError("TypeError", b.Errors.XMLOnlyWorksWithOneItemLists, "replace"); return this._children[0].replace(a, c); }; c.prototype.setChildren = function(a) { 1 !== this._children.length && this.sec.throwError("TypeError", b.Errors.XMLOnlyWorksWithOneItemLists, "setChildren"); return this._children[0].setChildren(a); }; c.prototype.setLocalName = function(a) { 1 !== this._children.length && this.sec.throwError("TypeError", b.Errors.XMLOnlyWorksWithOneItemLists, "setLocalName"); return this._children[0].setLocalName(a); }; c.prototype.setName = function(a) { 1 !== this._children.length && this.sec.throwError("TypeError", b.Errors.XMLOnlyWorksWithOneItemLists, "setName"); return this._children[0].setName(a); }; c.prototype.setNamespace = function(a) { 1 !== this._children.length && this.sec.throwError("TypeError", b.Errors.XMLOnlyWorksWithOneItemLists, "setNamespace"); return this._children[0].setNamespace(a); }; c.prototype.axGetEnumerableKeys = function() { return this === this.axClass.dPrototype ? a.prototype.axGetEnumerableKeys.call(this) : Object.keys(this._children); }; c.prototype.getProperty = function(a) { var c = a.name; if (f.isIndex(c)) { return this._children[c | 0]; } for (var b = null === c || "*" === c, e = a.isAnyNamespace(), h = a.isAttribute(), d = this.sec.AXXMLList.CreateList(this._targetObject, a), m = this._children, l = 0;l < m.length;l++) { var v = m[l]; if (1 === v._kind) { if (h) { for (var p = v._attributes, n = 0;p && n < p.length;n++) { v = p[n], !b && v._name.name !== c || !e && !v._name.matches(a) || d._children.push(v); } } else { for (p = v._children, n = 0;p && n < p.length;n++) { v = p[n], (b || 1 === v._kind && v._name.name === c) && (e || v._name.matches(a)) && d._children.push(v); } } } } return d; }; c.prototype.axGetProperty = function(a) { return this === this.axClass.dPrototype ? this[this.axResolveMultiname(a)] : this.getProperty(h(a, this.sec)); }; c.prototype.axGetPublicProperty = function(a) { if (this === this.axClass.dPrototype) { return this[b.Multiname.getPublicMangledName(a)]; } if (f.isIndex(a)) { return this._children[a | 0]; } x.name = a; x.namespaces = [b.Namespace.PUBLIC]; x.kind = 7; return this.getProperty(x); }; c.prototype.hasProperty = function(a) { return f.isIndex(a.name) ? Number(a.name) < this._children.length : !0; }; c.prototype.axHasProperty = function(a) { return this.hasProperty(a); }; c.prototype.axHasPropertyInternal = function(a) { return this.hasProperty(a); }; c.prototype.resolveValue = function() { return this; }; c.prototype.setProperty = function(a, c) { if (f.isIndex(a.name)) { var e = a.name | 0, h = null; if (this._targetObject && (h = this._targetObject.resolveValue(), null === h)) { return; } var d = this._children.length; if (e >= d) { if (h && h.axClass === this.sec.AXXMLList) { if (1 !== h._children.length) { return; } h = h._children[0]; } if (h && 1 !== h._kind) { return; } var m = this.sec.AXXML.Create(); m._parent = h; if ((m._name = this._targetProperty) && this._targetProperty.isAttribute()) { if (h.hasProperty(this._targetProperty)) { return; } m._kind = 2; } else { this._targetProperty && null !== this._targetProperty.name ? m._kind = 1 : (m._name = null, m._kind = 3); } e = d; if (2 !== m._kind) { if (null !== h) { var l; if (0 < e) { var v = this._children[e - 1]; for (l = 0;l < h.length - 1;l++) { if (h._children[l] === v) { K(h._children[0]); break; } } } else { l = h._children.length - 1; } h._children[l + 1] = m; K(h._children[0]); m._parent = h; } c && c.axClass === this.sec.AXXML ? m._name = c._name : c && c.axClass === this.sec.AXXMLList && (m._name = c._targetProperty); this.append(m); } } q(c, this.sec) && 3 !== c._kind && 2 !== c._kind || (c += ""); l = this._children[e]; m = l._kind; h = l._parent; if (2 === m) { d = h._children.indexOf(l), h.setProperty(l._name, !1), this._children[e] = h._children[d], K(this._children[0]); } else { if (c && c.axClass === this.sec.AXXMLList) { var p = c._shallowCopy(), m = p._children.length; if (null !== h) { for (v = h._children.indexOf(l), h.replace(v, p), l = 0;l < m;l++) { p.setProperty(p._children[l]._name, h._children[v + l]); } } if (0 === m) { for (l = e + 1;l < d;l++) { this._children[l - 1] = this._children[l], K(this._children[0]); } this._children.length--; } else { for (l = d - 1;l > e;l--) { this._children[l + m - 1] = this._children[l], K(this._children[0]); } } for (l = 0;l < m;l++) { this._children[e + l] = p._children[l], K(this._children[0]); } } else { 3 <= m || c && c.axClass === this.sec.AXXML ? (null !== h && (v = h._children.indexOf(l), h.replace(v, p), c = h._children[v]), "string" === typeof c ? (d = this.sec.AXXML.Create(c), this._children[e] = d) : this._children[e] = c, K(this._children[0])) : l.setProperty(C, c); } } } else { if (0 === this._children.length) { h = this.resolveValue(); if (null === h || 1 !== h._children.length) { return; } this.append(h._children[0]); } 1 === this._children.length ? this._children[0].setProperty(a, c) : this.sec.throwError("TypeError", b.Errors.XMLAssigmentOneItemLists); } }; c.prototype.axSetProperty = function(a, c, b) { this === this.axClass.dPrototype ? this[this.axResolveMultiname(a)] = c : this.setProperty(h(a, this.sec), c); }; c.prototype.axDeleteProperty = function(a) { var c = a.name; if (f.isIndex(c)) { c |= 0; if (c >= this._children.length) { return !0; } this.removeByIndex(c); return !0; } for (c = 0;c < this._children.length;c++) { var b = this._children[c]; 1 === b._kind && b.deleteProperty(a); } return !0; }; c.prototype.removeByIndex = function(a) { var c = this._children[a], b = c._parent; b && (c._parent = null, b._children.splice(b._children.indexOf(c), 1)); this._children.splice(a, 1); }; c.prototype.axCallProperty = function(a, c) { var e = this[this.axResolveMultiname(a)]; if (e) { return b.validateCall(this.sec, e, c.length), e.axApply(this, c); } if (1 === this._children.length) { return this._children[0].axCallProperty(a, c); } this.sec.throwError("TypeError", b.Errors.CallOfNonFunctionError, "value"); }; return c.instanceConstructor = c; }(g.ASObject); g.ASXMLList = y; })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(q) { (function(u) { var k = f.AVMX.axCoerceString, r; (function(a) { a[a.APOS = 39] = "APOS"; a[a.AMP = 38] = "AMP"; a[a.QUOT = 34] = "QUOT"; a[a.LT = 60] = "LT"; a[a.GT = 62] = "GT"; })(r || (r = {})); r = function(a) { function c(c, b) { k(b); a.call(this); } __extends(c, a); c.escapeXML = function(a) { a = k(a); for (var c = 0, b = a.length, d;c < b;) { d = a.charCodeAt(c); if (39 === d || 38 === d || 34 === d || 60 === d || 62 === d) { break; } c++; } if (c >= b) { return a; } for (var p = [a.substring(0, c)];c < b;) { switch(d) { case 39: p.push("'"); break; case 38: p.push("&"); break; case 34: p.push("""); break; case 60: p.push("<"); break; case 62: p.push(">"); } ++c; for (var h = c;c < b;) { d = a.charCodeAt(c); if (39 === d || 38 === d || 34 === d || 60 === d || 62 === d) { break; } c++; } h < c && p.push(a.substring(h, c)); } return p.join(""); }; return c; }(b.ASObject); u.XMLNode = r; r = function(a) { function c(c) { void 0 === c && (c = null); k(c); a.call(this, 1, ""); } __extends(c, a); return c; }(q.xml.XMLNode); u.XMLDocument = r; r = function(a) { function c() { a.call(this); this._type = 0; this._value = null; this._empty = !1; this._attrs = null; } __extends(c, a); Object.defineProperty(c.prototype, "type", {get:function() { return this._type; }, set:function(a) { this._type = a >>> 0; }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "empty", {get:function() { return this._empty; }, set:function(a) { this._empty = !!a; }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "value", {get:function() { return this._value; }, set:function(a) { this._value = a = k(a); }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "attrs", {get:function() { return this._attrs; }, set:function(a) { this._attrs = a; }, enumerable:!0, configurable:!0}); return c; }(b.ASObject); u.XMLTag = r; r = function(a) { function c() { a.call(this); } __extends(c, a); return c; }(b.ASObject); u.XMLNodeType = r; var d = function(a) { function c(c) { a.call(this); this.sec = c; this.queue = []; this.ignoreWhitespace = !1; } __extends(c, a); c.prototype.onError = function(a) { this.queue.push(a); }; c.prototype.onPi = function(a, c) { f.Debug.warning("Unhandled XMLParserForXMLDocument.onPi"); }; c.prototype.onComment = function(a) { f.Debug.warning("Unhandled XMLParserForXMLDocument.onComment"); }; c.prototype.onCdata = function(a) { this.queue.push({type:4, value:a}); }; c.prototype.onDoctype = function(a) { f.Debug.warning("Unhandled XMLParserForXMLDocument.onDoctype"); }; c.prototype.onBeginElement = function(a, c, b) { var d = this.sec.createObject(); c.forEach(function(a) { d.axSetPublicProperty(a.name, a.value); }); this.queue.push({type:1, value:a, empty:b, attrs:d}); }; c.prototype.onEndElement = function(a) { this.queue.push({type:1, value:"/" + a}); }; c.prototype.onText = function(a) { var c; if (c = this.ignoreWhitespace) { a: { for (c = 0;c < a.length;c++) { var b = a[c]; if (" " !== b && "\n" !== b && "\r" !== b && "\t" !== b) { c = !1; break a; } } c = !0; } } c || this.queue.push({type:3, value:a}); }; return c; }(b.XMLParserBase); r = function(a) { function c() { a.call(this); } __extends(c, a); c.prototype.startParse = function(a, c) { a = k(a); c = !!c; var b = new d(this.sec); b.ignoreWhitespace = c; b.parseXml(a); this.queue = b.queue; }; c.prototype.getNext = function(a) { if (0 === this.queue.length) { return -1; } var c = this.queue.shift(); if ("number" === typeof c) { return c; } a.type = c.type; a.value = c.value; a.empty = c.empty || !1; a.attrs = c.attrs || null; return 0; }; return c; }(b.ASObject); u.XMLParser = r; })(q.xml || (q.xml = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(g) { function q(a, c, b) { var d = (c | 0) === c, l = f.isNullOrUndefined(c); if (b & 512 && (l || d)) { return null; } if (l) { return b = a, {__proto__:b.objectPrototype, $Bgname:void 0 === c ? "void" : "null", $BgisDynamic:!1, $BgisFinal:!0, $BgisStatic:!1, $Bgtraits:{__proto__:b.objectPrototype, $Bgvariables:null, $Bgaccessors:null, $Bgmetadata:b.createArray([]), $Bgconstructor:null, $Bginterfaces:b.createArray([]), $Bgmethods:null, $Bgbases:b.createArray([])}}; } c.sec && (a = c.sec); c = a.box(c); if (a.AXFunction.axIsType(c)) { if (a.AXMethodClosure.axIsType(c)) { if (b & 512) { return null; } } else { if ("receiver" in c) { return null; } } } l = c.hasOwnProperty("classInfo") ? c : c.axClass; c = l === c && !(b & 512); var n = l.classInfo; a = a.createObject(); a.$Bgname = d ? "int" : n.instanceInfo.getName().toFQNString(!0); a.$BgisDynamic = c || !(n.instanceInfo.flags & 1); a.$BgisFinal = c || !!(n.instanceInfo.flags & 2); a.$BgisStatic = c; b & 256 && (a.$Bgtraits = e(l, n, c, b)); return a; } function u(a, c) { for (var b = 0, e = c.$Bgbases && c.$Bgbases.value, l = 0;e && l < e.length;l++) { var n = a.sec.AXXML.Create(''); a.appendChild(n); b++; } e = c.$Bginterfaces && c.$Bginterfaces.value; for (l = 0;e && l < e.length;l++) { n = a.sec.AXXML.Create(''), a.appendChild(n), b++; } null !== c.$Bgconstructor && (n = a.sec.AXXML.Create(""), r(n, c.$Bgconstructor), a.appendChild(n), b++); e = c.$Bgvariables && c.$Bgvariables.value; for (l = 0;e && l < e.length;l++) { var t = e[l], n = a.sec.AXXML.Create("<" + ("readonly" === t.$Bgaccess ? "constant" : "variable") + ' name="' + g.escapeAttributeValue(t.$Bgname) + '" type="' + t.$Bgtype + '"/>'); k(t, n, a); b++; } e = c.$Bgaccessors && c.$Bgaccessors.value; for (l = 0;e && l < e.length;l++) { t = e[l], n = a.sec.AXXML.Create(''), k(t, n, a), b++; } e = c.$Bgmethods && c.$Bgmethods.value; for (l = 0;e && l < e.length;l++) { t = e[l], n = a.sec.AXXML.Create(''), r(n, t.$Bgparameters.value), k(t, n, a), b++; } d(a, c.$Bgmetadata); return 0 < b; } function k(a, c, b) { null !== a.$Bguri && (t.name = "uri", c.setProperty(t, a.$Bguri)); null !== a.$Bgmetadata && d(c, a.$Bgmetadata); b.appendChild(c); } function r(a, c) { if (c) { for (var b = 0;b < c.length;b++) { var e = c[b], e = a.sec.AXXML.Create(''); a.appendChild(e); } } } function d(a, c) { if (c) { for (var b = c.value, e = 0;e < b.length;e++) { for (var d = b[e], l = a.sec.AXXML.Create(''), d = d.$Bgvalue.value, n = 0;n < d.length;n++) { var t = d[n], t = a.sec.AXXML.Create(''); l.appendChild(t); } a.appendChild(l); } } } function a(a, b) { if (!b) { return null; } for (var e = a.createArray([]), d = 0;d < b.length;d++) { var l = b[d]; "native" !== l.getName() && e.push(c(a, l)); } return e; } function c(a, c) { var b = a.createObject(); b.$Bgname = c.name; var e = []; b.$Bgvalue = a.createArray(e); for (var d = 0;d < c.keys.length;d++) { var l = a.createObject(); l.$Bgvalue = c.getValueAt(d); l.$Bgkey = c.getKeyAt(d); e.push(l); } return b; } function e(c, b, e, d) { function l(c, b, h) { for (var p = 0;p < b.length;p++) { var n = b[p], t = n.getName(), w = t.namespace; if (h || !(!w.isPublic() && !w.uri || d & 1 && w.uri)) { var f = h ? t.name : t.toFQNString(!0); if (I[f] !== E[f]) { t = F[f], t.$Bgaccess = "readwrite", 2 === n.kind && (n = n.getMethodInfo().getType(), t.$Bgtype = n ? n.name.toFQNString(!0) : "*"); } else { if (!F[f]) { t = c.createObject(); F[f] = t; var H = n.getMetadata(); switch(n.kind) { case 6: ; case 0: if (!(d & 8)) { continue; } t.$Bgname = f; t.$Bguri = w.reflectedURI; n = n.getTypeName(); t.$Bgtype = n ? n.toFQNString(!0) : "*"; t.$Bgaccess = "readwrite"; t.$Bgmetadata = d & 64 ? a(c, H) : null; r.push(t); break; case 1: if (!g) { continue; } var q = n.getMethodInfo().getType(); t.$BgreturnType = q ? q.name.toFQNString(!0) : "*"; t.$Bgmetadata = d & 64 ? a(c, H) : null; t.$Bgname = f; t.$Bguri = w.reflectedURI; w = t.$Bgparameters = c.createArray([]); n = n.getMethodInfo().parameters; for (H = 0;H < n.length;H++) { f = n[H], q = c.createObject(), q.$Bgtype = f.type ? f.getType().toFQNString(!0) : "*", q.$Bgoptional = "value" in f, w.push(q); } t.$BgdeclaredBy = J; G.push(t); break; case 2: ; case 3: if (!(d & 16) || e) { continue; } t.$Bgname = f; 2 === n.kind ? (q = n.getMethodInfo().getType(), t.$Bgtype = q ? q.name.toFQNString(!0) : "*", I[f] = t) : (q = n.getMethodInfo().parameters[0].getType(), t.$Bgtype = q ? q.toFQNString(!0) : "*", E[f] = t); t.$Bgaccess = 2 === n.kind ? "readonly" : "writeonly"; t.$Bgmetadata = d & 64 ? a(c, H) : null; t.$Bguri = w.reflectedURI; t.$BgdeclaredBy = J; k.push(t); } } } } } } var n = c.sec, t = d & 2, g = d & 32 && !e, f = n.createObject(), r = f.$Bgvariables = d & 8 ? n.createArray([]) : null, k = f.$Bgaccessors = d & 16 ? n.createArray([]) : null, q = null; if (d & 64 && !e) { var u = b.trait.getMetadata(); u && (q = a(n, u)); } f.$Bgmetadata = q || n.createArray([]); f.$Bgconstructor = null; if (d & 4) { if (f.$Bginterfaces = n.createArray([]), !e) { var D = f.$Bginterfaces.value; c.classInfo.instanceInfo.getInterfaces(c).forEach(function(a) { return D.push(a.name.toFQNString(!0)); }); } } else { f.$Bginterfaces = null; } var G = f.$Bgmethods = g ? n.createArray([]) : null, q = f.$Bgbases = t ? n.createArray([]) : null, F = Object.create(null), I = Object.create(null), E = Object.create(null), u = !1; for (b = b.instanceInfo.isInterface();c;) { var J = c.classInfo.instanceInfo.getName().toFQNString(!0); t && u && !e ? q.push(J) : u = !0; if (d & 1024 && c === n.AXObject) { break; } e ? l(n, c.classInfo.traits.traits, b) : l(n, c.classInfo.instanceInfo.traits.traits, b); c = c.superClass; } e && (d & 16 && (c = n.createObject(), c.$Bgname = "prototype", c.$Bgtype = "*", c.$Bgaccess = "readonly", c.$Bgmetadata = null, c.$Bguri = null, c.$BgdeclaredBy = "Class", k.push(c)), t && (q.pop(), q.push("Class", "Object"), c = n.AXClass)); G && 0 !== G.value.length || (f.$Bgmethods = null); r && 0 !== r.value.length || (f.$Bgvariables = null); return f; } var l; (function(a) { a[a.HIDE_NSURI_METHODS = 1] = "HIDE_NSURI_METHODS"; a[a.INCLUDE_BASES = 2] = "INCLUDE_BASES"; a[a.INCLUDE_INTERFACES = 4] = "INCLUDE_INTERFACES"; a[a.INCLUDE_VARIABLES = 8] = "INCLUDE_VARIABLES"; a[a.INCLUDE_ACCESSORS = 16] = "INCLUDE_ACCESSORS"; a[a.INCLUDE_METHODS = 32] = "INCLUDE_METHODS"; a[a.INCLUDE_METADATA = 64] = "INCLUDE_METADATA"; a[a.INCLUDE_CONSTRUCTOR = 128] = "INCLUDE_CONSTRUCTOR"; a[a.INCLUDE_TRAITS = 256] = "INCLUDE_TRAITS"; a[a.USE_ITRAITS = 512] = "USE_ITRAITS"; a[a.HIDE_OBJECT = 1024] = "HIDE_OBJECT"; })(l || (l = {})); g.describeTypeJSON = q; var n = new b.Multiname(null, 0, 7, [b.Namespace.PUBLIC], null), t = new b.Multiname(null, 0, 13, [b.Namespace.PUBLIC], null); g.describeType = function(a, c, b) { n.name = "XML"; var e = a.application.getClass(n), d = q(a, c, b), l = e.Create(""); t.name = "name"; l.setProperty(t, d.$Bgname); var g = d.$Bgtraits.$Bgbases.value; g.length && (t.name = "base", l.setProperty(t, g[0])); t.name = "isDynamic"; l.setProperty(t, d.$BgisDynamic.toString()); t.name = "isFinal"; l.setProperty(t, d.$BgisFinal.toString()); t.name = "isStatic"; l.setProperty(t, d.$BgisStatic.toString()); u(l, d.$Bgtraits); if (a = q(a, c, b | 512)) { e = e.Create(""), t.name = "type", e.setProperty(t, a.$Bgname), u(e, a.$Bgtraits) && l.appendChild(e); } return l; }; })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(f) { (function(f) { var k = function(f) { function d(a) { void 0 === a && (a = !1); f.call(this); this.map = new WeakMap; this.keys = null; this.weakKeys = !!a; a || (this.keys = []); this.primitiveMap = Object.create(null); } __extends(d, f); d.makePrimitiveKey = function(a) { if ("string" === typeof a || "number" === typeof a) { return a; } }; d.prototype.toJSON = function() { return "Dictionary"; }; d.prototype.axGetProperty = function(a) { if (this === this.axClass.dPrototype) { return f.prototype.axGetProperty.call(this, a); } var c = d.makePrimitiveKey(a.name); return void 0 !== c ? this.primitiveMap[c] : this.map.get(Object(a.name)); }; d.prototype.axSetProperty = function(a, c, b) { this === this.axClass.dPrototype ? f.prototype.axSetProperty.call(this, a, c, b) : (b = d.makePrimitiveKey(a.name), void 0 !== b ? this.primitiveMap[b] = c : (this.map.set(Object(a.name), c), !this.weakKeys && 0 > this.keys.indexOf(a.name) && this.keys.push(a.name))); }; d.prototype.axHasPropertyInternal = function(a) { if (this === this.axClass.dPrototype) { return f.prototype.axHasProperty.call(this, a); } var c = d.makePrimitiveKey(a.name); return void 0 !== c ? c in this.primitiveMap : this.map.has(Object(a.name)); }; d.prototype.axDeleteProperty = function(a) { if (this === this.axClass.dPrototype) { return f.prototype.axDeleteProperty.call(this, a); } var c = d.makePrimitiveKey(a.name); void 0 !== c && delete this.primitiveMap[c]; this.map.delete(Object(a.name)); var b; !this.weakKeys && 0 <= (b = this.keys.indexOf(a.name)) && this.keys.splice(b, 1); return !0; }; d.prototype.axGetPublicProperty = function(a) { if (this === this.axClass.dPrototype) { return f.prototype.axGetPublicProperty.call(this, a); } var c = d.makePrimitiveKey(a); return void 0 !== c ? this.primitiveMap[c] : this.map.get(Object(a)); }; d.prototype.axGetEnumerableKeys = function() { if (this === this.axClass.dPrototype) { return f.prototype.axGetEnumerableKeys.call(this); } var a = [], c; for (c in this.primitiveMap) { a.push(c); } return this.weakKeys ? a : this.keys ? a.concat(this.keys) : a.slice(); }; d.classInitializer = function() { b.addPrototypeFunctionAlias(this.dPrototype, "$BgtoJSON", d.prototype.toJSON); }; return d; }(b.ASObject); f.Dictionary = k; })(f.utils || (f.utils = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(g) { var q = f.ObjectUtilities.defineNonEnumerableProperty; (function(f) { (function(f) { var d = "$" + b.internNamespace(0, "http://www.adobe.com/2006/actionscript/flash/proxy").mangledName, a = function(a) { function e() { a.apply(this, arguments); } __extends(e, a); e.classInitializer = function() { var a = this.tPrototype, c = e.prototype; q(a, d + "getProperty", c.native_getProperty); q(a, d + "setProperty", c.native_setProperty); q(a, d + "callProperty", c.native_callProperty); q(a, d + "hasProperty", c.native_hasProperty); q(a, d + "deleteProperty", c.native_deleteProperty); q(a, d + "getDescendants", c.native_getDescendants); q(a, d + "nextNameIndex", c.native_nextNameIndex); q(a, d + "nextName", c.native_nextName); q(a, d + "nextValue", c.native_nextValue); }; e.prototype.native_getProperty = function() { this.sec.throwError("IllegalOperationError", b.Errors.ProxyGetPropertyError); }; e.prototype.native_setProperty = function() { this.sec.throwError("IllegalOperationError", b.Errors.ProxySetPropertyError); }; e.prototype.native_callProperty = function() { this.sec.throwError("IllegalOperationError", b.Errors.ProxyCallPropertyError); }; e.prototype.native_hasProperty = function() { this.sec.throwError("IllegalOperationError", b.Errors.ProxyHasPropertyError); }; e.prototype.native_deleteProperty = function() { this.sec.throwError("IllegalOperationError", b.Errors.ProxyDeletePropertyError); }; e.prototype.native_getDescendants = function() { this.sec.throwError("IllegalOperationError", b.Errors.ProxyGetDescendantsError); }; e.prototype.native_nextNameIndex = function() { this.sec.throwError("IllegalOperationError", b.Errors.ProxyNextNameIndexError); }; e.prototype.native_nextName = function() { this.sec.throwError("IllegalOperationError", b.Errors.ProxyNextNameError); }; e.prototype.native_nextValue = function() { this.sec.throwError("IllegalOperationError", b.Errors.ProxyNextValueError); }; e.prototype.axGetProperty = function(a) { var c = "string" === typeof a.name ? this.traits.getTrait(a.namespaces, a.name) : null; if (c) { if (c = c.name.getMangledName(), a = this[c], "function" === typeof a) { return this.axGetMethod(c); } } else { a = this[d + "getProperty"](this.sec.AXQName.FromMultiname(a)); } return a; }; e.prototype.axGetNumericProperty = function(a) { return this[d + "getProperty"](+a + ""); }; e.prototype.axSetNumericProperty = function(a, c) { this[d + "setProperty"](+a + "", c); }; e.prototype.axSetProperty = function(b, e, t) { if ("string" === typeof b.name && this.traits.getTrait(b.namespaces, b.name)) { a.prototype.axSetProperty.call(this, b, e, t); } else { this[d + "setProperty"](this.sec.AXQName.FromMultiname(b), e); } }; e.prototype.axCallProperty = function(b, e, t) { if ("string" === typeof b.name && this.traits.getTrait(b.namespaces, b.name)) { return a.prototype.axCallProperty.call(this, b, e, t); } b = [this.sec.AXQName.FromMultiname(b)].concat(e); return this[d + "callProperty"].apply(this, b); }; e.prototype.axHasProperty = function(a) { return this.axHasOwnProperty(a); }; e.prototype.axHasPublicProperty = function(a) { u.name = a; return this.axHasPropertyInternal(u) ? !0 : this[d + "hasProperty"](a); }; e.prototype.axHasOwnProperty = function(a) { return "string" === typeof a.name && this.traits.getTrait(a.namespaces, a.name) ? !0 : this[d + "hasProperty"](this.sec.AXQName.FromMultiname(a)); }; e.prototype.axDeleteProperty = function(a) { var c = "string" === typeof a.name ? this.traits.getTrait(a.namespaces, a.name) : null; return c ? delete this[c.name.getMangledName()] : this[d + "deleteProperty"](this.sec.AXQName.FromMultiname(a)); }; e.prototype.axNextName = function(a) { return this[d + "nextName"](a); }; e.prototype.axNextValue = function(a) { return this[d + "nextValue"](a); }; e.prototype.axNextNameIndex = function(a) { return this[d + "nextNameIndex"](a); }; return e; }(g.ASObject); f.ASProxy = a; })(f.utils || (f.utils = {})); })(g.flash || (g.flash = {})); var u = new b.Multiname(null, 0, 17, [], null); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { var f = function(f) { function k(b, d, a, c, e, l, n) { void 0 === a && (a = 1); void 0 === c && (c = 0); void 0 === e && (e = 0); void 0 === l && (l = 0); void 0 === n && (n = 0); f.call(this); switch(arguments.length) { case 0: this.value = new Date; break; case 1: this.value = new Date(b); break; case 2: this.value = new Date(b, d); break; case 3: this.value = new Date(b, d, a); break; case 4: this.value = new Date(b, d, a, c); break; case 5: this.value = new Date(b, d, a, c, e); break; case 6: this.value = new Date(b, d, a, c, e, l); break; default: this.value = new Date(b, d, a, c, e, l, n); } } __extends(k, f); k.parse = function(b) { return Date.parse(b); }; k.UTC = function(b, d, a, c, e, l, n) { void 0 === a && (a = 1); void 0 === c && (c = 0); void 0 === e && (e = 0); void 0 === l && (l = 0); void 0 === n && (n = 0); return Date.parse.apply(null, arguments); }; k.axCoerce = function(b) { return this.axConstruct([b]); }; k.prototype.toString = function() { if (!(this.value instanceof Date)) { return "Invalid Date"; } var b = this.value.toString().split(" "); if (4 > b.length) { return "Invalid Date"; } b.length = 6; b.push(b.splice(3, 1)[0]); "0" === b[2][0] && (b[2] = b[2][1]); return b.join(" "); }; k.prototype.toDateString = function() { if (!(this.value instanceof Date)) { return "Invalid Date"; } var b = this.value.toDateString().split(" "); if (4 > b.length) { return "Invalid Date"; } "0" === b[2][0] && (b[2] = b[2][1]); return b.join(" "); }; k.prototype.toJSON = function() { return this.value instanceof Date ? this.value.toString() : "Invalid Date"; }; k.prototype.valueOf = function() { return this.value instanceof Date ? this.value.valueOf() : NaN; }; k.prototype.setTime = function(b) { void 0 === b && (b = 0); return this.value instanceof Date ? this.value.setTime(b) : NaN; }; k.prototype.toTimeString = function() { return this.value instanceof Date ? this.value.toTimeString() : "Invalid Date"; }; k.prototype.toLocaleString = function() { return this.value instanceof Date ? this.value.toLocaleString() : "Invalid Date"; }; k.prototype.toLocaleDateString = function() { return this.value instanceof Date ? this.value.toLocaleDateString() : "Invalid Date"; }; k.prototype.toLocaleTimeString = function() { return this.value instanceof Date ? this.value.toLocaleTimeString() : "Invalid Date"; }; k.prototype.toUTCString = function() { return this.value instanceof Date ? this.value.toUTCString() : "Invalid Date"; }; k.prototype.getUTCFullYear = function() { return this.value instanceof Date ? this.value.getUTCFullYear() : NaN; }; k.prototype.getUTCMonth = function() { return this.value instanceof Date ? this.value.getUTCMonth() : NaN; }; k.prototype.getUTCDate = function() { return this.value instanceof Date ? this.value.getUTCDate() : NaN; }; k.prototype.getUTCDay = function() { return this.value instanceof Date ? this.value.getUTCDay() : NaN; }; k.prototype.getUTCHours = function() { return this.value instanceof Date ? this.value.getUTCHours() : NaN; }; k.prototype.getUTCMinutes = function() { return this.value instanceof Date ? this.value.getUTCMinutes() : NaN; }; k.prototype.getUTCSeconds = function() { return this.value instanceof Date ? this.value.getUTCSeconds() : NaN; }; k.prototype.getUTCMilliseconds = function() { return this.value instanceof Date ? this.value.getUTCMilliseconds() : NaN; }; k.prototype.getFullYear = function() { return this.value instanceof Date ? this.value.getFullYear() : NaN; }; k.prototype.getMonth = function() { return this.value instanceof Date ? this.value.getMonth() : NaN; }; k.prototype.getDate = function() { return this.value instanceof Date ? this.value.getDate() : NaN; }; k.prototype.getDay = function() { return this.value instanceof Date ? this.value.getDay() : NaN; }; k.prototype.getHours = function() { return this.value instanceof Date ? this.value.getHours() : NaN; }; k.prototype.getMinutes = function() { return this.value instanceof Date ? this.value.getMinutes() : NaN; }; k.prototype.getSeconds = function() { return this.value instanceof Date ? this.value.getSeconds() : NaN; }; k.prototype.getMilliseconds = function() { return this.value instanceof Date ? this.value.getMilliseconds() : NaN; }; k.prototype.getTimezoneOffset = function() { return this.value instanceof Date ? this.value.getTimezoneOffset() : NaN; }; k.prototype.getTime = function() { return this.value instanceof Date ? this.value.getTime() : NaN; }; k.prototype.setFullYear = function(b, d, a) { return this.value instanceof Date ? this.value.setFullYear.apply(this.value, arguments) : NaN; }; k.prototype.setMonth = function(b, d) { return this.value instanceof Date ? this.value.setMonth.apply(this.value, arguments) : NaN; }; k.prototype.setDate = function(b) { return this.value instanceof Date ? this.value.setDate.apply(this.value, arguments) : NaN; }; k.prototype.setHours = function(b, d, a, c) { return this.value instanceof Date ? this.value.setHours.apply(this.value, arguments) : NaN; }; k.prototype.setMinutes = function(b, d, a) { return this.value instanceof Date ? this.value.setMinutes.apply(this.value, arguments) : NaN; }; k.prototype.setSeconds = function(b, d) { return this.value instanceof Date ? this.value.setSeconds.apply(this.value, arguments) : NaN; }; k.prototype.setMilliseconds = function(b) { return this.value instanceof Date ? this.value.setMilliseconds.apply(this.value, arguments) : NaN; }; k.prototype.setUTCFullYear = function(b, d, a) { return this.value instanceof Date ? this.value.setUTCFullYear.apply(this.value, arguments) : NaN; }; k.prototype.setUTCMonth = function(b, d) { return this.value instanceof Date ? this.value.setUTCMonth.apply(this.value, arguments) : NaN; }; k.prototype.setUTCDate = function(b) { return this.value instanceof Date ? this.value.setUTCDate.apply(this.value, arguments) : NaN; }; k.prototype.setUTCHours = function(b, d, a, c) { return this.value instanceof Date ? this.value.setUTCHours.apply(this.value, arguments) : NaN; }; k.prototype.setUTCMinutes = function(b, d, a) { return this.value instanceof Date ? this.value.setUTCMinutes.apply(this.value, arguments) : NaN; }; k.prototype.setUTCSeconds = function(b, d) { return this.value instanceof Date ? this.value.setUTCSeconds.apply(this.value, arguments) : NaN; }; k.prototype.setUTCMilliseconds = function(b) { return this.value instanceof Date ? this.value.setUTCMilliseconds.apply(this.value, arguments) : NaN; }; Object.defineProperty(k.prototype, "fullYear", {get:function() { return this.value.getFullYear(); }, set:function(b) { this.value.setFullYear(b); }, enumerable:!0, configurable:!0}); Object.defineProperty(k.prototype, "month", {get:function() { return this.value.getMonth(); }, set:function(b) { this.value.setMonth(b); }, enumerable:!0, configurable:!0}); Object.defineProperty(k.prototype, "date", {get:function() { return this.value.getDate(); }, set:function(b) { this.value.setDate(b); }, enumerable:!0, configurable:!0}); Object.defineProperty(k.prototype, "hours", {get:function() { return this.value.getHours(); }, set:function(b) { this.value.setHours(b); }, enumerable:!0, configurable:!0}); Object.defineProperty(k.prototype, "minutes", {get:function() { return this.value.getMinutes(); }, set:function(b) { this.value.setMinutes(b); }, enumerable:!0, configurable:!0}); Object.defineProperty(k.prototype, "seconds", {get:function() { return this.value.getSeconds(); }, set:function(b) { this.value.setSeconds(b); }, enumerable:!0, configurable:!0}); Object.defineProperty(k.prototype, "milliseconds", {get:function() { return this.value.getMilliseconds(); }, set:function(b) { this.value.setMilliseconds(b); }, enumerable:!0, configurable:!0}); Object.defineProperty(k.prototype, "fullYearUTC", {get:function() { return this.value.getUTCFullYear(); }, set:function(b) { this.value.setUTCFullYear(b); }, enumerable:!0, configurable:!0}); Object.defineProperty(k.prototype, "monthUTC", {get:function() { return this.value.getUTCMonth(); }, set:function(b) { this.value.setUTCMonth(b); }, enumerable:!0, configurable:!0}); Object.defineProperty(k.prototype, "dateUTC", {get:function() { return this.value.getUTCDate(); }, set:function(b) { this.value.setUTCDate(b); }, enumerable:!0, configurable:!0}); Object.defineProperty(k.prototype, "hoursUTC", {get:function() { return this.value.getUTCHours(); }, set:function(b) { this.value.setUTCHours(b); }, enumerable:!0, configurable:!0}); Object.defineProperty(k.prototype, "minutesUTC", {get:function() { return this.value.getUTCMinutes(); }, set:function(b) { this.value.setUTCMinutes(b); }, enumerable:!0, configurable:!0}); Object.defineProperty(k.prototype, "secondsUTC", {get:function() { return this.value.getUTCSeconds(); }, set:function(b) { this.value.setUTCSeconds(b); }, enumerable:!0, configurable:!0}); Object.defineProperty(k.prototype, "millisecondsUTC", {get:function() { return this.value.getUTCMilliseconds(); }, set:function(b) { this.value.setUTCMilliseconds(b); }, enumerable:!0, configurable:!0}); Object.defineProperty(k.prototype, "time", {get:function() { return this.value.getTime(); }, set:function(b) { this.value.setTime(b); }, enumerable:!0, configurable:!0}); Object.defineProperty(k.prototype, "timezoneOffset", {get:function() { return this.value.getTimezoneOffset(); }, enumerable:!0, configurable:!0}); Object.defineProperty(k.prototype, "day", {get:function() { return this.value.getDay(); }, enumerable:!0, configurable:!0}); Object.defineProperty(k.prototype, "dayUTC", {get:function() { return this.value.getUTCDay(); }, enumerable:!0, configurable:!0}); k.classInitializer = function() { var f = this.dPrototype, d = k.prototype; b.addPrototypeFunctionAlias(f, "$BgtoString", d.toString); b.addPrototypeFunctionAlias(f, "$BgtoLocaleString", d.toString); b.addPrototypeFunctionAlias(f, "$BgvalueOf", d.valueOf); b.addPrototypeFunctionAlias(f, "$BgtoDateString", d.toDateString); b.addPrototypeFunctionAlias(f, "$BgtoTimeString", d.toTimeString); b.addPrototypeFunctionAlias(f, "$BgtoLocaleString", d.toLocaleString); b.addPrototypeFunctionAlias(f, "$BgtoLocaleDateString", d.toLocaleDateString); b.addPrototypeFunctionAlias(f, "$BgtoLocaleTimeString", d.toLocaleTimeString); b.addPrototypeFunctionAlias(f, "$BgtoUTCString", d.toUTCString); b.addPrototypeFunctionAlias(f, "$BgtoJSON", d.toJSON); b.addPrototypeFunctionAlias(f, "$BggetUTCFullYear", d.getUTCFullYear); b.addPrototypeFunctionAlias(f, "$BggetUTCMonth", d.getUTCMonth); b.addPrototypeFunctionAlias(f, "$BggetUTCDate", d.getUTCDate); b.addPrototypeFunctionAlias(f, "$BggetUTCDay", d.getUTCDay); b.addPrototypeFunctionAlias(f, "$BggetUTCHours", d.getUTCHours); b.addPrototypeFunctionAlias(f, "$BggetUTCMinutes", d.getUTCMinutes); b.addPrototypeFunctionAlias(f, "$BggetUTCSeconds", d.getUTCSeconds); b.addPrototypeFunctionAlias(f, "$BggetUTCMilliseconds", d.getUTCMilliseconds); b.addPrototypeFunctionAlias(f, "$BggetFullYear", d.getFullYear); b.addPrototypeFunctionAlias(f, "$BggetMonth", d.getMonth); b.addPrototypeFunctionAlias(f, "$BggetDate", d.getDate); b.addPrototypeFunctionAlias(f, "$BggetDay", d.getDay); b.addPrototypeFunctionAlias(f, "$BggetHours", d.getHours); b.addPrototypeFunctionAlias(f, "$BggetMinutes", d.getMinutes); b.addPrototypeFunctionAlias(f, "$BggetSeconds", d.getSeconds); b.addPrototypeFunctionAlias(f, "$BggetMilliseconds", d.getMilliseconds); b.addPrototypeFunctionAlias(f, "$BggetTimezoneOffset", d.getTimezoneOffset); b.addPrototypeFunctionAlias(f, "$BggetTime", d.getTime); b.addPrototypeFunctionAlias(f, "$BgsetFullYear", d.setFullYear); b.addPrototypeFunctionAlias(f, "$BgsetMonth", d.setMonth); b.addPrototypeFunctionAlias(f, "$BgsetDate", d.setDate); b.addPrototypeFunctionAlias(f, "$BgsetHours", f.setHours); b.addPrototypeFunctionAlias(f, "$BgsetMinutes", d.setMinutes); b.addPrototypeFunctionAlias(f, "$BgsetSeconds", d.setSeconds); b.addPrototypeFunctionAlias(f, "$BgsetMilliseconds", d.setMilliseconds); b.addPrototypeFunctionAlias(f, "$BgsetUTCFullYear", d.setUTCFullYear); b.addPrototypeFunctionAlias(f, "$BgsetUTCMonth", d.setUTCMonth); b.addPrototypeFunctionAlias(f, "$BgsetUTCDate", d.setUTCDate); b.addPrototypeFunctionAlias(f, "$BgsetUTCHours", d.setUTCHours); b.addPrototypeFunctionAlias(f, "$BgsetUTCMinutes", d.setUTCMinutes); b.addPrototypeFunctionAlias(f, "$BgsetUTCSeconds", d.setUTCSeconds); b.addPrototypeFunctionAlias(f, "$BgsetUTCMilliseconds", d.setUTCMilliseconds); }; return k; }(b.ASObject); b.ASDate = f; })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(g) { var q = f.Debug.notImplemented, u = f.Debug.unexpected, k = f.ArrayUtilities.DataBuffer; (function(b) { (function(b) { var a = function(a) { function b() { a.apply(this, arguments); } __extends(b, a); Object.defineProperty(b, "dynamicPropertyWriter", {get:function() { q("public flash.net.ObjectEncoding::get dynamicPropertyWriter"); return null; }, set:function(a) { q("public flash.net.ObjectEncoding::set dynamicPropertyWriter"); }, enumerable:!0, configurable:!0}); b.AMF0 = 0; b.AMF3 = 3; b.DEFAULT = b.AMF3; return b; }(g.ASObject); b.ObjectEncoding = a; })(b.net || (b.net = {})); })(g.flash || (g.flash = {})); (function(r) { (function(d) { var a = function(a) { function e(b) { a.call(this); this._symbol && (b = this._symbol); var d, t = 0; b ? (b instanceof ArrayBuffer ? d = b.slice() : Array.isArray(b) ? d = (new Uint8Array(b)).buffer : "buffer" in b ? b.buffer instanceof ArrayBuffer ? d = (new Uint8Array(b.buffer)).buffer : b.buffer instanceof Uint8Array ? (d = b.buffer.byteOffset, d = b.buffer.buffer.slice(d, d + b.buffer.length)) : d = b.buffer.slice() : f.Debug.unexpected("Source type."), t = d.byteLength) : d = new ArrayBuffer(e.INITIAL_SIZE); this._buffer = d; this._length = t; this._position = 0; this._resetViews(); this._objectEncoding = e.defaultObjectEncoding; this._littleEndian = !1; this._bitLength = this._bitBuffer = 0; } __extends(e, a); e.classInitializer = function() { var a = k.prototype; f.ObjectUtilities.defineNonEnumerableProperty(a, "$BgtoJSON", a.toJSON); }; Object.defineProperty(e, "defaultObjectEncoding", {get:function() { return this._defaultObjectEncoding; }, set:function(a) { this._defaultObjectEncoding = a >>> 0; }, enumerable:!0, configurable:!0}); e.prototype.toJSON = function() { return "ByteArray"; }; e.prototype.readObject = function() { switch(this._objectEncoding) { case r.net.ObjectEncoding.AMF0: return b.AMF0.read(this); case r.net.ObjectEncoding.AMF3: return b.AMF3.read(this); default: u("Object Encoding"); } }; e.prototype.writeObject = function(a) { switch(this._objectEncoding) { case r.net.ObjectEncoding.AMF0: return b.AMF0.write(this, a); case r.net.ObjectEncoding.AMF3: return b.AMF3.write(this, a); default: u("Object Encoding"); } }; e.prototype.axGetPublicProperty = function(a) { return "number" === typeof a || f.isNumeric(a = b.axCoerceName(a)) ? this.axGetNumericProperty(a) : this["$Bg" + a]; }; e.prototype.axGetNumericProperty = function(a) { return this.getValue(a); }; e.prototype.axSetPublicProperty = function(a, c) { "number" === typeof a || f.isNumeric(a = b.axCoerceName(a)) ? this.axSetNumericProperty(a, c) : this["$Bg" + a] = c; }; e.prototype.axSetNumericProperty = function(a, c) { this.setValue(a, c); }; e.prototype.axGetProperty = function(e) { var d = e.name; return "number" === typeof d || f.isNumeric(d = b.axCoerceName(d)) ? this.getValue(+d) : a.prototype.axGetProperty.call(this, e); }; e.prototype.axSetProperty = function(e, d, t) { var p = e.name; "number" === typeof p || f.isNumeric(p = b.axCoerceName(p)) ? this.setValue(+p, d) : a.prototype.axSetProperty.call(this, e, d, t); }; e.classNatives = [k]; e.instanceNatives = [k.prototype]; e.INITIAL_SIZE = 128; e._defaultObjectEncoding = r.net.ObjectEncoding.DEFAULT; return e; }(g.ASObject); d.ByteArray = a; })(r.utils || (r.utils = {})); })(g.flash || (g.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(g) { var q = f.Debug.somewhatImplemented, u = f.ObjectUtilities.defineNonEnumerableProperty; (function(k) { (function(r) { var d = function(a) { function c() { a.call(this); } __extends(c, a); Object.defineProperty(c, "enabled", {get:function() { q("public flash.system.IME::static get enabled"); return !1; }, set:function(a) { q("public flash.system.IME::static set enabled"); }, enumerable:!0, configurable:!0}); Object.defineProperty(c, "conversionMode", {get:function() { q("public flash.system.IME::static get conversionMode"); return "UNKNOWN"; }, set:function(a) { b.axCoerceString(a); q("public flash.system.IME::static set conversionMode"); }, enumerable:!0, configurable:!0}); c.setCompositionString = function(a) { b.axCoerceString(a); q("public flash.system.IME::static setCompositionString"); }; c.doConversion = function() { q("public flash.system.IME::static doConversion"); }; c.compositionSelectionChanged = function(a, c) { q("public flash.system.IME::static compositionSelectionChanged"); }; c.compositionAbandoned = function() { q("public flash.system.IME::static compositionAbandoned"); }; Object.defineProperty(c, "isSupported", {get:function() { q("public flash.system.IME::static get isSupported"); return !1; }, enumerable:!0, configurable:!0}); return c; }(g.ASObject); r.IME = d; d = function(a) { function c() { a.apply(this, arguments); } __extends(c, a); c.classInitializer = function() { u(this, "$Bgargv", this.sec.createArray([])); }; Object.defineProperty(c, "ime", {get:function() { q("public flash.system.System::get ime"); return null; }, enumerable:!0, configurable:!0}); c.setClipboard = function(a) { a = b.axCoerceString(a); null === f.ClipboardService.instance ? f.Debug.warning("setClipboard is only available in the Firefox extension") : f.ClipboardService.instance.setClipboard(a); }; Object.defineProperty(c, "totalMemoryNumber", {get:function() { q("public flash.system.System::get totalMemoryNumber"); return 2097152; }, enumerable:!0, configurable:!0}); Object.defineProperty(c, "freeMemory", {get:function() { q("public flash.system.System::get freeMemory"); return 1048576; }, enumerable:!0, configurable:!0}); Object.defineProperty(c, "privateMemory", {get:function() { q("public flash.system.System::get privateMemory"); return 1048576; }, enumerable:!0, configurable:!0}); Object.defineProperty(c, "useCodePage", {get:function() { return this._useCodePage; }, set:function(a) { q("public flash.system.System::set useCodePage"); this._useCodePage = !!a; }, enumerable:!0, configurable:!0}); Object.defineProperty(c, "vmVersion", {get:function() { return "1.0 Shumway - Mozilla Research"; }, enumerable:!0, configurable:!0}); c.pause = function() { }; c.resume = function() { }; c.exit = function(a) { }; c.gc = function() { }; c.pauseForGCIfCollectionImminent = function(a) { }; c.disposeXML = function(a) { }; Object.defineProperty(c, "swfVersion", {get:function() { return 19; }, enumerable:!0, configurable:!0}); Object.defineProperty(c, "apiVersion", {get:function() { return 26; }, enumerable:!0, configurable:!0}); c.getArgv = function() { return []; }; c.getRunmode = function() { return "mixed"; }; c._useCodePage = !1; return c; }(g.ASObject); r.System = d; r.OriginalSystem = d; })(k.system || (k.system = {})); })(g.flash || (g.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); Shumway.AVMX.AS.initializeBuiltins(); (function(f) { (function(b) { function g(a, c) { if (65535 < c.length) { throw "AMF short string exceeded"; } if (c.length) { var b = f.StringUtilities.utf8decode(c); a.writeByte(b.length >> 8 & 255); a.writeByte(b.length & 255); for (var e = 0;e < b.length;e++) { a.writeByte(b[e]); } } else { a.writeByte(0), a.writeByte(0); } } function q(a) { var c = a.readByte() << 8 | a.readByte(); if (!c) { return ""; } for (var b = new Uint8Array(c), e = 0;e < c;e++) { b[e] = a.readByte(); } return f.StringUtilities.utf8encode(b); } function u(a, c) { var b = new ArrayBuffer(8), e = new DataView(b); e.setFloat64(0, c, !1); for (var d = 0;d < b.byteLength;d++) { a.writeByte(e.getUint8(d)); } } function k(a) { for (var c = new ArrayBuffer(8), b = new DataView(c), e = 0;e < c.byteLength;e++) { b.setUint8(e, a.readByte()); } return b.getFloat64(0, !1); } function r(a) { var c = a.readByte(); if (0 === (c & 128)) { return c; } var b = a.readByte(); if (0 === (b & 128)) { return (c & 127) << 7 | b; } var e = a.readByte(); if (0 === (e & 128)) { return (c & 127) << 14 | (b & 127) << 7 | e; } a = a.readByte(); return (c & 127) << 22 | (b & 127) << 15 | (e & 127) << 8 | a; } function d(a, c) { if (0 === (c & 4294967168)) { a.writeByte(c & 127); } else { if (0 === (c & 4294950912)) { a.writeByte(128 | c >> 7 & 127), a.writeByte(c & 127); } else { if (0 === (c & 4292870144)) { a.writeByte(128 | c >> 14 & 127), a.writeByte(128 | c >> 7 & 127), a.writeByte(c & 127); } else { if (0 === (c & 3221225472)) { a.writeByte(128 | c >> 22 & 127), a.writeByte(128 | c >> 15 & 127), a.writeByte(128 | c >> 8 & 127), a.writeByte(c & 255); } else { throw "AMF3 U29 range"; } } } } } function a(a, c) { var b = r(a); if (1 === b) { return ""; } var e = c.strings; if (0 === (b & 1)) { return e[b >> 1]; } for (var b = b >> 1, d = new Uint8Array(b), l = 0;l < b;l++) { d[l] = a.readByte(); } b = f.StringUtilities.utf8encode(d); e.push(b); return b; } function c(a, c, b) { if ("" === c) { a.writeByte(1); } else { b = b.strings; var e = b.indexOf(c); if (0 <= e) { d(a, e << 1); } else { for (b.push(c), c = f.StringUtilities.utf8decode(c), d(a, 1 | c.length << 1), b = 0;b < c.length;b++) { a.writeByte(c[b]); } } } } function e(c, b) { var d = c.readByte(); switch(d) { case 1: return null; case 0: break; case 2: return !1; case 3: return !0; case 4: return r(c); case 5: return k(c); case 6: return a(c, b); case 8: var l = r(c); return c.sec.AXDate.axConstruct([k(c)]); case 10: l = r(c); if (0 === (l & 1)) { return b.objects[l >> 1]; } if (0 !== (l & 4)) { throw "AMF3 Traits-Ext is not supported"; } var p, n, t = !0, g; if (0 === (l & 2)) { g = b.traitNames[l >> 2]; } else { (d = a(c, b)) && (n = p = c.sec.classAliases.getClassByAlias(d)); t = 0 !== (l & 8); g = []; d = 0; for (l >>= 4;d < l;d++) { g.push(a(c, b)); } b.traits.push(n); b.traitNames.push(g); } n = p ? p.axConstruct([]) : c.sec.createObject(); b.objects.push(n); for (d = 0;d < g.length;d++) { p = e(c, b), n.axSetPublicProperty(g[d], p); } if (t) { for (;;) { d = a(c, b); if ("" === d) { break; } p = e(c, b); n.axSetPublicProperty(d, p); } } return n; case 9: l = r(c); if (0 === (l & 1)) { return b.objects[l >> 1]; } n = c.sec.createArray([]); b.objects.push(n); for (t = l >> 1;;) { d = a(c, b); if (!d.length) { break; } p = e(c, b); n.axSetPublicProperty(d, p); } for (d = 0;d < t;d++) { p = e(c, b), n.axSetPublicProperty(d, p); } return n; default: throw "AMF3 Unknown marker " + d;; } } function l(a, c, b) { b = b.objects; var e = b.indexOf(c); if (0 > e) { return b.push(c), !1; } d(a, e << 1); return !0; } function n(a, e, v) { switch(typeof e) { case "boolean": a.writeByte(e ? 3 : 2); break; case "number": var p = e === (e | 0); p && (268435455 < e || -268435456 > e) && (p = !1); p ? (a.writeByte(4), d(a, e)) : (a.writeByte(5), u(a, e)); break; case "undefined": a.writeByte(0); break; case "string": a.writeByte(6); c(a, e, v); break; case "object": if (null === e) { a.writeByte(1); } else { if (a.sec.AXArray.axIsType(e)) { a.writeByte(9); if (l(a, e, v)) { break; } for (var t = 0;e.axHasPublicProperty(t);) { ++t; } d(a, t << 1 | 1); b.forEachPublicProperty(e, function(b, e) { f.isNumeric(b) && 0 <= b && b < t || (c(a, b, v), n(a, e, v)); }); c(a, "", v); for (p = 0;p < t;p++) { n(a, e.axGetPublicProperty(p), v); } } else { if (a.sec.AXDate.axIsType(e)) { a.writeByte(8); if (l(a, e, v)) { break; } d(a, 1); u(a, e.valueOf()); } else { a.writeByte(10); if (l(a, e, v)) { break; } var p = !0, g = e.axClass; if (g) { var r = g.classInfo, p = !r.instanceInfo.isSealed(), k = a.sec.classAliases.getAliasByClass(g) || "", q = v.traits.indexOf(g), x = null; if (0 > q) { for (x = r.instanceInfo.runtimeTraits.getSlotPublicTraitNames(), v.traits.push(g), v.traitNames.push(x), d(a, (p ? 11 : 3) + (x.length << 4)), c(a, k, v), g = 0;g < x.length;g++) { c(a, x[g], v); } } else { x = v.traitNames[q], d(a, 1 + (q << 2)); } for (g = 0;g < x.length;g++) { n(a, e.axGetPublicProperty(x[g]), v); } } else { d(a, 11), c(a, "", v); } p && (b.forEachPublicProperty(e, function(b, e) { c(a, b, v); n(a, e, v); }), c(a, "", v)); } } } ; } } var t = function() { return function() { this.strings = []; this.objects = []; this.traits = []; this.traitNames = []; }; }(), p = function() { function a() { this._classMap = new WeakMap; this._nameMap = Object.create(null); } a.prototype.getAliasByClass = function(a) { return this._classMap.get(a); }; a.prototype.getClassByAlias = function(a) { return this._nameMap[a]; }; a.prototype.registerClassAlias = function(a, c) { this._classMap.set(c, a); this._nameMap[a] = c; }; return a; }(); b.ClassAliases = p; (function(a) { a[a.NUMBER = 0] = "NUMBER"; a[a.BOOLEAN = 1] = "BOOLEAN"; a[a.STRING = 2] = "STRING"; a[a.OBJECT = 3] = "OBJECT"; a[a.NULL = 5] = "NULL"; a[a.UNDEFINED = 6] = "UNDEFINED"; a[a.REFERENCE = 7] = "REFERENCE"; a[a.ECMA_ARRAY = 8] = "ECMA_ARRAY"; a[a.OBJECT_END = 9] = "OBJECT_END"; a[a.STRICT_ARRAY = 10] = "STRICT_ARRAY"; a[a.DATE = 11] = "DATE"; a[a.LONG_STRING = 12] = "LONG_STRING"; a[a.XML = 15] = "XML"; a[a.TYPED_OBJECT = 16] = "TYPED_OBJECT"; a[a.AVMPLUS = 17] = "AVMPLUS"; })(b.AMF0Marker || (b.AMF0Marker = {})); p = function() { function a() { } a.write = function(a, c) { switch(typeof c) { case "boolean": a.writeByte(1); a.writeByte(c ? 1 : 0); break; case "number": a.writeByte(0); u(a, c); break; case "undefined": a.writeByte(6); break; case "string": a.writeByte(2); g(a, c); break; case "object": if (null === c) { a.writeByte(5); } else { if (a.sec.AXArray.axIsType(c)) { var e = c.value; a.writeByte(8); a.writeByte(e.length >>> 24 & 255); a.writeByte(e.length >> 16 & 255); a.writeByte(e.length >> 8 & 255); a.writeByte(e.length & 255); b.forEachPublicProperty(c, function(c, b) { g(a, c); this.write(a, b); }, this); } else { a.writeByte(3), b.forEachPublicProperty(c, function(c, b) { g(a, c); this.write(a, b); }, this); } a.writeByte(0); a.writeByte(0); a.writeByte(9); } ; } }; a.read = function(a) { var c = a.readByte(); switch(c) { case 0: return k(a); case 1: return !!a.readByte(); case 2: return q(a); case 3: for (c = a.sec.createObject();;) { var b = q(a); if (!b.length) { break; } c.axSetPublicProperty(b, this.read(a)); } if (9 !== a.readByte()) { throw "AMF0 End marker is not found"; } return c; case 5: return null; case 6: break; case 8: c = a.sec.createArray([]); for (c.length = a.readByte() << 24 | a.readByte() << 16 | a.readByte() << 8 | a.readByte();;) { b = q(a); if (!b.length) { break; } c.axSetPublicProperty(b, this.read(a)); } if (9 !== a.readByte()) { throw "AMF0 End marker is not found"; } return c; case 10: for (var c = a.sec.createArray([]), b = c.length = a.readByte() << 24 | a.readByte() << 16 | a.readByte() << 8 | a.readByte(), d = 0;d < b;d++) { c.axSetPublicProperty(d, this.read(a)); } return c; case 17: return e(a, new t); default: throw "AMF0 Unknown marker " + c;; } }; return a; }(); b.AMF0 = p; (function(a) { a[a.UNDEFINED = 0] = "UNDEFINED"; a[a.NULL = 1] = "NULL"; a[a.FALSE = 2] = "FALSE"; a[a.TRUE = 3] = "TRUE"; a[a.INTEGER = 4] = "INTEGER"; a[a.DOUBLE = 5] = "DOUBLE"; a[a.STRING = 6] = "STRING"; a[a.XML_DOC = 7] = "XML_DOC"; a[a.DATE = 8] = "DATE"; a[a.ARRAY = 9] = "ARRAY"; a[a.OBJECT = 10] = "OBJECT"; a[a.XML = 11] = "XML"; a[a.BYTEARRAY = 12] = "BYTEARRAY"; a[a.VECTOR_INT = 13] = "VECTOR_INT"; a[a.VECTOR_UINT = 14] = "VECTOR_UINT"; a[a.VECTOR_DOUBLE = 15] = "VECTOR_DOUBLE"; a[a.VECTOR_OBJECT = 16] = "VECTOR_OBJECT"; a[a.DICTIONARY = 17] = "DICTIONARY"; })(b.AMF3Marker || (b.AMF3Marker = {})); p = function() { function a() { } a.write = function(a, c) { n(a, c, new t); }; a.read = function(a) { return e(a, new t); }; return a; }(); b.AMF3 = p; })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); console.timeEnd("Load AVM2 Dependencies"); console.time("Load SWF Parser"); (function(f) { (function(b) { (function(b) { function q(a, b, d) { return u(a, b, d) << 32 - d >> 32 - d; } function u(a, b, d) { for (var n = b.bitBuffer, t = b.bitLength;d > t;) { n = n << 8 | a[b.pos++], t += 8; } t -= d; a = n >>> t & r[d]; b.bitBuffer = n; b.bitLength = t; return a; } var k = Math.pow; b.readSi8 = function(a, b) { return b.getInt8(b.pos++); }; b.readSi16 = function(a, b) { return b.getInt16(b.pos, b.pos += 2); }; b.readSi32 = function(a, b) { return b.getInt32(b.pos, b.pos += 4); }; b.readUi8 = function(a, b) { return a[b.pos++]; }; b.readUi16 = function(a, b) { return b.getUint16(b.pos, b.pos += 2); }; b.readUi32 = function(a, b) { return b.getUint32(b.pos, b.pos += 4); }; b.readFixed = function(a, b) { return b.getInt32(b.pos, b.pos += 4) / 65536; }; b.readFixed8 = function(a, b) { return b.getInt16(b.pos, b.pos += 2) / 256; }; b.readFloat16 = function(a, b) { var d = b.getUint16(b.pos); b.pos += 2; var n = d >> 15 ? -1 : 1, t = (d & 31744) >> 10, d = d & 1023; return t ? 31 === t ? d ? NaN : Infinity * n : n * k(2, t - 15) * (1 + d / 1024) : n * k(2, -14) * (d / 1024); }; b.readFloat = function(a, b) { return b.getFloat32(b.pos, b.pos += 4); }; b.readDouble = function(a, b) { return b.getFloat64(b.pos, b.pos += 8); }; b.readEncodedU32 = function(a, b) { var d = a[b.pos++]; if (!(d & 128)) { return d; } d = d & 127 | a[b.pos++] << 7; if (!(d & 16384)) { return d; } d = d & 16383 | a[b.pos++] << 14; if (!(d & 2097152)) { return d; } d = d & 2097151 | a[b.pos++] << 21; return d & 268435456 ? d & 268435455 | a[b.pos++] << 28 : d; }; b.readBool = function(a, b) { return !!a[b.pos++]; }; b.align = function(a, b) { b.align(); }; b.readSb = q; for (var r = new Uint32Array(33), d = 1, a = 0;32 >= d;++d) { r[d] = a = a << 1 | 1; } b.readUb = u; b.readFb = function(a, b, d) { return q(a, b, d) / 65536; }; b.readString = function(a, b, d) { var n = b.pos; if (-1 < d) { a = a.subarray(n, n += d); } else { d = 0; for (var t = n;a[t];t++) { d++; } a = a.subarray(n, n += d); n++; } b.pos = n; b = f.StringUtilities.utf8encode(a); 0 <= b.indexOf("\x00") && (b = b.split("\x00").join("")); return b; }; })(b.Parser || (b.Parser = {})); })(f.SWF || (f.SWF = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(q) { function u(a, c, e, d, h) { e || (e = {}); e.id = b.readUi16(a, c); var l = e.lineBounds = {}; m(a, c, l, d, h); if (l = e.isMorph = 46 === h || 84 === h) { var p = e.lineBoundsMorph = {}; m(a, c, p, d, h); } if (p = e.canHaveStrokes = 83 === h || 84 === h) { var v = e.fillBounds = {}; m(a, c, v, d, h); l && (v = e.fillBoundsMorph = {}, m(a, c, v, d, h)); e.flags = b.readUi8(a, c); } if (l) { e.offsetMorph = b.readUi32(a, c); var n = e, t, f, v = A(a, c, n, d, h, l, p), w = v.lineBits, r = v.fillBits, k = n.records = []; do { var H = {}, v = z(a, c, H, d, h, l, r, w, p, f); t = v.eos; r = v.fillBits; w = v.lineBits; f = v.bits; k.push(H); } while (!t); v = B(a, c); r = v.fillBits; w = v.lineBits; n = n.recordsMorph = []; do { k = {}, v = z(a, c, k, d, h, l, r, w, p, f), t = v.eos, r = v.fillBits, w = v.lineBits, f = v.bits, n.push(k); } while (!t); } else { r = e; f = A(a, c, r, d, h, l, p); v = f.fillBits; w = f.lineBits; n = r.records = []; do { k = {}, f = z(a, c, k, d, h, l, v, w, p, t), r = f.eos, v = f.fillBits, w = f.lineBits, t = f.bits, n.push(k); } while (!r); } return e; } function k(a, c, e, d, h, m) { var l; e || (e = {}); if (4 === h) { return e.symbolId = b.readUi16(a, c), e.depth = b.readUi16(a, c), e.flags |= 4, e.matrix = H(a, c), c.pos < m && (e.flags |= 8, d = e.cxform = {}, K(a, c, d, h)), e; } l = e.flags = 26 < h ? b.readUi16(a, c) : b.readUi8(a, c); e.depth = b.readUi16(a, c); l & 2048 && (e.className = b.readString(a, c, -1)); l & 2 && (e.symbolId = b.readUi16(a, c)); l & 4 && (e.matrix = H(a, c)); if (l & 8) { var p = e.cxform = {}; K(a, c, p, h); } l & 16 && (e.ratio = b.readUi16(a, c)); l & 32 && (e.name = b.readString(a, c, -1)); l & 64 && (e.clipDepth = b.readUi16(a, c)); if (l & 256) { for (p = b.readUi8(a, c), h = e.filters = [];p--;) { var v = {}; C(a, c, v); h.push(v); } } l & 512 && (e.blendMode = b.readUi8(a, c)); l & 1024 && (e.bmpCache = b.readUi8(a, c)); l & 8192 && (e.visibility = b.readUi8(a, c)); l & 16384 && (h = e, p = b.readUi8(a, c) | b.readUi8(a, c) << 24 | b.readUi8(a, c) << 16 | b.readUi8(a, c) << 8, h.backgroundColor = p); if (l & 128) { b.readUi16(a, c); 6 <= d ? b.readUi32(a, c) : b.readUi16(a, c); l = e.events = []; do { h = {}; var p = a, v = c, n = h, t = d, w = n.flags = 6 <= t ? b.readUi32(p, v) : b.readUi16(p, v); w ? (6 === t && (w &= -262145), t = n.length = b.readUi32(p, v), w & 131072 && (n.keyCode = b.readUi8(p, v), t--), w = v.pos + t, n.actionsData = p.subarray(v.pos, w), v.pos = w, p = !1) : p = !0; if (p) { break; } if (c.pos > m) { f.Debug.warning("PlaceObject handler attempted to read clip events beyond tag end"); c.pos = m; break; } l.push(h); } while (1); } return e; } function r(a, c, e, d, h) { e || (e = {}); 5 === h && (e.symbolId = b.readUi16(a, c)); e.depth = b.readUi16(a, c); return e; } function d(a, c, e, d, h, m, l) { d = e || {}; d.id = b.readUi16(a, c); if (21 < h) { var p = b.readUi32(a, c); 90 === h && (d.deblock = b.readFixed8(a, c)); p += c.pos; e = d.imgData = a.subarray(c.pos, p); d.alphaData = a.subarray(p, m); } else { e = d.imgData = a.subarray(c.pos, m); } c.pos = m; switch(e[0] << 8 | e[1]) { case 65496: ; case 65497: d.mimeType = "image/jpeg"; break; case 35152: d.mimeType = "image/png"; break; case 18249: d.mimeType = "image/gif"; break; default: d.mimeType = "application/octet-stream"; } d.jpegTables = 6 === h ? {data:l} : null; return d; } function a(a, c, e, d, h, m) { var l; e || (e = {}); e.id = b.readUi16(a, c); if (7 == h) { var p = e.characters = []; do { var v = {}; l = a; var n = c, t = v, f = d, w = h, r = b.readUi8(l, n), k = t.eob = !r; t.flags = 8 <= f ? (r >> 5 & 1 ? 512 : 0) | (r >> 4 & 1 ? 256 : 0) : 0; t.stateHitTest = r >> 3 & 1; t.stateDown = r >> 2 & 1; t.stateOver = r >> 1 & 1; t.stateUp = r & 1; k || (t.symbolId = b.readUi16(l, n), t.depth = b.readUi16(l, n), t.matrix = H(l, n), 34 === w && (f = t.cxform = {}, K(l, n, f, w)), t.flags & 256 && (t.filterCount = b.readUi8(l, n), w = t.filters = {}, C(l, n, w)), t.flags & 512 && (t.blendMode = b.readUi8(l, n))); l = k; p.push(v); } while (!l); e.actionsData = a.subarray(c.pos, m); c.pos = m; } else { p = b.readUi8(a, c); e.trackAsMenu = p >> 7 & 1; v = b.readUi16(a, c); p = e.characters = []; do { n = {}; t = b.readUi8(a, c); l = n.eob = !t; n.flags = 8 <= d ? (t >> 5 & 1 ? 512 : 0) | (t >> 4 & 1 ? 256 : 0) : 0; n.stateHitTest = t >> 3 & 1; n.stateDown = t >> 2 & 1; n.stateOver = t >> 1 & 1; n.stateUp = t & 1; if (!l) { n.symbolId = b.readUi16(a, c); n.depth = b.readUi16(a, c); n.matrix = H(a, c); 34 === h && (t = n.cxform = {}, K(a, c, t, h)); if (n.flags & 256) { for (k = b.readUi8(a, c), t = e.filters = [];k--;) { w = {}, C(a, c, w), t.push(w); } } n.flags & 512 && (n.blendMode = b.readUi8(a, c)); } p.push(n); } while (!l); if (v) { for (d = e.buttonActions = [];c.pos < m;) { h = a; p = c; l = m; v = p.pos; l = (n = b.readUi16(h, p)) ? v + n : l; n = b.readUi16(h, p); p.pos = l; if (c.pos > m) { break; } d.push({keyCode:(n & 65024) >> 9, stateTransitionFlags:n & 511, actionsData:h.subarray(v + 4, l)}); } c.pos = m; } } return e; } function c(a, c, e, d, h) { e || (e = {}); e.id = b.readUi16(a, c); for (var m = b.readUi16(a, c), l = e.glyphCount = m / 2, p = [], v = l - 1;v--;) { p.push(b.readUi16(a, c)); } e.offsets = [m].concat(p); for (m = e.glyphs = [];l--;) { p = {}, y(a, c, p, d, h), m.push(p); } return e; } function e(a, c, e, d, h) { var l; e || (e = {}); e.id = b.readUi16(a, c); var p = e.bbox = {}; m(a, c, p, d, h); e.matrix = H(a, c); d = e.glyphBits = b.readUi8(a, c); var p = e.advanceBits = b.readUi8(a, c), n = e.records = []; do { var t = {}; l = a; var f = c, r = t, k = h, q = d, u = p, z = void 0; b.align(l, f); var K = b.readUb(l, f, 8), B = r.eot = !K, z = l, A = f, x = r, y = K, K = x.hasFont = y >> 3 & 1, C = x.hasColor = y >> 2 & 1, ba = x.hasMoveY = y >> 1 & 1, y = x.hasMoveX = y & 1; K && (x.fontId = b.readUi16(z, A)); C && (x.color = 33 === k ? w(z, A) : v(z, A)); y && (x.moveX = b.readSi16(z, A)); ba && (x.moveY = b.readSi16(z, A)); K && (x.fontHeight = b.readUi16(z, A)); if (!B) { for (z = b.readUi8(l, f), z = r.glyphCount = z, r = r.entries = [];z--;) { A = {}, x = l, k = f, K = A, C = u, K.glyphIndex = b.readUb(x, k, q), K.advance = b.readSb(x, k, C), r.push(A); } } l = B; n.push(t); } while (!l); return e; } function l(a, c, e, d, h) { e || (e = {}); 15 == h && (e.soundId = b.readUi16(a, c)); 89 == h && (e.soundClassName = b.readString(a, c, -1)); d = e; h = {}; b.readUb(a, c, 2); h.stop = b.readUb(a, c, 1); h.noMultiple = b.readUb(a, c, 1); var m = h.hasEnvelope = b.readUb(a, c, 1), l = h.hasLoops = b.readUb(a, c, 1), p = h.hasOutPoint = b.readUb(a, c, 1); if (h.hasInPoint = b.readUb(a, c, 1)) { h.inPoint = b.readUi32(a, c); } p && (h.outPoint = b.readUi32(a, c)); l && (h.loopCount = b.readUi16(a, c)); if (m) { for (l = h.envelopeCount = b.readUi8(a, c), m = h.envelopes = [];l--;) { var p = {}, v = a, n = c, t = p; t.pos44 = b.readUi32(v, n); t.volumeLeft = b.readUi16(v, n); t.volumeRight = b.readUi16(v, n); m.push(p); } } d.soundInfo = h; return e; } function n(a, c, e, d, h, m) { e = e || {}; e.id = b.readUi16(a, c); d = e.format = b.readUi8(a, c); e.width = b.readUi16(a, c); e.height = b.readUi16(a, c); e.hasAlpha = 36 === h; 3 === d && (e.colorTableSize = b.readUi8(a, c)); e.bmpData = a.subarray(c.pos, m); c.pos = m; return e; } function t(a, c, e, d, h, l) { e || (e = {}); e.id = b.readUi16(a, c); var p = b.readUi8(a, c), v = e.hasLayout = p & 128 ? 1 : 0; e.shiftJis = 5 < d && p & 64 ? 1 : 0; e.smallText = p & 32 ? 1 : 0; e.ansi = p & 16 ? 1 : 0; var n = e.wideOffset = p & 8 ? 1 : 0, t = e.wide = p & 4 ? 1 : 0; e.italic = p & 2 ? 1 : 0; e.bold = p & 1 ? 1 : 0; 5 < d ? e.language = b.readUi8(a, c) : (b.readUi8(a, c), e.language = 0); p = b.readUi8(a, c); e.name = b.readString(a, c, p); 75 === h && (e.resolution = 20); p = e.glyphCount = b.readUi16(a, c); if (0 === p) { return e; } var f = c.pos; if (n) { for (var n = e.offsets = [], w = p;w--;) { n.push(b.readUi32(a, c)); } e.mapOffset = b.readUi32(a, c); } else { n = e.offsets = []; for (w = p;w--;) { n.push(b.readUi16(a, c)); } e.mapOffset = b.readUi16(a, c); } n = e.glyphs = []; for (w = p;w--;) { var r = {}; 1 === e.offsets[p - w] + f - c.pos ? (b.readUi8(a, c), n.push({records:[{type:0, eos:!0, hasNewStyles:0, hasLineStyle:0, hasFillStyle1:0, hasFillStyle0:0, move:0}]})) : (y(a, c, r, d, h), n.push(r)); } if (t) { for (f = e.codes = [], n = p;n--;) { f.push(b.readUi16(a, c)); } } else { for (f = e.codes = [], n = p;n--;) { f.push(b.readUi8(a, c)); } } if (v) { e.ascent = b.readUi16(a, c); e.descent = b.readUi16(a, c); e.leading = b.readSi16(a, c); v = e.advance = []; for (f = p;f--;) { v.push(b.readSi16(a, c)); } for (v = e.bbox = [];p--;) { f = {}, m(a, c, f, d, h), v.push(f); } h = b.readUi16(a, c); for (d = e.kerning = [];h-- && l - c.pos >= (t ? 4 : 2) + 2;) { p = {}, v = a, f = c, n = p, t ? (n.code1 = b.readUi16(v, f), n.code2 = b.readUi16(v, f)) : (n.code1 = b.readUi8(v, f), n.code2 = b.readUi8(v, f)), n.adjustment = b.readUi16(v, f), d.push(p); } } return e; } function p(a, c, e, d, h, m) { e || (e = {}); e.id = b.readUi16(a, c); d = b.readUi8(a, c); h = e.hasFontData = d & 4 ? 1 : 0; e.italic = d & 2 ? 1 : 0; e.bold = d & 1 ? 1 : 0; e.name = b.readString(a, c, -1); h && (e.data = a.subarray(c.pos, m), c.pos = m); return e; } function h(a, c, e) { e || (e = {}); for (var d = b.readEncodedU32(a, c), h = e.scenes = [];d--;) { var m = {}; m.offset = b.readEncodedU32(a, c); m.name = b.readString(a, c, -1); h.push(m); } d = b.readEncodedU32(a, c); for (h = e.labels = [];d--;) { m = {}, m.frame = b.readEncodedU32(a, c), m.name = b.readString(a, c, -1), h.push(m); } return e; } function m(a, c, e, d, h) { b.align(a, c); var m = b.readUb(a, c, 5); d = b.readSb(a, c, m); h = b.readSb(a, c, m); var l = b.readSb(a, c, m), m = b.readSb(a, c, m); e.xMin = d; e.xMax = h; e.yMin = l; e.yMax = m; b.align(a, c); } function v(a, c) { return (b.readUi8(a, c) << 24 | b.readUi8(a, c) << 16 | b.readUi8(a, c) << 8 | 255) >>> 0; } function w(a, c) { return b.readUi8(a, c) << 24 | b.readUi8(a, c) << 16 | b.readUi8(a, c) << 8 | b.readUi8(a, c); } function H(a, c) { var e = {}; b.align(a, c); if (b.readUb(a, c, 1)) { var d = b.readUb(a, c, 5); e.a = b.readFb(a, c, d); e.d = b.readFb(a, c, d); } else { e.a = 1, e.d = 1; } b.readUb(a, c, 1) ? (d = b.readUb(a, c, 5), e.b = b.readFb(a, c, d), e.c = b.readFb(a, c, d)) : (e.b = 0, e.c = 0); var d = b.readUb(a, c, 5), h = b.readSb(a, c, d), d = b.readSb(a, c, d); e.tx = h; e.ty = d; b.align(a, c); return e; } function K(a, c, e, d) { b.align(a, c); var h = b.readUb(a, c, 1), m = b.readUb(a, c, 1), l = b.readUb(a, c, 4); m ? (e.redMultiplier = b.readSb(a, c, l), e.greenMultiplier = b.readSb(a, c, l), e.blueMultiplier = b.readSb(a, c, l), e.alphaMultiplier = 4 < d ? b.readSb(a, c, l) : 256) : (e.redMultiplier = 256, e.greenMultiplier = 256, e.blueMultiplier = 256, e.alphaMultiplier = 256); h ? (e.redOffset = b.readSb(a, c, l), e.greenOffset = b.readSb(a, c, l), e.blueOffset = b.readSb(a, c, l), e.alphaOffset = 4 < d ? b.readSb(a, c, l) : 0) : (e.redOffset = 0, e.greenOffset = 0, e.blueOffset = 0, e.alphaOffset = 0); b.align(a, c); } function z(a, c, e, d, h, m, l, p, v, n) { var t, f = e.type = b.readUb(a, c, 1), w = b.readUb(a, c, 5); t = e.eos = !(f || w); if (f) { d = (w & 15) + 2, (e.isStraight = w >> 4) ? (e.isGeneral = b.readUb(a, c, 1)) ? (e.deltaX = b.readSb(a, c, d), e.deltaY = b.readSb(a, c, d)) : (e.isVertical = b.readUb(a, c, 1)) ? e.deltaY = b.readSb(a, c, d) : e.deltaX = b.readSb(a, c, d) : (e.controlDeltaX = b.readSb(a, c, d), e.controlDeltaY = b.readSb(a, c, d), e.anchorDeltaX = b.readSb(a, c, d), e.anchorDeltaY = b.readSb(a, c, d)), a = d; } else { var r = e.hasNewStyles = 2 < h ? w >> 4 : 0, k = e.hasLineStyle = w >> 3 & 1, H = e.hasFillStyle1 = w >> 2 & 1, q = e.hasFillStyle0 = w >> 1 & 1; if (e.move = w & 1) { n = b.readUb(a, c, 5), e.moveX = b.readSb(a, c, n), e.moveY = b.readSb(a, c, n); } q && (e.fillStyle0 = b.readUb(a, c, l)); H && (e.fillStyle1 = b.readUb(a, c, l)); k && (e.lineStyle = b.readUb(a, c, p)); r && (a = A(a, c, e, d, h, m, v), p = a.lineBits, l = a.fillBits); a = n; } return {type:f, flags:w, eos:t, fillBits:l, lineBits:p, bits:a}; } function A(a, c, e, d, h, m, l) { var p, n = b.readUi8(a, c); p = 2 < h && 255 === n ? b.readUi16(a, c) : n; for (n = e.fillStyles = [];p--;) { var t = {}; x(a, c, t, d, h, m); n.push(t); } n = b.readUi8(a, c); n = 2 < h && 255 === n ? b.readUi16(a, c) : n; for (e = e.lineStyles = [];n--;) { p = {}; var t = a, f = c, r = p, k = d, H = h, q = m, u = l; r.width = b.readUi16(t, f); q && (r.widthMorph = b.readUi16(t, f)); if (u) { b.align(t, f); r.startCapsStyle = b.readUb(t, f, 2); var u = r.jointStyle = b.readUb(t, f, 2), z = r.hasFill = b.readUb(t, f, 1); r.noHscale = b.readUb(t, f, 1); r.noVscale = b.readUb(t, f, 1); r.pixelHinting = b.readUb(t, f, 1); b.readUb(t, f, 5); r.noClose = b.readUb(t, f, 1); r.endCapsStyle = b.readUb(t, f, 2); 2 === u && (r.miterLimitFactor = b.readFixed8(t, f)); z ? (r = r.fillStyle = {}, x(t, f, r, k, H, q)) : (r.color = w(t, f), q && (r.colorMorph = w(t, f))); } else { r.color = 22 < H ? w(t, f) : v(t, f), q && (r.colorMorph = w(t, f)); } e.push(p); } a = B(a, c); return {fillBits:a.fillBits, lineBits:a.lineBits}; } function B(a, c) { b.align(a, c); var e = b.readUb(a, c, 4), d = b.readUb(a, c, 4); return {fillBits:e, lineBits:d}; } function x(a, c, e, d, h, m) { d = e.type = b.readUi8(a, c); switch(d) { case 0: e.color = 22 < h || m ? w(a, c) : v(a, c); m && (e.colorMorph = w(a, c)); break; case 16: ; case 18: ; case 19: e.matrix = H(a, c); m && (e.matrixMorph = H(a, c)); 83 === h ? (e.spreadMode = b.readUb(a, c, 2), e.interpolationMode = b.readUb(a, c, 2)) : b.readUb(a, c, 4); for (var l = e.count = b.readUb(a, c, 4), p = e.records = [];l--;) { var n = {}, t = a, f = c, r = n, k = h, q = m; r.ratio = b.readUi8(t, f); r.color = 22 < k ? w(t, f) : v(t, f); q && (r.ratioMorph = b.readUi8(t, f), r.colorMorph = w(t, f)); p.push(n); } 19 === d && (e.focalPoint = b.readSi16(a, c), m && (e.focalPointMorph = b.readSi16(a, c))); break; case 64: ; case 65: ; case 66: ; case 67: e.bitmapId = b.readUi16(a, c), e.condition = 64 === d || 67 === d, e.matrix = H(a, c), m && (e.matrixMorph = H(a, c)); } } function C(a, c, e) { var d = e.type = b.readUi8(a, c); switch(d) { case 0: ; case 2: ; case 3: ; case 4: ; case 7: var h; h = 4 === d || 7 === d ? b.readUi8(a, c) : 3 === d ? 2 : 1; for (var m = e.colors = [], l = h;l--;) { m.push(w(a, c)); } if (4 === d || 7 === d) { for (m = e.ratios = [];h--;) { m.push(b.readUi8(a, c)); } } e.blurX = b.readFixed(a, c); e.blurY = b.readFixed(a, c); 2 !== d && (e.angle = b.readFixed(a, c), e.distance = b.readFixed(a, c)); e.strength = b.readFixed8(a, c); e.inner = b.readUb(a, c, 1); e.knockout = b.readUb(a, c, 1); e.compositeSource = b.readUb(a, c, 1); 3 === d || 4 === d || 7 === d ? (e.onTop = b.readUb(a, c, 1), e.quality = b.readUb(a, c, 4)) : e.quality = b.readUb(a, c, 5); break; case 1: e.blurX = b.readFixed(a, c); e.blurY = b.readFixed(a, c); e.quality = b.readUb(a, c, 5); b.readUb(a, c, 3); break; case 5: h = e.matrixX = b.readUi8(a, c); m = e.matrixY = b.readUi8(a, c); e.divisor = b.readFloat(a, c); e.bias = b.readFloat(a, c); d = e.matrix = []; for (h *= m;h--;) { d.push(b.readFloat(a, c)); } e.color = w(a, c); b.readUb(a, c, 6); e.clamp = b.readUb(a, c, 1); e.preserveAlpha = b.readUb(a, c, 1); break; case 6: for (e = e.matrix = [], d = 20;d--;) { e.push(b.readFloat(a, c)); } ; } } function y(a, c, b, e, d) { var h, m; m = B(a, c); var l = m.fillBits, p = m.lineBits, v = b.records = []; do { var n = {}; m = z(a, c, n, e, d, !1, l, p, !1, h); b = m.eos; l = m.fillBits; p = m.lineBits; h = m.bits; v.push(n); } while (!b); } q.defineImage = d; q.defineFont = c; q.soundStreamHead = function(a, c, e) { var d = {}, h = b.readUi8(a, c); d.playbackRate = h >> 2 & 3; d.playbackSize = h >> 1 & 1; d.playbackType = h & 1; var h = b.readUi8(a, c), m = d.streamCompression = h >> 4 & 15; d.streamRate = h >> 2 & 3; d.streamSize = h >> 1 & 1; d.streamType = h & 1; d.samplesCount = b.readUi16(a, c); 2 == m && 2 <= e - c.pos && (d.latencySeek = b.readSi16(a, c)); return d; }; q.defineBitmap = n; q.defineFont2 = t; q.defineFont4 = p; q.defineScene = h; q.rgb = v; q.tagHandlers = {0:void 0, 1:void 0, 2:u, 4:k, 5:r, 6:d, 7:a, 8:void 0, 9:void 0, 10:c, 11:e, 12:void 0, 13:void 0, 14:function(a, c, e, d, h, m) { e || (e = {}); e.id = b.readUi16(a, c); d = b.readUi8(a, c); e.soundFormat = d >> 4 & 15; e.soundRate = d >> 2 & 3; e.soundSize = d >> 1 & 1; e.soundType = d & 1; e.samplesCount = b.readUi32(a, c); e.soundData = a.subarray(c.pos, m); c.pos = m; return e; }, 15:l, 17:void 0, 18:void 0, 19:void 0, 20:n, 21:d, 22:u, 23:void 0, 24:void 0, 26:k, 28:r, 32:u, 33:e, 34:a, 35:d, 36:n, 37:function(a, c, e, d, h) { e || (e = {}); e.id = b.readUi16(a, c); var l = e.bbox = {}; m(a, c, l, d, h); d = b.readUi16(a, c); h = e.hasText = d >> 7 & 1; e.wordWrap = d >> 6 & 1; e.multiline = d >> 5 & 1; e.password = d >> 4 & 1; e.readonly = d >> 3 & 1; var l = e.hasColor = d >> 2 & 1, p = e.hasMaxLength = d >> 1 & 1, v = e.hasFont = d & 1, n = e.hasFontClass = d >> 15 & 1; e.autoSize = d >> 14 & 1; var t = e.hasLayout = d >> 13 & 1; e.noSelect = d >> 12 & 1; e.border = d >> 11 & 1; e.wasStatic = d >> 10 & 1; e.html = d >> 9 & 1; e.useOutlines = d >> 8 & 1; v && (e.fontId = b.readUi16(a, c)); n && (e.fontClass = b.readString(a, c, -1)); v && (e.fontHeight = b.readUi16(a, c)); l && (e.color = w(a, c)); p && (e.maxLength = b.readUi16(a, c)); t && (e.align = b.readUi8(a, c), e.leftMargin = b.readUi16(a, c), e.rightMargin = b.readUi16(a, c), e.indent = b.readSi16(a, c), e.leading = b.readSi16(a, c)); e.variableName = b.readString(a, c, -1); h && (e.initialText = b.readString(a, c, -1)); return e; }, 39:void 0, 43:void 0, 45:void 0, 46:u, 48:t, 56:void 0, 57:void 0, 58:void 0, 59:void 0, 60:void 0, 61:void 0, 62:void 0, 64:void 0, 65:void 0, 66:void 0, 69:void 0, 70:k, 71:void 0, 72:void 0, 73:void 0, 74:void 0, 75:t, 76:void 0, 77:void 0, 78:function(a, c, e, d, h) { e || (e = {}); e.symbolId = b.readUi16(a, c); var l = e.splitter = {}; m(a, c, l, d, h); return e; }, 82:void 0, 83:u, 84:u, 86:h, 87:function(a, c, e, d, h, m) { e || (e = {}); e.id = b.readUi16(a, c); b.readUi32(a, c); e.data = a.subarray(c.pos, m); c.pos = m; return e; }, 88:void 0, 89:l, 90:d, 91:p}; q.readHeader = function(a, c) { var e = b.readUb(a, c, 5), d = b.readSb(a, c, e), h = b.readSb(a, c, e), m = b.readSb(a, c, e), e = b.readSb(a, c, e); b.align(a, c); var l = b.readUi8(a, c), l = b.readUi8(a, c) + l / 256, p = b.readUi16(a, c); return {frameRate:l, frameCount:p, bounds:new f.Bounds(d, m, h, e)}; }; })(b.LowLevel || (b.LowLevel = {})); })(b.Parser || (b.Parser = {})); })(f.SWF || (f.SWF = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(g) { var q = f.IntegerUtilities.roundToMultipleOfFour, u = f.ArrayUtilities.Inflate; (function(b) { b[b.FORMAT_COLORMAPPED = 3] = "FORMAT_COLORMAPPED"; b[b.FORMAT_15BPP = 4] = "FORMAT_15BPP"; b[b.FORMAT_24BPP = 5] = "FORMAT_24BPP"; })(g.BitmapFormat || (g.BitmapFormat = {})); g.defineBitmap = function(g) { b.enterTimeline("defineBitmap"); var r, d = 0; switch(g.format) { case 3: r = g.width; var d = g.height, a = g.hasAlpha, c = q(r) - r, e = a ? 4 : 3, l = q((g.colorTableSize + 1) * e), n = u.inflate(g.bmpData, l + (r + c) * d, !0), t = new Uint32Array(r * d), p = 0, h = 0; if (a) { for (a = 0;a < d;a++) { for (var m = 0;m < r;m++) { var h = n[l++] << 2, v = n[h + 3], w = n[h + 0], H = n[h + 1], h = n[h + 2]; t[p++] = h << 24 | H << 16 | w << 8 | v; } l += c; } } else { for (a = 0;a < d;a++) { for (m = 0;m < r;m++) { h = n[l++] * e, v = 255, w = n[h + 0], H = n[h + 1], h = n[h + 2], t[p++] = h << 24 | H << 16 | w << 8 | v; } l += c; } } r = new Uint8Array(t.buffer); d = 1; break; case 5: c = g.width; e = g.height; d = g.hasAlpha; r = u.inflate(g.bmpData, e * c * 4, !0); if (!d) { d = new Uint32Array(c * e); c *= e; for (n = e = 0;n < c;n++) { e++, t = r[e++], l = r[e++], p = r[e++], d[n] = p << 24 | l << 16 | t << 8 | 255; } r = new Uint8Array(d.buffer); } d = 1; break; case 4: f.Debug.notImplemented("parse15BPP"), r = null, d = 1; } b.leaveTimeline(); return {definition:{type:"image", id:g.id, width:g.width, height:g.height, mimeType:"application/octet-stream", data:r, dataType:d, image:null}, type:"image"}; }; })(b.Parser || (b.Parser = {})); })(f.SWF || (f.SWF = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { b.defineButton = function(b, g) { for (var f = b.characters, r = {up:[], over:[], down:[], hitTest:[]}, d = 0, a;(a = f[d++]) && !a.eob;) { var c = g[a.symbolId]; c && (c = {symbolId:c.id, code:4, depth:a.depth, flags:a.matrix ? 4 : 0, matrix:a.matrix}, a.stateUp && r.up.push(c), a.stateOver && r.over.push(c), a.stateDown && r.down.push(c), a.stateHitTest && r.hitTest.push(c)); } return {type:"button", id:b.id, buttonActions:b.buttonActions, states:r}; }; })(b.Parser || (b.Parser = {})); })(f.SWF || (f.SWF = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { function f(a) { for (var c = 0;2 <= a;) { a /= 2, ++c; } return d(2, c); } function u(a) { return l(a >> 8 & 255, a & 255); } function k(a) { return u(a >> 16) + u(a); } function r(a) { for (var c = 0, b = 0, e = 0, d = 0, l = 0;l < a.length;l++) { var g = a[l]; if (g) { for (var g = g.records, f, r = 0, k = 0, q = 0;q < g.length;q++) { f = g[q]; if (f.type) { f.isStraight ? (r += f.deltaX || 0, k += -(f.deltaY || 0)) : (r += f.controlDeltaX, k += -f.controlDeltaY, r += f.anchorDeltaX, k += -f.anchorDeltaY); } else { if (f.eos) { break; } f.move && (r = f.moveX, k = -f.moveY); } c > r && (c = r); b > k && (b = k); e < r && (e = r); d < k && (d = k); } } } return 5E3 < Math.max(e - c, d - b); } var d = Math.pow, a = Math.min, c = Math.max, e = Math.log, l = String.fromCharCode; b.defineFont = function(b) { var d = "swf-font-" + b.id, l = b.name || d, h = {type:"font", id:b.id, name:l, bold:1 === b.bold, italic:1 === b.italic, codes:null, metrics:null, data:b.data, originalSize:!1}, m = b.glyphs, v = m ? b.glyphCount = m.length : 0; if (!v) { return h; } var g = {}, H = [], K = {}, z = [], A, B = !("advance" in b), x = 48 === b.code, C = 75 === b.code; B && (b.advance = []); A = Math.max.apply(null, b.codes) || 35; if (b.codes) { for (var y = 0;y < b.codes.length;y++) { var D = b.codes[y]; if (32 > D || D in K) { A++, 8232 == A && (A = 8240), D = A; } H.push(D); K[D] = y; } A = H.concat(); H.sort(function(a, c) { return a - c; }); for (var y = 0, G;void 0 !== (D = H[y++]);) { var F = D, I = F; for (G = [y - 1];void 0 !== (D = H[y]) && I + 1 === D;) { ++I, G.push(y), ++y; } z.push([F, I, G]); } } else { G = []; for (y = 0;y < v;y++) { D = 57344 + y, H.push(D), K[D] = y, G.push(y); } z.push([57344, 57344 + v - 1, G]); A = H.concat(); } var E = b.resolution || 1; x && r(m) && (E = 20, h.originalSize = !0); x = Math.ceil(b.ascent / E) || 1024; G = -Math.ceil(b.descent / E) || 0; for (var J = b.leading / E || 0, L = g["OS/2"] = "", M = "", P = "", R = "", y = 0, O;O = z[y++];) { F = O[0], I = O[1], D = O[2][0], L += u(F), M += u(I), P += u(D - F + 1 & 65535), R += u(0); } M += "\u00ff\u00ff"; L += "\u00ff\u00ff"; P += "\x00\u0001"; R += "\x00\x00"; z = z.length + 1; y = 2 * f(z); F = 2 * z - y; y = "\x00\x00" + u(2 * z) + u(y) + u(e(z) / e(2)) + u(F) + M + "\x00\x00" + L + P + R; g.cmap = "\x00\x00\x00\u0001\x00\u0003\x00\u0001\x00\x00\x00\f\x00\u0004" + u(y.length + 4) + y; var Q = "\x00\u0001\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x001\x00", L = "\x00\x00", z = 16, M = 0, R = [], F = [], I = []; O = []; for (var y = P = 0, W = {};void 0 !== (D = H[y++]);) { for (var T = m[K[D]], X = T.records, N = 0, U = 0, V = "", ca = "", S = 0, Z = [], S = -1, T = 0;T < X.length;T++) { V = X[T]; if (V.type) { 0 > S && (S = 0, Z[S] = {data:[], commands:[], xMin:0, xMax:0, yMin:0, yMax:0}); if (V.isStraight) { Z[S].commands.push(2); var ba = (V.deltaX || 0) / E, aa = -(V.deltaY || 0) / E; } else { Z[S].commands.push(3), ba = V.controlDeltaX / E, aa = -V.controlDeltaY / E, N += ba, U += aa, Z[S].data.push(N, U), ba = V.anchorDeltaX / E, aa = -V.anchorDeltaY / E; } N += ba; U += aa; Z[S].data.push(N, U); } else { if (V.eos) { break; } if (V.move) { S++; Z[S] = {data:[], commands:[], xMin:0, xMax:0, yMin:0, yMax:0}; Z[S].commands.push(1); var ea = V.moveX / E, V = -V.moveY / E, ba = ea - N, aa = V - U, N = ea, U = V; Z[S].data.push(N, U); } } -1 < S && (Z[S].xMin > N && (Z[S].xMin = N), Z[S].yMin > U && (Z[S].yMin = U), Z[S].xMax < N && (Z[S].xMax = N), Z[S].yMax < U && (Z[S].yMax = U)); } C || Z.sort(function(a, c) { return (c.xMax - c.xMin) * (c.yMax - c.yMin) - (a.xMax - a.xMin) * (a.yMax - a.yMin); }); W[D] = Z; } for (y = 0;void 0 !== (D = H[y++]);) { for (var T = m[K[D]], X = T.records, Z = W[D], da = 1, S = 0, ba = U = V = N = "", D = U = N = 0, X = -1024, ea = 0, fa = -1024, ca = V = "", S = 0, S = -1, ha = [], ka = [], T = 0;T < Z.length;T++) { ha = ha.concat(Z[T].data), ka = ka.concat(Z[T].commands); } for (var ga = U = N = 0, ia = 0, ja = "", Z = "", la = 0, S = 0, da = 1, ca = "", T = 0;T < ka.length;T++) { ba = ka[T], 1 === ba ? (S && (++da, ca += u(S - 1)), ga = ha[la++], ia = ha[la++], ba = ga - N, aa = ia - U, V += "\u0001", ja += u(ba), Z += u(aa), N = ga, U = ia) : 2 === ba ? (ga = ha[la++], ia = ha[la++], ba = ga - N, aa = ia - U, V += "\u0001", ja += u(ba), Z += u(aa), N = ga, U = ia) : 3 === ba && (ga = ha[la++], ia = ha[la++], ba = ga - N, aa = ia - U, V += "\x00", ja += u(ba), Z += u(aa), N = ga, U = ia, S++, ga = ha[la++], ia = ha[la++], ba = ga - N, aa = ia - U, V += "\u0001", ja += u(ba), Z += u(aa), N = ga, U = ia), S++, S > M && (M = S), D > N && (D = N), ea > U && (ea = U), X < N && (X = N), fa < U && (fa = U); } N = ca += u((S || 1) - 1); U = ja; ba = Z; T || (D = X = ea = fa = 0, V += "1"); T = u(da) + u(D) + u(ea) + u(X) + u(fa) + N + "\x00\x00" + V + U + ba; T.length & 1 && (T += "\x00"); Q += T; L += u(z / 2); z += T.length; R.push(D); F.push(X); I.push(ea); O.push(fa); da > P && (P = da); S > M && (M = S); B && b.advance.push((X - D) * E * 1.3); } L += u(z / 2); g.glyf = Q; C || (y = Math.min.apply(null, I), 0 > y && (G = G || y)); g["OS/2"] = "\x00\u0001\x00\x00" + u(b.bold ? 700 : 400) + "\x00\u0005\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00ALF " + u((b.italic ? 1 : 0) | (b.bold ? 32 : 0)) + u(H[0]) + u(H[H.length - 1]) + u(x) + u(G) + u(J) + u(x) + u(-G) + "\x00\x00\x00\x00\x00\x00\x00\x00"; g.head = "\x00\u0001\x00\x00\x00\u0001\x00\x00\x00\x00\x00\x00_\u000f<\u00f5\x00\x0B\u0004\x00\x00\x00\x00\x00" + k(Date.now()) + "\x00\x00\x00\x00" + k(Date.now()) + u(a.apply(null, R)) + u(a.apply(null, I)) + u(c.apply(null, F)) + u(c.apply(null, O)) + u((b.italic ? 2 : 0) | (b.bold ? 1 : 0)) + "\x00\b\x00\u0002\x00\x00\x00\x00"; H = b.advance; g.hhea = "\x00\u0001\x00\x00" + u(x) + u(G) + u(J) + u(H ? c.apply(null, H) : 1024) + "\x00\x00\x00\x00\u0003\u00b8\x00\u0001\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" + u(v + 1); m = "\x00\x00\x00\x00"; for (y = 0;y < v;++y) { m += u(H ? H[y] / E : 1024) + "\x00\x00"; } g.hmtx = m; if (b.kerning && b.kerning.length) { H = b.kerning; E = H.length; y = 2 * f(E); E = "\x00\x00\x00\u0001\x00\x00" + u(14 + 6 * E) + "\x00\u0001" + u(E) + u(y) + u(e(E) / e(2)) + u(2 * E - y); for (y = 0;V = H[y++];) { E += u(K[V.code1]) + u(K[V.code2]) + u(V.adjustment); } g.kern = E; } g.loca = L; g.maxp = "\x00\u0001\x00\x00" + u(v + 1) + u(M) + u(P) + "\x00\x00\x00\x00\x00\u0001\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"; y = l.replace(/ /g, ""); d = [b.copyright || "Original licence", l, "Unknown", d, l, "1.0", y, "Unknown", "Unknown", "Unknown"]; y = d.length; b = "\x00\x00" + u(y) + u(12 * y + 6); for (y = z = 0;l = d[y++];) { b += "\x00\u0001\x00\x00\x00\x00" + u(y - 1) + u(l.length) + u(z), z += l.length; } g.name = b + d.join(""); g.post = "\x00\u0003\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"; d = Object.keys(g); y = d.length; l = "\x00\u0001\x00\x00" + u(y) + "\x00\u0080\x00\u0003\x00 "; v = ""; z = 16 * y + l.length; for (y = 0;b = d[y++];) { K = g[b]; H = K.length; for (l += b + "\x00\x00\x00\x00" + k(z) + k(H);H & 3;) { K += "\x00", ++H; } for (v += K;z & 3;) { ++z; } z += H; } g = l + v; x = {ascent:x / 1024, descent:-G / 1024, leading:J / 1024}; G = new Uint8Array(g.length); for (y = 0;y < g.length;y++) { G[y] = g.charCodeAt(y) & 255; } h.codes = A; h.metrics = x; h.data = G; return h; }; })(b.Parser || (b.Parser = {})); })(f.SWF || (f.SWF = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(g) { function q(a, c) { for (var b = 0, d = a.length;b < d && (255 !== a[b] || b + 1 < d && (0 === a[b + 1] || 255 === a[b + 1]));) { ++b; } if (!(b >= d)) { do { var p = b++, h = a[b++]; if (192 <= h && 199 >= h || 201 <= h && 207 >= h || 218 <= h && 239 >= h || 254 === h) { b += a[b] << 8 | a[b + 1]; } for (;b < d && (255 !== a[b] || b + 1 < d && (0 === a[b + 1] || 255 === a[b + 1]));) { ++b; } 216 !== h && 217 !== h && c.push(a.subarray(p, b)); } while (b < d); } } function u(a, c) { if (73 === c[12] && 72 === c[13] && 68 === c[14] && 82 === c[15]) { a.width = c[16] << 24 | c[17] << 16 | c[18] << 8 | c[19]; a.height = c[20] << 24 | c[21] << 16 | c[22] << 8 | c[23]; var b = c[26]; a.hasAlpha = 4 === b || 6 === b; } } function k(a) { for (var c = 0, b = 0;b < a.length;b++) { c += a[b].length; } for (var c = new Uint8Array(c), d = 0, b = 0;b < a.length;b++) { var p = a[b]; c.set(p, d); d += p.length; } return c; } function r(a, c) { if (!c.parsedChunks) { var b = []; q(c.data, b); c.parsedChunks = b; } for (b = 0;b < a.length && !(192 <= a[b][1] && 192 >= a[b][1]);) { b++; } Array.prototype.splice.apply(a, Array.prototype.concat.call([b, 0], c.parsedChunks)); } var d = f.ArrayUtilities.Inflate; g.parseJpegChunks = q; g.parsePngHeaders = u; var a = new Uint8Array([255, 216]), c = new Uint8Array([255, 217]); g.defineImage = function(e) { b.enterTimeline("defineImage"); var l = {type:"image", id:e.id, mimeType:e.mimeType}, n = e.imgData; if ("image/jpeg" === e.mimeType) { var t = []; t.push(a); q(n, t); e.jpegTables && r(t, e.jpegTables); t.push(c); t.forEach(function(a) { var c = a[1]; 192 <= c && 195 >= c && (l.height = a[5] << 8 | a[6], l.width = a[7] << 8 | a[8]); }); if (n = e.alphaData) { e = new f.JPEG.JpegImage; e.parse(k(t)); var p = l.width, t = p * l.height, h; try { h = d.inflate(n, t, !0); } catch (m) { h = new Uint8Array(p); } n = l.data = new Uint8ClampedArray(4 * t); e.copyToImageData(l); e = 0; for (p = 3;e < t;e++, p += 4) { n[p] = h[e]; } l.dataType = 3; l.mimeType = "application/octet-stream"; } else { l.data = k(t), l.dataType = 4; } } else { u(l, n), l.data = n, l.dataType = 5; } b.leaveTimeline(); return l; }; })(b.Parser || (b.Parser = {})); })(f.SWF || (f.SWF = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { b.defineLabel = function(b) { return {type:"label", id:b.id, fillBounds:b.bbox, matrix:b.matrix, tag:{hasText:!0, initialText:"", html:!0, readonly:!0}, records:b.records, coords:null, static:!0, require:null}; }; })(b.Parser || (b.Parser = {})); })(f.SWF || (f.SWF = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { function q(a, c, b, e) { if (a) { if (c.fill0) { if (e = e[c.fill0 - 1], c.fill1 || c.line) { e.addSegment(a.toReversed()); } else { a.isReversed = !0; return; } } c.line && c.fill1 && (e = b[c.line - 1], e.addSegment(a.clone())); } } function u(a, c, b, e) { b && (a.morph = k(a, c, e)); if (c) { return a.miterLimit = 2 * (a.miterLimitFactor || 1.5), !a.color && a.hasFill ? (e = u(a.fillStyle, !1, !1, e), a.type = e.type, a.transform = e.transform, a.colors = e.colors, a.ratios = e.ratios, a.focalPoint = e.focalPoint, a.bitmapId = e.bitmapId, a.bitmapIndex = e.bitmapIndex, a.repeat = e.repeat, a.fillStyle = null) : a.type = 0, a; } if (void 0 === a.type || 0 === a.type) { return a; } var d; switch(a.type) { case 16: ; case 18: ; case 19: e = a.records; d = a.colors = []; c = a.ratios = []; for (b = 0;b < e.length;b++) { var m = e[b]; d.push(m.color); c.push(m.ratio); } d = 819.2; break; case 64: ; case 65: ; case 66: ; case 67: a.smooth = 66 !== a.type && 67 !== a.type; a.repeat = 65 !== a.type && 67 !== a.type; d = e.indexOf(a.bitmapId); -1 === d && (d = e.length, e.push(a.bitmapId)); a.bitmapIndex = d; d = .05; break; default: f.Debug.warning("shape parser encountered invalid fill style " + a.type); } if (!a.matrix) { return a.transform = h, a; } e = a.matrix; a.transform = {a:e.a * d, b:e.b * d, c:e.c * d, d:e.d * d, tx:e.tx / 20, ty:e.ty / 20}; a.matrix = null; return a; } function k(a, c, b) { var e = Object.create(a); if (c) { return e.width = a.widthMorph, !a.color && a.hasFill ? (a = k(a.fillStyle, !1, b), e.transform = a.transform, e.colors = a.colors, e.ratios = a.ratios) : e.color = a.colorMorph, e; } if (void 0 === a.type) { return e; } if (0 === a.type) { return e.color = a.colorMorph, e; } var d; switch(a.type) { case 16: ; case 18: ; case 19: d = a.records; c = e.colors = []; b = e.ratios = []; for (var m = 0;m < d.length;m++) { var l = d[m]; c.push(l.colorMorph); b.push(l.ratioMorph); } d = 819.2; break; case 64: ; case 65: ; case 66: ; case 67: d = .05; } if (!a.matrix) { return e.transform = h, e; } a = a.matrixMorph; e.transform = {a:a.a * d, b:a.b * d, c:a.c * d, d:a.d * d, tx:a.tx / 20, ty:a.ty / 20}; return e; } function r(a, c, b, e) { for (var d = [], h = 0;h < a.length;h++) { var m = u(a[h], c, b, e); d[h] = c ? new v(null, m) : new v(m, null); } return d; } function d(a, c) { var b = a.noHscale ? a.noVscale ? 0 : 2 : a.noVscale ? 3 : 1, e = n(a.width, 0, 5100) | 0; c.lineStyle(e, a.color, a.pixelHinting, b, a.endCapsStyle, a.jointStyle, a.miterLimit); } function a(a, c) { var b = n(a.width, 0, 5100) | 0; c.writeMorphLineStyle(b, a.color); } function c(a, c, b) { b.beginGradient(a, c.colors, c.ratios, 16 === c.type ? 16 : 18, c.transform, c.spreadMethod, c.interpolationMode, c.focalPoint / 2 | 0); } var e = f.ArrayUtilities.DataBuffer, l = f.ShapeData, n = f.NumberUtilities.clamp, t = Array.prototype.push, p; (function(a) { a[a.Solid = 0] = "Solid"; a[a.LinearGradient = 16] = "LinearGradient"; a[a.RadialGradient = 18] = "RadialGradient"; a[a.FocalRadialGradient = 19] = "FocalRadialGradient"; a[a.RepeatingBitmap = 64] = "RepeatingBitmap"; a[a.ClippedBitmap = 65] = "ClippedBitmap"; a[a.NonsmoothedRepeatingBitmap = 66] = "NonsmoothedRepeatingBitmap"; a[a.NonsmoothedClippedBitmap = 67] = "NonsmoothedClippedBitmap"; })(p || (p = {})); var h = {a:1, b:0, c:0, d:1, tx:0, ty:0}; b.defineShape = function(a) { for (var c = [], b = r(a.fillStyles, !1, !!a.recordsMorph, c), d = r(a.lineStyles, !0, !!a.recordsMorph, c), h = a.records, p = d, n = a.recordsMorph || null, d = null !== n, g = {fill0:0, fill1:0, line:0}, f = null, k, G, F = h.length - 1, I = 0, E = 0, J = 0, L = 0, M, P = 0, R = 0;P < F;P++) { var O = h[P], Q; d && (Q = n[R++]); if (0 === O.type) { f && q(f, g, p, b), O.hasNewStyles && (k || (k = []), t.apply(k, b), b = r(O.fillStyles, !1, d, c), t.apply(k, p), p = r(O.lineStyles, !0, d, c), G && (k.push(G), G = null), g = {fill0:0, fill1:0, line:0}), O.hasFillStyle0 && (g.fill0 = O.fillStyle0), O.hasFillStyle1 && (g.fill1 = O.fillStyle1), O.hasLineStyle && (g.line = O.lineStyle), g.fill1 ? M = b[g.fill1 - 1] : g.line ? M = p[g.line - 1] : g.fill0 && (M = b[g.fill0 - 1]), O.move && (I = O.moveX | 0, E = O.moveY | 0), M && (f = m.FromDefaults(d), M.addSegment(f), d ? (0 === Q.type ? (J = Q.moveX | 0, L = Q.moveY | 0) : (J = I, L = E, R--), f.morphMoveTo(I, E, J, L)) : f.moveTo(I, E)); } else { f || (G || (G = new v(null, u({color:{red:0, green:0, blue:0, alpha:0}, width:20}, !0, d, c))), f = m.FromDefaults(d), G.addSegment(f), d ? f.morphMoveTo(I, E, J, L) : f.moveTo(I, E)); if (d) { for (;Q && 0 === Q.type;) { Q = n[R++]; } Q || (Q = O); } if (!O.isStraight || d && !Q.isStraight) { var W, T, X; O.isStraight ? (X = O.deltaX | 0, O = O.deltaY | 0, W = I + (X >> 1), T = E + (O >> 1), I += X, E += O) : (W = I + O.controlDeltaX | 0, T = E + O.controlDeltaY | 0, I = W + O.anchorDeltaX | 0, E = T + O.anchorDeltaY | 0); if (d) { if (Q.isStraight) { X = Q.deltaX | 0, O = Q.deltaY | 0, N = J + (X >> 1), U = L + (O >> 1), J += X, L += O; } else { var N = J + Q.controlDeltaX | 0, U = L + Q.controlDeltaY | 0, J = N + Q.anchorDeltaX | 0, L = U + Q.anchorDeltaY | 0 } f.morphCurveTo(W, T, I, E, N, U, J, L); } else { f.curveTo(W, T, I, E); } } else { I += O.deltaX | 0, E += O.deltaY | 0, d ? (J += Q.deltaX | 0, L += Q.deltaY | 0, f.morphLineTo(I, E, J, L)) : f.lineTo(I, E); } } } q(f, g, p, b); k ? t.apply(k, b) : k = b; t.apply(k, p); G && k.push(G); h = new l; d && (h.morphCoordinates = new Int32Array(h.coordinates.length), h.morphStyles = new e(16)); for (P = 0;P < k.length;P++) { k[P].serialize(h); } return {type:a.isMorph ? "morphshape" : "shape", id:a.id, fillBounds:a.fillBounds, lineBounds:a.lineBounds, morphFillBounds:a.fillBoundsMorph || null, morphLineBounds:a.lineBoundsMorph || null, shape:h.toPlainObject(), transferables:h.buffers, require:c.length ? c : null}; }; var m = function() { function a(c, b, e, d, h, m) { this.commands = c; this.data = b; this.morphData = e; this.prev = d; this.next = h; this.isReversed = m; this.id = a._counter++; } a.FromDefaults = function(c) { var b = new e, d = new e; b.endian = d.endian = "auto"; var h = null; c && (h = new e, h.endian = "auto"); return new a(b, d, h, null, null, !1); }; a.prototype.moveTo = function(a, c) { this.commands.writeUnsignedByte(9); this.data.write2Ints(a, c); }; a.prototype.morphMoveTo = function(a, c, b, e) { this.moveTo(a, c); this.morphData.write2Ints(b, e); }; a.prototype.lineTo = function(a, c) { this.commands.writeUnsignedByte(10); this.data.write2Ints(a, c); }; a.prototype.morphLineTo = function(a, c, b, e) { this.lineTo(a, c); this.morphData.write2Ints(b, e); }; a.prototype.curveTo = function(a, c, b, e) { this.commands.writeUnsignedByte(11); this.data.write4Ints(a, c, b, e); }; a.prototype.morphCurveTo = function(a, c, b, e, d, h, m, l) { this.curveTo(a, c, b, e); this.morphData.write4Ints(d, h, m, l); }; a.prototype.toReversed = function() { return new a(this.commands, this.data, this.morphData, null, null, !0); }; a.prototype.clone = function() { return new a(this.commands, this.data, this.morphData, null, null, this.isReversed); }; a.prototype.storeStartAndEnd = function() { var a = this.data.ints, c = a[0] + "," + a[1], b = (this.data.length >> 2) - 2, a = a[b] + "," + a[b + 1]; this.isReversed ? (this.startPoint = a, this.endPoint = c) : (this.startPoint = c, this.endPoint = a); }; a.prototype.connectsTo = function(a) { return this.endPoint === a.startPoint; }; a.prototype.startConnectsTo = function(a) { return this.startPoint === a.startPoint; }; a.prototype.flipDirection = function() { var a = "", a = this.startPoint; this.startPoint = this.endPoint; this.endPoint = a; this.isReversed = !this.isReversed; }; a.prototype.serialize = function(a, c) { if (this.isReversed) { this._serializeReversed(a, c); } else { var b = this.commands.bytes, e = this.data.length >> 2, d = this.morphData ? this.morphData.ints : null, h = this.data.ints, m = 0; h[0] === c.x && h[1] === c.y && m++; for (var l = this.commands.length, p = 2 * m;m < l;m++) { p = this._writeCommand(b[m], p, h, d, a); } c.x = h[e - 2]; c.y = h[e - 1]; } }; a.prototype._serializeReversed = function(a, c) { var b = this.commands.length, e = (this.data.length >> 2) - 2, d = this.commands.bytes, h = this.data.ints, m = this.morphData ? this.morphData.ints : null; h[e] === c.x && h[e + 1] === c.y || this._writeCommand(9, e, h, m, a); if (1 !== b) { for (;1 < b--;) { var e = e - 2, l = d[b]; a.writeCommandAndCoordinates(l, h[e], h[e + 1]); m && a.writeMorphCoordinates(m[e], m[e + 1]); 11 === l && (e -= 2, a.writeCoordinates(h[e], h[e + 1]), m && a.writeMorphCoordinates(m[e], m[e + 1])); } } c.x = h[0]; c.y = h[1]; }; a.prototype._writeCommand = function(a, c, b, e, d) { d.writeCommandAndCoordinates(a, b[c++], b[c++]); e && d.writeMorphCoordinates(e[c - 2], e[c - 1]); 11 === a && (d.writeCoordinates(b[c++], b[c++]), e && d.writeMorphCoordinates(e[c - 2], e[c - 1])); return c; }; a._counter = 0; return a; }(), v = function() { function b(a, c) { this.fillStyle = a; this.lineStyle = c; this._head = null; } b.prototype.addSegment = function(a) { var c = this._head; c && (c.next = a, a.prev = c); this._head = a; }; b.prototype.removeSegment = function(a) { a.prev && (a.prev.next = a.next); a.next && (a.next.prev = a.prev); }; b.prototype.insertSegment = function(a, c) { var b = c.prev; a.prev = b; a.next = c; b && (b.next = a); c.prev = a; }; b.prototype.head = function() { return this._head; }; b.prototype.serialize = function(b) { var e = this.head(); if (e) { for (;e;) { e.storeStartAndEnd(), e = e.prev; } for (var h = this.head(), m = h, l = e = null, p = h.prev;h;) { for (;p;) { p.startConnectsTo(h) && p.flipDirection(), p.connectsTo(h) ? (p.next !== h && (this.removeSegment(p), this.insertSegment(p, h)), h = p, p = h.prev) : (p.startConnectsTo(m) && p.flipDirection(), m.connectsTo(p) ? (this.removeSegment(p), m.next = p, p = p.prev, m.next.prev = m, m.next.next = null, m = m.next) : p = p.prev); } p = h.prev; e ? (l.next = h, h.prev = l, l = m, l.next = null) : (e = h, l = m); if (!p) { break; } h = m = p; p = h.prev; } if (this.fillStyle) { switch(p = this.fillStyle, h = p.morph, p.type) { case 0: b.beginFill(p.color); h && b.writeMorphFill(h.color); break; case 16: ; case 18: ; case 19: c(2, p, b); h && b.writeMorphGradient(h.colors, h.ratios, h.transform); break; case 65: ; case 64: ; case 67: ; case 66: b.beginBitmap(3, p.bitmapIndex, p.transform, p.repeat, p.smooth), h && b.writeMorphBitmap(h.transform); } } else { switch(p = this.lineStyle, h = p.morph, p.type) { case 0: d(p, b); h && a(h, b); break; case 16: ; case 18: ; case 19: d(p, b); c(6, p, b); h && (a(h, b), b.writeMorphGradient(h.colors, h.ratios, h.transform)); break; case 65: ; case 64: ; case 67: ; case 66: d(p, b), b.beginBitmap(7, p.bitmapIndex, p.transform, p.repeat, p.smooth), h && (a(h, b), b.writeMorphBitmap(h.transform)); } } h = {x:0, y:0}; for (p = e;p;) { p.serialize(b, h), p = p.next; } this.fillStyle ? b.endFill() : b.endLine(); return b; } }; return b; }(); })(b.Parser || (b.Parser = {})); })(f.SWF || (f.SWF = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { function q(a, c, b, d, l) { var p = d >> 3, n = b * c * p, p = b * p, t = a.length + (a.length & 1), g = new ArrayBuffer(e.length + t), f = new Uint8Array(g); f.set(e); if (l) { l = 0; for (var r = e.length;l < a.length;l += 2, r += 2) { f[r] = a[l + 1], f[r + 1] = a[l]; } } else { f.set(a, e.length); } a = new DataView(g); a.setUint32(4, t + 36, !0); a.setUint16(22, b, !0); a.setUint32(24, c, !0); a.setUint32(28, n, !0); a.setUint16(32, p, !0); a.setUint16(34, d, !0); a.setUint32(40, t, !0); return {data:f, mimeType:"audio/wav"}; } function u(a, c, b) { function e(c) { for (;t < c;) { p = p << 8 | a[d++], t += 8; } t -= c; return p >>> t & (1 << c) - 1; } for (var d = 0, p = 0, t = 0, g = 0, f = e(2), r = l[f];g < c.length;) { var k = c[g++] = e(16) << 16 >> 16, q, u = e(6), G; 1 < b && (q = c[g++] = e(16) << 16 >> 16, G = e(6)); for (var F = 1 << f + 1, I = 0;4095 > I;I++) { for (var E = e(f + 2), J = n[u], L = 0, M = F >> 1;M;M >>= 1, J >>= 1) { E & M && (L += J); } k += (E & F ? -1 : 1) * (L + J); c[g++] = k = -32768 > k ? -32768 : 32767 < k ? 32767 : k; u += r[E & ~F]; u = 0 > u ? 0 : 88 < u ? 88 : u; if (1 < b) { E = e(f + 2); J = n[G]; L = 0; for (M = F >> 1;M;M >>= 1, J >>= 1) { E & M && (L += J); } q += (E & F ? -1 : 1) * (L + J); c[g++] = q = -32768 > q ? -32768 : 32767 < q ? 32767 : q; G += r[E & ~F]; G = 0 > G ? 0 : 88 < G ? 88 : G; } } } } function k(a) { for (var c = new Float32Array(a.length), b = 0;b < c.length;b++) { c[b] = (a[b] - 128) / 128; } this.currentSample += c.length / this.channels; return {streamId:this.streamId, samplesCount:c.length / this.channels, pcm:c}; } function r(a) { for (var c = new Float32Array(a.length / 2), b = 0, e = 0;b < c.length;b++, e += 2) { c[b] = (a[e] << 24 | a[e + 1] << 16) / 2147483648; } this.currentSample += c.length / this.channels; return {streamId:this.streamId, samplesCount:c.length / this.channels, pcm:c}; } function d(a) { for (var c = new Float32Array(a.length / 2), b = 0, e = 0;b < c.length;b++, e += 2) { c[b] = (a[e + 1] << 24 | a[e] << 16) / 2147483648; } this.currentSample += c.length / this.channels; return {streamId:this.streamId, samplesCount:c.length / this.channels, pcm:c}; } function a(a) { var c = a[1] << 8 | a[0], b = a[3] << 8 | a[2]; this.currentSample += c; return {streamId:this.streamId, samplesCount:c, data:new Uint8Array(a.subarray(4)), seek:b}; } var c = [5512, 11250, 22500, 44100], e = new Uint8Array([82, 73, 70, 70, 0, 0, 0, 0, 87, 65, 86, 69, 102, 109, 116, 32, 16, 0, 0, 0, 1, 0, 2, 0, 68, 172, 0, 0, 16, 177, 2, 0, 4, 0, 16, 0, 100, 97, 116, 97, 0, 0, 0, 0]); b.defineSound = function(a) { var b = 1 == a.soundType ? 2 : 1, e = a.samplesCount, d = c[a.soundRate], l = a.soundData, p, n; switch(a.soundFormat) { case 0: p = new Float32Array(e * b); if (1 == a.soundSize) { for (n = e = 0;e < p.length;e++, n += 2) { p[e] = (l[n] << 24 | l[n + 1] << 16) / 2147483648; } n = q(l, d, b, 16, !0); } else { for (e = 0;e < p.length;e++) { p[e] = (l[e] - 128) / 128; } n = q(l, d, b, 8, !1); } break; case 3: p = new Float32Array(e * b); if (1 == a.soundSize) { for (n = e = 0;e < p.length;e++, n += 2) { p[e] = (l[n + 1] << 24 | l[n] << 16) / 2147483648; } n = q(l, d, b, 16, !1); } else { for (e = 0;e < p.length;e++) { p[e] = (l[e] - 128) / 128; } n = q(l, d, b, 8, !1); } break; case 2: n = {data:new Uint8Array(l.subarray(2)), mimeType:"audio/mpeg"}; break; case 1: n = new Int16Array(e * b); u(l, n, b); p = new Float32Array(e * b); for (e = 0;e < p.length;e++) { p[e] = n[e] / 32768; } n = q(new Uint8Array(n.buffer), d, b, 16, !(new Uint8Array((new Uint16Array([1])).buffer))[0]); break; default: f.Debug.warning("Unsupported audio format: " + a.soundFormat); } a = {type:"sound", id:a.id, sampleRate:d, channels:b, pcm:p, packaged:null}; n && (a.packaged = n); return a; }; var l = [[-1, 2], [-1, -1, 2, 4], [-1, -1, -1, -1, 2, 4, 6, 8], [-1, -1, -1, -1, -1, -1, -1, -1, 1, 2, 4, 6, 8, 10, 13, 16]], n = [7, 8, 9, 10, 11, 12, 13, 14, 16, 17, 19, 21, 23, 25, 28, 31, 34, 37, 41, 45, 50, 55, 60, 66, 73, 80, 88, 97, 107, 118, 130, 143, 157, 173, 190, 209, 230, 253, 279, 307, 337, 371, 408, 449, 494, 544, 598, 658, 724, 796, 876, 963, 1060, 1166, 1282, 1411, 1552, 1707, 1878, 2066, 2272, 2499, 2749, 3024, 3327, 3660, 4026, 4428, 4871, 5358, 5894, 6484, 7132, 7845, 8630, 9493, 10442, 11487, 12635, 13899, 15289, 16818, 18500, 20350, 22385, 24623, 27086, 29794, 32767], t = 0, p = function() { function b(a, c, e) { this.streamId = t++; this.samplesCount = a; this.sampleRate = c; this.channels = e; this.format = null; this.currentSample = 0; } b.FromTag = function(e) { var l = new b(e.samplesCount, c[e.streamRate], 1 == e.streamType ? 2 : 1); switch(e.streamCompression) { case 0: ; case 3: l.format = "wave"; l.decode = 1 == e.soundSize ? 0 === e.streamCompression ? r : d : k; break; case 2: l.format = "mp3"; l.decode = a; break; default: return f.Debug.warning("Unsupported audio stream format: " + e.streamCompression), null; } return l; }; return b; }(); b.SoundStream = p; })(b.Parser || (b.Parser = {})); })(f.SWF || (f.SWF = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { b.defineText = function(b) { return {type:"text", id:b.id, fillBounds:b.bbox, variableName:b.variableName, tag:b, bold:!1, italic:!1}; }; })(b.Parser || (b.Parser = {})); })(f.SWF || (f.SWF = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { b.timelineBuffer = new f.Tools.Profiler.TimelineBuffer("Parser"); b.enterTimeline = function(b, f) { }; b.leaveTimeline = function(b) { }; })(f.SWF || (f.SWF = {})); })(Shumway || (Shumway = {})); var Shumway$$inline_639 = Shumway || (Shumway = {}), SWF$$inline_640 = Shumway$$inline_639.SWF || (Shumway$$inline_639.SWF = {}), Option$$inline_641 = Shumway$$inline_639.Options.Option; SWF$$inline_640.parserOptions = Shumway$$inline_639.Settings.shumwayOptions.register(new Shumway$$inline_639.Options.OptionSet("Parser Options")); SWF$$inline_640.traceLevel = SWF$$inline_640.parserOptions.register(new Option$$inline_641("parsertracelevel", "Parser Trace Level", "number", 0, "Parser Trace Level")); (function(f) { (function(b) { function g(a, c) { for (var b = 0, d = [], n, t, p = 16;0 < p && !a[p - 1];) { p--; } d.push({children:[], index:0}); var h = d[0], m; for (n = 0;n < p;n++) { for (t = 0;t < a[n];t++) { h = d.pop(); for (h.children[h.index] = c[b];0 < h.index;) { h = d.pop(); } h.index++; for (d.push(h);d.length <= n;) { d.push(m = {children:[], index:0}), h.children[h.index] = m.children, h = m; } b++; } n + 1 < p && (d.push(m = {children:[], index:0}), h.children[h.index] = m.children, h = m); } return d[0].children; } function f(a, c, b, d, n, t, p, h, m) { function v() { if (0 < F) { return F--, G >> F & 1; } G = a[c++]; if (255 == G && a[c++]) { return F = 31, G = 0, c -= 2, 0; } F = 7; return G >>> 7; } function g(a) { for (var c;null !== (c = v());) { a = a[c]; if ("number" === typeof a) { return a; } if ("object" !== typeof a) { return 0; } } return null; } function k(a) { for (var c = 0;0 < a;) { var b = v(); if (null === b) { return; } c = c << 1 | b; a--; } return c; } function q(a) { if (1 === a) { return 1 === v() ? 1 : -1; } var c = k(a); return c >= 1 << a - 1 ? c : c + (-1 << a) + 1; } function u(a, c) { var b = g(a.huffmanTableDC), b = 0 === b ? 0 : q(b); a.blockData[c] = a.pred += b; for (b = 1;64 > b;) { var e = g(a.huffmanTableAC), d = e & 15, e = e >> 4; if (0 === d) { if (15 > e) { break; } b += 16; } else { b += e, a.blockData[c + r[b]] = q(d), b++; } } } function A(a, c) { var b = g(a.huffmanTableDC), b = 0 === b ? 0 : q(b) << m; a.blockData[c] = a.pred += b; } function B(a, c) { a.blockData[c] |= v() << m; } function x(a, c) { if (0 < I) { I--; } else { for (var b = t;b <= p;) { var e = g(a.huffmanTableAC), d = e & 15, e = e >> 4; if (0 === d) { if (15 > e) { I = k(e) + (1 << e) - 1; break; } b += 16; } else { b += e, a.blockData[c + r[b]] = q(d) * (1 << m), b++; } } } } function C(a, c) { for (var b = t, e = 0, d;b <= p;) { d = r[b]; switch(E) { case 0: e = g(a.huffmanTableAC); d = e & 15; e >>= 4; if (0 === d) { 15 > e ? (I = k(e) + (1 << e), E = 4) : (e = 16, E = 1); } else { if (1 !== d) { throw "invalid ACn encoding"; } J = q(d); E = e ? 2 : 3; } continue; case 1: ; case 2: a.blockData[c + d] ? a.blockData[c + d] += v() << m : (e--, 0 === e && (E = 2 == E ? 3 : 0)); break; case 3: a.blockData[c + d] ? a.blockData[c + d] += v() << m : (a.blockData[c + d] = J << m, E = 0); break; case 4: a.blockData[c + d] && (a.blockData[c + d] += v() << m); } b++; } 4 === E && (I--, 0 === I && (E = 0)); } var y = b.mcusPerLine, D = c, G = 0, F = 0, I = 0, E = 0, J, L = d.length, M, P, R, O, Q; h = b.progressive ? 0 === t ? 0 === h ? A : B : 0 === h ? x : C : u; var W = 0; b = 1 == L ? d[0].blocksPerLine * d[0].blocksPerColumn : y * b.mcusPerColumn; n || (n = b); for (var T, X;W < b;) { for (P = 0;P < L;P++) { d[P].pred = 0; } I = 0; if (1 == L) { for (M = d[0], Q = 0;Q < n;Q++) { h(M, 64 * ((M.blocksPerLine + 1) * (W / M.blocksPerLine | 0) + W % M.blocksPerLine)), W++; } } else { for (Q = 0;Q < n;Q++) { for (P = 0;P < L;P++) { for (M = d[P], T = M.h, X = M.v, R = 0;R < X;R++) { for (O = 0;O < T;O++) { h(M, 64 * ((M.blocksPerLine + 1) * ((W / y | 0) * M.v + R) + (W % y * M.h + O))); } } } W++; } } F = 0; M = a[c] << 8 | a[c + 1]; if (65280 >= M) { throw "marker was not found"; } if (65488 <= M && 65495 >= M) { c += 2; } else { break; } } return c - D; } function u(a, c) { for (var b = c.blocksPerLine, d = c.blocksPerColumn, n = new Int32Array(64), t = 0;t < d;t++) { for (var p = 0;p < b;p++) { for (var h = c, m = 64 * ((c.blocksPerLine + 1) * t + p), v = n, g = h.quantizationTable, f = void 0, r = void 0, k = void 0, q = void 0, u = void 0, x = void 0, C = void 0, y = void 0, D = void 0, G = void 0, G = 0;64 > G;G++) { v[G] = h.blockData[m + G] * g[G]; } for (G = 0;8 > G;++G) { g = 8 * G, 0 === v[1 + g] && 0 === v[2 + g] && 0 === v[3 + g] && 0 === v[4 + g] && 0 === v[5 + g] && 0 === v[6 + g] && 0 === v[7 + g] ? (D = 5793 * v[0 + g] + 512 >> 10, v[0 + g] = D, v[1 + g] = D, v[2 + g] = D, v[3 + g] = D, v[4 + g] = D, v[5 + g] = D, v[6 + g] = D, v[7 + g] = D) : (f = 5793 * v[0 + g] + 128 >> 8, r = 5793 * v[4 + g] + 128 >> 8, k = v[2 + g], q = v[6 + g], u = 2896 * (v[1 + g] - v[7 + g]) + 128 >> 8, y = 2896 * (v[1 + g] + v[7 + g]) + 128 >> 8, x = v[3 + g] << 4, C = v[5 + g] << 4, D = f - r + 1 >> 1, f = f + r + 1 >> 1, r = D, D = 3784 * k + 1567 * q + 128 >> 8, k = 1567 * k - 3784 * q + 128 >> 8, q = D, D = u - C + 1 >> 1, u = u + C + 1 >> 1, C = D, D = y + x + 1 >> 1, x = y - x + 1 >> 1, y = D, D = f - q + 1 >> 1, f = f + q + 1 >> 1, q = D, D = r - k + 1 >> 1, r = r + k + 1 >> 1, k = D, D = 2276 * u + 3406 * y + 2048 >> 12, u = 3406 * u - 2276 * y + 2048 >> 12, y = D, D = 799 * x + 4017 * C + 2048 >> 12, x = 4017 * x - 799 * C + 2048 >> 12, C = D, v[0 + g] = f + y, v[7 + g] = f - y, v[1 + g] = r + C, v[6 + g] = r - C, v[2 + g] = k + x, v[5 + g] = k - x, v[3 + g] = q + u, v[4 + g] = q - u); } for (G = 0;8 > G;++G) { g = G, 0 === v[8 + g] && 0 === v[16 + g] && 0 === v[24 + g] && 0 === v[32 + g] && 0 === v[40 + g] && 0 === v[48 + g] && 0 === v[56 + g] ? (D = 5793 * v[G + 0] + 8192 >> 14, v[0 + g] = D, v[8 + g] = D, v[16 + g] = D, v[24 + g] = D, v[32 + g] = D, v[40 + g] = D, v[48 + g] = D, v[56 + g] = D) : (f = 5793 * v[0 + g] + 2048 >> 12, r = 5793 * v[32 + g] + 2048 >> 12, k = v[16 + g], q = v[48 + g], u = 2896 * (v[8 + g] - v[56 + g]) + 2048 >> 12, y = 2896 * (v[8 + g] + v[56 + g]) + 2048 >> 12, x = v[24 + g], C = v[40 + g], D = f - r + 1 >> 1, f = f + r + 1 >> 1, r = D, D = 3784 * k + 1567 * q + 2048 >> 12, k = 1567 * k - 3784 * q + 2048 >> 12, q = D, D = u - C + 1 >> 1, u = u + C + 1 >> 1, C = D, D = y + x + 1 >> 1, x = y - x + 1 >> 1, y = D, D = f - q + 1 >> 1, f = f + q + 1 >> 1, q = D, D = r - k + 1 >> 1, r = r + k + 1 >> 1, k = D, D = 2276 * u + 3406 * y + 2048 >> 12, u = 3406 * u - 2276 * y + 2048 >> 12, y = D, D = 799 * x + 4017 * C + 2048 >> 12, x = 4017 * x - 799 * C + 2048 >> 12, C = D, v[0 + g] = f + y, v[56 + g] = f - y, v[8 + g] = r + C, v[48 + g] = r - C, v[16 + g] = k + x, v[40 + g] = k - x, v[24 + g] = q + u, v[32 + g] = q - u); } for (G = 0;64 > G;++G) { f = m + G, r = v[G], r = -2056 >= r ? 0 : 2024 <= r ? 255 : r + 2056 >> 4, h.blockData[f] = r; } } } return c.blockData; } function k(a) { return 0 >= a ? 0 : 255 <= a ? 255 : a; } var r = new Int32Array([0, 1, 8, 16, 9, 2, 3, 10, 17, 24, 32, 25, 18, 11, 4, 5, 12, 19, 26, 33, 40, 48, 41, 34, 27, 20, 13, 6, 7, 14, 21, 28, 35, 42, 49, 56, 57, 50, 43, 36, 29, 22, 15, 23, 30, 37, 44, 51, 58, 59, 52, 45, 38, 31, 39, 46, 53, 60, 61, 54, 47, 55, 62, 63]), d = function() { function a() { } a.prototype.parse = function(a) { function b() { var e = a[t] << 8 | a[t + 1]; t += 2; return e; } function d() { var h = b(), h = a.subarray(t, t + h - 2); t += h.length; return h; } function n(a) { for (var c = Math.ceil(a.samplesPerLine / 8 / a.maxH), b = Math.ceil(a.scanLines / 8 / a.maxV), e = 0;e < a.components.length;e++) { F = a.components[e]; var d = Math.ceil(Math.ceil(a.samplesPerLine / 8) * F.h / a.maxH), h = Math.ceil(Math.ceil(a.scanLines / 8) * F.v / a.maxV); F.blockData = new Int16Array(64 * b * F.v * (c * F.h + 1)); F.blocksPerLine = d; F.blocksPerColumn = h; } a.mcusPerLine = c; a.mcusPerColumn = b; } var t = 0, p = null, h = null, m, v, w = [], k = [], K = [], z = b(); if (65496 != z) { throw "SOI not found"; } for (z = b();65497 != z;) { var A; switch(z) { case 65504: ; case 65505: ; case 65506: ; case 65507: ; case 65508: ; case 65509: ; case 65510: ; case 65511: ; case 65512: ; case 65513: ; case 65514: ; case 65515: ; case 65516: ; case 65517: ; case 65518: ; case 65519: ; case 65534: A = d(); 65504 === z && 74 === A[0] && 70 === A[1] && 73 === A[2] && 70 === A[3] && 0 === A[4] && (p = {version:{major:A[5], minor:A[6]}, densityUnits:A[7], xDensity:A[8] << 8 | A[9], yDensity:A[10] << 8 | A[11], thumbWidth:A[12], thumbHeight:A[13], thumbData:A.subarray(14, 14 + 3 * A[12] * A[13])}); 65518 === z && 65 === A[0] && 100 === A[1] && 111 === A[2] && 98 === A[3] && 101 === A[4] && 0 === A[5] && (h = {version:A[6], flags0:A[7] << 8 | A[8], flags1:A[9] << 8 | A[10], transformCode:A[11]}); break; case 65499: for (var z = b() + t - 2, B;t < z;) { var x = a[t++], C = new Int32Array(64); if (0 === x >> 4) { for (A = 0;64 > A;A++) { B = r[A], C[B] = a[t++]; } } else { if (1 === x >> 4) { for (A = 0;64 > A;A++) { B = r[A], C[B] = b(); } } else { throw "DQT: invalid table spec"; } } w[x & 15] = C; } break; case 65472: ; case 65473: ; case 65474: if (m) { throw "Only single frame JPEGs supported"; } b(); m = {}; m.extended = 65473 === z; m.progressive = 65474 === z; m.precision = a[t++]; m.scanLines = b(); m.samplesPerLine = b(); m.components = []; m.componentIds = {}; B = a[t++]; for (var y = C = 0, z = 0;z < B;z++) { var x = a[t], D = a[t + 1] >> 4, G = a[t + 1] & 15; C < D && (C = D); y < G && (y = G); A = a[t + 2]; A = m.components.push({h:D, v:G, quantizationTableId:A}); m.componentIds[x] = A - 1; t += 3; } m.maxH = C; m.maxV = y; n(m); break; case 65476: B = b(); for (z = 2;z < B;) { x = a[t++]; C = new Uint8Array(16); for (A = y = 0;16 > A;A++, t++) { y += C[A] = a[t]; } D = new Uint8Array(y); for (A = 0;A < y;A++, t++) { D[A] = a[t]; } z += 17 + y; (0 === x >> 4 ? K : k)[x & 15] = g(C, D); } break; case 65501: b(); v = b(); break; case 65498: b(); x = a[t++]; B = []; for (var F, z = 0;z < x;z++) { A = m.componentIds[a[t++]], F = m.components[A], A = a[t++], F.huffmanTableDC = K[A >> 4], F.huffmanTableAC = k[A & 15], A = F.quantizationTableId, F.quantizationTable = w[A], B.push(F); } z = a[t++]; A = a[t++]; x = a[t++]; z = f(a, t, m, B, v, z, A, x >> 4, x & 15); t += z; break; default: if (255 == a[t - 3] && 192 <= a[t - 2] && 254 >= a[t - 2]) { t -= 3; break; } for (;t < a.length && 255 !== a[t];) { t++; } ; } z = b(); } this.width = m.samplesPerLine; this.height = m.scanLines; this.jfif = p; this.adobe = h; this.components = []; for (z = 0;z < m.components.length;z++) { F = m.components[z], this.components.push({output:u(m, F), scaleX:F.h / m.maxH, scaleY:F.v / m.maxV, blocksPerLine:F.blocksPerLine, blocksPerColumn:F.blocksPerColumn}); } this.numComponents = this.components.length; }; a.prototype._getLinearizedBlockData = function(a, b) { var d = this.width / a, n = this.height / b, t, p, h, m, v, g, f = 0, r, k = this.components.length, q = a * b * k, u = new Uint8Array(q), x = new Uint32Array(a); for (g = 0;g < k;g++) { t = this.components[g]; p = t.scaleX * d; h = t.scaleY * n; f = g; r = t.output; m = t.blocksPerLine + 1 << 3; for (v = 0;v < a;v++) { t = 0 | v * p, x[v] = (t & 4294967288) << 3 | t & 7; } for (p = 0;p < b;p++) { for (t = 0 | p * h, t = m * (t & 4294967288) | (t & 7) << 3, v = 0;v < a;v++) { u[f] = r[t + x[v]], f += k; } } } if (n = this.decodeTransform) { for (g = 0;g < q;) { for (d = t = 0;t < k;t++, g++, d += 2) { u[g] = (u[g] * n[d] >> 8) + n[d + 1]; } } } return u; }; a.prototype._isColorConversionNeeded = function() { return this.adobe && this.adobe.transformCode ? !0 : 3 == this.numComponents ? !0 : !1; }; a.prototype._convertYccToRgb = function(a) { for (var b, d, n, t = 0, p = a.length;t < p;t += 3) { b = a[t], d = a[t + 1], n = a[t + 2], a[t] = k(b - 179.456 + 1.402 * n), a[t + 1] = k(b + 135.459 - .344 * d - .714 * n), a[t + 2] = k(b - 226.816 + 1.772 * d); } return a; }; a.prototype._convertYcckToRgb = function(a) { for (var b, d, n, t, p, h, m, v, g, f, r, q, u, B, x = 0, C = 0, y = a.length;C < y;C += 4) { b = a[C]; d = a[C + 1]; n = a[C + 2]; t = a[C + 3]; p = d * d; h = d * n; m = d * b; v = d * t; g = n * n; f = n * t; r = n * b; q = b * b; u = b * t; B = t * t; var D = -122.67195406894 - 6.60635669420364E-5 * p + 4.37130475926232E-4 * h - 5.4080610064599E-5 * m + 4.8449797120281E-4 * v - .154362151871126 * d - 9.57964378445773E-4 * g + 8.17076911346625E-4 * r - .00477271405408747 * f + 1.53380253221734 * n + 9.61250184130688E-4 * q - .00266257332283933 * u + .48357088451265 * b - 3.36197177618394E-4 * B + .484791561490776 * t, G = 107.268039397724 + 2.19927104525741E-5 * p - 6.40992018297945E-4 * h + 6.59397001245577E-4 * m + 4.26105652938837E-4 * v - .176491792462875 * d - 7.78269941513683E-4 * g + .00130872261408275 * r + 7.70482631801132E-4 * f - .151051492775562 * n + .00126935368114843 * q - .00265090189010898 * u + .25802910206845 * b - 3.18913117588328E-4 * B - .213742400323665 * t; b = -20.810012546947 - 5.70115196973677E-4 * p - 2.63409051004589E-5 * h + .0020741088115012 * m - .00288260236853442 * v + .814272968359295 * d - 1.53496057440975E-5 * g - 1.32689043961446E-4 * r + 5.60833691242812E-4 * f - .195152027534049 * n + .00174418132927582 * q - .00255243321439347 * u + .116935020465145 * b - 3.43531996510555E-4 * B + .24165260232407 * t; a[x++] = k(D); a[x++] = k(G); a[x++] = k(b); } return a; }; a.prototype._convertYcckToCmyk = function(a) { for (var b, d, n, t = 0, p = a.length;t < p;t += 4) { b = a[t], d = a[t + 1], n = a[t + 2], a[t] = k(434.456 - b - 1.402 * n), a[t + 1] = k(119.541 - b + .344 * d + .714 * n), a[t + 2] = k(481.816 - b - 1.772 * d); } return a; }; a.prototype._convertCmykToRgb = function(a) { for (var b, d, n, t, p = 0, h = 1 / 255 / 255, m = 0, v = a.length;m < v;m += 4) { b = a[m]; d = a[m + 1]; n = a[m + 2]; t = a[m + 3]; var g = b * (-4.387332384609988 * b + 54.48615194189176 * d + 18.82290502165302 * n + 212.25662451639585 * t - 72734.4411664936) + d * (1.7149763477362134 * d - 5.6096736904047315 * n - 17.873870861415444 * t - 1401.7366389350734) + n * (-2.5217340131683033 * n - 21.248923337353073 * t + 4465.541406466231) - t * (21.86122147463605 * t + 48317.86113160301), f = b * (8.841041422036149 * b + 60.118027045597366 * d + 6.871425592049007 * n + 31.159100130055922 * t - 20220.756542821975) + d * (-15.310361306967817 * d + 17.575251261109482 * n + 131.35250912493976 * t - 48691.05921601825) + n * (4.444339102852739 * n + 9.8632861493405 * t - 6341.191035517494) - t * (20.737325471181034 * t + 47890.15695978492); b = b * (.8842522430003296 * b + 8.078677503112928 * d + 30.89978309703729 * n - .23883238689178934 * t - 3616.812083916688) + d * (10.49593273432072 * d + 63.02378494754052 * n + 50.606957656360734 * t - 28620.90484698408) + n * (.03296041114873217 * n + 115.60384449646641 * t - 49363.43385999684) - t * (22.33816807309886 * t + 45932.16563550634); a[p++] = 0 <= g ? 255 : -16581375 >= g ? 0 : 255 + g * h | 0; a[p++] = 0 <= f ? 255 : -16581375 >= f ? 0 : 255 + f * h | 0; a[p++] = 0 <= b ? 255 : -16581375 >= b ? 0 : 255 + b * h | 0; } return a; }; a.prototype.getData = function(a, b, d) { if (4 < this.numComponents) { throw "Unsupported color mode"; } a = this._getLinearizedBlockData(a, b); return 3 === this.numComponents ? this._convertYccToRgb(a) : 4 === this.numComponents ? this._isColorConversionNeeded() ? d ? this._convertYcckToRgb(a) : this._convertYcckToCmyk(a) : this._convertCmykToRgb(a) : a; }; a.prototype.copyToImageData = function(a) { var b = a.width, d = a.height, n = b * d * 4; a = a.data; var b = this.getData(b, d, !0), t = d = 0, p, h, m, v; switch(this.components.length) { case 1: for (;t < n;) { p = b[d++], a[t++] = p, a[t++] = p, a[t++] = p, a[t++] = 255; } break; case 3: for (;t < n;) { m = b[d++], v = b[d++], p = b[d++], a[t++] = m, a[t++] = v, a[t++] = p, a[t++] = 255; } break; case 4: for (;t < n;) { m = b[d++], v = b[d++], p = b[d++], h = b[d++], m = 255 - k(m * (1 - h / 255) + h), v = 255 - k(v * (1 - h / 255) + h), p = 255 - k(p * (1 - h / 255) + h), a[t++] = m, a[t++] = v, a[t++] = p, a[t++] = 255; } break; default: throw "Unsupported color mode";; } }; return a; }(); b.JpegImage = d; })(f.JPEG || (f.JPEG = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { function g() { this.bitBuffer = this.bitLength = 0; } function f(a) { if (this.pos + a > this.end) { throw b.StreamNoDataError; } } function u() { return this.end - this.pos; } function k(a, c) { var b = new d(this.bytes); b.pos = a; b.end = c; return b; } function r(a) { var c = this.bytes, b = this.end + a.length; if (b > c.length) { throw "stream buffer overfow"; } c.set(a, this.end); this.end = b; } b.StreamNoDataError = {}; var d = function() { return function(a, c, b, d) { void 0 === c && (c = 0); a.buffer instanceof ArrayBuffer && (c += a.byteOffset, a = a.buffer); void 0 === b && (b = a.byteLength - c); void 0 === d && (d = b); var n = new Uint8Array(a, c, d); a = new DataView(a, c, d); a.bytes = n; a.pos = 0; a.end = b; a.bitBuffer = 0; a.bitLength = 0; a.align = g; a.ensure = f; a.remaining = u; a.substream = k; a.push = r; return a; }; }(); b.Stream = d; })(f.SWF || (f.SWF = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { function g() { q || (q = new Worker(b.MP3WORKER_PATH), q.addEventListener("message", function(b) { "console" === b.data.action && console[b.data.method].call(console, b.data.message); })); return q; } b.MP3WORKER_PATH = "../../lib/mp3/mp3worker.js"; var q = null, u = 0, k = function() { function b() { this._sessionId = u++; this._onworkermessageBound = this.onworkermessage.bind(this); this._worker = g(); this._worker.addEventListener("message", this._onworkermessageBound, !1); this._worker.postMessage({sessionId:this._sessionId, action:"create"}); } b.prototype.onworkermessage = function(b) { if (b.data.sessionId === this._sessionId) { switch(b.data.action) { case "closed": if (this.onclosed) { this.onclosed(); } this._worker.removeEventListener("message", this._onworkermessageBound, !1); this._worker = null; break; case "frame": this.onframedata(b.data.frameData, b.data.channels, b.data.sampleRate, b.data.bitRate); break; case "id3": if (this.onid3tag) { this.onid3tag(b.data.id3Data); } break; case "error": if (this.onerror) { this.onerror(b.data.message); } ; } } }; b.prototype.pushAsync = function(b) { this._worker.postMessage({sessionId:this._sessionId, action:"decode", data:b}); }; b.prototype.close = function() { this._worker.postMessage({sessionId:this._sessionId, action:"close"}); }; b.processAll = function(d) { var a = 8E3, c = new Float32Array(a), e = 0, l = [], n = !1, t = new f.PromiseWrapper, p = new b; p.onframedata = function(b, d, p, l) { d = b.length + e; if (d > a) { do { a *= 2; } while (d > a); d = new Float32Array(a); d.set(c); c = d; } c.set(b, e); e += b.length; }; p.onid3tag = function(a) { l.push(a); }; p.onclosed = function() { n || t.resolve({data:c.subarray(0, e), id3Tags:l}); }; p.onerror = function(a) { n || (n = !0, t.reject(a)); }; p.pushAsync(d); p.close(); return t.promise; }; return b; }(); b.MP3DecoderSession = k; })(f.SWF || (f.SWF = {})); })(Shumway || (Shumway = {})); __extends = this.__extends || function(f, b) { function g() { this.constructor = f; } for (var q in b) { b.hasOwnProperty(q) && (f[q] = b[q]); } g.prototype = b.prototype; f.prototype = new g; }; (function(f) { (function(b) { function g(a, c) { return a && c ? "boldItalic" : a ? "bold" : c ? "italic" : "regular"; } function q(a, c) { switch(a.code) { case 6: ; case 21: ; case 35: ; case 90: return f.SWF.Parser.defineImage(a); case 20: ; case 36: return f.SWF.Parser.defineBitmap(a); case 7: ; case 34: return f.SWF.Parser.defineButton(a, c); case 37: return f.SWF.Parser.defineText(a); case 10: ; case 48: ; case 75: ; case 91: return f.SWF.Parser.defineFont(a); case 46: ; case 84: ; case 2: ; case 22: ; case 32: ; case 83: return f.SWF.Parser.defineShape(a); case 14: return f.SWF.Parser.defineSound(a); case 39: return a; case 87: return {type:"binary", id:a.id, data:a.data}; case 11: ; case 33: return f.SWF.Parser.defineLabel(a); default: return a; } } var u = f.SWF.Parser, k = b.Stream, r = f.ArrayUtilities.Inflate, d = f.ArrayUtilities.LzmaDecoder, a = u.SwfTag, c = u.DefinitionTags, e = u.ImageDefinitionTags, l = u.FontDefinitionTags, n = u.ControlTags; (function(a) { a[a.None = 0] = "None"; a[a.Deflate = 1] = "Deflate"; a[a.LZMA = 2] = "LZMA"; })(b.CompressionMethod || (b.CompressionMethod = {})); var t = function() { function t(a, c, b) { this.env = b; this.swfVersion = this.compression = 0; this.useAVM1 = !0; this.backgroundColor = 4294967295; this.bounds = null; this.frameCount = this.frameRate = 0; this.sceneAndFrameLabelData = this.attributes = null; this.bytesLoaded = 0; this.bytesTotal = c; this.framesLoaded = this.pendingUpdateDelays = 0; this.frames = []; this.abcBlocks = []; this.dictionary = []; this.fonts = []; this.symbolClassesMap = []; this.symbolClassesList = []; this.eagerlyParsedSymbolsMap = []; this.eagerlyParsedSymbolsList = []; this._currentExports = this._currentInitActionBlocks = this._currentActionBlocks = this._currentControlTags = this._currentSoundStreamBlock = this._currentSoundStreamHead = this._currentFrameLabel = this._jpegTables = null; this._endTagEncountered = !1; this.readHeaderAndInitialize(a); } t.prototype.appendLoadedData = function(a) { this.bytesLoaded += a.length; this._endTagEncountered || (0 !== this.compression ? this._decompressor.push(a) : this.processDecompressedData(a), this.scanLoadedData()); }; t.prototype.finishLoading = function() { 0 !== this.compression && (this._decompressor.close(), this._decompressor = null, this.scanLoadedData()); }; t.prototype.getSymbol = function(a) { if (this.eagerlyParsedSymbolsMap[a]) { return this.eagerlyParsedSymbolsMap[a]; } var c = this.dictionary[a]; if (!c) { return null; } c = 39 === c.tagCode ? this.parseSpriteTimeline(c) : this.getParsedTag(c); c.className = this.symbolClassesMap[a] || null; c.env = this.env; return c; }; t.prototype.getParsedTag = function(c) { b.enterTimeline("Parse tag " + a[c.tagCode]); this._dataStream.align(); this._dataStream.pos = c.byteOffset; var e = {code:c.tagCode}, d = u.LowLevel.tagHandlers[c.tagCode], h = Math.min(c.byteOffset + c.byteLength, this._dataStream.end); d(this.data, this._dataStream, e, this.swfVersion, c.tagCode, h, this._jpegTables); this._dataStream.pos !== h && this.emitTagSlopWarning(c, h); c = q(e, this.dictionary); b.leaveTimeline(); return c; }; t.prototype.readHeaderAndInitialize = function(a) { b.enterTimeline("Initialize SWFFile"); var c = 67 === a[0], e = 90 === a[0]; c ? this.compression = 1 : e && (this.compression = 2); this.swfVersion = a[3]; this._loadStarted = Date.now(); this._uncompressedLength = (a[4] | a[5] << 8 | a[6] << 16 | a[7] << 24) >>> 0; this.bytesLoaded = a.length; this.data = new Uint8Array(0 === this.compression ? this.bytesTotal : this._uncompressedLength); this._dataStream = new k(this.data.buffer); this._dataStream.pos = 8; this._dataView = this._dataStream; c ? (this.data.set(a.subarray(0, 8)), this._uncompressedLoadedLength = 8, this._decompressor = r.create(!0), this._decompressor.onData = this.processFirstBatchOfDecompressedData.bind(this), this._decompressor.onError = function(a) { throw Error(a); }, this._decompressor.push(a.subarray(8))) : e ? (this.data.set(a.subarray(0, 8)), this._uncompressedLoadedLength = 8, this._decompressor = new d(!0), this._decompressor.onData = this.processFirstBatchOfDecompressedData.bind(this), this._decompressor.onError = function(a) { f.Debug.warning("Invalid LZMA stream: " + a); }, this._decompressor.push(a)) : (this.data.set(a), this._uncompressedLoadedLength = a.length, this._decompressor = null, this.parseHeaderContents()); b.leaveTimeline(); this._lastScanPosition = this._dataStream.pos; this.scanLoadedData(); }; t.prototype.parseHeaderContents = function() { var a = u.LowLevel.readHeader(this.data, this._dataStream); this.bounds = a.bounds; this.frameRate = a.frameRate; this.frameCount = a.frameCount; }; t.prototype.processFirstBatchOfDecompressedData = function(a) { this.processDecompressedData(a); this.parseHeaderContents(); this._decompressor.onData = this.processDecompressedData.bind(this); }; t.prototype.processDecompressedData = function(a) { var c = Math.min(a.length, this._uncompressedLength - this._uncompressedLoadedLength); f.ArrayUtilities.memCopy(this.data, a, this._uncompressedLoadedLength, 0, c); this._uncompressedLoadedLength += c; }; t.prototype.scanLoadedData = function() { b.enterTimeline("Scan loaded SWF file tags"); this._dataStream.pos = this._lastScanPosition; this.scanTagsToOffset(this._uncompressedLoadedLength, !0); this._lastScanPosition = this._dataStream.pos; b.leaveTimeline(); }; t.prototype.scanTagsToOffset = function(a, c) { for (var b = new v(0, 0, 0), e;(e = this._dataStream.pos) < a - 1 && this.parseNextTagHeader(b);) { if (0 === b.tagCode) { c && (this._endTagEncountered = !0); break; } var d = b.byteOffset + b.byteLength; if (d > a) { this._dataStream.pos = e; break; } this.scanTag(b, c); this._dataStream.pos !== d && this.emitTagSlopWarning(b, d); } }; t.prototype.parseNextTagHeader = function(a) { var c = this._dataStream.pos, b = this._dataView.getUint16(c, !0), c = c + 2; a.tagCode = b >> 6; b &= 63; if (63 === b) { if (c + 4 > this._uncompressedLoadedLength) { return !1; } b = this._dataView.getUint32(c, !0); c += 4; } this._dataStream.pos = c; a.byteOffset = c; a.byteLength = b; return !0; }; t.prototype.scanTag = function(b, d) { var p = this._dataStream, v = p.pos, t = b.tagCode, g = b.byteLength; if (39 === t) { this.addLazySymbol(t, v, g), v += g, p.pos += 4, this.scanTagsToOffset(v, !1), this._dataStream.pos !== v && this.emitTagSlopWarning(b, v); } else { if (e[t]) { p = this.addLazySymbol(t, v, g), this.decodeEmbeddedImage(p); } else { if (l[t]) { p = this.addLazySymbol(t, v, g), this.registerEmbeddedFont(p); } else { if (c[t]) { this.addLazySymbol(t, v, g), this.jumpToNextTag(g); } else { if (d || 76 === t || 56 === t) { if (n[t]) { this.addControlTag(t, v, g); } else { switch(t) { case 69: this.setFileAttributes(g); break; case 86: this.setSceneAndFrameLabelData(g); break; case 9: this.backgroundColor = u.LowLevel.rgb(this.data, this._dataStream); break; case 8: this._jpegTables || (this._jpegTables = 0 === g ? new Uint8Array(0) : this.data.subarray(p.pos, p.pos + g - 2)); this.jumpToNextTag(g); break; case 82: ; case 72: this.useAVM1 ? this.jumpToNextTag(g) : (v += g, g = new h, 82 === t ? (g.flags = u.readUi32(this.data, p), g.name = u.readString(this.data, p, -1)) : (g.flags = 0, g.name = ""), g.data = this.data.subarray(p.pos, v), this.abcBlocks.push(g), p.pos = v); break; case 76: v += g; for (g = u.readUi16(this.data, p);g--;) { var t = u.readUi16(this.data, p), r = u.readString(this.data, p, -1); this.symbolClassesMap[t] = r; this.symbolClassesList.push({id:t, className:r}); } p.pos = v; break; case 59: this.useAVM1 && (t = this._currentInitActionBlocks || (this._currentInitActionBlocks = []), p = this._dataView.getUint16(p.pos, !0), t.push({spriteId:p, actionsData:this.data.subarray(v + 2, v + g)})); this.jumpToNextTag(g); break; case 12: this.useAVM1 && (this._currentActionBlocks || (this._currentActionBlocks = [])).push(this.data.subarray(p.pos, p.pos + g)); this.jumpToNextTag(g); break; case 18: ; case 45: p = u.LowLevel.soundStreamHead(this.data, this._dataStream, v + g); this._currentSoundStreamHead = u.SoundStream.FromTag(p); break; case 19: this._currentSoundStreamBlock = this.data.subarray(p.pos, p.pos += g); break; case 43: v = p.pos + g; this._currentFrameLabel = u.readString(this.data, p, -1); p.pos = v; break; case 1: this.finishFrame(); break; case 0: break; case 56: v = p.pos + g; g = u.readUi16(this.data, p); for (r = this._currentExports || (this._currentExports = []);g--;) { var t = u.readUi16(this.data, p), k = u.readString(this.data, p, -1); if (p.pos > v) { p.pos = v; break; } r.push(new m(t, k)); } p.pos = v; break; case 23: ; case 17: ; case 13: ; case 62: ; case 78: ; case 57: ; case 71: f.Debug.warning("Unsupported tag encountered " + t + ": " + a[t]); this.jumpToNextTag(g); break; case 74: ; case 73: ; case 65: ; case 66: ; case 58: ; case 64: ; case 63: ; case 88: ; case 40: ; case 41: ; case 77: ; case 24: ; case 25: ; case 93: ; case 55: ; case 49: this.jumpToNextTag(g); break; case 51: ; case 44: ; case 50: ; case 53: ; case 42: ; case 38: ; case 52: ; case 3: ; case 31: ; case 47: ; case 16: ; case 29: console.info("Ignored tag (these shouldn't occur) " + t + ": " + a[t]); this.jumpToNextTag(g); break; default: 100 < t ? f.Debug.warning("Encountered undefined tag " + t + ", probably used for AVM1 obfuscation. See http://ijs.mtasa.com/files/swfdecrypt.cpp.") : f.Debug.warning("Tag not handled by the parser: " + t + ": " + a[t]), this.jumpToNextTag(g); } } } else { this.jumpToNextTag(g); } } } } } }; t.prototype.parseSpriteTimeline = function(a) { b.enterTimeline("parseSpriteTimeline"); var c = this.data, e = this._dataStream, d = this._dataView, h = {id:a.id, type:"sprite", frames:[]}, m = a.byteOffset + a.byteLength, l = h.frames, n = null, t = [], g = null, r = null, k = null, w = null; e.pos = a.byteOffset + 2; h.frameCount = d.getUint16(e.pos, !0); e.pos += 2; for (a = new v(0, 0, 0);e.pos < m;) { this.parseNextTagHeader(a); var q = a.byteLength, H = a.tagCode; if (e.pos + q > m) { f.Debug.warning("DefineSprite child tags exceed DefineSprite tag length and are dropped"); break; } if (u.ControlTags[H]) { t.push(new v(H, e.pos, q)); } else { switch(H) { case 12: this.useAVM1 && (k || (k = []), k.push(c.subarray(e.pos, e.pos + q))); break; case 59: this.useAVM1 && (w || (w = []), H = d.getUint16(e.pos, !0), e.pos += 2, w.push({spriteId:H, actionsData:c.subarray(e.pos, e.pos + q)})); break; case 43: q = e.pos + q; n = u.readString(c, e, -1); e.pos = q; q = 0; break; case 1: l.push(new p(t, n, g, r, k, w, null)); n = null; t = []; w = k = r = g = null; break; case 0: e.pos = m, q = 0; } } e.pos += q; } b.leaveTimeline(); return h; }; t.prototype.jumpToNextTag = function(a) { this._dataStream.pos += a; }; t.prototype.emitTagSlopWarning = function(c, b) { var e = this._dataStream.pos - c.byteOffset; f.Debug.warning("Scanning " + a[c.tagCode] + " at offset " + c.byteOffset + " consumed " + e + " of " + c.byteLength + " bytes. (" + (c.byteLength - e) + " left)"); this._dataStream.pos = b; }; t.prototype.finishFrame = function() { 0 === this.pendingUpdateDelays && this.framesLoaded++; this.frames.push(new p(this._currentControlTags, this._currentFrameLabel, this._currentSoundStreamHead, this._currentSoundStreamBlock, this._currentActionBlocks, this._currentInitActionBlocks, this._currentExports)); this._currentExports = this._currentInitActionBlocks = this._currentActionBlocks = this._currentSoundStreamBlock = this._currentSoundStreamHead = this._currentControlTags = this._currentFrameLabel = null; }; t.prototype.setFileAttributes = function(a) { this.attributes && this.jumpToNextTag(a); a = this.data[this._dataStream.pos]; this._dataStream.pos += 4; this.attributes = {network:a & 1, relativeUrls:a & 2, noCrossDomainCaching:a & 4, doAbc:a & 8, hasMetadata:a & 16, useGpu:a & 32, useDirectBlit:a & 64}; this.useAVM1 = !this.attributes.doAbc; }; t.prototype.setSceneAndFrameLabelData = function(a) { this.sceneAndFrameLabelData ? this.jumpToNextTag(a) : this.sceneAndFrameLabelData = u.LowLevel.defineScene(this.data, this._dataStream, null); }; t.prototype.addControlTag = function(a, c, b) { (this._currentControlTags || (this._currentControlTags = [])).push(new v(a, c, b)); this.jumpToNextTag(b); }; t.prototype.addLazySymbol = function(a, c, b) { var e = this._dataStream.getUint16(this._dataStream.pos, !0); a = new w(e, a, c, b); return this.dictionary[e] = a; }; t.prototype.decodeEmbeddedFont = function(a) { var c = this.getParsedTag(a); a = new H(c.id, a, "font", c, this.env); this.eagerlyParsedSymbolsMap[a.id] = a; this.eagerlyParsedSymbolsList.push(a); this.fonts.push({name:c.name, id:c.id, style:g(c.bold, c.italic)}); }; t.prototype.registerEmbeddedFont = function(a) { if (inFirefox) { var c = this._dataStream, b = c.getUint16(c.pos, !0), e, d; 10 === a.tagCode ? (d = "__autofont__" + a.byteOffset, e = "regular") : (e = this.data[c.pos + 2], e = g(!!(e & 2), !!(e & 1)), d = this.data[c.pos + 4], c.pos += 5, d = u.readString(this.data, c, d)); this.fonts.push({name:d, id:b, style:e}); c.pos = a.byteOffset + a.byteLength; } else { this.decodeEmbeddedFont(a); } }; t.prototype.decodeEmbeddedImage = function(a) { var c = this.getParsedTag(a); a = new H(c.id, a, "image", c, this.env); this.eagerlyParsedSymbolsMap[a.id] = a; this.eagerlyParsedSymbolsList.push(a); }; return t; }(); b.SWFFile = t; var p = function() { return function(a, c, b, e, d, h, m) { this.controlTags = a; this.labelName = c; this.soundStreamHead = b; this.soundStreamBlock = e; this.actionBlocks = d; this.initActionBlocks = h; this.exports = m; }; }(); b.SWFFrame = p; var h = function() { return function() { }; }(); b.ABCBlock = h; b.InitActionBlock = function() { return function() { }; }(); var m = function() { return function(a, c) { this.symbolId = a; this.className = c; }; }(); b.SymbolExport = m; var v = function() { return function(a, c, b) { this.tagCode = a; this.byteOffset = c; this.byteLength = b; }; }(); b.UnparsedTag = v; var w = function(a) { function c(b, e, d, h) { a.call(this, e, d, h); this.id = b; } __extends(c, a); return c; }(v); b.DictionaryEntry = w; var H = function(a) { function c(b, e, d, h, m) { a.call(this, b, e.tagCode, e.byteOffset, e.byteLength); this.type = d; this.definition = h; this.env = m; this.ready = !1; } __extends(c, a); return c; }(w); b.EagerlyParsedDictionaryEntry = H; })(f.SWF || (f.SWF = {})); })(Shumway || (Shumway = {})); (function(f) { var b; (function(b) { b[b.JPG = 16767231] = "JPG"; b[b.PNG = 8998990] = "PNG"; b[b.GIF = 4671814] = "GIF"; })(b || (b = {})); var g = {16767231:"image/jpeg", 8998990:"image/png", 4671814:"image/gif"}; b = function() { function b(g, f, r) { this.type = 4; this.env = r; this.bytesLoaded = g.length; g.length === f ? this.data = g : (this.data = new Uint8Array(f), this.data.set(g)); this.setMimetype(); } Object.defineProperty(b.prototype, "bytesTotal", {get:function() { return this.data.length; }, enumerable:!0, configurable:!0}); b.prototype.appendLoadedData = function(b) { this.data.set(b, this.bytesLoaded); this.bytesLoaded += b.length; }; b.prototype.setMimetype = function() { this.mimeType = g[this.data[0] << 16 | this.data[1] << 8 | this.data[2]]; }; return b; }(); f.ImageFile = b; })(Shumway || (Shumway = {})); (function(f) { var b = f.SWF.SWFFile, g = function() { return function(b, g) { this.bytesLoaded = b; this.framesLoaded = g; }; }(); f.LoadProgressUpdate = g; var q = function() { function k(b, d) { this._file = null; this._url = ""; this._listener = b; this._env = d; this._delayedUpdatesPromise = this._loadingServiceSession = null; this._bytesLoaded = 0; } k.prototype.loadFile = function(b) { this._url = b.url; f.SWF.enterTimeline("Load file", b.url); this._bytesLoaded = 0; var d = this._loadingServiceSession = f.FileLoadingService.instance.createSession(); d.onopen = this.processLoadOpen.bind(this); d.onprogress = this.processNewData.bind(this); d.onerror = this.processError.bind(this); d.onclose = this.processLoadClose.bind(this); d.open(b); }; k.prototype.abortLoad = function() { this._loadingServiceSession && (this._loadingServiceSession.close(), f.SWF.leaveTimeline()); this._file = null; }; k.prototype.loadBytes = function(b) { f.SWF.enterTimeline("Load bytes"); this.processNewData(b, {bytesLoaded:b.length, bytesTotal:b.length}); this.processLoadClose(); }; k.prototype.processLoadOpen = function() { }; k.prototype.processNewData = function(r, d) { this._bytesLoaded += r.length; if (8192 > this._bytesLoaded && this._bytesLoaded < d.bytesTotal) { this._queuedInitialData || (this._queuedInitialData = new Uint8Array(Math.min(8192, d.bytesTotal))), this._queuedInitialData.set(r, this._bytesLoaded - r.length); } else { if (this._queuedInitialData) { var a = new Uint8Array(this._bytesLoaded); a.set(this._queuedInitialData); a.set(r, this._bytesLoaded - r.length); r = a; this._queuedInitialData = null; } var c = this._file, e = a = 0; if (c) { c instanceof b && (a = c.eagerlyParsedSymbolsList.length, e = c.framesLoaded), c.appendLoadedData(r); } else { var c = r, l = d.bytesTotal, n = this._env, t = c[0] << 16 | c[1] << 8 | c[2], c = 22355 === (t & 65535) ? new b(c, l, n) : 16767231 === t || 8998990 === t || 4671814 === t ? new f.ImageFile(c, l, n) : null; c = this._file = c; this._listener.onLoadOpen(c); } if (c instanceof b) { this.processSWFFileUpdate(c, a, e); } else { if (this._listener.onLoadProgress(new g(d.bytesLoaded, -1)), d.bytesLoaded === d.bytesTotal) { this._listener.onImageBytesLoaded(); } } } }; k.prototype.processError = function(b) { f.Debug.warning("Loading error encountered:", b); }; k.prototype.processLoadClose = function() { var g = this._file; if (g instanceof b) { var d = g.eagerlyParsedSymbolsList.length, a = g.framesLoaded; g.finishLoading(); this.processSWFFileUpdate(g, d, a); } g && g.bytesLoaded === g.bytesTotal ? f.SWF.leaveTimeline() : (f.Debug.warning("Shouldn't have reached this: aborting a load should prevent this from being called."), f.Debug.warning(Error().stack)); }; k.prototype.processSWFFileUpdate = function(b, d, a) { var c; if (d = b.eagerlyParsedSymbolsList.length - d) { c = this._listener.onNewEagerlyParsedSymbols(b.eagerlyParsedSymbolsList, d); this._delayedUpdatesPromise && (c = Promise.all([this._delayedUpdatesPromise, c])); this._delayedUpdatesPromise = c; this._lastDelayedUpdate = l = new g(b.bytesLoaded, b.frames.length); b.pendingUpdateDelays++; var e = this; b.framesLoaded = a; c.then(function() { b.pendingUpdateDelays--; b.framesLoaded = l.framesLoaded; e._listener.onLoadProgress(l); e._delayedUpdatesPromise === c && (e._delayedUpdatesPromise = null, e._lastDelayedUpdate = null); }); } else { var l = this._lastDelayedUpdate; if (l) { l.bytesLoaded = b.bytesLoaded, l.framesLoaded = b.frames.length; } else { this._listener.onLoadProgress(new g(b.bytesLoaded, b.framesLoaded)); } } }; return k; }(); f.FileLoader = q; var u; (function(b) { b[b.SWF = 22355] = "SWF"; b[b.JPG = 16767231] = "JPG"; b[b.PNG = 8998990] = "PNG"; b[b.GIF = 4671814] = "GIF"; })(u || (u = {})); })(Shumway || (Shumway = {})); console.timeEnd("Load SWF Parser"); console.time("Load Flash TS Dependencies"); "use strict"; (function(f) { function b(a) { var c = {}; a = a.split(","); for (var b = 0;b < a.length;b++) { c[a[b]] = !0; } return c; } var g = /^<([-A-Za-z0-9_]+)((?:\s+[-A-Za-z0-9_]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/, q = /^<\/([-A-Za-z0-9_]+)[^>]*>/, u = /([-A-Za-z0-9_]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g, k = b("area,base,basefont,br,col,frame,hr,img,input,isindex,link,meta,param,embed"), r = b("address,applet,blockquote,button,center,dd,del,dir,div,dl,dt,fieldset,form,frameset,hr,iframe,ins,isindex,li,map,menu,noframes,noscript,object,ol,p,pre,script,table,tbody,td,tfoot,th,thead,tr,ul"), d = b("a,abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,textarea,tt,u,var"), a = b("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"), c = b("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"), e = b("script,style"); f.HTMLParser = function(b, n) { function t() { return f[f.length - 1]; } function p(b, e, m, p) { e = e.toLowerCase(); if (r[e]) { for (;t() && d[t()];) { h("", t()); } } a[e] && t() == e && h("", e); (p = k[e] || !!p) || f.push(e); if (n.start) { var l = Object.create(null); m.replace(u, function(a, b, e, d, h) { b = b.toLowerCase(); l[b] = e ? e : d ? d : h ? h : c[b] ? b : ""; return a; }); n.start && n.start(e, l, !!p); } } function h(a, c) { if (c) { for (b = f.length - 1;0 <= b && f[b] != c;b--) { } } else { var b = 0 } if (0 <= b) { for (var e = f.length - 1;e >= b;e--) { n.end && n.end(f[e]); } f.length = b; } } for (var m, v, f = [], H = b;b;) { v = !0; if (t() && e[t()]) { b = b.replace(new RegExp("(.*)]*>"), function(a, c) { c = c.replace(/\x3c!--(.*?)--\x3e/g, "$1").replace(/ m ? b : b.substring(0, m), b = 0 > m ? "" : b.substring(m), n.chars && n.chars(v)); } if (b == H) { throw "Parse Error: " + b; } H = b; } h(); }; })(Shumway || (Shumway = {})); (function(f) { var b = f.Debug.notImplemented, g = f.Debug.somewhatImplemented, q = f.Bounds, u = f.ArrayUtilities.DataBuffer, k = f.ColorUtilities, r = f.AVMX.AS.flash, d = f.NumberUtilities.altTieBreakRound; (function(a) { a[a.None = 0] = "None"; a[a.DirtyBounds = 1] = "DirtyBounds"; a[a.DirtyContent = 2] = "DirtyContent"; a[a.DirtyStyle = 4] = "DirtyStyle"; a[a.DirtyFlow = 8] = "DirtyFlow"; a[a.Dirty = a.DirtyBounds | a.DirtyContent | a.DirtyStyle | a.DirtyFlow] = "Dirty"; })(f.TextContentFlags || (f.TextContentFlags = {})); var a = {lt:"<", gt:">", amp:"&", quot:'"', apos:"'", nbsp:"\u00a0"}, c = function() { function c(a, b) { this.sec = a; this._id = a.flash.display.DisplayObject.axClass.getNextSyncID(); this._bounds = new q(0, 0, 0, 0); this._plainText = ""; this._autoSize = this._borderColor = this._backgroundColor = 0; this._wordWrap = !1; this._scrollV = 1; this.flags = this._scrollH = 0; this.defaultTextFormat = b || new a.flash.text.TextFormat; this.textRuns = []; this.textRunData = new u; this.coords = this.matrix = null; } c.prototype.parseHtml = function(c, e, d) { var p = this, h = "", m = this.textRuns, v = m.length = 0, w = 0, q = this.defaultTextFormat.clone(), u = null, z = [], A; f.HTMLParser(c, A = {chars:function(c) { for (var b = "", e = 0;e < c.length;e++) { var d = c.charAt(e); if ("&" !== d) { b += d; } else { if (d = f.StringUtilities.indexOfAny(c, ["&", ";"], e + 1), 0 < d) { e = c.substring(e + 1, d); if (1 < e.length && "#" === e.charAt(0)) { var l = 0, l = 2 < e.length && "x" === e.charAt(1) ? parseInt(e.substring(1)) : parseInt(e.substring(2), 16), b = b + String.fromCharCode(l) } else { void 0 !== a[e] ? b += a[e] : f.Debug.unexpected(e); } e = d; } else { for (var n in a) { if (c.indexOf(n, e + 1) === e + 1) { b += a[n]; e += n.length; break; } } } } } c = b; h += c; w += c.length; w - v && (u && u.textFormat.equals(q) ? u.endIndex = w : (u = new p.sec.flash.text.TextRun(v, w, q), m.push(u)), v = w); }, start:function(a, c) { var m = !1; e && (m = e.hasStyle(a)) && (z.push(q), q = q.clone(), e.applyStyle(q, a)); switch(a) { case "a": z.push(q); g(""); var p = c.target || q.target, l = c.url || q.url; if (p !== q.target || l !== q.url) { m || (q = q.clone()), q.target = p, q.url = l; } break; case "b": z.push(q); q.bold || (m || (q = q.clone()), q.bold = !0); break; case "font": z.push(q); var p = k.isValidHexColor(c.color) ? k.hexToRGB(c.color) : q.color, l = c.face || q.font, v = isNaN(c.size) ? q.size : +c.size; if (p !== q.color || l !== q.font || v !== q.size) { m || (q = q.clone()), q.color = p, q.font = l, q.size = v; } break; case "img": b(""); break; case "i": z.push(q); q.italic || (m || (q = q.clone()), q.italic = !0); break; case "li": if (z.push(q), q.bullet || (m || (q = q.clone()), q.bullet = !0), "\r" === h[h.length - 1]) { break; } ; case "br": ; case "sbr": d && A.chars("\r"); break; case "span": ; case "p": p = !1; z.push(q); e && c.class && (l = "." + c.class, p = e.hasStyle(l)) && (m || (q = q.clone()), e.applyStyle(q, l)); if ("span" === a) { break; } l = c.align; -1 < r.text.TextFormatAlign.toNumber(l) && l !== q.align && (m || p || (q = q.clone()), q.align = l); break; case "textformat": z.push(q); var p = isNaN(c.blockindent) ? q.blockIndent : +c.blockindent, l = isNaN(c.indent) ? q.indent : +c.indent, v = isNaN(c.leading) ? q.leading : +c.leading, f = isNaN(c.leftmargin) ? q.leftMargin : +c.leftmargin, w = isNaN(c.rightmargin) ? q.rightMargin : +c.rightmargin; if (p !== q.blockIndent || l !== q.indent || v !== q.leading || f !== q.leftMargin || w !== q.rightMargin) { m || (q = q.clone()), q.blockIndent = p, q.indent = l, q.leading = v, q.leftMargin = f, q.rightMargin = w; } break; case "u": z.push(q), q.underline || (m || (q = q.clone()), q.underline = !0); } }, end:function(a) { switch(a) { case "li": ; case "p": d && A.chars("\r"); case "a": ; case "b": ; case "font": ; case "i": ; case "textformat": ; case "u": q = z.pop(), e && e.hasStyle(a) && (q = z.pop()); } }}); this._plainText = h; this._serializeTextRuns(); }; Object.defineProperty(c.prototype, "plainText", {get:function() { return this._plainText; }, set:function(a) { this._plainText = a.split("\n").join("\r"); this.textRuns.length = 0; a && (a = new this.sec.flash.text.TextRun(0, a.length, this.defaultTextFormat), this.textRuns[0] = a); this._serializeTextRuns(); }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "bounds", {get:function() { return this._bounds; }, set:function(a) { this._bounds.copyFrom(a); this.flags |= 1; }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "autoSize", {get:function() { return this._autoSize; }, set:function(a) { a !== this._autoSize && (this._autoSize = a, this._plainText && (this.flags |= 8)); }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "wordWrap", {get:function() { return this._wordWrap; }, set:function(a) { a !== this._wordWrap && (this._wordWrap = a, this._plainText && (this.flags |= 8)); }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "scrollV", {get:function() { return this._scrollV; }, set:function(a) { a !== this._scrollV && (this._scrollV = a, this._plainText && (this.flags |= 8)); }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "scrollH", {get:function() { return this._scrollH; }, set:function(a) { a !== this._scrollH && (this._scrollH = a, this._plainText && (this.flags |= 8)); }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "backgroundColor", {get:function() { return this._backgroundColor; }, set:function(a) { a !== this._backgroundColor && (this._backgroundColor = a, this.flags |= 4); }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "borderColor", {get:function() { return this._borderColor; }, set:function(a) { a !== this._borderColor && (this._borderColor = a, this.flags |= 4); }, enumerable:!0, configurable:!0}); c.prototype._serializeTextRuns = function() { var a = this.textRuns; this.textRunData.clear(); for (var c = 0;c < a.length;c++) { this._writeTextRun(a[c]); } this.flags |= 2; }; c.prototype._writeTextRun = function(a) { var c = this.textRunData; c.writeInt(a.beginIndex); c.writeInt(a.endIndex); a = a.textFormat; var b = +a.size; c.writeInt(b); var e = this.sec.flash.text.Font.axClass, e = e.getByNameAndStyle(a.font, a.style) || e.getDefaultFont(); e.fontType === r.text.FontType.EMBEDDED ? c.writeUTF("swffont" + e._id) : c.writeUTF(e._fontFamily); c.writeInt(d(e.ascent * b, !0)); c.writeInt(d(e.descent * b, !1)); c.writeInt(null === a.leading ? e.leading * b : +a.leading); var h = b = !1; e.fontType === r.text.FontType.DEVICE && (b = null === a.bold ? e.fontStyle === r.text.FontStyle.BOLD || e.fontType === r.text.FontStyle.BOLD_ITALIC : !!a.bold, h = null === a.italic ? e.fontStyle === r.text.FontStyle.ITALIC || e.fontType === r.text.FontStyle.BOLD_ITALIC : !!a.italic); c.writeBoolean(b); c.writeBoolean(h); c.writeInt(+a.color); c.writeInt(r.text.TextFormatAlign.toNumber(a.align)); c.writeBoolean(!!a.bullet); c.writeInt(+a.indent); c.writeInt(+a.kerning); c.writeInt(+a.leftMargin); c.writeInt(+a.letterSpacing); c.writeInt(+a.rightMargin); c.writeBoolean(!!a.underline); }; c.prototype.appendText = function(a, c) { c || (c = this.defaultTextFormat); var b = this._plainText, e = new this.sec.flash.text.TextRun(b.length, b.length + a.length, c); this._plainText = b + a; this.textRuns.push(e); this._writeTextRun(e); }; c.prototype.prependText = function(a, c) { c || (c = this.defaultTextFormat); this._plainText = a + this._plainText; for (var b = this.textRuns, e = a.length, d = 0;d < b.length;d++) { var m = b[d]; m.beginIndex += e; m.endIndex += e; } b.unshift(new this.sec.flash.text.TextRun(0, e, c)); this._serializeTextRuns(); }; c.prototype.replaceText = function(a, c, b, e) { if (!(c < a) && b) { if (0 === c) { this.prependText(b, e); } else { var d = this._plainText; if (a >= d.length) { this.appendText(b, e); } else { var m = this.defaultTextFormat, v = m; e && (v = v.clone(), v.merge(e)); if (0 >= a && c >= d.length) { e ? (this.defaultTextFormat = v, this.plainText = b, this.defaultTextFormat = m) : this.plainText = b; } else { for (var m = this.textRuns, g = [], f = a + b.length, r = f - c, k = 0;k < m.length;k++) { var q = m[k]; if (a < q.endIndex) { if (a <= q.beginIndex && f >= q.endIndex) { continue; } var u = q.containsIndex(a), x = q.containsIndex(c); if (u && x) { if (e) { u = q.clone(); u.endIndex = a; g.push(u); k--; q.beginIndex = a + 1; continue; } } else { u ? q.endIndex = a : x ? e ? (g.push(new this.sec.flash.text.TextRun(a, f, v)), q.beginIndex = f) : (q.beginIndex = a, q.endIndex += r) : (q.beginIndex += r, q.endIndex += r); } } g.push(q); } this._plainText = d.substring(0, a) + b + d.substring(c); this.textRuns = g; this._serializeTextRuns(); } } } } }; return c; }(); f.TextContent = c; })(Shumway || (Shumway = {})); var Shumway$$inline_748 = Shumway || (Shumway = {}), AVMX$$inline_749 = Shumway$$inline_748.AVMX || (Shumway$$inline_748.AVMX = {}), AS$$inline_750 = AVMX$$inline_749.AS || (AVMX$$inline_749.AS = {}); AS$$inline_750.flashOptions = Shumway$$inline_748.Settings.shumwayOptions.register(new Shumway$$inline_748.Options.OptionSet("Flash Options")); AS$$inline_750.traceEventsOption = AS$$inline_750.flashOptions.register(new Shumway$$inline_748.Options.Option("te", "Trace Events", "boolean", !1, "Trace dispatching of events.")); AS$$inline_750.traceLoaderOption = AS$$inline_750.flashOptions.register(new Shumway$$inline_748.Options.Option("tp", "Trace Loader", "boolean", !1, "Trace loader execution.")); AS$$inline_750.disableAudioOption = AS$$inline_750.flashOptions.register(new Shumway$$inline_748.Options.Option("da", "Disable Audio", "boolean", !1, "Disables audio.")); AS$$inline_750.webAudioOption = AS$$inline_750.flashOptions.register(new Shumway$$inline_748.Options.Option(null, "Use WebAudio for Sound", "boolean", !1, "Enables WebAudio API for MovieClip sound stream. (MP3 format is an exception)")); AS$$inline_750.webAudioMP3Option = AS$$inline_750.flashOptions.register(new Shumway$$inline_748.Options.Option(null, "Use MP3 decoding to WebAudio", "boolean", !1, "Enables WebAudio API and software MP3 decoding and disables any AUDIO tag usage for MP3 format")); AS$$inline_750.mediaSourceOption = AS$$inline_750.flashOptions.register(new Shumway$$inline_748.Options.Option(null, "Use Media Source for Video", "boolean", !1, "Enables Media Source Extension API for NetStream.")); AS$$inline_750.mediaSourceMP3Option = AS$$inline_750.flashOptions.register(new Shumway$$inline_748.Options.Option(null, "Use Media Source for MP3", "boolean", !0, "Enables Media Source Extension API for MP3 streams.")); AS$$inline_750.flvOption = AS$$inline_750.flashOptions.register(new Shumway$$inline_748.Options.Option(null, "FLV support.", "string", "unsupported", "Defines how to deal with FLV streams.")); __extends = this.__extends || function(f, b) { function g() { this.constructor = f; } for (var q in b) { b.hasOwnProperty(q) && (f[q] = b[q]); } g.prototype = b.prototype; f.prototype = new g; }; (function(f) { (function(b) { var g = f.Debug.warning, q = f.Bounds, u = function() { function b(d, a) { this.data = d; if (d.className) { var c = d.env.app; try { var e = c.getClass(f.AVMX.Multiname.FromFQNString(d.className, 0)); this.symbolClass = e; Object.defineProperty(e.tPrototype, "_symbol", {value:this}); } catch (l) { g("Symbol " + d.id + " bound to non-existing class " + d.className), this.symbolClass = a; } } else { this.symbolClass = a; } this.isAVM1Object = !1; } Object.defineProperty(b.prototype, "id", {get:function() { return this.data.id; }, enumerable:!0, configurable:!0}); return b; }(); b.Symbol = u; var k = function(b) { function d(a, c, e) { b.call(this, a, c); this.dynamic = e; } __extends(d, b); d.prototype._setBoundsFromData = function(a) { this.fillBounds = a.fillBounds ? q.FromUntyped(a.fillBounds) : null; this.lineBounds = a.lineBounds ? q.FromUntyped(a.lineBounds) : null; !this.lineBounds && this.fillBounds && (this.lineBounds = this.fillBounds.clone()); }; return d; }(u); b.DisplaySymbol = k; u = function(b) { function d(a, c) { b.call(this, a, c.flash.utils.ByteArray.axClass); } __extends(d, b); d.FromData = function(a, c) { var b = new d(a, c.app.sec); b.buffer = a.data; b.byteLength = a.data.byteLength; return b; }; return d; }(u); b.BinarySymbol = u; b.SoundStart = function() { return function(b, d) { this.soundId = b; this.soundInfo = d; }; }(); })(f.Timeline || (f.Timeline = {})); })(Shumway || (Shumway = {})); var RtmpJs; (function(f) { (function(b) { var g = function() { function b(g, f, r) { this._socket = ShumwayCom.createRtmpSocket({host:g, port:f, ssl:r.useSecureTransport}); } Object.defineProperty(b, "isAvailable", {get:function() { return !("undefined" === typeof ShumwayCom || !ShumwayCom.createRtmpSocket); }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "onopen", {get:function() { return this._onopen; }, set:function(b) { this._socket.setOpenCallback(this._onopen = b); }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "ondata", {get:function() { return this._ondata; }, set:function(b) { this._socket.setDataCallback(this._ondata = b); }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "ondrain", {get:function() { return this._ondrain; }, set:function(b) { this._socket.setDrainCallback(this._ondrain = b); }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "onerror", {get:function() { return this._onerror; }, set:function(b) { this._socket.setErrorCallback(this._onerror = b); }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "onclose", {get:function() { return this._onclose; }, set:function(b) { this._socket.setCloseCallback(this._onclose = b); }, enumerable:!0, configurable:!0}); b.prototype.send = function(b, g, f) { return this._socket.send(b, g, f); }; b.prototype.close = function() { this._socket.close(); }; return b; }(); b.ShumwayComRtmpSocket = g; g = function() { function b() { this._xhr = ShumwayCom.createRtmpXHR(); } Object.defineProperty(b, "isAvailable", {get:function() { return !("undefined" === typeof ShumwayCom || !ShumwayCom.createRtmpXHR); }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "status", {get:function() { return this._xhr.status; }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "response", {get:function() { return this._xhr.response; }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "responseType", {get:function() { return this._xhr.responseType; }, set:function(b) { this._xhr.responseType = b; }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "onload", {get:function() { return this._onload; }, set:function(b) { this._xhr.setLoadCallback(this._onload = b); }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "onerror", {get:function() { return this._onload; }, set:function(b) { this._xhr.setErrorCallback(this._onerror = b); }, enumerable:!0, configurable:!0}); b.prototype.open = function(b, g, f) { void 0 === f && (f = !0); this._xhr.open(b, g, f); }; b.prototype.setRequestHeader = function(b, g) { this._xhr.setRequestHeader(b, g); }; b.prototype.send = function(b) { this._xhr.send(b); }; return b; }(); b.ShumwayComRtmpXHR = g; })(f.Browser || (f.Browser = {})); })(RtmpJs || (RtmpJs = {})); (function(f) { var b = function() { function b(g) { this.onmessage = null; this.id = g; this.buffer = null; this.bufferLength = 0; this.lastStreamId = -1; this.lastTypeId = this.lastLength = this.lastTimestamp = 0; this.lastMessageComplete = !1; this.waitingForBytes = 0; this.sentStreamId = -1; this.sentTypeId = this.sentLength = this.sentTimestamp = 0; } b.prototype.setBuffer = function() { this.buffer || (this.buffer = new Uint8Array(128), this.bufferLength = 0); }; b.prototype.abort = function() { this.buffer ? this.bufferLength = 0 : this.lastMessageComplete || (this.lastMessageComplete = !0, this.onmessage({timestamp:this.lastTimestamp, streamId:this.lastStreamId, chunkedStreamId:this.id, typeId:this.lastTypeId, data:null, firstChunk:!1, lastChunk:!0})); }; b.prototype._push = function(b, g, f) { if (this.onmessage) { if (g && f || !this.buffer) { this.onmessage({timestamp:this.lastTimestamp, streamId:this.lastStreamId, chunkedStreamId:this.id, typeId:this.lastTypeId, data:b, firstChunk:g, lastChunk:f}); } else { if (g && (this.bufferLength = 0, this.lastLength > this.buffer.length && (this.buffer = new Uint8Array(this.lastLength))), this.buffer.set(b, this.bufferLength), this.bufferLength += b.length, f) { this.onmessage({timestamp:this.lastTimestamp, streamId:this.lastStreamId, chunkedStreamId:this.id, typeId:this.lastTypeId, data:this.buffer.subarray(0, this.bufferLength), firstChunk:!0, lastChunk:!0}); } } } }; return b; }(); f.ChunkedStream = b; var g = function() { function g() { this.onack = this.onusercontrolmessage = null; this.ondata = function(b) { }; this.onclose = function() { }; this.oncreated = null; this.state = "uninitialized"; this.buffer = new Uint8Array(4092); this.bufferLength = 0; this.chunkSize = 128; this.chunkStreams = []; this.peerChunkSize = 128; this.lastAckSent = this.bytesReceived = this.windowAckSize = this.bandwidthLimitType = this.peerAckWindowSize = 0; } g.prototype.push = function(b) { var g = b.length + this.bufferLength; if (g > this.buffer.length) { for (var f = 2 * this.buffer.length;g > f;) { f *= 2; } 524288 < f && this._fail("Buffer overflow"); f = new Uint8Array(f); f.set(this.buffer); this.buffer = f; } for (var f = 0, d = this.bufferLength;f < b.length;f++, d++) { this.buffer[d] = b[f]; } this.bufferLength = g; this.bytesReceived += b.length; for (this.peerAckWindowSize && this.bytesReceived - this.lastAckSent >= this.peerAckWindowSize && this._sendAck();0 < this.bufferLength;) { b = 0; switch(this.state) { case "uninitialized": if (1 > this.bufferLength) { return; } this.serverVersion = this.buffer[0]; b = 1; 3 !== this.serverVersion && this._fail("Unsupported protocol version: " + this.serverVersion); this.state = "version_received"; break; case "version_received": if (1536 > this.bufferLength) { return; } b = 1536; g = Date.now() - this.epochStart | 0; this.buffer[4] = g >>> 24 & 255; this.buffer[5] = g >>> 16 & 255; this.buffer[6] = g >>> 8 & 255; this.buffer[7] = g & 255; this.ondata(this.buffer.subarray(0, 1536)); this.state = "ack_sent"; break; case "ack_sent": if (1536 > this.bufferLength) { return; } b = 1536; for (f = 8;1536 > f;f++) { this.buffer[f] !== this.randomData[f] && this._fail("Random data do not match @" + f); } this.state = "handshake_done"; this.lastAckSent = this.bytesReceived; this._initialize(); break; case "handshake_done": b = this._parseChunkedData(); if (!b) { return; } break; default: return; } this.buffer.set(this.buffer.subarray(b, this.bufferLength), 0); this.bufferLength -= b; } }; g.prototype._initialize = function() { var b = this._getChunkStream(2); b.setBuffer(); b.onmessage = function(b) { if (0 === b.streamId) { switch(b.typeId) { case 1: var g = b.data[0] << 24 | b.data[1] << 16 | b.data[2] << 8 | b.data[3]; 1 <= g && 2147483647 >= g && (this.peerChunkSize = g); break; case 2: g = b.data[0] << 24 | b.data[1] << 16 | b.data[2] << 8 | b.data[3]; 3 <= g && 65599 >= g && this._getChunkStream(g).abort(); break; case 3: if (this.onack) { this.onack(); } break; case 4: if (this.onusercontrolmessage) { this.onusercontrolmessage({type:b.data[0] << 8 | b.data[1], data:b.data.subarray(2)}); } break; case 5: g = b.data[0] << 24 | b.data[1] << 16 | b.data[2] << 8 | b.data[3]; if (0 > g) { break; } this.peerAckWindowSize = g; break; case 6: g = b.data[0] << 24 | b.data[1] << 16 | b.data[2] << 8 | b.data[3]; b = b.data[4]; if (0 > g || 2 < b) { break; } if (1 === b || 2 === b && 1 === this.bandwidthLimitType) { g = Math.min(this.windowAckSize, g); } g !== this.ackWindowSize && (this.ackWindowSize = g, g = new Uint8Array([g >>> 24 & 255, g >>> 16 & 255, g >>> 8 & 255, g & 255]), this._sendMessage(2, {typeId:5, streamId:0, data:g}), 2 !== b && (this.bandwidthLimitType = b)); } } }.bind(this); if (this.oncreated) { this.oncreated(); } }; g.prototype.setChunkSize = function(b) { if (1 > b || 2147483647 < b) { throw Error("Invalid chunk size"); } this._sendMessage(2, {streamId:0, typeId:1, data:new Uint8Array([b >>> 24 & 255, b >>> 16 & 255, b >>> 8 & 255, b & 255])}); this.chunkSize = b; }; g.prototype.send = function(b, g) { if (3 > b || 65599 < b) { throw Error("Invalid chunkStreamId"); } return this._sendMessage(b, g); }; g.prototype.sendUserControlMessage = function(b, g) { var f = new Uint8Array(2 + g.length); f[0] = b >> 8 & 255; f[1] = b & 255; f.set(g, 2); this._sendMessage(2, {typeId:4, streamId:0, data:f}); }; g.prototype._sendAck = function() { var b = new Uint8Array([this.bytesReceived >>> 24 & 255, this.bytesReceived >>> 16 & 255, this.bytesReceived >>> 8 & 255, this.bytesReceived & 255]); this._sendMessage(2, {typeId:3, streamId:0, data:b}); }; g.prototype._sendMessage = function(b, g) { var f = g.data, d = f.length, a = this._getChunkStream(b), c = ("timestamp" in g ? g.timestamp : Date.now() - this.epochStart) | 0, e = c - a.sentTimestamp | 0, l = new Uint8Array(this.chunkSize + 18), n; 64 > b ? (n = 1, l[0] = b) : 320 > b ? (n = 2, l[0] = 0, l[1] = b - 64) : (n = 3, l[0] = 1, l[1] = b - 64 >> 8 & 255, l[2] = b - 64 & 255); var t = n, p = 0; g.streamId !== a.sentStreamId || 0 > e ? (0 !== (c & 4278190080) ? (p = c, l[t] = l[t + 1] = l[t + 2] = 255) : (l[t] = c >> 16 & 255, l[t + 1] = c >> 8 & 255, l[t + 2] = c & 255), t += 3, l[t++] = d >> 16 & 255, l[t++] = d >> 8 & 255, l[t++] = d & 255, l[t++] = g.typeId, l[t++] = g.streamId & 255, l[t++] = g.streamId >> 8 & 255, l[t++] = g.streamId >> 16 & 255, l[t++] = g.streamId >> 24 & 255) : d !== a.sentLength || g.typeId !== a.sentTypeId ? (l[0] |= 64, 0 !== (e & 4278190080) ? (p = e, l[t] = l[t + 1] = l[t + 2] = 255) : (l[t] = e >> 16 & 255, l[t + 1] = e >> 8 & 255, l[t + 2] = e & 255), t += 3, l[t++] = d >> 16 & 255, l[t++] = d >> 8 & 255, l[t++] = d & 255, l[t++] = g.typeId) : 0 !== e ? (l[0] |= 128, 0 !== (e & 4278190080) ? (p = e, l[t] = l[t + 1] = l[t + 2] = 255) : (l[t] = e >> 16 & 255, l[t + 1] = e >> 8 & 255, l[t + 2] = e & 255), t += 3) : l[0] |= 192; p && (l[t++] = p >>> 24 & 255, l[t++] = p >>> 16 & 255, l[t++] = p >>> 8 & 255, l[t++] = p & 255); a.sentTimestamp = c; a.sentStreamId = g.streamId; a.sentTypeId = g.typeId; a.sentLength = d; for (a = 0;a < d;) { e = Math.min(d - a, this.chunkSize), l.set(f.subarray(a, a + e), t), a += e, this.ondata(l.subarray(0, t + e)), l[0] |= 192, t = n; } return c; }; g.prototype._getChunkStream = function(g) { var f = this.chunkStreams[g]; f || (this.chunkStreams[g] = f = new b(g), f.setBuffer(), f.onmessage = function(b) { if (this.onmessage) { this.onmessage(b); } }.bind(this)); return f; }; g.prototype._parseChunkedData = function() { if (!(1 > this.bufferLength)) { var b = this.buffer[0] >> 6 & 3, g = 1, f = this.buffer[0] & 63; if (0 === f) { if (2 > this.bufferLength) { return; } f = this.buffer[1] + 64; g = 2; } else { if (1 === f) { if (2 > this.bufferLength) { return; } f = (this.buffer[1] << 8) + this.buffer[2] + 64; g = 3; } } var d = 0 === b ? 11 : 1 === b ? 7 : 2 === b ? 3 : 0; if (!(this.bufferLength < g + d)) { var a = 3 !== b && 255 === this.buffer[g] && 255 === this.buffer[g + 1] && 255 === this.buffer[g + 2] ? 4 : 0, c = g + d + a; if (!(this.bufferLength < c)) { var f = this._getChunkStream(f), e; e = 3 === b ? f.lastTimestamp : this.buffer[g] << 16 | this.buffer[g + 1] << 8 | this.buffer[g + 2]; a && (e = g + d, e = this.buffer[e] << 24 | this.buffer[e + 1] << 16 | this.buffer[e + 2] << 8 | this.buffer[e + 3]); if (1 === b || 2 === b) { e = f.lastTimestamp + e | 0; } var d = f.lastLength, a = f.lastTypeId, l = f.lastStreamId; if (0 === b || 1 === b) { d = this.buffer[g + 3] << 16 | this.buffer[g + 4] << 8 | this.buffer[g + 5], a = this.buffer[g + 6]; } 0 === b && (l = this.buffer[g + 10] << 24 | this.buffer[g + 9] << 16 | this.buffer[g + 8] << 8 | this.buffer[g + 7]); var n; 3 === b && f.waitingForBytes ? (n = !1, b = Math.min(f.waitingForBytes, this.peerChunkSize), g = f.waitingForBytes - b) : (n = !0, b = Math.min(d, this.peerChunkSize), g = d - b); if (!(this.bufferLength < c + b)) { return f.lastTimestamp = e, f.lastLength = d, f.lastTypeId = a, f.lastStreamId = l, f.lastMessageComplete = !g, f.waitingForBytes = g, f._push(this.buffer.subarray(c, c + b), n, !g), c + b; } } } } }; g.prototype.start = function() { this.epochStart = Date.now(); this.ondata(new Uint8Array([3])); this.randomData = new Uint8Array(1536); this.randomData[0] = 0; this.randomData[1] = 0; this.randomData[2] = 0; this.randomData[3] = 0; for (var b = 8;1536 > b;b++) { this.randomData[b] = 256 * Math.random() | 0; } this.ondata(this.randomData); console.log("## connected"); }; g.prototype.stop = function(b) { b && console.error("socket error!!!"); console.log("## closed"); }; g.prototype._fail = function(b) { console.error("failed: " + b); this.state = "failed"; this.onclose(); throw Error(b); }; return g; }(); f.ChunkedChannel = g; })(RtmpJs || (RtmpJs = {})); (function(f) { var b = Shumway.AVMX.AS.flash, g = function() { function g() { this._streams = []; } g.prototype.connect = function(b, g) { throw Error("Abstract BaseTransport.connect method"); }; g.prototype._initChannel = function(g, r) { var d = new f.ChunkedChannel, a = this; d.oncreated = function() { var a = new b.utils.ByteArray; a.objectEncoding = 0; a.writeObject("connect"); a.writeObject(1); a.writeObject(g); a.writeObject(r || null); d.send(3, {streamId:0, typeId:20, data:new Uint8Array(a._buffer, 0, a.length)}); }; d.onmessage = function(c) { if (0 !== c.streamId) { a._streams[c.streamId]._push(c); } else { if (20 === c.typeId || 17 === c.typeId) { var e = new b.utils.ByteArray; e.writeRawBytes(c.data); e.position = 0; e.objectEncoding = 20 === c.typeId ? 0 : 3; c = e.readObject(); void 0 === c && (e.objectEncoding = 0, c = e.readObject()); var d = e.readObject(); if ("_result" === c || "_error" === c) { if (c = "_error" === c, 1 === d) { if (d = e.readObject(), e = e.readObject(), a.onconnected) { a.onconnected({properties:d, information:e, isError:c}); } } else { var n = e.readObject(), e = e.readObject(); if (a.onstreamcreated) { var t = new q(a, e); a._streams[e] = t; a.onstreamcreated({transactionId:d, commandObject:n, streamId:e, stream:t, isError:c}); } } } else { "onBWCheck" === c || "onBWDone" === c ? a.sendCommandOrResponse("_error", d, null, {code:"NetConnection.Call.Failed", level:"error"}) : (e.readObject(), e.position < e.length && e.readObject()); } } } }; d.onusercontrolmessage = function(a) { 6 === a.type && d.sendUserControlMessage(7, a.data); }; return this.channel = d; }; g.prototype.call = function(g, f, d, a) { var c = this.channel, e = new b.utils.ByteArray; e.objectEncoding = 0; e.writeObject(g); e.writeObject(f); e.writeObject(d); e.writeObject(a); c.send(3, {streamId:0, typeId:20, data:new Uint8Array(e._buffer, 0, e.length)}); }; g.prototype.createStream = function(b) { this.sendCommandOrResponse("createStream", b, null); }; g.prototype.sendCommandOrResponse = function(g, f, d, a) { var c = this.channel, e = new b.utils.ByteArray; e.writeByte(0); e.objectEncoding = 0; e.writeObject(g); e.writeObject(f); e.writeObject(d || null); 3 < arguments.length && e.writeObject(a); c.send(3, {streamId:0, typeId:17, data:new Uint8Array(e._buffer, 0, e.length)}); }; g.prototype._setBuffer = function(b) { this.channel.sendUserControlMessage(3, new Uint8Array([b >> 24 & 255, b >> 16 & 255, b >> 8 & 255, b & 255, 0, 0, 0, 100])); }; g.prototype._sendCommand = function(b, g) { this.channel.send(8, {streamId:b, typeId:20, data:g}); }; return g; }(); f.BaseTransport = g; var q = function() { function g(b, f) { this.transport = b; this.streamId = f; } g.prototype.play = function(g, f, d, a) { var c = new b.utils.ByteArray; c.objectEncoding = 0; c.writeObject("play"); c.writeObject(0); c.writeObject(null); c.writeObject(g); 1 < arguments.length && c.writeObject(f); 2 < arguments.length && c.writeObject(d); 3 < arguments.length && c.writeObject(a); this.transport._sendCommand(this.streamId, new Uint8Array(c._buffer, 0, c.length)); this.transport._setBuffer(this.streamId); }; g.prototype._push = function(g) { switch(g.typeId) { case 8: ; case 9: if (this.ondata) { this.ondata(g); } break; case 18: ; case 20: var f = [], d = new b.utils.ByteArray; d.writeRawBytes(g.data); d.position = 0; for (d.objectEncoding = 0;d.position < d.length;) { f.push(d.readObject()); } 18 === g.typeId && this.onscriptdata && this.onscriptdata.apply(this, f); 20 === g.typeId && this.oncallback && this.oncallback.apply(this, f); } }; return g; }(); f.parseConnectionString = function(b) { var g = b.indexOf(":"); if (0 > g || "/" !== b[g + 1]) { return null; } var f = b.substring(0, g).toLocaleLowerCase(); if ("rtmp" !== f && "rtmpt" !== f && "rtmps" !== f && "rtmpe" !== f && "rtmpte" !== f && "rtmfp" !== f) { return null; } var d, a, c = g + 1; if ("/" === b[g + 2]) { c = b.indexOf("/", g + 3); if (0 > c) { return; } var e = b.indexOf(":", g + 1); 0 <= e && e < c ? (d = b.substring(g + 3, e), a = +b.substring(e + 1, c)) : d = b.substring(g + 3, c); } b = b.substring(c + 1); return {protocol:f, host:d, port:a, app:b}; }; })(RtmpJs || (RtmpJs = {})); (function(f) { (function(b) { function g(g, f, d) { f || (f = u); var a = "undefined" !== typeof b.ShumwayComRtmpXHR && b.ShumwayComRtmpXHR.isAvailable ? new b.ShumwayComRtmpXHR : new XMLHttpRequest({mozSystem:!0}); a.open("POST", g, !0); a.responseType = "arraybuffer"; a.setRequestHeader("Content-Type", "application/x-fcs"); a.onload = function(c) { d(new Uint8Array(a.response), a.status); }; a.onerror = function(a) { console.log("error"); throw Error("HTTP error"); }; a.send(f); } var q = function(g) { function f(b) { g.call(this); "string" === typeof b && (b = {host:b}); this.host = b.host || "localhost"; this.port = b.port || 1935; this.ssl = !!b.ssl || !1; } __extends(f, g); f.prototype.connect = function(d, a) { function c(a) { return p.send(a.buffer, a.byteOffset, a.byteLength); } var e = "undefined" !== typeof navigator && navigator.mozTCPSocket; if (!e) { throw Error("Your browser does not support socket communication.\nCurrenly only Firefox with enabled mozTCPSocket is allowed (see README.md)."); } var l = this._initChannel(d, a), n = [], t = !1, p = "undefined" !== typeof b.ShumwayComRtmpSocket && b.ShumwayComRtmpSocket.isAvailable ? new b.ShumwayComRtmpSocket(this.host, this.port, {useSecureTransport:this.ssl, binaryType:"arraybuffer"}) : e.open(this.host, this.port, {useSecureTransport:this.ssl, binaryType:"arraybuffer"}); p.onopen = function(a) { l.ondata = function(a) { a = new Uint8Array(a); n.push(a); 1 < n.length || c(a) && n.shift(); }; l.onclose = function() { p.close(); }; l.start(); }; p.ondrain = function(a) { for (n.shift();0 < n.length && c(n[0]);) { n.shift(); } }; p.onclose = function(a) { l.stop(t); }; p.onerror = function(a) { t = !0; console.error("socket error: " + a.data); }; p.ondata = function(a) { l.push(new Uint8Array(a.data)); }; }; return f; }(f.BaseTransport); b.RtmpTransport = q; q = function(b) { function f(d) { b.call(this); var a = (d.ssl ? "https" : "http") + "://" + (d.host || "localhost"); d.port && (a += ":" + d.port); this.baseUrl = a; this.stopped = !1; this.sessionId = null; this.requestId = 0; this.data = []; } __extends(f, b); f.prototype.connect = function(b, a) { var c = this._initChannel(b, a); c.ondata = function(a) { this.data.push(new Uint8Array(a)); }.bind(this); c.onclose = function() { this.stopped = !0; }.bind(this); g(this.baseUrl + "/fcs/ident2", null, function(a, b) { if (404 !== b) { throw Error("Unexpected response: " + b); } g(this.baseUrl + "/open/1", null, function(a, b) { this.sessionId = String.fromCharCode.apply(null, a).slice(0, -1); console.log("session id: " + this.sessionId); this.tick(); c.start(); }.bind(this)); }.bind(this)); }; f.prototype.tick = function() { var b = function(a, c) { if (200 !== c) { throw Error("Invalid HTTP status"); } var b = a[0]; 1 < a.length && this.channel.push(a.subarray(1)); setTimeout(this.tick.bind(this), 16 * b); }.bind(this); if (this.stopped) { g(this.baseUrl + "/close/2", null, function() { }); } else { if (0 < this.data.length) { var a, c = 0; this.data.forEach(function(a) { c += a.length; }); var e = 0; a = new Uint8Array(c); this.data.forEach(function(c) { a.set(c, e); e += c.length; }); this.data.length = 0; g(this.baseUrl + "/send/" + this.sessionId + "/" + this.requestId++, a, b); } else { g(this.baseUrl + "/idle/" + this.sessionId + "/" + this.requestId++, null, b); } } }; return f; }(f.BaseTransport); b.RtmptTransport = q; var u = new Uint8Array([0]); })(f.Browser || (f.Browser = {})); })(RtmpJs || (RtmpJs = {})); (function(f) { (function(b) { (function(b) { function f(a) { for (var c = [], b = 1;b < arguments.length;b++) { c[b - 1] = arguments[b]; } return Array.prototype.concat.apply(a, c); } function u(a, c, b) { a[c] = b >> 24 & 255; a[c + 1] = b >> 16 & 255; a[c + 2] = b >> 8 & 255; a[c + 3] = b & 255; } function k(a) { return a.charCodeAt(0) << 24 | a.charCodeAt(1) << 16 | a.charCodeAt(2) << 8 | a.charCodeAt(3); } var r = Shumway.StringUtilities.utf8decode, d = [1, 0, 0, 0, 1, 0, 0, 0, 1], a = [0, 0, 0], c = function() { function a(c, b) { this.boxtype = c; "uuid" === c && (this.userType = b); } a.prototype.layout = function(a) { this.offset = a; a = 8; this.userType && (a += 16); return this.size = a; }; a.prototype.write = function(a) { u(a, this.offset, this.size); u(a, this.offset + 4, k(this.boxtype)); if (!this.userType) { return 8; } a.set(this.userType, this.offset + 8); return 24; }; a.prototype.toUint8Array = function() { var a = this.layout(0), a = new Uint8Array(a); this.write(a); return a; }; return a; }(); b.Box = c; var e = function(a) { function c(b, e, d) { void 0 === e && (e = 0); void 0 === d && (d = 0); a.call(this, b); this.version = e; this.flags = d; } __extends(c, a); c.prototype.layout = function(c) { return this.size = a.prototype.layout.call(this, c) + 4; }; c.prototype.write = function(c) { var b = a.prototype.write.call(this, c); u(c, this.offset + b, this.version << 24 | this.flags); return b + 4; }; return c; }(c); b.FullBox = e; var l = function(a) { function c(b, e, d) { a.call(this, "ftype"); this.majorBrand = b; this.minorVersion = e; this.compatibleBrands = d; } __extends(c, a); c.prototype.layout = function(c) { return this.size = a.prototype.layout.call(this, c) + 4 * (2 + this.compatibleBrands.length); }; c.prototype.write = function(c) { var b = this, e = a.prototype.write.call(this, c); u(c, this.offset + e, k(this.majorBrand)); u(c, this.offset + e + 4, this.minorVersion); e += 8; this.compatibleBrands.forEach(function(a) { u(c, b.offset + e, k(a)); e += 4; }, this); return e; }; return c; }(c); b.FileTypeBox = l; l = function(a) { function c(b, e) { a.call(this, b); this.children = e; } __extends(c, a); c.prototype.layout = function(c) { var b = a.prototype.layout.call(this, c); this.children.forEach(function(a) { a && (b += a.layout(c + b)); }); return this.size = b; }; c.prototype.write = function(c) { var b = a.prototype.write.call(this, c); this.children.forEach(function(a) { a && (b += a.write(c)); }); return b; }; return c; }(c); b.BoxContainerBox = l; var n = function(a) { function c(b, e, d, p) { a.call(this, "moov", f([b], e, [d, p])); this.header = b; this.tracks = e; this.extendsBox = d; this.userData = p; } __extends(c, a); return c; }(l); b.MovieBox = n; n = function(a) { function c(b, e, p, l, n, g, f, r) { void 0 === l && (l = 1); void 0 === n && (n = 1); void 0 === g && (g = d); void 0 === f && (f = -20828448E5); void 0 === r && (r = -20828448E5); a.call(this, "mvhd", 0, 0); this.timescale = b; this.duration = e; this.nextTrackId = p; this.rate = l; this.volume = n; this.matrix = g; this.creationTime = f; this.modificationTime = r; } __extends(c, a); c.prototype.layout = function(c) { return this.size = a.prototype.layout.call(this, c) + 16 + 4 + 2 + 2 + 8 + 36 + 24 + 4; }; c.prototype.write = function(c) { var b = a.prototype.write.call(this, c); u(c, this.offset + b, (this.creationTime - -20828448E5) / 1E3 | 0); u(c, this.offset + b + 4, (this.modificationTime - -20828448E5) / 1E3 | 0); u(c, this.offset + b + 8, this.timescale); u(c, this.offset + b + 12, this.duration); b += 16; u(c, this.offset + b, 65536 * this.rate | 0); u(c, this.offset + b + 4, (256 * this.volume | 0) << 16); u(c, this.offset + b + 8, 0); u(c, this.offset + b + 12, 0); b += 16; u(c, this.offset + b, 65536 * this.matrix[0] | 0); u(c, this.offset + b + 4, 65536 * this.matrix[1] | 0); u(c, this.offset + b + 8, 65536 * this.matrix[2] | 0); u(c, this.offset + b + 12, 65536 * this.matrix[3] | 0); u(c, this.offset + b + 16, 65536 * this.matrix[4] | 0); u(c, this.offset + b + 20, 65536 * this.matrix[5] | 0); u(c, this.offset + b + 24, 1073741824 * this.matrix[6] | 0); u(c, this.offset + b + 28, 1073741824 * this.matrix[7] | 0); u(c, this.offset + b + 32, 1073741824 * this.matrix[8] | 0); b += 36; u(c, this.offset + b, 0); u(c, this.offset + b + 4, 0); u(c, this.offset + b + 8, 0); u(c, this.offset + b + 12, 0); u(c, this.offset + b + 16, 0); u(c, this.offset + b + 20, 0); b += 24; u(c, this.offset + b, this.nextTrackId); return b + 4; }; return c; }(e); b.MovieHeaderBox = n; (function(a) { a[a.TRACK_ENABLED = 1] = "TRACK_ENABLED"; a[a.TRACK_IN_MOVIE = 2] = "TRACK_IN_MOVIE"; a[a.TRACK_IN_PREVIEW = 4] = "TRACK_IN_PREVIEW"; })(b.TrackHeaderFlags || (b.TrackHeaderFlags = {})); n = function(a) { function c(b, e, p, l, n, g, f, r, k, q, u) { void 0 === f && (f = 0); void 0 === r && (r = 0); void 0 === k && (k = d); void 0 === q && (q = -20828448E5); void 0 === u && (u = -20828448E5); a.call(this, "tkhd", 0, b); this.trackId = e; this.duration = p; this.width = l; this.height = n; this.volume = g; this.alternateGroup = f; this.layer = r; this.matrix = k; this.creationTime = q; this.modificationTime = u; } __extends(c, a); c.prototype.layout = function(c) { return this.size = a.prototype.layout.call(this, c) + 20 + 8 + 6 + 2 + 36 + 8; }; c.prototype.write = function(c) { var b = a.prototype.write.call(this, c); u(c, this.offset + b, (this.creationTime - -20828448E5) / 1E3 | 0); u(c, this.offset + b + 4, (this.modificationTime - -20828448E5) / 1E3 | 0); u(c, this.offset + b + 8, this.trackId); u(c, this.offset + b + 12, 0); u(c, this.offset + b + 16, this.duration); b += 20; u(c, this.offset + b, 0); u(c, this.offset + b + 4, 0); u(c, this.offset + b + 8, this.layer << 16 | this.alternateGroup); u(c, this.offset + b + 12, (256 * this.volume | 0) << 16); b += 16; u(c, this.offset + b, 65536 * this.matrix[0] | 0); u(c, this.offset + b + 4, 65536 * this.matrix[1] | 0); u(c, this.offset + b + 8, 65536 * this.matrix[2] | 0); u(c, this.offset + b + 12, 65536 * this.matrix[3] | 0); u(c, this.offset + b + 16, 65536 * this.matrix[4] | 0); u(c, this.offset + b + 20, 65536 * this.matrix[5] | 0); u(c, this.offset + b + 24, 1073741824 * this.matrix[6] | 0); u(c, this.offset + b + 28, 1073741824 * this.matrix[7] | 0); u(c, this.offset + b + 32, 1073741824 * this.matrix[8] | 0); b += 36; u(c, this.offset + b, 65536 * this.width | 0); u(c, this.offset + b + 4, 65536 * this.height | 0); return b + 8; }; return c; }(e); b.TrackHeaderBox = n; n = function(a) { function c(b, e, d, p, l) { void 0 === d && (d = "unk"); void 0 === p && (p = -20828448E5); void 0 === l && (l = -20828448E5); a.call(this, "mdhd", 0, 0); this.timescale = b; this.duration = e; this.language = d; this.creationTime = p; this.modificationTime = l; } __extends(c, a); c.prototype.layout = function(c) { return this.size = a.prototype.layout.call(this, c) + 16 + 4; }; c.prototype.write = function(c) { var b = a.prototype.write.call(this, c); u(c, this.offset + b, (this.creationTime - -20828448E5) / 1E3 | 0); u(c, this.offset + b + 4, (this.modificationTime - -20828448E5) / 1E3 | 0); u(c, this.offset + b + 8, this.timescale); u(c, this.offset + b + 12, this.duration); var e = this.offset + b + 16, d; d = this.language; d = (d.charCodeAt(0) & 31) << 10 | (d.charCodeAt(1) & 31) << 5 | d.charCodeAt(2) & 31; u(c, e, d << 16); return b + 20; }; return c; }(e); b.MediaHeaderBox = n; n = function(a) { function c(b, e) { a.call(this, "hdlr", 0, 0); this.handlerType = b; this.name = e; this._encodedName = r(this.name); } __extends(c, a); c.prototype.layout = function(c) { return this.size = a.prototype.layout.call(this, c) + 8 + 12 + (this._encodedName.length + 1); }; c.prototype.write = function(c) { var b = a.prototype.write.call(this, c); u(c, this.offset + b, 0); u(c, this.offset + b + 4, k(this.handlerType)); u(c, this.offset + b + 8, 0); u(c, this.offset + b + 12, 0); u(c, this.offset + b + 16, 0); b += 20; c.set(this._encodedName, this.offset + b); c[this.offset + b + this._encodedName.length] = 0; return b += this._encodedName.length + 1; }; return c; }(e); b.HandlerBox = n; n = function(a) { function c(b) { void 0 === b && (b = 0); a.call(this, "smhd", 0, 0); this.balance = b; } __extends(c, a); c.prototype.layout = function(c) { return this.size = a.prototype.layout.call(this, c) + 4; }; c.prototype.write = function(c) { var b = a.prototype.write.call(this, c); u(c, this.offset + b, (256 * this.balance | 0) << 16); return b + 4; }; return c; }(e); b.SoundMediaHeaderBox = n; n = function(c) { function b(e, d) { void 0 === e && (e = 0); void 0 === d && (d = a); c.call(this, "vmhd", 0, 0); this.graphicsMode = e; this.opColor = d; } __extends(b, c); b.prototype.layout = function(a) { return this.size = c.prototype.layout.call(this, a) + 8; }; b.prototype.write = function(a) { var b = c.prototype.write.call(this, a); u(a, this.offset + b, this.graphicsMode << 16 | this.opColor[0]); u(a, this.offset + b + 4, this.opColor[1] << 16 | this.opColor[2]); return b + 8; }; return b; }(e); b.VideoMediaHeaderBox = n; b.SELF_CONTAINED_DATA_REFERENCE_FLAG = 1; n = function(a) { function c(e, d) { void 0 === d && (d = null); a.call(this, "url ", 0, e); this.location = d; e & b.SELF_CONTAINED_DATA_REFERENCE_FLAG || (this._encodedLocation = r(d)); } __extends(c, a); c.prototype.layout = function(c) { c = a.prototype.layout.call(this, c); this._encodedLocation && (c += this._encodedLocation.length + 1); return this.size = c; }; c.prototype.write = function(c) { var b = a.prototype.write.call(this, c); this._encodedLocation && (c.set(this._encodedLocation, this.offset + b), c[this.offset + b + this._encodedLocation.length] = 0, b += this._encodedLocation.length); return b; }; return c; }(e); b.DataEntryUrlBox = n; n = function(a) { function c(b) { a.call(this, "dref", 0, 0); this.entries = b; } __extends(c, a); c.prototype.layout = function(c) { var b = a.prototype.layout.call(this, c) + 4; this.entries.forEach(function(a) { b += a.layout(c + b); }); return this.size = b; }; c.prototype.write = function(c) { var b = a.prototype.write.call(this, c); u(c, this.offset + b, this.entries.length); this.entries.forEach(function(a) { b += a.write(c); }); return b; }; return c; }(e); b.DataReferenceBox = n; n = function(a) { function c(b) { a.call(this, "dinf", [b]); this.dataReference = b; } __extends(c, a); return c; }(l); b.DataInformationBox = n; n = function(a) { function c(b) { a.call(this, "stsd", 0, 0); this.entries = b; } __extends(c, a); c.prototype.layout = function(c) { var b = a.prototype.layout.call(this, c), b = b + 4; this.entries.forEach(function(a) { b += a.layout(c + b); }); return this.size = b; }; c.prototype.write = function(c) { var b = a.prototype.write.call(this, c); u(c, this.offset + b, this.entries.length); b += 4; this.entries.forEach(function(a) { b += a.write(c); }); return b; }; return c; }(e); b.SampleDescriptionBox = n; n = function(a) { function c(b, e, d, p, l) { a.call(this, "stbl", [b, e, d, p, l]); this.sampleDescriptions = b; this.timeToSample = e; this.sampleToChunk = d; this.sampleSizes = p; this.chunkOffset = l; } __extends(c, a); return c; }(l); b.SampleTableBox = n; n = function(a) { function c(b, e, d) { a.call(this, "minf", [b, e, d]); this.header = b; this.info = e; this.sampleTable = d; } __extends(c, a); return c; }(l); b.MediaInformationBox = n; n = function(a) { function c(b, e, d) { a.call(this, "mdia", [b, e, d]); this.header = b; this.handler = e; this.info = d; } __extends(c, a); return c; }(l); b.MediaBox = n; n = function(a) { function c(b, e) { a.call(this, "trak", [b, e]); this.header = b; this.media = e; } __extends(c, a); return c; }(l); b.TrackBox = n; n = function(a) { function c(b, e, d, p, l) { a.call(this, "trex", 0, 0); this.trackId = b; this.defaultSampleDescriptionIndex = e; this.defaultSampleDuration = d; this.defaultSampleSize = p; this.defaultSampleFlags = l; } __extends(c, a); c.prototype.layout = function(c) { return this.size = a.prototype.layout.call(this, c) + 20; }; c.prototype.write = function(c) { var b = a.prototype.write.call(this, c); u(c, this.offset + b, this.trackId); u(c, this.offset + b + 4, this.defaultSampleDescriptionIndex); u(c, this.offset + b + 8, this.defaultSampleDuration); u(c, this.offset + b + 12, this.defaultSampleSize); u(c, this.offset + b + 16, this.defaultSampleFlags); return b + 20; }; return c; }(e); b.TrackExtendsBox = n; n = function(a) { function c(b, e, d) { a.call(this, "mvex", f([b], e, [d])); this.header = b; this.tracDefaults = e; this.levels = d; } __extends(c, a); return c; }(l); b.MovieExtendsBox = n; n = function(a) { function c(b, e) { a.call(this, "meta", 0, 0); this.handler = b; this.otherBoxes = e; } __extends(c, a); c.prototype.layout = function(c) { var b = a.prototype.layout.call(this, c), b = b + this.handler.layout(c + b); this.otherBoxes.forEach(function(a) { b += a.layout(c + b); }); return this.size = b; }; c.prototype.write = function(c) { var b = a.prototype.write.call(this, c), b = b + this.handler.write(c); this.otherBoxes.forEach(function(a) { b += a.write(c); }); return b; }; return c; }(e); b.MetaBox = n; n = function(a) { function c(b) { a.call(this, "mfhd", 0, 0); this.sequenceNumber = b; } __extends(c, a); c.prototype.layout = function(c) { return this.size = a.prototype.layout.call(this, c) + 4; }; c.prototype.write = function(c) { var b = a.prototype.write.call(this, c); u(c, this.offset + b, this.sequenceNumber); return b + 4; }; return c; }(e); b.MovieFragmentHeaderBox = n; (function(a) { a[a.BASE_DATA_OFFSET_PRESENT = 1] = "BASE_DATA_OFFSET_PRESENT"; a[a.SAMPLE_DESCRIPTION_INDEX_PRESENT = 2] = "SAMPLE_DESCRIPTION_INDEX_PRESENT"; a[a.DEFAULT_SAMPLE_DURATION_PRESENT = 8] = "DEFAULT_SAMPLE_DURATION_PRESENT"; a[a.DEFAULT_SAMPLE_SIZE_PRESENT = 16] = "DEFAULT_SAMPLE_SIZE_PRESENT"; a[a.DEFAULT_SAMPLE_FLAGS_PRESENT = 32] = "DEFAULT_SAMPLE_FLAGS_PRESENT"; })(b.TrackFragmentFlags || (b.TrackFragmentFlags = {})); n = function(a) { function c(b, e, d, p, l, n, g) { a.call(this, "tfhd", 0, b); this.trackId = e; this.baseDataOffset = d; this.sampleDescriptionIndex = p; this.defaultSampleDuration = l; this.defaultSampleSize = n; this.defaultSampleFlags = g; } __extends(c, a); c.prototype.layout = function(c) { c = a.prototype.layout.call(this, c) + 4; var b = this.flags; b & 1 && (c += 8); b & 2 && (c += 4); b & 8 && (c += 4); b & 16 && (c += 4); b & 32 && (c += 4); return this.size = c; }; c.prototype.write = function(c) { var b = a.prototype.write.call(this, c), e = this.flags; u(c, this.offset + b, this.trackId); b += 4; e & 1 && (u(c, this.offset + b, 0), u(c, this.offset + b + 4, this.baseDataOffset), b += 8); e & 2 && (u(c, this.offset + b, this.sampleDescriptionIndex), b += 4); e & 8 && (u(c, this.offset + b, this.defaultSampleDuration), b += 4); e & 16 && (u(c, this.offset + b, this.defaultSampleSize), b += 4); e & 32 && (u(c, this.offset + b, this.defaultSampleFlags), b += 4); return b; }; return c; }(e); b.TrackFragmentHeaderBox = n; n = function(a) { function c(b) { a.call(this, "tfdt", 0, 0); this.baseMediaDecodeTime = b; } __extends(c, a); c.prototype.layout = function(c) { return this.size = a.prototype.layout.call(this, c) + 4; }; c.prototype.write = function(c) { var b = a.prototype.write.call(this, c); u(c, this.offset + b, this.baseMediaDecodeTime); return b + 4; }; return c; }(e); b.TrackFragmentBaseMediaDecodeTimeBox = n; n = function(a) { function c(b, e, d) { a.call(this, "traf", [b, e, d]); this.header = b; this.decodeTime = e; this.run = d; } __extends(c, a); return c; }(l); b.TrackFragmentBox = n; (function(a) { a[a.IS_LEADING_MASK = 201326592] = "IS_LEADING_MASK"; a[a.SAMPLE_DEPENDS_ON_MASK = 50331648] = "SAMPLE_DEPENDS_ON_MASK"; a[a.SAMPLE_DEPENDS_ON_OTHER = 16777216] = "SAMPLE_DEPENDS_ON_OTHER"; a[a.SAMPLE_DEPENDS_ON_NO_OTHERS = 33554432] = "SAMPLE_DEPENDS_ON_NO_OTHERS"; a[a.SAMPLE_IS_DEPENDED_ON_MASK = 12582912] = "SAMPLE_IS_DEPENDED_ON_MASK"; a[a.SAMPLE_HAS_REDUNDANCY_MASK = 3145728] = "SAMPLE_HAS_REDUNDANCY_MASK"; a[a.SAMPLE_PADDING_VALUE_MASK = 917504] = "SAMPLE_PADDING_VALUE_MASK"; a[a.SAMPLE_IS_NOT_SYNC = 65536] = "SAMPLE_IS_NOT_SYNC"; a[a.SAMPLE_DEGRADATION_PRIORITY_MASK = 65535] = "SAMPLE_DEGRADATION_PRIORITY_MASK"; })(b.SampleFlags || (b.SampleFlags = {})); (function(a) { a[a.DATA_OFFSET_PRESENT = 1] = "DATA_OFFSET_PRESENT"; a[a.FIRST_SAMPLE_FLAGS_PRESENT = 4] = "FIRST_SAMPLE_FLAGS_PRESENT"; a[a.SAMPLE_DURATION_PRESENT = 256] = "SAMPLE_DURATION_PRESENT"; a[a.SAMPLE_SIZE_PRESENT = 512] = "SAMPLE_SIZE_PRESENT"; a[a.SAMPLE_FLAGS_PRESENT = 1024] = "SAMPLE_FLAGS_PRESENT"; a[a.SAMPLE_COMPOSITION_TIME_OFFSET = 2048] = "SAMPLE_COMPOSITION_TIME_OFFSET"; })(b.TrackRunFlags || (b.TrackRunFlags = {})); e = function(a) { function c(b, e, d, p) { a.call(this, "trun", 1, b); this.samples = e; this.dataOffset = d; this.firstSampleFlags = p; } __extends(c, a); c.prototype.layout = function(c) { c = a.prototype.layout.call(this, c) + 4; var b = this.samples.length, e = this.flags; e & 1 && (c += 4); e & 4 && (c += 4); e & 256 && (c += 4 * b); e & 512 && (c += 4 * b); e & 1024 && (c += 4 * b); e & 2048 && (c += 4 * b); return this.size = c; }; c.prototype.write = function(c) { var b = a.prototype.write.call(this, c), e = this.samples.length, d = this.flags; u(c, this.offset + b, e); b += 4; d & 1 && (u(c, this.offset + b, this.dataOffset), b += 4); d & 4 && (u(c, this.offset + b, this.firstSampleFlags), b += 4); for (var p = 0;p < e;p++) { var l = this.samples[p]; d & 256 && (u(c, this.offset + b, l.duration), b += 4); d & 512 && (u(c, this.offset + b, l.size), b += 4); d & 1024 && (u(c, this.offset + b, l.flags), b += 4); d & 2048 && (u(c, this.offset + b, l.compositionTimeOffset), b += 4); } return b; }; return c; }(e); b.TrackRunBox = e; e = function(a) { function c(b, e) { a.call(this, "moof", f([b], e)); this.header = b; this.trafs = e; } __extends(c, a); return c; }(l); b.MovieFragmentBox = e; e = function(a) { function c(b) { a.call(this, "mdat"); this.chunks = b; } __extends(c, a); c.prototype.layout = function(c) { var b = a.prototype.layout.call(this, c); this.chunks.forEach(function(a) { b += a.length; }); return this.size = b; }; c.prototype.write = function(c) { var b = this, e = a.prototype.write.call(this, c); this.chunks.forEach(function(a) { c.set(a, b.offset + e); e += a.length; }, this); return e; }; return c; }(c); b.MediaDataBox = e; e = function(a) { function c(b, e) { a.call(this, b); this.dataReferenceIndex = e; } __extends(c, a); c.prototype.layout = function(c) { return this.size = a.prototype.layout.call(this, c) + 8; }; c.prototype.write = function(c) { var b = a.prototype.write.call(this, c); u(c, this.offset + b, 0); u(c, this.offset + b + 4, this.dataReferenceIndex); return b + 8; }; return c; }(c); b.SampleEntry = e; l = function(a) { function c(b, e, d, p, l, n) { void 0 === d && (d = 2); void 0 === p && (p = 16); void 0 === l && (l = 44100); void 0 === n && (n = null); a.call(this, b, e); this.channelCount = d; this.sampleSize = p; this.sampleRate = l; this.otherBoxes = n; } __extends(c, a); c.prototype.layout = function(c) { var b = a.prototype.layout.call(this, c) + 20; this.otherBoxes && this.otherBoxes.forEach(function(a) { b += a.layout(c + b); }); return this.size = b; }; c.prototype.write = function(c) { var b = a.prototype.write.call(this, c); u(c, this.offset + b, 0); u(c, this.offset + b + 4, 0); u(c, this.offset + b + 8, this.channelCount << 16 | this.sampleSize); u(c, this.offset + b + 12, 0); u(c, this.offset + b + 16, this.sampleRate << 16); b += 20; this.otherBoxes && this.otherBoxes.forEach(function(a) { b += a.write(c); }); return b; }; return c; }(e); b.AudioSampleEntry = l; b.COLOR_NO_ALPHA_VIDEO_SAMPLE_DEPTH = 24; e = function(a) { function c(e, d, p, l, n, f, r, k, q, u) { void 0 === n && (n = ""); void 0 === f && (f = 72); void 0 === r && (r = 72); void 0 === k && (k = 1); void 0 === q && (q = b.COLOR_NO_ALPHA_VIDEO_SAMPLE_DEPTH); void 0 === u && (u = null); a.call(this, e, d); this.width = p; this.height = l; this.compressorName = n; this.horizResolution = f; this.vertResolution = r; this.frameCount = k; this.depth = q; this.otherBoxes = u; if (31 < n.length) { throw Error("invalid compressor name"); } } __extends(c, a); c.prototype.layout = function(c) { var b = a.prototype.layout.call(this, c) + 16 + 12 + 4 + 2 + 32 + 2 + 2; this.otherBoxes && this.otherBoxes.forEach(function(a) { b += a.layout(c + b); }); return this.size = b; }; c.prototype.write = function(c) { var b = a.prototype.write.call(this, c); u(c, this.offset + b, 0); u(c, this.offset + b + 4, 0); u(c, this.offset + b + 8, 0); u(c, this.offset + b + 12, 0); b += 16; u(c, this.offset + b, this.width << 16 | this.height); u(c, this.offset + b + 4, 65536 * this.horizResolution | 0); u(c, this.offset + b + 8, 65536 * this.vertResolution | 0); b += 12; u(c, this.offset + b, 0); u(c, this.offset + b + 4, this.frameCount << 16); b += 6; c[this.offset + b] = this.compressorName.length; for (var e = 0;31 > e;e++) { c[this.offset + b + e + 1] = e < this.compressorName.length ? this.compressorName.charCodeAt(e) & 127 : 0; } b += 32; u(c, this.offset + b, this.depth << 16 | 65535); b += 4; this.otherBoxes && this.otherBoxes.forEach(function(a) { b += a.write(c); }); return b; }; return c; }(e); b.VideoSampleEntry = e; c = function(a) { function c(b, e) { a.call(this, b); this.data = e; } __extends(c, a); c.prototype.layout = function(c) { return this.size = a.prototype.layout.call(this, c) + this.data.length; }; c.prototype.write = function(c) { var b = a.prototype.write.call(this, c); c.set(this.data, this.offset + b); return b + this.data.length; }; return c; }(c); b.RawTag = c; })(b.Iso || (b.Iso = {})); })(f.MP4 || (f.MP4 = {})); })(RtmpJs || (RtmpJs = {})); (function(f) { (function(b) { function g(a) { for (var c = a.length >> 1, b = new Uint8Array(c), d = 0;d < c;d++) { b[d] = parseInt(a.substr(2 * d, 2), 16); } return b; } var f = [5500, 11025, 22050, 44100], u = ["PCM", "ADPCM", "MP3", "PCM le", "Nellymouser16", "Nellymouser8", "Nellymouser", "G.711 A-law", "G.711 mu-law", null, "AAC", "Speex", "MP3 8khz"], k; (function(a) { a[a.HEADER = 0] = "HEADER"; a[a.RAW = 1] = "RAW"; })(k || (k = {})); var r = [null, "JPEG", "Sorenson", "Screen", "VP6", "VP6 alpha", "Screen2", "AVC"], d; (function(a) { a[a.KEY = 1] = "KEY"; a[a.INNER = 2] = "INNER"; a[a.DISPOSABLE = 3] = "DISPOSABLE"; a[a.GENERATED = 4] = "GENERATED"; a[a.INFO = 5] = "INFO"; })(d || (d = {})); var a; (function(a) { a[a.HEADER = 0] = "HEADER"; a[a.NALU = 1] = "NALU"; a[a.END = 2] = "END"; })(a || (a = {})); var c; (function(a) { a[a.CAN_GENERATE_HEADER = 0] = "CAN_GENERATE_HEADER"; a[a.NEED_HEADER_DATA = 1] = "NEED_HEADER_DATA"; a[a.MAIN_PACKETS = 2] = "MAIN_PACKETS"; })(c || (c = {})); k = function() { function a(c) { var b = this; this.oncodecinfo = function(a) { }; this.ondata = function(a) { throw Error("MP4Mux.ondata is not set"); }; this.metadata = c; this.trackStates = this.metadata.tracks.map(function(a, c) { var e = {trackId:c + 1, trackInfo:a, cachedDuration:0, samplesProcessed:0, initializationData:[]}; b.metadata.audioTrackId === c && (b.audioTrackState = e); b.metadata.videoTrackId === c && (b.videoTrackState = e); return e; }, this); this._checkIfNeedHeaderData(); this.filePos = 0; this.cachedPackets = []; this.chunkIndex = 0; } a.prototype.pushPacket = function(a, c, b) { 0 === this.state && this._tryGenerateHeader(); switch(a) { case 8: a = this.audioTrackState; var e = 0, d = 1, m = c[e], v = m >> 4, g; e++; switch(v) { case 10: d = c[e++]; g = 1024; break; case 2: g = c[e + 1] >> 3 & 3; var k = c[e + 1] >> 1 & 3; g = 1 === k ? 3 === g ? 1152 : 576 : 3 === k ? 384 : 1152; } c = {codecDescription:u[v], codecId:v, data:c.subarray(e), rate:f[m >> 2 & 3], size:m & 2 ? 16 : 8, channels:m & 1 ? 2 : 1, samples:g, packetType:d}; if (!a || a.trackInfo.codecId !== c.codecId) { throw Error("Unexpected audio packet codec: " + c.codecDescription); } switch(c.codecId) { default: throw Error("Unsupported audio codec: " + c.codecDescription);; case 2: break; case 10: if (0 === c.packetType) { a.initializationData.push(c.data); return; } ; } this.cachedPackets.push({packet:c, timestamp:b, trackId:a.trackId}); break; case 9: a = this.videoTrackState; e = 0; m = c[e] >> 4; d = c[e] & 15; e++; m = {frameType:m, codecId:d, codecDescription:r[d]}; switch(d) { case 7: d = c[e++]; m.packetType = d; m.compositionTime = (c[e] << 24 | c[e + 1] << 16 | c[e + 2] << 8) >> 8; e += 3; break; case 4: m.packetType = 1, m.horizontalOffset = c[e] >> 4 & 15, m.verticalOffset = c[e] & 15, m.compositionTime = 0, e++; } m.data = c.subarray(e); if (!a || a.trackInfo.codecId !== m.codecId) { throw Error("Unexpected video packet codec: " + m.codecDescription); } switch(m.codecId) { default: throw Error("unsupported video codec: " + m.codecDescription);; case 4: break; case 7: if (0 === m.packetType) { a.initializationData.push(m.data); return; } ; } this.cachedPackets.push({packet:m, timestamp:b, trackId:a.trackId}); break; default: throw Error("unknown packet type: " + a);; } 1 === this.state && this._tryGenerateHeader(); 200 <= this.cachedPackets.length && 2 === this.state && this._chunk(); }; a.prototype.flush = function() { 0 < this.cachedPackets.length && this._chunk(); }; a.prototype._checkIfNeedHeaderData = function() { this.trackStates.some(function(a) { return 10 === a.trackInfo.codecId || 7 === a.trackInfo.codecId; }) ? this.state = 1 : this.state = 0; }; a.prototype._tryGenerateHeader = function() { if (this.trackStates.every(function(a) { switch(a.trackInfo.codecId) { case 10: ; case 7: return 0 < a.initializationData.length; default: return !0; } })) { for (var a = ["isom"], c = [], e = 0;e < this.trackStates.length;e++) { var d = this.trackStates[e], h = d.trackInfo, m; switch(h.codecId) { case 10: var v = d.initializationData[0]; m = new b.Iso.AudioSampleEntry("mp4a", 1, h.channels, h.samplesize, h.samplerate); var f = new Uint8Array(41 + v.length); f.set(g("0000000003808080"), 0); f[8] = 32 + v.length; f.set(g("00020004808080"), 9); f[16] = 18 + v.length; f.set(g("40150000000000FA000000000005808080"), 17); f[34] = v.length; f.set(v, 35); f.set(g("068080800102"), 35 + v.length); m.otherBoxes = [new b.Iso.RawTag("esds", f)]; d.mimeTypeCodec = "mp4a.40." + (v[0] >> 3); break; case 2: m = new b.Iso.AudioSampleEntry(".mp3", 1, h.channels, h.samplesize, h.samplerate); d.mimeTypeCodec = "mp3"; break; case 7: v = d.initializationData[0]; m = new b.Iso.VideoSampleEntry("avc1", 1, h.width, h.height); m.otherBoxes = [new b.Iso.RawTag("avcC", v)]; d.mimeTypeCodec = "avc1." + (16777216 | v[1] << 16 | v[2] << 8 | v[3]).toString(16).substr(1); a.push("iso2", "avc1", "mp41"); break; case 4: m = new b.Iso.VideoSampleEntry("VP6F", 1, h.width, h.height); m.otherBoxes = [new b.Iso.RawTag("glbl", g("00"))]; d.mimeTypeCodec = "avc1.42001E"; break; default: throw Error("not supported track type");; } var r; d === this.audioTrackState ? r = new b.Iso.TrackBox(new b.Iso.TrackHeaderBox(3, d.trackId, -1, 0, 0, 1, e), new b.Iso.MediaBox(new b.Iso.MediaHeaderBox(h.timescale, -1, h.language), new b.Iso.HandlerBox("soun", "SoundHandler"), new b.Iso.MediaInformationBox(new b.Iso.SoundMediaHeaderBox, new b.Iso.DataInformationBox(new b.Iso.DataReferenceBox([new b.Iso.DataEntryUrlBox(b.Iso.SELF_CONTAINED_DATA_REFERENCE_FLAG)])), new b.Iso.SampleTableBox(new b.Iso.SampleDescriptionBox([m]), new b.Iso.RawTag("stts", g("0000000000000000")), new b.Iso.RawTag("stsc", g("0000000000000000")), new b.Iso.RawTag("stsz", g("000000000000000000000000")), new b.Iso.RawTag("stco", g("0000000000000000")))))) : d === this.videoTrackState && (r = new b.Iso.TrackBox(new b.Iso.TrackHeaderBox(3, d.trackId, -1, h.width, h.height, 0, e), new b.Iso.MediaBox(new b.Iso.MediaHeaderBox(h.timescale, -1, h.language), new b.Iso.HandlerBox("vide", "VideoHandler"), new b.Iso.MediaInformationBox(new b.Iso.VideoMediaHeaderBox, new b.Iso.DataInformationBox(new b.Iso.DataReferenceBox([new b.Iso.DataEntryUrlBox(b.Iso.SELF_CONTAINED_DATA_REFERENCE_FLAG)])), new b.Iso.SampleTableBox(new b.Iso.SampleDescriptionBox([m]), new b.Iso.RawTag("stts", g("0000000000000000")), new b.Iso.RawTag("stsc", g("0000000000000000")), new b.Iso.RawTag("stsz", g("000000000000000000000000")), new b.Iso.RawTag("stco", g("0000000000000000"))))))); c.push(r); } e = new b.Iso.MovieExtendsBox(null, [new b.Iso.TrackExtendsBox(1, 1, 0, 0, 0), new b.Iso.TrackExtendsBox(2, 1, 0, 0, 0)], null); d = new b.Iso.BoxContainerBox("udat", [new b.Iso.MetaBox(new b.Iso.RawTag("hdlr", g("00000000000000006D6469726170706C000000000000000000")), [new b.Iso.RawTag("ilst", g("00000025A9746F6F0000001D6461746100000001000000004C61766635342E36332E313034"))])]); h = new b.Iso.MovieHeaderBox(1E3, 0, this.trackStates.length + 1); c = new b.Iso.MovieBox(h, c, e, d); a = new b.Iso.FileTypeBox("isom", 512, a); e = a.layout(0); d = c.layout(e); e = new Uint8Array(e + d); a.write(e); c.write(e); this.oncodecinfo(this.trackStates.map(function(a) { return a.mimeTypeCodec; })); this.ondata(e); this.filePos += e.length; this.state = 2; } }; a.prototype._chunk = function() { var a, c = this.cachedPackets; if (0 !== c.length) { for (var e = [], d = 0, h = [], m = [], v = 0;v < this.trackStates.length;v++) { var g = this.trackStates[v], f = g.trackInfo, r = g.trackId, k = c.filter(function(a) { return a.trackId === r; }); if (0 !== k.length) { var q = new b.Iso.TrackFragmentBaseMediaDecodeTimeBox(g.cachedDuration), u; m.push(d); switch(f.codecId) { case 10: ; case 2: u = []; for (a = 0;a < k.length;a++) { var x = k[a].packet, C = Math.round(x.samples * f.timescale / f.samplerate); e.push(x.data); d += x.data.length; u.push({duration:C, size:x.data.length}); g.samplesProcessed += x.samples; } a = 32; a = new b.Iso.TrackFragmentHeaderBox(a, r, 0, 0, 0, 0, 33554432); k = 769; u = new b.Iso.TrackRunBox(k, u, 0, 0); g.cachedDuration = Math.round(g.samplesProcessed * f.timescale / f.samplerate); break; case 7: ; case 4: u = []; x = g.samplesProcessed; C = Math.round(x * f.timescale / f.framerate); for (a = 0;a < k.length;a++) { var y = k[a].packet; x++; var D = Math.round(x * f.timescale / f.framerate), G = D - C, C = D, F = Math.round(x * f.timescale / f.framerate + y.compositionTime * f.timescale / 1E3); e.push(y.data); d += y.data.length; u.push({duration:G, size:y.data.length, flags:1 === y.frameType ? 33554432 : 16842752, compositionTimeOffset:F - D}); } a = 32; a = new b.Iso.TrackFragmentHeaderBox(a, r, 0, 0, 0, 0, 33554432); k = 3841; u = new b.Iso.TrackRunBox(k, u, 0, 0); g.cachedDuration = C; g.samplesProcessed = x; break; default: throw Error("Un codec");; } g = new b.Iso.TrackFragmentBox(a, q, u); h.push(g); } } this.cachedPackets.splice(0, c.length); v = new b.Iso.MovieFragmentHeaderBox(++this.chunkIndex); c = new b.Iso.MovieFragmentBox(v, h); d = c.layout(0); e = new b.Iso.MediaDataBox(e); g = e.layout(d); f = d + 8; for (v = 0;v < h.length;v++) { h[v].run.dataOffset = f + m[v]; } h = new Uint8Array(d + g); c.write(h); e.write(h); this.ondata(h); this.filePos += h.length; } }; return a; }(); b.MP4Mux = k; b.parseFLVMetadata = function(a) { var c = [], b = -1, d = -1, p = +a.axGetPublicProperty("duration"), h, m, v = a.axGetPublicProperty("audiocodecid"); switch(v) { case 2: ; case "mp3": h = "mp3"; m = 2; break; case 10: ; case "mp4a": h = "mp4a"; m = 10; break; default: if (!isNaN(v)) { throw Error("Unsupported audio codec: " + v); } h = null; m = -1; } var g, f, r = a.axGetPublicProperty("videocodecid"); switch(r) { case 4: ; case "vp6f": g = "vp6f"; f = 4; break; case 7: ; case "avc1": g = "avc1"; f = 7; break; default: if (!isNaN(r)) { throw Error("Unsupported video codec: " + r); } g = null; f = -1; } h = null === h ? null : {codecDescription:h, codecId:m, language:"und", timescale:+a.axGetPublicProperty("audiosamplerate") || 44100, samplerate:+a.axGetPublicProperty("audiosamplerate") || 44100, channels:+a.axGetPublicProperty("audiochannels") || 2, samplesize:16}; g = null === g ? null : {codecDescription:g, codecId:f, language:"und", timescale:6E4, framerate:+a.axGetPublicProperty("videoframerate") || +a.axGetPublicProperty("framerate"), width:+a.axGetPublicProperty("width"), height:+a.axGetPublicProperty("height")}; if (a = a.axGetPublicProperty("trackinfo")) { for (f = 0;f < a.length;f++) { m = a[f]; var k = m.axGetPublicProperty("sampledescription")[0]; k.axGetPublicProperty("sampletype") === v ? (h.language = m.axGetPublicProperty("language"), h.timescale = +m.axGetPublicProperty("timescale")) : k.axGetPublicProperty("sampletype") === r && (g.language = m.axGetPublicProperty("language"), g.timescale = +m.axGetPublicProperty("timescale")); } } g && (d = c.length, c.push(g)); h && (b = c.length, c.push(h)); return {tracks:c, duration:p, audioTrackId:b, videoTrackId:d}; }; })(f.MP4 || (f.MP4 = {})); })(RtmpJs || (RtmpJs = {})); (function(f) { (function(b) { var g = function() { function b() { this.state = this.state = 0; this.buffer = new ArrayBuffer(1024); this.previousTagSize = this.bufferSize = 0; this.onClose = this.onTag = this.onHeader = this.onError = null; } b.prototype.push = function(b) { var g; if (0 < this.bufferSize) { g = this.bufferSize + b.length; if (this.buffer.byteLength < g) { var f = new Uint8Array(this.buffer, 0, this.bufferSize); this.buffer = new ArrayBuffer(g); g = new Uint8Array(this.buffer); g.set(f); } else { g = new Uint8Array(this.buffer, 0, g); } g.set(b, this.bufferSize); } else { g = b; } b = 0; for (f = g.length;b < f;) { var d = 0; switch(this.state) { case 0: if (b + 9 > f) { break; } var a = g[b + 5] << 24 | g[b + 6] << 16 | g[b + 7] << 8 | g[b + 8]; if (9 > a) { this._error("Invalid header length"); break; } if (b + a > f) { break; } if (70 !== g[b] || 76 !== g[b + 1] || 86 !== g[b + 2] || 1 !== g[b + 3] || 0 !== (g[b + 4] & 250)) { this._error("Invalid FLV header"); break; } var c = g[b + 4], d = 9 < a ? g.subarray(b + 9, b + a) : null; this.onHeader && this.onHeader({hasAudio:!!(c & 4), hasVideo:!!(c & 1), extra:d}); this.state = 2; d = a; break; case 2: if (b + 4 + 11 > f) { break; } if ((g[b + 0] << 24 | g[b + 1] << 16 | g[b + 2] << 8 | g[b + 3]) !== this.previousTagSize) { this._error("Invalid PreviousTagSize"); break; } var a = g[b + 5] << 16 | g[b + 6] << 8 | g[b + 7], e = b + 4 + 11; if (e + a > f) { break; } c = g[b + 4]; if (0 !== (g[b + 12] << 16 | g[b + 13] << 8 | g[b + 14]) || 0 !== (c & 192)) { this._error("Invalid FLV tag"); break; } var l = c & 31; if (8 !== l && 9 !== l && 18 !== l) { this._error("Invalid FLV tag type"); break; } var c = !!(c & 32), n = g[b + 8] << 16 | g[b + 9] << 8 | g[b + 10] | g[g + 11] << 24; this.onTag && this.onTag({type:l, needPreprocessing:c, timestamp:n, data:g.subarray(e, e + a)}); d += 15 + a; this.previousTagSize = a + 11; this.state = 2; break; default: throw Error("invalid state");; } if (0 === d) { break; } b += d; } b < g.length ? (this.bufferSize = g.length - b, this.buffer.byteLength < this.bufferSize && (this.buffer = new ArrayBuffer(this.bufferSize)), (new Uint8Array(this.buffer)).set(g.subarray(b))) : this.bufferSize = 0; }; b.prototype._error = function(b) { this.state = -1; this.onError && this.onError(b); }; b.prototype.close = function() { this.onClose && this.onClose(); }; return b; }(); b.FLVParser = g; })(f.FLV || (f.FLV = {})); })(RtmpJs || (RtmpJs = {})); (function(f) { (function(b) { (function(b) { (function(f) { (function(f) { function k(b) { switch(b) { case a: ; case -c: return 0; case d: ; case -d: return -1; case c: ; case -a: return 0; default: return Math.cos(b); } } function r(b) { switch(b) { case a: ; case -c: return 1; case d: ; case -d: return 0; case c: ; case -a: return -1; default: return Math.sin(b); } } var d = Math.PI, a = d / 2, c = d + a, e = 2 * d, l = function(a) { function c(b, e, d, l, g, t) { void 0 === b && (b = 1); void 0 === e && (e = 0); void 0 === d && (d = 0); void 0 === l && (l = 1); void 0 === g && (g = 0); void 0 === t && (t = 0); a.call(this); var f = this._data = new Float64Array(6); f[0] = b; f[1] = e; f[2] = d; f[3] = l; f[4] = g; f[5] = t; } __extends(c, a); c.classInitializer = function() { this.FROZEN_IDENTITY_MATRIX = Object.freeze(this.axConstruct([])); this.TEMP_MATRIX = this.axConstruct([]); }; c.FromUntyped = function(a) { return new this.sec.flash.geom.Matrix(a.a, a.b, a.c, a.d, a.tx, a.ty); }; c.FromDataBuffer = function(a) { return new this.sec.flash.geom.Matrix(a.readFloat(), a.readFloat(), a.readFloat(), a.readFloat(), a.readFloat(), a.readFloat()); }; Object.defineProperty(c.prototype, "a", {get:function() { return this._data[0]; }, set:function(a) { this._data[0] = a; }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "b", {get:function() { return this._data[1]; }, set:function(a) { this._data[1] = a; }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "c", {get:function() { return this._data[2]; }, set:function(a) { this._data[2] = a; }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "d", {get:function() { return this._data[3]; }, set:function(a) { this._data[3] = a; }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "tx", {get:function() { return this._data[4]; }, set:function(a) { this._data[4] = a; }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "ty", {get:function() { return this._data[5]; }, set:function(a) { this._data[5] = a; }, enumerable:!0, configurable:!0}); c.prototype.concat = function(a) { var c = this._data; a = a._data; var b = c[0] * a[0], e = 0, d = 0, l = c[3] * a[3], n = c[4] * a[0] + a[4], g = c[5] * a[3] + a[5]; if (0 !== c[1] || 0 !== c[2] || 0 !== a[1] || 0 !== a[2]) { b += c[1] * a[2], l += c[2] * a[1], e += c[0] * a[1] + c[1] * a[3], d += c[2] * a[0] + c[3] * a[2], n += c[5] * a[2], g += c[4] * a[1]; } c[0] = b; c[1] = e; c[2] = d; c[3] = l; c[4] = n; c[5] = g; }; c.prototype.preMultiply = function(a) { this.preMultiplyInto(a, this); }; c.prototype.preMultiplyInto = function(a, c) { var b = this._data, e = a._data, d = c._data, l = e[0] * b[0], n = 0, g = 0, t = e[3] * b[3], f = e[4] * b[0] + b[4], r = e[5] * b[3] + b[5]; if (0 !== e[1] || 0 !== e[2] || 0 !== b[1] || 0 !== b[2]) { l += e[1] * b[2], t += e[2] * b[1], n += e[0] * b[1] + e[1] * b[3], g += e[2] * b[0] + e[3] * b[2], f += e[5] * b[2], r += e[4] * b[1]; } d[0] = l; d[1] = n; d[2] = g; d[3] = t; d[4] = f; d[5] = r; }; c.prototype.invert = function() { this.invertInto(this); }; c.prototype.invertInto = function(a) { var c = this._data, b = a._data, e = c[1], d = c[2], l = c[4], n = c[5]; if (0 === e && 0 === d) { var g = b[0] = 1 / c[0], c = b[3] = 1 / c[3]; b[1] = b[2] = 0; b[4] = -g * l; b[5] = -c * n; } else { var g = c[0], c = c[3], t = g * c - e * d; 0 === t ? a.identity() : (t = 1 / t, a = 0, a = b[0] = c * t, e = b[1] = -e * t, d = b[2] = -d * t, c = b[3] = g * t, b[4] = -(a * l + d * n), b[5] = -(e * l + c * n)); } }; c.prototype.identity = function() { var a = this._data; a[0] = a[3] = 1; a[1] = a[2] = a[4] = a[5] = 0; }; c.prototype.createBox = function(a, c, b, e, d) { void 0 === b && (b = 0); void 0 === e && (e = 0); void 0 === d && (d = 0); var l = this._data; if (0 !== b) { var n = k(b); b = r(b); l[0] = n * a; l[1] = b * c; l[2] = -b * a; l[3] = n * c; } else { l[0] = a, l[1] = 0, l[2] = 0, l[3] = c; } l[4] = e; l[5] = d; }; c.prototype.createGradientBox = function(a, c, b, e, d) { void 0 === b && (b = 0); void 0 === e && (e = 0); void 0 === d && (d = 0); this.createBox(a / 1638.4, c / 1638.4, b, e + a / 2, d + c / 2); }; c.prototype.rotate = function(a) { a = +a; if (0 !== a) { var c = this._data, b = k(a); a = r(a); var e = c[0], d = c[1], l = c[2], n = c[3], g = c[4], t = c[5]; c[0] = e * b - d * a; c[1] = e * a + d * b; c[2] = l * b - n * a; c[3] = l * a + n * b; c[4] = g * b - t * a; c[5] = g * a + t * b; } }; c.prototype.translate = function(a, c) { var b = this._data; b[4] += a; b[5] += c; }; c.prototype.scale = function(a, c) { var b = this._data; 1 !== a && (b[0] *= a, b[2] *= a, b[4] *= a); 1 !== c && (b[1] *= c, b[3] *= c, b[5] *= c); }; c.prototype.deltaTransformPoint = function(a) { return new this.sec.flash.geom.Point(this._data[0] * a.x + this._data[2] * a.y, this._data[1] * a.x + this._data[3] * a.y); }; c.prototype.transformX = function(a, c) { var b = this._data; return b[0] * a + b[2] * c + b[4]; }; c.prototype.transformY = function(a, c) { var b = this._data; return b[1] * a + b[3] * c + b[5]; }; c.prototype.transformPoint = function(a) { var c = this._data; return new this.sec.flash.geom.Point(c[0] * a.x + c[2] * a.y + c[4], c[1] * a.x + c[3] * a.y + c[5]); }; c.prototype.transformPointInPlace = function(a) { var c = this._data; a.setTo(c[0] * a.x + c[2] * a.y + c[4], c[1] * a.x + c[3] * a.y + c[5]); return a; }; c.prototype.transformBounds = function(a) { var c = this._data, b = c[0], e = c[1], d = c[2], l = c[3], n = c[4], g = c[5], t = a.xMin, f = a.yMin, r = a.width, k = a.height, c = Math.round(b * t + d * f + n), q = Math.round(e * t + l * f + g), u = Math.round(b * (t + r) + d * f + n), G = Math.round(e * (t + r) + l * f + g), F = Math.round(b * (t + r) + d * (f + k) + n), r = Math.round(e * (t + r) + l * (f + k) + g), b = Math.round(b * t + d * (f + k) + n), e = Math.round(e * t + l * (f + k) + g), l = 0; c > u && (l = c, c = u, u = l); F > b && (l = F, F = b, b = l); a.xMin = c < F ? c : F; a.xMax = u > b ? u : b; q > G && (l = q, q = G, G = l); r > e && (l = r, r = e, e = l); a.yMin = q < r ? q : r; a.yMax = G > e ? G : e; }; c.prototype.getDeterminant = function() { var a = this._data; return a[0] * a[3] - a[1] * a[2]; }; c.prototype.getScaleX = function() { var a = this._data; if (1 === a[0] && 0 === a[1]) { return 1; } a = Math.sqrt(a[0] * a[0] + a[1] * a[1]); return 0 > this.getDeterminant() ? -a : a; }; c.prototype.getScaleY = function() { var a = this._data; if (0 === a[2] && 1 === a[3]) { return 1; } a = Math.sqrt(a[2] * a[2] + a[3] * a[3]); return 0 > this.getDeterminant() ? -a : a; }; c.prototype.getAbsoluteScaleX = function() { return Math.abs(this.getScaleX()); }; c.prototype.getAbsoluteScaleY = function() { return Math.abs(this.getScaleY()); }; c.prototype.getSkewX = function() { return Math.atan2(this._data[3], this._data[2]) - Math.PI / 2; }; c.prototype.getSkewY = function() { return Math.atan2(this._data[1], this._data[0]); }; c.prototype.copyFrom = function(a) { var c = this._data; a = a._data; c[0] = a[0]; c[1] = a[1]; c[2] = a[2]; c[3] = a[3]; c[4] = a[4]; c[5] = a[5]; }; c.prototype.copyFromUntyped = function(a) { var c = this._data; c[0] = a.a; c[1] = a.b; c[2] = a.c; c[3] = a.d; c[4] = a.tx; c[5] = a.ty; }; c.prototype.setTo = function(a, c, b, e, d, l) { var n = this._data; n[0] = a; n[1] = c; n[2] = b; n[3] = e; n[4] = d; n[5] = l; }; c.prototype.toTwipsInPlace = function() { var a = this._data; a[4] = 20 * a[4] | 0; a[5] = 20 * a[5] | 0; return this; }; c.prototype.toPixelsInPlace = function() { var a = this._data; a[4] /= 20; a[5] /= 20; return this; }; c.prototype.toSerializedScaleInPlace = function() { var a = this._data; a[0] *= 819.2; a[1] *= 819.2; a[2] *= 819.2; a[3] *= 819.2; return this; }; c.prototype.copyRowTo = function(a, c) { var b = this._data; a >>>= 0; 0 === a ? (c.x = b[0], c.y = b[2], c.z = b[4]) : 1 === a ? (c.x = b[1], c.y = b[3], c.z = b[5]) : 2 === a && (c.x = 0, c.y = 0, c.z = 1); }; c.prototype.copyColumnTo = function(a, c) { var b = this._data; a >>>= 0; 0 === a ? (c.x = b[0], c.y = b[1], c.z = 0) : 1 === a ? (c.x = b[2], c.y = b[3], c.z = 0) : 2 === a && (c.x = b[4], c.y = b[5], c.z = 1); }; c.prototype.copyRowFrom = function(a, c) { var b = this._data; a >>>= 0; 0 === a ? (b[0] = c.x, b[2] = c.y, b[4] = c.z) : 1 === a && (b[1] = c.x, b[3] = c.y, b[5] = c.z); }; c.prototype.copyColumnFrom = function(a, c) { var b = this._data; a >>>= 0; 0 === a ? (b[0] = c.x, b[2] = c.y, b[4] = c.z) : 1 === a && (b[1] = c.x, b[3] = c.y, b[5] = c.z); }; c.prototype.updateScaleAndRotation = function(a, c, b, d) { var l = this._data; if (0 !== b && b !== e || 0 !== d && d !== e) { var n = k(b), g = r(b); b === d ? (l[0] = n * a, l[1] = g * a) : (l[0] = k(d) * a, l[1] = r(d) * a); l[2] = -g * c; l[3] = n * c; } else { l[0] = a, l[1] = l[2] = 0, l[3] = c; } }; c.prototype.clone = function() { var a = this._data; return new this.sec.flash.geom.Matrix(a[0], a[1], a[2], a[3], a[4], a[5]); }; c.prototype.equals = function(a) { var c = this._data; a = a._data; return c[0] === a[0] && c[1] === a[1] && c[2] === a[2] && c[3] === a[3] && c[4] === a[4] && c[5] === a[5]; }; c.prototype.toString = function() { var a = this._data; return "(a=" + a[0] + ", b=" + a[1] + ", c=" + a[2] + ", d=" + a[3] + ", tx=" + a[4] + ", ty=" + a[5] + ")"; }; c.prototype.writeExternal = function(a) { var c = this._data; a.writeFloat(c[0]); a.writeFloat(c[1]); a.writeFloat(c[2]); a.writeFloat(c[3]); a.writeFloat(c[4]); a.writeFloat(c[5]); }; c.classSymbols = null; c.instanceSymbols = null; return c; }(b.ASObject); f.Matrix = l; })(f.geom || (f.geom = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(q) { (function(q) { function k(a, c, b, d, g, h, m, v) { var f = c * c, r = b * b, k = d * d, q = f + r + k, u = Math.sqrt(q); c /= u; b /= u; d /= u; f /= q; r /= q; k /= q; q = Math.cos(a); a = Math.sin(a); return v.flash.geom.Matrix3D.axClass.FromArray([f + (r + k) * q, c * b * (1 - q) + d * a, c * d * (1 - q) - b * a, 0, c * b * (1 - q) - d * a, r + (f + k) * q, b * d * (1 - q) + c * a, 0, c * d * (1 - q) + b * a, b * d * (1 - q) - c * a, k + (f + r) * q, 0, (g * (r + k) - c * (h * b + m * d)) * (1 - q) + (h * d - m * b) * a, (h * (f + k) - b * (g * c + m * d)) * (1 - q) + (m * c - g * d) * a, (m * (f + r) - d * (g * c + h * b)) * (1 - q) + (g * b - h * c) * a, 1]); } var r = f.Debug.notImplemented, d = f.AVMX.axCoerceString, a = new Uint32Array([0, 4, 8, 12, 1, 5, 9, 13, 2, 6, 10, 14, 3, 7, 11, 15]), c = function(c) { function b(a) { void 0 === a && (a = null); c.call(this); this._matrix = new Float32Array(16); a && 16 <= a.length ? this.copyRawDataFrom(a) : this.identity(); } __extends(b, c); b.FromArray = function(a) { var c = Object.create(this.tPrototype); c._matrix = new Float32Array(a); return c; }; b.interpolate = function(a, c, b) { r("public flash.geom.Matrix3D::static interpolate"); }; Object.defineProperty(b.prototype, "rawData", {get:function() { var a = new this.sec.Float64Vector; this.copyRawDataTo(a); return a; }, set:function(a) { this.copyRawDataFrom(a); }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "position", {get:function() { var a = this._matrix; return new this.sec.flash.geom.Vector3D(a[12], a[13], a[14]); }, set:function(a) { var c = this._matrix; c[12] = a.x; c[13] = a.y; c[14] = a.z; }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "determinant", {get:function() { var a = this._matrix, c = a[4], b = a[8], e = a[12], d = a[5], l = a[9], g = a[13], f = a[6], r = a[10], k = a[14], q = a[7], u = a[11], x = a[15]; return a[0] * (d * (r * x - u * k) - f * (l * x - u * g) + q * (l * k - r * g)) - a[1] * (c * (r * x - u * k) - f * (b * x - u * e) + q * (b * k - r * e)) + a[2] * (c * (l * x - u * g) - d * (b * x - u * e) + q * (b * g - l * e)) - a[3] * (c * (l * k - r * g) - d * (b * k - r * e) + f * (b * g - l * e)); }, enumerable:!0, configurable:!0}); b.prototype.clone = function() { return this.sec.flash.geom.Matrix3D.axClass.FromArray(this._matrix); }; b.prototype.copyToMatrix3D = function(a) { a._matrix.set(this._matrix); }; b.prototype.append = function(a) { var c = a._matrix, b = this._matrix; a = this._matrix; var e = c[0], d = c[4], l = c[8], g = c[12], f = c[1], r = c[5], k = c[9], q = c[13], u = c[2], x = c[6], C = c[10], y = c[14], D = c[3], G = c[7], F = c[11], c = c[15], I = b[0], E = b[4], J = b[8], L = b[12], M = b[1], P = b[5], R = b[9], O = b[13], Q = b[2], W = b[6], T = b[10], X = b[14], N = b[3], U = b[7], V = b[11], b = b[15]; a[0] = e * I + d * M + l * Q + g * N; a[1] = f * I + r * M + k * Q + q * N; a[2] = u * I + x * M + C * Q + y * N; a[3] = D * I + G * M + F * Q + c * N; a[4] = e * E + d * P + l * W + g * U; a[5] = f * E + r * P + k * W + q * U; a[6] = u * E + x * P + C * W + y * U; a[7] = D * E + G * P + F * W + c * U; a[8] = e * J + d * R + l * T + g * V; a[9] = f * J + r * R + k * T + q * V; a[10] = u * J + x * R + C * T + y * V; a[11] = D * J + G * R + F * T + c * V; a[12] = e * L + d * O + l * X + g * b; a[13] = f * L + r * O + k * X + q * b; a[14] = u * L + x * O + C * X + y * b; a[15] = D * L + G * O + F * X + c * b; }; b.prototype.prepend = function(a) { var c = this._matrix, b = a._matrix; a = this._matrix; var e = c[0], d = c[4], l = c[8], g = c[12], f = c[1], r = c[5], k = c[9], q = c[13], u = c[2], x = c[6], C = c[10], y = c[14], D = c[3], G = c[7], F = c[11], c = c[15], I = b[0], E = b[4], J = b[8], L = b[12], M = b[1], P = b[5], R = b[9], O = b[13], Q = b[2], W = b[6], T = b[10], X = b[14], N = b[3], U = b[7], V = b[11], b = b[15]; a[0] = e * I + d * M + l * Q + g * N; a[1] = f * I + r * M + k * Q + q * N; a[2] = u * I + x * M + C * Q + y * N; a[3] = D * I + G * M + F * Q + c * N; a[4] = e * E + d * P + l * W + g * U; a[5] = f * E + r * P + k * W + q * U; a[6] = u * E + x * P + C * W + y * U; a[7] = D * E + G * P + F * W + c * U; a[8] = e * J + d * R + l * T + g * V; a[9] = f * J + r * R + k * T + q * V; a[10] = u * J + x * R + C * T + y * V; a[11] = D * J + G * R + F * T + c * V; a[12] = e * L + d * O + l * X + g * b; a[13] = f * L + r * O + k * X + q * b; a[14] = u * L + x * O + C * X + y * b; a[15] = D * L + G * O + F * X + c * b; }; b.prototype.invert = function() { var a = this.determinant; if (1E-7 > Math.abs(a)) { return !1; } var a = 1 / a, c = this._matrix, b = c[0], e = c[1], d = c[2], l = c[3], g = c[4], f = c[5], r = c[6], k = c[7], q = c[8], u = c[9], x = c[10], C = c[11], y = c[12], D = c[13], G = c[14], F = c[15]; c[0] = a * (f * (x * F - G * C) - u * (r * F - G * k) + D * (r * C - x * k)); c[1] = -a * (e * (x * F - G * C) - u * (d * F - G * l) + D * (d * C - x * l)); c[2] = a * (e * (r * F - G * k) - f * (d * F - G * l) + D * (d * k - r * l)); c[3] = -a * (e * (r * C - x * k) - f * (d * C - x * l) + u * (d * k - r * l)); c[4] = -a * (g * (x * F - G * C) - q * (r * F - G * k) + y * (r * C - x * k)); c[5] = a * (b * (x * F - G * C) - q * (d * F - G * l) + y * (d * C - x * l)); c[6] = -a * (b * (r * F - G * k) - g * (d * F - G * l) + y * (d * k - r * l)); c[7] = a * (b * (r * C - x * k) - g * (d * C - x * l) + q * (d * k - r * l)); c[8] = a * (g * (u * F - D * C) - q * (f * F - D * k) + y * (f * C - u * k)); c[9] = -a * (b * (u * F - D * C) - q * (e * F - D * l) + y * (e * C - u * l)); c[10] = a * (b * (f * F - D * k) - g * (e * F - D * l) + y * (e * k - f * l)); c[11] = -a * (b * (f * C - u * k) - g * (e * C - u * l) + q * (e * k - f * l)); c[12] = -a * (g * (u * G - D * x) - q * (f * G - D * r) + y * (f * x - u * r)); c[13] = a * (b * (u * G - D * x) - q * (e * G - D * d) + y * (e * x - u * d)); c[14] = -a * (b * (f * G - D * r) - g * (e * G - D * d) + y * (e * r - f * d)); c[15] = a * (b * (f * x - u * r) - g * (e * x - u * d) + q * (e * r - f * d)); return !0; }; b.prototype.identity = function() { var a = this._matrix; a[0] = a[5] = a[10] = a[15] = 1; a[1] = a[2] = a[3] = a[4] = a[6] = a[7] = a[8] = a[9] = a[11] = a[12] = a[13] = a[14] = 0; }; b.prototype.decompose = function(a) { void 0 === a && (a = "eulerAngles"); d(a); r("public flash.geom.Matrix3D::decompose"); }; b.prototype.recompose = function(a, c) { void 0 === c && (c = "eulerAngles"); d(c); r("public flash.geom.Matrix3D::recompose"); }; b.prototype.appendTranslation = function(a, c, b) { a = +a; c = +c; b = +b; var e = this._matrix, d = e[3], l = e[7], g = e[11], f = e[15]; e[0] += a * d; e[1] += c * d; e[2] += b * d; e[4] += a * l; e[5] += c * l; e[6] += b * l; e[8] += a * g; e[9] += c * g; e[10] += b * g; e[12] += a * f; e[13] += c * f; e[14] += b * f; }; b.prototype.appendRotation = function(a, c, b) { void 0 === b && (b = null); this.append(k(+a / 180 * Math.PI, c.x, c.y, c.z, b ? b.x : 0, b ? b.y : 0, b ? b.z : 0, this.sec)); }; b.prototype.appendScale = function(a, c, b) { a = +a; c = +c; b = +b; var e = this._matrix; e[0] *= a; e[1] *= c; e[2] *= b; e[4] *= a; e[5] *= c; e[6] *= b; e[8] *= a; e[9] *= c; e[10] *= b; e[12] *= a; e[13] *= c; e[14] *= b; }; b.prototype.prependTranslation = function(a, c, b) { a = +a; c = +c; b = +b; var e = this._matrix, d = e[1], l = e[5], g = e[9], f = e[2], r = e[6], k = e[10], q = e[3], u = e[7], x = e[11]; e[12] += e[0] * a + e[4] * c + e[8] * b; e[13] += d * a + l * c + g * b; e[14] += f * a + r * c + k * b; e[15] += q * a + u * c + x * b; }; b.prototype.prependRotation = function(a, c, b) { void 0 === b && (b = null); this.prepend(k(+a / 180 * Math.PI, c.x, c.y, c.z, b ? b.x : 0, b ? b.y : 0, b ? b.z : 0, this.sec)); }; b.prototype.prependScale = function(a, c, b) { a = +a; c = +c; b = +b; var e = this._matrix; e[0] *= a; e[1] *= a; e[2] *= a; e[3] *= a; e[4] *= c; e[5] *= c; e[6] *= c; e[7] *= c; e[8] *= b; e[9] *= b; e[10] *= b; e[11] *= b; }; b.prototype.transformVector = function(a) { var c = this._matrix, b = a.x, e = a.y; a = a.z; return new this.sec.flash.geom.Vector3D(c[0] * b + c[4] * e + c[8] * a + c[12], c[1] * b + c[5] * e + c[9] * a + c[13], c[2] * b + c[6] * e + c[10] * a + c[14]); }; b.prototype.deltaTransformVector = function(a) { var c = this._matrix, b = a.x, e = a.y; a = a.z; return new this.sec.flash.geom.Vector3D(c[0] * b + c[4] * e + c[8] * a, c[1] * b + c[5] * e + c[9] * a, c[2] * b + c[6] * e + c[10] * a); }; b.prototype.transformVectors = function(a, c) { for (var b = this._matrix, e = b[0], d = b[4], l = b[8], g = b[12], f = b[1], r = b[5], k = b[9], q = b[13], u = b[2], x = b[6], C = b[10], b = b[14], y = 0;y < a.length - 2;y += 3) { var D = a.axGetNumericProperty(y), G = a.axGetNumericProperty(y + 1), F = a.axGetNumericProperty(y + 2); c.push(e * D + d * G + l * F + g); c.push(f * D + r * G + k * F + q); c.push(u * D + x * G + C * F + b); } }; b.prototype.transpose = function() { var a = this._matrix, c; c = a[1]; a[1] = a[4]; a[4] = c; c = a[2]; a[2] = a[8]; a[5] = c; c = a[3]; a[3] = a[12]; a[12] = c; c = a[6]; a[6] = a[9]; a[9] = c; c = a[7]; a[7] = a[13]; a[13] = c; c = a[11]; a[11] = a[14]; a[14] = c; }; b.prototype.pointAt = function(a, c, b) { r("public flash.geom.Matrix3D::pointAt"); }; b.prototype.interpolateTo = function(a, c) { r("public flash.geom.Matrix3D::interpolateTo"); }; b.prototype.copyFrom = function(a) { this._matrix.set(a._matrix); }; b.prototype.copyRawDataTo = function(c) { var b = 0, e = !1; void 0 === b && (b = 0); void 0 === e && (e = !1); var b = b >>> 0, d = this._matrix; if (e) { for (e = 0, b |= 0;16 > e;e++, b++) { c.axSetNumericProperty(b, d[a[e]]); } } else { for (e = 0, b |= 0;16 > e;e++, b++) { c.axSetNumericProperty(b, d[e]); } } }; b.prototype.copyRawDataFrom = function(c) { var b = 0, e = !1; void 0 === b && (b = 0); void 0 === e && (e = !1); var b = b >>> 0, d = this._matrix; if (e) { for (e = 0, b |= 0;16 > e;e++, b++) { d[a[e]] = c.axGetNumericProperty(b) || 0; } } else { for (e = 0, b |= 0;16 > e;e++, b++) { d[e] = c.axGetNumericProperty(b) || 0; } } }; b.prototype.copyRowTo = function(a, c) { var b = a >>> 0 | 0, e = this._matrix; c.x = e[b]; c.y = e[b + 4]; c.z = e[b + 8]; c.w = e[b + 12]; }; b.prototype.copyColumnTo = function(a, c) { var b = a >>> 0 << 2, e = this._matrix; c.x = e[b]; c.y = e[b + 1]; c.z = e[b + 2]; c.w = e[b + 3]; }; b.prototype.copyRowFrom = function(a, c) { var b = a >>> 0 | 0, e = this._matrix; e[b] = c.x; e[b + 4] = c.y; e[b + 8] = c.z; e[b + 12] = c.w; }; b.prototype.copyColumnFrom = function(a, c) { var b = a >>> 0 << 2, e = this._matrix; e[b] = c.x; e[b + 1] = c.y; e[b + 2] = c.z; e[b + 3] = c.w; }; b.classInitializer = null; return b; }(b.ASObject); q.Matrix3D = c; })(q.geom || (q.geom = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(f) { (function(f) { var k = function(b) { function d() { b.call(this); } __extends(d, b); d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; d.EULER_ANGLES = "eulerAngles"; d.AXIS_ANGLE = "axisAngle"; d.QUATERNION = "quaternion"; return d; }(b.ASObject); f.Orientation3D = k; })(f.geom || (f.geom = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(q) { (function(q) { var k = f.Debug.notImplemented, r = function(b) { function a() { b.call(this); } __extends(a, b); Object.defineProperty(a.prototype, "fieldOfView", {get:function() { k("public flash.geom.PerspectiveProjection::get fieldOfView"); }, set:function(a) { k("public flash.geom.PerspectiveProjection::set fieldOfView"); }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "projectionCenter", {get:function() { k("public flash.geom.PerspectiveProjection::get projectionCenter"); }, set:function(a) { k("public flash.geom.PerspectiveProjection::set projectionCenter"); }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "focalLength", {get:function() { k("public flash.geom.PerspectiveProjection::get focalLength"); }, set:function(a) { k("public flash.geom.PerspectiveProjection::set focalLength"); }, enumerable:!0, configurable:!0}); a.prototype.toMatrix3D = function() { k("public flash.geom.PerspectiveProjection::toMatrix3D"); }; a.classInitializer = null; a.classSymbols = null; a.instanceSymbols = null; return a; }(b.ASObject); q.PerspectiveProjection = r; })(q.geom || (q.geom = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(f) { (function(f) { var k = function(b) { function d(a, c) { void 0 === a && (a = 0); void 0 === c && (c = 0); b.call(this); this.x = +a; this.y = +c; } __extends(d, b); Object.defineProperty(d.prototype, "native_x", {get:function() { return this.x; }, set:function(a) { this.x = a; }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "native_y", {get:function() { return this.y; }, set:function(a) { this.y = a; }, enumerable:!0, configurable:!0}); d.prototype.Point = function(a, c) { void 0 === a && (a = 0); void 0 === c && (c = 0); this.x = a; this.y = c; }; Object.defineProperty(d.prototype, "length", {get:function() { return Math.sqrt(this.x * this.x + this.y * this.y); }, enumerable:!0, configurable:!0}); d.interpolate = function(a, c, b) { var d = 1 - b; return new this.sec.flash.geom.Point(a.x * b + c.x * d, a.y * b + c.y * d); }; d.distance = function(a, c) { var b = c.x - a.x, d = c.y - a.y; return 0 === b ? Math.abs(d) : 0 === d ? Math.abs(b) : Math.sqrt(b * b + d * d); }; d.polar = function(a, c) { a = +a; c = +c; return new this.sec.flash.geom.Point(a * Math.cos(c), a * Math.sin(c)); }; d.prototype.clone = function() { return new this.sec.flash.geom.Point(this.x, this.y); }; d.prototype.offset = function(a, c) { this.x += +a; this.y += +c; }; d.prototype.equals = function(a) { return this.x === a.x && this.y === a.y; }; d.prototype.subtract = function(a) { return new this.sec.flash.geom.Point(this.x - a.x, this.y - a.y); }; d.prototype.add = function(a) { return new this.sec.flash.geom.Point(this.x + a.x, this.y + a.y); }; d.prototype.normalize = function(a) { if (0 !== this.x || 0 !== this.y) { a = +a / this.length, this.x *= a, this.y *= a; } }; d.prototype.copyFrom = function(a) { this.x = a.x; this.y = a.y; }; d.prototype.setTo = function(a, c) { this.x = +a; this.y = +c; }; d.prototype.toTwips = function() { this.x = 20 * this.x | 0; this.y = 20 * this.y | 0; return this; }; d.prototype.toPixels = function() { this.x /= 20; this.y /= 20; return this; }; d.prototype.round = function() { this.x = Math.round(this.x); this.y = Math.round(this.y); return this; }; d.prototype.toString = function() { return "(x=" + this.x + ", y=" + this.y + ")"; }; d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; return d; }(b.ASObject); f.Point = k; })(f.geom || (f.geom = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(f) { (function(f) { var k = function(b) { function d(a, c, e, d) { void 0 === a && (a = 0); void 0 === c && (c = 0); void 0 === e && (e = 0); void 0 === d && (d = 0); b.call(this); this.x = +a; this.y = +c; this.width = +e; this.height = +d; } __extends(d, b); d.FromBounds = function(a) { var c = a.xMin, b = a.yMin; return new this.sec.flash.geom.Rectangle(c / 20, b / 20, (a.xMax - c) / 20, (a.yMax - b) / 20); }; Object.defineProperty(d.prototype, "native_x", {get:function() { return this.x; }, set:function(a) { this.x = a; }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "native_y", {get:function() { return this.y; }, set:function(a) { this.y = a; }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "native_width", {get:function() { return this.width; }, set:function(a) { this.width = +a; }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "native_height", {get:function() { return this.height; }, set:function(a) { this.height = +a; }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "left", {get:function() { return this.x; }, set:function(a) { a = +a; this.width += this.x - a; this.x = a; }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "right", {get:function() { return this.x + this.width; }, set:function(a) { this.width = +a - this.x; }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "top", {get:function() { return this.y; }, set:function(a) { a = +a; this.height += this.y - a; this.y = a; }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "bottom", {get:function() { return this.y + this.height; }, set:function(a) { this.height = +a - this.y; }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "topLeft", {get:function() { return new this.sec.flash.geom.Point(this.left, this.top); }, set:function(a) { this.top = a.y; this.left = a.x; }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "bottomRight", {get:function() { return new this.sec.flash.geom.Point(this.right, this.bottom); }, set:function(a) { this.bottom = a.y; this.right = a.x; }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "size", {get:function() { return new this.sec.flash.geom.Point(this.width, this.height); }, set:function(a) { this.width = a.x; this.height = a.y; }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "area", {get:function() { return this.width * this.height; }, enumerable:!0, configurable:!0}); d.prototype.clone = function() { return new this.sec.flash.geom.Rectangle(this.x, this.y, this.width, this.height); }; d.prototype.isEmpty = function() { return 0 >= this.width || 0 >= this.height; }; d.prototype.setEmpty = function() { this.height = this.width = this.y = this.x = 0; return this; }; d.prototype.inflate = function(a, c) { a = +a; c = +c; this.x -= a; this.y -= c; this.width += 2 * a; this.height += 2 * c; }; d.prototype.inflatePoint = function(a) { this.inflate(a.x, a.y); }; d.prototype.offset = function(a, c) { this.x += +a; this.y += +c; }; d.prototype.offsetPoint = function(a) { this.offset(a.x, a.y); }; d.prototype.contains = function(a, c) { a = +a; c = +c; return a >= this.x && a < this.right && c >= this.y && c < this.bottom; }; d.prototype.containsPoint = function(a) { return this.contains(a.x, a.y); }; d.prototype.containsRect = function(a) { var c = a.x + a.width, b = a.y + a.height, d = this.x + this.width, g = this.y + this.height; return a.x >= this.x && a.x < d && a.y >= this.y && a.y < g && c > this.x && c <= d && b > this.y && b <= g; }; d.prototype.intersection = function(a) { return this.clone().intersectInPlace(a); }; d.prototype.intersects = function(a) { return Math.max(this.x, a.x) <= Math.min(this.right, a.right) && Math.max(this.y, a.y) <= Math.min(this.bottom, a.bottom); }; d.prototype.intersectInPlace = function(a) { var c = this.x, b = this.y, d = a.x, g = a.y, f = Math.max(c, d), c = Math.min(c + this.width, d + a.width); if (f <= c && (d = Math.max(b, g), a = Math.min(b + this.height, g + a.height), d <= a)) { return this.setTo(f, d, c - f, a - d), this; } this.setEmpty(); return this; }; d.prototype.intersectInPlaceInt32 = function(a) { var c = this.x | 0, b = this.y | 0, d = this.width | 0, g = this.height | 0, f = a.x | 0, p = a.width | 0, h = Math.max(c, f) | 0, c = Math.min(c + d | 0, f + p | 0) | 0; if (h <= c && (d = a.y | 0, f = a.height | 0, a = Math.max(b, d) | 0, b = Math.min(b + g | 0, d + f | 0), a <= b)) { return this.setTo(h, a, c - h, b - a), this; } this.setEmpty(); return this; }; d.prototype.union = function(a) { return this.clone().unionInPlace(a); }; d.prototype.unionInPlace = function(a) { if (a.isEmpty()) { return this; } if (this.isEmpty()) { return this.copyFrom(a), this; } var c = Math.min(this.x, a.x), b = Math.min(this.y, a.y); this.setTo(c, b, Math.max(this.right, a.right) - c, Math.max(this.bottom, a.bottom) - b); return this; }; d.prototype.equals = function(a) { return this === a || this.x === a.x && this.y === a.y && this.width === a.width && this.height === a.height; }; d.prototype.copyFrom = function(a) { this.x = a.x; this.y = a.y; this.width = a.width; this.height = a.height; }; d.prototype.setTo = function(a, c, b, d) { this.x = +a; this.y = +c; this.width = +b; this.height = +d; }; d.prototype.toTwips = function() { this.x = 20 * this.x | 0; this.y = 20 * this.y | 0; this.width = 20 * this.width | 0; this.height = 20 * this.height | 0; return this; }; d.prototype.getBaseWidth = function(a) { var c = Math.abs(Math.cos(a)); a = Math.abs(Math.sin(a)); return c * this.width + a * this.height; }; d.prototype.getBaseHeight = function(a) { var c = Math.abs(Math.cos(a)); return Math.abs(Math.sin(a)) * this.width + c * this.height; }; d.prototype.toPixels = function() { this.x /= 20; this.y /= 20; this.width /= 20; this.height /= 20; return this; }; d.prototype.snapInPlace = function() { var a = Math.ceil(this.x + this.width), c = Math.ceil(this.y + this.height); this.x = Math.floor(this.x); this.y = Math.floor(this.y); this.width = a - this.x; this.height = c - this.y; return this; }; d.prototype.roundInPlace = function() { var a = Math.round(this.x + this.width), c = Math.round(this.y + this.height); this.x = Math.round(this.x); this.y = Math.round(this.y); this.width = a - this.x; this.height = c - this.y; return this; }; d.prototype.toString = function() { return "(x=" + this.x + ", y=" + this.y + ", w=" + this.width + ", h=" + this.height + ")"; }; d.prototype.hashCode = function() { var a; a = 0 + (20 * this.x | 0); a = 37 * a + (20 * this.y | 0); a *= 37; a += 20 * this.width | 0; a *= 37; return a += 20 * this.height | 0; }; d.prototype.writeExternal = function(a) { a.writeFloat(this.x); a.writeFloat(this.y); a.writeFloat(this.width); a.writeFloat(this.height); }; d.prototype.readExternal = function(a) { this.x = a.readFloat(); this.y = a.readFloat(); this.width = a.readFloat(); this.height = a.readFloat(); }; d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; return d; }(b.ASObject); f.Rectangle = k; })(f.geom || (f.geom = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(g) { (function(q) { (function(q) { var k = f.Debug.notImplemented, r = f.Debug.somewhatImplemented, d = function(a) { function c(c) { a.call(this); c || this.sec.throwError("ArgumentError", b.Errors.NullPointerError, "displayObject"); this._displayObject = c; } __extends(c, a); Object.defineProperty(c.prototype, "matrix", {get:function() { return this._displayObject._getMatrix().clone().toPixelsInPlace(); }, set:function(a) { this._displayObject._setMatrix(a, !0); }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "colorTransform", {get:function() { return this._displayObject._colorTransform.clone(); }, set:function(a) { this._displayObject._setColorTransform(a); }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "concatenatedMatrix", {get:function() { var a = this._displayObject._getConcatenatedMatrix().clone().toPixelsInPlace(); this._displayObject._stage || a.scale(5, 5); return a; }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "concatenatedColorTransform", {get:function() { return this._displayObject._getConcatenatedColorTransform(); }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "pixelBounds", {get:function() { k("public flash.geom.Transform::get pixelBounds"); }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "matrix3D", {get:function() { var a = this._displayObject._matrix3D; return a && a.clone(); }, set:function(a) { this.sec.flash.geom.Matrix3D.axIsType(a) || this.sec.throwError("TypeError", b.Errors.CheckTypeFailedError, a, "flash.geom.Matrix3D"); a = a.rawData; this.matrix = new this.sec.flash.geom.Matrix(a.axGetPublicProperty(0), a.axGetPublicProperty(1), a.axGetPublicProperty(4), a.axGetPublicProperty(5), a.axGetPublicProperty(12), a.axGetPublicProperty(13)); r("public flash.geom.Transform::set matrix3D"); }, enumerable:!0, configurable:!0}); c.prototype.getRelativeMatrix3D = function(a) { k("public flash.geom.Transform::getRelativeMatrix3D"); }; Object.defineProperty(c.prototype, "perspectiveProjection", {get:function() { k("public flash.geom.Transform::get perspectiveProjection"); }, set:function(a) { k("public flash.geom.Transform::set perspectiveProjection"); }, enumerable:!0, configurable:!0}); c.classInitializer = null; c.classSymbols = null; c.instanceSymbols = null; return c; }(g.ASObject); q.Transform = d; })(q.geom || (q.geom = {})); })(g.flash || (g.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(q) { (function(q) { var k = f.Debug.notImplemented, r = function(b) { function a() { b.call(this); } __extends(a, b); a.projectVector = function(a, b) { k("public flash.geom.Utils3D::static projectVector"); }; a.projectVectors = function(a, b, d, g) { k("public flash.geom.Utils3D::static projectVectors"); }; a.pointTowards = function(a, b, d, g, f) { k("public flash.geom.Utils3D::static pointTowards"); }; a.classInitializer = null; a.classSymbols = null; a.instanceSymbols = null; return a; }(b.ASObject); q.Utils3D = r; })(q.geom || (q.geom = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(f) { (function(f) { var k = function(b) { function d(a, c, e, d) { void 0 === a && (a = 0); void 0 === c && (c = 0); void 0 === e && (e = 0); void 0 === d && (d = 0); b.call(this); this.x = +a; this.y = +c; this.z = +e; this.w = +d; } __extends(d, b); d.classInitializer = function() { this.X_AXIS = Object.freeze(this.Create(1, 0, 0, 0)); this.Y_AXIS = Object.freeze(this.Create(1, 0, 0, 0)); this.Z_AXIS = Object.freeze(this.Create(1, 0, 0, 0)); }; d.Create = function(a, c, b, d) { var g = Object.create(this.tPrototype); g.x = a; g.y = c; g.z = b; g.w = d; return g; }; Object.defineProperty(d.prototype, "native_x", {get:function() { return this.x; }, set:function(a) { this.x = a; }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "native_y", {get:function() { return this.y; }, set:function(a) { this.y = a; }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "native_z", {get:function() { return this.z; }, set:function(a) { this.z = a; }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "native_w", {get:function() { return this.w; }, set:function(a) { this.w = a; }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "length", {get:function() { return Math.sqrt(this.lengthSquared); }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "lengthSquared", {get:function() { return this.x * this.x + this.y * this.y + this.z * this.z; }, enumerable:!0, configurable:!0}); d.angleBetween = function(a, c) { return Math.acos(a.dotProduct(c) / (a.length * c.length)); }; d.distance = function(a, c) { return a.subtract(c).length; }; d.prototype.dotProduct = function(a) { return this.x * a.x + this.y * a.y + this.z * a.z; }; d.prototype.crossProduct = function(a) { return new this.sec.flash.geom.Vector3D(this.y * a.z - this.z * a.y, this.z * a.x - this.x * a.z, this.x * a.y - this.y * a.x, 1); }; d.prototype.normalize = function() { var a = this.length; 0 !== a ? (this.x /= a, this.y /= a, this.z /= a) : this.x = this.y = this.z = 0; return a; }; d.prototype.scaleBy = function(a) { a = +a; this.x *= a; this.y *= a; this.z *= a; }; d.prototype.incrementBy = function(a) { this.x += a.x; this.y += a.y; this.z += a.z; }; d.prototype.decrementBy = function(a) { this.x -= a.x; this.y -= a.y; this.z -= a.z; }; d.prototype.add = function(a) { return new this.sec.flash.geom.Vector3D(this.x + a.x, this.y + a.y, this.z + a.z); }; d.prototype.subtract = function(a) { return new this.sec.flash.geom.Vector3D(this.x - a.x, this.y - a.y, this.z - a.z); }; d.prototype.negate = function() { this.x = -this.x; this.y = -this.y; this.z = -this.z; }; d.prototype.equals = function(a, c) { return this.x === a.x && this.y === a.y && this.z === a.z && (!c || this.w === a.w); }; d.prototype.nearEquals = function(a, c, b) { return Math.abs(this.x - a.x) < c && Math.abs(this.y - a.y) < c && Math.abs(this.z - a.z) < c && (!b || Math.abs(this.w - a.w) < c); }; d.prototype.project = function() { this.x /= this.w; this.y /= this.w; this.z /= this.w; }; d.prototype.copyFrom = function(a) { this.x = a.x; this.y = a.y; this.z = a.z; }; d.prototype.setTo = function(a, c, b) { this.x = +a; this.y = +c; this.z = +b; }; d.prototype.clone = function() { return new this.sec.flash.geom.Vector3D(this.x, this.y, this.z, this.w); }; d.prototype.toString = function() { return "Vector3D(" + this.x + ", " + this.y + ", " + this.z + ")"; }; return d; }(b.ASObject); f.Vector3D = k; })(f.geom || (f.geom = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(q) { (function(q) { var k = f.Debug.notImplemented, r = f.Debug.somewhatImplemented, d = function(a) { function c() { a.call(this); } __extends(c, a); Object.defineProperty(c, "active", {get:function() { r("public flash.accessibility.Accessibility::get active"); return c._active; }, enumerable:!0, configurable:!0}); c.sendEvent = function(a, c, b, d) { k("public flash.accessibility.Accessibility::static sendEvent"); }; c.updateProperties = function() { k("public flash.accessibility.Accessibility::static updateProperties"); }; c.classInitializer = null; c.classSymbols = null; c.instanceSymbols = null; c._active = !1; return c; }(b.ASObject); q.Accessibility = d; })(q.accessibility || (q.accessibility = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(f) { (function(f) { var k = function(b) { function d() { b.call(this); } __extends(d, b); d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; return d; }(b.ASObject); f.AccessibilityImplementation = k; })(f.accessibility || (f.accessibility = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(f) { (function(f) { var k = function(b) { function d() { b.call(this); } __extends(d, b); d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; return d; }(b.ASObject); f.AccessibilityProperties = k; })(f.accessibility || (f.accessibility = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(q) { (function(q) { var k = f.AVMX.axCoerceString, r = function(b) { function a(a, e, l) { b.call(this); this._type = k(a); this._bubbles = !!e; this._cancelable = !!l; this._currentTarget = this._target = null; this._eventPhase = q.EventPhase.AT_TARGET; this._isDefaultPrevented = this._stopImmediatePropagation = this._stopPropagation = !1; } __extends(a, b); a.getInstance = function(a, b) { var d; void 0 === b && (b = !1); void 0 === d && (d = !1); var g = this._instances[a]; g || (g = new this.sec.flash.events.Event(a, b, d), this._instances[a] = g); g._bubbles = b; g._cancelable = d; return g; }; a.getBroadcastInstance = function(a) { var b, d; void 0 === b && (b = !1); void 0 === d && (d = !1); var g = this._instances[a]; g || (g = new this.sec.flash.events.Event(a, b, d), this._instances[a] = g); g._isBroadcastEvent = !0; g._bubbles = b; g._cancelable = d; return g; }; a.isBroadcastEventType = function(c) { switch(c) { case a.ENTER_FRAME: ; case a.EXIT_FRAME: ; case a.FRAME_CONSTRUCTED: ; case a.RENDER: ; case a.ACTIVATE: ; case a.DEACTIVATE: return !0; } return !1; }; Object.defineProperty(a.prototype, "type", {get:function() { return this._type; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "bubbles", {get:function() { return this._bubbles; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "cancelable", {get:function() { return this._cancelable; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "target", {get:function() { return this._target; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "currentTarget", {get:function() { return this._currentTarget; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "eventPhase", {get:function() { return this._eventPhase; }, enumerable:!0, configurable:!0}); a.prototype.stopPropagation = function() { this._stopPropagation = !0; }; a.prototype.stopImmediatePropagation = function() { this._stopImmediatePropagation = this._stopPropagation = !0; }; a.prototype.preventDefault = function() { this._cancelable && (this._isDefaultPrevented = !0); }; a.prototype.isDefaultPrevented = function() { return this._isDefaultPrevented; }; a.prototype.isBroadcastEvent = function() { return !!this._isBroadcastEvent; }; a.prototype.clone = function() { return new this.sec.flash.events.Event(this._type, this._bubbles, this._cancelable); }; a.prototype.toString = function() { return this.formatToString("Event", "type", "bubbles", "cancelable", "eventPhase"); }; a.prototype.formatToString = function(a) { for (var b = [], d = 1;d < arguments.length;d++) { b[d - 1] = arguments[d]; } for (var d = "[" + a, g = 0;g < b.length;g++) { var f = b[g], p = this.axGetPublicProperty(f); "string" === typeof p && (p = '"' + p + '"'); d += " " + f + "=" + p; } return d + "]"; }; a.classInitializer = function() { this._instances = f.ObjectUtilities.createMap(); }; a.ACTIVATE = "activate"; a.ADDED = "added"; a.ADDED_TO_STAGE = "addedToStage"; a.CANCEL = "cancel"; a.CHANGE = "change"; a.CLEAR = "clear"; a.CLOSE = "close"; a.COMPLETE = "complete"; a.CONNECT = "connect"; a.COPY = "copy"; a.CUT = "cut"; a.DEACTIVATE = "deactivate"; a.ENTER_FRAME = "enterFrame"; a.FRAME_CONSTRUCTED = "frameConstructed"; a.EXIT_FRAME = "exitFrame"; a.FRAME_LABEL = "frameLabel"; a.ID3 = "id3"; a.INIT = "init"; a.MOUSE_LEAVE = "mouseLeave"; a.OPEN = "open"; a.PASTE = "paste"; a.REMOVED = "removed"; a.REMOVED_FROM_STAGE = "removedFromStage"; a.RENDER = "render"; a.RESIZE = "resize"; a.SCROLL = "scroll"; a.TEXT_INTERACTION_MODE_CHANGE = "textInteractionModeChange"; a.SELECT = "select"; a.SELECT_ALL = "selectAll"; a.SOUND_COMPLETE = "soundComplete"; a.TAB_CHILDREN_CHANGE = "tabChildrenChange"; a.TAB_ENABLED_CHANGE = "tabEnabledChange"; a.TAB_INDEX_CHANGE = "tabIndexChange"; a.UNLOAD = "unload"; a.FULLSCREEN = "fullScreen"; a.CONTEXT3D_CREATE = "context3DCreate"; a.TEXTURE_READY = "textureReady"; a.VIDEO_FRAME = "videoFrame"; a.SUSPEND = "suspend"; a.AVM1_INIT = "initialize"; a.AVM1_CONSTRUCT = "construct"; a.AVM1_LOAD = "load"; return a; }(b.ASObject); q.Event = r; })(q.events || (q.events = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(g) { (function(q) { (function(q) { var k = f.AVMX.axCoerceString, r = f.isNullOrUndefined, d = function() { return function(a, c, b) { this.listener = a; this.useCapture = c; this.priority = b; }; }(), a = function() { function a() { this._aliasCount = 0; this._entries = []; } a.prototype.isEmpty = function() { return 0 === this._entries.length; }; a.prototype.insert = function(a, c, b) { for (var e = this._entries, m = e.length, l = m - 1;0 <= l;l--) { var g = e[l]; if (g.listener === a) { return; } if (b > g.priority) { m = l; } else { break; } } e = this.ensureNonAliasedEntries(); e.splice(m, 0, new d(a, c, b)); }; a.prototype.ensureNonAliasedEntries = function() { var a = this._entries; 0 < this._aliasCount && (a = this._entries = a.slice(), this._aliasCount = 0); return a; }; a.prototype.remove = function(a) { for (var c = this._entries, b = 0;b < c.length;b++) { if (c[b].listener === a) { this.ensureNonAliasedEntries().splice(b, 1); break; } } }; a.prototype.snapshot = function() { this._aliasCount++; return this._entries; }; a.prototype.releaseSnapshot = function(a) { this._entries === a && 0 < this._aliasCount && this._aliasCount--; }; return a; }(), c = function() { function a() { this.reset(); } a.prototype.reset = function() { this._queues = Object.create(null); }; a.prototype.add = function(a, c) { var b = this._queues[a] || (this._queues[a] = []); 0 <= b.indexOf(c) || b.push(c); }; a.prototype.remove = function(a, c) { var b = this._queues[a], e = b.indexOf(c); b[e] = null; }; a.prototype.dispatchEvent = function(a) { var c = this._queues[a._type]; if (c) { for (var b = 0, e = 0;e < c.length;e++) { var d = c[e]; if (null === d) { b++; } else { try { d.dispatchEvent(a); } catch (l) { f.Debug.warning("caught error under broadcast event " + a._type + ": ", l); } } } if (16 < b && b > c.length >> 1) { b = []; for (e = 0;e < c.length;e++) { c[e] && b.push(c[e]); } this._queues[a.type] = b; } } }; a.prototype.getQueueLength = function(a) { return this._queues[a] ? this._queues[a].length : 0; }; return a; }(); q.BroadcastEventDispatchQueue = c; var e = function(e) { function d(a) { void 0 === a && (a = null); e.call(this); this._fieldsInitialized || this._initializeFields(a || this); } __extends(d, e); d.classInitializer = function() { this.broadcastEventDispatchQueue = new c; }; d.prototype._initializeFields = function(a) { this._fieldsInitialized = !0; this._target = a; this._targetOrBubblingListeners = this._captureListeners = null; }; d.prototype.toString = function() { return this.sec.AXObject.dPrototype.$BgtoString.axCall(this); }; d.prototype._getListenersForType = function(a, c) { var b = a ? this._captureListeners : this._targetOrBubblingListeners; return b ? b[c] : null; }; d.prototype._getListeners = function(a) { return a ? this._captureListeners || (this._captureListeners = Object.create(null)) : this._targetOrBubblingListeners || (this._targetOrBubblingListeners = Object.create(null)); }; d.prototype.addEventListener = function(c, e, d, m, l) { void 0 === d && (d = !1); void 0 === m && (m = 0); void 0 === l && (l = !1); (2 > arguments.length || 5 < arguments.length) && this.sec.throwError("ArgumentError", b.Errors.WrongArgumentCountError, "flash.events::EventDispatcher/addEventListener()", 2, arguments.length); b.axIsCallable(e) || this.sec.throwError("TypeError", b.Errors.CheckTypeFailedError, e, "Function"); r(c) && this.sec.throwError("TypeError", b.Errors.NullPointerError, "type"); c = k(c); d = !!d; m |= 0; l = !!l; var g = this._getListeners(d); (g[c] || (g[c] = new a)).insert(e, d, m); !d && q.Event.isBroadcastEventType(c) && this.sec.flash.events.EventDispatcher.axClass.broadcastEventDispatchQueue.add(c, this); }; d.prototype.removeEventListener = function(a, c, e) { void 0 === e && (e = !1); (2 > arguments.length || 3 < arguments.length) && this.sec.throwError("ArgumentError", b.Errors.WrongArgumentCountError, "flash.events::EventDispatcher/removeEventListener()", 2, arguments.length); b.axIsCallable(c) || this.sec.throwError("TypeError", b.Errors.CheckTypeFailedError, c, "Function"); r(a) && this.sec.throwError("TypeError", b.Errors.NullPointerError, "type"); a = k(a); var d = this._getListeners(!!e), l = d[a]; l && (l.remove(c), l.isEmpty() && (!e && q.Event.isBroadcastEventType(a) && this.sec.flash.events.EventDispatcher.axClass.broadcastEventDispatchQueue.remove(a, this), d[a] = null)); }; d.prototype._hasTargetOrBubblingEventListener = function(a) { return !(!this._targetOrBubblingListeners || !this._targetOrBubblingListeners[a]); }; d.prototype._hasCaptureEventListener = function(a) { return !(!this._captureListeners || !this._captureListeners[a]); }; d.prototype._hasEventListener = function(a) { return this._hasTargetOrBubblingEventListener(a) || this._hasCaptureEventListener(a); }; d.prototype.hasEventListener = function(a) { 1 !== arguments.length && this.sec.throwError("ArgumentError", b.Errors.WrongArgumentCountError, "flash.events::EventDispatcher/hasEventListener()", 1, arguments.length); r(a) && this.sec.throwError("TypeError", b.Errors.NullPointerError, "type"); a = k(a); return this._hasEventListener(a); }; d.prototype.willTrigger = function(a) { 1 !== arguments.length && this.sec.throwError("ArgumentError", b.Errors.WrongArgumentCountError, "flash.events::EventDispatcher/hasEventListener()", 1, arguments.length); r(a) && this.sec.throwError("TypeError", b.Errors.NullPointerError, "type"); a = k(a); if (this._hasEventListener(a)) { return !0; } if (this.sec.flash.display.DisplayObject.axIsType(this)) { var c = this._parent; do { if (c._hasEventListener(a)) { return !0; } } while (c = c._parent); } return !1; }; d.prototype._skipDispatchEvent = function(a) { if (this._hasEventListener(a.type)) { return !1; } if (!a.isBroadcastEvent() && a._bubbles && this.sec.flash.display.DisplayObject.axIsType(this)) { for (var c = this._parent;c;c = c._parent) { if (c._hasEventListener(a.type)) { return !1; } } } return !0; }; d.prototype.dispatchEvent = function(a) { 1 !== arguments.length && this.sec.throwError("ArgumentError", b.Errors.WrongArgumentCountError, "flash.events::EventDispatcher/dispatchEvent()", 1, arguments.length); if (this._skipDispatchEvent(a)) { return !0; } var c = a._type, e = this._target, m = !0, l = []; if (!a.isBroadcastEvent() && this.sec.flash.display.DisplayObject.axIsType(this)) { for (var g = this._parent;g;) { g._hasEventListener(c) && l.push(g), g = g._parent; } for (g = l.length - 1;0 <= g && m;g--) { var f = l[g]; if (f._hasCaptureEventListener(c)) { var r = f._getListenersForType(!0, c), m = d.callListeners(r, a, e, f, q.EventPhase.CAPTURING_PHASE) } } } m && (r = this._getListenersForType(!1, c)) && (m = d.callListeners(r, a, e, e, q.EventPhase.AT_TARGET)); if (!a.isBroadcastEvent() && m && a.bubbles) { for (g = 0;g < l.length && m;g++) { f = l[g], f._hasTargetOrBubblingEventListener(c) && (r = f._getListenersForType(!1, c), m = d.callListeners(r, a, e, f, q.EventPhase.BUBBLING_PHASE)); } } return !a._isDefaultPrevented; }; d.callListeners = function(a, c, b, e, d) { if (a.isEmpty()) { return !0; } c._target && (c = c.axCallPublicProperty("clone", null)); for (var l = a.snapshot(), g = 0;g < l.length;g++) { var f = l[g]; c._target = b; c._currentTarget = e; c._eventPhase = d; "function" === typeof f.listener ? f.listener(c) : f.listener.call(f.listener, c); if (c._stopImmediatePropagation) { break; } } a.releaseSnapshot(l); return !c._stopPropagation; }; return d; }(g.ASObject); q.EventDispatcher = e; })(q.events || (q.events = {})); })(g.flash || (g.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(f) { (function(f) { var k = function(b) { function d() { b.call(this); } __extends(d, b); d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; d.CAPTURING_PHASE = 1; d.AT_TARGET = 2; d.BUBBLING_PHASE = 3; return d; }(b.ASObject); f.EventPhase = k; })(f.events || (f.events = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(b) { (function(g) { var k = f.Debug.notImplemented, r = function(b) { function a(a, e, l, g) { b.call(this, a, e, l); this._text = g; } __extends(a, b); Object.defineProperty(a.prototype, "text", {get:function() { return this._text; }, set:function(a) { this._text = a; }, enumerable:!0, configurable:!0}); a.prototype.clone = function() { return new this.sec.flash.events.TextEvent(this.type, this.bubbles, this.cancelable, this.text); }; a.prototype.toString = function() { return this.formatToString("TextEvent", "type", "bubbles", "cancelable", "text"); }; a.prototype.copyNativeData = function(a) { k("public flash.events.TextEvent::copyNativeData"); }; a.classInitializer = null; a.classSymbols = null; a.instanceSymbols = null; a.LINK = "link"; a.TEXT_INPUT = "textInput"; return a; }(b.events.Event); g.TextEvent = r; })(b.events || (b.events = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(b) { (function(g) { var f = function(b) { function d(a, c, e, d, g) { void 0 === c && (c = !1); void 0 === e && (e = !1); void 0 === d && (d = ""); void 0 === g && (g = 0); b.call(this, a, c, e, d); this.setID(g); } __extends(d, b); d.prototype.setID = function(a) { this._id = a; }; Object.defineProperty(d.prototype, "errorID", {get:function() { return this._id; }, enumerable:!0, configurable:!0}); d.prototype.clone = function() { return new this.sec.flash.events.ErrorEvent(this.type, this.bubbles, this.cancelable, this.text, this.errorID); }; d.prototype.toString = function() { return this.formatToString("ErrorEvent", "type", "bubbles", "cancelable", "text", "errorID"); }; d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; d.ERROR = "error"; return d; }(b.events.TextEvent); g.ErrorEvent = f; })(b.events || (b.events = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(b) { (function(g) { var f = function(b) { function d(a, c, e, d) { void 0 === c && (c = !1); void 0 === e && (e = !1); void 0 === d && (d = null); b.call(this, a, c, e); this.device = d; } __extends(d, b); d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; d.DEVICE_ADDED = "deviceAdded"; d.DEVICE_REMOVED = "deviceRemoved"; return d; }(b.events.Event); g.GameInputEvent = f; })(b.events || (b.events = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(b) { (function(g) { var k = f.AVMX.axCoerceString, r = f.Debug.somewhatImplemented, d = function(a) { function c(c, b, d, g, f, h, m, v, r) { void 0 === b && (b = !0); void 0 === d && (d = !1); void 0 === g && (g = null); void 0 === f && (f = 0); void 0 === h && (h = 0); void 0 === m && (m = !1); void 0 === v && (v = !1); void 0 === r && (r = !1); a.call(this, c, b, d); this._phase = k(g); this._localX = +f; this._localY = +h; this._ctrlKey = !!m; this._altKey = !!v; this._shiftKey = !!r; } __extends(c, a); Object.defineProperty(c.prototype, "localX", {get:function() { return this._localX; }, set:function(a) { this._localX = +a; }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "localY", {get:function() { return this._localY; }, set:function(a) { this._localY = +a; }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "stageX", {get:function() { r("public flash.events.GestureEvent::stageX"); return 0; }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "stageY", {get:function() { r("public flash.events.GestureEvent::stageY"); return 0; }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "ctrlKey", {get:function() { return this._ctrlKey; }, set:function(a) { this._ctrlKey = !!a; }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "altKey", {get:function() { return this._altKey; }, set:function(a) { this._altKey = !!a; }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "shiftKey", {get:function() { return this._shiftKey; }, set:function(a) { this._shiftKey = !!a; }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "phase", {get:function() { return this._phase; }, set:function(a) { this._phase = k(a); }, enumerable:!0, configurable:!0}); c.prototype.updateAfterEvent = function() { r("public flash.events.GestureEvent::updateAfterEvent"); }; c.prototype.NativeCtor = function(a, c, b, d, g, h) { this._phase = k(a); this._localX = +c; this._localY = +b; this._ctrlKey = !!d; this._altKey = !!g; this._shiftKey = !!h; }; c.prototype.clone = function() { return new this.sec.flash.events.GestureEvent(this.type, this.bubbles, this.cancelable, this.phase, this.localX, this.localY, this.ctrlKey, this.altKey, this.shiftKey); }; c.prototype.toString = function() { return this.formatToString("GestureEvent", "type", "bubbles", "cancelable", "eventPhase", "localX", "localY", "ctrlKey", "altKey", "shiftKey"); }; c.classInitializer = null; c.classSymbols = null; c.instanceSymbols = null; c.GESTURE_TWO_FINGER_TAP = "gestureTwoFingerTap"; return c; }(b.events.Event); g.GestureEvent = d; })(b.events || (b.events = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(b) { (function(g) { var f = function(b) { function d(a, c, e, d) { void 0 === c && (c = !1); void 0 === e && (e = !1); void 0 === d && (d = 0); b.call(this, a, c, e); this._status = d | 0; } __extends(d, b); d.prototype._setStatus = function(a) { this._status = a; }; Object.defineProperty(d.prototype, "status", {get:function() { return this._status; }, enumerable:!0, configurable:!0}); d.prototype.clone = function() { return new this.sec.flash.events.HTTPStatusEvent(this.type, this.bubbles, this.cancelable, this.status); }; d.prototype.toString = function() { return this.formatToString("HTTPStatusEvent", "type", "bubbles", "cancelable", "eventPhase", "status"); }; d.classInitializer = null; d.HTTP_STATUS = "httpStatus"; d.HTTP_RESPONSE_STATUS = "httpResponseStatus"; return d; }(b.events.Event); g.HTTPStatusEvent = f; })(b.events || (b.events = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(b) { (function(g) { var f = function(b) { function d(a, c, e, d, g) { void 0 === c && (c = !1); void 0 === e && (e = !1); void 0 === d && (d = ""); void 0 === g && (g = 0); b.call(this, a, c, e, d, g); } __extends(d, b); d.prototype.clone = function() { return new this.sec.flash.events.IOErrorEvent(this.type, this.bubbles, this.cancelable, this.text, this.errorID); }; d.prototype.toString = function() { return this.formatToString("IOErrorEvent", "type", "bubbles", "cancelable", "text", "errorID"); }; d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; d.IO_ERROR = "ioError"; d.NETWORK_ERROR = "networkError"; d.DISK_ERROR = "diskError"; d.VERIFY_ERROR = "verifyError"; return d; }(b.events.ErrorEvent); g.IOErrorEvent = f; })(b.events || (b.events = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(b) { (function(g) { var f = function(b) { function d(a, c, e, d, g, f, p, h, m) { void 0 === c && (c = !0); void 0 === e && (e = !1); void 0 === d && (d = 0); void 0 === g && (g = 0); void 0 === f && (f = 0); void 0 === p && (p = !1); void 0 === h && (h = !1); void 0 === m && (m = !1); b.call(this, a, c, e); this._charCode = d >>> 0; this._keyCode = g >>> 0; this._keyLocation = f >>> 0; this._ctrlKey = !!p; this._altKey = !!h; this._shiftKey = !!m; } __extends(d, b); Object.defineProperty(d.prototype, "charCode", {get:function() { return this._charCode; }, set:function(a) { this._charCode = a; }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "keyCode", {get:function() { return this._keyCode; }, set:function(a) { this._keyCode = a; }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "keyLocation", {get:function() { return this._keyLocation; }, set:function(a) { this._keyLocation = a; }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "ctrlKey", {get:function() { return this._ctrlKey; }, set:function(a) { this._ctrlKey = a; }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "altKey", {get:function() { return this._altKey; }, set:function(a) { this._altKey = a; }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "shiftKey", {get:function() { return this._shiftKey; }, set:function(a) { this._shiftKey = a; }, enumerable:!0, configurable:!0}); d.prototype.clone = function() { return new this.sec.flash.events.KeyboardEvent(this.type, this.bubbles, this.cancelable, this.charCode, this.keyCode, this.keyLocation, this.ctrlKey, this.altKey, this.shiftKey); }; d.prototype.toString = function() { return this.formatToString("KeyboardEvent", "type", "bubbles", "cancelable", "eventPhase", "charCode", "keyCode", "keyLocation", "ctrlKey", "altKey", "shiftKey"); }; d.prototype.updateAfterEvent = function() { this.sec.player.requestRendering(); }; d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; d.KEY_DOWN = "keyDown"; d.KEY_UP = "keyUp"; return d; }(b.events.Event); g.KeyboardEvent = f; })(b.events || (b.events = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(b) { (function(g) { var k = f.Debug.notImplemented, r = function(b) { function a(a, e, l, g, f, p, h, m, v, r, k) { void 0 === e && (e = !0); void 0 === l && (l = !1); void 0 === g && (g = void 0); void 0 === f && (f = void 0); void 0 === p && (p = null); void 0 === h && (h = !1); void 0 === m && (m = !1); void 0 === v && (v = !1); void 0 === r && (r = !1); void 0 === k && (k = 0); b.call(this, a, e, l); this._localX = g; this._localY = f; this._relatedObject = p; this._ctrlKey = h; this._altKey = m; this._shiftKey = v; this._buttonDown = r; this._delta = k; } __extends(a, b); a.typeFromDOMType = function(c) { switch(c) { case "click": return a.CLICK; case "dblclick": return a.DOUBLE_CLICK; case "mousedown": return a.MOUSE_DOWN; case "mouseout": ; case "mouseover": ; case "mousemove": return a.MOUSE_MOVE; case "mouseup": return a.MOUSE_UP; default: k(c); } }; Object.defineProperty(a.prototype, "localX", {get:function() { return this._localX / 20 | 0; }, set:function(a) { this._localX = 20 * a | 0; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "localY", {get:function() { return this._localY / 20 | 0; }, set:function(a) { this._localY = 20 * a | 0; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "stageX", {get:function() { return isNaN(this.localX + this.localY) ? Number.NaN : this._getGlobalPoint().x / 20 | 0; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "stageY", {get:function() { return isNaN(this.localX + this.localY) ? Number.NaN : this._getGlobalPoint().y / 20 | 0; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "movementX", {get:function() { return this._movementX || 0; }, set:function(a) { this._movementX = +a; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "movementY", {get:function() { return this._movementY || 0; }, set:function(a) { this._movementY = +a; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "delta", {get:function() { return this._delta; }, set:function(a) { this._delta = a; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "ctrlKey", {get:function() { return this._ctrlKey; }, set:function(a) { this._ctrlKey = a; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "altKey", {get:function() { return this._altKey; }, set:function(a) { this._altKey = a; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "shiftKey", {get:function() { return this._shiftKey; }, set:function(a) { this._shiftKey = a; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "buttonDown", {get:function() { return this._buttonDown; }, set:function(a) { this._buttonDown = a; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "relatedObject", {get:function() { return this._relatedObject; }, set:function(a) { this._relatedObject = a; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "isRelatedObjectInaccessible", {get:function() { return this._isRelatedObjectInaccessible; }, set:function(a) { this._isRelatedObjectInaccessible = a; }, enumerable:!0, configurable:!0}); a.prototype.updateAfterEvent = function() { this.sec.player.requestRendering(); }; a.prototype._getGlobalPoint = function() { var a = this._position; a || (a = this._position = new this.sec.flash.geom.Point); this.target ? (a.setTo(this._localX, this._localY), this._target._getConcatenatedMatrix().transformPointInPlace(a)) : a.setTo(0, 0); return a; }; a.prototype.clone = function() { return new this.sec.flash.events.MouseEvent(this.type, this.bubbles, this.cancelable, this.localX, this.localY, this.relatedObject, this.ctrlKey, this.altKey, this.shiftKey, this.buttonDown, this.delta); }; a.prototype.toString = function() { return this.formatToString("MouseEvent", "type", "bubbles", "cancelable", "eventPhase", "localX", "localY", "relatedObject", "ctrlKey", "altKey", "shiftKey", "buttonDown", "delta"); }; a.classInitializer = null; a.classSymbols = null; a.instanceSymbols = null; a.CLICK = "click"; a.DOUBLE_CLICK = "doubleClick"; a.MOUSE_DOWN = "mouseDown"; a.MOUSE_MOVE = "mouseMove"; a.MOUSE_OUT = "mouseOut"; a.MOUSE_OVER = "mouseOver"; a.MOUSE_UP = "mouseUp"; a.RELEASE_OUTSIDE = "releaseOutside"; a.MOUSE_WHEEL = "mouseWheel"; a.ROLL_OUT = "rollOut"; a.ROLL_OVER = "rollOver"; a.MIDDLE_CLICK = "middleClick"; a.MIDDLE_MOUSE_DOWN = "middleMouseDown"; a.MIDDLE_MOUSE_UP = "middleMouseUp"; a.RIGHT_CLICK = "rightClick"; a.RIGHT_MOUSE_DOWN = "rightMouseDown"; a.RIGHT_MOUSE_UP = "rightMouseUp"; a.CONTEXT_MENU = "contextMenu"; return a; }(b.events.Event); g.MouseEvent = r; })(b.events || (b.events = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(b) { (function(g) { var f = function(b) { function d(a, c, e, d) { void 0 === c && (c = !1); void 0 === e && (e = !1); void 0 === d && (d = null); b.call(this, a, c, e); this._info = d; } __extends(d, b); Object.defineProperty(d.prototype, "info", {get:function() { return this._info; }, set:function(a) { this._info = a; }, enumerable:!0, configurable:!0}); d.prototype.clone = function() { return new this.sec.flash.events.NetStatusEvent(this.type, this.bubbles, this.cancelable, this.info); }; d.prototype.toString = function() { return this.formatToString("NetStatusEvent", "type", "bubbles", "cancelable", "eventPhase", "info"); }; d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; d.NET_STATUS = "netStatus"; return d; }(b.events.Event); g.NetStatusEvent = f; })(b.events || (b.events = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(b) { (function(g) { var f = function(b) { function d(a, c, e, d, g) { void 0 === c && (c = !1); void 0 === e && (e = !1); void 0 === d && (d = 0); void 0 === g && (g = 0); b.call(this, a, c, e); this._bytesLoaded = d; this._bytesTotal = g; } __extends(d, b); Object.defineProperty(d.prototype, "bytesLoaded", {get:function() { return this._bytesLoaded; }, set:function(a) { this._bytesLoaded = a; }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "bytesTotal", {get:function() { return this._bytesTotal; }, set:function(a) { this._bytesTotal = a; }, enumerable:!0, configurable:!0}); d.prototype.clone = function() { return new this.sec.flash.events.ProgressEvent(this._type, this._bubbles, this._cancelable, this._bytesLoaded, this._bytesTotal); }; d.prototype.toString = function() { return this.formatToString("ProgressEvent", "bubbles", "cancelable", "eventPhase", "bytesLoaded", "bytesTotal"); }; d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; d.PROGRESS = "progress"; d.SOCKET_DATA = "socketData"; return d; }(b.events.Event); g.ProgressEvent = f; })(b.events || (b.events = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(b) { (function(g) { var f = function(b) { function d(a, c, e, d, g) { void 0 === c && (c = !1); void 0 === e && (e = !1); void 0 === d && (d = ""); void 0 === g && (g = 0); b.call(this, a, c, e, d, g); } __extends(d, b); d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; d.SECURITY_ERROR = "securityError"; return d; }(b.events.ErrorEvent); g.SecurityErrorEvent = f; })(b.events || (b.events = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(b) { (function(g) { var f = function(b) { function d(a, c, e) { b.call(this, a, c, e); } __extends(d, b); d.prototype.clone = function() { return new this.sec.flash.events.TimerEvent(this.type, this.bubbles, this.cancelable); }; d.prototype.toString = function() { return this.formatToString("TimerEvent", "type", "bubbles", "cancelable", "eventPhase"); }; d.prototype.updateAfterEvent = function() { this.sec.player.requestRendering(); }; d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; d.TIMER = "timer"; d.TIMER_COMPLETE = "timerComplete"; return d; }(b.events.Event); g.TimerEvent = f; })(b.events || (b.events = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(b) { (function(g) { var k = f.Debug.somewhatImplemented, r = function(b) { function a(a, e, l, g, f, p, h, m, v, r, k, q, u, A) { void 0 === e && (e = !0); void 0 === l && (l = !1); b.call(this, a, e, l); } __extends(a, b); Object.defineProperty(a.prototype, "touchPointID", {get:function() { return this._touchPointID; }, set:function(a) { this._touchPointID = +a; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "isPrimaryTouchPoint", {get:function() { return this._isPrimaryTouchPoint; }, set:function(a) { this._isPrimaryTouchPoint = !!a; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "localX", {get:function() { return this._localX; }, set:function(a) { this._localX = +a; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "localY", {get:function() { return this._localY; }, set:function(a) { this._localY = +a; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "sizeX", {get:function() { return this._sizeX; }, set:function(a) { this._sizeX = +a; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "sizeY", {get:function() { return this._sizeY; }, set:function(a) { this._sizeY = +a; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "pressure", {get:function() { return this._pressure; }, set:function(a) { this._pressure = +a; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "relatedObject", {get:function() { return this._relatedObject; }, set:function(a) { this._relatedObject = a; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "ctrlKey", {get:function() { return this._ctrlKey; }, set:function(a) { this._ctrlKey = !!a; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "altKey", {get:function() { return this._altKey; }, set:function(a) { this._altKey = !!a; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "shiftKey", {get:function() { return this._shiftKey; }, set:function(a) { this._shiftKey = !!a; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "stageX", {get:function() { k("TouchEvent::get stageX"); return this._localX; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "stageY", {get:function() { k("TouchEvent::get stageY"); return this._localY; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "isRelatedObjectInaccessible", {get:function() { return this._isRelatedObjectInaccessible; }, set:function(a) { this._isRelatedObjectInaccessible = a; }, enumerable:!0, configurable:!0}); a.prototype.clone = function() { return new this.sec.flash.events.TouchEvent(this.type, this.bubbles, this.cancelable, this.touchPointID, this.isPrimaryTouchPoint, this.localX, this.localY, this.sizeX, this.sizeY, this.pressure, this.relatedObject, this.ctrlKey, this.altKey, this.shiftKey); }; a.prototype.toString = function() { return this.formatToString("TouchEvent", "type", "bubbles", "cancelable", "eventPhase", "touchPointID", "isPrimaryTouchPoint", "localX", "localY", "sizeX", "sizeY", "pressure", "relatedObject", "ctrlKey", "altKey", "shiftKey"); }; a.prototype.updateAfterEvent = function() { this.sec.player.requestRendering(); }; a.classInitializer = null; a.classSymbols = null; a.instanceSymbols = null; a.TOUCH_BEGIN = "touchBegin"; a.TOUCH_END = "touchEnd"; a.TOUCH_MOVE = "touchMove"; a.TOUCH_OVER = "touchOver"; a.TOUCH_OUT = "touchOut"; a.TOUCH_ROLL_OVER = "touchRollOver"; a.TOUCH_ROLL_OUT = "touchRollOut"; a.TOUCH_TAP = "touchTap"; a.PROXIMITY_BEGIN = "proximityBegin"; a.PROXIMITY_END = "proximityEnd"; a.PROXIMITY_MOVE = "proximityMove"; a.PROXIMITY_OUT = "proximityOut"; a.PROXIMITY_OVER = "proximityOver"; a.PROXIMITY_ROLL_OUT = "proximityRollOut"; a.PROXIMITY_ROLL_OVER = "proximityRollOver"; return a; }(b.events.Event); g.TouchEvent = r; })(b.events || (b.events = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(b) { (function(g) { var f = function(b) { function d(a, c, e, d) { void 0 === a && (a = "uncaughtError"); void 0 === c && (c = !0); void 0 === e && (e = !0); void 0 === d && (d = null); b.call(this, a, c, e, d); } __extends(d, b); d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; d.UNCAUGHT_ERROR = "uncaughtError"; return d; }(b.events.ErrorEvent); g.UncaughtErrorEvent = f; })(b.events || (b.events = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(b) { (function(g) { var f = function(b) { function d() { b.call(this); } __extends(d, b); d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; return d; }(b.events.EventDispatcher); g.UncaughtErrorEvents = f; })(b.events || (b.events = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(g) { (function(q) { (function(u) { var k = f.Debug.notImplemented, r = f.Debug.somewhatImplemented, d = f.isNullOrUndefined, a = f.AVMX.axCoerceString, c = f.AVMX.checkNullParameter, e = f.Bounds, l = q.events; (function(a) { a[a.None = 0] = "None"; a[a.Visible = 1] = "Visible"; a[a.InvalidLineBounds = 2] = "InvalidLineBounds"; a[a.InvalidFillBounds = 4] = "InvalidFillBounds"; a[a.InvalidMatrix = 8] = "InvalidMatrix"; a[a.InvalidInvertedMatrix = 16] = "InvalidInvertedMatrix"; a[a.InvalidConcatenatedMatrix = 32] = "InvalidConcatenatedMatrix"; a[a.InvalidInvertedConcatenatedMatrix = 64] = "InvalidInvertedConcatenatedMatrix"; a[a.InvalidConcatenatedColorTransform = 128] = "InvalidConcatenatedColorTransform"; a[a.Constructed = 256] = "Constructed"; a[a.Destroyed = 512] = "Destroyed"; a[a.NeedsLoadEvent = 1024] = "NeedsLoadEvent"; a[a.OwnedByTimeline = 2048] = "OwnedByTimeline"; a[a.AnimatedByTimeline = 4096] = "AnimatedByTimeline"; a[a.HasFrameScriptPending = 8192] = "HasFrameScriptPending"; a[a.ContainsFrameScriptPendingChildren = 16384] = "ContainsFrameScriptPendingChildren"; a[a.ContainsMorph = 32768] = "ContainsMorph"; a[a.CacheAsBitmap = 65536] = "CacheAsBitmap"; a[a.DirtyMatrix = 1048576] = "DirtyMatrix"; a[a.DirtyChildren = 2097152] = "DirtyChildren"; a[a.DirtyGraphics = 4194304] = "DirtyGraphics"; a[a.DirtyTextContent = 8388608] = "DirtyTextContent"; a[a.DirtyBitmapData = 16777216] = "DirtyBitmapData"; a[a.DirtyNetStream = 33554432] = "DirtyNetStream"; a[a.DirtyColorTransform = 67108864] = "DirtyColorTransform"; a[a.DirtyMask = 134217728] = "DirtyMask"; a[a.DirtyClipDepth = 268435456] = "DirtyClipDepth"; a[a.DirtyDescendents = 536870912] = "DirtyDescendents"; a[a.DirtyMiscellaneousProperties = 1073741824] = "DirtyMiscellaneousProperties"; a[a.Dirty = a.DirtyMatrix | a.DirtyChildren | a.DirtyGraphics | a.DirtyTextContent | a.DirtyBitmapData | a.DirtyNetStream | a.DirtyColorTransform | a.DirtyMask | a.DirtyClipDepth | a.DirtyMiscellaneousProperties] = "Dirty"; a[a.Bubbling = a.ContainsFrameScriptPendingChildren | a.ContainsMorph] = "Bubbling"; })(u.DisplayObjectFlags || (u.DisplayObjectFlags = {})); var n = u.DisplayObjectFlags; (function(a) { a[a.None = 0] = "None"; a[a.Continue = 0] = "Continue"; a[a.Stop = 1] = "Stop"; a[a.Skip = 2] = "Skip"; a[a.FrontToBack = 8] = "FrontToBack"; a[a.Filter = 16] = "Filter"; })(u.VisitorFlags || (u.VisitorFlags = {})); (function(a) { a[a.HitTestBounds = 0] = "HitTestBounds"; a[a.HitTestBoundsAndMask = 1] = "HitTestBoundsAndMask"; a[a.HitTestShape = 2] = "HitTestShape"; a[a.Mouse = 3] = "Mouse"; a[a.ObjectsUnderPoint = 4] = "ObjectsUnderPoint"; a[a.Drop = 5] = "Drop"; })(u.HitTestingType || (u.HitTestingType = {})); (function(a) { a[a.None = 0] = "None"; a[a.Bounds = 1] = "Bounds"; a[a.Shape = 2] = "Shape"; })(u.HitTestingResult || (u.HitTestingResult = {})); var t = 0, p = function(h) { function m() { h.call(this); this._fieldsInitialized || this._initializeFields(); this._addReference(); this._setFlags(256); } __extends(m, h); m.getNextSyncID = function() { return t++; }; m.classInitializer = function() { this.reset(); }; m.reset = function() { this._advancableInstances = new f.WeakList; }; m.prototype.createAnimatedDisplayObject = function(a, b, c) { var e = a.symbolClass, d = this.sec.flash.display.BitmapData.axClass; if (e === d || d.dPrototype.isPrototypeOf(e.dPrototype)) { e = this.sec.flash.display.Bitmap.axClass; } a = g.constructClassFromSymbol(a, e); b.flags & 32 && (a._name = b.name); a._setFlags(4096); a._animate(b); c && a.axInitializer(); return a; }; m.performFrameNavigation = function(a, c) { a ? this._runScripts = c : c = this._runScripts; b.enterTimeline("DisplayObject.InitFrame"); this._advancableInstances.forEach(function(b) { b._initFrame(a); }); b.leaveTimeline(); b.enterTimeline("DisplayObject.EnterFrame"); a && c && this._broadcastFrameEvent(l.Event.ENTER_FRAME); b.leaveTimeline(); b.enterTimeline("DisplayObject.ConstructFrame"); this._advancableInstances.forEach(function(a) { a._constructFrame(); }); b.leaveTimeline(); if (c) { b.enterTimeline("DisplayObject.FrameConstructed"); this._broadcastFrameEvent(l.Event.FRAME_CONSTRUCTED); b.leaveTimeline(); b.enterTimeline("DisplayObject.EnqueueFrameScripts"); var e = this.sec.flash.display.DisplayObjectContainer.axClass; this._advancableInstances.forEach(function(a) { e.axIsType(a) && !a.parent && a._enqueueFrameScripts(); }); this._stage._enqueueFrameScripts(); b.leaveTimeline(); b.enterTimeline("DisplayObject.RunFrameScript"); this.sec.flash.display.MovieClip.axClass.runFrameScripts(); b.leaveTimeline(); b.enterTimeline("DisplayObject.ExitFrame"); this._broadcastFrameEvent(l.Event.EXIT_FRAME); b.leaveTimeline(); } else { u.MovieClip.reset(); } a && (this._runScripts = !0); }; m._broadcastFrameEvent = function(a) { a = this.sec.flash.events.Event.axClass.getBroadcastInstance(a); this.sec.flash.events.EventDispatcher.axClass.broadcastEventDispatchQueue.dispatchEvent(a); }; m.prototype._initializeFields = function() { h.prototype._initializeFields.call(this, this); this._id = this.sec.flash.display.DisplayObject.axClass.getNextSyncID(); this._displayObjectFlags = 2085617767; this._stage = this._root = null; this._setInitialName(); this._mask = this._parent = null; this._z = 0; this._scaleY = this._scaleX = 1; this._skewY = this._skewX = 0; this._scaleZ = 1; this._height = this._width = this._rotationZ = this._rotationY = this._rotationX = this._rotation = 0; this._filters = this._scrollRect = this._opaqueBackground = null; this._blendMode = u.BlendMode.NORMAL; this._scale9Grid = this._symbol ? this._symbol.scale9Grid : null; this._accessibilityProperties = this._loaderInfo = null; this._fillBounds = new e(0, 0, 0, 0); this._lineBounds = new e(0, 0, 0, 0); this._clipDepth = -1; var a = this.sec.flash.geom.Matrix; this._concatenatedMatrix = new a; this._invertedConcatenatedMatrix = new a; this._matrix = new a; this._invertedMatrix = new a; this._matrix3D = null; a = this.sec.flash.geom.ColorTransform; this._colorTransform = new a; this._concatenatedColorTransform = new a; this._depth = -1; this._ratio = 0; this._index = -1; this._maskedObject = null; this._mouseDown = this._mouseOver = !1; this._children = this._graphics = null; this._referenceCount = 0; }; m.prototype._setInitialName = function() { this._name = "instance" + this.sec.flash.display.DisplayObject.axClass._instanceID++; }; m.prototype._setParent = function(a, b) { var c = this._parent; this._parent = a; this._setDepth(b); if (a) { this._addReference(); var e = 0; this._hasFlags(8192) && (e |= 16384); this._hasAnyFlags(n.Bubbling) && (e |= this._displayObjectFlags & n.Bubbling); e && a._propagateFlagsUp(e); } c && this._removeReference(); }; m.prototype._setDepth = function(a) { -1 < a ? this._setFlags(2048) : this._removeFlags(2048); this._depth = a; }; m.prototype._setFillAndLineBoundsFromWidthAndHeight = function(a, b) { this._fillBounds.width = a; this._fillBounds.height = b; this._lineBounds.width = a; this._lineBounds.height = b; this._removeFlags(6); this._invalidateParentFillAndLineBounds(!0, !0); }; m.prototype._setFillAndLineBoundsFromSymbol = function(a) { a.fillBounds && (this._fillBounds.copyFrom(a.fillBounds), this._removeFlags(4)); a.lineBounds && (this._lineBounds.copyFrom(a.lineBounds), this._removeFlags(2)); this._invalidateParentFillAndLineBounds(!!a.fillBounds, !!a.lineBounds); }; m.prototype._setFlags = function(a) { this._displayObjectFlags |= a; }; m.prototype._setDirtyFlags = function(a) { this._displayObjectFlags |= a; this._parent && this._parent._propagateFlagsUp(536870912); }; m.prototype._toggleFlags = function(a, b) { this._displayObjectFlags = b ? this._displayObjectFlags | a : this._displayObjectFlags & ~a; }; m.prototype._removeFlags = function(a) { this._displayObjectFlags &= ~a; }; m.prototype._hasFlags = function(a) { return (this._displayObjectFlags & a) === a; }; m.prototype._hasAnyFlags = function(a) { return !!(this._displayObjectFlags & a); }; m.prototype._propagateFlagsUp = function(a) { if (!this._hasFlags(a)) { this._setFlags(a); var b = this._parent; b && b._propagateFlagsUp(a); } }; m.prototype._propagateFlagsDown = function(a) { this._setFlags(a); }; m.prototype._findNearestAncestor = function() { for (var a = this;a;) { if (!1 === a._hasFlags(128)) { return a; } a = a._parent; } return null; }; m.prototype._findFurthestAncestorOrSelf = function() { for (var a = this;a;) { if (!a._parent) { return a; } a = a._parent; } }; m.prototype._isAncestor = function(a) { for (;a;) { if (a === this) { return !0; } a = a._parent; } return !1; }; m._clampRotation = function(a) { a %= 360; 180 < a ? a -= 360 : -180 > a && (a += 360); return a; }; m._getAncestors = function(a, b) { var c = m._path; for (c.length = 0;a && a !== b;) { c.push(a), a = a._parent; } return c; }; m.prototype._getConcatenatedMatrix = function() { this._hasFlags(32) && (this._parent ? this._parent._getConcatenatedMatrix().preMultiplyInto(this._getMatrix(), this._concatenatedMatrix) : this._concatenatedMatrix.copyFrom(this._getMatrix()), this._removeFlags(32)); return this._concatenatedMatrix; }; m.prototype._getInvertedConcatenatedMatrix = function() { this._hasFlags(64) && (this._getConcatenatedMatrix().invertInto(this._invertedConcatenatedMatrix), this._removeFlags(64)); return this._invertedConcatenatedMatrix; }; m.prototype._setMatrix = function(a, b) { if (b || !this._matrix.equals(a)) { var c = this._matrix; c.copyFrom(a); b && c.toTwipsInPlace(); this._scaleX = c.getScaleX(); this._scaleY = c.getScaleY(); this._skewX = a.getSkewX(); this._skewY = a.getSkewY(); this._rotation = m._clampRotation(180 * this._skewY / Math.PI); this._removeFlags(8); this._setFlags(16); this._setDirtyFlags(1048576); this._invalidatePosition(); } }; m.prototype._getMatrix = function() { this._hasFlags(8) && (this._matrix.updateScaleAndRotation(this._scaleX, this._scaleY, this._skewX, this._skewY), this._removeFlags(8)); return this._matrix; }; m.prototype._getInvertedMatrix = function() { this._hasFlags(16) && (this._getMatrix().invertInto(this._invertedMatrix), this._removeFlags(16)); return this._invertedMatrix; }; m.prototype._getConcatenatedColorTransform = function() { if (!this.stage) { return this._colorTransform.clone(); } if (this._hasFlags(128)) { var a = this._findNearestAncestor(), b = m._getAncestors(this, a), c = b.length - 1, e = this.sec.flash.display.Stage; e.axIsType(b[c]) && c--; for (e = a && !e.axIsType(a) ? a._concatenatedColorTransform.clone() : new this.sec.flash.geom.ColorTransform;0 <= c;) { a = b[c--], e.preMultiply(a._colorTransform), e.convertToFixedPoint(), a._concatenatedColorTransform.copyFrom(e), a._removeFlags(128); } } return this._concatenatedColorTransform; }; m.prototype._setColorTransform = function(a) { this._colorTransform.copyFrom(a); this._colorTransform.convertToFixedPoint(); this._propagateFlagsDown(128); this._setDirtyFlags(67108864); }; m.prototype._invalidateFillAndLineBounds = function(a, b) { this._propagateFlagsUp((b ? 2 : 0) | (a ? 4 : 0)); }; m.prototype._invalidateParentFillAndLineBounds = function(a, b) { this._parent && this._parent._invalidateFillAndLineBounds(a, b); }; m.prototype._getContentBounds = function(a) { void 0 === a && (a = !0); var b, c; a ? (b = 2, c = this._lineBounds) : (b = 4, c = this._fillBounds); if (this._hasFlags(b)) { var e = this._getGraphics(); e ? c.copyFrom(e._getContentBounds(a)) : c.setToSentinels(); this._getChildBounds(c, a); this._removeFlags(b); } return c; }; m.prototype._getChildBounds = function(a, b) { }; m.prototype._getTransformedBounds = function(a, b) { var c = this._getContentBounds(b).clone(); if (a === this || c.isEmpty()) { return c; } var e; a ? (e = this.sec.flash.geom.Matrix.axClass.TEMP_MATRIX, a._getInvertedConcatenatedMatrix().preMultiplyInto(this._getConcatenatedMatrix(), e)) : e = this._getConcatenatedMatrix(); e.transformBounds(c); return c; }; m.prototype._stopTimelineAnimation = function() { this._removeFlags(4096); }; m.prototype._invalidateMatrix = function() { this._setDirtyFlags(1048576); this._setFlags(24); this._invalidatePosition(); }; m.prototype._invalidatePosition = function() { this._propagateFlagsDown(96); this._invalidateParentFillAndLineBounds(!0, !0); }; m.prototype._animate = function(a) { var b = !(a.flags & 1) && a.flags & 2, c = this.sec.flash.geom.Matrix.axClass; a.flags & 4 ? (c.TEMP_MATRIX.copyFromUntyped(a.matrix), this._setMatrix(c.TEMP_MATRIX, !1)) : b && this._setMatrix(c.FROZEN_IDENTITY_MATRIX, !1); c = this.sec.flash.geom.ColorTransform.axClass; a.flags & 8 ? (c.TEMP_COLOR_TRANSFORM.copyFromUntyped(a.cxform), this._setColorTransform(c.TEMP_COLOR_TRANSFORM)) : b && this._setColorTransform(c.FROZEN_IDENTITY_COLOR_TRANSFORM); if (a.flags & 16 || b) { c = a.ratio | 0, c !== this._ratio && (this._ratio = c, this._setDirtyFlags(1073741824)); } if (a.flags & 64 || b) { c = void 0 === a.clipDepth ? -1 : a.clipDepth, c !== this._clipDepth && (this._clipDepth = c, this._setDirtyFlags(268435456)); } if (a.flags & 256) { for (var c = this.sec.flash.filters, e = [], d = a.filters, h = 0;h < d.length;h++) { var m = d[h], l; switch(m.type) { case 0: l = c.DropShadowFilter.axClass.FromUntyped(m); break; case 1: l = c.BlurFilter.axClass.FromUntyped(m); break; case 2: l = c.GlowFilter.axClass.FromUntyped(m); break; case 3: l = c.BevelFilter.axClass.FromUntyped(m); break; case 4: l = c.GradientGlowFilter.axClass.FromUntyped(m); break; case 5: l = c.ConvolutionFilter.axClass.FromUntyped(m); break; case 6: l = c.ColorMatrixFilter.axClass.FromUntyped(m); break; case 7: l = c.GradientBevelFilter.axClass.FromUntyped(m); } e.push(l); } this._filters = e; this._setDirtyFlags(1073741824); } else { b && (this._filters = null, this._setDirtyFlags(1073741824)); } if (a.flags & 512 || b) { l = q.display.BlendMode.fromNumber(void 0 === a.blendMode ? 1 : a.blendMode), l !== this._blendMode && (this._blendMode = l, this._setDirtyFlags(1073741824)); } if (a.flags & 1024 || b) { l = 0 < a.bmpCache, l !== this._hasFlags(65536) && (this._toggleFlags(65536, l), this._setDirtyFlags(1073741824)); } if (a.flags & 8192 || b) { a = 0 !== a.visibility, a !== this._hasFlags(1) && (this._toggleFlags(1, a), this._setDirtyFlags(1073741824)); } }; m.prototype._propagateEvent = function(a) { this.visit(function(b) { b.dispatchEvent(a); return 0; }, 0); }; Object.defineProperty(m.prototype, "x", {get:function() { return this._getX(); }, set:function(a) { a = 20 * a | 0; this._stopTimelineAnimation(); if (this._canHaveTextContent()) { var b = this._getContentBounds(); a -= b.xMin; } a !== this._matrix.tx && (this._matrix.tx = a, this._invertedMatrix.tx = -a, this._invalidatePosition(), this._setDirtyFlags(1048576)); }, enumerable:!0, configurable:!0}); m.prototype._getX = function() { var a = this._matrix.tx; if (this._canHaveTextContent()) { var b = this._getContentBounds(), a = a + b.xMin } return a / 20; }; Object.defineProperty(m.prototype, "y", {get:function() { return this._getY(); }, set:function(a) { a = 20 * a | 0; this._stopTimelineAnimation(); if (this._canHaveTextContent()) { var b = this._getContentBounds(); a -= b.yMin; } a !== this._matrix.ty && (this._matrix.ty = a, this._invertedMatrix.ty = -a, this._invalidatePosition(), this._setDirtyFlags(1048576)); }, enumerable:!0, configurable:!0}); m.prototype._getY = function() { var a = this._matrix.ty; if (this._canHaveTextContent()) { var b = this._getContentBounds(), a = a + b.yMin } return a / 20; }; Object.defineProperty(m.prototype, "scaleX", {get:function() { return Math.abs(this._scaleX); }, set:function(a) { a = +a; this._stopTimelineAnimation(); a !== this._scaleX && (this._scaleX = a, this._invalidateMatrix()); }, enumerable:!0, configurable:!0}); Object.defineProperty(m.prototype, "scaleY", {get:function() { return this._scaleY; }, set:function(a) { a = +a; this._stopTimelineAnimation(); a !== this._scaleY && (this._scaleY = a, this._invalidateMatrix()); }, enumerable:!0, configurable:!0}); Object.defineProperty(m.prototype, "scaleZ", {get:function() { return this._scaleZ; }, set:function(a) { k("public DisplayObject::set scaleZ"); }, enumerable:!0, configurable:!0}); Object.defineProperty(m.prototype, "rotation", {get:function() { return this._rotation; }, set:function(a) { a = +a; this._stopTimelineAnimation(); a = m._clampRotation(a); if (a !== this._rotation) { var b = (a - this._rotation) / 180 * Math.PI; this._skewX += b; this._skewY += b; this._rotation = a; this._invalidateMatrix(); } }, enumerable:!0, configurable:!0}); Object.defineProperty(m.prototype, "rotationX", {get:function() { return this._rotationX; }, set:function(a) { k("public DisplayObject::set rotationX"); }, enumerable:!0, configurable:!0}); Object.defineProperty(m.prototype, "rotationY", {get:function() { return this._rotationY; }, set:function(a) { k("public DisplayObject::set rotationY"); }, enumerable:!0, configurable:!0}); Object.defineProperty(m.prototype, "rotationZ", {get:function() { return this._rotationZ; }, set:function(a) { k("public DisplayObject::set rotationZ"); }, enumerable:!0, configurable:!0}); Object.defineProperty(m.prototype, "width", {get:function() { return this._getWidth(); }, set:function(a) { this._setWidth(a); }, enumerable:!0, configurable:!0}); m.prototype._getWidth = function() { return this._getTransformedBounds(this._parent, !0).width / 20; }; m.prototype._setWidth = function(a) { a = 20 * a | 0; this._stopTimelineAnimation(); if (!(0 > a)) { var b = this._getContentBounds(!0); if (this._canHaveTextContent()) { var c = this._getContentBounds(); this._setFillAndLineBoundsFromWidthAndHeight(a, b.height); } else { var c = this._getTransformedBounds(this._parent, !0), e = this._rotation / 180 * Math.PI, d = b.getBaseWidth(e); d && (b = b.getBaseHeight(e), this._scaleY = c.height / b, this._scaleX = a / d, this._invalidateMatrix()); } } }; Object.defineProperty(m.prototype, "height", {get:function() { return this._getHeight(); }, set:function(a) { this._setHeight(a); }, enumerable:!0, configurable:!0}); m.prototype._getHeight = function() { return this._getTransformedBounds(this._parent, !0).height / 20; }; m.prototype._setHeight = function(a) { a = 20 * a | 0; this._stopTimelineAnimation(); if (!(0 > a)) { var b = this._getContentBounds(!0); if (this._canHaveTextContent()) { var c = this._getContentBounds(); this._setFillAndLineBoundsFromWidthAndHeight(b.width, a); } else { var c = this._getTransformedBounds(this._parent, !0), e = this._rotation / 180 * Math.PI, d = b.getBaseHeight(e); d && (b = b.getBaseWidth(e), this._scaleY = a / d, this._scaleX = c.width / b, this._invalidateMatrix()); } } }; Object.defineProperty(m.prototype, "mask", {get:function() { return this._mask; }, set:function(a) { if (this._mask !== a && a !== this) { a && a._maskedObject && (a._maskedObject.mask = null); this._mask && (this._mask._maskedObject = null); if (this._mask = a) { a._maskedObject = this; } this._setDirtyFlags(134217728); } }, enumerable:!0, configurable:!0}); Object.defineProperty(m.prototype, "transform", {get:function() { return this._getTransform(); }, set:function(a) { this._stopTimelineAnimation(); a.matrix3D ? this._matrix3D = a.matrix3D : this._setMatrix(a.matrix, !0); this._setColorTransform(a.colorTransform); }, enumerable:!0, configurable:!0}); m.prototype._getTransform = function() { return new this.sec.flash.geom.Transform(this); }; m.prototype.destroy = function() { this._setFlags(512); }; Object.defineProperty(m.prototype, "root", {get:function() { var a = this; do { if (a._root === a) { return a; } a = a._parent; } while (a); return null; }, enumerable:!0, configurable:!0}); Object.defineProperty(m.prototype, "stage", {get:function() { var a = this; do { if (a._stage === a) { return a; } a = a._parent; } while (a); return null; }, enumerable:!0, configurable:!0}); Object.defineProperty(m.prototype, "name", {get:function() { return this._name; }, set:function(b) { c(b, "name", this.sec); this._name = a(b); }, enumerable:!0, configurable:!0}); Object.defineProperty(m.prototype, "parent", {get:function() { return this._parent; }, enumerable:!0, configurable:!0}); Object.defineProperty(m.prototype, "alpha", {get:function() { return this._colorTransform.alphaMultiplier; }, set:function(a) { this._stopTimelineAnimation(); a = +a; a !== this._colorTransform.alphaMultiplier && (this._colorTransform.alphaMultiplier = a, this._colorTransform.convertToFixedPoint(), this._propagateFlagsDown(128), this._setDirtyFlags(67108864)); }, enumerable:!0, configurable:!0}); Object.defineProperty(m.prototype, "blendMode", {get:function() { return this._blendMode; }, set:function(c) { this._stopTimelineAnimation(); c = a(c); c !== this._blendMode && (0 > u.BlendMode.toNumber(c) && this.sec.throwError("ArgumentError", b.Errors.InvalidEnumError, "blendMode"), this._blendMode = c, this._setDirtyFlags(1073741824)); }, enumerable:!0, configurable:!0}); Object.defineProperty(m.prototype, "scale9Grid", {get:function() { return this._getScale9Grid(); }, set:function(a) { this._stopTimelineAnimation(); this._scale9Grid = e.FromRectangle(a); this._setDirtyFlags(1073741824); }, enumerable:!0, configurable:!0}); m.prototype._getScale9Grid = function() { var a = this.sec.flash.geom.Rectangle.axClass; return this._scale9Grid ? a.FromBounds(this._scale9Grid) : null; }; Object.defineProperty(m.prototype, "cacheAsBitmap", {get:function() { return this._getCacheAsBitmap(); }, set:function(a) { this._hasFlags(65536) || (this._toggleFlags(65536, !!a), this._setDirtyFlags(1073741824)); }, enumerable:!0, configurable:!0}); m.prototype._getCacheAsBitmap = function() { return this._filters && 0 < this._filters.length || this._hasFlags(65536); }; Object.defineProperty(m.prototype, "filters", {get:function() { return this._getFilters(); }, set:function(a) { a = a ? a.value : null; this._filters || (this._filters = []); var c = !1; if (d(a)) { c = 0 < this._filters.length, this._filters.length = 0; } else { var e = this.sec.flash.filters.BitmapFilter.axClass; this._filters = a.map(function(a) { e.axIsType(a) || this.sec.throwError("TypeError", b.Errors.ParamTypeError, "0", "Filter"); return a.clone(); }); c = !0; } c && this._setDirtyFlags(1073741824); }, enumerable:!0, configurable:!0}); m.prototype._getFilters = function() { var a = this._filters ? this._filters.map(function(a) { return a.clone(); }) : []; return this.sec.createArray(a); }; Object.defineProperty(m.prototype, "visible", {get:function() { return this._hasFlags(1); }, set:function(a) { a = !!a; a !== this._hasFlags(1) && (this._toggleFlags(1, a), this._setDirtyFlags(1073741824)); }, enumerable:!0, configurable:!0}); Object.defineProperty(m.prototype, "z", {get:function() { return this._z; }, set:function(a) { this._z = +a; k("public DisplayObject::set z"); }, enumerable:!0, configurable:!0}); m.prototype.getBounds = function(a) { return this.sec.flash.geom.Rectangle.axClass.FromBounds(this._getTransformedBounds(a || this, !0)); }; m.prototype.getRect = function(a) { return this.sec.flash.geom.Rectangle.axClass.FromBounds(this._getTransformedBounds(a || this, !1)); }; m.prototype.globalToLocal = function(a) { return this._getInvertedConcatenatedMatrix().transformPointInPlace(a.clone().toTwips()).round().toPixels(); }; m.prototype.localToGlobal = function(a) { return this._getConcatenatedMatrix().transformPointInPlace(a.clone().toTwips()).round().toPixels(); }; m.prototype.globalToLocal3D = function(a) { k("public DisplayObject::globalToLocal3D"); return null; }; m.prototype.localToGlobal3D = function(a) { k("public DisplayObject::localToGlobal3D"); return null; }; m.prototype.local3DToGlobal = function(a) { k("public DisplayObject::local3DToGlobal"); return null; }; m.prototype.visit = function(a, b, c) { void 0 === c && (c = 0); var e, d, h = b & 8; for (e = [this];0 < e.length;) { d = e.pop(); var m = 0, m = b & 16 && !d._hasAnyFlags(c) ? 2 : a(d); if (0 === m) { if (d = d._children) { for (var m = d.length, l = 0;l < m;l++) { e.push(d[h ? l : m - 1 - l]); } } } else { if (1 === m) { break; } } } }; Object.defineProperty(m.prototype, "loaderInfo", {get:function() { var a = this.root; return a ? a._loaderInfo : null; }, enumerable:!0, configurable:!0}); m.prototype._canHaveGraphics = function() { return !1; }; m.prototype._getGraphics = function() { return null; }; m.prototype._canHaveTextContent = function() { return !1; }; m.prototype._getTextContent = function() { return null; }; m.prototype._ensureGraphics = function() { if (this._graphics) { return this._graphics; } this._graphics = new this.sec.flash.display.Graphics; this._graphics._setParent(this); this._invalidateFillAndLineBounds(!0, !0); this._setDirtyFlags(4194304); return this._graphics; }; m.prototype._setStaticContentFromSymbol = function(a) { this._canHaveGraphics() ? (this._graphics = a.graphics, this._setDirtyFlags(4194304)) : this.sec.flash.text.StaticText.axIsType(this) && (this._textContent = a.textContent, this._setDirtyFlags(8388608)); this._symbol = a; this._setFillAndLineBoundsFromSymbol(a); }; m.prototype.hitTestObject = function(a) { var b = this._getContentBounds(!1).clone(), c = a._getContentBounds(!1).clone(); this._getConcatenatedMatrix().transformBounds(b); a._getConcatenatedMatrix().transformBounds(c); return b.intersects(c); }; m.prototype.hitTestPoint = function(a, b, c) { return !!this._containsGlobalPoint(20 * +a | 0, 20 * +b | 0, c ? 2 : 0, null); }; m.prototype._containsPoint = function(a, b, c, e, d, h) { var m = this._boundsAndMaskContainPoint(a, b, c, e, d); if (0 === m || 2 > d) { return m; } (a = this._containsPointDirectly(c, e, a, b)) && h && (5 === d ? h[0] = this : (4 === d || this.sec.flash.display.InteractiveObject.axIsType(this) && this._mouseEnabled) && h.push(this)); return a ? 2 : m; }; m.prototype._containsGlobalPoint = function(a, b, c, e) { var d = this._getInvertedConcatenatedMatrix(); return this._containsPoint(a, b, d.transformX(a, b), d.transformY(a, b), c, e); }; m.prototype._boundsAndMaskContainPoint = function(a, b, c, e, d) { return 1 <= d && this._hasFlags(32768) ? 1 : 3 <= d && !this._hasFlags(1) || !this._getContentBounds().contains(c, e) ? 0 : 0 !== d && this._mask ? this._mask._containsGlobalPoint(a, b, 1, null) : 1; }; m.prototype._containsPointDirectly = function(a, b, c, e) { return !1; }; Object.defineProperty(m.prototype, "scrollRect", {get:function() { return this._getScrollRect(); }, set:function(a) { this._scrollRect = a ? a.clone() : null; r("public DisplayObject::set scrollRect"); }, enumerable:!0, configurable:!0}); m.prototype._getScrollRect = function() { return this._scrollRect ? this._scrollRect.clone() : null; }; Object.defineProperty(m.prototype, "opaqueBackground", {get:function() { return this._opaqueBackground; }, set:function(a) { this._opaqueBackground = a; }, enumerable:!0, configurable:!0}); m.prototype._getDistance = function(a) { for (var b = 0, c = this;c && c !== a;) { b++, c = c._parent; } return b; }; m.prototype.findNearestCommonAncestor = function(a) { if (!a) { return null; } for (var b = this, c = b._getDistance(null), e = a._getDistance(null);c > e;) { b = b._parent, c--; } for (;e > c;) { a = a._parent, e--; } for (;b !== a;) { b = b._parent, a = a._parent; } return b; }; m.prototype._getLocalMousePosition = function() { return this.globalToLocal(this.sec.flash.ui.Mouse.axClass._currentPosition); }; Object.defineProperty(m.prototype, "mouseX", {get:function() { return this._getLocalMousePosition().x; }, enumerable:!0, configurable:!0}); Object.defineProperty(m.prototype, "mouseY", {get:function() { return this._getLocalMousePosition().y; }, enumerable:!0, configurable:!0}); m.prototype.debugName = function(a) { void 0 === a && (a = !1); var b = this._id + " [" + this._depth + "]: (" + this._referenceCount + ") " + this; if (a) { a = []; for (var c = 0;32 > c;c++) { this._hasFlags(1 << c) && a.push(n[1 << c]); } b += " " + a.join("|"); } return b; }; m.prototype.debugNameShort = function() { return "[" + this._depth + "]: (" + this._referenceCount + ") {" + this._displayObjectFlags + "} " + this; }; m.prototype.hashCode = function() { return this.getBounds(null).hashCode(); }; m.prototype.getAncestorCount = function() { return 0; }; m.prototype.debugTrace = function() { var a, b, c; void 0 === a && (a = new f.IndentingWriter); void 0 === b && (b = 1024); void 0 === c && (c = ""); var e = this; this.visit(function(d) { var h = d._getDistance(e); if (h > b) { return 2; } h = c + f.StringUtilities.multiple(" ", h); a.writeLn(h + d.debugNameShort() + ", bounds: " + d.getBounds(null).toString()); return 0; }, 0); }; m.prototype._addReference = function() { this._referenceCount++; }; m.prototype._removeReference = function() { this._referenceCount--; if (0 === this._referenceCount && this._children) { for (var a = this._children, b = 0;b < a.length;b++) { a[b]._removeReference(); } } }; Object.defineProperty(m.prototype, "accessibilityProperties", {get:function() { return this._accessibilityProperties; }, set:function(a) { this._accessibilityProperties = a; }, enumerable:!0, configurable:!0}); Object.defineProperty(m.prototype, "blendShader", {set:function(a) { k("public DisplayObject::set blendShader"); }, enumerable:!0, configurable:!0}); m._instanceID = 1; m.classSymbols = null; m.instanceSymbols = null; m._runScripts = !0; m._path = []; return m; }(q.events.EventDispatcher); u.DisplayObject = p; })(q.display || (q.display = {})); })(g.flash || (g.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(g) { (function(q) { (function(u) { var k = f.AVMX.axCoerceString, r = function(d) { function a(a, b, l) { void 0 === a && (a = null); void 0 === b && (b = "auto"); void 0 === l && (l = !1); this._symbol && !this._fieldsInitialized && this.applySymbol(); d.call(this); this._symbol || (this.bitmapData = a, this._pixelSnapping = k(b), this._smoothing = !!l); } __extends(a, d); a.prototype.applySymbol = function() { this._initializeFields(); var a = this._symbol, b = a.symbolClass; this.sec.flash.display.Bitmap.axClass.dPrototype.isPrototypeOf(b.dPrototype) && (b = this.sec.flash.display.BitmapData.axClass); this._bitmapData = g.constructClassFromSymbol(a, b); this._smoothing = this._pixelSnapping = null; this._setFillAndLineBoundsFromWidthAndHeight(20 * a.width | 0, 20 * a.height | 0); }; Object.defineProperty(a.prototype, "pixelSnapping", {get:function() { return this._pixelSnapping; }, set:function(a) { 0 > u.PixelSnapping.toNumber(a) && this.sec.throwError("ArgumentError", b.Errors.InvalidEnumError, "pixelSnapping"); this._pixelSnapping = k(a); }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "smoothing", {get:function() { return this._smoothing; }, set:function(a) { this._smoothing = !!a; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "bitmapData", {get:function() { return this._bitmapData; }, set:function(a) { this._bitmapData !== a && (this._bitmapData && this._bitmapData._removeBitmapReferrer(this), a && a._addBitmapReferrer(this)); (this._bitmapData = a) && this._setFillAndLineBoundsFromWidthAndHeight(20 * a.width | 0, 20 * a.height | 0); this._invalidateParentFillAndLineBounds(!0, !0); this._setDirtyFlags(16777216); }, enumerable:!0, configurable:!0}); a.prototype._getContentBounds = function(a) { return this._bitmapData ? this._bitmapData._getContentBounds() : new f.Bounds(0, 0, 0, 0); }; a.prototype._containsPointDirectly = function(a, b, d, g) { return !0; }; a.classInitializer = null; a.classSymbols = null; a.instanceSymbols = null; return a; }(q.display.DisplayObject); u.Bitmap = r; })(q.display || (q.display = {})); })(g.flash || (g.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(b) { (function(g) { var k = f.Debug.warning, r = function(b) { function a() { this._symbol && !this._fieldsInitialized && this.applySymbol(); b.call(this); this._fieldsInitialized || this._initializeFields(); } __extends(a, b); a.prototype.applySymbol = function() { this._initializeFields(); this._setStaticContentFromSymbol(this._symbol); }; a.prototype._initializeFields = function() { b.prototype._initializeFields.call(this); this._graphics = null; }; a.prototype._canHaveGraphics = function() { return !0; }; a.prototype._getGraphics = function() { return this._graphics; }; Object.defineProperty(a.prototype, "graphics", {get:function() { return this._ensureGraphics(); }, enumerable:!0, configurable:!0}); a.prototype._containsPointDirectly = function(a, b, d, g) { d = this._getGraphics(); return !!d && d._containsPoint(a, b, !0, 0); }; a.classInitializer = null; return a; }(b.display.DisplayObject); g.Shape = r; r = function(d) { function a(a, b) { d.call(this, a, b, !1); this.graphics = null; } __extends(a, d); a.FromData = function(c, e) { var d = new a(c, e.sec.flash.display.Shape.axClass); d._setBoundsFromData(c); d.graphics = b.display.Graphics.FromData(c, e); d.processRequires(c.require, e); return d; }; a.prototype.processRequires = function(a, b) { if (a) { for (var d = this.graphics._textures, g = 0;g < a.length;g++) { var f = b.getSymbolById(a[g]); f ? d.push(f.getSharedInstance()) : (65535 !== a[g] && k("Bitmap symbol " + a[g] + " required by shape, but not defined."), d.push(null)); } } }; return a; }(f.Timeline.DisplaySymbol); g.ShapeSymbol = r; })(b.display || (b.display = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(b) { (function(g) { var k = f.Debug.somewhatImplemented, r = b.events, d = function(a) { function b() { a.call(this); this._fieldsInitialized || this._initializeFields(); } __extends(b, a); b.prototype._initializeFields = function() { a.prototype._initializeFields.call(this); this._tabEnabled = !1; this._tabIndex = -1; this._focusRect = null; this._mouseEnabled = !0; this._doubleClickEnabled = !1; this._softKeyboardInputAreaOfInterest = this._accessibilityImplementation = null; this._needsSoftKeyboard = !1; this._contextMenu = null; }; Object.defineProperty(b.prototype, "tabEnabled", {get:function() { return this._tabEnabled; }, set:function(a) { a = !!a; var b = this._tabEnabled; this._tabEnabled = a; b !== a && this.dispatchEvent(this.sec.flash.events.Event.axClass.getInstance(r.Event.TAB_ENABLED_CHANGE, !0)); }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "tabIndex", {get:function() { return this._tabIndex; }, set:function(a) { a |= 0; var b = this._tabIndex; this._tabIndex = a; b !== a && this.dispatchEvent(this.sec.flash.events.Event.axClass.getInstance(r.Event.TAB_INDEX_CHANGE, !0)); }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "focusRect", {get:function() { return this._focusRect; }, set:function(a) { k("public flash.display.InteractiveObject::set focusRect"); this._focusRect = a; }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "mouseEnabled", {get:function() { return this._mouseEnabled; }, set:function(a) { this._mouseEnabled = !!a; }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "doubleClickEnabled", {get:function() { return this._doubleClickEnabled; }, set:function(a) { this._doubleClickEnabled = !!a; }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "accessibilityImplementation", {get:function() { return this._accessibilityImplementation; }, set:function(a) { k("public flash.display.InteractiveObject::set accessibilityImplementation"); this._accessibilityImplementation = a; }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "softKeyboardInputAreaOfInterest", {get:function() { return this._softKeyboardInputAreaOfInterest; }, set:function(a) { k("public flash.display.InteractiveObject::set softKeyboardInputAreaOfInterest"); this._softKeyboardInputAreaOfInterest = a; }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "needsSoftKeyboard", {get:function() { return this._needsSoftKeyboard; }, set:function(a) { a = !!a; k("public flash.display.InteractiveObject::set needsSoftKeyboard"); this._needsSoftKeyboard = a; }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "contextMenu", {get:function() { return this._contextMenu; }, set:function(a) { k("public flash.display.InteractiveObject::set contextMenu"); this._contextMenu = a; }, enumerable:!0, configurable:!0}); b.prototype.requestSoftKeyboard = function() { k("public flash.display.InteractiveObject::requestSoftKeyboard"); return !1; }; b.classInitializer = null; return b; }(b.display.DisplayObject); g.InteractiveObject = d; })(b.display || (b.display = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(b) { (function(g) { var k = f.Debug.notImplemented, r = function(a) { function b(c, d, g, f) { this._symbol && !this._fieldsInitialized && this.applySymbol(); a.call(this); this.sec.flash.display.DisplayObject.axClass._advancableInstances.push(this); this._fieldsInitialized || this._initializeFields(); this._symbol || (c && (this.upState = c), d && (this.overState = d), g && (this.downState = g), f && (this.hitTestState = f), this._updateButton()); } __extends(b, a); b.prototype.applySymbol = function() { this._initializeFields(); var a = this._symbol; a.upState && (this._upState = this.createAnimatedDisplayObject(a.upState.symbol, a.upState.placeObjectTag, !0)); a.overState && (this._overState = this.createAnimatedDisplayObject(a.overState.symbol, a.overState.placeObjectTag, !0)); a.downState && (this._downState = this.createAnimatedDisplayObject(a.downState.symbol, a.downState.placeObjectTag, !0)); a.hitTestState && (this._hitTestState = this.createAnimatedDisplayObject(a.hitTestState.symbol, a.hitTestState.placeObjectTag, !0)); this._updateButton(); }; b.prototype._initializeFields = function() { a.prototype._initializeFields.call(this); this._enabled = this._useHandCursor = !0; this._trackAsMenu = !1; this._currentState = this._hitTestState = this._downState = this._overState = this._upState = null; this._children = []; }; b.prototype._initFrame = function(a) { a && this._updateButton(); }; b.prototype._constructFrame = function() { }; Object.defineProperty(b.prototype, "useHandCursor", {get:function() { return this._useHandCursor; }, set:function(a) { this._useHandCursor = !!a; }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "enabled", {get:function() { return this._enabled; }, set:function(a) { this._enabled = !!a; }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "trackAsMenu", {get:function() { return this._trackAsMenu; }, set:function(a) { k("public flash.display.SimpleButton::set trackAsMenu"); }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "upState", {get:function() { return this._upState; }, set:function(a) { var b = this._upState; a._parent && a._parent.removeChild(a); this._upState = a; this._currentState === b && this._updateButton(); }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "overState", {get:function() { return this._overState; }, set:function(a) { var b = this._overState; a._parent && a._parent.removeChild(a); this._overState = a; this._currentState === b && this._updateButton(); }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "downState", {get:function() { return this._downState; }, set:function(a) { var b = this._downState; a._parent && a._parent.removeChild(a); this._downState = a; this._currentState === b && this._updateButton(); }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "hitTestState", {get:function() { return this._hitTestState; }, set:function(a) { this._hitTestState = a; }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "soundTransform", {get:function() { k("public flash.display.SimpleButton::get soundTransform"); }, set:function(a) { k("public flash.display.SimpleButton::set soundTransform"); }, enumerable:!0, configurable:!0}); b.prototype._containsPoint = function(a, b, c, d, g, h) { c = 3 === g ? this._hitTestState : this._currentState; if (!c) { return 0; } c._parent = this; a = c._containsGlobalPoint(a, b, g, h); c._parent = null; 0 !== a && 3 === g && h && this._mouseEnabled && (h[0] = this); return a; }; b.prototype._getChildBounds = function(a, b) { this._currentState && (this._currentState._parent = this, a.unionInPlace(this._currentState._getTransformedBounds(this, b)), this._currentState._parent = null); }; b.prototype._propagateFlagsDown = function(a) { this._hasFlags(a) || (this._setFlags(a), this._upState && this._upState._propagateFlagsDown(a), this._overState && this._overState._propagateFlagsDown(a), this._downState && this._downState._propagateFlagsDown(a), this._hitTestState && this._hitTestState._propagateFlagsDown(a)); }; b.prototype._updateButton = function() { var a; a = this._mouseOver ? this._mouseDown ? this._downState : this._overState : this._upState; a !== this._currentState && ((this._currentState = a) ? this._children[0] = a : this._children.length = 0, this._setDirtyFlags(2097152), this._invalidateFillAndLineBounds(!0, !0)); }; b.classInitializer = null; b.classSymbols = null; b.instanceSymbols = null; return b; }(b.display.InteractiveObject); g.SimpleButton = r; var d = function() { return function(a, b) { this.symbol = a; this.placeObjectTag = b; }; }(); g.ButtonState = d; r = function(a) { function c(b, c) { a.call(this, b, c.sec.flash.display.SimpleButton.axClass, !0); this.hitTestState = this.downState = this.overState = this.upState = null; this.loaderInfo = c; } __extends(c, a); c.FromData = function(a, l) { var n = new c(a, l); l.actionScriptVersion === g.ActionScriptVersion.ACTIONSCRIPT2 && (n.isAVM1Object = !0); var t = a.states, p = null, h, m; for (m in t) { var v = t[m]; if (1 === v.length) { if (h = v[0], p = l.getSymbolById(h.symbolId), !p) { continue; } } else { h = {flags:1, depth:1}, p = new b.display.SpriteSymbol({id:-1, className:null, env:null}, l), p.frames.push(new f.SWF.SWFFrame(v)); } n[m + "State"] = new d(p, h); } return n; }; return c; }(f.Timeline.DisplaySymbol); g.ButtonSymbol = r; })(b.display || (b.display = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(g) { (function(g) { (function(u) { var k = f.Debug.notImplemented, r = f.AVMX.axCoerceString, d = f.HashUtilities.mixHash, a = f.AVMX.checkParameterType, c = f.NumberUtilities.clamp, e = g.events; (function(a) { a[a.DEFAULT = 0] = "DEFAULT"; a[a.IGNORE_CASE = 1] = "IGNORE_CASE"; a[a.INCLUDE_NON_INITIALIZED = 2] = "INCLUDE_NON_INITIALIZED"; })(u.LookupChildOptions || (u.LookupChildOptions = {})); var l = function(l) { function g() { l.call(this); this._fieldsInitialized || this._initializeFields(); this._setDirtyFlags(2097152); } __extends(g, l); g.prototype._initializeFields = function() { l.prototype._initializeFields.call(this); this._mouseChildren = this._tabChildren = !0; this._children = this._children || []; }; g.prototype._invalidateChildren = function() { this._setDirtyFlags(2097152); this._invalidateFillAndLineBounds(!0, !0); }; g.prototype._propagateFlagsDown = function(a) { if (!this._hasFlags(a)) { this._setFlags(a); for (var b = this._children, c = 0;c < b.length;c++) { b[c]._propagateFlagsDown(a); } } }; g.prototype._constructChildren = function() { for (var a = this._children, b = 0;b < a.length;b++) { var c = a[b]; if (!c._hasFlags(256)) { c.axInitializer(); c._removeReference(); c._name && this.axSetPublicProperty(c._name, c); c._setFlags(256); var d = this.sec.flash.events.Event.axClass; if (c._symbol && c._symbol.isAVM1Object) { try { c.dispatchEvent(d.getInstance(e.Event.AVM1_INIT)); } catch (g) { f.Debug.warning("caught error under DisplayObjectContainer AVM1_INIT event: ", g); } try { c.dispatchEvent(d.getInstance(e.Event.AVM1_CONSTRUCT)); } catch (l) { f.Debug.warning("caught error under DisplayObjectContainer AVM1_CONSTRUCT event: ", l); } c._setFlags(1024); c._hasAnyFlags(24576) && this._setFlags(16384); } try { c.dispatchEvent(d.getInstance(e.Event.ADDED, !0)); } catch (n) { f.Debug.warning("caught error under DisplayObject ADDED event: ", n); } if (c.stage) { try { c.dispatchEvent(d.getInstance(e.Event.ADDED_TO_STAGE)); } catch (t) { f.Debug.warning("caught error under DisplayObject ADDED_TO_STAGE event: ", t); } } } } }; g.prototype._enqueueFrameScripts = function() { if (this._hasFlags(16384)) { this._removeFlags(16384); for (var a = this._children, b = 0;b < a.length;b++) { var c = a[b]; (this.sec.flash.display.DisplayObjectContainer.axIsType(c) || this.sec.flash.display.AVM1Movie.axIsType(c)) && c._enqueueFrameScripts(); } } }; Object.defineProperty(g.prototype, "numChildren", {get:function() { return this._children.length; }, enumerable:!0, configurable:!0}); g.prototype._getNumChildren = function() { return this._children.length; }; Object.defineProperty(g.prototype, "textSnapshot", {get:function() { k("public DisplayObjectContainer::get textSnapshot"); }, enumerable:!0, configurable:!0}); Object.defineProperty(g.prototype, "tabChildren", {get:function() { return this._tabChildren; }, set:function(a) { this._setTabChildren(a); }, enumerable:!0, configurable:!0}); g.prototype._getTabChildren = function() { return this._tabChildren; }; g.prototype._setTabChildren = function(a) { a = !!a; var b = this._tabChildren; this._tabChildren = a; b !== a && this.dispatchEvent(this.sec.flash.events.Event.axClass.getInstance(e.Event.TAB_CHILDREN_CHANGE, !0)); }; Object.defineProperty(g.prototype, "mouseChildren", {get:function() { return this._mouseChildren; }, set:function(a) { this._setMouseChildren(a); }, enumerable:!0, configurable:!0}); g.prototype._getMouseChildren = function() { return this._mouseChildren; }; g.prototype._setMouseChildren = function(a) { this._mouseChildren = !!a; }; g.prototype.addChild = function(a) { return this.addChildAt(a, this._children.length); }; g.prototype.addChildAt = function(d, h) { a(d, "child", this.sec.flash.display.DisplayObject.axClass, !1); h |= 0; d === this && this.sec.throwError("ArgumentError", b.Errors.CantAddSelfError); this.sec.flash.display.DisplayObjectContainer.axIsType(d) && d.contains(this) && this.sec.throwError("ArgumentError", b.Errors.CantAddParentError); var m = this._children; (0 > h || h > m.length) && this.sec.throwError("RangeError", b.Errors.ParamRangeError); if (d._parent === this) { return this.setChildIndex(d, c(h, 0, m.length - 1)), d; } d._parent && (g.prototype.removeChildAt.call(d._parent, d._parent.getChildIndex(d)), h = c(h, 0, m.length)); for (var l = m.length - 1;l >= h;l--) { m[l]._index++; } m.splice(h, 0, d); d._setParent(this, -1); d._index = h; d._invalidatePosition(); this._invalidateChildren(); d._addReference(); d.dispatchEvent(this.sec.flash.events.Event.axClass.getInstance(e.Event.ADDED, !0)); d.stage && d._propagateEvent(this.sec.flash.events.Event.axClass.getInstance(e.Event.ADDED_TO_STAGE)); return d; }; g.prototype.addTimelineObjectAtDepth = function(a, b) { b |= 0; for (var c = this._children, e = c.length - 1, d = e + 1, g = e;0 <= g;g--) { var l = c[g]; if (-1 < l._depth) { if (l._depth < b) { d = g + 1; break; } d = g; } } if (d > e) { c.push(a), a._index = d; } else { for (c.splice(d, 0, a), g = d;g < c.length;g++) { c[g]._index = g; } } a._setParent(this, b); a._invalidatePosition(); this._invalidateChildren(); }; g.prototype.removeChild = function(b) { a(b, "child", this.sec.flash.display.DisplayObject.axClass, !1); return this.removeChildAt(this.getChildIndex(b)); }; g.prototype.removeChildAt = function(a) { a |= 0; var c = this._children; (0 > a || a >= c.length) && this.sec.throwError("RangeError", b.Errors.ParamRangeError); var d = c[a]; d._hasFlags(256) && (d.dispatchEvent(this.sec.flash.events.Event.axClass.getInstance(e.Event.REMOVED, !0)), this.stage && d._propagateEvent(this.sec.flash.events.Event.axClass.getInstance(e.Event.REMOVED_FROM_STAGE)), a = this.getChildIndex(d)); c.splice(a, 1); for (var g = c.length - 1;g >= a;g--) { c[g]._index--; } d._setParent(null, -1); d._index = -1; d._invalidatePosition(); this._invalidateChildren(); return d; }; g.prototype.getChildIndex = function(c) { a(c, "child", this.sec.flash.display.DisplayObject.axClass, !1); c._parent !== this && this.sec.throwError("ArgumentError", b.Errors.NotAChildError); return c._index; }; g.prototype.setChildIndex = function(c, e) { e |= 0; a(c, "child", this.sec.flash.display.DisplayObject.axClass, !1); var d = this._children; (0 > e || e >= d.length) && this.sec.throwError("RangeError", b.Errors.ParamRangeError); c._parent !== this && this.sec.throwError("ArgumentError", b.Errors.NotAChildError); c._setDepth(-1); var g = this.getChildIndex(c); if (1 !== d.length && g !== e) { if (e === g + 1 || e === g - 1) { this._swapChildrenAt(g, e); } else { for (d.splice(g, 1), d.splice(e, 0, c), g = g < e ? g : e;g < d.length;) { d[g]._index = g++; } } this._invalidateChildren(); } }; g.prototype.getChildAt = function(a) { a |= 0; var c = this._children; (0 > a || a >= c.length) && this.sec.throwError("RangeError", b.Errors.ParamRangeError); a = this._lookupChildByIndex(a, 0); if (!a) { return null; } a._addReference(); return a; }; g.prototype.getTimelineObjectAtDepth = function(a) { a |= 0; for (var b = this._children, c = 0;c < b.length;c++) { var e = b[c]; if (e._depth > a) { break; } if (e._depth === a) { return e; } } return null; }; g.prototype.getClipDepthIndex = function(a) { a |= 0; for (var b = this._children, c = this._children.length - 1, e = !0, d = c;0 <= d;d--) { var g = b[d]; if (!(0 > g._depth)) { if (g._depth <= a) { return e ? c : d; } e = !1; } } return 0; }; g.prototype.getChildByName = function(a) { a = r(a); return (a = this._lookupChildByName(a, 0)) ? (a._addReference(), a) : null; }; g.prototype._lookupChildByIndex = function(a, b) { var c = this._children[a]; return c && (c._hasFlags(256) || b & 2) ? c : null; }; g.prototype._lookupChildByName = function(a, b) { var c = this._children; if (0 === c.length) { return null; } for (var e = 0;e < c.length;e++) { var d = c[e]; if ((d._hasFlags(256) || b & 2) && d.name === a) { return d; } } if (!(b & 1)) { return null; } a = a.toLowerCase(); for (e = 0;e < c.length;e++) { if (d = c[e], (d._hasFlags(256) || b & 2) && d.name.toLowerCase() === a) { return d; } } return null; }; g.prototype._containsPoint = function(a, b, c, e, d, g) { return this._containsPointImpl(a, b, c, e, d, g, !1); }; g.prototype._containsPointImpl = function(a, b, c, e, d, g, l) { var f; if (!l && (f = this._boundsAndMaskContainPoint(a, b, c, e, d), 0 === f || 2 > d)) { return f; } l = !1; for (var n = this._getUnclippedChildren(d, a, b), t = n ? n.length : 0;t--;) { if (f = n[t], !f._maskedObject && (f = f._containsGlobalPoint(a, b, d, g), 2 === f)) { if (3 > d) { return f; } l = !0; if (!(4 <= d)) { if (!this._mouseEnabled) { return g.length = 0, f; } this._mouseChildren || (g[0] = this); if (0 !== g.length) { return 2; } } } } if (l && 4 > d) { return 3 === d && 0 === g.length && (g[0] = this), 2; } (a = this._containsPointDirectly(c, e, a, b)) && (5 === d ? g[0] = this : (4 === d || g && this._mouseEnabled) && g.push(this)); return l || a ? 2 : 0; }; g.prototype._getUnclippedChildren = function(a, b, c) { var e = this._children; if (!e) { return null; } for (var d, g = 0;e && g < e.length;g++) { var l = e[g]; -1 !== l._clipDepth ? (d || (d = e.slice(0, g)), 2 !== a && (l._containsGlobalPoint(b, c, 2, null) || (g = this.getClipDepthIndex(l._clipDepth)))) : d && d.push(l); } return d || e; }; g.prototype._getChildBounds = function(a, b) { for (var c = this._children, e = 0;e < c.length;e++) { a.unionInPlace(c[e]._getTransformedBounds(this, b)); } }; g.prototype.getObjectsUnderPoint = function(a) { var b = []; this._containsGlobalPoint(20 * a.x | 0, 20 * a.y | 0, 4, b); return this.sec.createArrayUnsafe(b.reverse()); }; g.prototype.areInaccessibleObjectsUnderPoint = function(a) { k("public DisplayObjectContainer::areInaccessibleObjectsUnderPoint"); }; g.prototype.contains = function(b) { a(b, "child", this.sec.flash.display.DisplayObject.axClass, !1); return this._isAncestor(b); }; g.prototype.swapChildrenAt = function(a, c) { a |= 0; c |= 0; var e = this._children; (0 > a || a >= e.length || 0 > c || c >= e.length) && this.sec.throwError("RangeError", b.Errors.ParamRangeError); this._swapChildrenAt(a, c); a !== c && this._invalidateChildren(); }; g.prototype._swapChildrenAt = function(a, b) { var c = this._children, e = c[a], d = c[b]; c[b] = e; e._setDepth(-1); e._index = b; c[a] = d; d._setDepth(-1); d._index = a; }; g.prototype.swapChildren = function(b, c) { a(b, "child", this.sec.flash.display.DisplayObject.axClass, !1); a(c, "child", this.sec.flash.display.DisplayObject.axClass, !1); this.swapChildrenAt(this.getChildIndex(b), this.getChildIndex(c)); }; g.prototype.removeChildren = function(a, c) { void 0 === a && (a = 0); void 0 === c && (c = 2147483647); a |= 0; c |= 0; (0 > a || 0 > c || c < a || c >= this._children.length) && this.sec.throwError("RangeError", b.Errors.ParamRangeError); var e = c - a + 1; if (0 < e) { for (;e--;) { this.removeChildAt(a); } } }; g.prototype.hashCode = function() { for (var a = 0, b = 0;b < this.numChildren;b++) { this.getChildAt(b) && (a = d(a, this.getChildAt(b).hashCode())); } return d(a, this.getBounds(null).hashCode()); }; g.prototype.getAncestorCount = function() { for (var a = 0, b = 0;b < this.numChildren;b++) { this.getChildAt(b) && (a += 1 + this.getChildAt(b).getAncestorCount()); } return a; }; g.bindings = null; g.classSymbols = null; g.classInitializer = null; return g; }(g.display.InteractiveObject); u.DisplayObjectContainer = l; })(g.display || (g.display = {})); })(g.flash || (g.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(f) { (function(f) { var k = function(b) { function d() { b.call(this); } __extends(d, b); d.fromNumber = function(a) { switch(a) { case 0: return d.ROUND; case 1: return d.BEVEL; case 2: return d.MITER; default: return null; } }; d.toNumber = function(a) { switch(a) { case d.ROUND: return 0; case d.BEVEL: return 1; case d.MITER: return 2; default: return -1; } }; d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; d.ROUND = "round"; d.BEVEL = "bevel"; d.MITER = "miter"; return d; }(b.ASObject); f.JointStyle = k; })(f.display || (f.display = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(f) { (function(f) { var k = function(b) { function d() { b.call(this); } __extends(d, b); d.fromNumber = function(a) { switch(a) { case 0: return d.ROUND; case 1: return d.NONE; case 2: return d.SQUARE; default: return null; } }; d.toNumber = function(a) { switch(a) { case d.ROUND: return 0; case d.NONE: return 1; case d.SQUARE: return 2; default: return -1; } }; d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; d.ROUND = "round"; d.NONE = "none"; d.SQUARE = "square"; return d; }(b.ASObject); f.CapsStyle = k; })(f.display || (f.display = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(f) { (function(f) { var k = function(b) { function d() { b.call(this); } __extends(d, b); d.fromNumber = function(a) { switch(a) { case 0: return d.NONE; case 1: return d.NORMAL; case 2: return d.VERTICAL; case 3: return d.HORIZONTAL; default: return null; } }; d.toNumber = function(a) { switch(a) { case d.NONE: return 0; case d.NORMAL: return 1; case d.VERTICAL: return 2; case d.HORIZONTAL: return 3; default: return -1; } }; d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; d.NORMAL = "normal"; d.VERTICAL = "vertical"; d.HORIZONTAL = "horizontal"; d.NONE = "none"; return d; }(b.ASObject); f.LineScaleMode = k; })(f.display || (f.display = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(f) { (function(f) { var k = function(b) { function d() { b.call(this); } __extends(d, b); d.fromNumber = function(a) { switch(a) { case 16: return d.LINEAR; case 18: return d.RADIAL; default: return null; } }; d.toNumber = function(a) { switch(a) { case d.LINEAR: return 16; case d.RADIAL: return 18; default: return -1; } }; d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; d.LINEAR = "linear"; d.RADIAL = "radial"; return d; }(b.ASObject); f.GradientType = k; })(f.display || (f.display = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(f) { (function(f) { var k = function(b) { function d() { b.call(this); } __extends(d, b); d.fromNumber = function(a) { switch(a) { case 0: return d.PAD; case 1: return d.REFLECT; case 2: return d.REPEAT; default: return null; } }; d.toNumber = function(a) { switch(a) { case d.PAD: return 0; case d.REFLECT: return 1; case d.REPEAT: return 2; default: return -1; } }; d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; d.PAD = "pad"; d.REFLECT = "reflect"; d.REPEAT = "repeat"; return d; }(b.ASObject); f.SpreadMethod = k; })(f.display || (f.display = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(f) { (function(f) { var k = function(b) { function d() { b.call(this); } __extends(d, b); d.fromNumber = function(a) { switch(a) { case 0: return d.RGB; case 1: return d.LINEAR_RGB; default: return null; } }; d.toNumber = function(a) { switch(a) { case d.RGB: return 0; case d.LINEAR_RGB: return 1; default: return -1; } }; d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; d.RGB = "rgb"; d.LINEAR_RGB = "linearRGB"; return d; }(b.ASObject); f.InterpolationMethod = k; })(f.display || (f.display = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(f) { (function(f) { var k = function(b) { function d(a, c, e, d) { void 0 === a && (a = null); void 0 === c && (c = null); void 0 === e && (e = !0); void 0 === d && (d = !1); b.call(this); this.bitmapData = a; this.matrix = c; this.repeat = !!e; this.smooth = !!d; } __extends(d, b); d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; return d; }(b.ASObject); f.GraphicsBitmapFill = k; })(f.display || (f.display = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(f) { (function(f) { var k = function(b) { function d() { b.call(this); } __extends(d, b); d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; return d; }(b.ASObject); f.GraphicsEndFill = k; })(f.display || (f.display = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(q) { (function(q) { var k = f.AVMX.axCoerceString, r = function(b) { function a(a, e, g, f, t, p, h, m) { void 0 === a && (a = "linear"); void 0 === e && (e = null); void 0 === g && (g = null); void 0 === f && (f = null); void 0 === t && (t = null); void 0 === p && (p = "pad"); void 0 === h && (h = "rgb"); void 0 === m && (m = 0); b.call(this); this.type = k(a); this.colors = e; this.alphas = g; this.ratios = f; this.matrix = t; this.spreadMethod = p; this.interpolationMethod = k(h); this.focalPointRatio = +m; } __extends(a, b); a.classInitializer = null; return a; }(b.ASObject); q.GraphicsGradientFill = r; })(q.display || (q.display = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(q) { (function(q) { var k = f.AVMX.axCoerceString, r = function(b) { function a(a, e, g) { void 0 === a && (a = null); void 0 === e && (e = null); void 0 === g && (g = "evenOdd"); b.call(this); this.commands = a; this.data = e; this.winding = k(g); } __extends(a, b); a.classInitializer = null; a.classSymbols = null; a.instanceSymbols = null; return a; }(b.ASObject); q.GraphicsPath = r; })(q.display || (q.display = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(f) { (function(f) { var k = function(b) { function d() { b.call(this); } __extends(d, b); d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; d.NO_OP = void 0; d.MOVE_TO = 1; d.LINE_TO = 2; d.CURVE_TO = 3; d.WIDE_MOVE_TO = 4; d.WIDE_LINE_TO = 5; d.CUBIC_CURVE_TO = 6; return d; }(b.ASObject); f.GraphicsPathCommand = k; })(f.display || (f.display = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(f) { (function(f) { var k = function(b) { function d() { b.call(this); } __extends(d, b); d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; d.EVEN_ODD = "evenOdd"; d.NON_ZERO = "nonZero"; return d; }(b.ASObject); f.GraphicsPathWinding = k; })(f.display || (f.display = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(f) { (function(f) { var k = function(b) { function d(a, c) { void 0 === a && (a = 0); void 0 === c && (c = 1); b.call(this); this.color = a >>> 0; this.alpha = +c; } __extends(d, b); d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; return d; }(b.ASObject); f.GraphicsSolidFill = k; })(f.display || (f.display = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(q) { (function(q) { var k = f.AVMX.axCoerceString, r = function(b) { function a(a, e, g, f, t, p, h) { void 0 === a && (a = NaN); void 0 === e && (e = !1); void 0 === g && (g = "normal"); void 0 === f && (f = "none"); void 0 === t && (t = "round"); void 0 === p && (p = 3); void 0 === h && (h = null); b.call(this); this.thickness = +a; this.pixelHinting = !!e; this.scaleMode = k(g); this.caps = k(f); this.joints = k(t); this.miterLimit = +p; this.fill = h; } __extends(a, b); a.classInitializer = null; a.classSymbols = null; a.instanceSymbols = null; return a; }(b.ASObject); q.GraphicsStroke = r; })(q.display || (q.display = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(q) { (function(q) { var k = f.AVMX.axCoerceString, r = function(b) { function a(a, e, g, f) { void 0 === a && (a = null); void 0 === e && (e = null); void 0 === g && (g = null); void 0 === f && (f = "none"); b.call(this); this.vertices = a; this.indices = e; this.uvtData = g; this.culling = k(f); } __extends(a, b); a.classInitializer = null; a.classSymbols = null; a.instanceSymbols = null; return a; }(b.ASObject); q.GraphicsTrianglePath = r; })(q.display || (q.display = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(g) { (function(q) { (function(u) { function k(a, b, c, e) { a = c - a; b = e - b; return a * a + b * b; } function r(a, b, c, e) { var d = 1 - e; return a * d * d + 2 * b * d * e + c * e * e; } function d(a, b, c) { var e = (a - b) / (a - 2 * b + c); return 0 > e ? a : 1 < e ? c : r(a, b, c, e); } function a(a, b, c, e, d) { var h = d * d, m = 1 - d, g = m * m; return a * m * g + 3 * b * d * g + 3 * c * m * h + e * d * h; } function c(b, c, e, d) { var h = c - b, m; m = 2 * (e - c); var g = d - e; h + g === m && (g *= 1.0001); var l = 2 * h - m, f = m - 2 * h, f = Math.sqrt(f * f - 4 * h * (h - m + g)); m = 2 * (h - m + g); h = (l + f) / m; l = (l - f) / m; f = []; 0 <= h && 1 >= h && f.push(Math.round(a(b, c, e, d, h))); 0 <= l && 1 >= l && f.push(Math.round(a(b, c, e, d, l))); return f; } function e(a, b, c, e, d, h, m, g, f) { function n(a) { return a * (r + a * (q + a * u)) + b - f; } function v(b) { 0 > b ? b = 0 : 1 < b && (b = 1); return a + b * (t + b * (k + b * w)); } function p(a, b, c, e) { if (!(Math.abs(c - b) <= e)) { var d = .5 * (b + c); 0 >= a(b) * a(c) ? (H = b, K = c) : (p(a, b, d, e), p(a, d, c, e)); } } var t = 3 * (c - a), r = 3 * (e - b), k = 3 * (d - c) - t, q = 3 * (h - e) - r, w = m - a - t - k, u = g - b - r - q, H = 0, K = 1; p(n, 0, 1, .05); h = l(H, K, n); if (1E-5 < Math.abs(n(h))) { return []; } c = []; 1 >= h && c.push(v(h)); e = u; d = h * e + q; m = d * d - 4 * e * (h * d + r); if (0 > m) { return c; } m = Math.sqrt(m); e = 1 / (e + e); h = (m - d) * e; e *= -d - m; 0 <= h && 1 >= h && c.push(v(h)); 0 <= e && 1 >= e && c.push(v(e)); return c; } function l(a, b, c) { var e, d, h, m, g, l, f = a; d = c(a); if (0 === d) { return a; } m = c(b); if (0 === m) { return b; } if (0 < m * d) { return a; } for (var n = 0, v = 0;50 > v;++v) { n++; e = .5 * (b + a); h = c(e); if (0 === h) { break; } if (1E-6 > Math.abs(e - a)) { break; } 0 < h * d && (a = b, b = d, d = m, m = b); b = h - d; l = m - h; g = m - d; if (m * g < 2 * h * b) { b = e, m = h; } else { m = (e - a) / b; b = (b - l) / (l * g); b = a - m * d * (1 - b * h); m = c(b); if (0 === m || 1E-6 > Math.abs(b - f)) { return b; } f = b; 0 > m * d || (a = b, d = m, b = e, m = h); } } return e; } function n(a, b, c, e, d, h) { return h > b !== e > b && a < (c - d) * (b - h) / (e - h) + d; } var t = f.Debug.notImplemented, p = f.AVMX.axCoerceString, h = f.NumberUtilities.clamp, m = f.Bounds, v = q.display.GradientType, w = q.display.SpreadMethod, H = q.display.InterpolationMethod, K = q.display.LineScaleMode, z = q.display.CapsStyle, A = q.display.JointStyle, B = f.ShapeData, x = function(g) { function l() { g.call(this); this._id = q.display.DisplayObject.getNextSyncID(); this._graphicsData = new B; this._textures = []; this._fillBounds = new m(134217728, 134217728, 134217728, 134217728); this._lineBounds = new m(134217728, 134217728, 134217728, 134217728); this._lastX = this._lastY = 0; this._boundsIncludeLastCoordinates = !0; this._parent = null; this._topLeftStrokeWidth = this._bottomRightStrokeWidth = 0; this._isDirty = !0; } __extends(l, g); l.FromData = function(a, b) { var c = new b.sec.flash.display.Graphics; c._graphicsData = B.FromPlainObject(a.shape); a.lineBounds && (c._lineBounds.copyFrom(a.lineBounds), c._fillBounds.copyFrom(a.fillBounds || a.lineBounds)); return c; }; l.prototype.getGraphicsData = function() { return this._graphicsData; }; l.prototype.getUsedTextures = function() { return this._textures; }; l.prototype._setStrokeWidth = function(a) { switch(a) { case 1: this._topLeftStrokeWidth = 0; this._bottomRightStrokeWidth = 1; break; case 3: this._topLeftStrokeWidth = 1; this._bottomRightStrokeWidth = 2; break; default: this._bottomRightStrokeWidth = this._topLeftStrokeWidth = a = Math.ceil(.5 * a) | 0; } }; l.prototype._setParent = function(a) { this._parent = a; }; l.prototype._invalidate = function() { this._parent._invalidateFillAndLineBounds(!0, !0); this._parent._propagateFlagsUp(536870912); this._isDirty = !0; }; l.prototype._getContentBounds = function(a) { void 0 === a && (a = !0); return a ? this._lineBounds : this._fillBounds; }; l.prototype.clear = function() { this._graphicsData.isEmpty() || (this._graphicsData.clear(), this._textures.length = 0, this._fillBounds.setToSentinels(), this._lineBounds.setToSentinels(), this._lastX = this._lastY = 0, this._boundsIncludeLastCoordinates = !1, this._invalidate()); }; l.prototype.beginFill = function(a, b) { void 0 === b && (b = 1); a = a >>> 0 & 16777215; b = Math.round(255 * h(+b, -1, 1)) | 0; this._graphicsData.beginFill(a << 8 | b); }; l.prototype.beginGradientFill = function(a, b, c, e, d, h, m, l) { void 0 === d && (d = null); void 0 === h && (h = "pad"); void 0 === m && (m = "rgb"); void 0 === l && (l = 0); this._writeGradientStyle(2, a, b, c, e, d, h, m, l, !1); }; l.prototype.beginBitmapFill = function(a, b, c, e) { void 0 === b && (b = null); void 0 === c && (c = !0); void 0 === e && (e = !1); this._writeBitmapStyle(3, a, b, c, e, !1); }; l.prototype.endFill = function() { this._graphicsData.endFill(); }; l.prototype.lineStyle = function(a, b, c, e, d, m, l, g) { void 0 === b && (b = 0); void 0 === c && (c = 1); void 0 === e && (e = !1); void 0 === d && (d = "normal"); void 0 === m && (m = null); void 0 === l && (l = null); void 0 === g && (g = 3); a = +a; b = b >>> 0 & 16777215; c = Math.round(255 * h(+c, -1, 1)); e = !!e; d = p(d); m = p(m); l = p(l); g = h(+g | 0, 0, 255); isNaN(a) ? (this._setStrokeWidth(0), this._graphicsData.endLine()) : (a = 20 * h(+a, 0, 255) | 0, this._setStrokeWidth(a), d = K.toNumber(p(d)), 0 > d && (d = K.toNumber(K.NORMAL)), m = z.toNumber(p(m)), 0 > m && (m = z.toNumber(z.ROUND)), l = A.toNumber(p(l)), 0 > l && (l = A.toNumber(A.ROUND)), this._graphicsData.lineStyle(a, b << 8 | c, e, d, m, l, g)); }; l.prototype.lineGradientStyle = function(a, b, c, e, d, h, m, l) { void 0 === d && (d = null); void 0 === h && (h = "pad"); void 0 === m && (m = "rgb"); void 0 === l && (l = 0); this._writeGradientStyle(6, a, b, c, e, d, h, m, l, !this._graphicsData.hasLines); }; l.prototype.lineBitmapStyle = function(a, b, c, e) { void 0 === b && (b = null); void 0 === c && (c = !0); void 0 === e && (e = !1); this._writeBitmapStyle(7, a, b, c, e, !this._graphicsData.hasLines); }; l.prototype.drawRect = function(a, b, c, e) { a = 20 * a | 0; b = 20 * b | 0; c = a + (20 * c | 0); e = b + (20 * e | 0); a === this._lastX && b === this._lastY || this._graphicsData.moveTo(a, b); this._graphicsData.lineTo(c, b); this._graphicsData.lineTo(c, e); this._graphicsData.lineTo(a, e); this._graphicsData.lineTo(a, b); this._extendBoundsByPoint(c, e); this._applyLastCoordinates(a, b); this._invalidate(); }; l.prototype.drawRoundRect = function(a, b, c, e, d, h) { a = +a; b = +b; c = +c; e = +e; d = +d; if ((h = +h) && d) { d = d / 2 | 0; h = h / 2 | 0; var m = c / 2, l = e / 2; d > m && (d = m); h > l && (h = l); m === d && l === h ? d === h ? this.drawCircle(a + d, b + h, d) : this.drawEllipse(a, b, 2 * d, 2 * h) : (c = a + c, e = b + e, m = a + d, d = c - d, l = b + h, h = e - h, this.moveTo(c, h), this.curveTo(c, e, d, e), this.lineTo(m, e), this.curveTo(a, e, a, h), this.lineTo(a, l), this.curveTo(a, b, m, b), this.lineTo(d, b), this.curveTo(c, b, c, l), this.lineTo(c, h)); } else { this.drawRect(a, b, c, e); } }; l.prototype.drawRoundRectComplex = function(a, b, c, e, d, h, m, l) { a = +a; b = +b; c = +c; e = +e; d = +d; h = +h; m = +m; l = +l; if (d | h | m | l) { c = a + c; e = b + e; var g = a + d; this.moveTo(c, e - l); this.curveTo(c, e, c - l, e); this.lineTo(a + m, e); this.curveTo(a, e, a, e - m); this.lineTo(a, b + d); this.curveTo(a, b, g, b); this.lineTo(c - h, b); this.curveTo(c, b, c, b + h); this.lineTo(c, e - l); } else { this.drawRect(a, b, c, e); } }; l.prototype.drawCircle = function(a, b, c) { c = +c; this.drawEllipse(+a - c, +b - c, 2 * c, 2 * c); }; l.prototype.drawEllipse = function(a, b, c, e) { c = +c / 2; e = +e / 2; a = +a + c; b = +b + e; var d = a + c, h = b; this.moveTo(d, h); for (var m = 0, l = 1, g = 0, f = 0;4 > f;f++) { var n = m + Math.PI / 2, m = 4 / 3 * Math.tan((n - m) / 4), v = d - g * m * c, p = h + l * m * e, l = Math.cos(n), g = Math.sin(n), d = a + l * c, h = b + g * e; this.cubicCurveTo(v, p, d + g * m * c, h - l * m * e, d, h); m = n; } }; l.prototype.moveTo = function(a, b) { a = 20 * a | 0; b = 20 * b | 0; this._graphicsData.moveTo(a, b); this._lastX = a; this._lastY = b; this._boundsIncludeLastCoordinates = !1; }; l.prototype.lineTo = function(a, b) { a = 20 * a | 0; b = 20 * b | 0; this._graphicsData.lineTo(a, b); this._applyLastCoordinates(a, b); this._invalidate(); }; l.prototype.curveTo = function(a, b, c, e) { a = 20 * a | 0; b = 20 * b | 0; c = 20 * c | 0; e = 20 * e | 0; this._graphicsData.curveTo(a, b, c, e); (a < this._lastX || a > c) && this._extendBoundsByX(d(this._lastX, a, c) | 0); (b < this._lastY || b > e) && this._extendBoundsByY(d(this._lastY, b, e) | 0); this._applyLastCoordinates(c, e); this._invalidate(); }; l.prototype.cubicCurveTo = function(a, b, e, d, h, m) { a = 20 * a | 0; b = 20 * b | 0; e = 20 * e | 0; d = 20 * d | 0; h = 20 * h | 0; m = 20 * m | 0; this._graphicsData.cubicCurveTo(a, b, e, d, h, m); var l = this._lastX, g = this._lastY; if (a < l || e < l || a > h || e > h) { for (a = c(l, a, e, h), e = a.length;e--;) { this._extendBoundsByX(a[e] | 0); } } if (b < g || d < g || b > m || d > m) { for (a = c(g, b, d, m), e = a.length;e--;) { this._extendBoundsByY(a[e] | 0); } } this._applyLastCoordinates(h, m); this._invalidate(); }; l.prototype.copyFrom = function(a) { this._graphicsData = a._graphicsData.clone(); this._fillBounds = a._fillBounds.clone(); this._lineBounds = a._lineBounds.clone(); this._textures = a._textures.concat(); this._lastX = a._lastX; this._lastY = a._lastY; this._boundsIncludeLastCoordinates = a._boundsIncludeLastCoordinates; this._invalidate(); }; l.prototype.drawPath = function(a, b, c) { void 0 === c && (c = "evenOdd"); p(c); t("public flash.display.Graphics::drawPath"); }; l.prototype.drawTriangles = function(a, b, c, e) { void 0 === e && (e = "none"); p(e); t("public flash.display.Graphics::drawTriangles"); }; l.prototype.drawGraphicsData = function(a) { t("public flash.display.Graphics::drawGraphicsData"); }; l.prototype._containsPoint = function(a, b, c, e) { var d = this._graphicsData.hasLines; if (!e && !(c && d ? this._lineBounds : this._fillBounds).contains(a, b)) { return !1; } d = !1; this._graphicsData.hasFills && (d = this._fillContainsPoint(a, b, e)); !d && c && (d = this._linesContainsPoint(a, b, e)); return d; }; l.prototype._fillContainsPoint = function(a, b, c) { for (var d = this._graphicsData, h = d.commands, m = d.commandsPosition, l = d.coordinates, d = d.morphCoordinates, g = 0, f = 0, v = 0, p = 0, t = 0, k, q, w = !1, u = !1, H = 0, K = 0, z = !1, B = 0;B < m;B++) { q = h[B]; switch(q) { case 9: w && u && n(a, b, f, v, H, K) && (z = !z); w = !0; f = H = l[g++]; v = K = l[g++]; c && (f = H += (d[g - 2] - H) * c, v = K += (d[g - 2] - K) * c); continue; case 10: p = l[g++]; t = l[g++]; c && (p += (d[g - 2] - p) * c, t += (d[g - 1] - t) * c); u && n(a, b, f, v, p, t) && (z = !z); break; case 11: k = l[g++]; q = l[g++]; p = l[g++]; t = l[g++]; c && (k += (d[g - 4] - k) * c, q += (d[g - 3] - q) * c, p += (d[g - 2] - p) * c, t += (d[g - 1] - t) * c); var A; if (A = u) { A = a; var x = p; if (q > b === v > b && t > b === v > b) { A = !1; } else { if (f >= A && k >= A && x >= A) { A = !0; } else { var C = v - 2 * q + t; q = 2 * (q - v); var y = q * q - 4 * C * (v - b); 0 > y ? A = !1 : (y = Math.sqrt(y), C = 1 / (C + C), v = (y - q) * C, q = (-q - y) * C, C = !1, 0 <= v && 1 >= v && r(f, k, x, v) > A && (C = !C), 0 <= q && 1 >= q && r(f, k, x, q) > A && (C = !C), A = C); } } } A && (z = !z); break; case 12: k = l[g++]; q = l[g++]; x = l[g++]; C = l[g++]; p = l[g++]; t = l[g++]; c && (k += (d[g - 6] - k) * c, q += (d[g - 5] - q) * c, x += (d[g - 4] - x) * c, C += (d[g - 3] - C) * c, p += (d[g - 2] - p) * c, t += (d[g - 1] - t) * c); if (A = u) { if (A = a, y = v > b, q > b === y && C > b === y && t > b === y) { A = !1; } else { if (f < A && k < A && x < A && p < A) { A = !1; } else { y = !1; v = e(f, v, k, q, x, C, p, t, b); for (q = v.length;q;q--) { v[q] >= A && (y = !y); } A = y; } } } A && (z = !z); break; case 1: ; case 2: ; case 3: ; case 4: w && u && n(a, b, f, v, H, K) && (z = !z); if (z) { return !0; } w = !1; u = 4 !== q; break; case 5: g++; } f = p; v = t; } w && u && n(a, b, f, v, H, K) && (z = !z); return z; }; l.prototype._linesContainsPoint = function(b, e, h) { for (var m = this._graphicsData, l = m.commands, g = m.commandsPosition, f = m.coordinates, m = m.morphCoordinates, n = 0, v = 0, p = 0, t = 0, q = 0, w, u, H, K, z, B = 0, A = w = 0, x = 0, C = 0, y = 0, aa = 0, ea = 0;ea < g;ea++) { switch(l[ea]) { case 9: v = f[n++]; p = f[n++]; h && (v += (m[n - 2] - v) * h, p += (m[n - 1] - p) * h); continue; case 10: if (0 === B) { v = f[n++]; p = f[n++]; h && (v += (m[n - 2] - v) * h, p += (m[n - 1] - p) * h); continue; } t = f[n++]; q = f[n++]; h && (t += (m[n - 2] - t) * h, q += (m[n - 1] - q) * h); if (v === t && p === q) { break; } if (C < v && C < t || x > v && x > t || aa < p && aa < q || y > p && y > q) { break; } if (t === v || q === p) { return !0; } z = ((b - v) * (t - v) + (e - p) * (q - p)) / k(v, p, t, q); if (0 > z) { if (k(b, e, v, p) <= A) { return !0; } break; } if (1 < z) { if (k(b, e, t, q) <= A) { return !0; } break; } if (k(b, e, v + z * (t - v), p + z * (q - p)) <= A) { return !0; } break; case 11: if (0 === B) { n += 2; v = f[n++]; p = f[n++]; h && (v += (m[n - 2] - v) * h, p += (m[n - 1] - p) * h); continue; } w = f[n++]; u = f[n++]; t = f[n++]; q = f[n++]; h && (w += (m[n - 4] - w) * h, u += (m[n - 3] - u) * h, t += (m[n - 2] - t) * h, q += (m[n - 1] - q) * h); var da = d(v, w, t); if (C < v && C < da && C < t || x > v && x > da && x > t) { break; } da = d(p, u, q); if (aa < p && aa < da && aa < q || y > p && y > da && y > q) { break; } for (z = 0;1 > z;z += .02) { if (H = r(v, w, t, z), !(H < x || H > C) && (K = r(p, u, q, z), !(K < y || K > aa) && (b - H) * (b - H) + (e - K) * (e - K) < A)) { return !0; } } break; case 12: if (0 === B) { n += 4; n++; v = f[n++]; h && (v += (m[n - 2] - v) * h, p += (m[n - 1] - p) * h); continue; } w = f[n++]; u = f[n++]; var da = f[n++], fa = f[n++], t = f[n++], q = f[n++]; h && (w += (m[n - 6] - w) * h, u += (m[n - 5] - u) * h, da += (m[n - 4] - da) * h, fa += (m[n - 3] - fa) * h, t += (m[n - 2] - t) * h, q += (m[n - 1] - q) * h); for (H = c(v, w, da, t);2 > H.length;) { H.push(t); } if (C < v && C < t && C < H[0] && C < H[1] || x > v && x > t && x > H[0] && x > H[1]) { break; } for (H = c(p, u, fa, q);2 > H.length;) { H.push(q); } if (aa < p && aa < q && aa < H[0] && aa < H[1] || y > p && y > q && y > H[0] && y > H[1]) { break; } for (z = 0;1 > z;z += .02) { if (H = a(v, w, da, t, z), !(H < x || H > C) && (K = a(p, u, fa, q, z), !(K < y || K > aa) && (b - H) * (b - H) + (e - K) * (e - K) < A)) { return !0; } } break; case 5: B = f[n++], h && (B += (m[n - 1] - B) * h), w = B >> 2, A = w * w, x = b - w, C = b + w, y = e - w, aa = e + w; } v = t; p = q; } return !1; }; l.prototype._writeBitmapStyle = function(a, c, e, d, h, m) { f.isNullOrUndefined(c) && this.sec.throwError("TypeError", b.Errors.NullPointerError, "bitmap"); this.sec.flash.display.BitmapData.axIsType(c) || this.sec.throwError("TypeError", b.Errors.CheckTypeFailedError, "bitmap", "flash.display.BitmapData"); f.isNullOrUndefined(e) ? e = this.sec.flash.geom.Matrix.axClass.FROZEN_IDENTITY_MATRIX : this.sec.flash.geom.Matrix.axIsType(e) || this.sec.throwError("TypeError", b.Errors.CheckTypeFailedError, "matrix", "flash.geom.Matrix"); d = !!d; h = !!h; m || (m = this._textures.length, this._textures.push(c), this._graphicsData.beginBitmap(a, m, e, d, h)); }; l.prototype._writeGradientStyle = function(a, c, e, d, m, l, g, n, t, r) { f.isNullOrUndefined(c) && this.sec.throwError("TypeError", b.Errors.NullPointerError, "type"); c = v.toNumber(p(c)); 0 > c && this.sec.throwError("ArgumentError", b.Errors.InvalidEnumError, "type"); f.isNullOrUndefined(e) && this.sec.throwError("TypeError", b.Errors.NullPointerError, "colors"); var k = this.sec.AXArray; k.axIsInstanceOf(e) || this.sec.throwError("TypeError", b.Errors.CheckTypeFailedError, "colors", "Array"); e = e.value; f.isNullOrUndefined(d) && this.sec.throwError("TypeError", b.Errors.NullPointerError, "alphas"); k.axIsInstanceOf(d) || this.sec.throwError("TypeError", b.Errors.CheckTypeFailedError, "alphas", "Array"); var q = d.value; f.isNullOrUndefined(m) && this.sec.throwError("TypeError", b.Errors.NullPointerError, "ratios"); k.axIsInstanceOf(m) || this.sec.throwError("TypeError", b.Errors.CheckTypeFailedError, "ratios", "Array"); k = m.value; m = []; d = []; var u = e.length, K = u === q.length && u === k.length; if (K) { for (var z = 0;z < u;z++) { var B = +k[z]; if (255 < B || 0 > B) { K = !1; break; } m[z] = e[z] << 8 & 4294967040 | 255 * h(+q[z], 0, 1); d[z] = B; } } K && (f.isNullOrUndefined(l) ? l = this.sec.flash.geom.Matrix.axClass.FROZEN_IDENTITY_MATRIX : this.sec.flash.geom.Matrix.axIsType(l) || this.sec.throwError("TypeError", b.Errors.CheckTypeFailedError, "matrix", "flash.geom.Matrix"), r || (g = w.toNumber(p(g)), 0 > g && (g = w.toNumber(w.PAD)), n = H.toNumber(p(n)), 0 > n && (n = H.toNumber(H.RGB)), l = {a:819.2 * l.a, b:819.2 * l.b, c:819.2 * l.c, d:819.2 * l.d, tx:l.tx, ty:l.ty}, t = h(+t, -1, 1) / 2 * 255 | 0, this._graphicsData.beginGradient(a, m, d, c, l, g, n, t))); }; l.prototype._extendBoundsByPoint = function(a, b) { this._extendBoundsByX(a); this._extendBoundsByY(b); }; l.prototype._extendBoundsByX = function(a) { this._fillBounds.extendByX(a); var b = this._lineBounds; 134217728 === b.xMin ? (b.xMin = a - this._topLeftStrokeWidth, b.xMax = a + this._bottomRightStrokeWidth) : (b.xMin = Math.min(a - this._topLeftStrokeWidth, b.xMin), b.xMax = Math.max(a + this._bottomRightStrokeWidth, b.xMax)); }; l.prototype._extendBoundsByY = function(a) { this._fillBounds.extendByY(a); var b = this._lineBounds; 134217728 === b.yMin ? (b.yMin = a - this._topLeftStrokeWidth, b.yMax = a + this._bottomRightStrokeWidth) : (b.yMin = Math.min(a - this._topLeftStrokeWidth, b.yMin), b.yMax = Math.max(a + this._bottomRightStrokeWidth, b.yMax)); }; l.prototype._applyLastCoordinates = function(a, b) { this._boundsIncludeLastCoordinates || this._extendBoundsByPoint(this._lastX, this._lastY); this._boundsIncludeLastCoordinates = !0; this._lastX = a; this._lastY = b; this._extendBoundsByPoint(a, b); }; l.classInitializer = null; return l; }(g.ASObject); u.Graphics = x; })(q.display || (q.display = {})); })(g.flash || (g.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(b) { (function(g) { var k = f.Debug.notImplemented, r = f.Timeline, d = f.NumberUtilities.clamp, a; (function(a) { a[a.Inactive = 0] = "Inactive"; a[a.LockToPointer = 1] = "LockToPointer"; a[a.PreserveDistance = 2] = "PreserveDistance"; })(a || (a = {})); a = function(a) { function b() { this._symbol && !this._fieldsInitialized && this.applySymbol(); a.call(this); this._fieldsInitialized || this._initializeFields(); this._constructChildren(); } __extends(b, a); b.prototype.applySymbol = function() { this._initializeFields(); var a = this._symbol; a.isRoot && (this._root = this); this._children = []; a.numFrames && 0 < a.frames.length && this._initializeChildren(a.frames[0]); }; b.prototype._initializeFields = function() { a.prototype._initializeFields.call(this); this._graphics = null; this._buttonMode = !1; this._hitArea = this._dropTarget = null; this._useHandCursor = !0; this._dragDeltaY = this._dragDeltaX = this._dragMode = 0; this._hitTarget = this._dragBounds = null; }; b.prototype._addFrame = function(a) { var b = this._symbol.frames; b.push(a); 1 === b.length && this._initializeChildren(a); }; b.prototype._initializeChildren = function(a) { a.controlTags && this._processControlTags(a.controlTags, !1); }; b.prototype._processControlTags = function(a, b) { if (b) { for (var c = this._children.slice(), e = 0;e < c.length;e++) { var d = c[e]; if (!(0 > d._depth || "_as2Object" in d && 16384 <= d._depth)) { for (var m = null, g = 0;g < a.length;g++) { if (a[g].depth === d._depth) { m = a[g]; break; } } m && d._symbol.id === m.symbolId && d._ratio === (m.ratio | 0) || this._removeAnimatedChild(d); } } } c = this._symbol.loaderInfo; for (e = 0;e < a.length;e++) { switch(d = a[e], m = void 0 === d.tagCode ? d : c._file.getParsedTag(d), m.code) { case 5: ; case 28: (d = this.getTimelineObjectAtDepth(m.depth | 0)) && this._removeAnimatedChild(d); break; case 4: ; case 26: ; case 70: var g = m, r = g.depth, d = this.getTimelineObjectAtDepth(r), k = -1 < g.symbolId; if (g.flags & 1) { if (!d) { break; } } else { if (!k || d && (!b || !k)) { f.Debug.warning("Warning: Failed to place object at depth " + r + "."); break; } } var q = null; if (k && (q = c.getSymbolById(g.symbolId), !q)) { break; } d ? (q && !q.dynamic && d._setStaticContentFromSymbol(q), d._hasFlags(4096) && d._animate(m)) : (d = this.createAnimatedDisplayObject(q, g, !1), this.addTimelineObjectAtDepth(d, r), q.isAVM1Object && f.AVM1.Lib.initializeAVM1Object(d, q.avm1Context, g)); } } }; b.prototype._removeAnimatedChild = function(a) { this.removeChild(a); a._name && this.axGetPublicProperty(a._name) === a && this.axSetPublicProperty(a._name, null); a._maskedObject && (a._maskedObject.mask = null); }; b.prototype._canHaveGraphics = function() { return !0; }; b.prototype._getGraphics = function() { return this._graphics; }; Object.defineProperty(b.prototype, "graphics", {get:function() { return this._ensureGraphics(); }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "buttonMode", {get:function() { return this._buttonMode; }, set:function(a) { this._buttonMode = !!a; }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "dropTarget", {get:function() { return this._dropTarget; }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "hitArea", {get:function() { return this._hitArea; }, set:function(a) { this._hitArea !== a && (a && a._hitTarget && (a._hitTarget._hitArea = null), this._hitArea = a) && (a._hitTarget = this); }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "useHandCursor", {get:function() { return this._useHandCursor; }, set:function(a) { this._useHandCursor = !!a; }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "soundTransform", {get:function() { k("public flash.display.Sprite::get soundTransform"); }, set:function(a) { k("public flash.display.Sprite::set soundTransform"); }, enumerable:!0, configurable:!0}); b.prototype._getDragMousePosition = function() { var a = this.sec.flash.ui.Mouse.axClass._currentPosition; this._parent && (a = this._parent.globalToLocal(a)); return a; }; b.prototype.startDrag = function(a, b) { void 0 === a && (a = !1); void 0 === b && (b = null); if (a) { this._dragMode = 1; } else { this._dragMode = 2; var c = this._getDragMousePosition(); this._dragDeltaX = this.x - c.x; this._dragDeltaY = this.y - c.y; } this._dragBounds = b; this.sec.flash.ui.Mouse.axClass.draggableObject = this; }; b.prototype.stopDrag = function() { this.sec.flash.ui.Mouse.axClass.draggableObject === this && (this.sec.flash.ui.Mouse.axClass.draggableObject = null, this._dragDeltaY = this._dragDeltaX = this._dragMode = 0, this._dragBounds = null); }; b.prototype._updateDragState = function(a) { void 0 === a && (a = null); var b = this._getDragMousePosition(), c = b.x, b = b.y; 2 === this._dragMode && (c += this._dragDeltaX, b += this._dragDeltaY); if (this._dragBounds) { var e = this._dragBounds, c = d(c, e.left, e.right), b = d(b, e.top, e.bottom) } this.x = c; this.y = b; this._dropTarget = a; }; b.prototype.startTouchDrag = function(a, b, c) { k("public flash.display.Sprite::startTouchDrag"); }; b.prototype.stopTouchDrag = function(a) { k("public flash.display.Sprite::stopTouchDrag"); }; b.prototype._containsPoint = function(a, b, c, e, d, m) { if (!(5 === d && 0 < this._dragMode)) { var g = this._boundsAndMaskContainPoint(a, b, c, e, d); !g && 3 === d && this._hitArea && this._mouseEnabled && (g = this._hitArea._getInvertedConcatenatedMatrix(), g = this._hitArea._boundsAndMaskContainPoint(a, b, g.transformX(a, b), g.transformY(a, b), d)); return 0 === g || 2 > d ? g : this._containsPointImpl(a, b, c, e, d, m, !0); } }; b.prototype._containsPointDirectly = function(a, b, c, e) { if (this._hitArea) { return !!this._hitArea._containsGlobalPoint(c, e, 2, null); } c = this._getGraphics(); return !!c && c._containsPoint(a, b, !0, 0); }; b.classInitializer = null; b.classSymbols = null; b.instanceSymbols = null; return b; }(b.display.DisplayObjectContainer); g.Sprite = a; r = function(a) { function b(e, d) { a.call(this, e, d.app.sec.flash.display.MovieClip.axClass, !0); this.numFrames = 1; this.frames = []; this.labels = []; this.frameScripts = []; this.loaderInfo = d; } __extends(b, a); b.FromData = function(a, c) { var d = new b(a, c); d.numFrames = a.frameCount; c.actionScriptVersion === g.ActionScriptVersion.ACTIONSCRIPT2 && (d.isAVM1Object = !0, d.avm1Context = c._avm1Context); d.frameScripts = []; for (var f = a.frames, h = c.app.sec.flash.display.FrameLabel, m = 0;m < f.length;m++) { var v = c.getFrame(a, m), r = v.actionBlocks; if (r) { for (var k = 0;k < r.length;k++) { d.frameScripts.push(m), d.frameScripts.push(r[k]); } } v.labelName && d.labels.push(new h(v.labelName, m + 1)); d.frames.push(v); } return d; }; return b; }(r.DisplaySymbol); g.SpriteSymbol = r; })(b.display || (b.display = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(g) { (function(q) { (function(u) { var k = f.AVMX.axCoerceString, r = q.events; (function(a) { a[a.SWF1 = 1] = "SWF1"; a[a.SWF9 = 9] = "SWF9"; a[a.SWF10 = 10] = "SWF10"; })(u.FrameNavigationModel || (u.FrameNavigationModel = {})); var d = function() { function a(b) { this._mc = b; this._soundStream = this._startSoundRegistrations = null; } a.prototype.registerStartSounds = function(a, b) { null === this._startSoundRegistrations && (this._startSoundRegistrations = {}); this._startSoundRegistrations[a] = b; }; a.prototype.initSoundStream = function(a) { this._soundStream = new u.MovieClipSoundStream(a, this._mc); }; a.prototype.addSoundStreamBlock = function(a, b) { this._soundStream && this._soundStream.appendBlock(a, b); }; a.prototype._startSounds = function(a) { if (a = this._startSoundRegistrations[a]) { for (var b = this._soundClips || (this._soundClips = {}), c = this._mc.loaderInfo, d = 0;d < a.length;d++) { var f = a[d], h = f.soundId, f = f.soundInfo, m = b[h]; if (!m) { m = c.getSymbolById(h); if (!m) { continue; } m = g.constructClassFromSymbol(m, m.symbolClass); b[h] = m = {object:m}; } m.channel && f.stop && (m.channel.stop(), m.channel = null); f.stop || m.channel && m.channel.playing || (m.channel = m.object.play(0, f.hasLoops ? f.loopCount : 0)); } } }; a.prototype.syncSounds = function(a) { null !== this._startSoundRegistrations && this._startSounds(a); this._soundStream && this._soundStream.playFrame(a); }; return a; }(), a = function(a) { function e() { a.call(this); this._fieldsInitialized || this._initializeFields(); } __extends(e, a); e.classInitializer = function() { this.reset(); }; e.reset = function() { this.frameNavigationModel = 10; this._callQueue = []; }; e.runFrameScripts = function() { b.enterTimeline("MovieClip.executeFrame"); var a = this.sec.flash.display.MovieClip.axClass, c = this.sec.flash.display.DisplayObject.axClass, e = this.sec.flash.events.Event.axClass, d = a._callQueue; a._callQueue = []; for (var h = 0;h < d.length;h++) { var m = d[h]; m._hasFlags(1024) ? (m._removeFlags(1024), m.dispatchEvent(e.getInstance(r.Event.AVM1_LOAD))) : (m._allowFrameNavigation = 1 === a.frameNavigationModel, m.callFrame(m._currentFrame), m._allowFrameNavigation = !0, m._nextFrame !== m._currentFrame && (9 === a.frameNavigationModel ? (m._advanceFrame(), m._constructFrame(), m._removeFlags(8192), m.callFrame(m._currentFrame)) : c.performFrameNavigation(!1, !0))); } b.leaveTimeline(); }; e.prototype.applySymbol = function() { a.prototype.applySymbol.call(this); this.sec.flash.display.DisplayObject.axClass._advancableInstances.push(this); var b = this._symbol; this._totalFrames = b.numFrames; this._currentFrame = 1; b.isRoot || this.addScene("", b.labels, 0, b.numFrames); this._frames = b.frames; if (b.isAVM1Object) { if (b.frameScripts) { for (var e = f.AVM1.Lib.getAVM1Object(this, b.avm1Context), d = b.frameScripts, g = 0;g < d.length;g += 2) { e.addFrameScript(d[g], d[g + 1]); } } b.avm1Name && (this.name = b.avm1Name); } }; e.prototype._initializeFields = function() { a.prototype._initializeFields.call(this); this._currentFrame = 0; this._totalFrames = 1; this._trackAsMenu = !1; this._scenes = []; this._symbol || this.addScene("", [], 0, 1); this._enabled = !0; this._isPlaying = !1; this._frames = []; this._frameScripts = []; this._nextFrame = 1; this._stopped = !1; this._allowFrameNavigation = !0; this._sounds = null; this._buttonFrames = Object.create(null); this._currentButtonState = null; }; e.prototype._addFrame = function(a) { var b = this._symbol, c = b.frames; c.push(a); a.labelName && this.addFrameLabel(a.labelName, c.length); a.soundStreamHead && this._initSoundStream(a.soundStreamHead); a.soundStreamBlock && this._addSoundStreamBlock(c.length, a.soundStreamBlock); if (b.isAVM1Object && (b = b.avm1Context, f.AVM1.Lib.getAVM1Object(this, b).addFrameActionBlocks(c.length - 1, a), a.exports)) { a = a.exports; for (var e = 0;e < a.length;e++) { var d = a[e]; b.addAsset(d.className, d.symbolId); } } 1 === c.length && this._initializeChildren(c[0]); }; e.prototype._initFrame = function(a) { if (a) { if (this.buttonMode && (a = null, this._mouseOver ? a = this._mouseDown ? "_down" : "_over" : null !== this._currentButtonState && (a = "_up"), a !== this._currentButtonState && this._buttonFrames[a])) { this.stop(); this._gotoFrame(a, null); this._currentButtonState = a; this._advanceFrame(); return; } 1 < this._totalFrames && !this._stopped && this._hasFlags(256) && this._nextFrame++; } this._advanceFrame(); }; e.prototype._constructFrame = function() { this._constructChildren(); }; e.prototype._enqueueFrameScripts = function() { this._hasFlags(1024) && this.sec.flash.display.MovieClip.axClass._callQueue.push(this); this._hasFlags(8192) && (this._removeFlags(8192), this.sec.flash.display.MovieClip.axClass._callQueue.push(this)); a.prototype._enqueueFrameScripts.call(this); }; Object.defineProperty(e.prototype, "currentFrame", {get:function() { return this._currentFrame - this._sceneForFrameIndex(this._currentFrame).offset; }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "framesLoaded", {get:function() { return this._frames.length; }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "totalFrames", {get:function() { return this._totalFrames; }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "trackAsMenu", {get:function() { return this._trackAsMenu; }, set:function(a) { this._trackAsMenu = !!a; }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "scenes", {get:function() { var a = this._scenes ? this._scenes.map(function(a) { return a.clone(); }) : []; return this.sec.createArrayUnsafe(a); }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "currentScene", {get:function() { return this._sceneForFrameIndex(this._currentFrame).clone(); }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "currentLabel", {get:function() { var a = this._labelForFrame(this._currentFrame); return a ? a.name : null; }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "currentLabels", {get:function() { return this._sceneForFrameIndex(this._currentFrame).labels; }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "currentFrameLabel", {get:function() { var a = this._sceneForFrameIndex(this._currentFrame); return (a = a.getLabelByFrame(this._currentFrame - a.offset)) && a.name; }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "enabled", {get:function() { return this._enabled; }, set:function(a) { this._enabled = !!a; }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "isPlaying", {get:function() { return this._isPlaying; }, enumerable:!0, configurable:!0}); e.prototype.play = function() { 1 < this._totalFrames && (this._isPlaying = !0); this._stopped = !1; }; e.prototype.stop = function() { this._isPlaying = !1; this._stopped = !0; }; e.prototype._getAbsFrameNumber = function(a, c) { var e = 10 !== this.sec.flash.display.MovieClip.axClass.frameNavigationModel, d; if (null !== c) { c = k(c); for (var h = this._scenes, m = 0;m < h.length && (d = h[m], d.name !== c);m++) { } if (m === h.length) { if (e) { return; } this.sec.throwError("ArgumentError", b.Errors.SceneNotFoundError, c); } } else { d = this._sceneForFrameIndex(this._currentFrame); } h = parseInt(a, 10); if (h != a) { h = d.getLabelByName(a, e); if (!h) { if (e) { return; } this.sec.throwError("ArgumentError", b.Errors.FrameLabelNotFoundError, a, c); } h = h.frame; } return d.offset + h; }; e.prototype._gotoFrame = function(a, b) { var c = this._getAbsFrameNumber(a, b); void 0 !== c && this._gotoFrameAbs(c); }; e.prototype._gotoFrameAbs = function(a) { 1 > a ? a = 1 : a > this._totalFrames && (a = this._totalFrames); a !== this._nextFrame && (this._nextFrame = a, this._allowFrameNavigation && (9 === this.sec.flash.display.MovieClip.axClass.frameNavigationModel ? (this._advanceFrame(), this._constructFrame()) : this.sec.flash.display.DisplayObject.axClass.performFrameNavigation(!1, !0))); }; e.prototype._advanceFrame = function() { var a = this._currentFrame, b = this._nextFrame; b > this._totalFrames && (b = 1); if (a === b) { this._nextFrame = b; } else { if (b > this.framesLoaded) { this._nextFrame = b; } else { var c = this._frames[b - 1]; if (c !== this._frames[a - 1] && (this._seekToFrame(b), c.controlTags)) { for (var a = c.controlTags, e, c = 0;c < a.length;c++) { var d = a[c]; 15 === d.tagCode && (d = this._symbol.loaderInfo._file.getParsedTag(d)); 15 === d.code && (e || (e = []), e.push(new f.Timeline.SoundStart(d.soundId, d.soundInfo))); } e && this._registerStartSounds(b, e); } this._frameScripts[b] && (this._setFlags(8192), this._parent && this._propagateFlagsUp(16384)); this._currentFrame = this._nextFrame = b; this._syncSounds(b); } } }; e.prototype._seekToFrame = function(a) { var b = this._currentFrame, c = this._frames; if (a === b + 1) { c = c[a - 1], c.controlTags && this._processControlTags(c.controlTags, !1); } else { for (var e = c[b - 1], d = this._symbol.loaderInfo, m = a < b, g = [], f, b = m ? 0 : b;a-- > b;) { var r = c[a]; if (r !== e && (e = r, r = r.controlTags)) { for (var k = r.length;k--;) { var q = r[k], q = void 0 === q.tagCode ? q : d._file.getParsedTag(q); switch(q.code) { case 5: ; case 28: f || (f = Object.create(null)); f[q.depth] = !0; m || g.push(q); break; case 4: ; case 26: ; case 70: f && f[q.depth] || g.push(q); break; default: g.push(q); } } } } g.reverse(); this._processControlTags(g, m); } }; e.prototype._sceneForFrameIndex = function(a) { var b = this._scenes; if (0 === a) { return b[0]; } for (var c = 0;c < b.length;c++) { var e = b[c]; if (e.offset < a && e.offset + e.numFrames >= a) { return e; } } }; e.prototype._labelForFrame = function(a) { for (var b = this._scenes, c = null, e = 0;e < b.length;e++) { var d = b[e]; if (d.offset > a) { break; } for (var m = d.labels.value, g = 0;g < m.length;g++) { var f = m[g]; if (f.frame > a - d.offset) { return c; } c = f; } } return c; }; e.prototype.callFrame = function(a) { if (a = this._frameScripts[a | 0]) { try { a.call(this); } catch (b) { throw this.stop(), b; } } }; e.prototype.nextFrame = function() { this.gotoAndStop(this._currentFrame + 1); }; e.prototype.prevFrame = function() { this.gotoAndStop(this._currentFrame - 1); }; e.prototype.gotoAndPlay = function(a, c) { void 0 === c && (c = null); (0 === arguments.length || 2 < arguments.length) && this.sec.throwError("ArgumentError", b.Errors.WrongArgumentCountError, "flash.display::MovieClip/gotoAndPlay()", 1, arguments.length); c = k(c); a = k(a) + ""; this.play(); this._gotoFrame(a, c); }; e.prototype.gotoAndStop = function(a, c) { void 0 === c && (c = null); (0 === arguments.length || 2 < arguments.length) && this.sec.throwError("ArgumentError", b.Errors.WrongArgumentCountError, "flash.display::MovieClip/gotoAndPlay()", 1, arguments.length); c = k(c); a = k(a) + ""; this.stop(); this._gotoFrame(a, c); }; e.prototype.addFrameScript = function(a, c) { if (this._currentFrame) { var e = arguments.length; e & 1 && this.sec.throwError("ArgumentError", b.Errors.TooFewArgumentsError, e, e + 1); for (var d = this._frameScripts, h = this._totalFrames, m = 0;m < e;m += 2) { var g = (arguments[m] | 0) + 1; 1 > g || g > h || (d[g] = arguments[m + 1], g === this._currentFrame && (this._setFlags(8192), this._parent && this._propagateFlagsUp(16384))); } } }; Object.defineProperty(e.prototype, "_avm1SymbolClass", {get:function() { return this._symbol && this._symbol.avm1SymbolClass || null; }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "_isFullyLoaded", {get:function() { return this.framesLoaded >= this.totalFrames; }, enumerable:!0, configurable:!0}); e.prototype._registerStartSounds = function(a, b) { null === this._sounds && (this._sounds = new d(this)); this._sounds.registerStartSounds(a, b); }; e.prototype._initSoundStream = function(a) { null === this._sounds && (this._sounds = new d(this)); this._sounds.initSoundStream(a); }; e.prototype._addSoundStreamBlock = function(a, b) { null === this._sounds && (this._sounds = new d(this)); this._sounds.addSoundStreamBlock(a, b); }; e.prototype._syncSounds = function(a) { null !== this._sounds && this._sounds.syncSounds(a); }; e.prototype.addScene = function(a, b, c, e) { b = this.sec.createArrayUnsafe(b); this._scenes.push(new this.sec.flash.display.Scene(a, b, c, e)); }; e.prototype.addFrameLabel = function(a, b) { var c = this._sceneForFrameIndex(b); c.getLabelByName(a, !1) || c.labels.value.push(new this.sec.flash.display.FrameLabel(a, b - c.offset)); }; e.prototype.prevScene = function() { var a = this._sceneForFrameIndex(this._currentFrame); 0 !== a.offset && this._gotoFrameAbs(this._sceneForFrameIndex(a.offset).offset + 1); }; e.prototype.nextScene = function() { var a = this._sceneForFrameIndex(this._currentFrame); a.offset + a.numFrames !== this._totalFrames && this._gotoFrameAbs(a.offset + a.numFrames + 1); }; e.prototype._containsPointImpl = function(b, e, d, g, h, m, f) { b = a.prototype._containsPointImpl.call(this, b, e, d, g, h, m, !0); 2 === b && 3 === h && "_as2Object" in this && !this.buttonMode && m[0] === this && (m.length = 0); return b; }; e.classSymbols = null; e.instanceSymbols = null; return e; }(q.display.Sprite); u.MovieClip = a; })(q.display || (q.display = {})); })(g.flash || (g.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(q) { (function(u) { function k(a, b) { var c = !1; a.addEventListener("timeupdate", function(a) { c || (c = !0); }); a.addEventListener("pause", function(a) { c = !1; }); a.addEventListener("seeking", function(a) { c = !1; }); } var r = f.SWF.MP3DecoderSession, d = function() { function a(b, c) { this._sec = b; this._element = c; } Object.defineProperty(a.prototype, "isReady", {get:function() { return !!this._channel; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "element", {get:function() { return this._element; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "currentTime", {get:function() { return this._element.currentTime; }, enumerable:!0, configurable:!0}); a.prototype.playFrom = function(a) { var b = this._element; b.paused ? (b.play(), b.addEventListener("playing", function m(c) { b.removeEventListener("playing", m); b.currentTime = a; })) : b.currentTime = a; }; Object.defineProperty(a.prototype, "paused", {get:function() { return this._element.paused; }, set:function(a) { var b = this._element; a ? b.paused || b.pause() : b.paused && b.play(); }, enumerable:!0, configurable:!0}); a.prototype.createChannel = function() { this._channel = q.media.SoundChannel.initializeFromAudioElement(this._sec, this._element); }; a.prototype.queueData = function(a) { }; a.prototype.finish = function() { }; return a; }(), a = function(a) { function b(c, e) { a.call(this, c, e); this._mediaSource = new MediaSource; this._sourceBuffer = null; this._updating = !1; this._loading = !0; this._rawFrames = []; this._isReady = !1; this._mediaSource.addEventListener("sourceopen", this._openMediaSource.bind(this)); this.element.src = URL.createObjectURL(this._mediaSource); } __extends(b, a); b.prototype._appendSoundData = function() { 0 !== this._rawFrames.length && !this._updating && this._sourceBuffer && (this._loading ? (this._updating = !0, this._sourceBuffer.appendBuffer(this._rawFrames.shift()), this._isReady || (this._isReady = !0, this.createChannel())) : this._mediaSource.endOfStream()); }; b.prototype._openMediaSource = function() { var a = this._mediaSource.addSourceBuffer("audio/mpeg"); a.addEventListener("update", function() { this._updating = !1; this._appendSoundData(); }.bind(this)); this._sourceBuffer = a; this._appendSoundData(); }; b.prototype.queueData = function(a) { this._rawFrames.push(a.data); this._appendSoundData(); }; b.prototype.finish = function() { this._loading = !1; this._appendSoundData(); }; return b; }(d), c = function(a) { function b(c, e) { a.call(this, c, e); this._rawFrames = []; } __extends(b, a); b.prototype.queueData = function(a) { this._rawFrames.push(a.data); }; b.prototype.finish = function() { this.element.src = URL.createObjectURL(new Blob(this._rawFrames)); this.createChannel(); }; return b; }(d), e = function() { function a(b, c) { this._sec = b; this._sound = this._channel = null; this._data = c; this._position = 0; } Object.defineProperty(a.prototype, "currentTime", {get:function() { return NaN; }, enumerable:!0, configurable:!0}); a.prototype.playFrom = function(a) { }; Object.defineProperty(a.prototype, "paused", {get:function() { return !1; }, set:function(a) { }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "isReady", {get:function() { return !!this._channel; }, enumerable:!0, configurable:!0}); a.prototype.queueData = function(a) { this._data.pcm.set(a.pcm, this._position); this._position += a.pcm.length; }; a.prototype.finish = function() { var a = q.media.Sound.initializeFromPCMData(this._sec, this._data), b = a.play(); this._sound = a; this._channel = b; }; return a; }(), l = function(a) { function b(c, d) { a.call(this, c, d); this._decoderPosition = 0; this._decoderSession = new r; this._decoderSession.onframedata = function(a) { var b = this._decoderPosition; d.pcm.set(a, b); this._decoderPosition = b + a.length; }.bind(this); this._decoderSession.onclosed = function() { e.prototype.finish.call(this); }.bind(this); this._decoderSession.onerror = function(a) { f.Debug.warning("MP3DecoderSession error: " + a); }; } __extends(b, a); b.prototype.queueData = function(a) { this._decoderSession.pushAsync(a.data); }; b.prototype.finish = function() { this._decoderSession.close(); }; return b; }(e), d = function() { function d(n, p) { this.movieClip = p; this.decode = n.decode.bind(n); this.data = {sampleRate:n.sampleRate, channels:n.channels}; this.seekIndex = []; this.position = 0; this.wasFullyLoaded = !1; this.waitFor = this.expectedFrame = 0; var h = p.sec, m = "mp3" === n.format; if (m && !b.webAudioMP3Option.value) { var v = document.createElement("audio"); v.preload = "metadata"; v.loop = !1; k(v, p); if (v.canPlayType("audio/mpeg")) { this.element = v; b.mediaSourceMP3Option.value ? "undefined" !== typeof MediaSource && MediaSource.isTypeSupported("audio/mpeg") ? this.soundStreamAdapter = new a(h, v) : (f.Debug.warning("MediaSource is not supported"), this.soundStreamAdapter = new c(h, v)) : this.soundStreamAdapter = new c(h, v); return; } } this.data.pcm = new Float32Array((n.samplesCount + 1) * this.movieClip.totalFrames * n.channels); this.soundStreamAdapter = m ? new l(h, this.data) : new e(h, this.data); } d.prototype.appendBlock = function(a, b) { var c = this.decode(b), e = this.position; this.seekIndex[a] = e + c.seek * this.data.channels; this.position = e + c.samplesCount * this.data.channels; this.soundStreamAdapter.queueData(c); }; d.prototype.playFrame = function(a) { if (!isNaN(this.seekIndex[a]) && (!this.wasFullyLoaded && this.movieClip._isFullyLoaded && (this.wasFullyLoaded = !0, this.soundStreamAdapter.finish()), this.soundStreamAdapter.isReady && !isNaN(this.soundStreamAdapter.currentTime))) { var b = this.data, b = this.seekIndex[a] / b.sampleRate / b.channels, c = this.soundStreamAdapter.currentTime; this.expectedFrame !== a ? this.soundStreamAdapter.playFrom(b) : 0 < this.waitFor ? this.waitFor <= b && (this.soundStreamAdapter.paused = !1, this.waitFor = 0) : 1 < c - b ? (f.Debug.warning("Sound is faster than frames by " + (c - b)), this.waitFor = c - .25, this.soundStreamAdapter.paused = !0) : 1 < b - c && (f.Debug.warning("Sound is slower than frames by " + (b - c)), this.soundStreamAdapter.playFrom(b + .25)); this.expectedFrame = a + 1; } }; return d; }(); u.MovieClipSoundStream = d; })(q.display || (q.display = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(g) { (function(g) { (function(u) { var k = f.Debug.notImplemented, r = f.Debug.somewhatImplemented, d = f.AVMX.axCoerceString, a = function(a) { function e() { a.call(this); this._root = this; this._stage = this; this._frameRate = 24; this._scaleMode = u.StageScaleMode.SHOW_ALL; this._align = ""; this._stageHeight = this._stageWidth = 0; this._showDefaultContextMenu = !0; this._focus = null; this._colorCorrection = u.ColorCorrection.DEFAULT; this._colorCorrectionSupport = u.ColorCorrectionSupport.DEFAULT_OFF; this._stageFocusRect = !0; this._quality = u.StageQuality.HIGH; this._fullScreenSourceRect = this._displayState = null; this._mouseLock = !1; var b = this.sec.getVectorClass(this.sec.AXObject); this._stageVideos = b.axConstruct([0, !0]); this._stage3Ds = b.axConstruct([0, !0]); this._colorARGB = 4294967295; this._fullScreenHeight = this._fullScreenWidth = 0; this._wmodeGPU = !1; this._softKeyboardRect = new this.sec.flash.geom.Rectangle; this._allowsFullScreenInteractive = this._allowsFullScreen = !1; this._contentsScaleFactor = 1; this._displayContextInfo = null; this._stageContainerHeight = this._stageContainerWidth = this._timeout = -1; this._invalidated = !1; } __extends(e, a); e.prototype.setRoot = function(a) { this.addTimelineObjectAtDepth(a, 0); }; Object.defineProperty(e.prototype, "frameRate", {get:function() { return this._frameRate; }, set:function(a) { this._frameRate = +a; }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "scaleMode", {get:function() { return this._scaleMode; }, set:function(a) { a = d(a); 0 > g.display.StageScaleMode.toNumber(a) && this.sec.throwError("ArgumentError", b.Errors.InvalidEnumError, "scaleMode"); this._scaleMode = a; }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "align", {get:function() { return this._align; }, set:function(a) { a = d(a); a = g.display.StageAlign.toNumber(a); this._align = g.display.StageAlign.fromNumber(a); }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "stageWidth", {get:function() { return this.scaleMode !== u.StageScaleMode.NO_SCALE ? this._stageWidth / 20 | 0 : this._stageContainerWidth; }, set:function(a) { }, enumerable:!0, configurable:!0}); e.prototype._setInitialName = function() { this._name = null; }; e.prototype.setStageWidth = function(a) { this._stageWidth = 20 * a | 0; }; Object.defineProperty(e.prototype, "stageHeight", {get:function() { return this.scaleMode !== u.StageScaleMode.NO_SCALE ? this._stageHeight / 20 | 0 : this._stageContainerHeight; }, set:function(a) { }, enumerable:!0, configurable:!0}); e.prototype.setStageHeight = function(a) { this._stageHeight = 20 * a | 0; }; e.prototype.setStageColor = function(a) { this._colorARGB = a; }; e.prototype.setStageContainerSize = function(a, b, c) { this._contentsScaleFactor = c; if (this._stageContainerWidth !== a || this._stageContainerHeight !== b) { this._stageContainerWidth = a, this._stageContainerHeight = b, this.scaleMode === u.StageScaleMode.NO_SCALE && this.dispatchEvent(this.sec.flash.events.Event.axClass.getInstance(g.events.Event.RESIZE)); } }; Object.defineProperty(e.prototype, "showDefaultContextMenu", {get:function() { return this._showDefaultContextMenu; }, set:function(a) { this._showDefaultContextMenu = !!a; }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "focus", {get:function() { return this._focus; }, set:function(a) { this._focus = a; }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "colorCorrection", {get:function() { return this._colorCorrection; }, set:function(a) { k("public flash.display.Stage::set colorCorrection"); }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "colorCorrectionSupport", {get:function() { return this._colorCorrectionSupport; }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "stageFocusRect", {get:function() { return this._stageFocusRect; }, set:function(a) { this._stageFocusRect = !!a; }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "quality", {get:function() { return this._quality.toUpperCase(); }, set:function(a) { a = (d(a) || "").toLowerCase(); 0 > g.display.StageQuality.toNumber(a) && (a = g.display.StageQuality.HIGH); this._quality = a; }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "displayState", {get:function() { return this._displayState; }, set:function(a) { a = d(a); 0 > g.display.StageDisplayState.toNumber(a) && (a = g.display.StageDisplayState.NORMAL); this._displayState = a; }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "fullScreenSourceRect", {get:function() { return this._fullScreenSourceRect; }, set:function(a) { k("public flash.display.Stage::set fullScreenSourceRect"); }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "mouseLock", {get:function() { return this._mouseLock; }, set:function(a) { r("public flash.display.Stage::set mouseLock"); this._mouseLock = !!a; }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "stageVideos", {get:function() { r("public flash.display.Stage::get stageVideos"); return this._stageVideos; }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "stage3Ds", {get:function() { r("public flash.display.Stage::get stage3Ds"); return this._stage3Ds; }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "color", {get:function() { return this._colorARGB; }, set:function(a) { this._colorARGB = a | 4278190080; }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "alpha", {get:function() { return this._colorTransform.alphaMultiplier; }, set:function(a) { this.sec.throwError("IllegalOperationError", b.Errors.InvalidStageMethodError); }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "fullScreenWidth", {get:function() { return this._fullScreenWidth; }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "fullScreenHeight", {get:function() { return this._fullScreenHeight; }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "wmodeGPU", {get:function() { return this._wmodeGPU; }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "softKeyboardRect", {get:function() { return this._softKeyboardRect; }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "allowsFullScreen", {get:function() { return this._allowsFullScreen; }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "allowsFullScreenInteractive", {get:function() { return this._allowsFullScreenInteractive; }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "contentsScaleFactor", {get:function() { return this._contentsScaleFactor; }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "displayContextInfo", {get:function() { return this._displayContextInfo; }, enumerable:!0, configurable:!0}); e.prototype.removeChildAt = function(b) { return a.prototype.removeChildAt.call(this, b); }; e.prototype.swapChildrenAt = function(b, e) { a.prototype.swapChildrenAt.call(this, b, e); }; Object.defineProperty(e.prototype, "width", {get:function() { return this._getWidth(); }, set:function(a) { this._setWidth(a); }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "height", {get:function() { return this._getHeight(); }, set:function(a) { this._setHeight(a); }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "mouseChildren", {get:function() { return this._mouseChildren; }, set:function(a) { this._setMouseChildren(a); }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "numChildren", {get:function() { return this._children.length; }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "tabChildren", {get:function() { return this._tabChildren; }, set:function(a) { this._setTabChildren(a); }, enumerable:!0, configurable:!0}); e.prototype.addChild = function(b) { return a.prototype.addChild.call(this, b); }; e.prototype.addChildAt = function(b, e) { return a.prototype.addChildAt.call(this, b, e); }; e.prototype.setChildIndex = function(b, e) { a.prototype.setChildIndex.call(this, b, e); }; e.prototype.addEventListener = function(b, e, d, g, h) { a.prototype.addEventListener.call(this, b, e, d, g, h); }; e.prototype.hasEventListener = function(b) { return a.prototype.hasEventListener.call(this, b); }; e.prototype.willTrigger = function(b) { return a.prototype.willTrigger.call(this, b); }; e.prototype.dispatchEvent = function(b) { return a.prototype.dispatchEvent.call(this, b); }; e.prototype.invalidate = function() { this._invalidated = !0; }; e.prototype.isFocusInaccessible = function() { k("public flash.display.Stage::isFocusInaccessible"); }; e.prototype.requireOwnerPermissions = function() { }; e.prototype.render = function() { this._invalidated && (this.sec.flash.display.DisplayObject.axClass._broadcastFrameEvent(g.events.Event.RENDER), this._invalidated = !1); }; Object.defineProperty(e.prototype, "name", {get:function() { return this._name; }, set:function(a) { this.sec.throwError("IllegalOperationError", b.Errors.InvalidStageMethodError); }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "mask", {get:function() { return this._mask; }, set:function(a) { this.sec.throwError("IllegalOperationError", b.Errors.InvalidStageMethodError); }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "visible", {get:function() { return this._hasFlags(1); }, set:function(a) { this.sec.throwError("IllegalOperationError", b.Errors.InvalidStageMethodError); }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "x", {get:function() { return this._getX(); }, set:function(a) { this.sec.throwError("IllegalOperationError", b.Errors.InvalidStageMethodError); }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "y", {get:function() { return this._getY(); }, set:function(a) { this.sec.throwError("IllegalOperationError", b.Errors.InvalidStageMethodError); }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "z", {get:function() { return this._z; }, set:function(a) { this.sec.throwError("IllegalOperationError", b.Errors.InvalidStageMethodError); }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "scaleX", {get:function() { return Math.abs(this._scaleX); }, set:function(a) { this.sec.throwError("IllegalOperationError", b.Errors.InvalidStageMethodError); }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "scaleY", {get:function() { return this._scaleY; }, set:function(a) { this.sec.throwError("IllegalOperationError", b.Errors.InvalidStageMethodError); }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "scaleZ", {get:function() { return this._scaleZ; }, set:function(a) { this.sec.throwError("IllegalOperationError", b.Errors.InvalidStageMethodError); }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "rotation", {get:function() { return this._rotation; }, set:function(a) { this.sec.throwError("IllegalOperationError", b.Errors.InvalidStageMethodError); }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "rotationX", {get:function() { return this._rotationX; }, set:function(a) { this.sec.throwError("IllegalOperationError", b.Errors.InvalidStageMethodError); }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "rotationY", {get:function() { return this._rotationX; }, set:function(a) { this.sec.throwError("IllegalOperationError", b.Errors.InvalidStageMethodError); }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "rotationZ", {get:function() { return this._rotationX; }, set:function(a) { this.sec.throwError("IllegalOperationError", b.Errors.InvalidStageMethodError); }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "cacheAsBitmap", {get:function() { return this._getCacheAsBitmap(); }, set:function(a) { this.sec.throwError("IllegalOperationError", b.Errors.InvalidStageMethodError); }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "opaqueBackground", {get:function() { return this._opaqueBackground; }, set:function(a) { this.sec.throwError("IllegalOperationError", b.Errors.InvalidStageMethodError); }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "scrollRect", {get:function() { return this._getScrollRect(); }, set:function(a) { this.sec.throwError("IllegalOperationError", b.Errors.InvalidStageMethodError); }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "filters", {get:function() { return this._getFilters(); }, set:function(a) { this.sec.throwError("IllegalOperationError", b.Errors.InvalidStageMethodError); }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "blendMode", {get:function() { return this._blendMode; }, set:function(a) { this.sec.throwError("IllegalOperationError", b.Errors.InvalidStageMethodError); }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "transform", {get:function() { return this._getTransform(); }, set:function(a) { this.sec.throwError("IllegalOperationError", b.Errors.InvalidStageMethodError); }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "accessibilityProperties", {get:function() { return this._accessibilityProperties; }, set:function(a) { this.sec.throwError("IllegalOperationError", b.Errors.InvalidStageMethodError); }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "scale9Grid", {get:function() { return this._getScale9Grid(); }, set:function(a) { this.sec.throwError("IllegalOperationError", b.Errors.InvalidStageMethodError); }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "tabEnabled", {get:function() { return this._tabEnabled; }, set:function(a) { this.sec.throwError("IllegalOperationError", b.Errors.InvalidStageMethodError); }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "tabIndex", {get:function() { return this._tabIndex; }, set:function(a) { this.sec.throwError("IllegalOperationError", b.Errors.InvalidStageMethodError); }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "focusRect", {get:function() { return this._focusRect; }, set:function(a) { this.sec.throwError("IllegalOperationError", b.Errors.InvalidStageMethodError); }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "mouseEnabled", {get:function() { return this._mouseEnabled; }, set:function(a) { this.sec.throwError("IllegalOperationError", b.Errors.InvalidStageMethodError); }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "accessibilityImplementation", {get:function() { return this._accessibilityImplementation; }, set:function(a) { this.sec.throwError("IllegalOperationError", b.Errors.InvalidStageMethodError); }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "textSnapshot", {get:function() { this.sec.throwError("IllegalOperationError", b.Errors.InvalidStageMethodError); return null; }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "contextMenu", {get:function() { return this._contextMenu; }, set:function(a) { this.sec.throwError("IllegalOperationError", b.Errors.InvalidStageMethodError); }, enumerable:!0, configurable:!0}); e.classInitializer = null; e.classSymbols = null; e.instanceSymbols = null; return e; }(g.display.DisplayObjectContainer); u.Stage = a; })(g.display || (g.display = {})); })(g.flash || (g.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(f) { (function(f) { var k = function(b) { function d() { b.call(this); } __extends(d, b); d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; d.ACTIONSCRIPT2 = 2; d.ACTIONSCRIPT3 = 3; return d; }(b.ASObject); f.ActionScriptVersion = k; })(f.display || (f.display = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(f) { (function(f) { var k = function(b) { function d() { b.call(this); } __extends(d, b); d.fromNumber = function(a) { switch(a) { case 0: ; case 1: return d.NORMAL; case 2: return d.LAYER; case 3: return d.MULTIPLY; case 4: return d.SCREEN; case 5: return d.LIGHTEN; case 6: return d.DARKEN; case 7: return d.DIFFERENCE; case 8: return d.ADD; case 9: return d.SUBTRACT; case 10: return d.INVERT; case 11: return d.ALPHA; case 12: return d.ERASE; case 13: return d.OVERLAY; case 14: return d.HARDLIGHT; default: return null; } }; d.toNumber = function(a) { switch(a) { case d.NORMAL: return 1; case d.LAYER: return 2; case d.MULTIPLY: return 3; case d.SCREEN: return 4; case d.LIGHTEN: return 5; case d.DARKEN: return 6; case d.DIFFERENCE: return 7; case d.ADD: return 8; case d.SUBTRACT: return 9; case d.INVERT: return 10; case d.ALPHA: return 11; case d.ERASE: return 12; case d.OVERLAY: return 13; case d.HARDLIGHT: return 14; default: return -1; } }; d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; d.NORMAL = "normal"; d.LAYER = "layer"; d.MULTIPLY = "multiply"; d.SCREEN = "screen"; d.LIGHTEN = "lighten"; d.DARKEN = "darken"; d.ADD = "add"; d.SUBTRACT = "subtract"; d.DIFFERENCE = "difference"; d.INVERT = "invert"; d.OVERLAY = "overlay"; d.HARDLIGHT = "hardlight"; d.ALPHA = "alpha"; d.ERASE = "erase"; d.SHADER = "shader"; return d; }(b.ASObject); f.BlendMode = k; })(f.display || (f.display = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(f) { (function(f) { var k = function(b) { function d() { b.call(this); } __extends(d, b); d.fromNumber = function(a) { switch(a) { case 0: return d.DEFAULT; case 1: return d.ON; case 2: return d.OFF; default: return null; } }; d.toNumber = function(a) { switch(a) { case d.DEFAULT: return 0; case d.ON: return 1; case d.OFF: return 2; default: return -1; } }; d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; d.DEFAULT = "default"; d.ON = "on"; d.OFF = "off"; return d; }(b.ASObject); f.ColorCorrection = k; })(f.display || (f.display = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(f) { (function(f) { var k = function(b) { function d() { b.call(this); } __extends(d, b); d.fromNumber = function(a) { switch(a) { case 0: return d.UNSUPPORTED; case 1: return d.DEFAULT_ON; case 2: return d.DEFAULT_OFF; default: return null; } }; d.toNumber = function(a) { switch(a) { case d.UNSUPPORTED: return 0; case d.DEFAULT_ON: return 1; case d.DEFAULT_OFF: return 2; default: return -1; } }; d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; d.UNSUPPORTED = "unsupported"; d.DEFAULT_ON = "defaultOn"; d.DEFAULT_OFF = "defaultOff"; return d; }(b.ASObject); f.ColorCorrectionSupport = k; })(f.display || (f.display = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(f) { (function(f) { var k = function(b) { function d() { b.call(this); } __extends(d, b); d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; d.TOP = "top"; d.BOTTOM = "bottom"; d.NONE = "none"; return d; }(b.ASObject); f.FocusDirection = k; })(f.display || (f.display = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(b) { (function(g) { var k = f.AVMX.axCoerceString, r = function(b) { function a(a, e) { b.call(this); this._name = k(a); this._frame = e | 0; } __extends(a, b); Object.defineProperty(a.prototype, "name", {get:function() { return this._name; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "frame", {get:function() { return this._frame; }, enumerable:!0, configurable:!0}); a.prototype.clone = function() { return new this.sec.flash.display.FrameLabel(this._name, this._frame); }; a.classInitializer = null; return a; }(b.events.EventDispatcher); g.FrameLabel = r; })(b.display || (b.display = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(g) { (function(q) { (function(u) { var k = f.Debug.notImplemented, r = f.Debug.somewhatImplemented, d = f.ArrayUtilities.DataBuffer, a = f.AVMX.axCoerceString, c = f.IntegerUtilities.swap32, e = f.ColorUtilities.premultiplyARGB, l = f.ColorUtilities.unpremultiplyARGB, n = f.ColorUtilities.RGBAToARGB, t = f.ArrayUtilities.indexOf, p = function(h) { function m(a, c, e, d) { void 0 === e && (e = !0); void 0 === d && (d = 4294967295); a |= 0; c |= 0; e = !!e; d |= 0; h.call(this); this._symbol ? this.applySymbol() : ((a > m.MAXIMUM_WIDTH || 0 >= a || c > m.MAXIMUM_HEIGHT || 0 >= c || a * c > m.MAXIMUM_DIMENSION) && this.sec.throwError("ArgumentError", b.Errors.InvalidBitmapData), this._rect = new this.sec.flash.geom.Rectangle(0, 0, a, c), this._transparent = e, this._id = q.display.DisplayObject.getNextSyncID(), this._setData(new Uint8Array(a * c * 4), 1), 0 === d >> 24 && e ? this._solidFillColorPBGRA = 0 : this.fillRect(this._rect, d), this._bitmapReferrers = []); } __extends(m, h); m.classInitializer = function() { this._temporaryRectangle = new this.sec.flash.geom.Rectangle; }; m.prototype.applySymbol = function() { var a = this._symbol; this._rect = new this.sec.flash.geom.Rectangle(0, 0, a.width, a.height); this._transparent = !0; this._id = a.syncId; 1 === a.type || 2 === a.type || 3 === a.type ? this._setData(a.data, a.type) : (this._isDirty = !1, this._isRemoteDirty = !0); this._solidFillColorPBGRA = null; this._bitmapReferrers = []; }; m.prototype._setData = function(a, b) { a instanceof Uint8ClampedArray && (a = new Uint8Array(a.buffer)); this._data = a; this._type = b; this._view = new Int32Array(a.buffer); this._dataBuffer = d.FromArrayBuffer(a.buffer); this._isDirty = !0; this._isRemoteDirty = !1; }; m.prototype._addBitmapReferrer = function(a) { t(this._bitmapReferrers, a); this._bitmapReferrers.push(a); }; m.prototype._removeBitmapReferrer = function(a) { a = t(this._bitmapReferrers, a); this._bitmapReferrers[a] = null; }; m.prototype._invalidate = function() { if (!this._isDirty) { this._isDirty = !0; this._isRemoteDirty = !1; for (var a = 0;a < this._bitmapReferrers.length;a++) { var b = this._bitmapReferrers[a]; b && b._setDirtyFlags(16777216); } } }; m.prototype._getTemporaryRectangleFrom = function(a) { var b = this.axClass._temporaryRectangle; b.copyFrom(a); return b; }; m.prototype.getDataBuffer = function() { return this._dataBuffer; }; m.prototype._getContentBounds = function() { return f.Bounds.FromRectangle(this._rect); }; m.prototype._getPixelData = function(a) { var b = this._getTemporaryRectangleFrom(this._rect).intersectInPlace(a); if (!b.isEmpty()) { a = b.x; for (var c = b.x + b.width, e = b.y, d = b.y + b.height, h = this._view, m = this._rect.width, b = new Int32Array(b.area), g = 0;e < d;e++) { for (var f = e * m, l = a;l < c;l++) { var n = h[f + l], p = n & 255, n = 255 * (n >>> 8) / p << 8 | p; b[g++] = n; } } return b; } }; m.prototype._putPixelData = function(a, b) { var c = this._getTemporaryRectangleFrom(this._rect).intersectInPlace(a); if (!c.isEmpty()) { for (var e = c.x, d = c.x + c.width, h = c.y + c.height, m = this._view, g = this._rect.width, f = a.width * a.height - c.height + (e - a.x), l = a.width - c.width, n = this._transparent ? 0 : 255, c = c.y;c < h;c++) { for (var p = c * g, t = e;t < d;t++) { var r = b[f++], k = r & n; m[p + t] = (((r >>> 8) * k + 254) / 255 & 16777215) << 8 | k; } f += l; } this._invalidate(); } }; Object.defineProperty(m.prototype, "width", {get:function() { return this._rect.width; }, enumerable:!0, configurable:!0}); Object.defineProperty(m.prototype, "height", {get:function() { return this._rect.height; }, enumerable:!0, configurable:!0}); Object.defineProperty(m.prototype, "rect", {get:function() { return this._rect.clone(); }, enumerable:!0, configurable:!0}); Object.defineProperty(m.prototype, "transparent", {get:function() { return this._transparent; }, enumerable:!0, configurable:!0}); m.prototype.clone = function() { r("public flash.display.BitmapData::clone"); var a = new this.sec.flash.display.BitmapData(this._rect.width, this._rect.height, this._transparent, this._solidFillColorPBGRA); a._view.set(this._view); return a; }; m.prototype.getPixel = function(a, b) { return this.getPixel32(a | 0, b | 0) & 16777215; }; m.prototype.getPixel32 = function(a, b) { a |= 0; b |= 0; if (!this._rect.contains(a, b)) { return 0; } this._ensureBitmapData(); var e = this._view[b * this._rect.width + a]; switch(this._type) { case 1: return e = c(e), l(e) >>> 0; case 3: return n(c(e)); default: return f.Debug.notImplemented(f.ImageType[this._type]), 0; } }; m.prototype.setPixel = function(a, b, d) { a |= 0; b |= 0; d |= 0; this._rect.contains(a, b) && (this._ensureBitmapData(), a = b * this._rect.width + a, d = d & 16777215 | (this._view[a] & 255) << 24, d = e(d), this._view[a] = c(d), this._invalidate(), this._solidFillColorPBGRA = null); }; m.prototype.setPixel32 = function(a, b, d) { a |= 0; b |= 0; if (this._rect.contains(a, b)) { this._ensureBitmapData(); var h = d >>> 24; d &= 16777215; h = this._transparent ? e(d | h << 24) : d | 4278190080; this._view[b * this._rect.width + a] = c(h); this._invalidate(); this._solidFillColorPBGRA = null; } }; m.prototype.applyFilter = function(a, b, c, e) { r("public flash.display.BitmapData::applyFilter " + e); }; m.prototype.colorTransform = function(a, b) { r("public flash.display.BitmapData::colorTransform"); }; m.prototype.compare = function(a) { k("public flash.display.BitmapData::compare"); }; m.prototype.copyChannel = function(a, b, c, e, d) { r("public flash.display.BitmapData::copyChannel"); }; m.prototype.copyPixels = function(a, b, c, e, d, h) { void 0 === e && (e = null); void 0 === d && (d = null); h = !!h; if (e || d) { r("public flash.display.BitmapData::copyPixels - Alpha"); } else { var m; m = b ? this._getTemporaryRectangleFrom(b).roundInPlace() : this.axClass._temporaryRectangle.setEmpty(); b = this._rect; d = a._rect; var g = Math.max(m.x, 0); e = Math.max(m.y, 0); var f = Math.min(m.x + m.width, d.width), l = Math.min(m.y + m.height, d.height); d = (c.x | 0) + (g - m.x); m = (c.y | 0) + (e - m.y); 0 > d && (g -= d, d = 0); 0 > m && (e -= m, m = 0); c = Math.min(f - g, b.width - d); b = Math.min(l - e, b.height - m); if (!(0 >= c || 0 >= b)) { var f = g, l = e, n = d, p = m; e = a._rect.width; d = this._rect.width; this._ensureBitmapData(); a._ensureBitmapData(); g = a._view; m = this._view; a._type !== this._type && r("public flash.display.BitmapData::copyPixels - Color Format Conversion"); if (h && 1 !== this._type) { r("public flash.display.BitmapData::copyPixels - Merge Alpha"); } else { if (null === this._solidFillColorPBGRA || this._solidFillColorPBGRA !== a._solidFillColorPBGRA) { null !== a._solidFillColorPBGRA && 255 === (a._solidFillColorPBGRA & 255) && (h = !1); if (h) { this._copyPixelsAndMergeAlpha(g, f, l, e, m, n, p, d, c, b); } else { if (a = l * e + f | 0, h = p * d + n | 0, 0 === (c & 3)) { for (f = 0;f < b;f = f + 1 | 0) { for (l = 0;l < c;l = l + 4 | 0) { m[h + l + 0 | 0] = g[a + l + 0 | 0], m[h + l + 1 | 0] = g[a + l + 1 | 0], m[h + l + 2 | 0] = g[a + l + 2 | 0], m[h + l + 3 | 0] = g[a + l + 3 | 0]; } a = a + e | 0; h = h + d | 0; } } else { for (f = 0;f < b;f = f + 1 | 0) { for (l = 0;l < c;l = l + 1 | 0) { m[h + l | 0] = g[a + l | 0]; } a = a + e | 0; h = h + d | 0; } } } this._solidFillColorPBGRA = null; this._invalidate(); } } } } }; m.prototype._copyPixelsAndMergeAlpha = function(a, b, c, e, d, h, m, g, f, l) { b = c * e + b | 0; h = m * g + h | 0; for (m = 0;m < l;m = m + 1 | 0) { for (c = 0;c < f;c = c + 1 | 0) { var n = a[b + c | 0], p = n & 255; if (255 === p) { d[h + c | 0] = n; } else { if (0 !== p) { var t = n & 16711935, n = n >> 8 & 16711935, r = d[h + c | 0], k = r & 16711935, r = r >> 8 & 16711935, p = 256 - p, k = Math.imul(k, p) >> 8, r = Math.imul(r, p) >> 8; d[h + c | 0] = (n + r & 16711935) << 8 | t + k & 16711935; } } } b = b + e | 0; h = h + g | 0; } }; m.prototype.dispose = function() { this._rect.setEmpty(); this._view = null; this._invalidate(); }; m.prototype.draw = function(b, c, e, d, h, m) { void 0 === c && (c = null); void 0 === e && (e = null); void 0 === d && (d = null); void 0 === h && (h = null); void 0 === m && (m = !1); d = a(d); m = !!m; r("public flash.display.BitmapData::draw"); var g = this.sec.player; c && (c = c.clone().toTwipsInPlace()); g.drawToBitmap(this, b, c, e, d, h, m); this._isRemoteDirty = !0; }; m.prototype.drawWithQuality = function(b, c, e, d, h, m, g) { void 0 === c && (c = null); void 0 === e && (e = null); void 0 === d && (d = null); void 0 === h && (h = null); void 0 === m && (m = !1); void 0 === g && (g = null); a(g); r("public flash.display.BitmapData::drawWithQuality"); this.draw(b, c, e, d, h, m); }; m.prototype.fillRect = function(a, b) { this._ensureBitmapData(); var d = this._transparent ? e(b) : b | 4278190080, d = c(d), h = this._getTemporaryRectangleFrom(this._rect).intersectInPlace(a); if (!h.isEmpty() && this._solidFillColorPBGRA !== d) { var m = this._view; if (h.equals(this._rect)) { var g = m.length | 0; if (0 === (g & 3)) { for (var f = 0;f < g;f += 4) { m[f] = d, m[f + 1] = d, m[f + 2] = d, m[f + 3] = d; } } else { for (f = 0;f < g;f++) { m[f] = d; } } this._solidFillColorPBGRA = d; } else { for (var g = h.x | 0, f = h.x + h.width | 0, l = h.y + h.height | 0, n = this._rect.width | 0, h = h.y | 0;h < l;h++) { for (var p = h * n | 0, t = g;t < f;t++) { m[p + t] = d; } } this._solidFillColorPBGRA = null; } this._invalidate(); } }; m.prototype.floodFill = function(a, b, c) { r("public flash.display.BitmapData::floodFill"); }; m.prototype.generateFilterRect = function(a, b) { r("public flash.display.BitmapData::generateFilterRect"); }; m.prototype.getColorBoundsRect = function(a, b, c) { r("public flash.display.BitmapData::getColorBoundsRect"); return new this.sec.flash.geom.Rectangle; }; m.prototype.getPixels = function(a) { var b = new this.sec.flash.utils.ByteArray; this.copyPixelsToByteArray(a, b); return b; }; m.prototype.copyPixelsToByteArray = function(a, b) { var c = this._getPixelData(a); c && b.writeRawBytes(new Uint8Array(c)); }; m.prototype.getVector = function(a) { var b = new this.sec.Uint32Vector(c.length), c = this._getPixelData(a); if (!c) { return b; } b.length = c.length; b._view().set(c); return b; }; m.prototype.hitTest = function(a, b, c, e, d) { r("public flash.display.BitmapData::hitTest"); return !0; }; m.prototype.merge = function(a, b, c, e, d, h, m) { r("public flash.display.BitmapData::merge"); }; m.prototype.noise = function(a, b, c, e, d) { r("public flash.display.BitmapData::noise"); }; m.prototype.paletteMap = function(a, b, c, e, d, h, m) { r("public flash.display.BitmapData::paletteMap"); }; m.prototype.perlinNoise = function(a, b, c, e, d, h, m, g, f) { r("public flash.display.BitmapData::perlinNoise"); }; m.prototype.pixelDissolve = function(a, b, c, e, d, h) { r("public flash.display.BitmapData::pixelDissolve"); }; m.prototype.scroll = function(a, b) { r("public flash.display.BitmapData::scroll"); }; m.prototype.setPixels = function(a, b) { this._putPixelData(a, new Int32Array(b.readRawBytes())); }; m.prototype.setVector = function(a, b) { this._putPixelData(a, b._view()); }; m.prototype.threshold = function(b, c, e, d, h, m, g, f) { a(d); r("public flash.display.BitmapData::threshold"); }; m.prototype.lock = function() { this._locked = !0; }; m.prototype.unlock = function(a) { this._locked = !1; }; m.prototype.histogram = function(a) { k("public flash.display.BitmapData::histogram"); }; m.prototype.encode = function(a, b, c) { k("public flash.display.BitmapData::encode"); }; m.prototype._ensureBitmapData = function() { if (this._isRemoteDirty) { var a = this.sec.player.requestBitmapData(this); this._setData(a.getBytes(), 3); this._isDirty = this._isRemoteDirty = !1; this._solidFillColorPBGRA = null; } 1 !== this._type && (f.ColorUtilities.convertImage(this._type, 1, this._view, this._view), this._type = 1, this._solidFillColorPBGRA = null); }; m.MAXIMUM_WIDTH = 8191; m.MAXIMUM_HEIGHT = 8191; m.MAXIMUM_DIMENSION = 16777215; return m; }(g.ASObject); u.BitmapData = p; p = function(a) { function b(c, e) { a.call(this, c, e.flash.display.BitmapData.axClass, !1); this.ready = !1; } __extends(b, a); b.FromData = function(a, c) { var e = new b(a, c.sec); e.width = a.width || -1; e.height = a.height || -1; e.syncId = c.sec.flash.display.DisplayObject.axClass.getNextSyncID(); e.data = a.data; switch(a.mimeType) { case "application/octet-stream": e.type = a.dataType; e.ready = !0; break; case "image/jpeg": e.type = 4; break; case "image/png": e.type = 5; break; case "image/gif": e.type = 6; break; default: k(a.mimeType); } return e; }; b.prototype.getSharedInstance = function() { return this.sharedInstance || this.createSharedInstance(); }; b.prototype.createSharedInstance = function() { return this.sharedInstance = g.constructClassFromSymbol(this, this.symbolClass); }; Object.defineProperty(b.prototype, "resolveAssetCallback", {get:function() { return this._unboundResolveAssetCallback.bind(this); }, enumerable:!0, configurable:!0}); b.prototype._unboundResolveAssetCallback = function(a) { this.ready = !0; a && (this.width = a.width, this.height = a.height); }; return b; }(f.Timeline.DisplaySymbol); u.BitmapSymbol = p; })(q.display || (q.display = {})); })(g.flash || (g.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(f) { (function(f) { var k = function(b) { function d() { b.call(this); } __extends(d, b); d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; d.RED = 1; d.GREEN = 2; d.BLUE = 4; d.ALPHA = 8; return d; }(b.ASObject); f.BitmapDataChannel = k; })(f.display || (f.display = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(f) { (function(f) { var k = function(b) { function d() { b.call(this); } __extends(d, b); d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; d.COLORSPACE_AUTO = "auto"; d.COLORSPACE_4_4_4 = "4:4:4"; d.COLORSPACE_4_2_2 = "4:2:2"; d.COLORSPACE_4_2_0 = "4:2:0"; return d; }(b.ASObject); f.BitmapEncodingColorSpace = k; })(f.display || (f.display = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(f) { (function(f) { var k = function(b) { function d(a) { void 0 === a && (a = 80); b.call(this); this.quality = a >>> 0; } __extends(d, b); d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; return d; }(b.ASObject); f.JPEGEncoderOptions = k; })(f.display || (f.display = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(g) { (function(q) { (function(u) { var k = f.Debug.somewhatImplemented, r = q.display.ActionScriptVersion, d = q.events, a = f.FileLoader, c = f.SWF.SWFFile, e = f.AVM2.enterTimeline, l = f.AVM2.leaveTimeline, n; (function(a) { a[a.Unloaded = 0] = "Unloaded"; a[a.Opened = 1] = "Opened"; a[a.Initialized = 2] = "Initialized"; a[a.Complete = 3] = "Complete"; })(n || (n = {})); var t; (function(a) { a[a.External = 0] = "External"; a[a.Bytes = 1] = "Bytes"; })(t || (t = {})); n = function(n) { function h() { n.call(this); var a = this.sec.flash.display.DisplayObject.axClass; a._advancableInstances.push(this); this._content = null; this.axClass._rootLoader ? this._contentID = a._instanceID++ : a._instanceID--; a = this.sec.flash.display.LoaderInfo; this._contentLoaderInfo = new a(a.axClass.CtorToken); this._contentLoaderInfo._loader = this; if (a = b.getCurrentABC()) { this._contentLoaderInfo._loaderUrl = a.env.url; } this._fileLoader = null; this._loadStatus = 0; } __extends(h, n); h.getRootLoader = function() { if (this._rootLoader) { return this._rootLoader; } var a = new this.sec.flash.display.Loader; a._contentLoaderInfo._loader = null; return this._rootLoader = a; }; h.reset = function() { this.sec.flash.display.Loader.axClass._loadQueue.forEach(function(a) { return a.unload(); }); h.classInitializer(); }; h.classInitializer = function() { this._rootLoader = null; this._loadQueue = []; this._embeddedContentLoadCount = this.runtimeStartTime = 0; }; h.processEvents = function() { var a = this.sec.flash.display.Loader.axClass; a.processEarlyEvents(); a.processLateEvents(); }; h.processEarlyEvents = function() { for (var a = this.sec.flash.display.Loader.axClass._loadQueue, b = 0;b < a.length;b++) { var c = a[b], h = c._contentLoaderInfo, g = c._imageSymbol; if (h._file instanceof f.ImageFile) { if (!g || !g.ready || c._queuedLoadUpdate) { continue; } c._applyDecodedImage(g); } if (1 === c._loadStatus && c._content) { e("Loader.INIT"); try { h.dispatchEvent(this.sec.flash.events.Event.axClass.getInstance(d.Event.INIT)); } catch (n) { f.Debug.warning("caught error under loaderInfo INIT event:", n); } l(); c._loadStatus = 2; if (c === this.sec.flash.display.Loader.axClass._rootLoader) { e("Loader.Progress", "rootLoader"); try { h.dispatchEvent(new this.sec.flash.events.ProgressEvent(d.ProgressEvent.PROGRESS, !1, !1, h.bytesLoaded, h.bytesTotal)); } catch (p) { f.Debug.warning("caught error under loaderInfo PROGRESS event:", p); } l(); } } if (2 === c._loadStatus && h.bytesLoaded === h.bytesTotal) { a.splice(b--, 1); c._loadStatus = 3; e("Loader.Complete"); try { h.dispatchEvent(this.sec.flash.events.Event.axClass.getInstance(d.Event.COMPLETE)); } catch (t) { f.Debug.warning("caught error under loaderInfo COMPLETE event: ", t); } l(); } } }; h.processLateEvents = function() { for (var a = this.sec.flash.display.Loader.axClass._loadQueue, b = 0;b < a.length;b++) { var c = a[b], h = c._contentLoaderInfo, g = c._queuedLoadUpdate, n = h._bytesTotal; if (g && n || 1 === c._loadStatus) { c._queuedLoadUpdate = null; var p = this.sec.flash.events.ProgressEvent; if (0 === c._loadStatus) { if (0 === c._loadingType) { e("Loader.Open"); try { h.dispatchEvent(this.sec.flash.events.Event.axClass.getInstance(d.Event.OPEN)); } catch (t) { f.Debug.warning("caught error under loaderInfo OPEN event: ", t); } l(); } e("Loader.Progress"); try { h.dispatchEvent(new p(d.ProgressEvent.PROGRESS, !1, !1, 0, n)); } catch (r) { f.Debug.warning("caught error under loaderInfo PROGRESS event: ", r); } l(); c._loadStatus = 1; } if (g) { c._applyLoadUpdate(g); e("Loader.Progress"); try { h.dispatchEvent(new p(d.ProgressEvent.PROGRESS, !1, !1, g.bytesLoaded, n)); } catch (k) { f.Debug.warning("caught error under loaderInfo PROGRESS event: ", k); } l(); } } } }; h.prototype._setStage = function(a) { this._stage = a; }; h.prototype._initFrame = function(a) { }; h.prototype._constructFrame = function() { this === this.sec.flash.display.Loader.axClass.getRootLoader() && this._content ? (this.sec.flash.display.DisplayObject.axClass._advancableInstances.remove(this), this._children[0] = this._content, this._constructChildren(), this._children.length = 0) : this._constructChildren(); }; h.prototype.addChild = function(a) { this.sec.throwError("IllegalOperationError", b.Errors.InvalidLoaderMethodError); return null; }; h.prototype.addChildAt = function(a, c) { this.sec.throwError("IllegalOperationError", b.Errors.InvalidLoaderMethodError); return null; }; h.prototype.removeChild = function(a) { this.sec.throwError("IllegalOperationError", b.Errors.InvalidLoaderMethodError); return null; }; h.prototype.removeChildAt = function(a) { this.sec.throwError("IllegalOperationError", b.Errors.InvalidLoaderMethodError); return null; }; h.prototype.setChildIndex = function(a, c) { this.sec.throwError("IllegalOperationError", b.Errors.InvalidLoaderMethodError); }; h.prototype._describeData = function(a) { var b = [], c; for (c in a) { b.push(c + ":" + f.StringUtilities.toSafeString(a[c])); } return "{" + b.join(", ") + "}"; }; Object.defineProperty(h.prototype, "content", {get:function() { return 0 === this._loadStatus ? null : this._content; }, enumerable:!0, configurable:!0}); Object.defineProperty(h.prototype, "contentLoaderInfo", {get:function() { return this._contentLoaderInfo; }, enumerable:!0, configurable:!0}); h.prototype._getJPEGLoaderContextdeblockingfilter = function(a) { return this.sec.flash.system.JPEGLoaderContext.axClass.axIsType(a) ? a.deblockingFilter : 0; }; Object.defineProperty(h.prototype, "uncaughtErrorEvents", {get:function() { k("public flash.display.Loader::uncaughtErrorEvents"); this._uncaughtErrorEvents || (this._uncaughtErrorEvents = new d.UncaughtErrorEvents); return this._uncaughtErrorEvents; }, enumerable:!0, configurable:!0}); h.prototype._canLoadSWFFromDomain = function(a) { a = f.FileLoadingService.instance.resolveUrl(a); return this.sec.player.checkDomainForSWFLoading(a); }; h.prototype.load = function(b, c) { this.close(); this._contentLoaderInfo._url = b.url; this._applyLoaderContext(c); this._loadingType = 0; this._fileLoader = new a(this, this._contentLoaderInfo); Promise.resolve(void 0).then(function(a, b) { this._canLoadSWFFromDomain(b.url) ? a.loadFile(b) : console.error("Loading of " + b.url + " was rejected based on allowDomain heuristic."); }.bind(this, this._fileLoader, b._toFileRequest())); this._queuedLoadUpdate = null; this.sec.flash.display.Loader.axClass._loadQueue.push(this); }; h.prototype.loadBytes = function(b, c) { this.close(); var e = this.sec.flash.display.Loader.axClass; this._contentLoaderInfo._url = (this.loaderInfo ? this.loaderInfo._url : "") + "/[[DYNAMIC]]/" + ++e._embeddedContentLoadCount; this._applyLoaderContext(c); this._loadingType = 1; this._fileLoader = new a(this, this._contentLoaderInfo); this._queuedLoadUpdate = null; this._fileLoader.loadBytes(new Uint8Array(b.bytes, 0, b.length)); e._loadQueue.push(this); }; h.prototype.close = function() { var a = this.sec.flash.display.Loader.axClass._loadQueue.indexOf(this); -1 < a && this.sec.flash.display.Loader.axClass._loadQueue.splice(a, 1); this._contentLoaderInfo.reset(); this._fileLoader && (this._fileLoader.abortLoad(), this._fileLoader = null); }; h.prototype._unload = function(a, b) { 2 > this._loadStatus ? this._loadStatus = 0 : (this.close(), this._content = null, this._contentLoaderInfo._loader = null, this._loadStatus = 0, this.dispatchEvent(this.sec.flash.events.Event.axClass.getInstance(d.Event.UNLOAD))); }; h.prototype.unload = function() { this._unload(!1, !1); }; h.prototype.unloadAndStop = function(a) { this._unload(!0, !!a); }; h.prototype._applyLoaderContext = function(a) { var b = a && a.parameters ? g.transformASValueToJS(this.sec, a.parameters, !1) : {}; this._contentLoaderInfo._applicationDomain = a && a.applicationDomain ? a.applicationDomain : this._loaderInfo && this._loaderInfo._applicationDomain ? this._loaderInfo._applicationDomain : new this.sec.flash.system.ApplicationDomain; this._contentLoaderInfo._parameters = b; }; h.prototype.onLoadOpen = function(a) { this._contentLoaderInfo.setFile(a); }; h.prototype.onLoadProgress = function(a) { this._queuedLoadUpdate = a; }; h.prototype.onNewEagerlyParsedSymbols = function(a, b) { for (var c = [], e = a.length - b;e < a.length;e++) { var d = this._contentLoaderInfo.getSymbolById(a[e].id); d.ready || c.push(d.resolveAssetPromise.promise); } return Promise.all(c); }; h.prototype.onImageBytesLoaded = function() { var a = this._contentLoaderInfo._file, b = u.BitmapSymbol.FromData({id:-1, data:a.data, mimeType:a.mimeType, dataType:a.type, type:"image"}, this._contentLoaderInfo); this._imageSymbol = b; this.sec.player.registerImage(b, a.type, a.data); }; h.prototype._applyDecodedImage = function(a) { a = a.createSharedInstance(); this._content = new this.sec.flash.display.Bitmap(a); this._contentLoaderInfo._width = 20 * this._content.width; this._contentLoaderInfo._height = 20 * this._content.height; this.addTimelineObjectAtDepth(this._content, 0); }; h.prototype._applyLoadUpdate = function(a) { var e = this._contentLoaderInfo; e._bytesLoaded = a.bytesLoaded; var d = e._file; if (d instanceof c && 0 !== d.framesLoaded) { if (e._allowCodeExecution) { var h = e.app, g = d.abcBlocks.length; if (0 < g - e._abcBlocksLoaded) { for (a = e._abcBlocksLoaded;a < g;a++) { var f = d.abcBlocks[a], l = new b.ABCFile(e, f.data); f.flags ? h.loadABC(l) : h.loadAndExecuteABC(l); } e._abcBlocksLoaded = g; } g = d.symbolClassesList.length; if (0 < g - e._mappedSymbolsLoaded) { for (a = e._mappedSymbolsLoaded;a < g;a++) { f = d.symbolClassesList[a], l = h.getClass(b.Multiname.FromFQNString(f.className, 0)), Object.defineProperty(l.tPrototype, "_symbol", {get:e.getSymbolResolver(l, f.id), configurable:!0}); } e._mappedSymbolsLoaded = g; } } if (inFirefox && (h = d.fonts.length, 0 < h - e._fontsLoaded)) { for (a = e._fontsLoaded;a < h;a++) { this.sec.flash.text.Font.axClass.registerFontSymbol(d.fonts[a], e); } e._fontsLoaded = h; } h = e.getRootSymbol(); g = d.framesLoaded - h.frames.length; if (0 !== g) { for ((a = this._content) || (a = this.createContentRoot(h, d.sceneAndFrameLabelData)), d = a, a = 0;a < g;a++) { f = e.getFrame(null, h.frames.length), d._addFrame(f); } } } }; h.prototype.onLoadComplete = function() { }; h.prototype.onLoadError = function() { }; h.prototype._addScenesToMovieClip = function(a, b, c) { if (b) { for (var e = [], d = b.scenes, h = 0;h < d.length;h++) { e.push({offset:d[h].offset, name:d[h].name}); } e.sort(function(a, b) { return a.offset - b.offset; }); var g = e.length, f, l; 0 < g && 0 < e[0].offset && (f = e[0].offset, l = Math.min(f, c), a.addScene("Scene 0", [], 0, l)); h = 0; for (g = e.length;h < g;h++) { var n = e[h]; f = n.offset; if (f >= c) { break; } l = h < g - 1 ? Math.min(d[h + 1].offset, c) : c; a.addScene(n.name, [], f, l - f); } b = b.labels; for (h = 0;h < b.length;h++) { c = b[h], a.addFrameLabel(c.name, c.frame + 1); } } else { a.addScene("Scene 1", [], 0, c); } }; h.prototype.createContentRoot = function(a, b) { a.isAVM1Object && this._initAvm1(a); var c = g.constructClassFromSymbol(a, a.symbolClass); this.sec.flash.display.DisplayObject.axClass._instanceID--; var e = this.sec.flash.display.Loader.axClass; c._name = this === e._rootLoader ? "root1" : "instance" + this._contentID; this.sec.flash.display.MovieClip.axClass.axIsType(c) && this._addScenesToMovieClip(c, b, a.numFrames); var d = this._contentLoaderInfo; c._loaderInfo = d; var h = c; d.actionScriptVersion === r.ACTIONSCRIPT2 ? c = this._initAvm1Root(c) : this === e.getRootLoader() && (this.sec.flash.display.MovieClip.axClass.frameNavigationModel = 10 > d.swfVersion ? 9 : 10); this._content = c; this === e.getRootLoader() ? (this.sec.flash.display.Loader.runtimeStartTime = Date.now(), this._stage.setRoot(c)) : this.addTimelineObjectAtDepth(c, 0); return h; }; h.prototype._initAvm1 = function(a) { var b = this._contentLoaderInfo, c; this.loaderInfo && this.loaderInfo._avm1Context ? c = b._avm1Context = this.loaderInfo._avm1Context : (c = f.AVM1.AVM1Context.create(b), b._avm1Context = c, b = this.sec.flash.display, this === b.Loader.axClass.getRootLoader() && (c.setStage(this._stage), b.MovieClip.axClass.frameNavigationModel = 1)); a.avm1Context = c; }; h.prototype._initAvm1Root = function(a) { if (this.loaderInfo && this.loaderInfo._avm1Context) { return a; } var b = this._contentLoaderInfo._avm1Context; a.addEventListener("frameConstructed", b.flushPendingScripts.bind(b), !1, Number.MAX_VALUE); f.AVM1.Lib.getAVM1Object(a, b).setParameters(this._contentLoaderInfo._parameters); return new this.sec.flash.display.AVM1Movie(a); }; h.classSymbols = null; h.instanceSymbols = null; return h; }(q.display.DisplayObjectContainer); u.Loader = n; })(q.display || (q.display = {})); })(g.flash || (g.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(g) { (function(q) { (function(u) { var k = f.Debug.notImplemented, r = f.Debug.somewhatImplemented, d = f.SWF.SWFFile, a = function(a) { function e(d) { d !== e.CtorToken && this.sec.throwError("ArgumentError", b.Errors.CantInstantiateError, "LoaderInfo$"); a.call(this); this._loader = null; this._loaderUrl = ""; this.reset(); } __extends(e, a); e.prototype.reset = function() { this._url = ""; this._file = null; this._bytesTotal = this._bytesLoaded = 0; this._parameters = this._applicationDomain = null; this._height = this._width = 0; this._uncaughtErrorEvents = this._bytes = this._content = this._childSandboxBridge = this._parentSandboxBridge = this._sharedEvents = null; this._allowCodeExecution = !0; this._dictionary = []; this._fontsLoaded = this._mappedSymbolsLoaded = this._abcBlocksLoaded = 0; this._avm1Context = null; }; e.prototype.setFile = function(a) { this._file = a; this._bytesTotal = a.bytesTotal; a instanceof d && (a = a.bounds, this._width = a.xMax - a.xMin, this._height = a.yMax - a.yMin); }; e.getLoaderInfoByDefinition = function(a) { k("public flash.display.LoaderInfo::static getLoaderInfoByDefinition"); }; Object.defineProperty(e.prototype, "loaderURL", {get:function() { if (!this._loader) { var a = this.sec.player; return this._url === a.swfUrl && a.loaderUrl || this._url; } return this._loaderUrl; }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "url", {get:function() { return this._file ? this._url : null; }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "isURLInaccessible", {get:function() { r("public flash.display.LoaderInfo::get isURLInaccessible"); return this._file ? !1 : !0; }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "bytesLoaded", {get:function() { return this._bytesLoaded; }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "bytesTotal", {get:function() { return this._bytesTotal; }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "applicationDomain", {get:function() { r("public flash.display.LoaderInfo::get applicationDomain"); return this._file ? this._applicationDomain : null; }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "app", {get:function() { return this._applicationDomain.axDomain; }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "swfVersion", {get:function() { this._file || this.sec.throwError("Error", b.Errors.LoadingObjectNotInitializedError); this._file instanceof d || this.sec.throwError("Error", b.Errors.LoadingObjectNotSWFError); return this._file.swfVersion; }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "actionScriptVersion", {get:function() { this._file || this.sec.throwError("Error", b.Errors.LoadingObjectNotInitializedError); this._file instanceof d || this.sec.throwError("Error", b.Errors.LoadingObjectNotSWFError); return this._file.useAVM1 ? u.ActionScriptVersion.ACTIONSCRIPT2 : u.ActionScriptVersion.ACTIONSCRIPT3; }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "frameRate", {get:function() { this._file || this.sec.throwError("Error", b.Errors.LoadingObjectNotInitializedError); this._file instanceof d || this.sec.throwError("Error", b.Errors.LoadingObjectNotSWFError); return this._file.frameRate; }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "width", {get:function() { this._file || this.sec.throwError("Error", b.Errors.LoadingObjectNotInitializedError); return this._width / 20 | 0; }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "height", {get:function() { this._file || this.sec.throwError("Error", b.Errors.LoadingObjectNotInitializedError); return this._height / 20 | 0; }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "contentType", {get:function() { return this._file ? this._file instanceof f.ImageFile ? this._file.mimeType : "application/x-shockwave-flash" : null; }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "sharedEvents", {get:function() { r("public flash.display.LoaderInfo::get sharedEvents"); this._sharedEvents || (this._sharedEvents = new this.sec.flash.events.EventDispatcher); return this._sharedEvents; }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "parentSandboxBridge", {get:function() { r("public flash.display.LoaderInfo::get parentSandboxBridge"); return this._parentSandboxBridge; }, set:function(a) { r("public flash.display.LoaderInfo::set parentSandboxBridge"); this._parentSandboxBridge = a; }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "childSandboxBridge", {get:function() { r("public flash.display.LoaderInfo::get childSandboxBridge"); return this._childSandboxBridge; }, set:function(a) { r("public flash.display.LoaderInfo::set childSandboxBridge"); this._childSandboxBridge = a; }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "sameDomain", {get:function() { this._file || this.sec.throwError("Error", b.Errors.LoadingObjectNotInitializedError); r("public flash.display.LoaderInfo::get sameDomain"); return !0; }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "childAllowsParent", {get:function() { this._file || this.sec.throwError("Error", b.Errors.LoadingObjectNotInitializedError); r("public flash.display.LoaderInfo::get childAllowsParent"); return !0; }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "parentAllowsChild", {get:function() { this._file || this.sec.throwError("Error", b.Errors.LoadingObjectNotInitializedError); r("public flash.display.LoaderInfo::get parentAllowsChild"); return !0; }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "loader", {get:function() { return this._loader; }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "content", {get:function() { return this._loader && this._loader.content; }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "bytes", {get:function() { if (!this._file) { return new this.sec.flash.utils.ByteArray; } k("public flash.display.LoaderInfo::get bytes"); return null; }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "parameters", {get:function() { r("public flash.display.LoaderInfo::get parameters"); return this._parameters ? g.transformJSValueToAS(this.sec, this._parameters, !1) : {}; }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "uncaughtErrorEvents", {get:function() { r("public flash.display.LoaderInfo::_getUncaughtErrorEvents"); this._uncaughtErrorEvents || (this._uncaughtErrorEvents = new this.sec.flash.events.UncaughtErrorEvents); return this._uncaughtErrorEvents; }, enumerable:!0, configurable:!0}); e.prototype.getSymbolResolver = function(a, b) { return this.resolveClassSymbol.bind(this, a, b); }; e.prototype.getSymbolById = function(a) { var b = this._dictionary[a]; if (b) { return !1 === b.ready ? null : b; } var c = this._file.getSymbol(a); if (!c) { return 65535 !== a && f.Debug.warning("Unknown symbol requested: " + a), null; } switch(c.type) { case "shape": b = q.display.ShapeSymbol.FromData(c, this); break; case "morphshape": b = q.display.MorphShapeSymbol.FromData(c, this); break; case "image": c.definition && (c = c.definition); b = q.display.BitmapSymbol.FromData(c, this); !1 === b.ready && this.sec.player.registerImage(b, c.dataType, c.data); break; case "label": b = q.text.TextSymbol.FromLabelData(c, this); break; case "text": b = q.text.TextSymbol.FromTextData(c, this); this._syncAVM1Attributes(b); break; case "button": b = q.display.ButtonSymbol.FromData(c, this); this._syncAVM1Attributes(b); break; case "sprite": b = q.display.SpriteSymbol.FromData(c, this); break; case "font": c.definition && (c = c.definition); b = q.text.FontSymbol.FromData(c, this); g.constructClassFromSymbol(b, b.symbolClass); !1 === b.ready && this.sec.player.registerFont(b, c.data); break; case "sound": b = q.media.SoundSymbol.FromData(c, this); break; case "binary": b = f.Timeline.BinarySymbol.FromData(c, this); } return this._dictionary[a] = b; }; e.prototype.getRootSymbol = function() { var a = this._dictionary[0]; a || (a = new q.display.SpriteSymbol({id:0, className:this._file.symbolClassesMap[0], env:this}, this), a.isRoot = !0, a.numFrames = this._file.frameCount, this._syncAVM1Attributes(a), this._dictionary[0] = a); return a; }; e.prototype._syncAVM1Attributes = function(a) { this.actionScriptVersion === u.ActionScriptVersion.ACTIONSCRIPT2 && (a.isAVM1Object = !0, a.avm1Context = this._avm1Context); }; e.prototype.getFrame = function(a, b) { var c = this._file; a || (a = c); return a.frames[b]; }; e.prototype.resolveClassSymbol = function(a, b) { var c = this.getSymbolById(b); if (c) { return Object.defineProperty(a.tPrototype, "_symbol", {value:c}), c; } f.Debug.warning("Attempt to resolve symbol for AVM2 class failed: Symbol " + b + " not found."); }; e.classInitializer = null; e.CtorToken = {}; return e; }(q.events.EventDispatcher); u.LoaderInfo = a; })(q.display || (q.display = {})); })(g.flash || (g.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(b) { (function(g) { var f = function(b) { function d() { this._symbol && !this._fieldsInitialized && this.applySymbol(); b.call(this); } __extends(d, b); d.prototype.applySymbol = function() { this._initializeFields(); this._setStaticContentFromSymbol(this._symbol); this._setFlags(32768); }; d.prototype._canHaveGraphics = function() { return !0; }; d.prototype._getGraphics = function() { return this._graphics; }; Object.defineProperty(d.prototype, "graphics", {get:function() { return this._ensureGraphics(); }, enumerable:!0, configurable:!0}); d.prototype._containsPointDirectly = function(a, b, e, d) { return (e = this._getGraphics()) && e._containsPoint(a, b, !0, this._ratio / 65535); }; d.classSymbols = null; d.instanceSymbols = null; d.classInitializer = null; return d; }(b.display.DisplayObject); g.MorphShape = f; f = function(g) { function d(a, b) { g.call(this, a, b.flash.display.MorphShape.axClass); } __extends(d, g); d.FromData = function(a, c) { var e = new d(a, c.sec); e._setBoundsFromData(a); e.graphics = b.display.Graphics.FromData(a, c); e.processRequires(a.require, c); e.morphFillBounds = a.morphFillBounds; e.morphLineBounds = a.morphLineBounds; return e; }; return d; }(b.display.ShapeSymbol); g.MorphShapeSymbol = f; })(b.display || (b.display = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(b) { (function(g) { var f = function(b) { function d() { b.call(this); } __extends(d, b); d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; return d; }(b.events.EventDispatcher); g.NativeMenu = f; })(b.display || (b.display = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(b) { (function(g) { var k = f.Debug.somewhatImplemented, r = function(b) { function a() { b.call(this); this._enabled = !0; } __extends(a, b); Object.defineProperty(a.prototype, "enabled", {get:function() { k("public flash.display.NativeMenuItem::get enabled"); return this._enabled; }, set:function(a) { a = !!a; k("public flash.display.NativeMenuItem::set enabled"); this._enabled = a; }, enumerable:!0, configurable:!0}); a.classInitializer = null; a.classSymbols = null; a.instanceSymbols = null; return a; }(b.events.EventDispatcher); g.NativeMenuItem = r; })(b.display || (b.display = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(f) { (function(f) { var k = function(b) { function d(a) { void 0 === a && (a = !1); b.call(this); this.fastCompression = !!a; } __extends(d, b); d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; return d; }(b.ASObject); f.PNGEncoderOptions = k; })(f.display || (f.display = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(f) { (function(f) { var k = function(b) { function d() { b.call(this); } __extends(d, b); d.fromNumber = function(a) { switch(a) { case 0: return d.NEVER; case 1: return d.ALWAYS; case 2: return d.AUTO; default: return null; } }; d.toNumber = function(a) { switch(a) { case d.NEVER: return 0; case d.ALWAYS: return 1; case d.AUTO: return 2; default: return -1; } }; d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; d.NEVER = "never"; d.ALWAYS = "always"; d.AUTO = "auto"; return d; }(b.ASObject); f.PixelSnapping = k; })(f.display || (f.display = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(f) { (function(f) { var k = function(b) { function d() { b.call(this); } __extends(d, b); d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; d.FLASH1 = 1; d.FLASH2 = 2; d.FLASH3 = 3; d.FLASH4 = 4; d.FLASH5 = 5; d.FLASH6 = 6; d.FLASH7 = 7; d.FLASH8 = 8; d.FLASH9 = 9; d.FLASH10 = 10; d.FLASH11 = 11; d.FLASH12 = 12; return d; }(b.ASObject); f.SWFVersion = k; })(f.display || (f.display = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(q) { (function(q) { var k = f.AVMX.axCoerceString, r = function(b) { function a(a, e, g, f) { b.call(this); this._name = k(a); this._labels = e; this.offset = g; this._numFrames = f | 0; } __extends(a, b); Object.defineProperty(a.prototype, "name", {get:function() { return this._name; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "labels", {get:function() { return this._labels; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "numFrames", {get:function() { return this._numFrames; }, enumerable:!0, configurable:!0}); a.prototype.clone = function() { var a = this._labels.value.map(function(a) { return a.clone(); }); return new this.sec.flash.display.Scene(this._name, this.sec.createArrayUnsafe(a), this.offset, this._numFrames); }; a.prototype.getLabelByName = function(a, b) { b && (a = a.toLowerCase()); for (var d = this._labels.value, g = 0;g < d.length;g++) { var f = d[g]; if (b ? f.name.toLowerCase() === a : f.name === a) { return f; } } return null; }; a.prototype.getLabelByFrame = function(a) { for (var b = this._labels.value, d = 0;d < b.length;d++) { var g = b[d]; if (g.frame === a) { return g; } } return null; }; a.classInitializer = null; a.classSymbols = null; a.instanceSymbols = null; return a; }(b.ASObject); q.Scene = r; })(q.display || (q.display = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(f) { (function(f) { var k = function(b) { function d() { b.call(this); } __extends(d, b); d.fromNumber = function(a) { if (0 === a) { return ""; } var b = ""; a & 1 && (b += "T"); a & 2 && (b += "B"); a & 4 && (b += "L"); a & 8 && (b += "R"); return b; }; d.toNumber = function(a) { var b = 0; a = a.toUpperCase(); 0 <= a.indexOf("T") && (b |= 1); 0 <= a.indexOf("B") && (b |= 2); 0 <= a.indexOf("L") && (b |= 4); 0 <= a.indexOf("R") && (b |= 8); return b; }; d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; d.TOP = "T"; d.LEFT = "L"; d.BOTTOM = "B"; d.RIGHT = "R"; d.TOP_LEFT = "TL"; d.TOP_RIGHT = "TR"; d.BOTTOM_LEFT = "BL"; d.BOTTOM_RIGHT = "BR"; return d; }(b.ASObject); f.StageAlign = k; })(f.display || (f.display = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(f) { (function(f) { var k = function(b) { function d() { b.call(this); } __extends(d, b); d.fromNumber = function(a) { switch(a) { case 0: return d.FULL_SCREEN; case 1: return d.FULL_SCREEN_INTERACTIVE; case 2: return d.NORMAL; default: return null; } }; d.toNumber = function(a) { switch(a) { case d.FULL_SCREEN: return 0; case d.FULL_SCREEN_INTERACTIVE: return 1; case d.NORMAL: return 2; default: return -1; } }; d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; d.FULL_SCREEN = "fullScreen"; d.FULL_SCREEN_INTERACTIVE = "fullScreenInteractive"; d.NORMAL = "normal"; return d; }(b.ASObject); f.StageDisplayState = k; })(f.display || (f.display = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(f) { (function(f) { var k = function(b) { function d() { b.call(this); } __extends(d, b); d.fromNumber = function(a) { switch(a) { case 0: return d.LOW; case 1: return d.MEDIUM; case 2: return d.HIGH; case 3: return d.BEST; case 4: return d.HIGH_8X8; case 5: return d.HIGH_8X8_LINEAR; case 6: return d.HIGH_16X16; case 7: return d.HIGH_16X16_LINEAR; default: return null; } }; d.toNumber = function(a) { switch(a) { case d.LOW: return 0; case d.MEDIUM: return 1; case d.HIGH: return 2; case d.BEST: return 3; case d.HIGH_8X8: return 4; case d.HIGH_8X8_LINEAR: return 5; case d.HIGH_16X16: return 6; case d.HIGH_16X16_LINEAR: return 7; default: return -1; } }; d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; d.LOW = "low"; d.MEDIUM = "medium"; d.HIGH = "high"; d.BEST = "best"; d.HIGH_8X8 = "8x8"; d.HIGH_8X8_LINEAR = "8x8linear"; d.HIGH_16X16 = "16x16"; d.HIGH_16X16_LINEAR = "16x16linear"; return d; }(b.ASObject); f.StageQuality = k; })(f.display || (f.display = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(f) { (function(f) { var k = function(b) { function d() { b.call(this); } __extends(d, b); d.fromNumber = function(a) { switch(a) { case 0: return d.SHOW_ALL; case 1: return d.EXACT_FIT; case 2: return d.NO_BORDER; case 4: return d.NO_SCALE; default: return null; } }; d.toNumber = function(a) { switch(a.toLowerCase()) { case d.SHOW_ALL_LOWERCASE: return 0; case d.EXACT_FIT_LOWERCASE: return 1; case d.NO_BORDER_LOWERCASE: return 2; case d.NO_SCALE_LOWERCASE: return 4; default: return -1; } }; d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; d.SHOW_ALL = "showAll"; d.EXACT_FIT = "exactFit"; d.NO_BORDER = "noBorder"; d.NO_SCALE = "noScale"; d.SHOW_ALL_LOWERCASE = "showall"; d.EXACT_FIT_LOWERCASE = "exactfit"; d.NO_BORDER_LOWERCASE = "noborder"; d.NO_SCALE_LOWERCASE = "noscale"; return d; }(b.ASObject); f.StageScaleMode = k; })(f.display || (f.display = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(f) { (function(f) { var k = function(b) { function d() { b.call(this); } __extends(d, b); d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; d.NONE = "none"; d.POSITIVE = "positive"; d.NEGATIVE = "negative"; return d; }(b.ASObject); f.TriangleCulling = k; })(f.display || (f.display = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(b) { (function(g) { var k = f.Debug.notImplemented, r = function(b) { function a(a) { b.call(this); this._children = []; this._children[0] = this._content = a; a._setParent(this, 0); this._setDirtyFlags(2097152); this._invalidateFillAndLineBounds(!0, !0); this.sec.flash.display.DisplayObject.axClass._advancableInstances.push(this); this._constructed = !1; } __extends(a, b); a.prototype.call = function(a) { k("AVM1Movie#call"); }; a.prototype.addCallback = function(a, b) { k("AVM1Movie#call"); }; a.prototype._addFrame = function(a) { this._content._addFrame(a); }; a.prototype._initFrame = function(a) { }; a.prototype._constructFrame = function() { this._constructed || (this._constructed = !0, g.DisplayObjectContainer.prototype._constructChildren.call(this)); this._content._constructFrame(); }; a.prototype._enqueueFrameScripts = function() { this._removeFlags(16384); this._content._enqueueFrameScripts(); }; a.prototype._propagateFlagsDown = function(a) { this._hasFlags(a) || (this._setFlags(a), this._content._propagateFlagsDown(a)); }; a.prototype._containsPoint = function(a, b, d, g, f, p) { return 3 === f ? this._content._containsPoint(a, b, d, g, f, p) : 0 === f && this._getContentBounds().contains(d, g) ? 1 : 0; }; a.prototype._getChildBounds = function(a, b) { var d = this._content._getContentBounds(b).clone(); this._getConcatenatedMatrix().transformBounds(d); a.unionInPlace(d); }; a.classInitializer = null; a.classSymbols = null; a.instanceSymbols = null; return a; }(b.display.DisplayObject); g.AVM1Movie = r; })(b.display || (b.display = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(f) { (function(f) { var k = function(b) { function d(a, c) { void 0 === a && (a = ""); void 0 === c && (c = 0); b.call(this, a, c); } __extends(d, b); d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; return d; }(b.ASError); f.IllegalOperationError = k; })(f.errors || (f.errors = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(g) { (function(q) { (function(q) { var k = f.AVMX.axCoerceString, r = f.ExternalInterfaceService, d = function(a) { function c() { a.call(this); } __extends(c, a); c.ensureInitialized = function() { this.available || this.sec.throwError("Error", b.Errors.ExternalInterfaceNotAvailableError); this.initialized || (this.initialized = !0, r.instance.initJS(this._callIn)); }; c.call = function(a) { this.ensureInitialized(); var b = ""; if (1 < arguments.length) { for (var b = [], c = 1;c < arguments.length;c++) { b.push(this.convertToJSString(arguments[c])); } b = b.join(","); } b = this._evalJS("try {__flash__toXML(" + a + "(" + b + "));} catch (e) {" + (this.$BgmarshallExceptions ? '"" + e + "";' : '"";') + "}"); return null == b ? null : this.convertFromXML(this.convertToXML(b)); }; c.addCallback = function(a, b) { this.ensureInitialized(); if (b) { var c = this; this._addCallback(a, function(a, e) { var d = !0; if (null == e) { var g = this.convertToXML(a), d = (d = g.attribute("returntype")) && "javascript" == d._value; e = []; for (var f = 0;f < g._children.length;f++) { e.push(this.convertFromXML(g._children[f])); } } var r; try { r = b.axApply(null, e); } catch (k) { if (this.$BgmarshallExceptions) { r = k; } else { throw k; } } return d ? c.convertToJSString(r) : c.convertToXMLString(r); }); } else { this._removeCallback(a); } }; Object.defineProperty(c, "available", {get:function() { return r.instance.enabled; }, enumerable:!0, configurable:!0}); Object.defineProperty(c, "objectID", {get:function() { return r.instance.getId(); }, enumerable:!0, configurable:!0}); c._addCallback = function(a, b) { r.instance.registerCallback(a); c.registeredCallbacks[a] = b; }; c._removeCallback = function(a) { r.instance.unregisterCallback(a); delete c.registeredCallbacks[a]; }; c._evalJS = function(a) { a = k(a); return r.instance.eval(a); }; c._callIn = function(a, b) { var d = c.registeredCallbacks[a]; if (d) { return d(a, b); } }; c._callOut = function(a) { a = k(a); return r.instance.call(a); }; c.convertToXML = function(a) { var c = this.sec.system.getClass(b.Multiname.FromSimpleName("XML")), d = c.ignoreWhitespace; c.ignoreWhitespace = !1; a = c.Create(a); c.ignoreWhitespace = d; return a; }; c.convertToXMLString = function(a) { switch(typeof a) { case "boolean": return a ? "" : ""; case "number": return "" + a + ""; case "string": return "" + a.split("&").join("&").split("<").join("<").split(">").join(">") + ""; case "object": if (null === a) { return ""; } if (this.sec.AXDate.axIsInstanceOf(a)) { return "" + a.time + ""; } if (this.sec.AXError.axIsInstanceOf(a)) { return this.$BgmarshallExceptions ? "" + a + "" : ""; } var b = []; if (a.hasOwnProperty("$Bglength")) { for (var c = a.$Bglength, d = 0;d < c;d++) { var g = this.convertToXMLString(a.axGetNumericProperty(d)); b.push('' + g + ""); } return "" + b.join("") + ""; } c = a.axGetEnumerableKeys(); for (d = 0;d < c.length;d++) { var h = c[d], g = this.convertToXMLString(a.axGetPublicProperty(h)); b.push('' + g + ""); } return "" + b.join("") + ""; default: return ""; } }; c.convertFromXML = function(a) { switch(a._name.name) { case "true": return !0; case "false": return !1; case "number": return Number(String(a.children())); case "string": return String(a.children()); case "null": return null; case "date": return this.sec.AXDate.axConstruct([Number(String(a.children()))]); case "exception": if (this.$BgmarshallExceptions) { throw this.sec.AXError.axConstruct([String(a.children())]); } break; case "array": ; case "object": for (var c = "object" === a._name.name ? this.sec.createObject() : this.sec.createArrayUnsafe([]), d = 0;d < a._children.length;d++) { var g = a._children[d], f; a: { for (f = 0;f < g._attributes.length;f++) { var h = g._attributes[f]; if ("id" === h._name.name) { f = h._value; break a; } } f = void 0; } c.axSetPublicProperty(f, this.convertFromXML(g._children[0])); } return c; case "class": return a = b.Multiname.FromFQNString(String(a.children()), 0), this.sec.application.getClass(a); } }; c.convertToJSString = function(a) { if ("string" == typeof a) { return '"' + a.split("\r").join("\\r").split("\n").join("\\n").split('"').join('\\"') + '"'; } if (this.sec.AXArray.axIsInstanceOf(a)) { var b = []; a = a.value; for (var c = 0;c < a.length;c++) { b.push(this.convertToJSString(a[c])); } return "[" + b.join(",") + "]"; } if (this.sec.AXDate.axIsInstanceOf(a)) { return "new Date(" + a.value + ")"; } if (this.$BgmarshallExceptions && this.sec.AXError.axIsInstanceOf(a)) { return 'throw "' + a + '"'; } if ("object" === typeof a && null !== a) { for (var b = [], d = a.axGetEnumerableKeys(), c = 0;c < d.length;c++) { var g = d[c]; b.push(g + ":" + this.convertToJSString(a.axGetPublicProperty(g))); } return "({" + b.join(",") + "})"; } return String(a); }; c.classInitializer = null; c.initialized = !1; c.registeredCallbacks = Object.create(null); return c; }(g.ASObject); q.ExternalInterface = d; })(q.external || (q.external = {})); })(g.flash || (g.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(f) { (function(f) { var k = function(b) { function d() { b.call(this); } __extends(d, b); d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; d.LOW = 1; d.MEDIUM = 2; d.HIGH = 3; return d; }(b.ASObject); f.BitmapFilterQuality = k; })(f.filters || (f.filters = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(f) { (function(f) { var k = function(b) { function d() { b.call(this); } __extends(d, b); d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; d.INNER = "inner"; d.OUTER = "outer"; d.FULL = "full"; return d; }(b.ASObject); f.BitmapFilterType = k; })(f.filters || (f.filters = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(q) { (function(q) { var k = function(b) { function d() { b.call(this); } __extends(d, b); d._updateBlurBounds = function(a, b, e, g, f) { void 0 === f && (f = !1); g = d.blurFilterStepWidths[g - 1]; f && (f = g / 4, b -= f, e -= f); b = Math.ceil((1 > b ? 1 : b) * g); e = Math.ceil((1 > e ? 1 : e) * g); a.inflate(b, e); }; d.prototype._updateFilterBounds = function(a) { }; d.prototype._serialize = function(a) { a.writeInt(-1); }; d.prototype.clone = function() { return null; }; d.classInitializer = null; d.EPS = 1E-9; d.blurFilterStepWidths = [.5, 1.05, 1.35, 1.55, 1.75, 1.9, 2, 2.1, 2.2, 2.3, 2.5, 3, 3, 3.5, 3.5]; return d; }(b.ASObject); q.BitmapFilter = k; k = function() { function b() { } b.sanitize = function(b, a, c) { if (f.isNullOrUndefined(b) || 0 === b.length) { this.colors = [], this.alphas = [], this.ratios = []; } else { var e; f.isNullOrUndefined(c) ? (this.colors = this.sanitizeColors(b), e = this.colors.length, this.ratios = this.initArray(e), f.isNullOrUndefined(a) ? this.alphas = this.initArray(e) : this.alphas = this.sanitizeAlphas(a, e, e, 1)) : 0 === c.length ? (this.colors = [], this.alphas = [], this.ratios = []) : (e = Math.min(b.length, c.length, 16), this.colors = this.sanitizeColors(b, e), this.ratios = this.sanitizeRatios(c, e), f.isNullOrUndefined(a) ? this.alphas = this.initArray(e) : this.alphas = this.sanitizeAlphas(a, e, e, 1)); } }; b.sanitizeColors = function(b, a) { void 0 === a && (a = 16); for (var c = [], e = 0, g = Math.min(b.length, a);e < g;e++) { c[e] = b[e] >>> 0 & 16777215; } return c; }; b.sanitizeAlphas = function(b, a, c, e) { void 0 === a && (a = 16); void 0 === c && (c = 0); void 0 === e && (e = 0); var g = [], n = 0; for (a = Math.min(b.length, a);n < a;n++) { g[n] = f.NumberUtilities.clamp(+b[n], 0, 1); } for (;n < c;) { g[n++] = e; } return g; }; b.sanitizeRatios = function(b, a, c) { var e; void 0 === a && (a = 16); void 0 === c && (c = 0); void 0 === e && (e = 0); var g = [], n = 0; for (a = Math.min(b.length, a);n < a;n++) { g[n] = f.NumberUtilities.clamp(+b[n], 0, 255); } for (;n < c;) { g[n++] = e; } return g; }; b.initArray = function(b) { var a; void 0 === a && (a = 0); for (var c = Array(b), e = 0;e < b;e++) { c[e] = a; } return c; }; return b; }(); q.GradientArrays = k; })(q.filters || (q.filters = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(g) { (function(g) { (function(u) { var k = f.AVMX.axCoerceString, r = function(d) { function a(a, b, g, f, t, p, h, m, v, k, r, q) { void 0 === a && (a = 4); void 0 === b && (b = 45); void 0 === g && (g = 16777215); void 0 === f && (f = 1); void 0 === t && (t = 0); void 0 === p && (p = 1); void 0 === h && (h = 4); void 0 === m && (m = 4); void 0 === v && (v = 1); void 0 === k && (k = 1); void 0 === r && (r = "inner"); void 0 === q && (q = !1); d.call(this); this.distance = a; this.angle = b; this.highlightColor = g; this.highlightAlpha = f; this.shadowColor = t; this.shadowAlpha = p; this.blurX = h; this.blurY = m; this.strength = v; this.quality = k; this.type = r; this.knockout = q; } __extends(a, d); a.FromUntyped = function(a) { var b = a.colors[0] >>> 8, d = (a.colors[0] & 255) / 255, f = a.colors[1] >>> 8, t = (a.colors[1] & 255) / 255, p = g.filters.BitmapFilterType.OUTER; a.onTop ? p = g.filters.BitmapFilterType.FULL : a.inner && (p = g.filters.BitmapFilterType.INNER); return new this.sec.flash.filters.BevelFilter(a.distance, 180 * a.angle / Math.PI, b, d, f, t, a.blurX, a.blurY, a.strength, a.quality, p, a.knockout); }; a.prototype._updateFilterBounds = function(a) { if (this.type !== u.BitmapFilterType.INNER && (u.BitmapFilter._updateBlurBounds(a, this._blurX, this._blurY, this._quality), 0 !== this._distance)) { var b = this._angle * Math.PI / 180; a.x += Math.floor(Math.cos(b) * this._distance); a.y += Math.floor(Math.sin(b) * this._distance); 0 < a.left && (a.left = 0); 0 < a.top && (a.top = 0); } }; Object.defineProperty(a.prototype, "distance", {get:function() { return this._distance; }, set:function(a) { this._distance = +a; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "angle", {get:function() { return this._angle; }, set:function(a) { this._angle = +a % 360; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "highlightColor", {get:function() { return this._highlightColor; }, set:function(a) { this._highlightColor = a >>> 0 & 16777215; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "highlightAlpha", {get:function() { return this._highlightAlpha; }, set:function(a) { this._highlightAlpha = f.NumberUtilities.clamp(+a, 0, 1); }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "shadowColor", {get:function() { return this._shadowColor; }, set:function(a) { this._shadowColor = a >>> 0 & 16777215; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "shadowAlpha", {get:function() { return this._shadowAlpha; }, set:function(a) { this._shadowAlpha = f.NumberUtilities.clamp(+a, 0, 1); }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "blurX", {get:function() { return this._blurX; }, set:function(a) { this._blurX = f.NumberUtilities.clamp(+a, 0, 255); }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "blurY", {get:function() { return this._blurY; }, set:function(a) { this._blurY = f.NumberUtilities.clamp(+a, 0, 255); }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "knockout", {get:function() { return this._knockout; }, set:function(a) { this._knockout = !!a; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "quality", {get:function() { return this._quality; }, set:function(a) { this._quality = f.NumberUtilities.clamp(a | 0, 0, 15); }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "strength", {get:function() { return this._strength; }, set:function(a) { this._strength = f.NumberUtilities.clamp(+a, 0, 255); }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "type", {get:function() { return this._type; }, set:function(a) { a = k(a); null === a ? this.sec.throwError("TypeError", b.Errors.NullPointerError, "type") : this._type = a === u.BitmapFilterType.INNER || a === u.BitmapFilterType.OUTER ? a : u.BitmapFilterType.FULL; }, enumerable:!0, configurable:!0}); a.prototype.clone = function() { return new this.sec.flash.filters.BevelFilter(this._distance, this._angle, this._highlightColor, this._highlightAlpha, this._shadowColor, this._shadowAlpha, this._blurX, this._blurY, this._strength, this._quality, this._type, this._knockout); }; a.classInitializer = null; a.classSymbols = null; a.instanceSymbols = null; return a; }(g.filters.BitmapFilter); u.BevelFilter = r; })(g.filters || (g.filters = {})); })(g.flash || (g.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(b) { (function(g) { var k = function(b) { function d(a, c, e) { void 0 === a && (a = 4); void 0 === c && (c = 4); void 0 === e && (e = 1); b.call(this); this.blurX = a; this.blurY = c; this.quality = e; } __extends(d, b); d.FromUntyped = function(a) { return new this.sec.flash.filters.BlurFilter(a.blurX, a.blurY, a.quality); }; d.prototype._updateFilterBounds = function(a) { g.BitmapFilter._updateBlurBounds(a, this._blurX, this._blurY, this._quality, !0); }; d.prototype._serialize = function(a) { a.ensureAdditionalCapacity(16); a.writeIntUnsafe(1); a.writeFloatUnsafe(this._blurX); a.writeFloatUnsafe(this._blurY); a.writeIntUnsafe(this._quality); }; Object.defineProperty(d.prototype, "blurX", {get:function() { return this._blurX; }, set:function(a) { this._blurX = f.NumberUtilities.clamp(+a, 0, 255); }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "blurY", {get:function() { return this._blurY; }, set:function(a) { this._blurY = f.NumberUtilities.clamp(+a, 0, 255); }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "quality", {get:function() { return this._quality; }, set:function(a) { this._quality = f.NumberUtilities.clamp(a | 0, 0, 15); }, enumerable:!0, configurable:!0}); d.prototype.clone = function() { return new this.sec.flash.filters.BlurFilter(this._blurX, this._blurY, this._quality); }; d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; return d; }(b.filters.BitmapFilter); g.BlurFilter = k; })(b.filters || (b.filters = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(g) { (function(g) { (function(u) { var k = function(g) { function d(a) { void 0 === a && (a = null); g.call(this); a ? this.matrix = a : this._matrix = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0]; } __extends(d, g); d.FromUntyped = function(a) { var b = Object.create(this.sec.flash.filters.ColorMatrixFilter.axClass.tPrototype); b._matrix = a.matrix; return b; }; d.prototype._serialize = function(a) { var b = this._matrix; a.ensureAdditionalCapacity(4 * (b.length + 1)); a.writeIntUnsafe(6); for (var e = 0;e < b.length;e++) { a.writeFloatUnsafe(b[e]); } }; Object.defineProperty(d.prototype, "matrix", {get:function() { return this.sec.createArrayUnsafe(this._matrix.concat()); }, set:function(a) { f.isNullOrUndefined(a) && this.sec.throwError("TypeError", b.Errors.NullPointerError, "matrix"); var c = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; a = a.value; for (var e = 0, d = Math.min(a.length, 20);e < d;e++) { c[e] = f.toNumber(a[e]); } this._matrix = c; }, enumerable:!0, configurable:!0}); d.prototype.clone = function() { return new this.sec.flash.filters.ColorMatrixFilter(this.matrix); }; d.classInitializer = null; return d; }(g.filters.BitmapFilter); u.ColorMatrixFilter = k; })(g.filters || (g.filters = {})); })(g.flash || (g.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(g) { (function(g) { (function(u) { var k = function(g) { function d(a, b, e, d, f, t, p, h, m) { void 0 === a && (a = 0); void 0 === b && (b = 0); void 0 === e && (e = null); void 0 === d && (d = 1); void 0 === f && (f = 0); void 0 === t && (t = !0); void 0 === p && (p = !0); void 0 === h && (h = 0); void 0 === m && (m = 0); g.call(this); this.matrixX = a; this.matrixY = b; e ? this.matrix = e : this._matrix = this._expandArray([], this._matrixX * this._matrixY); this.divisor = d; this.bias = f; this.preserveAlpha = t; this.clamp = p; this.color = h; this.alpha = m; } __extends(d, g); d.FromUntyped = function(a) { return new this.sec.flash.filters.ConvolutionFilter(a.matrixX, a.matrixY, a.matrix, a.divisor, a.bias, a.preserveAlpha, a.clamp, a.color >>> 8, (a.color & 255) / 255); }; d.prototype._expandArray = function(a, b) { if (a) { for (var e = a.length;e < b;) { a[e++] = 0; } } return a; }; Object.defineProperty(d.prototype, "matrix", {get:function() { return this.sec.createArrayUnsafe(this._matrix.slice(0, this._matrixX * this._matrixY)); }, set:function(a) { f.isNullOrUndefined(a) && this.sec.throwError("TypeError", b.Errors.NullPointerError, "matrix"); a = a.value; for (var c = this._matrixX * this._matrixY, e = Math.min(a.length, c), d = Array(e), g = 0;g < e;g++) { d[g] = f.toNumber(a[g]); } this._expandArray(d, c); this._matrix = d; }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "matrixX", {get:function() { return this._matrixX; }, set:function(a) { a = f.NumberUtilities.clamp(+a, 0, 15) | 0; this._matrixX !== a && (this._matrixX = a, this._expandArray(this._matrix, a * this._matrixY)); }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "matrixY", {get:function() { return this._matrixY; }, set:function(a) { a = f.NumberUtilities.clamp(+a, 0, 15) | 0; this._matrixY !== a && (this._matrixY = a, this._expandArray(this._matrix, a * this._matrixX)); }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "divisor", {get:function() { return this._divisor; }, set:function(a) { this._divisor = +a; }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "bias", {get:function() { return this._bias; }, set:function(a) { this._bias = +a; }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "preserveAlpha", {get:function() { return this._preserveAlpha; }, set:function(a) { this._preserveAlpha = !!a; }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "clamp", {get:function() { return this._clamp; }, set:function(a) { this._clamp = !!a; }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "color", {get:function() { return this._color; }, set:function(a) { this._color = a >>> 0; }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "alpha", {get:function() { return this._alpha; }, set:function(a) { this._alpha = f.NumberUtilities.clamp(+a, 0, 1); }, enumerable:!0, configurable:!0}); d.prototype.clone = function() { return new this.sec.flash.filters.ConvolutionFilter(this._matrixX, this._matrixY, this.matrix, this._divisor, this._bias, this._preserveAlpha, this._clamp, this._color, this._alpha); }; d.classInitializer = null; return d; }(g.filters.BitmapFilter); u.ConvolutionFilter = k; })(g.filters || (g.filters = {})); })(g.flash || (g.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(f) { (function(f) { var k = function(b) { function d() { b.call(this); } __extends(d, b); d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; d.WRAP = "wrap"; d.CLAMP = "clamp"; d.IGNORE = "ignore"; d.COLOR = "color"; return d; }(b.ASObject); f.DisplacementMapFilterMode = k; })(f.filters || (f.filters = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(b) { (function(g) { var k = f.Debug.somewhatImplemented, r = f.AVMX.axCoerceString, d = function(a) { function b(c, d, g, f, p, h, m, v, k) { void 0 === c && (c = null); void 0 === d && (d = null); void 0 === g && (g = 0); void 0 === f && (f = 0); void 0 === p && (p = 0); void 0 === h && (h = 0); void 0 === m && (m = "wrap"); void 0 === v && (v = 0); void 0 === k && (k = 0); a.call(this); this.mapBitmap = c; this.mapPoint = d; this.componentX = g; this.componentY = f; this.scaleX = p; this.scaleY = h; this.mode = m; this.color = v; this.alpha = k; } __extends(b, a); b.FromUntyped = function(a) { return new this.sec.flash.filters.DisplacementMapFilter(a.mapBitmap, a.mapPoint, a.componentX, a.componentY, a.scaleX, a.scaleY, a.mode, a.color, a.alpha); }; Object.defineProperty(b.prototype, "mapBitmap", {get:function() { k("public flash.filters.DisplacementMapFilter::get mapBitmap"); return this._mapBitmap; }, set:function(a) { k("public flash.filters.DisplacementMapFilter::set mapBitmap"); this._mapBitmap = a; }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "mapPoint", {get:function() { k("public flash.filters.DisplacementMapFilter::get mapPoint"); return this._mapPoint; }, set:function(a) { k("public flash.filters.DisplacementMapFilter::set mapPoint"); this._mapPoint = a; }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "componentX", {get:function() { return this._componentX; }, set:function(a) { k("public flash.filters.DisplacementMapFilter::set componentX"); this._componentX = a >>> 0; }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "componentY", {get:function() { return this._componentY; }, set:function(a) { k("public flash.filters.DisplacementMapFilter::set componentY"); this._componentY = a >>> 0; }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "scaleX", {get:function() { return this._scaleX; }, set:function(a) { k("public flash.filters.DisplacementMapFilter::set scaleX"); this._scaleX = +a; }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "scaleY", {get:function() { return this._scaleY; }, set:function(a) { k("public flash.filters.DisplacementMapFilter::set scaleY"); this._scaleY = +a; }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "mode", {get:function() { return this._mode; }, set:function(a) { k("public flash.filters.DisplacementMapFilter::set mode"); this._mode = r(a); }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "color", {get:function() { return this._color; }, set:function(a) { k("public flash.filters.DisplacementMapFilter::set color"); this._color = a >>> 0 & 16777215; }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "alpha", {get:function() { return this._alpha; }, set:function(a) { k("public flash.filters.DisplacementMapFilter::set alpha"); this._alpha = +a; }, enumerable:!0, configurable:!0}); b.prototype.clone = function() { return new this.sec.flash.filters.DisplacementMapFilter(this._mapBitmap, this._mapPoint, this._componentX, this._componentY, this._scaleX, this._scaleY, this._mode, this._color, this._alpha); }; b.classInitializer = null; b.classSymbols = null; b.instanceSymbols = null; return b; }(b.filters.BitmapFilter); g.DisplacementMapFilter = d; })(b.filters || (b.filters = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(b) { (function(g) { var k = function(b) { function d(a, c, e, d, g, f, p, h, m, v, k) { void 0 === a && (a = 4); void 0 === c && (c = 45); void 0 === e && (e = 0); void 0 === d && (d = 1); void 0 === g && (g = 4); void 0 === f && (f = 4); void 0 === p && (p = 1); void 0 === h && (h = 1); void 0 === m && (m = !1); void 0 === v && (v = !1); void 0 === k && (k = !1); b.call(this); this.distance = a; this.angle = c; this.color = e; this.alpha = d; this.blurX = g; this.blurY = f; this.strength = p; this.quality = h; this.inner = m; this.knockout = v; this.hideObject = k; } __extends(d, b); d.FromUntyped = function(a) { return new this.sec.flash.filters.DropShadowFilter(a.distance, 180 * a.angle / Math.PI, a.colors[0] >>> 8, (a.colors[0] & 255) / 255, a.blurX, a.blurY, a.strength, a.quality, a.inner, a.knockout, !a.compositeSource); }; d.prototype._updateFilterBounds = function(a) { if (!this.inner && (g.BitmapFilter._updateBlurBounds(a, this._blurX, this._blurY, this._quality), 0 !== this._distance)) { var b = this._angle * Math.PI / 180; a.x += Math.floor(Math.cos(b) * this._distance); a.y += Math.floor(Math.sin(b) * this._distance); 0 < a.left && (a.left = 0); 0 < a.top && (a.top = 0); } }; Object.defineProperty(d.prototype, "distance", {get:function() { return this._distance; }, set:function(a) { this._distance = +a; }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "angle", {get:function() { return this._angle; }, set:function(a) { this._angle = +a % 360; }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "color", {get:function() { return this._color; }, set:function(a) { this._color = a >>> 0 & 16777215; }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "alpha", {get:function() { return this._alpha; }, set:function(a) { this._alpha = f.NumberUtilities.clamp(+a, 0, 1); }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "blurX", {get:function() { return this._blurX; }, set:function(a) { this._blurX = f.NumberUtilities.clamp(+a, 0, 255); }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "blurY", {get:function() { return this._blurY; }, set:function(a) { this._blurY = f.NumberUtilities.clamp(+a, 0, 255); }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "hideObject", {get:function() { return this._hideObject; }, set:function(a) { this._hideObject = !!a; }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "inner", {get:function() { return this._inner; }, set:function(a) { this._inner = !!a; }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "knockout", {get:function() { return this._knockout; }, set:function(a) { this._knockout = !!a; }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "quality", {get:function() { return this._quality; }, set:function(a) { this._quality = f.NumberUtilities.clamp(a | 0, 0, 15); }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "strength", {get:function() { return this._strength; }, set:function(a) { this._strength = f.NumberUtilities.clamp(+a, 0, 255); }, enumerable:!0, configurable:!0}); d.prototype.clone = function() { return new this.sec.flash.filters.DropShadowFilter(this._distance, this._angle, this._color, this._alpha, this._blurX, this._blurY, this._strength, this._quality, this._inner, this._knockout, this._hideObject); }; d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; return d; }(b.filters.BitmapFilter); g.DropShadowFilter = k; })(b.filters || (b.filters = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(b) { (function(g) { var k = function(b) { function d(a, c, e, d, g, f, p, h) { void 0 === a && (a = 16711680); void 0 === c && (c = 1); void 0 === e && (e = 6); void 0 === d && (d = 6); void 0 === g && (g = 2); void 0 === f && (f = 1); void 0 === p && (p = !1); void 0 === h && (h = !1); b.call(this); this.color = a; this.alpha = c; this.blurX = e; this.blurY = d; this.strength = g; this.quality = f; this.inner = p; this.knockout = h; } __extends(d, b); d.FromUntyped = function(a) { return new this.sec.flash.filters.GlowFilter(a.colors[0] >>> 8, (a.colors[0] & 255) / 255, a.blurX, a.blurY, a.strength, a.quality, a.inner, a.knockout); }; d.prototype._updateFilterBounds = function(a) { g.BitmapFilter._updateBlurBounds(a, this._blurX, this._blurY, this._quality); }; Object.defineProperty(d.prototype, "color", {get:function() { return this._color; }, set:function(a) { this._color = a >>> 0 & 16777215; }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "alpha", {get:function() { return this._alpha; }, set:function(a) { this._alpha = f.NumberUtilities.clamp(+a, 0, 1); }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "blurX", {get:function() { return this._blurX; }, set:function(a) { this._blurX = f.NumberUtilities.clamp(+a, 0, 255); }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "blurY", {get:function() { return this._blurY; }, set:function(a) { this._blurY = f.NumberUtilities.clamp(+a, 0, 255); }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "inner", {get:function() { return this._inner; }, set:function(a) { this._inner = !!a; }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "knockout", {get:function() { return this._knockout; }, set:function(a) { this._knockout = !!a; }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "quality", {get:function() { return this._quality; }, set:function(a) { this._quality = f.NumberUtilities.clamp(a | 0, 0, 15); }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "strength", {get:function() { return this._strength; }, set:function(a) { this._strength = f.NumberUtilities.clamp(+a, 0, 255); }, enumerable:!0, configurable:!0}); d.prototype.clone = function() { return new this.sec.flash.filters.GlowFilter(this._color, this._alpha, this._blurX, this._blurY, this._strength, this._quality, this._inner, this._knockout); }; d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; return d; }(b.filters.BitmapFilter); g.GlowFilter = k; })(b.filters || (b.filters = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(g) { (function(g) { (function(u) { var k = f.AVMX.axCoerceString, r = function(d) { function a(a, b, g, f, t, p, h, m, v, k, r) { void 0 === a && (a = 4); void 0 === b && (b = 45); void 0 === g && (g = null); void 0 === f && (f = null); void 0 === t && (t = null); void 0 === p && (p = 4); void 0 === h && (h = 4); void 0 === m && (m = 1); void 0 === v && (v = 1); void 0 === k && (k = "inner"); void 0 === r && (r = !1); d.call(this); this.distance = a; this.angle = b; u.GradientArrays.sanitize(g ? g.value : null, f ? f.value : null, t ? t.value : null); this._colors = u.GradientArrays.colors; this._alphas = u.GradientArrays.alphas; this._ratios = u.GradientArrays.ratios; this.blurX = p; this.blurY = h; this.strength = m; this.quality = v; this.type = k; this.knockout = r; } __extends(a, d); a.FromUntyped = function(a) { for (var b = [], d = [], f = 0;f < a.colors.length;f++) { var t = a.colors[f]; b.push(t >>> 8); d.push(t & 255) / 255; } f = g.filters.BitmapFilterType.OUTER; a.onTop ? f = g.filters.BitmapFilterType.FULL : a.inner && (f = g.filters.BitmapFilterType.INNER); return new this.sec.flash.filters.GradientBevelFilter(a.distance, 180 * a.angle / Math.PI, this.sec.createArrayUnsafe(b), this.sec.createArrayUnsafe(d), this.sec.createArrayUnsafe(a.ratios), a.blurX, a.blurY, a.strength, a.quality, f, a.knockout); }; a.prototype._updateFilterBounds = function(a) { if (this.type !== u.BitmapFilterType.INNER && (u.BitmapFilter._updateBlurBounds(a, this._blurX, this._blurY, this._quality), 0 !== this._distance)) { var b = this._angle * Math.PI / 180; a.x += Math.floor(Math.cos(b) * this._distance); a.y += Math.floor(Math.sin(b) * this._distance); 0 < a.left && (a.left = 0); 0 < a.top && (a.top = 0); } }; Object.defineProperty(a.prototype, "distance", {get:function() { return this._distance; }, set:function(a) { this._distance = +a; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "angle", {get:function() { return this._angle; }, set:function(a) { this._angle = +a % 360; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "colors", {get:function() { return this.sec.createArrayUnsafe(this._colors.concat()); }, set:function(a) { f.isNullOrUndefined(a) && this.sec.throwError("TypeError", b.Errors.NullPointerError, "colors"); this._colors = u.GradientArrays.sanitizeColors(a.value); a = this._colors.length; this._alphas = u.GradientArrays.sanitizeAlphas(this._alphas, a, a); this._ratios = u.GradientArrays.sanitizeRatios(this._ratios, a, a); }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "alphas", {get:function() { return this.sec.createArrayUnsafe(this._alphas.concat()); }, set:function(a) { f.isNullOrUndefined(a) && this.sec.throwError("TypeError", b.Errors.NullPointerError, "alphas"); u.GradientArrays.sanitize(this._colors, a.value, this._ratios); this._colors = u.GradientArrays.colors; this._alphas = u.GradientArrays.alphas; this._ratios = u.GradientArrays.ratios; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "ratios", {get:function() { return this.sec.createArrayUnsafe(this._ratios.concat()); }, set:function(a) { f.isNullOrUndefined(a) && this.sec.throwError("TypeError", b.Errors.NullPointerError, "ratios"); u.GradientArrays.sanitize(this._colors, this._alphas, a.value); this._colors = u.GradientArrays.colors; this._alphas = u.GradientArrays.alphas; this._ratios = u.GradientArrays.ratios; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "blurX", {get:function() { return this._blurX; }, set:function(a) { this._blurX = f.NumberUtilities.clamp(+a, 0, 255); }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "blurY", {get:function() { return this._blurY; }, set:function(a) { this._blurY = f.NumberUtilities.clamp(+a, 0, 255); }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "knockout", {get:function() { return this._knockout; }, set:function(a) { this._knockout = !!a; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "quality", {get:function() { return this._quality; }, set:function(a) { this._quality = f.NumberUtilities.clamp(a | 0, 0, 15); }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "strength", {get:function() { return this._strength; }, set:function(a) { this._strength = f.NumberUtilities.clamp(+a, 0, 255); }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "type", {get:function() { return this._type; }, set:function(a) { a = k(a); null === a ? this.sec.throwError("TypeError", b.Errors.NullPointerError, "type") : this._type = a === u.BitmapFilterType.INNER || a === u.BitmapFilterType.OUTER ? a : u.BitmapFilterType.FULL; }, enumerable:!0, configurable:!0}); a.prototype.clone = function() { return new this.sec.flash.filters.GradientBevelFilter(this._distance, this._angle, this.colors, this.alphas, this.ratios, this._blurX, this._blurY, this._strength, this._quality, this._type, this._knockout); }; a.classInitializer = null; a.classSymbols = null; a.instanceSymbols = null; return a; }(g.filters.BitmapFilter); u.GradientBevelFilter = r; })(g.filters || (g.filters = {})); })(g.flash || (g.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(g) { (function(g) { (function(u) { var k = f.AVMX.axCoerceString, r = function(d) { function a(a, b, g, f, t, p, h, m, v, k, r) { void 0 === a && (a = 4); void 0 === b && (b = 45); void 0 === g && (g = null); void 0 === f && (f = null); void 0 === t && (t = null); void 0 === p && (p = 4); void 0 === h && (h = 4); void 0 === m && (m = 1); void 0 === v && (v = 1); void 0 === k && (k = "inner"); void 0 === r && (r = !1); d.call(this); this.distance = a; this.angle = b; u.GradientArrays.sanitize(g ? g.value : null, f ? f.value : null, t ? t.value : null); this._colors = u.GradientArrays.colors; this._alphas = u.GradientArrays.alphas; this._ratios = u.GradientArrays.ratios; this.blurX = p; this.blurY = h; this.strength = m; this.quality = v; this.type = k; this.knockout = r; } __extends(a, d); a.FromUntyped = function(a) { for (var b = [], d = [], f = 0;f < a.colors.length;f++) { var t = a.colors[f]; b.push(t >>> 8); d.push(t & 255) / 255; } f = g.filters.BitmapFilterType.OUTER; a.onTop ? f = g.filters.BitmapFilterType.FULL : a.inner && (f = g.filters.BitmapFilterType.INNER); return new this.sec.flash.filters.GradientGlowFilter(a.distance, 180 * a.angle / Math.PI, this.sec.createArrayUnsafe(b), this.sec.createArrayUnsafe(d), this.sec.createArrayUnsafe(a.ratios), a.blurX, a.blurY, a.strength, a.quality, f, a.knockout); }; a.prototype._updateFilterBounds = function(a) { if (this.type !== u.BitmapFilterType.INNER && (u.BitmapFilter._updateBlurBounds(a, this._blurX, this._blurY, this._quality), 0 !== this._distance)) { var b = this._angle * Math.PI / 180; a.x += Math.floor(Math.cos(b) * this._distance); a.y += Math.floor(Math.sin(b) * this._distance); 0 < a.left && (a.left = 0); 0 < a.top && (a.top = 0); } }; Object.defineProperty(a.prototype, "distance", {get:function() { return this._distance; }, set:function(a) { this._distance = +a; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "angle", {get:function() { return this._angle; }, set:function(a) { this._angle = +a % 360; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "colors", {get:function() { return this.sec.createArrayUnsafe(this._colors.concat()); }, set:function(a) { f.isNullOrUndefined(a) && this.sec.throwError("TypeError", b.Errors.NullPointerError, "colors"); this._colors = u.GradientArrays.sanitizeColors(a.value); a = this._colors.length; this._alphas = u.GradientArrays.sanitizeAlphas(this._alphas, a, a); this._ratios = u.GradientArrays.sanitizeRatios(this._ratios, a, a); }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "alphas", {get:function() { return this.sec.createArrayUnsafe(this._alphas.concat()); }, set:function(a) { f.isNullOrUndefined(a) && this.sec.throwError("TypeError", b.Errors.NullPointerError, "alphas"); u.GradientArrays.sanitize(this._colors, a.value, this._ratios); this._colors = u.GradientArrays.colors; this._alphas = u.GradientArrays.alphas; this._ratios = u.GradientArrays.ratios; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "ratios", {get:function() { return this.sec.createArrayUnsafe(this._ratios.concat()); }, set:function(a) { f.isNullOrUndefined(a) && this.sec.throwError("TypeError", b.Errors.NullPointerError, "ratios"); u.GradientArrays.sanitize(this._colors, this._alphas, a.value); this._colors = u.GradientArrays.colors; this._alphas = u.GradientArrays.alphas; this._ratios = u.GradientArrays.ratios; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "blurX", {get:function() { return this._blurX; }, set:function(a) { this._blurX = f.NumberUtilities.clamp(+a, 0, 255); }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "blurY", {get:function() { return this._blurY; }, set:function(a) { this._blurY = f.NumberUtilities.clamp(+a, 0, 255); }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "knockout", {get:function() { return this._knockout; }, set:function(a) { this._knockout = !!a; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "quality", {get:function() { return this._quality; }, set:function(a) { this._quality = f.NumberUtilities.clamp(a | 0, 0, 15); }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "strength", {get:function() { return this._strength; }, set:function(a) { this._strength = f.NumberUtilities.clamp(+a, 0, 255); }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "type", {get:function() { return this._type; }, set:function(a) { a = k(a); null === a ? this.sec.throwError("TypeError", b.Errors.NullPointerError, "type") : this._type = a === u.BitmapFilterType.INNER || a === u.BitmapFilterType.OUTER ? a : u.BitmapFilterType.FULL; }, enumerable:!0, configurable:!0}); a.prototype.clone = function() { return new this.sec.flash.filters.GradientGlowFilter(this._distance, this._angle, this.colors, this.alphas, this.ratios, this._blurX, this._blurY, this._strength, this._quality, this._type, this._knockout); }; a.classInitializer = null; return a; }(g.filters.BitmapFilter); u.GradientGlowFilter = r; })(g.filters || (g.filters = {})); })(g.flash || (g.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(q) { (function(q) { var k = f.IntegerUtilities.toS16, r = f.IntegerUtilities.clampS8U8, d = function(a) { function b(c, d, g, f, p, h, m, v) { void 0 === c && (c = 1); void 0 === d && (d = 1); void 0 === g && (g = 1); void 0 === f && (f = 1); void 0 === p && (p = 0); void 0 === h && (h = 0); void 0 === m && (m = 0); void 0 === v && (v = 0); a.call(this); this.redMultiplier = +c; this.greenMultiplier = +d; this.blueMultiplier = +g; this.alphaMultiplier = +f; this.redOffset = +p; this.greenOffset = +h; this.blueOffset = +m; this.alphaOffset = +v; } __extends(b, a); b.classInitializer = function() { this.FROZEN_IDENTITY_COLOR_TRANSFORM = Object.freeze(this.axConstruct([])); this.TEMP_COLOR_TRANSFORM = this.axConstruct([]); }; Object.defineProperty(b.prototype, "native_redMultiplier", {get:function() { return this.redMultiplier; }, set:function(a) { this.redMultiplier = +a; }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "native_greenMultiplier", {get:function() { return this.greenMultiplier; }, set:function(a) { this.greenMultiplier = +a; }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "native_blueMultiplier", {get:function() { return this.blueMultiplier; }, set:function(a) { this.blueMultiplier = +a; }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "native_alphaMultiplier", {get:function() { return this.alphaMultiplier; }, set:function(a) { this.alphaMultiplier = +a; }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "native_redOffset", {get:function() { return this.redOffset; }, set:function(a) { this.redOffset = +a; }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "native_greenOffset", {get:function() { return this.greenOffset; }, set:function(a) { this.greenOffset = +a; }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "native_blueOffset", {get:function() { return this.blueOffset; }, set:function(a) { this.blueOffset = +a; }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "native_alphaOffset", {get:function() { return this.alphaOffset; }, set:function(a) { this.alphaOffset = +a; }, enumerable:!0, configurable:!0}); b.prototype.ColorTransform = function(a, b, c, d, g, h, f, v) { void 0 === a && (a = 1); void 0 === b && (b = 1); void 0 === c && (c = 1); void 0 === d && (d = 1); void 0 === g && (g = 0); void 0 === h && (h = 0); void 0 === f && (f = 0); void 0 === v && (v = 0); this.redMultiplier = a; this.greenMultiplier = b; this.blueMultiplier = c; this.alphaMultiplier = d; this.redOffset = g; this.greenOffset = h; this.blueOffset = f; this.alphaOffset = v; }; Object.defineProperty(b.prototype, "color", {get:function() { return this.redOffset << 16 | this.greenOffset << 8 | this.blueOffset; }, set:function(a) { this.redOffset = a >> 16 & 255; this.greenOffset = a >> 8 & 255; this.blueOffset = a & 255; this.redMultiplier = this.greenMultiplier = this.blueMultiplier = 1; }, enumerable:!0, configurable:!0}); b.prototype.concat = function(a) { this.redMultiplier *= a.redMultiplier; this.greenMultiplier *= a.greenMultiplier; this.blueMultiplier *= a.blueMultiplier; this.alphaMultiplier *= a.alphaMultiplier; this.redOffset += a.redOffset; this.greenOffset += a.greenOffset; this.blueOffset += a.blueOffset; this.alphaOffset += a.alphaOffset; }; b.prototype.preMultiply = function(a) { this.redOffset += a.redOffset * this.redMultiplier; this.greenOffset += a.greenOffset * this.greenMultiplier; this.blueOffset += a.blueOffset * this.blueMultiplier; this.alphaOffset += a.alphaOffset * this.alphaMultiplier; this.redMultiplier *= a.redMultiplier; this.greenMultiplier *= a.greenMultiplier; this.blueMultiplier *= a.blueMultiplier; this.alphaMultiplier *= a.alphaMultiplier; }; b.prototype.copyFrom = function(a) { this.redMultiplier = a.redMultiplier; this.greenMultiplier = a.greenMultiplier; this.blueMultiplier = a.blueMultiplier; this.alphaMultiplier = a.alphaMultiplier; this.redOffset = a.redOffset; this.greenOffset = a.greenOffset; this.blueOffset = a.blueOffset; this.alphaOffset = a.alphaOffset; }; b.prototype.copyFromUntyped = function(a) { this.redMultiplier = a.redMultiplier / 256; this.greenMultiplier = a.greenMultiplier / 256; this.blueMultiplier = a.blueMultiplier / 256; this.alphaMultiplier = a.alphaMultiplier / 256; this.redOffset = a.redOffset; this.greenOffset = a.greenOffset; this.blueOffset = a.blueOffset; this.alphaOffset = a.alphaOffset; }; b.prototype.setTo = function(a, b, c, d, g, h, f, v) { this.redMultiplier = a; this.greenMultiplier = b; this.blueMultiplier = c; this.alphaMultiplier = d; this.redOffset = g; this.greenOffset = h; this.blueOffset = f; this.alphaOffset = v; }; b.prototype.clone = function() { return new this.sec.flash.geom.ColorTransform(this.redMultiplier, this.greenMultiplier, this.blueMultiplier, this.alphaMultiplier, this.redOffset, this.greenOffset, this.blueOffset, this.alphaOffset); }; b.prototype.convertToFixedPoint = function() { this.redMultiplier = r(this.redMultiplier); this.greenMultiplier = r(this.greenMultiplier); this.blueMultiplier = r(this.blueMultiplier); this.alphaMultiplier = r(this.alphaMultiplier); this.redOffset = k(this.redOffset); this.greenOffset = k(this.greenOffset); this.blueOffset = k(this.blueOffset); this.alphaOffset = k(this.alphaOffset); }; b.prototype.toString = function() { return "(redMultiplier=" + this.redMultiplier + ", greenMultiplier=" + this.greenMultiplier + ", blueMultiplier=" + this.blueMultiplier + ", alphaMultiplier=" + this.alphaMultiplier + ", redOffset=" + this.redOffset + ", greenOffset=" + this.greenOffset + ", blueOffset=" + this.blueOffset + ", alphaOffset=" + this.alphaOffset + ")"; }; b.classSymbols = null; b.instanceSymbols = null; return b; }(b.ASObject); q.ColorTransform = d; })(q.geom || (q.geom = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(b) { (function(g) { var k = f.Debug.somewhatImplemented, r = f.AVMX.axCoerceString, d = function(a) { function b() { a.call(this); } __extends(b, a); Object.defineProperty(b, "names", {get:function() { k("public flash.media.Camera::get names"); return this.sec.createArrayUnsafe([]); }, enumerable:!0, configurable:!0}); Object.defineProperty(b, "isSupported", {get:function() { return !1; }, enumerable:!0, configurable:!0}); b.getCamera = function(a) { void 0 === a && (a = null); r(a); k("public flash.media.Camera::static getCamera"); return null; }; b._scanHardware = function() { k("public flash.media.Camera::static _scanHardware"); }; Object.defineProperty(b.prototype, "activityLevel", {get:function() { k("public flash.media.Camera::get activityLevel"); return 0; }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "bandwidth", {get:function() { k("public flash.media.Camera::get bandwidth"); return 0; }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "currentFPS", {get:function() { k("public flash.media.Camera::get currentFPS"); return 0; }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "fps", {get:function() { k("public flash.media.Camera::get fps"); return 0; }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "height", {get:function() { k("public flash.media.Camera::get height"); return 0; }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "index", {get:function() { k("public flash.media.Camera::get index"); return 0; }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "keyFrameInterval", {get:function() { k("public flash.media.Camera::get keyFrameInterval"); return 1; }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "loopback", {get:function() { k("public flash.media.Camera::get loopback"); return !1; }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "motionLevel", {get:function() { k("public flash.media.Camera::get motionLevel"); return 0; }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "motionTimeout", {get:function() { k("public flash.media.Camera::get motionTimeout"); return 0; }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "muted", {get:function() { k("public flash.media.Camera::get muted"); return !0; }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "name", {get:function() { k("public flash.media.Camera::get name"); return ""; }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "quality", {get:function() { k("public flash.media.Camera::get quality"); return 0; }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "width", {get:function() { k("public flash.media.Camera::get width"); return 0; }, enumerable:!0, configurable:!0}); b.prototype.setCursor = function(a) { k("public flash.media.Camera::setCursor"); }; b.prototype.setKeyFrameInterval = function(a) { k("public flash.media.Camera::setKeyFrameInterval"); }; b.prototype.setLoopback = function(a) { k("public flash.media.Camera::setLoopback"); }; b.prototype.setMode = function(a, b, c, d) { k("public flash.media.Camera::setMode"); }; b.prototype.setMotionLevel = function(a, b) { k("public flash.media.Camera::setMotionLevel"); }; b.prototype.setQuality = function(a, b) { k("public flash.media.Camera::setQuality"); }; b.prototype.drawToBitmapData = function(a) { k("public flash.media.Camera::drawToBitmapData"); }; b.prototype.copyToByteArray = function(a, b) { k("public flash.media.Camera::copyToByteArray"); }; b.prototype.copyToVector = function(a, b) { k("public flash.media.Camera::copyToVector"); }; b.classInitializer = null; return b; }(b.events.EventDispatcher); g.Camera = d; })(b.media || (b.media = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(f) { (function(f) { var k = function(b) { function d() { b.call(this); } __extends(d, b); d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = "songName artist album year comment genre track".split(" "); return d; }(b.ASObject); f.ID3Info = k; })(f.media || (f.media = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(b) { (function(g) { var k = f.Debug.notImplemented, r = f.Debug.somewhatImplemented, d = f.AVMX.axCoerceString, a = function(a) { function b() { a.call(this); } __extends(b, a); Object.defineProperty(b, "names", {get:function() { r("public flash.media.Microphone::get names"); return this.sec.createArrayUnsafe([]); }, enumerable:!0, configurable:!0}); Object.defineProperty(b, "isSupported", {get:function() { r("public flash.media.Microphone::get isSupported"); return !1; }, enumerable:!0, configurable:!0}); b.getMicrophone = function(a) { k("public flash.media.Microphone::static getMicrophone"); }; b.getEnhancedMicrophone = function(a) { k("public flash.media.Microphone::static getEnhancedMicrophone"); }; Object.defineProperty(b.prototype, "rate", {get:function() { k("public flash.media.Microphone::get rate"); }, set:function(a) { k("public flash.media.Microphone::set rate"); }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "codec", {get:function() { k("public flash.media.Microphone::get codec"); }, set:function(a) { d(a); k("public flash.media.Microphone::set codec"); }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "framesPerPacket", {get:function() { k("public flash.media.Microphone::get framesPerPacket"); }, set:function(a) { k("public flash.media.Microphone::set framesPerPacket"); }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "encodeQuality", {get:function() { k("public flash.media.Microphone::get encodeQuality"); }, set:function(a) { k("public flash.media.Microphone::set encodeQuality"); }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "noiseSuppressionLevel", {get:function() { k("public flash.media.Microphone::get noiseSuppressionLevel"); }, set:function(a) { k("public flash.media.Microphone::set noiseSuppressionLevel"); }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "enableVAD", {get:function() { k("public flash.media.Microphone::get enableVAD"); }, set:function(a) { k("public flash.media.Microphone::set enableVAD"); }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "activityLevel", {get:function() { k("public flash.media.Microphone::get activityLevel"); }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "gain", {get:function() { k("public flash.media.Microphone::get gain"); }, set:function(a) { k("public flash.media.Microphone::set gain"); }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "index", {get:function() { k("public flash.media.Microphone::get index"); }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "muted", {get:function() { k("public flash.media.Microphone::get muted"); }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "name", {get:function() { k("public flash.media.Microphone::get name"); }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "silenceLevel", {get:function() { k("public flash.media.Microphone::get silenceLevel"); }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "silenceTimeout", {get:function() { k("public flash.media.Microphone::get silenceTimeout"); }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "useEchoSuppression", {get:function() { k("public flash.media.Microphone::get useEchoSuppression"); }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "soundTransform", {get:function() { k("public flash.media.Microphone::get soundTransform"); }, set:function(a) { k("public flash.media.Microphone::set soundTransform"); }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "enhancedOptions", {get:function() { k("public flash.media.Microphone::get enhancedOptions"); }, set:function(a) { k("public flash.media.Microphone::set enhancedOptions"); }, enumerable:!0, configurable:!0}); b.prototype.setSilenceLevel = function(a, b) { k("public flash.media.Microphone::setSilenceLevel"); }; b.prototype.setUseEchoSuppression = function(a) { k("public flash.media.Microphone::setUseEchoSuppression"); }; b.prototype.setLoopBack = function(a) { k("public flash.media.Microphone::setLoopBack"); }; b.classInitializer = null; return b; }(b.events.EventDispatcher); g.Microphone = a; })(b.media || (b.media = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(q) { (function(u) { function k(a, b) { var c = document.createElement("audio"); c.canPlayType(a.mimeType) ? (c.preload = "metadata", c.src = URL.createObjectURL(new Blob([a.data], {type:a.mimeType})), c.load(), c.addEventListener("loadedmetadata", function() { b({duration:1E3 * this.duration}); })) : b({duration:0}); } var r = f.AVMX.axCoerceString, d = f.Debug.notImplemented, a = f.Debug.somewhatImplemented, c = function() { return function() { }; }(), e = function(e) { function n(a, b) { this._symbol && this.applySymbol(); e.call(this); this._playQueue = []; this._url = null; this._bytesLoaded = this._bytesTotal = this._length = 0; this._id3 = new this.sec.flash.media.ID3Info; this._isBuffering = this._isURLInaccessible = !1; this.load(a, b); } __extends(n, e); n.prototype.applySymbol = function() { this._playQueue = []; this._url = null; this._bytesLoaded = this._bytesTotal = this._length = 0; this._id3 = new this.sec.flash.media.ID3Info; this._isBuffering = this._isURLInaccessible = !1; var a = this._symbol; if (a) { var b = new c; b.sampleRate = a.sampleRate; b.channels = a.channels; b.completed = !0; a.pcm && (b.pcm = a.pcm, b.end = a.pcm.length); a.packaged && (b.data = a.packaged.data.buffer, b.mimeType = a.packaged.mimeType); var d = this; k(b, function(a) { d._length = a.duration; }); this._soundData = b; } }; n.initializeFromPCMData = function(a, b) { var c = new a.flash.media.Sound; c._symbol = b; c.applySymbol(); return c; }; Object.defineProperty(n.prototype, "url", {get:function() { return this._url; }, enumerable:!0, configurable:!0}); Object.defineProperty(n.prototype, "isURLInaccessible", {get:function() { a("public flash.media.Sound::get isURLInaccessible"); return this._isURLInaccessible; }, enumerable:!0, configurable:!0}); Object.defineProperty(n.prototype, "length", {get:function() { return this._length; }, enumerable:!0, configurable:!0}); Object.defineProperty(n.prototype, "isBuffering", {get:function() { a("public flash.media.Sound::get isBuffering"); return this._isBuffering; }, enumerable:!0, configurable:!0}); Object.defineProperty(n.prototype, "bytesLoaded", {get:function() { return this._bytesLoaded; }, enumerable:!0, configurable:!0}); Object.defineProperty(n.prototype, "bytesTotal", {get:function() { return this._bytesTotal; }, enumerable:!0, configurable:!0}); Object.defineProperty(n.prototype, "id3", {get:function() { return this._id3; }, enumerable:!0, configurable:!0}); n.prototype.loadCompressedDataFromByteArray = function(a, b) { d("public flash.media.Sound::loadCompressedDataFromByteArray"); }; n.prototype.loadPCMFromByteArray = function(a, b, c, e, g) { void 0 === c && (c = "float"); r(c); d("public flash.media.Sound::loadPCMFromByteArray"); }; n.prototype.play = function(a, c, d) { void 0 === a && (a = 0); void 0 === c && (c = 0); void 0 === d && (d = null); a = +a; c |= 0; var e = new this.sec.flash.media.SoundChannel; e._sound = this; e._soundTransform = f.isNullOrUndefined(d) ? new this.sec.flash.media.SoundTransform : d; this._playQueue.push({channel:e, startTime:a}); if (b.disableAudioOption.value) { return e; } this._soundData && (b.webAudioOption.value || b.webAudioMP3Option.value ? this._soundData.pcm ? e._playSoundDataViaChannel(this._soundData, a, c) : "audio/mpeg" === this._soundData.mimeType && b.webAudioMP3Option.value ? f.SWF.MP3DecoderSession.processAll(new Uint8Array(this._soundData.data)).then(function(b) { this._soundData.pcm = b.data; this._soundData.end = b.data.length; e._playSoundDataViaChannel(this._soundData, a, c); }.bind(this), function(a) { f.Debug.warning("Unable to decode MP3 data: " + a); }) : f.Debug.warning("Unable to decode packaged sound data of type: " + this._soundData.mimeType) : e._playSoundDataViaAudio(this._soundData, a, c)); return e; }; n.prototype.close = function() { a("public flash.media.Sound::close"); }; n.prototype.extract = function(a, b, c) { d("public flash.media.Sound::extract"); }; n.prototype.load = function(a, d) { if (a) { var e = this, f = this._stream = new this.sec.flash.net.URLStream, l = new this.sec.flash.utils.ByteArray, n = 0, r = b.webAudioOption.value, q = null, u = new c; u.completed = !1; f.addEventListener("progress", function(a) { e._bytesLoaded = a.axGetPublicProperty("bytesLoaded"); e._bytesTotal = a.axGetPublicProperty("bytesTotal"); r && !q && (q = decodeMP3(u, function(a, b) { 0 === e._length && (e._soundData = u, e._playQueue.forEach(function(a) { a.channel._playSoundDataViaChannel(u, a.startTime); })); e._length = b ? 1E3 * a : 1E3 * Math.max(a, q.estimateDuration(e._bytesTotal)); })); var b = f.bytesAvailable; f.readBytes(l, n, b); q && q.pushData(new Uint8Array(l._buffer, n, b)); n += b; e.dispatchEvent(a); }); f.addEventListener("complete", function(a) { e.dispatchEvent(a); u.data = l._buffer; u.mimeType = "audio/mpeg"; u.completed = !0; r || (e._soundData = u, k(u, function(a) { e._length = a.duration; }), e._playQueue.forEach(function(a) { a.channel._playSoundDataViaAudio(u, a.startTime); })); q && q.close(); }); f.load(a); } }; n.classInitializer = null; n.classSymbols = null; n.instanceSymbols = null; return n; }(q.events.EventDispatcher); u.Sound = e; e = function(a) { function b(c, d) { a.call(this, c, d.flash.media.Sound.axClass); } __extends(b, a); b.FromData = function(a, c) { var d = new b(a, c.sec); d.channels = a.channels; d.sampleRate = a.sampleRate; d.pcm = a.pcm; d.packaged = a.packaged; return d; }; return b; }(f.Timeline.Symbol); u.SoundSymbol = e; })(q.media || (q.media = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(b) { (function(g) { var k = f.Debug.somewhatImplemented, r = f.Debug.error, d = function() { function a(b, c) { this._sourceRate = b; this._targetRate = c; this._tail = []; this._sourceOffset = 0; } a.prototype.getData = function(a, b) { for (var c = this._sourceRate / this._targetRate, d = this._sourceOffset, e = Math.ceil((b - 1) * c + d) + 1, g = [], f = 0;f < a.length;f++) { g.push(new Float32Array(e)); } this.ondatarequested({data:g, count:e}); for (f = 0;f < a.length;f++) { for (var k = a[f], r = g[f], q = 0;q < b;q++) { var u = q * c + d, A = u | 0, B = Math.ceil(u) | 0, x = 0 > A ? this._tail[f] : r[A]; A === B ? k[q] = x : (u -= A, k[q] = x * (1 - u) + r[B] * u); } this._tail[f] = r[e - 1]; } this._sourceOffset = (b - 1) * c + d - (e - 1); }; return a; }(), a = function() { function a(b, c) { var g = a._cachedContext; g || (g = new AudioContext, a._cachedContext = g); this._context = g; this._contextSampleRate = g.sampleRate || 44100; this._channels = c; this._sampleRate = b; this._contextSampleRate !== b && (this._resampler = new d(b, this._contextSampleRate), this._resampler.ondatarequested = function(a) { this.requestData(a.data, a.count); }.bind(this)); } a.prototype.setVolume = function(a) { }; a.prototype.start = function() { var a = this._context.createScriptProcessor(2048, 0, this._channels), b = this; a.onaudioprocess = function(a) { for (var c = [], d = 0;d < b._channels;d++) { c.push(a.outputBuffer.getChannelData(d)); } a = c[0].length; b._resampler ? b._resampler.getData(c, a) : b.requestData(c, a); }; a.connect(this._context.destination); this._source = a; }; a.prototype.stop = function() { this._source.disconnect(this._context.destination); }; a.prototype.requestData = function(a, b) { var c = this._channels, d = new Float32Array(b * c); this.ondatarequested({data:d, count:d.length}); for (var e = 0, g = 0;e < b;e++) { for (var f = 0;f < c;f++) { a[f][e] = d[g++]; } } }; a.isSupported = function() { return "undefined" !== typeof AudioContext; }; return a; }(), c = function(b) { function c() { b.call(this); this._element = null; this._rightPeak = this._leftPeak = this._position = 0; this._pcmData = null; this._soundTransform = new this.sec.flash.media.SoundTransform; this._playing = !1; this._element = null; } __extends(c, b); c.initializeFromAudioElement = function(a, b) { var c = new a.flash.media.SoundChannel; c._element = b; g.SoundMixer._registerSoundSource(c); return c; }; Object.defineProperty(c.prototype, "position", {get:function() { return this._position; }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "soundTransform", {get:function() { return this._soundTransform; }, set:function(a) { k("public flash.media.SoundChannel::set soundTransform"); this._soundTransform = f.isNullOrUndefined(a) ? new this.sec.flash.media.SoundTransform : a; g.SoundMixer._updateSoundSource(this); }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "leftPeak", {get:function() { return this._leftPeak; }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "rightPeak", {get:function() { return this._rightPeak; }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "playing", {get:function() { return this._playing; }, enumerable:!0, configurable:!0}); c.prototype.stop = function() { this._element && (g.SoundMixer._unregisterSoundSource(this), this._element.loop = !1, this._element.pause(), this._element.removeAttribute("src"), this._playing = !1); this._audioChannel && (g.SoundMixer._unregisterSoundSource(this), this._audioChannel.stop(), this._playing = !1); }; c.prototype._playSoundDataViaAudio = function(a, b, c) { if (a.mimeType) { g.SoundMixer._registerSoundSource(this); this._position = b; var d = this, e = 0, f = document.createElement("audio"); f.canPlayType(a.mimeType) ? (f.preload = "metadata", f.loop = 0 < c, f.src = URL.createObjectURL(new Blob([a.data], {type:a.mimeType})), f.addEventListener("loadeddata", function() { f.currentTime = b / 1E3; f.play(); }), f.addEventListener("timeupdate", function() { var a = f.currentTime; c && e > a && (--c, c || (f.loop = !1), a < b / 1E3 && (f.currentTime = b / 1E3)); d._position = 1E3 * (e = a); }), f.addEventListener("ended", function() { g.SoundMixer._unregisterSoundSource(d); d._element = null; d._playing = !1; d.dispatchEvent(new d.sec.flash.events.Event("soundComplete", !1, !1)); }), this._element = f, this._playing = !0, g.SoundMixer._updateSoundSource(this)) : console.error('ERROR: "' + a.mimeType + '" type playback is not supported by the browser'); } }; c.prototype._playSoundDataViaChannel = function(b, c, d) { g.SoundMixer._registerSoundSource(this); var e = this, f = Math.round(c / 1E3 * b.sampleRate) * b.channels, l = f; this._position = c; a.isSupported ? c = new a(b.sampleRate, b.channels) : (r("PCM data playback is not supported by the browser"), c = void 0); this._audioChannel = c; this._audioChannel.ondatarequested = function(a) { var c = b.end; if (l >= c && b.completed) { g.SoundMixer._unregisterSoundSource(this), e._audioChannel.stop(), e._playing = !1, e.dispatchEvent(new e.sec.flash.events.Event("soundComplete", !1, !1)); } else { var t = a.count; a = a.data; var k = b.pcm; do { for (var r = Math.min(c - l, t), q = 0;q < r;q++) { a[q] = k[l++]; } t -= r; if (l >= c) { if (!d) { break; } d--; l = f; } } while (0 < t); e._position = l / b.sampleRate / b.channels * 1E3; } }; this._audioChannel.start(); this._playing = !0; g.SoundMixer._updateSoundSource(this); }; c.prototype.stopSound = function() { this.stop(); }; c.prototype.updateSoundLevels = function(a) { this._element && (this._element.volume = 0 >= a ? 0 : 1 <= a ? 1 : a); this._audioChannel && this._audioChannel.setVolume(a); }; c.classInitializer = null; return c; }(b.events.EventDispatcher); g.SoundChannel = c; })(b.media || (b.media = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(f) { (function(f) { var k = function(b) { function d(a, c) { void 0 === a && (a = 1E3); void 0 === c && (c = !1); b.call(this); this.bufferTime = +a; this.checkPolicyFile = !!c; } __extends(d, b); d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; return d; }(b.ASObject); f.SoundLoaderContext = k; })(f.media || (f.media = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(q) { (function(q) { var k = f.Debug.notImplemented, r = f.AVMX.axCoerceString, d = f.Debug.somewhatImplemented, a = function(a) { function b() { a.call(this); } __extends(b, a); Object.defineProperty(b, "bufferTime", {get:function() { k("public flash.media.SoundMixer::get bufferTime"); return b._bufferTime; }, set:function(a) { d("public flash.media.SoundMixer::set bufferTime"); b._bufferTime = a | 0; }, enumerable:!0, configurable:!0}); Object.defineProperty(b, "soundTransform", {get:function() { d("public flash.media.SoundMixer::get soundTransform"); return f.isNullOrUndefined(b._soundTransform) ? new this.sec.flash.media.SoundTransform : new this.sec.flash.media.SoundTransform(b._soundTransform.volume, b._soundTransform.pan); }, set:function(a) { d("public flash.media.SoundMixer::set soundTransform"); b._soundTransform = f.isNullOrUndefined(a) ? new this.sec.flash.media.SoundTransform : a; b._updateAllSoundSources(); }, enumerable:!0, configurable:!0}); Object.defineProperty(b, "audioPlaybackMode", {get:function() { k("public flash.media.SoundMixer::get audioPlaybackMode"); }, set:function(a) { r(a); k("public flash.media.SoundMixer::set audioPlaybackMode"); }, enumerable:!0, configurable:!0}); Object.defineProperty(b, "useSpeakerphoneForVoice", {get:function() { k("public flash.media.SoundMixer::get useSpeakerphoneForVoice"); }, set:function(a) { k("public flash.media.SoundMixer::set useSpeakerphoneForVoice"); }, enumerable:!0, configurable:!0}); b.stopAll = function() { b._registeredSoundSources.forEach(function(a) { a.stopSound(); }); b._registeredSoundSources = []; }; b.computeSpectrum = function(a, b, c) { d("public flash.media.SoundMixer::static computeSpectrum"); b = new Float32Array(1024); for (c = 0;1024 > c;c++) { b[c] = Math.random(); } a.writeRawBytes(b); a.position = 0; }; b.areSoundsInaccessible = function() { k("public flash.media.SoundMixer::static areSoundsInaccessible"); }; b._getMasterVolume = function() { return b._masterVolume; }; b._setMasterVolume = function(a) { b._masterVolume = +a; b._updateAllSoundSources(); }; b._registerSoundSource = function(a) { b._registeredSoundSources.push(a); }; b._unregisterSoundSource = function(a) { a = b._registeredSoundSources.indexOf(a); 0 <= a && b._registeredSoundSources.splice(a, 1); }; b._updateSoundSource = function(a) { var c = a.soundTransform.volume; b._soundTransform && (c *= b._soundTransform.volume); c *= b._getMasterVolume(); a.updateSoundLevels(c); }; b._updateAllSoundSources = function() { b._registeredSoundSources.forEach(b._updateSoundSource); }; b.classInitializer = null; b.classSymbols = null; b.instanceSymbols = null; b._masterVolume = 1; b._registeredSoundSources = []; b._bufferTime = 0; return b; }(b.ASObject); q.SoundMixer = a; })(q.media || (q.media = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(q) { (function(q) { var k = f.Debug.somewhatImplemented, r = function(b) { function a(a, e) { void 0 === a && (a = 1); void 0 === e && (e = 0); b.call(this); this.volume = +a; this.pan = +e; } __extends(a, b); Object.defineProperty(a.prototype, "volume", {get:function() { return this._volume; }, set:function(a) { this._volume = +a; this._updateTransform(); }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "leftToLeft", {get:function() { return this._leftToLeft; }, set:function(a) { this._leftToLeft = +a; this._updateTransform(); }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "leftToRight", {get:function() { return this._leftToRight; }, set:function(a) { this._leftToRight = +a; this._updateTransform(); }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "rightToRight", {get:function() { return this._rightToRight; }, set:function(a) { this._rightToRight = +a; this._updateTransform(); }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "rightToLeft", {get:function() { return this._rightToLeft; }, set:function(a) { this._rightToLeft = +a; this._updateTransform(); }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "pan", {get:function() { return 0 === this._leftToRight && 0 === this._rightToLeft ? 1 - this._leftToLeft * this._leftToLeft : 0; }, set:function(a) { this.leftToLeft = Math.sqrt(1 - a); this.leftToRight = 0; this.rightToRight = Math.sqrt(1 + a); this.rightToLeft = 0; }, enumerable:!0, configurable:!0}); a.prototype._updateTransform = function() { k("public flash.media.SoundTransform::_updateTransform"); }; a.classInitializer = null; a.classSymbols = null; a.instanceSymbols = null; return a; }(b.ASObject); q.SoundTransform = r; })(q.media || (q.media = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(b) { (function(g) { var k = f.Debug.notImplemented, r = function(b) { function a() { b.call(this); } __extends(a, b); Object.defineProperty(a.prototype, "viewPort", {get:function() { k("public flash.media.StageVideo::get viewPort"); }, set:function(a) { k("public flash.media.StageVideo::set viewPort"); }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "pan", {get:function() { k("public flash.media.StageVideo::get pan"); }, set:function(a) { k("public flash.media.StageVideo::set pan"); }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "zoom", {get:function() { k("public flash.media.StageVideo::get zoom"); }, set:function(a) { k("public flash.media.StageVideo::set zoom"); }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "depth", {get:function() { k("public flash.media.StageVideo::get depth"); }, set:function(a) { k("public flash.media.StageVideo::set depth"); }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "videoWidth", {get:function() { k("public flash.media.StageVideo::get videoWidth"); }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "videoHeight", {get:function() { k("public flash.media.StageVideo::get videoHeight"); }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "colorSpaces", {get:function() { k("public flash.media.StageVideo::get colorSpaces"); }, enumerable:!0, configurable:!0}); a.prototype.attachNetStream = function(a) { k("public flash.media.StageVideo::attachNetStream"); }; a.prototype.attachCamera = function(a) { k("public flash.media.StageVideo::attachCamera"); }; a.classInitializer = null; a.classSymbols = null; a.instanceSymbols = null; return a; }(b.events.EventDispatcher); g.StageVideo = r; })(b.media || (b.media = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(f) { (function(f) { var k = function(b) { function d() { b.call(this); } __extends(d, b); d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; d.AVAILABLE = "available"; d.UNAVAILABLE = "unavailable"; return d; }(b.ASObject); f.StageVideoAvailability = k; })(f.media || (f.media = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(b) { (function(g) { var k = f.Debug.notImplemented, r = f.Debug.somewhatImplemented, d = function(a) { function b(c, d) { void 0 === c && (c = 320); void 0 === d && (d = 240); a.call(this); c = c | 0 || 320; d = d | 0 || 240; this._setFillAndLineBoundsFromWidthAndHeight(20 * c, 20 * d); } __extends(b, a); Object.defineProperty(b.prototype, "deblocking", {get:function() { return this._deblocking; }, set:function(a) { this._deblocking = a | 0; }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "smoothing", {get:function() { return this._smoothing; }, set:function(a) { this._smoothing = !!a; }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "videoWidth", {get:function() { return this._videoWidth; }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "videoHeight", {get:function() { return this._videoHeight; }, enumerable:!0, configurable:!0}); b.prototype._containsPointDirectly = function(a, b, c, d) { return !0; }; b.prototype.clear = function() { r("public flash.media.Video::clear"); }; b.prototype.attachNetStream = function(a) { if (this._netStream !== a) { this._netStream && (this._netStream._videoReferrer = null); if (this._netStream = a) { a._videoReferrer = this; } this._setDirtyFlags(33554432); } }; b.prototype.attachCamera = function(a) { k("public flash.media.Video::attachCamera"); }; b.classInitializer = null; b.classSymbols = null; b.instanceSymbols = null; return b; }(b.display.DisplayObject); g.Video = d; })(b.media || (b.media = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(f) { (function(f) { var k = function(b) { function d() { b.call(this); } __extends(d, b); d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; return d; }(b.ASObject); f.VideoStreamSettings = k; })(f.media || (f.media = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(q) { (function(q) { var k = f.AVMX.axCoerceString, r = function(b) { function a(a, e, g) { b.call(this); } __extends(a, b); Object.defineProperty(a.prototype, "description", {get:function() { return this._description; }, set:function(a) { this._description = k(a); }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "extension", {get:function() { return this._extension; }, set:function(a) { this._extension = k(a); }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "macType", {get:function() { return this._macType; }, set:function(a) { this._macType = k(a); }, enumerable:!0, configurable:!0}); a.classInitializer = null; a.classSymbols = null; a.instanceSymbols = null; return a; }(b.ASObject); q.FileFilter = r; })(q.net || (q.net = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(b) { (function(g) { var k = f.Debug.notImplemented, r = f.AVMX.axCoerceString, d = function(a) { function b() { a.call(this); } __extends(b, a); Object.defineProperty(b.prototype, "creationDate", {get:function() { k("public flash.net.FileReference::get creationDate"); }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "creator", {get:function() { k("public flash.net.FileReference::get creator"); }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "modificationDate", {get:function() { k("public flash.net.FileReference::get modificationDate"); }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "name", {get:function() { k("public flash.net.FileReference::get name"); }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "size", {get:function() { k("public flash.net.FileReference::get size"); }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "type", {get:function() { k("public flash.net.FileReference::get type"); }, enumerable:!0, configurable:!0}); b.prototype.cancel = function() { k("public flash.net.FileReference::cancel"); }; b.prototype.download = function(a, b) { void 0 === b && (b = null); r(b); k("public flash.net.FileReference::download"); }; b.prototype.upload = function(a, b, c) { void 0 === b && (b = "Filedata"); r(b); k("public flash.net.FileReference::upload"); }; Object.defineProperty(b.prototype, "data", {get:function() { k("public flash.net.FileReference::get data"); }, enumerable:!0, configurable:!0}); b.prototype.browse = function(a) { k("public flash.net.FileReference::browse"); }; b.classInitializer = null; return b; }(b.events.EventDispatcher); g.FileReference = d; })(b.net || (b.net = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(b) { (function(g) { var k = f.Debug.notImplemented, r = function(b) { function a() { b.call(this); } __extends(a, b); Object.defineProperty(a.prototype, "fileList", {get:function() { k("public flash.net.FileReferenceList::get fileList"); }, enumerable:!0, configurable:!0}); a.prototype.browse = function(a) { k("public flash.net.FileReferenceList::browse"); }; a.classInitializer = null; return a; }(b.events.EventDispatcher); g.FileReferenceList = r; })(b.net || (b.net = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(b) { (function(g) { var k = f.Debug.notImplemented, r = f.AVMX.axCoerceString, d = f.Debug.somewhatImplemented, a = f.FileLoadingService, c = function(b) { function c() { b.call(this); } __extends(c, b); c.prototype.close = function() { k("public flash.net.LocalConnection::close"); }; c.prototype.connect = function(a) { r(a); k("public flash.net.LocalConnection::connect"); }; Object.defineProperty(c.prototype, "domain", {get:function() { d("public flash.net.LocalConnection::get domain"); var b = a.instance.resolveUrl("/"); return (b = /:\/\/(.+?)[:?#\/]/.exec(b)) && b[1]; }, enumerable:!0, configurable:!0}); c.prototype.send = function(a, b) { r(a); r(b); k("public flash.net.LocalConnection::send"); }; Object.defineProperty(c.prototype, "client", {get:function() { k("public flash.net.LocalConnection::get client"); }, set:function(a) { k("public flash.net.LocalConnection::set client"); }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "isPerUser", {get:function() { k("public flash.net.LocalConnection::get isPerUser"); }, set:function(a) { k("public flash.net.LocalConnection::set isPerUser"); }, enumerable:!0, configurable:!0}); c.prototype.allowDomain = function() { k("public flash.net.LocalConnection::allowDomain"); }; c.prototype.allowInsecureDomain = function() { k("public flash.net.LocalConnection::allowInsecureDomain"); }; c.classInitializer = null; c.classSymbols = null; c.instanceSymbols = null; return c; }(b.events.EventDispatcher); g.LocalConnection = c; })(b.net || (b.net = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(g) { (function(g) { (function(u) { var k = f.Debug.notImplemented, r = f.Debug.somewhatImplemented, d = function(a) { function c() { a.call(this); this._uri = null; this._connected = !1; this._client = null; this._proxyType = "none"; this._objectEncoding = c.defaultObjectEncoding; this._usingTLS = !1; this._protocol = null; } __extends(c, a); c.prototype.close = function() { this.invoke(1); }; c.prototype.addHeader = function(a, c, d) { void 0 === c && (c = !1); void 0 === d && (d = null); this._invoke(3, [b.axCoerceString(a), !!c, d]); }; c.prototype.call = function(a, c) { arguments[0] = b.axCoerceString(a); this._invoke(2, arguments); }; Object.defineProperty(c, "defaultObjectEncoding", {get:function() { return c._defaultObjectEncoding; }, set:function(a) { c._defaultObjectEncoding = a >>> 0; }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "connected", {get:function() { return this._connected; }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "uri", {get:function() { return this._uri; }, enumerable:!0, configurable:!0}); c.prototype.connect = function(a) { a = b.axCoerceString(a); r("public flash.net.NetConnection::connect"); this._uri = a; var c = this.sec.flash.events.NetStatusEvent; if (a) { var d = RtmpJs.parseConnectionString(a); !d || !d.host || "rtmp" !== d.protocol && "rtmpt" !== d.protocol && "rtmps" !== d.protocol ? this.dispatchEvent(new c(g.events.NetStatusEvent.NET_STATUS, !1, !1, this.sec.createObjectFromJS({level:"status", code:"NetConnection.Connect.Failed"}))) : (c = this.sec.player, a = this.sec.createObjectFromJS({app:d.app, flashver:g.system.Capabilities.version, swfUrl:c.swfUrl, tcUrl:a, fpad:!1, audioCodecs:4095, videoCodecs:255, videoFunction:1, pageUrl:c.pageUrl || c.swfUrl, objectEncoding:0}), this._protocol = d.protocol, this._usingTLS = c = "rtmps" === d.protocol || "rtmpt" === d.protocol && (443 === d.port || 8443 === d.port), this._rtmpConnection = d = "rtmp" === d.protocol || "rtmps" === d.protocol ? new RtmpJs.Browser.RtmpTransport({host:d.host, port:d.port || 1935, ssl:c}) : new RtmpJs.Browser.RtmptTransport({host:d.host, port:d.port || 80, ssl:c}), this._rtmpCreateStreamCallbacks = [null, null], d.onresponse = function(a) { }, d.onevent = function(a) { }, d.onconnected = function(a) { this._connected = !0; this.dispatchEvent(new this.sec.flash.events.NetStatusEvent(g.events.NetStatusEvent.NET_STATUS, !1, !1, this.sec.createObjectFromJS({level:"status", code:"NetConnection.Connect.Success"}))); }.bind(this), d.onstreamcreated = function(a) { console.log("#streamcreated: " + a.streamId); var b = this._rtmpCreateStreamCallbacks[a.transactionId]; delete this._rtmpCreateStreamCallbacks[a.transactionId]; b(a.stream, a.streamId); }.bind(this), d.connect(a)); } else { this._connected = !0, this.dispatchEvent(new c(g.events.NetStatusEvent.NET_STATUS, !1, !1, this.sec.createObjectFromJS({level:"status", code:"NetConnection.Connect.Success"}))); } }; c.prototype._createRtmpStream = function(a) { var b = this._rtmpCreateStreamCallbacks.length; this._rtmpCreateStreamCallbacks[b] = a; this._rtmpConnection.createStream(b); }; Object.defineProperty(c.prototype, "client", {get:function() { return this._client; }, set:function(a) { this._client = a; }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "objectEncoding", {get:function() { return this._objectEncoding; }, set:function(a) { a >>>= 0; r("public flash.net.NetConnection::set objectEncoding"); this._objectEncoding = a; }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "proxyType", {get:function() { return this._proxyType; }, set:function(a) { a = b.axCoerceString(a); r("public flash.net.NetConnection::set proxyType"); this._proxyType = a; }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "connectedProxyType", {get:function() { k("public flash.net.NetConnection::get connectedProxyType"); }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "usingTLS", {get:function() { return this._usingTLS; }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "protocol", {get:function() { return this._protocol; }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "maxPeerConnections", {get:function() { k("public flash.net.NetConnection::get maxPeerConnections"); }, set:function(a) { k("public flash.net.NetConnection::set maxPeerConnections"); }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "nearID", {get:function() { k("public flash.net.NetConnection::get nearID"); }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "farID", {get:function() { k("public flash.net.NetConnection::get farID"); }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "nearNonce", {get:function() { k("public flash.net.NetConnection::get nearNonce"); }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "farNonce", {get:function() { k("public flash.net.NetConnection::get farNonce"); }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "unconnectedPeerStreams", {get:function() { k("public flash.net.NetConnection::get unconnectedPeerStreams"); }, enumerable:!0, configurable:!0}); c.prototype.invoke = function(a) { return this._invoke(a >>> 0, Array.prototype.slice.call(arguments, 1)); }; c.prototype._invoke = function(a, b) { var c = !1; switch(a) { case 1: ; case 2: c = !0; } (c ? r : k)("private flash.net.NetConnection::_invoke (" + a + ")"); }; c.classInitializer = null; c._defaultObjectEncoding = 3; return c; }(g.events.EventDispatcher); u.NetConnection = d; })(g.net || (g.net = {})); })(g.flash || (g.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(g) { (function(q) { (function(u) { function k(a) { var b = "video/mp4"; a && (b += ';codecs="' + a.join(",") + '"'); return b; } var r = f.Debug.notImplemented, d = f.AVMX.axCoerceString, a = f.Debug.somewhatImplemented, c = f.AVMX.AS.flash.events, e = f.FileLoadingService, l = function(b) { function e(a, c) { void 0 === c && (c = "connectToFMS"); b.call(this); this._connection = a; this._peerID = d(c); this._id = q.display.DisplayObject.getNextSyncID(); this._isDirty = !0; this._soundTransform = new this.sec.flash.media.SoundTransform; this._contentTypeHint = null; this._checkPolicyFile = !0; this._videoStream = new t(this); this._videoStream._onEnsurePlay = function() { this._notifyVideoControl(9, null); }.bind(this); this._metaData = this._resourceName = null; } __extends(e, b); e.prototype.dispose = function() { r("public flash.net.NetStream::dispose"); }; e.prototype._getVideoStreamURL = function() { return this._videoStream.url; }; e.prototype.play = function(a) { q.media.SoundMixer._registerSoundSource(this); a = d(a); this.sec.player.registerEventListener(this._id, this.processVideoEvent.bind(this)); this._connection && this._connection.uri ? this._videoStream.playInConnection(this._connection, a) : null === a ? this._videoStream.openInDataGenerationMode() : this._videoStream.play(a, this.checkPolicyFile); this._notifyVideoControl(1, {url:this._videoStream.url}); }; e.prototype.play2 = function(a) { r("public flash.net.NetStream::play2"); }; Object.defineProperty(e.prototype, "info", {get:function() { a("public flash.net.NetStream::get info"); var b = Math.ceil(this._invoke(304, null)); return new this.sec.flash.net.NetStreamInfo(232, 233 * (1 + b), 232, 32, 32 * (1 + b), 200, 200 * (1 + b), 1, 1 * (1 + b), 233 * b, 0, 32, 200, 1, 1, 1, 1, 0, 0, 0, this._metaData, null, this._connection.uri, this._resourceName, !1); }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "multicastInfo", {get:function() { r("public flash.net.NetStream::get multicastInfo"); }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "soundTransform", {get:function() { return this._soundTransform; }, set:function(a) { this._soundTransform = a; q.media.SoundMixer._updateSoundSource(this); }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "checkPolicyFile", {get:function() { return this._checkPolicyFile; }, set:function(a) { this._checkPolicyFile = !!a; }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "client", {get:function() { return this._client; }, set:function(b) { a("public flash.net.NetStream::set client"); this._client = b; }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "objectEncoding", {get:function() { r("public flash.net.NetStream::get objectEncoding"); }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "multicastPushNeighborLimit", {get:function() { r("public flash.net.NetStream::get multicastPushNeighborLimit"); }, set:function(a) { r("public flash.net.NetStream::set multicastPushNeighborLimit"); }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "multicastWindowDuration", {get:function() { r("public flash.net.NetStream::get multicastWindowDuration"); }, set:function(a) { r("public flash.net.NetStream::set multicastWindowDuration"); }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "multicastRelayMarginDuration", {get:function() { r("public flash.net.NetStream::get multicastRelayMarginDuration"); }, set:function(a) { r("public flash.net.NetStream::set multicastRelayMarginDuration"); }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "multicastAvailabilityUpdatePeriod", {get:function() { r("public flash.net.NetStream::get multicastAvailabilityUpdatePeriod"); }, set:function(a) { r("public flash.net.NetStream::set multicastAvailabilityUpdatePeriod"); }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "multicastFetchPeriod", {get:function() { r("public flash.net.NetStream::get multicastFetchPeriod"); }, set:function(a) { r("public flash.net.NetStream::set multicastFetchPeriod"); }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "multicastAvailabilitySendToAll", {get:function() { r("public flash.net.NetStream::get multicastAvailabilitySendToAll"); }, set:function(a) { r("public flash.net.NetStream::set multicastAvailabilitySendToAll"); }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "farID", {get:function() { r("public flash.net.NetStream::get farID"); }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "nearNonce", {get:function() { r("public flash.net.NetStream::get nearNonce"); }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "farNonce", {get:function() { r("public flash.net.NetStream::get farNonce"); }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "peerStreams", {get:function() { r("public flash.net.NetStream::get peerStreams"); }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "audioReliable", {get:function() { r("public flash.net.NetStream::get audioReliable"); }, set:function(a) { r("public flash.net.NetStream::set audioReliable"); }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "videoReliable", {get:function() { r("public flash.net.NetStream::get videoReliable"); }, set:function(a) { r("public flash.net.NetStream::set videoReliable"); }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "dataReliable", {get:function() { r("public flash.net.NetStream::get dataReliable"); }, set:function(a) { r("public flash.net.NetStream::set dataReliable"); }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "audioSampleAccess", {get:function() { r("public flash.net.NetStream::get audioSampleAccess"); }, set:function(a) { r("public flash.net.NetStream::set audioSampleAccess"); }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "videoSampleAccess", {get:function() { r("public flash.net.NetStream::get videoSampleAccess"); }, set:function(a) { r("public flash.net.NetStream::set videoSampleAccess"); }, enumerable:!0, configurable:!0}); e.prototype.appendBytes = function(a) { a = new Uint8Array(a._buffer, 0, a.length); this._videoStream.appendBytes(a); }; e.prototype.appendBytesAction = function(a) { this._videoStream.appendBytesAction(a); }; Object.defineProperty(e.prototype, "useHardwareDecoder", {get:function() { r("public flash.net.NetStream::get useHardwareDecoder"); }, set:function(a) { r("public flash.net.NetStream::set useHardwareDecoder"); }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "useJitterBuffer", {get:function() { r("public flash.net.NetStream::get useJitterBuffer"); }, set:function(a) { r("public flash.net.NetStream::set useJitterBuffer"); }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "videoStreamSettings", {get:function() { r("public flash.net.NetStream::get videoStreamSettings"); }, set:function(a) { r("public flash.net.NetStream::set videoStreamSettings"); }, enumerable:!0, configurable:!0}); e.prototype.invoke = function(a) { return this._invoke(a >>> 0, Array.prototype.slice.call(arguments, 1)); }; e.prototype.invokeWithArgsArray = function(a, b) { return this._invoke.call(this, a >>> 0, b.value); }; Object.defineProperty(e.prototype, "inBufferSeek", {get:function() { return this._inBufferSeek; }, set:function(a) { this._inBufferSeek = !!a; }, enumerable:!0, configurable:!0}); e.prototype._invoke = function(b, c) { var d = !1, e; switch(b) { case 4: this._videoStream.bufferTime = c[0]; d = !0; break; case 202: switch(c[1]) { case "pause": d = !0; this._notifyVideoControl(2, {paused:!!c[3], time:c[4] / 1E3}); break; case "seek": d = !0, this._notifyVideoControl(3, {time:c[3] / 1E3}); } break; case 300: e = this._notifyVideoControl(4, null); d = !0; break; case 302: e = this._videoStream.bufferTime; d = !0; break; case 303: e = this._notifyVideoControl(5, null); d = !0; break; case 305: e = this._notifyVideoControl(7, null); d = !0; break; case 306: e = this._notifyVideoControl(8, null), d = !0; } (d ? a : r)("NetStream._invoke (" + b + ")"); return e; }; e.prototype._notifyVideoControl = function(a, b) { return this.sec.player.notifyVideoControl(this._id, a, b); }; e.prototype.processVideoEvent = function(a, b) { this._videoStream.processVideoPlaybackEvent(a, b); var d = this.sec.flash.events.NetStatusEvent; switch(a) { case 0: q.media.SoundMixer._updateSoundSource(this); break; case 2: this.dispatchEvent(new d(c.NetStatusEvent.NET_STATUS, !1, !1, this.sec.createObjectFromJS({code:"NetStream.Play.Start", level:"status"}))); break; case 3: this.dispatchEvent(new d(c.NetStatusEvent.NET_STATUS, !1, !1, this.sec.createObjectFromJS({code:"NetStream.Buffer.Flush", level:"status"}))); this.dispatchEvent(new d(c.NetStatusEvent.NET_STATUS, !1, !1, this.sec.createObjectFromJS({code:"NetStream.Play.Stop", level:"status"}))); q.media.SoundMixer._unregisterSoundSource(this); break; case 5: this.dispatchEvent(new d(c.NetStatusEvent.NET_STATUS, !1, !1, this.sec.createObjectFromJS({code:"NetStream.Buffer.Full", level:"status"}))); break; case 4: this.dispatchEvent(new d(c.NetStatusEvent.NET_STATUS, !1, !1, this.sec.createObjectFromJS({code:"NetStream.Buffer.Empty", level:"status"}))); break; case 11: this.dispatchEvent(new d(c.NetStatusEvent.NET_STATUS, !1, !1, this.sec.createObjectFromJS({code:4 === b.code ? "NetStream.Play.NoSupportedTrackFound" : 3 === b.code ? "NetStream.Play.FileStructureInvalid" : "NetStream.Play.StreamNotFound", level:"error"}))); break; case 6: this.dispatchEvent(new d(c.NetStatusEvent.NET_STATUS, !1, !1, this.sec.createObjectFromJS({code:"NetStream.Pause.Notify", level:"status"}))); break; case 7: this.dispatchEvent(new d(c.NetStatusEvent.NET_STATUS, !1, !1, this.sec.createObjectFromJS({code:"NetStream.Unpause.Notify", level:"status"}))); break; case 8: this.dispatchEvent(new d(c.NetStatusEvent.NET_STATUS, !1, !1, this.sec.createObjectFromJS({code:"NetStream.Seek.Notify", level:"status"}))); break; case 9: this.dispatchEvent(new d(c.NetStatusEvent.NET_STATUS, !1, !1, this.sec.createObjectFromJS({code:"NetStream.Seek.Complete", level:"status"}))); break; case 1: this._client && (d = this.sec.createObject(), d.axSetPublicProperty("width", b.videoWidth), d.axSetPublicProperty("height", b.videoHeight), d.axSetPublicProperty("duration", b.duration), this._client.axCallPublicProperty("onMetaData", [d])); } }; e.prototype.stopSound = function() { this.pause(); }; e.prototype.updateSoundLevels = function(a) { this._notifyVideoControl(6, {volume:a}); }; e.classInitializer = null; e.classSymbols = null; e.instanceSymbols = null; e.DIRECT_CONNECTIONS = "directConnections"; e.CONNECT_TO_FMS = "connectToFMS"; return e; }(q.events.EventDispatcher); u.NetStream = l; var n; (function(a) { a[a.CLOSED = 0] = "CLOSED"; a[a.OPENED = 1] = "OPENED"; a[a.ENDED = 2] = "ENDED"; a[a.OPENED_DATA_GENERATION = 3] = "OPENED_DATA_GENERATION"; a[a.ERROR = 4] = "ERROR"; })(n || (n = {})); var t = function() { function b(a) { this.sec = a.sec; this._domReady = new f.PromiseWrapper; this._metadataReady = new f.PromiseWrapper; this._started = !1; this._buffer = "empty"; this._bufferTime = .1; this._contentTypeHint = this._mediaSourceBufferLock = this._mediaSourceBuffer = this._mediaSource = this._url = null; this._state = 0; this._head = null; this._netStream = a; } Object.defineProperty(b.prototype, "state", {get:function() { return this._state; }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "bufferTime", {get:function() { return this._bufferTime; }, set:function(a) { this._bufferTime = +a; }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "url", {get:function() { return this._url; }, enumerable:!0, configurable:!0}); b.prototype.play = function(b, d) { var h = this, l = g.mediaSourceOption.value; l && "undefined" === typeof MediaSource && (f.Debug.warning("MediaSource API is not enabled, falling back to regular playback"), l = !1); var p = !1; if (/\.flv($|\?)/i.test(b)) { if ("supported" === g.flvOption.value) { p = !0; } else { if ("mock" === g.flvOption.value) { b = "resource://shumway/web/noflv.mp4"; } else { setTimeout(function() { h._netStream.dispatchEvent(new h.sec.flash.events.NetStatusEvent(c.NetStatusEvent.NET_STATUS, !1, !1, h.sec.createObjectFromJS({code:"NetStream.Play.NoSupportedTrackFound", level:"error"}))); }); return; } } } if (p || l) { this.openInDataGenerationMode(); var n = new this.sec.flash.net.URLRequest(b); n._checkPolicyFile = d; var t = new this.sec.flash.net.URLStream; t.addEventListener("httpStatus", function(a) { (a = a.axGetPublicProperty("responseHeaders").filter(function(a) { return "Content-Type" === a.axGetPublicProperty("name"); })[0]) && a.axGetPublicProperty("value"); }.bind(this)); t.addEventListener("progress", function(a) { a = t.bytesAvailable; var b = new n.sec.flash.utils.ByteArray; t.readBytes(b, 0, a); a = new Uint8Array(b._buffer, 0, b.length); this.appendBytes(a); }.bind(this)); t.addEventListener("complete", function(a) { this.appendBytesAction("endSequence"); }.bind(this)); t.load(n); } else { a("public flash.net.NetStream::play"), this._state = 1, this._url = e.instance.resolveUrl(b); } }; b.prototype.playInConnection = function(a, b) { this.openInDataGenerationMode(); var c = this, d, e = {packets:0, init:function(a) { if (a.axGetPublicProperty("audiocodecid") || a.axGetPublicProperty("videocodecid")) { a = RtmpJs.MP4.parseFLVMetadata(a), d = new RtmpJs.MP4.MP4Mux(a), d.oncodecinfo = function(a) { this._contentTypeHint = k(a); }, d.ondata = function(a) { c.appendBytes(new Uint8Array(a)); }.bind(this); } }, packet:function(a, b, c) { d.pushPacket(a, new Uint8Array(b), c); }, generate:function() { d.flush(); }}; a._createRtmpStream(function(a, c) { a.ondata = function(a) { console.log("#packet (" + a.typeId + "): @" + a.timestamp); 0 < a.data.length && e.packet(a.typeId, a.data, a.timestamp); }; a.oncallback = function() { console.log("#callback"); }; a.onscriptdata = function(a, b) { console.log("#object: " + a); "onMetaData" === a && e.init(b); }; a.play(b); }); }; b.prototype.openInDataGenerationMode = function() { this._state = 3; var a = new MediaSource; a.addEventListener("sourceopen", function(a) { this._ensurePlaying(); }.bind(this)); a.addEventListener("sourceend", function(a) { this._mediaSource = null; }.bind(this)); this._mediaSource = a; this._url = URL.createObjectURL(a); }; b.prototype.appendBytes = function(a) { if (this._decoder) { this._decoder.push(a); } else { var b, c; null !== this._head ? (b = this._head.length, c = new Uint8Array(b + a.length), c.set(a, b)) : (b = 0, c = a); if (!this._decoder) { var d = this._detectContentType(c); "video/x-flv" === d ? (d = new p(this.sec), d.onHeader = function(a) { this._mediaSourceBuffer = this._mediaSource.addSourceBuffer(a); this._mediaSourceBufferLock = Promise.resolve(void 0); }.bind(this), d.onData = this._queueData.bind(this), this._decoder = d) : d && (this._decoder = {onData:this._queueData.bind(this), onError:function(a) { }, push:function(a) { this.onData(a); }, close:function() { }}, this._mediaSourceBuffer = this._mediaSource.addSourceBuffer(d), this._mediaSourceBufferLock = Promise.resolve(void 0)); } this._decoder ? (this._decoder.push(c), 0 < b && (this._head = null)) : this._head = 0 === b ? new Uint8Array(a) : c; } }; b.prototype._queueData = function(a) { var b = this._mediaSourceBuffer; this._mediaSourceBufferLock = this._mediaSourceBufferLock.then(function() { b.appendBuffer(a); return new Promise(function(a) { b.addEventListener("update", function K() { b.removeEventListener("update", K); a(); }); }); }); }; b.prototype.appendBytesAction = function(b) { b = d(b); if ("endSequence" === b) { if (!this._decoder) { throw Error("Internal appendBytes error"); } this._decoder.close(); this._mediaSourceBufferLock.then(function() { this._mediaSource && this._mediaSource.endOfStream(); this.close(); }.bind(this)); } a("public flash.net.NetStream::appendBytesAction"); }; b.prototype.close = function() { this._state = 0; }; b.prototype._ensurePlaying = function() { this._onEnsurePlay && this._onEnsurePlay(); }; b.prototype._detectContentType = function(a) { return 16 > a.length ? null : 70 === a[0] && 76 === a[1] && 86 === a[2] && 1 === a[3] ? "video/x-flv" : 102 === a[4] && 116 === a[5] && 121 === a[6] && 112 === a[7] ? this._contentTypeHint && /^video\/mp4;\s*codecs=/.test(this._contentTypeHint) ? this._contentTypeHint : 'video/mp4; codecs="avc1.42E01E, mp4a.40.2"' : 73 === a[0] && 68 === a[1] && 51 === a[2] || 255 === a[0] && 224 === (a[1] & 224) && 8 !== (a[1] & 30) ? "audio/mpeg" : this._contentTypeHint || "video/mp4"; }; b.prototype.processVideoPlaybackEvent = function(a, b) { switch(a) { case 0: this._domReady.resolve(void 0); break; case 2: if (this._started) { break; } this._started = !0; break; case 3: this._started = !1; break; case 5: this._buffer = "full"; break; case 10: this._buffer = "progress"; break; case 4: this._buffer = "empty"; break; case 1: this._metadataReady.resolve({videoWidth:b.videoWidth, videoHeight:b.videoHeight}); } }; return b; }(), p = function() { function a(b) { this.sec = b; this._flvParser = new RtmpJs.FLV.FLVParser; this._flvParser.onHeader = this._onFlvHeader.bind(this); this._flvParser.onTag = this._onFlvTag.bind(this); this._flvParser.onClose = this._onFlvClose.bind(this); this._flvParser.onError = this._onFlvError.bind(this); this._mp4Mux = null; } a.prototype._onFlvHeader = function(a) { }; a.prototype._onFlvTag = function(a) { if (18 === a.type) { var c = new this.sec.flash.utils.ByteArray; c.writeRawBytes(a.data); c.position = 0; a = b.AMF0.read(c); c = b.AMF0.read(c); "onMetaData" === a && (c = RtmpJs.MP4.parseFLVMetadata(c), c = new RtmpJs.MP4.MP4Mux(c), c.oncodecinfo = function(a) { this.onHeader(k(a)); }.bind(this), c.ondata = function(a) { this.onData.call(null, a); }.bind(this), this._mp4Mux = c); } else { this._mp4Mux.pushPacket(a.type, new Uint8Array(a.data), a.timestamp); } }; a.prototype._onFlvClose = function() { this._mp4Mux.flush(); }; a.prototype._onFlvError = function(a) { if (this.onError) { this.onError(a); } }; a.prototype.push = function(a) { try { this._flvParser.push(a); } catch (b) { if (this.onError) { this.onError(b); } } }; a.prototype.close = function() { try { this._flvParser.close(); } catch (a) { if (this.onError) { this.onError(a); } } }; return a; }(); })(q.net || (q.net = {})); })(g.flash || (g.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(g) { (function(f) { (function(f) { var k = function(g) { function d(a, c, d, f, n, t, p, h, m, v, k, q, u, z, A, B, x, C, y, D, G, F, I, E, J) { void 0 === G && (G = null); void 0 === F && (F = null); void 0 === I && (I = null); void 0 === E && (E = null); void 0 === J && (J = !0); g.call(this); this.currentBytesPerSecond = +a; this.byteCount = +c; this.maxBytesPerSecond = +d; this.audioBytesPerSecond = +f; this.audioByteCount = +n; this.videoBytesPerSecond = +t; this.videoByteCount = +p; this.dataBytesPerSecond = +h; this.dataByteCount = +m; this.playbackBytesPerSecond = +v; this.droppedFrames = +k; this.audioBufferByteLength = +q; this.videoBufferByteLength = +u; this.dataBufferByteLength = +z; this.audioBufferLength = +A; this.videoBufferLength = +B; this.dataBufferLength = +x; this._srtt = +C; this.audioLossRate = +y; this.videoLossRate = +D; this.metaData = G; this.xmpData = F; this.uri = b.axCoerceString(I); this.resourceName = b.axCoerceString(E); this.isLive = !!J; } __extends(d, g); d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; return d; }(g.ASObject); f.NetStreamInfo = k; })(f.net || (f.net = {})); })(g.flash || (g.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(f) { (function(f) { var k = function(b) { function d(a, c, d, g, f, t, p, h, m, v, k, q, u, z, A, B, x, C, y) { this.sendDataBytesPerSecond = +a; this.sendControlBytesPerSecond = +c; this.receiveDataBytesPerSecond = +d; this.receiveControlBytesPerSecond = +g; this.bytesPushedToPeers = +f; this.fragmentsPushedToPeers = +t; this.bytesRequestedByPeers = +p; this.fragmentsRequestedByPeers = +h; this.bytesPushedFromPeers = +m; this.fragmentsPushedFromPeers = +v; this.bytesRequestedFromPeers = +k; this.fragmentsRequestedFromPeers = +q; this.sendControlBytesPerSecondToServer = +u; this.receiveDataBytesPerSecondFromServer = +z; this.bytesReceivedFromServer = +A; this.fragmentsReceivedFromServer = +B; this.receiveDataBytesPerSecondFromIPMulticast = +x; this.bytesReceivedFromIPMulticast = +C; this.fragmentsReceivedFromIPMulticast = +y; b.call(this); } __extends(d, b); d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; return d; }(b.ASObject); f.NetStreamMulticastInfo = k; })(f.net || (f.net = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(b) { (function(g) { var f = function(b) { function d() { b.call(this, void 0); } __extends(d, b); d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; return d; }(b.events.EventDispatcher); g.NetStreamPlayOptions = f; })(b.net || (b.net = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(f) { (function(f) { var k = function(b) { function d(a, c) { b.call(this); } __extends(d, b); d.prototype.ctor = function(a, b) { this._result = a; this._status = b; }; d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; return d; }(b.ASObject); f.Responder = k; })(f.net || (f.net = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(q) { (function(u) { function k() { c || (c = "undefined" !== typeof ShumwayCom && ShumwayCom.createSpecialStorage ? ShumwayCom.createSpecialStorage() : window.sessionStorage); return c; } var r = f.Debug.notImplemented, d = f.AVMX.axCoerceString, a = f.Debug.somewhatImplemented, c, e = function(c) { function e() { c.call(this); this._data = this.sec.createObject(); } __extends(e, c); e.deleteAll = function(a) { d(a); r("public flash.net.SharedObject::static deleteAll"); }; e.getDiskUsage = function(a) { d(a); r("public flash.net.SharedObject::static getDiskUsage"); }; e._create = function(a, b) { var c = new this.sec.flash.net.SharedObject; c._path = a; c._data = b; c._objectEncoding = this._defaultObjectEncoding; return c; }; e.getLocal = function(a, c, e) { void 0 === c && (c = null); a = d(a); c = d(c); a = (c || "") + "/" + a; if (this._sharedObjects[a]) { return this._sharedObjects[a]; } c = k().getItem(a); c = this._create(a, c ? b.transformJSValueToAS(this.sec, JSON.parse(c), !0) : this.sec.createObject()); return this._sharedObjects[a] = c; }; e.getRemote = function(a, b, c, e) { void 0 === b && (b = null); d(a); d(b); r("public flash.net.SharedObject::static getRemote"); }; Object.defineProperty(e, "defaultObjectEncoding", {get:function() { return this._defaultObjectEncoding; }, set:function(a) { this._defaultObjectEncoding = a >>> 0; }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "data", {get:function() { this.queueFlush(); return this._data; }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "objectEncoding", {get:function() { return this._objectEncoding; }, set:function(a) { this._objectEncoding = a >>> 0; }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "client", {get:function() { r("public flash.net.SharedObject::get client"); }, set:function(a) { r("public flash.net.SharedObject::set client"); }, enumerable:!0, configurable:!0}); e.prototype.setDirty = function(a) { d(a); this.queueFlush(); }; e.prototype.connect = function(a, b) { r("public flash.net.SharedObject::connect"); }; e.prototype.send = function() { r("send"); }; e.prototype.close = function() { a("public flash.net.SharedObject::close"); }; e.prototype.flush = function(c) { a("public flash.net.SharedObject::flush"); c = JSON.stringify(b.transformASValueToJS(this.sec, this._data, !0)); k().setItem(this._path, c); return "flushed"; }; e.prototype.clear = function() { a("public flash.net.SharedObject::clear"); this._data = this.sec.createObject(); k().removeItem(this._path); }; Object.defineProperty(e.prototype, "size", {get:function() { a("public flash.net.SharedObject::get size"); return JSON.stringify(this._data).length - 2; }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "fps", {set:function(b) { a("fps"); this._fps = b; }, enumerable:!0, configurable:!0}); e.prototype.setProperty = function(a, b) { void 0 === b && (b = null); a = "$Bg" + d(a); b !== this._data[a] && (this._data[a] = b, this.queueFlush()); }; e.prototype.queueFlush = function() { this._pendingFlushId && clearTimeout(this._pendingFlushId); this._pendingFlushId = setTimeout(this.flush.bind(this), 100); }; e.classInitializer = null; e._sharedObjects = Object.create(null); e._defaultObjectEncoding = 3; return e; }(q.events.EventDispatcher); u.SharedObject = e; })(q.net || (q.net = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(g) { (function(g) { (function(u) { var k = f.Debug.notImplemented, r = f.AVMX.axCoerceString, d = f.Debug.somewhatImplemented, a = function(a) { function e(b, d) { void 0 === b && (b = null); a.call(this, void 0); r(b); } __extends(e, a); Object.defineProperty(e.prototype, "bytesAvailable", {get:function() { k("public flash.net.Socket::get bytesAvailable"); }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "connected", {get:function() { k("public flash.net.Socket::get connected"); }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "objectEncoding", {get:function() { k("public flash.net.Socket::get objectEncoding"); }, set:function(a) { k("public flash.net.Socket::set objectEncoding"); }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "endian", {get:function() { k("public flash.net.Socket::get endian"); }, set:function(a) { r(a); k("public flash.net.Socket::set endian"); }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "bytesPending", {get:function() { k("public flash.net.Socket::get bytesPending"); }, enumerable:!0, configurable:!0}); e.prototype.readBytes = function(a, b, c) { k("public flash.net.Socket::readBytes"); }; e.prototype.writeBytes = function(a, b, c) { k("public flash.net.Socket::writeBytes"); }; e.prototype.writeBoolean = function(a) { k("public flash.net.Socket::writeBoolean"); }; e.prototype.writeByte = function(a) { k("public flash.net.Socket::writeByte"); }; e.prototype.writeShort = function(a) { k("public flash.net.Socket::writeShort"); }; e.prototype.writeInt = function(a) { k("public flash.net.Socket::writeInt"); }; e.prototype.writeUnsignedInt = function(a) { k("public flash.net.Socket::writeUnsignedInt"); }; e.prototype.writeFloat = function(a) { k("public flash.net.Socket::writeFloat"); }; e.prototype.writeDouble = function(a) { k("public flash.net.Socket::writeDouble"); }; e.prototype.writeMultiByte = function(a, b) { r(a); r(b); k("public flash.net.Socket::writeMultiByte"); }; e.prototype.writeUTF = function(a) { r(a); k("public flash.net.Socket::writeUTF"); }; e.prototype.writeUTFBytes = function(a) { r(a); k("public flash.net.Socket::writeUTFBytes"); }; e.prototype.readBoolean = function() { k("public flash.net.Socket::readBoolean"); }; e.prototype.readByte = function() { k("public flash.net.Socket::readByte"); }; e.prototype.readUnsignedByte = function() { k("public flash.net.Socket::readUnsignedByte"); }; e.prototype.readShort = function() { k("public flash.net.Socket::readShort"); }; e.prototype.readUnsignedShort = function() { k("public flash.net.Socket::readUnsignedShort"); }; e.prototype.readInt = function() { k("public flash.net.Socket::readInt"); }; e.prototype.readUnsignedInt = function() { k("public flash.net.Socket::readUnsignedInt"); }; e.prototype.readFloat = function() { k("public flash.net.Socket::readFloat"); }; e.prototype.readDouble = function() { k("public flash.net.Socket::readDouble"); }; e.prototype.readMultiByte = function(a, b) { r(b); k("public flash.net.Socket::readMultiByte"); }; e.prototype.readUTF = function() { k("public flash.net.Socket::readUTF"); }; e.prototype.readUTFBytes = function(a) { k("public flash.net.Socket::readUTFBytes"); }; e.prototype.flush = function() { k("public flash.net.Socket::flush"); }; e.prototype.writeObject = function(a) { k("public flash.net.Socket::writeObject"); }; e.prototype.readObject = function() { k("public flash.net.Socket::readObject"); }; e.prototype.internalGetSecurityErrorMessage = function(a, b) { r(a); d("flash.net.Socket::internalGetSecurityErrorMessage"); return "SecurityErrorEvent"; }; e.prototype.internalConnect = function(a, c) { a = r(a); c |= 0; d("flash.net.Socket::internalConnect"); this.sec.throwError("SecurityError", b.Errors.SocketConnectError, a, c); }; e.prototype.didFailureOccur = function() { d("flash.net.Socket::didFailureOccur"); return !0; }; e.classInitializer = null; e.classSymbols = null; e.instanceSymbols = null; return e; }(g.events.EventDispatcher); u.Socket = a; })(g.net || (g.net = {})); })(g.flash || (g.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(b) { (function(g) { var f = b.events.Event, r = b.events.IOErrorEvent, d = b.events.ProgressEvent, a = b.events.HTTPStatusEvent, c = b.events.SecurityErrorEvent, e = function(b) { function e(g) { b.call(this); var p = this._stream = new this.sec.flash.net.URLStream; p.addEventListener(f.OPEN, this.onStreamOpen.bind(this)); p.addEventListener(f.COMPLETE, this.onStreamComplete.bind(this)); p.addEventListener(d.PROGRESS, this.onStreamProgress.bind(this)); p.addEventListener(r.IO_ERROR, this.onStreamIOError.bind(this)); p.addEventListener(a.HTTP_STATUS, this.onStreamHTTPStatus.bind(this)); p.addEventListener(a.HTTP_RESPONSE_STATUS, this.onStreamHTTPResponseStatus.bind(this)); p.addEventListener(c.SECURITY_ERROR, this.onStreamSecurityError.bind(this)); this.$BgdataFormat = "text"; g && this.load(g); } __extends(e, b); Object.defineProperty(e.prototype, "data", {get:function() { return this.$Bgdata; }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "dataFormat", {get:function() { return this.$BgdataFormat; }, set:function(a) { this.$BgdataFormat = a; }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "bytesLoaded", {get:function() { return this.$BgbytesLoaded; }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "bytesTotal", {get:function() { return this.$BgbytesTotal; }, enumerable:!0, configurable:!0}); e.prototype.load = function(a) { this._stream.load(a); }; e.prototype.close = function() { this._stream.close(); }; e.prototype.complete = function() { var a = new this.sec.flash.utils.ByteArray; this._stream.readBytes(a); if ("binary" === this.$BgdataFormat) { this.$Bgdata = a; } else { var b = a.toString(); 0 < a.length && "variables" === this.$BgdataFormat ? (a = new this.sec.flash.net.URLVariables, this._ignoreDecodeErrors && (a._ignoreDecodingErrors = !0), a.decode(String(b)), this.$Bgdata = a) : this.$Bgdata = b; } }; e.prototype.addEventListener = function(c, d, e, g, f) { b.prototype.addEventListener.call(this, c, d, e, g, f); c === a.HTTP_RESPONSE_STATUS && (this._httpResponseEventBound = !0); }; e.prototype.onStreamOpen = function(a) { this.dispatchEvent(a); }; e.prototype.onStreamComplete = function(a) { this.complete(); this.dispatchEvent(a); }; e.prototype.onStreamProgress = function(a) { this.$BgbytesLoaded = a.bytesLoaded; this.$BgbytesTotal = a.bytesTotal; this.dispatchEvent(a); }; e.prototype.onStreamIOError = function(a) { this.complete(); this.dispatchEvent(a); }; e.prototype.onStreamHTTPStatus = function(a) { this.dispatchEvent(a); }; e.prototype.onStreamHTTPResponseStatus = function(a) { this._httpResponseEventBound && this.dispatchEvent(a); }; e.prototype.onStreamSecurityError = function(a) { this.dispatchEvent(a); }; e.classInitializer = null; e.classSymbols = null; e.instanceSymbols = null; return e; }(b.events.EventDispatcher); g.URLLoader = e; })(b.net || (b.net = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(g) { (function(q) { (function(q) { var k = f.AVMX.axCoerceString, r = function(d) { function a(a) { void 0 === a && (a = null); d.call(this); this._url = k(a); this._method = "GET"; this._digest = this._data = null; this._contentType = "application/x-www-form-urlencoded"; this._requestHeaders = []; this._checkPolicyFile = !0; } __extends(a, d); Object.defineProperty(a.prototype, "url", {get:function() { return this._url; }, set:function(a) { this._url = a = k(a); }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "data", {get:function() { return this._data; }, set:function(a) { this._data = a; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "method", {get:function() { return this._method; }, set:function(a) { a = k(a); "get" !== a && "GET" !== a && "post" !== a && "POST" !== a && this.sec.throwError("ArgumentError", b.Errors.InvalidArgumentError); this._method = a; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "contentType", {get:function() { return this._contentType; }, set:function(a) { this._contentType = a = k(a); }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "requestHeaders", {get:function() { return this.sec.createArrayUnsafe(this._requestHeaders); }, set:function(a) { this.sec.AXArray.axIsType(a) || this.sec.throwError("ArgumentError", b.Errors.InvalidArgumentError, "value"); this._requestHeaders = a.value; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "digest", {get:function() { return this._digest; }, set:function(a) { this._digest = a = k(a); }, enumerable:!0, configurable:!0}); a.prototype._toFileRequest = function() { var a = {}; a.url = this._url; a.method = this._method; a.checkPolicyFile = this._checkPolicyFile; var b = this._data; if (b) { if (a.mimeType = this._contentType, this.sec.flash.utils.ByteArray.axClass.axIsType(b)) { a.data = new Uint8Array(b._buffer, 0, b.length); } else { if (b = b.toString(), "GET" === this._method) { var d = a.url.lastIndexOf("?"); a.url = (0 > d ? a.url : a.url.substring(0, d)) + "?" + b; } else { a.data = b; } } } return a; }; a.classInitializer = null; a.classSymbols = null; a.bindings = null; return a; }(g.ASObject); q.URLRequest = r; })(q.net || (q.net = {})); })(g.flash || (g.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(q) { (function(q) { var k = f.AVMX.axCoerceString, r = function(b) { function a(a, e) { void 0 === a && (a = ""); void 0 === e && (e = ""); b.call(this); this.name = k(a); this.value = k(e); } __extends(a, b); a.classInitializer = null; a.classSymbols = null; a.instanceSymbols = ["name!", "value!"]; return a; }(b.ASObject); q.URLRequestHeader = r; })(q.net || (q.net = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(g) { (function(g) { (function(u) { var k = f.Debug.notImplemented, r = f.AVMX.axCoerceString, d = f.FileLoadingService, a = function(a) { function e() { a.call(this); this._buffer = new this.sec.flash.utils.ByteArray; this._writePosition = 0; this._connected = !1; } __extends(e, a); Object.defineProperty(e.prototype, "connected", {get:function() { return this._connected; }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "bytesAvailable", {get:function() { return this._buffer.length - this._buffer.position; }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "objectEncoding", {get:function() { return this._buffer.objectEncoding; }, set:function(a) { this._buffer.objectEncoding = a >>> 0; }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "endian", {get:function() { return this._buffer.endian; }, set:function(a) { a = r(a); this._buffer.endian = a; }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "diskCacheEnabled", {get:function() { k("public flash.net.URLStream::get diskCacheEnabled"); }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "position", {get:function() { return this._buffer.position; }, set:function(a) { this._buffer.position = +a; }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "length", {get:function() { return this._buffer.length; }, enumerable:!0, configurable:!0}); e.prototype.load = function(a) { var b = g.events.Event, c = g.events.IOErrorEvent, e = g.events.ProgressEvent, h = g.events.HTTPStatusEvent, f = d.instance.createSession(), v = this, k = this.sec.flash.events; f.onprogress = function(a, b) { var c = v._buffer.position; v._buffer.position = v._writePosition; v._buffer.writeRawBytes(a); v._writePosition = v._buffer.position; v._buffer.position = c; v.dispatchEvent(new k.ProgressEvent(e.PROGRESS, !1, !1, b.bytesLoaded, b.bytesTotal)); }; f.onerror = function(a) { v._connected = !1; v.dispatchEvent(new k.IOErrorEvent(c.IO_ERROR, !1, !1, a)); }; f.onopen = function() { v._connected = !0; v.dispatchEvent(new k.Event(b.OPEN, !1, !1)); }; f.onhttpstatus = function(a, b, c) { b = new k.HTTPStatusEvent(h.HTTP_STATUS, !1, !1, b); var d = []; c.split(/(?:\n|\r?\n)/g).forEach(function(b) { if (b = /^([^:]+): (.*)$/.exec(b)) { d.push(new v.sec.flash.net.URLRequestHeader(b[1], b[2])), "Location" === b[1] && (a = b[2]); } }); c = v.sec.createArray(d); b.axSetPublicProperty("responseHeaders", c); b.axSetPublicProperty("responseURL", a); v.dispatchEvent(b); }; f.onclose = function() { v._connected = !1; v.dispatchEvent(new k.Event(b.COMPLETE, !1, !1)); }; f.open(a._toFileRequest()); this._session = f; }; e.prototype.readBytes = function(a, c, d) { void 0 === c && (c = 0); void 0 === d && (d = 0); c >>>= 0; d >>>= 0; 0 > d && this.sec.throwError("ArgumentError", b.Errors.InvalidArgumentError, "length"); this._buffer.readBytes(a, c, d); }; e.prototype.readBoolean = function() { k("public flash.net.URLStream::readBoolean"); }; e.prototype.readByte = function() { return this._buffer.readByte(); }; e.prototype.readUnsignedByte = function() { k("public flash.net.URLStream::readUnsignedByte"); }; e.prototype.readShort = function() { k("public flash.net.URLStream::readShort"); }; e.prototype.readUnsignedShort = function() { return this._buffer.readUnsignedShort(); }; e.prototype.readUnsignedInt = function() { k("public flash.net.URLStream::readUnsignedInt"); }; e.prototype.readInt = function() { k("public flash.net.URLStream::readInt"); }; e.prototype.readFloat = function() { k("public flash.net.URLStream::readFloat"); }; e.prototype.readDouble = function() { k("public flash.net.URLStream::readDouble"); }; e.prototype.readMultiByte = function(a, b) { r(b); k("public flash.net.URLStream::readMultiByte"); }; e.prototype.readUTF = function() { return this._buffer.readUTF(); }; e.prototype.readUTFBytes = function(a) { return this._buffer.readUTFBytes(a); }; e.prototype.close = function() { this._session && this._session.close(); }; e.prototype.readObject = function() { k("public flash.net.URLStream::readObject"); }; e.prototype.stop = function() { k("public flash.net.URLStream::stop"); }; e.classInitializer = null; e.classSymbols = null; e.instanceSymbols = null; return e; }(g.events.EventDispatcher); u.URLStream = a; })(g.net || (g.net = {})); })(g.flash || (g.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(g) { (function(q) { (function(q) { var k = f.AVMX.axCoerceString, r = function(d) { function a(a) { void 0 === a && (a = null); d.call(this); this._ignoreDecodingErrors = !1; a && this.decode(a); } __extends(a, d); a.prototype.decode = function(a) { a = k(a); a = a.split("&"); for (var d = 0;d < a.length;d++) { var g = a[d], f = g.indexOf("="); 0 > f && (this._ignoreDecodingErrors ? f = g.length : this.sec.throwError("Error", b.Errors.DecodeParamError)); var t = unescape(g.substring(0, f).split("+").join(" ")), g = unescape(g.substring(f + 1).split("+").join(" ")), f = this.axGetPublicProperty(t); "undefined" === typeof f ? this.axSetPublicProperty(t, g) : Array.isArray(f) ? f.push(g) : this.axSetPublicProperty(t, [f, g]); } }; a.prototype.toString = function() { for (var a = [], b = this.axGetEnumerableKeys(), d = 0;d < b.length;d++) { var g = b[d].split(" ").join("+"), f = this.axGetPublicProperty(g), g = escape(g).split(" ").join("+"); if (Array.isArray(f)) { for (var p = 0;p < f.length;p++) { a.push(g + "=" + escape(f[p])); } } else { a.push(g + "=" + escape(f)); } } return a.join("&"); }; a.classInitializer = null; a.classSymbols = null; a.instanceSymbols = null; return a; }(g.ASObject); q.URLVariables = r; })(q.net || (q.net = {})); })(g.flash || (g.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(b) { (function(g) { var k = f.Debug.notImplemented, r = function(b) { function a() { b.call(this); } __extends(a, b); Object.defineProperty(a.prototype, "isSupported", {get:function() { k("public flash.sensors.Accelerometer::get isSupported"); }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "muted", {get:function() { k("public flash.sensors.Accelerometer::get muted"); }, enumerable:!0, configurable:!0}); a.prototype.setRequestedUpdateInterval = function(a) { k("public flash.sensors.Accelerometer::setRequestedUpdateInterval"); }; a.classInitializer = null; a.classSymbols = null; a.instanceSymbols = null; return a; }(b.events.EventDispatcher); g.Accelerometer = r; })(b.sensors || (b.sensors = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(b) { (function(g) { var k = f.Debug.notImplemented, r = function(b) { function a() { b.call(this); } __extends(a, b); Object.defineProperty(a.prototype, "isSupported", {get:function() { k("public flash.sensors.Geolocation::get isSupported"); }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "muted", {get:function() { k("public flash.sensors.Geolocation::get muted"); }, enumerable:!0, configurable:!0}); a.prototype.setRequestedUpdateInterval = function(a) { k("public flash.sensors.Geolocation::setRequestedUpdateInterval"); }; a.classInitializer = null; a.classSymbols = null; a.instanceSymbols = null; return a; }(b.events.EventDispatcher); g.Geolocation = r; })(b.sensors || (b.sensors = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(g) { (function(q) { (function(q) { var k = f.Debug.notImplemented, r = f.AVMX.axCoerceString, d = f.AVMX.AXApplicationDomain, a = function(a) { function e(b) { void 0 === b && (b = null); a.call(this); if (b instanceof d) { this.axDomain = b; } else { var e = null, e = this.sec.flash.system.ApplicationDomain.axIsType(b) ? b.axDomain : this.sec.application; this.axDomain = new d(this.sec, e); } } __extends(e, a); Object.defineProperty(e, "currentDomain", {get:function() { var a = b.getCurrentABC(); return new this.sec.flash.system.ApplicationDomain(a ? a.env.app : this.sec.application); }, enumerable:!0, configurable:!0}); Object.defineProperty(e, "MIN_DOMAIN_MEMORY_LENGTH", {get:function() { k("public flash.system.ApplicationDomain::get MIN_DOMAIN_MEMORY_LENGTH"); }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "parentDomain", {get:function() { var a = b.getCurrentABC(); return new this.sec.flash.system.ApplicationDomain((a ? a.env.app : this.sec.application).parent); }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "domainMemory", {get:function() { k("public flash.system.ApplicationDomain::get domainMemory"); }, set:function(a) { k("public flash.system.ApplicationDomain::set domainMemory"); }, enumerable:!0, configurable:!0}); e.prototype.getDefinition = function(a) { var c = this.getDefinitionImpl(a); c || this.sec.throwError("ReferenceError", b.Errors.UndefinedVarError, a); return c; }; e.prototype.hasDefinition = function(a) { return !!this.getDefinitionImpl(a); }; e.prototype.getDefinitionImpl = function(a) { (a = r(a)) || this.sec.throwError("TypeError", b.Errors.NullPointerError, "definitionName"); a = a.replace("::", "."); a = b.Multiname.FromFQNString(a, 0); return this.axDomain.getProperty(a, !1, !1); }; e.prototype.getQualifiedDefinitionNames = function() { k("public flash.system.ApplicationDomain::getQualifiedDefinitionNames"); }; return e; }(g.ASObject); q.ApplicationDomain = a; })(q.system || (q.system = {})); })(g.flash || (g.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(q) { (function(q) { var k = f.Debug.notImplemented, r = f.Debug.somewhatImplemented, d = f.ObjectUtilities.toKeyValueArray, a = function(a) { function b() { a.call(this); } __extends(b, a); Object.defineProperty(b, "isEmbeddedInAcrobat", {get:function() { return !1; }, enumerable:!0, configurable:!0}); Object.defineProperty(b, "hasEmbeddedVideo", {get:function() { k("public flash.system.Capabilities::get hasEmbeddedVideo"); }, enumerable:!0, configurable:!0}); Object.defineProperty(b, "hasAudio", {get:function() { return !0; }, enumerable:!0, configurable:!0}); Object.defineProperty(b, "avHardwareDisable", {get:function() { r("public flash.system.Capabilities::get avHardwareDisable"); return !0; }, enumerable:!0, configurable:!0}); Object.defineProperty(b, "hasAccessibility", {get:function() { r("public flash.system.Capabilities::get hasAccessibility"); return b._hasAccessibility; }, enumerable:!0, configurable:!0}); Object.defineProperty(b, "hasAudioEncoder", {get:function() { r("public flash.system.Capabilities::get hasAudioEncoder"); return !1; }, enumerable:!0, configurable:!0}); Object.defineProperty(b, "hasMP3", {get:function() { k("public flash.system.Capabilities::get hasMP3"); }, enumerable:!0, configurable:!0}); Object.defineProperty(b, "hasPrinting", {get:function() { r("public flash.system.Capabilities::get hasPrinting"); return !1; }, enumerable:!0, configurable:!0}); Object.defineProperty(b, "hasScreenBroadcast", {get:function() { r("public flash.system.Capabilities::get hasScreenBroadcast"); return !1; }, enumerable:!0, configurable:!0}); Object.defineProperty(b, "hasScreenPlayback", {get:function() { r("public flash.system.Capabilities::get hasScreenPlayback"); return !1; }, enumerable:!0, configurable:!0}); Object.defineProperty(b, "hasStreamingAudio", {get:function() { k("public flash.system.Capabilities::get hasStreamingAudio"); }, enumerable:!0, configurable:!0}); Object.defineProperty(b, "hasStreamingVideo", {get:function() { k("public flash.system.Capabilities::get hasStreamingVideo"); }, enumerable:!0, configurable:!0}); Object.defineProperty(b, "hasVideoEncoder", {get:function() { r("public flash.system.Capabilities::get hasVideoEncoder"); return !1; }, enumerable:!0, configurable:!0}); Object.defineProperty(b, "isDebugger", {get:function() { return !1; }, enumerable:!0, configurable:!0}); Object.defineProperty(b, "localFileReadDisable", {get:function() { k("public flash.system.Capabilities::get localFileReadDisable"); }, enumerable:!0, configurable:!0}); Object.defineProperty(b, "language", {get:function() { r("public flash.system.Capabilities::get language"); return b._language; }, enumerable:!0, configurable:!0}); Object.defineProperty(b, "manufacturer", {get:function() { r("public flash.system.Capabilities::get manufacturer"); return b._manufacturer; }, enumerable:!0, configurable:!0}); Object.defineProperty(b, "os", {get:function() { if (null === b._os) { var a; a = window.navigator.userAgent; 0 < a.indexOf("Macintosh") ? -1 === a.indexOf("Mac OS X ") ? a = "Mac OS 10.6" : (a = a.split("Mac OS X ")[1], a = a.substr(0, a.indexOf(";"))) : 0 < a.indexOf("Windows") ? a = "Windows XP" : 0 < a.indexOf("Linux") ? a = "Linux" : /(iPad|iPhone|iPod|Android)/.test(a) ? a = "iPhone3,1" : (r("public flash.system.Capabilities::get os"), a = "Generic OS"); b._os = a; } return b._os; }, enumerable:!0, configurable:!0}); Object.defineProperty(b, "cpuArchitecture", {get:function() { r("public flash.system.Capabilities::get cpuArchitecture"); return "x86"; }, enumerable:!0, configurable:!0}); Object.defineProperty(b, "playerType", {get:function() { return b._playerType; }, enumerable:!0, configurable:!0}); Object.defineProperty(b, "serverString", {get:function() { var a = d({OS:b.os}).map(function(a) { return a[0] + "=" + encodeURIComponent(a[1]); }).join("&"); r("Capabilities.serverString: " + a); return a; }, enumerable:!0, configurable:!0}); Object.defineProperty(b, "version", {get:function() { r("public flash.system.Capabilities::get version"); return b._version; }, enumerable:!0, configurable:!0}); Object.defineProperty(b, "screenColor", {get:function() { return "color"; }, enumerable:!0, configurable:!0}); Object.defineProperty(b, "pixelAspectRatio", {get:function() { r("public flash.system.Capabilities::get pixelAspectRatio"); return 1; }, enumerable:!0, configurable:!0}); Object.defineProperty(b, "screenDPI", {get:function() { r("public flash.system.Capabilities::get screenDPI"); return b._screenDPI; }, enumerable:!0, configurable:!0}); Object.defineProperty(b, "screenResolutionX", {get:function() { r("public flash.system.Capabilities::get screenResolutionX"); return window.screen.width; }, enumerable:!0, configurable:!0}); Object.defineProperty(b, "screenResolutionY", {get:function() { r("public flash.system.Capabilities::get screenResolutionY"); return window.screen.height; }, enumerable:!0, configurable:!0}); Object.defineProperty(b, "touchscreenType", {get:function() { return q.TouchscreenType.NONE; }, enumerable:!0, configurable:!0}); Object.defineProperty(b, "hasIME", {get:function() { return !1; }, enumerable:!0, configurable:!0}); Object.defineProperty(b, "hasTLS", {get:function() { k("public flash.system.Capabilities::get hasTLS"); }, enumerable:!0, configurable:!0}); Object.defineProperty(b, "maxLevelIDC", {get:function() { k("public flash.system.Capabilities::get maxLevelIDC"); }, enumerable:!0, configurable:!0}); Object.defineProperty(b, "supports32BitProcesses", {get:function() { k("public flash.system.Capabilities::get supports32BitProcesses"); }, enumerable:!0, configurable:!0}); Object.defineProperty(b, "supports64BitProcesses", {get:function() { k("public flash.system.Capabilities::get supports64BitProcesses"); }, enumerable:!0, configurable:!0}); Object.defineProperty(b, "_internal", {get:function() { k("public flash.system.Capabilities::get _internal"); }, enumerable:!0, configurable:!0}); b.hasMultiChannelAudio = function(a) { r("public flash.system.Capabilities::static hasMultiChannelAudio"); return !1; }; b.classInitializer = null; b._hasAccessibility = !1; b._language = "en"; b._manufacturer = "Mozilla Research"; b._os = null; b._playerType = "PlugIn"; b._version = "SHUMWAY 10,0,0,0"; b._screenDPI = 96; return b; }(b.ASObject); q.Capabilities = a; })(q.system || (q.system = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(b) { (function(b) { var g = f.AVMX.axCoerceString; b.fscommand = function(b, d, a) { d = g(d); a = g(a); console.log("FSCommand: " + d + "; " + a); d = d.toLowerCase(); if ("debugger" === d) { debugger; } else { b.player.executeFSCommand(d, a); } }; })(b.system || (b.system = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(f) { (function(f) { var k = function(b) { function d() { b.call(this); } __extends(d, b); d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; d.ON_DEMAND = "onDemand"; d.ON_LOAD = "onLoad"; return d; }(b.ASObject); f.ImageDecodingPolicy = k; })(f.system || (f.system = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(f) { (function(u) { var k = function(b) { function d(a, c, d) { void 0 === a && (a = !1); void 0 === c && (c = null); void 0 === d && (d = null); b.call(this); this.checkPolicyFile = a; this.applicationDomain = c; this.securityDomain = d; this.imageDecodingPolicy = f.system.ImageDecodingPolicy.ON_DEMAND; } __extends(d, b); d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = "checkPolicyFile! applicationDomain! sec! allowCodeImport! requestedContentParent! parameters! imageDecodingPolicy!".split(" "); return d; }(b.ASObject); u.LoaderContext = k; })(f.system || (f.system = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(b) { (function(f) { var g = function(b) { function d(a, c, d, f) { void 0 === a && (a = 0); void 0 === c && (c = !1); void 0 === d && (d = null); void 0 === f && (f = null); b.call(this, c, d, f); this.deblockingFilter = +a; } __extends(d, b); d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; return d; }(b.system.LoaderContext); f.JPEGLoaderContext = g; })(b.system || (b.system = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(b) { (function(g) { var k = f.Debug.notImplemented, r = function(b) { function a() { b.call(this); } __extends(a, b); Object.defineProperty(a.prototype, "messageAvailable", {get:function() { k("public flash.system.MessageChannel::get messageAvailable"); }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "state", {get:function() { k("public flash.system.MessageChannel::get state"); }, enumerable:!0, configurable:!0}); a.prototype.send = function(a, b) { k("public flash.system.MessageChannel::send"); }; a.prototype.receive = function(a) { k("public flash.system.MessageChannel::receive"); }; a.prototype.close = function() { k("public flash.system.MessageChannel::close"); }; a.classInitializer = null; a.classSymbols = null; a.instanceSymbols = null; return a; }(b.events.EventDispatcher); g.MessageChannel = r; })(b.system || (b.system = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(f) { (function(f) { var k = function(b) { function d() { b.call(this); } __extends(d, b); d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; d.OPEN = "open"; d.CLOSING = "closing"; d.CLOSED = "closed"; return d; }(b.ASObject); f.MessageChannelState = k; })(f.system || (f.system = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(q) { (function(q) { var k = f.Debug.notImplemented, r = f.AVMX.axCoerceString, d = f.Debug.somewhatImplemented, a = function(a) { function b() { a.call(this); } __extends(b, a); Object.defineProperty(b, "exactSettings", {get:function() { return b._exactSettings; }, set:function(a) { b._exactSettings = !!a; }, enumerable:!0, configurable:!0}); Object.defineProperty(b, "disableAVM1Loading", {get:function() { k("public flash.system.Security::get disableAVM1Loading"); }, set:function(a) { k("public flash.system.Security::set disableAVM1Loading"); }, enumerable:!0, configurable:!0}); Object.defineProperty(b, "sandboxType", {get:function() { d("public flash.system.Security::get sandboxType"); return b._sandboxType; }, enumerable:!0, configurable:!0}); Object.defineProperty(b, "pageDomain", {get:function() { d("public flash.system.Security::get pageDomain"); var a = f.FileLoadingService.instance.resolveUrl("/").split("/"); a.pop(); return a.pop(); }, enumerable:!0, configurable:!0}); b.allowDomain = function() { d('public flash.system.Security::static allowDomain ["' + Array.prototype.join.call(arguments, '", "') + '"]'); for (var a = this.sec.player, b = 0;b < arguments.length;b++) { a.addToSWFLoadingWhitelist(r(arguments[b]) || "", !1); } }; b.allowInsecureDomain = function() { d("public flash.system.Security::static allowInsecureDomain"); for (var a = this.sec.player, b = 0;b < arguments.length;b++) { a.addToSWFLoadingWhitelist(r(arguments[b]) || "", !0); } }; b.loadPolicyFile = function(a) { r(a); d("public flash.system.Security::static loadPolicyFile"); }; b.showSettings = function(a) { void 0 === a && (a = "default"); r(a); k("public flash.system.Security::static showSettings"); }; b.duplicateSandboxBridgeInputArguments = function(a, b) { k("public flash.system.Security::static duplicateSandboxBridgeInputArguments"); }; b.duplicateSandboxBridgeOutputArgument = function(a, b) { k("public flash.system.Security::static duplicateSandboxBridgeOutputArgument"); }; b.classInitializer = null; b.classSymbols = null; b.instanceSymbols = null; b.REMOTE = "remote"; b.LOCAL_WITH_FILE = "localWithFile"; b.LOCAL_WITH_NETWORK = "localWithNetwork"; b.LOCAL_TRUSTED = "localTrusted"; b.APPLICATION = "application"; b._exactSettings = !1; b._sandboxType = "remote"; return b; }(b.ASObject); q.Security = a; })(q.system || (q.system = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(f) { (function(q) { (function(q) { var k = function(f) { function d() { f.call(this); this.sec.throwError("ArgumentError", b.Errors.CantInstantiateError, "SecurityDomain"); } __extends(d, f); Object.defineProperty(d, "currentDomain", {get:function() { var a = b.getCurrentABC(); return Object.create((a ? a.env.app.sec : this.sec).flash.system.SecurityDomain.axClass.tPrototype); }, enumerable:!0, configurable:!0}); d.classInitializer = null; return d; }(f.ASObject); q.SecurityDomain = k; })(q.system || (q.system = {})); })(f.flash || (f.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(f) { (function(f) { var k = function(b) { function d() { b.call(this); } __extends(d, b); d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; d.DEFAULT = "default"; d.PRIVACY = "privacy"; d.LOCAL_STORAGE = "localStorage"; d.MICROPHONE = "microphone"; d.CAMERA = "camera"; d.DISPLAY = "display"; d.SETTINGS_MANAGER = "settingsManager"; return d; }(b.ASObject); f.SecurityPanel = k; })(f.system || (f.system = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(f) { (function(f) { var k = function(b) { function d() { b.call(this); } __extends(d, b); d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; d.FINGER = "finger"; d.STYLUS = "stylus"; d.NONE = "none"; return d; }(b.ASObject); f.TouchscreenType = k; })(f.system || (f.system = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(f) { (function(f) { var k = function(b) { function d() { b.call(this); } __extends(d, b); d.fromNumber = function(a) { switch(a) { case 1: return d.NORMAL; case 2: return d.ADVANCED; default: return null; } }; d.toNumber = function(a) { switch(a) { case d.NORMAL: return 1; case d.ADVANCED: return 2; default: return -1; } }; d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; d.NORMAL = "normal"; d.ADVANCED = "advanced"; return d; }(b.ASObject); f.AntiAliasType = k; })(f.text || (f.text = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(f) { (function(f) { var k = function(b) { function d() { b.call(this); } __extends(d, b); d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; d.REGULAR = "regular"; d.BOLD = "bold"; d.ITALIC = "italic"; d.BOLD_ITALIC = "boldItalic"; return d; }(b.ASObject); f.FontStyle = k; })(f.text || (f.text = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(f) { (function(f) { var k = function(b) { function d() { b.call(this); } __extends(d, b); d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; d.EMBEDDED = "embedded"; d.EMBEDDED_CFF = "embeddedCFF"; d.DEVICE = "device"; return d; }(b.ASObject); f.FontType = k; })(f.text || (f.text = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(q) { (function(u) { var k = f.Debug.somewhatImplemented, r = f.AVMX.axCoerceString, d = q.text.FontStyle, a = q.text.FontType, c = function(b) { function c() { b.call(this); this._symbol || this._initializeFields(); } __extends(c, b); c.prototype._initializeFields = function() { this._fontType = this._fontStyle = this._fontFamily = this._fontName = null; this.leading = this.descent = this.ascent = 0; this.advances = null; this._id = q.display.DisplayObject.getNextSyncID(); }; c._getFontMetrics = function(a, b) { return this._deviceFontMetrics[a + b] || this._deviceFontMetrics[a]; }; c.resolveFontName = function(a) { return "_sans" === a ? this.DEFAULT_FONT_SANS : "_serif" === a ? this.DEFAULT_FONT_SERIF : "_typewriter" === a ? this.DEFAULT_FONT_TYPEWRITER : a; }; c.prototype.applySymbol = function() { var b = this._symbol; this._initializeFields(); this._id = b.syncId; this._fontName = b.name; var c = this.sec.flash.text.Font.axClass; this._fontFamily = c.resolveFontName(b.name); this._fontStyle = b.bold ? b.italic ? d.BOLD_ITALIC : d.BOLD : b.italic ? d.ITALIC : d.REGULAR; var e = b.metrics; e && (this.ascent = e.ascent, this.descent = e.descent, this.leading = e.leading, this.advances = e.advances); this._fontType = e ? a.EMBEDDED : a.DEVICE; e = Object.getOwnPropertyDescriptor(c._fontsBySymbolId, b.syncId + ""); e && e.value || (e = {value:this, configurable:!0}, Object.defineProperty(c._fontsBySymbolId, b.id + "", e), Object.defineProperty(c._fontsByName, b.name.toLowerCase() + this._fontStyle, e), this._fontType === a.EMBEDDED && Object.defineProperty(c._fontsByName, "swffont" + b.syncId + this._fontStyle, e)); }; c.getBySymbolId = function(a) { return this._fontsBySymbolId[a]; }; c.getByNameAndStyle = function(b, c) { for (var d, e, g = b.split(","), l = 0;l < g.length && !e;l++) { d = g[l].toLowerCase() + c, e = this._fontsByName[d]; } e || (e = new this.sec.flash.text.Font, e._fontName = g[0], e._fontFamily = this.resolveFontName(g[0].toLowerCase()), e._fontStyle = c, e._fontType = a.DEVICE, this._fontsByName[d] = e); e._fontType === a.DEVICE && (d = this._getFontMetrics(e._fontName, e._fontStyle), d || (f.Debug.warning('Font metrics for "' + e._fontName + '" unknown. Fallback to default.'), d = this._getFontMetrics(this.DEFAULT_FONT_SANS, e._fontStyle), e._fontFamily = this.DEFAULT_FONT_SANS), e.ascent = d[0], e.descent = d[1], e.leading = d[2]); return e; }; c.getDefaultFont = function() { return this.getByNameAndStyle(this.DEFAULT_FONT_SANS, d.REGULAR); }; c.enumerateFonts = function(a) { k("public flash.text.Font::static enumerateFonts"); return this.sec.createArrayUnsafe(this._fonts.slice()); }; c.registerFont = function(a) { k("Font.registerFont"); }; c.registerFontSymbol = function(a, b) { var c = this.sec.flash.display.DisplayObject.axClass.getNextSyncID(), d = a.name.toLowerCase() + a.style, e = {get:this.resolveFontSymbol.bind(this, b, a.id, c, d), configurable:!0}; Object.defineProperty(this._fontsByName, d, e); Object.defineProperty(this._fontsByName, "swffont" + c + a.style, e); Object.defineProperty(this._fontsBySymbolId, c + "", e); }; c.resolveFontSymbol = function(a, b, c, d) { a.getSymbolById(b).syncId = c; return this._fontsByName[d]; }; Object.defineProperty(c.prototype, "fontName", {get:function() { return this._fontName; }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "fontStyle", {get:function() { return this._fontStyle; }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "fontType", {get:function() { return this._fontType; }, enumerable:!0, configurable:!0}); c.prototype.hasGlyphs = function(a) { r(a); k("Font#hasGlyphs"); return !0; }; c.DEFAULT_FONT_SANS = "Arial"; c.DEFAULT_FONT_SERIF = "Times New Roman"; c.DEFAULT_FONT_TYPEWRITER = "Courier New"; c.classInitializer = function() { this._fonts = []; this._fontsBySymbolId = f.ObjectUtilities.createMap(); this._fontsByName = f.ObjectUtilities.createMap(); this.DEVICE_FONT_METRICS_BUILTIN = {_sans:[.9, .22, .08], _serif:[.88, .26, .08], _typewriter:[.86, .24, .08]}; this.DEVICE_FONT_METRICS_WIN = {__proto__:this.DEVICE_FONT_METRICS_BUILTIN, Arial:[1, .25, 0], "Arial Baltic":[1, .25, 0], "Arial Black":[1.0833, .3333, 0], "Arial CE":[1, .25, 0], "Arial CYR":[1, .25, 0], "Arial Greek":[1, .25, 0], "Arial TUR":[1, .25, 0], "Comic Sans MS":[1.0833, .3333, 0], "Courier New":[1, .25, 0], "Courier New Baltic":[1, .25, 0], "Courier New CE":[1, .25, 0], "Courier New CYR":[1, .25, 0], "Courier New Greek":[1, .25, 0], "Courier New TUR":[1, .25, 0], "Estrangelo Edessa":[.75, .3333, 0], "Franklin Gothic Medium":[1, .3333, 0], Gautami:[.9167, .8333, 0], Georgia:[1, .25, 0], Impact:[1.0833, .25, 0], Latha:[1.0833, .25, 0], "Lucida Console":[.75, .25, 0], "Lucida Sans Unicode":[1.0833, .25, 0], Mangal:[1.0833, .25, 0], Marlett:[1, 0, 0], "Microsoft Sans Serif":[1.0833, .1667, 0], "MV Boli":[.9167, .25, 0], "Palatino Linotype":[1.0833, .3333, 0], Raavi:[1.0833, .6667, 0], Shruti:[1, .5, 0], Sylfaen:[1, .3333, 0], Symbol:[1, .25, 0], Tahoma:[1, .1667, 0], "Times New Roman":[1, .25, 0], "Times New Roman Baltic":[1, .25, 0], "Times New Roman CE":[1, .25, 0], "Times New Roman CYR":[1, .25, 0], "Times New Roman Greek":[1, .25, 0], "Times New Roman TUR":[1, .25, 0], "Trebuchet MS":[1.0833, .4167, 0], Tunga:[1, .75, 0], Verdana:[1, .1667, 0], Webdings:[1.0833, .5, 0], Wingdings:[.9167, .25, 0]}; this.DEVICE_FONT_METRICS_MAC = {__proto__:this.DEVICE_FONT_METRICS_BUILTIN, "Al Bayan Bold":[1, .5833, 0], "Al Bayan Plain":[1, .5, 0], "Al Nile":[.8333, .5, 0], "Al Nile Bold":[.8333, .5, 0], "Al Tarikh Regular":[.5833, .4167, 0], "American Typewriter":[.9167, .25, 0], "American Typewriter Bold":[.9167, .25, 0], "American Typewriter Condensed":[.9167, .25, 0], "American Typewriter Condensed Bold":[.9167, .25, 0], "American Typewriter Condensed Light":[.8333, .25, 0], "American Typewriter Light":[.9167, .25, 0], "Andale Mono":[.9167, .25, 0], "Apple Braille":[.75, .25, 0], "Apple Braille Outline 6 Dot":[.75, .25, 0], "Apple Braille Outline 8 Dot":[.75, .25, 0], "Apple Braille Pinpoint 6 Dot":[.75, .25, 0], "Apple Braille Pinpoint 8 Dot":[.75, .25, 0], "Apple Chancery":[1.0833, .5, 0], "Apple Color Emoji":[1.25, .4167, 0], "Apple SD Gothic Neo Bold":[.9167, .3333, 0], "Apple SD Gothic Neo Heavy":[.9167, .3333, 0], "Apple SD Gothic Neo Light":[.9167, .3333, 0], "Apple SD Gothic Neo Medium":[.9167, .3333, 0], "Apple SD Gothic Neo Regular":[.9167, .3333, 0], "Apple SD Gothic Neo SemiBold":[.9167, .3333, 0], "Apple SD Gothic Neo Thin":[.9167, .3333, 0], "Apple SD Gothic Neo UltraLight":[.9167, .3333, 0], "Apple SD GothicNeo ExtraBold":[.9167, .3333, 0], "Apple Symbols":[.6667, .25, 0], "AppleGothic Regular":[.9167, .3333, 0], "AppleMyungjo Regular":[.8333, .3333, 0], Arial:[.9167, .25, 0], "Arial Black":[1.0833, .3333, 0], "Arial Bold":[.9167, .25, 0], "Arial Bold Italic":[.9167, .25, 0], "Arial Hebrew":[.75, .3333, 0], "Arial Hebrew Bold":[.75, .3333, 0], "Arial Hebrew Light":[.75, .3333, 0], "Arial Hebrew Scholar":[.75, .3333, 0], "Arial Hebrew Scholar Bold":[.75, .3333, 0], "Arial Hebrew Scholar Light":[.75, .3333, 0], "Arial Italic":[.9167, .25, 0], "Arial Narrow":[.9167, .25, 0], "Arial Narrow Bold":[.9167, .25, 0], "Arial Narrow Bold Italic":[.9167, .25, 0], "Arial Narrow Italic":[.9167, .25, 0], "Arial Rounded MT Bold":[.9167, .25, 0], "Arial Unicode MS":[1.0833, .25, 0], "Athelas Bold":[.9167, .25, 0], "Athelas Bold Italic":[.9167, .25, 0], "Athelas Italic":[.9167, .25, 0], "Athelas Regular":[.9167, .25, 0], "Avenir Black":[1, .3333, 0], "Avenir Black Oblique":[1, .3333, 0], "Avenir Book":[1, .3333, 0], "Avenir Book Oblique":[1, .3333, 0], "Avenir Heavy":[1, .3333, 0], "Avenir Heavy Oblique":[1, .3333, 0], "Avenir Light":[1, .3333, 0], "Avenir Light Oblique":[1, .3333, 0], "Avenir Medium":[1, .3333, 0], "Avenir Medium Oblique":[1, .3333, 0], "Avenir Next Bold":[1, .3333, 0], "Avenir Next Bold Italic":[1, .3333, 0], "Avenir Next Condensed Bold":[1, .3333, 0], "Avenir Next Condensed Bold Italic":[1, .3333, 0], "Avenir Next Condensed Demi Bold":[1, .3333, 0], "Avenir Next Condensed Demi Bold Italic":[1, .3333, 0], "Avenir Next Condensed Heavy":[1, .3333, 0], "Avenir Next Condensed Heavy Italic":[1, .3333, 0], "Avenir Next Condensed Italic":[1, .3333, 0], "Avenir Next Condensed Medium":[1, .3333, 0], "Avenir Next Condensed Medium Italic":[1, .3333, 0], "Avenir Next Condensed Regular":[1, .3333, 0], "Avenir Next Condensed Ultra Light":[1, .3333, 0], "Avenir Next Condensed Ultra Light Italic":[1, .3333, 0], "Avenir Next Demi Bold":[1, .3333, 0], "Avenir Next Demi Bold Italic":[1, .3333, 0], "Avenir Next Heavy":[1, .3333, 0], "Avenir Next Heavy Italic":[1, .3333, 0], "Avenir Next Italic":[1, .3333, 0], "Avenir Next Medium":[1, .3333, 0], "Avenir Next Medium Italic":[1, .3333, 0], "Avenir Next Regular":[1, .3333, 0], "Avenir Next Ultra Light":[1, .3333, 0], "Avenir Next Ultra Light Italic":[1, .3333, 0], "Avenir Oblique":[1, .3333, 0], "Avenir Roman":[1, .3333, 0], Ayuthaya:[1.0833, .3333, 0], "Baghdad Regular":[.9167, .4167, 0], "Bangla MN":[1.0833, .75, 0], "Bangla MN Bold":[1.0833, .75, 0], "Bangla Sangam MN":[.9167, .4167, 0], "Bangla Sangam MN Bold":[.9167, .4167, 0], "Baoli SC Regular":[1.0833, .3333, 0], Baskerville:[.9167, .25, 0], "Baskerville Bold":[.9167, .25, 0], "Baskerville Bold Italic":[.9167, .25, 0], "Baskerville Italic":[.9167, .25, 0], "Baskerville SemiBold":[.9167, .25, 0], "Baskerville SemiBold Italic":[.9167, .25, 0], "Beirut Regular":[.75, .25, 0], "Big Caslon Medium":[.9167, .25, 0], "Bodoni 72 Bold":[.9167, .25, 0], "Bodoni 72 Book":[.9167, .25, 0], "Bodoni 72 Book Italic":[.9167, .3333, 0], "Bodoni 72 Oldstyle Bold":[.9167, .25, 0], "Bodoni 72 Oldstyle Book":[.9167, .25, 0], "Bodoni 72 Oldstyle Book Italic":[.9167, .3333, 0], "Bodoni 72 Smallcaps Book":[.9167, .25, 0], "Bodoni Ornaments":[.8333, .1667, 0], "Bradley Hand Bold":[.8333, .4167, 0], "Brush Script MT Italic":[.9167, .3333, 0], Chalkboard:[1, .25, 0], "Chalkboard Bold":[1, .25, 0], "Chalkboard SE Bold":[1.1667, .25, 0], "Chalkboard SE Light":[1.1667, .25, 0], "Chalkboard SE Regular":[1.1667, .25, 0], Chalkduster:[1, .25, 0], "Charter Black":[1, .25, 0], "Charter Black Italic":[1, .25, 0], "Charter Bold":[1, .25, 0], "Charter Bold Italic":[1, .25, 0], "Charter Italic":[1, .25, 0], "Charter Roman":[1, .25, 0], Cochin:[.9167, .25, 0], "Cochin Bold":[.9167, .25, 0], "Cochin Bold Italic":[.9167, .25, 0], "Cochin Italic":[.9167, .25, 0], "Comic Sans MS":[1.0833, .25, 0], "Comic Sans MS Bold":[1.0833, .25, 0], Copperplate:[.75, .25, 0], "Copperplate Bold":[.75, .25, 0], "Copperplate Light":[.75, .25, 0], "Corsiva Hebrew":[.6667, .3333, 0], "Corsiva Hebrew Bold":[.6667, .3333, 0], Courier:[.75, .25, 0], "Courier Bold":[.75, .25, 0], "Courier Bold Oblique":[.75, .25, 0], "Courier New":[.8333, .3333, 0], "Courier New Bold":[.8333, .3333, 0], "Courier New Bold Italic":[.8333, .3333, 0], "Courier New Italic":[.8333, .3333, 0], "Courier Oblique":[.75, .25, 0], "Damascus Bold":[.5833, .4167, 0], "Damascus Light":[.5833, .4167, 0], "Damascus Medium":[.5833, .4167, 0], "Damascus Regular":[.5833, .4167, 0], "Damascus Semi Bold":[.5833, .4167, 0], "DecoType Naskh Regular":[1.1667, .6667, 0], "Devanagari MT":[.9167, .6667, 0], "Devanagari MT Bold":[.9167, .6667, 0], "Devanagari Sangam MN":[.9167, .4167, 0], "Devanagari Sangam MN Bold":[.9167, .4167, 0], Didot:[.9167, .3333, 0], "Didot Bold":[1, .3333, 0], "Didot Italic":[.9167, .25, 0], "DIN Alternate Bold":[.9167, .25, 0], "DIN Condensed Bold":[.75, .25, 0], "Diwan Kufi Regular":[1.4167, .5, 0], "Diwan Thuluth Regular":[1, .6667, 0], "Euphemia UCAS":[1.0833, .25, 0], "Euphemia UCAS Bold":[1.0833, .25, 0], "Euphemia UCAS Italic":[1.0833, .25, 0], "Farah Regular":[.75, .25, 0], "Farisi Regular":[1.0833, 1, 0], "Futura Condensed ExtraBold":[1, .25, 0], "Futura Condensed Medium":[1, .25, 0], "Futura Medium":[1, .25, 0], "Futura Medium Italic":[1, .25, 0], "GB18030 Bitmap":[1.1667, .1667, 0], "Geeza Pro Bold":[.9167, .3333, 0], "Geeza Pro Regular":[.9167, .3333, 0], Geneva:[1, .25, 0], Georgia:[.9167, .25, 0], "Georgia Bold":[.9167, .25, 0], "Georgia Bold Italic":[.9167, .25, 0], "Georgia Italic":[.9167, .25, 0], "Gill Sans":[.9167, .25, 0], "Gill Sans Bold":[.9167, .25, 0], "Gill Sans Bold Italic":[.9167, .25, 0], "Gill Sans Italic":[.9167, .25, 0], "Gill Sans Light":[.9167, .25, 0], "Gill Sans Light Italic":[.9167, .25, 0], "Gill Sans SemiBold":[.9167, .25, 0], "Gill Sans SemiBold Italic":[.9167, .25, 0], "Gill Sans UltraBold":[1, .25, 0], "Gujarati MT":[.9167, .6667, 0], "Gujarati MT Bold":[.9167, .6667, 0], "Gujarati Sangam MN":[.8333, .4167, 0], "Gujarati Sangam MN Bold":[.8333, .4167, 0], "GungSeo Regular":[.8333, .25, 0], "Gurmukhi MN":[.9167, .25, 0], "Gurmukhi MN Bold":[.9167, .25, 0], "Gurmukhi MT":[.8333, .4167, 0], "Gurmukhi Sangam MN":[.9167, .3333, 0], "Gurmukhi Sangam MN Bold":[.9167, .3333, 0], "Hannotate SC Bold":[1.0833, .3333, 0], "Hannotate SC Regular":[1.0833, .3333, 0], "Hannotate TC Bold":[1.0833, .3333, 0], "Hannotate TC Regular":[1.0833, .3333, 0], "HanziPen SC Bold":[1.0833, .3333, 0], "HanziPen SC Regular":[1.0833, .3333, 0], "HanziPen TC Bold":[1.0833, .3333, 0], "HanziPen TC Regular":[1.0833, .3333, 0], "HeadLineA Regular":[.8333, .1667, 0], "Heiti SC Light":[.8333, .1667, 0], "Heiti SC Medium":[.8333, .1667, 0], "Heiti TC Light":[.8333, .1667, 0], "Heiti TC Medium":[.8333, .1667, 0], Helvetica:[.75, .25, 0], "Helvetica Bold":[.75, .25, 0], "Helvetica Bold Oblique":[.75, .25, 0], "Helvetica Light":[.75, .25, 0], "Helvetica Light Oblique":[.75, .25, 0], "Helvetica Neue":[.9167, .25, 0], "Helvetica Neue Bold":[1, .25, 0], "Helvetica Neue Bold Italic":[1, .25, 0], "Helvetica Neue Condensed Black":[1, .25, 0], "Helvetica Neue Condensed Bold":[1, .25, 0], "Helvetica Neue Italic":[.9167, .25, 0], "Helvetica Neue Light":[1, .25, 0], "Helvetica Neue Light Italic":[.9167, .25, 0], "Helvetica Neue Medium":[1, .25, 0], "Helvetica Neue Medium Italic":[1, .25, 0], "Helvetica Neue Thin":[1, .25, 0], "Helvetica Neue Thin Italic":[1, .25, 0], "Helvetica Neue UltraLight":[.9167, .25, 0], "Helvetica Neue UltraLight Italic":[.9167, .25, 0], "Helvetica Oblique":[.75, .25, 0], Herculanum:[.8333, .1667, 0], "Hiragino Kaku Gothic Pro W3":[.9167, .0833, 0], "Hiragino Kaku Gothic Pro W6":[.9167, .0833, 0], "Hiragino Kaku Gothic ProN W3":[.9167, .0833, 0], "Hiragino Kaku Gothic ProN W6":[.9167, .0833, 0], "Hiragino Kaku Gothic Std W8":[.9167, .0833, 0], "Hiragino Kaku Gothic StdN W8":[.9167, .0833, 0], "Hiragino Maru Gothic Pro W4":[.9167, .0833, 0], "Hiragino Maru Gothic ProN W4":[.9167, .0833, 0], "Hiragino Mincho Pro W3":[.9167, .0833, 0], "Hiragino Mincho Pro W6":[.9167, .0833, 0], "Hiragino Mincho ProN W3":[.9167, .0833, 0], "Hiragino Mincho ProN W6":[.9167, .0833, 0], "Hiragino Sans GB W3":[.9167, .0833, 0], "Hiragino Sans GB W6":[.9167, .0833, 0], "Hoefler Text":[.75, .25, 0], "Hoefler Text Black":[.75, .25, 0], "Hoefler Text Black Italic":[.75, .25, 0], "Hoefler Text Italic":[.75, .25, 0], "Hoefler Text Ornaments":[.8333, .1667, 0], Impact:[1, .25, 0], InaiMathi:[.8333, .4167, 0], "Iowan Old Style Black":[1, .3333, 0], "Iowan Old Style Black Italic":[1, .3333, 0], "Iowan Old Style Bold":[1, .3333, 0], "Iowan Old Style Bold Italic":[1, .3333, 0], "Iowan Old Style Italic":[1, .3333, 0], "Iowan Old Style Roman":[1, .3333, 0], "Iowan Old Style Titling":[1, .3333, 0], "ITF Devanagari Bold":[1.0833, .3333, 0], "ITF Devanagari Book":[1.0833, .3333, 0], "ITF Devanagari Demi":[1.0833, .3333, 0], "ITF Devanagari Light":[1.0833, .3333, 0], "ITF Devanagari Medium":[1.0833, .3333, 0], "Kailasa Regular":[1.0833, .5833, 0], "Kaiti SC Black":[1.0833, .3333, 0], "Kaiti SC Bold":[1.0833, .3333, 0], "Kaiti SC Regular":[1.0833, .3333, 0], "Kaiti TC Bold":[1.0833, .3333, 0], "Kaiti TC Regular":[1.0833, .3333, 0], "Kannada MN":[.9167, .25, 0], "Kannada MN Bold":[.9167, .25, 0], "Kannada Sangam MN":[1, .5833, 0], "Kannada Sangam MN Bold":[1, .5833, 0], "Kefa Bold":[.9167, .25, 0], "Kefa Regular":[.9167, .25, 0], "Khmer MN":[1, .8333, 0], "Khmer MN Bold":[1, .8333, 0], "Khmer Sangam MN":[1.0833, .8333, 0], "Kohinoor Devanagari Bold":[1.0833, .3333, 0], "Kohinoor Devanagari Book":[1.0833, .3333, 0], "Kohinoor Devanagari Demi":[1.0833, .3333, 0], "Kohinoor Devanagari Light":[1.0833, .3333, 0], "Kohinoor Devanagari Medium":[1.0833, .3333, 0], "Kokonor Regular":[1.0833, .5833, 0], Krungthep:[1, .25, 0], "KufiStandardGK Regular":[.9167, .5, 0], "Lantinghei SC Demibold":[1, .3333, 0], "Lantinghei SC Extralight":[1, .3333, 0], "Lantinghei SC Heavy":[1, .3333, 0], "Lantinghei TC Demibold":[1, .3333, 0], "Lantinghei TC Extralight":[1, .3333, 0], "Lantinghei TC Heavy":[1, .3333, 0], "Lao MN":[.9167, .4167, 0], "Lao MN Bold":[.9167, .4167, 0], "Lao Sangam MN":[1, .3333, 0], "Libian SC Regular":[1.0833, .3333, 0], "LiHei Pro":[.8333, .1667, 0], "LiSong Pro":[.8333, .1667, 0], "Lucida Grande":[1, .25, 0], "Lucida Grande Bold":[1, .25, 0], Luminari:[1, .3333, 0], "Malayalam MN":[1, .4167, 0], "Malayalam MN Bold":[1, .4167, 0], "Malayalam Sangam MN":[.8333, .4167, 0], "Malayalam Sangam MN Bold":[.8333, .4167, 0], "Marion Bold":[.6667, .3333, 0], "Marion Italic":[.6667, .3333, 0], "Marion Regular":[.6667, .3333, 0], "Marker Felt Thin":[.8333, .25, 0], "Marker Felt Wide":[.9167, .25, 0], "Menlo Bold":[.9167, .25, 0], "Menlo Bold Italic":[.9167, .25, 0], "Menlo Italic":[.9167, .25, 0], "Menlo Regular":[.9167, .25, 0], "Microsoft Sans Serif":[.9167, .25, 0], "Mishafi Gold Regular":[.75, .6667, 0], "Mishafi Regular":[.75, .6667, 0], Monaco:[1, .25, 0], Mshtakan:[.9167, .25, 0], "Mshtakan Bold":[.9167, .25, 0], "Mshtakan BoldOblique":[.9167, .25, 0], "Mshtakan Oblique":[.9167, .25, 0], "Muna Black":[.75, .3333, 0], "Muna Bold":[.75, .3333, 0], "Muna Regular":[.75, .3333, 0], "Myanmar MN":[1, .4167, 0], "Myanmar MN Bold":[1, .4167, 0], "Myanmar Sangam MN":[.9167, .4167, 0], "Nadeem Regular":[.9167, .4167, 0], "Nanum Brush Script":[.9167, .25, 0], "Nanum Pen Script":[.9167, .25, 0], NanumGothic:[.9167, .25, 0], "NanumGothic Bold":[.9167, .25, 0], "NanumGothic ExtraBold":[.9167, .25, 0], NanumMyeongjo:[.9167, .25, 0], "NanumMyeongjo Bold":[.9167, .25, 0], "NanumMyeongjo ExtraBold":[.9167, .25, 0], "New Peninim MT":[.75, .3333, 0], "New Peninim MT Bold":[.75, .3333, 0], "New Peninim MT Bold Inclined":[.75, .3333, 0], "New Peninim MT Inclined":[.75, .3333, 0], "Noteworthy Bold":[1.25, .3333, 0], "Noteworthy Light":[1.25, .3333, 0], "Optima Bold":[.9167, .25, 0], "Optima Bold Italic":[.9167, .25, 0], "Optima ExtraBlack":[1, .25, 0], "Optima Italic":[.9167, .25, 0], "Optima Regular":[.9167, .25, 0], "Oriya MN":[.9167, .25, 0], "Oriya MN Bold":[.9167, .25, 0], "Oriya Sangam MN":[.8333, .4167, 0], "Oriya Sangam MN Bold":[.8333, .4167, 0], Osaka:[1, .25, 0], "Osaka-Mono":[.8333, .1667, 0], Palatino:[.8333, .25, 0], "Palatino Bold":[.8333, .25, 0], "Palatino Bold Italic":[.8333, .25, 0], "Palatino Italic":[.8333, .25, 0], Papyrus:[.9167, .5833, 0], "Papyrus Condensed":[.9167, .5833, 0], "PCMyungjo Regular":[.8333, .25, 0], "Phosphate Inline":[.9167, .25, 0], "Phosphate Solid":[.9167, .25, 0], "PilGi Regular":[.8333, .25, 0], "Plantagenet Cherokee":[.6667, .25, 0], "PT Mono":[.9167, .25, 0], "PT Mono Bold":[.9167, .25, 0], "PT Sans":[.9167, .25, 0], "PT Sans Bold":[.9167, .25, 0], "PT Sans Bold Italic":[.9167, .25, 0], "PT Sans Caption":[.9167, .25, 0], "PT Sans Caption Bold":[.9167, .25, 0], "PT Sans Italic":[.9167, .25, 0], "PT Sans Narrow":[.9167, .25, 0], "PT Sans Narrow Bold":[.9167, .25, 0], "PT Serif":[1, .25, 0], "PT Serif Bold":[1, .25, 0], "PT Serif Bold Italic":[1, .25, 0], "PT Serif Caption":[1, .25, 0], "PT Serif Caption Italic":[1, .25, 0], "PT Serif Italic":[1, .25, 0], Raanana:[.75, .25, 0], "Raanana Bold":[.75, .25, 0], "Sana Regular":[.75, .25, 0], Sathu:[.9167, .3333, 0], "Savoye LET Plain CC.:1.0":[1.0833, .75, 0], "Savoye LET Plain:1.0":[.6667, .5, 0], Seravek:[.9167, .3333, 0], "Seravek Bold":[.9167, .3333, 0], "Seravek Bold Italic":[.9167, .3333, 0], "Seravek ExtraLight":[.9167, .3333, 0], "Seravek ExtraLight Italic":[.9167, .3333, 0], "Seravek Italic":[.9167, .3333, 0], "Seravek Light":[.9167, .3333, 0], "Seravek Light Italic":[.9167, .3333, 0], "Seravek Medium":[.9167, .3333, 0], "Seravek Medium Italic":[.9167, .3333, 0], "Shree Devanagari 714":[.9167, .4167, 0], "Shree Devanagari 714 Bold":[.9167, .4167, 0], "Shree Devanagari 714 Bold Italic":[.9167, .4167, 0], "Shree Devanagari 714 Italic":[.9167, .4167, 0], "SignPainter-HouseScript":[.6667, .1667, 0], Silom:[1, .3333, 0], "Sinhala MN":[.9167, .25, 0], "Sinhala MN Bold":[.9167, .25, 0], "Sinhala Sangam MN":[1.1667, .3333, 0], "Sinhala Sangam MN Bold":[1.1667, .3333, 0], "Skia Black":[.75, .25, 0], "Skia Black Condensed":[.75, .25, 0], "Skia Black Extended":[.75, .25, 0], "Skia Bold":[.75, .25, 0], "Skia Condensed":[.75, .25, 0], "Skia Extended":[.75, .25, 0], "Skia Light":[.75, .25, 0], "Skia Light Condensed":[.75, .25, 0], "Skia Light Extended":[.75, .25, 0], "Skia Regular":[.75, .25, 0], "Snell Roundhand":[.9167, .3333, 0], "Snell Roundhand Black":[.9167, .3333, 0], "Snell Roundhand Bold":[.9167, .3333, 0], "Songti SC Black":[1.0833, .3333, 0], "Songti SC Bold":[1.0833, .3333, 0], "Songti SC Light":[1.0833, .3333, 0], "Songti SC Regular":[1.0833, .3333, 0], "Songti TC Bold":[1.0833, .3333, 0], "Songti TC Light":[1.0833, .3333, 0], "Songti TC Regular":[1.0833, .3333, 0], STFangsong:[.8333, .1667, 0], STHeiti:[.8333, .1667, 0], "STIXGeneral-Bold":[1.0833, .4167, 0], "STIXGeneral-BoldItalic":[1.0833, .4167, 0], "STIXGeneral-Italic":[1.0833, .4167, 0], "STIXGeneral-Regular":[1.0833, .4167, 0], "STIXIntegralsD-Bold":[2.1667, .4167, 0], "STIXIntegralsD-Regular":[2.1667, .4167, 0], "STIXIntegralsSm-Bold":[1.0833, .4167, 0], "STIXIntegralsSm-Regular":[1.0833, .4167, 0], "STIXIntegralsUp-Bold":[1.0833, .4167, 0], "STIXIntegralsUp-Regular":[1.0833, .4167, 0], "STIXIntegralsUpD-Bold":[2.1667, .4167, 0], "STIXIntegralsUpD-Regular":[2.1667, .4167, 0], "STIXIntegralsUpSm-Bold":[1.0833, .4167, 0], "STIXIntegralsUpSm-Regular":[1.0833, .4167, 0], "STIXNonUnicode-Bold":[1.4167, .5833, 0], "STIXNonUnicode-BoldItalic":[1.4167, .5833, 0], "STIXNonUnicode-Italic":[1.4167, .5833, 0], "STIXNonUnicode-Regular":[1.4167, .5833, 0], "STIXSizeFiveSym-Regular":[1, .4167, 0], "STIXSizeFourSym-Bold":[2.5833, .5, 0], "STIXSizeFourSym-Regular":[2.5833, .5, 0], "STIXSizeOneSym-Bold":[1.5833, .3333, 0], "STIXSizeOneSym-Regular":[1.5833, .3333, 0], "STIXSizeThreeSym-Bold":[2.5833, .5, 0], "STIXSizeThreeSym-Regular":[2.5833, .5, 0], "STIXSizeTwoSym-Bold":[2.0833, .4167, 0], "STIXSizeTwoSym-Regular":[2.0833, .4167, 0], "STIXVariants-Bold":[1.0833, .4167, 0], "STIXVariants-Regular":[1.0833, .4167, 0], STKaiti:[.8333, .1667, 0], STSong:[.8333, .1667, 0], STXihei:[.8333, .1667, 0], "Sukhumvit Set Bold":[1.0833, .5, 0], "Sukhumvit Set Light":[1.0833, .5, 0], "Sukhumvit Set Medium":[1.0833, .5, 0], "Sukhumvit Set Semi Bold":[1.0833, .5, 0], "Sukhumvit Set Text":[1.0833, .5, 0], "Sukhumvit Set Thin":[1.0833, .5, 0], "Superclarendon Black":[1, .25, 0], "Superclarendon Black Italic":[1, .25, 0], "Superclarendon Bold":[1, .25, 0], "Superclarendon Bold Italic":[1, .25, 0], "Superclarendon Italic":[1, .25, 0], "Superclarendon Light":[1, .25, 0], "Superclarendon Light Italic":[1, .25, 0], "Superclarendon Regular":[1, .25, 0], Symbol:[.6667, .3333, 0], "System Font Bold":[1, .25, 0], "System Font Bold Italic":[1, .25, 0], "System Font Heavy":[1, .25, 0], "System Font Italic":[1, .25, 0], "System Font Light":[1, .25, 0], "System Font Medium Italic P4":[1, .25, 0], "System Font Medium P4":[1, .25, 0], "System Font Regular":[1, .25, 0], "System Font Thin":[1, .25, 0], "System Font UltraLight":[1, .25, 0], Tahoma:[1, .1667, 0], "Tahoma Negreta":[1, .1667, 0], "Tamil MN":[.9167, .25, 0], "Tamil MN Bold":[.9167, .25, 0], "Tamil Sangam MN":[.75, .25, 0], "Tamil Sangam MN Bold":[.75, .25, 0], "Telugu MN":[.9167, .25, 0], "Telugu MN Bold":[.9167, .25, 0], "Telugu Sangam MN":[1, .5833, 0], "Telugu Sangam MN Bold":[1, .5833, 0], Thonburi:[1.0833, .25, 0], "Thonburi Bold":[1.0833, .25, 0], "Thonburi Light":[1.0833, .25, 0], "Times Bold":[.75, .25, 0], "Times Bold Italic":[.75, .25, 0], "Times Italic":[.75, .25, 0], "Times New Roman":[.9167, .25, 0], "Times New Roman Bold":[.9167, .25, 0], "Times New Roman Bold Italic":[.9167, .25, 0], "Times New Roman Italic":[.9167, .25, 0], "Times Roman":[.75, .25, 0], Trattatello:[1.1667, .6667, 0], "Trebuchet MS":[.9167, .25, 0], "Trebuchet MS Bold":[.9167, .25, 0], "Trebuchet MS Bold Italic":[.9167, .25, 0], "Trebuchet MS Italic":[.9167, .25, 0], Verdana:[1, .25, 0], "Verdana Bold":[1, .25, 0], "Verdana Bold Italic":[1, .25, 0], "Verdana Italic":[1, .25, 0], "Waseem Light":[.9167, .5833, 0], "Waseem Regular":[.9167, .5833, 0], "Wawati SC Regular":[1.0833, .3333, 0], "Wawati TC Regular":[1.0833, .3333, 0], Webdings:[.8333, .1667, 0], "Weibei SC Bold":[1.0833, .3333, 0], "Weibei TC Bold":[1.0833, .3333, 0], Wingdings:[.9167, .25, 0], "Wingdings 2":[.8333, .25, 0], "Wingdings 3":[.9167, .25, 0], "Xingkai SC Bold":[1.0833, .3333, 0], "Xingkai SC Light":[1.0833, .3333, 0], "Yuanti SC Bold":[1.0833, .3333, 0], "Yuanti SC Light":[1.0833, .3333, 0], "Yuanti SC Regular":[1.0833, .3333, 0], "YuGothic Bold":[.9167, .0833, 0], "YuGothic Medium":[.9167, .0833, 0], "YuMincho Demibold":[.9167, .0833, 0], "YuMincho Medium":[.9167, .0833, 0], "Yuppy SC Regular":[1.0833, .3333, 0], "Yuppy TC Regular":[1.0833, .3333, 0], "Zapf Dingbats":[.8333, .1667, 0], Zapfino:[1.9167, 1.5, 0]}; this.DEVICE_FONT_METRICS_LINUX = {__proto__:this.DEVICE_FONT_METRICS_BUILTIN, KacstFarsi:[1.0417, .5208, 0], Meera:[.651, .4557, 0], FreeMono:[.7812, .1953, 0], Loma:[1.1719, .4557, 0], "Century Schoolbook L":[.9766, .3255, 0], KacstTitleL:[1.0417, .5208, 0], Garuda:[1.3021, .5859, 0], Rekha:[1.1068, .2604, 0], Purisa:[1.1068, .5208, 0], "DejaVu Sans Mono":[.9115, .2604, 0], Vemana2000:[.9115, .8464, 0], KacstOffice:[1.0417, .5208, 0], Umpush:[1.237, .651, 0], OpenSymbol:[.7812, .1953, 0], Sawasdee:[1.1068, .4557, 0], "URW Palladio L":[.9766, .3255, 0], FreeSerif:[.9115, .3255, 0], KacstDigital:[1.0417, .5208, 0], "Ubuntu Condensed":[.9115, .1953, 0], mry_KacstQurn:[1.4323, .7161, 0], "URW Gothic L":[.9766, .2604, 0], Dingbats:[.8464, .1953, 0], "URW Chancery L":[.9766, .3255, 0], "Phetsarath OT":[1.1068, .5208, 0], "Tlwg Typist":[.9115, .3906, 0], KacstLetter:[1.0417, .5208, 0], utkal:[1.1719, .651, 0], Norasi:[1.237, .5208, 0], KacstOne:[1.237, .651, 0], "Liberation Sans Narrow":[.9115, .2604, 0], Symbol:[1.0417, .3255, 0], NanumMyeongjo:[.9115, .2604, 0], Untitled1:[.651, .5859, 0], "Lohit Gujarati":[.9115, .3906, 0], "Liberation Mono":[.8464, .3255, 0], KacstArt:[1.0417, .5208, 0], Mallige:[.9766, .651, 0], "Bitstream Charter":[.9766, .2604, 0], NanumGothic:[.9115, .2604, 0], "Liberation Serif":[.9115, .2604, 0], Ubuntu:[.9115, .1953, 0], "Courier 10 Pitch":[.8464, .3255, 0], "Nimbus Sans L":[.9766, .3255, 0], TakaoPGothic:[.9115, .1953, 0], "WenQuanYi Micro Hei Mono":[.9766, .2604, 0], "DejaVu Sans":[.9115, .2604, 0], Kedage:[.9766, .651, 0], Kinnari:[1.3021, .5208, 0], TlwgMono:[.8464, .3906, 0], "Standard Symbols L":[1.0417, .3255, 0], "Lohit Punjabi":[1.1719, .651, 0], "Nimbus Mono L":[.8464, .3255, 0], Rachana:[.651, .5859, 0], Waree:[1.237, .4557, 0], KacstPoster:[1.0417, .5208, 0], "Khmer OS":[1.3021, .7161, 0], FreeSans:[.9766, .3255, 0], gargi:[.9115, .3255, 0], "Nimbus Roman No9 L":[.9115, .3255, 0], "DejaVu Serif":[.9115, .2604, 0], "WenQuanYi Micro Hei":[.9766, .2604, 0], "Ubuntu Light":[.9115, .1953, 0], TlwgTypewriter:[.9115, .3906, 0], KacstPen:[1.0417, .5208, 0], "Tlwg Typo":[.9115, .3906, 0], "Mukti Narrow":[1.237, .4557, 0], "Ubuntu Mono":[.8464, .1953, 0], "Lohit Bengali":[.9766, .4557, 0], "Liberation Sans":[.9115, .2604, 0], KacstDecorative:[1.1068, .5208, 0], "Khmer OS System":[1.237, .5859, 0], Saab:[.9766, .651, 0], KacstTitle:[1.0417, .5208, 0], "Mukti Narrow Bold":[1.237, .4557, 0], "Lohit Hindi":[.9766, .5208, 0], KacstQurn:[1.0417, .5208, 0], "URW Bookman L":[.9766, .3255, 0], KacstNaskh:[1.0417, .5208, 0], KacstScreen:[1.0417, .5208, 0], Pothana2000:[.9115, .8464, 0], "Lohit Tamil":[.8464, .3906, 0], KacstBook:[1.0417, .5208, 0], Sans:[.9115, .2604, 0], Times:[.9115, .3255, 0], Monospace:[.9115, .2604, 0]}; var a = self.navigator.userAgent; -1 < a.indexOf("Windows") ? this._deviceFontMetrics = this.DEVICE_FONT_METRICS_WIN : /(Macintosh|iPad|iPhone|iPod|Android)/.test(a) ? (this._deviceFontMetrics = this.DEVICE_FONT_METRICS_MAC, this.DEFAULT_FONT_SANS = "Helvetica", this.DEFAULT_FONT_SERIF = "Times Roman", this.DEFAULT_FONT_TYPEWRITER = "Courier") : (this._deviceFontMetrics = this.DEVICE_FONT_METRICS_LINUX, this.DEFAULT_FONT_SANS = "Sans", this.DEFAULT_FONT_SERIF = "Times", this.DEFAULT_FONT_TYPEWRITER = "Monospace"); var a = this._deviceFontMetrics, b; for (b in a) { a[b.toLowerCase()] = a[b]; } }; c.classSymbols = null; c.instanceSymbols = null; return c; }(b.ASObject); u.Font = c; c = function(a) { function b(c, d) { a.call(this, c, d.flash.text.Font.axClass); } __extends(b, a); b.FromData = function(a, c) { var d = new b(a, c.sec); d.ready = !a.metrics; d.name = a.name; d.data = {id:a.id}; d.bold = a.bold; d.italic = a.italic; d.originalSize = a.originalSize; d.codes = a.codes; d.metrics = a.metrics; d.syncId = q.display.DisplayObject.getNextSyncID(); return d; }; Object.defineProperty(b.prototype, "resolveAssetCallback", {get:function() { return this._unboundResolveAssetCallback.bind(this); }, enumerable:!0, configurable:!0}); b.prototype._unboundResolveAssetCallback = function(a) { this.ready = !0; }; return b; }(f.Timeline.Symbol); u.FontSymbol = c; })(q.text || (q.text = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(f) { (function(f) { var k = function(b) { function d() { b.call(this); } __extends(d, b); d.fromNumber = function(a) { switch(a) { case 0: return d.NONE; case 1: return d.PIXEL; case 2: return d.SUBPIXEL; default: return null; } }; d.toNumber = function(a) { switch(a) { case d.NONE: return 0; case d.PIXEL: return 1; case d.SUBPIXEL: return 2; default: return -1; } }; d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; d.NONE = "none"; d.PIXEL = "pixel"; d.SUBPIXEL = "subpixel"; return d; }(b.ASObject); f.GridFitType = k; })(f.text || (f.text = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(b) { (function(f) { var g = function(b) { function d() { b.call(this); this._fieldsInitialized || this._initializeFields(); } __extends(d, b); d.prototype.applySymbol = function() { this._initializeFields(); this._setStaticContentFromSymbol(this._symbol); }; d.prototype._canHaveTextContent = function() { return !0; }; d.prototype._getTextContent = function() { return this._textContent; }; Object.defineProperty(d.prototype, "text", {get:function() { return this._textContent.plainText; }, enumerable:!0, configurable:!0}); d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; return d; }(b.display.DisplayObject); f.StaticText = g; })(b.text || (b.text = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(q) { (function(u) { function k(a, b, d) { for (;b < d;) { switch(a[b]) { case " ": ; case "\n": ; case "\r": ; case "\t": b++; break; default: return b; } } return d; } var r = f.AVMX.axCoerceString, d = function(a) { function c() { a.call(this); this.clear(); } __extends(c, a); Object.defineProperty(c.prototype, "styleNames", {get:function() { var a = this._rules, b = [], c; for (c in a) { a[c] && b.push(c); } return this.sec.createArrayUnsafe(b); }, enumerable:!0, configurable:!0}); c.prototype.getStyle = function(a) { a = r(a); return (a = this._rules[a.toLowerCase()]) ? b.transformJSValueToAS(this.sec, a, !1) : this.sec.createObject(); }; c.prototype.applyStyle = function(a, b) { b = r(b); var c = this._rules[b.toLowerCase()]; c && a.transform(c); }; c.prototype.setStyle = function(a, c) { "object" === typeof c && (a = r(a), this._rules[a.toLowerCase()] = b.transformASValueToJS(this.sec, c, !1)); }; c.prototype.hasStyle = function(a) { return !!this._rules[a.toLowerCase()]; }; c.prototype.clear = function() { this._rules = Object.create(null); }; c.prototype.transform = function(a) { if ("object" !== typeof a) { return null; } a = b.transformASValueToJS(this.sec, a, !1); var c = new this.sec.flash.text.TextFormat; c.transform(a); return c; }; c.prototype.parseCSS = function(a) { a = r(a) + ""; for (var b = a.length, c = k(a, 0, b), d = {}, f = [], h = !1, g = "";c < b;) { var v = a[c++]; switch(v) { case "{": h = !1; f.push(g); a: { var g = a, v = b, q = d, u = {}, K = "", z = !1, A = !1, c = k(g, c, v); b: for (;c < v;) { var B = g[c++]; switch(B) { case "}": if (0 < K.length) { c = -1; break a; } break b; case ":": var x = "", C = K, K = "", A = z = !1; for (;c < v;) { switch(B = g[c], B) { case ";": ; case "\r": ; case "\n": c++, c = k(g, c, v); case "}": u[C] = x; continue b; default: c++, x += B; } } c = -1; break a; case "-": ":" === g[c] ? K += B : A = !0; break; case " ": ; case "\n": ; case "\r": ; case "\t": z = !0; K += B; A = !1; break; default: if (z) { c = -1; break a; } A && (B = B.toUpperCase(), A = !1); K += B; } } if ("}" !== g[c - 1]) { c = -1; } else { for (g = 0;g < f.length;g++) { q[f[g]] = u; } } } if (-1 === c) { return; } f = []; g = ""; c = k(a, c, b); break; case ",": h = !1; f.push(g); g = ""; c = k(a, c, b); break; case " ": ; case "\n": ; case "\r": ; case "\t": h = !0; c = k(a, c, b); break; default: if (h) { return; } g += v; } } a = this._rules; for (g in d) { a[g.toLowerCase()] = d[g]; } }; c.classInitializer = null; c.classSymbols = null; c.instanceSymbols = null; return c; }(q.events.EventDispatcher); u.StyleSheet = d; })(q.text || (q.text = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(f) { (function(f) { var k = function(b) { function d() { b.call(this); } __extends(d, b); d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; d.LCD = "lcd"; d.CRT = "crt"; d.DEFAULT = "default"; return d; }(b.ASObject); f.TextDisplayMode = k; })(f.text || (f.text = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(g) { (function(g) { (function(u) { var k = f.Debug.notImplemented, r = f.Debug.warning, d = f.Debug.somewhatImplemented, a = f.AVMX.axCoerceString, c = f.NumberUtilities.clamp, e = function(e) { function g() { e.call(this); this._fieldsInitialized || this._initializeFields(); this._symbol || this._setFillAndLineBoundsFromWidthAndHeight(2E3, 2E3); } __extends(g, e); g.prototype.applySymbol = function() { this._initializeFields(); var a = this._symbol; this._setFillAndLineBoundsFromSymbol(a); var b = this._textContent.defaultTextFormat; b.color = a.color; b.size = a.size / 20 | 0; b.font = a.face; b.bold = a.bold; b.italic = a.italic; b.align = a.align; b.leftMargin = a.leftMargin / 20 | 0; b.rightMargin = a.rightMargin / 20 | 0; b.indent = a.indent / 20 | 0; b.leading = a.leading / 20 | 0; this._multiline = a.multiline; this._embedFonts = a.embedFonts; this._selectable = a.selectable; this._displayAsPassword = a.displayAsPassword; this._type = a.type; this._maxChars = a.maxChars; a.border && (this.border = this.background = !0); a.html ? this.htmlText = a.initialText : this.text = a.initialText; this.wordWrap = a.wordWrap; this.autoSize = a.autoSize; }; g.prototype._initializeFields = function() { e.prototype._initializeFields.call(this); this._alwaysShowSelection = !1; this._antiAliasType = u.AntiAliasType.NORMAL; this._autoSize = u.TextFieldAutoSize.NONE; this._background = !1; this._backgroundColor = 4294967295; this._border = !1; this._borderColor = 255; this._bottomScrollV = 1; this._caretIndex = 0; this._embedFonts = this._condenseWhite = !1; this._gridFitType = u.GridFitType.PIXEL; this._htmlText = ""; this._length = 0; this._textInteractionMode = u.TextInteractionMode.NORMAL; this._maxScrollH = this._maxChars = 0; this._maxScrollV = 1; this._multiline = this._mouseWheelEnabled = !1; this._numLines = 1; this._displayAsPassword = !1; this._restrict = null; this._selectable = !0; this._selectedText = ""; this._sharpness = this._selectionEndIndex = this._selectionBeginIndex = 0; this._textColor = this._styleSheet = null; this._thickness = this._textWidth = this._textHeight = 0; this._type = u.TextFieldType.DYNAMIC; this._useRichTextClipboard = !1; this._lineMetricsData = null; var a = new this.sec.flash.text.TextFormat(this.sec.flash.text.Font.axClass.DEFAULT_FONT_SERIF, 12, 0, !1, !1, !1, "", "", u.TextFormatAlign.LEFT); this._textContent = new f.TextContent(this.sec, a); }; g.prototype._setFillAndLineBoundsFromSymbol = function(a) { e.prototype._setFillAndLineBoundsFromSymbol.call(this, a); this._textContent.bounds = this._lineBounds; this._invalidateContent(); }; g.prototype._setFillAndLineBoundsFromWidthAndHeight = function(a, b) { e.prototype._setFillAndLineBoundsFromWidthAndHeight.call(this, a, b); this._textContent.bounds = this._lineBounds; this._invalidateContent(); }; g.prototype._canHaveTextContent = function() { return !0; }; g.prototype._getTextContent = function() { return this._textContent; }; g.prototype._getContentBounds = function(a) { void 0 === a && (a = !0); this._ensureLineMetrics(); return e.prototype._getContentBounds.call(this, a); }; g.prototype._containsPointDirectly = function(a, b, c, d) { return !0; }; g.prototype._invalidateContent = function() { this._textContent.flags & f.TextContentFlags.Dirty && this._setFlags(8388608); }; g.isFontCompatible = function(b, c) { b = a(b); c = a(c); var d = u.Font.getByNameAndStyle(b, c); return d ? d.fontStyle === c : !1; }; Object.defineProperty(g.prototype, "alwaysShowSelection", {get:function() { return this._alwaysShowSelection; }, set:function(a) { this._alwaysShowSelection = !!a; }, enumerable:!0, configurable:!0}); Object.defineProperty(g.prototype, "antiAliasType", {get:function() { return this._antiAliasType; }, set:function(c) { f.isNullOrUndefined(c) && this.sec.throwError("TypeError", b.Errors.NullPointerError, "antiAliasType"); c = a(c); 0 > u.AntiAliasType.toNumber(c) && this.sec.throwError("ArgumentError", b.Errors.InvalidParamError, "antiAliasType"); this._antiAliasType = c; }, enumerable:!0, configurable:!0}); Object.defineProperty(g.prototype, "autoSize", {get:function() { return this._autoSize; }, set:function(c) { f.isNullOrUndefined(c) && this.sec.throwError("TypeError", b.Errors.NullPointerError, "autoSize"); c = a(c); c !== this._autoSize && (0 > u.TextFieldAutoSize.toNumber(c) && this.sec.throwError("ArgumentError", b.Errors.InvalidParamError, "autoSize"), this._autoSize = c, this._textContent.autoSize = u.TextFieldAutoSize.toNumber(c), this._invalidateContent(), this._ensureLineMetrics()); }, enumerable:!0, configurable:!0}); Object.defineProperty(g.prototype, "background", {get:function() { return this._background; }, set:function(a) { a = !!a; a !== this._background && (this._background = a, this._textContent.backgroundColor = a ? this._backgroundColor : 0, this._setDirtyFlags(8388608)); }, enumerable:!0, configurable:!0}); Object.defineProperty(g.prototype, "backgroundColor", {get:function() { return this._backgroundColor >> 8; }, set:function(a) { a = (a << 8 | 255) >>> 0; a !== this._backgroundColor && (this._backgroundColor = a, this._background && (this._textContent.backgroundColor = a, this._setDirtyFlags(8388608))); }, enumerable:!0, configurable:!0}); Object.defineProperty(g.prototype, "border", {get:function() { return this._border; }, set:function(a) { a = !!a; a !== this._border && (this._border = a, this._textContent.borderColor = a ? this._borderColor : 0, this._setDirtyFlags(8388608)); }, enumerable:!0, configurable:!0}); Object.defineProperty(g.prototype, "borderColor", {get:function() { return this._borderColor >> 8; }, set:function(a) { a = (a << 8 | 255) >>> 0; a !== this._borderColor && (this._borderColor = a, this._border && (this._textContent.borderColor = a, this._setDirtyFlags(8388608))); }, enumerable:!0, configurable:!0}); Object.defineProperty(g.prototype, "bottomScrollV", {get:function() { return this._bottomScrollV; }, enumerable:!0, configurable:!0}); Object.defineProperty(g.prototype, "caretIndex", {get:function() { k("public flash.text.TextField::get caretIndex"); }, enumerable:!0, configurable:!0}); Object.defineProperty(g.prototype, "condenseWhite", {get:function() { return this._condenseWhite; }, set:function(a) { this._condenseWhite = !!a; }, enumerable:!0, configurable:!0}); Object.defineProperty(g.prototype, "defaultTextFormat", {get:function() { return this._textContent.defaultTextFormat.clone(); }, set:function(a) { f.isNullOrUndefined(a) && this.sec.throwError("TypeError", b.Errors.NullPointerError, "format"); var c = this._textContent.defaultTextFormat; c.merge(a); null === c.color ? c.color = this._textColor : this._textColor = +c.color; }, enumerable:!0, configurable:!0}); Object.defineProperty(g.prototype, "embedFonts", {get:function() { return this._embedFonts; }, set:function(a) { this._embedFonts = !!a; }, enumerable:!0, configurable:!0}); Object.defineProperty(g.prototype, "gridFitType", {get:function() { return this._gridFitType; }, set:function(c) { f.isNullOrUndefined(c) && this.sec.throwError("TypeError", b.Errors.NullPointerError, "gridFitType"); this._gridFitType = c = a(c); }, enumerable:!0, configurable:!0}); Object.defineProperty(g.prototype, "htmlText", {get:function() { return this._htmlText; }, set:function(c) { f.isNullOrUndefined(c) && this.sec.throwError("TypeError", b.Errors.NullPointerError, "value"); c = a(c); this._symbol && (this._textContent.defaultTextFormat.bold = !1, this._textContent.defaultTextFormat.italic = !1); this._textContent.parseHtml(c, this._styleSheet, this._multiline); this._htmlText = c; this._invalidateContent(); this._ensureLineMetrics(); }, enumerable:!0, configurable:!0}); Object.defineProperty(g.prototype, "length", {get:function() { return this._length; }, enumerable:!0, configurable:!0}); Object.defineProperty(g.prototype, "textInteractionMode", {get:function() { k("public flash.text.TextField::get textInteractionMode"); }, enumerable:!0, configurable:!0}); Object.defineProperty(g.prototype, "maxChars", {get:function() { return this._maxChars; }, set:function(a) { this._maxChars = a | 0; }, enumerable:!0, configurable:!0}); Object.defineProperty(g.prototype, "maxScrollH", {get:function() { this._ensureLineMetrics(); return this._maxScrollH; }, enumerable:!0, configurable:!0}); Object.defineProperty(g.prototype, "maxScrollV", {get:function() { this._ensureLineMetrics(); return this._maxScrollV; }, enumerable:!0, configurable:!0}); Object.defineProperty(g.prototype, "mouseWheelEnabled", {get:function() { return this._mouseWheelEnabled; }, set:function(a) { d("public flash.text.TextField::set mouseWheelEnabled"); this._mouseWheelEnabled = !!a; }, enumerable:!0, configurable:!0}); Object.defineProperty(g.prototype, "multiline", {get:function() { return this._multiline; }, set:function(a) { this._multiline = !!a; }, enumerable:!0, configurable:!0}); Object.defineProperty(g.prototype, "numLines", {get:function() { return this._numLines; }, enumerable:!0, configurable:!0}); Object.defineProperty(g.prototype, "displayAsPassword", {get:function() { return this._displayAsPassword; }, set:function(a) { d("public flash.text.TextField::set displayAsPassword"); this._displayAsPassword = !!a; }, enumerable:!0, configurable:!0}); Object.defineProperty(g.prototype, "restrict", {get:function() { return this._restrict; }, set:function(b) { d("public flash.text.TextField::set restrict"); this._restrict = a(b); }, enumerable:!0, configurable:!0}); Object.defineProperty(g.prototype, "scrollH", {get:function() { return this._textContent.scrollH; }, set:function(a) { a |= 0; this._ensureLineMetrics(); this._textContent.scrollH = c(Math.abs(a), 0, this._maxScrollH); this._invalidateContent(); }, enumerable:!0, configurable:!0}); Object.defineProperty(g.prototype, "scrollV", {get:function() { return this._textContent.scrollV; }, set:function(a) { a |= 0; this._ensureLineMetrics(); this._textContent.scrollV = c(a, 1, this._maxScrollV); this._invalidateContent(); }, enumerable:!0, configurable:!0}); Object.defineProperty(g.prototype, "selectable", {get:function() { return this._selectable; }, set:function(a) { this._selectable = !!a; }, enumerable:!0, configurable:!0}); Object.defineProperty(g.prototype, "selectedText", {get:function() { return this._textContent.plainText.substring(this._selectionBeginIndex, this._selectionEndIndex); }, enumerable:!0, configurable:!0}); Object.defineProperty(g.prototype, "selectionBeginIndex", {get:function() { return this._selectionBeginIndex; }, enumerable:!0, configurable:!0}); Object.defineProperty(g.prototype, "selectionEndIndex", {get:function() { return this._selectionEndIndex; }, enumerable:!0, configurable:!0}); Object.defineProperty(g.prototype, "sharpness", {get:function() { return this._sharpness; }, set:function(a) { this._sharpness = c(+a, -400, 400); }, enumerable:!0, configurable:!0}); Object.defineProperty(g.prototype, "styleSheet", {get:function() { return this._styleSheet; }, set:function(a) { this._styleSheet = a; }, enumerable:!0, configurable:!0}); Object.defineProperty(g.prototype, "text", {get:function() { return this._textContent.plainText; }, set:function(c) { f.isNullOrUndefined(c) && this.sec.throwError("TypeError", b.Errors.NullPointerError, "value"); c = a(c) || ""; c !== this._textContent.plainText && (this._textContent.plainText = c, this._invalidateContent(), this._ensureLineMetrics()); }, enumerable:!0, configurable:!0}); Object.defineProperty(g.prototype, "textColor", {get:function() { return null === this._textColor ? +this._textContent.defaultTextFormat.color : this._textColor; }, set:function(a) { this._textColor = this._textContent.defaultTextFormat.color = a >>> 0; }, enumerable:!0, configurable:!0}); Object.defineProperty(g.prototype, "textHeight", {get:function() { this._ensureLineMetrics(); return this._textHeight / 20 | 0; }, enumerable:!0, configurable:!0}); Object.defineProperty(g.prototype, "textWidth", {get:function() { this._ensureLineMetrics(); return this._textWidth / 20 | 0; }, enumerable:!0, configurable:!0}); Object.defineProperty(g.prototype, "thickness", {get:function() { return this._thickness; }, set:function(a) { this._thickness = c(+a, -200, 200); }, enumerable:!0, configurable:!0}); Object.defineProperty(g.prototype, "type", {get:function() { return this._type; }, set:function(b) { this._type = a(b); }, enumerable:!0, configurable:!0}); Object.defineProperty(g.prototype, "wordWrap", {get:function() { return this._textContent.wordWrap; }, set:function(a) { a = !!a; a !== this._textContent.wordWrap && (this._textContent.wordWrap = !!a, this._invalidateContent()); }, enumerable:!0, configurable:!0}); Object.defineProperty(g.prototype, "useRichTextClipboard", {get:function() { k("public flash.text.TextField::get useRichTextClipboard"); }, set:function(a) { k("public flash.text.TextField::set useRichTextClipboard"); }, enumerable:!0, configurable:!0}); g.prototype.copyRichText = function() { k("public flash.text.TextField::copyRichText"); }; g.prototype.pasteRichText = function(b) { a(b); k("public flash.text.TextField::pasteRichText"); }; g.prototype.getXMLText = function(a, b) { k("public flash.text.TextField::getXMLText"); return ""; }; g.prototype.insertXMLText = function(b, c, d, e) { a(d); k("public flash.text.TextField::insertXMLText"); }; g.prototype._ensureLineMetrics = function() { if (this._hasFlags(8388608)) { var a = this.sec.player.syncDisplayObject(this, !1), b = a.readInt(), c = a.readInt(), d = a.readInt(), e = this._lineBounds; this._autoSize !== u.TextFieldAutoSize.NONE && (e.xMin = e.xMin = d, e.xMax = e.xMax = d + b + 80, e.yMax = e.yMax = e.yMin + c + 80); this._textWidth = b; this._textHeight = c; this._numLines = a.readInt(); this._lineMetricsData = a; if (this._textHeight > e.height) { c = b = 1; a.position = 16; for (var f = d = 0;f < this._numLines;f++) { a.position += 8; var g = a.readInt(), l = a.readInt(), n = a.readInt(), g = g + l + n; d > e.height / 20 ? b++ : c++; d += g; } this._maxScrollV = b; this._bottomScrollV = c; } this._maxScrollH = this._textWidth > e.width ? (this._textWidth + 80 - e.width) / 20 | 0 : 0; } }; g.prototype.appendText = function(b) { this._textContent.appendText(a(b)); }; g.prototype.getCharBoundaries = function(a) { a |= 0; d("public flash.text.TextField::getCharBoundaries"); var b = this.textHeight, c = .75 * b; return new this.sec.flash.geom.Rectangle(a * c, 0, c, b); }; g.prototype.getCharIndexAtPoint = function(a, b) { k("public flash.text.TextField::getCharIndexAtPoint"); }; g.prototype.getFirstCharInParagraph = function(a) { k("public flash.text.TextField::getFirstCharInParagraph"); }; g.prototype.getLineIndexAtPoint = function(a, b) { k("public flash.text.TextField::getLineIndexAtPoint"); }; g.prototype.getLineIndexOfChar = function(a) { k("public flash.text.TextField::getLineIndexOfChar"); }; g.prototype.getLineLength = function(a) { k("public flash.text.TextField::getLineLength"); }; g.prototype.getLineMetrics = function() { var a; a = 0; (0 > a || a > this._numLines - 1) && this.sec.throwError("RangeError", b.Errors.ParamRangeError); this._ensureLineMetrics(); var c = this._lineMetricsData; c.position = 16 + 20 * a; a = c.readInt() + this._lineBounds.xMin + 2; var d = c.readInt(), e = c.readInt(), f = c.readInt(), c = c.readInt(); return new this.sec.flash.text.TextLineMetrics(a, d, e + f + c, e, f, c); }; g.prototype.getLineOffset = function(a) { a |= 0; var c = this._textContent.plainText.split("\r"); (0 > a || a >= c.length) && this.sec.throwError("RangeError", b.Errors.ParamRangeError); for (var d = 0, e = 0;e < a;e++) { d += c[e].length + 1; } return d; }; g.prototype.getLineText = function(a) { a |= 0; var c = this._textContent.plainText.split("\r"); (0 > a || a >= c.length) && this.sec.throwError("RangeError", b.Errors.ParamRangeError); return c[a]; }; g.prototype.getParagraphLength = function(a) { k("public flash.text.TextField::getParagraphLength"); }; g.prototype.getTextFormat = function(a, c) { void 0 === a && (a = -1); void 0 === c && (c = -1); a |= 0; c |= 0; var d = this._textContent.plainText.length; 0 > a ? (a = 0, 0 > c && (c = d)) : 0 > c && (c = a + 1); (c <= a || c > d) && this.sec.throwError("RangeError", b.Errors.ParamRangeError); for (var e, d = this._textContent.textRuns, f = 0;f < d.length;f++) { var g = d[f]; g.intersects(a, c) && (e ? e.intersect(g.textFormat) : e = g.textFormat.clone()); } return e; }; g.prototype.getTextRuns = function(a, b) { void 0 === a && (a = 0); void 0 === b && (b = 2147483647); for (var c = this._textContent.textRuns, d = [], e = 0;e < c.length;e++) { var f = c[e]; f.beginIndex >= a && f.endIndex <= b && d.push(f.clone()); } return this.sec.createArrayUnsafe(d); }; g.prototype.getRawText = function() { k("public flash.text.TextField::getRawText"); }; g.prototype.replaceSelectedText = function(a) { this.replaceText(this._selectionBeginIndex, this._selectionEndIndex, "" + a); }; g.prototype.replaceText = function(a, b, c) { a |= 0; b |= 0; 0 > a || 0 > b || (this._textContent.replaceText(a, b, "" + c), this._invalidateContent(), this._ensureLineMetrics()); }; g.prototype.setSelection = function(a, b) { this._selectionBeginIndex = a | 0; this._selectionEndIndex = b | 0; }; g.prototype.setTextFormat = function(a, c, d) { void 0 === c && (c = -1); void 0 === d && (d = -1); c |= 0; d |= 0; var e = this._textContent.plainText, f = e.length; 0 > c ? (c = 0, 0 > d && (d = f)) : 0 > d && (d = c + 1); (c > f || d > f) && this.sec.throwError("RangeError", b.Errors.ParamRangeError); d <= c || (e = e.substring(c, d), this._textContent.replaceText(c, d, e, a), this._invalidateContent(), this._ensureLineMetrics()); }; g.prototype.getImageReference = function(a) { k("public flash.text.TextField::getImageReference"); }; g.classSymbols = null; g.instanceSymbols = null; g.classInitializer = null; return g; }(g.display.InteractiveObject); u.TextField = e; e = function(a) { function b(c, d) { a.call(this, c, d.flash.text.TextField.axClass, !0); this.size = this.color = 0; this.face = ""; this.italic = this.bold = !1; this.align = g.text.TextFormatAlign.LEFT; this.leading = this.indent = this.rightMargin = this.leftMargin = 0; this.embedFonts = this.wordWrap = this.multiline = !1; this.selectable = !0; this.border = !1; this.initialText = ""; this.displayAsPassword = this.html = !1; this.type = g.text.TextFieldType.DYNAMIC; this.maxChars = 0; this.autoSize = g.text.TextFieldAutoSize.NONE; this.textContent = this.variableName = null; } __extends(b, a); b.FromTextData = function(a, c) { var d = c.sec, e = new b(a, d); e._setBoundsFromData(a); var l = a.tag; if (a.static && (e.dynamic = !1, e.symbolClass = d.flash.text.StaticText.axClass, l.initialText)) { var n = new f.TextContent(d); n.bounds = e.lineBounds; n.parseHtml(l.initialText, null, !1); n.matrix = new d.flash.geom.Matrix; n.matrix.copyFromUntyped(a.matrix); n.coords = a.coords; e.textContent = n; } l.hasColor && (e.color = l.color >>> 8); l.hasFont && (e.size = l.fontHeight, (d = c.getSymbolById(l.fontId)) ? (e.face = l.useOutlines ? d.name : "swffont" + d.syncId, e.bold = d.bold, e.italic = d.italic) : r("Font " + l.fontId + " is not defined.")); l.hasLayout && (e.align = g.text.TextFormatAlign.fromNumber(l.align), e.leftMargin = l.leftMargin, e.rightMargin = l.rightMargin, e.indent = l.indent, e.leading = l.leading); e.multiline = !!l.multiline; e.wordWrap = !!l.wordWrap; e.embedFonts = !!l.useOutlines; e.selectable = !l.noSelect; e.border = !!l.border; l.hasText && (e.initialText = l.initialText); e.html = !!l.html; e.displayAsPassword = !!l.password; e.type = l.readonly ? g.text.TextFieldType.DYNAMIC : g.text.TextFieldType.INPUT; l.hasMaxLength && (e.maxChars = l.maxLength); e.autoSize = l.autoSize ? g.text.TextFieldAutoSize.LEFT : g.text.TextFieldAutoSize.NONE; e.variableName = l.variableName; return e; }; b.FromLabelData = function(a, c) { for (var d = a.fillBounds, e = a.records, g = a.coords = [], n = "", k = 12, r = "Times Roman", q = !1, u = !1, x = 0, C = 0, y = 0, D, G = 0;G < e.length;G++) { var F = e[G]; if (F.eot) { break; } if (F.hasFont) { var I = c.getSymbolById(F.fontId); I ? (D = I.codes, k = F.fontHeight, I.originalSize || (k /= 20), r = I.metrics ? "swffont" + I.syncId : I.name, q = I.bold, u = I.italic) : f.Debug.warning("Label " + a.id + "refers to undefined font symbol " + F.fontId); } F.hasColor && (x = F.color >>> 8); F.hasMoveX && (C = F.moveX, C < d.xMin && (d.xMin = C)); F.hasMoveY && (y = F.moveY, y < d.yMin && (d.yMin = y)); for (var I = "", F = F.entries, E = 0, J;J = F[E++];) { var L = String.fromCharCode(D[J.glyphIndex]), I = I + (l[L] || L); g.push(C, y); C += J.advance; } u && (I = "" + I + ""); q && (I = "" + I + ""); n += '' + I + ""; } a.tag.initialText = n; return b.FromTextData(a, c); }; return b; }(f.Timeline.DisplaySymbol); u.TextSymbol = e; var l = {"<":"<", ">":">", "&":"&"}; })(g.text || (g.text = {})); })(g.flash || (g.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(f) { (function(f) { var k = function(b) { function d() { b.call(this); } __extends(d, b); d.fromNumber = function(a) { switch(a) { case 0: return d.NONE; case 1: return d.CENTER; case 2: return d.LEFT; case 3: return d.RIGHT; default: return null; } }; d.toNumber = function(a) { switch(a) { case d.NONE: return 0; case d.CENTER: return 1; case d.LEFT: return 2; case d.RIGHT: return 3; default: return -1; } }; d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; d.NONE = "none"; d.LEFT = "left"; d.CENTER = "center"; d.RIGHT = "right"; return d; }(b.ASObject); f.TextFieldAutoSize = k; })(f.text || (f.text = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(f) { (function(f) { var k = function(b) { function d() { b.call(this); } __extends(d, b); d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; d.INPUT = "input"; d.DYNAMIC = "dynamic"; return d; }(b.ASObject); f.TextFieldType = k; })(f.text || (f.text = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(g) { (function(q) { (function(q) { var k = f.AVMX.axCoerceString, r = f.NumberUtilities.roundHalfEven, d = function(a) { function c(b, c, d, f, g, h, m, v, k, r, q, u, A) { void 0 === b && (b = null); void 0 === c && (c = null); void 0 === d && (d = null); void 0 === f && (f = null); void 0 === g && (g = null); void 0 === h && (h = null); void 0 === m && (m = null); void 0 === v && (v = null); void 0 === k && (k = null); void 0 === r && (r = null); void 0 === q && (q = null); void 0 === u && (u = null); void 0 === A && (A = null); a.call(this); this.font = b; this.size = c; this.color = d; this.bold = f; this.italic = g; this.underline = h; this.url = m; this.target = v; this.align = k; this.leftMargin = r; this.rightMargin = q; this.indent = u; this.leading = A; } __extends(c, a); Object.defineProperty(c.prototype, "align", {get:function() { return this._align; }, set:function(a) { this._align = a = k(a); }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "blockIndent", {get:function() { return this._blockIndent; }, set:function(a) { this._blockIndent = c.coerceNumber(a); }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "bold", {get:function() { return this._bold; }, set:function(a) { this._bold = c.coerceBoolean(a); }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "bullet", {get:function() { return this._bullet; }, set:function(a) { this._bullet = c.coerceBoolean(a); }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "color", {get:function() { return this._color; }, set:function(a) { this._color = null != a ? +a | 0 : null; }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "display", {get:function() { return this._display; }, set:function(a) { this._display = k(a); }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "font", {get:function() { return this._font; }, set:function(a) { this._font = k(a); }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "style", {get:function() { return this._bold && this._italic ? q.FontStyle.BOLD_ITALIC : this._bold ? q.FontStyle.BOLD : this._italic ? q.FontStyle.ITALIC : q.FontStyle.REGULAR; }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "indent", {get:function() { return this._indent; }, set:function(a) { this._indent = c.coerceNumber(a); }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "italic", {get:function() { return this._italic; }, set:function(a) { this._italic = c.coerceBoolean(a); }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "kerning", {get:function() { return this._kerning; }, set:function(a) { this._kerning = c.coerceBoolean(a); }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "leading", {get:function() { return this._leading; }, set:function(a) { this._leading = c.coerceNumber(a); }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "leftMargin", {get:function() { return this._leftMargin; }, set:function(a) { this._leftMargin = c.coerceNumber(a); }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "letterSpacing", {get:function() { return this._letterSpacing; }, set:function(a) { this._letterSpacing = c.coerceBoolean(a); }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "rightMargin", {get:function() { return this._rightMargin; }, set:function(a) { this._rightMargin = c.coerceNumber(a); }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "size", {get:function() { return this._size; }, set:function(a) { this._size = c.coerceNumber(a); }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "tabStops", {get:function() { return this.sec.createArrayUnsafe(this._tabStops); }, set:function(a) { this.sec.AXArray.axIsType(a) || this.sec.throwError("ArgumentError", b.Errors.CheckTypeFailedError, a, "Array"); this._tabStops = a.value; }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "target", {get:function() { return this._target; }, set:function(a) { this._target = k(a); }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "underline", {get:function() { return this._underline; }, set:function(a) { this._underline = c.coerceBoolean(a); }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "url", {get:function() { return this._url; }, set:function(a) { this._url = k(a); }, enumerable:!0, configurable:!0}); c.coerceNumber = function(a) { return void 0 == a ? null : isNaN(a) || 268435455 < a ? -2147483648 : r(a); }; c.coerceBoolean = function(a) { return void 0 == a ? null : !!a; }; c.prototype.clone = function() { return new this.sec.flash.text.TextFormat(this.font, this.size, this.color, this.bold, this.italic, this.underline, this.url, this.target, this.align, this.leftMargin, this.rightMargin, this.indent, this.leading); }; c.prototype.equals = function(a) { return this._align === a._align && this._blockIndent === a._blockIndent && this._bold === a._bold && this._bullet === a._bullet && this._color === a._color && this._display === a._display && this._font === a._font && this._indent === a._indent && this._italic === a._italic && this._kerning === a._kerning && this._leading === a._leading && this._leftMargin === a._leftMargin && this._letterSpacing === a._letterSpacing && this._rightMargin === a._rightMargin && this._size === a._size && this._tabStops === a._tabStops && this._target === a._target && this._underline === a._underline && this._url === a._url; }; c.prototype.merge = function(a) { null !== a._align && (this._align = a._align); null !== a._blockIndent && (this._blockIndent = a._blockIndent); null !== a._bold && (this._bold = a._bold); null !== a._bullet && (this._bullet = a._bullet); null !== a._color && (this._color = a._color); null !== a._display && (this._display = a._display); a._font && (this._font = a._font); null !== a._indent && (this._indent = a._indent); null !== a._italic && (this._italic = a._italic); null !== a._kerning && (this._kerning = a._kerning); null !== a._leading && (this._leading = a._leading); null !== a._leftMargin && (this._leftMargin = a._leftMargin); null !== a._letterSpacing && (this._letterSpacing = a._letterSpacing); null !== a._rightMargin && (this._rightMargin = a._rightMargin); null !== a._size && (this._size = a._size); null !== a._tabStops && (this._tabStops = a._tabStops); a._target && (this._target = a._target); null !== a._underline && (this._underline = a._underline); a._url && (this._url = a._url); }; c.prototype.intersect = function(a) { a._align !== this._align && (this._align = null); a._blockIndent !== this._blockIndent && (this._blockIndent = null); a._bold !== this._bold && (this._bold = null); a._bullet !== this._bullet && (this._bullet = null); a._color !== this._color && (this._color = null); a._display !== this._display && (this._display = null); a._font !== this._font && (this._font = null); a._indent !== this._indent && (this._indent = null); a._italic !== this._italic && (this._italic = null); a._kerning !== this._kerning && (this._kerning = null); a._leading !== this._leading && (this._leading = null); a._leftMargin !== this._leftMargin && (this._leftMargin = null); a._letterSpacing !== this._letterSpacing && (this._letterSpacing = null); a._rightMargin !== this._rightMargin && (this._rightMargin = null); a._size !== this._size && (this._size = null); a._tabStops !== this._tabStops && (this._tabStops = null); a._target !== this._target && (this._target = null); a._underline !== this._underline && (this._underline = null); a._url !== this._url && (this._url = null); }; c.prototype.transform = function(a) { var b = a.textAlign; b && (this.align = b); b = a.fontWeight; "bold" === b ? this.bold = !0 : "normal" === b && (this.bold = !1); if (b = a.color) { if (b = k(b).trim().toLowerCase(), "#" === b[0]) { for (b = b.substr(1);"0" === b[0];) { b = b.substr(1); } var c = parseInt(b, 16); c.toString(16) === b && (this.color = c); } } if (b = a.display) { this.display = b; } if (b = a.fontFamily) { this.font = b.replace("sans-serif", "_sans").replace("serif", "_serif"); } if (b = a.textIndent) { this.indent = parseInt(b); } b = a.fontStyle; "italic" === b ? this.italic = !0 : "normal" === b && (this.italic = !1); b = a.kerning; this.kerning = "true" === b ? 1 : "false" === b ? 0 : parseInt(b); if (b = a.leading) { this.leading = parseInt(b); } if (b = a.marginLeft) { this.leftMargin = parseInt(b); } if (b = a.letterSpacing) { this.letterSpacing = parseFloat(b); } if (b = a.marginRight) { this.rightMargin = parseInt(b); } if (b = a.fontSize) { b = parseInt(b), 0 < b && (this.size = b); } b = a.textDecoration; "none" === b ? this.underline = !1 : "underline" === b && (this.underline = !0); return this; }; c.classInitializer = null; c.classSymbols = null; c.instanceSymbols = null; return c; }(g.ASObject); q.TextFormat = d; })(q.text || (q.text = {})); })(g.flash || (g.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(f) { (function(f) { var k = function(b) { function d() { b.call(this); } __extends(d, b); d.fromNumber = function(a) { switch(a) { case 0: return d.LEFT; case 1: return d.RIGHT; case 2: return d.CENTER; case 3: return d.JUSTIFY; case 4: return d.START; case 5: return d.END; default: return null; } }; d.toNumber = function(a) { switch(a) { case d.LEFT: return 0; case d.RIGHT: return 1; case d.CENTER: return 2; case d.JUSTIFY: return 3; case d.START: return 4; case d.END: return 5; default: return -1; } }; d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; d.LEFT = "left"; d.CENTER = "center"; d.RIGHT = "right"; d.JUSTIFY = "justify"; d.START = "start"; d.END = "end"; return d; }(b.ASObject); f.TextFormatAlign = k; })(f.text || (f.text = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(f) { (function(f) { var k = function(b) { function d() { b.call(this); } __extends(d, b); d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; d.INLINE = "inline"; d.BLOCK = "block"; return d; }(b.ASObject); f.TextFormatDisplay = k; })(f.text || (f.text = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(f) { (function(f) { var k = function(b) { function d() { b.call(this); } __extends(d, b); d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; d.NORMAL = "normal"; d.SELECTION = "selection"; return d; }(b.ASObject); f.TextInteractionMode = k; })(f.text || (f.text = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(f) { (function(f) { var k = function(b) { function d(a, c, d, f, g, k) { b.call(this); this.x = +a; this.width = +c; this.height = +d; this.ascent = +f; this.descent = +g; this.leading = +k; } __extends(d, b); d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; return d; }(b.ASObject); f.TextLineMetrics = k; })(f.text || (f.text = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(f) { (function(f) { var k = function(b) { function d(a, c, d) { b.call(this); this._beginIndex = a | 0; this._endIndex = c | 0; this._textFormat = d; } __extends(d, b); Object.defineProperty(d.prototype, "beginIndex", {get:function() { return this._beginIndex; }, set:function(a) { this._beginIndex = a | 0; }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "endIndex", {get:function() { return this._endIndex; }, set:function(a) { this._endIndex = a | 0; }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "textFormat", {get:function() { return this._textFormat; }, set:function(a) { this._textFormat = a; }, enumerable:!0, configurable:!0}); d.prototype.clone = function() { return new this.sec.flash.text.TextRun(this.beginIndex, this.endIndex, this.textFormat.clone()); }; d.prototype.containsIndex = function(a) { return a >= this._beginIndex && a < this._endIndex; }; d.prototype.intersects = function(a, b) { return Math.max(this._beginIndex, a) < Math.min(this._endIndex, b); }; d.classInitializer = null; return d; }(b.ASObject); f.TextRun = k; })(f.text || (f.text = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(q) { (function(q) { var k = f.Debug.notImplemented, r = f.AVMX.axCoerceString, d = function(a) { function b() { a.call(this); } __extends(b, a); Object.defineProperty(b.prototype, "charCount", {get:function() { k("public flash.text.TextSnapshot::get charCount"); }, enumerable:!0, configurable:!0}); b.prototype.findText = function(a, b, c) { r(b); k("public flash.text.TextSnapshot::findText"); }; b.prototype.getSelected = function(a, b) { k("public flash.text.TextSnapshot::getSelected"); }; b.prototype.getSelectedText = function(a) { k("public flash.text.TextSnapshot::getSelectedText"); }; b.prototype.getText = function(a, b, c) { k("public flash.text.TextSnapshot::getText"); }; b.prototype.getTextRunInfo = function(a, b) { k("public flash.text.TextSnapshot::getTextRunInfo"); }; b.prototype.hitTestTextNearPos = function(a, b, c) { k("public flash.text.TextSnapshot::hitTestTextNearPos"); }; b.prototype.setSelectColor = function(a) { k("public flash.text.TextSnapshot::setSelectColor"); }; b.prototype.setSelected = function(a, b, c) { k("public flash.text.TextSnapshot::setSelected"); }; b.classInitializer = null; return b; }(b.ASObject); q.TextSnapshot = d; })(q.text || (q.text = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(q) { (function(q) { var k = f.Debug.notImplemented, r = function(b) { function a() { b.call(this); } __extends(a, b); a.setLevel = function(a, b) { k("public flash.trace.Trace::static setLevel"); }; a.getLevel = function(a) { k("public flash.trace.Trace::static getLevel"); }; a.setListener = function(a) { k("public flash.trace.Trace::static setListener"); }; a.getListener = function() { k("public flash.trace.Trace::static getListener"); }; a.classInitializer = null; a.classSymbols = null; a.instanceSymbols = null; a.OFF = void 0; a.METHODS = 1; a.METHODS_WITH_ARGS = 2; a.METHODS_AND_LINES = 3; a.METHODS_AND_LINES_WITH_ARGS = 4; a.FILE = 1; a.LISTENER = 2; return a; }(b.ASObject); q.Trace = r; })(q.trace || (q.trace = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(b) { (function(g) { var k = f.Debug.somewhatImplemented, r = function(b) { function a() { b.call(this); this._builtInItems = new this.sec.flash.ui.ContextMenuBuiltInItems; this._customItems = []; } __extends(a, b); Object.defineProperty(a, "isSupported", {get:function() { k("ContextMenu::isSupported"); return !1; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "builtInItems", {get:function() { k("public flash.ui.ContextMenu::get builtInItems"); return this._builtInItems; }, set:function(a) { k("public flash.ui.ContextMenu::set builtInItems"); this._builtInItems = a; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "customItems", {get:function() { k("public flash.ui.ContextMenu::get customItems"); return this.sec.createArrayUnsafe(this._customItems); }, set:function(a) { k("public flash.ui.ContextMenu::set customItems"); this._customItems = a.value; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "link", {get:function() { k("public flash.ui.ContextMenu::get link"); return this._link; }, set:function(a) { k("public flash.ui.ContextMenu::set link"); this._link = a; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "clipboardMenu", {get:function() { k("public flash.ui.ContextMenu::get clipboardMenu"); return this._clipboardMenu; }, set:function(a) { a = !!a; k("public flash.ui.ContextMenu::set clipboardMenu"); this._clipboardMenu = a; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "clipboardItems", {get:function() { k("public flash.ui.ContextMenu::get clipboardItems"); return this._clipboardItems; }, set:function(a) { k("public flash.ui.ContextMenu::set clipboardItems"); this._clipboardItems = a; }, enumerable:!0, configurable:!0}); a.prototype.hideBuiltInItems = function() { var a = this.builtInItems; a && (a.save = !1, a.zoom = !1, a.quality = !1, a.play = !1, a.loop = !1, a.rewind = !1, a.forwardAndBack = !1, a.print = !1); }; a.prototype.clone = function() { var a = new this.sec.flash.ui.ContextMenu; a._builtInItems = this._builtInItems.clone(); this.cloneLinkAndClipboardProperties(a); for (var b = this._customItems, d = 0;d < b.length;d++) { a._customItems.push(b[d].clone()); } return a; }; a.prototype.cloneLinkAndClipboardProperties = function(a) { k("public flash.ui.ContextMenu::cloneLinkAndClipboardProperties"); }; a.classInitializer = null; return a; }(b.display.NativeMenu); g.ContextMenu = r; })(b.ui || (b.ui = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(f) { (function(f) { var k = function(b) { function d() { b.call(this); this._print = this._forwardAndBack = this._rewind = this._loop = this._play = this._quality = this._zoom = this._save = !0; } __extends(d, b); Object.defineProperty(d.prototype, "save", {get:function() { return this._save; }, set:function(a) { this._save = !!a; }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "zoom", {get:function() { return this._zoom; }, set:function(a) { this._zoom = !!a; }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "quality", {get:function() { return this._quality; }, set:function(a) { this._quality = !!a; }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "play", {get:function() { return this._play; }, set:function(a) { this._play = !!a; }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "loop", {get:function() { return this._loop; }, set:function(a) { this._loop = !!a; }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "rewind", {get:function() { return this._rewind; }, set:function(a) { this._rewind = !!a; }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "forwardAndBack", {get:function() { return this._forwardAndBack; }, set:function(a) { this._forwardAndBack = !!a; }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "print", {get:function() { return this._print; }, set:function(a) { this._print = !!a; }, enumerable:!0, configurable:!0}); d.prototype.clone = function() { var a = new this.sec.flash.ui.ContextMenuBuiltInItems; a._save = this._save; a._zoom = this._zoom; a._quality = this._quality; a._play = this._play; a._loop = this._loop; a._rewind = this._rewind; a._forwardAndBack = this._forwardAndBack; a._print = this._print; return a; }; d.classInitializer = null; return d; }(b.ASObject); f.ContextMenuBuiltInItems = k; })(f.ui || (f.ui = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(q) { (function(q) { var k = f.Debug.somewhatImplemented, r = function(b) { function a() { b.call(this); this._selectAll = this._clear = this._paste = this._copy = this._cut = !0; } __extends(a, b); Object.defineProperty(a.prototype, "cut", {get:function() { k("cut"); return this._cut; }, set:function(a) { k("cut"); this._cut = !!a; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "copy", {get:function() { k("copy"); return this._copy; }, set:function(a) { k("copy"); this._copy = !!a; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "paste", {get:function() { k("paste"); return this._paste; }, set:function(a) { k("paste"); this._paste = !!a; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "clear", {get:function() { k("clear"); return this._clear; }, set:function(a) { k("clear"); this._clear = !!a; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "selectAll", {get:function() { k("selectAll"); return this._selectAll; }, set:function(a) { k("selectAll"); this._selectAll = !!a; }, enumerable:!0, configurable:!0}); a.prototype.clone = function() { var a = new this.sec.flash.ui.ContextMenuClipboardItems; a._cut = this._cut; a._copy = this._copy; a._paste = this._paste; a._clear = this._clear; a._selectAll = this._selectAll; return a; }; a.classInitializer = null; a.classSymbols = null; a.instanceSymbols = null; return a; }(b.ASObject); q.ContextMenuClipboardItems = r; })(q.ui || (q.ui = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(b) { (function(g) { var k = f.AVMX.axCoerceString, r = function(b) { function a(a, e, f, g) { void 0 === e && (e = !1); void 0 === f && (f = !0); void 0 === g && (g = !0); b.call(this); this._caption = (a = k(a)) ? a : ""; this._separatorBefore = !!e; this._enabled = !!f; this._visible = !!g; } __extends(a, b); Object.defineProperty(a.prototype, "caption", {get:function() { return this._caption; }, set:function(a) { this._caption = a = k(a); }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "separatorBefore", {get:function() { return this._separatorBefore; }, set:function(a) { this._separatorBefore = !!a; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "visible", {get:function() { return this._visible; }, set:function(a) { this._visible = !!a; }, enumerable:!0, configurable:!0}); a.classInitializer = null; a.classSymbols = null; a.instanceSymbols = null; return a; }(b.display.NativeMenuItem); g.ContextMenuItem = r; })(b.ui || (b.ui = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(g) { (function(g) { (function(u) { var k = f.Debug.somewhatImplemented, r = function(d) { function a() { d.call(this, void 0); } __extends(a, d); Object.defineProperty(a.prototype, "numDevices", {get:function() { k("public flash.ui.GameInput::get numDevices"); return 0; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "isSupported", {get:function() { k("public flash.ui.GameInput::get isSupported"); return !1; }, enumerable:!0, configurable:!0}); a.getDeviceAt = function(a) { k("public flash.ui.GameInput::static getDeviceAt"); this.sec.throwError("RangeError", b.Errors.ParamRangeError, "index"); return null; }; a.classInitializer = null; a.classSymbols = null; a.instanceSymbols = null; return a; }(g.events.EventDispatcher); u.GameInput = r; })(g.ui || (g.ui = {})); })(g.flash || (g.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(b) { (function(g) { var k = f.Debug.notImplemented, r = function(b) { function a() { b.call(this); } __extends(a, b); Object.defineProperty(a.prototype, "numValues", {get:function() { k("public flash.ui.GameInputControl::get numValues"); }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "index", {get:function() { k("public flash.ui.GameInputControl::get index"); }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "relative", {get:function() { k("public flash.ui.GameInputControl::get relative"); }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "type", {get:function() { k("public flash.ui.GameInputControl::get type"); }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "hand", {get:function() { k("public flash.ui.GameInputControl::get hand"); }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "finger", {get:function() { k("public flash.ui.GameInputControl::get finger"); }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "device", {get:function() { k("public flash.ui.GameInputControl::get device"); }, enumerable:!0, configurable:!0}); a.prototype.getValueAt = function(a) { k("public flash.ui.GameInputControl::getValueAt"); }; a.classInitializer = null; a.classSymbols = null; a.instanceSymbols = null; return a; }(b.events.EventDispatcher); g.GameInputControl = r; })(b.ui || (b.ui = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(f) { (function(f) { var k = function(b) { function d() { b.call(this); } __extends(d, b); d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; d.MOVEMENT = "movement"; d.ROTATION = "rotation"; d.DIRECTION = "direction"; d.ACCELERATION = "acceleration"; d.BUTTON = "button"; d.TRIGGER = "trigger"; return d; }(b.ASObject); f.GameInputControlType = k; })(f.ui || (f.ui = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(b) { (function(g) { var k = f.Debug.notImplemented, r = function(b) { function a() { b.call(this); } __extends(a, b); Object.defineProperty(a.prototype, "numControls", {get:function() { k("public flash.ui.GameInputDevice::get numControls"); }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "sampleInterval", {get:function() { k("public flash.ui.GameInputDevice::get sampleInterval"); }, set:function(a) { k("public flash.ui.GameInputDevice::set sampleInterval"); }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "enabled", {get:function() { k("public flash.ui.GameInputDevice::get enabled"); }, set:function(a) { k("public flash.ui.GameInputDevice::set enabled"); }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "id", {get:function() { k("public flash.ui.GameInputDevice::get id"); }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "name", {get:function() { k("public flash.ui.GameInputDevice::get name"); }, enumerable:!0, configurable:!0}); a.prototype.getControlAt = function(a) { k("public flash.ui.GameInputDevice::getControlAt"); }; a.prototype.startCachingSamples = function(a, b) { k("public flash.ui.GameInputDevice::startCachingSamples"); }; a.prototype.stopCachingSamples = function() { k("public flash.ui.GameInputDevice::stopCachingSamples"); }; a.prototype.getCachedSamples = function(a, b) { k("public flash.ui.GameInputDevice::getCachedSamples"); }; a.classInitializer = null; a.classSymbols = null; a.instanceSymbols = null; a.MAX_BUFFER_SIZE = 4800; return a; }(b.events.EventDispatcher); g.GameInputDevice = r; })(b.ui || (b.ui = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(f) { (function(f) { var k = function(b) { function d() { b.call(this); } __extends(d, b); d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; d.THUMB = "thumb"; d.INDEX = "index"; d.MIDDLE = "middle"; d.UNKNOWN = "unknown"; return d; }(b.ASObject); f.GameInputFinger = k; })(f.ui || (f.ui = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(f) { (function(f) { var k = function(b) { function d() { b.call(this); } __extends(d, b); d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; d.RIGHT = "right"; d.LEFT = "left"; d.UNKNOWN = "unknown"; return d; }(b.ASObject); f.GameInputHand = k; })(f.ui || (f.ui = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(q) { (function(q) { var k = f.Debug.notImplemented, r = function() { function b() { this._lastKeyCode = 0; this._captureKeyPress = !1; this._charCodeMap = []; } b.prototype.dispatchKeyboardEvent = function(a) { var b = a.keyCode; if ("keydown" === a.type) { this._lastKeyCode = b; if (this._captureKeyPress = 8 === b || 9 === b || 13 === b || 32 === b || 48 <= b && 90 >= b || 145 < b) { return; } this._charCodeMap[b] = 0; } else { if ("keypress" === a.type) { if (this._captureKeyPress) { b = this._lastKeyCode, this._charCodeMap[b] = a.charCode; } else { return; } } } if (this.target) { var d = "keyup" === a.type; this.target.dispatchEvent(new this.target.sec.flash.events.KeyboardEvent(d ? "keyUp" : "keyDown", !0, !1, d ? this._charCodeMap[b] : a.charCode, d ? a.keyCode : this._lastKeyCode, a.location, a.ctrlKey, a.altKey, a.shiftKey)); } }; return b; }(); q.KeyboardEventDispatcher = r; r = function(b) { function a() { b.call(this); } __extends(a, b); Object.defineProperty(a, "capsLock", {get:function() { k("public flash.ui.Keyboard::get capsLock"); }, enumerable:!0, configurable:!0}); Object.defineProperty(a, "numLock", {get:function() { k("public flash.ui.Keyboard::get numLock"); }, enumerable:!0, configurable:!0}); Object.defineProperty(a, "hasVirtualKeyboard", {get:function() { k("public flash.ui.Keyboard::get hasVirtualKeyboard"); }, enumerable:!0, configurable:!0}); Object.defineProperty(a, "physicalKeyboardType", {get:function() { k("public flash.ui.Keyboard::get physicalKeyboardType"); }, enumerable:!0, configurable:!0}); a.isAccessible = function() { k("public flash.ui.Keyboard::static isAccessible"); }; a.classInitializer = null; a.classSymbols = null; a.instanceSymbols = null; a.KEYNAME_UPARROW = "Up"; a.KEYNAME_DOWNARROW = "Down"; a.KEYNAME_LEFTARROW = "Left"; a.KEYNAME_RIGHTARROW = "Right"; a.KEYNAME_F1 = "F1"; a.KEYNAME_F2 = "F2"; a.KEYNAME_F3 = "F3"; a.KEYNAME_F4 = "F4"; a.KEYNAME_F5 = "F5"; a.KEYNAME_F6 = "F6"; a.KEYNAME_F7 = "F7"; a.KEYNAME_F8 = "F8"; a.KEYNAME_F9 = "F9"; a.KEYNAME_F10 = "F10"; a.KEYNAME_F11 = "F11"; a.KEYNAME_F12 = "F12"; a.KEYNAME_F13 = "F13"; a.KEYNAME_F14 = "F14"; a.KEYNAME_F15 = "F15"; a.KEYNAME_F16 = "F16"; a.KEYNAME_F17 = "F17"; a.KEYNAME_F18 = "F18"; a.KEYNAME_F19 = "F19"; a.KEYNAME_F20 = "F20"; a.KEYNAME_F21 = "F21"; a.KEYNAME_F22 = "F22"; a.KEYNAME_F23 = "F23"; a.KEYNAME_F24 = "F24"; a.KEYNAME_F25 = "F25"; a.KEYNAME_F26 = "F26"; a.KEYNAME_F27 = "F27"; a.KEYNAME_F28 = "F28"; a.KEYNAME_F29 = "F29"; a.KEYNAME_F30 = "F30"; a.KEYNAME_F31 = "F31"; a.KEYNAME_F32 = "F32"; a.KEYNAME_F33 = "F33"; a.KEYNAME_F34 = "F34"; a.KEYNAME_F35 = "F35"; a.KEYNAME_INSERT = "Insert"; a.KEYNAME_DELETE = "Delete"; a.KEYNAME_HOME = "Home"; a.KEYNAME_BEGIN = "Begin"; a.KEYNAME_END = "End"; a.KEYNAME_PAGEUP = "PgUp"; a.KEYNAME_PAGEDOWN = "PgDn"; a.KEYNAME_PRINTSCREEN = "PrntScrn"; a.KEYNAME_SCROLLLOCK = "ScrlLck"; a.KEYNAME_PAUSE = "Pause"; a.KEYNAME_SYSREQ = "SysReq"; a.KEYNAME_BREAK = "Break"; a.KEYNAME_RESET = "Reset"; a.KEYNAME_STOP = "Stop"; a.KEYNAME_MENU = "Menu"; a.KEYNAME_USER = "User"; a.KEYNAME_SYSTEM = "Sys"; a.KEYNAME_PRINT = "Print"; a.KEYNAME_CLEARLINE = "ClrLn"; a.KEYNAME_CLEARDISPLAY = "ClrDsp"; a.KEYNAME_INSERTLINE = "InsLn"; a.KEYNAME_DELETELINE = "DelLn"; a.KEYNAME_INSERTCHAR = "InsChr"; a.KEYNAME_DELETECHAR = "DelChr"; a.KEYNAME_PREV = "Prev"; a.KEYNAME_NEXT = "Next"; a.KEYNAME_SELECT = "Select"; a.KEYNAME_EXECUTE = "Exec"; a.KEYNAME_UNDO = "Undo"; a.KEYNAME_REDO = "Redo"; a.KEYNAME_FIND = "Find"; a.KEYNAME_HELP = "Help"; a.KEYNAME_MODESWITCH = "ModeSw"; a.STRING_UPARROW = "\uf700"; a.STRING_DOWNARROW = "\uf701"; a.STRING_LEFTARROW = "\uf702"; a.STRING_RIGHTARROW = "\uf703"; a.STRING_F1 = "\uf704"; a.STRING_F2 = "\uf705"; a.STRING_F3 = "\uf706"; a.STRING_F4 = "\uf707"; a.STRING_F5 = "\uf708"; a.STRING_F6 = "\uf709"; a.STRING_F7 = "\uf70a"; a.STRING_F8 = "\uf70b"; a.STRING_F9 = "\uf70c"; a.STRING_F10 = "\uf70d"; a.STRING_F11 = "\uf70e"; a.STRING_F12 = "\uf70f"; a.STRING_F13 = "\uf710"; a.STRING_F14 = "\uf711"; a.STRING_F15 = "\uf712"; a.STRING_F16 = "\uf713"; a.STRING_F17 = "\uf714"; a.STRING_F18 = "\uf715"; a.STRING_F19 = "\uf716"; a.STRING_F20 = "\uf717"; a.STRING_F21 = "\uf718"; a.STRING_F22 = "\uf719"; a.STRING_F23 = "\uf71a"; a.STRING_F24 = "\uf71b"; a.STRING_F25 = "\uf71c"; a.STRING_F26 = "\uf71d"; a.STRING_F27 = "\uf71e"; a.STRING_F28 = "\uf71f"; a.STRING_F29 = "\uf720"; a.STRING_F30 = "\uf721"; a.STRING_F31 = "\uf722"; a.STRING_F32 = "\uf723"; a.STRING_F33 = "\uf724"; a.STRING_F34 = "\uf725"; a.STRING_F35 = "\uf726"; a.STRING_INSERT = "\uf727"; a.STRING_DELETE = "\uf728"; a.STRING_HOME = "\uf729"; a.STRING_BEGIN = "\uf72a"; a.STRING_END = "\uf72b"; a.STRING_PAGEUP = "\uf72c"; a.STRING_PAGEDOWN = "\uf72d"; a.STRING_PRINTSCREEN = "\uf72e"; a.STRING_SCROLLLOCK = "\uf72f"; a.STRING_PAUSE = "\uf730"; a.STRING_SYSREQ = "\uf731"; a.STRING_BREAK = "\uf732"; a.STRING_RESET = "\uf733"; a.STRING_STOP = "\uf734"; a.STRING_MENU = "\uf735"; a.STRING_USER = "\uf736"; a.STRING_SYSTEM = "\uf737"; a.STRING_PRINT = "\uf738"; a.STRING_CLEARLINE = "\uf739"; a.STRING_CLEARDISPLAY = "\uf73a"; a.STRING_INSERTLINE = "\uf73b"; a.STRING_DELETELINE = "\uf73c"; a.STRING_INSERTCHAR = "\uf73d"; a.STRING_DELETECHAR = "\uf73e"; a.STRING_PREV = "\uf73f"; a.STRING_NEXT = "\uf740"; a.STRING_SELECT = "\uf741"; a.STRING_EXECUTE = "\uf742"; a.STRING_UNDO = "\uf743"; a.STRING_REDO = "\uf744"; a.STRING_FIND = "\uf745"; a.STRING_HELP = "\uf746"; a.STRING_MODESWITCH = "\uf747"; a.CharCodeStrings = void 0; a.NUMBER_0 = 48; a.NUMBER_1 = 49; a.NUMBER_2 = 50; a.NUMBER_3 = 51; a.NUMBER_4 = 52; a.NUMBER_5 = 53; a.NUMBER_6 = 54; a.NUMBER_7 = 55; a.NUMBER_8 = 56; a.NUMBER_9 = 57; a.A = 65; a.B = 66; a.C = 67; a.D = 68; a.E = 69; a.F = 70; a.G = 71; a.H = 72; a.I = 73; a.J = 74; a.K = 75; a.L = 76; a.M = 77; a.N = 78; a.O = 79; a.P = 80; a.Q = 81; a.R = 82; a.S = 83; a.T = 84; a.U = 85; a.V = 86; a.W = 87; a.X = 88; a.Y = 89; a.Z = 90; a.SEMICOLON = 186; a.EQUAL = 187; a.COMMA = 188; a.MINUS = 189; a.PERIOD = 190; a.SLASH = 191; a.BACKQUOTE = 192; a.LEFTBRACKET = 219; a.BACKSLASH = 220; a.RIGHTBRACKET = 221; a.QUOTE = 222; a.ALTERNATE = 18; a.BACKSPACE = 8; a.CAPS_LOCK = 20; a.COMMAND = 15; a.CONTROL = 17; a.DELETE = 46; a.DOWN = 40; a.END = 35; a.ENTER = 13; a.ESCAPE = 27; a.F1 = 112; a.F2 = 113; a.F3 = 114; a.F4 = 115; a.F5 = 116; a.F6 = 117; a.F7 = 118; a.F8 = 119; a.F9 = 120; a.F10 = 121; a.F11 = 122; a.F12 = 123; a.F13 = 124; a.F14 = 125; a.F15 = 126; a.HOME = 36; a.INSERT = 45; a.LEFT = 37; a.NUMPAD = 21; a.NUMPAD_0 = 96; a.NUMPAD_1 = 97; a.NUMPAD_2 = 98; a.NUMPAD_3 = 99; a.NUMPAD_4 = 100; a.NUMPAD_5 = 101; a.NUMPAD_6 = 102; a.NUMPAD_7 = 103; a.NUMPAD_8 = 104; a.NUMPAD_9 = 105; a.NUMPAD_ADD = 107; a.NUMPAD_DECIMAL = 110; a.NUMPAD_DIVIDE = 111; a.NUMPAD_ENTER = 108; a.NUMPAD_MULTIPLY = 106; a.NUMPAD_SUBTRACT = 109; a.PAGE_DOWN = 34; a.PAGE_UP = 33; a.RIGHT = 39; a.SHIFT = 16; a.SPACE = 32; a.TAB = 9; a.UP = 38; a.RED = 16777216; a.GREEN = 16777217; a.YELLOW = 16777218; a.BLUE = 16777219; a.CHANNEL_UP = 16777220; a.CHANNEL_DOWN = 16777221; a.RECORD = 16777222; a.PLAY = 16777223; a.PAUSE = 16777224; a.STOP = 16777225; a.FAST_FORWARD = 16777226; a.REWIND = 16777227; a.SKIP_FORWARD = 16777228; a.SKIP_BACKWARD = 16777229; a.NEXT = 16777230; a.PREVIOUS = 16777231; a.LIVE = 16777232; a.LAST = 16777233; a.MENU = 16777234; a.INFO = 16777235; a.GUIDE = 16777236; a.EXIT = 16777237; a.BACK = 16777238; a.AUDIO = 16777239; a.SUBTITLE = 16777240; a.DVR = 16777241; a.VOD = 16777242; a.INPUT = 16777243; a.SETUP = 16777244; a.HELP = 16777245; a.MASTER_SHELL = 16777246; a.SEARCH = 16777247; return a; }(b.ASObject); q.Keyboard = r; })(q.ui || (q.ui = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(g) { (function(q) { (function(u) { var k = f.Debug.notImplemented, r = f.Debug.somewhatImplemented, d = f.AVMX.axCoerceString, a = q.events, c = function() { function b() { this.currentTarget = this.stage = null; } b.prototype._findTarget = function(a, b) { var c = []; this.stage._containsGlobalPoint(20 * a.x | 0, 20 * a.y | 0, b, c); return c.length ? c[0] : c.length ? c[0] : null; }; b.prototype._dispatchMouseEvent = function(b, c, d, e) { void 0 === e && (e = null); var h = b.globalToLocal(d.point); c = new this.stage.sec.flash.events.MouseEvent(c, c !== a.MouseEvent.ROLL_OVER && c !== a.MouseEvent.ROLL_OUT && c !== a.MouseEvent.MOUSE_LEAVE, !1, h.x, h.y, e, d.ctrlKey, d.altKey, d.shiftKey, !!d.buttons); b.dispatchEvent(c); }; b.prototype.handleMouseEvent = function(b) { var c = this.stage; if (!c) { return c; } var d = b.point, e = this.stage.sec.flash.ui.Mouse.axClass; e.updateCurrentPosition(d); var h = this.currentTarget, f = null, g = q.events.MouseEvent.typeFromDOMType(b.type); if (0 <= d.x && d.x < c.stageWidth && 0 <= d.y && d.y < c.stageHeight) { f = this._findTarget(d, 3) || this.stage; } else { if (!h) { return c; } this._dispatchMouseEvent(c, a.MouseEvent.MOUSE_LEAVE, b); if (g !== a.MouseEvent.MOUSE_MOVE) { return c; } } e.draggableObject && (d = this._findTarget(d, 5), e.draggableObject._updateDragState(d)); switch(g) { case a.MouseEvent.MOUSE_DOWN: b.buttons & 1 ? b.buttons = 1 : b.buttons & 2 ? (g = a.MouseEvent.MIDDLE_MOUSE_DOWN, b.buttons = 2) : b.buttons & 4 && (g = a.MouseEvent.RIGHT_MOUSE_DOWN, b.buttons = 4); f._mouseDown = !0; break; case a.MouseEvent.MOUSE_UP: b.buttons & 1 ? b.buttons = 1 : b.buttons & 2 ? (g = a.MouseEvent.MIDDLE_MOUSE_UP, b.buttons = 2) : b.buttons & 4 && (g = a.MouseEvent.RIGHT_MOUSE_UP, b.buttons = 4); f._mouseDown = !1; break; case a.MouseEvent.CLICK: b.buttons & 1 || (b.buttons & 2 ? g = a.MouseEvent.MIDDLE_CLICK : b.buttons & 4 && (g = a.MouseEvent.RIGHT_CLICK)); b.buttons = 0; break; case a.MouseEvent.DOUBLE_CLICK: if (!f.doubleClickEnabled) { return; } b.buttons = 0; break; case a.MouseEvent.MOUSE_MOVE: this.currentTarget = f; b.buttons &= 1; if (f === h) { break; } e = f ? f.findNearestCommonAncestor(h) : c; if (h && h !== c) { for (h._mouseOver = !1, h._mouseDown = !1, this._dispatchMouseEvent(h, a.MouseEvent.MOUSE_OUT, b, f), d = h;d && d !== e;) { this._dispatchMouseEvent(d, a.MouseEvent.ROLL_OUT, b, f), d = d.parent; } } if (!f) { return c; } if (f === c) { break; } for (c = f;c !== e;) { this._dispatchMouseEvent(c, a.MouseEvent.ROLL_OVER, b, h), c = c.parent; } f._mouseOver = !0; this._dispatchMouseEvent(f, a.MouseEvent.MOUSE_OVER, b, h); return f; } this._dispatchMouseEvent(f, g, b); return f; }; return b; }(); u.MouseEventDispatcher = c; (function(a) { a[a.Left = 1] = "Left"; a[a.Middle = 2] = "Middle"; a[a.Right = 4] = "Right"; })(u.MouseButtonFlags || (u.MouseButtonFlags = {})); c = function(a) { function c() { a.call(this); } __extends(c, a); c.classInitializer = function() { this._currentPosition = new this.sec.flash.geom.Point; this._cursor = u.MouseCursor.AUTO; this.draggableObject = null; }; Object.defineProperty(c, "supportsCursor", {get:function() { return !0; }, enumerable:!0, configurable:!0}); Object.defineProperty(c, "cursor", {get:function() { return this._cursor; }, set:function(a) { a = d(a); 0 > u.MouseCursor.toNumber(a) && this.sec.throwError("ArgumentError", b.Errors.InvalidParamError, "cursor"); this._cursor = a; }, enumerable:!0, configurable:!0}); Object.defineProperty(c, "supportsNativeCursor", {get:function() { return !0; }, enumerable:!0, configurable:!0}); c.hide = function() { r("public flash.ui.Mouse::static hide"); }; c.show = function() { r("public flash.ui.Mouse::static show"); }; c.registerCursor = function(a, b) { d(a); k("public flash.ui.Mouse::static registerCursor"); }; c.unregisterCursor = function(a) { d(a); k("public flash.ui.Mouse::static unregisterCursor"); }; c.updateCurrentPosition = function(a) { this._currentPosition.copyFrom(a); }; return c; }(g.ASObject); u.Mouse = c; })(q.ui || (q.ui = {})); })(g.flash || (g.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(f) { (function(f) { var k = function(b) { function d() { b.call(this); } __extends(d, b); d.fromNumber = function(a) { switch(a) { case 0: return d.AUTO; case 1: return d.ARROW; case 2: return d.BUTTON; case 3: return d.HAND; case 4: return d.IBEAM; default: return null; } }; d.toNumber = function(a) { switch(a) { case d.AUTO: return 0; case d.ARROW: return 1; case d.BUTTON: return 2; case d.HAND: return 3; case d.IBEAM: return 4; default: return -1; } }; d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; d.AUTO = "auto"; d.ARROW = "arrow"; d.BUTTON = "button"; d.HAND = "hand"; d.IBEAM = "ibeam"; return d; }(b.ASObject); f.MouseCursor = k; })(f.ui || (f.ui = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(q) { (function(q) { var k = f.Debug.notImplemented, r = function(b) { function a() { b.call(this); } __extends(a, b); Object.defineProperty(a.prototype, "data", {get:function() { k("public flash.ui.MouseCursorData::get data"); }, set:function(a) { k("public flash.ui.MouseCursorData::set data"); }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "hotSpot", {get:function() { k("public flash.ui.MouseCursorData::get hotSpot"); }, set:function(a) { k("public flash.ui.MouseCursorData::set hotSpot"); }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "frameRate", {get:function() { k("public flash.ui.MouseCursorData::get frameRate"); }, set:function(a) { k("public flash.ui.MouseCursorData::set frameRate"); }, enumerable:!0, configurable:!0}); a.classInitializer = null; a.classSymbols = null; a.instanceSymbols = null; return a; }(b.ASObject); q.MouseCursorData = r; })(q.ui || (q.ui = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(q) { (function(q) { var k = f.Debug.somewhatImplemented, r = f.Debug.notImplemented, d = f.AVMX.axCoerceString, a = function(a) { function b() { a.call(this); } __extends(b, a); Object.defineProperty(b, "inputMode", {get:function() { r("public flash.ui.Multitouch::get inputMode"); }, set:function(a) { d(a); r("public flash.ui.Multitouch::set inputMode"); }, enumerable:!0, configurable:!0}); Object.defineProperty(b, "supportsTouchEvents", {get:function() { k("public flash.ui.Multitouch::get supportsTouchEvents"); return !1; }, enumerable:!0, configurable:!0}); Object.defineProperty(b, "supportsGestureEvents", {get:function() { k("public flash.ui.Multitouch::get supportsGestureEvents"); return !1; }, enumerable:!0, configurable:!0}); Object.defineProperty(b, "supportedGestures", {get:function() { k("public flash.ui.Multitouch::get supportedGestures"); return null; }, enumerable:!0, configurable:!0}); Object.defineProperty(b, "maxTouchPoints", {get:function() { k("public flash.ui.Multitouch::get maxTouchPoints"); return 0; }, enumerable:!0, configurable:!0}); Object.defineProperty(b, "mapTouchToMouse", {get:function() { k("public flash.ui.Multitouch::get mapTouchToMouse"); return !0; }, set:function(a) { r("public flash.ui.Multitouch::set mapTouchToMouse"); }, enumerable:!0, configurable:!0}); b.classInitializer = null; b.classSymbols = null; b.instanceSymbols = null; return b; }(b.ASObject); q.Multitouch = a; })(q.ui || (q.ui = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(f) { (function(f) { var k = function(b) { function d() { b.call(this); } __extends(d, b); d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; d.NONE = "none"; d.GESTURE = "gesture"; d.TOUCH_POINT = "touchPoint"; return d; }(b.ASObject); f.MultitouchInputMode = k; })(f.ui || (f.ui = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(f) { (function(f) { var k = function(b) { function d() { b.call(this); } __extends(d, b); d.classInitializer = null; d.classSymbols = null; d.instanceSymbols = null; d.BIG_ENDIAN = "bigEndian"; d.LITTLE_ENDIAN = "littleEndian"; return d; }(b.ASObject); f.Endian = k; })(f.utils || (f.utils = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(g) { (function(g) { (function(u) { var k = f.AVM2.enterTimeline, r = f.AVM2.leaveTimeline, d = function(a) { function c(b, c) { a.call(this); this._delay = +b; this._repeatCount = c | 0; this._iteration = 0; } __extends(c, a); Object.defineProperty(c.prototype, "running", {get:function() { return this._running; }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "delay", {get:function() { return this._delay; }, set:function(a) { a = +a; (0 > a || !isFinite(a)) && this.sec.throwError("RangeError", b.Errors.DelayRangeError); this._delay = a; this._running && (this.stop(), this.start()); }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "repeatCount", {get:function() { return this._repeatCount; }, set:function(a) { (this._repeatCount = a | 0) && this._running && this._iteration >= this._repeatCount && this.stop(); }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "currentCount", {get:function() { return this._iteration; }, enumerable:!0, configurable:!0}); c.prototype.reset = function() { this._running && this.stop(); this._iteration = 0; }; c.prototype.stop = function() { this._running = !1; clearInterval(this._interval); }; c.prototype.start = function() { this._running || (this._running = !0, this._interval = setInterval(this._tick.bind(this), this._delay)); }; c.prototype._tick = function() { this._iteration++; if (this._running) { if (g.utils.Timer.dispatchingEnabled) { k("Timer.Timer"); try { this.dispatchEvent(new this.sec.flash.events.TimerEvent("timer", !0, !1)); } catch (a) { f.Debug.warning("caught error under Timer TIMER event: ", a); } r(); } if (0 !== this._repeatCount && this._iteration >= this._repeatCount) { this.stop(); k("Timer.TimerComplete"); try { this.dispatchEvent(new this.sec.flash.events.TimerEvent(g.events.TimerEvent.TIMER_COMPLETE, !1, !1)); } catch (b) { f.Debug.warning("caught error under Timer COMPLETE event: ", b); } r(); } } }; c.classInitializer = null; c.classSymbols = null; c.instanceSymbols = null; c.dispatchingEnabled = !0; return c; }(g.events.EventDispatcher); u.Timer = d; })(g.utils || (g.utils = {})); })(g.flash || (g.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { (function(b) { (function(f) { var g = function(b) { function d(a, c, d, f) { b.call(this, +c, d ? 0 : 1); } __extends(d, b); d.classInitializer = null; return d; }(b.utils.Timer); f.SetIntervalTimer = g; })(b.utils || (b.utils = {})); })(b.flash || (b.flash = {})); })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); var flashPackage = Shumway.AVMX.AS.flash; (function(f) { (function(b) { (function(b) { function f(q, k) { b.registerNativeClass(q, k); } f("flash.display.DisplayObject", b.flash.display.DisplayObject); f("flash.display.InteractiveObject", b.flash.display.InteractiveObject); f("flash.display.DisplayObjectContainer", b.flash.display.DisplayObjectContainer); f("flash.display.Sprite", b.flash.display.Sprite); f("flash.display.MovieClip", b.flash.display.MovieClip); f("flash.display.Shape", b.flash.display.Shape); f("flash.display.Bitmap", b.flash.display.Bitmap); f("flash.display.BitmapData", b.flash.display.BitmapData); f("flash.display.Stage", b.flash.display.Stage); f("flash.display.Loader", b.flash.display.Loader); f("flash.display.LoaderInfo", b.flash.display.LoaderInfo); f("flash.display.Graphics", b.flash.display.Graphics); f("flash.display.SimpleButton", b.flash.display.SimpleButton); f("flash.display.MorphShape", b.flash.display.MorphShape); f("flash.display.NativeMenu", b.flash.display.NativeMenu); f("flash.display.NativeMenuItem", b.flash.display.NativeMenuItem); f("flash.display.FrameLabel", b.flash.display.FrameLabel); f("flash.display.Scene", b.flash.display.Scene); f("flash.display.AVM1Movie", b.flash.display.AVM1Movie); f("flash.display.GradientType", b.flash.display.GradientType); f("flash.display.SpreadMethod", b.flash.display.SpreadMethod); f("flash.display.InterpolationMethod", b.flash.display.InterpolationMethod); f("flash.display.LineScaleMode", b.flash.display.LineScaleMode); f("flash.display.CapsStyle", b.flash.display.CapsStyle); f("flash.display.JointStyle", b.flash.display.JointStyle); f("flash.filters.BevelFilter", b.flash.filters.BevelFilter); f("flash.filters.BitmapFilter", b.flash.filters.BitmapFilter); f("flash.filters.BlurFilter", b.flash.filters.BlurFilter); f("flash.filters.ColorMatrixFilter", b.flash.filters.ColorMatrixFilter); f("flash.filters.ConvolutionFilter", b.flash.filters.ConvolutionFilter); f("flash.filters.DisplacementMapFilter", b.flash.filters.DisplacementMapFilter); f("flash.filters.DropShadowFilter", b.flash.filters.DropShadowFilter); f("flash.filters.GlowFilter", b.flash.filters.GlowFilter); f("flash.filters.GradientBevelFilter", b.flash.filters.GradientBevelFilter); f("flash.filters.GradientGlowFilter", b.flash.filters.GradientGlowFilter); f("flash.geom.Point", b.flash.geom.Point); f("flash.geom.Rectangle", b.flash.geom.Rectangle); f("flash.geom.Matrix", b.flash.geom.Matrix); f("flash.geom.Matrix3D", b.flash.geom.Matrix3D); f("flash.geom.Vector3D", b.flash.geom.Vector3D); f("flash.geom.Transform", b.flash.geom.Transform); f("flash.geom.ColorTransform", b.flash.geom.ColorTransform); f("flash.events.EventDispatcher", b.flash.events.EventDispatcher); f("flash.events.Event", b.flash.events.Event); f("flash.events.ErrorEvent", b.flash.events.ErrorEvent); f("flash.events.IOErrorEvent", b.flash.events.IOErrorEvent); f("flash.events.KeyboardEvent", b.flash.events.KeyboardEvent); f("flash.events.MouseEvent", b.flash.events.MouseEvent); f("flash.events.GestureEvent", b.flash.events.GestureEvent); f("flash.events.TextEvent", b.flash.events.TextEvent); f("flash.events.TimerEvent", b.flash.events.TimerEvent); f("flash.events.ProgressEvent", b.flash.events.ProgressEvent); f("flash.events.NetStatusEvent", b.flash.events.NetStatusEvent); f("flash.events.HTTPStatusEvent", b.flash.events.HTTPStatusEvent); f("flash.events.UncaughtErrorEvents", b.flash.events.UncaughtErrorEvents); f("flash.external.ExternalInterface", b.flash.external.ExternalInterface); f("flash.ui.ContextMenu", b.flash.ui.ContextMenu); f("flash.ui.ContextMenuItem", b.flash.ui.ContextMenuItem); f("flash.ui.ContextMenuBuiltInItems", b.flash.ui.ContextMenuBuiltInItems); f("flash.ui.ContextMenuClipboardItems", b.flash.ui.ContextMenuClipboardItems); f("flash.ui.Keyboard", b.flash.ui.Keyboard); f("flash.ui.Mouse", b.flash.ui.Mouse); f("flash.ui.MouseCursorData", b.flash.ui.MouseCursorData); f("flash.ui.GameInput", b.flash.ui.GameInput); f("flash.events.GameInputEvent", b.flash.events.GameInputEvent); f("flash.ui.GameInputControl", b.flash.ui.GameInputControl); f("flash.ui.GameInputControlType", b.flash.ui.GameInputControlType); f("flash.ui.GameInputDevice", b.flash.ui.GameInputDevice); f("flash.ui.GameInputFinger", b.flash.ui.GameInputFinger); f("flash.ui.GameInputHand", b.flash.ui.GameInputHand); f("flash.ui.Multitouch", b.flash.ui.Multitouch); f("flash.ui.MultitouchInputMode", b.flash.ui.MultitouchInputMode); f("flash.events.TouchEvent", b.flash.events.TouchEvent); f("flash.text.Font", b.flash.text.Font); f("flash.text.TextField", b.flash.text.TextField); f("flash.text.StaticText", b.flash.text.StaticText); f("flash.text.StyleSheet", b.flash.text.StyleSheet); f("flash.text.TextFormat", b.flash.text.TextFormat); f("flash.text.TextRun", b.flash.text.TextRun); f("flash.text.TextSnapshot", b.flash.text.TextSnapshot); f("flash.text.TextLineMetrics", b.flash.text.TextLineMetrics); f("flash.media.Sound", b.flash.media.Sound); f("flash.media.SoundChannel", b.flash.media.SoundChannel); f("flash.media.SoundMixer", b.flash.media.SoundMixer); f("flash.media.SoundTransform", b.flash.media.SoundTransform); f("flash.media.Video", b.flash.media.Video); f("flash.media.StageVideo", b.flash.media.StageVideo); f("flash.media.ID3Info", b.flash.media.ID3Info); f("flash.media.Microphone", b.flash.media.Microphone); f("flash.media.Camera", b.flash.media.Camera); f("flash.net.FileFilter", b.flash.net.FileFilter); f("flash.net.FileReference", b.flash.net.FileReference); f("flash.net.FileReferenceList", b.flash.net.FileReferenceList); f("flash.net.NetConnection", b.flash.net.NetConnection); f("flash.net.NetStream", b.flash.net.NetStream); f("flash.net.NetStreamInfo", b.flash.net.NetStreamInfo); f("flash.net.Responder", b.flash.net.Responder); f("flash.net.URLRequest", b.flash.net.URLRequest); f("flash.net.URLRequestHeader", b.flash.net.URLRequestHeader); f("flash.net.URLStream", b.flash.net.URLStream); f("flash.net.URLLoader", b.flash.net.URLLoader); f("flash.net.SharedObject", b.flash.net.SharedObject); f("flash.net.ObjectEncoding", b.flash.net.ObjectEncoding); f("flash.net.LocalConnection", b.flash.net.LocalConnection); f("flash.net.Socket", b.flash.net.Socket); f("flash.net.URLVariables", b.flash.net.URLVariables); f("flash.system.Capabilities", b.flash.system.Capabilities); f("flash.system.Security", b.flash.system.Security); f("flash.system.System", b.flash.system.System); f("flash.system.SecurityDomain", b.flash.system.SecurityDomain); f("flash.system.ApplicationDomain", b.flash.system.ApplicationDomain); f("flash.system.JPEGLoaderContext", b.flash.system.JPEGLoaderContext); f("flash.system.LoaderContext", b.flash.system.LoaderContext); f("flash.accessibility.Accessibility", b.flash.accessibility.Accessibility); f("flash.accessibility.AccessibilityProperties", b.flash.accessibility.AccessibilityProperties); f("flash.utils.Timer", b.flash.utils.Timer); f("flash.utils.ByteArray", b.flash.utils.ByteArray); f("flash.xml.XMLNode", b.flash.xml.XMLNode); f("flash.xml.XMLDocument", b.flash.xml.XMLDocument); b.registerNativeFunction("flash.system.fscommand", b.flash.system.fscommand); b.constructClassFromSymbol = function(b, f) { var g = Object.create(f.tPrototype); g._symbol || (g._symbol = b); g.applySymbol(); return g; }; })(b.AS || (b.AS = {})); })(f.AVMX || (f.AVMX = {})); })(Shumway || (Shumway = {})); console.timeEnd("Load Flash TS Dependencies"); console.time("Load AVM1 Dependencies"); var Shumway$$inline_656 = Shumway || (Shumway = {}), AVM1$$inline_657 = Shumway$$inline_656.AVM1 || (Shumway$$inline_656.AVM1 = {}), Option$$inline_658 = Shumway$$inline_656.Options.Option, avm1Options$$inline_659 = Shumway$$inline_656.Settings.shumwayOptions.register(new Shumway$$inline_656.Options.OptionSet("AVM1")); AVM1$$inline_657.avm1TraceEnabled = avm1Options$$inline_659.register(new Option$$inline_658("t1", "traceAvm1", "boolean", !1, "trace AVM1 execution")); AVM1$$inline_657.avm1ErrorsEnabled = avm1Options$$inline_659.register(new Option$$inline_658("e1", "errorsAvm1", "boolean", !1, "fail on AVM1 warnings and errors")); AVM1$$inline_657.avm1TimeoutDisabled = avm1Options$$inline_659.register(new Option$$inline_658("ha1", "nohangAvm1", "boolean", !1, "disable fail on AVM1 hang")); AVM1$$inline_657.avm1CompilerEnabled = avm1Options$$inline_659.register(new Option$$inline_658("ca1", "compileAvm1", "boolean", !0, "compiles AVM1 code")); AVM1$$inline_657.avm1DebuggerEnabled = avm1Options$$inline_659.register(new Option$$inline_658("da1", "debugAvm1", "boolean", !1, "allows AVM1 code debugging")); AVM1$$inline_657.avm1WellknownActionsCompilationsEnabled = avm1Options$$inline_659.register(new Option$$inline_658("cw1", "wellknownAvm1", "boolean", !0, "Replaces well-known actions patterns instead of compilation")); (function(f) { (function(b) { var f = function() { function b(f, g) { this.array = f; this.position = 0; this.end = f.length; this.readANSI = 6 > g; var r = new ArrayBuffer(4); (new Int32Array(r))[0] = 1; if (!(new Uint8Array(r))[0]) { throw Error("big-endian platform"); } } b.prototype.readUI8 = function() { return this.array[this.position++]; }; b.prototype.readUI16 = function() { var b = this.position, f = this.array, f = f[b + 1] << 8 | f[b]; this.position = b + 2; return f; }; b.prototype.readSI16 = function() { var b = this.position, f = this.array, f = f[b + 1] << 8 | f[b]; this.position = b + 2; return 32768 > f ? f : f - 65536; }; b.prototype.readInteger = function() { var b = this.position, f = this.array, f = f[b] | f[b + 1] << 8 | f[b + 2] << 16 | f[b + 3] << 24; this.position = b + 4; return f; }; b.prototype.readFloat = function() { var b = this.position, f = this.array, g = new ArrayBuffer(4), d = new Uint8Array(g); d[0] = f[b]; d[1] = f[b + 1]; d[2] = f[b + 2]; d[3] = f[b + 3]; this.position = b + 4; return (new Float32Array(g))[0]; }; b.prototype.readDouble = function() { var b = this.position, f = this.array, g = new ArrayBuffer(8), d = new Uint8Array(g); d[4] = f[b]; d[5] = f[b + 1]; d[6] = f[b + 2]; d[7] = f[b + 3]; d[0] = f[b + 4]; d[1] = f[b + 5]; d[2] = f[b + 6]; d[3] = f[b + 7]; this.position = b + 8; return (new Float64Array(g))[0]; }; b.prototype.readBoolean = function() { return !!this.readUI8(); }; b.prototype.readANSIString = function() { for (var b = "", f;f = this.readUI8();) { b += String.fromCharCode(f); } return b; }; b.prototype.readUTF8String = function() { for (var b = "", f;f = this.readUI8();) { if (128 > f) { b += String.fromCharCode(f); } else { if (128 === (f & 192)) { b += String.fromCharCode(f); } else { var g = this.position - 1, d = 192, a = 5; do { var c = d >> 1 | 128; if ((f & c) === d) { break; } d = c; --a; } while (0 <= a); d = f & (1 << a) - 1; for (c = 5;c >= a;--c) { if (f = this.readUI8(), 128 !== (f & 192)) { for (f = this.position - 1, this.position = g;this.position < f;) { b += String.fromCharCode(this.readUI8()); } } else { d = d << 6 | f & 63; } } b = 65536 <= d ? b + String.fromCharCode(d - 65536 >> 10 & 1023 | 55296, d & 1023 | 56320) : b + String.fromCharCode(d); } } } return b; }; b.prototype.readString = function() { return this.readANSI ? this.readANSIString() : this.readUTF8String(); }; b.prototype.readBytes = function(b) { var f = this.position, g = Math.max(this.end - f, 0); g < b && (b = g); g = this.array.subarray(f, f + b); this.position = f + b; return g; }; return b; }(); b.ActionsDataStream = f; })(f.AVM1 || (f.AVM1 = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { var g = f.AVM1.ActionsDataStream; (function(b) { b[b.None = 0] = "None"; b[b.ActionGotoFrame = 129] = "ActionGotoFrame"; b[b.ActionGetURL = 131] = "ActionGetURL"; b[b.ActionNextFrame = 4] = "ActionNextFrame"; b[b.ActionPreviousFrame = 5] = "ActionPreviousFrame"; b[b.ActionPlay = 6] = "ActionPlay"; b[b.ActionStop = 7] = "ActionStop"; b[b.ActionToggleQuality = 8] = "ActionToggleQuality"; b[b.ActionStopSounds = 9] = "ActionStopSounds"; b[b.ActionWaitForFrame = 138] = "ActionWaitForFrame"; b[b.ActionSetTarget = 139] = "ActionSetTarget"; b[b.ActionGoToLabel = 140] = "ActionGoToLabel"; b[b.ActionPush = 150] = "ActionPush"; b[b.ActionPop = 23] = "ActionPop"; b[b.ActionAdd = 10] = "ActionAdd"; b[b.ActionSubtract = 11] = "ActionSubtract"; b[b.ActionMultiply = 12] = "ActionMultiply"; b[b.ActionDivide = 13] = "ActionDivide"; b[b.ActionEquals = 14] = "ActionEquals"; b[b.ActionLess = 15] = "ActionLess"; b[b.ActionAnd = 16] = "ActionAnd"; b[b.ActionOr = 17] = "ActionOr"; b[b.ActionNot = 18] = "ActionNot"; b[b.ActionStringEquals = 19] = "ActionStringEquals"; b[b.ActionStringLength = 20] = "ActionStringLength"; b[b.ActionMBStringLength = 49] = "ActionMBStringLength"; b[b.ActionStringAdd = 33] = "ActionStringAdd"; b[b.ActionStringExtract = 21] = "ActionStringExtract"; b[b.ActionMBStringExtract = 53] = "ActionMBStringExtract"; b[b.ActionStringLess = 41] = "ActionStringLess"; b[b.ActionToInteger = 24] = "ActionToInteger"; b[b.ActionCharToAscii = 50] = "ActionCharToAscii"; b[b.ActionMBCharToAscii = 54] = "ActionMBCharToAscii"; b[b.ActionAsciiToChar = 51] = "ActionAsciiToChar"; b[b.ActionMBAsciiToChar = 55] = "ActionMBAsciiToChar"; b[b.ActionJump = 153] = "ActionJump"; b[b.ActionIf = 157] = "ActionIf"; b[b.ActionCall = 158] = "ActionCall"; b[b.ActionGetVariable = 28] = "ActionGetVariable"; b[b.ActionSetVariable = 29] = "ActionSetVariable"; b[b.ActionGetURL2 = 154] = "ActionGetURL2"; b[b.ActionGotoFrame2 = 159] = "ActionGotoFrame2"; b[b.ActionSetTarget2 = 32] = "ActionSetTarget2"; b[b.ActionGetProperty = 34] = "ActionGetProperty"; b[b.ActionSetProperty = 35] = "ActionSetProperty"; b[b.ActionCloneSprite = 36] = "ActionCloneSprite"; b[b.ActionRemoveSprite = 37] = "ActionRemoveSprite"; b[b.ActionStartDrag = 39] = "ActionStartDrag"; b[b.ActionEndDrag = 40] = "ActionEndDrag"; b[b.ActionWaitForFrame2 = 141] = "ActionWaitForFrame2"; b[b.ActionTrace = 38] = "ActionTrace"; b[b.ActionGetTime = 52] = "ActionGetTime"; b[b.ActionRandomNumber = 48] = "ActionRandomNumber"; b[b.ActionCallFunction = 61] = "ActionCallFunction"; b[b.ActionCallMethod = 82] = "ActionCallMethod"; b[b.ActionConstantPool = 136] = "ActionConstantPool"; b[b.ActionDefineFunction = 155] = "ActionDefineFunction"; b[b.ActionDefineLocal = 60] = "ActionDefineLocal"; b[b.ActionDefineLocal2 = 65] = "ActionDefineLocal2"; b[b.ActionDelete = 58] = "ActionDelete"; b[b.ActionDelete2 = 59] = "ActionDelete2"; b[b.ActionEnumerate = 70] = "ActionEnumerate"; b[b.ActionEquals2 = 73] = "ActionEquals2"; b[b.ActionGetMember = 78] = "ActionGetMember"; b[b.ActionInitArray = 66] = "ActionInitArray"; b[b.ActionInitObject = 67] = "ActionInitObject"; b[b.ActionNewMethod = 83] = "ActionNewMethod"; b[b.ActionNewObject = 64] = "ActionNewObject"; b[b.ActionSetMember = 79] = "ActionSetMember"; b[b.ActionTargetPath = 69] = "ActionTargetPath"; b[b.ActionWith = 148] = "ActionWith"; b[b.ActionToNumber = 74] = "ActionToNumber"; b[b.ActionToString = 75] = "ActionToString"; b[b.ActionTypeOf = 68] = "ActionTypeOf"; b[b.ActionAdd2 = 71] = "ActionAdd2"; b[b.ActionLess2 = 72] = "ActionLess2"; b[b.ActionModulo = 63] = "ActionModulo"; b[b.ActionBitAnd = 96] = "ActionBitAnd"; b[b.ActionBitLShift = 99] = "ActionBitLShift"; b[b.ActionBitOr = 97] = "ActionBitOr"; b[b.ActionBitRShift = 100] = "ActionBitRShift"; b[b.ActionBitURShift = 101] = "ActionBitURShift"; b[b.ActionBitXor = 98] = "ActionBitXor"; b[b.ActionDecrement = 81] = "ActionDecrement"; b[b.ActionIncrement = 80] = "ActionIncrement"; b[b.ActionPushDuplicate = 76] = "ActionPushDuplicate"; b[b.ActionReturn = 62] = "ActionReturn"; b[b.ActionStackSwap = 77] = "ActionStackSwap"; b[b.ActionStoreRegister = 135] = "ActionStoreRegister"; b[b.ActionInstanceOf = 84] = "ActionInstanceOf"; b[b.ActionEnumerate2 = 85] = "ActionEnumerate2"; b[b.ActionStrictEquals = 102] = "ActionStrictEquals"; b[b.ActionGreater = 103] = "ActionGreater"; b[b.ActionStringGreater = 104] = "ActionStringGreater"; b[b.ActionDefineFunction2 = 142] = "ActionDefineFunction2"; b[b.ActionExtends = 105] = "ActionExtends"; b[b.ActionCastOp = 43] = "ActionCastOp"; b[b.ActionImplementsOp = 44] = "ActionImplementsOp"; b[b.ActionTry = 143] = "ActionTry"; b[b.ActionThrow = 42] = "ActionThrow"; b[b.ActionFSCommand2 = 45] = "ActionFSCommand2"; b[b.ActionStrictMode = 137] = "ActionStrictMode"; })(b.ActionCode || (b.ActionCode = {})); var q = function() { return function(b) { this.registerNumber = b; }; }(); b.ParsedPushRegisterAction = q; var u = function() { return function(b) { this.constantIndex = b; }; }(); b.ParsedPushConstantAction = u; (function(b) { b[b.None = 0] = "None"; b[b.Argument = 1] = "Argument"; b[b.This = 2] = "This"; b[b.Arguments = 4] = "Arguments"; b[b.Super = 8] = "Super"; b[b.Global = 16] = "Global"; b[b.Parent = 32] = "Parent"; b[b.Root = 64] = "Root"; })(b.ArgumentAssignmentType || (b.ArgumentAssignmentType = {})); var k = function() { function d(a, b) { this._actionsData = a; this.dataId = a.id; this._stream = new g(a.bytes, b); } Object.defineProperty(d.prototype, "position", {get:function() { return this._stream.position; }, set:function(a) { this._stream.position = a; }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "eof", {get:function() { return this._stream.position >= this._stream.end; }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "length", {get:function() { return this._stream.end; }, enumerable:!0, configurable:!0}); d.prototype.readNext = function() { var a = this._stream, c = a.position, d = a.readUI8(), f = 128 <= d ? a.readUI16() : 0, f = a.position + f, g = null; switch(d | 0) { case 129: var k = a.readUI16(), g = a.readUI8(), p = !1; 6 !== g && 7 !== g ? a.position-- : (f++, p = 6 === g); g = [k, p]; break; case 131: k = a.readString(); g = a.readString(); g = [k, g]; break; case 138: var k = a.readUI16(), h = a.readUI8(), g = [k, h]; break; case 139: g = [a.readString()]; break; case 140: k = a.readString(); g = a.readUI8(); p = !1; 6 !== g && 7 !== g ? a.position-- : (f++, p = 6 === g); g = [k, p]; break; case 150: for (g = [];a.position < f;) { k = a.readUI8(); switch(k | 0) { case 0: k = a.readString(); break; case 1: k = a.readFloat(); break; case 2: k = null; break; case 3: k = void 0; break; case 4: k = new q(a.readUI8()); break; case 5: k = a.readBoolean(); break; case 6: k = a.readDouble(); break; case 7: k = a.readInteger(); break; case 8: k = new u(a.readUI8()); break; case 9: k = new u(a.readUI16()); break; default: console.error("Unknown value type: " + k); a.position = f; continue; } g.push(k); } break; case 153: k = a.readSI16(); g = [k]; break; case 157: k = a.readSI16(); g = [k]; break; case 154: k = a.readUI8(); g = [k]; break; case 159: k = a.readUI8(); g = [k]; k & 2 && g.push(a.readUI16()); break; case 141: h = a.readUI8(); g = [h]; break; case 136: for (var h = a.readUI16(), k = [], m = 0;m < h;m++) { k.push(a.readString()); } g = [k]; break; case 155: g = a.readString(); h = a.readUI16(); p = []; for (m = 0;m < h;m++) { p.push(a.readString()); } k = a.readUI16(); f += k; k = new b.AVM1ActionsData(a.readBytes(k), this.dataId + "_f" + a.position, this._actionsData); g = [k, g, p]; break; case 148: k = a.readUI16(); f += k; g = [new b.AVM1ActionsData(a.readBytes(k), this.dataId + "_w" + a.position, this._actionsData)]; break; case 135: var v = a.readUI8(), g = [v]; break; case 142: for (var g = a.readString(), h = a.readUI16(), w = a.readUI8(), k = a.readUI16(), H = [], p = [], m = 0;m < h;m++) { var v = a.readUI8(), K = a.readString(); p.push(K); v && (H[v] = {type:1, name:K, index:m}); } h = 1; k & 1 && (H[h++] = {type:2}); k & 4 && (H[h++] = {type:4}); k & 16 && (H[h++] = {type:8}); k & 64 && (H[h++] = {type:64}); k & 128 && (H[h++] = {type:32}); k & 256 && (H[h++] = {type:16}); h = 0; k & 2 && (h |= 2); k & 8 && (h |= 4); k & 32 && (h |= 8); k = a.readUI16(); f += k; k = new b.AVM1ActionsData(a.readBytes(k), this.dataId + "_f" + a.position, this._actionsData); g = [k, g, p, w, H, h]; break; case 143: k = a.readUI8(); g = !!(k & 4); p = !!(k & 2); k = !!(k & 1); h = a.readUI16(); m = a.readUI16(); H = a.readUI16(); w = g ? a.readUI8() : a.readString(); f += h + m + H; h = new b.AVM1ActionsData(a.readBytes(h), this.dataId + "_t" + a.position, this._actionsData); m = new b.AVM1ActionsData(a.readBytes(m), this.dataId + "_c" + a.position, this._actionsData); H = new b.AVM1ActionsData(a.readBytes(H), this.dataId + "_z" + a.position, this._actionsData); g = [g, w, h, k, m, p, H]; break; case 137: g = [a.readUI8()]; } a.position = f; return {position:c, actionCode:d, actionName:r[d], args:g}; }; d.prototype.skip = function(a) { for (var b = this._stream;0 < a && b.position < b.end;) { var d = 128 <= b.readUI8() ? b.readUI16() : 0; b.position += d; a--; } }; return d; }(); b.ActionsDataParser = k; var r = {0:"EOA", 4:"ActionNextFrame", 5:"ActionPreviousFrame", 6:"ActionPlay", 7:"ActionStop", 8:"ActionToggleQuality", 9:"ActionStopSounds", 10:"ActionAdd", 11:"ActionSubtract", 12:"ActionMultiply", 13:"ActionDivide", 14:"ActionEquals", 15:"ActionLess", 16:"ActionAnd", 17:"ActionOr", 18:"ActionNot", 19:"ActionStringEquals", 20:"ActionStringLength", 21:"ActionStringExtract", 23:"ActionPop", 24:"ActionToInteger", 28:"ActionGetVariable", 29:"ActionSetVariable", 32:"ActionSetTarget2", 33:"ActionStringAdd", 34:"ActionGetProperty", 35:"ActionSetProperty", 36:"ActionCloneSprite", 37:"ActionRemoveSprite", 38:"ActionTrace", 39:"ActionStartDrag", 40:"ActionEndDrag", 41:"ActionStringLess", 42:"ActionThrow", 43:"ActionCastOp", 44:"ActionImplementsOp", 45:"ActionFSCommand2", 48:"ActionRandomNumber", 49:"ActionMBStringLength", 50:"ActionCharToAscii", 51:"ActionAsciiToChar", 52:"ActionGetTime", 53:"ActionMBStringExtract", 54:"ActionMBCharToAscii", 55:"ActionMBAsciiToChar", 58:"ActionDelete", 59:"ActionDelete2", 60:"ActionDefineLocal", 61:"ActionCallFunction", 62:"ActionReturn", 63:"ActionModulo", 64:"ActionNewObject", 65:"ActionDefineLocal2", 66:"ActionInitArray", 67:"ActionInitObject", 68:"ActionTypeOf", 69:"ActionTargetPath", 70:"ActionEnumerate", 71:"ActionAdd2", 72:"ActionLess2", 73:"ActionEquals2", 74:"ActionToNumber", 75:"ActionToString", 76:"ActionPushDuplicate", 77:"ActionStackSwap", 78:"ActionGetMember", 79:"ActionSetMember", 80:"ActionIncrement", 81:"ActionDecrement", 82:"ActionCallMethod", 83:"ActionNewMethod", 84:"ActionInstanceOf", 85:"ActionEnumerate2", 96:"ActionBitAnd", 97:"ActionBitOr", 98:"ActionBitXor", 99:"ActionBitLShift", 100:"ActionBitRShift", 101:"ActionBitURShift", 102:"ActionStrictEquals", 103:"ActionGreater", 104:"ActionStringGreater", 105:"ActionExtends", 129:"ActionGotoFrame", 131:"ActionGetURL", 135:"ActionStoreRegister", 136:"ActionConstantPool", 137:"ActionStrictMode", 138:"ActionWaitForFrame", 139:"ActionSetTarget", 140:"ActionGoToLabel", 141:"ActionWaitForFrame2", 142:"ActionDefineFunction2", 143:"ActionTry", 148:"ActionWith", 150:"ActionPush", 153:"ActionJump", 154:"ActionGetURL2", 155:"ActionDefineFunction", 157:"ActionIf", 158:"ActionCall", 159:"ActionGotoFrame2"}; })(f.AVM1 || (f.AVM1 = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { var f = function() { function b() { this.parentResults = null; this.registersLimit = 0; } b.prototype.analyze = function(b) { for (var f = [], g = [0], d = [!0], a = !1, c = null, e = [0];0 < e.length;) { var l = e.shift(); if (!f[l]) { for (b.position = l;!b.eof && !f[l];) { var n = b.readNext(); if (0 === n.actionCode) { break; } var t = b.position, p = {action:n, next:t, conditionalJumpTo:-1}, h = 0, m = !1, v = !1; switch(n.actionCode) { case 138: ; case 141: m = !0; b.skip(138 === n.actionCode ? n.args[1] : n.args[0]); h = b.position; b.position = t; break; case 153: m = v = !0; h = t + n.args[0]; break; case 157: m = !0; h = t + n.args[0]; break; case 42: ; case 62: ; case 0: m = v = !0; h = b.length; break; case 136: if (a) { c = null; break; } a = !0; 0 === l && (c = n.args[0]); } if (m) { if (0 > h || h > b.length) { console.error("jump outside the action block;"), h = b.length; } v ? p.next = h : p.conditionalJumpTo = h; d[h] || (g.push(h), e.push(h), d[h] = !0); } f[l] = p; if (v) { break; } l = t; } } } var q = []; g.forEach(function(a) { if (f[a]) { var b = [], c = a; do { c = f[c], b.push(c), c = c.next; } while (!d[c] && f[c]); q.push({label:a, items:b, jump:c}); } }); g = null; a ? g = c : this.parentResults && (g = this.parentResults.singleConstantPool); return {actions:f, blocks:q, dataId:b.dataId, singleConstantPool:g, registersLimit:this.registersLimit}; }; return b; }(); b.ActionsDataAnalyzer = f; })(f.AVM1 || (f.AVM1 = {})); })(Shumway || (Shumway = {})); __extends = this.__extends || function(f, b) { function g() { this.constructor = f; } for (var q in b) { b.hasOwnProperty(q) && (f[q] = b[q]); } g.prototype = b.prototype; f.prototype = new g; }; (function(f) { (function(b) { function g(a) { } function q(a, b, c) { return b instanceof l ? void 0 !== c ? b.alDefaultValue(c) : b.alDefaultValue() : b; } function u(a, b) { "object" === typeof b && null !== b && (b = q(a, b, 0)); switch(typeof b) { case "undefined": return 7 <= a.swfVersion ? NaN : 0; case "object": return null === b ? 7 <= a.swfVersion ? NaN : 0 : 5 <= a.swfVersion ? NaN : 0; case "boolean": return b ? 1 : 0; case "number": return b; case "string": return "" === b && 5 > a.swfVersion ? 0 : +b; } } function k(a, b) { var c = u(a, b); return isNaN(c) ? 0 : 0 === c || c === Number.POSITIVE_INFINITY || c === Number.NEGATIVE_INFINITY ? c : 0 > c ? Math.ceil(c) : Math.floor(c); } function r(a, b) { "object" === typeof b && null !== b && (b = q(a, b, 1)); switch(typeof b) { case "undefined": return 7 <= a.swfVersion ? "undefined" : ""; case "object": return null === b ? "null" : "[type " + d(b) + "]"; case "boolean": return b ? "true" : "false"; case "number": return b + ""; case "string": return b; } } function d(a) { return a instanceof n ? "Function" : "Object"; } function a(a) { return a instanceof n; } function c(a, b, c) { if (!(b instanceof l && c instanceof l)) { return !1; } for (a = c.alGetPrototypeProperty();b;b = b.alPrototype) { if (b === a) { return !0; } } return !1; } var e = function() { return function() { }; }(); b.NullPrototypeObject = e; e.prototype = Object.create(null); (function(a) { a[a.DONT_ENUM = 1] = "DONT_ENUM"; a[a.DONT_DELETE = 2] = "DONT_DELETE"; a[a.READ_ONLY = 4] = "READ_ONLY"; a[a.DATA = 64] = "DATA"; a[a.ACCESSOR = 128] = "ACCESSOR"; a[a.ASSETPROP_MASK = a.DONT_DELETE | a.DONT_ENUM | a.READ_ONLY] = "ASSETPROP_MASK"; })(b.AVM1PropertyFlags || (b.AVM1PropertyFlags = {})); (function(a) { a[a.NUMBER = 0] = "NUMBER"; a[a.STRING = 1] = "STRING"; })(b.AVM1DefaultValueHint || (b.AVM1DefaultValueHint = {})); var l = function(b) { function c(a) { b.call(this); this._avm1Context = a; this._ownProperties = Object.create(null); this._prototype = null; var d = this; this.alSetOwnProperty("__proto__", {flags:131, get:{alCall:function(a, b) { return d.alPrototype; }}, set:{alCall:function(a, b) { d.alPrototype = b[0]; }}}); } __extends(c, b); Object.defineProperty(c.prototype, "context", {get:function() { return this._avm1Context; }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "alPrototype", {get:function() { return this._prototype; }, set:function(a) { for (var b = a;b;) { if (b === this) { return; } b = b.alPrototype; } this._prototype = a; }, enumerable:!0, configurable:!0}); c.prototype.alGetPrototypeProperty = function() { return this.alGet("prototype"); }; c.prototype.alSetOwnPrototypeProperty = function(a) { this.alSetOwnProperty("prototype", {flags:65, value:a}); }; c.prototype.alGetConstructorProperty = function() { return this.alGet("__constructor__"); }; c.prototype.alSetOwnConstructorProperty = function(a) { this.alSetOwnProperty("__constructor__", {flags:65, value:a}); }; c.prototype._escapeProperty = function(a) { var b = this.context; a = r(b, a); b.isPropertyCaseSensitive || (a = a.toLowerCase()); "_" === a[0] && (a = "__avm1" + a); return a; }; c.prototype._unescapeProperty = function(a) { "_" === a[0] && 0 === a.indexOf("__avm1") && (a = a.substring(6)); return a; }; c.prototype._debugEscapeProperty = function(a) { var b = this.context; a = r(b, a); b.isPropertyCaseSensitive || (a = a.toLowerCase()); return "$Bg" + a; }; c.prototype.alGetOwnProperty = function(a) { a = this._escapeProperty(a); return this._ownProperties[a]; }; c.prototype.alSetOwnProperty = function(a, b) { var c = this._escapeProperty(a); this._ownProperties[c] = b; }; c.prototype.alHasOwnProperty = function(a) { a = this._escapeProperty(a); return !!this._ownProperties[a]; }; c.prototype.alDeleteOwnProperty = function(a) { a = this._escapeProperty(a); delete this._ownProperties[a]; }; c.prototype.alGetOwnPropertiesKeys = function() { var a = [], b; for (b in this._ownProperties) { if (!(this._ownProperties[b].flags & 1)) { var c = this._unescapeProperty(b); a.push(c); } } return a; }; c.prototype.alGetProperty = function(a) { var b = this.alGetOwnProperty(a); return b ? b : this._prototype ? this._prototype.alGetProperty(a) : void 0; }; c.prototype.alGet = function(a) { if (a = this.alGetProperty(a)) { return a.flags & 64 ? a.value : (a = a.get) ? a.alCall(this) : void 0; } }; c.prototype.alCanPut = function(a) { var b = this.alGetOwnProperty(a); return b ? b.flags & 128 ? !!b.set : !(b.flags & 4) : (b = this._prototype) ? b.alCanPut(a) : !0; }; c.prototype.alPut = function(a, b) { if (this.alCanPut(a)) { var c = this.alGetOwnProperty(a); if (c && c.flags & 64) { c.watcher && (b = c.watcher.callback.alCall(this, [c.watcher.name, c.value, b, c.watcher.userData])), c = {flags:c.flags, value:b}, this.alSetOwnProperty(a, c); } else { if ((c = this.alGetProperty(a)) && c.flags & 128) { if (c.watcher) { var d = c.get ? c.get.alCall(this) : void 0; b = c.watcher.callback.alCall(this, [c.watcher.name, d, b, c.watcher.userData]); } c.set.alCall(this, [b]); } else { c && c.watcher && (b = c.watcher.callback.alCall(this, [c.watcher.name, c.value, b, c.watcher.userData])), c = {flags:c ? c.flags : 64, value:b}, this.alSetOwnProperty(a, c); } } } }; c.prototype.alHasProperty = function(a) { return !!this.alGetProperty(a); }; c.prototype.alDeleteProperty = function(a) { var b = this.alGetOwnProperty(a); if (!b) { return !0; } if (b.flags & 2) { return !1; } this.alDeleteOwnProperty(a); return !0; }; c.prototype.alAddPropertyWatcher = function(a, b, c) { var d = this.alGetProperty(a); if (!d) { return !1; } d.watcher = {name:a, callback:b, userData:c}; return !0; }; c.prototype.alRemotePropertyWatcher = function(a) { a = this.alGetProperty(a); if (!a || !a.watcher) { return !1; } a.watcher = void 0; return !0; }; c.prototype.alDefaultValue = function(b) { void 0 === b && (b = 0); if (1 === b) { b = this.alGet("toString"); if (a(b)) { return b = b.alCall(this); } b = this.alGet("valueOf"); } else { b = this.alGet("valueOf"); if (a(b)) { return b = b.alCall(this); } b = this.alGet("toString"); } return a(b) ? b = b.alCall(this) : this; }; c.prototype.alGetKeys = function() { var a = this.alGetOwnPropertiesKeys(), b = this._prototype; if (!b) { return a; } b = b.alGetKeys(); if (0 === a.length) { return b; } for (var c = Object.create(null), d = 0;d < a.length;d++) { c[a[d]] = !0; } for (d = 0;d < b.length;d++) { c[b[d]] = !0; } return Object.getOwnPropertyNames(c); }; return c; }(e); b.AVM1Object = l; var n = function(a) { function b(c) { a.call(this, c); this.alPrototype = c.builtins.Function.alGetPrototypeProperty(); } __extends(b, a); b.prototype.alConstruct = function(a) { throw Error("not implemented AVM1Function.alConstruct"); }; b.prototype.alCall = function(a, b) { throw Error("not implemented AVM1Function.alCall"); }; b.prototype.toJSFunction = function() { var a; void 0 === a && (a = null); var b = this, c = this.context; return function() { var d = Array.prototype.slice.call(arguments, 0); return c.executeFunction(b, a, d); }; }; return b; }(l); b.AVM1Function = n; var t = function(a) { function b(c, d, e) { a.call(this, c); this._fn = d; e && (this._ctor = e); } __extends(b, a); b.prototype.alConstruct = function(a) { if (!this._ctor) { throw Error("not a constructor"); } return this._ctor.apply(this, a); }; b.prototype.alCall = function(a, b) { if (!this._fn) { throw Error("not callable"); } return this._fn.apply(a, b); }; return b; }(n); b.AVM1NativeFunction = t; e = function(a) { function b(c) { a.call(this, c); var d = new l(c); d.alPrototype = c.builtins.Object.alGetPrototypeProperty(); d.alSetOwnProperty("constructor", {flags:67}); this.alSetOwnPrototypeProperty(d); } __extends(b, a); b.prototype.alConstruct = function(a) { var b = new l(this.context), c = this.alGetPrototypeProperty(); c instanceof l || (c = this.context.builtins.Object.alGetPrototypeProperty()); b.alPrototype = c; b.alSetOwnConstructorProperty(this); a = this.alCall(b, a); return a instanceof l ? a : b; }; return b; }(n); b.AVM1EvalFunction = e; g.prototype = Object.create(Error.prototype); b.alToPrimitive = q; b.alToBoolean = function(a, b) { switch(typeof b) { case "undefined": return !1; case "object": return null !== b; case "boolean": return b; case "string": ; case "number": return !!b; } }; b.alToNumber = u; b.alToInteger = k; b.alToInt32 = function(a, b) { return u(a, b) | 0; }; b.alToString = r; b.alToObject = function(a, c) { switch(typeof c) { case "undefined": throw new g;; case "object": if (null === c) { throw new g; } return Array.isArray(c) ? new b.Natives.AVM1ArrayNative(a, c) : c; case "boolean": return new b.Natives.AVM1BooleanNative(a, c); case "number": return new b.Natives.AVM1NumberNative(a, c); case "string": return new b.Natives.AVM1StringNative(a, c); } }; b.alNewObject = function(a) { var b = new l(a); b.alPrototype = a.builtins.Object.alGetPrototypeProperty(); b.alSetOwnConstructorProperty(a.builtins.Object); return b; }; b.alGetObjectClass = d; b.alCoerceString = function(a, b) { return b instanceof l ? r(a, b) : f.AVMX.axCoerceString(b); }; b.alCoerceNumber = function(a, b) { return f.isNullOrUndefined(b) ? void 0 : u(a, b); }; b.alIsIndex = function(a, b) { return b instanceof l ? f.isIndex(r(a, b)) : f.isIndex(b); }; b.alForEachProperty = function(a, b, c) { a.alGetKeys().forEach(b, c); }; b.alIsFunction = a; b.alCallProperty = function(a, b, c) { a.alGet(b).alCall(a, c); }; b.alInstanceOf = c; b.alIsArray = function(a, b) { return c(a, b, a.builtins.Array); }; b.alIsArrayObject = function(a, b) { if (!(b instanceof l)) { return !1; } var c = k(a, b.alGet("length")); return isNaN(c) || 0 > c || 4294967296 <= c ? !1 : !0; }; b.alIterateArray = function(a, b, c, d) { void 0 === d && (d = null); a = k(a, b.alGet("length")); if (!(isNaN(a) || 4294967296 <= a)) { for (var e = 0;e < a;e++) { c.call(d, b.alGet(e), e); } } }; b.alIsString = function(a, b) { return "string" === typeof b; }; b.alDefineObjectProperties = function(a, b) { var c = a.context; Object.getOwnPropertyNames(b).forEach(function(d) { var e = b[d], f, g, l, n = 0; "object" === typeof e ? (e.get || e.set ? (g = e.get ? new t(c, e.get) : void 0, l = e.set ? new t(c, e.set) : void 0, n |= 128) : (f = e.value, "function" === typeof f && (f = new t(c, f)), n |= 64, e.writable || (n |= 4)), e.enumerable || (n |= 1), e.configurable || (n |= 2)) : (f = e, "function" === typeof f && (f = new t(c, f)), n |= 71); a.alSetOwnProperty(d, g || l ? {flags:n, get:g, set:l} : {flags:n, value:f}); }); }; })(f.AVM1 || (f.AVM1 = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(g) { function q(a, b) { if (a instanceof b) { return a; } throw Error("Invalid type"); } var u = function(a) { function c(b) { a.call(this, b); } __extends(c, a); c.prototype._initializePrototype = function() { b.alDefineObjectProperties(this, {constructor:{value:this.context.builtins.Object, writable:!0}, valueOf:{value:this._valueOf, writable:!0}, toString:{value:this._toString, writable:!0}, addProperty:{value:this.addProperty}, hasOwnProperty:{value:this.hasOwnProperty}, isPropertyEnumerable:{value:this.isPropertyEnumerable}, isPrototypeOf:{value:this.isPrototypeOf}, unwatch:{value:this.unwatch}, watch:{value:this.watch}}); }; c.prototype._valueOf = function() { return this; }; c.prototype._toString = function() { return b.alIsFunction(this) ? "[type " + b.alGetObjectClass(this) + "]" : "[object " + b.alGetObjectClass(this) + "]"; }; c.prototype.addProperty = function(a, c, d) { if ("string" !== typeof a || "" === a || !b.alIsFunction(c) || !b.alIsFunction(d) && null !== d) { return !1; } var e = this.alGetOwnProperty(a); if (e && e.flags & 2) { return !1; } this.alSetOwnProperty(a, {flags:128, get:c, set:d || void 0}); return !0; }; c.prototype.hasOwnProperty = function(a) { return this.alHasOwnProperty(a); }; c.prototype.isPropertyEnumerable = function(a) { return !(this.alGetProperty(a).flags & 1); }; c.prototype.isPrototypeOf = function(a) { return b.alInstanceOf(this.context, this, a); }; c.prototype.unwatch = function(a) { a = b.alCoerceString(this.context, a); return this.alRemotePropertyWatcher(a); }; c.prototype.watch = function(a, c, d) { a = b.alCoerceString(this.context, a); return b.alIsFunction(c) ? this.alAddPropertyWatcher(a, c, d) : !1; }; return c; }(b.AVM1Object), k = function(a) { function c(d) { a.call(this, d); this.alPrototype = d.builtins.Function.alGetPrototypeProperty(); d = d.builtins.Object.alGetPrototypeProperty(); b.alDefineObjectProperties(this, {prototype:{value:d}, registerClass:{value:this.registerClass}}); } __extends(c, a); c.prototype.registerClass = function(a, b) { this.context.registerClass(a, b); }; c.prototype.alConstruct = function(a) { if (a) { a = a[0]; if (a instanceof b.AVM1Object) { return a; } switch(typeof a) { case "string": ; case "boolean": ; case "number": return b.alToObject(this.context, a); } } return b.alNewObject(this.context); }; c.prototype.alCall = function(a, c) { return c && null !== c[0] && void 0 !== c[0] ? b.alToObject(this.context, c[0]) : b.alNewObject(this.context); }; return c; }(b.AVM1Function); g.AVM1ObjectFunction = k; var r = function(a) { function c(b) { a.call(this, b); } __extends(c, a); c.prototype._initializePrototype = function() { var a = this.context; this.alPrototype = a.builtins.Object.alGetPrototypeProperty(); b.alDefineObjectProperties(this, {constructor:{value:a.builtins.Function, writable:!0}, call:this.call, apply:this.apply}); }; c.prototype.call = function(a) { for (var c = [], d = 1;d < arguments.length;d++) { c[d - 1] = arguments[d]; } return q(this, b.AVM1Function).alCall(a, c); }; c.prototype.apply = function(a, c) { var d = q(this, b.AVM1Function), e = c ? q(c, w).value : void 0; return d.alCall(a, e); }; return c; }(b.AVM1Object), d = function(a) { function c(d) { a.call(this, d); this.alPrototype = d.builtins.Function.alGetPrototypeProperty(); d = d.builtins.Function.alGetPrototypeProperty(); b.alDefineObjectProperties(this, {prototype:{value:d}}); } __extends(c, a); c.prototype.alConstruct = function(a) { return a ? a[0] : void 0; }; c.prototype.alCall = function(a, b) { return b ? b[0] : void 0; }; return c; }(b.AVM1Function); g.AVM1FunctionFunction = d; var a = function(a) { function b(c, d) { a.call(this, c); this.alPrototype = c.builtins.Boolean.alGetPrototypeProperty(); this.alSetOwnConstructorProperty(c.builtins.Boolean); this.value = d; } __extends(b, a); b.prototype.valueOf = function() { return this.value; }; return b; }(b.AVM1Object); g.AVM1BooleanNative = a; var c = function(c) { function d(a) { c.call(this, a); this.alPrototype = a.builtins.Object.alGetPrototypeProperty(); b.alDefineObjectProperties(this, {constructor:{value:a.builtins.Boolean, writable:!0}, valueOf:{value:this._valueOf, writable:!0}, toString:{value:this._toString, writable:!0}}); } __extends(d, c); d.prototype._valueOf = function() { return q(this, a).value; }; d.prototype._toString = function() { return q(this, a).value ? "true" : "false"; }; return d; }(b.AVM1Object); g.AVM1BooleanPrototype = c; var e = function(d) { function e(a) { d.call(this, a); this.alPrototype = a.builtins.Function.alGetPrototypeProperty(); a = new c(a); b.alDefineObjectProperties(this, {prototype:{value:a}}); } __extends(e, d); e.prototype.alConstruct = function(c) { c = c ? b.alToBoolean(this.context, c[0]) : !1; return new a(this.context, c); }; e.prototype.alCall = function(a, c) { return c ? b.alToBoolean(this.context, c[0]) : !1; }; return e; }(b.AVM1Function); g.AVM1BooleanFunction = e; var l = function(a) { function b(c, d) { a.call(this, c); this.alPrototype = c.builtins.Number.alGetPrototypeProperty(); this.alSetOwnConstructorProperty(c.builtins.Number); this.value = d; } __extends(b, a); b.prototype.valueOf = function() { return this.value; }; return b; }(b.AVM1Object); g.AVM1NumberNative = l; var n = function(a) { function c(d) { a.call(this, d); this.alPrototype = d.builtins.Object.alGetPrototypeProperty(); b.alDefineObjectProperties(this, {constructor:{value:d.builtins.Number, writable:!0}, valueOf:{value:this._valueOf, writable:!0}, toString:{value:this._toString, writable:!0}}); } __extends(c, a); c.prototype._valueOf = function() { return q(this, l).value; }; c.prototype._toString = function(a) { return q(this, l).value.toString(a || 10); }; return c; }(b.AVM1Object); g.AVM1NumberPrototype = n; var t = function(a) { function c(d) { a.call(this, d); this.alPrototype = d.builtins.Function.alGetPrototypeProperty(); d = new n(d); b.alDefineObjectProperties(this, {prototype:{value:d}, MAX_VALUE:Number.MAX_VALUE, MIN_VALUE:Number.MIN_VALUE, NaN:Number.NaN, NEGATIVE_INFINITY:Number.NEGATIVE_INFINITY, POSITIVE_INFINITY:Number.POSITIVE_INFINITY}); } __extends(c, a); c.prototype.alConstruct = function(a) { a = a ? b.alToNumber(this.context, a[0]) : 0; return new l(this.context, a); }; c.prototype.alCall = function(a, c) { return c ? b.alToNumber(this.context, c[0]) : 0; }; return c; }(b.AVM1Function); g.AVM1NumberFunction = t; var p = function(a) { function b(c, d) { a.call(this, c); this.alPrototype = c.builtins.String.alGetPrototypeProperty(); this.alSetOwnConstructorProperty(c.builtins.String); this.value = d; } __extends(b, a); b.prototype.toString = function() { return this.value; }; return b; }(b.AVM1Object); g.AVM1StringNative = p; var h = function(a) { function c(d) { a.call(this, d); this.alPrototype = d.builtins.Object.alGetPrototypeProperty(); b.alDefineObjectProperties(this, {constructor:{value:d.builtins.String, writable:!0}, valueOf:{value:this._valueOf, writable:!0}, toString:{value:this._toString, writable:!0}, length:{get:this.getLength}, charAt:{value:this.charAt, writable:!0}, charCodeAt:{value:this.charCodeAt, writable:!0}, concat:{value:this.concat, writable:!0}, indexOf:{value:this.indexOf, writable:!0}, lastIndexOf:{value:this.lastIndexOf, writable:!0}, slice:{value:this.slice, writable:!0}, split:{value:this.split, writable:!0}, substr:{value:this.substr, writable:!0}, substring:{value:this.substring, writable:!0}, toLowerCase:{value:this.toLowerCase, writable:!0}, toUpperCase:{value:this.toUpperCase, writable:!0}}); } __extends(c, a); c.prototype._valueOf = function() { return q(this, p).value; }; c.prototype._toString = function() { return q(this, p).value; }; c.prototype.getLength = function() { return q(this, p).value.length; }; c.prototype.charAt = function(a) { return b.alToString(this.context, this).charAt(b.alToInteger(this.context, a)); }; c.prototype.charCodeAt = function(a) { return b.alToString(this.context, this).charCodeAt(b.alToInteger(this.context, a)); }; c.prototype.concat = function() { for (var a = [], c = 0;c < arguments.length;c++) { a[c - 0] = arguments[c]; } for (var c = [b.alToString(this.context, this)], d = 0;d < a.length;++d) { c.push(b.alToString(this.context, a[d])); } return c.join(""); }; c.prototype.indexOf = function(a, c) { var d = b.alToString(this.context, this); a = b.alToString(this.context, a); c = b.alToInteger(this.context, c); return d.indexOf(a, c); }; c.prototype.lastIndexOf = function(a, c) { var d = b.alToString(this.context, this); a = b.alToString(this.context, a); c = 2 > arguments.length ? NaN : b.alToNumber(this.context, c); return 0 > c ? -1 : d.lastIndexOf(a, isNaN(c) ? void 0 : c); }; c.prototype.slice = function(a, c) { if (0 !== arguments.length) { var d = b.alToString(this.context, this); a = b.alToInteger(this.context, a); c = void 0 === c ? void 0 : b.alToInteger(this.context, c); return d.slice(a, c); } }; c.prototype.split = function(a, c) { var d = b.alToString(this.context, this); a = b.alToString(this.context, a); c = (void 0 === c ? -1 : b.alToInt32(this.context, c)) >>> 0; return new w(this.context, d.split(a, c)); }; c.prototype.substr = function(a, c) { var d = b.alToString(this.context, this), e = d.length; a = b.alToInteger(this.context, a); c = void 0 === c ? e : b.alToInteger(this.context, c); 0 > a && (a = Math.max(0, e + a)); if (0 > c) { if (-c <= a) { return ""; } c = Math.max(0, e + c); } return d.substr(a, c); }; c.prototype.substring = function(a, c) { var d = b.alToString(this.context, this); a = b.alToInteger(this.context, a); if (a >= d.length) { return ""; } c = void 0 === c ? void 0 : b.alToInteger(this.context, c); return d.substring(a, c); }; c.prototype.toLowerCase = function() { return b.alToString(this.context, this).toLowerCase(); }; c.prototype.toUpperCase = function() { return b.alToString(this.context, this).toUpperCase(); }; return c; }(b.AVM1Object); g.AVM1StringPrototype = h; var m = function(a) { function c(d) { a.call(this, d); this.alPrototype = d.builtins.Function.alGetPrototypeProperty(); d = new h(d); b.alDefineObjectProperties(this, {prototype:{value:d}, fromCharCode:{value:this.fromCharCode}}); } __extends(c, a); c.prototype.alConstruct = function(a) { a = a ? b.alToString(this.context, a[0]) : ""; return new p(this.context, a); }; c.prototype.alCall = function(a, c) { return c ? b.alToString(this.context, c[0]) : ""; }; c.prototype.fromCharCode = function() { for (var a = this, c = [], d = 0;d < arguments.length;d++) { c[d - 0] = arguments[d]; } c = c.map(function(c) { return b.alToInt32(a.context, c) & 65535; }); return String.fromCharCode.apply(String, c); }; return c; }(b.AVM1Function); g.AVM1StringFunction = m; var v = {flags:64, value:void 0}, w = function(a) { function c(b, d) { a.call(this, b); this.alPrototype = b.builtins.Array.alGetPrototypeProperty(); this.alSetOwnConstructorProperty(b.builtins.Array); this.value = d; } __extends(c, a); c.prototype.alGetOwnProperty = function(c) { if (b.alIsIndex(this.context, c)) { var d = b.alToInt32(this.context, c); if (Object.getOwnPropertyDescriptor(this.value, d)) { return v.value = this.value[d], v; } } return a.prototype.alGetOwnProperty.call(this, c); }; c.prototype.alSetOwnProperty = function(c, d) { if (b.alIsIndex(this.context, c)) { var e = b.alToInt32(this.context, c); if (!(d.flags & 64) || d.flags & 1 || d.flags & 2) { throw Error("Special property is non-supported for array"); } this.value[e] = d.value; } else { a.prototype.alSetOwnProperty.call(this, c, d); } }; c.prototype.alDeleteOwnProperty = function(c) { b.alIsIndex(this.context, c) ? (c = b.alToInt32(this.context, c), delete this.value[c]) : a.prototype.alDeleteOwnProperty.call(this, c); }; c.prototype.alGetOwnPropertiesKeys = function() { var b = a.prototype.alGetOwnPropertiesKeys.call(this), c = [], d; for (d in this.value) { c.push(d); } return c.concat(b); }; return c; }(b.AVM1Object); g.AVM1ArrayNative = w; var H; (function(a) { a[a.CASEINSENSITIVE = 1] = "CASEINSENSITIVE"; a[a.DESCENDING = 2] = "DESCENDING"; a[a.UNIQUESORT = 4] = "UNIQUESORT"; a[a.RETURNINDEXEDARRAY = 8] = "RETURNINDEXEDARRAY"; a[a.NUMERIC = 16] = "NUMERIC"; })(H || (H = {})); var K = function(a) { function c(d) { a.call(this, d); this.alPrototype = d.builtins.Object.alGetPrototypeProperty(); b.alDefineObjectProperties(this, {constructor:{value:d.builtins.Array, writable:!0}, join:{value:this.join, writable:!0}, length:{get:this.getLength, set:this.setLength}, concat:{value:this.concat, writable:!0}, pop:{value:this.pop, writable:!0}, push:{value:this.push, writable:!0}, shift:{value:this.shift, writable:!0}, slice:{value:this.slice, writable:!0}, splice:{value:this.splice, writable:!0}, sort:{value:this.sort, writable:!0}, sortOn:{value:this.sortOn, writable:!0}, toString:{value:this._toString, writable:!0}, unshift:{value:this.unshift, writable:!0}}); } __extends(c, a); c.prototype._toString = function() { return this.context.builtins.Array.alGetPrototypeProperty().alGet("join").alCall(this); }; c.prototype.getLength = function() { return q(this, w).value.length; }; c.prototype.setLength = function(a) { f.isIndex(a) && (a = b.alToInt32(this.context, a) >>> 0, q(this, w).value.length = a); }; c.prototype.concat = function() { for (var a = [], c = 0;c < arguments.length;c++) { a[c - 0] = arguments[c]; } if (this instanceof w) { for (var d = q(this, w).value, c = 0;c < d.length;c++) { a[c] instanceof w && (a[c] = q(a[c], w).value); } return new w(this.context, Array.prototype.concat.apply(d, a)); } for (var e = [], d = this, f = b.alIsArrayObject(this.context, this), c = 0;;) { f ? b.alIterateArray(this.context, d, function(a) { return e.push(a); }) : e.push(b.alToString(this.context, d)); if (c >= a.length) { break; } d = a[c++]; f = b.alIsArray(this.context, d); } return new w(this.context, e); }; c.prototype.join = function(a) { a = void 0 === a ? "," : b.alCoerceString(this.context, a); if (this instanceof w) { var c = q(this, w).value; if (0 === c.length) { return ""; } if (c.every(function(a) { return !(a instanceof b.AVM1Object); })) { return c.join(a); } } var c = this.context, d = b.alToInt32(c, this.alGet("length")) >>> 0; if (0 === d) { return ""; } for (var e = [], f = 0;f < d;f++) { var h = this.alGet(f); e[f] = null === h || void 0 === h ? "" : b.alCoerceString(c, h); } return e.join(a); }; c.prototype.pop = function() { if (this instanceof w) { return q(this, w).value.pop(); } var a = b.alToInt32(this.context, this.alGet("length")) >>> 0; if (0 !== a) { var a = a - 1, c = this.alGet(a); this.alDeleteProperty(a); this.alPut("length", a); return c; } }; c.prototype.push = function() { for (var a = [], c = 0;c < arguments.length;c++) { a[c - 0] = arguments[c]; } if (this instanceof w) { return c = q(this, w).value, Array.prototype.push.apply(c, a); } for (var c = b.alToInt32(this.context, this.alGet("length")) >>> 0, d = 0;d < a.length;d++) { this.alPut(c, a[d]), c++; } this.alPut("length", c); return c; }; c.prototype.shift = function() { if (this instanceof w) { return q(this, w).value.shift(); } var a = b.alToInt32(this.context, this.alGet("length")) >>> 0; if (0 !== a) { for (var c = this.alGet(0), d = 1;d < a;d++) { this.alHasProperty(d) ? this.alPut(d - 1, this.alGet(d)) : this.alDeleteProperty(d - 1); } this.alDeleteProperty(a - 1); this.alPut("length", a - 1); return c; } }; c.prototype.slice = function(a, c) { a = b.alToInteger(this.context, a); c = void 0 !== c ? b.alToInteger(this.context, c) : void 0; if (this instanceof w) { var d = q(this, w).value; return new w(this.context, d.slice(a, c)); } var d = [], e = b.alToInt32(this.context, this.alGet("length")) >>> 0; a = 0 > a ? Math.max(e + a, 0) : Math.min(e, a); c = void 0 === c ? e : 0 > c ? Math.max(e + c, 0) : Math.min(e, c); for (var e = a, f = 0;e < c;e++, f++) { this.alHasProperty(e) && (d[f] = this.alGet(e)); } return new w(this.context, d); }; c.prototype.splice = function(a, c) { for (var d = [], e = 2;e < arguments.length;e++) { d[e - 2] = arguments[e]; } a = b.alToInteger(this.context, a); c = b.alToInteger(this.context, c); if (this instanceof w) { return e = q(this, w).value, new w(this.context, Array.prototype.splice.apply(e, [a, c].concat(d))); } var e = [], f = b.alToInt32(this.context, this.alGet("length")) >>> 0; a = 0 > a ? Math.max(f + a, 0) : Math.min(f, a); c = Math.min(Math.max(c, 0), f - a); for (var h = 0;h < c;h++) { this.alHasProperty(a + h) && (e[h] = this.alGet(a + h)); } var g = d.length - c; if (0 > g) { for (h = a - g;h < f;h++) { this.alHasProperty(h) ? this.alPut(h + g, this.alGet(h)) : this.alDeleteProperty(h + g); } for (h = g;0 > h;h++) { this.alDeleteProperty(f + h); } } else { if (0 < g) { for (h = f - 1;h >= a + g;h--) { this.alHasProperty(h) ? this.alPut(h + g, this.alGet(h)) : this.alDeleteProperty(h + g); } } } for (h = 0;h < d.length;h++) { this.alPut(a + h, d[h]); } this.alPut("length", f + g); return new w(this.context, e); }; c.prototype.sort = function(a) { var c = q(this, w).value; if (b.alIsFunction(a)) { var d = [void 0, void 0]; c.sort(function(b, c) { d[0] = b; d[1] = c; return a.alCall(null, d); }); } else { c.sort(); } return this; }; c.prototype.sortOn = function(a, c) { var d = this.context, e = [], f = []; if (b.alIsString(d, a)) { e = [b.alToString(d, a)], f = [b.alToInt32(d, c)]; } else { if (b.alIsArray(d, a)) { var e = [], f = [], h = b.alIsArray(d, c) ? c : null, g = b.alToInteger(d, a.alGet("length")); if (h) { var m = b.alToInteger(d, h.alGet("length")); g !== m && (h = null); } for (m = 0;m < g;m++) { e.push(b.alToString(d, a.alGet(m))), f.push(h ? b.alToInt32(d, h.alGet(m)) : 0); } } else { return; } } q(this, w).value.sort(function(a, c) { var h = b.alToObject(d, a), g = b.alToObject(d, c); if (!a || !c) { return a ? 1 : c ? -1 : 0; } for (var m = 0;m < e.length;m++) { var l = h.alGet(e[m]), n = g.alGet(e[m]); f[m] & 16 ? (l = b.alToNumber(d, l), n = b.alToNumber(d, n)) : (l = b.alToString(d, l), n = b.alToString(d, n), f[m] & 1 && (l = l.toLowerCase(), n = n.toLowerCase())); n = l < n ? -1 : l > n ? 1 : 0; if (0 !== n) { return f[m] & 2 ? -n : n; } } return 0; }); return this; }; c.prototype.unshift = function() { for (var a = [], c = 0;c < arguments.length;c++) { a[c - 0] = arguments[c]; } if (this instanceof w) { return c = q(this, w).value, Array.prototype.unshift.apply(c, a); } for (var c = b.alToInt32(this.context, this.alGet("length")) >>> 0, d = a.length, e = c - 1;0 <= e;e--) { this.alHasProperty(e) ? this.alPut(e + d, this.alGet(e)) : this.alDeleteProperty(e + d); } for (e = 0;e < a.length;e++) { this.alPut(e, a[e]); } c += d; this.alPut("length", c); return c; }; return c; }(b.AVM1Object); g.AVM1ArrayPrototype = K; var z = function(a) { function c(d) { a.call(this, d); this.alPrototype = d.builtins.Function.alGetPrototypeProperty(); d = new K(d); b.alDefineObjectProperties(this, {prototype:{value:d}}); } __extends(c, a); c.prototype.alConstruct = function(a) { if (a && "number" === typeof a[0]) { a = a[0]; if (a >>> 0 !== a) { throw Error("Range error"); } return new w(this.context, Array(a)); } return new w(this.context, a); }; c.prototype.alCall = function(a, b) { return this.alConstruct.apply(this, b); }; return c; }(b.AVM1Function); g.AVM1ArrayFunction = z; var A = function(a) { function c(d) { a.call(this, d); this.alPrototype = d.builtins.Object.alGetPrototypeProperty(); b.alDefineObjectProperties(this, {E:Math.E, LN10:Math.LN10, LN2:Math.LN2, LOG10E:Math.LOG10E, LOG2E:Math.LOG2E, PI:Math.PI, SQRT1_2:Math.SQRT1_2, SQRT2:Math.SQRT2, abs:this.abs, acos:this.acos, asin:this.asin, atan:this.atan, atan2:this.atan2, ceil:this.ceil, cos:this.cos, exp:this.exp, floor:this.floor, log:this.log, max:this.max, min:this.min, pow:this.pow, random:this.random, round:this.round, sin:this.sin, sqrt:this.sqrt, tan:this.tan}); } __extends(c, a); c.prototype.abs = function(a) { return Math.abs(b.alToNumber(this.context, a)); }; c.prototype.acos = function(a) { return Math.acos(b.alToNumber(this.context, a)); }; c.prototype.asin = function(a) { return Math.asin(b.alToNumber(this.context, a)); }; c.prototype.atan = function(a) { return Math.atan(b.alToNumber(this.context, a)); }; c.prototype.atan2 = function(a, c) { return Math.atan2(b.alToNumber(this.context, a), b.alToNumber(this.context, c)); }; c.prototype.ceil = function(a) { return Math.ceil(b.alToNumber(this.context, a)); }; c.prototype.cos = function(a) { return Math.cos(b.alToNumber(this.context, a)); }; c.prototype.exp = function(a) { return Math.exp(b.alToNumber(this.context, a)); }; c.prototype.floor = function(a) { return Math.floor(b.alToNumber(this.context, a)); }; c.prototype.log = function(a) { return Math.log(b.alToNumber(this.context, a)); }; c.prototype.max = function() { for (var a = this, c = [], d = 0;d < arguments.length;d++) { c[d - 0] = arguments[d]; } c = c.map(function(c) { return b.alToNumber(a.context, c); }); return Math.max.apply(null, c); }; c.prototype.min = function() { for (var a = this, c = [], d = 0;d < arguments.length;d++) { c[d - 0] = arguments[d]; } c = c.map(function(c) { return b.alToNumber(a.context, c); }); return Math.min.apply(null, c); }; c.prototype.pow = function(a, c) { return Math.pow(b.alToNumber(this.context, a), b.alToNumber(this.context, c)); }; c.prototype.random = function() { return Math.random(); }; c.prototype.round = function(a) { return Math.round(b.alToNumber(this.context, a)); }; c.prototype.sin = function(a) { return Math.sin(b.alToNumber(this.context, a)); }; c.prototype.sqrt = function(a) { return Math.sqrt(b.alToNumber(this.context, a)); }; c.prototype.tan = function(a) { return Math.tan(b.alToNumber(this.context, a)); }; return c; }(b.AVM1Object), B = function(a) { function b(c, d) { a.call(this, c); this.alPrototype = c.builtins.Date.alGetPrototypeProperty(); this.alSetOwnConstructorProperty(c.builtins.Date); this.value = d; } __extends(b, a); b.prototype.alDefaultValue = function(b) { return void 0 !== b ? a.prototype.alDefaultValue.call(this, b) : 6 <= this.context.swfVersion ? a.prototype.alDefaultValue.call(this, 1) : a.prototype.alDefaultValue.call(this, 0); }; return b; }(b.AVM1Object), x = function(a) { function c(d) { a.call(this, d); this.alPrototype = d.builtins.Object.alGetPrototypeProperty(); b.alDefineObjectProperties(this, {constructor:{value:d.builtins.Date, writable:!0}, valueOf:{value:this._valueOf, writable:!0}, toString:{value:this._toString, writable:!0}, getDate:{value:this.getDate, writable:!0}, getFullYear:{value:this.getFullYear, writable:!0}, getHours:{value:this.getHours, writable:!0}, getMinutes:{value:this.getMinutes, writable:!0}, getMonth:{value:this.getMonth, writable:!0}, getSeconds:{value:this.getSeconds, writable:!0}, getTime:{value:this.getTime, writable:!0}}); } __extends(c, a); c.prototype._valueOf = function() { return q(this, B).value.valueOf(); }; c.prototype._toString = function() { return q(this, B).value.toString(); }; c.prototype.getDate = function() { return q(this, B).value.getDate(); }; c.prototype.getFullYear = function() { return q(this, B).value.getFullYear(); }; c.prototype.getHours = function() { return q(this, B).value.getHours(); }; c.prototype.getMinutes = function() { return q(this, B).value.getMinutes(); }; c.prototype.getMonth = function() { return q(this, B).value.getMonth(); }; c.prototype.getSeconds = function() { return q(this, B).value.getSeconds(); }; c.prototype.getTime = function() { return q(this, B).value.getTime(); }; return c; }(b.AVM1Object), C = function(a) { function c(d) { a.call(this, d); this.alPrototype = d.builtins.Function.alGetPrototypeProperty(); d = new x(d); b.alDefineObjectProperties(this, {prototype:{value:d}, UTC:{value:this._UTC, writable:!0}}); } __extends(c, a); c.prototype.alConstruct = function(a) { var c = this.context; switch(a.length) { case 0: a = new Date; break; case 1: a = new Date(b.alToPrimitive(c, a[0])); break; default: for (var d = [], e = 0;e < a.length;e++) { d.push(b.alToNumber(c, a[e])); } a = new Date(b.alToNumber(c, a[0]), b.alToNumber(c, a[1]), 2 < a.length ? b.alToNumber(c, a[2]) : 1, 3 < a.length ? b.alToNumber(c, a[3]) : 0, 4 < a.length ? b.alToNumber(c, a[4]) : 0, 5 < a.length ? b.alToNumber(c, a[5]) : 0, 6 < a.length ? b.alToNumber(c, a[6]) : 0); } return new B(c, a); }; c.prototype.alCall = function(a, c) { return b.alCallProperty(this.alConstruct.apply(this, c), "toString"); }; c.prototype._UTC = function(a, c, d, e, f, h) { var g = this.context; return Date.UTC(b.alToNumber(g, arguments[0]), b.alToNumber(g, arguments[1]), 2 < arguments.length ? b.alToNumber(g, arguments[2]) : 1, 3 < arguments.length ? b.alToNumber(g, arguments[3]) : 0, 4 < arguments.length ? b.alToNumber(g, arguments[4]) : 0, 5 < arguments.length ? b.alToNumber(g, arguments[5]) : 0, 6 < arguments.length ? b.alToNumber(g, arguments[6]) : 0); }; return c; }(b.AVM1Function), y = function(a) { function b(c, d) { a.call(this, c); this.alPrototype = c.builtins.Error.alGetPrototypeProperty(); this.alSetOwnConstructorProperty(c.builtins.Error); void 0 !== d && this.alPut("message", d); } __extends(b, a); return b; }(b.AVM1Object); g.AVM1ErrorNative = y; var D = function(a) { function c(d) { a.call(this, d); this.alPrototype = d.builtins.Object.alGetPrototypeProperty(); b.alDefineObjectProperties(this, {constructor:{value:d.builtins.Error, writable:!0}, name:{value:"Error", writable:!0}, message:{value:"Error", writable:!0}, toString:{value:this._toString, writable:!0}}); } __extends(c, a); c.prototype._toString = function() { return this.alGet("message"); }; return c; }(b.AVM1Object); g.AVM1ErrorPrototype = D; var G = function(a) { function c(d) { a.call(this, d); this.alPrototype = d.builtins.Function.alGetPrototypeProperty(); d = new D(d); b.alDefineObjectProperties(this, {prototype:{value:d}}); } __extends(c, a); c.prototype.alConstruct = function(a) { a = a && void 0 !== a[0] ? b.alCoerceString(this.context, a[0]) : void 0; return new y(this.context, a); }; c.prototype.alCall = function(a, c) { var d = c && void 0 !== c[0] ? b.alCoerceString(this.context, c[0]) : void 0; return new y(this.context, d); }; return c; }(b.AVM1Function); g.AVM1ErrorFunction = G; g.installBuiltins = function(a) { var c = a.builtins, f = new u(a), h = new b.AVM1Object(a); h.alSetOwnPrototypeProperty(f); c.Object = h; var h = new r(a), g = new b.AVM1Object(a); g.alSetOwnPrototypeProperty(h); c.Function = g; f._initializePrototype(); h._initializePrototype(); c.Object = new k(a); c.Function = new d(a); c.Boolean = new e(a); c.Number = new t(a); c.String = new m(a); c.Array = new z(a); c.Date = new C(a); c.Math = new A(a); c.Error = new G(a); }; })(b.Natives || (b.Natives = {})); })(f.AVM1 || (f.AVM1 = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { var g = function() { return function(b, f, d) { void 0 === d && (d = null); this.bytes = b; this.id = f; this.parent = d; this.compiled = this.ir = null; }; }(); b.AVM1ActionsData = g; var q = function() { function b() { this._cache = new WeakMap; } b.prototype.createActionsData = function(b, d) { var a; void 0 === a && (a = null); var c = this._cache.get(b); c || (c = new g(b, d, a), this._cache.set(b, c)); return c; }; return b; }(); b.ActionsDataFactory = q; var u = function() { function g(b) { this.swfVersion = b; this.globals = null; this.actionsDataFactory = new q; this.isPropertyCaseSensitive = 6 < b; this.builtins = {}; f.AVM1.Natives.installBuiltins(this); this.eventObservers = Object.create(null); this.assets = {}; this.assetsSymbols = []; this.assetsClasses = []; this.staticStates = new WeakMap; } g.prototype.flushPendingScripts = function() { }; g.prototype.resolveTarget = function(b) { }; g.prototype.resolveRoot = function() { }; g.prototype.addToPendingScripts = function(b, d) { }; g.prototype.checkTimeout = function() { }; g.prototype.executeActions = function(b, d) { }; g.prototype.executeFunction = function(b, d, a) { }; g.prototype._getEventPropertyObservers = function(b, d) { this.isPropertyCaseSensitive || (b = b.toLowerCase()); var a = this.eventObservers[b]; return a ? a : d ? (a = [], this.eventObservers[b] = a) : null; }; g.prototype.registerEventPropertyObserver = function(b, d) { this._getEventPropertyObservers(b, !0).push(d); }; g.prototype.unregisterEventPropertyObserver = function(b, d) { var a = this._getEventPropertyObservers(b, !1); if (a) { var c = a.indexOf(d); 0 > c || a.splice(c, 1); } }; g.prototype.broadcastEventPropertyChange = function(b) { var d = this._getEventPropertyObservers(b, !1); d && d.forEach(function(a) { return a.onEventPropertyModified(b); }); }; g.prototype.addAsset = function(b, d) { this.assets[b.toLowerCase()] = d; this.assetsSymbols[d] = null; }; g.prototype.registerClass = function(f, d) { f = b.alCoerceString(this, f); if (null === f) { return this.utils.warn("Cannot register class for symbol: className is missing"), null; } var a = this.assets[f.toLowerCase()]; void 0 === a ? this.utils.warn("Cannot register " + f + " class for symbol") : this.assetsClasses[a] = d; }; g.prototype.getAsset = function(g) { g = b.alCoerceString(this, g); if (null !== g && (g = this.assets[g.toLowerCase()], void 0 !== g)) { var d = this.assetsSymbols[g]; if (!d) { d = this.loaderInfo.getSymbolById(g); if (!d) { f.Debug.warning("Symbol " + g + " is not defined."); return; } this.assetsSymbols[g] = d; } return {symbolId:g, symbolProps:d, theClass:this.assetsClasses[g]}; } }; g.prototype.setStage = function(f) { b.Lib.AVM1Key.bindStage(this, this.globals.Key, f); b.Lib.AVM1Mouse.bindStage(this, this.globals.Mouse, f); b.Lib.AVM1Stage.bindStage(this, this.globals.Stage, f); }; g.prototype.getStaticState = function(b) { var d = this.staticStates.get(b); if (!d) { var d = Object.create(null), a = b.alInitStatic; a && a.call(d, this); this.staticStates.set(b, d); } return d; }; g.prototype.resolveLevel = function(f) { var d = this.globals.Stage._as3Stage._lookupChildByIndex(f, 2); if (d) { return b.Lib.getAVM1Object(d._content, this); } this.utils.warn("Unable to resolve level " + f + " root"); }; return g; }(); b.AVM1Context = u; })(f.AVM1 || (f.AVM1 = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { function g(a, c, d, e, h) { if (b.avm1ErrorsEnabled.value) { try { throw Error(a); } catch (g) { } } f.Debug.warning.apply(console, arguments); } function q(a) { return "object" === typeof a && a && a instanceof b.Lib.AVM1MovieClip; } function u(a, c, d) { c = b.alToPrimitive(a, c); d = b.alToPrimitive(a, d); if ("string" === typeof c && "string" === typeof d) { return c = b.alToString(a, c), a = b.alToString(a, d), c < a; } c = b.alToNumber(a, c); a = b.alToNumber(a, d); return isNaN(c) || isNaN(a) ? void 0 : c < a; } function k(a, b) { if (f.isNullOrUndefined(a) || f.isNullOrUndefined(b)) { return !1; } if (b === f.AVMX.AS.ASString) { return "string" === typeof a; } if (b === f.AVMX.AS.ASNumber) { return "number" === typeof a; } if (b === f.AVMX.AS.ASBoolean) { return "boolean" === typeof a; } if (b === f.AVMX.AS.ASArray) { return Array.isArray(a); } if (b === f.AVMX.AS.ASFunction) { return "function" === typeof a; } if (b === f.AVMX.AS.ASObject) { return "object" === typeof a; } var c = b.alGetPrototypeProperty(); if (!c) { return !1; } for (var d = a;d;) { if (d === c) { return !0; } d = d.alPrototype; } return !1; } function r(a, c, d) { return b.alToObject(a, c).alGet(d); } function d(c, d, e) { d = b.alToObject(c, d).alDeleteProperty(e); a(c, e); return d; } function a(a, c) { c = b.alCoerceString(a, c); "o" === c[0] && "n" === c[1] && a.broadcastEventPropertyChange(c); } function c(a) { return "undefined" !== typeof InternalError && a instanceof InternalError && "too much recursion" === a.message ? new ma("long running script -- AVM1 recursion limit is reached") : a; } function e(a, c) { var d; if (b.alIsFunction(a)) { return d = a.alConstruct(c); } } function l(a, c) { var d = Object.create(null); b.alForEachProperty(a, function(a) { d[a] || (c.call(null, a), d[a] = !0); }, null); } function n(a, b, c) { if (6 > a.swfVersion) { return null; } a = b.inSequence && b.previousFrame.calleeSuper; if (!a) { for (a = b.currentThis;a && !a.alHasOwnProperty(c);) { a = a.alPrototype; } if (!a) { return null; } } return a = a.alPrototype; } function t(a, b) { if (isNaN(a) || 0 > a) { return g("Invalid amount of arguments: " + a), 0; } a |= 0; return a > b ? (g("Truncating amount of arguments: from " + a + " to " + b), b) : a; } function p(a) { for (var b = +a.pop(), b = t(b, a.length), c = [], d = 0;d < b;d++) { c.push(a.pop()); } return c; } function h(a, b) { var c = null; if (b) { try { c = K(a, b, !1), m(c) || (g("Invalid AVM1 target object: " + b), c = void 0); } catch (d) { g("Unable to set target: " + d); } } c ? (a.scopeList.flags |= 2, a.scopeList.replaceTargetBy = c) : (a.scopeList.flags &= -3, a.scopeList.replaceTargetBy = null); } function m(a) { return a instanceof b.AVM1Object && a.isAVM1Instance; } function v(a, b, c) { for (var d, e = Ia;a;a = a.previousScopeItem) { !(a.flags & 2) || c & 64 || d || (d = a.replaceTargetBy); if (a.flags & 1) { if (c & 2) { return e.scope = d || a.scope, e.propertyName = b, e.value = c & 32 ? e.scope.alGet(b) : void 0, e; } if (c & 1 && d) { if (d.alHasProperty(b)) { return e.scope = d, e.propertyName = b, e.value = c & 32 ? d.alGet(b) : void 0, e; } continue; } } if (a.scope.alHasProperty(b)) { return e.scope = a.scope, e.propertyName = b, e.value = c & 32 ? a.scope.alGet(b) : void 0, e; } } } function w(a, c, d) { if (!c || !(0 <= c.indexOf(".") || 0 <= c.indexOf(":") || 0 <= c.indexOf("/"))) { return v(a.scopeList, c, d); } var e = 0, f = c.length, h = !0, m, l, n, p = null, k = null, t = void 0; if ("/" === c[0]) { if (m = v(a.scopeList, "_root", 33)) { p = m.propertyName, k = m.scope, t = m.value; } e++; n = !1; } else { m = null, n = !0; } if (e >= f) { return m; } for (var r = e;e < f;) { if (!(n || t instanceof b.AVM1Object)) { return g("Unable to resolve variable on invalid object " + c.substring(r, e - 1) + " (expr " + c + ")"), null; } r = e; if ("." === c[e] && "." === c[e + 1]) { e += 2, p = "_parent"; } else { for (;e < f && "/" !== (l = c[e]) && "." !== l && ":" !== l;) { e++; } p = c.substring(r, e); } if ("" === p && e < f) { e++; } else { var k = t, q = !1; h && (h = t instanceof b.Lib.AVM1MovieClip ? t._lookupChildByName(p) : void 0) && (q = !0, t = h); if (!q) { if (n) { if (m = v(a.scopeList, p, d)) { q = !0, p = m.propertyName, k = m.scope, t = m.value; } n = !1; } else { t.alHasProperty(p) && (t = t.alGet(p), q = !0); } } q || "_" !== p[0] || ("_level0" === p ? (t = a.context.resolveLevel(0), q = !0) : "_root" === p && (t = H(a).get_root(), q = !0)); if (!q) { return g("Unable to resolve " + p + " on " + c.substring(r, e - 1) + " (expr " + c + ")"), null; } if (e >= f) { break; } q = c[e++]; "/" !== q || ":" !== (l = c[e]) && "." !== l || (q = c[e++]); h = "/" === q; } } m = Ia; m.scope = k; m.propertyName = p; m.value = d & 32 ? t : void 0; return m; } function H(a) { for (a = a.scopeList;a.previousScopeItem;a = a.previousScopeItem) { if (a.flags & 2) { return a.replaceTargetBy; } if (a.flags & 1) { return a.scope; } } } function K(a, c, d) { m(c) ? a = c : (c = f.isNullOrUndefined(c) ? "" : b.alToString(this, c)) ? (c = b.alToString(a.context, c), (a = w(a, c, 161 | (d ? 0 : 64))) && m(a.value) ? a = a.value : (g("Invalid AVM1 target object: " + c), a = void 0)) : a = H(a); return a; } function z(a, b) { var c = b[0]; b[1] ? a.actions.gotoAndPlay(c + 1) : a.actions.gotoAndStop(c + 1); } function A(a, b) { a.actions.getURL(b[0], b[1]); } function B(a) { a.actions.nextFrame(); } function x(a) { a.actions.prevFrame(); } function C(a) { a.actions.play(); } function y(a) { a.actions.stop(); } function D(a) { a.actions.toggleHighQuality(); } function G(a) { a.actions.stopAllSounds(); } function F(a, b) { return !a.actions.ifFrameLoaded(b[0]); } function I(a, b) { h(a, b[0]); } function E(a, b) { var c = b[0]; b[1] ? a.actions.gotoAndPlay(c) : a.actions.gotoAndStop(c); } function J(a, c) { var d = a.registers, e = a.constantPool, f = a.stack; c.forEach(function(a) { a instanceof b.ParsedPushConstantAction ? f.push(e[a.constantIndex]) : a instanceof b.ParsedPushRegisterAction ? (a = a.registerNumber, 0 > a || a >= d.length ? f.push(void 0) : f.push(d[a])) : f.push(a); }); } function L(a) { a.stack.pop(); } function M(a) { var c = a.stack, d = b.alToNumber(a.context, c.pop()); a = b.alToNumber(a.context, c.pop()); c.push(d + a); } function P(a) { var c = a.stack, d = b.alToNumber(a.context, c.pop()); a = b.alToNumber(a.context, c.pop()); c.push(a - d); } function R(a) { var c = a.stack, d = b.alToNumber(a.context, c.pop()); a = b.alToNumber(a.context, c.pop()); c.push(d * a); } function O(a) { var c = a.stack, d = a.isSwfVersion5, e = b.alToNumber(a.context, c.pop()); a = b.alToNumber(a.context, c.pop()) / e; c.push(d ? a : isFinite(a) ? a : "#ERROR#"); } function Q(a) { var c = a.stack, d = a.isSwfVersion5, e = b.alToNumber(a.context, c.pop()); a = b.alToNumber(a.context, c.pop()); e = e == a; c.push(d ? e : e ? 1 : 0); } function W(a) { var c = a.stack, d = a.isSwfVersion5, e = b.alToNumber(a.context, c.pop()); a = b.alToNumber(a.context, c.pop()) < e; c.push(d ? a : a ? 1 : 0); } function T(a) { var c = a.stack, d = a.isSwfVersion5, e = b.alToBoolean(a.context, c.pop()); a = b.alToBoolean(a.context, c.pop()); e = e && a; c.push(d ? e : e ? 1 : 0); } function X(a) { var c = a.stack, d = a.isSwfVersion5, e = b.alToBoolean(a.context, c.pop()); a = b.alToBoolean(a.context, c.pop()); e = e || a; c.push(d ? e : e ? 1 : 0); } function N(a) { var c = a.stack, d = a.isSwfVersion5; a = !b.alToBoolean(a.context, c.pop()); c.push(d ? a : a ? 1 : 0); } function U(a) { var c = a.stack, d = a.isSwfVersion5, e = b.alToString(a.context, c.pop()); a = b.alToString(a.context, c.pop()); e = e == a; c.push(d ? e : e ? 1 : 0); } function V(a) { var c = a.stack, d = b.alToString(a.context, c.pop()); c.push(a.actions.length_(d)); } function ca(a) { var c = a.stack, d = b.alToString(a.context, c.pop()); c.push(a.actions.length_(d)); } function S(a) { var c = a.stack, d = b.alToString(a.context, c.pop()); a = b.alToString(a.context, c.pop()); c.push(a + d); } function Z(a) { var c = a.stack, d = c.pop(), e = c.pop(), f = b.alToString(a.context, c.pop()); c.push(a.actions.substring(f, e, d)); } function ba(a) { var c = a.stack, d = c.pop(), e = c.pop(), f = b.alToString(a.context, c.pop()); c.push(a.actions.mbsubstring(f, e, d)); } function aa(a) { var c = a.stack, d = a.isSwfVersion5, e = b.alToString(a.context, c.pop()); a = b.alToString(a.context, c.pop()) < e; c.push(d ? a : a ? 1 : 0); } function ea(a) { var b = a.stack; b.push(a.actions.int(b.pop())); } function da(a) { var b = a.stack, c = b.pop(); a = a.actions.ord(c); b.push(a); } function fa(a) { var b = a.stack, c = b.pop(); a = a.actions.mbord(c); b.push(a); } function ha(a) { var b = a.stack, c = +b.pop(); a = a.actions.chr(c); b.push(a); } function ka(a) { var b = a.stack, c = +b.pop(); a = a.actions.mbchr(c); b.push(a); } function ga(a, b) { } function ia(a, b) { return !!a.stack.pop(); } function ja(a) { var b = a.stack.pop(); a.actions.call(b); } function la(a) { var b = a.stack, c = "" + b.pop(), d = b.length; b.push(void 0); a = w(a, c, 33); f.isNullOrUndefined(a) ? g("AVM1 warning: cannot look up variable '" + c + "'") : b[d] = a.value; } function qa(b) { var c = b.stack, d = c.pop(), c = "" + c.pop(), e = w(b, c, 2); f.isNullOrUndefined(e) ? g("AVM1 warning: cannot look up variable '" + c + "'") : (e.scope.alPut(c, d), a(b.context, c)); } function ra(a, b) { var c = a.stack, d = b[0], e = c.pop(), c = c.pop(), f; d & 1 ? f = "GET" : d & 2 && (f = "POST"); var h = d & 64; d & 128 ? a.actions.loadVariables(c, e, f) : h ? a.actions.loadMovie(c, e, f) : a.actions.getURL(c, e, f); } function sa(a, b) { var c = b[0], d = [a.stack.pop()]; c & 2 && d.push(b[1]); (c & 1 ? a.actions.gotoAndPlay : a.actions.gotoAndStop).apply(a.actions, d); } function ta(a) { var c = b.alToString(a.context, a.stack.pop()); h(a, c); } function Y(a) { var c = a.stack, d = c.pop(), e = c.pop(), f = c.length; c.push(void 0); a = K(a, e, !0); d = b.PropertiesIndexMap[d]; a && d && (c[f] = a.alGet(d)); } function na(a) { var c = a.stack, d = c.pop(), e = c.pop(), c = c.pop(); a = K(a, c, !0); e = b.PropertiesIndexMap[e]; a && e && a.alPut(e, d); } function va(a) { var b = a.stack, c = b.pop(), d = b.pop(), b = b.pop(); a.actions.duplicateMovieClip(b, d, c); } function ya(a) { var b = a.stack.pop(); a.actions.removeMovieClip(b); } function za(a) { var b = a.stack, c = b.pop(), d = b.pop(), b = b.pop() ? {y2:b.pop(), x2:b.pop(), y1:b.pop(), x1:b.pop()} : null, c = [c, d]; b && (c = c.concat(b.x1, b.y1, b.x2, b.y2)); a.actions.startDrag.apply(a.actions, c); } function Aa(a) { a.actions.stopDrag(); } function Ba(a, b) { var c = a.stack.pop(); return !a.actions.ifFrameLoaded(c); } function Ca(a) { var b = a.stack.pop(); a.actions.trace(b); } function Da(a) { a.stack.push(a.actions.getTimer()); } function Ea(a) { var b = a.stack; b.push(a.actions.random(b.pop())); } function Fa(a) { var c = a.stack, d = c.pop(), e = p(c), h = c.length; c.push(void 0); a = w(a, d, 33); if (f.isNullOrUndefined(a)) { g("AVM1 warning: cannot look up function '" + d + "'"); } else { var m = a.value; b.alIsFunction(m) ? c[h] = m.alCall(a.scope || null, e) : g("AVM1 warning: function '" + d + (m ? "' is not callable" : "' is undefined")); } } function Ga(a) { var c = a.stack, d = c.pop(), e = c.pop(), h = p(c), m, l = c.length; c.push(void 0); if (f.isNullOrUndefined(e)) { g("AVM1 warning: method '" + d + "' can't be called on undefined object"); } else { var v = a.context.frame, k, t; if (f.isNullOrUndefined(d) || "" === d) { if (e instanceof oa) { var q = e.callFrame; if (k = n(a.context, q, "__constructor__")) { t = k.alGet("__constructor__"), m = q.currentThis; } } else { m = t = e; } b.alIsFunction(t) ? (v.setCallee(m, k, t, h), c[l] = t.alCall(m, h), v.resetCallee()) : g("AVM1 warning: obj '" + e + (e ? "' is not callable" : "' is undefined")); } else { if (e instanceof oa) { if (q = e.callFrame, k = n(a.context, q, d)) { t = k.alGet(d), m = q.currentThis; } } else { t = r(a.context, e, d), m = b.alToObject(a.context, e); } b.alIsFunction(t) ? (v.setCallee(m, k, t, h), c[l] = t.alCall(m, h), v.resetCallee()) : g("AVM1 warning: method '" + d + "' on object", e, f.isNullOrUndefined(t) ? "is undefined" : "is not callable"); } } } function Ha(a, b) { a.constantPool = b[0]; } function Ja(b, c) { var d = b.stack, e = c[1], f = new Ka(b.context, b, c[0], e, c[2], 4, null, 0); e ? (b.scopeList.scope.alPut(e, f), a(b.context, e)) : d.push(f); } function La(a) { var b = a.stack; a = a.scopeList.scope; var c = b.pop(), b = b.pop(); a.alPut(b, c); } function Ma(a) { var b = a.scopeList.scope; a = a.stack.pop(); b.alPut(a, void 0); } function Na(b) { var c = b.stack, e = c.pop(), f = c.pop(); c.push(d(b.context, f, e)); a(b.context, e); } function Oa(b) { var c = b.stack, e = c.pop(), h = w(b, e, xa.DELETE); f.isNullOrUndefined(h) ? g("AVM1 warning: cannot look up variable '" + e + "'") : (c.push(d(b.context, h.scope, e)), a(b.context, e)); } function Pa(a) { var b = a.stack, c = b.pop(); b.push(null); a = w(a, c, 33); f.isNullOrUndefined(a) ? g("AVM1 warning: cannot look up variable '" + c + "'") : l(a.value, function(a) { b.push(a); }); } function Qa(a) { a = a.stack; var b = a.pop(), c = a.pop(); a.push(b == c); } function Ra(a) { var b = a.stack, c = b.pop(), d = b.pop(); b.push(void 0); f.isNullOrUndefined(d) ? g("AVM1 warning: cannot get member '" + c + "' on undefined object") : d instanceof oa ? (a = n(a.context, d.callFrame, c)) && (b[b.length - 1] = a.alGet(c)) : b[b.length - 1] = r(a.context, d, c); } function Sa(a) { var c = a.stack; a = new b.Natives.AVM1ArrayNative(a.context, p(c)); c.push(a); } function Ta(a) { var c = a.stack, d = +c.pop(), d = t(d, c.length >> 1); a = b.alNewObject(a.context); for (var e = 0;e < d;e++) { var f = c.pop(), h = c.pop(); a.alPut(h, f); } c.push(a); } function Ua(a) { var b = a.stack, c = b.pop(), d = b.pop(), h = p(b), m = b.length; b.push(void 0); f.isNullOrUndefined(d) ? g("AVM1 warning: method '" + c + "' can't be constructed on undefined object") : (a = f.isNullOrUndefined(c) || "" === c ? d : r(a.context, d, c), h = e(a, h), void 0 === h && g("AVM1 warning: method '" + c + "' on object", d, "is not constructible"), b[m] = h); } function Va(a) { var c = a.stack, d = c.pop(), h = p(c), m = c.length; c.push(void 0); var l = w(a, d, 33); if (f.isNullOrUndefined(l)) { g("AVM1 warning: cannot look up object '" + d + "'"); } else { l = l.value; a = a.context.builtins; var n = void 0; if (l === a.Array || l === a.Object || l === a.Date || l === a.String || l === a.Function) { n = l.alConstruct(h); } if (l === a.Boolean || l === a.Number) { n = l.alConstruct(h).value; } n instanceof b.AVM1Object && n.alSetOwnProperty("__constructor__", {flags:65, value:l}); a = n; void 0 === a && (a = e(l, h), void 0 === a && g("AVM1 warning: object '" + d + (l ? "' is not constructible" : "' is undefined"))); c[m] = a; } } function Wa(c) { var d = c.stack, e = d.pop(), h = d.pop(), d = d.pop(); f.isNullOrUndefined(d) ? g("AVM1 warning: cannot set member '" + h + "' on undefined object") : d instanceof oa ? g("AVM1 warning: cannot set member '" + h + "' on super") : (c = c.context, b.alToObject(c, d).alPut(h, e), a(c, h)); } function Xa(a) { a = a.stack; var b = a.pop(); a.push(q(b) ? b._target : void 0); } function Ya(a, c) { var d = c[0]; var e = a.stack.pop(); if (f.isNullOrUndefined(e)) { g("The with statement object cannot be undefined."); } else { var h = a.scopeList, e = new ua(b.alToObject(a.context, e), h), e = a.pushScope(e); pa(e, d); } } function Za(a) { var c = a.stack; c.push(b.alToNumber(a.context, c.pop())); } function $a(a) { var c = a.stack; c.push(b.alToString(a.context, c.pop())); } function ab(a) { a = a.stack; var b = a.pop(); if (null === b) { b = "null"; } else { var c = typeof b, b = "function" === c ? "object" : "object" === c && q(b) ? "movieclip" : c } a.push(b); } function bb(a) { var c = a.stack, d; d = c.pop(); d = b.alToPrimitive(a.context, d); var e; e = c.pop(); e = b.alToPrimitive(a.context, e); "string" === typeof d || "string" === typeof e ? c.push(b.alToString(a.context, e) + b.alToString(a.context, d)) : c.push(b.alToNumber(a.context, e) + b.alToNumber(a.context, d)); } function cb(a) { var b = a.stack, c = b.pop(), d = b.pop(); b.push(u(a.context, d, c)); } function db(a) { var c = a.stack, d = b.alToNumber(a.context, c.pop()); a = b.alToNumber(a.context, c.pop()); c.push(a % d); } function eb(a) { var c = a.stack, d = b.alToInt32(a.context, c.pop()); a = b.alToInt32(a.context, c.pop()); c.push(a & d); } function fb(a) { var c = a.stack, d = b.alToInt32(a.context, c.pop()); a = b.alToInt32(a.context, c.pop()); c.push(a << d); } function gb(a) { var c = a.stack, d = b.alToInt32(a.context, c.pop()); a = b.alToInt32(a.context, c.pop()); c.push(a | d); } function hb(a) { var c = a.stack, d = b.alToInt32(a.context, c.pop()); a = b.alToInt32(a.context, c.pop()); c.push(a >> d); } function ib(a) { var c = a.stack, d = b.alToInt32(a.context, c.pop()); a = b.alToInt32(a.context, c.pop()); c.push(a >>> d); } function jb(a) { var c = a.stack, d = b.alToInt32(a.context, c.pop()); a = b.alToInt32(a.context, c.pop()); c.push(a ^ d); } function kb(a) { var c = a.stack; a = b.alToNumber(a.context, c.pop()); a--; c.push(a); } function lb(a) { var c = a.stack; a = b.alToNumber(a.context, c.pop()); a++; c.push(a); } function mb(a) { a = a.stack; a.push(a[a.length - 1]); } function nb(a) { a.isEndOfActions = !0; } function ob(a) { a = a.stack; a.push(a.pop(), a.pop()); } function pb(a, b) { var c = a.stack, d = a.registers, e = b[0]; 0 > e || e >= d.length || (d[e] = c[c.length - 1]); } function qb(a) { a = a.stack; var b = a.pop(), c = a.pop(); a.push(k(c, b)); } function rb(a) { var b = a.stack; a = b.pop(); b.push(null); f.isNullOrUndefined(a) ? g("AVM1 warning: cannot iterate over undefined object") : l(a, function(a) { b.push(a); }); } function sb(a) { a = a.stack; var b = a.pop(), c = a.pop(); a.push(c === b); } function tb(a) { var b = a.stack, c = b.pop(), d = b.pop(); b.push(u(a.context, c, d)); } function ub(a) { var c = a.stack, d = a.isSwfVersion5, e = b.alToString(a.context, c.pop()); a = b.alToString(a.context, c.pop()) > e; c.push(d ? a : a ? 1 : 0); } function vb(b, c) { var d = b.stack, e = b.scopeList.scope, f = c[1], h = new Ka(b.context, b, c[0], f, c[2], c[3], c[4], c[5]); f ? (e.alPut(f, h), a(b.context, f)) : d.push(h); } function wb(a) { var c = a.stack, d = a.context; a = b.alToObject(d, c.pop()); c = b.alToObject(d, c.pop()).alGetPrototypeProperty(); d = a.alGetPrototypeProperty(); c.alPrototype = d; c.alSetOwnProperty("__constructor__", {flags:65, value:a}); } function xb(a) { a = a.stack; var b = a.pop(), c = a.pop(); a.push(k(b, c) ? b : null); } function yb(a) { a = a.stack; var b = a.pop(), c = +a.pop(); t(c, a.length); for (var d = [], e = 0;e < c;e++) { d.push(a.pop()); } b._as2Interfaces = d; } function zb(a, b) { var c = b[5], d = b[3], e = b[1], f = b[2], h = b[4], g = b[6], m = a.context, l = a.scopeList, n = a.registers, v = m.isTryCatchListening, p; try { m.isTryCatchListening = !0, pa(a.pushScope(), f); } catch (k) { m.isTryCatchListening = v, d && k instanceof wa ? ("string" === typeof e ? l.scope.alPut(e, k.error) : n[e] = k.error, pa(a.pushScope(), h)) : p = k; } m.isTryCatchListening = v; c && pa(a.pushScope(), g); if (p) { throw p; } } function Ab(a) { a = a.stack.pop(); throw new wa(a); } function Bb(a) { var b = a.stack, c = p(b), d = b.length; b.push(void 0); a = a.actions.fscommand.apply(a.actions, c); b[d] = a; } function Fb(a, b) { } function Gb(a) { return function(b, d) { var e; try { a(b, d), b.recoveringFromError = !1; } catch (f) { e = b.context; f = c(f); if (f instanceof ma) { throw f; } if (f instanceof wa) { throw f; } if (!b.recoveringFromError) { if (1E3 <= e.errorsIgnored++) { throw new ma("long running script -- AVM1 errors limit is reached"); } console.log(typeof f); console.log(Object.getPrototypeOf(f)); console.log(Object.getPrototypeOf(Object.getPrototypeOf(f))); console.error("AVM1 error: " + f); } } }; } function pa(a, d) { if (!d.ir && !d.compiled) { a: { var e = a.context, f; if (b.avm1WellknownActionsCompilationsEnabled.value && (f = b.findWellknowCompilation(d, e))) { d.compiled = f; break a; } var e = new b.ActionsDataParser(d, e.swfVersion), h = new b.ActionsDataAnalyzer; h.registersLimit = a.registers.length; h.parentResults = d.parent && d.parent.ir; e = h.analyze(e); d.ir = e; if (b.avm1CompilerEnabled.value) { try { f = (new b.ActionsDataCompiler).generate(e), d.compiled = f; } catch (g) { console.error("Unable to compile AVM1 function: " + g); } } } } e = a.context; (f = a.scopeList.scope._as3Object) && f._deferScriptExecution && (e.deferScriptExecution = !0); if (f = d.compiled) { return f(a); } f = 0; e = e.abortExecutionAt; if (b.avm1DebuggerEnabled.value && (b.Debugger.pause || b.Debugger.breakpoints[m.dataId])) { debugger; } for (var m = d.ir, h = m.actions[0];h && !a.isEndOfActions;) { if (0 === f++ % b.CHECK_AVM1_HANG_EVERY && Date.now() >= e) { throw new ma("long running script -- AVM1 instruction hang timeout"); } var l = a, n = void 0, v = void 0; try { var n = l, p = h.action, k = p.actionCode, t = p.args, r = !1; switch(k | 0) { case 129: z(n, t); break; case 131: A(n, t); break; case 4: B(n); break; case 5: x(n); break; case 6: C(n); break; case 7: y(n); break; case 8: D(n); break; case 9: G(n); break; case 138: r = F(n, t); break; case 139: I(n, t); break; case 140: E(n, t); break; case 150: J(n, t); break; case 23: L(n); break; case 10: M(n); break; case 11: P(n); break; case 12: R(n); break; case 13: O(n); break; case 14: Q(n); break; case 15: W(n); break; case 16: T(n); break; case 17: X(n); break; case 18: N(n); break; case 19: U(n); break; case 20: V(n); break; case 49: ca(n); break; case 33: S(n); break; case 21: Z(n); break; case 53: ba(n); break; case 41: aa(n); break; case 24: ea(n); break; case 50: da(n); break; case 54: fa(n); break; case 51: ha(n); break; case 55: ka(n); break; case 153: break; case 157: r = ia(n, t); break; case 158: ja(n); break; case 28: la(n); break; case 29: qa(n); break; case 154: ra(n, t); break; case 159: sa(n, t); break; case 32: ta(n); break; case 34: Y(n); break; case 35: na(n); break; case 36: va(n); break; case 37: ya(n); break; case 39: za(n); break; case 40: Aa(n); break; case 141: r = Ba(n, t); break; case 38: Ca(n); break; case 52: Da(n); break; case 48: Ea(n); break; case 61: Fa(n); break; case 82: Ga(n); break; case 136: Ha(n, t); break; case 155: Ja(n, t); break; case 60: La(n); break; case 65: Ma(n); break; case 58: Na(n); break; case 59: Oa(n); break; case 70: Pa(n); break; case 73: Qa(n); break; case 78: Ra(n); break; case 66: Sa(n); break; case 67: Ta(n); break; case 83: Ua(n); break; case 64: Va(n); break; case 79: Wa(n); break; case 69: Xa(n); break; case 148: Ya(n, t); break; case 74: Za(n); break; case 75: $a(n); break; case 68: ab(n); break; case 71: bb(n); break; case 72: cb(n); break; case 63: db(n); break; case 96: eb(n); break; case 99: fb(n); break; case 97: gb(n); break; case 100: hb(n); break; case 101: ib(n); break; case 98: jb(n); break; case 81: kb(n); break; case 80: lb(n); break; case 76: mb(n); break; case 62: nb(n); break; case 77: ob(n); break; case 135: pb(n, t); break; case 84: qb(n); break; case 85: rb(n); break; case 102: sb(n); break; case 103: tb(n); break; case 104: ub(n); break; case 142: vb(n, t); break; case 105: wb(n); break; case 43: xb(n); break; case 44: yb(n); break; case 143: zb(n, t); break; case 42: Ab(n); break; case 45: Bb(n); break; case 137: break; case 0: n.isEndOfActions = !0; break; default: throw Error("Unknown action code: " + k);; } v = r; l.recoveringFromError = !1; } catch (q) { n = l.context; q = c(q); if (b.avm1ErrorsEnabled.value && !n.isTryCatchListening || q instanceof ma) { throw q; } if (q instanceof wa) { throw q; } if (!l.recoveringFromError) { if (1E3 <= n.errorsIgnored++) { throw new ma("long running script -- AVM1 errors limit is reached"); } console.error("AVM1 error: " + q); l.recoveringFromError = !0; } } h = v ? h.conditionalJumpTo : h.next; h = m.actions[h]; } return a.stack.pop(); } b.Debugger = {pause:!1, breakpoints:{}}; b.MAX_AVM1_HANG_TIMEOUT = 1E3; b.CHECK_AVM1_HANG_EVERY = 1E3; var Cb; (function(a) { a[a.DEFAULT = 0] = "DEFAULT"; a[a.TARGET = 1] = "TARGET"; a[a.REPLACE_TARGET = 2] = "REPLACE_TARGET"; })(Cb || (Cb = {})); var ua = function() { return function(a, b) { this.scope = a; this.previousScopeItem = b; this.flags = 0; }; }(), Hb = function(a) { function b(c, d) { a.call(this, c); this.alSetOwnProperty("this", {flags:71, value:d}); this.alSetOwnProperty("_global", {flags:71, value:c.globals}); } __extends(b, a); return b; }(b.AVM1Object), Ib = function() { function a(b, c, d, e, f) { this.previousFrame = b; this.currentThis = c; this.fn = d; this.args = e; this.ectx = f; this.inSequence = b ? b.calleeThis === c && b.calleeFn === d : !1; this.resetCallee(); } a.prototype.setCallee = function(a, b, c, d) { this.calleeThis = a; this.calleeSuper = b; this.calleeFn = c; }; a.prototype.resetCallee = function() { this.calleeFn = this.calleeSuper = this.calleeThis = null; }; return a; }(), Jb = function() { function c(a) { this._context = a; } c.prototype.hasProperty = function(a, c) { return b.alToObject(this._context, a).alHasProperty(c); }; c.prototype.getProperty = function(a, b) { return r(this._context, a, b); }; c.prototype.setProperty = function(c, d, e) { var f = this._context; b.alToObject(f, c).alPut(d, e); a(f, d); }; c.prototype.warn = function(a) { g.apply(null, arguments); }; return c; }(), Mb = function(a) { function d(c) { a.call(this, c.swfVersion); this.loaderInfo = c; this.sec = c.sec; this.globals = b.Lib.AVM1Globals.createGlobalsObject(this); this.actions = new b.Lib.AVM1NativeActions(this); this.initialScope = new ua(this.globals, null); this.utils = new Jb(this); this.executionProhibited = this.isActive = !1; this.actionTracer = b.avm1TraceEnabled.value ? new Kb : null; this.stackDepth = this.abortExecutionAt = 0; this.frame = null; this.isTryCatchListening = !1; this.errorsIgnored = 0; this.deferScriptExecution = !0; this.pendingScripts = []; } __extends(d, a); d.prototype._getExecutionContext = function() { return this.frame.ectx; }; d.prototype.resolveTarget = function(a) { return K(this.frame.ectx, a, !0); }; d.prototype.resolveRoot = function() { return H(this.frame.ectx).get_root(); }; d.prototype.checkTimeout = function() { if (Date.now() >= this.abortExecutionAt) { throw new ma("long running script -- AVM1 instruction hang timeout"); } }; d.prototype.addToPendingScripts = function(a) { var c = function() { this.isActive || (this.isActive = !0, this.abortExecutionAt = b.avm1TimeoutDisabled.value ? Number.MAX_VALUE : Date.now() + b.MAX_AVM1_HANG_TIMEOUT, this.errorsIgnored = 0); var c; try { a(); } catch (d) { c = d; } if (c) { throw c; } }.bind(this); this.deferScriptExecution ? this.pendingScripts.push(c) : c(); }; d.prototype.flushPendingScripts = function() { for (var a = this.pendingScripts;a.length;) { a.shift()(); } this.deferScriptExecution = !1; }; d.prototype.pushCallFrame = function(a, b, c, d) { return this.frame = a = new Ib(this.frame, a, b, c, d); }; d.prototype.popCallFrame = function() { this.frame = this.frame.previousFrame; }; d.prototype.executeActions = function(a, d) { if (!this.executionProhibited) { var e = this.isActive; e || (this.isActive = !0, this.abortExecutionAt = b.avm1TimeoutDisabled.value ? Number.MAX_VALUE : Date.now() + b.MAX_AVM1_HANG_TIMEOUT, this.errorsIgnored = 0); var f; try { var h = new ua(new Hb(this, d), this.initialScope), g = new ua(d, h); g.flags |= 1; var m, l = Db.create(this, g, [], Lb); this.pushCallFrame(d, null, null, l); try { pa(l, a); } catch (n) { m = c(n); } l.dispose(); m instanceof ma && (this.executionProhibited = !0, console.error("Disabling AVM1 execution")); this.popCallFrame(); if (m) { throw m; } } catch (v) { f = v; } this.isActive = e; if (f) { throw f; } } }; d.prototype.executeFunction = function(a, c, d) { if (!this.executionProhibited) { var e = this.isActive; e || (this.isActive = !0, this.abortExecutionAt = b.avm1TimeoutDisabled.value ? Number.MAX_VALUE : Date.now() + b.MAX_AVM1_HANG_TIMEOUT, this.errorsIgnored = 0); var f, h; try { h = a.alCall(c, d); } catch (g) { f = g; } this.isActive = e; if (f) { throw f; } return h; } }; return d; }(b.AVM1Context); b.AVM1Context.create = function(a) { return new Mb(a); }; var wa = function() { return function(a) { this.error = a; }; }(), ma = function(a) { function b(c, d) { a.call(this, c); this.error = d; } __extends(b, a); return b; }(Error), Lb = 4, oa = function(a) { function b(c, d) { a.call(this, c); this.callFrame = d; this.alPrototype = c.builtins.Object.alGetPrototypeProperty(); } __extends(b, a); return b; }(b.AVM1Object), Eb = function(a) { function c(d, e, f, h) { a.call(this, d, e); b.alDefineObjectProperties(this, {callee:{value:f}, caller:{value:h}}); } __extends(c, a); return c; }(b.Natives.AVM1ArrayNative), Db = function() { function a(b, c, d, e) { this.context = b; this.actions = b.actions; this.isSwfVersion5 = 5 <= b.swfVersion; this.registers = []; this.stack = []; this.frame = null; this.isEndOfActions = this.recoveringFromError = !1; this.reset(c, d, e); } a.alInitStatic = function() { this.cache = []; }; a.prototype.reset = function(a, b, c) { this.scopeList = a; this.constantPool = b; this.registers.length = c; }; a.prototype.clean = function() { this.constantPool = this.scopeList = null; this.registers.length = 0; this.stack.length = 0; this.frame = null; this.isEndOfActions = this.recoveringFromError = !1; }; a.prototype.pushScope = function(a) { var b = Object.create(this); b.stack = []; f.isNullOrUndefined(a) || (b.scopeList = a); return b; }; a.prototype.dispose = function() { this.clean(); var b = this.context.getStaticState(a); b.cache.length < a.MAX_CACHED_EXECUTIONCONTEXTS && b.cache.push(this); }; a.create = function(b, c, d, e) { var f = b.getStaticState(a); 0 < f.cache.length ? (b = f.cache.pop(), b.reset(c, d, e)) : b = new a(b, c, d, e); return b; }; a.MAX_CACHED_EXECUTIONCONTEXTS = 20; return a; }(), Nb = function(a) { function c(d) { a.call(this, d); this.alPut("toString", new b.AVM1NativeFunction(d, this._toString)); } __extends(c, a); c.prototype._toString = function() { return this; }; return c; }(b.AVM1Object), Ka = function(a) { function b(c, d, e, f, h, g, m, l) { a.call(this, c); this.functionName = f; this.actionsData = e; this.parametersNames = h; this.registersAllocation = m; this.suppressArguments = l; this.scopeList = d.scopeList; this.constantPool = d.constantPool; d = null; c = m ? m.length : 0; for (e = 0;e < c;e++) { (f = m[e]) && 1 === f.type && (d || (d = []), d[m[e].index] = !0); } this.skipArguments = d; g = Math.min(g, 255); this.registersLength = g = Math.max(g, c + 1); } __extends(b, a); b.prototype.alCall = function(a, b) { var c = this.context; if (!c.executionProhibited) { var d = new Nb(c), e = new ua(d, this.scopeList), f = this.scopeList.scope; a = a || f; b = b || []; var e = Db.create(c, e, this.constantPool, this.registersLength), h = c.frame ? c.frame.fn : void 0, g = c.pushCallFrame(a, this, b, e), m, l = this.suppressArguments; l & 4 || d.alPut("arguments", new Eb(c, b, this, h)); l & 2 || d.alPut("this", a); l & 8 || (m = new oa(c, g), d.alPut("super", m)); for (var n = e.registers, v = this.registersAllocation, p = v ? v.length : 0, l = 0;l < p;l++) { var k = v[l]; if (k) { switch(k.type) { case 1: n[l] = b[k.index]; break; case 2: n[l] = a; break; case 4: n[l] = new Eb(c, b, this, h); break; case 8: m = m || new oa(c, g); n[l] = m; break; case 16: n[l] = c.globals; break; case 32: n[l] = f.alGet("_parent"); break; case 64: n[l] = H(e).get_root(); } } } f = this.parametersNames; m = this.skipArguments; for (l = 0;l < b.length || l < f.length;l++) { m && m[l] || d.alPut(f[l], b[l]); } var t, r, d = this.actionsData; if (256 <= ++c.stackDepth) { throw new ma("long running script -- AVM1 recursion limit is reached"); } try { t = pa(e, d); } catch (q) { r = q; } c.stackDepth--; c.popCallFrame(); e.dispose(); if (r) { throw r; } return t; } }; return b; }(b.AVM1EvalFunction), xa; (function(a) { a[a.READ = 1] = "READ"; a[a.WRITE = 2] = "WRITE"; a[a.DELETE = a.READ] = "DELETE"; a[a.GET_VALUE = 32] = "GET_VALUE"; a[a.DISALLOW_TARGET_OVERRIDE = 64] = "DISALLOW_TARGET_OVERRIDE"; a[a.ONLY_TARGETS = 128] = "ONLY_TARGETS"; })(xa || (xa = {})); var Ia = {scope:null, propertyName:null, value:void 0}; b.generateActionCalls = function() { var a; a = b.avm1ErrorsEnabled.value ? function(a) { return a; } : Gb; return {ActionGotoFrame:a(z), ActionGetURL:a(A), ActionNextFrame:a(B), ActionPreviousFrame:a(x), ActionPlay:a(C), ActionStop:a(y), ActionToggleQuality:a(D), ActionStopSounds:a(G), ActionWaitForFrame:a(F), ActionSetTarget:a(I), ActionGoToLabel:a(E), ActionPush:a(J), ActionPop:a(L), ActionAdd:a(M), ActionSubtract:a(P), ActionMultiply:a(R), ActionDivide:a(O), ActionEquals:a(Q), ActionLess:a(W), ActionAnd:a(T), ActionOr:a(X), ActionNot:a(N), ActionStringEquals:a(U), ActionStringLength:a(V), ActionMBStringLength:a(ca), ActionStringAdd:a(S), ActionStringExtract:a(Z), ActionMBStringExtract:a(ba), ActionStringLess:a(aa), ActionToInteger:a(ea), ActionCharToAscii:a(da), ActionMBCharToAscii:a(fa), ActionAsciiToChar:a(ha), ActionMBAsciiToChar:a(ka), ActionJump:a(ga), ActionIf:a(ia), ActionCall:a(ja), ActionGetVariable:a(la), ActionSetVariable:a(qa), ActionGetURL2:a(ra), ActionGotoFrame2:a(sa), ActionSetTarget2:a(ta), ActionGetProperty:a(Y), ActionSetProperty:a(na), ActionCloneSprite:a(va), ActionRemoveSprite:a(ya), ActionStartDrag:a(za), ActionEndDrag:a(Aa), ActionWaitForFrame2:a(Ba), ActionTrace:a(Ca), ActionGetTime:a(Da), ActionRandomNumber:a(Ea), ActionCallFunction:a(Fa), ActionCallMethod:a(Ga), ActionConstantPool:a(Ha), ActionDefineFunction:a(Ja), ActionDefineLocal:a(La), ActionDefineLocal2:a(Ma), ActionDelete:a(Na), ActionDelete2:a(Oa), ActionEnumerate:a(Pa), ActionEquals2:a(Qa), ActionGetMember:a(Ra), ActionInitArray:a(Sa), ActionInitObject:a(Ta), ActionNewMethod:a(Ua), ActionNewObject:a(Va), ActionSetMember:a(Wa), ActionTargetPath:a(Xa), ActionWith:a(Ya), ActionToNumber:a(Za), ActionToString:a($a), ActionTypeOf:a(ab), ActionAdd2:a(bb), ActionLess2:a(cb), ActionModulo:a(db), ActionBitAnd:a(eb), ActionBitLShift:a(fb), ActionBitOr:a(gb), ActionBitRShift:a(hb), ActionBitURShift:a(ib), ActionBitXor:a(jb), ActionDecrement:a(kb), ActionIncrement:a(lb), ActionPushDuplicate:a(mb), ActionReturn:a(nb), ActionStackSwap:a(ob), ActionStoreRegister:a(pb), ActionInstanceOf:a(qb), ActionEnumerate2:a(rb), ActionStrictEquals:a(sb), ActionGreater:a(tb), ActionStringGreater:a(ub), ActionDefineFunction2:a(vb), ActionExtends:a(wb), ActionCastOp:a(xb), ActionImplementsOp:a(yb), ActionTry:a(zb), ActionThrow:a(Ab), ActionFSCommand2:a(Bb), ActionStrictMode:a(Fb)}; }; var Kb = function() { function a() { this._indentation = 0; this._indentStringCache = []; } a.prototype._getIndentString = function() { return this._indentStringCache[this._indentation] || (this._indentStringCache[this._indentation] = Array(this._indentation + 1).join("..")); }; a.prototype.print = function(a, b) { for (var c = a.position, d = a.actionCode, e = a.actionName, f = [], h = 0;h < b.length;h++) { var g = b[h]; g && "object" === typeof g ? (g = g.alGetConstructorProperty(), f.push("[" + (g ? g.name : "Object") + "]")) : f.push(g); } console.log("AVM1 trace: " + this._getIndentString() + c + ": " + e + "(" + d.toString(16) + "), stack=" + f); }; a.prototype.indent = function() { this._indentation++; }; a.prototype.unindent = function() { this._indentation--; }; a.prototype.message = function(a) { console.log("AVM1 trace: ------- " + a); }; return a; }(); b.PropertiesIndexMap = "_x _y _xscale _yscale _currentframe _totalframes _alpha _visible _width _height _rotation _target _framesloaded _name _droptarget _url _highquality _focusrect _soundbuftime _quality _xmouse _ymouse".split(" "); })(f.AVM1 || (f.AVM1 = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { function g() { e || (e = b.generateActionCalls()); return e; } function q(a) { } function u(a) { g().ActionPlay(a); } function k(a) { g().ActionStop(a); } function r(a) { g().ActionStopSounds(a); } function d(a, b) { g().ActionGotoFrame(b, a); } function a(a, b) { g().ActionGoToLabel(b, a); } var c = f.Debug.notImplemented, e = null, l = function() { function a() { } a.prototype.convertArgs = function(a, d, e, f) { for (var g = [], l = 0;l < a.length;l++) { var n = a[l]; if ("object" !== typeof n || null === n || Array.isArray(n)) { void 0 === n ? g.push("undefined") : g.push(JSON.stringify(n)); } else { if (n instanceof b.ParsedPushConstantAction) { if (f.singleConstantPool) { var k = f.singleConstantPool[n.constantIndex]; g.push(void 0 === k ? "undefined" : JSON.stringify(k)); } else { var k = "", r = e.constantPool; r && (k = r[n.constantIndex], k = void 0 === k ? "undefined" : JSON.stringify(k), k = 0 <= k.indexOf("*/") ? "" : " /* " + k + " */"); g.push("constantPool[" + n.constantIndex + "]" + k); } } else { n instanceof b.ParsedPushRegisterAction ? (n = n.registerNumber, 0 > n || n >= f.registersLimit ? g.push("undefined") : g.push("registers[" + n + "]")) : n instanceof b.AVM1ActionsData ? (k = "code_" + d + "_" + l, e[k] = n, g.push("res." + k)) : c("Unknown AVM1 action argument type"); } } } return g.join(","); }; a.prototype.convertAction = function(a, b, c, d, e) { switch(a.action.actionCode) { case 153: ; case 62: return ""; case 136: return c.constantPool = a.action.args[0], " constantPool = [" + this.convertArgs(a.action.args[0], b, c, e) + "];\n ectx.constantPool = constantPool;\n"; case 150: return " stack.push(" + this.convertArgs(a.action.args, b, c, e) + ");\n"; case 135: return a = a.action.args[0], 0 > a || a >= e.registersLimit ? "" : " registers[" + a + "] = stack[stack.length - 1];\n"; case 138: ; case 141: return " if (calls." + a.action.actionName + "(ectx,[" + this.convertArgs(a.action.args, b, c, e) + "])) { position = " + a.conditionalJumpTo + "; checkTimeAfter -= " + (d + 1) + "; break; }\n"; case 157: return " if (!!stack.pop()) { position = " + a.conditionalJumpTo + "; checkTimeAfter -= " + (d + 1) + "; break; }\n"; default: return " calls." + a.action.actionName + "(ectx" + (a.action.args ? ",[" + this.convertArgs(a.action.args, b, c, e) + "]" : "") + ");\n"; } }; a.prototype.generate = function(a) { var c = this, d = a.blocks, e = {}, f = 0, l = a.dataId, n = "return function avm1gen_" + l + "(ectx) {\nvar position = 0;\nvar checkTimeAfter = 0;\nvar constantPool = ectx.constantPool, registers = ectx.registers, stack = ectx.stack;\n"; b.avm1DebuggerEnabled.value && (n += "/* Running " + l + " */ if (Shumway.AVM1.Debugger.pause || Shumway.AVM1.Debugger.breakpoints." + l + ") { debugger; }\n"); n += "while (!ectx.isEndOfActions) {\nif (checkTimeAfter <= 0) { checkTimeAfter = " + b.CHECK_AVM1_HANG_EVERY + "; ectx.context.checkTimeout(); }\nswitch(position) {\n"; d.forEach(function(b) { n += " case " + b.label + ":\n"; b.items.forEach(function(b, d) { n += c.convertAction(b, f++, e, d, a); }); n += " position = " + b.jump + ";\n checkTimeAfter -= " + b.items.length + ";\n break;\n"; }); n += " default: ectx.isEndOfActions = true; break;\n}\n}\nreturn stack.pop();};"; n += "//# sourceURL=avm1gen-" + l; return (new Function("calls", "res", n))(g(), e); }; return a; }(); b.ActionsDataCompiler = l; b.findWellknowCompilation = function(c, e) { var f = c.bytes, h = null; if (0 === f.length || 0 === f[0]) { h = q; } else { if (2 <= f.length && 0 === f[1]) { switch(f[0]) { case 6: h = u; break; case 7: h = k; break; case 9: h = r; } } else { 7 <= f.length && 0 === f[6] && 129 === f[0] && 2 === f[1] && 0 === f[2] && 6 === f[5] ? h = d.bind(null, [f[3] | f[4] << 8, !0]) : 6 <= f.length && 140 === f[0] && 0 === f[2] && f.length >= f[1] + 5 && 0 === f[f[1] + 4] && 6 === f[f[1] + 3] && (f = (new b.ActionsDataStream(f.subarray(3, 3 + f[1]), e.swfVersion)).readString(), h = a.bind(null, [f, !0])); } } return h; }; })(f.AVM1 || (f.AVM1 = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(g) { function q(a, b) { return a.isPropertyCaseSensitive ? b : b.toLowerCase(); } function u(a, c, d) { if (c.alHasProperty(d) && c.alGet(d) instanceof b.AVM1Function) { return !0; } a = c.alGet("_listeners"); return a instanceof b.Natives.AVM1ArrayNative ? a.value.some(function(a) { return a instanceof b.AVM1Object && a.alHasProperty(d); }) : !1; } function k(a, c, d, e) { void 0 === e && (e = null); var f = c.alGet(d); f instanceof b.AVM1Function && a.executeFunction(f, c, e); f = c.alGet("_listeners"); f instanceof b.Natives.AVM1ArrayNative && f.value.forEach(function(f) { f instanceof b.AVM1Object && (f = f.alGet(d), f instanceof b.AVM1Function && a.executeFunction(f, c, e)); }); } function r(a, b, c) { for (var d = a.alGetPrototypeProperty();d && !d.initAVM1SymbolInstance;) { d = d.alPrototype; } var e = Object.create(d); d.initAVM1SymbolInstance.call(e, c, b); e.alPrototype = a.alGetPrototypeProperty(); e.alSetOwnConstructorProperty(a); b._as2Object = e; a.alCall(e); return e; } function d(a, b) { if (!a) { return null; } if (a._as2Object) { return a._as2Object; } var c = b.sec; return c.flash.display.MovieClip.axClass.axIsType(a) ? a._avm1SymbolClass ? r(a._avm1SymbolClass, a, b) : r(b.globals.MovieClip, a, b) : c.flash.display.SimpleButton.axClass.axIsType(a) ? r(b.globals.Button, a, b) : c.flash.text.TextField.axClass.axIsType(a) ? r(b.globals.TextField, a, b) : c.flash.display.BitmapData.axClass.axIsType(a) ? new a : null; } function a(a, c, d, e, g) { function l(c) { if (!f.isNullOrUndefined(c)) { return g ? new b.AVM1NativeFunction(a, function() { var b = Array.prototype.slice.call(arguments, 0); b.unshift(a); return c.apply(this, b); }) : new b.AVM1NativeFunction(a, c); } } void 0 === g && (g = !1); e && e.forEach(function(a) { if ("#" === a[a.length - 1]) { var b = "get" + a[0].toUpperCase() + a.slice(1, -1), b = d[b], e = "set" + a[0].toUpperCase() + a.slice(1, -1), e = d[e]; c.alSetOwnProperty(a.slice(0, -1), {flags:131, get:l(b), set:l(e)}); } else { a: { for (e = d;e;e = Object.getPrototypeOf(e)) { if (b = Object.getOwnPropertyDescriptor(e, a)) { break a; } } b = null; } !b || b.get || b.set || (b = b.value, "function" === typeof b && (b = l(b)), c.alSetOwnProperty(a, {flags:67, value:b})); } }); } function c(a, b) { return b.context.executeActions(a, b); } g.DEPTH_OFFSET = 16384; var e = function() { function a(b, c, d) { void 0 === d && (d = null); this.propertyName = b; this.eventName = c; this.argsConverter = d; } a.prototype.onBind = function(a) { }; a.prototype.onUnbind = function(a) { }; return a; }(); g.AVM1EventHandler = e; e = function(a) { function c() { a.apply(this, arguments); } __extends(c, a); Object.defineProperty(c.prototype, "isAVM1Instance", {get:function() { return !!this._as3Object; }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "as3Object", {get:function() { return this._as3Object; }, enumerable:!0, configurable:!0}); c.prototype.initAVM1SymbolInstance = function(a, c) { b.AVM1Object.call(this, a); this._as3Object = c; }; c.prototype.bindEvents = function(a) { var b; void 0 === b && (b = !0); this._events = a; var c = Object.create(null); this._eventsMap = c; this._eventsListeners = Object.create(null); var d = this, e = this.context; a.forEach(function(a) { var b = q(e, a.propertyName); c[b] = a; e.registerEventPropertyObserver(b, d); d._updateEvent(a); }); b && d.as3Object.addEventListener("removedFromStage", function K() { d.as3Object.removeEventListener("removedFromStage", K); d.unbindEvents(); }); }; c.prototype.unbindEvents = function() { var a = this, b = this.context; this._events.forEach(function(c) { b.unregisterEventPropertyObserver(c.propertyName, a); a._removeEventListener(c); }); this._eventsListeners = this._eventsMap = this._events = null; }; c.prototype.updateAllEvents = function() { this._events.forEach(function(a) { this._updateEvent(a); }, this); }; c.prototype._updateEvent = function(a) { u(this.context, this, a.propertyName) ? this._addEventListener(a) : this._removeEventListener(a); }; c.prototype._addEventListener = function(a) { var b = q(this.context, a.propertyName), c = this._eventsListeners[b]; c || (c = function() { var c = a.argsConverter ? a.argsConverter.apply(null, arguments) : null; k(this.context, this, b, c); }.bind(this), this.as3Object.addEventListener(a.eventName, c), a.onBind(this), this._eventsListeners[b] = c); }; c.prototype._removeEventListener = function(a) { var b = q(this.context, a.propertyName), c = this._eventsListeners[b]; c && (this.as3Object.removeEventListener(a.eventName, c), this._eventsListeners[b] = null); }; c.prototype.onEventPropertyModified = function(a) { a = q(this.context, a); this._updateEvent(this._eventsMap[a]); }; c.prototype.get_alpha = function() { return 100 * this.as3Object.alpha; }; c.prototype.set_alpha = function(a) { a = b.alToNumber(this.context, a); isNaN(a) || (this.as3Object.alpha = a / 100); }; c.prototype.getBlendMode = function() { return this.as3Object.blendMode; }; c.prototype.setBlendMode = function(a) { a = "number" === typeof a ? g.BlendModesMap[a] : b.alCoerceString(this.context, a); this.as3Object.blendMode = a || null; }; c.prototype.getCacheAsBitmap = function() { return this.as3Object.cacheAsBitmap; }; c.prototype.setCacheAsBitmap = function(a) { a = b.alToBoolean(this.context, a); this.as3Object.cacheAsBitmap = a; }; c.prototype.getFilters = function() { return g.convertFromAS3Filters(this.context, this.as3Object.filters); }; c.prototype.setFilters = function(a) { this.as3Object.filters = g.convertToAS3Filters(this.context, a); }; c.prototype.get_focusrect = function() { return this.as3Object.focusRect || !1; }; c.prototype.set_focusrect = function(a) { a = b.alToBoolean(this.context, a); this.as3Object.focusRect = a; }; c.prototype.get_height = function() { return this.as3Object.height; }; c.prototype.set_height = function(a) { a = b.alToNumber(this.context, a); isNaN(a) || (this.as3Object.height = a); }; c.prototype.get_highquality = function() { switch(this.get_quality()) { case "BEST": return 2; case "HIGH": return 1; default: return 0; } }; c.prototype.set_highquality = function(a) { switch(b.alToInteger(this.context, a)) { case 2: a = "BEST"; break; case 1: a = "HIGH"; break; default: a = "LOW"; } this.set_quality(a); }; c.prototype.getMenu = function() { f.Debug.somewhatImplemented("AVM1SymbolBase.getMenu"); }; c.prototype.setMenu = function(a) { f.Debug.somewhatImplemented("AVM1SymbolBase.setMenu"); }; c.prototype.get_name = function() { return this.as3Object.name; }; c.prototype.set_name = function(a) { a = b.alCoerceString(this.context, a); this.as3Object.name = a; }; c.prototype.get_parent = function() { return d(this.as3Object.parent, this.context) || void 0; }; c.prototype.set_parent = function(a) { f.Debug.notImplemented("AVM1SymbolBase.set_parent"); }; c.prototype.getOpaqueBackground = function() { return this.as3Object.opaqueBackground; }; c.prototype.setOpaqueBackground = function(a) { f.isNullOrUndefined(a) ? this.as3Object.opaqueBackground = null : this.as3Object.opaqueBackground = b.alToInt32(this.context, a); }; c.prototype.get_quality = function() { f.Debug.somewhatImplemented("AVM1SymbolBase.get_quality"); return "HIGH"; }; c.prototype.set_quality = function(a) { f.Debug.somewhatImplemented("AVM1SymbolBase.set_quality"); }; c.prototype.get_root = function() { for (var a = this.as3Object;a && a !== a.root;) { var b = d(a, this.context); if (b._lockroot) { return b; } a = a.parent; } return a ? d(a, this.context) : void 0; }; c.prototype.get_rotation = function() { return this.as3Object.rotation; }; c.prototype.set_rotation = function(a) { a = b.alToNumber(this.context, a); isNaN(a) || (this.as3Object.rotation = a); }; c.prototype.getScale9Grid = function() { return g.AVM1Rectangle.fromAS3Rectangle(this.context, this.as3Object.scale9Grid); }; c.prototype.setScale9Grid = function(a) { this.as3Object.scale9Grid = f.isNullOrUndefined(a) ? null : g.toAS3Rectangle(a); }; c.prototype.getScrollRect = function() { return g.AVM1Rectangle.fromAS3Rectangle(this.context, this.as3Object.scrollRect); }; c.prototype.setScrollRect = function(a) { this.as3Object.scrollRect = f.isNullOrUndefined(a) ? null : g.toAS3Rectangle(a); }; c.prototype.get_soundbuftime = function() { f.Debug.somewhatImplemented("AVM1SymbolBase.get_soundbuftime"); return 0; }; c.prototype.set_soundbuftime = function(a) { f.Debug.somewhatImplemented("AVM1SymbolBase.set_soundbuftime"); }; c.prototype.getTabEnabled = function() { return this.as3Object.tabEnabled; }; c.prototype.setTabEnabled = function(a) { a = b.alToBoolean(this.context, a); this.as3Object.tabEnabled = a; }; c.prototype.getTabIndex = function() { var a = this.as3Object.tabIndex; return 0 > a ? void 0 : a; }; c.prototype.setTabIndex = function(a) { f.isNullOrUndefined(a) ? this.as3Object.tabIndex = -1 : this.as3Object.tabIndex = b.alToInteger(this.context, a); }; c.prototype.get_target = function() { var a = this.as3Object; if (a === a.root) { return "/"; } var b = ""; do { if (f.isNullOrUndefined(a)) { return; } b = "/" + a.name + b; a = a.parent; } while (a !== a.root); return b; }; c.prototype.getTransform = function() { return this.context.globals.alGet("flash").alGet("geom").alGet("Transform").alConstruct([this]); }; c.prototype.setTransform = function(a) { a instanceof g.AVM1Transform && (this.as3Object.transform = a.as3Transform); }; c.prototype.get_visible = function() { return this.as3Object.visible; }; c.prototype.set_visible = function(a) { a = b.alToBoolean(this.context, a); this.as3Object.visible = a; }; c.prototype.get_url = function() { return this.as3Object.loaderInfo.url; }; c.prototype.get_width = function() { return this.as3Object.width; }; c.prototype.set_width = function(a) { a = b.alToNumber(this.context, a); isNaN(a) || (this.as3Object.width = a); }; c.prototype.get_x = function() { return this.as3Object.x; }; c.prototype.set_x = function(a) { a = b.alToNumber(this.context, a); isNaN(a) || (this.as3Object.x = a); }; c.prototype.get_xmouse = function() { return this.as3Object.mouseX; }; c.prototype.get_xscale = function() { return 100 * this.as3Object.scaleX; }; c.prototype.set_xscale = function(a) { a = b.alToNumber(this.context, a); isNaN(a) || (this.as3Object.scaleX = a / 100); }; c.prototype.get_y = function() { return this.as3Object.y; }; c.prototype.set_y = function(a) { a = b.alToNumber(this.context, a); isNaN(a) || (this.as3Object.y = a); }; c.prototype.get_ymouse = function() { return this.as3Object.mouseY; }; c.prototype.get_yscale = function() { return 100 * this.as3Object.scaleY; }; c.prototype.set_yscale = function(a) { a = b.alToNumber(this.context, a); isNaN(a) || (this.as3Object.scaleY = a / 100); }; c.prototype.getDepth = function() { return this.as3Object._depth - g.DEPTH_OFFSET; }; return c; }(b.AVM1Object); g.AVM1SymbolBase = e; g.BlendModesMap = [void 0, "normal", "layer", "multiply", "screen", "lighten", "darken", "difference", "add", "subtract", "invert", "alpha", "erase", "overlay", "hardlight"]; g.avm1HasEventProperty = u; g.avm1BroadcastEvent = function(a, c, d, e) { void 0 === e && (e = null); a = c.alGet(d); a instanceof b.AVM1Function && a.alCall(c, e); a = c.alGet("_listeners"); a instanceof b.Natives.AVM1ArrayNative && a.value.forEach(function(a) { a instanceof b.AVM1Object && (a = a.alGet(d), a instanceof b.AVM1Function && a.alCall(c, e)); }); }; e = function() { function a() { } a.resolveTarget = function(a, b) { void 0 === b && (b = void 0); return a.resolveTarget(b); }; a.resolveMovieClip = function(a, b) { void 0 === b && (b = void 0); return b ? a.resolveTarget(b) : void 0; }; a.resolveLevel = function(a, b) { return a.resolveLevel(+b); }; return a; }(); g.AVM1Utils = e; g.getAVM1Object = d; g.wrapAVM1NativeMembers = a; g.wrapAVM1NativeClass = function(c, d, e, f, g, l, k) { var r = d ? new b.AVM1NativeFunction(c, l || function() { }, function() { var a = new e(c); a.alPrototype = q; a.alSetOwnConstructorProperty(r); k && k.apply(a, arguments); return a; }) : new b.AVM1Object(c); a(c, r, e, f, !0); var q = new e(c); q.alPrototype = c.builtins.Object.alGetPrototypeProperty(); a(c, q, e.prototype, g, !1); b.alDefineObjectProperties(r, {prototype:{value:q}}); b.alDefineObjectProperties(q, {constructor:{value:r, writable:!0}}); return r; }; g.initializeAVM1Object = function(a, b, e) { var f = d(a, b); e.variableName && f.alPut("variable", e.variableName); var g = e.events; if (g) { for (var v = [], k = b.globals.Stage._as3Stage, r = 0;r < g.length;r++) { var q = g[r], u; q.actionsData ? (u = b.actionsDataFactory.createActionsData(q.actionsData, "s" + e.symbolId + "e" + r), q.actionsData = null, q.compiled = u) : u = q.compiled; u = c.bind(null, u, f); var q = q.flags, A; for (A in l) { if (A |= 0, q & (A | 0)) { var B = l[A]; if ("mouseDown" === B || "mouseUp" === B || "mouseMove" === B) { v.push({eventName:B, handler:u}), k.addEventListener(B, u); } else { switch(A) { case 2048: ; case 4096: ; case 8192: ; case 16384: a.buttonMode = !0; } a.addEventListener(B, u); } } } } 0 < v.length && a.addEventListener("removedFromStage", function() { for (var a = 0;a < v.length;a++) { k.removeEventListener(v[a].eventName, v[a].fn, !1); } }, !1); } }; var l = Object.create(null); l[1] = "load"; l[2] = "frameConstructed"; l[4] = "unload"; l[8] = "mouseMove"; l[16] = "mouseDown"; l[32] = "mouseUp"; l[64] = "keyDown"; l[128] = "keyUp"; l[256] = {toString:function() { f.Debug.warning("Data ClipEvent not implemented"); }}; l[512] = "initialize"; l[1024] = "mouseDown"; l[2048] = "click"; l[4096] = "releaseOutside"; l[8192] = "mouseOver"; l[16384] = "mouseOut"; l[32768] = {toString:function() { f.Debug.warning("DragOver ClipEvent not implemented"); }}; l[65536] = {toString:function() { f.Debug.warning("DragOut ClipEvent not implemented"); }}; l[131072] = {toString:function() { f.Debug.warning("KeyPress ClipEvent not implemented"); }}; l[262144] = "construct"; })(b.Lib || (b.Lib = {})); })(f.AVM1 || (f.AVM1 = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(g) { var q = f.Debug.notImplemented, u = f.AVMX.AS.flash, k = jsGlobal.escape, r = [], d = function(a) { function c(b) { a.call(this, b); this.NaN = Number.NaN; this.Infinity = Number.POSITIVE_INFINITY; this.undefined = void 0; this._initBuiltins(b); 8 <= b.loaderInfo.swfVersion && this._initializeFlashObject(b); } __extends(c, a); c.createGlobalsObject = function(a) { var b = new c(a); g.wrapAVM1NativeMembers(a, b, b, "flash ASSetPropFlags clearInterval clearTimeout escape unescape setInterval setTimeout showRedrawRegions trace updateAfterEvent NaN Infinity isFinite isNaN parseFloat parseInt undefined Object Function Array Number Math Boolean Date String Error MovieClip AsBroadcaster System Stage Button TextField Color Key Mouse MovieClipLoader XML XMLNode LoadVars Sound SharedObject ContextMenu ContextMenuItem TextFormat".split(" "), !1); return b; }; c.prototype.ASSetPropFlags = function(a, b, c, d) { }; c.prototype.clearInterval = function(a) { var b = r[a - 1]; b && (clearInterval(b), delete r[a - 1]); }; c.prototype.clearTimeout = function(a) { var b = r[a - 1]; b && (clearTimeout(b), delete r[a - 1]); }; c.prototype.escape = function(a) { return encodeURIComponent(a).replace(/!|'|\(|\)|\*|-|\.|_|~/g, function(a) { switch(a) { case "*": return "%2A"; case "-": return "%2D"; case ".": return "%2E"; case "_": return "%5F"; default: return k(a); } }); }; c.prototype.unescape = function(a) { return decodeURIComponent(a); }; c.prototype.setInterval = function() { if (!(2 > arguments.length)) { var a = this.context, c = []; if (b.alIsFunction(arguments[0])) { c.push(arguments[0].toJSFunction(), arguments[1]); } else { if (3 > arguments.length) { return; } var d = arguments[0], f = arguments[1]; if (!(d instanceof b.AVM1Object) || "string" !== typeof f) { return; } c.push(function() { var c = d.alGet(f); if (b.alIsFunction(c)) { var g = Array.prototype.slice.call(arguments, 0); a.executeFunction(c, d, g); } }); } for (var g = 2;g < arguments.length;g++) { c.push(arguments[g]); } c[1] = b.alToInteger(a, c[1]); c = setInterval.apply(null, c); return r.push(c); } }; c.prototype.setTimeout = function() { if (!(2 > arguments.length) && b.alIsFunction(arguments[0])) { var a = []; a.push(arguments[0].toJSFunction()); a.push(b.alToInteger(this.context, arguments[1])); for (var c = 2;c < arguments.length;c++) { a.push(arguments[c]); } a = setTimeout.apply(null, a); return r.push(a); } }; c.prototype.showRedrawRegions = function(a, b) { q("AVM1Globals.showRedrawRegions"); }; c.prototype.trace = function(a) { this.context.actions.trace(a); }; c.prototype.updateAfterEvent = function() { this.context.sec.player.requestRendering(); }; c.prototype.isFinite = function(a) { return isFinite(b.alToNumber(this.context, a)); }; c.prototype.isNaN = function(a) { return isNaN(b.alToNumber(this.context, a)); }; c.prototype.parseFloat = function(a) { return parseFloat(b.alToString(this.context, a)); }; c.prototype.parseInt = function(a, c) { return parseInt(b.alToString(this.context, a), b.alToInt32(this.context, c)); }; c.prototype._initBuiltins = function(a) { var b = a.builtins; this.Object = b.Object; this.Function = b.Function; this.Array = b.Array; this.Number = b.Number; this.Math = b.Math; this.Boolean = b.Boolean; this.Date = b.Date; this.String = b.String; this.Error = b.Error; this.MovieClip = g.AVM1MovieClip.createAVM1Class(a); this.AsBroadcaster = g.AVM1Broadcaster.createAVM1Class(a); this.System = g.AVM1System.createAVM1Class(a); this.Stage = g.AVM1Stage.createAVM1Class(a); this.Button = g.AVM1Button.createAVM1Class(a); this.TextField = g.AVM1TextField.createAVM1Class(a); this.Color = g.AVM1Color.createAVM1Class(a); this.Key = g.AVM1Key.createAVM1Class(a); this.Mouse = g.AVM1Mouse.createAVM1Class(a); this.MovieClipLoader = g.AVM1MovieClipLoader.createAVM1Class(a); this.LoadVars = new g.AVM1LoadVarsFunction(a); this.Sound = g.AVM1Sound.createAVM1Class(a); this.SharedObject = new g.AVM1SharedObjectFunction(a); this.ContextMenuItem = this.ContextMenu = void 0; this.TextFormat = g.AVM1TextFormat.createAVM1Class(a); this.XMLNode = new g.AVM1XMLNodeFunction(a); this.XML = new g.AVM1XMLFunction(a, this.XMLNode); g.AVM1Broadcaster.initialize(a, this.Stage); g.AVM1Broadcaster.initialize(a, this.Key); g.AVM1Broadcaster.initialize(a, this.Mouse); }; c.prototype._initializeFlashObject = function(a) { this.flash = b.alNewObject(a); var c = b.alNewObject(a); c.alPut("BitmapData", g.AVM1BitmapData.createAVM1Class(a)); this.flash.alPut("display", c); c = b.alNewObject(a); c.alPut("ExternalInterface", g.AVM1ExternalInterface.createAVM1Class(a)); this.flash.alPut("external", c); c = g.createFiltersClasses(a); this.flash.alPut("filters", c); c = b.alNewObject(a); c.alPut("ColorTransform", new g.AVM1ColorTransformFunction(a)); c.alPut("Matrix", new g.AVM1MatrixFunction(a)); c.alPut("Point", new g.AVM1PointFunction(a)); c.alPut("Rectangle", new g.AVM1RectangleFunction(a)); c.alPut("Transform", g.AVM1Transform.createAVM1Class(a)); this.flash.alPut("geom", c); a = b.alNewObject(a); this.flash.alPut("text", a); }; return c; }(b.AVM1Object); g.AVM1Globals = d; d = function() { function a(a) { this.context = a; } a.prototype.asfunction = function(a) { q("AVM1Globals.$asfunction"); }; a.prototype.call = function(a) { var b = g.AVM1Utils.resolveTarget(this.context).as3Object; a = b._getAbsFrameNumber(a, null); void 0 !== a && b.callFrame(a); }; a.prototype.chr = function(a) { a = b.alToInteger(this.context, a); 5 >= this.context.swfVersion && (a &= 255); return a ? String.fromCharCode(a) : ""; }; a.prototype.duplicateMovieClip = function(a, d, f) { f = b.alCoerceNumber(this.context, f) - g.DEPTH_OFFSET; g.AVM1Utils.resolveTarget(this.context, a).duplicateMovieClip(d, f, null); }; a.prototype.fscommand = function(a, b) { return this.context.sec.flash.system.fscommand.axCall(null, this.context.sec, a, b); }; a.prototype.getTimer = function() { return f.AVMX.AS.FlashUtilScript_getTimer(this.context.sec); }; a.prototype.getURL = function(a, b, d) { var g = this.context.sec, k = new g.flash.net.URLRequest(String(a)); d && (k.method = d); "string" === typeof b && 0 === b.indexOf("_level") ? this.loadMovieNum(a, +b.substr(6), d) : f.AVMX.AS.FlashNetScript_navigateToURL(g, k, b); }; a.prototype._addToPendingScripts = function(a, b, d) { void 0 === d && (d = null); var f = this.context, g = f.resolveTarget(void 0); f.addToPendingScripts(function() { try { b.apply(a, d); } catch (g) { f.utils.warn("AVM1 pending script error: " + g.message); } }, g); }; a.prototype.gotoAndPlay = function(a, b) { var d = g.AVM1Utils.resolveTarget(this.context); 2 > arguments.length ? this._addToPendingScripts(d, d.gotoAndPlay, [arguments[0]]) : this._addToPendingScripts(d, d.gotoAndPlay, [arguments[1], arguments[0]]); }; a.prototype.gotoAndStop = function(a, b) { var d = g.AVM1Utils.resolveTarget(this.context); 2 > arguments.length ? this._addToPendingScripts(d, d.gotoAndStop, [arguments[0]]) : this._addToPendingScripts(d, d.gotoAndStop, [arguments[1], arguments[0]]); }; a.prototype.ifFrameLoaded = function(a, b) { var d = g.AVM1Utils.resolveTarget(this.context), f = 2 > arguments.length ? arguments[0] : arguments[1], k = d.alGet("_framesloaded"), d = d.alGet("_totalframes"); return Math.min(f + 1, d) <= k; }; a.prototype.int = function(a) { return a | 0; }; a.prototype.length_ = function(a) { return ("" + a).length; }; a.prototype.loadMovie = function(a, b, d) { if (a && 0 === a.toLowerCase().indexOf("fscommand:")) { this.fscommand(a.substring(10), b); } else { var f = "string" === typeof b && 0 === b.indexOf("_level"), k; f && (f = b.charAt(6), k = parseInt(f, 10), f = k.toString() === f); k = new this.context.sec.flash.display.Loader; f ? (a = new this.context.sec.flash.net.URLRequest(a), d && (a.method = d), k.load(a)) : g.AVM1Utils.resolveTarget(this.context, b).loadMovie(a, d); } }; a.prototype._setLevel = function(a, b) { }; a.prototype.loadMovieNum = function(a, b, d) { a && 0 === a.toLowerCase().indexOf("fscommand:") ? this.fscommand(a.substring(10)) : (b = new this.context.sec.flash.display.Loader, a = new this.context.sec.flash.net.URLRequest(a), d && (a.method = d), b.load(a)); }; a.prototype.loadVariables = function(a, b, d) { void 0 === d && (d = ""); b = g.AVM1Utils.resolveTarget(this.context, b); this._loadVariables(b, a, d); }; a.prototype.loadVariablesNum = function(a, b, d) { void 0 === d && (d = ""); b = g.AVM1Utils.resolveLevel(this.context, b); this._loadVariables(b, a, d); }; a.prototype._loadVariables = function(a, b, d) { var n = this.context; b = new n.sec.flash.net.URLRequest(b); d && (b.method = d); var k = new n.sec.flash.net.URLLoader(b); k._ignoreDecodeErrors = !0; k.dataFormat = "variables"; var r = n.sec.boxFunction(function(b) { k.removeEventListener(u.events.Event.COMPLETE, r); f.AVMX.forEachPublicProperty(k.data, function(b, d) { n.utils.setProperty(a, b, d); }); a instanceof g.AVM1MovieClip && g.avm1BroadcastEvent(n, a, "onData"); }); k.addEventListener(u.events.Event.COMPLETE, r); }; a.prototype.mbchr = function(a) { return (a = b.alToInteger(this.context, a)) ? String.fromCharCode(a) : ""; }; a.prototype.mblength = function(a) { return ("" + a).length; }; a.prototype.mbord = function(a) { return ("" + a).charCodeAt(0); }; a.prototype.mbsubstring = function(a, b, d) { return b !== (0 | b) || d !== (0 | d) ? "" : ("" + a).substr(b, d); }; a.prototype.nextFrame = function() { var a = g.AVM1Utils.resolveTarget(this.context); this._addToPendingScripts(a, a.nextFrame); }; a.prototype.nextScene = function() { var a = g.AVM1Utils.resolveTarget(this.context); this._addToPendingScripts(a, a.nextScene); }; a.prototype.ord = function(a) { return ("" + a).charCodeAt(0); }; a.prototype.play = function() { g.AVM1Utils.resolveTarget(this.context).play(); }; a.prototype.prevFrame = function() { var a = g.AVM1Utils.resolveTarget(this.context); this._addToPendingScripts(a, a.prevFrame); }; a.prototype.prevScene = function() { var a = g.AVM1Utils.resolveTarget(this.context); this._addToPendingScripts(a, a.prevScene); }; a.prototype.print = function(a, b) { q("AVM1Globals.print"); }; a.prototype.printAsBitmap = function(a, b) { q("AVM1Globals.printAsBitmap"); }; a.prototype.printAsBitmapNum = function(a, b) { q("AVM1Globals.printAsBitmapNum"); }; a.prototype.printNum = function(a, b) { q("AVM1Globals.printNum"); }; a.prototype.random = function(a) { return 0 | Math.random() * (0 | a); }; a.prototype.removeMovieClip = function(a) { (a = g.AVM1Utils.resolveTarget(this.context, a)) && a.removeMovieClip(); }; a.prototype.startDrag = function(a) { for (var b = [], d = 1;d < arguments.length;d++) { b[d - 1] = arguments[d]; } d = g.AVM1Utils.resolveTarget(this.context, a); d.startDrag.apply(d, b); }; a.prototype.stop = function() { g.AVM1Utils.resolveTarget(this.context).stop(); }; a.prototype.stopAllSounds = function() { this.context.sec.flash.media.SoundMixer.axClass.stopAll(); }; a.prototype.stopDrag = function() { var a = this.context.sec.flash.ui.Mouse.axClass.draggableObject; a && g.getAVM1Object(a, this.context).stopDrag(); }; a.prototype.substring = function(a, b, d) { return this.mbsubstring(a, b, d); }; a.prototype.targetPath = function(a) { return g.AVM1Utils.resolveTarget(this.context, a)._target; }; a.prototype.toggleHighQuality = function() { q("AVM1Globals.toggleHighQuality"); }; a.prototype.trace = function(a) { switch(typeof a) { case "undefined": a = "undefined"; break; case "string": break; default: a = b.alToString(this.context, a); } f.AVMX.AS.Natives.print(this.context.sec, a); }; a.prototype.unloadMovie = function(a) { g.AVM1Utils.resolveTarget(this.context, a).unloadMovie(); }; a.prototype.unloadMovieNum = function(a) { g.AVM1Utils.resolveLevel(this.context, a).unloadMovie(); }; return a; }(); g.AVM1NativeActions = d; })(b.Lib || (b.Lib = {})); })(f.AVM1 || (f.AVM1 = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(f) { var q = function(q) { function k() { q.apply(this, arguments); } __extends(k, q); k.createAVM1Class = function(b) { return f.wrapAVM1NativeClass(b, !0, k, ["initialize"], []); }; k.initialize = function(k, d) { d.alSetOwnProperty("_listeners", {flags:65, value:new b.Natives.AVM1ArrayNative(k, [])}); d.alSetOwnProperty("broadcastMessage", {flags:65, value:new b.AVM1NativeFunction(k, function(a) { for (var c = [], d = 1;d < arguments.length;d++) { c[d - 1] = arguments[d]; } this.alGet("_listeners") instanceof b.Natives.AVM1ArrayNative && f.avm1BroadcastEvent(k, this, a, c); })}); d.alSetOwnProperty("addListener", {flags:65, value:new b.AVM1NativeFunction(k, function(a) { var c = this.alGet("_listeners"); if (!(c instanceof b.Natives.AVM1ArrayNative)) { return !1; } c.value.push(a); this.isAVM1Instance && this.updateAllEvents(); return !0; })}); d.alSetOwnProperty("removeListener", {flags:65, value:new b.AVM1NativeFunction(k, function(a) { var c = this.alGet("_listeners"); if (!(c instanceof b.Natives.AVM1ArrayNative)) { return !1; } c = c.value; a = c.indexOf(a); if (0 > a) { return !1; } c.splice(a, 1); this.isAVM1Instance && this.updateAllEvents(); return !0; })}); }; return k; }(b.AVM1Object); f.AVM1Broadcaster = q; })(b.Lib || (b.Lib = {})); })(f.AVM1 || (f.AVM1 = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(f) { var q = function(q) { function k() { q.apply(this, arguments); } __extends(k, q); k.createAVM1Class = function(b) { return f.wrapAVM1NativeClass(b, !1, k, ["DOWN", "LEFT", "RIGHT", "UP", "isDown"], []); }; k.alInitStatic = function(b) { this._keyStates = []; this._lastKeyCode = 0; }; k.bindStage = function(f, d, a) { a.addEventListener("keyDown", function(a) { a = a.axGetPublicProperty("keyCode"); var e = f.getStaticState(k); e._lastKeyCode = a; e._keyStates[a] = 1; b.alCallProperty(d, "broadcastMessage", ["onKeyDown"]); }, !1); a.addEventListener("keyUp", function(a) { a = a.axGetPublicProperty("keyCode"); var e = f.getStaticState(k); e._lastKeyCode = a; delete e._keyStates[a]; b.alCallProperty(d, "broadcastMessage", ["onKeyUp"]); }, !1); }; k.isDown = function(b, d) { return !!b.getStaticState(k)._keyStates[d]; }; k.DOWN = 40; k.LEFT = 37; k.RIGHT = 39; k.UP = 38; return k; }(b.AVM1Object); f.AVM1Key = q; })(b.Lib || (b.Lib = {})); })(f.AVM1 || (f.AVM1 = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(f) { var q = function(q) { function k() { q.apply(this, arguments); } __extends(k, q); k.createAVM1Class = function(b) { return f.wrapAVM1NativeClass(b, !1, k, ["show", "hide"], []); }; k.bindStage = function(f, d, a) { a.addEventListener("mouseDown", function(a) { b.alCallProperty(d, "broadcastMessage", ["onMouseDown"]); }, !1); a.addEventListener("mouseMove", function(a) { b.alCallProperty(d, "broadcastMessage", ["onMouseMove"]); }, !1); a.addEventListener("mouseOut", function(a) { b.alCallProperty(d, "broadcastMessage", ["onMouseMove"]); }, !1); a.addEventListener("mouseUp", function(a) { b.alCallProperty(d, "broadcastMessage", ["onMouseUp"]); }, !1); }; k.hide = function() { }; k.show = function() { }; return k; }(b.AVM1Object); f.AVM1Mouse = q; })(b.Lib || (b.Lib = {})); })(f.AVM1 || (f.AVM1 = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(f) { var q = function(b) { function k() { b.apply(this, arguments); } __extends(k, b); k.createAVM1Class = function(b) { var d = new k(b); f.wrapAVM1NativeMembers(b, d, k.prototype, "align# displayState# fullScreenSourceRect# height# scaleMode# showMenu# width#".split(" "), !1); return d; }; k.bindStage = function(b, d, a) { d._as3Stage = a; }; k.prototype.getAlign = function() { return this._as3Stage.align; }; k.prototype.setAlign = function(b) { this._as3Stage.align = b; }; k.prototype.getDisplayState = function() { return this._as3Stage.displayState; }; k.prototype.setDisplayState = function(b) { this._as3Stage.displayState = b; }; k.prototype.getFullScreenSourceRect = function() { return this._as3Stage.fullScreenSourceRect; }; k.prototype.setFullScreenSourceRect = function(b) { this._as3Stage.fullScreenSourceRect = b; }; k.prototype.getHeight = function() { return this._as3Stage.stageHeight; }; k.prototype.getScaleMode = function() { return this._as3Stage.scaleMode; }; k.prototype.setScaleMode = function(b) { this._as3Stage.scaleMode = b; }; k.prototype.getShowMenu = function() { return this._as3Stage.showDefaultContextMenu; }; k.prototype.setShowMenu = function(b) { this._as3Stage.showDefaultContextMenu = b; }; k.prototype.getWidth = function() { return this._as3Stage.stageWidth; }; return k; }(b.AVM1Object); f.AVM1Stage = q; })(b.Lib || (b.Lib = {})); })(f.AVM1 || (f.AVM1 = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(g) { function q(d) { var a = b.alNewObject(this.context); a.alPut("xMin", d.axGetPublicProperty("left")); a.alPut("yMin", d.axGetPublicProperty("top")); a.alPut("xMax", d.axGetPublicProperty("right")); a.alPut("yMax", d.axGetPublicProperty("bottom")); return a; } var u = f.AVMX.AS.flash, k = function(b) { function a(a, e, f) { void 0 === f && (f = null); b.call(this, a, e, f); this.propertyName = a; this.eventName = e; this.argsConverter = f; } __extends(a, b); a.prototype.onBind = function(a) { a.as3Object.buttonMode = !0; }; return a; }(g.AVM1EventHandler), r = function(d) { function a() { d.apply(this, arguments); } __extends(a, d); a.createAVM1Class = function(b) { return g.wrapAVM1NativeClass(b, !0, a, [], "$version# _alpha# attachAudio attachBitmap attachMovie beginFill beginBitmapFill beginGradientFill blendMode# cacheAsBitmap# _callFrame clear createEmptyMovieClip createTextField _currentframe# curveTo _droptarget# duplicateMovieClip enabled# endFill filters# _framesloaded# focusEnabled# _focusrect# forceSmoothing# getBounds getBytesLoaded getBytesTotal getDepth getInstanceAtDepth getNextHighestDepth getRect getSWFVersion getTextSnapshot getURL globalToLocal gotoAndPlay gotoAndStop _height# _highquality# hitArea# hitTest lineGradientStyle lineStyle lineTo loadMovie loadVariables localToGlobal _lockroot# menu# moveTo _name# nextFrame opaqueBackground# _parent# play prevFrame _quality# removeMovieClip _rotation# scale9Grid# scrollRect# setMask _soundbuftime# startDrag stop stopDrag swapDepths tabChildren# tabEnabled# tabIndex# _target# _totalframes# trackAsMenu# transform# toString unloadMovie _url# useHandCursor# _visible# _width# _x# _xmouse# _xscale# _y# _ymouse# _yscale#".split(" ")); }; Object.defineProperty(a.prototype, "graphics", {get:function() { return this.as3Object.graphics; }, enumerable:!0, configurable:!0}); a.prototype.initAVM1SymbolInstance = function(a, b) { d.prototype.initAVM1SymbolInstance.call(this, a, b); this._boundExecuteFrameScripts = this._frameScripts = null; this._initEventsHandlers(); }; a.prototype._lookupChildByName = function(a) { a = b.alCoerceString(this.context, a); var d = 2; this.context.isPropertyCaseSensitive || (d |= 1); a = this.as3Object._lookupChildByName(a, d); return g.getAVM1Object(a, this.context); }; Object.defineProperty(a.prototype, "__targetPath", {get:function() { var a = this.get_target(); return "/" != a ? "_level0" + a.replace(/\//g, ".") : "_level0"; }, enumerable:!0, configurable:!0}); a.prototype.attachAudio = function(a) { f.Debug.notImplemented("AVM1MovieClip.attachAudio"); }; a.prototype.attachBitmap = function(a, d, f, g) { void 0 === f && (f = "auto"); void 0 === g && (g = !1); f = b.alCoerceString(this.context, f); g = b.alToBoolean(this.context, g); a = this.context.sec.flash.display.Bitmap.axClass.axConstruct([a.as3BitmapData, f, g]); this._insertChildAtDepth(a, d); }; a.prototype._constructMovieClipSymbol = function(a, d) { a = b.alCoerceString(this.context, a); d = b.alCoerceString(this.context, d); var g = this.context.getAsset(a); if (g) { var n = Object.create(g.symbolProps); n.avm1Name = d; n.avm1SymbolClass = g.theClass; return f.AVMX.AS.constructClassFromSymbol(n, this.context.sec.flash.display.MovieClip.axClass); } }; a.prototype.get$version = function() { return this.context.sec.flash.system.Capabilities.version; }; a.prototype.attachMovie = function(a, b, d, f) { if (a = this._constructMovieClipSymbol(a, b)) { return d = this._insertChildAtDepth(a, d), f && d._init(f), d; } }; a.prototype.beginFill = function(a, b) { this.graphics.beginFill(a, b); }; a.prototype.beginBitmapFill = function(a, b, d, f) { a instanceof u.display.BitmapData && this.graphics.beginBitmapFill(a, b, d, f); }; a.prototype.beginGradientFill = function(a, b, d, f, g, k, h, m) { this.graphics.beginGradientFill(a, b, d, f, g, k, h, m); }; a.prototype._callFrame = function(a) { }; a.prototype.clear = function() { this.graphics.clear(); }; a.prototype._insertChildAtDepth = function(a, d) { var f = this.getInstanceAtDepth(d); f && (f = f.as3Object, f.parent.removeChild(f)); f = b.alCoerceNumber(this.context, d) + g.DEPTH_OFFSET; this.as3Object.addTimelineObjectAtDepth(a, f); return this.context.sec.flash.display.Bitmap.axIsType(a) ? null : g.getAVM1Object(a, this.context); }; a.prototype.createEmptyMovieClip = function(a, b) { var d = new this.context.sec.flash.display.MovieClip; d.name = a; return this._insertChildAtDepth(d, b); }; a.prototype.createTextField = function(a, b, d, f, g, k) { var h = new this.context.sec.flash.text.TextField; h.name = a; h.x = d; h.y = f; h.width = g; h.height = k; return this._insertChildAtDepth(h, b); }; a.prototype.get_currentframe = function() { return this.as3Object.currentFrame; }; a.prototype.curveTo = function(a, b, d, f) { this.graphics.curveTo(a, b, d, f); }; a.prototype.get_droptarget = function() { return this.as3Object.dropTarget; }; a.prototype.duplicateMovieClip = function(a, d, g) { var n = this.context.resolveTarget(null), k = this.as3Object, r; r = k._symbol ? f.AVMX.AS.constructClassFromSymbol(k._symbol, k.axClass) : new this.context.sec.flash.display.MovieClip; r.name = b.alCoerceString(this.context, a); r.x = k.x; r.scaleX = k.scaleX; r.y = k.y; r.scaleY = k.scaleY; r.rotation = k.rotation; r.alpha = k.alpha; r.blendMode = k.blendMode; r.cacheAsBitmap = k.cacheAsBitmap; r.opaqueBackground = k.opaqueBackground; r.tabChildren = k.tabChildren; r.graphics.copyFrom(k.graphics); a = n._insertChildAtDepth(r, d); g && a._init(g); return a; }; a.prototype.getEnabled = function() { return this.as3Object.enabled; }; a.prototype.setEnabled = function(a) { this.as3Object.enabled = a; }; a.prototype.endFill = function() { this.graphics.endFill(); }; a.prototype.getFocusEnabled = function() { f.Debug.somewhatImplemented("AVM1MovieClip.getFocusEnabled"); return !0; }; a.prototype.setFocusEnabled = function(a) { b.alToBoolean(this.context, a); f.Debug.somewhatImplemented("AVM1MovieClip.setFocusEnabled"); }; a.prototype.getForceSmoothing = function() { f.Debug.somewhatImplemented("AVM1MovieClip.getForceSmoothing"); return !1; }; a.prototype.setForceSmoothing = function(a) { b.alToBoolean(this.context, a); f.Debug.somewhatImplemented("AVM1MovieClip.setForceSmoothing"); }; a.prototype.get_framesloaded = function() { return this.as3Object.framesLoaded; }; a.prototype.getBounds = function(a) { a = a.as3Object; if (!a) { throw Error("Unsupported object type for AVM1MovieClip.getBounds"); } return q(this.as3Object.getBounds(a)); }; a.prototype.getBytesLoaded = function() { return this.as3Object.loaderInfo.bytesLoaded; }; a.prototype.getBytesTotal = function() { return this.as3Object.loaderInfo.bytesTotal; }; a.prototype.getInstanceAtDepth = function(a) { a = b.alCoerceNumber(this.context, a) + g.DEPTH_OFFSET; for (var d = this.as3Object, f = 0, n = d.numChildren;f < n;f++) { var k = d._lookupChildByIndex(f, 2); if (k && k._depth === a) { return this.context.sec.flash.display.Bitmap.axIsType(k) ? this : g.getAVM1Object(k, this.context); } } }; a.prototype.getNextHighestDepth = function() { for (var a = this.as3Object, b = g.DEPTH_OFFSET, d = 0, f = a.numChildren;d < f;d++) { var k = a._lookupChildByIndex(d, 2); k._depth >= b && (b = k._depth + 1); } return b - g.DEPTH_OFFSET; }; a.prototype.getRect = function(a) { a = a.as3Object; if (!a) { throw Error("Unsupported object type for AVM1MovieClip.getRect"); } return q(this.as3Object.getRect(a)); }; a.prototype.getSWFVersion = function() { return this.as3Object.loaderInfo.swfVersion; }; a.prototype.getTextSnapshot = function() { f.Debug.notImplemented("AVM1MovieClip.getTextSnapshot"); }; a.prototype.getURL = function(a, b, d) { a = new this.context.sec.flash.net.URLRequest(a); d && (a.method = d); f.AVMX.AS.FlashNetScript_navigateToURL(a, b); }; a.prototype.globalToLocal = function(a) { var b = this.as3Object.globalToLocal(g.toAS3Point(a)); g.copyAS3PointTo(b, a); }; a.prototype.gotoAndPlay = function(a) { return this.as3Object.gotoAndPlay(a); }; a.prototype.gotoAndStop = function(a) { return this.as3Object.gotoAndStop(a); }; a.prototype.getHitArea = function() { return this._hitArea; }; a.prototype.setHitArea = function(a) { a = (this._hitArea = a) ? a.as3Object : null; this.context.sec.flash.display.MovieClip.axIsType(a) || (a = null); this.as3Object.hitArea = a; }; a.prototype.hitTest = function(a, b, d) { return a.isAVM1Instance ? this.as3Object.hitTestObject(a.as3Object) : this.as3Object.hitTestPoint(a, b, d); }; a.prototype.lineGradientStyle = function(a, b, d, f, g, k, h, m) { this.graphics.lineGradientStyle(a, b, d, f, g, k, h, m); }; a.prototype.lineStyle = function(a, b, d, f, g, k, h, m) { this.graphics.lineStyle(a, b, d, f, g, k, h, m); }; a.prototype.lineTo = function(a, b) { this.graphics.lineTo(a, b); }; a.prototype.loadMovie = function(a, b) { function d(a) { f.removeEventListener(u.events.Event.COMPLETE, d); a = this.as3Object.parent; var b = a.getChildIndex(this.as3Object); a.removeChild(this.as3Object); a.addChildAt(f.content, b); } var f = new this.context.sec.flash.display.Loader, g = new this.context.sec.flash.net.URLRequest(a); b && (g.method = b); f.load(g); f.addEventListener(u.events.Event.COMPLETE, d); }; a.prototype.loadVariables = function(a, b) { this.context.actions._loadVariables(this, a, b); }; a.prototype.localToGlobal = function(a) { var b = this.as3Object.localToGlobal(g.toAS3Point(a)); g.copyAS3PointTo(b, a); }; a.prototype.get_lockroot = function() { return this._lockroot; }; a.prototype.set_lockroot = function(a) { this._lockroot = b.alToBoolean(this.context, a); }; a.prototype.moveTo = function(a, b) { this.graphics.moveTo(a, b); }; a.prototype.nextFrame = function() { this.as3Object.nextFrame(); }; a.prototype.nextScene = function() { this.as3Object.nextScene(); }; a.prototype.play = function() { this.as3Object.play(); }; a.prototype.prevFrame = function() { this.as3Object.prevFrame(); }; a.prototype.prevScene = function() { this.as3Object.prevScene(); }; a.prototype.removeMovieClip = function() { var a = this.get_parent(); a && a.as3Object.removeChild(this.as3Object); }; a.prototype.setMask = function(a) { var b = this.as3Object; if (a = g.AVM1Utils.resolveMovieClip(this.context, a)) { b.mask = a.as3Object; } }; a.prototype.startDrag = function(a, d, f, g, k) { a = b.alToBoolean(this.context, a); var r = null; 1 < arguments.length && (d = b.alToNumber(this.context, d), f = b.alToNumber(this.context, f), g = b.alToNumber(this.context, g), k = b.alToNumber(this.context, k), r = new this.context.sec.flash.geom.Rectangle(d, f, g - d, k - f)); this.as3Object.startDrag(a, r); }; a.prototype.stop = function() { return this.as3Object.stop(); }; a.prototype.stopDrag = function() { return this.as3Object.stopDrag(); }; a.prototype.swapDepths = function(a) { var b = this.as3Object; a = "number" === typeof a ? g.AVM1Utils.resolveLevel(this.context, Number(a)).as3Object : g.AVM1Utils.resolveTarget(this.context, a).as3Object; b.parent === a.parent && b.parent.swapChildren(b, a); }; a.prototype.getTabChildren = function() { return this.as3Object.tabChildren; }; a.prototype.setTabChildren = function(a) { this.as3Object.tabChildren = b.alToBoolean(this.context, a); }; a.prototype.get_totalframes = function() { return this.as3Object.totalFrames; }; a.prototype.getTrackAsMenu = function() { f.Debug.notImplemented("AVM1MovieClip.getTrackAsMenu"); }; a.prototype.setTrackAsMenu = function(a) { f.Debug.notImplemented("AVM1MovieClip.setTrackAsMenu"); }; a.prototype.toString = function() { return this.__targetPath; }; a.prototype.unloadMovie = function() { var a = this.as3Object, b = a.loaderInfo.loader; b.parent && b.parent.removeChild(b); a.stop(); }; a.prototype.getUseHandCursor = function() { return this.as3Object.useHandCursor; }; a.prototype.setUseHandCursor = function(a) { this.as3Object.useHandCursor = a; }; a.prototype.setParameters = function(a) { for (var b in a) { this.alHasProperty(b) || this.alPut(b, a[b]); } }; a.prototype._resolveLevelNProperty = function(a) { this.context.isPropertyCaseSensitive || (a = a.toLowerCase()); if ("_level0" === a) { return this.context.resolveLevel(0); } if ("_root" === a) { return this.context.resolveRoot(); } if (0 === a.indexOf("_level")) { a = a.substring(6); var b = a | 0; if (0 < b && a == b) { return this.context.resolveLevel(b); } } return null; }; a.prototype._getCachedPropertyResult = function(a) { this._cachedPropertyResult ? this._cachedPropertyResult.value = a : this._cachedPropertyResult = {flags:65, value:a}; return this._cachedPropertyResult; }; a.prototype.alGetOwnProperty = function(a) { var e = d.prototype.alGetOwnProperty.call(this, a); if (e) { return e; } a = b.alToString(this.context, a); if ("_" === a[0]) { if (e = this._resolveLevelNProperty(a)) { return this._getCachedPropertyResult(e); } if (0 <= b.PropertiesIndexMap.indexOf(a.toLowerCase())) { return d.prototype.alGetOwnProperty.call(this, a.toLowerCase()); } } if (this.isAVM1Instance && (a = this._lookupChildByName(a))) { return this._getCachedPropertyResult(a); } }; a.prototype.alGetOwnPropertiesKeys = function() { var a = d.prototype.alGetOwnPropertiesKeys.call(this); if (!this.isAVM1Instance) { return a; } var b = this.as3Object; if (0 === b._children.length) { return a; } for (var f = Object.create(null), g = 0;g < a.length;g++) { f[a[g]] = !0; } g = 0; for (a = b._children.length;g < a;g++) { f[b._children[g].name] = !0; } return Object.getOwnPropertyNames(f); }; a.prototype.addFrameActionBlocks = function(a, b) { var d = b.initActionBlocks, f = b.actionBlocks; d && this._addInitActionBlocks(a, d); if (f) { for (d = 0;d < f.length;d++) { this.addFrameScript(a, f[d]); } } }; a.prototype.addFrameScript = function(a, b) { var d = this._frameScripts; d || (this._boundExecuteFrameScripts = this._executeFrameScripts.bind(this), d = this._frameScripts = []); var f = d[a + 1]; f || (f = d[a + 1] = [], this.as3Object.addFrameScript(a, this._boundExecuteFrameScripts)); d = this.context.actionsDataFactory.createActionsData(b, "s" + this.as3Object._symbol.id + "f" + a + "i" + f.length); f.push(d); }; a.prototype._addInitActionBlocks = function(a, b) { function d(k) { if (f.currentFrame === a + 1) { f.removeEventListener("enterFrame", d); k = g.context; for (var h = 0;h < b.length;h++) { var m = k.actionsDataFactory.createActionsData(b[h].actionsData, "s" + f._symbol.id + "f" + a + "i" + h); k.executeActions(m, g); } } } var f = this.as3Object, g = this; f.addEventListener("enterFrame", d); }; a.prototype._executeFrameScripts = function() { for (var a = this.context, b = this._frameScripts[this.as3Object.currentFrame], d = 0;d < b.length;d++) { a.executeActions(b[d], this); } }; a.prototype._init = function(a) { var d = this; a instanceof b.AVM1Object && b.alForEachProperty(a, function(b) { d.alPut(b, a.alGet(b)); }, null); }; a.prototype._initEventsHandlers = function() { this.bindEvents([new g.AVM1EventHandler("onData", "data"), new g.AVM1EventHandler("onDragOut", "dragOut"), new g.AVM1EventHandler("onDragOver", "dragOver"), new g.AVM1EventHandler("onEnterFrame", "enterFrame"), new g.AVM1EventHandler("onKeyDown", "keyDown"), new g.AVM1EventHandler("onKeyUp", "keyUp"), new g.AVM1EventHandler("onKillFocus", "focusOut", function(a) { return [a.relatedObject]; }), new g.AVM1EventHandler("onLoad", "load"), new g.AVM1EventHandler("onMouseDown", "mouseDown"), new g.AVM1EventHandler("onMouseUp", "mouseUp"), new g.AVM1EventHandler("onMouseMove", "mouseMove"), new k("onPress", "mouseDown"), new k("onRelease", "mouseUp"), new k("onReleaseOutside", "releaseOutside"), new k("onRollOut", "mouseOut"), new k("onRollOver", "mouseOver"), new g.AVM1EventHandler("onSetFocus", "focusIn", function(a) { return [a.relatedObject]; }), new g.AVM1EventHandler("onUnload", "unload")]); }; return a; }(g.AVM1SymbolBase); g.AVM1MovieClip = r; })(b.Lib || (b.Lib = {})); })(f.AVM1 || (f.AVM1 = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(g) { var q = f.Debug.somewhatImplemented, u; (function(b) { b[b.IdleToOverUp = 1] = "IdleToOverUp"; b[b.OverUpToIdle = 2] = "OverUpToIdle"; b[b.OverUpToOverDown = 4] = "OverUpToOverDown"; b[b.OverDownToOverUp = 8] = "OverDownToOverUp"; b[b.OverDownToOutDown = 16] = "OverDownToOutDown"; b[b.OutDownToOverDown = 32] = "OutDownToOverDown"; b[b.OutDownToIdle = 64] = "OutDownToIdle"; b[b.IdleToOverDown = 128] = "IdleToOverDown"; b[b.OverDownToIdle = 256] = "OverDownToIdle"; })(u || (u = {})); var k = [-1, 37, 39, 36, 35, 45, 46, -1, 8, -1, -1, -1, -1, 13, 38, 40, 33, 34, 9, 27]; u = function(r) { function d() { r.apply(this, arguments); } __extends(d, r); d.createAVM1Class = function(a) { return g.wrapAVM1NativeClass(a, !0, d, [], "_alpha# blendMode# cacheAsBitmap# enabled# filters# _focusrect# getDepth _height# _highquality# menu# _name# _parent# _quality# _rotation# scale9Grid# _soundbuftime# tabEnabled# tabIndex# _target# trackAsMenu# _url# useHandCursor# _visible# _width# _x# _xmouse# _xscale# _y# _ymouse# _yscale#".split(" ")); }; d.prototype.initAVM1SymbolInstance = function(a, b) { r.prototype.initAVM1SymbolInstance.call(this, a, b); var d = this._as3Object; if (d._symbol && d._symbol.data.buttonActions) { d.buttonMode = !0; d.addEventListener("addedToStage", this._addListeners.bind(this)); d.addEventListener("removedFromStage", this._removeListeners.bind(this)); for (var f = this._requiredListeners = Object.create(null), g = this._actions = d._symbol.data.buttonActions, k = 0;k < g.length;k++) { var p = g[k]; p.actionsBlock || (p.actionsBlock = a.actionsDataFactory.createActionsData(p.actionsData, "s" + d._symbol.id + "e" + k)); if (p.keyCode) { f.keyDown = this._keyDownHandler.bind(this); } else { var h; switch(p.stateTransitionFlags) { case 64: h = "releaseOutside"; break; case 1: h = "rollOver"; break; case 2: h = "rollOut"; break; case 4: h = "mouseDown"; break; case 8: h = "mouseUp"; break; case 16: ; case 32: q("AVM1 drag over/out button actions"); break; case 128: ; case 256: q("AVM1 drag trackAsMenu over/out button actions"); break; default: a.utils.warn("Unknown AVM1 button action type: " + p.stateTransitionFlags); continue; } f[h] = this._mouseEventHandler.bind(this, p.stateTransitionFlags); } } } this._initEventsHandlers(); }; d.prototype.getEnabled = function() { return this._as3Object.enabled; }; d.prototype.setEnabled = function(a) { this._as3Object.enabled = b.alToBoolean(this.context, a); }; d.prototype.getTrackAsMenu = function() { f.Debug.notImplemented("AVM1Button.getTrackAsMenu"); }; d.prototype.setTrackAsMenu = function(a) { f.Debug.notImplemented("AVM1Button.setTrackAsMenu"); }; d.prototype.getUseHandCursor = function() { return this._as3Object.useHandCursor; }; d.prototype.setUseHandCursor = function(a) { this._as3Object.useHandCursor = b.alToBoolean(this.context, a); }; d.prototype._addListeners = function() { for (var a in this._requiredListeners) { ("keyDown" === a ? this._as3Object.stage : this._as3Object).addEventListener(a, this._requiredListeners[a]); } }; d.prototype._removeListeners = function() { for (var a in this._requiredListeners) { ("keyDown" === a ? this._as3Object.stage : this._as3Object).removeEventListener(a, this._requiredListeners[a]); } }; d.prototype._keyDownHandler = function(a) { for (var b = this._actions, d = 0;d < b.length;d++) { var f = b[d]; f.keyCode && (32 > f.keyCode && k[f.keyCode] === a.axGetPublicProperty("keyCode") || f.keyCode === a.axGetPublicProperty("charCode")) && this._runAction(f); } }; d.prototype._mouseEventHandler = function(a) { for (var b = this._actions, d = 0;d < b.length;d++) { var f = b[d]; f.stateTransitionFlags === a && this._runAction(f); } }; d.prototype._runAction = function(a) { this._as3Object.loaderInfo._avm1Context.executeActions(a.actionsBlock, g.getAVM1Object(this._as3Object._parent, this.context)); }; d.prototype._initEventsHandlers = function() { this.bindEvents([new g.AVM1EventHandler("onDragOut", "dragOut"), new g.AVM1EventHandler("onDragOver", "dragOver"), new g.AVM1EventHandler("onKeyDown", "keyDown"), new g.AVM1EventHandler("onKeyUp", "keyUp"), new g.AVM1EventHandler("onKillFocus", "focusOut", function(a) { return [a.relatedObject]; }), new g.AVM1EventHandler("onLoad", "load"), new g.AVM1EventHandler("onMouseDown", "mouseDown"), new g.AVM1EventHandler("onMouseUp", "mouseUp"), new g.AVM1EventHandler("onPress", "mouseDown"), new g.AVM1EventHandler("onRelease", "mouseUp"), new g.AVM1EventHandler("onReleaseOutside", "releaseOutside"), new g.AVM1EventHandler("onRollOut", "mouseOut"), new g.AVM1EventHandler("onRollOver", "mouseOver"), new g.AVM1EventHandler("onSetFocus", "focusIn", function(a) { return [a.relatedObject]; })]); }; return d; }(g.AVM1SymbolBase); g.AVM1Button = u; })(b.Lib || (b.Lib = {})); })(f.AVM1 || (f.AVM1 = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(g) { var q = function(q) { function k() { q.apply(this, arguments); } __extends(k, q); k.createAVM1Class = function(b) { return g.wrapAVM1NativeClass(b, !0, k, [], "_alpha# antiAliasType# autoSize# background# backgroundColor# border# borderColor# bottomScroll# condenseWhite# embedFonts# filters# getNewTextFormat getTextFormat gridFitType# getDepth _height# _highquality# hscroll# html# htmlText# length# maxChars# maxhscroll# maxscroll# multiline# _name# _parent# password# _quality# _rotation# scroll# selectable# setNewTextFormat setTextFormat _soundbuftime# tabEnabled# tabIndex# _target# text# textColor# textHeight# textWidth# type# _url# variable# _visible# _width# wordWrap# _x# _xmouse# _xscale# _y# _ymouse# _yscale#".split(" ")); }; k.prototype.initAVM1SymbolInstance = function(b, d) { q.prototype.initAVM1SymbolInstance.call(this, b, d); this._variable = ""; this._html = !1; this._exitFrameHandler = null; d._symbol && (this.setVariable(d._symbol.variableName || ""), this._html = d._symbol.html); this._initEventsHandlers(); }; k.prototype.getAntiAliasType = function() { return this._as3Object.antiAliasType; }; k.prototype.setAntiAliasType = function(f) { f = b.alCoerceString(this.context, f); this._as3Object.antiAliasType = f; }; k.prototype.getAutoSize = function() { return this._as3Object.autoSize; }; k.prototype.setAutoSize = function(f) { !0 === f ? f = "left" : !1 === f && (f = "none"); f = b.alCoerceString(this.context, f); this._as3Object.autoSize = f; }; k.prototype.getBackground = function() { return this._as3Object.background; }; k.prototype.setBackground = function(f) { f = b.alToBoolean(this.context, f); this._as3Object.background = f; }; k.prototype.getBackgroundColor = function() { return this._as3Object.backgroundColor; }; k.prototype.setBackgroundColor = function(f) { f = b.alToInt32(this.context, f); this._as3Object.backgroundColor = f; }; k.prototype.getBorder = function() { return this._as3Object.border; }; k.prototype.setBorder = function(f) { f = b.alToBoolean(this.context, f); this._as3Object.border = f; }; k.prototype.getBorderColor = function() { return this._as3Object.borderColor; }; k.prototype.setBorderColor = function(f) { f = b.alToInt32(this.context, f); this._as3Object.borderColor = f; }; k.prototype.getBottomScroll = function() { return this._as3Object.bottomScrollV; }; k.prototype.getCondenseWhite = function() { return this._as3Object.condenseWhite; }; k.prototype.setCondenseWhite = function(f) { f = b.alToBoolean(this.context, f); this._as3Object.condenseWhite = f; }; k.prototype.getEmbedFonts = function() { return this._as3Object.embedFonts; }; k.prototype.setEmbedFonts = function(f) { f = b.alToBoolean(this.context, f); this._as3Object.embedFonts = f; }; k.prototype.getNewTextFormat = function() { return g.AVM1TextFormat.createFromNative(this.context, this._as3Object.defaultTextFormat); }; k.prototype.getTextFormat = function(f, d) { void 0 === f && (f = -1); void 0 === d && (d = -1); f = b.alToInteger(this.context, f); d = b.alToInteger(this.context, d); var a = this._as3Object.getTextFormat(f, d); return g.AVM1TextFormat.createFromNative(this.context, a); }; k.prototype.getGridFitType = function() { return this._as3Object.gridFitType; }; k.prototype.setGridFitType = function(f) { f = b.alCoerceString(this.context, f); this._as3Object.gridFitType = f; }; k.prototype.getHscroll = function() { return this._as3Object.scrollH; }; k.prototype.setHscroll = function(f) { f = b.alCoerceNumber(this.context, f); this._as3Object.scrollH = f; }; k.prototype.getHtml = function() { return this._html; }; k.prototype.setHtml = function(b) { this._html = !!b; }; k.prototype.getHtmlText = function() { return this._html ? this._as3Object.htmlText : this._as3Object.text; }; k.prototype.setHtmlText = function(f) { f = b.alCoerceString(this.context, f); this._html ? this._as3Object.htmlText = f : this._as3Object.text = f; }; k.prototype.getLength = function() { return this._as3Object.length; }; k.prototype.getMaxChars = function() { return this._as3Object.maxChars; }; k.prototype.setMaxChars = function(f) { f = b.alCoerceNumber(this.context, f); this._as3Object.maxChars = f; }; k.prototype.getMaxhscroll = function() { return this._as3Object.maxScrollH; }; k.prototype.getMaxscroll = function() { return this._as3Object.maxScrollV; }; k.prototype.getMultiline = function() { return this._as3Object.multiline; }; k.prototype.setMultiline = function(f) { f = b.alToBoolean(this.context, f); this._as3Object.multiline = f; }; k.prototype.getPassword = function() { return this._as3Object.displayAsPassword; }; k.prototype.setPassword = function(f) { f = b.alToBoolean(this.context, f); this._as3Object.displayAsPassword = f; }; k.prototype.getScroll = function() { return this._as3Object.scrollV; }; k.prototype.setScroll = function(f) { f = b.alCoerceNumber(this.context, f); this._as3Object.scrollV = f; }; k.prototype.getSelectable = function() { return this._as3Object.selectable; }; k.prototype.setSelectable = function(f) { f = b.alToBoolean(this.context, f); this._as3Object.selectable = f; }; k.prototype.setNewTextFormat = function(b) { var d; b instanceof g.AVM1TextFormat && (d = b._as3Object); this._as3Object.defaultTextFormat = d; }; k.prototype.setTextFormat = function() { var f = -1, d = -1, a; switch(arguments.length) { case 0: return; case 1: a = arguments[0]; break; case 2: f = b.alToNumber(this.context, arguments[0]); a = arguments[1]; break; default: f = b.alToNumber(this.context, arguments[0]), d = b.alToNumber(this.context, arguments[1]), a = arguments[2]; } var c; a instanceof g.AVM1TextFormat && (c = a._as3Object); this._as3Object.setTextFormat(c, f, d); }; k.prototype.getText = function() { return this._as3Object.text; }; k.prototype.setText = function(f) { f = b.alCoerceString(this.context, f); this._as3Object.text = f; }; k.prototype.getTextColor = function() { return this._as3Object.textColor; }; k.prototype.setTextColor = function(f) { f = b.alToInt32(this.context, f); this._as3Object.textColor = f; }; k.prototype.getTextHeight = function() { return this._as3Object.textHeight; }; k.prototype.setTextHeight = function(b) { f.Debug.notImplemented("AVM1TextField.setTextHeight"); }; k.prototype.getTextWidth = function() { return this._as3Object.textWidth; }; k.prototype.setTextWidth = function(b) { f.Debug.notImplemented("AVM1TextField.setTextWidth"); }; k.prototype.getType = function() { return this._as3Object.type; }; k.prototype.setType = function(f) { f = b.alCoerceString(this.context, f); this._as3Object.type = f; }; k.prototype.getVariable = function() { return this._variable; }; k.prototype.setVariable = function(f) { f = b.alCoerceString(this.context, f); if (f !== this._variable) { var d = this.as3Object; this._exitFrameHandler && !f && (d.removeEventListener("exitFrame", this._exitFrameHandler), this._exitFrameHandler = null); this._variable = f; !this._exitFrameHandler && f && (this._exitFrameHandler = this._onAS3ObjectExitFrame.bind(this), d.addEventListener("exitFrame", this._exitFrameHandler)); } }; k.prototype._onAS3ObjectExitFrame = function() { this._syncTextFieldValue(this.as3Object, this._variable); }; k.prototype._syncTextFieldValue = function(b, d) { var a; a = 0 <= d.indexOf(".") || 0 <= d.indexOf(":"); var c = this.context.utils; if (a) { var e = d.split(/[.:\/]/g); d = e.pop(); if ("_root" == e[0] || "" === e[0]) { if (null === b.root) { return; } a = g.getAVM1Object(b.root, this.context); e.shift(); "" === e[0] && e.shift(); } else { a = g.getAVM1Object(b._parent, this.context); } for (;0 < e.length;) { var f = e.shift(); a = c.getProperty(a, f); if (!a) { return; } } } else { a = g.getAVM1Object(b._parent, this.context); } a ? (c.hasProperty(a, d) || c.setProperty(a, d, b.text), b.text = "" + c.getProperty(a, d)) : c.warn("Clip " + d + " was not found"); }; k.prototype.getWordWrap = function() { return this._as3Object.wordWrap; }; k.prototype.setWordWrap = function(f) { f = b.alToBoolean(this.context, f); this._as3Object.wordWrap = f; }; k.prototype._initEventsHandlers = function() { this.bindEvents([new g.AVM1EventHandler("onDragOut", "dragOut"), new g.AVM1EventHandler("onDragOver", "dragOver"), new g.AVM1EventHandler("onKeyDown", "keyDown"), new g.AVM1EventHandler("onKeyUp", "keyUp"), new g.AVM1EventHandler("onKillFocus", "focusOut", function(b) { return [b.relatedObject]; }), new g.AVM1EventHandler("onLoad", "load"), new g.AVM1EventHandler("onMouseDown", "mouseDown"), new g.AVM1EventHandler("onMouseUp", "mouseUp"), new g.AVM1EventHandler("onPress", "mouseDown"), new g.AVM1EventHandler("onRelease", "mouseUp"), new g.AVM1EventHandler("onReleaseOutside", "releaseOutside"), new g.AVM1EventHandler("onRollOut", "mouseOut"), new g.AVM1EventHandler("onRollOver", "mouseOver"), new g.AVM1EventHandler("onSetFocus", "focusIn", function(b) { return [b.relatedObject]; })]); }; return k; }(g.AVM1SymbolBase); g.AVM1TextField = q; })(b.Lib || (b.Lib = {})); })(f.AVM1 || (f.AVM1 = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(f) { var q = function(b) { function k() { b.apply(this, arguments); } __extends(k, b); k.createAVM1Class = function(b) { return f.wrapAVM1NativeClass(b, !0, k, [], ["getRGB", "getTransform", "setRGB", "setTransform"], null, k.prototype.avm1Constructor); }; k.prototype.avm1Constructor = function(b) { this._target = f.AVM1Utils.resolveTarget(this.context, b); }; k.prototype.getRGB = function() { return k.prototype.getTransform.call(this).alGet("rgb"); }; k.prototype.getTransform = function() { return f.AVM1ColorTransform.fromAS3ColorTransform(this.context, this._target.as3Object.transform.colorTransform); }; k.prototype.setRGB = function(b) { var d = k.prototype.getTransform.call(this); d.alPut("rgb", b); k.prototype.setTransform.call(this, d); }; k.prototype.setTransform = function(b) { this._target.as3Object.transform.colorTransform = f.toAS3ColorTransform(b); }; return k; }(b.AVM1Object); f.AVM1Color = q; })(b.Lib || (b.Lib = {})); })(f.AVM1 || (f.AVM1 = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(f) { function q(a, b) { return void 0 === a ? b : a; } function u(a) { var d = a.context; return a instanceof b.AVM1Object ? new d.sec.flash.geom.ColorTransform(b.alCoerceNumber(d, q(a.alGet("redMultiplier"), 1)), b.alCoerceNumber(d, q(a.alGet("greenMultiplier"), 1)), b.alCoerceNumber(d, q(a.alGet("blueMultiplier"), 1)), b.alCoerceNumber(d, q(a.alGet("alphaMultiplier"), 1)), b.alCoerceNumber(d, q(a.alGet("redOffset"), 0)), b.alCoerceNumber(d, q(a.alGet("greenOffset"), 0)), b.alCoerceNumber(d, q(a.alGet("blueOffset"), 0)), b.alCoerceNumber(d, q(a.alGet("alphaOffset"), 0))) : new d.sec.flash.geom.ColorTransform(1, 1, 1, 1, 0, 0, 0, 0); } function k(a, b) { b.alPut("redMultiplier", a.redMultiplier); b.alPut("greenMultiplier", a.greenMultiplier); b.alPut("blueMultiplier", a.blueMultiplier); b.alPut("alphaMultiplier", a.alphaMultiplier); b.alPut("redOffset", a.redOffset); b.alPut("greenOffset", a.greenOffset); b.alPut("blueOffset", a.blueOffset); b.alPut("alphaOffset", a.alphaOffset); } f.toAS3ColorTransform = u; f.copyAS3ColorTransform = k; var r = function(a) { function b(d, e, f, g, h, m, k, r, q) { void 0 === e && (e = 1); void 0 === f && (f = 1); void 0 === g && (g = 1); void 0 === h && (h = 1); void 0 === m && (m = 0); void 0 === k && (k = 0); void 0 === r && (r = 0); void 0 === q && (q = 0); a.call(this, d); this.alPrototype = d.globals.alGet("flash").alGet("geom").alGet("ColorTransform").alGetPrototypeProperty(); this.alPut("redMultiplier", e); this.alPut("greenMultiplier", f); this.alPut("blueMultiplier", g); this.alPut("alphaMultiplier", h); this.alPut("redOffset", m); this.alPut("greenOffset", k); this.alPut("blueOffset", r); this.alPut("alphaOffset", q); } __extends(b, a); b.fromAS3ColorTransform = function(a, c) { return new b(a, c.redMultiplier, c.greenMultiplier, c.blueMultiplier, c.alphaMultiplier, c.redOffset, c.greenOffset, c.blueOffset, c.alphaOffset); }; return b; }(b.AVM1Object); f.AVM1ColorTransform = r; var d = function(c) { function d(e) { c.call(this, e); b.alDefineObjectProperties(this, {prototype:{value:new a(e, this)}}); } __extends(d, c); d.prototype.alConstruct = function(a) { var b = Object.create(r.prototype); a = a || []; r.apply(b, [this.context].concat(a)); return b; }; return d; }(b.AVM1Function); f.AVM1ColorTransformFunction = d; var a = function(a) { function d(e, f) { a.call(this, e); this.alPrototype = e.builtins.Object.alGetPrototypeProperty(); b.alDefineObjectProperties(this, {constructor:{value:f, writable:!0}, rgb:{get:this.getRgb, set:this.setRgb}, concat:{value:this.concat, writable:!0}, toString:{value:this._toString, writable:!0}}); } __extends(d, a); d.prototype.getRgb = function() { return u(this).color; }; d.prototype.setRgb = function(a) { var c = u(this); c.color = b.alToInt32(this.context, a); k(c, this); }; d.prototype.concat = function(a) { var b = u(this); b.concat(u(a)); k(b, this); }; d.prototype._toString = function() { return u(this).toString(); }; return d; }(b.AVM1Object); f.AVM1ColorTransformPrototype = a; })(b.Lib || (b.Lib = {})); })(f.AVM1 || (f.AVM1 = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(f) { function q(a) { var c = a.context, d, f, g, k, p, h; a instanceof b.AVM1Object && (d = b.alCoerceNumber(c, a.alGet("a")), f = b.alCoerceNumber(c, a.alGet("b")), g = b.alCoerceNumber(c, a.alGet("c")), k = b.alCoerceNumber(c, a.alGet("d")), p = b.alCoerceNumber(c, a.alGet("tx")), h = b.alCoerceNumber(c, a.alGet("ty"))); return new c.sec.flash.geom.Matrix(d, f, g, k, p, h); } function u(a, b) { b.alPut("a", a.a); b.alPut("b", a.b); b.alPut("c", a.c); b.alPut("d", a.d); b.alPut("tx", a.tx); b.alPut("ty", a.ty); } f.toAS3Matrix = q; f.copyAS3MatrixTo = u; var k = function(a) { function b(c, d, f, g, k, h, m) { void 0 === d && (d = 1); void 0 === f && (f = 0); void 0 === g && (g = 0); void 0 === k && (k = 1); void 0 === h && (h = 0); void 0 === m && (m = 0); a.call(this, c); this.alPrototype = c.globals.alGet("flash").alGet("geom").alGet("Matrix").alGetPrototypeProperty(); this.alPut("a", d); this.alPut("b", f); this.alPut("c", g); this.alPut("d", k); this.alPut("tx", h); this.alPut("ty", m); } __extends(b, a); b.fromAS3Matrix = function(a, d) { return new b(a, d.a, d.b, d.c, d.d, d.tx, d.ty); }; return b; }(b.AVM1Object); f.AVM1Matrix = k; var r = function(a) { function c(c) { a.call(this, c); b.alDefineObjectProperties(this, {prototype:{value:new d(c, this)}}); } __extends(c, a); c.prototype.alConstruct = function(a) { return a && 0 < a.length ? new k(this.context, a[0], a[1], a[2], a[3], a[4], a[5]) : new k(this.context); }; return c; }(b.AVM1Function); f.AVM1MatrixFunction = r; var d = function(a) { function c(c, d) { a.call(this, c); this.alPrototype = c.builtins.Object.alGetPrototypeProperty(); b.alDefineObjectProperties(this, {constructor:{value:d, writable:!0}, clone:{value:this.clone, writable:!0}, concat:{value:this.concat, writable:!0}, createBox:{value:this.createBox, writable:!0}, createGradientBox:{value:this.createGradientBox, writable:!0}, deltaTransformPoint:{value:this.deltaTransformPoint, writable:!0}, identity:{value:this.identity, writable:!0}, invert:{value:this.invert, writable:!0}, rotate:{value:this.rotate, writable:!0}, scale:{value:this.scale, writable:!0}, toString:{value:this._toString, writable:!0}, transformPoint:{value:this.transformPoint, writable:!0}, translate:{value:this.translate, writable:!0}}); } __extends(c, a); c.prototype.clone = function() { var a = new k(this.context); this instanceof b.AVM1Object && (a.alPut("a", this.alGet("a")), a.alPut("b", this.alGet("b")), a.alPut("c", this.alGet("c")), a.alPut("d", this.alGet("d")), a.alPut("tx", this.alGet("tx")), a.alPut("ty", this.alGet("ty"))); return a; }; c.prototype.concat = function(a) { var b = q(this); a = q(a); b.concat(a); u(b, this); }; c.prototype.createBox = function(a, c, d, f, g) { void 0 === d && (d = 0); void 0 === f && (f = 0); void 0 === g && (g = 0); a = b.alCoerceNumber(this.context, a); c = b.alCoerceNumber(this.context, c); d = b.alCoerceNumber(this.context, d); f = b.alCoerceNumber(this.context, f); g = b.alCoerceNumber(this.context, g); var h = q(this); h.createBox(a, c, d, f, g); u(h, this); }; c.prototype.createGradientBox = function(a, c, d, f, g) { void 0 === d && (d = 0); void 0 === f && (f = 0); void 0 === g && (g = 0); a = b.alCoerceNumber(this.context, a); c = b.alCoerceNumber(this.context, c); d = b.alCoerceNumber(this.context, d); f = b.alCoerceNumber(this.context, f); g = b.alCoerceNumber(this.context, g); var h = q(this); h.createGradientBox(a, c, d, f, g); u(h, this); }; c.prototype.deltaTransformPoint = function(a) { a = f.toAS3Point(a); var b = q(this); return f.AVM1Point.fromAS3Point(this.context, b.deltaTransformPoint(a)); }; c.prototype.identity = function() { this.alPut("a", 1); this.alPut("b", 0); this.alPut("c", 0); this.alPut("d", 1); this.alPut("tx", 0); this.alPut("ty", 0); }; c.prototype.invert = function() { var a = q(this); a.invert(); u(a, this); }; c.prototype.rotate = function(a) { a = b.alCoerceNumber(this.context, a); var c = q(this); c.rotate(a); u(c, this); }; c.prototype.scale = function(a, c) { a = b.alCoerceNumber(this.context, a); c = b.alCoerceNumber(this.context, c); var d = q(this); d.scale(a, c); u(d, this); }; c.prototype._toString = function() { return q(this).toString(); }; c.prototype.transformPoint = function(a) { a = f.toAS3Point(a); var b = q(this); return f.AVM1Point.fromAS3Point(this.context, b.transformPoint(a)); }; c.prototype.translate = function(a, c) { a = b.alCoerceNumber(this.context, a); c = b.alCoerceNumber(this.context, c); var d = q(this); d.translate(a, c); u(d, this); }; return c; }(b.AVM1Object); f.AVM1MatrixPrototype = d; })(b.Lib || (b.Lib = {})); })(f.AVM1 || (f.AVM1 = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(f) { function q(a) { var c = a.context, d, f; a instanceof b.AVM1Object && (d = b.alCoerceNumber(c, a.alGet("x")), f = b.alCoerceNumber(c, a.alGet("y"))); return new c.sec.flash.geom.Point(d, f); } function u(a, b) { b.alPut("x", a.x); b.alPut("y", a.y); } f.toAS3Point = q; f.copyAS3PointTo = u; var k = function(a) { function b(c, d, f) { a.call(this, c); this.alPrototype = c.globals.alGet("flash").alGet("geom").alGet("Point").alGetPrototypeProperty(); this.alPut("x", d); this.alPut("y", f); } __extends(b, a); b.fromAS3Point = function(a, d) { return new b(a, d.x, d.y); }; return b; }(b.AVM1Object); f.AVM1Point = k; var r = function(a) { function c(c) { a.call(this, c); b.alDefineObjectProperties(this, {prototype:{value:new d(c, this)}, distance:{value:this.distance, writable:!0}, interpolate:{value:this.interpolate, writable:!0}, polar:{value:this.polar, writable:!0}}); } __extends(c, a); c.prototype.alConstruct = function(a) { return a && 0 < a.length ? new k(this.context, a[0], a[1]) : new k(this.context, 0, 0); }; c.prototype.distance = function(a, b) { return this.context.sec.flash.geom.Point.axClass.distance(q(a), q(b)); }; c.prototype.interpolate = function(a, c, d) { d = b.alToNumber(this.context, d); a = this.context.sec.flash.geom.Point.axClass.interpolate(q(a), q(c), d); return k.fromAS3Point(this.context, a); }; c.prototype.polar = function(a, c) { a = b.alToNumber(this.context, a); c = b.alToNumber(this.context, c); return k.fromAS3Point(this.context, this.context.sec.flash.geom.Point.axClass.polar(a, c)); }; return c; }(b.AVM1Function); f.AVM1PointFunction = r; var d = function(a) { function c(c, d) { a.call(this, c); this.alPrototype = c.builtins.Object.alGetPrototypeProperty(); b.alDefineObjectProperties(this, {constructor:{value:d, writable:!0}, length:{get:this.getLength}, add:{value:this.add, writable:!0}, clone:{value:this.clone, writable:!0}, equals:{value:this.equals, writable:!0}, normalize:{value:this.normalize, writable:!0}, offset:{value:this.offset, writable:!0}, subtract:{value:this.subtract, writable:!0}, toString:{value:this._toString, writable:!0}}); } __extends(c, a); c.prototype.getLength = function() { return q(this).length; }; c.prototype.add = function(a) { return k.fromAS3Point(this.context, q(this).add(q(a))); }; c.prototype.clone = function() { var a = new k(this.context); this instanceof b.AVM1Object && (a.alPut("x", this.alGet("x")), a.alPut("y", this.alGet("y"))); return a; }; c.prototype.equals = function(a) { return q(this).equals(q(a)); }; c.prototype.normalize = function(a) { a = b.alToNumber(this.context, a); var c = q(this); c.normalize(a); u(c, this); }; c.prototype.offset = function(a, c) { a = b.alToNumber(this.context, a); c = b.alToNumber(this.context, c); var d = q(this); d.offset(a, c); u(d, this); }; c.prototype.subtract = function(a) { return k.fromAS3Point(this.context, q(this).subtract(q(a))); }; c.prototype._toString = function() { return "(x=" + this.alGet("x") + ", y=" + this.alGet("y") + ")"; }; return c; }(b.AVM1Object); f.AVM1PointPrototype = d; })(b.Lib || (b.Lib = {})); })(f.AVM1 || (f.AVM1 = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(f) { function q(a) { var c = a.context, d, f, g, k; a instanceof b.AVM1Object && (d = b.alCoerceNumber(c, a.alGet("x")), f = b.alCoerceNumber(c, a.alGet("y")), g = b.alCoerceNumber(c, a.alGet("width")), k = b.alCoerceNumber(c, a.alGet("height"))); return new c.sec.flash.geom.Rectangle(d, f, g, k); } function u(a, b) { b.alPut("x", a.x); b.alPut("y", a.y); b.alPut("width", a.width); b.alPut("height", a.height); } f.toAS3Rectangle = q; f.copyAS3RectangleTo = u; var k = function(a) { function b(c, d, f, g, k) { a.call(this, c); this.alPrototype = c.globals.alGet("flash").alGet("geom").alGet("Rectangle").alGetPrototypeProperty(); this.alPut("x", d); this.alPut("y", f); this.alPut("width", g); this.alPut("height", k); } __extends(b, a); b.fromAS3Rectangle = function(a, d) { return new b(a, d.x, d.y, d.width, d.height); }; return b; }(b.AVM1Object); f.AVM1Rectangle = k; var r = function(a) { function c(c) { a.call(this, c); b.alDefineObjectProperties(this, {prototype:{value:new d(c, this)}}); } __extends(c, a); c.prototype.alConstruct = function(a) { return a && 0 < a.length ? new k(this.context, a[0], a[1], a[2], a[3]) : new k(this.context, 0, 0, 0, 0); }; return c; }(b.AVM1Function); f.AVM1RectangleFunction = r; var d = function(a) { function c(c, d) { a.call(this, c); this.alPrototype = c.builtins.Object.alGetPrototypeProperty(); b.alDefineObjectProperties(this, {constructor:{value:d, writable:!0}, bottom:{get:this.getBottom, set:this.setBottom}, bottomRight:{get:this.getBottomRight, set:this.setBottomRight}, left:{get:this.getLeft, set:this.setLeft}, right:{get:this.getRight, set:this.setRight}, size:{get:this.getSize, set:this.setSize}, top:{get:this.getTop, set:this.setTop}, topLeft:{get:this.getTopLeft, set:this.setTopLeft}, clone:{value:this.clone, writable:!0}, contains:{value:this.contains, writable:!0}, containsPoint:{value:this.containsPoint, writable:!0}, containsRectangle:{value:this.containsRectangle, writable:!0}, equals:{value:this.equals, writable:!0}, inflate:{value:this.inflate, writable:!0}, inflatePoint:{value:this.inflatePoint, writable:!0}, intersection:{value:this.intersection, writable:!0}, intersects:{value:this.intersects, writable:!0}, isEmpty:{value:this.isEmpty, writable:!0}, offset:{value:this.offset, writable:!0}, offsetPoint:{value:this.offsetPoint, writable:!0}, setEmpty:{value:this.setEmpty, writable:!0}, toString:{value:this._toString, writable:!0}, union:{value:this.union, writable:!0}}); } __extends(c, a); c.prototype.getBottom = function() { return b.alToNumber(this.context, this.alGet("y")) + b.alToNumber(this.context, this.alGet("height")); }; c.prototype.setBottom = function(a) { this.alPut("height", b.alToNumber(this.context, a) - b.alToNumber(this.context, this.alGet("y"))); }; c.prototype.getBottomRight = function() { return new f.AVM1Point(this.context, c.prototype.getRight.call(this), c.prototype.getBottom.call(this)); }; c.prototype.setBottomRight = function(a) { c.prototype.setRight.call(this, a.alGet("x")); c.prototype.setBottom.call(this, a.alGet("y")); }; c.prototype.getLeft = function() { return b.alToNumber(this.context, this.alGet("x")); }; c.prototype.setLeft = function(a) { this.alPut("x", b.alToNumber(this.context, a)); }; c.prototype.getSize = function() { return new f.AVM1Point(this.context, this.alGet("width"), this.alGet("height")); }; c.prototype.setSize = function(a) { this.alPut("width", a.alGet("x")); this.alPut("height", a.alGet("y")); }; c.prototype.getRight = function() { return b.alToNumber(this.context, this.alGet("x")) + b.alToNumber(this.context, this.alGet("width")); }; c.prototype.setRight = function(a) { this.alPut("width", b.alToNumber(this.context, a) - b.alToNumber(this.context, this.alGet("x"))); }; c.prototype.getTop = function() { return b.alToNumber(this.context, this.alGet("y")); }; c.prototype.setTop = function(a) { this.alPut("y", b.alToNumber(this.context, a)); }; c.prototype.getTopLeft = function() { return new f.AVM1Point(this.context, c.prototype.getLeft.call(this), c.prototype.getTop.call(this)); }; c.prototype.setTopLeft = function(a) { c.prototype.setLeft.call(this, a.alGet("x")); c.prototype.setTop.call(this, a.alGet("y")); }; c.prototype.clone = function() { var a = new k(this.context); this instanceof b.AVM1Object && (a.alPut("x", this.alGet("x")), a.alPut("y", this.alGet("y")), a.alPut("width", this.alGet("width")), a.alPut("height", this.alGet("height"))); return a; }; c.prototype.contains = function(a, c) { a = b.alToNumber(this.context, a); c = b.alToNumber(this.context, c); return q(this).contains(a, c); }; c.prototype.containsPoint = function(a) { var b = q(this); a = f.toAS3Point(a); return b.containsPoint(a); }; c.prototype.containsRectangle = function(a) { var b = q(this); a = q(a); return b.containsRect(a); }; c.prototype.equals = function(a) { var b = q(this); a = q(a); return b.equals(a); }; c.prototype.inflate = function(a, c) { a = b.alToNumber(this.context, a); c = b.alToNumber(this.context, c); var d = q(this); d.inflate(a, c); u(d, this); }; c.prototype.inflatePoint = function(a) { var b = q(this); a = f.toAS3Point(a); b.inflatePoint(a); u(b, this); }; c.prototype.intersection = function(a) { var b = q(this); a = q(a); return k.fromAS3Rectangle(this.context, b.intersection(a)); }; c.prototype.intersects = function(a) { var b = q(this); a = q(a); return b.intersects(a); }; c.prototype.isEmpty = function() { return q(this).isEmpty(); }; c.prototype.offset = function(a, c) { a = b.alToNumber(this.context, a); c = b.alToNumber(this.context, c); var d = q(this); d.offset(a, c); u(d, this); }; c.prototype.offsetPoint = function(a) { var b = q(this); a = f.toAS3Point(a); b.offsetPoint(a); u(b, this); }; c.prototype.setEmpty = function() { this.alPut("x", 0); this.alPut("y", 0); this.alPut("width", 0); this.alPut("height", 0); }; c.prototype._toString = function() { return "(x=" + this.alGet("x") + ", y=" + this.alGet("y") + ", w=" + this.alGet("width") + ", h=" + this.alGet("height") + ")"; }; c.prototype.union = function(a) { var b = q(this); a = q(a); return k.fromAS3Rectangle(this.context, b.union(a)); }; return c; }(b.AVM1Object); f.AVM1RectanglePrototype = d; })(b.Lib || (b.Lib = {})); })(f.AVM1 || (f.AVM1 = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(f) { var q = function(b) { function k() { b.apply(this, arguments); } __extends(k, b); k.createAVM1Class = function(b) { return f.wrapAVM1NativeClass(b, !0, k, [], ["matrix#", "concatenatedMatrix#", "colorTransform#", "pixelBounds#"], null, k.prototype.avm1Constructor); }; Object.defineProperty(k.prototype, "as3Transform", {get:function() { return this._target.as3Object.transform; }, enumerable:!0, configurable:!0}); k.prototype.avm1Constructor = function(b) { this._target = f.AVM1Utils.resolveTarget(this.context, b); }; k.prototype.getMatrix = function() { return f.AVM1Matrix.fromAS3Matrix(this.context, this._target.as3Object.transform.matrix); }; k.prototype.setMatrix = function(b) { this._target.as3Object.transform.matrix = f.toAS3Matrix(b); }; k.prototype.getConcatenatedMatrix = function() { return f.AVM1Matrix.fromAS3Matrix(this.context, this._target.as3Object.transform.concatenatedMatrix); }; k.prototype.getColorTransform = function() { return f.AVM1ColorTransform.fromAS3ColorTransform(this.context, this._target.as3Object.transform.colorTransform); }; k.prototype.setColorTransform = function(b) { this._target.as3Object.transform.colorTransform = f.toAS3ColorTransform(b); }; k.prototype.getPixelBounds = function() { return f.AVM1Rectangle.fromAS3Rectangle(this.context, this._target.as3Object.transform.pixelBounds); }; return k; }(b.AVM1Object); f.AVM1Transform = q; })(b.Lib || (b.Lib = {})); })(f.AVM1 || (f.AVM1 = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(g) { var q = function(q) { function k() { q.apply(this, arguments); } __extends(k, q); k.createAVM1Class = function(b) { return g.wrapAVM1NativeClass(b, !0, k, [], "align# blockIndent# bold# bullet# color# font# getTextExtent indent# italic# kerning# leading# leftMargin# letterSpacing# rightMargin# size# tabStops# target# underline# url#".split(" "), null, k.prototype.avm1Constructor); }; k.createFromNative = function(b, d) { var a = b.globals.TextFormat, c = new k(b); c.alPrototype = a.alGetPrototypeProperty(); c._as3Object = d; return c; }; k.prototype.avm1Constructor = function(g, d, a, c, e, l, k, t, p, h, m, v, q) { var u = this.context; g = f.isNullOrUndefined(g) ? null : b.alToString(u, g); d = f.isNullOrUndefined(d) ? null : b.alToNumber(u, d); a = f.isNullOrUndefined(a) ? null : b.alToNumber(u, a); c = f.isNullOrUndefined(c) ? null : b.alToBoolean(u, c); e = f.isNullOrUndefined(e) ? null : b.alToBoolean(u, e); l = f.isNullOrUndefined(l) ? null : b.alToBoolean(u, l); k = f.isNullOrUndefined(k) ? null : b.alToString(u, k); t = f.isNullOrUndefined(t) ? null : b.alToString(u, t); p = f.isNullOrUndefined(p) ? null : b.alToString(u, p); h = f.isNullOrUndefined(h) ? null : b.alToNumber(u, h); m = f.isNullOrUndefined(m) ? null : b.alToNumber(u, m); v = f.isNullOrUndefined(v) ? null : b.alToNumber(u, v); q = f.isNullOrUndefined(q) ? null : b.alToNumber(u, q); this._as3Object = new this.context.sec.flash.text.TextFormat(g, d, a, c, e, l, k, t, p, h, m, v, q); }; k.alInitStatic = function(b) { b = new b.sec.flash.text.TextField; b.multiline = !0; this._measureTextField = b; }; k.prototype.getAlign = function() { return this._as3Object.align; }; k.prototype.setAlign = function(f) { this._as3Object.align = b.alToString(this.context, f); }; k.prototype.getBlockIndent = function() { return this._as3Object.blockIndent; }; k.prototype.setBlockIndent = function(f) { this._as3Object.blockIndent = b.alToNumber(this.context, f); }; k.prototype.getBold = function() { return this._as3Object.bold; }; k.prototype.setBold = function(f) { this._as3Object.bold = b.alToBoolean(this.context, f); }; k.prototype.getBullet = function() { return this._as3Object.bullet; }; k.prototype.setBullet = function(f) { this._as3Object.bullet = b.alToBoolean(this.context, f); }; k.prototype.getColor = function() { return this._as3Object.color; }; k.prototype.setColor = function(f) { this._as3Object.color = b.alToNumber(this.context, f); }; k.prototype.getFont = function() { return this._as3Object.font; }; k.prototype.setFont = function(f) { this._as3Object.font = b.alToString(this.context, f); }; k.prototype.getIndent = function() { return this._as3Object.indent; }; k.prototype.setIndent = function(f) { this._as3Object.indent = b.alToNumber(this.context, f); }; k.prototype.getItalic = function() { return this._as3Object.italic; }; k.prototype.setItalic = function(f) { this._as3Object.italic = b.alToBoolean(this.context, f); }; k.prototype.getKerning = function() { return this._as3Object.kerning; }; k.prototype.setKerning = function(f) { this._as3Object.kerning = b.alToBoolean(this.context, f); }; k.prototype.getLeading = function() { return this._as3Object.leading; }; k.prototype.setLeading = function(f) { this._as3Object.leading = b.alToNumber(this.context, f); }; k.prototype.getLeftMargin = function() { return this._as3Object.leftMargin; }; k.prototype.setLeftMargin = function(f) { this._as3Object.leftMargin = b.alToNumber(this.context, f); }; k.prototype.getLetterSpacing = function() { return this._as3Object.letterSpacing; }; k.prototype.setLetterSpacing = function(f) { this._as3Object.letterSpacing = b.alToNumber(this.context, f); }; k.prototype.getRightMargin = function() { return this._as3Object.rightMargin; }; k.prototype.setRightMargin = function(f) { this._as3Object.rightMargin = b.alToNumber(this.context, f); }; k.prototype.getSize = function() { return this._as3Object.size; }; k.prototype.setSize = function(f) { this._as3Object.size = b.alToNumber(this.context, f); }; k.prototype.getTabStops = function() { var b = this._as3Object.tabStops; return b ? b.value : null; }; k.prototype.setTabStops = function(g) { if (g instanceof b.Natives.AVM1ArrayNative || f.isNullOrUndefined(g)) { g = g && this.context.sec.createArray(g), this._as3Object.tabStops = g; } }; k.prototype.getTarget = function() { return this._as3Object.target; }; k.prototype.setTarget = function(f) { this._as3Object.target = b.alToString(this.context, f); }; k.prototype.getTextExtent = function(f, d) { f = b.alCoerceString(this.context, f); d = +d; var a = this.context.getStaticState(k)._measureTextField; !isNaN(d) && 0 < d ? (a.width = d + 4, a.wordWrap = !0) : a.wordWrap = !1; a.defaultTextFormat = this._as3Object; a.text = f; var c = b.alNewObject(this.context), e = a.textWidth, g = a.textHeight; c.alPut("width", e); c.alPut("height", g); c.alPut("textFieldWidth", e + 4); c.alPut("textFieldHeight", g + 4); a = a.getLineMetrics(); c.alPut("ascent", a.axGetPublicProperty("ascent")); c.alPut("descent", a.axGetPublicProperty("descent")); return c; }; k.prototype.getUnderline = function() { return this._as3Object.underline; }; k.prototype.setUnderline = function(f) { this._as3Object.underline = b.alToBoolean(this.context, f); }; k.prototype.getUrl = function() { return this._as3Object.url; }; k.prototype.setUrl = function(f) { this._as3Object.url = b.alToString(this.context, f); }; return k; }(b.AVM1Object); g.AVM1TextFormat = q; })(b.Lib || (b.Lib = {})); })(f.AVM1 || (f.AVM1 = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(g) { g.toAS3BitmapData = function(b) { return b instanceof q ? b.as3BitmapData : null; }; var q = function(q) { function k() { q.apply(this, arguments); } __extends(k, q); k.createAVM1Class = function(b) { return g.wrapAVM1NativeClass(b, !0, k, ["loadBitmap"], "height# rectangle# transparent# width# applyFilter clone colorTransform compare copyChannel copyPixels dispose draw fillRect floodFill generateFilterRect getColorBoundsRect getPixel getPixel32 hitTest merge noise paletteMap perlinNoise pixelDissolve scroll setPixel setPixel32 threshold".split(" "), null, k.prototype.avm1Constructor); }; Object.defineProperty(k.prototype, "as3BitmapData", {get:function() { return this._as3Object; }, enumerable:!0, configurable:!0}); k.prototype.avm1Constructor = function(f, d, a, c) { f = b.alToNumber(this.context, f); d = b.alToNumber(this.context, d); a = 3 > arguments.length ? !0 : b.alToBoolean(this.context, a); c = 4 > arguments.length ? 4294967295 : b.alToInt32(this.context, c); this._as3Object = new this.context.sec.flash.display.BitmapData(f, d, a, c); }; k.fromAS3BitmapData = function(b, d) { var a = new k(b); a.alPrototype = b.globals.alGet("flash").alGet("display").alGet("BitmapData").alGetPrototypeProperty(); a._as3Object = d; return a; }; k.loadBitmap = function(g, d) { d = b.alToString(g, d); var a = g.getAsset(d), c = a.symbolProps.symbolClass, e = g.sec.flash.display.BitmapData.axClass; return a && (e === c || e.dPrototype.isPrototypeOf(c.dPrototype)) ? (a = f.AVMX.AS.constructClassFromSymbol(a.symbolProps, e), c = g.globals.alGet("flash").alGet("display").alGet("BitmapData"), e = new k(g), e.alPrototype = c.alGetPrototypeProperty(), e._as3Object = a, e) : null; }; k.prototype.getHeight = function() { return this._as3Object.height; }; k.prototype.getRectangle = function() { var b = this.as3BitmapData; return new g.AVM1Rectangle(this.context, 0, 0, b.width, b.height); }; k.prototype.getTransparent = function() { return this._as3Object.transparent; }; k.prototype.getWidth = function() { return this._as3Object.width; }; k.prototype.applyFilter = function(b, d, a, c) { b = b.as3BitmapData; d = g.toAS3Rectangle(d); a = g.toAS3Point(a); c = g.convertToAS3Filter(this.context, c); this.as3BitmapData.applyFilter(b, d, a, c); return 0; }; k.prototype.clone = function() { var b = new k(this.context), d = this.context.globals.alGet("flash").alGet("display").alGet("BitmapData"); b.alPrototype = d.alGetPrototypeProperty(); b._as3Object = this._as3Object.clone(); return b; }; k.prototype.colorTransform = function(b, d) { f.Debug.notImplemented("AVM1BitmapData.colorTransform"); }; k.prototype.compare = function(b) { return b instanceof k ? this._as3Object.compare(b._as3Object) : !1; }; k.prototype.copyChannel = function(f, d, a, c, e) { f = f.as3BitmapData; d = g.toAS3Rectangle(d); a = g.toAS3Point(a); c = b.alCoerceNumber(this.context, c); e = b.alCoerceNumber(this.context, e); this.as3BitmapData.copyChannel(f, d, a, c, e); }; k.prototype.copyPixels = function(f, d, a, c, e, l) { f = f.as3BitmapData; d = g.toAS3Rectangle(d); a = g.toAS3Point(a); c = c ? c.as3BitmapData : null; e = e ? g.toAS3Point(e) : null; l = b.alToBoolean(this.context, l); this.as3BitmapData.copyPixels(f, d, a, c, e, l); }; k.prototype.dispose = function() { this.as3BitmapData.dispose(); }; k.prototype.draw = function(f, d, a, c, e, l) { f = f._as3Object; d = d ? g.toAS3Matrix(d) : null; a = a ? g.toAS3ColorTransform(a) : null; e = e ? g.toAS3Rectangle(e) : null; c = (c = "number" === typeof c ? g.BlendModesMap[c] : b.alCoerceString(this.context, c)) || null; l = b.alToBoolean(this.context, l); this.as3BitmapData.draw(f, d, a, c, e, l); }; k.prototype.fillRect = function(f, d) { var a = g.toAS3Rectangle(f); d = b.alToInt32(this.context, d); this.as3BitmapData.fillRect(a, d); }; k.prototype.floodFill = function(f, d, a) { f = b.alCoerceNumber(this.context, f); d = b.alCoerceNumber(this.context, d); a = b.alToInt32(this.context, a); this._as3Object.floodFill(f, d, a); }; k.prototype.generateFilterRect = function(b, d) { f.Debug.notImplemented("AVM1BitmapData.generateFilterRect"); }; k.prototype.getColorBoundsRect = function(f, d, a) { f = b.alToInt32(this.context, f); d = b.alToInt32(this.context, d); a = b.alToBoolean(this.context, a); f = this._as3Object.getColorBoundsRect(f, d, a); return new g.AVM1Rectangle(this.context, f.x, f.y, f.width, f.height); }; k.prototype.getPixel = function(b, d) { return this._as3Object.getPixel(b, d); }; k.prototype.getPixel32 = function(b, d) { return this._as3Object.getPixel32(b, d); }; k.prototype.hitTest = function(k, d, a, c, e) { f.Debug.somewhatImplemented("AVM1BitmapData.hitTest"); var l = g.toAS3Point(k); d = b.alToInt32(this.context, d); var n = a._as3Object; if (4 > arguments.length) { return this._as3Object.hitTest(l, d, n); } var t = null != c ? g.toAS3Point(c) : null; if (4 > arguments.length) { return this._as3Object.hitTest(l, d, n, t); } e = b.alToInt32(this.context, e); return this._as3Object.hitTest(l, d, n, t, e); }; k.prototype.merge = function(f, d, a, c, e, l, k) { f = f.as3BitmapData; d = g.toAS3Rectangle(d); a = g.toAS3Point(a); c = b.alToInt32(this.context, c); e = b.alToInt32(this.context, e); l = b.alToInt32(this.context, l); k = b.alToInt32(this.context, k); this.as3BitmapData.merge(f, d, a, c, e, l, k); }; k.prototype.noise = function(f, d, a, c, e) { f = b.alToInt32(this.context, f); d = 2 > arguments.length ? 0 : b.alToInt32(this.context, d); a = 3 > arguments.length ? 255 : b.alToInt32(this.context, a); c = 4 > arguments.length ? 7 : b.alToInt32(this.context, c); e = 5 > arguments.length ? !1 : b.alToBoolean(this.context, e); this._as3Object.noise(f, d, a, c, e); }; k.prototype.paletteMap = function(b, d, a, c, e, g, k) { f.Debug.notImplemented("AVM1BitmapData.paletteMap"); }; k.prototype.perlinNoise = function(g, d, a, c, e, l, k, t, p) { g = b.alCoerceNumber(this.context, g); d = b.alCoerceNumber(this.context, d); a = b.alCoerceNumber(this.context, a); c = b.alCoerceNumber(this.context, c); e = b.alToBoolean(this.context, e); l = b.alToBoolean(this.context, l); k = void 0 === k ? 7 : b.alCoerceNumber(this.context, k); t = b.alToBoolean(this.context, t); if (!f.isNullOrUndefined(p)) { for (var h = 0, m = p.alGet("length");h < m;h++) { null.push(b.alCoerceNumber(this.context, p.alGet(h))); } } this.perlinNoise(g, d, a, c, e, l, k, t, null); }; k.prototype.pixelDissolve = function(f, d, a, c, e, l) { var k = f.as3BitmapData, t = g.toAS3Rectangle(d), p = g.toAS3Point(a); c = 4 > arguments.length ? 0 : b.alToInt32(this.context, c); e = 5 > arguments.length ? t.width * t.height / 30 : b.alToInt32(this.context, e); l = 6 > arguments.length ? 0 : b.alToInt32(this.context, l); return this.as3BitmapData.pixelDissolve(k, t, p, c, e, l); }; k.prototype.scroll = function(f, d) { f = b.alCoerceNumber(this.context, f); d = b.alCoerceNumber(this.context, d); this._as3Object.scroll(f, d); }; k.prototype.setPixel = function(f, d, a) { f = b.alCoerceNumber(this.context, f); d = b.alCoerceNumber(this.context, d); a = b.alToInt32(this.context, a); this._as3Object.setPixel(f, d, a); }; k.prototype.setPixel32 = function(f, d, a) { f = b.alCoerceNumber(this.context, f); d = b.alCoerceNumber(this.context, d); a = b.alToInt32(this.context, a); this._as3Object.setPixel32(f, d, a); }; k.prototype.threshold = function(f, d, a, c, e, l, k, t) { var p = f.as3BitmapData, h = g.toAS3Rectangle(d), m = g.toAS3Point(a); c = b.alCoerceString(this.context, c); e = b.alToInt32(this.context, e); l = 6 > arguments.length ? 0 : b.alToInt32(this.context, l); k = 7 > arguments.length ? 4294967295 : b.alToInt32(this.context, k); t = 8 > arguments.length ? !1 : b.alToBoolean(this.context, t); return this._as3Object.threshold(p, h, m, c, e, l, k, t); }; return k; }(b.AVM1Object); g.AVM1BitmapData = q; })(b.Lib || (b.Lib = {})); })(f.AVM1 || (f.AVM1 = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(f) { var q = function(q) { function k() { q.apply(this, arguments); } __extends(k, q); k.createAVM1Class = function(b) { return f.wrapAVM1NativeClass(b, !0, k, ["available#", "addCallback", "call"], []); }; k.getAvailable = function(b) { return b.sec.flash.external.ExternalInterface.axClass.available; }; k.addCallback = function(f, d, a, c) { d = b.alCoerceString(f, d); if (!b.alIsFunction(c)) { return !1; } try { return f.sec.flash.external.ExternalInterface.axClass.addCallback(d, function() { var b = Array.prototype.slice.call(arguments, 0); return f.executeFunction(c, a, b); }), !0; } catch (e) { } return !1; }; k.call = function(f, d) { for (var a = [], c = 2;c < arguments.length;c++) { a[c - 2] = arguments[c]; } for (var c = [b.alCoerceString(f, d)], e = 0;e < a.length;e++) { c.push(a[e]); } return f.sec.flash.external.ExternalInterface.axClass.call.apply(f.sec.flash.external.ExternalInterface.axClass, c); }; return k; }(b.AVM1Object); f.AVM1ExternalInterface = q; })(b.Lib || (b.Lib = {})); })(f.AVM1 || (f.AVM1 = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(g) { var q = function(b) { function k() { b.apply(this, arguments); } __extends(k, b); k.createAVM1Class = function(b) { return g.wrapAVM1NativeClass(b, !0, k, [], "attachSound duration# getBytesLoaded getBytesTotal getPan setPan getTransform setTransform getVolume setVolume start stop".split(" "), null, k.prototype.avm1Constructor); }; k.prototype.avm1Constructor = function(b) { this._target = g.AVM1Utils.resolveTarget(this.context, b); this._linkageID = this._channel = this._sound = null; }; k.prototype.attachSound = function(b) { var d = this.context.getAsset(b); d && (d = Object.create(d.symbolProps), d = f.AVMX.AS.constructClassFromSymbol(d, this.context.sec.flash.media.Sound.axClass), this._linkageID = b, this._sound = d); }; k.prototype.loadSound = function(b, d) { }; k.prototype.getBytesLoaded = function() { return 0; }; k.prototype.getBytesTotal = function() { return 0; }; k.prototype.getDuration = function() { return 0; }; k.prototype.getPan = function() { var b = this._channel && this._channel.soundTransform; return b ? 100 * b.axGetPublicProperty("pan") : 0; }; k.prototype.setPan = function(b) { var d = this._channel && this._channel.soundTransform; d && (d.axSetPublicProperty("pan", b / 100), this._channel.soundTransform = d); }; k.prototype.getTransform = function() { return null; }; k.prototype.setTransform = function(b) { }; k.prototype.getVolume = function() { var b = this._channel && this._channel.soundTransform; return b ? 100 * b.axGetPublicProperty("volume") : 0; }; k.prototype.setVolume = function(b) { var d = this._channel && this._channel.soundTransform; d && (d.axSetPublicProperty("volume", b / 100), this._channel.soundTransform = d); }; k.prototype.start = function(b, d) { this._sound && (b = isNaN(b) || 0 > b ? 0 : +b, d = isNaN(d) || 1 > d ? 1 : Math.floor(d), this._stopSoundChannel(), this._channel = this._sound.play(b, d - 1)); }; k.prototype._stopSoundChannel = function() { this._channel && (this._channel.stop(), this._channel = null); }; k.prototype.stop = function(b) { b && b !== this._linkageID || this._stopSoundChannel(); }; return k; }(b.AVM1Object); g.AVM1Sound = q; })(b.Lib || (b.Lib = {})); })(f.AVM1 || (f.AVM1 = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(f) { var q = "avHardwareDisable hasAccessibility hasAudio hasAudioEncoder hasEmbeddedVideo hasIME hasMP3 hasPrinting hasScreenBroadcast hasScreenPlayback hasStreamingAudio hasStreamingVideo hasVideoEncoder isDebugger language localFileReadDisable manufacturer os pixelAspectRatio playerType screenColor screenDPI screenResolutionX screenResolutionY serverString version".split(" "), u = function(b) { function a(a) { var e = this; b.call(this, a); this.alPrototype = a.builtins.Object.alGetPrototypeProperty(); var f = a.sec.flash.system.Capabilities.axClass; q.forEach(function(a) { e.alSetOwnProperty(a, {flags:131, get:{alCall:function() { return f.axGetPublicProperty(a); }}}); }, this); } __extends(a, b); return a; }(b.AVM1Object), k = function(d) { function a(a) { d.call(this, a); this.alPrototype = a.builtins.Object.alGetPrototypeProperty(); b.alDefineObjectProperties(this, {sandboxType:{get:this.getSandboxType}, allowDomain:{value:this.allowDomain}, allowInsecureDomain:{value:this.allowInsecureDomain}, loadPolicyFile:{value:this.loadPolicyFile}}); } __extends(a, d); a.prototype.getSandboxType = function() { return this.context.sec.flash.system.Security.axClass.sandboxType; }; a.prototype.allowDomain = function(a) { a = b.alCoerceString(this.context, a); this.context.sec.flash.system.Security.axClass.allowDomain(a); }; a.prototype.allowInsecureDomain = function(a) { a = b.alCoerceString(this.context, a); this.context.sec.flash.system.Security.axClass.allowInsecureDomain(a); }; a.prototype.loadPolicyFile = function(a) { a = b.alCoerceString(this.context, a); this.context.sec.flash.system.Security.axClass.loadPolicyFile(a); }; return a; }(b.AVM1Object), r = function(b) { function a() { b.apply(this, arguments); } __extends(a, b); a.alInitStatic = function(a) { this._capabilities = new u(a); this._security = new k(a); }; a.createAVM1Class = function(b) { return f.wrapAVM1NativeClass(b, !1, a, ["capabilities#", "security#"], []); }; a.getCapabilities = function(b) { return b.getStaticState(a)._capabilities; }; a.getSecurity = function(b) { return b.getStaticState(a)._security; }; return a; }(b.AVM1Object); f.AVM1System = r; })(b.Lib || (b.Lib = {})); })(f.AVM1 || (f.AVM1 = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(g) { var q = function(b) { function d(a, c) { b.call(this, a); this.alPrototype = a.globals.SharedObject.alGetPrototypeProperty(); this._as3SharedObject = c; } __extends(d, b); return d; }(b.AVM1Object); g.AVM1SharedObject = q; var u = function(f) { function d(a) { f.call(this, a); b.alDefineObjectProperties(this, {prototype:{value:new k(a, this)}, getLocal:{value:this.getLocal, writable:!0}}); } __extends(d, f); d.prototype.getLocal = function(a, c, d) { a = b.alCoerceString(this.context, a); c = b.alCoerceString(this.context, c); d = b.alToBoolean(this.context, d); a = this.context.sec.flash.net.SharedObject.axClass.getLocal(a, c, d); return new q(this.context, a); }; return d; }(b.AVM1Function); g.AVM1SharedObjectFunction = u; var k = function(g) { function d(a, c) { g.call(this, a); this.alPrototype = a.builtins.Object.alGetPrototypeProperty(); b.alDefineObjectProperties(this, {constructor:{value:c, writable:!0}, rgb:{get:this.getData, set:this.setData}, clear:{value:this.clear, writable:!0}, flush:{value:this.flush, writable:!0}}); } __extends(d, g); d.prototype.getData = function() { f.Debug.somewhatImplemented("AVM1SharedObject.getData"); return this.__data || (this.__data = b.alNewObject(this.context)); }; d.prototype.setData = function(a) { f.Debug.somewhatImplemented("AVM1SharedObject.setData"); this.__data = a; }; d.prototype.clear = function() { this._as3SharedObject.clear(); }; d.prototype.flush = function(a) { a = b.alCoerceNumber(this.context, a); this._as3SharedObject.flush(b.alCoerceNumber(this.context, a)); f.Debug.somewhatImplemented("AVM1SharedObject.flush"); return !1; }; d.prototype.getSize = function() { f.Debug.somewhatImplemented("AVM1SharedObject.getSize"); return this.__data ? 10 : 0; }; d.prototype.setFps = function(a) { a = b.alCoerceNumber(this.context, a) || 0; this._as3SharedObject.fps = a; return this._as3SharedObject.fps === a; }; return d; }(b.AVM1Object); g.AVM1SharedObjectPrototype = k; })(b.Lib || (b.Lib = {})); })(f.AVM1 || (f.AVM1 = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(g) { var q = f.AVMX.AS.flash, u = function(b) { function f() { b.apply(this, arguments); } __extends(f, b); f.createAVM1Class = function(b) { return g.wrapAVM1NativeClass(b, !0, f, [], ["loadClip", "unloadClip", "getProgress"], null, f.prototype.avm1Constructor); }; f.prototype.avm1Constructor = function() { this._loader = new this.context.sec.flash.display.Loader; g.AVM1Broadcaster.initialize(this.context, this); }; f.prototype.loadClip = function(b, a) { this._target = "number" === typeof a ? g.AVM1Utils.resolveLevel(this.context, a) : g.AVM1Utils.resolveTarget(this.context, a); this._target.as3Object.addChild(this._loader); this._loader.contentLoaderInfo.addEventListener(q.events.Event.OPEN, this.openHandler.bind(this)); this._loader.contentLoaderInfo.addEventListener(q.events.ProgressEvent.PROGRESS, this.progressHandler.bind(this)); this._loader.contentLoaderInfo.addEventListener(q.events.IOErrorEvent.IO_ERROR, this.ioErrorHandler.bind(this)); this._loader.contentLoaderInfo.addEventListener(q.events.Event.COMPLETE, this.completeHandler.bind(this)); this._loader.contentLoaderInfo.addEventListener(q.events.Event.INIT, this.initHandler.bind(this)); this._loader.load(new this.context.sec.flash.net.URLRequest(b)); return !0; }; f.prototype.unloadClip = function(b) { ("number" === typeof b ? g.AVM1Utils.resolveLevel(this.context, b) : g.AVM1Utils.resolveTarget(this.context, b)).as3Object.removeChild(this._loader); return !0; }; f.prototype.getProgress = function(b) { return this._loader.contentLoaderInfo.bytesLoaded; }; f.prototype._broadcastMessage = function(b, a) { void 0 === a && (a = null); g.avm1BroadcastEvent(this._target.context, this, b, a); }; f.prototype.openHandler = function(b) { this._broadcastMessage("onLoadStart", [this._target]); }; f.prototype.progressHandler = function(b) { this._broadcastMessage("onLoadProgress", [this._target, b.bytesLoaded, b.bytesTotal]); }; f.prototype.ioErrorHandler = function(b) { this._broadcastMessage("onLoadError", [this._target, b.errorID, 501]); }; f.prototype.completeHandler = function(b) { this._broadcastMessage("onLoadComplete", [this._target]); }; f.prototype.initHandler = function(b) { var a = function() { this._target.as3Object.removeEventListener(q.events.Event.EXIT_FRAME, a); this._broadcastMessage("onLoadInit", [this._target]); }.bind(this); this._target.as3Object.addEventListener(q.events.Event.EXIT_FRAME, a); }; return f; }(b.AVM1Object); g.AVM1MovieClipLoader = u; })(b.Lib || (b.Lib = {})); })(f.AVM1 || (f.AVM1 = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(f) { function q(c, f, g, t, p) { function h() { return c.sec.flash.filters[t].axClass; } g = g.alGetPrototypeProperty(); var m = Object.create(a.prototype); b.AVM1Object.call(m, c); m.alPrototype = g; g = Object.create(d.prototype); b.AVM1Function.call(g, c); g.alSetOwnPrototypeProperty(m); g.alConstruct = function(a) { var d = new b.AVM1Object(c); d.alPrototype = m; if (a) { for (var f = 0;f < a.length;f++) { d.alPut(p[f << 1], a[f]); } } return d; }; b.alDefineObjectProperties(m, {constructor:{value:g, writable:!0}, clone:{value:function() { var a = new b.AVM1Object(c); a.alPrototype = m; for (var d = 0;d < p.length;d += 2) { a.alPut(p[d], this.alGet(p[d])); } return a; }, writable:!0}}); m.asFilterConverter = {toAS3Filter:function(a) { for (var b = h().axConstruct([]), d = 0;d < p.length;d += 2) { var f = a.alGet(p[d]); void 0 !== f && b.axSetPublicProperty(p[d], u(c, f, p[d + 1])); } return b; }, fromAS3Filter:function(a) { var d = new b.AVM1Object(c); d.alPrototype = m; for (var f = 0;f < p.length;f += 2) { d.alPut(p[f], k(c, a.axGetPublicProperty(p[f]), p[f + 1])); } return d; }, getAS3Class:h}; f.alPut(t, g); } function u(a, c, d) { switch(d) { case "String": return b.alToString(a, c); case "Boolean": return b.alToBoolean(a, c); case "Number": return b.alToNumber(a, c); case "Numbers": d = []; if (c) { for (var k = 0, p = c.alGet("length");k < p;k++) { d[k] = b.alToNumber(a, c.alGet(k)); } } return a.sec.createArray(d); case "BitmapData": return f.toAS3BitmapData(c); case "Point": return f.toAS3Point(c); } } function k(a, c, d) { switch(d) { case "String": ; case "Boolean": ; case "Number": return c; case "Numbers": d = []; if (c) { for (var k = 0, p = c.value.length;k < p;k++) { d[k] = +c.value[k]; } } return new b.Natives.AVM1ArrayNative(a, d); case "BitmapData": return f.AVM1BitmapData.fromAS3BitmapData(a, c); case "Point": return f.AVM1Point.fromAS3Point(a, c); } } function r(a, b) { for (var c = b.alPrototype;c && !c.asFilterConverter;) { c = c.alPrototype; } if (c) { return c.asFilterConverter.toAS3Filter(b); } } var d = function(c) { function d(b) { c.call(this, b); this.alSetOwnPrototypeProperty(new a(b, this)); } __extends(d, c); d.prototype.alConstruct = function(a) { a = new b.AVM1Object(this.context); a.alPrototype = this.alGetPrototypeProperty(); return a; }; return d; }(b.AVM1Function), a = function(a) { function c(d, f) { a.call(this, d); b.alDefineObjectProperties(this, {constructor:{value:f, writable:!0}, clone:{value:this.clone, writable:!0}}); } __extends(c, a); c.prototype.clone = function() { var a = new b.AVM1Object(this.context); a.alPrototype = this.alGetPrototypeProperty(); return a; }; return c; }(b.AVM1Object); f.createFiltersClasses = function(a) { var c = b.alNewObject(a), f = new d(a); c.alPut("BitmapFilter", f); q(a, c, f, "BevelFilter", "distance Number angle Number highlightColor Number highlightAlpha Number shadowColor Number shadowAlpha Number blurX Number blurY Number strength Number quality Number type String knockout Boolean".split(" ")); q(a, c, f, "BlurFilter", "blurX Number blurY Number quality Number".split(" ")); q(a, c, f, "ColorMatrixFilter", ["matrix", "Numbers"]); q(a, c, f, "ConvolutionFilter", "matrixX Number matrixY Number matrix Numbers divisor Number bias Number preserveAlpha Boolean clamp Boolean color Number alpha Number".split(" ")); q(a, c, f, "DisplacementMapFilter", "mapBitmap BitmapData mapPoint Point componentX Number componentY Number scaleX Number scaleY Number mode String color Number alpha Number".split(" ")); q(a, c, f, "DropShadowFilter", "distance Number angle Number color Number alpha Number blurX Number blurY Number strength Number quality Number inner Boolean knockout Boolean hideObject Boolean".split(" ")); q(a, c, f, "GlowFilter", "color Number alpha Number blurX Number blurY Number strength Number quality Number inner Boolean knockout Boolean".split(" ")); q(a, c, f, "GradientBevelFilter", "distance Number angle Number colors Numbers alphas Numbers ratios Numbers blurX Number blurY Number strength Number quality Number type String knockout Boolean".split(" ")); q(a, c, f, "GradientGlowFilter", "distance Number angle Number colors Numbers alphas Numbers ratios Numbers blurX Number blurY Number strength Number quality Number type String knockout Boolean".split(" ")); return c; }; var c = "BevelFilter BlurFilter ColorMatrixFilter ConvolutionFilter DisplacementMapFilter DropShadowFilter GlowFilter GradientBevelFilter GradientGlowFilter".split(" "); f.convertToAS3Filter = r; f.convertToAS3Filters = function(a, b) { var c = []; if (b) { for (var d = 0, f = b.alGet("length");d < f;d++) { var h = r(a, b.alGet(d)); h && c.push(h); } } return a.sec.createArray(c); }; f.convertFromAS3Filters = function(a, d) { var f = []; if (d) { for (var g = a.globals.alGet("flash").alGet("filters"), k = 0, h = d.axGetPublicProperty("length");k < h;k++) { var m = d.axGetPublicProperty(k); c.forEach(function(a) { a = g.alGet(a).alGetPrototypeProperty(); a.asFilterConverter && a.asFilterConverter.getAS3Class().axIsType(m) && f.push(a.asFilterConverter.fromAS3Filter(m)); }); } } return new b.Natives.AVM1ArrayNative(a, f); }; })(b.Lib || (b.Lib = {})); })(f.AVM1 || (f.AVM1 = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(g) { function q(b, a, c, e, f, k) { a = new b.sec.flash.net.URLRequest(a); c && (a.method = c); e && (a.contentType = e); f && (a.data = f); var t = new b.sec.flash.net.URLLoader(a); t.dataFormat = "text"; var p = b.sec.boxFunction(function(a) { t.removeEventListener(u.events.Event.COMPLETE, p); g.avm1BroadcastEvent(b, k, "onData", [t.data]); }); t.addEventListener(u.events.Event.COMPLETE, p); k._as3Loader = t; } var u = f.AVMX.AS.flash; g.loadAVM1DataObject = q; var k = function(d) { function a(a) { d.call(this, a); this.alSetOwnPrototypeProperty(new r(a, this)); } __extends(a, d); a.prototype.alConstruct = function(a) { a = new b.AVM1Object(this.context); a.alPrototype = this.alGetPrototypeProperty(); a.isAVM1DataObject = !0; return a; }; a.prototype.alCall = function(a, b) { return this.alConstruct(b); }; return a; }(b.AVM1Function); g.AVM1LoadVarsFunction = k; var r = function(d) { function a(a, e) { d.call(this, a); b.alDefineObjectProperties(this, {constructor:{value:e, writable:!0}, toString:{value:this._toString}, load:{value:this.load}, onData:{value:this.defaultOnData}, decode:{value:this.decode}, send:{value:this.load}, sendAndload:{value:this.load}}); } __extends(a, d); a.prototype.getBytesLoaded = function() { return this._as3Loader ? this._as3Loader.bytesLoaded : void 0; }; a.prototype.getBytesTotal = function() { return this._as3Loader ? this._as3Loader.bytesTotal : void 0; }; a.prototype.load = function(a) { a = b.alCoerceString(this.context, a); if (!a) { return !1; } q(this.context, a, null, null, null, this); return !0; }; a.prototype.defaultOnData = function(b) { f.isNullOrUndefined(b) ? g.avm1BroadcastEvent(this.context, this, "onLoad", [!1]) : (a.prototype.decode.call(this, b), this.alPut("loaded", !0), g.avm1BroadcastEvent(this.context, this, "onLoad", [!0])); }; a.prototype.decode = function(a) { a = b.alCoerceString(this.context, a); var d = new this.context.sec.flash.net.URLVariables; d._ignoreDecodingErrors = !0; d.decode(a); f.AVMX.forEachPublicProperty(d, function(a, b) { "string" === typeof b && this.alPut(a, b); }, this); }; a.prototype._toString = function() { var a = this.context, d = new a.sec.flash.net.URLVariables; b.alForEachProperty(this, function(f) { this.alHasOwnProperty(f) && d.axSetPublicProperty(f, b.alToString(a, this.alGet(f))); }, this); return d.axCallPublicProperty("toString", null); }; a.prototype.send = function(a, d, g) { b.alCoerceString(this.context, a); f.isNullOrUndefined(g) || b.alCoerceString(this.context, g); f.Debug.notImplemented("AVM1LoadVarsPrototype.send"); return !1; }; a.prototype.sendAndLoad = function(a, d, g) { a = b.alCoerceString(this.context, a); g = f.isNullOrUndefined(g) ? "POST" : b.alCoerceString(this.context, g); if (!(a && d instanceof b.AVM1Object && d.isAVM1DataObject)) { return !1; } var k = this.alGet("contentType"), k = f.isNullOrUndefined(k) ? "application/x-www-form-urlencoded" : b.alCoerceString(this.context, k), t = b.alToString(this.context, this); q(this.context, a, g, k, t, d); return !0; }; return a; }(b.AVM1Object); g.AVM1LoadVarsPrototype = r; })(b.Lib || (b.Lib = {})); })(f.AVM1 || (f.AVM1 = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(g) { function q(a) { if (!(a instanceof b.AVM1Object)) { return null; } var c = a.context; return b.alInstanceOf(c, a, c.globals.XMLNode) ? a.as3XMLNode : null; } function u(a, d) { if (!f.isNullOrUndefined(d)) { var e = d._as2Node; e || (e = new b.AVM1Object(a), e.alPrototype = a.globals.XMLNode.alGetPrototypeProperty(), c.prototype.initializeFromAS3Node.call(e, d)); return e; } } var k = f.AVMX.axCoerceString, r; (function(a) { a[a.ELEMENT_NODE = 1] = "ELEMENT_NODE"; a[a.TEXT_NODE = 3] = "TEXT_NODE"; })(r || (r = {})); r = function(a) { function d(b) { a.call(this, b); this.alSetOwnPrototypeProperty(new c(b, this)); } __extends(d, a); d.prototype.alConstruct = function(a) { if (!a && 2 > a.length) { f.Debug.notImplemented("Unsupported amount of parameters for AVM1XMLNode constructor"); } else { var d = b.alCoerceNumber(this.context, a[0]); a = b.alCoerceString(this.context, a[1]); if (1 !== d && 3 !== d) { f.Debug.notImplemented("Unsupported AVM1XMLNode type: " + d); } else { var e = new b.AVM1Object(this.context); e.alPrototype = this.alGetPrototypeProperty(); c.prototype.initializeNode.call(e, d, a); return e; } } }; d.prototype.alCall = function(a, b) { return this.alConstruct(b); }; return d; }(b.AVM1Function); g.AVM1XMLNodeFunction = r; var d = function(a) { function c(d, e) { a.call(this, d); this._as3XMLNode = e; this._cachedNodePropertyDescriptor = {flags:70, value:void 0}; b.alDefineObjectProperties(this, {length:{get:this.getLength}}); } __extends(c, a); Object.defineProperty(c.prototype, "as3ChildNodes", {get:function() { return this._as3XMLNode.axGetPublicProperty("childNodes").value; }, enumerable:!0, configurable:!0}); c.prototype.getLength = function() { return this.as3ChildNodes.length; }; c.prototype.alGetOwnProperty = function(c) { if (b.alIsIndex(this.context, c)) { var d = b.alToInteger(this.context, c); if (0 <= d && d < this.as3ChildNodes.length) { return this._cachedNodePropertyDescriptor.value = u(this.context, this.as3ChildNodes[d]), this._cachedNodePropertyDescriptor; } } return a.prototype.alGetOwnProperty.call(this, c); }; return c; }(b.AVM1Object), a = function(a) { function c(b, d) { a.call(this, b); this.alPrototype = b.builtins.Object.alGetPrototypeProperty(); this._as3Attributes = d; this._cachedNodePropertyDescriptor = {flags:64, value:void 0}; } __extends(c, a); c.prototype.alGetOwnProperty = function(a) { a = b.alCoerceString(this.context, a); if (this._as3Attributes.axHasPublicProperty(a)) { return this._cachedNodePropertyDescriptor.value = this._as3Attributes.axGetPublicProperty(a), this._cachedNodePropertyDescriptor; } }; c.prototype.alSetOwnProperty = function(a, c) { var d = b.alCoerceString(this.context, a); if (c.flags & 64) { var e = b.alCoerceString(this.context, c.value); this._as3Attributes.axSetPublicProperty(d, e); } }; c.prototype.alHasOwnProperty = function(a) { a = b.alCoerceString(this.context, a); return this._as3Attributes.axHasPublicProperty(a); }; c.prototype.alDeleteOwnProperty = function(a) { a = b.alCoerceString(this.context, a); this._as3Attributes.axDeletePublicProperty(a); }; c.prototype.alGetOwnPropertiesKeys = function() { return this._as3Attributes.axGetEnumerableKeys().map(function(a) { return k(a); }); }; return c; }(b.AVM1Object), c = function(c) { function e(a, d) { c.call(this, a); b.alDefineObjectProperties(this, {constructor:{value:d, writable:!0}, attributes:{get:this.getAttributes, set:this.setAttributes}, childNodes:{get:this.getChildNodes}, firstChild:{get:this.getFirstChild}, lastChild:{get:this.getLastChild}, localName:{get:this.getLocalName}, namespaceURI:{get:this.getNamespaceURI}, nextSibling:{get:this.getNextSibling}, nodeName:{get:this.getNodeName, set:this.setNodeName}, nodeType:{get:this.getNodeType}, nodeValue:{get:this.getNodeValue, set:this.setNodeValue}, parentNode:{get:this.getParentNode}, prefix:{get:this.getPrefix}, previousSibling:{get:this.getPreviousSibling}, appendChild:{value:this.appendChild}, cloneNode:{value:this.cloneNode}, getNamespaceForPrefix:{value:this.getNamespaceForPrefix}, getPrefixForNamespace:{value:this.getPrefixForNamespace}, hasChildNodes:{value:this.hasChildNodes}, insertBefore:{value:this.insertBefore}, removeNode:{value:this.removeNode}, toString:{value:this._toString}}); } __extends(e, c); e.prototype.initializeNode = function(a, b) { this.as3XMLNode = new this.context.sec.flash.xml.XMLNode(a, b); this._childNodes = this._attributes = void 0; e.addMap(this.as3XMLNode, this); }; e.prototype.initializeFromAS3Node = function(a) { this.as3XMLNode = a; this._childNodes = this._attributes = void 0; e.addMap(this.as3XMLNode, this); }; e.prototype._toString = function() { return this.as3XMLNode.axCallPublicProperty("toString", null); }; e.prototype.appendChild = function(a) { this.as3XMLNode.axCallPublicProperty("appendChild", [q(a)]); }; e.prototype.getAttributes = function() { var b = this.as3XMLNode.axGetPublicProperty("attributes"); if (!f.isNullOrUndefined(b)) { return this._attributes || (this._attributes = new a(this.context, b)), this._attributes; } }; e.prototype.setAttributes = function(c) { var d = this; if (f.isNullOrUndefined(c)) { this._attributes = void 0; } else { if (c instanceof a) { this._attributes = c; } else { var e = this.context, g = e.sec.createObject(); b.alForEachProperty(c, function(a) { var c = b.alCoerceString(e, a); a = b.alCoerceString(e, d.alGet(a)); g.axSetPublicProperty(c, a); }, this); this._attributes = new a(e, g); } } }; e.prototype.getChildNodes = function() { this._childNodes || (this._childNodes = new d(this.context, this.as3XMLNode)); return this._childNodes; }; e.prototype.cloneNode = function(a) { a = b.alToBoolean(this.context, a); a = this.as3XMLNode.axCallPublicProperty("cloneNode", [a]); return u(this.context, a); }; e.prototype.getFirstChild = function() { return u(this.context, this.as3XMLNode.axGetPublicProperty("firstChild")); }; e.prototype.getNamespaceForPrefix = function(a) { return this.as3XMLNode.axCallPublicProperty("getNamespaceForPrefix", [a]); }; e.prototype.getPrefixForNamespace = function(a) { return this.as3XMLNode.axCallPublicProperty("getNamespaceForPrefix", [a]); }; e.prototype.hasChildNodes = function() { return this.as3XMLNode.axCallPublicProperty("hasChildNodes", null); }; e.prototype.insertBefore = function(a, b) { this.as3XMLNode.axCallPublicProperty("insertBefore", [q(a), q(b)]); }; e.prototype.getLastChild = function() { return u(this.context, this.as3XMLNode.axGetPublicProperty("lastChild")); }; e.prototype.getLocalName = function() { return this.as3XMLNode.axGetPublicProperty("localName"); }; e.prototype.getNamespaceURI = function() { return this.as3XMLNode.axGetPublicProperty("namespaceURI"); }; e.prototype.getNextSibling = function() { return u(this.context, this.as3XMLNode.axGetPublicProperty("nextSibling")); }; e.prototype.getNodeName = function() { return this.as3XMLNode.axGetPublicProperty("nodeName"); }; e.prototype.setNodeName = function(a) { a = b.alCoerceString(this.context, a); this.as3XMLNode.axSetPublicProperty("nodeName", a); }; e.prototype.getNodeType = function() { return this.as3XMLNode.axGetPublicProperty("nodeType"); }; e.prototype.getNodeValue = function() { return this.as3XMLNode.axGetPublicProperty("nodeValue"); }; e.prototype.setNodeValue = function(a) { a = b.alCoerceString(this.context, a); this.as3XMLNode.axSetPublicProperty("nodeValue", a); }; e.prototype.getParentNode = function() { return u(this.context, this.as3XMLNode.axGetPublicProperty("parentNode")); }; e.prototype.getPrefix = function() { return this.as3XMLNode.axGetPublicProperty("prefix"); }; e.prototype.getPreviousSibling = function() { return u(this.context, this.as3XMLNode.axGetPublicProperty("previousSibling")); }; e.prototype.removeNode = function() { this.as3XMLNode.axCallPublicProperty("removeNode", null); }; e.addMap = function(a, b) { a._as2Node = b; }; return e; }(b.AVM1Object); r = function(a) { function c(b, d) { a.call(this, b); this.alSetOwnPrototypeProperty(new e(b, this, d)); } __extends(c, a); c.prototype.alConstruct = function(a) { a = a && b.alCoerceString(this.context, a[0]); var c = new b.AVM1Object(this.context); c.alPrototype = this.alGetPrototypeProperty(); c.isAVM1DataObject = !0; e.prototype.initializeDocument.call(c, a); return c; }; c.prototype.alCall = function(a, b) { return this.alConstruct(b); }; return c; }(b.AVM1Function); g.AVM1XMLFunction = r; var e = function(a) { function d(c, e, f) { a.call(this, c); this.alPrototype = f.alGetPrototypeProperty(); b.alDefineObjectProperties(this, {constructor:{value:e, writable:!0}, addRequestHeader:{value:this.addRequestHeader}, createElement:{value:this.createElement}, createTextNode:{value:this.createTextNode}, getBytesLoaded:{value:this.getBytesLoaded}, getBytesTotal:{value:this.getBytesTotal}, ignoreWhite:{value:!1, writable:!0}, load:{value:this.load}, parseXML:{value:this.parseXML}, send:{value:this.send}, sendAndLoad:{value:this.sendAndLoad}, onData:{value:this.defaultOnData, writable:!0}}); } __extends(d, a); d.prototype.initializeDocument = function(a) { a = b.alCoerceString(this.context, a) || null; a = new this.context.sec.flash.xml.XMLDocument(a); c.prototype.initializeFromAS3Node.call(this, a); this.as3XMLDocument = a; }; d.prototype.addRequestHeader = function(a, b) { f.Debug.notImplemented("AVM1XMLPrototype.addRequestHeader"); }; d.prototype.createElement = function(a) { a = b.alCoerceString(this.context, a); a = this.as3XMLDocument.axCallPublicProperty("createElement", [a]); return u(this.context, a); }; d.prototype.createTextNode = function(a) { a = b.alCoerceString(this.context, a); a = this.as3XMLDocument.axCallPublicProperty("createTextNode", [a]); return u(this.context, a); }; d.prototype.getBytesLoaded = function() { return this._as3Loader ? this._as3Loader.bytesLoaded : void 0; }; d.prototype.getBytesTotal = function() { return this._as3Loader ? this._as3Loader.bytesTotal : void 0; }; d.prototype.load = function(a) { a = b.alCoerceString(this.context, a); if (!a) { return !1; } g.loadAVM1DataObject(this.context, a, null, null, null, this); return !0; }; d.prototype.defaultOnData = function(a) { f.isNullOrUndefined(a) ? g.avm1BroadcastEvent(this.context, this, "onLoad", [!1]) : (d.prototype.parseXML.call(this, a), this.alPut("loaded", !0), g.avm1BroadcastEvent(this.context, this, "onLoad", [!0])); }; d.prototype.parseXML = function(a) { a = b.alCoerceString(this.context, a); this.as3XMLDocument.axSetPublicProperty("ignoreWhite", b.alToBoolean(this.context, this.alGet("ignoreWhite"))); this.as3XMLDocument.axCallPublicProperty("parseXML", [a]); }; d.prototype.send = function(a, c, d) { b.alCoerceString(this.context, a); f.isNullOrUndefined(c) || b.alCoerceString(this.context, c); f.isNullOrUndefined(d) || b.alCoerceString(this.context, d); f.Debug.notImplemented("AVM1XMLPrototype.send"); return !1; }; d.prototype.sendAndLoad = function(a, c) { if ((a = b.alCoerceString(this.context, a)) && c.isAVM1DataObject) { f.Debug.somewhatImplemented("AVM1XMLPrototype.send"); var d = this.alGet("contentType"), d = f.isNullOrUndefined(d) ? void 0 : b.alCoerceString(this.context, d), e = b.alToString(this.context, this); g.loadAVM1DataObject(this.context, a, "POST", d, e, c); } }; return d; }(b.AVM1Object); })(b.Lib || (b.Lib = {})); })(f.AVM1 || (f.AVM1 = {})); })(Shumway || (Shumway = {})); console.timeEnd("Load AVM1 Dependencies"); (function(f) { (function(b) { function g(b, c, d) { return a && d ? "string" === typeof c ? (b = f.ColorUtilities.cssStyleToRGBA(c), f.ColorUtilities.rgbaToCSSStyle(d.transformRGBA(b))) : c instanceof CanvasGradient && c._template ? c._template.createCanvasGradient(b, d) : c : c; } var q = f.NumberUtilities.clamp; (function(a) { a[a.None = 0] = "None"; a[a.Brief = 1] = "Brief"; a[a.Verbose = 2] = "Verbose"; })(b.TraceLevel || (b.TraceLevel = {})); var u = f.Metrics.Counter.instance; b.frameCounter = new f.Metrics.Counter(!0); b.traceLevel = 2; b.writer = null; b.frameCount = function(a) { u.count(a); b.frameCounter.count(a); }; b.timelineBuffer = new f.Tools.Profiler.TimelineBuffer("GFX"); b.enterTimeline = function(a, b) { }; b.leaveTimeline = function(a, b) { }; var k = null, r = null, d = null, a = !0; a && "undefined" !== typeof CanvasRenderingContext2D && (k = CanvasGradient.prototype.addColorStop, r = CanvasRenderingContext2D.prototype.createLinearGradient, d = CanvasRenderingContext2D.prototype.createRadialGradient, CanvasRenderingContext2D.prototype.createLinearGradient = function(a, b, c, d) { return (new e(a, b, c, d)).createCanvasGradient(this, null); }, CanvasRenderingContext2D.prototype.createRadialGradient = function(a, b, c, d, e, f) { return (new l(a, b, c, d, e, f)).createCanvasGradient(this, null); }, CanvasGradient.prototype.addColorStop = function(a, b) { k.call(this, a, b); this._template.addColorStop(a, b); }); var c = function() { return function(a, b) { this.offset = a; this.color = b; }; }(), e = function() { function a(b, c, d, e) { this.x0 = b; this.y0 = c; this.x1 = d; this.y1 = e; this.colorStops = []; } a.prototype.addColorStop = function(a, b) { this.colorStops.push(new c(a, b)); }; a.prototype.createCanvasGradient = function(a, b) { for (var c = r.call(a, this.x0, this.y0, this.x1, this.y1), d = this.colorStops, e = 0;e < d.length;e++) { var f = d[e], h = f.offset, f = f.color, f = b ? g(a, f, b) : f; k.call(c, h, f); } c._template = this; c._transform = this._transform; return c; }; return a; }(), l = function() { function a(b, c, d, e, f, g) { this.x0 = b; this.y0 = c; this.r0 = d; this.x1 = e; this.y1 = f; this.r1 = g; this.colorStops = []; } a.prototype.addColorStop = function(a, b) { this.colorStops.push(new c(a, b)); }; a.prototype.createCanvasGradient = function(a, b) { for (var c = d.call(a, this.x0, this.y0, this.r0, this.x1, this.y1, this.r1), e = this.colorStops, f = 0;f < e.length;f++) { var h = e[f], m = h.offset, h = h.color, h = b ? g(a, h, b) : h; k.call(c, m, h); } c._template = this; c._transform = this._transform; return c; }; return a; }(), n; (function(a) { a[a.ClosePath = 1] = "ClosePath"; a[a.MoveTo = 2] = "MoveTo"; a[a.LineTo = 3] = "LineTo"; a[a.QuadraticCurveTo = 4] = "QuadraticCurveTo"; a[a.BezierCurveTo = 5] = "BezierCurveTo"; a[a.ArcTo = 6] = "ArcTo"; a[a.Rect = 7] = "Rect"; a[a.Arc = 8] = "Arc"; a[a.Save = 9] = "Save"; a[a.Restore = 10] = "Restore"; a[a.Transform = 11] = "Transform"; })(n || (n = {})); var t = function() { function a(b) { this._commands = new Uint8Array(a._arrayBufferPool.acquire(8), 0, 8); this._commandPosition = 0; this._data = new Float64Array(a._arrayBufferPool.acquire(8 * Float64Array.BYTES_PER_ELEMENT), 0, 8); this._dataPosition = 0; b instanceof a && this.addPath(b); } a._apply = function(a, b) { var c = a._commands, d = a._data, e = 0, f = 0; b.beginPath(); for (var g = a._commandPosition;e < g;) { switch(c[e++]) { case 1: b.closePath(); break; case 2: b.moveTo(d[f++], d[f++]); break; case 3: b.lineTo(d[f++], d[f++]); break; case 4: b.quadraticCurveTo(d[f++], d[f++], d[f++], d[f++]); break; case 5: b.bezierCurveTo(d[f++], d[f++], d[f++], d[f++], d[f++], d[f++]); break; case 6: b.arcTo(d[f++], d[f++], d[f++], d[f++], d[f++]); break; case 7: b.rect(d[f++], d[f++], d[f++], d[f++]); break; case 8: b.arc(d[f++], d[f++], d[f++], d[f++], d[f++], !!d[f++]); break; case 9: b.save(); break; case 10: b.restore(); break; case 11: b.transform(d[f++], d[f++], d[f++], d[f++], d[f++], d[f++]); } } }; a.prototype._ensureCommandCapacity = function(b) { this._commands = a._arrayBufferPool.ensureUint8ArrayLength(this._commands, b); }; a.prototype._ensureDataCapacity = function(b) { this._data = a._arrayBufferPool.ensureFloat64ArrayLength(this._data, b); }; a.prototype._writeCommand = function(a) { this._commandPosition >= this._commands.length && this._ensureCommandCapacity(this._commandPosition + 1); this._commands[this._commandPosition++] = a; }; a.prototype._writeData = function(a, b, c, d, e, f) { var g = arguments.length; this._dataPosition + g >= this._data.length && this._ensureDataCapacity(this._dataPosition + g); var h = this._data, m = this._dataPosition; h[m] = a; h[m + 1] = b; 2 < g && (h[m + 2] = c, h[m + 3] = d, 4 < g && (h[m + 4] = e, 6 === g && (h[m + 5] = f))); this._dataPosition += g; }; a.prototype.closePath = function() { this._writeCommand(1); }; a.prototype.moveTo = function(a, b) { this._writeCommand(2); this._writeData(a, b); }; a.prototype.lineTo = function(a, b) { this._writeCommand(3); this._writeData(a, b); }; a.prototype.quadraticCurveTo = function(a, b, c, d) { this._writeCommand(4); this._writeData(a, b, c, d); }; a.prototype.bezierCurveTo = function(a, b, c, d, e, f) { this._writeCommand(5); this._writeData(a, b, c, d, e, f); }; a.prototype.arcTo = function(a, b, c, d, e) { this._writeCommand(6); this._writeData(a, b, c, d, e); }; a.prototype.rect = function(a, b, c, d) { this._writeCommand(7); this._writeData(a, b, c, d); }; a.prototype.arc = function(a, b, c, d, e, f) { this._writeCommand(8); this._writeData(a, b, c, d, e, +f); }; a.prototype.addPath = function(a, b) { b && (this._writeCommand(9), this._writeCommand(11), this._writeData(b.a, b.b, b.c, b.d, b.e, b.f)); var c = this._commandPosition + a._commandPosition; c >= this._commands.length && this._ensureCommandCapacity(c); for (var d = this._commands, e = a._commands, f = this._commandPosition, g = 0;f < c;f++) { d[f] = e[g++]; } this._commandPosition = c; c = this._dataPosition + a._dataPosition; c >= this._data.length && this._ensureDataCapacity(c); d = this._data; e = a._data; f = this._dataPosition; for (g = 0;f < c;f++) { d[f] = e[g++]; } this._dataPosition = c; b && this._writeCommand(10); }; a._arrayBufferPool = new f.ArrayBufferPool; return a; }(); b.Path = t; if ("undefined" !== typeof CanvasRenderingContext2D && ("undefined" === typeof Path2D || !Path2D.prototype.addPath)) { var p = CanvasRenderingContext2D.prototype.fill; CanvasRenderingContext2D.prototype.fill = function(a, b) { arguments.length && (a instanceof t ? t._apply(a, this) : b = a); b ? p.call(this, b) : p.call(this); }; var h = CanvasRenderingContext2D.prototype.stroke; CanvasRenderingContext2D.prototype.stroke = function(a, b) { arguments.length && (a instanceof t ? t._apply(a, this) : b = a); b ? h.call(this, b) : h.call(this); }; var m = CanvasRenderingContext2D.prototype.clip; CanvasRenderingContext2D.prototype.clip = function(a, b) { arguments.length && (a instanceof t ? t._apply(a, this) : b = a); b ? m.call(this, b) : m.call(this); }; window.Path2D = t; } if ("undefined" !== typeof CanvasPattern && Path2D.prototype.addPath) { n = function(a) { this._transform = a; this._template && (this._template._transform = a); }; CanvasPattern.prototype.setTransform || (CanvasPattern.prototype.setTransform = n); CanvasGradient.prototype.setTransform || (CanvasGradient.prototype.setTransform = n); var v = CanvasRenderingContext2D.prototype.fill, w = CanvasRenderingContext2D.prototype.stroke; CanvasRenderingContext2D.prototype.fill = function(a, c) { var d = !!this.fillStyle._transform; if ((this.fillStyle instanceof CanvasPattern || this.fillStyle instanceof CanvasGradient) && d && a instanceof Path2D) { var d = this.fillStyle._transform, e; try { e = d.inverse(); } catch (f) { e = d = b.Geometry.Matrix.createIdentitySVGMatrix(); } this.transform(d.a, d.b, d.c, d.d, d.e, d.f); d = new Path2D; d.addPath(a, e); v.call(this, d, c); this.transform(e.a, e.b, e.c, e.d, e.e, e.f); } else { 0 === arguments.length ? v.call(this) : 1 === arguments.length ? v.call(this, a) : 2 === arguments.length && v.call(this, a, c); } }; CanvasRenderingContext2D.prototype.stroke = function(a) { var b = !!this.strokeStyle._transform; if ((this.strokeStyle instanceof CanvasPattern || this.strokeStyle instanceof CanvasGradient) && b && a instanceof Path2D) { var c = this.strokeStyle._transform, b = c.inverse(); this.transform(c.a, c.b, c.c, c.d, c.e, c.f); c = new Path2D; c.addPath(a, b); var d = this.lineWidth; this.lineWidth *= (b.a + b.d) / 2; w.call(this, c); this.transform(b.a, b.b, b.c, b.d, b.e, b.f); this.lineWidth = d; } else { 0 === arguments.length ? w.call(this) : 1 === arguments.length && w.call(this, a); } }; } "undefined" !== typeof CanvasRenderingContext2D && function() { function a() { return b.Geometry.Matrix.createSVGMatrixFromArray(this.mozCurrentTransform); } var c = "currentTransform" in CanvasRenderingContext2D.prototype; CanvasRenderingContext2D.prototype.flashStroke = function(a, b) { if (c) { var d = this.currentTransform, e = new Path2D; e.addPath(a, d); var g = this.lineWidth; this.setTransform(1, 0, 0, 1, 0, 0); switch(b) { case 1: this.lineWidth = q(g * (f.getScaleX(d) + f.getScaleY(d)) / 2, 1, 1024); break; case 2: this.lineWidth = q(g * f.getScaleY(d), 1, 1024); break; case 3: this.lineWidth = q(g * f.getScaleX(d), 1, 1024); } this.stroke(e); this.setTransform(d.a, d.b, d.c, d.d, d.e, d.f); this.lineWidth = g; } else { this.stroke(a); } }; if (!c) { if ("mozCurrentTransform" in CanvasRenderingContext2D.prototype) { Object.defineProperty(CanvasRenderingContext2D.prototype, "currentTransform", {get:a}), c = !0; } else { var d = CanvasRenderingContext2D.prototype.setTransform; CanvasRenderingContext2D.prototype.setTransform = function(a, b, c, e, f, g) { var h = this.currentTransform; h.a = a; h.b = b; h.c = c; h.d = e; h.e = f; h.f = g; d.call(this, a, b, c, e, f, g); }; Object.defineProperty(CanvasRenderingContext2D.prototype, "currentTransform", {get:function() { return this._currentTransform || (this._currentTransform = b.Geometry.Matrix.createIdentitySVGMatrix()); }}); } } }(); if ("undefined" !== typeof CanvasRenderingContext2D && void 0 === CanvasRenderingContext2D.prototype.globalColorMatrix) { var H = CanvasRenderingContext2D.prototype.fill, K = CanvasRenderingContext2D.prototype.stroke, z = CanvasRenderingContext2D.prototype.fillText, A = CanvasRenderingContext2D.prototype.strokeText; Object.defineProperty(CanvasRenderingContext2D.prototype, "globalColorMatrix", {get:function() { return this._globalColorMatrix ? this._globalColorMatrix.clone() : null; }, set:function(a) { a ? this._globalColorMatrix ? this._globalColorMatrix.set(a) : this._globalColorMatrix = a.clone() : this._globalColorMatrix = null; }, enumerable:!0, configurable:!0}); CanvasRenderingContext2D.prototype.fill = function(a, b) { var c = null; this._globalColorMatrix && (c = this.fillStyle, this.fillStyle = g(this, this.fillStyle, this._globalColorMatrix)); 0 === arguments.length ? H.call(this) : 1 === arguments.length ? H.call(this, a) : 2 === arguments.length && H.call(this, a, b); c && (this.fillStyle = c); }; CanvasRenderingContext2D.prototype.stroke = function(a, b) { var c = null; this._globalColorMatrix && (c = this.strokeStyle, this.strokeStyle = g(this, this.strokeStyle, this._globalColorMatrix)); 0 === arguments.length ? K.call(this) : 1 === arguments.length && K.call(this, a); c && (this.strokeStyle = c); }; CanvasRenderingContext2D.prototype.fillText = function(a, b, c, d) { var e = null; this._globalColorMatrix && (e = this.fillStyle, this.fillStyle = g(this, this.fillStyle, this._globalColorMatrix)); 3 === arguments.length ? z.call(this, a, b, c) : 4 === arguments.length ? z.call(this, a, b, c, d) : f.Debug.unexpected(); e && (this.fillStyle = e); }; CanvasRenderingContext2D.prototype.strokeText = function(a, b, c, d) { var e = null; this._globalColorMatrix && (e = this.strokeStyle, this.strokeStyle = g(this, this.strokeStyle, this._globalColorMatrix)); 3 === arguments.length ? A.call(this, a, b, c) : 4 === arguments.length ? A.call(this, a, b, c, d) : f.Debug.unexpected(); e && (this.strokeStyle = e); }; } })(f.GFX || (f.GFX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { b.ScreenShot = function() { return function(b, f, u, k) { this.dataURL = b; this.w = f; this.h = u; this.pixelRatio = k; }; }(); })(f.GFX || (f.GFX = {})); })(Shumway || (Shumway = {})); (function(f) { var b = function() { function b() { this._count = 0; this._head = this._tail = null; } Object.defineProperty(b.prototype, "count", {get:function() { return this._count; }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "head", {get:function() { return this._head; }, enumerable:!0, configurable:!0}); b.prototype._unshift = function(b) { 0 === this._count ? this._head = this._tail = b : (b.next = this._head, this._head = b.next.previous = b); this._count++; }; b.prototype._remove = function(b) { b === this._head && b === this._tail ? this._head = this._tail = null : b === this._head ? (this._head = b.next, this._head.previous = null) : b == this._tail ? (this._tail = b.previous, this._tail.next = null) : (b.previous.next = b.next, b.next.previous = b.previous); b.previous = b.next = null; this._count--; }; b.prototype.use = function(b) { this._head !== b && ((b.next || b.previous || this._tail === b) && this._remove(b), this._unshift(b)); }; b.prototype.pop = function() { if (!this._tail) { return null; } var b = this._tail; this._remove(b); return b; }; b.prototype.visit = function(b, f) { void 0 === f && (f = !0); for (var g = f ? this._head : this._tail;g && b(g);) { g = f ? g.next : g.previous; } }; return b; }(); f.LRUList = b; f.getScaleX = function(b) { return b.a; }; f.getScaleY = function(b) { return b.d; }; })(Shumway || (Shumway = {})); var Shumway$$inline_676 = Shumway || (Shumway = {}), GFX$$inline_677 = Shumway$$inline_676.GFX || (Shumway$$inline_676.GFX = {}), Option$$inline_678 = Shumway$$inline_676.Options.Option, OptionSet$$inline_679 = Shumway$$inline_676.Options.OptionSet, shumwayOptions$$inline_680 = Shumway$$inline_676.Settings.shumwayOptions, rendererOptions$$inline_681 = shumwayOptions$$inline_680.register(new OptionSet$$inline_679("Renderer Options")); GFX$$inline_677.imageUpdateOption = rendererOptions$$inline_681.register(new Option$$inline_678("", "imageUpdate", "boolean", !0, "Enable image updating.")); GFX$$inline_677.imageConvertOption = rendererOptions$$inline_681.register(new Option$$inline_678("", "imageConvert", "boolean", !0, "Enable image conversion.")); GFX$$inline_677.stageOptions = shumwayOptions$$inline_680.register(new OptionSet$$inline_679("Stage Renderer Options")); GFX$$inline_677.forcePaint = GFX$$inline_677.stageOptions.register(new Option$$inline_678("", "forcePaint", "boolean", !1, "Force repainting.")); GFX$$inline_677.ignoreViewport = GFX$$inline_677.stageOptions.register(new Option$$inline_678("", "ignoreViewport", "boolean", !1, "Cull elements outside of the viewport.")); GFX$$inline_677.viewportLoupeDiameter = GFX$$inline_677.stageOptions.register(new Option$$inline_678("", "viewportLoupeDiameter", "number", 256, "Size of the viewport loupe.", {range:{min:1, max:1024, step:1}})); GFX$$inline_677.disableClipping = GFX$$inline_677.stageOptions.register(new Option$$inline_678("", "disableClipping", "boolean", !1, "Disable clipping.")); GFX$$inline_677.debugClipping = GFX$$inline_677.stageOptions.register(new Option$$inline_678("", "debugClipping", "boolean", !1, "Disable clipping.")); GFX$$inline_677.hud = GFX$$inline_677.stageOptions.register(new Option$$inline_678("", "hud", "boolean", !1, "Enable HUD.")); var webGLOptions$$inline_682 = GFX$$inline_677.stageOptions.register(new OptionSet$$inline_679("WebGL Options")); GFX$$inline_677.perspectiveCamera = webGLOptions$$inline_682.register(new Option$$inline_678("", "pc", "boolean", !1, "Use perspective camera.")); GFX$$inline_677.perspectiveCameraFOV = webGLOptions$$inline_682.register(new Option$$inline_678("", "pcFOV", "number", 60, "Perspective Camera FOV.")); GFX$$inline_677.perspectiveCameraDistance = webGLOptions$$inline_682.register(new Option$$inline_678("", "pcDistance", "number", 2, "Perspective Camera Distance.")); GFX$$inline_677.perspectiveCameraAngle = webGLOptions$$inline_682.register(new Option$$inline_678("", "pcAngle", "number", 0, "Perspective Camera Angle.")); GFX$$inline_677.perspectiveCameraAngleRotate = webGLOptions$$inline_682.register(new Option$$inline_678("", "pcRotate", "boolean", !1, "Rotate Use perspective camera.")); GFX$$inline_677.perspectiveCameraSpacing = webGLOptions$$inline_682.register(new Option$$inline_678("", "pcSpacing", "number", .01, "Element Spacing.")); GFX$$inline_677.perspectiveCameraSpacingInflate = webGLOptions$$inline_682.register(new Option$$inline_678("", "pcInflate", "boolean", !1, "Rotate Use perspective camera.")); GFX$$inline_677.drawTiles = webGLOptions$$inline_682.register(new Option$$inline_678("", "drawTiles", "boolean", !1, "Draw WebGL Tiles")); GFX$$inline_677.drawSurfaces = webGLOptions$$inline_682.register(new Option$$inline_678("", "drawSurfaces", "boolean", !1, "Draw WebGL Surfaces.")); GFX$$inline_677.drawSurface = webGLOptions$$inline_682.register(new Option$$inline_678("", "drawSurface", "number", -1, "Draw WebGL Surface #")); GFX$$inline_677.drawElements = webGLOptions$$inline_682.register(new Option$$inline_678("", "drawElements", "boolean", !0, "Actually call gl.drawElements. This is useful to test if the GPU is the bottleneck.")); GFX$$inline_677.disableSurfaceUploads = webGLOptions$$inline_682.register(new Option$$inline_678("", "disableSurfaceUploads", "boolean", !1, "Disable surface uploads.")); GFX$$inline_677.premultipliedAlpha = webGLOptions$$inline_682.register(new Option$$inline_678("", "premultipliedAlpha", "boolean", !1, "Set the premultipliedAlpha flag on getContext().")); GFX$$inline_677.unpackPremultiplyAlpha = webGLOptions$$inline_682.register(new Option$$inline_678("", "unpackPremultiplyAlpha", "boolean", !0, "Use UNPACK_PREMULTIPLY_ALPHA_WEBGL in pixelStorei.")); var factorChoices$$inline_683 = {ZERO:0, ONE:1, SRC_COLOR:768, ONE_MINUS_SRC_COLOR:769, DST_COLOR:774, ONE_MINUS_DST_COLOR:775, SRC_ALPHA:770, ONE_MINUS_SRC_ALPHA:771, DST_ALPHA:772, ONE_MINUS_DST_ALPHA:773, SRC_ALPHA_SATURATE:776, CONSTANT_COLOR:32769, ONE_MINUS_CONSTANT_COLOR:32770, CONSTANT_ALPHA:32771, ONE_MINUS_CONSTANT_ALPHA:32772}; GFX$$inline_677.sourceBlendFactor = webGLOptions$$inline_682.register(new Option$$inline_678("", "sourceBlendFactor", "number", factorChoices$$inline_683.ONE, "", {choices:factorChoices$$inline_683})); GFX$$inline_677.destinationBlendFactor = webGLOptions$$inline_682.register(new Option$$inline_678("", "destinationBlendFactor", "number", factorChoices$$inline_683.ONE_MINUS_SRC_ALPHA, "", {choices:factorChoices$$inline_683})); var canvas2DOptions$$inline_684 = GFX$$inline_677.stageOptions.register(new OptionSet$$inline_679("Canvas2D Options")); GFX$$inline_677.clipDirtyRegions = canvas2DOptions$$inline_684.register(new Option$$inline_678("", "clipDirtyRegions", "boolean", !1, "Clip dirty regions.")); GFX$$inline_677.clipCanvas = canvas2DOptions$$inline_684.register(new Option$$inline_678("", "clipCanvas", "boolean", !1, "Clip Regions.")); GFX$$inline_677.cull = canvas2DOptions$$inline_684.register(new Option$$inline_678("", "cull", "boolean", !1, "Enable culling.")); GFX$$inline_677.snapToDevicePixels = canvas2DOptions$$inline_684.register(new Option$$inline_678("", "snapToDevicePixels", "boolean", !1, "")); GFX$$inline_677.imageSmoothing = canvas2DOptions$$inline_684.register(new Option$$inline_678("", "imageSmoothing", "boolean", !1, "")); GFX$$inline_677.masking = canvas2DOptions$$inline_684.register(new Option$$inline_678("", "masking", "boolean", !0, "Composite Mask.")); GFX$$inline_677.blending = canvas2DOptions$$inline_684.register(new Option$$inline_678("", "blending", "boolean", !0, "")); GFX$$inline_677.debugLayers = canvas2DOptions$$inline_684.register(new Option$$inline_678("", "debugLayers", "boolean", !1, "")); GFX$$inline_677.filters = canvas2DOptions$$inline_684.register(new Option$$inline_678("", "filters", "boolean", !0, "")); GFX$$inline_677.cacheShapes = canvas2DOptions$$inline_684.register(new Option$$inline_678("", "cacheShapes", "boolean", !0, "")); GFX$$inline_677.cacheShapesMaxSize = canvas2DOptions$$inline_684.register(new Option$$inline_678("", "cacheShapesMaxSize", "number", 256, "", {range:{min:1, max:1024, step:1}})); GFX$$inline_677.cacheShapesThreshold = canvas2DOptions$$inline_684.register(new Option$$inline_678("", "cacheShapesThreshold", "number", 256, "", {range:{min:1, max:1024, step:1}})); (function(f) { (function(b) { (function(g) { function q(a, b, c, d) { var e = 1 - d; return a * e * e + 2 * b * e * d + c * d * d; } function u(a, b, c, d, e) { var f = e * e, g = 1 - e, k = g * g; return a * g * k + 3 * b * e * k + 3 * c * g * f + d * e * f; } var k = f.NumberUtilities.clamp, r = f.NumberUtilities.pow2, d = f.NumberUtilities.epsilonEquals; g.radianToDegrees = function(a) { return 180 * a / Math.PI; }; g.degreesToRadian = function(a) { return a * Math.PI / 180; }; g.quadraticBezier = q; g.quadraticBezierExtreme = function(a, b, c) { var d = (a - b) / (a - 2 * b + c); return 0 > d ? a : 1 < d ? c : q(a, b, c, d); }; g.cubicBezier = u; g.cubicBezierExtremes = function(a, b, c, d) { var e = b - a, f; f = 2 * (c - b); var g = d - c; e + g === f && (g *= 1.0001); var k = 2 * e - f, l = f - 2 * e, l = Math.sqrt(l * l - 4 * e * (e - f + g)); f = 2 * (e - f + g); e = (k + l) / f; k = (k - l) / f; l = []; 0 <= e && 1 >= e && l.push(u(a, b, c, d, e)); 0 <= k && 1 >= k && l.push(u(a, b, c, d, k)); return l; }; var a = function() { function a(b, c) { this.x = b; this.y = c; } a.prototype.setElements = function(a, b) { this.x = a; this.y = b; return this; }; a.prototype.set = function(a) { this.x = a.x; this.y = a.y; return this; }; a.prototype.dot = function(a) { return this.x * a.x + this.y * a.y; }; a.prototype.squaredLength = function() { return this.dot(this); }; a.prototype.distanceTo = function(a) { return Math.sqrt(this.dot(a)); }; a.prototype.sub = function(a) { this.x -= a.x; this.y -= a.y; return this; }; a.prototype.mul = function(a) { this.x *= a; this.y *= a; return this; }; a.prototype.clone = function() { return new a(this.x, this.y); }; a.prototype.toString = function(a) { void 0 === a && (a = 2); return "{x: " + this.x.toFixed(a) + ", y: " + this.y.toFixed(a) + "}"; }; a.prototype.inTriangle = function(a, b, c) { var d = a.y * c.x - a.x * c.y + (c.y - a.y) * this.x + (a.x - c.x) * this.y, e = a.x * b.y - a.y * b.x + (a.y - b.y) * this.x + (b.x - a.x) * this.y; if (0 > d != 0 > e) { return !1; } a = -b.y * c.x + a.y * (c.x - b.x) + a.x * (b.y - c.y) + b.x * c.y; 0 > a && (d = -d, e = -e, a = -a); return 0 < d && 0 < e && d + e < a; }; a.createEmpty = function() { return new a(0, 0); }; a.createEmptyPoints = function(b) { for (var c = [], d = 0;d < b;d++) { c.push(new a(0, 0)); } return c; }; return a; }(); g.Point = a; var c = function() { function a(b, c, d) { this.x = b; this.y = c; this.z = d; } a.prototype.setElements = function(a, b, c) { this.x = a; this.y = b; this.z = c; return this; }; a.prototype.set = function(a) { this.x = a.x; this.y = a.y; this.z = a.z; return this; }; a.prototype.dot = function(a) { return this.x * a.x + this.y * a.y + this.z * a.z; }; a.prototype.cross = function(a) { var b = this.z * a.x - this.x * a.z, c = this.x * a.y - this.y * a.x; this.x = this.y * a.z - this.z * a.y; this.y = b; this.z = c; return this; }; a.prototype.squaredLength = function() { return this.dot(this); }; a.prototype.sub = function(a) { this.x -= a.x; this.y -= a.y; this.z -= a.z; return this; }; a.prototype.mul = function(a) { this.x *= a; this.y *= a; this.z *= a; return this; }; a.prototype.normalize = function() { var a = Math.sqrt(this.squaredLength()); 1E-5 < a ? this.mul(1 / a) : this.setElements(0, 0, 0); return this; }; a.prototype.clone = function() { return new a(this.x, this.y, this.z); }; a.prototype.toString = function(a) { void 0 === a && (a = 2); return "{x: " + this.x.toFixed(a) + ", y: " + this.y.toFixed(a) + ", z: " + this.z.toFixed(a) + "}"; }; a.createEmpty = function() { return new a(0, 0, 0); }; a.createEmptyPoints = function(b) { for (var c = [], d = 0;d < b;d++) { c.push(new a(0, 0, 0)); } return c; }; return a; }(); g.Point3D = c; var e = function() { function b(a, c, d, e) { this.setElements(a, c, d, e); b.allocationCount++; } b.prototype.setElements = function(a, b, c, d) { this.x = a; this.y = b; this.w = c; this.h = d; }; b.prototype.set = function(a) { this.x = a.x; this.y = a.y; this.w = a.w; this.h = a.h; }; b.prototype.contains = function(a) { var b = a.x + a.w, c = a.y + a.h, d = this.x + this.w, e = this.y + this.h; return a.x >= this.x && a.x < d && a.y >= this.y && a.y < e && b > this.x && b <= d && c > this.y && c <= e; }; b.prototype.containsPoint = function(a) { return a.x >= this.x && a.x < this.x + this.w && a.y >= this.y && a.y < this.y + this.h; }; b.prototype.isContained = function(a) { for (var b = 0;b < a.length;b++) { if (a[b].contains(this)) { return !0; } } return !1; }; b.prototype.isSmallerThan = function(a) { return this.w < a.w && this.h < a.h; }; b.prototype.isLargerThan = function(a) { return this.w > a.w && this.h > a.h; }; b.prototype.union = function(a) { if (this.isEmpty()) { this.set(a); } else { if (!a.isEmpty()) { var b = this.x, c = this.y; this.x > a.x && (b = a.x); this.y > a.y && (c = a.y); var d = this.x + this.w; d < a.x + a.w && (d = a.x + a.w); var e = this.y + this.h; e < a.y + a.h && (e = a.y + a.h); this.x = b; this.y = c; this.w = d - b; this.h = e - c; } } }; b.prototype.isEmpty = function() { return 0 >= this.w || 0 >= this.h; }; b.prototype.setEmpty = function() { this.h = this.w = this.y = this.x = 0; }; b.prototype.intersect = function(a) { var c = b.createEmpty(); if (this.isEmpty() || a.isEmpty()) { return c.setEmpty(), c; } c.x = Math.max(this.x, a.x); c.y = Math.max(this.y, a.y); c.w = Math.min(this.x + this.w, a.x + a.w) - c.x; c.h = Math.min(this.y + this.h, a.y + a.h) - c.y; c.isEmpty() && c.setEmpty(); this.set(c); }; b.prototype.intersects = function(a) { if (this.isEmpty() || a.isEmpty()) { return !1; } var b = Math.max(this.x, a.x), c = Math.max(this.y, a.y), b = Math.min(this.x + this.w, a.x + a.w) - b; a = Math.min(this.y + this.h, a.y + a.h) - c; return !(0 >= b || 0 >= a); }; b.prototype.intersectsTransformedAABB = function(a, c) { var d = b._temporary; d.set(a); c.transformRectangleAABB(d); return this.intersects(d); }; b.prototype.intersectsTranslated = function(a, b, c) { if (this.isEmpty() || a.isEmpty()) { return !1; } var d = Math.max(this.x, a.x + b), e = Math.max(this.y, a.y + c); b = Math.min(this.x + this.w, a.x + b + a.w) - d; a = Math.min(this.y + this.h, a.y + c + a.h) - e; return !(0 >= b || 0 >= a); }; b.prototype.area = function() { return this.w * this.h; }; b.prototype.clone = function() { var a = b.allocate(); a.set(this); return a; }; b.allocate = function() { var a = b._dirtyStack; return a.length ? a.pop() : new b(12345, 67890, 12345, 67890); }; b.prototype.free = function() { b._dirtyStack.push(this); }; b.prototype.snap = function() { var a = Math.ceil(this.x + this.w), b = Math.ceil(this.y + this.h); this.x = Math.floor(this.x); this.y = Math.floor(this.y); this.w = a - this.x; this.h = b - this.y; return this; }; b.prototype.scale = function(a, b) { this.x *= a; this.y *= b; this.w *= a; this.h *= b; return this; }; b.prototype.offset = function(a, b) { this.x += a; this.y += b; return this; }; b.prototype.resize = function(a, b) { this.w += a; this.h += b; return this; }; b.prototype.expand = function(a, b) { this.offset(-a, -b).resize(2 * a, 2 * b); return this; }; b.prototype.getCenter = function() { return new a(this.x + this.w / 2, this.y + this.h / 2); }; b.prototype.getAbsoluteBounds = function() { return new b(0, 0, this.w, this.h); }; b.prototype.toString = function(a) { void 0 === a && (a = 2); return "{" + this.x.toFixed(a) + ", " + this.y.toFixed(a) + ", " + this.w.toFixed(a) + ", " + this.h.toFixed(a) + "}"; }; b.createEmpty = function() { var a = b.allocate(); a.setEmpty(); return a; }; b.createSquare = function() { return new b(-512, -512, 1024, 1024); }; b.createMaxI16 = function() { return new b(-32768, -32768, 65535, 65535); }; b.prototype.setMaxI16 = function() { this.setElements(-32768, -32768, 65535, 65535); }; b.prototype.getCorners = function(a) { a[0].x = this.x; a[0].y = this.y; a[1].x = this.x + this.w; a[1].y = this.y; a[2].x = this.x + this.w; a[2].y = this.y + this.h; a[3].x = this.x; a[3].y = this.y + this.h; }; b.allocationCount = 0; b._temporary = new b(0, 0, 0, 0); b._dirtyStack = []; return b; }(); g.Rectangle = e; var l = function() { function b(a) { this.corners = a.map(function(a) { return a.clone(); }); this.axes = [a[1].clone().sub(a[0]), a[3].clone().sub(a[0])]; this.origins = []; for (var c = 0;2 > c;c++) { this.axes[c].mul(1 / this.axes[c].squaredLength()), this.origins.push(a[0].dot(this.axes[c])); } } b.prototype.getBounds = function() { return b.getBounds(this.corners); }; b.getBounds = function(b) { for (var c = new a(Number.MAX_VALUE, Number.MAX_VALUE), d = new a(Number.MIN_VALUE, Number.MIN_VALUE), f = 0;4 > f;f++) { var g = b[f].x, h = b[f].y; c.x = Math.min(c.x, g); c.y = Math.min(c.y, h); d.x = Math.max(d.x, g); d.y = Math.max(d.y, h); } return new e(c.x, c.y, d.x - c.x, d.y - c.y); }; b.prototype.intersects = function(a) { return this.intersectsOneWay(a) && a.intersectsOneWay(this); }; b.prototype.intersectsOneWay = function(a) { for (var b = 0;2 > b;b++) { for (var c = 0;4 > c;c++) { var d = a.corners[c].dot(this.axes[b]), e, f; 0 === c ? f = e = d : d < e ? e = d : d > f && (f = d); } if (e > 1 + this.origins[b] || f < this.origins[b]) { return !1; } } return !0; }; return b; }(); g.OBB = l; (function(a) { a[a.Unknown = 0] = "Unknown"; a[a.Identity = 1] = "Identity"; a[a.Translation = 2] = "Translation"; })(g.MatrixType || (g.MatrixType = {})); var n = function() { function a(b, c, d, e, f, g) { this._data = new Float64Array(6); this._type = 0; this.setElements(b, c, d, e, f, g); a.allocationCount++; } Object.defineProperty(a.prototype, "a", {get:function() { return this._data[0]; }, set:function(a) { this._data[0] = a; this._type = 0; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "b", {get:function() { return this._data[1]; }, set:function(a) { this._data[1] = a; this._type = 0; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "c", {get:function() { return this._data[2]; }, set:function(a) { this._data[2] = a; this._type = 0; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "d", {get:function() { return this._data[3]; }, set:function(a) { this._data[3] = a; this._type = 0; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "tx", {get:function() { return this._data[4]; }, set:function(a) { this._data[4] = a; 1 === this._type && (this._type = 2); }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "ty", {get:function() { return this._data[5]; }, set:function(a) { this._data[5] = a; 1 === this._type && (this._type = 2); }, enumerable:!0, configurable:!0}); a._createSVGMatrix = function() { a._svg || (a._svg = document.createElementNS("http://www.w3.org/2000/svg", "svg")); return a._svg.createSVGMatrix(); }; a.prototype.setElements = function(a, b, c, d, e, f) { var g = this._data; g[0] = a; g[1] = b; g[2] = c; g[3] = d; g[4] = e; g[5] = f; this._type = 0; }; a.prototype.set = function(a) { var b = this._data, c = a._data; b[0] = c[0]; b[1] = c[1]; b[2] = c[2]; b[3] = c[3]; b[4] = c[4]; b[5] = c[5]; this._type = a._type; }; a.prototype.emptyArea = function(a) { a = this._data; return 0 === a[0] || 0 === a[3] ? !0 : !1; }; a.prototype.infiniteArea = function(a) { a = this._data; return Infinity === Math.abs(a[0]) || Infinity === Math.abs(a[3]) ? !0 : !1; }; a.prototype.isEqual = function(a) { if (1 === this._type && 1 === a._type) { return !0; } var b = this._data; a = a._data; return b[0] === a[0] && b[1] === a[1] && b[2] === a[2] && b[3] === a[3] && b[4] === a[4] && b[5] === a[5]; }; a.prototype.clone = function() { var b = a.allocate(); b.set(this); return b; }; a.allocate = function() { var b = a._dirtyStack; return b.length ? b.pop() : new a(12345, 12345, 12345, 12345, 12345, 12345); }; a.prototype.free = function() { a._dirtyStack.push(this); }; a.prototype.transform = function(a, b, c, d, e, f) { var g = this._data, h = g[0], k = g[1], l = g[2], n = g[3], p = g[4], t = g[5]; g[0] = h * a + l * b; g[1] = k * a + n * b; g[2] = h * c + l * d; g[3] = k * c + n * d; g[4] = h * e + l * f + p; g[5] = k * e + n * f + t; this._type = 0; return this; }; a.prototype.transformRectangle = function(a, b) { var c = this._data, d = c[0], e = c[1], f = c[2], g = c[3], h = c[4], c = c[5], k = a.x, l = a.y, n = a.w, p = a.h; b[0].x = d * k + f * l + h; b[0].y = e * k + g * l + c; b[1].x = d * (k + n) + f * l + h; b[1].y = e * (k + n) + g * l + c; b[2].x = d * (k + n) + f * (l + p) + h; b[2].y = e * (k + n) + g * (l + p) + c; b[3].x = d * k + f * (l + p) + h; b[3].y = e * k + g * (l + p) + c; }; a.prototype.isTranslationOnly = function() { if (2 === this._type) { return !0; } var a = this._data; return 1 === a[0] && 0 === a[1] && 0 === a[2] && 1 === a[3] || d(a[0], 1) && d(a[1], 0) && d(a[2], 0) && d(a[3], 1) ? (this._type = 2, !0) : !1; }; a.prototype.transformRectangleAABB = function(a) { var b = this._data; if (1 !== this._type) { if (2 === this._type) { a.x += b[4], a.y += b[5]; } else { var c = b[0], d = b[1], e = b[2], f = b[3], g = b[4], h = b[5], k = a.x, l = a.y, n = a.w, p = a.h, b = c * k + e * l + g, t = d * k + f * l + h, q = c * (k + n) + e * l + g, r = d * (k + n) + f * l + h, u = c * (k + n) + e * (l + p) + g, n = d * (k + n) + f * (l + p) + h, c = c * k + e * (l + p) + g, d = d * k + f * (l + p) + h, f = 0; b > q && (f = b, b = q, q = f); u > c && (f = u, u = c, c = f); a.x = b < u ? b : u; a.w = (q > c ? q : c) - a.x; t > r && (f = t, t = r, r = f); n > d && (f = n, n = d, d = f); a.y = t < n ? t : n; a.h = (r > d ? r : d) - a.y; } } }; a.prototype.scale = function(a, b) { var c = this._data; c[0] *= a; c[1] *= b; c[2] *= a; c[3] *= b; c[4] *= a; c[5] *= b; this._type = 0; return this; }; a.prototype.scaleClone = function(a, b) { return 1 === a && 1 === b ? this : this.clone().scale(a, b); }; a.prototype.rotate = function(a) { var b = this._data, c = b[0], d = b[1], e = b[2], f = b[3], g = b[4], h = b[5], k = Math.cos(a); a = Math.sin(a); b[0] = k * c - a * d; b[1] = a * c + k * d; b[2] = k * e - a * f; b[3] = a * e + k * f; b[4] = k * g - a * h; b[5] = a * g + k * h; this._type = 0; return this; }; a.prototype.concat = function(a) { if (1 === a._type) { return this; } var b = this._data; a = a._data; var c = b[0] * a[0], d = 0, e = 0, f = b[3] * a[3], g = b[4] * a[0] + a[4], h = b[5] * a[3] + a[5]; if (0 !== b[1] || 0 !== b[2] || 0 !== a[1] || 0 !== a[2]) { c += b[1] * a[2], f += b[2] * a[1], d += b[0] * a[1] + b[1] * a[3], e += b[2] * a[0] + b[3] * a[2], g += b[5] * a[2], h += b[4] * a[1]; } b[0] = c; b[1] = d; b[2] = e; b[3] = f; b[4] = g; b[5] = h; this._type = 0; return this; }; a.prototype.concatClone = function(a) { return this.clone().concat(a); }; a.prototype.preMultiply = function(a) { var b = this._data, c = a._data; if (2 === a._type && this._type & 3) { b[4] += c[4], b[5] += c[5], this._type = 2; } else { if (1 !== a._type) { a = c[0] * b[0]; var d = 0, e = 0, f = c[3] * b[3], g = c[4] * b[0] + b[4], h = c[5] * b[3] + b[5]; if (0 !== c[1] || 0 !== c[2] || 0 !== b[1] || 0 !== b[2]) { a += c[1] * b[2], f += c[2] * b[1], d += c[0] * b[1] + c[1] * b[3], e += c[2] * b[0] + c[3] * b[2], g += c[5] * b[2], h += c[4] * b[1]; } b[0] = a; b[1] = d; b[2] = e; b[3] = f; b[4] = g; b[5] = h; this._type = 0; } } }; a.prototype.translate = function(a, b) { var c = this._data; c[4] += a; c[5] += b; 1 === this._type && (this._type = 2); return this; }; a.prototype.setIdentity = function() { var a = this._data; a[0] = 1; a[1] = 0; a[2] = 0; a[3] = 1; a[4] = 0; a[5] = 0; this._type = 1; }; a.prototype.isIdentity = function() { if (1 === this._type) { return !0; } var a = this._data; return 1 === a[0] && 0 === a[1] && 0 === a[2] && 1 === a[3] && 0 === a[4] && 0 === a[5]; }; a.prototype.transformPoint = function(a) { if (1 !== this._type) { var b = this._data, c = a.x, d = a.y; a.x = b[0] * c + b[2] * d + b[4]; a.y = b[1] * c + b[3] * d + b[5]; } }; a.prototype.transformPoints = function(a) { if (1 !== this._type) { for (var b = 0;b < a.length;b++) { this.transformPoint(a[b]); } } }; a.prototype.deltaTransformPoint = function(a) { if (1 !== this._type) { var b = this._data, c = a.x, d = a.y; a.x = b[0] * c + b[2] * d; a.y = b[1] * c + b[3] * d; } }; a.prototype.inverse = function(a) { var b = this._data, c = a._data; if (1 === this._type) { a.setIdentity(); } else { if (2 === this._type) { c[0] = 1, c[1] = 0, c[2] = 0, c[3] = 1, c[4] = -b[4], c[5] = -b[5], a._type = 2; } else { var d = b[1], e = b[2], f = b[4], g = b[5]; if (0 === d && 0 === e) { var h = c[0] = 1 / b[0], b = c[3] = 1 / b[3]; c[1] = 0; c[2] = 0; c[4] = -h * f; c[5] = -b * g; } else { var h = b[0], b = b[3], k = h * b - d * e; if (0 === k) { a.setIdentity(); return; } k = 1 / k; c[0] = b * k; d = c[1] = -d * k; e = c[2] = -e * k; b = c[3] = h * k; c[4] = -(c[0] * f + e * g); c[5] = -(d * f + b * g); } a._type = 0; } } }; a.prototype.getTranslateX = function() { return this._data[4]; }; a.prototype.getTranslateY = function() { return this._data[4]; }; a.prototype.getScaleX = function() { var a = this._data; if (1 === a[0] && 0 === a[1]) { return 1; } var b = Math.sqrt(a[0] * a[0] + a[1] * a[1]); return 0 < a[0] ? b : -b; }; a.prototype.getScaleY = function() { var a = this._data; if (0 === a[2] && 1 === a[3]) { return 1; } var b = Math.sqrt(a[2] * a[2] + a[3] * a[3]); return 0 < a[3] ? b : -b; }; a.prototype.getScale = function() { return (this.getScaleX() + this.getScaleY()) / 2; }; a.prototype.getAbsoluteScaleX = function() { return Math.abs(this.getScaleX()); }; a.prototype.getAbsoluteScaleY = function() { return Math.abs(this.getScaleY()); }; a.prototype.getRotation = function() { var a = this._data; return 180 * Math.atan(a[1] / a[0]) / Math.PI; }; a.prototype.isScaleOrRotation = function() { var a = this._data; return .01 > Math.abs(a[0] * a[2] + a[1] * a[3]); }; a.prototype.toString = function(a) { void 0 === a && (a = 2); var b = this._data; return "{" + b[0].toFixed(a) + ", " + b[1].toFixed(a) + ", " + b[2].toFixed(a) + ", " + b[3].toFixed(a) + ", " + b[4].toFixed(a) + ", " + b[5].toFixed(a) + "}"; }; a.prototype.toWebGLMatrix = function() { var a = this._data; return new Float32Array([a[0], a[1], 0, a[2], a[3], 0, a[4], a[5], 1]); }; a.prototype.toCSSTransform = function() { var a = this._data; return "matrix(" + a[0] + ", " + a[1] + ", " + a[2] + ", " + a[3] + ", " + a[4] + ", " + a[5] + ")"; }; a.createIdentity = function() { var b = a.allocate(); b.setIdentity(); return b; }; a.prototype.toSVGMatrix = function() { var b = this._data, c = a._createSVGMatrix(); try { c.a = b[0], c.b = b[1], c.c = b[2], c.d = b[3], c.e = b[4], c.f = b[5]; } catch (d) { return a._createSVGMatrix(); } return c; }; a.prototype.snap = function() { var a = this._data; return this.isTranslationOnly() ? (a[0] = 1, a[1] = 0, a[2] = 0, a[3] = 1, a[4] = Math.round(a[4]), a[5] = Math.round(a[5]), this._type = 2, !0) : !1; }; a.createIdentitySVGMatrix = function() { return a._createSVGMatrix(); }; a.createSVGMatrixFromArray = function(b) { var c = a._createSVGMatrix(); c.a = b[0]; c.b = b[1]; c.c = b[2]; c.d = b[3]; c.e = b[4]; c.f = b[5]; return c; }; a.allocationCount = 0; a._dirtyStack = []; a.multiply = function(a, b) { var c = b._data; a.transform(c[0], c[1], c[2], c[3], c[4], c[5]); }; return a; }(); g.Matrix = n; n = function() { function a(b) { this._m = new Float32Array(b); } a.prototype.asWebGLMatrix = function() { return this._m; }; a.createCameraLookAt = function(b, c, d) { c = b.clone().sub(c).normalize(); d = d.clone().cross(c).normalize(); var e = c.clone().cross(d); return new a([d.x, d.y, d.z, 0, e.x, e.y, e.z, 0, c.x, c.y, c.z, 0, b.x, b.y, b.z, 1]); }; a.createLookAt = function(b, c, d) { c = b.clone().sub(c).normalize(); d = d.clone().cross(c).normalize(); var e = c.clone().cross(d); return new a([d.x, e.x, c.x, 0, e.x, e.y, c.y, 0, c.x, e.z, c.z, 0, -d.dot(b), -e.dot(b), -c.dot(b), 1]); }; a.prototype.mul = function(a) { a = [a.x, a.y, a.z, 0]; for (var b = this._m, d = [], e = 0;4 > e;e++) { d[e] = 0; for (var f = 4 * e, g = 0;4 > g;g++) { d[e] += b[f + g] * a[g]; } } return new c(d[0], d[1], d[2]); }; a.create2DProjection = function(b, c, d) { return new a([2 / b, 0, 0, 0, 0, -2 / c, 0, 0, 0, 0, 2 / d, 0, -1, 1, 0, 1]); }; a.createPerspective = function(b, c, d, e) { b = Math.tan(.5 * Math.PI - .5 * b); var f = 1 / (d - e); return new a([b / c, 0, 0, 0, 0, b, 0, 0, 0, 0, (d + e) * f, -1, 0, 0, d * e * f * 2, 0]); }; a.createIdentity = function() { return a.createTranslation(); }; a.createTranslation = function() { return new a([1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]); }; a.createXRotation = function(b) { var c = Math.cos(b); b = Math.sin(b); return new a([1, 0, 0, 0, 0, c, b, 0, 0, -b, c, 0, 0, 0, 0, 1]); }; a.createYRotation = function(b) { var c = Math.cos(b); b = Math.sin(b); return new a([c, 0, -b, 0, 0, 1, 0, 0, b, 0, c, 0, 0, 0, 0, 1]); }; a.createZRotation = function(b) { var c = Math.cos(b); b = Math.sin(b); return new a([c, b, 0, 0, -b, c, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]); }; a.createScale = function(b, c, d) { return new a([b, 0, 0, 0, 0, c, 0, 0, 0, 0, d, 0, 0, 0, 0, 1]); }; a.createMultiply = function(b, c) { var d = b._m, e = c._m, f = d[0], g = d[1], k = d[2], l = d[3], n = d[4], p = d[5], t = d[6], q = d[7], r = d[8], u = d[9], I = d[10], E = d[11], J = d[12], L = d[13], M = d[14], d = d[15], P = e[0], R = e[1], O = e[2], Q = e[3], W = e[4], T = e[5], X = e[6], N = e[7], U = e[8], V = e[9], ca = e[10], S = e[11], Z = e[12], ba = e[13], aa = e[14], e = e[15]; return new a([f * P + g * W + k * U + l * Z, f * R + g * T + k * V + l * ba, f * O + g * X + k * ca + l * aa, f * Q + g * N + k * S + l * e, n * P + p * W + t * U + q * Z, n * R + p * T + t * V + q * ba, n * O + p * X + t * ca + q * aa, n * Q + p * N + t * S + q * e, r * P + u * W + I * U + E * Z, r * R + u * T + I * V + E * ba, r * O + u * X + I * ca + E * aa, r * Q + u * N + I * S + E * e, J * P + L * W + M * U + d * Z, J * R + L * T + M * V + d * ba, J * O + L * X + M * ca + d * aa, J * Q + L * N + M * S + d * e]); }; a.createInverse = function(b) { var c = b._m; b = c[0]; var d = c[1], e = c[2], f = c[3], g = c[4], k = c[5], l = c[6], n = c[7], p = c[8], t = c[9], q = c[10], r = c[11], u = c[12], I = c[13], E = c[14], c = c[15], J = q * c, L = E * r, M = l * c, P = E * n, R = l * r, O = q * n, Q = e * c, W = E * f, T = e * r, X = q * f, N = e * n, U = l * f, V = p * I, ca = u * t, S = g * I, Z = u * k, ba = g * t, aa = p * k, ea = b * I, da = u * d, fa = b * t, ha = p * d, ka = b * k, ga = g * d, ia = J * k + P * t + R * I - (L * k + M * t + O * I), ja = L * d + Q * t + X * I - (J * d + W * t + T * I), I = M * d + W * k + N * I - (P * d + Q * k + U * I), d = O * d + T * k + U * t - (R * d + X * k + N * t), k = 1 / (b * ia + g * ja + p * I + u * d); return new a([k * ia, k * ja, k * I, k * d, k * (L * g + M * p + O * u - (J * g + P * p + R * u)), k * (J * b + W * p + T * u - (L * b + Q * p + X * u)), k * (P * b + Q * g + U * u - (M * b + W * g + N * u)), k * (R * b + X * g + N * p - (O * b + T * g + U * p)), k * (V * n + Z * r + ba * c - (ca * n + S * r + aa * c)), k * (ca * f + ea * r + ha * c - (V * f + da * r + fa * c)), k * (S * f + da * n + ka * c - (Z * f + ea * n + ga * c)), k * (aa * f + fa * n + ga * r - (ba * f + ha * n + ka * r)), k * (S * q + aa * E + ca * l - (ba * E + V * l + Z * q)), k * (fa * E + V * e + da * q - (ea * q + ha * E + ca * e)), k * (ea * l + ga * E + Z * e - (ka * E + S * e + da * l)), k * (ka * q + ba * e + ha * l - (fa * l + ga * q + aa * e))]); }; return a; }(); g.Matrix3D = n; n = function() { function a(b, c, d) { void 0 === d && (d = 7); var f = this.size = 1 << d; this.sizeInBits = d; this.w = b; this.h = c; this.c = Math.ceil(b / f); this.r = Math.ceil(c / f); this.grid = []; for (b = 0;b < this.r;b++) { for (this.grid.push([]), c = 0;c < this.c;c++) { this.grid[b][c] = new a.Cell(new e(c * f, b * f, f, f)); } } } a.prototype.clear = function() { for (var a = 0;a < this.r;a++) { for (var b = 0;b < this.c;b++) { this.grid[a][b].clear(); } } }; a.prototype.getBounds = function() { return new e(0, 0, this.w, this.h); }; a.prototype.addDirtyRectangle = function(a) { var b = a.x >> this.sizeInBits, c = a.y >> this.sizeInBits; if (!(b >= this.c || c >= this.r)) { 0 > b && (b = 0); 0 > c && (c = 0); var d = this.grid[c][b]; a = a.clone(); a.snap(); if (d.region.contains(a)) { d.bounds.isEmpty() ? d.bounds.set(a) : d.bounds.contains(a) || d.bounds.union(a); } else { for (var e = Math.min(this.c, Math.ceil((a.x + a.w) / this.size)) - b, f = Math.min(this.r, Math.ceil((a.y + a.h) / this.size)) - c, g = 0;g < e;g++) { for (var h = 0;h < f;h++) { d = this.grid[c + h][b + g], d = d.region.clone(), d.intersect(a), d.isEmpty() || this.addDirtyRectangle(d); } } } } }; a.prototype.gatherRegions = function(a) { for (var b = 0;b < this.r;b++) { for (var c = 0;c < this.c;c++) { this.grid[b][c].bounds.isEmpty() || a.push(this.grid[b][c].bounds); } } }; a.prototype.gatherOptimizedRegions = function(a) { this.gatherRegions(a); }; a.prototype.getDirtyRatio = function() { var a = this.w * this.h; if (0 === a) { return 0; } for (var b = 0, c = 0;c < this.r;c++) { for (var d = 0;d < this.c;d++) { b += this.grid[c][d].region.area(); } } return b / a; }; a.prototype.render = function(a, b) { function c(b) { a.rect(b.x, b.y, b.w, b.h); } if (b && b.drawGrid) { a.strokeStyle = "white"; for (var d = 0;d < this.r;d++) { for (var e = 0;e < this.c;e++) { var f = this.grid[d][e]; a.beginPath(); c(f.region); a.closePath(); a.stroke(); } } } a.strokeStyle = "#E0F8D8"; for (d = 0;d < this.r;d++) { for (e = 0;e < this.c;e++) { f = this.grid[d][e], a.beginPath(), c(f.bounds), a.closePath(), a.stroke(); } } }; a.tmpRectangle = e.createEmpty(); return a; }(); g.DirtyRegion = n; (function(a) { var b = function() { function a(b) { this.region = b; this.bounds = e.createEmpty(); } a.prototype.clear = function() { this.bounds.setEmpty(); }; return a; }(); a.Cell = b; })(n = g.DirtyRegion || (g.DirtyRegion = {})); var t = function() { function b(a, c, d, f, g, h) { this.index = a; this.x = c; this.y = d; this.scale = h; this.bounds = new e(c * f, d * g, f, g); } b.prototype.getOBB = function() { if (this._obb) { return this._obb; } this.bounds.getCorners(b.corners); return this._obb = new l(b.corners); }; b.corners = a.createEmptyPoints(4); return b; }(); g.Tile = t; var p = function() { function b(a, c, d, e, f) { this.tileW = d; this.tileH = e; this.scale = f; this.w = a; this.h = c; this.rows = Math.ceil(c / e); this.columns = Math.ceil(a / d); this.tiles = []; for (c = a = 0;c < this.rows;c++) { for (var g = 0;g < this.columns;g++) { this.tiles.push(new t(a++, g, c, d, e, f)); } } } b.prototype.getTiles = function(a, b) { if (b.emptyArea(a)) { return []; } if (b.infiniteArea(a)) { return this.tiles; } var c = this.columns * this.rows; return 40 > c && b.isScaleOrRotation() ? this.getFewTiles(a, b, 10 < c) : this.getManyTiles(a, b); }; b.prototype.getFewTiles = function(a, c, d) { void 0 === d && (d = !0); if (c.isTranslationOnly() && 1 === this.tiles.length) { return this.tiles[0].bounds.intersectsTranslated(a, c.tx, c.ty) ? [this.tiles[0]] : []; } c.transformRectangle(a, b._points); var f; a = new e(0, 0, this.w, this.h); d && (f = new l(b._points)); a.intersect(l.getBounds(b._points)); if (a.isEmpty()) { return []; } var g = a.x / this.tileW | 0; c = a.y / this.tileH | 0; var n = Math.ceil((a.x + a.w) / this.tileW) | 0, p = Math.ceil((a.y + a.h) / this.tileH) | 0, g = k(g, 0, this.columns), n = k(n, 0, this.columns); c = k(c, 0, this.rows); for (var p = k(p, 0, this.rows), t = [];g < n;g++) { for (var q = c;q < p;q++) { var r = this.tiles[q * this.columns + g]; r.bounds.intersects(a) && (d ? r.getOBB().intersects(f) : 1) && t.push(r); } } return t; }; b.prototype.getManyTiles = function(a, c) { function d(a, b, c) { return (a - b.x) * (c.y - b.y) / (c.x - b.x) + b.y; } function e(a, b, c, d, f) { if (!(0 > c || c >= b.columns)) { for (d = k(d, 0, b.rows), f = k(f + 1, 0, b.rows);d < f;d++) { a.push(b.tiles[d * b.columns + c]); } } } var f = b._points; c.transformRectangle(a, f); for (var g = f[0].x < f[1].x ? 0 : 1, l = f[2].x < f[3].x ? 2 : 3, l = f[g].x < f[l].x ? g : l, g = [], n = 0;5 > n;n++, l++) { g.push(f[l % 4]); } (g[1].x - g[0].x) * (g[3].y - g[0].y) < (g[1].y - g[0].y) * (g[3].x - g[0].x) && (f = g[1], g[1] = g[3], g[3] = f); var f = [], p, t, l = Math.floor(g[0].x / this.tileW), n = (l + 1) * this.tileW; if (g[2].x < n) { p = Math.min(g[0].y, g[1].y, g[2].y, g[3].y); t = Math.max(g[0].y, g[1].y, g[2].y, g[3].y); var q = Math.floor(p / this.tileH), r = Math.floor(t / this.tileH); e(f, this, l, q, r); return f; } var u = 0, F = 4, I = !1; if (g[0].x === g[1].x || g[0].x === g[3].x) { g[0].x === g[1].x ? (I = !0, u++) : F--, p = d(n, g[u], g[u + 1]), t = d(n, g[F], g[F - 1]), q = Math.floor(g[u].y / this.tileH), r = Math.floor(g[F].y / this.tileH), e(f, this, l, q, r), l++; } do { var E, J, L, M; g[u + 1].x < n ? (E = g[u + 1].y, L = !0) : (E = d(n, g[u], g[u + 1]), L = !1); g[F - 1].x < n ? (J = g[F - 1].y, M = !0) : (J = d(n, g[F], g[F - 1]), M = !1); q = Math.floor((g[u].y < g[u + 1].y ? p : E) / this.tileH); r = Math.floor((g[F].y > g[F - 1].y ? t : J) / this.tileH); e(f, this, l, q, r); if (L && I) { break; } L ? (I = !0, u++, p = d(n, g[u], g[u + 1])) : p = E; M ? (F--, t = d(n, g[F], g[F - 1])) : t = J; l++; n = (l + 1) * this.tileW; } while (u < F); return f; }; b._points = a.createEmptyPoints(4); return b; }(); g.TileCache = p; n = function() { function a(b, c, d) { this._cacheLevels = []; this._source = b; this._tileSize = c; this._minUntiledSize = d; } a.prototype._getTilesAtScale = function(a, b, c) { var d = Math.max(b.getAbsoluteScaleX(), b.getAbsoluteScaleY()), e = 0; 1 !== d && (e = k(Math.round(Math.log(1 / d) / Math.LN2), -5, 3)); d = r(e); if (this._source.hasFlags(1048576)) { for (;;) { d = r(e); if (c.contains(this._source.getBounds().getAbsoluteBounds().clone().scale(d, d))) { break; } e--; } } this._source.hasFlags(2097152) || (e = k(e, -5, 0)); d = r(e); c = 5 + e; e = this._cacheLevels[c]; if (!e) { var e = this._source.getBounds().getAbsoluteBounds().clone().scale(d, d), f, g; this._source.hasFlags(1048576) || !this._source.hasFlags(4194304) || Math.max(e.w, e.h) <= this._minUntiledSize ? (f = e.w, g = e.h) : f = g = this._tileSize; e = this._cacheLevels[c] = new p(e.w, e.h, f, g, d); } return e.getTiles(a, b.scaleClone(d, d)); }; a.prototype.fetchTiles = function(a, b, c, d) { var f = new e(0, 0, c.canvas.width, c.canvas.height); a = this._getTilesAtScale(a, b, f); var g; b = this._source; for (var h = 0;h < a.length;h++) { var k = a[h]; k.cachedSurfaceRegion && k.cachedSurfaceRegion.surface && !b.hasFlags(1048592) || (g || (g = []), g.push(k)); } g && this._cacheTiles(c, g, d, f); b.removeFlags(16); return a; }; a.prototype._getTileBounds = function(a) { for (var b = e.createEmpty(), c = 0;c < a.length;c++) { b.union(a[c].bounds); } return b; }; a.prototype._cacheTiles = function(a, c, d, e, f) { void 0 === f && (f = 4); var g = this._getTileBounds(c); a.save(); a.setTransform(1, 0, 0, 1, 0, 0); a.clearRect(0, 0, e.w, e.h); a.translate(-g.x, -g.y); a.scale(c[0].scale, c[0].scale); var h = this._source.getBounds(); a.translate(-h.x, -h.y); 2 <= b.traceLevel && b.writer && b.writer.writeLn("Rendering Tiles: " + g); this._source.render(a, 0); a.restore(); for (var h = null, k = 0;k < c.length;k++) { var l = c[k], n = l.bounds.clone(); n.x -= g.x; n.y -= g.y; e.contains(n) || (h || (h = []), h.push(l)); l.cachedSurfaceRegion = d(l.cachedSurfaceRegion, a, n); } h && (2 <= h.length ? (c = h.slice(0, h.length / 2 | 0), g = h.slice(c.length), this._cacheTiles(a, c, d, e, f - 1), this._cacheTiles(a, g, d, e, f - 1)) : this._cacheTiles(a, h, d, e, f - 1)); }; return a; }(); g.RenderableTileCache = n; })(b.Geometry || (b.Geometry = {})); })(f.GFX || (f.GFX = {})); })(Shumway || (Shumway = {})); __extends = this.__extends || function(f, b) { function g() { this.constructor = f; } for (var q in b) { b.hasOwnProperty(q) && (f[q] = b[q]); } g.prototype = b.prototype; f.prototype = new g; }; (function(f) { (function(b) { var g = f.IntegerUtilities.roundToMultipleOfPowerOfTwo, q = b.Geometry.Rectangle; (function(f) { var k = function(a) { function b() { a.apply(this, arguments); } __extends(b, a); return b; }(b.Geometry.Rectangle); f.Region = k; var r = function() { function a(b, c) { this._root = new d(0, 0, b | 0, c | 0, !1); } a.prototype.allocate = function(a, b) { a = Math.ceil(a); b = Math.ceil(b); var c = this._root.insert(a, b); c && (c.allocator = this, c.allocated = !0); return c; }; a.prototype.free = function(a) { a.clear(); a.allocated = !1; }; a.RANDOM_ORIENTATION = !0; a.MAX_DEPTH = 256; return a; }(); f.CompactAllocator = r; var d = function(a) { function b(c, d, e, f, g) { a.call(this, c, d, e, f); this._children = null; this._horizontal = g; this.allocated = !1; } __extends(b, a); b.prototype.clear = function() { this._children = null; this.allocated = !1; }; b.prototype.insert = function(a, b) { return this._insert(a, b, 0); }; b.prototype._insert = function(a, c, d) { if (!(d > r.MAX_DEPTH || this.allocated || this.w < a || this.h < c)) { if (this._children) { var e; if ((e = this._children[0]._insert(a, c, d + 1)) || (e = this._children[1]._insert(a, c, d + 1))) { return e; } } else { return e = !this._horizontal, r.RANDOM_ORIENTATION && (e = .5 <= Math.random()), this._children = this._horizontal ? [new b(this.x, this.y, this.w, c, !1), new b(this.x, this.y + c, this.w, this.h - c, e)] : [new b(this.x, this.y, a, this.h, !0), new b(this.x + a, this.y, this.w - a, this.h, e)], e = this._children[0], e.w === a && e.h === c ? (e.allocated = !0, e) : this._insert(a, c, d + 1); } } }; return b; }(f.Region), a = function() { function a(b, c, d, e) { this._columns = b / d | 0; this._rows = c / e | 0; this._sizeW = d; this._sizeH = e; this._freeList = []; this._index = 0; this._total = this._columns * this._rows; } a.prototype.allocate = function(a, b) { a = Math.ceil(a); b = Math.ceil(b); var d = this._sizeW, e = this._sizeH; if (a > d || b > e) { return null; } var f = this._freeList, g = this._index; return 0 < f.length ? (d = f.pop(), d.w = a, d.h = b, d.allocated = !0, d) : g < this._total ? (f = g / this._columns | 0, d = new c((g - f * this._columns) * d, f * e, a, b), d.index = g, d.allocator = this, d.allocated = !0, this._index++, d) : null; }; a.prototype.free = function(a) { a.allocated = !1; this._freeList.push(a); }; return a; }(); f.GridAllocator = a; var c = function(a) { function b(c, d, e, f) { a.call(this, c, d, e, f); this.index = -1; } __extends(b, a); return b; }(f.Region); f.GridCell = c; var e = function() { return function(a, b, c) { this.size = a; this.region = b; this.allocator = c; }; }(), l = function(a) { function b(c, d, e, f, g) { a.call(this, c, d, e, f); this.region = g; } __extends(b, a); return b; }(f.Region); f.BucketCell = l; k = function() { function b(a, c) { this._buckets = []; this._w = a | 0; this._h = c | 0; this._filled = 0; } b.prototype.allocate = function(b, c) { b = Math.ceil(b); c = Math.ceil(c); var d = Math.max(b, c); if (b > this._w || c > this._h) { return null; } var f = null, k, n = this._buckets; do { for (var r = 0;r < n.length && !(n[r].size >= d && (k = n[r], f = k.allocator.allocate(b, c)));r++) { } if (!f) { var u = this._h - this._filled; if (u < c) { return null; } var r = g(d, 8), z = 2 * r; z > u && (z = u); if (z < r) { return null; } u = new q(0, this._filled, this._w, z); this._buckets.push(new e(r, u, new a(u.w, u.h, r, r))); this._filled += z; } } while (!f); return new l(k.region.x + f.x, k.region.y + f.y, f.w, f.h, f); }; b.prototype.free = function(a) { a.region.allocator.free(a.region); }; return b; }(); f.BucketAllocator = k; })(b.RegionAllocator || (b.RegionAllocator = {})); (function(b) { var f = function() { function b(d) { this._createSurface = d; this._surfaces = []; } Object.defineProperty(b.prototype, "surfaces", {get:function() { return this._surfaces; }, enumerable:!0, configurable:!0}); b.prototype._createNewSurface = function(b, a) { var c = this._createSurface(b, a); this._surfaces.push(c); return c; }; b.prototype.addSurface = function(b) { this._surfaces.push(b); }; b.prototype.allocate = function(b, a, c) { for (var e = 0;e < this._surfaces.length;e++) { var f = this._surfaces[e]; if (f !== c && (f = f.allocate(b, a))) { return f; } } return this._createNewSurface(b, a).allocate(b, a); }; b.prototype.free = function(b) { }; return b; }(); b.SimpleAllocator = f; })(b.SurfaceRegionAllocator || (b.SurfaceRegionAllocator = {})); })(f.GFX || (f.GFX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { var g = b.Geometry.Rectangle, q = b.Geometry.Matrix, u = b.Geometry.DirtyRegion; (function(a) { a[a.Normal = 1] = "Normal"; a[a.Layer = 2] = "Layer"; a[a.Multiply = 3] = "Multiply"; a[a.Screen = 4] = "Screen"; a[a.Lighten = 5] = "Lighten"; a[a.Darken = 6] = "Darken"; a[a.Difference = 7] = "Difference"; a[a.Add = 8] = "Add"; a[a.Subtract = 9] = "Subtract"; a[a.Invert = 10] = "Invert"; a[a.Alpha = 11] = "Alpha"; a[a.Erase = 12] = "Erase"; a[a.Overlay = 13] = "Overlay"; a[a.HardLight = 14] = "HardLight"; })(b.BlendMode || (b.BlendMode = {})); var k = b.BlendMode; (function(a) { a[a.None = 0] = "None"; a[a.BoundsAutoCompute = 2] = "BoundsAutoCompute"; a[a.IsMask = 4] = "IsMask"; a[a.Dirty = 16] = "Dirty"; a[a.InvalidBounds = 256] = "InvalidBounds"; a[a.InvalidConcatenatedMatrix = 512] = "InvalidConcatenatedMatrix"; a[a.InvalidInvertedConcatenatedMatrix = 1024] = "InvalidInvertedConcatenatedMatrix"; a[a.InvalidConcatenatedColorMatrix = 2048] = "InvalidConcatenatedColorMatrix"; a[a.UpOnAddedOrRemoved = a.InvalidBounds | a.Dirty] = "UpOnAddedOrRemoved"; a[a.UpOnMoved = a.InvalidBounds | a.Dirty] = "UpOnMoved"; a[a.DownOnAddedOrRemoved = a.InvalidConcatenatedMatrix | a.InvalidInvertedConcatenatedMatrix | a.InvalidConcatenatedColorMatrix] = "DownOnAddedOrRemoved"; a[a.DownOnMoved = a.InvalidConcatenatedMatrix | a.InvalidInvertedConcatenatedMatrix | a.InvalidConcatenatedColorMatrix] = "DownOnMoved"; a[a.UpOnColorMatrixChanged = a.Dirty] = "UpOnColorMatrixChanged"; a[a.DownOnColorMatrixChanged = a.InvalidConcatenatedColorMatrix] = "DownOnColorMatrixChanged"; a[a.Visible = 65536] = "Visible"; a[a.UpOnInvalidate = a.InvalidBounds | a.Dirty] = "UpOnInvalidate"; a[a.Default = a.BoundsAutoCompute | a.InvalidBounds | a.InvalidConcatenatedMatrix | a.InvalidInvertedConcatenatedMatrix | a.Visible] = "Default"; a[a.CacheAsBitmap = 131072] = "CacheAsBitmap"; a[a.PixelSnapping = 262144] = "PixelSnapping"; a[a.ImageSmoothing = 524288] = "ImageSmoothing"; a[a.Dynamic = 1048576] = "Dynamic"; a[a.Scalable = 2097152] = "Scalable"; a[a.Tileable = 4194304] = "Tileable"; a[a.Transparent = 32768] = "Transparent"; })(b.NodeFlags || (b.NodeFlags = {})); var r = b.NodeFlags; (function(a) { a[a.Node = 1] = "Node"; a[a.Shape = 3] = "Shape"; a[a.Group = 5] = "Group"; a[a.Stage = 13] = "Stage"; a[a.Renderable = 33] = "Renderable"; })(b.NodeType || (b.NodeType = {})); var d = b.NodeType; (function(a) { a[a.None = 0] = "None"; a[a.OnStageBoundsChanged = 1] = "OnStageBoundsChanged"; a[a.RemovedFromStage = 2] = "RemovedFromStage"; })(b.NodeEventType || (b.NodeEventType = {})); var a = function() { function a() { } a.prototype.visitNode = function(a, b) { }; a.prototype.visitShape = function(a, b) { this.visitNode(a, b); }; a.prototype.visitGroup = function(a, b) { this.visitNode(a, b); for (var c = a.getChildren(), d = 0;d < c.length;d++) { c[d].visit(this, b); } }; a.prototype.visitStage = function(a, b) { this.visitGroup(a, b); }; a.prototype.visitRenderable = function(a, b) { this.visitNode(a, b); }; return a; }(); b.NodeVisitor = a; var c = function() { return function() { }; }(); b.State = c; var e = function(a) { function b() { a.call(this); this.matrix = q.createIdentity(); this.depth = 0; } __extends(b, a); b.prototype.transform = function(a) { var b = this.clone(); b.matrix.preMultiply(a.getMatrix()); return b; }; b.allocate = function() { var a = b._dirtyStack, c = null; a.length && (c = a.pop()); return c; }; b.prototype.clone = function() { var a = b.allocate(); a || (a = new b); a.set(this); return a; }; b.prototype.set = function(a) { this.matrix.set(a.matrix); }; b.prototype.free = function() { b._dirtyStack.push(this); }; b._dirtyStack = []; return b; }(c); b.PreRenderState = e; var l = function(a) { function b() { a.apply(this, arguments); this.isDirty = !0; } __extends(b, a); b.prototype.start = function(a, b) { this._dirtyRegion = b; var c = new e; c.matrix.setIdentity(); a.visit(this, c); c.free(); }; b.prototype.visitGroup = function(a, b) { var c = a.getChildren(); this.visitNode(a, b); for (var d = 0;d < c.length;d++) { var e = c[d], f = b.transform(e.getTransform()); e.visit(this, f); f.free(); } }; b.prototype.visitNode = function(a, b) { a.hasFlags(16) && (this.isDirty = !0); a.toggleFlags(); a.depth = b.depth++; }; return b; }(a); b.PreRenderVisitor = l; c = function(a) { function b(c) { a.call(this); this.writer = c; } __extends(b, a); b.prototype.visitNode = function(a, b) { }; b.prototype.visitShape = function(a, b) { this.writer.writeLn(a.toString()); this.visitNode(a, b); }; b.prototype.visitGroup = function(a, b) { this.visitNode(a, b); var c = a.getChildren(); this.writer.enter(a.toString() + " " + c.length); for (var d = 0;d < c.length;d++) { c[d].visit(this, b); } this.writer.outdent(); }; b.prototype.visitStage = function(a, b) { this.visitGroup(a, b); }; return b; }(a); b.TracingNodeVisitor = c; var n = function() { function a() { this._clip = -1; this._eventListeners = null; this._id = a._nextId++; this._type = 1; this._index = -1; this._parent = null; this.reset(); } Object.defineProperty(a.prototype, "id", {get:function() { return this._id; }, enumerable:!0, configurable:!0}); a.prototype._dispatchEvent = function(a) { if (this._eventListeners) { for (var b = this._eventListeners, c = 0;c < b.length;c++) { var d = b[c]; d.type === a && d.listener(this, a); } } }; a.prototype.addEventListener = function(a, b) { this._eventListeners || (this._eventListeners = []); this._eventListeners.push({type:a, listener:b}); }; a.prototype.removeEventListener = function(a, b) { for (var c = this._eventListeners, d = 0;d < c.length;d++) { var e = c[d]; if (e.type === a && e.listener === b) { c.splice(d, 1); break; } } }; Object.defineProperty(a.prototype, "properties", {get:function() { return this._properties || (this._properties = {}); }, enumerable:!0, configurable:!0}); a.prototype.reset = function() { this._flags = r.Default; this._properties = this._transform = this._layer = this._bounds = null; this.depth = -1; }; Object.defineProperty(a.prototype, "clip", {get:function() { return this._clip; }, set:function(a) { this._clip = a; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "parent", {get:function() { return this._parent; }, enumerable:!0, configurable:!0}); a.prototype.getTransformedBounds = function(a) { var b = this.getBounds(!0); if (a !== this && !b.isEmpty()) { var c = this.getTransform().getConcatenatedMatrix(); a ? (a = a.getTransform().getInvertedConcatenatedMatrix(), a.preMultiply(c), a.transformRectangleAABB(b), a.free()) : c.transformRectangleAABB(b); } return b; }; a.prototype._markCurrentBoundsAsDirtyRegion = function() { }; a.prototype.getStage = function(a) { void 0 === a && (a = !0); for (var b = this._parent;b;) { if (b.isType(13)) { var c = b; if (a) { if (c.dirtyRegion) { return c; } } else { return c; } } b = b._parent; } return null; }; a.prototype.getChildren = function(a) { throw void 0; }; a.prototype.getBounds = function(a) { throw void 0; }; a.prototype.setBounds = function(a) { (this._bounds || (this._bounds = g.createEmpty())).set(a); this.removeFlags(256); }; a.prototype.clone = function() { throw void 0; }; a.prototype.setFlags = function(a) { this._flags |= a; }; a.prototype.hasFlags = function(a) { return (this._flags & a) === a; }; a.prototype.hasAnyFlags = function(a) { return !!(this._flags & a); }; a.prototype.removeFlags = function(a) { this._flags &= ~a; }; a.prototype.toggleFlags = function() { this._flags &= -17; }; a.prototype._propagateFlagsUp = function(a) { if (0 !== a && !this.hasFlags(a)) { this.hasFlags(2) || (a &= -257); this.setFlags(a); var b = this._parent; b && b._propagateFlagsUp(a); } }; a.prototype._propagateFlagsDown = function(a) { throw void 0; }; a.prototype.isAncestor = function(a) { for (;a;) { if (a === this) { return !0; } a = a._parent; } return !1; }; a._getAncestors = function(b, c) { var d = a._path; for (d.length = 0;b && b !== c;) { d.push(b), b = b._parent; } return d; }; a.prototype._findClosestAncestor = function() { for (var a = this;a;) { if (!1 === a.hasFlags(512)) { return a; } a = a._parent; } return null; }; a.prototype.isType = function(a) { return this._type === a; }; a.prototype.isTypeOf = function(a) { return (this._type & a) === a; }; a.prototype.isLeaf = function() { return this.isType(33) || this.isType(3); }; a.prototype.isLinear = function() { if (this.isLeaf()) { return !0; } if (this.isType(5)) { var a = this._children; if (1 === a.length && a[0].isLinear()) { return !0; } } return !1; }; a.prototype.getTransformMatrix = function() { var a; void 0 === a && (a = !1); return this.getTransform().getMatrix(a); }; a.prototype.getTransform = function() { null === this._transform && (this._transform = new p(this)); return this._transform; }; a.prototype.getLayer = function() { null === this._layer && (this._layer = new h(this)); return this._layer; }; a.prototype.getLayerBounds = function(a) { var b = this.getBounds(); a && this._layer && this._layer.expandBounds(b); return b; }; a.prototype.visit = function(a, b) { switch(this._type) { case 1: a.visitNode(this, b); break; case 5: a.visitGroup(this, b); break; case 13: a.visitStage(this, b); break; case 3: a.visitShape(this, b); break; case 33: a.visitRenderable(this, b); break; default: f.Debug.unexpectedCase(); } }; a.prototype.invalidate = function() { this._propagateFlagsUp(r.UpOnInvalidate); }; a.prototype.toString = function(a) { void 0 === a && (a = !1); var b = d[this._type] + " " + this._id; a && (b += " " + this._bounds.toString()); return b; }; a._path = []; a._nextId = 0; return a; }(); b.Node = n; var t = function(a) { function b() { a.call(this); this._type = 5; this._children = []; } __extends(b, a); b.prototype.getChildren = function(a) { void 0 === a && (a = !1); return a ? this._children.slice(0) : this._children; }; b.prototype.childAt = function(a) { return this._children[a]; }; Object.defineProperty(b.prototype, "child", {get:function() { return this._children[0]; }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "groupChild", {get:function() { return this._children[0]; }, enumerable:!0, configurable:!0}); b.prototype.addChild = function(a) { a._parent && a._parent.removeChildAt(a._index); a._parent = this; a._index = this._children.length; this._children.push(a); this._propagateFlagsUp(r.UpOnAddedOrRemoved); a._propagateFlagsDown(r.DownOnAddedOrRemoved); }; b.prototype.removeChildAt = function(a) { var b = this._children[a]; this._children.splice(a, 1); b._index = -1; b._parent = null; this._propagateFlagsUp(r.UpOnAddedOrRemoved); b._propagateFlagsDown(r.DownOnAddedOrRemoved); }; b.prototype.clearChildren = function() { for (var a = 0;a < this._children.length;a++) { var b = this._children[a]; b && (b._index = -1, b._parent = null, b._propagateFlagsDown(r.DownOnAddedOrRemoved)); } this._children.length = 0; this._propagateFlagsUp(r.UpOnAddedOrRemoved); }; b.prototype._propagateFlagsDown = function(a) { if (!this.hasFlags(a)) { this.setFlags(a); for (var b = this._children, c = 0;c < b.length;c++) { b[c]._propagateFlagsDown(a); } } }; b.prototype.getBounds = function(a) { void 0 === a && (a = !1); var b = this._bounds || (this._bounds = g.createEmpty()); if (this.hasFlags(256)) { b.setEmpty(); for (var c = this._children, d = g.allocate(), e = 0;e < c.length;e++) { var f = c[e]; d.set(f.getBounds()); f.getTransformMatrix().transformRectangleAABB(d); b.union(d); } d.free(); this.removeFlags(256); } return a ? b.clone() : b; }; b.prototype.getLayerBounds = function(a) { if (!a) { return this.getBounds(); } for (var b = g.createEmpty(), c = this._children, d = g.allocate(), e = 0;e < c.length;e++) { var f = c[e]; d.set(f.getLayerBounds(a)); f.getTransformMatrix().transformRectangleAABB(d); b.union(d); } d.free(); a && this._layer && this._layer.expandBounds(b); return b; }; return b; }(n); b.Group = t; var p = function() { function a(c) { this._node = c; this._matrix = q.createIdentity(); this._colorMatrix = b.ColorMatrix.createIdentity(); this._concatenatedMatrix = q.createIdentity(); this._invertedConcatenatedMatrix = q.createIdentity(); this._concatenatedColorMatrix = b.ColorMatrix.createIdentity(); } a.prototype.setMatrix = function(a) { this._matrix.isEqual(a) || (this._matrix.set(a), this._node._propagateFlagsUp(r.UpOnMoved), this._node._propagateFlagsDown(r.DownOnMoved)); }; a.prototype.setColorMatrix = function(a) { this._colorMatrix.set(a); this._node._propagateFlagsUp(r.UpOnColorMatrixChanged); this._node._propagateFlagsDown(r.DownOnColorMatrixChanged); }; a.prototype.getMatrix = function(a) { void 0 === a && (a = !1); return a ? this._matrix.clone() : this._matrix; }; a.prototype.hasColorMatrix = function() { return null !== this._colorMatrix; }; a.prototype.getColorMatrix = function(a) { void 0 === a && (a = !1); null === this._colorMatrix && (this._colorMatrix = b.ColorMatrix.createIdentity()); return a ? this._colorMatrix.clone() : this._colorMatrix; }; a.prototype.getConcatenatedMatrix = function(a) { void 0 === a && (a = !1); if (this._node.hasFlags(512)) { for (var b = this._node._findClosestAncestor(), c = n._getAncestors(this._node, b), d = b ? b.getTransform()._concatenatedMatrix.clone() : q.createIdentity(), e = c.length - 1;0 <= e;e--) { var b = c[e], f = b.getTransform(); d.preMultiply(f._matrix); f._concatenatedMatrix.set(d); b.removeFlags(512); } } return a ? this._concatenatedMatrix.clone() : this._concatenatedMatrix; }; a.prototype.getInvertedConcatenatedMatrix = function() { var a = !0; void 0 === a && (a = !1); this._node.hasFlags(1024) && (this.getConcatenatedMatrix().inverse(this._invertedConcatenatedMatrix), this._node.removeFlags(1024)); return a ? this._invertedConcatenatedMatrix.clone() : this._invertedConcatenatedMatrix; }; a.prototype.toString = function() { return this._matrix.toString(); }; return a; }(); b.Transform = p; var h = function() { function a(b) { this._node = b; this._mask = null; this._blendMode = 1; } Object.defineProperty(a.prototype, "filters", {get:function() { return this._filters; }, set:function(a) { this._filters = a; a.length && this._node.invalidate(); }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "blendMode", {get:function() { return this._blendMode; }, set:function(a) { this._blendMode = a; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "mask", {get:function() { return this._mask; }, set:function(a) { this._mask !== a && (this._node.invalidate(), this._mask && this._mask.removeFlags(4)); (this._mask = a) && this._mask.setFlags(4); }, enumerable:!0, configurable:!0}); a.prototype.toString = function() { return k[this._blendMode]; }; a.prototype.expandBounds = function(a) { var b = this._filters; if (b) { for (var c = 0;c < b.length;c++) { b[c].expandBounds(a); } } }; return a; }(); b.Layer = h; c = function(a) { function b(c) { a.call(this); this._source = c; this._type = 3; this._ratio = 0; } __extends(b, a); b.prototype.getBounds = function(a) { void 0 === a && (a = !1); var b = this._bounds || (this._bounds = g.createEmpty()); this.hasFlags(256) && (b.set(this._source.getBounds()), this.removeFlags(256)); return a ? b.clone() : b; }; Object.defineProperty(b.prototype, "source", {get:function() { return this._source; }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "ratio", {get:function() { return this._ratio; }, set:function(a) { a !== this._ratio && (this.invalidate(), this._ratio = a); }, enumerable:!0, configurable:!0}); b.prototype._propagateFlagsDown = function(a) { this.setFlags(a); }; b.prototype.getChildren = function(a) { return [this._source]; }; return b; }(n); b.Shape = c; b.RendererOptions = function() { return function() { this.debug = !1; this.paintRenderable = !0; this.paintViewport = this.paintFlashing = this.paintDirtyRegion = this.paintBounds = !1; this.clear = !0; }; }(); (function(a) { a[a.Canvas2D = 0] = "Canvas2D"; a[a.WebGL = 1] = "WebGL"; a[a.Both = 2] = "Both"; a[a.DOM = 3] = "DOM"; a[a.SVG = 4] = "SVG"; })(b.Backend || (b.Backend = {})); a = function(a) { function b(c, d, e) { a.call(this); this._container = c; this._stage = d; this._options = e; this._viewport = g.createSquare(); this._devicePixelRatio = 1; } __extends(b, a); Object.defineProperty(b.prototype, "viewport", {set:function(a) { this._viewport.set(a); }, enumerable:!0, configurable:!0}); b.prototype.render = function() { throw void 0; }; b.prototype.resize = function() { throw void 0; }; b.prototype.screenShot = function(a, b, c) { throw void 0; }; return b; }(a); b.Renderer = a; a = function(a) { function b(c, d, e) { void 0 === e && (e = !1); a.call(this); this._preVisitor = new l; this._flags &= -3; this._type = 13; this._scaleMode = b.DEFAULT_SCALE; this._align = b.DEFAULT_ALIGN; this._content = new t; this._content._flags &= -3; this.addChild(this._content); this.setFlags(16); this.setBounds(new g(0, 0, c, d)); e ? (this._dirtyRegion = new u(c, d), this._dirtyRegion.addDirtyRectangle(new g(0, 0, c, d))) : this._dirtyRegion = null; this._updateContentMatrix(); } __extends(b, a); Object.defineProperty(b.prototype, "dirtyRegion", {get:function() { return this._dirtyRegion; }, enumerable:!0, configurable:!0}); b.prototype.setBounds = function(b) { a.prototype.setBounds.call(this, b); this._updateContentMatrix(); this._dispatchEvent(1); this._dirtyRegion && (this._dirtyRegion = new u(b.w, b.h), this._dirtyRegion.addDirtyRectangle(b)); }; Object.defineProperty(b.prototype, "content", {get:function() { return this._content; }, enumerable:!0, configurable:!0}); b.prototype.readyToRender = function() { this._preVisitor.isDirty = !1; this._preVisitor.start(this, this._dirtyRegion); return this._preVisitor.isDirty ? !0 : !1; }; Object.defineProperty(b.prototype, "align", {get:function() { return this._align; }, set:function(a) { this._align = a; this._updateContentMatrix(); }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "scaleMode", {get:function() { return this._scaleMode; }, set:function(a) { this._scaleMode = a; this._updateContentMatrix(); }, enumerable:!0, configurable:!0}); b.prototype._updateContentMatrix = function() { if (this._scaleMode === b.DEFAULT_SCALE && this._align === b.DEFAULT_ALIGN) { this._content.getTransform().setMatrix(new q(1, 0, 0, 1, 0, 0)); } else { var a = this.getBounds(), c = this._content.getBounds(), d = a.w / c.w, e = a.h / c.h; switch(this._scaleMode) { case 2: d = e = Math.max(d, e); break; case 4: d = e = 1; break; case 1: break; default: d = e = Math.min(d, e); } var f; f = this._align & 4 ? 0 : this._align & 8 ? a.w - c.w * d : (a.w - c.w * d) / 2; a = this._align & 1 ? 0 : this._align & 2 ? a.h - c.h * e : (a.h - c.h * e) / 2; this._content.getTransform().setMatrix(new q(d, 0, 0, e, f, a)); } }; b.DEFAULT_SCALE = 4; b.DEFAULT_ALIGN = 5; return b; }(t); b.Stage = a; })(f.GFX || (f.GFX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { function g(a, b, c) { return a + (b - a) * c; } function q(a, b, c) { return g(a >> 24 & 255, b >> 24 & 255, c) << 24 | g(a >> 16 & 255, b >> 16 & 255, c) << 16 | g(a >> 8 & 255, b >> 8 & 255, c) << 8 | g(a & 255, b & 255, c); } var u = b.Geometry.Point, k = b.Geometry.Rectangle, r = b.Geometry.Matrix, d = f.ArrayUtilities.indexOf, a = function(a) { function c() { a.call(this); this._parents = []; this._renderableParents = []; this._invalidateEventListeners = null; this._flags &= -3; this._type = 33; } __extends(c, a); Object.defineProperty(c.prototype, "parents", {get:function() { return this._parents; }, enumerable:!0, configurable:!0}); c.prototype.addParent = function(a) { d(this._parents, a); this._parents.push(a); }; c.prototype.willRender = function() { for (var a = this._parents, b = 0;b < a.length;b++) { for (var c = a[b];c;) { if (c.isType(13)) { return !0; } if (!c.hasFlags(65536)) { break; } c = c._parent; } } return !1; }; c.prototype.addRenderableParent = function(a) { this._renderableParents.push(a); }; c.prototype.wrap = function() { for (var a, c = this._parents, d = 0;d < c.length;d++) { if (a = c[d], !a._parent) { return a; } } a = new b.Shape(this); this.addParent(a); return a; }; c.prototype.invalidate = function() { this.setFlags(16); for (var a = this._parents, b = 0;b < a.length;b++) { a[b].invalidate(); } a = this._renderableParents; for (b = 0;b < a.length;b++) { a[b].invalidate(); } if (a = this._invalidateEventListeners) { for (b = 0;b < a.length;b++) { a[b](this); } } }; c.prototype.addInvalidateEventListener = function(a) { this._invalidateEventListeners || (this._invalidateEventListeners = []); d(this._invalidateEventListeners, a); this._invalidateEventListeners.push(a); }; c.prototype.getBounds = function(a) { void 0 === a && (a = !1); return a ? this._bounds.clone() : this._bounds; }; c.prototype.getChildren = function(a) { return null; }; c.prototype._propagateFlagsUp = function(a) { if (0 !== a && !this.hasFlags(a)) { for (var b = 0;b < this._parents.length;b++) { this._parents[b]._propagateFlagsUp(a); } } }; c.prototype.render = function(a, b, c, d, e) { }; return c; }(b.Node); b.Renderable = a; var c = function(a) { function b(c, d) { a.call(this); this.setBounds(c); this.render = d; } __extends(b, a); return b; }(a); b.CustomRenderable = c; (function(a) { a[a.Idle = 1] = "Idle"; a[a.Playing = 2] = "Playing"; a[a.Paused = 3] = "Paused"; a[a.Ended = 4] = "Ended"; })(b.RenderableVideoState || (b.RenderableVideoState = {})); c = function(a) { function c(b, d) { a.call(this); this._flags = 1048592; this._lastPausedTime = this._lastTimeInvalidated = 0; this._pauseHappening = this._seekHappening = !1; this._isDOMElement = !0; this.setBounds(new k(0, 0, 1, 1)); this._assetId = b; this._eventSerializer = d; var e = document.createElement("video"), f = this._handleVideoEvent.bind(this); e.preload = "metadata"; e.addEventListener("play", f); e.addEventListener("pause", f); e.addEventListener("ended", f); e.addEventListener("loadeddata", f); e.addEventListener("progress", f); e.addEventListener("suspend", f); e.addEventListener("loadedmetadata", f); e.addEventListener("error", f); e.addEventListener("seeking", f); e.addEventListener("seeked", f); e.addEventListener("canplay", f); e.style.position = "absolute"; this._video = e; this._videoEventHandler = f; c._renderableVideos.push(this); "undefined" !== typeof registerInspectorAsset && registerInspectorAsset(-1, -1, this); this._state = 1; } __extends(c, a); Object.defineProperty(c.prototype, "video", {get:function() { return this._video; }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "state", {get:function() { return this._state; }, enumerable:!0, configurable:!0}); c.prototype.play = function() { this._state = 2; this._video.play(); }; c.prototype.pause = function() { this._state = 3; this._video.pause(); }; c.prototype._handleVideoEvent = function(a) { var b = null, c = this._video; switch(a.type) { case "play": if (!this._pauseHappening) { return; } a = 7; break; case "pause": if (2 === this._state) { c.play(); return; } a = 6; this._pauseHappening = !0; break; case "ended": this._state = 4; this._notifyNetStream(3, b); a = 4; break; case "loadeddata": this._pauseHappening = !1; this._notifyNetStream(2, b); this.play(); return; case "canplay": if (this._pauseHappening) { return; } a = 5; break; case "progress": a = 10; break; case "suspend": return; case "loadedmetadata": a = 1; b = {videoWidth:c.videoWidth, videoHeight:c.videoHeight, duration:c.duration}; break; case "error": a = 11; b = {code:c.error.code}; break; case "seeking": if (!this._seekHappening) { return; } a = 8; break; case "seeked": if (!this._seekHappening) { return; } a = 9; this._seekHappening = !1; break; default: return; } this._notifyNetStream(a, b); }; c.prototype._notifyNetStream = function(a, b) { this._eventSerializer.sendVideoPlaybackEvent(this._assetId, a, b); }; c.prototype.processControlRequest = function(a, b) { var c = this._video; switch(a) { case 1: c.src = b.url; this.play(); this._notifyNetStream(0, null); break; case 9: c.paused && c.play(); break; case 2: c && (b.paused && !c.paused ? (isNaN(b.time) ? this._lastPausedTime = c.currentTime : (0 !== c.seekable.length && (c.currentTime = b.time), this._lastPausedTime = b.time), this.pause()) : !b.paused && c.paused && (this.play(), isNaN(b.time) || this._lastPausedTime === b.time || 0 === c.seekable.length || (c.currentTime = b.time))); break; case 3: c && 0 !== c.seekable.length && (this._seekHappening = !0, c.currentTime = b.time); break; case 4: return c ? c.currentTime : 0; case 5: return c ? c.duration : 0; case 6: c && (c.volume = b.volume); break; case 7: if (!c) { return 0; } var d = -1; if (c.buffered) { for (var e = 0;e < c.buffered.length;e++) { d = Math.max(d, c.buffered.end(e)); } } else { d = c.duration; } return Math.round(500 * d); case 8: return c ? Math.round(500 * c.duration) : 0; } }; c.prototype.checkForUpdate = function() { this._lastTimeInvalidated !== this._video.currentTime && (this._isDOMElement || this.invalidate()); this._lastTimeInvalidated = this._video.currentTime; }; c.checkForVideoUpdates = function() { for (var a = c._renderableVideos, b = 0;b < a.length;b++) { var d = a[b]; d.willRender() ? (d._video.parentElement || d.invalidate(), d._video.style.zIndex = d.parents[0].depth + "") : d._video.parentElement && d._dispatchEvent(2); a[b].checkForUpdate(); } }; c.prototype.render = function(a, c, d) { b.enterTimeline("RenderableVideo.render"); (c = this._video) && 0 < c.videoWidth && a.drawImage(c, 0, 0, c.videoWidth, c.videoHeight, 0, 0, this._bounds.w, this._bounds.h); b.leaveTimeline("RenderableVideo.render"); }; c._renderableVideos = []; return c; }(a); b.RenderableVideo = c; c = function(a) { function c(b, d) { a.call(this); this._flags = 1048592; this.properties = {}; this.setBounds(d); b instanceof HTMLCanvasElement ? this._initializeSourceCanvas(b) : this._sourceImage = b; } __extends(c, a); c.FromDataBuffer = function(a, d, e) { b.enterTimeline("RenderableBitmap.FromDataBuffer"); var f = document.createElement("canvas"); f.width = e.w; f.height = e.h; e = new c(f, e); e.updateFromDataBuffer(a, d); b.leaveTimeline("RenderableBitmap.FromDataBuffer"); return e; }; c.FromNode = function(a, d, e, f, g) { b.enterTimeline("RenderableBitmap.FromFrame"); var h = document.createElement("canvas"), k = a.getBounds(); h.width = k.w; h.height = k.h; h = new c(h, k); h.drawNode(a, d, e, f, g); b.leaveTimeline("RenderableBitmap.FromFrame"); return h; }; c.FromImage = function(a, b, d) { return new c(a, new k(0, 0, b, d)); }; c.prototype.updateFromDataBuffer = function(a, c) { if (b.imageUpdateOption.value) { var d = c.buffer; b.enterTimeline("RenderableBitmap.updateFromDataBuffer", {length:c.length}); if (4 !== a && 5 !== a && 6 !== a) { var e = this._bounds, g = this._imageData; g && g.width === e.w && g.height === e.h || (g = this._imageData = this._context.createImageData(e.w, e.h)); b.imageConvertOption.value && (b.enterTimeline("ColorUtilities.convertImage"), d = new Int32Array(d), e = new Int32Array(g.data.buffer), f.ColorUtilities.convertImage(a, 3, d, e), b.leaveTimeline("ColorUtilities.convertImage")); b.enterTimeline("putImageData"); this._ensureSourceCanvas(); this._context.putImageData(g, 0, 0); b.leaveTimeline("putImageData"); } this.invalidate(); b.leaveTimeline("RenderableBitmap.updateFromDataBuffer"); } }; c.prototype.readImageData = function(a) { a.writeRawBytes(this.imageData.data); }; c.prototype.render = function(a, c, d) { b.enterTimeline("RenderableBitmap.render"); this.renderSource ? a.drawImage(this.renderSource, 0, 0) : this._renderFallback(a); b.leaveTimeline("RenderableBitmap.render"); }; c.prototype.drawNode = function(a, c, d, e, f) { b.enterTimeline("RenderableBitmap.drawFrame"); d = b.Canvas2D; e = this.getBounds(); (new d.Canvas2DRenderer(this._canvas, null)).renderNode(a, f || e, c); b.leaveTimeline("RenderableBitmap.drawFrame"); }; c.prototype._initializeSourceCanvas = function(a) { this._canvas = a; this._context = this._canvas.getContext("2d"); }; c.prototype._ensureSourceCanvas = function() { if (!this._canvas) { var a = document.createElement("canvas"), b = this._bounds; a.width = b.w; a.height = b.h; this._initializeSourceCanvas(a); } }; Object.defineProperty(c.prototype, "imageData", {get:function() { this._canvas || (this._ensureSourceCanvas(), this._context.drawImage(this._sourceImage, 0, 0), this._sourceImage = null); return this._context.getImageData(0, 0, this._bounds.w, this._bounds.h); }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "renderSource", {get:function() { return this._canvas || this._sourceImage; }, enumerable:!0, configurable:!0}); c.prototype._renderFallback = function(a) { }; return c; }(a); b.RenderableBitmap = c; (function(a) { a[a.Fill = 0] = "Fill"; a[a.Stroke = 1] = "Stroke"; a[a.StrokeFill = 2] = "StrokeFill"; })(b.PathType || (b.PathType = {})); var e = function() { return function(a, b, c, d) { this.type = a; this.style = b; this.smoothImage = c; this.strokeProperties = d; this.path = new Path2D; }; }(); b.StyledPath = e; var l = function() { return function(a, b, c, d, e) { this.thickness = a; this.scaleMode = b; this.capsStyle = c; this.jointsStyle = d; this.miterLimit = e; }; }(); b.StrokeProperties = l; var n = function(a) { function c(b, d, e, f) { a.call(this); this._flags = 6291472; this.properties = {}; this.setBounds(f); this._id = b; this._pathData = d; this._textures = e; e.length && this.setFlags(1048576); } __extends(c, a); c.prototype.update = function(a, b, c) { this.setBounds(c); this._pathData = a; this._paths = null; this._textures = b; this.setFlags(1048576); this.invalidate(); }; c.prototype.render = function(a, c, d, e, f) { void 0 === e && (e = null); void 0 === f && (f = !1); a.fillStyle = a.strokeStyle = "transparent"; c = this._deserializePaths(this._pathData, a, c); b.enterTimeline("RenderableShape.render", this); for (d = 0;d < c.length;d++) { var g = c[d]; a.mozImageSmoothingEnabled = a.msImageSmoothingEnabled = a.imageSmoothingEnabled = g.smoothImage; if (0 === g.type) { e ? e.addPath(g.path, a.currentTransform) : (a.fillStyle = f ? "#000000" : g.style, a.fill(g.path, "evenodd"), a.fillStyle = "transparent"); } else { if (!e && !f) { a.strokeStyle = g.style; var h = 1; g.strokeProperties && (h = g.strokeProperties.scaleMode, a.lineWidth = g.strokeProperties.thickness, a.lineCap = g.strokeProperties.capsStyle, a.lineJoin = g.strokeProperties.jointsStyle, a.miterLimit = g.strokeProperties.miterLimit); var k = a.lineWidth; (k = 1 === k || 3 === k) && a.translate(.5, .5); a.flashStroke(g.path, h); k && a.translate(-.5, -.5); a.strokeStyle = "transparent"; } } } b.leaveTimeline("RenderableShape.render"); }; c.prototype._deserializePaths = function(a, d, e) { b.enterTimeline("RenderableShape.deserializePaths"); if (this._paths) { return this._paths; } e = this._paths = []; var g = null, h = null, k = 0, n = 0, p, t, q = !1, r = 0, u = 0, F = a.commands, I = a.coordinates, E = a.styles, J = E.position = 0; a = a.commandsPosition; for (var L = 0;L < a;L++) { switch(F[L]) { case 9: q && g && (g.lineTo(r, u), h && h.lineTo(r, u)); q = !0; k = r = I[J++] / 20; n = u = I[J++] / 20; g && g.moveTo(k, n); h && h.moveTo(k, n); break; case 10: k = I[J++] / 20; n = I[J++] / 20; g && g.lineTo(k, n); h && h.lineTo(k, n); break; case 11: p = I[J++] / 20; t = I[J++] / 20; k = I[J++] / 20; n = I[J++] / 20; g && g.quadraticCurveTo(p, t, k, n); h && h.quadraticCurveTo(p, t, k, n); break; case 12: p = I[J++] / 20; t = I[J++] / 20; var M = I[J++] / 20, P = I[J++] / 20, k = I[J++] / 20, n = I[J++] / 20; g && g.bezierCurveTo(p, t, M, P, k, n); h && h.bezierCurveTo(p, t, M, P, k, n); break; case 1: g = this._createPath(0, f.ColorUtilities.rgbaToCSSStyle(E.readUnsignedInt()), !1, null, k, n); break; case 3: p = this._readBitmap(E, d); g = this._createPath(0, p.style, p.smoothImage, null, k, n); break; case 2: g = this._createPath(0, this._readGradient(E, d), !1, null, k, n); break; case 4: g = null; break; case 5: h = f.ColorUtilities.rgbaToCSSStyle(E.readUnsignedInt()); E.position += 1; p = E.readByte(); t = c.LINE_CAPS_STYLES[E.readByte()]; M = c.LINE_JOINTS_STYLES[E.readByte()]; p = new l(I[J++] / 20, p, t, M, E.readByte()); h = this._createPath(1, h, !1, p, k, n); break; case 6: h = this._createPath(2, this._readGradient(E, d), !1, null, k, n); break; case 7: p = this._readBitmap(E, d); h = this._createPath(2, p.style, p.smoothImage, null, k, n); break; case 8: h = null; } } q && g && (g.lineTo(r, u), h && h.lineTo(r, u)); this._pathData = null; b.leaveTimeline("RenderableShape.deserializePaths"); return e; }; c.prototype._createPath = function(a, b, c, d, f, g) { a = new e(a, b, c, d); this._paths.push(a); a.path.moveTo(f, g); return a.path; }; c.prototype._readMatrix = function(a) { return new r(a.readFloat(), a.readFloat(), a.readFloat(), a.readFloat(), a.readFloat(), a.readFloat()); }; c.prototype._readGradient = function(a, b) { var c = a.readUnsignedByte(), d = 2 * a.readShort() / 255, e = this._readMatrix(a), c = 16 === c ? b.createLinearGradient(-1, 0, 1, 0) : b.createRadialGradient(d, 0, 0, 0, 0, 1); c.setTransform && c.setTransform(e.toSVGMatrix()); e = a.readUnsignedByte(); for (d = 0;d < e;d++) { var g = a.readUnsignedByte() / 255, h = f.ColorUtilities.rgbaToCSSStyle(a.readUnsignedInt()); c.addColorStop(g, h); } a.position += 2; return c; }; c.prototype._readBitmap = function(a, b) { var c = a.readUnsignedInt(), d = this._readMatrix(a), e = a.readBoolean() ? "repeat" : "no-repeat", f = a.readBoolean(); (c = this._textures[c]) ? (e = b.createPattern(c.renderSource, e), e.setTransform(d.toSVGMatrix())) : e = null; return {style:e, smoothImage:f}; }; c.prototype._renderFallback = function(a) { this.fillStyle || (this.fillStyle = f.ColorStyle.randomStyle()); var b = this._bounds; a.save(); a.beginPath(); a.lineWidth = 2; a.fillStyle = this.fillStyle; a.fillRect(b.x, b.y, b.w, b.h); a.restore(); }; c.LINE_CAPS_STYLES = ["round", "butt", "square"]; c.LINE_JOINTS_STYLES = ["round", "bevel", "miter"]; return c; }(a); b.RenderableShape = n; c = function(a) { function c() { a.apply(this, arguments); this._flags = 7340048; this._morphPaths = Object.create(null); } __extends(c, a); c.prototype._deserializePaths = function(a, c, d) { b.enterTimeline("RenderableMorphShape.deserializePaths"); if (this._morphPaths[d]) { return this._morphPaths[d]; } var e = this._morphPaths[d] = [], h = null, k = null, m = 0, p = 0, t, r, u = !1, G = 0, F = 0, I = a.commands, E = a.coordinates, J = a.morphCoordinates, L = a.styles, M = a.morphStyles; L.position = 0; var P = M.position = 0; a = a.commandsPosition; for (var R = 0;R < a;R++) { switch(I[R]) { case 9: u && h && (h.lineTo(G, F), k && k.lineTo(G, F)); u = !0; m = G = g(E[P], J[P++], d) / 20; p = F = g(E[P], J[P++], d) / 20; h && h.moveTo(m, p); k && k.moveTo(m, p); break; case 10: m = g(E[P], J[P++], d) / 20; p = g(E[P], J[P++], d) / 20; h && h.lineTo(m, p); k && k.lineTo(m, p); break; case 11: t = g(E[P], J[P++], d) / 20; r = g(E[P], J[P++], d) / 20; m = g(E[P], J[P++], d) / 20; p = g(E[P], J[P++], d) / 20; h && h.quadraticCurveTo(t, r, m, p); k && k.quadraticCurveTo(t, r, m, p); break; case 12: t = g(E[P], J[P++], d) / 20; r = g(E[P], J[P++], d) / 20; var O = g(E[P], J[P++], d) / 20, Q = g(E[P], J[P++], d) / 20, m = g(E[P], J[P++], d) / 20, p = g(E[P], J[P++], d) / 20; h && h.bezierCurveTo(t, r, O, Q, m, p); k && k.bezierCurveTo(t, r, O, Q, m, p); break; case 1: h = this._createMorphPath(0, d, f.ColorUtilities.rgbaToCSSStyle(q(L.readUnsignedInt(), M.readUnsignedInt(), d)), !1, null, m, p); break; case 3: t = this._readMorphBitmap(L, M, d, c); h = this._createMorphPath(0, d, t.style, t.smoothImage, null, m, p); break; case 2: t = this._readMorphGradient(L, M, d, c); h = this._createMorphPath(0, d, t, !1, null, m, p); break; case 4: h = null; break; case 5: t = g(E[P], J[P++], d) / 20; k = f.ColorUtilities.rgbaToCSSStyle(q(L.readUnsignedInt(), M.readUnsignedInt(), d)); L.position += 1; r = L.readByte(); O = n.LINE_CAPS_STYLES[L.readByte()]; Q = n.LINE_JOINTS_STYLES[L.readByte()]; t = new l(t, r, O, Q, L.readByte()); k = this._createMorphPath(1, d, k, !1, t, m, p); break; case 6: t = this._readMorphGradient(L, M, d, c); k = this._createMorphPath(2, d, t, !1, null, m, p); break; case 7: t = this._readMorphBitmap(L, M, d, c); k = this._createMorphPath(2, d, t.style, t.smoothImage, null, m, p); break; case 8: k = null; } } u && h && (h.lineTo(G, F), k && k.lineTo(G, F)); b.leaveTimeline("RenderableMorphShape.deserializPaths"); return e; }; c.prototype._createMorphPath = function(a, b, c, d, f, g, h) { a = new e(a, c, d, f); this._morphPaths[b].push(a); a.path.moveTo(g, h); return a.path; }; c.prototype._readMorphMatrix = function(a, b, c) { return new r(g(a.readFloat(), b.readFloat(), c), g(a.readFloat(), b.readFloat(), c), g(a.readFloat(), b.readFloat(), c), g(a.readFloat(), b.readFloat(), c), g(a.readFloat(), b.readFloat(), c), g(a.readFloat(), b.readFloat(), c)); }; c.prototype._readMorphGradient = function(a, b, c, d) { var e = a.readUnsignedByte(), h = 2 * a.readShort() / 255, k = this._readMorphMatrix(a, b, c); d = 16 === e ? d.createLinearGradient(-1, 0, 1, 0) : d.createRadialGradient(h, 0, 0, 0, 0, 1); d.setTransform && d.setTransform(k.toSVGMatrix()); k = a.readUnsignedByte(); for (e = 0;e < k;e++) { var h = g(a.readUnsignedByte() / 255, b.readUnsignedByte() / 255, c), l = q(a.readUnsignedInt(), b.readUnsignedInt(), c), l = f.ColorUtilities.rgbaToCSSStyle(l); d.addColorStop(h, l); } a.position += 2; return d; }; c.prototype._readMorphBitmap = function(a, b, c, d) { var e = a.readUnsignedInt(); b = this._readMorphMatrix(a, b, c); c = a.readBoolean() ? "repeat" : "no-repeat"; a = a.readBoolean(); d = d.createPattern(this._textures[e]._canvas, c); d.setTransform(b.toSVGMatrix()); return {style:d, smoothImage:a}; }; return c; }(n); b.RenderableMorphShape = c; var t = function() { function a() { this.align = this.leading = this.descent = this.ascent = this.width = this.y = this.x = 0; this.runs = []; } a._getMeasureContext = function() { a._measureContext || (a._measureContext = document.createElement("canvas").getContext("2d")); return a._measureContext; }; a.prototype.addRun = function(b, c, d, e) { if (d) { var f = a._getMeasureContext(); f.font = b; f = f.measureText(d).width | 0; this.runs.push(new p(b, c, d, f, e)); this.width += f; } }; a.prototype.wrap = function(b) { var c = [this], d = this.runs, e = this; e.width = 0; e.runs = []; for (var f = a._getMeasureContext(), g = 0;g < d.length;g++) { var k = d[g], l = k.text; k.text = ""; k.width = 0; f.font = k.font; for (var n = b, t = l.split(/[\s.-]/), q = 0, r = 0;r < t.length;r++) { var u = t[r], F = l.substr(q, u.length + 1), I = f.measureText(F).width | 0; if (I > n) { do { if (k.text && (e.runs.push(k), e.width += k.width, k = new p(k.font, k.fillStyle, "", 0, k.underline), n = new a, n.y = e.y + e.descent + e.leading + e.ascent | 0, n.ascent = e.ascent, n.descent = e.descent, n.leading = e.leading, n.align = e.align, c.push(n), e = n), n = b - I, 0 > n) { for (var E = F.length, J = F;1 < E && !(E--, J = F.substr(0, E), I = f.measureText(J).width | 0, I <= b);) { } k.text = J; k.width = I; F = F.substr(E); I = f.measureText(F).width | 0; } } while (F && 0 > n); } else { n -= I; } k.text += F; k.width += I; q += u.length + 1; } e.runs.push(k); e.width += k.width; } return c; }; a.prototype.toString = function() { return "TextLine {x: " + this.x + ", y: " + this.y + ", width: " + this.width + ", height: " + (this.ascent + this.descent + this.leading) + "}"; }; return a; }(); b.TextLine = t; var p = function() { return function(a, b, c, d, e) { void 0 === a && (a = ""); void 0 === b && (b = ""); void 0 === c && (c = ""); void 0 === d && (d = 0); void 0 === e && (e = !1); this.font = a; this.fillStyle = b; this.text = c; this.width = d; this.underline = e; }; }(); b.TextRun = p; c = function(a) { function c(b) { a.call(this); this._flags = 1048592; this.properties = {}; this._textBounds = b.clone(); this._textRunData = null; this._plainText = ""; this._borderColor = this._backgroundColor = 0; this._matrix = r.createIdentity(); this._coords = null; this._scrollV = 1; this._scrollH = 0; this.textRect = b.clone(); this.lines = []; this.setBounds(b); } __extends(c, a); c.prototype.setBounds = function(b) { a.prototype.setBounds.call(this, b); this._textBounds.set(b); this.textRect.setElements(b.x + 2, b.y + 2, b.w - 2, b.h - 2); }; c.prototype.setContent = function(a, b, c, d) { this._textRunData = b; this._plainText = a; this._matrix.set(c); this._coords = d; this.lines = []; }; c.prototype.setStyle = function(a, b, c, d) { this._backgroundColor = a; this._borderColor = b; this._scrollV = c; this._scrollH = d; }; c.prototype.reflow = function(a, c) { var d = this._textRunData; if (d) { var e = this._bounds, g = e.w - 4, h = this._plainText, k = this.lines, l = new t, n = 0, m = 0, p = 0, q = 0, r = 0, u = -1; for (b.enterTimeline("RenderableText.reflow");d.position < d.length;) { var E = d.readInt(), J = d.readInt(), L = d.readInt(), M = d.readUTF(), P = d.readInt(), R = d.readInt(), O = d.readInt(); P > p && (p = P); R > q && (q = R); O > r && (r = O); P = d.readBoolean(); R = ""; d.readBoolean() && (R += "italic "); P && (R += "bold "); L = R + L + "px " + M; M = d.readInt(); M = f.ColorUtilities.rgbToHex(M); P = d.readInt(); -1 === u && (u = P); d.readBoolean(); d.readInt(); d.readInt(); d.readInt(); d.readInt(); d.readInt(); for (var P = d.readBoolean(), Q = "", R = !1;!R;E++) { R = E >= J - 1; O = h[E]; if ("\r" !== O && "\n" !== O && (Q += O, E < h.length - 1)) { continue; } l.addRun(L, M, Q, P); if (l.runs.length) { k.length && (n += r); n += p; l.y = n | 0; n += q; l.ascent = p; l.descent = q; l.leading = r; l.align = u; if (c && l.width > g) { for (l = l.wrap(g), Q = 0;Q < l.length;Q++) { var W = l[Q], n = W.y + W.descent + W.leading; k.push(W); W.width > m && (m = W.width); } } else { k.push(l), l.width > m && (m = l.width); } l = new t; } else { n += p + q + r; } Q = ""; if (R) { r = q = p = 0; u = -1; break; } "\r" === O && "\n" === h[E + 1] && E++; } l.addRun(L, M, Q, P); } d = h[h.length - 1]; "\r" !== d && "\n" !== d || k.push(l); d = this.textRect; d.w = m; d.h = n; if (a) { if (!c) { g = m; m = e.w; switch(a) { case 1: d.x = m - (g + 4) >> 1; break; case 3: d.x = m - (g + 4); } this._textBounds.setElements(d.x - 2, d.y - 2, d.w + 4, d.h + 4); e.w = g + 4; } e.x = d.x - 2; e.h = n + 4; } else { this._textBounds = e; } for (E = 0;E < k.length;E++) { if (e = k[E], e.width < g) { switch(e.align) { case 1: e.x = g - e.width | 0; break; case 2: e.x = (g - e.width) / 2 | 0; } } } this.invalidate(); b.leaveTimeline("RenderableText.reflow"); } }; c.roundBoundPoints = function(a) { for (var b = 0;b < a.length;b++) { var c = a[b]; c.x = Math.floor(c.x + .1) + .5; c.y = Math.floor(c.y + .1) + .5; } }; c.prototype.render = function(a) { b.enterTimeline("RenderableText.render"); a.save(); var d = this._textBounds; this._backgroundColor && (a.fillStyle = f.ColorUtilities.rgbaToCSSStyle(this._backgroundColor), a.fillRect(d.x, d.y, d.w, d.h)); if (this._borderColor) { a.strokeStyle = f.ColorUtilities.rgbaToCSSStyle(this._borderColor); a.lineCap = "square"; a.lineWidth = 1; var e = c.absoluteBoundPoints, g = a.currentTransform; g ? (d = d.clone(), (new r(g.a, g.b, g.c, g.d, g.e, g.f)).transformRectangle(d, e), a.setTransform(1, 0, 0, 1, 0, 0)) : (e[0].x = d.x, e[0].y = d.y, e[1].x = d.x + d.w, e[1].y = d.y, e[2].x = d.x + d.w, e[2].y = d.y + d.h, e[3].x = d.x, e[3].y = d.y + d.h); c.roundBoundPoints(e); d = new Path2D; d.moveTo(e[0].x, e[0].y); d.lineTo(e[1].x, e[1].y); d.lineTo(e[2].x, e[2].y); d.lineTo(e[3].x, e[3].y); d.lineTo(e[0].x, e[0].y); a.stroke(d); g && a.setTransform(g.a, g.b, g.c, g.d, g.e, g.f); } this._coords ? this._renderChars(a) : this._renderLines(a); a.restore(); b.leaveTimeline("RenderableText.render"); }; c.prototype._renderChars = function(a) { if (this._matrix) { var b = this._matrix; a.transform(b.a, b.b, b.c, b.d, b.tx, b.ty); } for (var b = this.lines, c = this._coords, d = c.position = 0;d < b.length;d++) { for (var e = b[d].runs, f = 0;f < e.length;f++) { var g = e[f]; a.font = g.font; a.fillStyle = g.fillStyle; for (var g = g.text, h = 0;h < g.length;h++) { var k = c.readInt() / 20, l = c.readInt() / 20; a.fillText(g[h], k, l); } } } }; c.prototype._renderLines = function(a) { var b = this._textBounds; a.beginPath(); a.rect(b.x + 2, b.y + 2, b.w - 4, b.h - 4); a.clip(); a.translate(b.x - this._scrollH + 2, b.y + 2); for (var c = this.lines, d = this._scrollV, e = 0, f = 0;f < c.length;f++) { var g = c[f], h = g.x, k = g.y; if (f + 1 < d) { e = k + g.descent + g.leading; } else { k -= e; if (f + 1 - d && k > b.h) { break; } for (var l = g.runs, n = 0;n < l.length;n++) { var m = l[n]; a.font = m.font; a.fillStyle = m.fillStyle; m.underline && a.fillRect(h, k + g.descent / 2 | 0, m.width, 1); a.textAlign = "left"; a.textBaseline = "alphabetic"; a.fillText(m.text, h, k); h += m.width; } } } }; c.absoluteBoundPoints = [new u(0, 0), new u(0, 0), new u(0, 0), new u(0, 0)]; return c; }(a); b.RenderableText = c; a = function(a) { function b(c, d) { a.call(this); this._flags = 3145728; this.properties = {}; this.setBounds(new k(0, 0, c, d)); } __extends(b, a); Object.defineProperty(b.prototype, "text", {get:function() { return this._text; }, set:function(a) { this._text = a; }, enumerable:!0, configurable:!0}); b.prototype.render = function(a, b, c) { a.save(); a.textBaseline = "top"; a.fillStyle = "white"; a.fillText(this.text, 0, 0); a.restore(); }; return b; }(a); b.Label = a; })(f.GFX || (f.GFX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { function g(b, a, c, e, f) { a = k[a - 1]; f && (f = a / 4, c -= f, e -= f); f = Math.ceil((1 > c ? 1 : c) / (a - 1E-9)); a = Math.ceil((1 > e ? 1 : e) / (a - 1E-9)); b.x -= f; b.w += 2 * f; b.y -= a; b.h += 2 * a; } var q = f.ColorUtilities.clampByte, u = function() { function b() { } b.prototype.expandBounds = function(a) { }; return b; }(); b.Filter = u; var k = [2, 1 / 1.05, 1 / 1.35, 1 / 1.55, 1 / 1.75, 1 / 1.9, .5, 1 / 2.1, 1 / 2.2, 1 / 2.3, .4, 1 / 3, 1 / 3, 1 / 3.5, 1 / 3.5], r = function(b) { function a(a, e, f) { b.call(this); this.blurX = a; this.blurY = e; this.quality = f; } __extends(a, b); a.prototype.expandBounds = function(a) { g(a, this.quality, this.blurX, this.blurY, !0); }; return a; }(u); b.BlurFilter = r; r = function(b) { function a(a, e, f, g, k, p, h, m, q, r, u) { b.call(this); this.alpha = a; this.angle = e; this.blurX = f; this.blurY = g; this.color = k; this.distance = p; this.hideObject = h; this.inner = m; this.knockout = q; this.quality = r; this.strength = u; } __extends(a, b); a.prototype.expandBounds = function(a) { if (!this.inner && (g(a, this.quality, this.blurX, this.blurY, !1), this.distance)) { var b = this.angle * Math.PI / 180, d = Math.cos(b) * this.distance, f = Math.sin(b) * this.distance, b = a.x + (0 <= d ? 0 : Math.floor(d)), d = a.x + a.w + Math.ceil(Math.abs(d)), k = a.y + (0 <= f ? 0 : Math.floor(f)), f = a.y + a.h + Math.ceil(Math.abs(f)); a.x = b; a.w = d - b; a.y = k; a.h = f - k; } }; return a; }(u); b.DropshadowFilter = r; r = function(b) { function a(a, e, f, g, k, p, h, m) { b.call(this); this.alpha = a; this.blurX = e; this.blurY = f; this.color = g; this.inner = k; this.knockout = p; this.quality = h; this.strength = m; } __extends(a, b); a.prototype.expandBounds = function(a) { this.inner || g(a, this.quality, this.blurX, this.blurY, !1); }; return a; }(u); b.GlowFilter = r; (function(b) { b[b.Unknown = 0] = "Unknown"; b[b.Identity = 1] = "Identity"; })(b.ColorMatrixType || (b.ColorMatrixType = {})); u = function(b) { function a(a) { b.call(this); this._data = new Float32Array(a); this._type = 0; } __extends(a, b); a.prototype.clone = function() { var b = new a(this._data); b._type = this._type; return b; }; a.prototype.set = function(a) { this._data.set(a._data); this._type = a._type; }; a.prototype.toWebGLMatrix = function() { return new Float32Array(this._data); }; a.prototype.asWebGLMatrix = function() { return this._data.subarray(0, 16); }; a.prototype.asWebGLVector = function() { return this._data.subarray(16, 20); }; a.prototype.isIdentity = function() { if (this._type & 1) { return !0; } var a = this._data; return 1 == a[0] && 0 == a[1] && 0 == a[2] && 0 == a[3] && 0 == a[4] && 1 == a[5] && 0 == a[6] && 0 == a[7] && 0 == a[8] && 0 == a[9] && 1 == a[10] && 0 == a[11] && 0 == a[12] && 0 == a[13] && 0 == a[14] && 1 == a[15] && 0 == a[16] && 0 == a[17] && 0 == a[18] && 0 == a[19]; }; a.createIdentity = function() { var b = new a([1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0]); b._type = 1; return b; }; a.prototype.setMultipliersAndOffsets = function(a, b, d, f, g, k, h, m) { for (var q = this._data, r = 0;r < q.length;r++) { q[r] = 0; } q[0] = a; q[5] = b; q[10] = d; q[15] = f; q[16] = g / 255; q[17] = k / 255; q[18] = h / 255; q[19] = m / 255; this._type = 0; }; a.prototype.transformRGBA = function(a) { var b = a >> 24 & 255, d = a >> 16 & 255, f = a >> 8 & 255, g = a & 255, k = this._data; a = q(b * k[0] + d * k[1] + f * k[2] + g * k[3] + 255 * k[16]); var h = q(b * k[4] + d * k[5] + f * k[6] + g * k[7] + 255 * k[17]), m = q(b * k[8] + d * k[9] + f * k[10] + g * k[11] + 255 * k[18]), b = q(b * k[12] + d * k[13] + f * k[14] + g * k[15] + 255 * k[19]); return a << 24 | h << 16 | m << 8 | b; }; a.prototype.multiply = function(a) { if (!(a._type & 1)) { var b = this._data, d = a._data; a = b[0]; var f = b[1], g = b[2], k = b[3], h = b[4], m = b[5], q = b[6], r = b[7], u = b[8], K = b[9], z = b[10], A = b[11], B = b[12], x = b[13], C = b[14], y = b[15], D = b[16], G = b[17], F = b[18], I = b[19], E = d[0], J = d[1], L = d[2], M = d[3], P = d[4], R = d[5], O = d[6], Q = d[7], W = d[8], T = d[9], X = d[10], N = d[11], U = d[12], V = d[13], ca = d[14], S = d[15], Z = d[16], ba = d[17], aa = d[18], d = d[19]; b[0] = a * E + h * J + u * L + B * M; b[1] = f * E + m * J + K * L + x * M; b[2] = g * E + q * J + z * L + C * M; b[3] = k * E + r * J + A * L + y * M; b[4] = a * P + h * R + u * O + B * Q; b[5] = f * P + m * R + K * O + x * Q; b[6] = g * P + q * R + z * O + C * Q; b[7] = k * P + r * R + A * O + y * Q; b[8] = a * W + h * T + u * X + B * N; b[9] = f * W + m * T + K * X + x * N; b[10] = g * W + q * T + z * X + C * N; b[11] = k * W + r * T + A * X + y * N; b[12] = a * U + h * V + u * ca + B * S; b[13] = f * U + m * V + K * ca + x * S; b[14] = g * U + q * V + z * ca + C * S; b[15] = k * U + r * V + A * ca + y * S; b[16] = a * Z + h * ba + u * aa + B * d + D; b[17] = f * Z + m * ba + K * aa + x * d + G; b[18] = g * Z + q * ba + z * aa + C * d + F; b[19] = k * Z + r * ba + A * aa + y * d + I; this._type = 0; } }; Object.defineProperty(a.prototype, "alphaMultiplier", {get:function() { return this._data[15]; }, enumerable:!0, configurable:!0}); a.prototype.hasOnlyAlphaMultiplier = function() { var a = this._data; return 1 == a[0] && 0 == a[1] && 0 == a[2] && 0 == a[3] && 0 == a[4] && 1 == a[5] && 0 == a[6] && 0 == a[7] && 0 == a[8] && 0 == a[9] && 1 == a[10] && 0 == a[11] && 0 == a[12] && 0 == a[13] && 0 == a[14] && 0 == a[16] && 0 == a[17] && 0 == a[18] && 0 == a[19]; }; a.prototype.equals = function(a) { if (!a) { return !1; } if (this._type === a._type && 1 === this._type) { return !0; } var b = this._data; a = a._data; for (var d = 0;20 > d;d++) { if (.001 < Math.abs(b[d] - a[d])) { return !1; } } return !0; }; a.prototype.toSVGFilterMatrix = function() { var a = this._data; return [a[0], a[4], a[8], a[12], a[16], a[1], a[5], a[9], a[13], a[17], a[2], a[6], a[10], a[14], a[18], a[3], a[7], a[11], a[15], a[19]].join(" "); }; return a; }(u); b.ColorMatrix = u; })(f.GFX || (f.GFX = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { b.timelineBuffer = new f.Tools.Profiler.TimelineBuffer("Player"); b.counter = new f.Metrics.Counter(!1); b.writer = null; b.enterTimeline = function(f, q) { b.writer && b.writer.enter(f); }; b.leaveTimeline = function(f, q) { b.writer && b.writer.leave(f); }; })(f.Player || (f.Player = {})); })(Shumway || (Shumway = {})); var Shumway$$inline_570 = Shumway || (Shumway = {}); Shumway$$inline_570.playerOptions = Shumway$$inline_570.Settings.shumwayOptions.register(new Shumway$$inline_570.Options.OptionSet("Player Options")); Shumway$$inline_570.frameEnabledOption = Shumway$$inline_570.playerOptions.register(new Shumway$$inline_570.Options.Option("enableFrames", "Enable Frame Execution", "boolean", !0, "Enable frame execution.")); Shumway$$inline_570.timerEnabledOption = Shumway$$inline_570.playerOptions.register(new Shumway$$inline_570.Options.Option("enableTimers", "Enable Timers", "boolean", !0, "Enable timer events.")); Shumway$$inline_570.pumpEnabledOption = Shumway$$inline_570.playerOptions.register(new Shumway$$inline_570.Options.Option("enablePump", "Enable Pump", "boolean", !0, "Enable display tree serialization.")); Shumway$$inline_570.pumpRateOption = Shumway$$inline_570.playerOptions.register(new Shumway$$inline_570.Options.Option("pumpRate", "Pump Rate", "number", 60, "Number of times / second that the display list is synchronized.", {range:{min:1, max:120, step:1}})); Shumway$$inline_570.frameRateOption = Shumway$$inline_570.playerOptions.register(new Shumway$$inline_570.Options.Option("frameRate", "Frame Rate", "number", -1, "Override a movie's frame rate, set to -1 to use the movies default frame rate.", {range:{min:-1, max:120, step:1}})); Shumway$$inline_570.tracePlayerOption = Shumway$$inline_570.playerOptions.register(new Shumway$$inline_570.Options.Option("tp", "Trace Player", "number", 0, "Trace player every n frames.", {range:{min:0, max:512, step:1}})); Shumway$$inline_570.traceMouseEventOption = Shumway$$inline_570.playerOptions.register(new Shumway$$inline_570.Options.Option("tme", "Trace Mouse Events", "boolean", !1, "Trace mouse events.")); Shumway$$inline_570.frameRateMultiplierOption = Shumway$$inline_570.playerOptions.register(new Shumway$$inline_570.Options.Option("", "Frame Rate Multiplier", "number", 1, "Play frames at a faster rate.", {range:{min:1, max:16, step:1}})); Shumway$$inline_570.dontSkipFramesOption = Shumway$$inline_570.playerOptions.register(new Shumway$$inline_570.Options.Option("", "Disables Frame Skipping", "boolean", !1, "Play all frames, e.g. no skipping frame during throttle.")); Shumway$$inline_570.playAllSymbolsOption = Shumway$$inline_570.playerOptions.register(new Shumway$$inline_570.Options.Option("", "Play Symbols", "boolean", !1, "Plays all SWF symbols automatically.")); Shumway$$inline_570.playSymbolOption = Shumway$$inline_570.playerOptions.register(new Shumway$$inline_570.Options.Option("", "Play Symbol Number", "number", 0, "Select symbol by Id.", {range:{min:0, max:2E4, step:1}})); Shumway$$inline_570.playSymbolFrameDurationOption = Shumway$$inline_570.playerOptions.register(new Shumway$$inline_570.Options.Option("", "Play Symbol Duration", "number", 0, "How many frames to play, 0 for all frames of the movie clip.", {range:{min:0, max:128, step:1}})); Shumway$$inline_570.playSymbolCountOption = Shumway$$inline_570.playerOptions.register(new Shumway$$inline_570.Options.Option("", "Play Symbol Count", "number", -1, "Select symbol count.", {range:{min:0, max:2E4, step:1}})); (function(f) { var b = function() { function b() { this._expectedNextFrameAt = performance.now(); this._drawStats = []; this._drawsSkipped = this._drawStarted = this._drawStatsSum = 0; this._expectedNextFrameAt = performance.now(); this._onTime = !0; this._trackDelta = !1; this._onTimeDelta = this._delta = 0; } Object.defineProperty(b.prototype, "shallSkipDraw", {get:function() { return this._drawsSkipped >= b.MAX_DRAWS_TO_SKIP ? !1 : performance.now() + (this._drawStats.length < b.STATS_TO_REMEMBER ? 0 : this._drawStatsSum / this._drawStats.length) + b.INTERVAL_PADDING_MS > this._expectedNextFrameAt; }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "nextFrameIn", {get:function() { return Math.max(0, this._expectedNextFrameAt - performance.now()); }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "isOnTime", {get:function() { return this._onTime; }, enumerable:!0, configurable:!0}); b.prototype.startFrame = function(f) { var u = f = 1E3 / f, k = this._onTimeDelta + this._delta; 0 !== k && (0 > k ? u *= b.SPEED_ADJUST_RATE : 0 < k && (u /= b.SPEED_ADJUST_RATE), this._onTimeDelta += f - u); this._expectedNextFrameAt += u; this._onTime = !0; }; b.prototype.endFrame = function() { var f = performance.now() + b.INTERVAL_PADDING_MS; f > this._expectedNextFrameAt && (this._trackDelta && (this._onTimeDelta += this._expectedNextFrameAt - f, console.log(this._onTimeDelta)), this._expectedNextFrameAt = f, this._onTime = !1); }; b.prototype.startDraw = function() { this._drawsSkipped = 0; this._drawStarted = performance.now(); }; b.prototype.endDraw = function() { var f = performance.now() - this._drawStarted; this._drawStats.push(f); for (this._drawStatsSum += f;this._drawStats.length > b.STATS_TO_REMEMBER;) { this._drawStatsSum -= this._drawStats.shift(); } }; b.prototype.skipDraw = function() { this._drawsSkipped++; }; b.prototype.setDelta = function(b) { this._trackDelta && (this._delta = b); }; b.prototype.startTrackDelta = function() { this._trackDelta = !0; }; b.prototype.endTrackDelta = function() { this._trackDelta && (this._trackDelta = !1, this._onTimeDelta = this._delta = 0); }; b.STATS_TO_REMEMBER = 50; b.MAX_DRAWS_TO_SKIP = 2; b.INTERVAL_PADDING_MS = 4; b.SPEED_ADJUST_RATE = .9; return b; }(); f.FrameScheduler = b; })(Shumway || (Shumway = {})); (function(f) { (function(b) { (function(b) { var q = f.AVMX.AS.flash, u = q.display.DisplayObjectFlags, k = q.display.BlendMode, r = q.display.PixelSnapping, d = f.Bounds, a = q.ui.MouseCursor, c = f.Player.writer, e = function() { function b() { this.phase = 0; this.roots = null; } b.prototype.begin = function(a) { this.roots = [a]; }; b.prototype.remoteObjects = function() { this.phase = 0; for (var a = this.roots, b = 0;b < a.length;b++) { f.Player.enterTimeline("remoting objects"), this.writeDirtyDisplayObjects(a[b]), f.Player.leaveTimeline("remoting objects"); } }; b.prototype.remoteReferences = function() { this.phase = 1; for (var a = this.roots, b = 0;b < a.length;b++) { f.Player.enterTimeline("remoting references"), this.writeDirtyDisplayObjects(a[b], !0), f.Player.leaveTimeline("remoting references"); } }; b.prototype.writeDirtyDisplayObjects = function(a, b) { void 0 === b && (b = !1); var c = this, d = this.roots; a.visit(function(a) { a._hasAnyFlags(u.Dirty) && (c.writeUpdateFrame(a), d && a.mask && f.ArrayUtilities.pushUnique(d, a.mask._findFurthestAncestorOrSelf())); c.writeDirtyAssets(a); if (a._hasFlags(536870912)) { return 0; } b && a._removeFlags(536870912); return 2; }, 0); }; b.prototype.writeStage = function(b, e) { c && c.writeLn("Sending Stage"); this.output.writeInt(104); this.output.writeInt(b._id); this.output.writeInt(b.color); this._writeRectangle(new d(0, 0, 20 * b.stageWidth, 20 * b.stageHeight)); this.output.writeInt(q.display.StageAlign.toNumber(b.align)); this.output.writeInt(q.display.StageScaleMode.toNumber(b.scaleMode)); this.output.writeInt(q.display.StageDisplayState.toNumber(b.displayState)); var f = b.sec.flash.ui.Mouse.axClass.cursor; if (e) { if (this.output.writeInt(e._id), f === a.AUTO) { var g = e; do { if (b.sec.flash.display.SimpleButton.axClass.axIsType(g) || b.sec.flash.display.Sprite.axClass.axIsType(g) && g.buttonMode && e.useHandCursor) { f = a.BUTTON; break; } g = g._parent; } while (g && g !== b); } } else { this.output.writeInt(-1); } this.output.writeInt(a.toNumber(f)); }; b.prototype.writeGraphics = function(a) { if (a._isDirty) { c && c.writeLn("Sending Graphics: " + a._id); for (var b = a._textures, d = b.length, e = 0;e < d;e++) { b[e] && this.writeBitmapData(b[e]); } this.output.writeInt(101); this.output.writeInt(a._id); this.output.writeInt(-1); this._writeRectangle(a._getContentBounds()); this._writeAsset(a._graphicsData.toPlainObject()); this.output.writeInt(d); for (e = 0;e < d;e++) { this.output.writeInt(b[e] ? b[e]._id : -1); } a._isDirty = !1; } }; b.prototype.writeNetStream = function(a, b) { a._isDirty && (c && c.writeLn("Sending NetStream: " + a._id), this.output.writeInt(105), this.output.writeInt(a._id), this._writeRectangle(b), a._isDirty = !1); }; b.prototype.writeBitmapData = function(a) { a._isDirty && (c && c.writeLn("Sending BitmapData: " + a._id), this.output.writeInt(102), this.output.writeInt(a._id), this.output.writeInt(a._symbol ? a._symbol.id : -1), this._writeRectangle(a._getContentBounds()), this.output.writeInt(a._type), this._writeAsset(a._dataBuffer.toPlainObject()), a._isDirty = !1); }; b.prototype.writeTextContent = function(a) { if (a.flags & f.TextContentFlags.Dirty) { c && c.writeLn("Sending TextContent: " + a._id); this.output.writeInt(103); this.output.writeInt(a._id); this.output.writeInt(-1); this._writeRectangle(a.bounds); var b = a.sec.flash.geom.Matrix.axClass.FROZEN_IDENTITY_MATRIX; this._writeMatrix(a.matrix || b); this.output.writeInt(a.backgroundColor); this.output.writeInt(a.borderColor); this.output.writeInt(a.autoSize); this.output.writeBoolean(a.wordWrap); this.output.writeInt(a.scrollV); this.output.writeInt(a.scrollH); this._writeAsset(a.plainText); this._writeAsset(a.textRunData.toPlainObject()); if (b = a.coords) { var d = b.length; this.output.writeInt(d); for (var e = 0;e < d;e++) { this.output.writeInt(b[e]); } } else { this.output.writeInt(0); } a.flags &= ~f.TextContentFlags.Dirty; } }; b.prototype.writeClippedObjectsCount = function(a) { if (0 <= a._clipDepth && a._parent) { var b = a._parent.getChildIndex(a); a = a._parent.getClipDepthIndex(a._clipDepth); if (0 > a - b) { this.output.writeInt(-1); } else { for (var c = b + 1;c <= b;c++) { } this.output.writeInt(a - b); } } else { this.output.writeInt(-1); } }; b.prototype.writeUpdateFrame = function(a) { this.output.writeInt(100); this.output.writeInt(a._id); c && c.writeLn("Sending UpdateFrame: " + a.debugName(!0)); var b = !1, d = a._hasFlags(1048576), e = a._hasFlags(67108864), f = a._hasFlags(1073741824), g = null; a.sec.flash.media.Video.axClass.axIsType(a) && (g = a); var l = !1; 1 === this.phase && (l = a._hasAnyFlags(65011712), b = a._hasFlags(134217728)); var q = null; a.sec.flash.display.Bitmap.axClass.axIsType(a) && (q = a); var K = a._hasFlags(268435456), z; z = 0 | (d ? 1 : 0) | (e ? 8 : 0); z |= b ? 64 : 0; z |= K ? 128 : 0; z |= f ? 32 : 0; z |= l ? 4 : 0; this.output.writeInt(z); d && this._writeMatrix(a._getMatrix()); e && this._writeColorTransform(a._colorTransform); b && this.output.writeInt(a.mask ? a.mask._id : -1); K && this.writeClippedObjectsCount(a); f && (this.output.writeInt(a._ratio), this.output.writeInt(k.toNumber(a._blendMode)), this._writeFilters(a._filters), this.output.writeBoolean(a._hasFlags(1)), this.output.writeBoolean(a.cacheAsBitmap), q ? (this.output.writeInt(r.toNumber(q.pixelSnapping)), this.output.writeInt(q.smoothing ? 1 : 0)) : (this.output.writeInt(r.toNumber(r.AUTO)), this.output.writeInt(1))); b = a._getGraphics(); d = a._getTextContent(); if (l) { c && c.enter("Children: {"); if (q) { q.bitmapData ? (this.output.writeInt(1), this.output.writeInt(134217728 | q.bitmapData._id)) : this.output.writeInt(0); } else { if (g) { g._netStream ? (this.output.writeInt(1), this.output.writeInt(134217728 | g._netStream._id)) : this.output.writeInt(0); } else { if (l = b || d ? 1 : 0, (g = a._children) && (l += g.length), this.output.writeInt(l), b ? (c && c.writeLn("Reference Graphics: " + b._id), this.output.writeInt(134217728 | b._id)) : d && (c && c.writeLn("Reference TextContent: " + d._id), this.output.writeInt(134217728 | d._id)), g) { for (l = 0;l < g.length;l++) { c && c.writeLn("Reference DisplayObject: " + g[l].debugName()), this.output.writeInt(g[l]._id), 0 <= g[l]._clipDepth && g[l]._setFlags(268435456); } } } } c && c.leave("}"); } 1 === this.phase && a._removeFlags(u.Dirty); }; b.prototype.writeDirtyAssets = function(a) { var b = a._getGraphics(); b ? this.writeGraphics(b) : (b = a._getTextContent()) ? this.writeTextContent(b) : (b = null, a.sec.flash.display.Bitmap.axClass.axIsType(a) ? (b = a, b.bitmapData && this.writeBitmapData(b.bitmapData)) : (b = null, a.sec.flash.media.Video.axClass.axIsType(a) && (b = a, b._netStream && this.writeNetStream(b._netStream, b._getContentBounds())))); }; b.prototype.writeDrawToBitmap = function(a, b, c, e, f, g, l) { void 0 === c && (c = null); void 0 === e && (e = null); void 0 === f && (f = null); void 0 === g && (g = null); void 0 === l && (l = !1); this.output.writeInt(200); this.output.writeInt(a._id); a.sec.flash.display.BitmapData.axClass.axIsType(b) ? this.output.writeInt(134217728 | b._id) : this.output.writeInt(b._id); a = 0 | (c ? 1 : 0) | (e ? 8 : 0); a |= g ? 16 : 0; this.output.writeInt(a); c && this._writeMatrix(c); e && this._writeColorTransform(e); g && this._writeRectangle(d.FromRectangle(g)); this.output.writeInt(k.toNumber(f)); this.output.writeBoolean(l); }; b.prototype._writeMatrix = function(a) { this.output.write6Floats(a.a, a.b, a.c, a.d, a.tx, a.ty); }; b.prototype._writeRectangle = function(a) { this.output.write4Ints(a.xMin, a.yMin, a.width, a.height); }; b.prototype._writeAsset = function(a) { this.output.writeInt(this.outputAssets.length); this.outputAssets.push(a); }; b.prototype._writeFilters = function(a) { if (a && 0 !== a.length) { for (var b = a[0].sec, c = 0, d = b.flash.filters.BlurFilter.axClass, e = b.flash.filters.DropShadowFilter.axClass, g = b.flash.filters.GlowFilter.axClass, b = b.flash.filters.ColorMatrixFilter.axClass, k = 0;k < a.length;k++) { d.axIsType(a[k]) || e.axIsType(a[k]) || g.axIsType(a[k]) || b.axIsType(a[k]) ? c++ : f.Debug.somewhatImplemented(a[k].toString()); } this.output.writeInt(c); for (k = 0;k < a.length;k++) { if (c = a[k], d.axIsType(c)) { this.output.writeInt(0), this.output.writeFloat(c.blurX), this.output.writeFloat(c.blurY), this.output.writeInt(c.quality); } else { if (e.axIsType(c)) { this.output.writeInt(1), this.output.writeFloat(c.alpha), this.output.writeFloat(c.angle), this.output.writeFloat(c.blurX), this.output.writeFloat(c.blurY), this.output.writeInt(c.color), this.output.writeFloat(c.distance), this.output.writeBoolean(c.hideObject), this.output.writeBoolean(c.inner), this.output.writeBoolean(c.knockout), this.output.writeInt(c.quality), this.output.writeFloat(c.strength); } else { if (g.axIsType(c)) { this.output.writeInt(1), this.output.writeFloat(c.alpha), this.output.writeFloat(0), this.output.writeFloat(c.blurX), this.output.writeFloat(c.blurY), this.output.writeInt(c.color), this.output.writeFloat(0), this.output.writeBoolean(!1), this.output.writeBoolean(c.inner), this.output.writeBoolean(c.knockout), this.output.writeInt(c.quality), this.output.writeFloat(c.strength); } else { if (b.axIsType(c)) { c = c.matrix.value; this.output.writeInt(2); for (var l = 0;20 > l;l++) { this.output.writeFloat(c[l]); } } } } } } } else { this.output.writeInt(0); } }; b.prototype._writeColorTransform = function(a) { var b = this.output, c = a.redMultiplier, d = a.greenMultiplier, e = a.blueMultiplier, f = a.alphaMultiplier, g = a.redOffset, k = a.greenOffset, l = a.blueOffset; a = a.alphaOffset; g === k && k === l && l === a && 0 === a && c === d && d === e && 1 === e ? 1 === f ? b.writeInt(0) : (b.writeInt(1), b.writeFloat(f)) : (b.writeInt(2), b.writeFloat(c), b.writeFloat(d), b.writeFloat(e), b.writeFloat(f), b.writeInt(g), b.writeInt(k), b.writeInt(l), b.writeInt(a)); }; b.prototype.writeRequestBitmapData = function(a) { c && c.writeLn("Sending BitmapData Request"); this.output.writeInt(106); this.output.writeInt(a._id); }; return b; }(); b.PlayerChannelSerializer = e; e = function() { function a(b, c, d) { this.sec = b; this.input = c; this.inputAssets = d; } a.prototype.read = function() { switch(this.input.readInt()) { case 300: return this._readMouseEvent(); case 301: return this._readKeyboardEvent(); case 302: return this._readFocusEvent(); } }; a.prototype._readFocusEvent = function() { return {tag:302, type:this.input.readInt()}; }; a.prototype._readMouseEvent = function() { var a = this.input, b = a.readInt(), b = f.Remoting.MouseEventNames[b], c = a.readFloat(), d = a.readFloat(), e = a.readInt(), a = a.readInt(); return {tag:300, type:b, point:new this.sec.flash.geom.Point(c, d), ctrlKey:!!(a & 1), altKey:!!(a & 2), shiftKey:!!(a & 4), buttons:e}; }; a.prototype._readKeyboardEvent = function() { var a = this.input, b = a.readInt(), b = f.Remoting.KeyboardEventNames[b], c = a.readInt(), d = a.readInt(), e = a.readInt(), a = a.readInt(); return {tag:301, type:b, keyCode:c, charCode:d, location:e, ctrlKey:!!(a & 1), altKey:!!(a & 2), shiftKey:!!(a & 4)}; }; return a; }(); b.PlayerChannelDeserializer = e; })(b.Player || (b.Player = {})); })(f.Remoting || (f.Remoting = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { var g = f.Debug.somewhatImplemented, q = f.AVMX.AS.flash, u = f.ArrayUtilities.DataBuffer, k = q.events.Event, r = q.display.Loader, d = q.ui.MouseEventDispatcher, a = q.ui.KeyboardEventDispatcher, c = function() { function a(b) { this._observers = []; this.sec = b; } a.prototype.addObserver = function(a) { this._observers.push(a); }; a.prototype.removeObserver = function(a) { a = this._observers.indexOf(a); 0 <= a && this._observers.splice(a, 1); }; a.prototype.update = function(a, b) { throw Error("This method is abstract"); }; a.prototype.updateAndGet = function(a, b) { throw Error("This method is abstract"); }; a.prototype.frame = function() { throw Error("This method is abstract"); }; a.prototype.videoControl = function(a, b, c) { throw Error("This method is abstract"); }; a.prototype.registerFont = function(a, b) { throw Error("This method is abstract"); }; a.prototype.registerImage = function(a, b, c, d) { throw Error("This method is abstract"); }; a.prototype.fscommand = function(a, b) { throw Error("This method is abstract"); }; a.prototype.processUpdates = function(a, b) { var c = (new f.Remoting.Player.PlayerChannelDeserializer(this.sec, a, b)).read(); switch(c.tag) { case 301: this._observers.forEach(function(a) { a.keyboardEvent(c); }); break; case 300: this._observers.forEach(function(a) { a.mouseEvent(c); }); break; case 302: this._observers.forEach(function(a) { a.focusEvent(c); }); } }; a.prototype.processDisplayParameters = function(a) { this._observers.forEach(function(b) { b.displayParameters(a); }); }; a.prototype.processVideoEvent = function(a, b, c) { this._observers.forEach(function(d) { d.videoEvent(a, b, c); }); }; return a; }(); b.GFXServiceBase = c; var e = function() { function b(c) { this._videoEventListeners = []; this._player = c; this._keyboardEventDispatcher = new a; this._mouseEventDispatcher = new d; this._writer = new f.IndentingWriter; } b.prototype.videoEvent = function(a, b, c) { a = this._videoEventListeners[a]; f.Debug.assert(a, "Video event listener is not found"); a(b, c); }; b.prototype.displayParameters = function(a) { this._player._stage.setStageContainerSize(a.stageWidth, a.stageHeight, a.pixelRatio); }; b.prototype.focusEvent = function(a) { switch(a.type) { case 0: this._player._isPageVisible = !1; break; case 1: this._player._isPageVisible = !0; break; case 2: this._player._hasFocus = !1; break; case 3: this._player.sec.flash.events.EventDispatcher.axClass.broadcastEventDispatchQueue.dispatchEvent(this._player.sec.flash.events.Event.axClass.getBroadcastInstance(k.ACTIVATE)), this._player._hasFocus = !0; } }; b.prototype.keyboardEvent = function(a) { this._keyboardEventDispatcher.target = this._player._stage.focus ? this._player._stage.focus : this._player._stage; this._keyboardEventDispatcher.dispatchKeyboardEvent(a); }; b.prototype.mouseEvent = function(a) { this._mouseEventDispatcher.stage = this._player._stage; var b = this._mouseEventDispatcher.handleMouseEvent(a); f.traceMouseEventOption.value && (this._writer.writeLn("Mouse Event: type: " + a.type + ", point: " + a.point + ", target: " + b + (b ? ", name: " + b._name : "")), "click" === a.type && b && b.debugTrace()); this._player._currentMouseTarget = this._mouseEventDispatcher.currentTarget; }; b.prototype.registerEventListener = function(a, b) { this._videoEventListeners[a] = b; }; return b; }(), c = function() { function a(b, c, d) { void 0 === d && (d = "dev"); this._lastPumpTime = this._framesPlayed = 0; this._hasFocus = this._isPageVisible = !0; this._loaderUrl = this._swfUrl = this._pageUrl = this._currentMouseTarget = null; this._crossDomainSWFLoadingWhitelist = []; this.sec = b; b.player = this; this._writer = new f.IndentingWriter; this._gfxService = c; this._gfxServiceObserver = new e(this); this._gfxService.addObserver(this._gfxServiceObserver); this._env = d; } Object.defineProperty(a.prototype, "framesPlayed", {get:function() { return this._framesPlayed; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "stage", {get:function() { return this._stage; }, enumerable:!0, configurable:!0}); a.prototype._shouldThrottleDownRendering = function() { return !this._isPageVisible; }; a.prototype._shouldThrottleDownFrameExecution = function() { return !this._isPageVisible; }; Object.defineProperty(a.prototype, "pageUrl", {get:function() { return this._pageUrl; }, set:function(a) { this._pageUrl = a || null; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "loaderUrl", {get:function() { return this._loaderUrl; }, set:function(a) { this._loaderUrl = a || null; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "swfUrl", {get:function() { return this._swfUrl; }, enumerable:!0, configurable:!0}); a.prototype.load = function(a, b) { this._swfUrl = this._loaderUrl = a; this._stage = new this.sec.flash.display.Stage; var c = this._loaderInfo = (this._loader = this.sec.flash.display.Loader.axClass.getRootLoader()).contentLoaderInfo; f.playAllSymbolsOption.value ? (this._playAllSymbols(), c._allowCodeExecution = !1) : this._enterRootLoadingLoop(); this.addToSWFLoadingWhitelist(f.FileLoadingService.instance.resolveUrl(a), !1); c = this.createLoaderContext(); if (b) { var d = new this.sec.flash.utils.ByteArray(b); this._loader.loadBytes(d, c); this._loader.contentLoaderInfo._url = a; } else { this._loader.load(new this.sec.flash.net.URLRequest(a), c); } }; a.prototype.createLoaderContext = function() { var a = new this.sec.flash.system.LoaderContext; if (this.movieParams) { var b = this.sec.createObject(), c; for (c in this.movieParams) { b.axSetPublicProperty(c, this.movieParams[c]); } a.parameters = b; } return a; }; a.prototype._pumpDisplayListUpdates = function() { this.syncDisplayObject(this._stage, !0); }; a.prototype.syncDisplayObject = function(a, c) { var d = new u, e = [], g = new f.Remoting.Player.PlayerChannelSerializer; g.output = d; g.outputAssets = e; this.sec.flash.display.Stage.axClass.axIsType(a) && g.writeStage(a, this._currentMouseTarget); g.begin(a); g.remoteObjects(); g.remoteReferences(); d.writeInt(0); b.enterTimeline("remoting assets"); var k; c ? this._gfxService.update(d, e) : k = this._gfxService.updateAndGet(d, e); b.leaveTimeline("remoting assets"); return k; }; a.prototype.requestBitmapData = function(a) { var b = new u, c = [], d = new f.Remoting.Player.PlayerChannelSerializer; d.output = b; d.outputAssets = c; d.writeRequestBitmapData(a); b.writeInt(0); return this._gfxService.updateAndGet(b, c); }; a.prototype.drawToBitmap = function(a, c, d, e, g, k, l) { void 0 === d && (d = null); void 0 === e && (e = null); void 0 === g && (g = null); void 0 === k && (k = null); void 0 === l && (l = !1); var q = new u, r = [], z = new f.Remoting.Player.PlayerChannelSerializer; z.output = q; z.outputAssets = r; z.writeBitmapData(a); this.sec.flash.display.BitmapData.axClass.axIsType(c) ? z.writeBitmapData(c) : (z.begin(c), z.remoteObjects(), z.remoteReferences()); z.writeDrawToBitmap(a, c, d, e, g, k, l); q.writeInt(0); b.enterTimeline("sendUpdates"); this._gfxService.updateAndGet(q, r); b.leaveTimeline("sendUpdates"); }; a.prototype.registerEventListener = function(a, b) { this._gfxServiceObserver.registerEventListener(a, b); }; a.prototype.notifyVideoControl = function(a, b, c) { return this._gfxService.videoControl(a, b, c); }; a.prototype.executeFSCommand = function(a, b) { switch(a) { case "quit": this._leaveEventLoop(); break; default: g("FSCommand " + a); } this._gfxService.fscommand(a, b); }; a.prototype.requestRendering = function() { this._pumpDisplayListUpdates(); }; a.prototype._pumpUpdates = function() { if (f.dontSkipFramesOption.value || !(this._shouldThrottleDownRendering() || performance.now() - this._lastPumpTime < 1E3 / f.pumpRateOption.value)) { b.enterTimeline("pump"), f.pumpEnabledOption.value && (this._pumpDisplayListUpdates(), this._lastPumpTime = performance.now()), b.leaveTimeline("pump"); } }; a.prototype._leaveSyncLoop = function() { clearInterval(this._frameTimeout); }; a.prototype._getFrameInterval = function() { var a = f.frameRateOption.value; 0 > a && (a = this._stage.frameRate); return Math.floor(1E3 / a); }; a.prototype._enterEventLoop = function() { function a() { b._frameTimeout = setTimeout(a, b._getFrameInterval()); b._eventLoopTick(); } this._eventLoopIsRunning = !0; var b = this; "test" === this._env ? (q.external.ExternalInterface.ensureInitialized(), q.external.ExternalInterface._addCallback("__tick__", function() { console.log("tick"); b._eventLoopTick(); }), q.external.ExternalInterface._addCallback("__takeScreenshot__", function() { }), this._eventLoopTick()) : (isNaN(this.initStartTime) || console.info("Time from init start to main event loop start: " + (Date.now() - this.initStartTime)), a()); }; a.prototype._leaveEventLoop = function() { clearTimeout(this._frameTimeout); this._eventLoopIsRunning = !1; }; a.prototype._enterRootLoadingLoop = function() { function a() { var d = c.contentLoaderInfo; if (d._file) { if ("test" !== b._env || r.getRootLoader().content) { var e = b._stage, g = void 0 !== b.defaultStageColor ? b.defaultStageColor : d._file.backgroundColor; e._loaderInfo = d; e.align = b.stageAlign || ""; !b.stageScale || 0 > q.display.StageScaleMode.toNumber(b.stageScale) ? e.scaleMode = q.display.StageScaleMode.SHOW_ALL : e.scaleMode = b.stageScale; e.frameRate = d.frameRate; e.setStageWidth(d.width); e.setStageHeight(d.height); e.setStageColor(f.ColorUtilities.RGBAToARGB(g)); b.displayParameters && b._gfxServiceObserver.displayParameters(b.displayParameters); b._enterEventLoop(); } else { r.processEvents(), setTimeout(a, b._getFrameInterval()); } } else { setTimeout(a, b._getFrameInterval()); } } var b = this, c = this.sec.flash.display.Loader.axClass.getRootLoader(); c._setStage(this._stage); a(); }; a.prototype._eventLoopTick = function() { var a = !f.playAllSymbolsOption.value; if (f.dontSkipFramesOption.value || !(!f.frameEnabledOption.value && a || this._shouldThrottleDownFrameExecution())) { var c = this.sec.flash.display.DisplayObject.axClass; c._stage = this._stage; var d = this.sec.flash.display.Loader.axClass; if (!d.getRootLoader().content && (d.processEvents(), !d.getRootLoader().content)) { return; } for (var e = 0;e < f.frameRateMultiplierOption.value;e++) { b.enterTimeline("eventLoop"); var g = performance.now(); c.performFrameNavigation(!0, a); b.counter.count("performFrameNavigation", 1, performance.now() - g); d.processEvents(); b.leaveTimeline("eventLoop"); } this._framesPlayed++; 0 < f.tracePlayerOption.value && 0 === this._framesPlayed % f.tracePlayerOption.value && this._tracePlayer(); this._stage.render(); this._pumpUpdates(); this._gfxService.frame(); } }; a.prototype._tracePlayer = function() { this._writer.writeLn("Frame: " + String(this._framesPlayed).padLeft(" ", 4) + ": " + f.IntegerUtilities.toHEX(this._stage.hashCode()) + " " + String(this._stage.getAncestorCount()).padLeft(" ", 4)); }; a.prototype._playAllSymbols = function() { var a = this._stage, b = this._loader, c = this._loaderInfo, d = this; c.addEventListener(q.events.ProgressEvent.PROGRESS, function v() { b.content && (c.removeEventListener(q.events.ProgressEvent.PROGRESS, v), d._enterEventLoop()); }); c.addEventListener(q.events.Event.COMPLETE, function() { function b(c) { q.display.DisplayObject.reset(); q.display.MovieClip.reset(); var d = c.symbolClass.initializeFrom(c); c.symbolClass.instanceConstructorNoInitialize.call(d); for (c instanceof q.display.BitmapSymbol && (d = new this.sec.flash.display.Bitmap(d));0 < a.numChildren;) { a.removeChildAt(0); } a.addChild(d); } function e() { var a; 0 < f.playSymbolOption.value ? (a = c.getSymbolById(f.playSymbolOption.value), a instanceof f.Timeline.DisplaySymbol || (a = null)) : (a = g[k++], k === g.length && (k = 0), 0 <= f.playSymbolCountOption.value && k > f.playSymbolCountOption.value && (k = 0)); var l = 1; a && 0 < a.id && (b(a), a instanceof q.display.SpriteSymbol && (l = a.numFrames)); 0 < f.playSymbolFrameDurationOption.value && (l = f.playSymbolFrameDurationOption.value); setTimeout(e, d._getFrameInterval() * l); } a.setStageWidth(1024); a.setStageHeight(1024); var g = []; c._dictionary.forEach(function(a, b) { a instanceof f.Timeline.DisplaySymbol && g.push(a); }); var k = 0; setTimeout(e, d._getFrameInterval()); }); }; a.prototype.registerFont = function(a, b) { a.resolveAssetPromise = new f.PromiseWrapper; this._gfxService.registerFont(a.syncId, b).then(function(b) { a.resolveAssetPromise.resolve(b); }); inFirefox ? a.ready = !0 : a.resolveAssetPromise.then(a.resolveAssetCallback, null); }; a.prototype.registerImage = function(a, b, c) { a.resolveAssetPromise = new f.PromiseWrapper; this._gfxService.registerImage(a.syncId, a.id, b, c).then(function(b) { a.resolveAssetPromise.resolve(b); }); a.resolveAssetPromise.then(a.resolveAssetCallback, null); }; a.prototype.addToSWFLoadingWhitelist = function(a, b) { if (0 > a.indexOf("/")) { this._crossDomainSWFLoadingWhitelist.push({protocol:"http:", hostname:a, insecure:b}); } else { try { var c = new window.URL(a); this._crossDomainSWFLoadingWhitelist.push({protocol:c.protocol, hostname:c.hostname, insecure:b}); } catch (d) { } } }; a.prototype.checkDomainForSWFLoading = function(a) { try { var b = new window.URL(a); } catch (c) { return !1; } return this._crossDomainSWFLoadingWhitelist.some(function(a) { return b.hostname !== a.hostname && "*" !== a.hostname ? !1 : a.insecure ? !0 : "https:" === b.protocol || "https:" !== a.protocol; }, this); }; return a; }(); b.Player = c; })(f.Player || (f.Player = {})); })(Shumway || (Shumway = {})); (function(f) { (function(b) { b[b.Builtin = 1] = "Builtin"; b[b.Playerglobal = 2] = "Playerglobal"; b[b.Shell = 4] = "Shell"; })(f.AVM2LoadLibrariesFlags || (f.AVM2LoadLibrariesFlags = {})); f.createSecurityDomain = function(b) { var g = new f.PromiseWrapper; f.SWF.enterTimeline("Load builton.abc file"); f.SystemResourcesLoadingService.instance.load(0).then(function(q) { var u = new f.AVMX.AXSecurityDomain; q = new f.AVMX.ABCFile({url:"builtin.abc", app:u.system}, new Uint8Array(q)); u.system.loadABC(q); u.initialize(); u.system.executeABC(q); f.SWF.leaveTimeline(); if (b & 2) { return f.SWF.enterTimeline("Load playerglobal files"), Promise.all([f.SystemResourcesLoadingService.instance.load(1), f.SystemResourcesLoadingService.instance.load(2)]).then(function(b) { b = new f.AVMX.ABCCatalog(u.system, new Uint8Array(b[0]), b[1]); u.addCatalog(b); f.SWF.leaveTimeline(); g.resolve(u); }, g.reject); } g.resolve(u); }, g.reject); return g.promise; }; })(Shumway || (Shumway = {})); (function(f) { (function(b) { var g = function() { function b() { } Object.defineProperty(b.prototype, "enabled", {get:function() { return !0; }, enumerable:!0, configurable:!0}); b.prototype.initJS = function(b) { ShumwayCom.externalCom({action:"init"}); ShumwayCom.setExternalCallback(function(f) { return b(f.functionName, f.args); }); this._externalCallback = b; }; b.prototype.registerCallback = function(b) { ShumwayCom.externalCom({action:"register", functionName:b, remove:!1}); }; b.prototype.unregisterCallback = function(b) { ShumwayCom.externalCom({action:"register", functionName:b, remove:!0}); }; b.prototype.eval = function(b) { return ShumwayCom.externalCom({action:"eval", expression:b}); }; b.prototype.call = function(b) { return ShumwayCom.externalCom({action:"call", request:b}); }; b.prototype.getId = function() { return ShumwayCom.externalCom({action:"getId"}); }; return b; }(); b.ShumwayComExternalInterface = g; g = function() { function b() { this._baseUrl = null; this._nextSessionId = 1; this._sessions = []; } b.prototype.init = function(b) { this._baseUrl = b; var f = this; ShumwayCom.setLoadFileCallback(function(b) { var d = f._sessions[b.sessionId]; d && f._notifySession(d, b); }); }; b.prototype._notifySession = function(b, f) { var g = f.sessionId; switch(f.topic) { case "open": b.onopen(); break; case "close": b.onclose(); this._sessions[g] = null; console.log("Session #" + g + ": closed"); break; case "error": b.onerror && b.onerror(f.error); break; case "progress": console.log("Session #" + g + ": loaded " + f.loaded + "/" + f.total), g = f.array, g instanceof Uint8Array || (g = new Uint8Array(g)), b.onprogress && b.onprogress(g, {bytesLoaded:f.loaded, bytesTotal:f.total}); } }; b.prototype.createSession = function() { var b = this._nextSessionId++, f = this; return this._sessions[b] = {open:function(g) { var d = f.resolveUrl(g.url); console.log("Session #" + b + ": loading " + d); ShumwayCom.loadFile({url:d, method:g.method, mimeType:g.mimeType, postData:g.data, checkPolicyFile:g.checkPolicyFile, sessionId:b}); }, close:function() { f._sessions[b] && ShumwayCom.abortLoad(b); }}; }; b.prototype.resolveUrl = function(b) { return (new window.URL(b, this._baseUrl)).href; }; b.prototype.navigateTo = function(b, f) { ShumwayCom.navigateTo({url:this.resolveUrl(b), target:f}); }; return b; }(); b.ShumwayComFileLoadingService = g; g = function() { function b() { } b.prototype.setClipboard = function(b) { ShumwayCom.setClipboard(b); }; return b; }(); b.ShumwayComClipboardService = g; g = function() { function b() { } b.prototype.reportTelemetry = function(b) { }; return b; }(); b.ShumwayComTelemetryService = g; g = function() { function b() { } b.prototype.createSession = function() { var b = this, g; return {open:function(q) { var d = this, a = b.resolveUrl(q.url); console.log("FileLoadingService: loading " + a + ", data: " + q.data); g = new f.BinaryFileReader(a, q.method, q.mimeType, q.data); g.readChunked(b._fileReadChunkSize, function(a, b) { d.onprogress(a, {bytesLoaded:b.loaded, bytesTotal:b.total}); }, function(a) { d.onerror(a); }, d.onopen, d.onclose, d.onhttpstatus); }, close:function() { g.abort(); g = null; }}; }; b.prototype.init = function(b, f) { void 0 === f && (f = 0); this._baseUrl = b; this._fileReadChunkSize = f; }; b.prototype.resolveUrl = function(b) { return (new window.URL(b, this._baseUrl)).href; }; b.prototype.navigateTo = function(b, f) { window.open(this.resolveUrl(b), f || "_blank"); }; return b; }(); b.BrowserFileLoadingService = g; g = function() { function b(f) { this._pendingPromises = []; f && (this.load(0), this.load(1), this.load(2)); ShumwayCom.setSystemResourceCallback(this._onSystemResourceCallback.bind(this)); } b.prototype._onSystemResourceCallback = function(b, f) { this._pendingPromises[b].resolve(f); }; b.prototype.load = function(b) { var g = this._pendingPromises[b]; g || (g = new f.PromiseWrapper, this._pendingPromises[b] = g, ShumwayCom.loadSystemResource(b)); return g.promise; }; return b; }(); b.ShumwayComResourcesLoadingService = g; g = function() { function b(f, g, q) { this.builtinPath = f; this.viewerPlayerglobalInfo = g; this.shellPath = q; } b.prototype.load = function(b) { switch(b) { case 0: return this._promiseFile(this.builtinPath, "arraybuffer"); case 1: return this._promiseFile(this.viewerPlayerglobalInfo.abcs, "arraybuffer"); case 2: return this._promiseFile(this.viewerPlayerglobalInfo.catalog, "json"); case 3: return this._promiseFile(this.shellPath, "arraybuffer"); default: return Promise.reject(Error("Unsupported system resource id: " + b)); } }; b.prototype._promiseFile = function(b, g) { return new Promise(function(q, d) { f.SWF.enterTimeline("Load file", b); var a = new XMLHttpRequest; a.open("GET", b); a.responseType = g; a.onload = function() { f.SWF.leaveTimeline(); var c = a.response; c ? ("json" === g && "json" !== a.responseType && (c = JSON.parse(c)), q(c)) : d("Unable to load " + b + ": " + a.statusText); }; a.onerror = function() { f.SWF.leaveTimeline(); d("Unable to load: xhr error"); }; a.send(); }); }; return b; }(); b.BrowserSystemResourcesLoadingService = g; })(f.Player || (f.Player = {})); })(Shumway || (Shumway = {})); __extends = this.__extends || function(f, b) { function g() { this.constructor = f; } for (var q in b) { b.hasOwnProperty(q) && (f[q] = b[q]); } g.prototype = b.prototype; f.prototype = new g; }; (function(f) { (function(b) { (function(g) { var q = f.ArrayUtilities.DataBuffer, u = function(b) { function g(d, a, c) { b.call(this, d); this._window = a; this._parent = c || a.parent; this._window.addEventListener("message", function(a) { this.onWindowMessage(a.data); }.bind(this)); this._assetDecodingRequests = []; } __extends(g, b); g.prototype.update = function(b, a) { var c = b.getBytes(); this._parent.postMessage({type:"player", updates:c, assets:a, result:void 0}, "*", [c.buffer]); }; g.prototype.updateAndGet = function(b, a) { var c = {type:"player", updates:b.getBytes(), assets:a, result:void 0}, c = this._sendSyncMessage(c); return q.FromPlainObject(c); }; g.prototype.frame = function() { this._parent.postMessage({type:"frame"}, "*"); }; g.prototype.videoControl = function(b, a, c) { return this._sendSyncMessage({type:"videoControl", id:b, eventType:a, data:c, result:void 0}); }; g.prototype._sendSyncMessage = function(b) { if ("undefined" !== typeof ShumwayCom && ShumwayCom.postSyncMessage) { return ShumwayCom.postSyncMessage(b); } var a = this._parent.document.createEvent("CustomEvent"); a.initCustomEvent("syncmessage", !1, !1, b); this._parent.dispatchEvent(a); return b.result; }; g.prototype.registerFont = function(b, a) { var c = this._assetDecodingRequests.length, e = new f.PromiseWrapper; this._assetDecodingRequests[c] = e; this._sendSyncMessage({type:"registerFont", syncId:b, data:a, requestId:c}); return e.promise; }; g.prototype.registerImage = function(b, a, c, e) { var g = this._assetDecodingRequests.length, k = new f.PromiseWrapper; this._assetDecodingRequests[g] = k; this._parent.postMessage({type:"registerImage", syncId:b, symbolId:a, imageType:c, data:e, requestId:g}, "*"); return k.promise; }; g.prototype.fscommand = function(b, a) { this._parent.postMessage({type:"fscommand", command:b, args:a}, "*"); }; g.prototype.onWindowMessage = function(b) { if ("object" === typeof b && null !== b) { switch(b.type) { case "gfx": var a = f.ArrayUtilities.DataBuffer.FromArrayBuffer(b.updates.buffer); this.processUpdates(a, b.assets); break; case "videoPlayback": this.processVideoEvent(b.id, b.eventType, b.data); break; case "displayParameters": this.processDisplayParameters(b.params); break; case "registerFontResponse": ; case "registerImageResponse": a = this._assetDecodingRequests[b.requestId]; delete this._assetDecodingRequests[b.requestId]; a.resolve(b.result); break; case "options": f.Settings.setSettings(b.settings); } } }; return g; }(b.GFXServiceBase); g.WindowGFXService = u; })(b.Window || (b.Window = {})); })(f.Player || (f.Player = {})); })(Shumway || (Shumway = {})); console.timeEnd("Load Player Dependencies");