@awayfl/awayfl-player 0.2.38 → 0.2.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/awayfl-player.umd.js +1 -1
- package/bundle/awayfl-player.umd.js.gz +0 -0
- package/bundle/awayfl-player.umd.js.map +1 -1
- package/dist/index.js +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
- package/template/fonts.swf +0 -0
- package/template/game_template.html +91 -0
- package/template/index_template.html +90 -0
- package/template/loader.js +538 -0
- package/tsconfig.json +1 -1
|
@@ -33,5 +33,5 @@ var awayflplayer=function(t){"use strict";var e,n=function(t,e){return n=Object.
|
|
|
33
33
|
* <xregexp.com>
|
|
34
34
|
* Steven Levithan (c) 2010-present MIT License
|
|
35
35
|
* Unicode data by Mathias Bynens <mathiasbynens.be>
|
|
36
|
-
*/e.default=function(t){if(!t.addUnicodeData)throw new ReferenceError("Unicode Base must be loaded before Unicode Scripts");t.addUnicodeData(n.default)},t.exports=e.default})),yS=bp((function(t,e){ov(e,"__esModule",{value:!0}),e.default=void 0;var n=Om(Xw),i=Om(sS),r=Om(uS),o=Om(lS),a=Om(hS),s=Om(dS),u=Om(gS),l=Om(mS);(0,i.default)(n.default),(0,r.default)(n.default),(0,o.default)(n.default),(0,a.default)(n.default),(0,s.default)(n.default),(0,u.default)(n.default),(0,l.default)(n.default);var c=n.default;e.default=c,t.exports=e.default})),AS=vp(yS);!function(t){function e(e,n){var i,r,o;if(n=n||"",e=e.replace(/^\(\?([\w$]+)\)/,(function(t,e){return n+=e,""})),!(i=/^\(\?<([=!])/.exec(e)))throw new Error("lookbehind not at start of pattern");return r=t.matchRecursive(e,/\((?:[^()[\\]|\\.|\[(?:[^\\\]]|\\.)*])*/.source,"\\)","s",{valueNames:[null,null,null,"right"],escapeChar:"\\"})[0].end,o=e.slice(4,r-1),{lb:t("(?:"+o+")$(?!\\s)",n.replace(/[gy]/g,"")),lbType:"="===i[1],main:t(e.slice(("(?<=)"+o).length),n)}}t.execLb=function(n,i,r){for(var o,a,s=0,u=e(i,r);o=t.exec(n,u.main,s);){if(a=n.slice(0,o.index),u.lbType===u.lb.test(a))return o;s=o.index+1}return null},t.testLb=function(e,n,i){return!!t.execLb(e,n,i)},t.searchLb=function(e,n,i){var r=t.execLb(e,n,i);return r?r.index:-1},t.matchAllLb=function(n,i,r){for(var o,a,s=[],u=0,l=e(i,r);o=t.exec(n,l.main,u);)a=n.slice(0,o.index),l.lbType===l.lb.test(a)?(s.push(o[0]),u=o.index+(o[0].length||1)):u=o.index+1;return s},t.replaceLb=function(n,i,r,o){for(var a,s,u="",l=0,c=0,h=e(i,o);a=t.exec(n,h.main,l);)if(s=n.slice(0,a.index),h.lbType===h.lb.test(s)){if(u+=n.slice(c,a.index)+t.replace(a[0],h.main,r),c=a.index+a[0].length,!h.main.global)break;l=a.index+(a[0].length||1)}else l=a.index+1;return u+n.slice(c)}}(AS);var vS=AS,bS={},CS=function(){try{return new RegExp("(?<=)"),!0}catch(t){return!1}}(),xS=function(t){function e(e,n){var i,r=t.call(this)||this;if(r._flags="",r._useFallback=!1,r._dotall=!1,r._extended=!1,r._captureNames=[],void 0===e)e=i="";else if(r.sec.AXRegExp.axIsType(e))n&&r.sec.throwError("TypeError",w_.RegExpFlagsArgumentError),n=e._flags,i=e.source,e=e.value;else{if(i=(e=String(e)).replace(/(^|^[/]|(?:\\\\)+)\//g,"$1\\/"),n){var o=n;n="";for(var a=0;a<o.length;a++){var s=o[a];switch(s){case"s":r._dotall=!0;break;case"x":r._extended=!0;break;case"g":case"i":case"m":n+=s}}}r._flags=n||"",e=r._parse(i)}try{r.value=new RegExp(e,n)}catch(t){console.log("Unsupported RegExp pattern:"+e),r._useFallback=!0}return r._source=i,r}return L_(e,t),e.classInitializer=function(){var t=this.dPrototype,n=e.prototype;l_(t,"$BgtoString",n.ecmaToString),l_(t,"$Bgexec",n.exec),l_(t,"$Bgtest",n.test)},e.prototype._parse=function(t){if(t.includes("(?<=")||t.includes("(?<!")&&!this._extended){if(!CS){if(!s_.EMULATE_LOOKBEHIND)throw new Error("[ASRegExp] Pattern include a lookbehind, but your browser not usupport it:"+t);return bS.lookbehind||console.warn("[ASRegExp] Pattern include a lookbehind, we should use XRegExp polyfill for Safari.\n",t),bS.lookbehind=!0,this._useFallback=!0,t}return bS.lookbehind||console.warn("[ASRegExp] Pattern include a lookbehind, we will use a native .\n",t),bS.lookbehind=!0,t}for(var n="",i=this._captureNames,r=[],o=0,a=0;a<t.length;a++){var s=t[a];switch(s){case"(":if(n+=s,r.push(o>1?o-1:o),o=0,"?"===t[a+1])switch(t[a+2]){case":":case"=":case"!":n+="?"+t[a+2],a+=2;break;default:if(!/\(\?P<([\w$]+)>/.exec(t.substr(a)))return e.UNMATCHABLE_PATTERN;var u=RegExp.$1;"length"!==u&&i.push(u),i.indexOf(u),a+=RegExp.lastMatch.length-1}else i.push(null);if(i.length>406)return e.UNMATCHABLE_PATTERN;break;case")":if(!r.length)return e.UNMATCHABLE_PATTERN;n+=s,o=r.pop()+1;break;case"|":n+=s;break;case"\\":n+=s,/\\|c[A-Z]|x[0-9,a-z,A-Z]{2}|u[0-9,a-z,A-Z]{4}|./.exec(t.substr(a+1))&&(n+=RegExp.lastMatch,a+=RegExp.lastMatch.length),o<=1&&o++;break;case"[":if(!/\[[^\]]*\]/.exec(t.substr(a)))return e.UNMATCHABLE_PATTERN;n+=RegExp.lastMatch,a+=RegExp.lastMatch.length-1,o<=1&&o++;break;case"{":if(!/\{[^{]*?(?:,[^{]*?)?\}/.exec(t.substr(a)))return e.UNMATCHABLE_PATTERN;n+=RegExp.lastMatch,a+=RegExp.lastMatch.length-1;break;case".":this._dotall?n+="[\\s\\S]":n+=s,o<=1&&o++;break;case"?":case"*":case"+":if(!o)return e.UNMATCHABLE_PATTERN;n+=s,"?"===t[a+1]&&(a++,n+="?");break;case" ":if(this._extended)break;n+=s,o<=1&&o++;break;default:n+=s,o<=1&&o++}if(n.length>32767)return e.UNMATCHABLE_PATTERN}return r.length?e.UNMATCHABLE_PATTERN:n},e.prototype.ecmaToString=function(){var t="/"+this._source+"/";return this.value.global&&(t+="g"),this.value.ignoreCase&&(t+="i"),this.value.multiline&&(t+="m"),this._dotall&&(t+="s"),this._extended&&(t+="x"),t},e.prototype.axCall=function(t){return this.exec.apply(this,arguments)},e.prototype.axApply=function(t,e){return this.exec.apply(this,e)},Object.defineProperty(e.prototype,"source",{get:function(){return this._source},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"global",{get:function(){return this.value.global},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ignoreCase",{get:function(){return this.value.ignoreCase},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"multiline",{get:function(){return this.value.multiline},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastIndex",{get:function(){return this.value.lastIndex},set:function(t){this.value.lastIndex=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dotall",{get:function(){return this._dotall},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"extended",{get:function(){return this._extended},enumerable:!1,configurable:!0}),e.prototype.internalStringSearch=function(t){return this._useFallback?vS.searchLb(t,this._source,this._flags):t.search(this.value)},e.prototype.internalStringReplace=function(t,e){return this._useFallback?vS.replaceLb(t,this._source,e,this._flags):t.replace(this.value,e)},e.prototype.internalStringMatch=function(t){var e=this._flags.includes("g");if(!this._useFallback){var n=t.match(this.value);return n||(e?[]:null)}var i=vS.matchAllLb(t,this._source,this._flags);if(i.length>0){var r=[i[0]];return r.index=0,r.input=t,r}return e?[]:null},e.prototype.exec=function(t){var e;if(void 0===t&&(t=""),!(e=this._useFallback?vS.execLb(t,this._source,this._flags):this.value.exec(t)))return null;var n=fm(this.sec,e),i=this._captureNames;if(i){for(var r=0;r<i.length;r++){var o=i[r];if(null!==o){var a=e[r+1]||"";e[o]=a,n.axSetPublicProperty(o,a)}}return n}},e.prototype.test=function(t){return void 0===t&&(t=""),null!==this.exec(t)},e.UNMATCHABLE_PATTERN="^(?!)$",e}(B_);function IS(t,e,n){if("object"!=typeof e)return e;if(Ya(e))return e;if(Array.isArray(e)){for(var i=[],r=0;r<e.length;r++){var o=e[r],a=n?IS(t,o,!0):o;i.push(a)}return t.createArray(i)}return t.createObjectFromJS(e,n)}function ES(t,e,n,i,r){if(void 0===i&&(i=null),void 0===r&&(r=null),i&&(e=i(r,e)),"object"!=typeof e||Ya(e))return e;if(Ya(e))return e;if(t.AXArray.axIsType(e)){for(var o=[],a=Array.isArray(e)?e:e.value,s=0;s<a.length;s++){var u=a[s],l=n?ES(t,u,!0,i,s.toString()):u;o.push(l)}return o}if(t.ObjectVector.axClass.axIsType(e)){for(o=[],a=e._buffer,s=0;s<a.length;s++){u=a[s],l=n?ES(t,u,!0,i,s.toString()):u;o.push(l)}return o}var c=Object.keys(e),h={};for(s=0;s<c.length;s++){var p=c[s];if("__scope__"!=p){var d=p;bd(p)||(d=p.substr(3));var f=e[p];n&&(f=ES(t,f,!0,i,d)),h[d]=f}}return h}function wS(t,e,n,i){var r=e[n];if(Array.isArray(r))for(var o=r,a=0,s=o.length;a<s;a++){void 0===(l=wS(t,o,a_(a),i))?delete o[a]:o[a]=l}else if(null!==r&&"boolean"!=typeof r&&"number"!=typeof r&&"string"!=typeof r)for(var u in r){if(!r.hasOwnProperty(u)||!u_.isPublicQualifiedName(u))break;var l;void 0===(l=wS(t,r,u,i))?delete r[u]:r[u]=l}return i.call(e,n,r)}var SS=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return L_(e,t),e.parse=function(t,e){var n;void 0===e&&(e=null),t=a_(t),null===e||vm(e)||this.sec.throwError("TypeError",w_.CheckTypeFailedError,e,"Function"),null===t&&this.sec.throwError("SyntaxError",w_.JSONInvalidParseInput);try{n=IS(this.sec,JSON.parse(t),!0)}catch(t){this.sec.throwError("SyntaxError",w_.JSONInvalidParseInput)}return null===e?n:wS(this.sec,{"":n},"",e.value)},e.stringify=function(t,e,n){void 0===e&&(e=null),void 0===n&&(n=null);var i,r="object"==typeof e?null==e?void 0:e.sec:null;return null!==e&&(r&&(r.AXFunction.axIsType(e)||r.AXArray.axIsType(e))||this.sec.throwError("TypeError",w_.JSONInvalidReplacer)),i="string"==typeof n?n.length>10?n.substring(0,10):n:"number"==typeof n?" ".substring(0,Math.min(10,0|n)):"",null===e?this.stringifySpecializedToString(t,null,null,i):r.AXArray.axIsType(e)?this.stringifySpecializedToString(t,this.computePropertyList(e.value),null,i):this.stringifySpecializedToString(t,null,e.value,i)},e.computePropertyList=function(t){for(var e=[],n=Object.create(null),i=0,r=t.length;i<r;i++)if(t.hasOwnProperty(i)){var o=t[i],a=null;"string"==typeof o?a=o:"number"==typeof o&&(a=a_(o)),null===a||n[a]||(n[a]=!0,e.push(a))}return e},e.stringifySpecializedToString=function(t,e,n,i){if(void 0===t)return"null";var r=ES(this.sec,t,!0,n);try{return JSON.stringify(r,null,i)}catch(t){this.sec.throwError("TypeError",w_.JSONCyclicStructure)}},e}(B_);function DS(){return 0===F_.length?null:F_[F_.length-1].topScope().global.object.scriptInfo.abc}function TS(t,e,n){null==e&&t.throwError("TypeError",w_.NullPointerError,"request"),t.flash.net.URLRequest.axClass.axIsType(e)||t.throwError("TypeError",w_.CheckTypeFailedError,e,"flash.net.URLRequest");var i=e.url;(Ya(i)&&t.throwError("TypeError",w_.NullPointerError,"url"),0!==i.toLowerCase().indexOf("fscommand:"))?window.open(e.url,"_blank"):(0,t.flash.system.fscommand.value)(t,i.substring(10),n)}function PS(t){return function(e){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];return t.apply(Wp,n)}}var OS=Gg(),MS=function(t){function e(e,n,i,r,o,a,s){void 0===i&&(i=1),void 0===r&&(r=0),void 0===o&&(o=0),void 0===a&&(a=0),void 0===s&&(s=0);var u=t.call(this)||this;switch(arguments.length){case 0:u.value=new Date;break;case 1:u.value=new Date(e);break;case 2:u.value=new Date(e,n);break;case 3:u.value=new Date(e,n,i);break;case 4:u.value=new Date(e,n,i,r);break;case 5:u.value=new Date(e,n,i,r,o);break;case 6:u.value=new Date(e,n,i,r,o,a);break;default:u.value=new Date(e,n,i,r,o,a,s)}return u}return L_(e,t),e.classInitializer=function(){var t=this.dPrototype,n=e.prototype;l_(t,"$BgtoString",n.toString),l_(t,"$BgtoLocaleString",n.toString),l_(t,"$BgvalueOf",n.valueOf),l_(t,"$BgtoDateString",n.toDateString),l_(t,"$BgtoTimeString",n.toTimeString),l_(t,"$BgtoLocaleString",n.toLocaleString),l_(t,"$BgtoLocaleDateString",n.toLocaleDateString),l_(t,"$BgtoLocaleTimeString",n.toLocaleTimeString),l_(t,"$BgtoUTCString",n.toUTCString),l_(t,"$BgtoJSON",n.toJSON),l_(t,"$BggetUTCFullYear",n.getUTCFullYear),l_(t,"$BggetUTCMonth",n.getUTCMonth),l_(t,"$BggetUTCDate",n.getUTCDate),l_(t,"$BggetUTCDay",n.getUTCDay),l_(t,"$BggetUTCHours",n.getUTCHours),l_(t,"$BggetUTCMinutes",n.getUTCMinutes),l_(t,"$BggetUTCSeconds",n.getUTCSeconds),l_(t,"$BggetUTCMilliseconds",n.getUTCMilliseconds),l_(t,"$BggetFullYear",n.getFullYear),l_(t,"$BggetMonth",n.getMonth),l_(t,"$BggetDate",n.getDate),l_(t,"$BggetDay",n.getDay),l_(t,"$BggetHours",n.getHours),l_(t,"$BggetMinutes",n.getMinutes),l_(t,"$BggetSeconds",n.getSeconds),l_(t,"$BggetMilliseconds",n.getMilliseconds),l_(t,"$BggetTimezoneOffset",n.getTimezoneOffset),l_(t,"$BggetTime",n.getTime),l_(t,"$BgsetFullYear",n.setFullYear),l_(t,"$BgsetMonth",n.setMonth),l_(t,"$BgsetDate",n.setDate),l_(t,"$BgsetHours",t.setHours),l_(t,"$BgsetMinutes",n.setMinutes),l_(t,"$BgsetSeconds",n.setSeconds),l_(t,"$BgsetMilliseconds",n.setMilliseconds),l_(t,"$BgsetUTCFullYear",n.setUTCFullYear),l_(t,"$BgsetUTCMonth",n.setUTCMonth),l_(t,"$BgsetUTCDate",n.setUTCDate),l_(t,"$BgsetUTCHours",n.setUTCHours),l_(t,"$BgsetUTCMinutes",n.setUTCMinutes),l_(t,"$BgsetUTCSeconds",n.setUTCSeconds),l_(t,"$BgsetUTCMilliseconds",n.setUTCMilliseconds)},e.parse=function(t){return Date.parse(t)},e.UTC=function(t,e,n,i,r,o,a){return void 0===n&&(n=1),void 0===i&&(i=0),void 0===r&&(r=0),void 0===o&&(o=0),void 0===a&&(a=0),Date.parse.apply(null,arguments)},e.axCoerce=function(t){return this.axConstruct([t])},e.prototype.toString=function(){if(!(this.value instanceof Date))return"Invalid Date";var t=this.value.toString().split(" ");return t.length<4?"Invalid Date":(t.length=6,t.push(t.splice(3,1)[0]),"0"===t[2][0]&&(t[2]=t[2][1]),t.join(" "))},e.prototype.toDateString=function(){if(!(this.value instanceof Date))return"Invalid Date";var t=this.value.toDateString().split(" ");return t.length<4?"Invalid Date":("0"===t[2][0]&&(t[2]=t[2][1]),t.join(" "))},e.prototype.toJSON=function(){return this.value instanceof Date?this.value.toString():"Invalid Date"},e.prototype.valueOf=function(){return this.value instanceof Date?this.value.valueOf():NaN},e.prototype.setTime=function(t){return void 0===t&&(t=0),this.value instanceof Date?this.value.setTime(t):NaN},e.prototype.toTimeString=function(){return this.value instanceof Date?this.value.toTimeString():"Invalid Date"},e.prototype.toLocaleString=function(){return this.value instanceof Date?this.value.toLocaleString():"Invalid Date"},e.prototype.toLocaleDateString=function(){return this.value instanceof Date?this.value.toLocaleDateString():"Invalid Date"},e.prototype.toLocaleTimeString=function(){return this.value instanceof Date?this.value.toLocaleTimeString():"Invalid Date"},e.prototype.toUTCString=function(){return this.value instanceof Date?this.value.toUTCString():"Invalid Date"},e.prototype.getUTCFullYear=function(){return this.value instanceof Date?this.value.getUTCFullYear():NaN},e.prototype.getUTCMonth=function(){return this.value instanceof Date?this.value.getUTCMonth():NaN},e.prototype.getUTCDate=function(){return this.value instanceof Date?this.value.getUTCDate():NaN},e.prototype.getUTCDay=function(){return this.value instanceof Date?this.value.getUTCDay():NaN},e.prototype.getUTCHours=function(){return this.value instanceof Date?this.value.getUTCHours():NaN},e.prototype.getUTCMinutes=function(){return this.value instanceof Date?this.value.getUTCMinutes():NaN},e.prototype.getUTCSeconds=function(){return this.value instanceof Date?this.value.getUTCSeconds():NaN},e.prototype.getUTCMilliseconds=function(){return this.value instanceof Date?this.value.getUTCMilliseconds():NaN},e.prototype.getFullYear=function(){return this.value instanceof Date?this.value.getFullYear():NaN},e.prototype.getMonth=function(){return this.value instanceof Date?this.value.getMonth():NaN},e.prototype.getDate=function(){return this.value instanceof Date?this.value.getDate():NaN},e.prototype.getDay=function(){return this.value instanceof Date?this.value.getDay():NaN},e.prototype.getHours=function(){return this.value instanceof Date?this.value.getHours():NaN},e.prototype.getMinutes=function(){return this.value instanceof Date?this.value.getMinutes():NaN},e.prototype.getSeconds=function(){return this.value instanceof Date?this.value.getSeconds():NaN},e.prototype.getMilliseconds=function(){return this.value instanceof Date?this.value.getMilliseconds():NaN},e.prototype.getTimezoneOffset=function(){return this.value instanceof Date?this.value.getTimezoneOffset():NaN},e.prototype.getTime=function(){return this.value instanceof Date?this.value.getTime():NaN},e.prototype.setFullYear=function(t,e,n){return this.value instanceof Date?this.value.setFullYear(t,e,n):NaN},e.prototype.setMonth=function(t,e){return this.value instanceof Date?this.value.setMonth(t,e):NaN},e.prototype.setDate=function(t){return this.value instanceof Date?this.value.setDate(t):NaN},e.prototype.setHours=function(t,e,n,i){return this.value instanceof Date?this.value.setHours(t,e,n,i):NaN},e.prototype.setMinutes=function(t,e,n){return this.value instanceof Date?this.value.setMinutes(t,e,n):NaN},e.prototype.setSeconds=function(t,e){return this.value instanceof Date?this.value.setSeconds(t,e):NaN},e.prototype.setMilliseconds=function(t){return this.value instanceof Date?this.value.setMilliseconds(t):NaN},e.prototype.setUTCFullYear=function(t,e,n){return this.value instanceof Date?this.value.setUTCFullYear(t,e,n):NaN},e.prototype.setUTCMonth=function(t,e){return this.value instanceof Date?this.value.setUTCMonth(t,e):NaN},e.prototype.setUTCDate=function(t){return this.value instanceof Date?this.value.setUTCDate(t):NaN},e.prototype.setUTCHours=function(t,e,n,i){return this.value instanceof Date?this.value.setUTCHours(t,e,n,i):NaN},e.prototype.setUTCMinutes=function(t,e,n){return this.value instanceof Date?this.value.setUTCMinutes(t,e,n):NaN},e.prototype.setUTCSeconds=function(t,e){return this.value instanceof Date?this.value.setUTCSeconds(t,e):NaN},e.prototype.setUTCMilliseconds=function(t){return this.value instanceof Date?this.value.setUTCMilliseconds(t):NaN},Object.defineProperty(e.prototype,"fullYear",{get:function(){return this.value.getFullYear()},set:function(t){this.value.setFullYear(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"month",{get:function(){return this.value.getMonth()},set:function(t){this.value.setMonth(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"date",{get:function(){return this.value.getDate()},set:function(t){this.value.setDate(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hours",{get:function(){return this.value.getHours()},set:function(t){this.value.setHours(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"minutes",{get:function(){return this.value.getMinutes()},set:function(t){this.value.setMinutes(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"seconds",{get:function(){return this.value.getSeconds()},set:function(t){this.value.setSeconds(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"milliseconds",{get:function(){return this.value.getMilliseconds()},set:function(t){this.value.setMilliseconds(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fullYearUTC",{get:function(){return this.value.getUTCFullYear()},set:function(t){this.value.setUTCFullYear(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"monthUTC",{get:function(){return this.value.getUTCMonth()},set:function(t){this.value.setUTCMonth(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dateUTC",{get:function(){return this.value.getUTCDate()},set:function(t){this.value.setUTCDate(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hoursUTC",{get:function(){return this.value.getUTCHours()},set:function(t){this.value.setUTCHours(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"minutesUTC",{get:function(){return this.value.getUTCMinutes()},set:function(t){this.value.setUTCMinutes(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"secondsUTC",{get:function(){return this.value.getUTCSeconds()},set:function(t){this.value.setUTCSeconds(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"millisecondsUTC",{get:function(){return this.value.getUTCMilliseconds()},set:function(t){this.value.setUTCMilliseconds(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"time",{get:function(){return this.value.getTime()},set:function(t){this.value.setTime(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"timezoneOffset",{get:function(){return this.value.getTimezoneOffset()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"day",{get:function(){return this.value.getDay()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dayUTC",{get:function(){return this.value.getUTCDay()},enumerable:!1,configurable:!0}),e}(B_),BS="$"+r_(0,"http://www.adobe.com/2006/actionscript/flash/proxy").mangledName,NS=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return L_(e,t),e.classInitializer=function(){var t=this.dPrototype,n=e.prototype;Xg(t,BS+"getProperty",n.native_getProperty),Xg(t,BS+"setProperty",n.native_setProperty),Xg(t,BS+"callProperty",n.native_callProperty),Xg(t,BS+"hasProperty",n.native_hasProperty),Xg(t,BS+"deleteProperty",n.native_deleteProperty),Xg(t,BS+"getDescendants",n.native_getDescendants),Xg(t,BS+"nextNameIndex",n.native_nextNameIndex),Xg(t,BS+"nextName",n.native_nextName),Xg(t,BS+"nextValue",n.native_nextValue)},e.prototype.native_getProperty=function(){this.sec.throwError("flash.errors.IllegalOperationError",w_.ProxyGetPropertyError)},e.prototype.native_setProperty=function(){this.sec.throwError("flash.errors.IllegalOperationError",w_.ProxySetPropertyError)},e.prototype.native_callProperty=function(){this.sec.throwError("flash.errors.IllegalOperationError",w_.ProxyCallPropertyError)},e.prototype.native_hasProperty=function(){this.sec.throwError("flash.errors.IllegalOperationError",w_.ProxyHasPropertyError)},e.prototype.native_deleteProperty=function(){this.sec.throwError("flash.errors.IllegalOperationError",w_.ProxyDeletePropertyError)},e.prototype.native_getDescendants=function(){this.sec.throwError("flash.errors.IllegalOperationError",w_.ProxyGetDescendantsError)},e.prototype.native_nextNameIndex=function(){this!==this.axClass.dPrototype&&this.sec.throwError("flash.errors.IllegalOperationError",w_.ProxyNextNameIndexError)},e.prototype.native_nextName=function(){this.sec.throwError("flash.errors.IllegalOperationError",w_.ProxyNextNameError)},e.prototype.native_nextValue=function(){this.sec.throwError("flash.errors.IllegalOperationError",w_.ProxyNextValueError)},e.prototype.axGetProperty=function(t){var e,n="string"==typeof t.name?this.traits.getTrait(t.namespaces,t.name):null;if(n){var i=n.multiname.getMangledName();if("function"==typeof(e=this[i]))return this.axGetMethod(i)}else e=this[BS+"getProperty"](this.sec.AXQName.FromMultiname(t));return e},e.prototype.axGetNumericProperty=function(t){return this[BS+"getProperty"](+t+"")},e.prototype.axSetNumericProperty=function(t,e){this[BS+"setProperty"](+t+"",e)},e.prototype.axSetProperty=function(e,n,i){("string"==typeof e.name?this.traits.getTrait(e.namespaces,e.name):null)?t.prototype.axSetProperty.call(this,e,n,i):this[BS+"setProperty"](this.sec.AXQName.FromMultiname(e),n)},e.prototype.axCallProperty=function(e,n,i){if("string"==typeof e.name?this.traits.getTrait(e.namespaces,e.name):null)return t.prototype.axCallProperty.call(this,e,n,i);var r=[this.sec.AXQName.FromMultiname(e)].concat(n);return this[BS+"callProperty"].apply(this,r)},e.prototype.axHasProperty=function(t){return this.axHasOwnProperty(t)},e.prototype.axHasPublicProperty=function(t){return LS.name=t,!!this.axHasPropertyInternal(LS)||this[BS+"hasProperty"](t)},e.prototype.axHasOwnProperty=function(t){return!!("string"==typeof t.name?this.traits.getTrait(t.namespaces,t.name):null)||this[BS+"hasProperty"](this.sec.AXQName.FromMultiname(t))},e.prototype.axDeleteProperty=function(t){var e="string"==typeof t.name?this.traits.getTrait(t.namespaces,t.name):null;return e?delete this[e.multiname.getMangledName()]:this[BS+"deleteProperty"](this.sec.AXQName.FromMultiname(t))},e.prototype.axNextName=function(t){return this[BS+"nextName"](t)},e.prototype.axNextValue=function(t){return this[BS+"nextValue"](t)},e.prototype.axNextNameIndex=function(t){return this[BS+"nextNameIndex"](t)},e}(B_),LS=new u_(null,0,17,[],null,null,!0),RS="WeakRef"in self&&s_.USE_WEAK_REF,FS=function(t){function e(e){void 0===e&&(e=!1);var n=t.call(this)||this;return n.map=new WeakMap,n.keys=new Set,n.primitiveMap=Object.create(null),(n.weakKeys=!!e&&RS)&&(n.refs=new WeakMap),n}return L_(e,t),e.makePrimitiveKey=function(t){if("string"==typeof t||"number"==typeof t)return t},e.prototype.toJSON=function(){return"Dictionary"},e.prototype.axGetProperty=function(n){if(this===this.axClass.dPrototype)return t.prototype.axGetProperty.call(this,n);var i=e.makePrimitiveKey(n.name);return void 0!==i?this.primitiveMap[i]:this.map.get(Object(n.name))},e.prototype.axSetProperty=function(n,i,r){if(this!==this.axClass.dPrototype){var o=e.makePrimitiveKey(n.name);if(void 0===o){var a=Object(n.name);if(!this.map.has(a))if(this.weakKeys){var s=new self.WeakRef(a);this.refs.set(a,s),this.keys.add(s)}else this.keys.add(a);this.map.set(a,i)}else this.primitiveMap[o]=i}else t.prototype.axSetProperty.call(this,n,i,r)},e.prototype.axHasPropertyInternal=function(n){if(this===this.axClass.dPrototype)return t.prototype.axHasProperty.call(this,n);var i=e.makePrimitiveKey(n.name);return void 0!==i?i in this.primitiveMap:this.map.has(Object(n.name))},e.prototype.axDeleteProperty=function(n){if(this===this.axClass.dPrototype)return t.prototype.axDeleteProperty.call(this,n);var i=e.makePrimitiveKey(n.name);if(void 0===i){var r=Object(n.name);return!!this.map.has(r)&&(this.map.delete(r),this.weakKeys?(this.keys.delete(this.refs.get(r)),this.refs.delete(r)):this.keys.delete(r),!0)}delete this.primitiveMap[i]},e.prototype.axGetPublicProperty=function(n){if(this===this.axClass.dPrototype)return t.prototype.axGetPublicProperty.call(this,n);var i=e.makePrimitiveKey(n);return void 0!==i?this.primitiveMap[i]:this.map.get(Object(n))},e.prototype.axGetEnumerableKeys=function(){var e=this;if(this===this.axClass.dPrototype)return t.prototype.axGetEnumerableKeys.call(this);var n=[];for(var i in this.primitiveMap)n.push(i);return this.keys.forEach((function(t){var i=e.weakKeys?t.deref():t;i?n.push(i):e.keys.delete(t)})),n},e.classInitializer=function(){l_(this.dPrototype,"$BgtoJSON",e.prototype.toJSON)},e}(B_);function kS(t,e,n){for(var i=t.axGetEnumerableKeys(),r=0;r<i.length;r++){var o=i[r],a=t.axGetPublicProperty(o);e.call(n,o,a)}}var US=function(){this.strings=[],this.objects=[],this.traits=[],this.traitNames=[]},jS=function(){function t(){this._classMap=new WeakMap,this._nameMap=Object.create(null)}return t.prototype.getAliasByClass=function(t){return this._classMap.get(t)},t.prototype.getClassByAlias=function(t){return this._nameMap[t]},t.prototype.registerClassAlias=function(t,e){this._classMap.set(e,t),this._nameMap[t]=e},t}();function VS(t,e){if(e.length>65535)throw"AMF short string exceeded";if(!e.length)return t.writeByte(0),void t.writeByte(0);var n=ld.utf8decode(e);t.writeByte(n.length>>8&255),t.writeByte(255&n.length);for(var i=0;i<n.length;i++)t.writeByte(n[i])}function QS(t){var e=t.readByte()<<8|t.readByte();if(!e)return"";for(var n=new Uint8Array(e),i=0;i<e;i++)n[i]=t.readByte();return ld.utf8encode(n)}function GS(t,e){var n=new ArrayBuffer(8),i=new DataView(n);i.setFloat64(0,e,!1);for(var r=0;r<n.byteLength;r++)t.writeByte(i.getUint8(r))}function zS(t){for(var e=new ArrayBuffer(8),n=new DataView(e),i=0;i<e.byteLength;i++)n.setUint8(i,t.readByte());return n.getFloat64(0,!1)}var HS=function(){function t(){}return t.write=function(t,e){switch(typeof e){case"boolean":t.writeByte(1),t.writeByte(e?1:0);break;case"number":t.writeByte(0),GS(t,e);break;case"undefined":t.writeByte(6);break;case"string":t.writeByte(2),VS(t,e);break;case"object":var n=e;if(null===n)t.writeByte(5);else if(t.sec.AXArray.axIsType(n)){var i=n.value;t.writeByte(8),t.writeByte(i.length>>>24&255),t.writeByte(i.length>>16&255),t.writeByte(i.length>>8&255),t.writeByte(255&i.length),kS(n,(function(e,n){VS(t,e),this.write(t,n)}),this),t.writeByte(0),t.writeByte(0),t.writeByte(9)}else t.writeByte(3),kS(n,(function(e,n){VS(t,e),this.write(t,n)}),this),t.writeByte(0),t.writeByte(0),t.writeByte(9);return}},t.read=function(t){var e=t.readByte();switch(e){case 0:return zS(t);case 1:return!!t.readByte();case 2:return QS(t);case 3:for(var n=t.sec.createObject(),i=void 0;(i=QS(t)).length;)n.axSetPublicProperty(i,this.read(t));if(9!==t.readByte())throw"AMF0 End marker is not found";return n;case 5:return null;case 6:return;case 8:(r=t.sec.createArray([])).length=t.readByte()<<24|t.readByte()<<16|t.readByte()<<8|t.readByte();for(i=void 0;(i=QS(t)).length;)r.axSetPublicProperty(i,this.read(t));if(9!==t.readByte())throw"AMF0 End marker is not found";return r;case 10:for(var r,o=(r=t.sec.createArray([])).length=t.readByte()<<24|t.readByte()<<16|t.readByte()<<8|t.readByte(),a=0;a<o;a++)r.axSetPublicProperty(a,this.read(t));return r;case 17:return WS(t,new US);default:throw"AMF0 Unknown marker "+e}},t}();function XS(t){var e=t.readByte();if(0==(128&e))return 127&e;var n=t.readByte();if(0==(128&n))return(127&e)<<7|127&n;var i=t.readByte();if(0==(128&i))return(127&e)<<14|(127&n)<<7|127&i;var r=(127&e)<<22|(127&n)<<15|(127&i)<<8|255&t.readByte();return 0!=(268435456&r)&&(r|=3758096384),r}function YS(t,e){if(e<-268435456||e>=268435456)throw"AMF3 U29 range";0==(4294967168&e)?t.writeByte(127&e):0==(4294950912&e)?(t.writeByte(128|e>>7&127),t.writeByte(127&e)):0==(4292870144&e)?(t.writeByte(128|e>>14&127),t.writeByte(128|e>>7&127),t.writeByte(127&e)):(t.writeByte(128|e>>22&127),t.writeByte(128|e>>15&127),t.writeByte(128|e>>8&127),t.writeByte(255&e))}function qS(t,e){var n=XS(t);if(1===n)return"";var i=e.strings;if(0==(1&n))return i[n>>1];for(var r=n>>1,o=new Uint8Array(r),a=0;a<r;a++)o[a]=t.readByte();var s=ld.utf8encode(o);return i.push(s),s}function KS(t,e,n){if(""!==e){var i=n.strings,r=i.indexOf(e);if(r>=0)YS(t,r<<1);else{i.push(e);var o=ld.utf8decode(e);if(YS(t,1|o.length<<1),t instanceof I)t.writeArrayBuffer(o.byteLength!==o.buffer.byteLength?new Uint8Array(o).buffer:o.buffer);else for(var a=0;a<o.length;a++)t.writeByte(o[a])}}else t.writeByte(1)}function WS(t,e){var n=t.readByte();switch(n){case 1:return null;case 0:return;case 2:return!1;case 3:return!0;case 4:return XS(t);case 5:return zS(t);case 6:return qS(t,e);case 8:var i=XS(t);return t.sec.AXDate.axConstruct([zS(t)]);case 10:if(0==(1&(i=XS(t))))return e.objects[i>>1];if(0!=(4&i))throw"AMF3 Traits-Ext is not supported";var r=void 0,o=void 0,a=!0,s=void 0;if(0==(2&i))o=e.traits[i>>2],s=e.traitNames[i>>2];else{var u=qS(t,e);u&&(o=r=t.sec.classAliases.getClassByAlias(u)),a=0!=(8&i),s=[];for(var l=0,c=i>>4;l<c;l++)s.push(qS(t,e));e.traits.push(o),e.traitNames.push(s)}var h=r?r.axConstruct([]):t.sec.createObject();e.objects.push(h);for(l=0;l<s.length;l++){var p=WS(t,e);h.axSetPublicProperty(s[l],p)}if(a)for(var d=void 0;""!==(d=qS(t,e));){p=WS(t,e);h.axSetPublicProperty(d,p)}return h;case 9:if(0==(1&(i=XS(t))))return e.objects[i>>1];var f=t.sec.createArray([]);e.objects.push(f);var g=i>>1;for(d=void 0;(d=qS(t,e)).length;){p=WS(t,e);f.axSetPublicProperty(d,p)}for(l=0;l<g;l++){p=WS(t,e);f.axSetPublicProperty(l,p)}return f;default:throw"AMF3 Unknown marker "+n}}function JS(t,e,n){var i=n.objects,r=i.indexOf(e);return r<0?(i.push(e),!1):(YS(t,r<<1),!0)}function $S(t,e,n){switch(typeof e){case"boolean":t.writeByte(e?3:2);break;case"number":var i=e===(0|e);i&&(e>268435455||e<-268435456)&&(i=!1),i?(t.writeByte(4),YS(t,e)):(t.writeByte(5),GS(t,e));break;case"undefined":t.writeByte(0);break;case"string":t.writeByte(6),KS(t,e,n);break;case"object":if(null===e)t.writeByte(1);else if(t.sec.AXArray.axIsType(e)){var r=e;if(t.writeByte(9),JS(t,r,n))break;for(var o=0;r.axHasPublicProperty(o);)++o;YS(t,o<<1|1),kS(r,(function(e,i){bd(e)&&e>=0&&e<o||(KS(t,e,n),$S(t,i,n))})),KS(t,"",n);for(var a=0;a<o;a++)$S(t,r.axGetPublicProperty(a),n)}else if(t.sec.AXDate.axIsType(e)){if(t.writeByte(8),JS(t,e,n))break;YS(t,1),GS(t,e.valueOf())}else{var s=e;if(t.writeByte(10),JS(t,s,n))break;var u=!0,l=s.axClass;if(l){var c=l.classInfo;u=!c.instanceInfo.isSealed();var h=t.sec.classAliases.getAliasByClass(l)||"",p=n.traits.indexOf(l),d=null;if(p<0){d=c.instanceInfo.runtimeTraits.getSlotPublicTraitNames(),n.traits.push(l),n.traitNames.push(d),YS(t,(u?11:3)+(d.length<<4)),KS(t,h,n);for(var f=0;f<d.length;f++)KS(t,d[f],n)}else d=n.traitNames[p],YS(t,1+(p<<2));for(f=0;f<d.length;f++)$S(t,s.axGetPublicProperty(d[f]),n)}else YS(t,11),KS(t,"",n);u&&(kS(s,(function(e,i){KS(t,e,n),$S(t,i,n)})),KS(t,"",n))}return}}var ZS,tD=function(){function t(){}return t.write=function(t,e){$S(t,e,new US)},t.read=function(t){return WS(t,new US)},t}();!function(t){t[t.AMF0=0]="AMF0",t[t.AMF3=3]="AMF3",t[t.DEFAULT=3]="DEFAULT"}(ZS||(ZS={}));var eD=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return L_(e,t),Object.defineProperty(e,"dynamicPropertyWriter",{get:function(){return null},set:function(t){},enumerable:!1,configurable:!0}),e.AMF0=ZS.AMF0,e.AMF3=ZS.AMF3,e.DEFAULT=ZS.DEFAULT,e}(B_),nD=function(){},iD=function(t){function e(n){var i,r=t.call(this)||this;nD.symbolForConstructor&&(n=nD.symbolForConstructor,nD.symbolForConstructor=null);var o=0;if(n){if(n instanceof ArrayBuffer)i=n.slice(0);else if(Array.isArray(n))i=new Uint8Array(n).buffer;else if("buffer"in n)if(n.buffer instanceof ArrayBuffer)i=new Uint8Array(n.buffer).buffer;else if(n.buffer instanceof Uint8Array){var a=n.buffer.byteOffset;i=n.buffer.buffer.slice(a,a+n.buffer.length)}else i=n.buffer.slice();else Gd("Source type.");o=i.byteLength}else i=new ArrayBuffer(e.INITIAL_SIZE);return r._buffer=i,r._length=o,r._position=0,r._resetViews(),r._objectEncoding=e.defaultObjectEncoding,r._littleEndian=!1,r._bitBuffer=0,r._bitLength=0,r}return L_(e,t),e.classInitializer=function(){var t=su.prototype;Xg(t,"$BgtoJSON",t.toJSON)},e.prototype.setArrayBuffer=function(t){this._buffer=t,this._length=this._buffer.byteLength,this._resetViews()},Object.defineProperty(e,"defaultObjectEncoding",{get:function(){return this._defaultObjectEncoding},set:function(t){t>>>=0,this._defaultObjectEncoding=t},enumerable:!1,configurable:!0}),e.prototype.toJSON=function(){return"ByteArray"},e.prototype.readObject=function(){switch(this._objectEncoding){case eD.AMF0:return HS.read(this);case eD.AMF3:return tD.read(this);default:Gd("Object Encoding")}},e.prototype.writeObject=function(t){switch(this._objectEncoding){case eD.AMF0:return HS.write(this,t);case eD.AMF3:return tD.write(this,t);default:Gd("Object Encoding")}},e.prototype.axGetPublicProperty=function(t){return"number"==typeof t||bd(t=I_(t))?this.axGetNumericProperty(t):this["$Bg"+t]},e.prototype.axGetNumericProperty=function(t){return this.getValue(t)},e.prototype.axSetPublicProperty=function(t,e){"number"==typeof t||bd(t=I_(t))?this.axSetNumericProperty(t,e):this["$Bg"+t]=e},e.prototype.axSetNumericProperty=function(t,e){this.setValue(t,e)},e.prototype.axGetProperty=function(e){var n=e.name;return"number"==typeof n||bd(n=I_(n))?this.getValue(+n):t.prototype.axGetProperty.call(this,e)},e.prototype.axSetProperty=function(e,n,i){var r=e.name;"number"==typeof r||bd(r=I_(r))?this.setValue(+r,n):t.prototype.axSetProperty.call(this,e,n,i)},e.classNatives=[su],e.instanceNatives=[su.prototype],e.INITIAL_SIZE=128,e._defaultObjectEncoding=eD.DEFAULT,e}(B_);!function(t){function e(){return t.call(this)||this}L_(e,t),Object.defineProperty(e,"enabled",{get:function(){return!1},set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e,"conversionMode",{get:function(){return"UNKNOWN"},set:function(t){},enumerable:!1,configurable:!0}),e.setCompositionString=function(t){},e.doConversion=function(){},e.compositionSelectionChanged=function(t,e){},e.compositionAbandoned=function(){},Object.defineProperty(e,"isSupported",{get:function(){return!1},enumerable:!1,configurable:!0})}(B_);var rD=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return L_(e,t),e.classInitializer=function(){Xg(this,"$Bgargv",this.sec.createArray([]))},Object.defineProperty(e,"ime",{get:function(){return null},enumerable:!1,configurable:!0}),e.setClipboard=function(t){t=a_(t),null!==Kg&&Kg.setClipboard(t)},Object.defineProperty(e,"totalMemoryNumber",{get:function(){return 2097152},enumerable:!1,configurable:!0}),Object.defineProperty(e,"freeMemory",{get:function(){return 1048576},enumerable:!1,configurable:!0}),Object.defineProperty(e,"privateMemory",{get:function(){return 1048576},enumerable:!1,configurable:!0}),Object.defineProperty(e,"useCodePage",{get:function(){return this._useCodePage},set:function(t){this._useCodePage=!!t},enumerable:!1,configurable:!0}),Object.defineProperty(e,"vmVersion",{get:function(){return"1.0 Shumway - Mozilla Research"},enumerable:!1,configurable:!0}),e.pause=function(){},e.resume=function(){},e.exit=function(t){},e.gc=function(){},e.pauseForGCIfCollectionImminent=function(t){},e.disposeXML=function(t){},Object.defineProperty(e,"swfVersion",{get:function(){return 19},enumerable:!1,configurable:!0}),Object.defineProperty(e,"apiVersion",{get:function(){return 26},enumerable:!1,configurable:!0}),e.getArgv=function(){return[]},e.getRunmode=function(){return"mixed"},e._useCodePage=!1,e}(B_),oD=rD;function aD(){sD.Object=B_,sD.Class=R_,sD.Function=cm,sD.Boolean=Am,sD["builtin.as$0.MethodClosure"]=hm,sD.Number=pm,sD.int=dm,sD.uint=ym,sD.String=mm,sD.Array=H_,sD["__AS3__.vec.Vector"]=Em,sD["__AS3__.vec.Vector$object"]=wm,sD["__AS3__.vec.Vector$int"]=Sm,sD["__AS3__.vec.Vector$uint"]=Dm,sD["__AS3__.vec.Vector$double"]=Tm,sD.Namespace=BD,sD.QName=ND,sD.XML=RD,sD.XMLList=UD,sD["flash.xml.XMLNode"]=jD,sD["flash.xml.XMLDocument"]=VD,sD["flash.xml.XMLParser"]=HD,sD["flash.xml.XMLTag"]=QD,sD["flash.xml.XMLNodeType"]=GD,sD.Math=Pm,sD.Date=MS,sD.RegExp=xS,sD.JSON=SS,sD["flash.utils.Proxy"]=NS,sD["flash.utils.Dictionary"]=FS,sD["flash.utils.ByteArray"]=iD,sD["avmplus.System"]=oD,sD["avmplus.File"]=XD,sD.Error=X_,sD.DefinitionError=Y_,sD.EvalError=q_,sD.RangeError=K_,sD.ReferenceError=W_,sD.SecurityError=J_,sD.SyntaxError=$_,sD.TypeError=Z_,sD.URIError=tm,sD.VerifyError=em,sD.UninitializedError=nm,sD.ArgumentError=im,sD["flash.errors.IOError"]=rm,sD["flash.errors.EOFError"]=om,sD["flash.errors.MemoryError"]=am,sD["flash.errors.IllegalOperationError"]=sm}var sD=Gg(),uD=Gg(),lD=[];function cD(t,e){return"object"==typeof t&&t&&(t.axClass===e.AXXML||t.axClass===e.AXXMLList||t.axClass===e.AXQName||t.axClass===e.AXNamespace)}function hD(t,e){return"object"==typeof e&&e&&(e.axClass===t.AXXML||e.axClass===t.AXXMLList)}function pD(t,e){if(!t||t.axClass!==e.AXXML)return a_(t);switch(t._kind){case 3:case 2:return t._value;default:if(t.hasSimpleContent()){for(var n="",i=0;i<t._children.length;i++){var r=t._children[i];4!==r._kind&&5!==r._kind&&(n+=pD(r,e))}return n}return bD(e,t)}}function dD(t,e){if(hD(t,e))return e.toXMLString();e=a_(e);for(var n,i=0;i<e.length&&"&"!==(n=e[i])&&"<"!==n&&">"!==n;)i++;if(i>=e.length)return e;for(var r=e.substring(0,i);i<e.length;)switch(n=e[i++]){case"&":r+="&";break;case"<":r+="<";break;case">":r+=">";break;default:r+=n}return r}function fD(t){t=String(t);for(var e,n=0;n<t.length&&"&"!==(e=t[n])&&"<"!==e&&'"'!==e&&"\n"!==e&&"\r"!==e&&"\t"!==e;)n++;if(n>=t.length)return t;for(var i=t.substring(0,n);n<t.length;)switch(e=t[n++]){case"&":i+="&";break;case"<":i+="<";break;case'"':i+=""";break;case"\n":i+="
";break;case"\r":i+="
";break;case"\t":i+="	";break;default:i+=e}return i}function gD(t,e){var n=t[e];return" "===n||"\n"===n||"\r"===n||"\t"===n}function _D(t){for(var e=0;e<t.length;e++){var n=t[e];if(" "!==n&&"\n"!==n&&"\r"!==n&&"\t"!==n)return!1}return!0}function mD(t){for(var e=0;e<t.length&&gD(t,e);)e++;if(e>=t.length)return"";for(var n=t.length-1;gD(t,n);)n--;return 0===e&&n===t.length-1?t:t.substring(e,n+1)}var yD=[];function AD(t){if(t>0){if(void 0!==yD[t])return yD[t];for(var e="",n=0;n<t;n++)e+=" ";return yD[t]=e,e}return""}function vD(t){for(var e,n=1;;){if(e="_ns"+n,!t.some((function(t){return t.prefix===e})))return e;n++}}function bD(t,e){if(null==e)throw new TypeError;return dD(t,e)}function CD(t,e){if(null===t&&e.throwError("TypeError",w_.ConvertNullToObjectError),void 0===t&&e.throwError("TypeError",w_.ConvertUndefinedToObjectError),t.axClass===e.AXXML)return t;if(t.axClass===e.AXXMLList)return 1!==t._children.length&&e.throwError("TypeError",w_.XMLMarkupMustBeWellFormed),t._children[0];var n=e.xmlParser.parseFromString(a_(t)),i=n._children.length;return 0===i?FD(e,3):1===i?(n._children[0]._parent=null,n._children[0]):2===i?(n._children[1]._parent=null,n._children[1]):void e.throwError("TypeError",w_.XMLMarkupMustBeWellFormed)}function xD(t,e){if(null===t&&e.sec.throwError("TypeError",w_.ConvertNullToObjectError),void 0===t&&e.sec.throwError("TypeError",w_.ConvertUndefinedToObjectError),t.axClass!==e.sec.AXXML){var n=CD('<parent xmlns="'+fD(wD(e.sec).uri)+'">'+t+"</parent>",e.sec)._children;if(n)for(var i=0;i<n.length;i++){var r=n[i];r._parent=null,e.append(r)}}else e.append(t)}function ID(t,e){if(void 0===t)return PD;var n;if("object"==typeof t&&null!==t){if(t instanceof u_)return t;if(t.axClass===e.AXQName)return t.name;n=String(t)}else"number"==typeof t?n=t+"":"string"==typeof t?n="*"===t?null:t:e.throwError("TypeError",w_.XMLInvalidName,t);return n&&"@"===n[0]?("*"===(n=n.substr(1))&&(n=null),new u_(null,0,13,[i_.PUBLIC],n)):new u_(null,0,7,[i_.PUBLIC],n)}function ED(t,e){var n=TD;if(n.kind=t.kind,t.name&&t.name.axClass===e.AXQName&&(t=t.name.name),t.isQName())n.name=t.name,n.namespaces=t.namespaces;else if(t.isAnyNamespace())n.namespaces=t.namespaces;else{for(var i=wD(e),r=t.namespaces,o=!1,a=0;a<r.length;a++){var s=r[a];if(s.uri===i.uri&&s.prefix===i.prefix&&s.type===i.type){o=!0;break}}n.namespaces=o?t.namespaces:t.namespaces.concat(i)}var u=t.name;return t.isAnyName()||"*"===u||null===u?n.name=null:u.length>1&&"@"===u[0]?n.isAttribute()?n.name=u:(n.name="@*"===u?null:u.substr(1),n.kind=1===n.namespaces.length?13:14):n.name=u,n}function wD(t){for(var e=0===F_.length?null:F_[F_.length-1].topScope();e;){if(e.defaultNamespace)return e.defaultNamespace;e=e.parent}return t.AXNamespace.defaultNamespace||(t.AXNamespace.defaultNamespace=new i_(0,"default","")),t.AXNamespace.defaultNamespace}function SD(t,e){for(var n=t.uri,i=0;e&&i<e.length;i++)if(n===e[i].uri)return e[i];return t.namespaces[0]}var DD,TD=new u_(null,0,7,[],null,null,!0),PD=new u_(null,0,7,[],null,null,!0),OD=function(){function t(){}return t.prototype.resolveEntities=function(t){return t.replace(/&([^;]+);/g,(function(t,e){if("#x"===e.substring(0,2))return String.fromCharCode(parseInt(e.substring(2),16));if("#"===e.substring(0,1))return String.fromCharCode(parseInt(e.substring(1),10));switch(e){case"lt":return"<";case"gt":return">";case"amp":return"&";case"quot":return'"'}return t}))},t.prototype.parseContent=function(t,e){var n=e,i=[];function r(){for(;n<t.length&&gD(t,n);)++n}for(;n<t.length&&!gD(t,n)&&">"!==t[n]&&"/"!==t[n];)++n;var o=t.substring(e,n);for(r();n<t.length&&">"!==t[n]&&"/"!==t[n]&&"?"!==t[n];){r();for(var a,s="";n<t.length&&!gD(t,n)&&"="!==t[n];)s+=t[n],++n;if(r(),"="!==t[n])return null;++n,r();var u=t[n];if('"'!==u&&"'"!==u)return null;var l=t.indexOf(u,++n);if(l<0)return null;a=t.substring(n,l),i.push({name:s,value:this.resolveEntities(a)}),n=l+1,r()}return{name:o,attributes:i,parsed:n-e}},t.prototype.parseProcessingInstruction=function(t,e){var n=e;for(;n<t.length&&!gD(t,n)&&">"!==t[n]&&"/"!==t[n];)++n;var i=t.substring(e,n);!function(){for(;n<t.length&&gD(t,n);)++n}();for(var r=n;n<t.length&&("?"!==t[n]||">"!=t[n+1]);)++n;return{name:i,value:t.substring(r,n),parsed:n-e}},t.prototype.parseXml=function(t){for(var e=0;e<t.length;){var n=e;if("<"===t[e]){var i=void 0;switch(t[++n]){case"/":if(++n,(i=t.indexOf(">",n))<0)return void this.onError(-9);this.onEndElement(t.substring(n,i)),n=i+1;break;case"?":++n;var r=this.parseProcessingInstruction(t,n);if("?>"!=t.substring(n+r.parsed,n+r.parsed+2))return void this.onError(-3);this.onPi(r.name,r.value),n+=r.parsed+2;break;case"!":if("--"===t.substring(n+1,n+3)){if((i=t.indexOf("--\x3e",n+3))<0)return void this.onError(-5);this.onComment(t.substring(n+3,i)),n=i+3}else if("[CDATA["===t.substring(n+1,n+8)){if((i=t.indexOf("]]>",n+8))<0)return void this.onError(-2);this.onCdata(t.substring(n+8,i)),n=i+3}else{if("DOCTYPE"!==t.substring(n+1,n+8))return void this.onError(-6);var o=t.indexOf("[",n+8),a=!1;if((i=t.indexOf(">",n+8))<0)return void this.onError(-4);if(o>0&&i>o){if((i=t.indexOf("]>",n+8))<0)return void this.onError(-4);a=!0}var s=t.substring(n+8,i+(a?1:0));this.onDoctype(s),n=i+(a?2:1)}break;default:var u=this.parseContent(t,n);if(null===u)return void this.onError(-6);var l=!1;if("/>"===t.substring(n+u.parsed,n+u.parsed+2))l=!0;else if(">"!==t.substring(n+u.parsed,n+u.parsed+1))return void this.onError(-9);this.onBeginElement(u.name,u.attributes,l),n+=u.parsed+(l?2:1)}}else{do{}while(n++<t.length&&"<"!==t[n]);var c=t.substring(e,n);this.onText(this.resolveEntities(c))}e=n}},t.prototype.onPi=function(t,e){},t.prototype.onComment=function(t){},t.prototype.onCdata=function(t){},t.prototype.onDoctype=function(t){},t.prototype.onText=function(t){},t.prototype.onBeginElement=function(t,e,n){},t.prototype.onEndElement=function(t){},t.prototype.onError=function(t){},t}(),MD=function(t){function e(e){var n=t.call(this)||this;return n.sec=e,n.scopes=[],n}return L_(e,t),e.prototype.isWhitespacePreserved=function(){for(var t=this.scopes,e=t.length-1;e>=0;--e)if("preserve"===t[e].space)return!0;return!1},e.prototype.lookupDefaultNs=function(){for(var t=this.scopes,e=t.length-1;e>=0;--e)if("xmlns"in t[e])return t[e].xmlns;return""},e.prototype.lookupNs=function(t){for(var e=this.scopes,n=e.length-1;n>=0;--n)if(t in e[n].lookup)return e[n].lookup[t]},e.prototype.getName=function(t,e){var n=t.indexOf(":");if(n>=0){var i=t.substring(0,n),r=t.substring(n+1),o=this.lookupNs(i);return void 0===o&&this.sec.throwError("TypeError",w_.XMLPrefixNotBound,i,r),{name:o+"::"+r,localName:r,prefix:i,namespace:o}}return e?{name:t,localName:t,prefix:"",namespace:this.lookupDefaultNs()}:{name:t,localName:t,prefix:"",namespace:""}},e.prototype.onError=function(t){switch(t){case-6:return void this.sec.throwError("TypeError",w_.XMLMalformedElement);case-9:return void this.sec.throwError("TypeError",w_.XMLUnterminatedElement);case-4:return void this.sec.throwError("TypeError",w_.XMLUnterminatedDocTypeDecl);case-2:return void this.sec.throwError("TypeError",w_.XMLUnterminatedCData);case-5:return void this.sec.throwError("TypeError",w_.XMLUnterminatedComment);case-3:return void this.sec.throwError("TypeError",w_.XMLUnterminatedXMLDecl)}},e.prototype.onPi=function(t,e){this.pi(t,e)},e.prototype.onComment=function(t){this.comment(t)},e.prototype.onCdata=function(t){this.cdata(t)},e.prototype.onDoctype=function(t){this.doctype(t)},e.prototype.onText=function(t){this.text(t,this.isWhitespacePreserved())},e.prototype.onBeginElement=function(t,e,n){for(var i=this.scopes,r={namespaces:[],lookup:Object.create(null),inScopes:null},o=0;o<e.length;++o){var a=(d=e[o]).name;if("xmlns:"===a.substring(0,6)){var s=a.substring(6),u=d.value;if(this.lookupNs(s)!==u){r.lookup[s]=mD(u);var l=o_(0,u,s);r.namespaces.push(l)}e[o]=null}else if("xmlns"===a){u=d.value;if(this.lookupDefaultNs()!==u){r.xmlns=mD(u);l=r_(0,u);r.namespaces.push(l)}e[o]=null}else if("xml:"===a.substring(0,4)){var c=a.substring(4);r[c]=mD(d.value)}}var h=[];r.namespaces.forEach((function(t){t.prefix&&r.lookup[t.prefix]!==t.uri||h.push(t)})),i[i.length-1].inScopes.forEach((function(t){(t.prefix&&!(t.prefix in r.lookup)||!t.prefix&&!("xmlns"in r))&&h.push(t)})),r.inScopes=h,i.push(r);var p=[];for(o=0;o<e.length;++o){var d;(d=e[o])&&p.push({name:this.getName(d.name,!1),value:d.value})}this.beginElement(this.getName(t,!0),p,h,n),n&&i.pop()},e.prototype.onEndElement=function(t){this.endElement(this.getName(t,!0)),this.scopes.pop()},e.prototype.beginElement=function(t,e,n,i){var r=this.currentElement;this.elementsStack.push(r),this.currentElement=FD(this.sec,1,t.namespace,t.localName,t.prefix);for(var o=0;o<e.length;++o){var a=e[o],s=FD(this.sec,2,a.name.namespace,a.name.localName,a.name.prefix);s._value=a.value,s._parent=this.currentElement,this.currentElement._attributes.push(s)}for(o=0;o<n.length;++o)this.currentElement._inScopeNamespaces.push(n[o]);r.insert(r._children.length,this.currentElement),i&&(this.currentElement=this.elementsStack.pop())},e.prototype.endElement=function(t){this.currentElement=this.elementsStack.pop()},e.prototype.text=function(t,e){if(this.sec.AXXML.ignoreWhitespace&&(t=mD(t)),!(0===t.length||e&&this.sec.AXXML.ignoreWhitespace)){var n=FD(this.sec);n._value=t,this.currentElement.insert(this.currentElement._children.length,n)}},e.prototype.cdata=function(t){var e=FD(this.sec);e._value=t,this.currentElement.insert(this.currentElement._children.length,e)},e.prototype.comment=function(t){if(!this.sec.AXXML.ignoreComments){var e=FD(this.sec,4,"","");e._value=t,this.currentElement.insert(this.currentElement._children.length,e)}},e.prototype.pi=function(t,e){if(!this.sec.AXXML.ignoreProcessingInstructions){var n=FD(this.sec,5,"",t);n._value=e,this.currentElement.insert(this.currentElement._children.length,n)}},e.prototype.doctype=function(t){},e.prototype.parseFromString=function(t,e){var n=this.currentElement=FD(this.sec,1,"","","");this.elementsStack=[];var i=wD(this.sec),r=[{namespaces:[],lookup:{xmlns:"http://www.w3.org/2000/xmlns/",xml:"http://www.w3.org/XML/1998/namespace"},inScopes:[i],space:"default",xmlns:i.uri}];if(this.scopes=r,this.parseXml(t),this.currentElement=null,this.elementsStack.length>0){var o=this.elementsStack.pop()._name.name;this.sec.throwError("TypeError",w_.XMLUnterminatedElementTag,o,o)}return this.elementsStack=null,n},e}(OD),BD=function(t){function e(e,n){var i=t.call(this)||this,r="",o="";if(1===arguments.length){if((s=e)instanceof i_)return i._ns=s,i;if(s&&"object"==typeof s)if(s.axClass===i.sec.AXNamespace){var a=s;o=a.prefix,r=a.uri}else s.axClass===i.sec.AXQName&&null!==s.uri&&(r=s.uri);else o=""===(r=pD(s,i.sec))?"":void 0}else{var s,u=e;""===(r=Ad(s=n)&&s.axClass===i.sec.AXQName&&null!==s.uri?s.uri:pD(s,i.sec))?void 0===u||""===pD(u,i.sec)?o="":i.sec.throwError("TypeError",w_.XMLNamespaceWithPrefixAndNoURI,u):o=void 0===u||!1===function(t,e){try{e.AXQName.Create(t)}catch(t){return!1}return!0}(u,i.sec)?void 0:pD(u,i.sec)}return i._ns=o_(0,r,o),i}return L_(e,t),e.classInitializer=function(){Xg(this,"$Bglength",2),Xg(this.dPrototype,"$BgtoString",e.prototype.toString)},e.axApply=function(t,e){var n=e[0],i=e[1];if(1===e.length&&Ad(n)&&n.axClass===this.sec.AXNamespace)return n;switch(e.length){case 0:return this.sec.AXNamespace.Create();case 1:return this.sec.AXNamespace.Create(n);default:return this.sec.AXNamespace.Create(n,i)}},e.Create=function(t,e){var n=Object.create(this.sec.AXNamespace.tPrototype);return n.axInitializer.apply(n,arguments),n},e.FromNamespace=function(t){var e=Object.create(this.sec.AXNamespace.tPrototype);return e._ns=t,e},e.prototype.equals=function(t){return t&&t.axClass===this.axClass&&t._ns.uri===this._ns.uri||"string"==typeof t&&this._ns.uri===t},Object.defineProperty(e.prototype,"prefix",{get:function(){return this._ns.prefix},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"uri",{get:function(){return this._ns.uri},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return this===this.axClass.dPrototype?"":this._ns.uri},e.prototype.valueOf=function(){return this===this.axClass.dPrototype?"":this._ns.uri},e.instanceConstructor=e,e.defaultNamespace=i_.PUBLIC,e}(B_),ND=function(t){function e(e,n){var i,r,o=t.call(this)||this;if(0===arguments.length?i="":1===arguments.length?i=e:(r=e,i=n),i&&i.axClass===o.sec.AXQName){if(arguments.length<2)return o.name=i.name,o;i=i.localName}i=void 0===i?"":pD(i,o.sec),void 0===r&&(r="*"===i?null:wD(o.sec));var a=i,s=null;return null!==r&&(r.axClass!==o.sec.AXNamespace&&(r=o.sec.AXNamespace.Create(r)),s=r._ns),o.name=new u_(null,0,7,[s],a),o}return L_(e,t),e.classInitializer=function(){Xg(this,"$Bglength",2),Xg(this.dPrototype,"$BgtoString",e.prototype.ecmaToString)},e.Create=function(t,e,n){var i=Object.create(this.sec.AXQName.tPrototype);return i.axInitializer.apply(i,arguments),i},e.FromMultiname=function(t){var e=Object.create(this.sec.AXQName.tPrototype);return e.name=t,e},e.axApply=function(t,e){var n=e[0],i=e[1];if(1===e.length&&n&&n.axClass===this.sec.AXQName)return n;switch(e.length){case 0:return this.sec.AXQName.Create();case 1:return this.sec.AXQName.Create(n);default:return this.sec.AXQName.Create(n,i)}},e.prototype.equals=function(t){return t&&t.axClass===this.sec.AXQName&&t.uri===this.uri&&t.name.name===this.name.name||"string"==typeof t&&this.toString()===t},Object.defineProperty(e.prototype,"localName",{get:function(){return""!=this.name.name?this.name.name:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"uri",{get:function(){var t=this.name.namespaces;return t.length>1?"":t[0]?t[0].uri:null},enumerable:!1,configurable:!0}),e.prototype.ecmaToString=function(){return this&&this===this.sec.AXQName.dPrototype?"":(this&&this.axClass===this.sec.AXQName||this.sec.throwError("TypeError",w_.InvokeOnIncompatibleObjectError,"QName.prototype.toString"),this.toString())},e.prototype.toString=function(){var t=this.uri;if(""===t)return this.name.name;if(null===t)return"*::"+this.name.name;var e=(t+="").charCodeAt(t.length-1);return e>=57344&&e<=63743&&t.substr(0,t.length-1),this.name.name},e.prototype.valueOf=function(){return this},Object.defineProperty(e.prototype,"prefix",{get:function(){return this.name.namespaces[0]?this.name.namespaces[0].prefix:null},enumerable:!1,configurable:!0}),e}(B_);!function(t){t[t.FLAG_IGNORE_COMMENTS=1]="FLAG_IGNORE_COMMENTS",t[t.FLAG_IGNORE_PROCESSING_INSTRUCTIONS=2]="FLAG_IGNORE_PROCESSING_INSTRUCTIONS",t[t.FLAG_IGNORE_WHITESPACE=4]="FLAG_IGNORE_WHITESPACE",t[t.FLAG_PRETTY_PRINTING=8]="FLAG_PRETTY_PRINTING",t[t.ALL=15]="ALL"}(DD||(DD={}));var LD=[null,"element","attribute","text","comment","processing-instruction"],RD=function(t){function e(e){var n=t.call(this)||this;if(n._parent=null,xd(e)&&(e=""),"string"==typeof e&&0===e.length)return n._kind=3,n._value="",n;var i=CD(e,n.sec);cD(e,n.sec)&&(i=i._deepCopy()),n._kind=i._kind,n._name=i._name,n._value=i._value,n._attributes=i._attributes,n._inScopeNamespaces=i._inScopeNamespaces;var r=i._children;if(n._children=r,r)for(var o=0;o<r.length;o++){r[o]._parent=n}return n}return L_(e,t),e.classInitializer=function(){Xg(this,"$Bglength",1);var t=this.dPrototype,n=e.prototype;l_(t,"$BgvalueOf",n.valueOf),Xg(t,"$BghasOwnProperty",n.native_hasOwnProperty),Xg(t,"$BgpropertyIsEnumerable",n.native_propertyIsEnumerable),l_(this,"$Bgsettings",e.native_settings),l_(this,"$BgsetSettings",e.native_setSettings),l_(this,"$BgdefaultSettings",e.native_defaultSettings),l_(t,"$BgtoString",n.toString),l_(t,"$BgaddNamespace",n.addNamespace),l_(t,"$BgappendChild",n.appendChild),l_(t,"$Bgattribute",n.attribute),l_(t,"$Bgattributes",n.attributes),l_(t,"$Bgchild",n.child),l_(t,"$BgchildIndex",n.childIndex),l_(t,"$Bgchildren",n.children),l_(t,"$Bgcomments",n.comments),l_(t,"$Bgcontains",n.contains),l_(t,"$Bgcopy",n.copy),l_(t,"$Bgdescendants",n.descendants),l_(t,"$Bgelements",n.elements),l_(t,"$BghasComplexContent",n.hasComplexContent),l_(t,"$BghasSimpleContent",n.hasSimpleContent),l_(t,"$BginScopeNamespaces",n.inScopeNamespaces),l_(t,"$BginsertChildAfter",n.insertChildAfter),l_(t,"$BginsertChildBefore",n.insertChildBefore),l_(t,"$Bglength",n.length),l_(t,"$BglocalName",n.localName),l_(t,"$Bgname",n.name),l_(t,"$Bgnamespace",n.namespace),l_(t,"$BgnamespaceDeclarations",n.namespaceDeclarations),l_(t,"$BgnodeKind",n.nodeKind),l_(t,"$Bgnormalize",n.normalize),l_(t,"$Bgparent",n.parent),l_(t,"$BgprocessingInstructions",n.processingInstructions),l_(t,"$BgprependChild",n.prependChild),l_(t,"$BgremoveNamespace",n.removeNamespace),l_(t,"$Bgreplace",n.replace),l_(t,"$BgsetChildren",n.setChildren),l_(t,"$BgsetLocalName",n.setLocalName),l_(t,"$BgsetName",n.setName),l_(t,"$BgsetNamespace",n.setNamespace),l_(t,"$Bgtext",n.text),l_(t,"$BgtoXMLString",n.toXMLString),l_(t,"$BgtoJSON",n.toJSON)},e.Create=function(t){var e=Object.create(this.sec.AXXML.tPrototype);return e.axInitializer(t),e},e.resetSettings=function(){this._flags=DD.ALL},e.native_settings=function(){var t=Object.create(this.sec.AXObject.tPrototype);return t.$BgignoreComments=this.ignoreComments,t.$BgignoreProcessingInstructions=this.ignoreProcessingInstructions,t.$BgignoreWhitespace=this.ignoreWhitespace,t.$BgprettyPrinting=this.prettyPrinting,t.$BgprettyIndent=this.prettyIndent,t},e.native_setSettings=function(t){if(xd(t))return this.ignoreComments=!0,this.ignoreProcessingInstructions=!0,this.ignoreWhitespace=!0,this.prettyPrinting=!0,void(this.prettyIndent=2);"boolean"==typeof t.$BgignoreComments&&(this.ignoreComments=t.$BgignoreComments),"boolean"==typeof t.$BgignoreProcessingInstructions&&(this.ignoreProcessingInstructions=t.$BgignoreProcessingInstructions),"boolean"==typeof t.$BgignoreWhitespace&&(this.ignoreWhitespace=t.$BgignoreWhitespace),"boolean"===t.$BgprettyPrinting&&(this.prettyPrinting=t.$BgprettyPrinting),"number"===t.$BgprettyIndent&&(this.prettyIndent=t.$BgprettyIndent)},e.native_defaultSettings=function(){return{__proto__:this.sec.AXObject.tPrototype,$BgignoreComments:!0,$BgignoreProcessingInstructions:!0,$BgignoreWhitespace:!0,$BgprettyPrinting:!0,$BgprettyIndent:2}},e.axApply=function(t,e){var n=e[0];return xd(n)&&(n=""),CD(n,this.sec)},e.prototype.valueOf=function(){return this},e.prototype.equals=function(t){if(t&&t.axClass===this.sec.AXXMLList)return t.equals(this);if(t&&t.axClass===this.sec.AXXML){var e=t;return(3===this._kind||2===this._kind)&&e.hasSimpleContent()||(3===e._kind||2===e._kind)&&this.hasSimpleContent()?this.toString()===t.toString():this._deepEquals(t)}return this.hasSimpleContent()&&this.toString()===a_(t)},e.prototype.init=function(t,e){switch(this._name=e,this._kind=t,this._parent=null,t){case 1:this._inScopeNamespaces=[],this._attributes=[],this._children=[];break;case 4:case 5:case 2:case 3:this._value=""}return this},e.prototype._deepEquals=function(t){if(!t||t.axClass!==this.sec.AXXML)return!1;var e=t;if(this._kind!==e._kind)return!1;if(!!this._name!=!!e._name||this._name&&!this._name.equalsQName(e._name))return!1;if(1!==this._kind)return this._value===e._value;var n=this._attributes,i=e._attributes;if(n.length!==i.length)return!1;var r=this._children,o=e._children;if(r.length!==o.length)return!1;t:for(var a=0;a<n.length;a++){for(var s=n[a],u=0;u<i.length;u++){var l=i[u];if(l._name.equalsQName(s._name)&&l._value===s._value)continue t}return!1}for(a=0;a<r.length;a++)if(!r[a].equals(o[a]))return!1;return!0},e.prototype._deepCopy=function(){var t=this._kind,e=this.sec.AXXML.Create();switch(e._kind=t,e._name=this._name,t){case 1:e._inScopeNamespaces=this._inScopeNamespaces.slice(),e._attributes=this._attributes.map((function(t){return(t=t._deepCopy())._parent=e,t})),e._children=this._children.map((function(t){return(t=t._deepCopy())._parent=e,t}));break;case 4:case 5:case 2:case 3:e._value=this._value}return e},e.prototype.resolveValue=function(){return this},e.prototype._addInScopeNamespace=function(t){this._inScopeNamespaces.some((function(e){return e.uri===t.uri&&e.prefix===t.prefix}))||this._inScopeNamespaces.push(t)},Object.defineProperty(e,"ignoreComments",{get:function(){return!!(this._flags&DD.FLAG_IGNORE_COMMENTS)},set:function(t){(t=!!t)?this._flags|=DD.FLAG_IGNORE_COMMENTS:this._flags&=~DD.FLAG_IGNORE_COMMENTS},enumerable:!1,configurable:!0}),Object.defineProperty(e,"ignoreProcessingInstructions",{get:function(){return!!(this._flags&DD.FLAG_IGNORE_PROCESSING_INSTRUCTIONS)},set:function(t){(t=!!t)?this._flags|=DD.FLAG_IGNORE_PROCESSING_INSTRUCTIONS:this._flags&=~DD.FLAG_IGNORE_PROCESSING_INSTRUCTIONS},enumerable:!1,configurable:!0}),Object.defineProperty(e,"ignoreWhitespace",{get:function(){return!!(this._flags&DD.FLAG_IGNORE_WHITESPACE)},set:function(t){(t=!!t)?this._flags|=DD.FLAG_IGNORE_WHITESPACE:this._flags&=~DD.FLAG_IGNORE_WHITESPACE},enumerable:!1,configurable:!0}),Object.defineProperty(e,"prettyPrinting",{get:function(){return!!(this._flags&DD.FLAG_PRETTY_PRINTING)},set:function(t){(t=!!t)?this._flags|=DD.FLAG_PRETTY_PRINTING:this._flags&=~DD.FLAG_PRETTY_PRINTING},enumerable:!1,configurable:!0}),Object.defineProperty(e,"prettyIndent",{get:function(){return this._prettyIndent},set:function(t){t|=0,this._prettyIndent=t},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return this===this.axClass.dPrototype?"":this.hasComplexContent()?this.toXMLString():pD(this,this.sec)},e.prototype.native_hasOwnProperty=function(t){if(this===this.axClass.dPrototype)return B_.prototype.native_hasOwnProperty.call(this,t);var e=ID(t,this.sec);return!!this.hasProperty(e)||this.axHasOwnProperty(e)},e.prototype.native_propertyIsEnumerable=function(t){return void 0===t&&(t=void 0),"0"===String(t)},e.prototype.addNamespace=function(t){return this&&this.axClass===this.sec.AXXML||this.sec.throwError("TypeError",w_.CheckTypeFailedError,this,"XML"),this._addInScopeNamespace(t),this},e.prototype.appendChild=function(t){return this&&this.axClass===this.sec.AXXML||this.sec.throwError("TypeError",w_.CheckTypeFailedError,this,"XML"),this.insert(this._children.length,t),this},e.prototype.attribute=function(t){return this&&this.axClass===this.sec.AXXML||this.sec.throwError("TypeError",w_.CheckTypeFailedError,this,"XML"),xd(t)&&arguments.length>0&&this.sec.throwError("TypeError",w_.ConvertUndefinedToObjectError),t&&t.axClass===this.sec.AXQName?this.getProperty(t.name):("*"!==(t=a_(t))&&0!==arguments.length||(t=null),TD.name=t,TD.namespaces=[i_.PUBLIC],TD.kind=13,this.getProperty(TD))},e.prototype.attributes=function(){this&&this.axClass===this.sec.AXXML||this.sec.throwError("TypeError",w_.CheckTypeFailedError,this,"XML");var t=this.sec.AXXMLList.CreateList(this,this._name);return Array.prototype.push.apply(t._children,this._attributes),t},e.prototype.child=function(t){if(this&&this.axClass===this.sec.AXXML||this.sec.throwError("TypeError",w_.CheckTypeFailedError,this,"XML"),Cd(t)){var e=this.sec.AXXMLList.CreateList(null,null);return this._children&&t<this._children.length&&e.append(this._children[0|t]),e}var n;return t&&t.axClass===this.sec.AXQName?n=t.name:((n=TD).kind=7,n.name=pD(t,this.sec)),this.getProperty(n)},e.prototype.childIndex=function(){return this&&this.axClass===this.sec.AXXML||this.sec.throwError("TypeError",w_.CheckTypeFailedError,this,"XML"),this._parent&&2!==this._kind?this._parent._children.indexOf(this):-1},e.prototype.children=function(){this&&this.axClass===this.sec.AXXML||this.sec.throwError("TypeError",w_.CheckTypeFailedError,this,"XML");var t=this.sec.AXXMLList.CreateList(this,this._name);return t._children=this._children.concat(),t},e.prototype.comments=function(){this&&this.axClass===this.sec.AXXML||this.sec.throwError("TypeError",w_.CheckTypeFailedError,this,"XML");var t=this.sec.AXXMLList.CreateList(this,this._name);return this._children&&this._children.forEach((function(e,n){4===e._kind&&t.append(e)})),t},e.prototype.contains=function(t){return this&&this.axClass===this.sec.AXXML||this.sec.throwError("TypeError",w_.CheckTypeFailedError,this,"XML"),this===t},e.prototype.copy=function(){return this&&this.axClass===this.sec.AXXML||this.sec.throwError("TypeError",w_.CheckTypeFailedError,this,"XML"),this._deepCopy()},e.prototype.descendants=function(t){this&&this.axClass===this.sec.AXXML||this.sec.throwError("TypeError",w_.CheckTypeFailedError,this,"XML");var e=this.sec.AXXMLList.CreateList(this,this._name);return this.descendantsInto(ID(t,this.sec),e)},e.prototype.elements=function(t){return this&&this.axClass===this.sec.AXXML||this.sec.throwError("TypeError",w_.CheckTypeFailedError,this,"XML"),this.getProperty(ID(t,this.sec))},e.prototype.hasComplexContent=function(){return this&&this.axClass===this.sec.AXXML||this.sec.throwError("TypeError",w_.CheckTypeFailedError,this,"XML"),2!==this._kind&&4!==this._kind&&5!==this._kind&&3!==this._kind&&this._children.some((function(t){return 1===t._kind}))},e.prototype.hasSimpleContent=function(){return this&&this.axClass===this.sec.AXXML||this.sec.throwError("TypeError",w_.CheckTypeFailedError,this,"XML"),4!==this._kind&&5!==this._kind&&(1!==this._kind||(!this._children&&0===this._children.length||this._children.every((function(t){return 1!==t._kind}))))},e.prototype.inScopeNamespaces=function(){this&&this.axClass===this.sec.AXXML||this.sec.throwError("TypeError",w_.CheckTypeFailedError,this,"XML");for(var t=this._inScopeNamespacesImpl(),e=[],n=0;n<t.length;n++){var i=this.sec.AXNamespace;e[n]=i.FromNamespace(t[n])}return this.sec.AXArray.axBox(e)},e.prototype._inScopeNamespacesImpl=function(){for(var t=this,e=[],n=e;null!==t;){for(var i=t._inScopeNamespaces,r=0;i&&r<i.length;r++){var o=i[r];n[o.prefix]||(n[o.prefix]=o,e.push(o))}t=t._parent}return e},e.prototype.insertChildAfter=function(t,e){if(this&&this.axClass===this.sec.AXXML||this.sec.throwError("TypeError",w_.CheckTypeFailedError,this,"XML"),!(this._kind>1)){if(null==t)return this.insert(0,e),this;if(t.axClass===this.sec.AXXMLList&&1===t._children.length&&(t=t._children[0]),t.axClass===this.sec.AXXML)for(var n=0;n<this._children.length;n++){if(this._children[n]===t)return this.insert(n+1,e),this}}},e.prototype.insertChildBefore=function(t,e){if(this&&this.axClass===this.sec.AXXML||this.sec.throwError("TypeError",w_.CheckTypeFailedError,this,"XML"),!(this._kind>1)){if(null==t)return this.insert(this._children.length,e),this;if(t.axClass===this.sec.AXXMLList&&1===t._children.length&&(t=t._children[0]),t.axClass===this.sec.AXXML)for(var n=0;n<this._children.length;n++){if(this._children[n]===t)return this.insert(n,e),this}}},e.prototype.length=function(){return this&&this.axClass===this.sec.AXXML||this.sec.throwError("TypeError",w_.CheckTypeFailedError,this,"XML"),this._children?this._children.length:0},e.prototype.localName=function(){return this&&this.axClass===this.sec.AXXML||this.sec.throwError("TypeError",w_.CheckTypeFailedError,this,"XML"),""!=this._name.name?this._name.name:null},e.prototype.name=function(){return this&&this.axClass===this.sec.AXXML||this.sec.throwError("TypeError",w_.CheckTypeFailedError,this,"XML"),this.sec.AXQName.FromMultiname(this._name)},e.prototype.namespace=function(t){if(this&&this.axClass===this.sec.AXXML||this.sec.throwError("TypeError",w_.CheckTypeFailedError,this,"XML"),0===arguments.length&&this._kind>=3)return null;var e=this._inScopeNamespacesImpl();if(0===arguments.length)return this.sec.AXNamespace.FromNamespace(SD(this._name,e));t=a_(t);for(var n=0;n<e.length;n++){var i=e[n];if(i.prefix===t)return this.sec.AXNamespace.FromNamespace(i)}},e.prototype.namespaceDeclarations=function(){this&&this.axClass===this.sec.AXXML||this.sec.throwError("TypeError",w_.CheckTypeFailedError,this,"XML")},e.prototype.nodeKind=function(){return this&&this.axClass===this.sec.AXXML||this.sec.throwError("TypeError",w_.CheckTypeFailedError,this,"XML"),LD[this._kind]},e.prototype.normalize=function(){this&&this.axClass===this.sec.AXXML||this.sec.throwError("TypeError",w_.CheckTypeFailedError,this,"XML");for(var t=0;t<this._children.length;){var e=this._children[t];if(1===e._kind)e.normalize(),t++;else if(3===e._kind){for(;t+1<this._children.length;){var n=this._children[t+1];if(3!==n._kind)break;e._value+=n._value,this.removeByIndex(t+1)}0===e._value.length||_D(e._value)?this.removeByIndex(t):t++}else t++}return this},e.prototype.removeByIndex=function(t){this._children[t]._parent=null,this._children.splice(t,1)},e.prototype.parent=function(){return this._parent||void 0},e.prototype.processingInstructions=function(t){var e=this.sec.AXXMLList.CreateList(this,this._name);return e._targetObject=this,e._targetProperty=null,this.processingInstructionsInto(ID(t,this.sec),e)},e.prototype.processingInstructionsInto=function(t,e){var n=t||"*",i=this._children;if(!i)return e;for(var r=0;r<i.length;r++){var o=i[r];5!==o._kind||"*"!==n&&o._name.name!==n||e._children.push(o)}return e},e.prototype.prependChild=function(t){return this.insert(0,t),this},e.prototype.removeNamespace=function(t){},e.prototype.replace=function(t,e){if(1===this._kind){var n;n=!e||e.axClass!==this.axClass&&e.axClass!==this.sec.AXXMLList?a_(e):e._deepCopy();var i=ID(t,this.sec);if(Cd(i.name))return this._replaceByIndex(0|i.name,n),this;for(var r=i.isAnyName(),o=-1,a=this._children,s=a.length;s--;){var u=a[s];(r||1===u._kind&&u._name.matches(i))&&(-1!==o&&this.deleteByIndex(o),o=s)}return-1===o||this._replaceByIndex(o,n),this}},e.prototype._replaceByIndex=function(t,e){if(this._kind>1)return this;var n=this._children;if(t>n.length&&(t=n.length),e&&e.axClass===this.axClass&&2!==e._kind){if(1===e._kind)for(var i=this;i;)i===e&&this.sec.throwError("Error",w_.XMLIllegalCyclicalLoop),i=i._parent;e._parent=this,n[t]&&(n[t]._parent=null),n[t]=e}else if(e&&e.axClass===this.sec.AXXMLList)if(0===e._children.length)this.deleteByIndex(t);else{var r=e._children.length;if(t<n.length){n[t]._parent=null;for(var o=n.length-1;o>t;o--)n[o+r]=n[o]}for(o=0;o<r;o++){var a=e._children[o];a._parent=this,n[o+t]=a}}else{var s=a_(e),u=this.axClass.Create();u._kind=3,u._value=s,u._parent=this,n[t]&&(n[t]._parent=null),n[t]=u}},e.prototype.setChildren=function(t){return this.setProperty(PD,t),this},e.prototype.setLocalName=function(t){var e;3!==this._kind&&4!==this._kind&&(e=t&&t.axClass===this.sec.AXQName?t.localName:a_(t),this._name.name=e)},e.prototype.setName=function(t){if(3!==this._kind&&4!==this._kind){t&&t.axClass===this.sec.AXQName&&null===t.uri&&(t=t.localName);var e=this.sec.AXQName.Create(t).name;5===this._kind&&(e.namespaces[0]=i_.PUBLIC),this._name=e;var n=this;if(2===this._kind){if(null===this._parent)return;n=this._parent}n.addInScopeNamespace(e.namespaces[0])}},e.prototype.setNamespace=function(t){if(3!==this._kind&&4!==this._kind&&5!==this._kind){var e=this.sec.AXNamespace.Create(t)._ns;this._name.namespaces=[e],2===this._kind?this._parent&&this._parent.addInScopeNamespace(e):1===this._kind&&this.addInScopeNamespace(e)}},e.prototype.text=function(){var t=this.sec.AXXMLList.CreateList(this,this._name);return this._children&&this._children.forEach((function(e){3===e._kind&&t.append(e)})),t},e.prototype.toXMLString=function(){return this.toXMLStringImpl()},e.prototype.toXMLStringImpl=function(t,e){var n=this,i=this.sec,r=i.AXXML.prettyPrinting;e|=0;var o=r?AD(e):"";switch(n._kind){case 3:return r?o+dD(i,mD(n._value)):dD(i,n._value);case 2:return o+fD(n._value);case 4:return o+"\x3c!--"+n._value+"--\x3e";case 5:return o+"<?"+n._name.name+" "+n._value+"?>"}t=t||[];for(var a=[],s=function(e){var i=n._inScopeNamespaces[e];t.every((function(t){return t.uri!==i.uri||t.prefix!==i.prefix}))&&a.push(i)},u=0;n._inScopeNamespaces&&u<n._inScopeNamespaces.length;u++)s(u);var l=t.concat(a),c=SD(n._name,l);if(void 0===c.prefix){var h=vD(l),p=o_(0,c.uri,h);a.push(p),l.push(p)}var d=(c.prefix?c.prefix+":":"")+n._name.name;o+="<"+d,n._attributes&&n._attributes.forEach((function(t){var e=t._name;if(void 0===(c=SD(e,l)).prefix){var n=vD(l),i=o_(0,c.uri,n);a.push(i),l.push(i)}}));for(u=0;u<a.length;u++)if(""!==(c=a[u]).uri&&"default"!==c.uri){var f=c.prefix?"xmlns:"+c.prefix:"xmlns";o+=" "+f+'="'+fD(c.uri)+'"'}if(n._attributes&&n._attributes.forEach((function(e){var n=e._name,i=SD(n,t),r=i.prefix?i.prefix+":"+n.name:n.name;o+=" "+r+'="'+fD(e._value)+'"'})),0===n._children.length)return o+="/>";o+=">";var g=n._children.length>1||1===n._children.length&&3!==n._children[0]._kind,_=r&&g?e+i.AXXML._prettyIndent:0;return n._children.forEach((function(t){r&&g&&(o+="\n"),o+=t.toXMLStringImpl(l,_)})),r&&g&&(o+="\n"+AD(e)),o+="</"+d+">"},e.prototype.toJSON=function(t){return"XML"},e.prototype.axGetEnumerableKeys=function(){if(this===this.axClass.dPrototype)return t.prototype.axGetEnumerableKeys.call(this);for(var e=[],n=0;n<this._children.length;n++)e.push(this._children[n]._name.name);return e},e.prototype.setProperty=function(t,e){var n,i=this.sec;if(t.isAnyName()||t.isAttribute()||t.name!==t.name>>>0||i.throwError("TypeError",w_.XMLAssignmentToIndexedXMLNotAllowed),3!==this._kind&&4!==this._kind&&5!==this._kind&&2!==this._kind)if(n=cD(e,i)&&3!==e._kind&&2!==e._kind?e._deepCopy():pD(e,i),t.isAttribute()){if(n&&n.axClass===i.AXXMLList)if(0===n._children.length)n="";else{for(var r=pD(n._children[0],i),o=1;o<n._children.length;o++)r+=" "+pD(n._children[o],i);n=r}else n=a_(n);var a=null,s=this._attributes,u=this._attributes=[];for(o=0;s&&o<s.length;o++){var l=s[o];if(l._name.matches(t)){if(a){l._parent=null;continue}a=l}u.push(l)}if(!a){if(t.isAnyName())return;var c="";1===t.namespaces.length&&t.namespaces[0]&&(c=t.namespaces[0].uri),(a=FD(i,2,c,t.name))._parent=this,u.push(a)}a._value=n}else{for(var h,p=t.isAnyName(),d=!cD(n,i)&&!p&&"*"!==t.name,f=t.isAnyNamespace(),g=this._children.length-1;g>=0;g--)(p||1===this._children[g]._kind&&this._children[g]._name.name===t.name)&&(f||1===this._children[g]._kind&&this._children[g]._name.matches(t))&&(void 0!==h&&this.deleteByIndex(h),h=g);if(void 0===h&&(h=this._children.length,d)){var _=t.namespaces[0],m=(c=null,void 0);if(null!==_.uri&&(c=_.uri,m=_.prefix),null===c){var y=wD(i);c=y.uri,m=y.prefix}var A=FD(i,1,c,t.name,m);A._parent=this,this._replaceByIndex(h,A),A.addInScopeNamespace(A._name.namespace)}if(d){var v=this._children[h]._children;for(o=v.length;o--;)v[o]._parent=null;v.length=0,""!==(r=pD(n,i))&&this._children[h]._replaceByIndex(0,r)}else this._replaceByIndex(h,n)}},e.prototype.axSetProperty=function(t,e,n){this!==this.axClass.dPrototype?this.setProperty(ED(t,this.sec),e):this[this.axResolveMultiname(t)]=e},e.prototype.getProperty=function(t){var e=t.name;if(Cd(e))return 0==(0|e)?this:null;var n=this.sec.AXXMLList.CreateList(this,t),i=0,r=t.isAnyName(),o=t.isAnyNamespace();if(t.isAttribute()){for(var a=0;this._attributes&&a<this._attributes.length;a++){var s=this._attributes[a];!r&&s._name.name!==e||!o&&!s._name.matches(t)||(n._children[i++]=s,Qa(n._children[0]))}return n}for(a=0;this._children&&a<this._children.length;a++){s=this._children[a];(r||1===s._kind&&s._name.name===e)&&(o||s._name.matches(t))&&(n._children[i++]=s,Qa(n._children[0]))}return n},e.prototype.axGetProperty=function(t){return this===this.axClass.dPrototype?this[this.axResolveMultiname(t)]:this.getProperty(ED(t,this.sec))},e.prototype.hasProperty=function(t){if(Cd(t.name))return 0==(0|t.name);var e=ID(t,this.sec),n=e.isAnyName(),i=e.isAnyNamespace();if(t.isAttribute()){for(var r=0;this._attributes&&r<this._attributes.length;r++){var o=this._attributes[r];if(n||o._name.matches(e))return!0}return!1}for(r=0;this._children&&r<this._children.length;r++){o=this._children[r];if((n||1===o._kind&&o._name.name===e.name)&&(i||1===o._kind&&o._name.matches(e)))return!0}return!1},e.prototype.deleteProperty=function(t){if(Cd(t.name))return!0;var e=ID(t,this.sec),n=e.name,i=t.isAnyName(),r=t.isAnyNamespace();if(t.isAttribute()){var o=this._attributes;if(o)for(var a=this._attributes=[],s=0;s<o.length;s++){var u=o[s],l=u._name;!i&&l.name!==n||!r&&!l.matches(e)?a.push(u):u._parent=null}}else if(this._children.some((function(t,n){return(i||1===t._kind&&t._name.name===e.name)&&(r||1===t._kind&&t._name.matches(e))})))return!0},e.prototype.axHasProperty=function(e){return this===this.axClass.dPrototype?t.prototype.axHasPropertyInternal.call(this,e):this.axHasPropertyInternal(e)},e.prototype.axHasPropertyInternal=function(t){return!!this.hasProperty(t)||!!this[this.axResolveMultiname(t)]},e.prototype.axDeleteProperty=function(t){return!!this.deleteProperty(t)||delete this[this.axResolveMultiname(t)]},e.prototype.axCallProperty=function(t,e){var n=this[this.axResolveMultiname(t)];return n||(n=this["$Bg"+t.name]),n?(O_(this.sec,n,e.length),n.axApply(this,e)):this.hasSimpleContent()?this.sec.box(pD(this,this.sec)).axCallProperty(t,e):void this.sec.throwError("TypeError",w_.CallOfNonFunctionError,"value")},e.prototype._delete=function(t,e){},e.prototype.deleteByIndex=function(t){if(String(t>>>0)!==String(t))throw"TypeError in XML.prototype.deleteByIndex(): invalid index "+t;var e=this._children;t<e.length&&e[t]&&(e[t]._parent=null,e.splice(t,1))},e.prototype.insert=function(t,e){if(!(this._kind>1)){var n=t;if(e&&e.axClass===this.axClass)for(var i=this;i;)i===e&&this.sec.throwError("TypeError",w_.XMLIllegalCyclicalLoop),i=i._parent;var r=1;if(!e||e.axClass!==this.sec.AXXMLList||0!==(r=e._children.length)){for(var o=this._children,a=o.length-1;a>=n;a--)o[a+r]=o[a],Qa(o[0]);if(e&&e.axClass===this.sec.AXXMLList){r=e._children.length;for(a=0;a<r;a++)e._children[a]._parent=this,o[n+a]=e._children[a]}else e&&e.axClass===this.axClass||(e=this.sec.AXXML.Create(e)),e._parent=this,o||(this._children=o=[]),o[n]=e,Qa(o[0])}}},e.prototype.addInScopeNamespace=function(t){if(3!==this._kind&&4!==this._kind&&5!==this._kind&&2!==this._kind){var e=t.prefix;if(void 0!==e){if(""===e&&""===this._name.uri)return;var n=null;this._inScopeNamespaces.forEach((function(t,i){t.prefix===e&&(n=t)})),null!==n&&n.uri!==t.uri&&this._inScopeNamespaces.forEach((function(e,i){e.prefix===n.prefix&&(this._inScopeNamespaces[i]=t)})),this._name.prefix===e&&(this._name.prefix=void 0),this._attributes.forEach((function(t,n){t._name.prefix===e&&(t._name.prefix=void 0)}))}}},e.prototype.descendantsInto=function(t,e){if(1!==this._kind)return e;var n=e._children.length,i=t.isAnyName();return t.isAttribute()?this._attributes.forEach((function(r,o){(i||r._name.matches(t))&&(e._children[n++]=r,Qa(null!=e._children[0]))})):this._children.forEach((function(r,o){(i||r._name)&&(i||r._name.matches(t))&&(e._children[n++]=r,Qa(null!=e._children[0]))})),this._children.forEach((function(n,i){n.descendantsInto(t,e)})),e},e.instanceConstructor=e,e._flags=DD.ALL,e._prettyIndent=2,e}(B_);function FD(t,e,n,i,r){void 0===e&&(e=3),void 0===n&&(n=""),void 0===i&&(i="");var o=t.AXXML.Create(),a=o_(0,n,r||""),s=new u_(null,0,2===e?13:7,[a],i,null);return o.init(e,s),o}var kD,UD=function(t){function e(e){var n=t.call(this)||this;if(n._children=[],xd(e)&&(e=""),!e)return n;if(e&&e.axClass===n.sec.AXXMLList)for(var i=e._children,r=0;r<i.length;r++){var o=i[r];n._children[r]=o,Qa(n._children[0])}else xD(e,n);return n}return L_(e,t),e.classInitializer=function(){Xg(this,"$Bglength",1);var t=this.dPrototype,n=e.prototype;Xg(t,"$BgvalueOf",Object.prototype.$BgvalueOf),Xg(t,"$BghasOwnProperty",n.native_hasOwnProperty),Xg(t,"$BgpropertyIsEnumerable",n.native_propertyIsEnumerable),l_(t,"$BgtoString",n.toString),l_(t,"$BgaddNamespace",n.addNamespace),l_(t,"$BgappendChild",n.appendChild),l_(t,"$Bgattribute",n.attribute),l_(t,"$Bgattributes",n.attributes),l_(t,"$Bgchild",n.child),l_(t,"$BgchildIndex",n.childIndex),l_(t,"$Bgchildren",n.children),l_(t,"$Bgcomments",n.comments),l_(t,"$Bgcontains",n.contains),l_(t,"$Bgcopy",n.copy),l_(t,"$Bgdescendants",n.descendants),l_(t,"$Bgelements",n.elements),l_(t,"$BghasComplexContent",n.hasComplexContent),l_(t,"$BghasSimpleContent",n.hasSimpleContent),l_(t,"$BginScopeNamespaces",n.inScopeNamespaces),l_(t,"$BginsertChildAfter",n.insertChildAfter),l_(t,"$BginsertChildBefore",n.insertChildBefore),l_(t,"$Bglength",n.length),l_(t,"$BglocalName",n.localName),l_(t,"$Bgname",n.name),l_(t,"$Bgnamespace",n.namespace),l_(t,"$BgnamespaceDeclarations",n.namespaceDeclarations),l_(t,"$BgnodeKind",n.nodeKind),l_(t,"$Bgnormalize",n.normalize),l_(t,"$Bgparent",n.parent),l_(t,"$BgprocessingInstructions",n.processingInstructions),l_(t,"$BgprependChild",n.prependChild),l_(t,"$BgremoveNamespace",n.removeNamespace),l_(t,"$Bgreplace",n.replace),l_(t,"$BgsetChildren",n.setChildren),l_(t,"$BgsetLocalName",n.setLocalName),l_(t,"$BgsetName",n.setName),l_(t,"$BgsetNamespace",n.setNamespace),l_(t,"$Bgtext",n.text),l_(t,"$BgtoXMLString",n.toXMLString),l_(t,"$BgtoJSON",n.toJSON)},e.axApply=function(t,e){var n=e[0];if(xd(n)&&(n=""),n&&n.axClass===this.sec.AXXMLList)return n;var i=this.sec.AXXMLList.Create();return xD(n,i),i},e.addXML=function(t,e){var n;return t.axClass===t.sec.AXXML?(n=t.sec.AXXMLList.Create()).append(t):n=t,n.append(e),n},e.Create=function(t){var e=Object.create(this.sec.AXXMLList.tPrototype);return e.axInitializer(t),e},e.CreateList=function(t,e){var n=this.Create();return n._targetObject=t,n._targetProperty=e,n},e.prototype.valueOf=function(){return this},e.prototype.equals=function(t){var e=this._children;if(void 0===t&&0===e.length)return!0;if(t&&t.axClass===this.sec.AXXMLList){var n=t._children;if(n.length!==e.length)return!1;for(var i=0;i<e.length;i++)if(!e[i].equals(n[i]))return!1;return!0}return 1===e.length&&e[0].equals(t)},e.prototype.toString=function(){if(this.hasComplexContent())return this.toXMLString();for(var t="",e=0;e<this._children.length;e++)t+=pD(this._children[e],this.sec);return t},e.prototype._deepCopy=function(){for(var t=this.sec.AXXMLList.CreateList(this._targetObject,this._targetProperty),e=this._children.length,n=0;n<e;n++)t._children[n]=this._children[n]._deepCopy(),Qa(t._children[0]);return t},e.prototype._shallowCopy=function(){for(var t=this.sec.AXXMLList.CreateList(this._targetObject,this._targetProperty),e=this._children.length,n=0;n<e;n++)t._children[n]=this._children[n],Qa(t._children[0]);return t},e.prototype.native_hasOwnProperty=function(t){if(t=a_(t),this===this.sec.AXXMLList.dPrototype)return B_.prototype.native_hasOwnProperty.call(this,t);if(Cd(t))return(0|t)<this._children.length;for(var e=ID(t,this.sec),n=this._children,i=0;i<n.length;i++){var r=n[i];if(1===r._kind&&r.hasProperty(e))return!0}return!1},e.prototype.native_propertyIsEnumerable=function(t){return Cd(t)&&(0|t)<this._children.length},e.prototype.attribute=function(t){return xd(t)&&arguments.length>0&&this.sec.throwError("TypeError",w_.ConvertUndefinedToObjectError),t&&t.axClass===this.sec.AXQName?this.getProperty(t.name):("*"!==(t=a_(t))&&0!==arguments.length||(t=null),TD.name=t,TD.namespaces=[i_.PUBLIC],TD.kind=13,this.getProperty(TD))},e.prototype.attributes=function(){return TD.name=null,TD.namespaces=[],TD.kind=13,this.getProperty(TD)},e.prototype.child=function(t){if(Cd(t)){var e=this.sec.AXXMLList.CreateList(this._targetObject,this._targetProperty);return(0|t)<this._children.length&&(e._children[0]=this._children[0|t]._deepCopy(),Qa(e._children[0])),e}return this.getProperty(ID(t,this.sec))},e.prototype.children=function(){return this.getProperty(PD)},e.prototype.descendants=function(t){for(var e=ID(t,this.sec),n=this.sec.AXXMLList.CreateList(this._targetObject,this._targetProperty),i=0;i<this._children.length;i++){var r=this._children[i];1===r._kind&&r.descendantsInto(e,n)}return n},e.prototype.comments=function(){var t=this.sec.AXXMLList.CreateList(this._targetObject,this._targetProperty);return this._children.forEach((function(e){if(1===e._kind){var n=e.comments();Array.prototype.push.apply(t._children,n._children)}})),t},e.prototype.contains=function(t){for(var e=this._children,n=0;n<e.length;n++){if(e[n].equals(t))return!0}return!1},e.prototype.copy=function(){return this._deepCopy()},e.prototype.elements=function(t){var e=ID(t,this.sec),n=this.sec.AXXMLList.CreateList(this._targetObject,e);return this._children.forEach((function(t){if(1===t._kind){var i=t.elements(e);Array.prototype.push.apply(n._children,i._children)}})),n},e.prototype.hasComplexContent=function(){switch(this._children.length){case 0:return!1;case 1:return this._children[0].hasComplexContent();default:return this._children.some((function(t){return 1===t._kind}))}},e.prototype.hasSimpleContent=function(){switch(this._children.length){case 0:return!0;case 1:return this._children[0].hasSimpleContent();default:return this._children.every((function(t){return 1!==t._kind}))}},e.prototype.length=function(){return this._children.length},e.prototype.name=function(){return 1!==this._children.length&&this.sec.throwError("TypeError",w_.XMLOnlyWorksWithOneItemLists,"name"),this._children[0].name()},e.prototype.normalize=function(){for(var t=0;t<this._children.length;){var e=this._children[t];if(1===e._kind)e.normalize(),t++;else if(3===e._kind){for(t++;t<this._children.length;){var n=this._children[t];if(3!==n._kind)break;e._value+=n._value,this.removeByIndex(t)}0===e._value.length?this.removeByIndex(t):t++}else t++}return this},e.prototype.parent=function(){var t=this._children;if(0!==t.length){for(var e=t[0]._parent,n=1;n<t.length;n++)if(t[n]._parent!==e)return;return e}},e.prototype.processingInstructions=function(t){var e=ID(t,this.sec),n=this.sec.AXXMLList.CreateList(this._targetObject,this._targetProperty);n._targetObject=this,n._targetProperty=null;for(var i=this._children,r=0;r<i.length;r++)i[r].processingInstructionsInto(e,n);return n},e.prototype.text=function(){var t=this.sec.AXXMLList.CreateList(this._targetObject,this._targetProperty);return this._children.forEach((function(e,n){if(1===e._kind){var i=e.text();i._children.length>0&&t._children.push(i)}})),t},e.prototype.toXMLString=function(){var t=this.sec;return this._children.map((function(e){return bD(t,e)})).join(t.AXXML.prettyPrinting?"\n":"")},e.prototype.toJSON=function(t){return"XMLList"},e.prototype.addNamespace=function(t){1!==this._children.length&&this.sec.throwError("TypeError",w_.XMLOnlyWorksWithOneItemLists,"addNamespace");var e=this._children[0];return e.addNamespace(t),e},e.prototype.appendChild=function(t){1!==this._children.length&&this.sec.throwError("TypeError",w_.XMLOnlyWorksWithOneItemLists,"appendChild");var e=this._children[0];return e.appendChild(t),e},e.prototype.append=function(t){var e=this._children,n=e.length;if(t&&t.axClass===this.sec.AXXMLList){this._targetObject=t._targetObject,this._targetProperty=t._targetProperty;var i=t._children;if(0===i.length)return;for(var r=0;r<i.length;r++)e[n+r]=i[r]}else e[n]=t},e.prototype.childIndex=function(){return 1!==this._children.length&&this.sec.throwError("TypeError",w_.XMLOnlyWorksWithOneItemLists,"childIndex"),this._children[0].childIndex()},e.prototype.inScopeNamespaces=function(){return 1!==this._children.length&&this.sec.throwError("TypeError",w_.XMLOnlyWorksWithOneItemLists,"inScopeNamespaces"),this._children[0].inScopeNamespaces()},e.prototype.insertChildAfter=function(t,e){return 1!==this._children.length&&this.sec.throwError("TypeError",w_.XMLOnlyWorksWithOneItemLists,"insertChildAfter"),this._children[0].insertChildAfter(t,e)},e.prototype.insertChildBefore=function(t,e){return 1!==this._children.length&&this.sec.throwError("TypeError",w_.XMLOnlyWorksWithOneItemLists,"insertChildBefore"),this._children[0].insertChildBefore(t,e)},e.prototype.nodeKind=function(){return 1!==this._children.length&&this.sec.throwError("TypeError",w_.XMLOnlyWorksWithOneItemLists,"nodeKind"),this._children[0].nodeKind()},e.prototype.namespace=function(t){1!==this._children.length&&this.sec.throwError("TypeError",w_.XMLOnlyWorksWithOneItemLists,"namespace");var e=this._children[0];return arguments.length?e.namespace(t):e.namespace()},e.prototype.localName=function(){return 1!==this._children.length&&this.sec.throwError("TypeError",w_.XMLOnlyWorksWithOneItemLists,"localName"),this._children[0].localName()},e.prototype.namespaceDeclarations=function(){return 1!==this._children.length&&this.sec.throwError("TypeError",w_.XMLOnlyWorksWithOneItemLists,"namespaceDeclarations"),this._children[0].namespaceDeclarations()},e.prototype.prependChild=function(t){return 1!==this._children.length&&this.sec.throwError("TypeError",w_.XMLOnlyWorksWithOneItemLists,"prependChild"),this._children[0].prependChild(t)},e.prototype.removeNamespace=function(t){return 1!==this._children.length&&this.sec.throwError("TypeError",w_.XMLOnlyWorksWithOneItemLists,"removeNamespace"),this._children[0].removeNamespace(t)},e.prototype.replace=function(t,e){return 1!==this._children.length&&this.sec.throwError("TypeError",w_.XMLOnlyWorksWithOneItemLists,"replace"),this._children[0].replace(t,e)},e.prototype.setChildren=function(t){return 1!==this._children.length&&this.sec.throwError("TypeError",w_.XMLOnlyWorksWithOneItemLists,"setChildren"),this._children[0].setChildren(t)},e.prototype.setLocalName=function(t){return 1!==this._children.length&&this.sec.throwError("TypeError",w_.XMLOnlyWorksWithOneItemLists,"setLocalName"),this._children[0].setLocalName(t)},e.prototype.setName=function(t){return 1!==this._children.length&&this.sec.throwError("TypeError",w_.XMLOnlyWorksWithOneItemLists,"setName"),this._children[0].setName(t)},e.prototype.setNamespace=function(t){return 1!==this._children.length&&this.sec.throwError("TypeError",w_.XMLOnlyWorksWithOneItemLists,"setNamespace"),this._children[0].setNamespace(t)},e.prototype.axGetEnumerableKeys=function(){return this===this.axClass.dPrototype?t.prototype.axGetEnumerableKeys.call(this):Object.keys(this._children)},e.prototype.getProperty=function(t){var e=t.name;if(Cd(e))return this._children[0|e];for(var n=null===e||"*"===e,i=t.isAnyNamespace(),r=t.isAttribute(),o=this.sec.AXXMLList.CreateList(this._targetObject,t),a=this._children,s=0;s<a.length;s++){var u=a[s];if(1===u._kind)if(r)for(var l=u._attributes,c=0;l&&c<l.length;c++){var h=l[c];!n&&h._name.name!==e||!i&&!h._name.matches(t)||o._children.push(h)}else{var p=u._children;for(c=0;p&&c<p.length;c++){var d=p[c];(n||1===d._kind&&d._name.name===e)&&(i||d._name.matches(t))&&o._children.push(d)}}}return o},e.prototype.axGetProperty=function(t){return this===this.axClass.dPrototype?this[this.axResolveMultiname(t)]:this.getProperty(ED(t,this.sec))},e.prototype.axGetPublicProperty=function(t){return this===this.axClass.dPrototype?this[u_.getPublicMangledName(t)]:Cd(t)?this._children[0|t]:(TD.name=t,TD.namespaces=[i_.PUBLIC],TD.kind=7,this.getProperty(TD))},e.prototype.hasProperty=function(t){return!Cd(t.name)||Number(t.name)<this._children.length},e.prototype.axHasProperty=function(t){return this.hasProperty(t)},e.prototype.axHasPropertyInternal=function(t){return this.hasProperty(t)},e.prototype.resolveValue=function(){return this},e.prototype.setProperty=function(t,e){if(Cd(t.name)){var n=0|t.name,i=null;if(this._targetObject&&null===(i=this._targetObject.resolveValue()))return;var r=this._children.length;if(n>=r){if(i&&i.axClass===this.sec.AXXMLList){if(1!==i._children.length)return;i=i._children[0]}if(i&&1!==i._kind)return;var o=this.sec.AXXML.Create();o._parent=i;var a=this._targetProperty,s=3;if(this._targetProperty&&this._targetProperty.isAttribute()){if(i.hasProperty(this._targetProperty))return;s=2}else this._targetProperty&&null!==this._targetProperty.name?s=1:(a=null,s=3);if(o.init(s,a),n=r,2!==o._kind){if(null!==i){var u=void 0;if(n>0){var l=this._children[n-1],c=i._children.length-1;for(u=0;u<c&&i._children[u]!==l;u++);}else u=i._children.length-1;i._children[u+1]=o,Qa(i._children[0]),o._parent=i}e&&e.axClass===this.sec.AXXML?o._name=e._name:e&&e.axClass===this.sec.AXXMLList&&(o._name=e._targetProperty),this.append(o)}}cD(e,this.sec)&&3!==e._kind&&2!==e._kind||(e+="");var h=this._children[n],p=h._kind,d=h._parent;if(2===p){var f=d._children.indexOf(h);return d.setProperty(h._name,!1),this._children[n]=d._children[f],void Qa(this._children[0])}if(e&&e.axClass===this.sec.AXXMLList){var g=e._shallowCopy(),_=g._children.length;if(null!==d){var m=d._children.indexOf(h);d._replaceByIndex(m,g);for(u=0;u<_;u++)g._children[u]=d._children[m+u]}if(0===_){for(u=n+1;u<r;u++)this._children[u-1]=this._children[u],Qa(this._children[0]);this._children.length--}else for(u=r-1;u>n;u--)this._children[u+_-1]=this._children[u],Qa(this._children[0]);for(u=0;u<_;u++)this._children[n+u]=g._children[u],Qa(this._children[0]);return}if(p>=3||e&&e.axClass===this.sec.AXXML){if(null!==d){m=d._children.indexOf(h);d._replaceByIndex(m,e),e=d._children[m]}if("string"==typeof e){var y=this.sec.AXXML.Create(e);this._children[n]=y,Qa(this._children[0])}else this._children[n]=e,Qa(this._children[0]);return}h.setProperty(PD,e)}else{if(0===this._children.length){if(null===(i=this.resolveValue())||1!==i._children.length)return;this.append(i._children[0])}1!==this._children.length?this.sec.throwError("TypeError",w_.XMLAssigmentOneItemLists):this._children[0].setProperty(t,e)}},e.prototype.axSetProperty=function(t,e,n){this!==this.axClass.dPrototype?this.setProperty(ED(t,this.sec),e):this[this.axResolveMultiname(t)]=e},e.prototype.axDeleteProperty=function(t){var e=t.name;if(Cd(e))return(n=0|e)>=this._children.length||this.removeByIndex(n),!0;for(var n=0;n<this._children.length;n++){var i=this._children[n];1===i._kind&&i.deleteProperty(t)}return!0},e.prototype.removeByIndex=function(t){var e=this._children[t],n=e._parent;n&&(e._parent=null,n._children.splice(n._children.indexOf(e),1)),this._children.splice(t,1)},e.prototype.axCallProperty=function(t,e){var n=this[this.axResolveMultiname(t)];return n?(O_(this.sec,n,e.length),n.axApply(this,e)):1===this._children.length?this._children[0].axCallProperty(t,e):void this.sec.throwError("TypeError",w_.CallOfNonFunctionError,"value")},e.instanceConstructor=e,e}(B_);!function(t){t[t.APOS=39]="APOS",t[t.AMP=38]="AMP",t[t.QUOT=34]="QUOT",t[t.LT=60]="LT",t[t.GT=62]="GT"}(kD||(kD={}));var jD=function(t){function e(e,n){return t.call(this)||this}return L_(e,t),e.escapeXML=function(t){for(var e,n=(t=a_(t)).length,i=0;i<n&&(e=t.charCodeAt(i))!==kD.APOS&&e!==kD.AMP&&e!==kD.QUOT&&e!==kD.LT&&e!==kD.GT;)i++;if(i>=n)return t;for(var r=[t.substring(0,i)];i<n;){switch(e){case kD.APOS:r.push("'");break;case kD.AMP:r.push("&");break;case kD.QUOT:r.push(""");break;case kD.LT:r.push("<");break;case kD.GT:r.push(">")}for(var o=++i;i<n&&(e=t.charCodeAt(i))!==kD.APOS&&e!==kD.AMP&&e!==kD.QUOT&&e!==kD.LT&&e!==kD.GT;)i++;o<i&&r.push(t.substring(o,i))}return r.join("")},e}(B_),VD=function(t){function e(e){return t.call(this,1,"")||this}return L_(e,t),e}(jD),QD=function(t){function e(){var e=t.call(this)||this;return e._type=0,e._value=null,e._empty=!1,e._attrs=null,e}return L_(e,t),Object.defineProperty(e.prototype,"type",{get:function(){return this._type},set:function(t){t>>>=0,this._type=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"empty",{get:function(){return this._empty},set:function(t){t=!!t,this._empty=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(t){t=a_(t),this._value=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"attrs",{get:function(){return this._attrs},set:function(t){this._attrs=t},enumerable:!1,configurable:!0}),e}(B_),GD=function(t){function e(){return t.call(this)||this}return L_(e,t),e}(B_);var zD=function(t){function e(e){var n=t.call(this)||this;return n.sec=e,n.queue=[],n.ignoreWhitespace=!1,n}return L_(e,t),e.prototype.onError=function(t){this.queue.push(t)},e.prototype.onPi=function(t,e){},e.prototype.onComment=function(t){},e.prototype.onCdata=function(t){this.queue.push({type:4,value:t})},e.prototype.onDoctype=function(t){},e.prototype.onBeginElement=function(t,e,n){var i=this.sec.createObject();e.forEach((function(t){i.axSetPublicProperty(t.name,t.value)})),this.queue.push({type:1,value:t,empty:n,attrs:i})},e.prototype.onEndElement=function(t){this.queue.push({type:1,value:"/"+t})},e.prototype.onText=function(t){this.ignoreWhitespace&&function(t){for(var e=0;e<t.length;e++){var n=t[e];if(" "!==n&&"\n"!==n&&"\r"!==n&&"\t"!==n)return!1}return!0}(t)||this.queue.push({type:3,value:t})},e}(OD),HD=function(t){function e(){return t.call(this)||this}return L_(e,t),e.prototype.startParse=function(t,e){t=a_(t),e=!!e;var n=new zD(this.sec);n.ignoreWhitespace=e,n.parseXml(t),this.queue=n.queue},e.prototype.getNext=function(t){if(0===this.queue.length)return-1;var e=this.queue.shift();if("number"==typeof e)return e;var n=e;return t.type=n.type,t.value=n.value,t.empty=n.empty||!1,t.attrs=n.attrs||null,0},e}(B_),XD=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return L_(e,t),e.exists=function(){},e.read=function(){},e.write=function(){},e.readByteArray=function(){},e.writeByteArray=function(){},e}(B_);function YD(t,e,n,i){void 0===n&&(n=t),void 0===i&&(i=0),uD[t]=e,lD.push({name:t,alias:n,nsType:i})}function qD(t,e){OS[t]=e}function KD(t){return"string"==typeof t}function WD(t,e){var n=Object.create(e.tPrototype);return n._symbol||(n._symbol=t),n.applySmybol&&n.applySymbol(),n[f_]=!0,n}YD("__AS3__.vec.Vector$object",wm,"ObjectVector",2),YD("__AS3__.vec.Vector$int",Sm,"Int32Vector",2),YD("__AS3__.vec.Vector$uint",Dm,"Uint32Vector",2),YD("__AS3__.vec.Vector$double",Tm,"Float64Vector",2),qD("FlashUtilScript::getDefinitionByName",(function(t,e){var n=String(e).replace("::",".");return DS().env.app.getClass(u_.FromFQNString(n,0))})),qD("FlashUtilScript::getTimer",(function(t){return Date.now()-jg.runtimeStartTime})),qD("FlashUtilScript::navigateToURL",TS),qD("FlashNetScript::navigateToURL",TS),qD("FlashNetScript::sendToURL",(function(t,e){Ya(e)&&t.throwError("TypeError",w_.NullPointerError,"request"),t.flash.net.URLRequest.axClass.axIsType(e)||t.throwError("TypeError",w_.CheckTypeFailedError,e,"flash.net.URLRequest"),console.log("TODO: FlashNetScript_sendToURL: FileLoadingService")})),qD("FlashUtilScript::escapeMultiByte",PS(Wp.escape)),qD("FlashUtilScript::unescapeMultiByte",PS(Wp.unescape)),qD("Toplevel::registerClassAlias",(function(t,e,n){(e=a_(e))||t.throwError("TypeError",w_.NullPointerError,"aliasName"),n||t.throwError("TypeError",w_.NullPointerError,"classObject"),t.classAliases.registerClassAlias(e,n)})),qD("Toplevel::getClassByAlias",(function(t,e){(e=a_(e))||t.throwError("TypeError",w_.NullPointerError,"aliasName");var n=t.classAliases.getClassByAlias(e);return n||t.throwError("ReferenceError",w_.ClassNotFoundError,e),n}));var JD=function(){function t(e,n,i){void 0===i&&(i=!1),t.ID++,this[f_]=!0,this.init(e,n,i)}return t.prototype.toString=function(){return this.parent+" => "+this.object+" "+this.isWith},t.prototype.init=function(t,e,n){void 0===n&&(n=!1),this.parent=t,this.object=e,this.global=t?t.global:this,this.isWith=n,this.cache=[],this.defaultNamespace=null,e.__scope__=this},Object.defineProperty(t.prototype,"superConstructor",{get:function(){var t=this.object.superClass;if(!t)return null;var e=t[f_]?t.tPrototype.axInitializer:t;return Object.defineProperty(this,"superConstructor",{value:e}),e},enumerable:!1,configurable:!0}),t.prototype.extend=function(e){if(e===this.object)return this;var n=e.__scope__;return n&&n.parent==this?n:new t(this,e,!1)},t.prototype.findDepth=function(t){for(var e=this,n=0;e;){if(e.object===t)return n;n++,e=e.parent}return-1},t.prototype.getScopeObjects=function(){for(var t=[],e=this;e;)t.unshift(e.object),e=e.parent;return t},t.prototype.getScopeProperty=function(t,e,n){return this.findScopeProperty(t,e,n).axGetProperty(t)},t.prototype.findScopeProperty=function(t,e,n){if(t.mutable||n)return this._findScopeProperty(t,e,n);if(t.scope===this.object&&!this.isWith)return t.value;var i=this._findScopeProperty(t,e,n);return this.isWith||(t.value=i,t.scope=this.object),i},t.prototype._findScopeProperty=function(t,e,n){null===t.name&&this.global.object.sec.throwError("ReferenceError",w_.UndefinedVarError,"*");var i=this.cache[t.id];if(i)return i;if(this.object&&this.object[f_]&&(this.isWith?this.object.axHasPropertyInternal(t):this.object.traits.getTrait(t.namespaces,t.name)))return this.isWith||t.isRuntime()?this.object:this.cache[t.id]=this.object;if(this.parent)return i=this.parent.findScopeProperty(t,e,n),7===t.kind&&(this.cache[t.id]=i),i;if(n)return null;t.isAttribute()&&this.object.sec.throwError("ReferenceError",w_.UndefinedVarError,t.name);var r=this.global.object;return(i=r.applicationDomain.findProperty(t,e,!0))?i:(e&&(t.getPublicMangledName()in r||this.global.object.sec.throwError("ReferenceError",w_.UndefinedVarError,t.name)),r)},t.ID=0,t}();function $D(t){var e=t.axClass;if(!e||e===e.sec.AXObject)return null;var n=e.dPrototype;return n===t&&(n=e.superClass.dPrototype),n}var ZD=function(){function t(t,e){this.object=t,this.index=e}return t.prototype.next=function(t,e){if(xd(t))return this.index=0,void(this.object=null);this.object=t,this.index=e;var n=t.axNextNameIndex(this.index);if(n>0)this.index=n;else{for(;!(n>0);){if(!(t=$D(t)))return this.index=0,void(this.object=null);n=t.axNextNameIndex(0)}this.index=n,this.object=t}},t}();function tT(t,e,n){return cD(t,n)?t.equals(e):cD(e,n)?e.equals(t):t==e}function eT(t,e){return e.AXXML.dPrototype.isPrototypeOf(t)||e.AXXMLList.dPrototype.isPrototypeOf(t)}function nT(t,e,n){return eT(t,n)||n.throwError("TypeError",w_.DescendentsError,t),t.descendants(e)}function iT(t,e){if(!e||!hD(t,e)){var n=e&&e.axClass?e.axClass.name.toFQNString(!1):"[unknown]";t.throwError("TypeError",w_.FilterError,n)}return e}function rT(t){return"string"==typeof t?t:t+""}function oT(t,e,n){return"string"==typeof t||"string"==typeof e?String(t)+String(e):hD(n,t)&&hD(n,e)?UD.addXML(t,e):t+e}function aT(t,e){if(t){if(t.value)return typeof t.value;if(eT(t,e))return"xml"}return typeof t}function sT(t){return"Bytecode: "+t}var uT=new Uint32Array(256),lT=new Array(256);function cT(t,e,n){void 0===n&&(n=0),uT[t]=n,lT[t]=e}cT(1,""),cT(2,""),cT(3,""),cT(4,"e"),cT(5,"e"),cT(6,"e"),cT(7,""),cT(8,"e"),cT(9,""),cT(10,""),cT(11,""),cT(12,"d"),cT(13,"d"),cT(14,"d"),cT(15,"d"),cT(16,"d"),cT(17,"d"),cT(18,"d"),cT(19,"d"),cT(20,"d"),cT(21,"d"),cT(22,"d"),cT(23,"d"),cT(24,"d"),cT(25,"d"),cT(26,"d"),cT(27,""),cT(28,""),cT(29,""),cT(30,""),cT(31,""),cT(32,""),cT(33,""),cT(35,""),cT(36,"b"),cT(37,"c"),cT(38,""),cT(39,""),cT(40,""),cT(41,""),cT(42,""),cT(43,""),cT(44,"e"),cT(45,"e"),cT(46,"e"),cT(47,"e"),cT(48,""),cT(49,"e"),cT(50,"ee"),cT(53,""),cT(54,""),cT(55,""),cT(56,""),cT(57,""),cT(58,""),cT(59,""),cT(60,""),cT(61,""),cT(62,""),cT(64,"e"),cT(65,"e"),cT(66,"e"),cT(67,"ee"),cT(68,"ee"),cT(69,"ee"),cT(70,"ee"),cT(71,""),cT(72,""),cT(73,"e"),cT(74,"ee"),cT(75,""),cT(76,"ee"),cT(77,""),cT(78,"ee"),cT(79,"ee"),cT(80,""),cT(81,""),cT(82,""),cT(83,"e"),cT(84,""),cT(85,"e"),cT(86,"e"),cT(87,""),cT(88,"e"),cT(89,"e"),cT(90,"e"),cT(93,"e"),cT(94,"e"),cT(95,""),cT(96,"e"),cT(97,"e"),cT(98,"e"),cT(99,"e"),cT(100,""),cT(101,"e"),cT(102,"e"),cT(103,""),cT(104,"e"),cT(106,"e"),cT(108,"e"),cT(109,"e"),cT(110,"e"),cT(111,"e"),cT(112,""),cT(113,""),cT(114,""),cT(115,""),cT(116,""),cT(117,""),cT(118,""),cT(119,""),cT(120,""),cT(121,""),cT(122,""),cT(123,""),cT(128,"e"),cT(129,""),cT(130,""),cT(131,""),cT(132,""),cT(133,""),cT(134,"e"),cT(135,""),cT(136,""),cT(137,""),cT(144,""),cT(145,""),cT(146,"e"),cT(147,""),cT(148,"e"),cT(149,""),cT(150,""),cT(151,""),cT(160,""),cT(161,""),cT(162,""),cT(163,""),cT(164,""),cT(165,""),cT(166,""),cT(167,""),cT(168,""),cT(169,""),cT(170,""),cT(171,""),cT(172,""),cT(173,""),cT(174,""),cT(175,""),cT(176,""),cT(177,""),cT(178,"e"),cT(179,""),cT(180,""),cT(192,""),cT(193,""),cT(194,"e"),cT(195,"e"),cT(196,""),cT(197,""),cT(198,""),cT(199,""),cT(208,""),cT(209,""),cT(210,""),cT(211,""),cT(212,""),cT(213,""),cT(214,""),cT(215,""),cT(237,""),cT(239,"aeae"),cT(240,"e"),cT(241,"e"),cT(242,"e"),cT(243,"");var hT=function(){function t(){}return t.u8=function(t,e){return t[e]},t.s32=function(t,e){var n=t[e];return 128&n&&16384&(n=127&n|t[e+1]<<7)&&2097152&(n=16383&n|t[e+2]<<14)&&268435456&(n=2097151&n|t[e+3]<<21)&&(n=268435455&n|t[e+4]<<28,n&=4294967295),n},t.u32=function(e,n){return t.s32(e,n)>>>0},t.u30=function(e,n){return t.u32(e,n)},t.s32Length=function(t,e){var n=t[e];return 128&n?16384&(n=127&n|t[e+1]<<7)?2097152&(n=16383&n|t[e+2]<<14)?268435456&(n=2097151&n|t[e+3]<<21)?5:4:3:2:1},t}();var pT,dT=function(){function t(t){this._code=t,this.setBCI(0)}return t.prototype.next=function(){this.setBCI(this._nextBCI)},t.prototype.endBCI=function(){return this._code.length},Object.defineProperty(t.prototype,"nextBCI",{get:function(){return this._nextBCI},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentBCI",{get:function(){return this._currentBCI},enumerable:!1,configurable:!0}),t.prototype.currentBytecode=function(){return this._bytecode},t.prototype.nextBC=function(){return hT.u8(this._code,this._nextBCI)},t.prototype.setBCI=function(t){if(this._currentBCI=t,this._currentBCI<this._code.length){this._bytecode=hT.u8(this._code,t);var e=function(t,e){var n=1,i=t[e];if(27===i){n+=3;var r=hT.u30(t,e+n)+1;return(n+=hT.s32Length(t,e+n))+3*r}var o=lT[i];if(""===o)return n;Qa(o,"OP: "+sT(i));for(var a=0;a<o.length;a++)switch(o[a].charCodeAt(0)-97){case 0:case 1:n+=1;continue;case 3:n+=3;continue;case 2:case 4:case 5:n+=hT.s32Length(t,e+n);continue}return n}(this._code,t);this._nextBCI=t+e}else this._bytecode=255,this._nextBCI=this._currentBCI},t}();!function(t){t[t.BKPT=1]="BKPT",t[t.NOP=2]="NOP",t[t.THROW=3]="THROW",t[t.GETSUPER=4]="GETSUPER",t[t.GETSUPER_DYN=260]="GETSUPER_DYN",t[t.SETSUPER=5]="SETSUPER",t[t.SETSUPER_DYN=261]="SETSUPER_DYN",t[t.DXNS=6]="DXNS",t[t.DXNSLATE=7]="DXNSLATE",t[t.KILL=8]="KILL",t[t.LABEL=9]="LABEL",t[t.LF32X4=10]="LF32X4",t[t.SF32X4=11]="SF32X4",t[t.IFNLT=12]="IFNLT",t[t.IFNLE=13]="IFNLE",t[t.IFNGT=14]="IFNGT",t[t.IFNGE=15]="IFNGE",t[t.JUMP=16]="JUMP",t[t.IFTRUE=17]="IFTRUE",t[t.IFFALSE=18]="IFFALSE",t[t.IFEQ=19]="IFEQ",t[t.IFNE=20]="IFNE",t[t.IFLT=21]="IFLT",t[t.IFLE=22]="IFLE",t[t.IFGT=23]="IFGT",t[t.IFGE=24]="IFGE",t[t.IFSTRICTEQ=25]="IFSTRICTEQ",t[t.IFSTRICTNE=26]="IFSTRICTNE",t[t.LOOKUPSWITCH=27]="LOOKUPSWITCH",t[t.PUSHWITH=28]="PUSHWITH",t[t.POPSCOPE=29]="POPSCOPE",t[t.NEXTNAME=30]="NEXTNAME",t[t.HASNEXT=31]="HASNEXT",t[t.PUSHNULL=32]="PUSHNULL",t[t.PUSHUNDEFINED=33]="PUSHUNDEFINED",t[t.PUSHFLOAT=34]="PUSHFLOAT",t[t.NEXTVALUE=35]="NEXTVALUE",t[t.PUSHBYTE=36]="PUSHBYTE",t[t.PUSHSHORT=37]="PUSHSHORT",t[t.PUSHTRUE=38]="PUSHTRUE",t[t.PUSHFALSE=39]="PUSHFALSE",t[t.PUSHNAN=40]="PUSHNAN",t[t.POP=41]="POP",t[t.DUP=42]="DUP",t[t.SWAP=43]="SWAP",t[t.PUSHSTRING=44]="PUSHSTRING",t[t.PUSHINT=45]="PUSHINT",t[t.PUSHUINT=46]="PUSHUINT",t[t.PUSHDOUBLE=47]="PUSHDOUBLE",t[t.PUSHSCOPE=48]="PUSHSCOPE",t[t.PUSHNAMESPACE=49]="PUSHNAMESPACE",t[t.HASNEXT2=50]="HASNEXT2",t[t.LI8=53]="LI8",t[t.LI16=54]="LI16",t[t.LI32=55]="LI32",t[t.LF32=56]="LF32",t[t.LF64=57]="LF64",t[t.SI8=58]="SI8",t[t.SI16=59]="SI16",t[t.SI32=60]="SI32",t[t.SF32=61]="SF32",t[t.SF64=62]="SF64",t[t.NEWFUNCTION=64]="NEWFUNCTION",t[t.CALL=65]="CALL",t[t.CONSTRUCT=66]="CONSTRUCT",t[t.CALLMETHOD=67]="CALLMETHOD",t[t.CALLSTATIC=68]="CALLSTATIC",t[t.CALLSUPER=69]="CALLSUPER",t[t.CALLSUPER_DYN=325]="CALLSUPER_DYN",t[t.CALLPROPERTY=70]="CALLPROPERTY",t[t.CALLPROPERTY_DYN=326]="CALLPROPERTY_DYN",t[t.RETURNVOID=71]="RETURNVOID",t[t.RETURNVALUE=72]="RETURNVALUE",t[t.CONSTRUCTSUPER=73]="CONSTRUCTSUPER",t[t.CONSTRUCTSUPER_DYN=329]="CONSTRUCTSUPER_DYN",t[t.CONSTRUCTPROP=74]="CONSTRUCTPROP",t[t.CONSTRUCTPROP_DYN=330]="CONSTRUCTPROP_DYN",t[t.CALLSUPERID=75]="CALLSUPERID",t[t.CALLPROPLEX=76]="CALLPROPLEX",t[t.CALLPROPLEX_DYN=332]="CALLPROPLEX_DYN",t[t.CALLINTERFACE=77]="CALLINTERFACE",t[t.CALLSUPERVOID=78]="CALLSUPERVOID",t[t.CALLSUPERVOID_DYN=334]="CALLSUPERVOID_DYN",t[t.CALLPROPVOID=79]="CALLPROPVOID",t[t.SXI1=80]="SXI1",t[t.SXI8=81]="SXI8",t[t.SXI16=82]="SXI16",t[t.APPLYTYPE=83]="APPLYTYPE",t[t.PUSHFLOAT4=84]="PUSHFLOAT4",t[t.NEWOBJECT=85]="NEWOBJECT",t[t.NEWARRAY=86]="NEWARRAY",t[t.NEWACTIVATION=87]="NEWACTIVATION",t[t.NEWCLASS=88]="NEWCLASS",t[t.GETDESCENDANTS=89]="GETDESCENDANTS",t[t.NEWCATCH=90]="NEWCATCH",t[t.FINDPROPSTRICT=93]="FINDPROPSTRICT",t[t.FINDPROPSTRICT_DYN=349]="FINDPROPSTRICT_DYN",t[t.FINDPROPERTY=94]="FINDPROPERTY",t[t.FINDPROPERTY_DYN=350]="FINDPROPERTY_DYN",t[t.FINDDEF=95]="FINDDEF",t[t.GETLEX=96]="GETLEX",t[t.GETLEX_DYN=352]="GETLEX_DYN",t[t.SETPROPERTY=97]="SETPROPERTY",t[t.SETPROPERTY_DYN=353]="SETPROPERTY_DYN",t[t.GETLOCAL=98]="GETLOCAL",t[t.SETLOCAL=99]="SETLOCAL",t[t.GETGLOBALSCOPE=100]="GETGLOBALSCOPE",t[t.GETSCOPEOBJECT=101]="GETSCOPEOBJECT",t[t.GETPROPERTY=102]="GETPROPERTY",t[t.GETPROPERTY_DYN=358]="GETPROPERTY_DYN",t[t.GETOUTERSCOPE=103]="GETOUTERSCOPE",t[t.INITPROPERTY=104]="INITPROPERTY",t[t.UNUSED_69=105]="UNUSED_69",t[t.DELETEPROPERTY=106]="DELETEPROPERTY",t[t.DELETEPROPERTY_DYN=362]="DELETEPROPERTY_DYN",t[t.UNUSED_6B=107]="UNUSED_6B",t[t.GETSLOT=108]="GETSLOT",t[t.SETSLOT=109]="SETSLOT",t[t.GETGLOBALSLOT=110]="GETGLOBALSLOT",t[t.SETGLOBALSLOT=111]="SETGLOBALSLOT",t[t.CONVERT_S=112]="CONVERT_S",t[t.ESC_XELEM=113]="ESC_XELEM",t[t.ESC_XATTR=114]="ESC_XATTR",t[t.CONVERT_I=115]="CONVERT_I",t[t.CONVERT_U=116]="CONVERT_U",t[t.CONVERT_D=117]="CONVERT_D",t[t.CONVERT_B=118]="CONVERT_B",t[t.CONVERT_O=119]="CONVERT_O",t[t.CHECKFILTER=120]="CHECKFILTER",t[t.CONVERT_F=121]="CONVERT_F",t[t.UNPLUS=122]="UNPLUS",t[t.CONVERT_F4=123]="CONVERT_F4",t[t.BC_7C=124]="BC_7C",t[t.BC_7D=125]="BC_7D",t[t.BC_7E=126]="BC_7E",t[t.BC_7F=127]="BC_7F",t[t.COERCE=128]="COERCE",t[t.COERCE_DYN=384]="COERCE_DYN",t[t.COERCE_B=129]="COERCE_B",t[t.COERCE_A=130]="COERCE_A",t[t.COERCE_I=131]="COERCE_I",t[t.COERCE_D=132]="COERCE_D",t[t.COERCE_S=133]="COERCE_S",t[t.ASTYPE=134]="ASTYPE",t[t.ASTYPELATE=135]="ASTYPELATE",t[t.COERCE_U=136]="COERCE_U",t[t.COERCE_O=137]="COERCE_O",t[t.NEGATE=144]="NEGATE",t[t.INCREMENT=145]="INCREMENT",t[t.INCLOCAL=146]="INCLOCAL",t[t.DECREMENT=147]="DECREMENT",t[t.DECLOCAL=148]="DECLOCAL",t[t.TYPEOF=149]="TYPEOF",t[t.NOT=150]="NOT",t[t.BITNOT=151]="BITNOT",t[t.UNUSED_98=152]="UNUSED_98",t[t.UNUSED_99=153]="UNUSED_99",t[t.UNUSED_9A=154]="UNUSED_9A",t[t.UNUSED_9B=155]="UNUSED_9B",t[t.UNUSED_9C=156]="UNUSED_9C",t[t.UNUSED_9D=157]="UNUSED_9D",t[t.UNUSED_9E=158]="UNUSED_9E",t[t.UNUSED_9F=159]="UNUSED_9F",t[t.ADD=160]="ADD",t[t.SUBTRACT=161]="SUBTRACT",t[t.MULTIPLY=162]="MULTIPLY",t[t.DIVIDE=163]="DIVIDE",t[t.MODULO=164]="MODULO",t[t.LSHIFT=165]="LSHIFT",t[t.RSHIFT=166]="RSHIFT",t[t.URSHIFT=167]="URSHIFT",t[t.BITAND=168]="BITAND",t[t.BITOR=169]="BITOR",t[t.BITXOR=170]="BITXOR",t[t.EQUALS=171]="EQUALS",t[t.STRICTEQUALS=172]="STRICTEQUALS",t[t.LESSTHAN=173]="LESSTHAN",t[t.LESSEQUALS=174]="LESSEQUALS",t[t.GREATERTHAN=175]="GREATERTHAN",t[t.GREATEREQUALS=176]="GREATEREQUALS",t[t.INSTANCEOF=177]="INSTANCEOF",t[t.ISTYPE=178]="ISTYPE",t[t.ISTYPELATE=179]="ISTYPELATE",t[t.IN=180]="IN",t[t.UNUSED_B5=181]="UNUSED_B5",t[t.UNUSED_B6=182]="UNUSED_B6",t[t.UNUSED_B7=183]="UNUSED_B7",t[t.UNUSED_B8=184]="UNUSED_B8",t[t.UNUSED_B9=185]="UNUSED_B9",t[t.UNUSED_BA=186]="UNUSED_BA",t[t.UNUSED_BB=187]="UNUSED_BB",t[t.UNUSED_BC=188]="UNUSED_BC",t[t.UNUSED_BD=189]="UNUSED_BD",t[t.UNUSED_BE=190]="UNUSED_BE",t[t.UNUSED_BF=191]="UNUSED_BF",t[t.INCREMENT_I=192]="INCREMENT_I",t[t.DECREMENT_I=193]="DECREMENT_I",t[t.INCLOCAL_I=194]="INCLOCAL_I",t[t.DECLOCAL_I=195]="DECLOCAL_I",t[t.NEGATE_I=196]="NEGATE_I",t[t.ADD_I=197]="ADD_I",t[t.SUBTRACT_I=198]="SUBTRACT_I",t[t.MULTIPLY_I=199]="MULTIPLY_I",t[t.UNUSED_C8=200]="UNUSED_C8",t[t.UNUSED_C9=201]="UNUSED_C9",t[t.UNUSED_CA=202]="UNUSED_CA",t[t.UNUSED_CB=203]="UNUSED_CB",t[t.UNUSED_CC=204]="UNUSED_CC",t[t.UNUSED_CD=205]="UNUSED_CD",t[t.UNUSED_CE=206]="UNUSED_CE",t[t.UNUSED_CF=207]="UNUSED_CF",t[t.GETLOCAL0=208]="GETLOCAL0",t[t.GETLOCAL1=209]="GETLOCAL1",t[t.GETLOCAL2=210]="GETLOCAL2",t[t.GETLOCAL3=211]="GETLOCAL3",t[t.SETLOCAL0=212]="SETLOCAL0",t[t.SETLOCAL1=213]="SETLOCAL1",t[t.SETLOCAL2=214]="SETLOCAL2",t[t.SETLOCAL3=215]="SETLOCAL3",t[t.UNUSED_D8=216]="UNUSED_D8",t[t.UNUSED_D9=217]="UNUSED_D9",t[t.UNUSED_DA=218]="UNUSED_DA",t[t.UNUSED_DB=219]="UNUSED_DB",t[t.UNUSED_DC=220]="UNUSED_DC",t[t.UNUSED_DD=221]="UNUSED_DD",t[t.UNUSED_DE=222]="UNUSED_DE",t[t.UNUSED_DF=223]="UNUSED_DF",t[t.UNUSED_E0=224]="UNUSED_E0",t[t.UNUSED_E1=225]="UNUSED_E1",t[t.UNUSED_E2=226]="UNUSED_E2",t[t.UNUSED_E3=227]="UNUSED_E3",t[t.UNUSED_E4=228]="UNUSED_E4",t[t.UNUSED_E5=229]="UNUSED_E5",t[t.UNUSED_E6=230]="UNUSED_E6",t[t.UNUSED_E7=231]="UNUSED_E7",t[t.UNUSED_E8=232]="UNUSED_E8",t[t.UNUSED_E9=233]="UNUSED_E9",t[t.UNUSED_EA=234]="UNUSED_EA",t[t.UNUSED_EB=235]="UNUSED_EB",t[t.UNUSED_EC=236]="UNUSED_EC",t[t.UNUSED_ED=237]="UNUSED_ED",t[t.UNUSED_EE=238]="UNUSED_EE",t[t.INVALID=237]="INVALID",t[t.DEBUG=239]="DEBUG",t[t.DEBUGLINE=240]="DEBUGLINE",t[t.DEBUGFILE=241]="DEBUGFILE",t[t.BKPTLINE=242]="BKPTLINE",t[t.TIMESTAMP=243]="TIMESTAMP",t[t.RESTARGC=244]="RESTARGC",t[t.RESTARG=245]="RESTARG",t[t.UNUSED_F6=246]="UNUSED_F6",t[t.UNUSED_F7=247]="UNUSED_F7",t[t.UNUSED_F8=248]="UNUSED_F8",t[t.UNUSED_F9=249]="UNUSED_F9",t[t.UNUSED_FA=250]="UNUSED_FA",t[t.UNUSED_FB=251]="UNUSED_FB",t[t.UNUSED_FC=252]="UNUSED_FC",t[t.UNUSED_FD=253]="UNUSED_FD",t[t.UNUSED_FE=254]="UNUSED_FE",t[t.END=255]="END"}(pT||(pT={}));var fT=31,gT=function(){function t(t,e,n,i,r,o,a){void 0===n&&(n=null),void 0===i&&(i=0),void 0===r&&(r=0),void 0===o&&(o=!1),void 0===a&&(a=[]),this.position=t,this.name=e,this.params=n,this.delta=i,this.deltaScope=r,this.terminal=o,this.refs=a,this.stack=-1024,this.scope=-1024,this.catchStart=!1,this.catchEnd=!1,this.returnTypeId=-1,this.childs=[],this.comment=null}return t.prototype.toString=function(){return"Instruction(".concat(this.position,", ").concat(pT[this.name]," (").concat(this.name,"), [").concat(this.params,"], ").concat(this.stack," -> ").concat(this.stack+this.delta,", ").concat(this.scope," -> ").concat(this.scope+this.deltaScope,", ").concat(this.terminal,", [").concat(this.refs,"])")},t}();function _T(t,e,n){for(var i=e,r=n.length,o=e,a=0;a<r;a++)if(n[a].position>=t){if(n[a].stack>=0)return o;n[a].stack=i,(i+=n[a].delta)<o&&(o=i);for(var s=0;s<n[a].refs.length;s++){var u=_T(n[a].refs[s],i,n);u<o&&(o=u)}if(n[a].terminal)return o}return o}function mT(t,e,n){for(var i=e,r=n.length,o=0;o<r;o++)if(n[o].position>=t){if(n[o].scope>=0)return;n[o].scope=i,i+=n[o].deltaScope;for(var a=0;a<n[o].refs.length;a++)mT(n[o].refs[a],i,n);if(n[o].terminal)return}}function yT(t){var e=t.code,n=t.index,i=e[n++];return 128&i&&16384&(i=127&i|e[n++]<<7)&&2097152&(i=16383&i|e[n++]<<14)&&268435456&(i=2097151&i|e[n++]<<21)&&(i=268435455&i|e[n++]<<28,i&=4294967295),t.index=n,i>>>0}function AT(t){var e=yT(t),n=t.abc.getMultiname(e),i=t.currentMn;return i[0]=e,n.isRuntimeName()||n.isRuntimeNamespace()?(i[1]=256,i[2]=n.isRuntimeName()&&n.isRuntimeNamespace()?-2:-1,i):(i[1]=0,i[2]=0,i)}function vT(t){var e=t.code,n=t.index,i=e[n++]|e[n++]<<8|e[n++]<<16;return i=i<<8>>8,t.index=n,i}function bT(t){return t.code[t.index++]<<24>>24}function CT(t){for(var e=t.abc,n=t.getBody(),i=n.code,r=[],o={index:0,abc:e,code:i,currentMn:[0,0,0]},a=0,s=0,u=!1;o.index<i.length;){var l=o.index,c=i[o.index++],h=s_.OPTIMISE_ON_IR?r[r.length-1]:null,p=void 0;switch(c){case pT.LABEL:p=new gT(l,c);break;case pT.DXNSLATE:p=new gT(l,c,0,-1);break;case pT.DEBUGFILE:case pT.DEBUGLINE:p=new gT(l,c,yT(o));break;case pT.DEBUG:p=new gT(l,c,[bT(o),yT(o),bT(o),yT(o)]);break;case pT.THROW:p=new gT(l,c,null,-1,0,!0);break;case pT.PUSHSCOPE:(p=new gT(l,c,null,-1,1)).returnTypeId=s=++a;break;case pT.PUSHWITH:p=new gT(l,c,null,-1,1);break;case pT.POPSCOPE:p=new gT(l,c,null,0,-1);break;case pT.GETSCOPEOBJECT:(p=new gT(l,c,bT(o),1,0)).returnTypeId=s=++a,u=!0;break;case pT.GETGLOBALSCOPE:(p=new gT(l,c,null,1)).returnTypeId=s=++a,u=!0;break;case pT.GETSLOT:(p=new gT(l,c,yT(o),0)).returnTypeId=s=++a;break;case pT.SETSLOT:p=new gT(l,c,yT(o),-2);break;case pT.NEXTNAME:case pT.NEXTVALUE:(p=new gT(l,c,null,-1)).returnTypeId=s=++a;break;case pT.HASNEXT:(p=new gT(l,c,null,-1)).returnTypeId=s=-2;break;case pT.HASNEXT2:(p=new gT(l,c,[yT(o),yT(o)],1)).returnTypeId=s=-2;break;case pT.IN:(p=new gT(l,c,null,-1)).returnTypeId=s=-2;break;case pT.DUP:if((p=new gT(l,c,null,1)).returnTypeId=s=a,h)switch(h.name){case pT.PUSHTRUE:case pT.PUSHFALSE:case pT.PUSHNAN:case pT.PUSHINT:case pT.PUSHDOUBLE:case pT.PUSHBYTE:case pT.PUSHFLOAT:case pT.PUSHSTRING:case pT.PUSHNULL:p.name=h.name,p.params=h.params,p.comment="IR: DUP changed to PUSH*, reason: prevent optimisation"}break;case pT.POP:(p=new gT(l,c,null,-1)).returnTypeId=s=a,h&&h.name===pT.CALLPROPERTY&&(h.name=pT.CALLPROPVOID,h.comment='IR: Optimised from "CALLPROPERTY", reason: POP STACK');break;case pT.SWAP:p=new gT(l,c,null,0);break;case pT.PUSHTRUE:case pT.PUSHFALSE:(p=new gT(l,c,null,1)).returnTypeId=s=-2;break;case pT.PUSHBYTE:(p=new gT(l,c,bT(o),1)).returnTypeId=s=-3;break;case pT.PUSHSHORT:(p=new gT(l,c,yT(o)<<16>>16,1)).returnTypeId=s=-3;break;case pT.PUSHINT:case pT.PUSHUINT:case pT.PUSHDOUBLE:(p=new gT(l,c,yT(o),1)).returnTypeId=s=-3;break;case pT.PUSHNAN:(p=new gT(l,c,null,1)).returnTypeId=s=-3;break;case pT.PUSHNULL:(p=new gT(l,c,null,1)).returnTypeId=s=-6;break;case pT.PUSHUNDEFINED:(p=new gT(l,c,null,1)).returnTypeId=s=-5;break;case pT.PUSHSTRING:(p=new gT(l,c,yT(o),1)).returnTypeId=s=-4;break;case pT.IFEQ:var d=vT(o),f=o.index;p=new gT(l,c,f+d,-2,0,!1,[f+d]);break;case pT.IFNE:d=vT(o),f=o.index;p=new gT(l,c,f+d,-2,0,!1,[f+d]);break;case pT.IFSTRICTEQ:d=vT(o),f=o.index;p=new gT(l,c,f+d,-2,0,!1,[f+d]);break;case pT.IFSTRICTNE:d=vT(o),f=o.index;p=new gT(l,c,f+d,-2,0,!1,[f+d]);break;case pT.IFGT:case pT.IFNLE:d=vT(o),f=o.index;p=new gT(l,c,f+d,-2,0,!1,[f+d]);break;case pT.IFGE:case pT.IFNLT:d=vT(o),f=o.index;p=new gT(l,c,f+d,-2,0,!1,[f+d]);break;case pT.IFLT:case pT.IFNGE:d=vT(o),f=o.index;p=new gT(l,c,f+d,-2,0,!1,[f+d]);break;case pT.IFLE:case pT.IFNGT:d=vT(o),f=o.index;p=new gT(l,c,f+d,-2,0,!1,[f+d]);break;case pT.IFTRUE:d=vT(o),f=o.index;p=new gT(l,c,f+d,-1,0,!1,[f+d]);break;case pT.IFFALSE:d=vT(o),f=o.index;p=new gT(l,c,f+d,-1,0,!1,[f+d]);break;case pT.LOOKUPSWITCH:var g=l+vT(o),_=yT(o),m=[g];for(d=0;d<=_;d++)m.push(l+vT(o));p=new gT(l,c,m,-1,0,!0,m);break;case pT.JUMP:d=vT(o),f=o.index;p=new gT(l,c,f+d,0,0,!0,[f+d]);break;case pT.RETURNVALUE:p=new gT(l,c,null,-1,0,!0);break;case pT.RETURNVOID:p=new gT(l,c,null,0,0,!0);break;case pT.NOT:(p=new gT(l,c,null,0)).returnTypeId=s=-2;break;case pT.BITNOT:case pT.NEGATE:case pT.INCREMENT:case pT.DECREMENT:(p=new gT(l,c,null,0)).returnTypeId=s=-3;break;case pT.INCLOCAL:case pT.DECLOCAL:(p=new gT(l,c,yT(o),0)).returnTypeId=s=-3;break;case pT.INCREMENT_I:case pT.DECREMENT_I:(p=new gT(l,c,null,0)).returnTypeId=s=-3;break;case pT.INCLOCAL_I:case pT.DECLOCAL_I:(p=new gT(l,c,yT(o),0)).returnTypeId=s=-3;break;case pT.NEGATE_I:(p=new gT(l,c,null,0)).returnTypeId=s=-3;break;case pT.ADD_I:case pT.SUBTRACT_I:case pT.MULTIPLY_I:case pT.ADD:case pT.SUBTRACT:case pT.MULTIPLY:case pT.DIVIDE:case pT.MODULO:case pT.LSHIFT:case pT.RSHIFT:case pT.URSHIFT:case pT.BITAND:case pT.BITOR:case pT.BITXOR:(p=new gT(l,c,null,-1)).returnTypeId=s=-3;break;case pT.EQUALS:case pT.STRICTEQUALS:case pT.GREATERTHAN:case pT.GREATEREQUALS:case pT.LESSTHAN:case pT.LESSEQUALS:(p=new gT(l,c,null,-1)).returnTypeId=s=-2;break;case pT.TYPEOF:(p=new gT(l,c,null,0)).returnTypeId=s=++a;break;case pT.INSTANCEOF:(p=new gT(l,c,null,-1)).returnTypeId=s=-2;break;case pT.ISTYPE:var y=AT(o),A=y[0],v=y[2];(p=new gT(l,c,A,0+v)).returnTypeId=s=-2,u=!0;break;case pT.ISTYPELATE:(p=new gT(l,c,null,-1)).returnTypeId=s=-2,u=!0;break;case pT.ASTYPELATE:p=new gT(l,c,null,-1);break;case pT.ASTYPE:var b=AT(o);A=b[0],v=b[2];p=new gT(l,c,A,0+v),u=!0;break;case pT.CALL:var C=yT(o);p=new gT(l,c,C,-C-1),u=!0;break;case pT.CONSTRUCT:C=yT(o);(p=new gT(l,c,C,-C)).returnTypeId=s=++a;break;case pT.CALLPROPERTY:var x=AT(o),I=(A=x[0],x[1]);v=x[2],C=yT(o);(p=new gT(l,c+I,[C,A],-C+v)).returnTypeId=s=++a,u=u||0!==I;break;case pT.CALLPROPLEX:var E=AT(o);A=E[0],I=E[1],v=E[2],C=yT(o);(p=new gT(l,c+I,[C,A],-C+v)).returnTypeId=s=++a,u=u||0!==I;break;case pT.CALLPROPVOID:var w=AT(o);A=w[0],I=w[1],v=w[2],C=yT(o);p=new gT(l,c+I,[C,A],-(C+1)+v);break;case pT.APPLYTYPE:C=yT(o);(p=new gT(l,c,C,-C)).returnTypeId=s=a;break;case pT.FINDPROPSTRICT:var S=AT(o);A=S[0],I=S[1],v=S[2];(p=new gT(l,c+I,A,1+v)).returnTypeId=s=++a,u=!0;break;case pT.FINDPROPERTY:var D=AT(o);A=D[0],I=D[1],v=D[2];(p=new gT(l,c+I,A,1+v)).returnTypeId=s=++a,u=!0;break;case pT.NEWFUNCTION:(p=new gT(l,c,yT(o),1)).returnTypeId=s=++a,u=!0;break;case pT.NEWCLASS:(p=new gT(l,c,yT(o),0)).returnTypeId=s=++a,u=!0;break;case pT.GETDESCENDANTS:(p=new gT(l,c,yT(o),0)).returnTypeId=s=++a;break;case pT.NEWARRAY:C=yT(o);(p=new gT(l,c,C,1-C)).returnTypeId=s=++a;break;case pT.NEWOBJECT:C=yT(o);(p=new gT(l,c,C,-2*C+1)).returnTypeId=s=++a;break;case pT.NEWACTIVATION:(p=new gT(l,c,null,1)).returnTypeId=s=++a,u=!0;break;case pT.NEWCATCH:p=new gT(l,c,yT(o),1),u=!0;break;case pT.CONSTRUCTSUPER:C=yT(o);p=new gT(l,c,C,-(C+1));break;case pT.CALLSUPER:var T=AT(o);A=T[0],I=T[1],v=T[2],C=yT(o);p=new gT(l,c+I,[C,A],-C+v);break;case pT.CALLSUPERVOID:var P=AT(o);A=P[0],I=P[1],v=P[2],C=yT(o);p=new gT(l,c+I,[C,A],-(C+1)+v);break;case pT.CONSTRUCTPROP:var O=AT(o);A=O[0],I=O[1],v=O[2],C=yT(o);(p=new gT(l,c+I,[C,A],-C+v)).returnTypeId=s=++a;break;case pT.GETPROPERTY:var M=AT(o);A=M[0],I=M[1],v=M[2];(p=new gT(l,pT.GETPROPERTY+I,A,0+v)).returnTypeId=s=++a;break;case pT.INITPROPERTY:case pT.SETPROPERTY:var B=AT(o);A=B[0],I=B[1],v=B[2];p=new gT(l,pT.SETPROPERTY+I,A,-2+v);break;case pT.DELETEPROPERTY:var N=AT(o);A=N[0],I=N[1],v=N[2];p=new gT(l,c+I,A,0+v);break;case pT.GETSUPER:var L=AT(o);A=L[0],I=L[1],v=L[2];(p=new gT(l,c+I,A,0+v)).returnTypeId=s=++a;break;case pT.SETSUPER:var R=AT(o);A=R[0],I=R[1],v=R[2];p=new gT(l,c+I,A,-2+v);break;case pT.COERCE:var F=AT(o);A=F[0],I=F[1],v=F[2];if((p=new gT(l,c+I,A,0+v)).returnTypeId=s,h&&h.name===pT.CONSTRUCTPROP&&h.params[1]===A){p.returnTypeId=-1,p.name=pT.LABEL,p.comment="IR: Drop coerce, reason: redundant";break}u=!0;break;case pT.COERCE_A:(p=new gT(l,c,null,0)).returnTypeId=s;break;case pT.COERCE_S:(p=new gT(l,c,null,0)).returnTypeId=-4;break;case pT.CONVERT_D:if(p=new gT(l,c,null,0),h)switch(h.name){case pT.PUSHINT:case pT.PUSHFLOAT:case pT.PUSHDOUBLE:case pT.ADD_I:case pT.INCREMENT:case pT.DECREMENT:case pT.DECREMENT_I:case pT.INCREMENT_I:p.name=pT.LABEL,p.comment="IR: CONVERT_D removed, reason: arguments strictly number"}break;case pT.CONVERT_B:if(p=new gT(l,c,null,0),h)switch(h.name){case pT.EQUALS:case pT.STRICTEQUALS:case pT.GREATERTHAN:case pT.GREATEREQUALS:case pT.LESSTHAN:case pT.LESSEQUALS:case pT.NOT:p.name=pT.LABEL,p.comment="IR: CONVERT_B removed, reason: arguments strictly boolean"}break;case pT.ESC_XATTR:case pT.ESC_XELEM:case pT.CONVERT_I:case pT.CONVERT_U:case pT.CONVERT_S:case pT.CONVERT_O:case pT.CHECKFILTER:p=new gT(l,c,null,0);break;case pT.GETLOCAL:(p=new gT(l,pT.GETLOCAL,yT(o),1)).returnTypeId=s;break;case pT.GETLOCAL0:(p=new gT(l,pT.GETLOCAL,0,1)).returnTypeId=s;break;case pT.GETLOCAL1:(p=new gT(l,pT.GETLOCAL,1,1)).returnTypeId=s;break;case pT.GETLOCAL2:(p=new gT(l,pT.GETLOCAL,2,1)).returnTypeId=s;break;case pT.GETLOCAL3:(p=new gT(l,pT.GETLOCAL,3,1)).returnTypeId=s;break;case pT.SETLOCAL:(p=new gT(l,pT.SETLOCAL,yT(o),-1)).returnTypeId=s;break;case pT.SETLOCAL0:(p=new gT(l,pT.SETLOCAL,0,-1)).returnTypeId=s;break;case pT.SETLOCAL1:(p=new gT(l,pT.SETLOCAL,1,-1)).returnTypeId=s;break;case pT.SETLOCAL2:(p=new gT(l,pT.SETLOCAL,2,-1)).returnTypeId=s;break;case pT.SETLOCAL3:(p=new gT(l,pT.SETLOCAL,3,-1)).returnTypeId=s;break;case pT.KILL:(p=new gT(l,c,yT(o),0)).name=pT.LABEL,p.comment="IR: KILL removed, reason: prevent optimisation";break;case pT.GETLEX:var k=AT(o);A=k[0],I=k[1],v=k[2];(p=new gT(l,c+I,A,1+v)).returnTypeId=s=++a,u=!0;break;case pT.SI8:case pT.SI16:case pT.SI32:case pT.SF32:case pT.SF64:p=new gT(l,c,null,-2);break;case pT.LI8:case pT.LI16:case pT.LI32:case pT.LF32:case pT.LF64:(p=new gT(l,c,null,0)).returnTypeId=s=-3;break;default:var U=i[o.index-1];return{error:{message:"UNKNOWN BYTECODE ".concat(U.toString(16)," ").concat(pT[U]," at ").concat(l),reason:"unknow_bytecode"}}}r.push(p)}var j=_T(0,0,r);if(u)mT(0,0,r);else{var V=[];for(f=0;f<r.length;f++)r[f].name===pT.PUSHSCOPE&&V.push(f);for(var Q=0,G=V;Q<G.length;Q++){f=G[Q];var z=new gT(0,pT.LABEL);z.comment="IR: PUSHSCOPE removed, reason: unused",r.splice(f-1,2,z)}}var H,X,Y=[0];for(f=0;f<r.length;f++)for(d=0;d<r[f].refs.length;d++)Y.push(r[f].refs[d]);if(n.catchBlocks.length){H={},X={};for(f=0;f<n.catchBlocks.length;f++){var q=n.catchBlocks[f],K=-1,W=-1,J=0;for(U=0;U<r.length;U++){if(($=r[U].position)>=q.start){K=$;break}s_.NO_PROPAGATE_SCOPES_FOR_TRY||(J=r[U].scope)}for(U=r.length-1;U>=0;U--){var $;if(($=r[U].position)<=q.end){W=$;break}}H[K]||(H[K]=[]),H[K].push(q),X[W]||(X[W]=[]),X[W].push(q);var Z=_T(q.target,1,r);Z<j&&(j=Z),mT(q.target,J,r),Y.push(q.target)}}return function(t,e){var n={},i=[];n[0]=0;for(var r=t.length,o=1;o<r;o++){var a=t[o];e.indexOf(a.position)>-1&&(n[a.position]=o),a.name>=pT.IFNLT&&a.name<=pT.LOOKUPSWITCH&&i.push(a)}for(var s=0,u=i;s<u.length;s++){var l=u[s];if(l.name!==pT.LOOKUPSWITCH)l.name!==pT.JUMP?l.childs.push(n[l.params[0]]):l.childs=[n[l.params[0]]];else{var c=l.params;for(l.childs=[],o=0;o<c.length-1;o++)l.childs.push(n[o])}}}(r,Y),{set:r,jumps:Y,catchStart:H,catchEnd:X,error:j<0?{message:"Stack underrun while preprocess, stack:"+j,reason:"underrun"}:null}}var xT=function(){function t(){}return t.prototype.test=function(t){if(!t.isConstructor)return!1;if(t.parameters.length>0)return!1;var e=t.getBody();return!(e.maxStack>1)&&(!(e.localCount>1)&&(!(e.maxScopeDepth-e.initScopeDepth>1)&&!(e.code.length>6)))},t.prototype.getBody=function(t){return this.test(t)?function(t){return function(){t.savedScope.superConstructor.call(this)}}:null},t}(),IT=function(){function t(){}return t.begin=function(t){var e=performance.now();this._currentTask={name:t,start:e,droped:!1},this._firstCompilerRun<0&&(this._firstCompilerRun=e)},t.drop=function(){this._currentTask&&(this._currentTask.droped=!0,this.end())},t.end=function(){if(this._currentTask){var t=performance.now(),e=t-this._currentTask.start,n=this.statRecords;t-this._lastCompilerStop<this.TASK_DELAY?this._taskBathTime+=e:this._taskBathTime=0,n.runs++,n.drops+=+this._currentTask.droped,n.totalCompileTime+=e,n.minCompileTime=n.minCompileTime>e?e:n.minCompileTime,n.maxCompileTime=n.minCompileTime<e?e:n.minCompileTime,n.overhead=100*n.totalCompileTime/(this._lastCompilerStop-this._firstCompilerRun),n.maxCompilerBatchTime=this._taskBathTime>n.maxCompilerBatchTime?this._taskBathTime:n.maxCompilerBatchTime,this._lastCompilerStop=t,this._currentTask=null}},t.reset=function(){Object.assign(this.statRecords,{compiled:0,droped:0,minCompileTime:Number.MAX_VALUE,maxCompileTime:-Number.MAX_VALUE,totalCompileTime:-0,maxCompilerTaskTime:-Number.MAX_VALUE,overhead:0}),this._currentTask=null,this._taskBathTime=0},t.TASK_DELAY=10,t.statRecords={runs:0,drops:0,minCompileTime:Number.MAX_VALUE,maxCompileTime:-Number.MAX_VALUE,totalCompileTime:-0,maxCompilerBatchTime:-Number.MAX_VALUE,overhead:0},t._firstCompilerRun=-1,t._lastCompilerStop=-1,t._taskBathTime=0,t}();window.AWAY_COMPILER_STAT=IT;var ET=Symbol("External class marker"),wT={_lib:null,set lib(t){t&&console.debug("[AVM2] Register external lib:",t),this._lib=t},get lib(){return this._lib}};function ST(){return!!wT._lib}var DT=function(){function t(){this.imports=[],this._lexMode=!1}return t.prototype.test=function(t,e){return!1},t.prototype._genEntry=function(t){return"//"+t.name},t.prototype._genAlias=function(t,e){return t.namespace.uri.replace(/\./g,"_")+"__"+t.name},t.prototype.findAliases=function(t,e){return this.imports.filter((function(n){return n.name===t&&(!e||e===n.options.findProp)}))},t.prototype.getLexAlias=function(t,e){this._lexMode=!0;var n=this.getPropStrictAlias(t,Object.assign({findProp:!0,mnIndex:-1},e||{}));return this._lexMode=!1,n},t.prototype.getPropStrictAlias=function(t,e){var n;if(void 0===e&&(e={findProp:!1,mnIndex:-1}),!this.test(t,this._lexMode))throw"Can't generate static alias for ".concat(t.name," of ").concat(null===(n=t.namespace)||void 0===n?void 0:n.uri);var i=this.imports.find((function(n){return n.name===t&&e.findProp===n.options.findProp}));if(i)return i.alias;var r=this._genAlias(t,e);return this.imports.find((function(t){return t.alias===r}))||this.imports.push({name:t,alias:r,options:e}),r},t.prototype.genHeader=function(t){if(void 0===t&&(t=""),!this.imports.length)return"";for(var e=["\n".concat(t," /* ").concat(this.constructor.name," */")],n=0,i=this.imports;n<i.length;n++){var r=i[n];e.push(t+" "+this._genEntry(r))}return e.push("\n"),e.join("\n")},t.prototype.genBody=function(t){return""},t.prototype.genPost=function(t){return t},t.prototype.reset=function(){this.imports.length=0},t}(),TT=function(){function t(t){if(this.generators=t,this.allowColissions=!1,!t)throw"Generators array can't be null"}return t.prototype.getGenerator=function(t,e){for(var n=0,i=this.generators;n<i.length;n++){var r=i[n];if(r.test(t,e))return r}return null},t.prototype.test=function(t,e){return!!this.generators.length&&!!this.getGenerator(t,e)},t.prototype.findAliases=function(t,e){for(var n=[],i=0,r=this.generators;i<r.length;i++){var o=r[i];n=n.concat(o.findAliases(t,e))}return n},t.prototype.getLexAlias=function(t,e){var n,i=this.getGenerator(t,!0);if(!i)throw"Can't generate static alias for ".concat(t.name," of ").concat(null===(n=t.namespace)||void 0===n?void 0:n.uri);return i.getLexAlias(t,e)},t.prototype.getPropStrictAlias=function(t,e){var n,i=this.getGenerator(t,!1);if(!i)throw"Can't generate static alias for ".concat(t.name," of ").concat(null===(n=t.namespace)||void 0===n?void 0:n.uri);return i.getPropStrictAlias(t,e)},t.prototype.genHeader=function(t){for(var e="",n=0,i=this.generators;n<i.length;n++){e+=i[n].genHeader(t)}return e},t.prototype.genBody=function(t){for(var e="",n=0,i=this.generators;n<i.length;n++){e+=i[n].genBody(t)}return e},t.prototype.genPost=function(t){for(var e=0,n=this.generators;e<n.length;e++){t=n[e].genPost(t)}return t},t.prototype.reset=function(){this.generators.forEach((function(t){return t.reset()}))},t}(),PT=function(t){function e(e){var n=t.call(this)||this;return n.allows=e,n.allows=Object.assign({box2D:!0,nape:!0},e),n}return L_(e,t),e.prototype._genEntry=function(t){var e=t.name.namespace.uri,n=t.name.name;return"const ".concat(t.alias," = context.getStaticImportExt('").concat(e,"', '").concat(n,"');")},e.prototype._genAlias=function(t,e){return t.namespace.uri.replace(/\./g,"_")+"__"+t.name},e.prototype.test=function(t){var e,n=null===(e=t.namespace)||void 0===e?void 0:e.uri;return!(!n||!wT.lib)&&(n.startsWith("Box2D")&&this.allows.box2D?(t.name,!1):!(!n.startsWith("nape.")||!this.allows.nape)&&!t.name.includes("Debug"))},e}(DT),OT=["flash.geom","flash.utils","Math","trace","parseInt","RegExp"],MT=["getDefinitionByName","SetIntervalTimer","setTimeout",":trace"],BT=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return L_(e,t),e.prototype.test=function(t){var e,n=(null===(e=t.namespace)||void 0===e?void 0:e.uri)||"",i=t.name;return void 0!==n&&(!(MT.indexOf(i)>-1||MT.indexOf(n)>-1)&&(OT.indexOf(i)>-1&&!n||OT.indexOf(n)>-1))},e.prototype._genEntry=function(t){var e=t.name.namespace.uri,n=t.name.name,i=t.options||{},r=i.mnIndex,o=i.findProp;if("number"!=typeof r||r<0)throw"Name alias required for generatin Toplevel exports!";var a=r,s="['".concat(u_.getPublicMangledName(n),"']");return"const ".concat(t.alias," = context.getTopLevel(").concat(a,")").concat(o?s:"","; // ").concat(e,":").concat(n)},e.prototype._genAlias=function(t,e){var n=t.namespace.uri.split(/[.:]/g);if("number"!=typeof e.mnIndex||e.mnIndex<0)throw"Name alias required for generatin Toplevel exports!";return"".concat(n.join("_"),"__").concat(t.name).concat(e.findProp?"":"_def")},e}(DT),NT=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._mn=new Set,e._loc={},e}return L_(e,t),e.prototype.markScope=function(t,e){if(void 0===e&&(e=0),!e)throw"Scope location should be marked!";this._loc[t]=e},e.prototype.test=function(t,e){return!!e&&(!(!t.uri||0!==t.namespace.type)&&(!!this._mn.has(t)||(this._mn.add(t),!1)))},e.prototype._genAlias=function(t,e){var n=t.namespace.uri.split(/[.|:]/g),i=e;if(!i.nameAlias)throw"Name alias required for generatin FirstUsageScopeLex exports!";if(!i.scope)throw"Scope alias required for generatin FirstUsageScopeLex exports!";return"".concat(n.join("_"),"__").concat(t.name)},e.prototype.findAliases=function(){return[]},e.prototype.genHeader=function(){return""},e.prototype.genBody=function(t){if(!this.imports.length)return"";for(var e=["".concat(t," // ").concat(this.constructor.name," ")],n=0,i=this.imports;n<i.length;n++){var r=i[n];e.push("".concat(t," let ").concat(r.alias,"; // ").concat(r.name))}return e.join("\n")},e.prototype.genPost=function(t){for(var e=0,n=this.imports;e<n.length;e++){var i=n[e],r=i.options,o=this._loc[r.scope];if(!o)throw"Unknow import for scope:"+r.scope;var a=t[o].length-t[o].trimLeft().length-1;t.splice(o+1,0,this._genEntry(i," ".repeat(a)))}return t},e.prototype._genEntry=function(t,e){void 0===e&&(e=" ");var n=[],i=t.name,r=t.options;return n.push("".concat(e," // ")),n.push("".concat(e," // ").concat(i)),n.push("".concat(e," temp = ").concat(r.scope,".findScopeProperty(").concat(r.nameAlias,", true, false);")),n.push("".concat(e," ").concat(t.alias," = temp['$Bg").concat(i.name,"'];")),n.push("".concat(e," if (").concat(t.alias," === undefined || typeof ").concat(t.alias," === 'function') {")),n.push("".concat(e," ").concat(t.alias," = temp.axGetProperty(").concat(r.nameAlias,");")),n.push("".concat(e," }")),n.join("\n")},e}(DT);function LT(t,e){return t.canUseRealThis&&0===e?"this":0===e?"_this":"local"+e}var RT,FT,kT="[stack underrun]";function UT(t,e,n){void 0===n&&(n=!0);var i=t.evalStackIndex(e);if(i<0)return"/*".concat(kT," ").concat(i,"*/ null");var r="stack"+i;return n?t.isThisAlias(r)?LT(t,0):t.getConstAlias(r):r}function jT(t){return s_.FOLLOW_AS3_BUG&&(t=bm(t)),0|t}function VT(t){return t>>>0}function QT(t){return!!t}var GT=((RT={}).Number=function(t){return s_.FOLLOW_AS3_BUG?"sec.AXNumber.axCoerce(".concat(t,")"):"(+".concat(t,")")},RT.int=function(t){return s_.FOLLOW_AS3_BUG?"sec.AXNumber.axCoerce(".concat(t,") | 0"):"(".concat(t,"|0)")},RT.uint=function(t){return"(".concat(t,">>>0)")},RT.Boolean=function(t){return"(!!".concat(t,")")},RT.String=function(t){return"(".concat(t,"==null?null:''+ ").concat(t,")")},RT),zT=((FT={}).Number=bm,FT.int=jT,FT.uint=VT,FT.Boolean=QT,FT.String=a_,FT);function HT(t){return t&&t.name&&t.name in zT}function XT(t,e,n,i){if(void 0===i&&(i=!1),!HT(n))return i?"string"==typeof e?e:UT(t,e):null;if("string"==typeof e)return GT[n.name](e);var r=t.getConstAliasMeta(e);if(r&&"const"===r.kind){var o=zT[n.name](r.value);return"string"==typeof o?JSON.stringify(o):""+o}return GT[n.name](UT(t,e))}var YT=/^[a-zA-Z$_][a-zA-Z0-9$_]*$/;function qT(t,e){return e&&YT.test(e)?"".concat(t,".").concat(e):"".concat(t,'["').concat(e,'"]')}function KT(t,e){if(t.names.length<=e)throw"Name index out of bounds";return t.noHoistMultiname?"$names["+e+"]":"name"+e}function WT(t,e){t.emitBeginMain("try {")}function JT(t,e){t.emitEndMain(),function(t,e){t.popAnyAlias("stack0"),t.emitBeginMain("catch(e) {"),t.emitMain("// in case this is a error coming from stack0.__fast when stack0 is undefined,"),t.emitMain("// we convert it to a ASError, so that avm2 can still catch it"),t.emitMain("if (e instanceof TypeError) {"),t.emitMain(' var _e = context.sec.createError("TypeError", {code:1065, message:e.message})'),t.emitMain(" _e.source = e; e = _e;"),t.emitMain("}"),t.emitMain("stack0 = e;");for(var n="",i=0;i<e.length;i++){var r=e[i].type;if(r){var o=t.getMultinameIndex(r);t.emitMain("const errorClass$".concat(i," = context.sec.application.getClass(").concat(KT(t,o),");")),t.emitMain("if(errorClass$".concat(i," && errorClass$").concat(i,".axIsType(e))")),t.emitMain(" { p = ".concat(e[i].target,"; continue; };"))}else n="{ p = ".concat(e[i].target,"; continue; };")}n&&t.emitMain(n),t.emitMain("throw e;"),t.emitEndMain()}(t,e)}function $T(t){var e=t.currentOpcode,n=UT(t,0),i=UT(t,1);switch(t.emitMain("domainMemory = domainMemory || context.domainMemory;"),e.name){case pT.SI8:t.emitMain("domainMemory.setInt8(".concat(n,", ").concat(i,")"));break;case pT.SI16:t.emitMain("domainMemory.setInt16(".concat(n,", ").concat(i,", true);"));break;case pT.SI32:t.emitMain("domainMemory.setInt32(".concat(n,", ").concat(i,", true);"));break;case pT.SF32:t.emitMain("domainMemory.setFloat32(".concat(n,", ").concat(i,", true);"));break;case pT.SF64:t.emitMain("domainMemory.setFloat64(".concat(n,", ").concat(i,", true);"));break;case pT.LI8:t.emitMain("".concat(n," = domainMemory.getInt8(").concat(n,")"));break;case pT.LI16:t.emitMain("".concat(n," = getInt16(").concat(n,", true);"));break;case pT.LI32:t.emitMain("".concat(n," = domainMemory.getInt32(").concat(n,", true);"));break;case pT.LF32:t.emitMain("".concat(n," = domainMemory.getFloat32(").concat(n,", true);"));break;case pT.LF64:t.emitMain("".concat(n," = domainMemory.getFloat64(").concat(n,", true);"))}}var ZT=function(){function t(t){this._indent="",this._indentLen=0,this.names=[],this.openTryCatchGroups=[],this.mainBlock=[],this.headerBlock=[],this.thisAliases=new Set,this.constAliases={},this.localAliases={},this.localTypes={},this.stackAliases={},this.noHoistMultiname=s_.NO_HOIST_MULTINAME,this.methodInfo=t,this.abc=t.abc,this.init()}return Object.defineProperty(t.prototype,"indent",{get:function(){return this._indent},enumerable:!1,configurable:!0}),t.prototype.setStackAlias=function(t,e){void 0===e&&(e=null);var n=this.evalStackIndex(t);return this.stackAliases[n]=e,e},t.prototype.getStackAlias=function(t){return this.stackAliases[this.evalStackIndex(t)]},Object.defineProperty(t.prototype,"isPossibleGlobalThis",{get:function(){var t=this.methodInfo.trait&&this.methodInfo.trait.kind;return 1!==t&&2!==t&&3!==t&&!this.methodInfo.isConstructor},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canUseRealThis",{get:function(){return!!s_.EMIT_REAL_THIS&&!this.isPossibleGlobalThis},enumerable:!1,configurable:!0}),t.prototype.init=function(){this.methodInfo.parentInfo&&(this.localTypes[0]=[this.methodInfo.parentInfo.getTypeName()]);for(var t=1,e=0,n=this.methodInfo.parameters;e<n.length;e++){var i=n[e];this.localTypes[t]=i.getType()?[i.getType()]:[],t++}},t.prototype.evalStackIndex=function(t){var e=this.currentOpcode.stack-1-t;return e<0?-1:e},t.prototype.moveIndent=function(t){return this._indentLen+=4*t,this._indentLen<0&&(this._indentLen=0),this._indent=" ".repeat(this._indentLen),this._indent},t.prototype.getMultinameIndex=function(t){var e="number"==typeof t?this.abc.getMultiname(t):t,n=this.names.indexOf(e);return n>-1?n:(this.names.push(e),this.names.length-1)},t.prototype.emitConst=function(t,e,n){void 0===n&&(n=!0);var i=this.evalStackIndex(t),r=UT(this,t,!1);return this.popAnyAlias(r),s_.UNSAFE_INLINE_CONST&&(this.constAliases[r]={value:e,kind:n?"const":"alias",pos:this.mainBlock.length},this.stackAliases[i]=this.constAliases[r]),n&&"string"==typeof e&&(e=JSON.stringify(e)),this.mainBlock.push(this.indent+r+" = "+e+";")},t.prototype.emitGetLocal=function(t,e){var n=UT(this,t,!1);if(this.popAnyAlias(n),0===e&&this.pushThisAlias(n),s_.UNSAFE_INLINE_CONST){var i="local"+e;this.constAliases[n]={value:i,pos:this.mainBlock.length,kind:"alias"},this.localAliases[i]=n}return this.localTypes[e]&&this.localTypes[e][0]&&this.emitMain("// JIT: potential type:"+this.localTypes[e][0].toString()),this.mainBlock.push(this.indent+n+" = "+LT(this,e)+";")},t.prototype.emitMain=function(t){return void 0===t&&(t=""),this.mainBlock.push(this.indent+t)},t.prototype.emitHead=function(t,e){return void 0===e&&(e=""),this.headerBlock.push(e+t)},t.prototype.emitBeginMain=function(t){void 0===t&&(t="{");var e=this.emitMain(t);return this.moveIndent(1),e},t.prototype.emitEndMain=function(){return this.moveIndent(-1),this.emitMain("}")},t.prototype.killConstAliasInstruction=function(t){if(t&&0!==t.length)for(var e=0,n=t;e<n.length;e++){var i=n[e];if(this.constAliases[i]){var r=this.mainBlock[this.constAliases[i].pos];this.mainBlock[this.constAliases[i].pos]="//"+r+"// JIT: redundant assigment, value unused"}}},t.prototype.getConstAliasMeta=function(t){return s_.UNSAFE_INLINE_CONST?this.constAliases["stack"+this.evalStackIndex(t)]:null},t.prototype.getConstAlias=function(t){if(!s_.UNSAFE_INLINE_CONST)return t;var e=this.constAliases[t];return e?"const"!==e.kind?e.value:"string"==typeof e.value?JSON.stringify(e.value):""+e.value:t},t.prototype.isThisAlias=function(t){return!!s_.UNSAFE_PROPAGATE_THIS&&this.thisAliases.has(t)},t.prototype.pushThisAlias=function(t,e){return!!s_.UNSAFE_PROPAGATE_THIS&&(!(e&&!this.thisAliases.has(e))&&(!this.thisAliases.has(t)&&(this.thisAliases.add(t),!0)))},t.prototype.dropAllAliases=function(){this.constAliases={},this.localAliases={}},t.prototype.popAnyAlias=function(t){if(t in this.localAliases){var e=t;t=this.localAliases[e],delete this.localAliases[e]}return delete this.constAliases[t],this.thisAliases.delete(t)},t}(),tP=["Slot","Method","Getter","Setter","Class","Function","Const","GetterSetter"];var eP=function(t){this.traits=t},nP=function(t){function e(e,n,i,r,o,a,s,u){var l=t.call(this,u)||this;return l.abc=e,l.name=n,l.superName=i,l.flags=r,l.protectedNs=o,l.interfaceNameIndices=a,l.initializer=s,l.traits=u,l.classInfo=null,l.runtimeTraits=null,l._interfaces=null,l}return L_(e,t),e.prototype.getInitializer=function(){return"number"==typeof this.initializer&&(this.initializer=this.abc.getMethodInfo(this.initializer),this.initializer.instanceInfo=this,this.initializer.isConstructor=!0),this.initializer},e.prototype.getName=function(){return"number"==typeof this.name&&(this.name=this.abc.getMultiname(this.name)),this.name},e.prototype.getClassName=function(){var t=this.getName();return t.namespaces[0].uri?t.namespaces[0].uri+"."+t.name:t.name},e.prototype.getSuperName=function(){return"number"==typeof this.superName&&(this.superName=this.abc.getMultiname(this.superName)),this.superName},e.prototype.getInterfaces=function(t){if(this._interfaces)return this._interfaces;var e,n=t.superClass;n&&(e=n.classInfo.instanceInfo.getInterfaces(n));for(var i=Set,r=this._interfaces=new i(e),o=0;o<this.interfaceNameIndices.length;o++){var a=this.abc.getMultiname(this.interfaceNameIndices[o]),s=this.abc.applicationDomain.getClass(a);r.add(s),s.classInfo.instanceInfo.getInterfaces(s).forEach((function(t){return r.add(t)}))}return r},e.prototype.toString=function(){return"InstanceInfo "+this.getName().name},e.prototype.toFlashlogString=function(){return this.getName().toFlashlogString()},e.prototype.trace=function(t){t.enter("InstanceInfo: "+this.getName()),this.superName&&t.writeLn("Super: "+this.getSuperName()),this.traits.trace(t),t.outdent()},e.prototype.isInterface=function(){return!!(4&this.flags)},e.prototype.isSealed=function(){return!!(1&this.flags)},e.prototype.isFinal=function(){return!!(2&this.flags)},e}(eP),iP=function(){},rP="WeakRef"in self&&s_.USE_WEAK_REF;rP&&console.debug("[OrphanManager] `WeakRef` used for orphans!");var oP=function(){function t(){}return t.addOrphan=function(t){void 0===t&&(t=null),t&&t.isAsset&&(t.isAsset(Rl)||t.isAsset(gl)||t.isAsset(fl))&&(t.id in this.orphans||(this.orphans[t.id]=rP?new self.WeakRef(t):t,this.totalOrphansCount++))},t.removeOrphan=function(t){t.id in this.orphans&&(this.totalOrphansCount--,delete this.orphans[t.id])},t.updateOrphans=function(){var t;for(var e in this.orphans)t=this.orphans[e],rP&&t&&(t=null==t?void 0:t.deref()),t?t.parent?(this.totalOrphansCount--,delete this.orphans[e]):(t.advanceFrame(),Nl.execute_as3_constructors_recursiv(t)):(console.debug("[OrphanManager] Orphan was deleted by GC:",e),this.totalOrphansCount--,delete this.orphans[e])},t.orphans=Object.create(null),t.totalOrphansCount=0,t}();function aP(t,e){if(e){if(e.slots)for(var n=0;n<e.slots.length;n++)e.slots[n]&&(t[e.slots[n].multiname.getMangledName()]=e.slots[n].value);return e.superTraits&&aP(t,e.superTraits),t}}function sP(t){var e,n,i,r,o=this,a=Object.create(o.tPrototype);aP(a,o.tPrototype.traits);for(var s=null,u=null,l=o;l&&!u;)(s=l._symbol)&&s.timeline&&(u=s.timeline),l=l.superClass;var c,h=null===(r=null===(i=null===(n=null===(e=o.superClass)||void 0===e?void 0:e.classInfo)||void 0===n?void 0:n.instanceInfo)||void 0===i?void 0:i.name)||void 0===r?void 0:r.name;o.axApplicationDomain&&o.axApplicationDomain.awayApplicationDomain?c=o.axApplicationDomain.awayApplicationDomain:iP.loaderContext&&(c=iP.loaderContext.applicationDomain);var p=o.classInfo.instanceInfo.name,d=p.name,f=p.uri?p.uri+"."+d:d;if(u){var g=this.sec.flash.display.MovieClip.axIsType(a)||this.sec.flash.display.SimpleButton.axIsType(a),_=new Rl(u,!g);a.adaptee=_,_.reset(),Nl.execute_as3_constructors_recursiv(_)}if(!u&&c&&c.hasSymbolForClass(f)){var m=c.getSymbolAdaptee(f);m||console.warn("error: could not get asset ".concat(h," for class ").concat(d,", no ActiveLoaderContext.loaderContext")),m&&(m instanceof Rl?a.adaptee.graphics=m.graphics:a.adaptee=m)}return"SimpleButton"===d&&(a.adaptee=new Rl(new bl(this.sec.player.factory))),a[f_]=!0,a.axInitializer.apply(a,t),a.constructorHasRun=!0,a.adaptee&&oP.addOrphan(a.adaptee),a.isAVMFont&&(a.fontName=d),a}var uP={MovieClip:!0,DisplayObject:!0,Sprite:!0,Sound:!0,SimpleButton:!0,BitmapData:!0};function lP(t,e){var n=t.abc.applicationDomain.findClassInfoDeep(t);if(!n)return!1;for(e&&e.push(t.name);n&&t;){if(uP[t.name])return!1;if(!(t=n.instanceInfo.getSuperName()))return!0;if(uP[t.name])return!1;if(e&&e.push(t.name),!(n=t.abc.applicationDomain.findClassInfoDeep(t)))return!0;if("Object"===t.name&&""===t.namespace.uri&&!n.instanceInfo.superName)return!0}return!1}function cP(t,e){var n=Object.create(t.tPrototype);return t.tPrototype.traits&&aP(n,t.tPrototype.traits),n[f_]=!0,Reflect.apply(n.axInitializer,n,e),n.constructorHasRun=!0,n}var hP={},pP=pT;function dP(t,e,n,i){if(s_.MAX_INLINE_RETURN<=0)return!1;var r=function(t,e,n,i){for(var r=-1,o=-1,a=n;a<t.length;a++){var s=t[a];if(s.position===i&&(r=a),r>a&&e.indexOf(s.position)>=0){o=a;break}}return r>=0&&-1===o&&(o=t.length),{startIndex:r,endIndex:o}}(t,e,n,i).startIndex;return r>=0&&t[r].name===pT.RETURNVOID}function fP(t,e){for(var n=t.traits.getTrait(e),i=t;s_.CHEK_SUPER_TRAITS&&!n&&i&&i instanceof nP;){var r=i.getSuperName();if(!r)return null;if((i=r.value.applicationDomain.getClass(r).classInfo.instanceInfo).runtimeTraits&&(n=i.runtimeTraits.getTrait(e.namespaces,e.name)))return n;if(n=i.traits.getTrait(e))return n}return n}function gP(t,e){var n;void 0===e&&(e={});var i=e.optimise,r=void 0===i?fT:i,o=new ZT(t),a=new NT,s=new TT([new PT({box2D:!1}),new BT]),u=new xT,l=null;IT.begin("");var c=function(t){return 16&r&&!!t};if(c(u)&&"function"==typeof(P=u.getBody(t)))return IT.drop(),{names:[],compiled:P};var h=t.meta,p=h.name,d=CT(t),f=d.error,g=d.jumps,_=d.catchStart,m=d.catchEnd,y=d.set;if(f&&(IT.drop(),"underrun"!==f.reason||!(32&r)))return{error:f};for(var A=t.instanceInfo||(null===(n=t.trait)||void 0===n?void 0:n.holder),v=t.abc,b=t.getBody(),C=b.maxStack,x=b.localCount-1,I=b.maxScopeDepth-b.initScopeDepth,E=o.headerBlock,w=o.mainBlock,S=!1,D=0,T=y;D<T.length;D++){var P=T[D].name;S=S||P>=pT.LI8&&P<=pT.SF64}o.moveIndent(1);var O=t.parameters,M=1&r,B=M?function(t){for(var e=t.methodInfo,n=t.methodInfo.parameters,i=t.methodInfo.abc,r=t.methodInfo.meta.name,o=0,a=[],s=[],u=0;u<n.length;u++){var l=n[u],c={name:LT(t,u+1),value:null,type:null};l.hasOptionalValue()&&(1===l.optionalValueKind?c.value="".concat(JSON.stringify(i.getString(l.optionalValueIndex))):c.value="".concat(l.getOptionalValue())),c.type=l.getType(),a[u]=c}e.needsRest()&&a.push({name:"...args"});var h=a.map((function(t){return t.value?"".concat(t.name," /* ").concat(t.type?t.type.name:"*"," */ = ").concat(t.value):"".concat(t.name," /* ").concat(t.type?t.type.name:"*"," */")})).join(", "),p=r.replace(/([^a-z0-9]+)/gi,"_");s.push("".concat(t.indent,"return function compiled_").concat(p,"(").concat(h,") {")),t.moveIndent(1);var d=LT(t,0);"this"!==d?t.isPossibleGlobalThis?s.push("".concat(t.indent,"let ").concat(d," = this === context.jsGlobal ? context.savedScope.global.object : this;")):s.push("".concat(t.indent,"let ").concat(d," = this;")):s.push("".concat(t.indent,'// Possible use a real "this"'));for(var f=0,g=a;f<g.length;f++){var _=g[f],m=XT(t,_.name,_.type,!1);m&&(s.push("".concat(t.indent,"/* Force ").concat(_.type.name," coerce */")),s.push("".concat(t.indent).concat(_.name," = ").concat(m,";")))}return e.needsRest()&&(s.push("".concat(t.indent,"let ").concat(LT(t,n.length+1)," = context.sec.createArrayUnsafe(args);")),o+=1),e.needsArguments()&&(s.push("".concat(t.indent,"let ").concat(LT(t,n.length+1)," = context.sec.createArrayUnsafe(Array.from(arguments));")),o+=1),{annotation:s.join("\n"),paramsShift:o}}(o):function(t){var e=t.methodInfo.parameters,n=t.methodInfo.meta.name,i=[];i.push("".concat(t.indent,"return function compiled_").concat(n.replace(/([^a-z0-9]+)/gi,"_"),"() {")),t.moveIndent(1);for(var r=0;r<e.length;r++)if(e[r].hasOptionalValue()){i.push("".concat(t.indent,"let argnum = arguments.length;"));break}for("this"!==LT(t,0)?i.push("".concat(t.indent,"let ").concat(LT(t,0)," = this === context.jsGlobal ? context.savedScope.global.object : this;")):i.push("".concat(t.indent,'// Possible use a real "this"')),r=0;r<e.length;r++){var o=e[r];i.push("".concat(t.indent,"let ").concat(LT(t,r+1)," = arguments[").concat(r,"];")),e[r].hasOptionalValue()&&(1===o.optionalValueKind?i.push("".concat(t.indent,"if (argnum <= ").concat(r,") ").concat(LT(t,r+1)," = context.abc.getString(").concat(o.optionalValueIndex,");")):i.push("".concat(t.indent,"if (argnum <= ").concat(r,") ").concat(LT(t,r+1)," = ").concat(o.getOptionalValue(),";")))}return{annotation:i.join("\n"),paramsShift:0}}(o),N=B.paramsShift,L=B.annotation,R=o.indent;E.push(L);var F=E.length;E.push("__PLACE__FOR__OPTIONAL__LOCALS__");for(var k=[],U=O.length+1+N;U<=x;U++)k[U]={index:U,isArgumentList:U===O.length+1,read:0,write:0,die:!1};for(U=0;U<C;U++)E.push("".concat(R,"let stack").concat(U," = undefined;"));for(U=0;U<I;U++)E.push("".concat(R,"let scope").concat(U," = undefined;"));E.push("".concat(R,"let temp = undefined;")),S&&E.push("".concat(R,"let domainMemory; // domainMemory"));var j=o.names,V=function(t){return KT(o,o.getMultinameIndex(t))};E.push("".concat(R,"let sec = context.sec;"));var Q=g.length>1||_;hP&&hP[h.classPath+"__begin"]&&(o.emitMain("/* ATTACH METHOD HOOK */"),o.emitMain("context.executeHook(".concat(LT(o,0),", '").concat(h.classPath+"__begin","')"))),o.emitMain("");var G,z,H,X=_?Object.keys(_).length:0,Y=s_.ENABLE_LOOP_GUARD&&Q&&g.length-2*X>=s_.LOOP_GUARD_MIN_BRANCHES;if(Q){if(Y&&o.emitMain("let tick = 0;"),o.emitMain("let p = 0;"),o.emitBeginMain("while (true) {"),Y){var q=s_.LOOP_GUARD_MAX_LOOPS;o.emitBeginMain("if (tick++ > ".concat(q,") {")),o.emitMain("throw 'To many loops (> ".concat(q,') in "').concat(h.classPath,"\" at' + p + ' ,method was dropped to avoid stucking';\n'")),o.emitEndMain()}o.emitBeginMain("switch (p) {")}Q&&o.moveIndent(2);var K=function(t,e){return void 0===e&&(e=!0),UT(o,t,e)},W=function(t){return LT(o,t)},J=function(t,e){var n=e||o.currentOpcode.params;return"number"==typeof n?n:n[t]};for(U=0;U<y.length;U++){if(o.currentOpcode=y[U],H&&(z=H),H=y[U],c(l)&&l.killFar(U),g.indexOf(H.position)>=0&&(o.dropAllAliases(),o.openTryCatchGroups.forEach((function(t){return JT(o,t)})),Q&&(o.moveIndent(-1),o.emitMain("case ".concat(H.position,":")),o.moveIndent(1)),o.openTryCatchGroups.forEach((function(t){return WT(o)}))),(G=_?_[H.position]:null)&&(o.openTryCatchGroups.push(G),o.emitBeginMain("try {"),o.moveIndent(1)),s_.PRINT_BYTE_INSTRUCTION){var $="number"==typeof H.params?H.params:H.params.join(" / ");o.emitMain("//".concat(pP[H.name]," ").concat($," -> ").concat(H.returnTypeId))}H.comment&&o.emitMain("//".concat(H.comment));var Z,tt=K(0),et=K(1),nt=K(2),it=K(3),rt=H.scope>0?"scope".concat(H.scope-1):"context.savedScope",ot="scope"+H.scope;if(H.stack<0)o.emitMain("// unreachable");else{var at=0;switch(H.name){case pT.LABEL:break;case pT.DXNSLATE:o.emitMain("".concat(rt,".defaultNamespace = context.internNamespace(0, ").concat(tt,");"));break;case pT.DEBUGFILE:case pT.DEBUGLINE:case pT.DEBUG:break;case pT.THROW:o.emitMain("throw ".concat(tt,";"));break;case pT.GETLOCAL:k[at=J(0)]&&k[at].read++,o.emitGetLocal(-1,at);break;case pT.SETLOCAL:k[at=J(0)]&&(k[at].write++,k[at].read||(k[at].die=!0)),o.killConstAliasInstruction([K(0,!1)]),o.popAnyAlias(W(at)),o.emitMain("".concat(W(at)," = ").concat(tt,";"));break;case pT.GETSLOT:o.popAnyAlias(tt),o.emitMain("".concat(K(0,!1)," = ").concat(tt,".axGetSlot(").concat(J(0),");"));break;case pT.SETSLOT:o.emitMain("".concat(et,".axSetSlot(").concat(J(0),", ").concat(tt,");"));break;case pT.GETGLOBALSCOPE:o.popAnyAlias(K(-1,!1)),o.emitMain("".concat(K(-1,!1)," = context.savedScope.global.object;"));break;case pT.PUSHSCOPE:null==a||a.markScope(ot,w.length),o.emitMain("".concat(ot," = ").concat(rt,".extend(").concat(tt,");"));break;case pT.PUSHWITH:o.emitMain("".concat(ot," = context.pushwith(").concat(rt,", ").concat(tt,");"));break;case pT.POPSCOPE:o.emitMain("".concat(rt," = undefined;"));break;case pT.GETSCOPEOBJECT:o.popAnyAlias(K(-1,!1)),o.emitMain("".concat(K(-1)," = scope").concat(J(0),".object;"));break;case pT.NEXTNAME:o.popAnyAlias(K(1,!1)),o.emitMain("".concat(K(1)," = sec.box(").concat(et,").axNextName(").concat(tt,");"));break;case pT.NEXTVALUE:o.popAnyAlias(K(1,!1)),o.emitMain("".concat(K(1)," = sec.box(").concat(et,").axNextValue(").concat(tt,");"));break;case pT.HASNEXT:o.popAnyAlias(K(1,!1)),o.emitMain("".concat(K(1)," = sec.box(").concat(et,").axNextNameIndex(").concat(tt,");"));break;case pT.HASNEXT2:o.popAnyAlias(K(-1,!1)),o.emitMain("temp = context.hasnext2(".concat(W(J(0)),", ").concat(W(J(1)),");")),o.emitMain("".concat(W(J(0))," = temp[0];")),o.emitMain("".concat(W(J(1))," = temp[1];")),o.emitMain("".concat(K(-1)," = ").concat(W(J(1))," > 0;"));break;case pT.IN:o.popAnyAlias(K(1,!1)),o.emitMain("".concat(K(1)," = (").concat(et," && ").concat(et,".axClass === sec.AXQName) ? obj.axHasProperty(").concat(et,".name) : ").concat(tt,".axHasPublicProperty(").concat(et,");"));break;case pT.DUP:o.popAnyAlias(K(-1,!1)),o.emitMain("".concat(K(-1)," = ").concat(tt,";")),o.pushThisAlias(K(-1),tt);break;case pT.POP:o.popAnyAlias(K(0,!1));break;case pT.SWAP:o.popAnyAlias(K(0,!1)),o.popAnyAlias(K(1,!1)),o.emitMain("temp = ".concat(tt,";")),o.emitMain("".concat(K(0)," = ").concat(et,";")),o.emitMain("".concat(K(1)," = temp;")),o.emitMain("temp = undefined;");break;case pT.PUSHTRUE:o.emitConst(-1,!0);break;case pT.PUSHFALSE:o.emitConst(-1,!1);break;case pT.PUSHBYTE:case pT.PUSHSHORT:o.emitConst(-1,J(0));break;case pT.PUSHINT:o.emitConst(-1,v.ints[J(0)]);break;case pT.PUSHUINT:o.emitConst(-1,v.uints[J(0)]);break;case pT.PUSHDOUBLE:o.emitConst(-1,v.doubles[J(0)]);break;case pT.PUSHSTRING:o.emitConst(-1,v.getString(J(0)));break;case pT.PUSHNAN:o.emitConst(-1,NaN);break;case pT.PUSHNULL:o.emitConst(-1,null);break;case pT.PUSHUNDEFINED:o.emitConst(-1,void 0);break;case pT.IFEQ:if(dP(y,g,U,J(0))){o.emitMain("//JIT: Emit inline return"),o.emitMain("if (".concat(tt," == ").concat(et,") { return; }"));break}o.emitMain("if (".concat(tt," == ").concat(et,") { p = ").concat(J(0),"; continue; };"));break;case pT.IFNE:if(dP(y,g,U,J(0))){o.emitMain("//JIT: Emit inline return"),o.emitMain("if (".concat(tt," != ").concat(et,") { return; }"));break}o.emitMain("if (".concat(tt," != ").concat(et,") { p = ").concat(J(0),"; continue; };"));break;case pT.IFSTRICTEQ:if(dP(y,g,U,J(0))){o.emitMain("//JIT: Emit inline return"),o.emitMain("if (".concat(tt," === ").concat(et,") { return; }"));break}o.emitMain("if (".concat(tt," === ").concat(et,") { p = ").concat(J(0),"; continue; };"));break;case pT.IFSTRICTNE:if(dP(y,g,U,J(0))){o.emitMain("//JIT: Emit inline return"),o.emitMain("if (".concat(tt," !== ").concat(et,") { return; }"));break}o.emitMain("if (".concat(tt," !== ").concat(et,") { p = ").concat(J(0),"; continue; };"));break;case pT.IFNLE:if(dP(y,g,U,J(0))){o.emitMain("//JIT: Emit inline return"),o.emitMain("if (!(".concat(tt," >= ").concat(et,")) { return; }"));break}o.emitMain("if (!(".concat(tt," >= ").concat(et,")) { p = ").concat(J(0),"; continue; };"));break;case pT.IFGT:if(dP(y,g,U,J(0))){o.emitMain("//JIT: Emit inline return"),o.emitMain("if (".concat(tt," < ").concat(et,") { return; }"));break}o.emitMain("if (".concat(tt," < ").concat(et,") { p = ").concat(J(0),"; continue; };"));break;case pT.IFNLT:if(dP(y,g,U,J(0))){o.emitMain("//JIT: Emit inline return"),o.emitMain("if (!(".concat(tt," > ").concat(et,")) { return; }"));break}o.emitMain("if (!(".concat(tt," > ").concat(et,")) { p = ").concat(J(0),"; continue; };"));break;case pT.IFGE:if(dP(y,g,U,J(0))){o.emitMain("//JIT: Emit inline return"),o.emitMain("if (".concat(tt," <= ").concat(et,") { return; }"));break}o.emitMain("if (".concat(tt," <= ").concat(et,") { p = ").concat(J(0),"; continue; };"));break;case pT.IFNGE:if(dP(y,g,U,J(0))){o.emitMain("//JIT: Emit inline return"),o.emitMain("if (!(".concat(tt," <= ").concat(et,")) { return; }"));break}o.emitMain("if (!(".concat(tt," <= ").concat(et,")) { p = ").concat(J(0),"; continue; };"));break;case pT.IFLT:if(dP(y,g,U,J(0))){o.emitMain("//JIT: Emit inline return"),o.emitMain("if (".concat(tt," > ").concat(et,") { return; }"));break}o.emitMain("if (".concat(tt," > ").concat(et,") { p = ").concat(J(0),"; continue; };"));break;case pT.IFNGT:if(dP(y,g,U,J(0))){o.emitMain("//JIT: Emit inline return"),o.emitMain("if (!(".concat(tt," < ").concat(et,")) { return; }"));break}o.emitMain("if (!(".concat(tt," < ").concat(et,")) { p = ").concat(J(0),"; continue; };"));break;case pT.IFLE:if(dP(y,g,U,J(0))){o.emitMain("//JIT: Emit inline return"),o.emitMain("if (".concat(tt," >= ").concat(et,") { return; }"));break}o.emitMain("if (".concat(tt," >= ").concat(et,") { p = ").concat(J(0),"; continue; };"));break;case pT.IFFALSE:if(dP(y,g,U,J(0))){o.emitMain("//JIT: Emit inline return"),o.emitMain("if (!".concat(tt,") { return; }"));break}o.emitMain("if (!".concat(tt,") { p = ").concat(J(0),"; continue; };"));break;case pT.IFTRUE:if(dP(y,g,U,J(0))){o.emitMain("//JIT: Emit inline return"),o.emitMain("if (".concat(tt,") { return; }"));break}o.emitMain("if (".concat(tt,") { p = ").concat(J(0),"; continue; };"));break;case pT.LOOKUPSWITCH:var st=H.params.concat(),ut=st.shift();o.emitMain("if (".concat(tt," >= 0 && ").concat(tt," < ").concat(st.length,") { p = [").concat(st.join(", "),"][").concat(tt,"]; continue; } else { p = ").concat(ut,"; continue; };"));break;case pT.JUMP:if(dP(y,g,U,J(0))){o.emitMain("//JIT: Emit inline return"),o.emitMain("return;");break}o.emitMain("{ p = ".concat(J(0),"; continue; };"));break;case pT.INCREMENT:o.popAnyAlias(K(0,!1)),o.emitMain("".concat(K(0),"++;"));break;case pT.DECREMENT:o.popAnyAlias(K(0,!1)),o.emitMain("".concat(K(0),"--;"));break;case pT.INCLOCAL:o.emitMain("".concat(W(J(0)),"++;"));break;case pT.DECLOCAL:o.emitMain("".concat(W(J(0)),"--;"));break;case pT.INCREMENT_I:o.popAnyAlias(K(0,!1)),o.emitMain("".concat(K(0)," = (").concat(K(0)," | 0) + 1;"));break;case pT.DECREMENT_I:o.popAnyAlias(K(0,!1)),o.emitMain("".concat(K(0)," = (").concat(K(0)," | 0) - 1;"));break;case pT.INCLOCAL_I:o.emitMain("".concat(W(J(0))," = (").concat(W(J(0))," | 0) + 1;"));break;case pT.DECLOCAL_I:o.emitMain("".concat(W(J(0))," = (").concat(W(J(0))," | 0) - 1;"));break;case pT.NEGATE_I:o.popAnyAlias(K(0,!1)),o.emitMain("".concat(K(0)," = -(").concat(tt," | 0);"));break;case pT.ADD_I:o.killConstAliasInstruction([K(0,!1)]),o.popAnyAlias(K(1,!1)),o.emitMain("".concat(K(1)," = (").concat(et," | 0) + (").concat(tt," | 0);"));break;case pT.SUBTRACT_I:o.killConstAliasInstruction([K(0,!1)]),o.popAnyAlias(K(1,!1)),o.emitMain("".concat(K(1)," = (").concat(et," | 0) - (").concat(tt," | 0);"));break;case pT.MULTIPLY_I:o.killConstAliasInstruction([K(0,!1)]),o.popAnyAlias(K(1,!1)),o.emitMain("".concat(K(1)," = (").concat(et," | 0) * (").concat(tt," | 0);"));break;case pT.ADD:o.killConstAliasInstruction([K(0,!1)]),o.popAnyAlias(K(1,!1)),o.emitMain("".concat(K(1)," += ").concat(tt,";"));break;case pT.SUBTRACT:o.killConstAliasInstruction([K(0,!1)]),o.popAnyAlias(K(1,!1)),o.emitMain("".concat(K(1)," -= ").concat(tt,";"));break;case pT.MULTIPLY:o.killConstAliasInstruction([K(0,!1)]),o.popAnyAlias(K(1,!1)),o.emitMain("".concat(K(1)," *= ").concat(tt,";"));break;case pT.DIVIDE:o.killConstAliasInstruction([K(0,!1)]),o.popAnyAlias(K(1,!1)),o.emitMain("".concat(K(1)," /= ").concat(tt,";"));break;case pT.MODULO:o.killConstAliasInstruction([K(0,!1)]),o.popAnyAlias(K(1,!1)),o.emitMain("".concat(K(1)," %= ").concat(tt,";"));break;case pT.LSHIFT:o.popAnyAlias(K(1,!1)),o.emitMain("".concat(K(1)," <<= ").concat(tt,";"));break;case pT.RSHIFT:o.popAnyAlias(K(1,!1)),o.emitMain("".concat(K(1)," >>= ").concat(tt,";"));break;case pT.URSHIFT:o.popAnyAlias(K(1,!1)),o.emitMain("".concat(K(1)," >>>= ").concat(tt,";"));break;case pT.BITAND:o.popAnyAlias(K(1,!1)),o.emitMain("".concat(K(1)," &= ").concat(tt,";"));break;case pT.BITOR:o.popAnyAlias(K(1,!1)),o.emitMain("".concat(K(1)," |= ").concat(tt,";"));break;case pT.BITXOR:o.popAnyAlias(K(1,!1)),o.emitMain("".concat(K(1)," ^= ").concat(tt,";"));break;case pT.EQUALS:o.popAnyAlias(K(1,!1)),o.emitMain("".concat(K(1)," = ").concat(et," == ").concat(tt,";"));break;case pT.STRICTEQUALS:o.popAnyAlias(K(1,!1)),o.emitMain("".concat(K(1)," = ").concat(et," === ").concat(tt,";"));break;case pT.GREATERTHAN:o.popAnyAlias(K(1,!1)),o.emitMain("".concat(K(1)," = ").concat(et," > ").concat(tt,";"));break;case pT.GREATEREQUALS:o.popAnyAlias(K(1,!1)),o.emitMain("".concat(K(1)," = ").concat(et," >= ").concat(tt,";"));break;case pT.LESSTHAN:o.popAnyAlias(K(1,!1)),o.emitMain("".concat(K(1)," = ").concat(et," < ").concat(tt,";"));break;case pT.LESSEQUALS:o.popAnyAlias(K(1,!1)),o.emitMain("".concat(K(1)," = ").concat(et," <= ").concat(tt,";"));break;case pT.NOT:o.popAnyAlias(K(0,!1)),o.emitMain("".concat(K(0)," = !").concat(tt,";"));break;case pT.BITNOT:o.popAnyAlias(K(0,!1)),o.emitMain("".concat(K(0)," = ~").concat(tt,";"));break;case pT.NEGATE:o.popAnyAlias(K(0,!1)),o.emitMain("".concat(K(0)," = -").concat(tt,";"));break;case pT.TYPEOF:o.popAnyAlias(K(0,!1)),o.emitMain("".concat(K(0)," = typeof ").concat(tt," === 'undefined' ? 'undefined' : context.typeof(").concat(tt,");"));break;case pT.INSTANCEOF:o.popAnyAlias(K(1,!1)),o.emitMain("".concat(K(1)," = ").concat(tt,".axIsInstanceOf(").concat(et,");"));break;case pT.ISTYPE:o.popAnyAlias(K(0,!1)),o.emitMain("".concat(K(0)," = ").concat(rt,".getScopeProperty(").concat(V(J(0)),", true, false).axIsType(").concat(tt,");"));break;case pT.ISTYPELATE:o.popAnyAlias(K(1,!1)),o.emitMain("".concat(K(1)," = ").concat(tt,".axIsType(").concat(et,");"));break;case pT.ASTYPE:if(4&r&&(z.name===pT.PUSHNULL||z.name===pT.PUSHUNDEFINED)){o.emitMain("// SKIP_NULL_COERCE");break}o.popAnyAlias(K(0,!1)),o.emitMain("".concat(K(0)," = ").concat(rt,".getScopeProperty(").concat(V(J(0)),", true, false).axAsType(").concat(tt,");"));break;case pT.ASTYPELATE:o.popAnyAlias(K(1,!1)),o.emitMain("".concat(K(1)," = ").concat("true"," ? ").concat(tt,".axAsType(").concat(et,") : ").concat(et,";"));break;case pT.CALL:o.popAnyAlias(K(J(0)+1,!1));for(var lt=[],ct=K(J(0)+1),ht=1;ht<=J(0);ht++)lt.push(K(J(0)-ht)),o.killConstAliasInstruction([K(J(0)-ht,!1)]);o.emitMain("".concat(ct," = context.call(").concat(K(J(0)+1),", ").concat(K(J(0)),", [").concat(lt.join(", "),"], ").concat(rt,");"));break;case pT.CONSTRUCT:o.popAnyAlias(K(J(0),!1));for(lt=[],ct=K(J(0)),ht=1;ht<=J(0);ht++)lt.push(K(J(0)-ht)),o.killConstAliasInstruction([K(J(0)-ht,!1)]);var pt=o.getStackAlias(J(0));if(pt&&("lookup"===pt.kind||"alias"===pt.kind)&&pt.type&&(o.emitMain("//JIT: Possible source:"+pt.type),"RegExp"===pt.type.name)){o.emitMain("".concat(ct," = context.getRegExp([").concat(lt.join(", "),"]);"));break}o.emitMain("".concat(ct," = context.construct(").concat(ct,", [").concat(lt.join(", "),"]);"));break;case pT.CALLPROPERTY:var dt=v.getMultiname(J(1));for(lt=[],ct=K(J(0)),ht=1;ht<=J(0);ht++)lt.push(K(J(0)-ht)),o.killConstAliasInstruction([K(J(0)-ht,!1)]);o.killConstAliasInstruction([K(J(0),!1)]),o.popAnyAlias(K(J(0),!1));var ft=K(J(0));if("getDefinitionByName"==v.getMultiname(J(1)).name)o.emitMain("".concat(ft," = context.getdefinitionbyname(").concat(rt,", ").concat(ct,", [").concat(lt.join(", "),"]);"));else{var gt=void 0;if(c(l)&&(gt=l.sureThatFast("".concat(ct),dt.getMangledName()))){var _t=gt.isMangled?u_.getPublicMangledName(dt.name):dt.name;l.kill("".concat(ct)),o.emitMain("/* We sure that this safe call */"),gt.isFunc?o.emitMain("".concat(ft," = ").concat(qT(ct,_t),"(").concat(lt.join(", "),");")):o.emitMain("".concat(ft," = /*fast*/sec.box(").concat(ct,").axCallProperty(").concat(V(J(1)),", [").concat(lt.join(", "),"], false);"));break}if(s_.CHEK_TRAIT_GET_CALL&&"this"===ct&&A)if(Dt=fP(A,dt)){o.emitMain("/* We sure that this safe call, represented in TRAIT as ".concat(tP[Dt.kind]," */ ")),1===Dt.kind?o.emitMain("".concat(ft," = ").concat(qT(ct,dt.getMangledName()),"(").concat(lt.join(", "),");")):o.emitMain("".concat(ft," = /*fast*/").concat(ct,".axCallProperty(").concat(V(J(1)),", [").concat(lt.join(", "),"], false);"));break}if((St=ST())&&(o.emitMain("if (!".concat("true",") {")),o.emitMain(" ".concat(ft," = ").concat(qT(ct,dt.name),"(").concat(lt.join(", "),");")),o.emitBeginMain("} else {")),o.emitMain("// ".concat(dt)),o.emitBeginMain(),wt=!s_.NO_CHECK_BOXED_THIS||"this"!==ct){o.emitMain("let t = ".concat(ct,";"));var mt=qT("t","$Bg"+dt.name);o.emitMain("const m = ".concat(mt," || (t = sec.box(").concat(ct,"), ").concat(mt,");"))}else o.emitMain("const m = ".concat(qT(ct,"$Bg"+dt.name),";"));o.emitMain('if( typeof m === "function" ) { '),o.emitMain(" ".concat(ft," = ").concat(qT(wt?"t":ct,"$Bg"+dt.name)," (").concat(lt.join(", "),");")),o.emitMain("} else { "),o.emitMain(" ".concat(ft," = ").concat(ct,".axCallProperty(").concat(V(J(1)),", [").concat(lt.join(", "),"], false);")),o.emitMain("}"),o.emitEndMain(),St&&o.emitEndMain()}break;case pT.CALLPROPLEX:dt=v.getMultiname(J(1));o.popAnyAlias(K(J(0),!1));for(ft=K(J(0)),lt=[],ht=1;ht<=J(0);ht++)lt.push(K(J(0)-ht)),o.killConstAliasInstruction([K(J(0)-ht,!1)]);o.emitMain("temp = sec.box(".concat(ft,");"));mt=qT("temp","$Bg"+dt.name);o.emitMain("".concat(ft," = (typeof ").concat(mt," === 'function')? ").concat(mt,"(").concat(lt.join(", "),") : temp.axCallProperty(").concat(V(J(1)),", [").concat(lt.join(", "),"], true);"));break;case pT.CALLPROPVOID:for(dt=v.getMultiname(J(1)),lt=[],ct=K(J(0)),ht=1;ht<=J(0);ht++)lt.push(K(J(0)-ht)),o.killConstAliasInstruction([K(J(0)-ht,!1)]);if(o.killConstAliasInstruction([K(J(0),!1)]),c(l)&&l.sureThatFast(ct)){_t=l.sureThatFast(ct).isMangled?u_.getPublicMangledName(dt.name):dt.name;o.emitMain("/* We sure that this safe call */ "),o.emitMain("".concat(qT(ct,_t),"(").concat(lt.join(", "),");")),l.kill("".concat(ct));break}if(s_.CHEK_TRAIT_GET_CALL&&"this"===ct&&A)if(Dt=fP(A,dt)){o.emitMain("/* We sure that this safe call, represented in TRAIT as ".concat(tP[Dt.kind]," */ ")),1===Dt.kind?o.emitMain("".concat(qT(ct,dt.getMangledName()),"(").concat(lt.join(", "),");")):o.emitMain("/*fast*/".concat(ct,".axCallProperty(").concat(V(J(1)),", [").concat(lt.join(", "),"], false);"));break}(St=ST())&&(o.emitMain("if (!".concat("true",") {")),o.emitMain(" ".concat(qT(ct,dt.name),"(").concat(lt.join(", "),");")),o.emitMain("} else {"),o.moveIndent(1)),o.emitMain("// ".concat(dt)),o.emitBeginMain(),o.emitMain("let t = ".concat(ct,";"));mt=qT("t","$Bg"+dt.name);o.emitMain("const m = ".concat(mt," || (t = sec.box(").concat(ct,"), ").concat(mt,");")),o.emitMain('if( typeof m === "function" ) { '),o.emitMain(" m.call(t".concat(lt.length?", ":"").concat(lt.join(", "),");")),o.emitMain("} else { "),o.emitMain(" ".concat(ct,".axCallProperty(").concat(V(J(1)),", [").concat(lt.join(", "),"], false);")),o.emitMain("}"),o.emitEndMain(),St&&o.emitEndMain();break;case pT.APPLYTYPE:lt=[];o.popAnyAlias(K(J(0),!1));for(ft=K(J(0)),ht=1;ht<=J(0);ht++)lt.push(K(J(0)-ht)),o.killConstAliasInstruction([K(J(0)-ht,!1)]);o.emitMain("".concat(ft," = sec.applyType(").concat(ft,", [").concat(lt.join(", "),"]);"));break;case pT.FINDPROPSTRICT:dt=v.getMultiname(J(0));o.emitMain("// ".concat(dt)),o.popAnyAlias(K(-1,!1));var yt=K(-1);if(c(s)&&s.test(dt,!1)){o.emitMain("/* GenerateLexImports */");var At=s.getPropStrictAlias(dt,{mnIndex:o.getMultinameIndex(J(0))});if(o.emitConst(-1,At,!1),c(l)){var vt=s.getGenerator(dt,!1)instanceof BT;l.mark(yt,U,vt,dt)}break}if(s_.CHEK_TRAIT_GET_CALL&&s_.CHEK_TRAIT_FIND_PROP&&1===H.scope&&A)if(Dt=fP(A,dt)){o.emitMain("/* We sure that this scope owner, represented in TRAIT as ".concat(tP[Dt.kind]," */ ")),o.emitGetLocal(-1,0);break}o.emitMain("".concat(K(-1)," = ").concat(rt,".findScopeProperty(").concat(V(J(0)),", true, false);"));break;case pT.FINDPROPERTY:o.emitMain("// ".concat(v.getMultiname(J(0)))),o.popAnyAlias(K(-1,!1)),o.emitMain("".concat(K(-1)," = ").concat(rt,".findScopeProperty(").concat(V(J(0)),", false, false);"));break;case pT.NEWFUNCTION:o.emitMain("// ".concat(v.getMethodInfo(J(0)))),o.popAnyAlias(K(-1,!1)),o.emitMain("".concat(K(-1)," = context.createFunction(").concat(J(0),", ").concat(rt,", true, ").concat(t.index(),");"));break;case pT.NEWCLASS:o.emitMain("// ".concat(v.classes[J(0)])),o.popAnyAlias(K(0,!1)),o.emitMain("".concat(K(0)," = sec.createClass(context.abc.classes[").concat(J(0),"], ").concat(tt,", ").concat(rt,");"));break;case pT.GETDESCENDANTS:dt=v.getMultiname(J(0));if(o.emitMain("// ".concat(dt)),dt.isRuntimeName()){var bt=dt.isRuntimeName()&&dt.isRuntimeNamespace();o.popAnyAlias(K(bt?2:1,!1));yt=K(bt?2:1);o.emitBeginMain(),bt?o.emitMain("const rn = context.runtimename(".concat(V(J(0)),", ").concat(tt,", ").concat(et,");")):o.emitMain("const rn = context.runtimename(".concat(V(J(0)),", ").concat(tt,");")),o.emitMain("".concat(yt," = ").concat(yt,".descendants(rn);")),o.emitEndMain();break}o.popAnyAlias(K(0,!1)),o.emitMain("".concat(K(0)," = ").concat(tt,".descendants(").concat(V(J(0)),");"));break;case pT.NEWARRAY:for(lt=[],ht=1;ht<=J(0);ht++)lt.push(K(J(0)-ht)),o.killConstAliasInstruction([K(J(0)-ht,!1)]);o.popAnyAlias(K(J(0)-1,!1)),o.emitMain("".concat(K(J(0)-1)," = sec.AXArray.axBox([").concat(lt.join(", "),"]);"));break;case pT.NEWOBJECT:o.emitMain("temp = Object.create(sec.AXObject.tPrototype);");for(ht=1;ht<=J(0);ht++)o.emitMain("temp.axSetPublicProperty(".concat(K(2*J(0)-2*ht+1),", ").concat(K(2*J(0)-2*ht),");"));o.popAnyAlias(K(2*J(0)-1,!1)),o.emitMain("".concat(K(2*J(0)-1)," = temp;")),o.emitMain("temp = undefined;");break;case pT.NEWACTIVATION:o.popAnyAlias(K(-1,!1)),o.emitMain("".concat(K(-1)," = sec.createActivation(context.mi, ").concat(rt,");"));break;case pT.NEWCATCH:o.popAnyAlias(K(-1,!1)),o.emitMain("".concat(K(-1)," = sec.createCatch(context.mi.getBody().catchBlocks[").concat(J(0),"], ").concat(rt,");"));break;case pT.CONSTRUCTSUPER:for(lt=[],ht=1;ht<=J(0);ht++)lt.push(K(J(0)-ht)),o.killConstAliasInstruction([K(J(0)-ht,!1)]);o.emitMain("context.savedScope.superConstructor.call(".concat(K(J(0)),", ").concat(lt.join(", "),");"));break;case pT.CALLSUPER:lt=[];o.popAnyAlias(K(J(0),!1));for(ft=K(J(0)),ht=1;ht<=J(0);ht++)lt.push(K(J(0)-ht)),o.killConstAliasInstruction([K(J(0)-ht,!1)]);o.emitMain("".concat(ft," = sec.box(").concat(ft,").axCallSuper(").concat(V(J(1)),", context.savedScope, [").concat(lt.join(", "),"]);"));break;case pT.CALLSUPER_DYN:for(lt=[],ht=1;ht<=J(0);ht++)lt.push(K(J(0)-ht)),o.killConstAliasInstruction([K(J(0)-ht,!1)]);(dt=v.getMultiname(J(1))).isRuntimeName()&&dt.isRuntimeNamespace()?(o.popAnyAlias(K(J(0)+2,!1)),o.emitMain("".concat(K(J(0)+2)," = sec.box(").concat(K(J(0)+2),").axGetSuper(context.runtimename(").concat(V(J(1)),", ").concat(K(J(0)),", ").concat(K(J(0)+1),"), context.savedScope, [").concat(lt.join(", "),"]);"))):(o.popAnyAlias(K(J(0)+1,!1)),o.emitMain("".concat(K(J(0)+1)," = sec.box(").concat(K(J(0)+1),").axGetSuper(context.runtimename(").concat(V(J(1)),", ").concat(K(J(0)),"), context.savedScope, [").concat(lt.join(", "),"]);")));break;case pT.CALLSUPERVOID:for(lt=[],ht=1;ht<=J(0);ht++)lt.push(K(J(0)-ht)),o.killConstAliasInstruction([K(J(0)-ht,!1)]);o.emitMain("sec.box(".concat(K(J(0)),").axCallSuper(").concat(V(J(1)),", context.savedScope, [").concat(lt.join(", "),"]);"));break;case pT.CONSTRUCTPROP:lt=[],ft=K(J(0),!1);var Ct=K(J(0));o.killConstAliasInstruction([ft]),o.popAnyAlias(ft),o.setStackAlias(J(0),{kind:"lookup",type:v.getMultiname(J(1)),scope:-1e3});for(ht=1;ht<=J(0);ht++)lt.push(K(J(0)-ht)),o.killConstAliasInstruction([K(J(0)-ht,!1)]);var xt=!1,It=[];s_.CHECK_FAST_CONSTRUCTOR&&(xt=lP(v.getMultiname(J(1)),It)),xt?(o.emitMain("//JIT: Support fast construct:"+It.join("/")),o.emitMain("".concat(K(J(0))," = context.constructFast(").concat(Ct,", [").concat(lt.join(", "),"], ").concat(V(J(1)),");"))):o.emitMain("".concat(K(J(0))," = context.constructprop(").concat(V(J(1)),", ").concat(Ct,", [").concat(lt.join(", "),"]);")),c(l)&&l.kill(K(J(0)));break;case pT.GETPROPERTY:dt=v.getMultiname(J(0)),Ct=K(0),yt=K(0,!1);o.killConstAliasInstruction([yt]),o.popAnyAlias(K(0,!1)),o.emitMain("// ".concat(dt));gt=void 0;if(c(l)&&(gt=l.sureThatFast(Ct,dt.name))){_t=gt.isMangled?u_.getPublicMangledName(dt.name):dt.name;l.kill(Ct),o.emitMain("/* We sure that this safe get */ "),o.emitMain("".concat(yt," = ").concat(qT(Ct,_t),";"));break}var Et=o.getStackAlias(0);if(Et&&o.emitMain("//Possible type:"+Et.type),s_.CHEK_TRAIT_GET_CALL&&"this"===tt&&A)if(Dt=fP(A,dt)){if(o.emitMain("/* We sure that this safe get, represented in TRAIT as ".concat(tP[Dt.kind],", type: ").concat(Dt.typeName," */ ")),1===Dt.kind){o.emitMain("".concat(yt," = this.axGetProperty(").concat(V(J(0)),");"));break}if(0===Dt.kind||7===Dt.kind||2===Dt.kind){o.emitMain("".concat(yt," = ").concat(qT(tt,dt.getMangledName()),";")),o.setStackAlias(0,{kind:"var",type:Dt.typeName});break}}o.setStackAlias(0),(St=ST())&&(o.emitMain("if (!".concat("true",") {")),o.emitMain(" ".concat(yt," = ").concat(tt,"['").concat(dt.name,"'];")),o.emitBeginMain("} else {")),(wt=!s_.NO_CHECK_BOXED_THIS||"this"!==tt)&&o.emitMain("temp = ".concat(tt,"[AX_CLASS_SYMBOL] ? ").concat(tt," : sec.box(").concat(tt,");")),o.emitMain("".concat(yt," = ").concat(qT(wt?"temp":tt,"$Bg"+dt.name),";")),o.emitMain("if (".concat(yt," === undefined || typeof ").concat(yt," === 'function') {")),o.emitMain(" ".concat(yt," = ").concat(wt?"temp":tt,".axGetProperty(").concat(V(J(0)),");")),o.emitMain("}"),St&&o.emitEndMain();break;case pT.GETPROPERTY_DYN:bt=(dt=v.getMultiname(J(0))).isRuntimeName()&&dt.isRuntimeNamespace();o.popAnyAlias(K(bt?2:1,!1));var wt;yt=K(bt?2:1);o.emitMain("// ".concat(dt)),o.emitBeginMain(),bt?(o.emitMain("const rm = context.runtimename(".concat(V(J(0)),", ").concat(tt,", ").concat(et,");")),o.emitMain("const simple = rm.numeric ? rm.numericValue : rm.name;")):o.emitMain("let simple = ".concat(tt,";")),(wt=!s_.NO_CHECK_BOXED_THIS||"this"!==yt)?o.emitMain("const b_obj = ".concat(yt,"[AX_CLASS_SYMBOL] ? ").concat(yt," : sec.box(").concat(yt,");\n")):o.emitMain("const b_obj = ".concat(yt)),o.emitMain('if (typeof simple === "number") {'),o.emitMain(" ".concat(yt," = b_obj.axGetNumericProperty(simple);")),o.emitBeginMain("} else {"),o.emitMain("".concat(yt," = b_obj['$Bg' + simple];")),o.emitMain("if (".concat(yt," === undefined || typeof ").concat(yt," === 'function') {")),bt||o.emitMain(" const rm = context.runtimename(".concat(V(J(0)),", ").concat(tt,");")),o.emitMain(" ".concat(yt," = b_obj.axGetProperty(rm);")),o.emitMain("}"),o.emitEndMain(),o.emitEndMain();break;case pT.SETPROPERTY:var St;dt=v.getMultiname(J(0));if(o.killConstAliasInstruction([K(0,!1),K(1,!1)]),o.emitMain("// ".concat(dt)),s_.CHEK_TRAIT_SET&&"this"===et&&A)if((Dt=fP(A,dt))&&Dt&&(o.emitMain("/* We sure that this safe set, represented in TRAIT as ".concat(tP[Dt.kind],", with type: ").concat(Dt.typeName," */ ")),0===Dt.kind||7===Dt.kind||2===Dt.kind||3===Dt.kind)){o.emitMain("".concat(qT(et,dt.getMangledName())," = ").concat(XT(o,0,Dt.typeName,!0),";"));break}(St=ST())&&(o.emitMain("if (!".concat("true","){")),o.emitMain(" ".concat(qT(et,dt.name)," = ").concat(tt,";")),o.emitBeginMain("} else {")),o.emitMain("context.setproperty(".concat(V(J(0)),", ").concat(tt,", ").concat(et,");")),St&&o.emitEndMain();break;case pT.SETPROPERTY_DYN:(dt=v.getMultiname(J(0))).isRuntimeName()&&dt.isRuntimeNamespace()?o.emitMain("context.setproperty(context.runtimename(".concat(V(J(0)),", ").concat(et,", ").concat(nt,"), ").concat(tt,", ").concat(it,");")):o.emitMain("context.setproperty(context.runtimename(".concat(V(J(0)),", ").concat(et,"), ").concat(tt,", ").concat(nt,");"));break;case pT.DELETEPROPERTY:o.popAnyAlias(K(0,!1)),o.emitMain("// ".concat(v.getMultiname(J(0)))),o.emitMain("".concat(K(0)," = context.deleteproperty(").concat(V(J(0)),", ").concat(tt,");"));break;case pT.DELETEPROPERTY_DYN:(dt=v.getMultiname(J(0))).isRuntimeName()&&dt.isRuntimeNamespace()?(o.popAnyAlias(K(2,!1)),o.emitMain("".concat(K(2)," = context.deleteproperty(context.runtimename(").concat(V(J(0)),", ").concat(tt,", ").concat(et,"), ").concat(nt,");"))):(o.popAnyAlias(K(1,!1)),o.emitMain("".concat(K(1)," = context.deleteproperty(context.runtimename(").concat(V(J(0)),", ").concat(tt,"), ").concat(et,");")));break;case pT.GETSUPER:o.popAnyAlias(K(0,!1)),o.emitMain("".concat(K(0)," = sec.box(").concat(tt,").axGetSuper(").concat(V(J(0)),", context.savedScope);"));break;case pT.GETSUPER_DYN:(dt=v.getMultiname(J(0))).isRuntimeName()&&dt.isRuntimeNamespace()?(o.popAnyAlias(K(2,!1)),o.emitMain("".concat(K(2)," = sec.box(").concat(nt,").axGetSuper(context.runtimename(").concat(V(J(0)),", ").concat(tt,", ").concat(et,"), context.savedScope);"))):(o.popAnyAlias(K(1,!1)),o.emitMain("".concat(K(1)," = sec.box(").concat(et,").axGetSuper(context.runtimename(").concat(V(J(0)),", ").concat(tt,"), context.savedScope);")));break;case pT.SETSUPER:o.emitMain("sec.box(".concat(et,").axSetSuper(").concat(V(J(0)),", context.savedScope, ").concat(tt,");"));break;case pT.SETSUPER_DYN:(dt=v.getMultiname(J(0))).isRuntimeName()&&dt.isRuntimeNamespace()?o.emitMain("sec.box(".concat(it,").axSetSuper(context.runtimename(").concat(V(J(0)),", ").concat(et,", ").concat(nt,"), context.savedScope, ").concat(tt,");")):o.emitMain("sec.box(".concat(nt,").axSetSuper(context.runtimename(").concat(V(J(0)),", ").concat(et,"), context.savedScope, ").concat(tt,");"));break;case pT.GETLEX:dt=v.getMultiname(J(0));o.popAnyAlias(K(-1,!1));var Dt;yt=K(-1);if(c(s)&&s.test(dt,!0)){o.emitMain("// ".concat(dt)),o.emitMain("/* GenerateLexImports GETLEX */"),o.emitConst(-1,s.getLexAlias(dt,{mnIndex:o.getMultinameIndex(J(0)),scope:rt}),!1);var Tt=o.getStackAlias(-1);Tt&&(Tt.type=dt);break}if(o.setStackAlias(-1,{kind:"lookup",type:dt,scope:H.scope}),s_.CHEK_TRAIT_GET_CALL&&s_.CHEK_TRAIT_FIND_PROP&&1===H.scope&&A)if(Dt=fP(A,dt)){var Pt=LT(o,0);if(o.emitMain("/* GETLEX We sure that this safe get, represented in TRAIT as ".concat(tP[Dt.kind]," */ ")),1===Dt.kind){o.emitMain("".concat(yt," = ").concat(Pt,".axGetProperty(").concat(V(J(0)),");"));break}if(0===Dt.kind||7===Dt.kind||2===Dt.kind){o.emitMain("".concat(yt," = ").concat(qT(Pt,dt.getMangledName()),";"));break}}o.emitMain("// ".concat(dt)),o.emitMain("temp = ".concat(rt,".findScopeProperty(").concat(V(J(0)),", true, false);")),o.emitMain("".concat(yt," = ").concat(qT("temp","$Bg"+dt.name),";")),o.emitMain("if (".concat(yt," === undefined || typeof ").concat(yt," === 'function') {")),o.emitMain(" ".concat(yt," = temp.axGetProperty(").concat(V(J(0)),");")),o.emitMain("}");break;case pT.RETURNVALUE:hP&&hP[h.classPath+"__return"]&&(o.emitMain("/* ATTACH METHOD HOOK */"),o.emitMain("context.executeHook(".concat(LT(o,0),", '").concat(h.classPath+"__return","')")));var Ot=t.getTypeName();if(!Ot||"none"===s_.COERCE_RETURN_MODE){o.emitMain("return ".concat(tt,";"));break}if(HT(Ot)){o.emitMain("return ".concat(XT(o,0,Ot,!0),";"));break}if("all"===s_.COERCE_RETURN_MODE){o.emitMain("return context.coerceReturn(".concat(tt,");"));break}o.emitMain("return ".concat(tt,";"));break;case pT.RETURNVOID:hP&&hP[h.classPath+"__return"]&&(o.emitMain("/* ATTACH METHOD HOOK */"),o.emitMain("context.executeHook(".concat(LT(o,0),", '").concat(h.classPath+"__return","')"))),o.emitMain("return;");break;case pT.COERCE:if(4&r&&(z.name===pT.PUSHNULL||z.name===pT.PUSHUNDEFINED)){o.emitMain("//JIT: SKIP_NULL_COERCE");break}if(z.name===pT.ASTYPELATE){o.emitMain("//JIT: SKIP DOUBLED COERCE AFTER ASTYPELATE");break}o.popAnyAlias(K(0,!1));yt=K(0),dt=v.getMultiname(J(0));o.emitBeginMain("if (".concat("true",") {")),"default"==s_.COERCE_MODE?o.emitMain("".concat(yt," = ").concat(rt,".getScopeProperty(").concat(V(J(0)),", true, false).axCoerce(").concat(tt,");")):(o.emitMain("var _e = ".concat(rt,".getScopeProperty(").concat(V(J(0)),", true, false);")),"soft"===s_.COERCE_MODE&&o.emitMain("_e || console.warn('[".concat(p,"] Coerce Type not found:', ").concat(JSON.stringify(dt.name),")")),o.emitMain("".concat(yt," = _e ? _e.axCoerce(").concat(tt,") : ").concat(tt,";"))),o.emitEndMain();break;case pT.COERCE_A:o.emitMain("");break;case pT.COERCE_S:if(4&r&&(z.name===pT.PUSHNULL||z.name===pT.PUSHUNDEFINED)){o.emitMain("// SKIP_NULL_COERCE");break}o.popAnyAlias(K(0,!1)),o.emitMain("".concat(K(0)," = context.axCoerceString(").concat(tt,");"));break;case pT.ESC_XELEM:o.popAnyAlias(K(0,!1)),o.emitMain("".concat(K(0)," = context.escXElem(").concat(tt,");"));break;case pT.ESC_XATTR:o.popAnyAlias(K(0,!1)),o.emitMain("".concat(K(0)," = context.escXAttr(").concat(tt,");"));break;case pT.CONVERT_I:o.popAnyAlias(K(0,!1)),o.emitMain("".concat(K(0)," |= 0;"));break;case pT.CONVERT_D:o.popAnyAlias(K(0,!1)),o.emitMain("".concat(K(0)," = +").concat(tt,";"));break;case pT.CONVERT_B:o.popAnyAlias(K(0,!1)),o.emitMain("".concat(K(0)," = !!").concat(tt,";"));break;case pT.CONVERT_U:o.popAnyAlias(K(0,!1)),o.emitMain("".concat(K(0)," >>>= 0;"));break;case pT.CONVERT_S:o.popAnyAlias(K(0,!1)),o.emitMain("if (typeof ".concat(tt," !== 'string') ").concat(K(0)," = ").concat(tt," + '';"));break;case pT.CONVERT_O:o.emitMain("");break;case pT.CHECKFILTER:o.popAnyAlias(K(0,!1)),o.emitMain("".concat(tt," = context.axCheckFilter(sec, ").concat(tt,");"));break;case pT.KILL:o.emitMain("// Redundant oppcode KILL, prevent optimisations");break;default:if(8&r||$T(o),H.name<=pT.LI8&&H.name>=pT.SF64)return o.emitMain("//unknown instruction ".concat(pP[y[U].name])),{error:{message:"unhandled instruction "+H,reason:"unhandled_instruction"}}}}if(G=m?m[H.position]:null)(Z=o.openTryCatchGroups.pop())&&JT(o,Z)}o.openTryCatchGroups.length>0&&((Z=o.openTryCatchGroups.pop())&&JT(o,Z));Q&&(o.emitEndMain(),o.emitEndMain()),o.emitEndMain();for(var Mt=[],Bt=0,Nt=k;Bt<Nt.length;Bt++){(Lt=Nt[Bt])&&(Lt.die&&Mt.push("".concat(R,"// local").concat(Lt.index," is assigned before read, skip init")),Mt.push("".concat(R,"let local").concat(Lt.index," = undefined")),M||Lt.index!=O.length+1||Lt.die||(Mt.push(" if(arguments && arguments.length) { local".concat(Lt.index," = context.sec.createArrayUnsafe(Array.from(arguments).slice(").concat(O.length,")); }")),Mt.push(" else { local".concat(Lt.index," = context.emptyArray; }"))))}if(o.noHoistMultiname)o.emitHead("let $names = context.names;",R);else{U=0;for(var Lt=this.state.names.length;U<Lt;U++)o.emitHead("let ".concat(KT(o,U)," = context.names[").concat(U,"];"),R)}E[F]=Mt.join("\n");var Rt=["const AX_CLASS_SYMBOL = context.AX_CLASS_SYMBOL;"],Ft=[],kt=o.mainBlock;c(s)&&(Rt.push(s.genHeader(o.indent)),Ft.push(s.genBody(o.indent)),kt=s.genPost(kt));var Ut="/*\n\tIndex: ".concat(h.index,"\n\tPath: ").concat(h.classPath,"\n\tType: ").concat(h.type,"\n\tKind: ").concat(h.kind,"\n\tSuper: ").concat(h.superClass||"-","\n\tReturn: ").concat(h.returnType,"\n*/\n\n")+Rt.join("\n")+o.headerBlock.join("\n")+"\n"+Ft.join("\n")+"\n"+kt.join("\n"),jt=Ut.indexOf(kT)>-1,Vt=function(t,e){t+="\n//# sourceURL=".concat(s_.HTTP_STRING,"jit/").concat(e,".js");try{return new Function("context",t)}catch(e){throw new Error("Compiler error:\n\n"+t)}}(Ut,h.filePath),Qt=-1;jt&&(Qt=Ut.split("\n").findIndex((function(t){return t.indexOf(kT)>=0}))+3),c(s)&&s.reset(),IT.end();var Gt=null;return jt&&(Gt={message:"STACK UNDERRUN at http://jit/".concat(h.filePath,".js:").concat(Qt),reason:"underrun"}),{names:j,compiled:Vt,error:Gt}}self.attach_hook=function(t,e,n){if(void 0===e&&(e="begin"),!t||"function"!=typeof n)throw"Hook path should be exits and function should be a function";hP[t+"__"+e]={path:t,place:e,hook:n}};var _P=function(){function t(t,e,n){this.jsGlobal=Wp,this.axCoerceString=a_,this.axCheckFilter=iT,this.internNamespace=r_,this.AX_CLASS_SYMBOL=f_,this.mi=t,this.savedScope=e,this.rn=new u_(t.abc,0,null,null,null,null,!0),this.abc=t.abc,this.sec=t.abc.applicationDomain.sec,this.names=n,this.emptyArray=Object.create(this.sec.AXArray.tPrototype),this.emptyArray.value=[]}return Object.defineProperty(t.prototype,"domainMemory",{get:function(){return this.domain||(this.domain=this.sec.flash.system.ApplicationDomain.axClass.currentDomain,this.domain)?this.domain.internal_memoryView:(console.warn("[JIT] Try access to domainMemory on unresolved ApplicationDomain!"),null)},enumerable:!1,configurable:!0}),t.prototype.getRegExp=function(e){var n=e.join("|");return t.REG_EXP_CACHE[n]||(t.REG_EXP_CACHE[n]=this.sec.AXRegExp.axConstruct(e))},t.prototype.coerceReturn=function(t){var e=this.mi.getType();return e?e.axCoerce(t):t},t.prototype.createFunction=function(t,e,n,i){var r=this.abc.getMethodInfo(t);return void 0!==i&&(r.parentInfo=r.parentInfo||this.abc.getMethodInfo(i)),this.sec.createFunction(r,e,n)},t.prototype.escXElem=function(t){return dD(this.sec,t)},t.prototype.escXAttr=function(t){return fD(t)},t.prototype.executeHook=function(t,e){var n=hP[e];n&&n.hook(t)},t.prototype.getTopLevel=function(t,e){var n=this.savedScope.findScopeProperty(this.names[t],!0,!1);return e?n[e]:n},t.prototype.getStaticImportExt=function(t,e){return null},t.prototype.typeof=function(t){var e=typeof t,n=this.sec;switch(e){case"boolean":return"Boolean";case"object":if(null===t)return"object";if(n.AXXMLList.dPrototype.isPrototypeOf(t)||n.AXXML.dPrototype.isPrototypeOf(t))return"xml";if(n.AXNumber.dPrototype.isPrototypeOf(t))return"number";if(n.AXBoolean.dPrototype.isPrototypeOf(t))return"Boolean";if(n.AXString.dPrototype.isPrototypeOf(t))return"string"}return e},t.prototype.call=function(t,e,n,i){return void 0===i&&(i=null),i&&"getDefinitionByName"==t.methodInfo.trait.multiname.name?this.getdefinitionbyname(i,e,n):(O_(this.sec,t,n.length),t.axApply(e,n))},t.prototype.getdefinitionbyname=function(t,e,n){return t.global.object.scriptInfo.abc.applicationDomain.getClass(u_.FromSimpleName(n[0].toString()))},t.prototype.getpropertydyn=function(t,e){var n=this.sec.box(e);if("number"==typeof t)return n.axGetNumericProperty(t);var i=n["$Bg"+t.name];return null!=i&&"function"!=typeof i?i:n.axGetProperty(t)},t.prototype.setproperty=function(t,e,n){if(null==n)throw this.sec.createError("Error","[AVM2] Unexpected property assignment: ".concat(typeof n,"[").concat(JSON.stringify(null==t?void 0:t.name),"] = ").concat(null==e?void 0:e.toString()));if("number"==typeof t)return n.axSetNumericProperty(t,e);n.axSetProperty(t,e,pT.INITPROPERTY)},t.prototype.deleteproperty=function(t,e){var n=this.sec.box(e);return"number"==typeof t||"string"==typeof t?delete n[t]:n.axDeleteProperty(t)},t.prototype.constructExt=function(t,e,n){return n=n||t.classInfo.instanceInfo.getName(),null},t.prototype.constructFast=function(t,e,n){return cP(n?t[t.axResolveMultiname(n)]:t,e)},t.prototype.construct=function(t,e){t.classInfo.instanceInfo.getName();return M_(this.sec,t,e.length),t.axConstruct(e)},t.prototype.constructprop=function(t,e,n){var i=this.sec.box(e),r=i.axResolveMultiname(t),o=i[r];return M_(i.sec,o,n.length),o.axConstruct(n)},t.prototype.pushwith=function(t,e){var n=this.sec.box(e);return t.object===n&&1==t.isWith?t:new JD(t,n,!0)},t.prototype.hasnext2=function(e,n){var i=t.HAS_NEXT_INFO;return null==e?[null,0]:(i.next(e[f_]?e:this.sec.box(e),n),[i.object,i.index])},t.prototype.runtimename=function(t,e,n){if(this.rn.resolved={},this.rn.script=null,this.rn.numeric=!1,this.rn.id=t.id,this.rn.kind=t.kind,t.isRuntimeName()){var i=e;if(null==i)console.warn("[AVM2 SetProperty DYN] Key is ".concat(i,", are you sure that this is valid?")),i=""+i;else{if("object"==typeof i&&i.axClass===this.sec.AXQName)return i=i.name,this.rn.kind=t.isAttribute()?18:17,this.rn.id=i.id,this.rn.name=i.name,this.rn.namespaces=i.namespaces,this.rn;if("number"==typeof i)this.rn.numeric=!0,this.rn.numericValue=i;else{var r=I_(i);bd(r)&&(this.rn.numeric=!0,this.rn.numericValue=+r)}}this.rn.name=i,this.rn.id=-1}else this.rn.name=t.name,n=e;if(t.isRuntimeNamespace()){var o=n;o._ns&&(o=o._ns),this.rn.namespaces=[o],this.rn.id=-1}else this.rn.namespaces=t.namespaces;return this.rn},t.REG_EXP_CACHE={},t.HAS_NEXT_INFO=new ZD(null,0),t}(),mP=function(t){function e(e,n,i,r){var o=t.call(this,r)||this;return o.abc=e,o.instanceInfo=n,o.initializer=i,o.traits=r,o.trait=null,o.runtimeTraits=null,o}return L_(e,t),e.prototype.getNativeMetadata=function(){if(!this.trait)return null;var t=this.trait.getMetadata();if(!t)return null;for(var e=0;e<t.length;e++)if("native"===t[e].getName())return t[e];return null},e.prototype.getInitializer=function(){return"number"==typeof this.initializer&&(this.initializer=this.abc.getMethodInfo(this.initializer),this.initializer.classInfo=this),this.initializer},e.prototype.toString=function(){return"ClassInfo "+this.instanceInfo.getName()},e.prototype.trace=function(t){t.enter("ClassInfo"),this.traits.trace(t),t.outdent()},e}(eP),yP=function(){function t(t,e,n){this.abc=t,this.kind=e,this.multiname=n,this.metadata=null,this.holder=null}return t.prototype.getMetadata=function(){if(!this.metadata)return null;if(this.metadata instanceof Uint32Array){for(var t=new Array(this.metadata.length),e=0;e<this.metadata.length;e++)t[e]=this.abc.getMetadataInfo(this.metadata[e]);this.metadata=t}return this.metadata},t.prototype.toString=function(){return t=this.kind,String(t)+" "+this.multiname;var t},t.prototype.toFlashlogString=function(){return this.multiname.toFlashlogString()},t.prototype.isConst=function(){return 6===this.kind},t.prototype.isSlot=function(){return 0===this.kind},t.prototype.isMethod=function(){return 1===this.kind},t.prototype.isGetter=function(){return 2===this.kind},t.prototype.isSetter=function(){return 3===this.kind},t.prototype.isAccessor=function(){return 2===this.kind||3===this.kind},t.prototype.isMethodOrAccessor=function(){return this.isAccessor()||1===this.kind},t}(),AP=function(t){function e(e,n,i,r){var o=t.call(this,e,n,i)||this;return o.abc=e,o.kind=n,o.multiname=i,o.methodInfo=r,o.method=null,o}return L_(e,t),e}(yP),vP=0,bP=/^[a-zA-Z_$][0-9a-zA-Z_$]*$/;function CP(t){return bP.test(t)}var xP={};var IP=100,EP=0,wP=function(){function t(t){this.parent=t,this.stack=[],this.isWith=[]}return t.prototype.push=function(t,e){this.stack.push(t),this.isWith.push(!!e)},t.prototype.get=function(t){return this.stack[t]},t.prototype.clear=function(){this.stack.length=0,this.isWith.length=0},t.prototype.pop=function(){this.isWith.pop(),this.stack.pop(),this.scopes&&this.scopes.length>this.stack.length&&this.scopes.length--},t.prototype.topScope=function(){if(!this.scopes){if(0===this.stack.length)return this.parent;this.scopes=[]}for(var t=this.parent,e=0;e<this.stack.length;e++){var n=this.stack[e],i=this.isWith[e],r=this.scopes[e];r&&r.parent===t&&r.object===n&&r.isWith===i||(r=this.scopes[e]=new JD(t,n,i)),t=r}return t},t}();function SP(t,e,n){if(n.resolved={},n.script=null,n.numeric=!1,n.id=e.id,n.kind=e.kind,e.isRuntimeName()){var i=t.pop();if(i&&i.axClass&&i.axClass===i.sec.AXQName)return i=i.name,n.kind=e.isAttribute()?18:17,n.id=i.id,n.name=i.name,void(n.namespaces=i.namespaces);("number"==typeof i||bd(I_(i)))&&(n.numeric=!0,n.numericValue=+I_(i)),n.name=i,n.id=-1}else n.name=e.name;if(e.isRuntimeNamespace()){var r=t.pop();r._ns&&(r=r._ns),n.namespaces=[r],n.id=-1}else n.namespaces=e.namespaces}function DP(t,e,n){try{t.meta=t.meta||function(t,e){var n,i,r,o=(""+e).padLeft("0",4),a=t.getName().replace(/([^a-z0-9]+)/gi,"_"),s=!0,u="__root__/".concat(o,"_").concat(a||"unknown"),l=u,c=a,h=!0,p="Public",d=void 0;t.trait&&(t.trait.holder instanceof mP?(l=t.trait.holder.instanceInfo.getClassName().replace(/\./g,"/"),h=!1):t.trait.holder instanceof nP&&(l=t.trait.holder.getClassName().replace(/\./g,"/"),d=null===(n=t.trait.holder.getSuperName())||void 0===n?void 0:n.toFQNString(!1).replace(/\./g,"/")),t.trait instanceof AP&&(c=t.trait.multiname.name,p=e_[t.trait.multiname.namespace.type]),t.trait&&2===t.trait.kind&&(c="get_"+c),t.trait&&3===t.trait.kind&&(c="set_"+c),c=t.isConstructor?"constructor":h?"m_"+c:c,s=!1,void 0!==xP[u=l+"/"+c]?u+="$"+(xP[u]=xP[u]+1):xP[u]=0),t.instanceInfo&&(l=t.instanceInfo.getClassName().replace(/\./g,"/"),c=t.isConstructor?"constructor":a,d=null===(i=t.instanceInfo.getSuperName())||void 0===i?void 0:i.toFQNString(!1).replace(/\./g,"/"),s=!1,u=l+"/"+c);var f="".concat(l).concat(h?"::":".").concat(c);return t.parentInfo&&s&&(f=u=t.parentInfo.meta.filePath+"/"+"".concat(o,"_").concat(c)),{index:t.index(),filePath:u,classPath:f,name:c,type:p,superClass:d,returnType:(null===(r=t.getTypeName())||void 0===r?void 0:r.toString())||"*",isValidName:CP(c),isValidPath:CP(l.replace("/","_")),kind:t.trait&&tP[t.trait.kind]}}(t,vP++)}catch(t){console.warn("[Interpret] Fail reconstruct method metadata:",t)}if(jg.forceINT&&!s_.NO_FALL_TO_INT)try{var i=PP(t,e,n);return um&&um.leave("< "+t.trait),i}catch(t){throw t}if(null==t.getBody())return function(){};if("pending"===t.state){var r=gP(t,{scope:e});r.error?t.error=r.error:(t.compiled=r.compiled,t.names=r.names)}if("compiled"===t.state)return t.useCount++,t.compiled(new _P(t,e,t.names));if(s_.NO_FALL_TO_INT)throw console.warn("[Interpret] NO_FALL_TO_INT is used, interpret is disable. Fix JIT machin or disable NO_FALL_TO_INT"),t.error.message+"\n Method:"+t.meta.classPath;return t.useCount++,PP(t,e,n)}var TP=function(){function t(t,e,n,i,r){this.pc=0,this.stack=[],this.hasNext2Infos=null;var o=this.body=e.getBody();this.code=o.code,this.scopes=new wP(n);for(var a,s=this.locals=[t],u=this.app=e.abc.applicationDomain,l=this.sec=u.sec,c=i.length,h=0,p=e.parameters.length;h<p;h++){var d=e.parameters[h];a=h<c?i[h]:d.hasOptionalValue()?d.getOptionalValue():void 0;var f=d.getType();if(f&&!f.isAnyName()){var g=n.getScopeProperty(f,!0,!1);if(!g){if(!("axClass"in t)||!t.axClass.name.matches(f))continue;g=t.axClass}a=g.axCoerce(a)}s.push(a)}if(e.needsRest())s.push(l.createArrayUnsafe(lm(i,e.parameters.length)));else if(e.needsArguments()){var _=lm(i,0),m=Object.create(l.argumentsPrototype);m.value=_,m.callee=r,m.receiver=t,m.methodInfo=e,s.push(m)}}return t.prototype.bc=function(){return this.code[this.pc++]},t.prototype.u30=function(){var t=this.code,e=this.pc,n=t[e++];return 128&n&&16384&(n=127&n|t[e++]<<7)&&2097152&(n=16383&n|t[e++]<<14)&&268435456&(n=2097151&n|t[e++]<<21)&&(n=268435455&n|t[e++]<<28,n&=4294967295),this.pc=e,n>>>0},t.prototype.s24=function(){var t=this.code,e=this.pc,n=t[e]|t[e+1]<<8|t[e+2]<<16;return this.pc=e+3,n<<8>>8},t.prototype.getHasNext2Info=function(){var t=this.pc,e=this.hasNext2Infos;return e||(e=this.hasNext2Infos=[]),e[t]||(e[t]=new ZD(null,0)),e[t]},t}();function PP(t,e,n){return t.error&&t.useCount<=1&&(++EP<IP?console.error("[INTERPRET] Compilation failed",t.error.reason,t.error.message):console.debug("[INTERPRET] To many compiler failings:",EP)),function(){var i,r,o,a,s,u,l,c,h=new TP(this,t,e,arguments,n),p=h.stack,d=h.locals,f=h.scopes,g=h.sec,_=t.abc,m=new u_(_,0,null,null,null,null,!0),y=[],A=0,v=F_.length;F_.push(h.scopes);t:for(;;){var b=void 0;try{switch(b=h.bc()){case 9:continue;case 3:throw p.pop();case 8:d[h.u30()]=void 0;break;case 12:case 24:u=h.s24(),p.pop()<=p.pop()&&(h.pc+=u);continue;case 13:case 23:u=h.s24(),p.pop()<p.pop()&&(h.pc+=u);continue;case 14:case 22:u=h.s24(),p.pop()>=p.pop()&&(h.pc+=u);continue;case 15:case 21:u=h.s24(),p.pop()>p.pop()&&(h.pc+=u);continue;case 16:h.pc=h.s24()+h.pc;continue;case 17:u=h.s24(),p.pop()&&(h.pc+=u);continue;case 18:u=h.s24(),p.pop()||(h.pc+=u);continue;case 19:u=h.s24(),tT(p.pop(),p.pop(),g)&&(h.pc+=u);continue;case 20:u=h.s24(),tT(p.pop(),p.pop(),g)||(h.pc+=u);continue;case 25:u=h.s24(),p.pop()==p.pop()&&(h.pc+=u);continue;case 26:u=h.s24(),p.pop()!=p.pop()&&(h.pc+=u);continue;case 27:var C=h.pc-1;u=h.s24();var x=h.u30();(l=p.pop())<=x&&(h.pc+=3*l,u=h.s24()),h.pc=C+u;continue;case 29:f.pop();break;case 30:p[p.length-2]=g.box(p[p.length-2]).axNextName(p.pop());break;case 35:p[p.length-2]=g.box(p[p.length-2]).axNextValue(p.pop());break;case 50:var I=h.getHasNext2Info(),E=h.u30(),w=h.u30();I.next(g.box(d[E]),d[w]),d[E]=I.object,d[w]=I.index,p.push(!!I.index);break;case 32:p.push(null);break;case 33:p.push(void 0);break;case 36:p.push(h.code[h.pc++]<<24>>24);break;case 37:p.push(h.u30()<<16>>16);break;case 44:p.push(_.getString(h.u30()));break;case 45:p.push(_.ints[h.u30()]);break;case 46:p.push(_.uints[h.u30()]);break;case 47:p.push(_.doubles[h.u30()]);break;case 38:p.push(!0);break;case 39:p.push(!1);break;case 40:p.push(NaN);break;case 41:p.pop();break;case 42:p.push(p[p.length-1]);break;case 43:i=p[p.length-1],p[p.length-1]=p[p.length-2],p[p.length-2]=i;break;case 48:f.push(g.box(p.pop()),!1);break;case 28:f.push(g.box(p.pop()),!0);break;case 49:p.push(g.AXNamespace.FromNamespace(_.getNamespace(h.u30())));break;case 64:p.push(g.createFunction(_.getMethodInfo(h.u30()),f.topScope(),!0));break;case 65:Yg(p,h.u30(),y),r=p.pop(),O_(g,i=p[p.length-1],y.length),p[p.length-1]=i.axApply(r,y);break;case 66:Yg(p,h.u30(),y),o=g.box(p[p.length-1]),M_(g,o,y.length),p[p.length-1]=o.axConstruct(y);break;case 71:return Pd||Qa(F_.length===v+1),void F_.length--;case 72:return i=p.pop(),t.returnTypeNameIndex&&(o=t.getType())&&(i=o.axCoerce(i)),Pd||Qa(F_.length===v+1),F_.length--,i;case 73:Yg(p,h.u30(),y),e.object.superClass.tPrototype.axInitializer.apply(p.pop(),y);break;case 74:l=h.u30(),Yg(p,h.u30(),y),SP(p,_.getMultiname(l),m),p[p.length-1]=g.box(p[p.length-1]).axConstructProperty(m,y);break;case 76:case 70:case 79:l=h.u30(),Yg(p,h.u30(),y),SP(p,_.getMultiname(l),m),c=g.box(p[p.length-1]).axCallProperty(m,y,76===b),79===b?p.length--:p[p.length-1]=c;break;case 69:case 78:l=h.u30(),Yg(p,h.u30(),y),SP(p,_.getMultiname(l),m),c=g.box(p[p.length-1]).axCallSuper(m,e,y),78===b?p.length--:p[p.length-1]=c;break;case 83:Yg(p,h.u30(),y),p[p.length-1]=g.applyType(p[p.length-1],y);break;case 85:r=Object.create(g.AXObject.tPrototype),A=h.u30();for(var S=p.length-2*A;S<p.length;S+=2)i=p[S+1],r.axSetPublicProperty(p[S],i);p.length-=2*A,p.push(r);break;case 86:r=[],A=h.u30();for(S=p.length-A;S<p.length;S++)r.push(p[S]);p.length-=A,p.push(g.AXArray.axBox(r));break;case 87:p.push(g.createActivation(t,f.topScope()));break;case 88:i=p[p.length-1],p[p.length-1]=g.createClass(_.classes[h.u30()],i,f.topScope());break;case 89:SP(p,_.getMultiname(h.u30()),m),void 0===m.name&&(m.name="*"),p[p.length-1]=nT(p[p.length-1],m,g);break;case 90:p.push(g.createCatch(h.body.catchBlocks[h.u30()],f.topScope()));break;case 94:case 93:SP(p,_.getMultiname(h.u30()),m),p.push(f.topScope().findScopeProperty(m,93===b,!1));break;case 96:SP(p,_.getMultiname(h.u30()),m),p.push(f.topScope().findScopeProperty(m,!0,!1).axGetProperty(m));break;case 104:case 97:i=p.pop(),SP(p,_.getMultiname(h.u30()),m),g.box(p.pop()).axSetProperty(m,i,104,t);break;case 102:SP(p,_.getMultiname(h.u30()),m),p[p.length-1]=g.box(p[p.length-1]).axGetProperty(m);break;case 106:SP(p,_.getMultiname(h.u30()),m),p[p.length-1]=g.box(p[p.length-1]).axDeleteProperty(m);break;case 4:SP(p,_.getMultiname(h.u30()),m),p[p.length-1]=g.box(p[p.length-1]).axGetSuper(m,e);break;case 5:i=p.pop(),SP(p,_.getMultiname(h.u30()),m),g.box(p.pop()).axSetSuper(m,e,i);break;case 98:p.push(d[h.u30()]);break;case 99:d[h.u30()]=p.pop();break;case 100:p.push(e.global.object);break;case 101:p.push(f.get(h.code[h.pc++]));break;case 108:p[p.length-1]=g.box(p[p.length-1]).axGetSlot(h.u30());break;case 109:i=p.pop(),g.box(p.pop()).axSetSlot(h.u30(),i);break;case 110:p[p.length-1]=e.global.object.axGetSlot(h.u30());break;case 111:i=p.pop(),e.global.object.axSetSlot(h.u30(),i);break;case 114:p[p.length-1]=fD(p[p.length-1]);break;case 113:p[p.length-1]=dD(g,p[p.length-1]);break;case 131:case 115:p[p.length-1]|=0;break;case 136:case 116:p[p.length-1]>>>=0;break;case 132:case 117:p[p.length-1]=+p[p.length-1];break;case 129:case 118:p[p.length-1]=!!p[p.length-1];break;case 133:p[p.length-1]=a_(p[p.length-1]);break;case 112:p[p.length-1]=rT(p[p.length-1]);break;case 120:p[p.length-1]=iT(g,p[p.length-1]);break;case 128:SP(p,_.getMultiname(h.u30()),m),p[p.length-1]=f.topScope().getScopeProperty(m,!0,!1).axCoerce(p[p.length-1]);break;case 130:case 2:case 1:break;case 134:SP(p,_.getMultiname(h.u30()),m),p[p.length-1]=f.topScope().getScopeProperty(m,!0,!1).axAsType(p[p.length-1]);break;case 135:p[p.length-2]=p.pop().axAsType(p[p.length-1]);break;case 137:r=p[p.length-1],p[p.length-1]=null==r?null:r;break;case 144:p[p.length-1]=-p[p.length-1];break;case 145:++p[p.length-1];break;case 146:++d[h.u30()];break;case 147:--p[p.length-1];break;case 148:--d[h.u30()];break;case 149:p[p.length-1]=aT(p[p.length-1],g);break;case 150:p[p.length-1]=!p[p.length-1];break;case 151:p[p.length-1]=~p[p.length-1];break;case 160:s=p.pop(),a=p[p.length-1],p[p.length-1]="number"==typeof a&&"number"==typeof s?a+s:oT(a,s,g);break;case 161:p[p.length-2]-=p.pop();break;case 162:p[p.length-2]*=p.pop();break;case 163:p[p.length-2]/=p.pop();break;case 164:p[p.length-2]%=p.pop();break;case 165:p[p.length-2]<<=p.pop();break;case 166:p[p.length-2]>>=p.pop();break;case 167:p[p.length-2]>>>=p.pop();break;case 168:p[p.length-2]&=p.pop();break;case 169:p[p.length-2]|=p.pop();break;case 170:p[p.length-2]^=p.pop();break;case 171:p[p.length-2]=tT(p[p.length-2],p.pop(),g);break;case 172:p[p.length-2]=p[p.length-2]===p.pop();break;case 173:p[p.length-2]=p[p.length-2]<p.pop();break;case 174:p[p.length-2]=p[p.length-2]<=p.pop();break;case 175:p[p.length-2]=p[p.length-2]>p.pop();break;case 176:p[p.length-2]=p[p.length-2]>=p.pop();break;case 177:p[p.length-2]=p.pop().axIsInstanceOf(p[p.length-1]);break;case 178:SP(p,_.getMultiname(h.u30()),m),p[p.length-1]=f.topScope().findScopeProperty(m,!0,!1).axIsType(p[p.length-1]);break;case 179:p[p.length-2]=p.pop().axIsType(p[p.length-1]);break;case 180:o=g.box(p.pop());var D=p[p.length-1];p[p.length-1]=D&&D.axClass===g.AXQName?o.axHasProperty(D.name):o.axHasPublicProperty(D);break;case 192:p[p.length-1]=1+(0|p[p.length-1]);break;case 193:p[p.length-1]=(0|p[p.length-1])-1;break;case 194:d[l=h.u30()]=1+(0|d[l]);break;case 195:d[l=h.u30()]=(0|d[l])-1;break;case 196:p[p.length-1]=-(0|p[p.length-1]);break;case 197:p[p.length-2]=(0|p[p.length-2])+(0|p.pop())|0;break;case 198:p[p.length-2]=(0|p[p.length-2])-(0|p.pop())|0;break;case 199:p[p.length-2]=(0|p[p.length-2])*(0|p.pop())|0;break;case 208:p.push(d[0]);break;case 209:p.push(d[1]);break;case 210:p.push(d[2]);break;case 211:p.push(d[3]);break;case 212:d[0]=p.pop();break;case 213:d[1]=p.pop();break;case 214:d[2]=p.pop();break;case 215:d[3]=p.pop();break;case 6:f.topScope().defaultNamespace=r_(0,_.getString(h.u30()));break;case 7:f.topScope().defaultNamespace=r_(0,p.pop());break;case 239:h.pc++,h.u30(),h.pc++,h.u30();break;case 240:case 241:h.u30();break;default:sT(b)}}catch(t){var T=t;v_(T)||(T=OP(g,T,b,i,o,a,s,m,v+1));var P=h.body.catchBlocks;for(S=0;S<P.length;S++){var O=P[S];if(h.pc>=O.start&&h.pc<=O.end){var M=O.type;if(!M||h.app.getClass(M).axIsType(T)){p.length=0,p.push(T),f.clear(),h.pc=O.target;continue t}}}throw F_.length--,T}}}}function OP(t,e,n,i,r,o,a,s,u){var l,c=e instanceof Error&&"string"==typeof e.name&&"string"==typeof e.message;if(c)if(e instanceof RangeError||"InternalError"===e.name){var h=Object.create(t.AXError.tPrototype);if(h._errorID=1023,"allocation size overflow"===e.message)return h.$Bgmessage="allocation size overflow",h;if(e.message.indexOf("recursion")>-1||e.message.indexOf("call stack size exceeded")>-1)return h.$Bgmessage="Stack overflow occurred",F_.length=u,h}else if(e instanceof TypeError){if(e.message.indexOf("convert")>-1&&(e.message.indexOf("to primitive")>-1||e.message.indexOf("to string")>-1))return t.createError("TypeError",w_.ConvertToPrimitiveError,"value");if("Conversion to Array failed"===e.message)return t.createError("TypeError",w_.CheckTypeFailedError,"value","Array")}var p,d=!1;switch(n){case 65:if(!i||!i.axApply)return t.createError("TypeError",w_.CallOfNonFunctionError,"value");break;case 66:if(!r||!r.axConstruct)return t.createError("TypeError",w_.ConstructOfNonFunctionError);break;case 88:if(!i||!t.AXClass.axIsType(i))return t.createError("VerifyError",w_.InvalidBaseClassError);break;case 78:case 73:d=!0;case 70:case 79:case 76:case 74:case 69:if(null===r)return t.createError("TypeError",w_.ConvertNullToObjectError);if(void 0===r)return t.createError("TypeError",w_.ConvertUndefinedToObjectError);if(!(r.axResolveMultiname(s)in r)){var f=d?r.axClass.superClass:r.axClass;return f.classInfo.instanceInfo.isSealed()?t.createError("ReferenceError",w_.ReadSealedError,s.name,f.name.toFQNString(!1)):t.createError("TypeError",d?w_.ConstructOfNonFunctionError:w_.CallOfNonFunctionError,s.name)}if(c&&"RangeError"===e.name&&(e.message.indexOf("arguments array passed")>-1||e.message.indexOf("call stack size")>-1))return t.createError("RangeError",w_.StackOverflowError);break;case 4:d=!0;case 102:if(null===r)return t.createError("TypeError",w_.ConvertNullToObjectError);if(void 0===r)return t.createError("TypeError",w_.ConvertUndefinedToObjectError);break;case 104:case 97:if(null===r)return t.createError("TypeError",w_.ConvertNullToObjectError);if(void 0===r)return t.createError("TypeError",w_.ConvertUndefinedToObjectError);var g=r.axResolveMultiname(s);if(g in r&&!1===function(t,e){do{var n=Object.getOwnPropertyDescriptor(t,e);if(n)return n;t=Object.getPrototypeOf(t)}while(t);return null}(r,g).writable)return t.createError("ReferenceError",w_.ConstWriteError,g,r.axClass.name.name);break;case 177:if(!r||!r.axIsInstanceOf)return t.createError("TypeError",w_.CantUseInstanceofOnNonObjectError);break;case 134:case 135:if(r&&!r.axAsType)return t.createError("TypeError",w_.ConvertNullToObjectError);case 178:case 179:if(null===r)return t.createError("TypeError",w_.ConvertNullToObjectError);if(void 0===r)return t.createError("TypeError",w_.ConvertUndefinedToObjectError);if(!r.axIsType)return t.createError("TypeError",w_.IsTypeMustBeClassError);break;case 128:if(!r)return t.createError("ReferenceError",w_.ClassNotFoundError,s.toFQNString(!1));break;case 180:if(null===r)return t.createError("TypeError",w_.ConvertNullToObjectError);if(void 0===r)return t.createError("TypeError",w_.ConvertUndefinedToObjectError);break;case 19:case 20:case 171:if(typeof o!=typeof a&&("object"==typeof o&&o&&"object"!=typeof a||"object"==typeof a&&a&&"object"!=typeof o))return t.createError("TypeError",w_.ConvertToPrimitiveError,"Object");break;default:if(!e||"string"!=typeof e.message||"string"!=typeof e.stack||"string"!=typeof e.name)break;l=e.message;var _=e.stack.split("\n"),m=0===_[0].indexOf("at ")?_[0].substr(3):_[0];if("TypeError"===e.name)if(0===m.indexOf("AXBasePrototype_valueOf")||0===m.indexOf("AXBasePrototype_toString"))return t.createError("TypeError",w_.CallOfNonFunctionError,"value")}l="Uncaught VM-internal exception during op "+sT(n)+": ";try{l+=e.toString(),p=e.stack}catch(t){l+="[Failed to stringify exception]"}return t.player,console.error(l,"\n",p),t.createError("Error",w_.InternalErrorIV)}var MP=function(){function t(t,e){this.sec=t,this.parent=e,this.system=e?e.system:this,this._abcs=[],this._binarySymbols={}}return t.prototype.addBinarySymbol=function(t){this._binarySymbols[t.className]=t},t.prototype.getBinarySymbol=function(t){return this._binarySymbols[t]},t.prototype.loadABC=function(t){Qa(this._abcs.indexOf(t)<0),this._abcs.push(t)},t.prototype.loadAndExecuteABC=function(t){this.loadABC(t),this.executeABC(t)},t.prototype.executeABC=function(t){var e=t.scripts[t.scripts.length-1];this.executeScript(e)},t.prototype.findClassInfoDeep=function(t){var e=this.findClassInfo(t);return e||(this.parent&&(e=this.parent.findClassInfo(t))?e:null)},t.prototype.findClassInfo=function(t){for(var e="string"==typeof t?t:t.name,n="string"==typeof t?"":t.namespaces[0].uri,i=0;i<this._abcs.length;i++)for(var r=this._abcs[i],o=0;o<r.instances.length;o++){var a=r.classes[o],s=a.instanceInfo.getName();if(s.name===e&&s.namespaces[0].uri==n)return a}return null},t.prototype.executeScript=function(t){Qa(0===t.state);var e=this.sec.createAXGlobal(this,t);t.global=e,t.state=1,DP(t.getInitializer(),e.scope,null).apply(e,[]),t.state=2},t.prototype.findProperty=function(t,e,n){var i=this.findDefiningScript(t,n);return i?i.global:null},t.prototype.getClass=function(t){var e=this.getProperty(t,!0,!0);return e&&!e.axApplicationDomain&&(e.axApplicationDomain=this),e},t.prototype.getProperty=function(t,e,n){var i=this.findProperty(t,e,n);if(i)return i.axGetProperty(t);"void"!=t.name&&this.sec.throwError("ReferenceError",w_.DefinitionNotFoundError,t.name)},t.prototype.findDefiningScript=function(t,e){if(t.script)return t.script;var n;if(this.parent&&(n=this.parent.findDefiningScript(t,e)))return n;for(var i=0;i<this._abcs.length;i++){var r=this._abcs[i];if(n=this._findDefiningScriptInABC(r,t,e))return t.mutable||(t.script=n),n}var o=this.system.sec.findDefiningABC(t);return o?(this.loadABC(o),n=this._findDefiningScriptInABC(o,t,e),t.mutable||(t.script=n),n):null},t.prototype._findDefiningScriptInABC=function(t,e,n){for(var i=t.scripts,r=0;r<i.length;r++){var o=i[r];if(o.traits.getTrait(e))return n&&0===o.state&&this.executeScript(o),o}return null},t}();function BP(t,e){for(var n=0;n<t.length;n++){var i=t[n];if(i.indexOf(e)>=0){var r="!"===i[i.length-1];if(r&&(i=i.slice(0,i.length-1)),e!==i)continue;return r}}return!1}function NP(t,e,n){for(var i=0;i<e.traits.length;i++){var r=e.traits[i],o=r.multiname,a=o.name;if(o.namespace,BP(t,a)){if(r.isConst())return;var s=o.getMangledName();r.isSlot()?Object.defineProperty(n,a,{get:new Function("","return this."+s+"//# sourceURL=get-"+s+".as"),set:new Function("v","this."+s+" = v;//# sourceURL=set-"+s+".as")}):r.isGetter()?Object.defineProperty(n,a,{get:new Function("","return this."+s+"//# sourceURL=get-"+s+".as")}):r.toString()}}}function LP(t){return 0!==t.indexOf("native_")}var RP=["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"];function FP(t){var e=t.classInfo.instanceInfo.getClassName(),n=sD[e]||uD[e];n&&function(t,e){if(t.asClass=e,e.classSymbols&&NP(e.classSymbols,t.classInfo.traits,t),e.instanceSymbols&&NP(e.instanceSymbols,t.classInfo.instanceInfo.traits,t.tPrototype),e.classNatives)for(var n=0;n<e.classNatives.length;n++)Hg(t,e.classNatives[n],LP);if(Hg(t,e,LP,!0,!0),t.superClass,e.instanceNatives)for(n=0;n<e.instanceNatives.length;n++)Hg(t.dPrototype,e.instanceNatives[n],LP);Hg(t.dPrototype,e.prototype,LP),function(t,e,n){for(var i=0;i<n.length;i++){var r=n[i];t[r]=e[r]}}(t.dPrototype,e.prototype,RP),e.classInitializer&&e.classInitializer.call(t,e)}(t,n)}var kP=function(t,e){for(var n=0,i=t.length;n<i;n++)e[t[n]]||(e[t[n]]=Object.create(null)),e=e[t[n]];return e};function UP(t,e,n,i,r){var o=i.split("."),a=o.pop();!function(t,e,n,i){Object.defineProperty(e,i,{get:function(){var r=t.getClass(n),o=function(){return r.axConstruct(arguments)};return o.axIsType=function(t){return r.axIsType(t)},o.axClass=r,Object.defineProperty(e,i,{value:o,writable:!1}),o},configurable:!0})}(t,e=kP(o,e),u_.FromFQNString(n,r),a)}function jP(){this.sec.throwError("VerifierError",w_.NotImplementedError,this.name.name)}function VP(t){return!1}function QP(t){return!(!t||"object"!=typeof t)&&t.axImplementsInterface(this)}function GP(t,e){zg(t,"traits",e);for(var n=e.getTraitsList(),i=0;i<n.length;i++){var r=n[i],o=r;o.value instanceof i_&&(o={value:BD.FromNamespace.call(t.sec.AXNamespace,o.value)}),Object.defineProperty(t,r.multiname.getMangledName(),o)}}function zP(t){return null==t?null:(!t[f_]||t.__fast__||Array.isArray(t)&&t[0]&&t[0].__fast__||this.axIsType(t)||this.sec.throwError("TypeError",w_.CheckTypeFailedError,t,this.classInfo.instanceInfo.getClassName()),t)}function HP(t){return this.dPrototype.isPrototypeOf(this.sec.box(t))}function XP(t,e){return this.axCoerce(e?e[0]:void 0)}function YP(){}function qP(){var t=this.callee;if(t)return t;if(null===this.methodInfo.trait)return console.error("arguments.callee used on trait-less methodInfo function. Probably a constructor"),null;var e=this.methodInfo.trait.name;return this.receiver.axGetProperty(e)}function KP(t){return"boolean"==typeof t}function WP(t){return"number"==typeof t}function JP(){return!1}function $P(t){return"number"==typeof t&&(0|t)===t}function ZP(t){return"number"==typeof t&&t>>>0===t}function tO(t){return t[0]}function eO(t){return this.dPrototype.isPrototypeOf(this.sec.box(t))||t===this.dPrototype}function nO(t){return t&&t.__fast__||this.axIsType(t)?t:null}function iO(t,e){var n=e[0];return null==n?Object.create(this.tPrototype):n}function rO(t){var e=t[0];return null==e?Object.create(this.tPrototype):e}function oO(t){return null==t?null:t}var aO=function(){function t(){b_(),this.system=new MP(this,null),this.application=new MP(this,this.system),this.classAliases=new jS,this.nativeClasses=Object.create(null),this.vectorClasses=new Map,this._catalogs=[]}return Object.defineProperty(t.prototype,"xmlParser",{get:function(){return this._xmlParser||(this._xmlParser=new MD(this))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"AXFunctionUndefinedPrototype",{get:function(){return this._AXFunctionUndefinedPrototype||(this._AXFunctionUndefinedPrototype=this.createObject())},enumerable:!1,configurable:!0}),t.prototype.addCatalog=function(t){this._catalogs.push(t)},t.prototype.findDefiningABC=function(t){for(var e=null,n=0;n<this._catalogs.length;n++){if(e=this._catalogs[n].getABCByMultiname(t))return e}return null},t.prototype.throwError=function(t,e,n,i,r,o){throw this.createError(t,e,n,i,r,o)},t.prototype.createError=function(t,e,n,i,r,o){var a=P_.call(null,e,n,i,r,o),s=u_.FromFQNString(t,0);return cP(this.system.getProperty(s,!0,!0),[a,e.code])},t.prototype.applyType=function(t,e){this.ObjectVector.axClass.superClass.dPrototype.isPrototypeOf(t.dPrototype)||this.throwError("TypeError",w_.TypeAppOfNonParamType),1!==e.length&&this.throwError("TypeError",w_.WrongTypeArgCountError,"__AS3__.vec::Vector",1,e.length);var n=e[0]||this.AXObject;return this.getVectorClass(n)},t.prototype.getVectorClass=function(t){var e=this.vectorClasses.get(t);if(e)return e;switch(t&&t.classInfo?t.classInfo.instanceInfo.getName().getMangledName():"$BgObject"){case"$BgNumber":case"$Bgdouble":e=this.Float64Vector.axClass;break;case"$Bgint":e=this.Int32Vector.axClass;break;case"$Bguint":e=this.Uint32Vector.axClass;break;default:e=this.createVectorClass(t)}return this.vectorClasses.set(t,e),e},t.prototype.createVectorClass=function(t){var e=this.ObjectVector.axClass,n=Object.create(e);return n.tPrototype=Object.create(e.tPrototype),n.tPrototype.axClass=n,n.tPrototype.axClassName=n.classInfo.instanceInfo.getClassName(),n.dPrototype=e.dPrototype,n.superClass=e,n.type=t,n},t.prototype.createObject=function(){return Object.create(this.AXObject.tPrototype)},t.prototype.createObjectFromJS=function(t,e){void 0===e&&(e=!1);for(var n=Object.keys(t),i=this.createObject(),r=0;r<n.length;r++){var o=t[n[r]];e&&(o=IS(this,o,!0)),i.axSetPublicProperty(n[r],o)}return i},t.prototype.createArrayUnsafe=function(t){var e=Object.create(this.AXArray.tPrototype);return e.value=t,e},t.prototype.createArray=function(t){var e=this.createArrayUnsafe([]);for(var n in t)e.axSetPublicProperty(n,t[n]);return e.length=t.length,e},t.prototype.boxFunction=function(t){var e=Object.create(this.AXFunction.tPrototype);return e.value=t,e},t.prototype.createClass=function(t,e,n){var i=t.instanceInfo,r=i.getName().toFQNString(!1),o=this.nativeClasses[r]||Object.create(this.AXClass.tPrototype),a=new JD(n,o);this.nativeClasses[r]?o.tPrototype.axInitializer=this.createInitializerFunction(t,a):i.isInterface()?(o.dPrototype=Object.create(this.objectPrototype),o.tPrototype=Object.create(o.dPrototype),o.tPrototype.axInitializer=jP,o.axIsInstanceOf=VP,o.axIsType=QP):(e===this.AXObject?o.dPrototype=Object.create(this.objectPrototype):e.dPrototype?o.dPrototype=Object.create(e.dPrototype):(o.dPrototype=Object.create(e.prototype),Object.defineProperty(o.dPrototype,ET,{value:!0})),o.tPrototype=Object.create(o.dPrototype),o.tPrototype.axInitializer=this.createInitializerFunction(t,a)),o.classInfo=o.dPrototype.classInfo=t,o.dPrototype.axClass=o,o.dPrototype.axClassName=t.instanceInfo.getClassName(),o.superClass=e,o.scope=n;var s=!!uD[r]&&uD[r].forceNativeMethods;"Object"!==r&&"Class"!==r&&this.initializeRuntimeTraits(o,e,a,s),Xg(o.dPrototype,"$Bgconstructor",o),FP(o);var u=t.getInitializer(),l=u.getBody().code;return 208===l[0]&&48===l[1]&&71===l[2]||DP(u,a,null).apply(o,[o]),o},t.prototype.initializeRuntimeTraits=function(t,e,n,i){void 0===i&&(i=!1);var r,o=t.classInfo,a=o.instanceInfo;if(t===this.AXClass)r=a.traits.resolveRuntimeTraits(null,null,n,i);else{var s=this.AXClass.classInfo.instanceInfo.runtimeTraits;r=o.traits.resolveRuntimeTraits(s,null,n.parent,i)}o.runtimeTraits=r,GP(t,r);var u=e&&e[f_]?e.classInfo.instanceInfo.runtimeTraits:null,l=o.abc.getNamespace(a.protectedNs),c=a.traits.resolveRuntimeTraits(u,l,n,i);a.runtimeTraits=c,GP(t.tPrototype,c)},t.prototype.createFunction=function(t,e,n){var i=this.boxFunction(DP(t,e,i));return i.receiver={scope:e},i},t.prototype.createInitializerFunction=function(t,e){var n=t.instanceInfo.getInitializer(),i=function(t){var e=t.instanceInfo.getInitializer(),n=t.instanceInfo.getClassName(),i=sD[n]||uD[n];return e.isNative()||(null==i?void 0:i.forceNativeConstructor)?i:null}(t);if(!i){var r=t.instanceInfo.getClassName(),o=t.abc.applicationDomain.getBinarySymbol(r);o?(o.buffer=o.data,i=function(){return nD.symbolForConstructor=o,DP(n,e,null).apply(this,arguments)}):i=DP(n,e,null),i.methodInfo=n}return i},t.prototype.createActivation=function(t,e){var n=t.getBody(),i=n.activationPrototype;return i||zg(i=n.activationPrototype=Object.create(this.AXActivationPrototype),"traits",n.traits.resolveRuntimeTraits(null,null,e)),Object.create(i)},t.prototype.createCatch=function(t,e){if(!t.catchPrototype){var n=t.getTraits();t.catchPrototype=Object.create(this.AXCatchPrototype),zg(t.catchPrototype,"traits",n.resolveRuntimeTraits(null,null,e))}return Object.create(t.catchPrototype)},t.prototype.box=function(t){if(null==t)return t;if(t.constructor===Array)return this.AXArray.axBox(t);switch(typeof t){case"number":return this.AXNumber.axBox(t);case"boolean":return this.AXBoolean.axBox(t);case"string":return this.AXString.axBox(t)}return t},t.prototype.isPrimitive=function(t){return d_(t)||this.AXPrimitiveBox.dPrototype.isPrototypeOf(t)},t.prototype.createAXGlobal=function(t,e){var n=Object.create(this.AXGlobalPrototype);n.applicationDomain=t,n.scriptInfo=e;var i=n.scope=new JD(null,n,!1),r=this.AXObject.classInfo.instanceInfo.runtimeTraits;return GP(n,e.traits.resolveRuntimeTraits(r,null,i)),n[f_]=!0,n},t.prototype.prepareRootClassPrototype=function(){var t=Object.create(this.objectPrototype),e=Object.create(t);e.$BgtoString=function(){return"[class "+this.classInfo.instanceInfo.getName().name+"]"};var n=Xg;n(e,"axBox",tO),n(e,"axCoerce",zP),n(e,"axIsType",eO),n(e,"axAsType",nO),n(e,"axIsInstanceOf",HP),n(e,"axConstruct",sP),n(e,"axApply",XP),Object.defineProperty(e,"name",{get:function(){return this.classInfo.instanceInfo.name}}),e[f_]=!0,this.rootClassPrototype=e},t.prototype.initializeCoreNatives=function(){this.prepareRootClassPrototype();var t=this.prepareNativeClass("AXClass","Class",!1);t.classInfo=this.system.findClassInfo("Class"),t.defaultValue=null;var e=this.prepareNativeClass("AXObject","Object",!1);e.classInfo=this.system.findClassInfo("Object"),e=this.AXObject,Xg(this.prepareNativeClass("AXFunction","Function",!1),"axBox",G_);var n=new JD(null,t,!1),i=this.AXObject.classInfo,r=i.instanceInfo,o=r.runtimeTraits=r.traits.resolveRuntimeTraits(null,null,n);GP(this.AXObject.tPrototype,o);var a=this.AXClass.classInfo,s=a.instanceInfo;return s.runtimeTraits=s.traits.resolveRuntimeTraits(o,null,n),GP(this.AXClass.tPrototype,s.runtimeTraits),a.runtimeTraits=a.traits.resolveRuntimeTraits(o,null,n),GP(this.AXClass,a.runtimeTraits),i.runtimeTraits=i.traits.resolveRuntimeTraits(s.runtimeTraits,null,n),GP(this.AXObject,i.runtimeTraits),e[f_]=!0,e},t.prototype.prepareNativeClass=function(t,e,n){var i=Object.create(this.rootClassPrototype);if("Object"===e)i.dPrototype=Object.getPrototypeOf(this.objectPrototype),i.tPrototype=this.objectPrototype;else if("Class"===e)i.dPrototype=Object.getPrototypeOf(this.rootClassPrototype),i.tPrototype=this.rootClassPrototype;else{var r=n?this.AXPrimitiveBox.dPrototype:"AXMethodClosure"===t?this.AXFunction.dPrototype:this.objectPrototype;i.dPrototype=Object.create(r),i.tPrototype=Object.create(i.dPrototype)}return this[t]=this.nativeClasses[e]=i,i[f_]=!0,i},t.prototype.preparePrimitiveClass=function(t,e,n,i,r,o,a){var s=this.prepareNativeClass(t,e,!0),u=Xg;return u(s,"axBox",G_),u(s,"axApply",(function(t,e){return n(e&&e.length?e[0]:i)})),u(s,"axConstruct",(function(t){return n(t&&t.length?t[0]:i)})),u(s,"axCoerce",r),u(s,"axIsType",o),u(s,"axIsInstanceOf",a),u(s.dPrototype,"value",i),s[f_]=!0,s},t.prototype.initialize=function(){var t=Xg,e=Object.create(A_);e.sec=this,Object.defineProperty(this,"objectPrototype",{value:Object.create(e)}),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 n=this.AXObject,i=this.AXFunction;t(n,"axApply",iO),t(n,"axConstruct",rO),t(n.tPrototype,"axInitializer",YP),t(n,"axCoerce",oO),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);var r=this.prepareNativeClass("AXArray","Array",!1);r.tPrototype.$BgtoString=i.axBox((function(){return this.value.toString()})),r.dPrototype.value=[],this.argumentsPrototype=Object.create(this.AXArray.tPrototype),Object.defineProperty(this.argumentsPrototype,"$Bgcallee",{get:qP}),this.prepareNativeClass("AXRegExp","RegExp",!1).dPrototype.value=/(?:)/,t(this.prepareNativeClass("AXPrimitiveBox","PrimitiveBox",!1).dPrototype,"$BgtoString",i.axBox((function(){return this.value.toString()}))),this.preparePrimitiveClass("AXBoolean","Boolean",QT,!1,QT,KP,KP),this.preparePrimitiveClass("AXString","String",rT,"",a_,KD,KD),this.preparePrimitiveClass("AXNumber","Number",bm,0,bm,WP,WP),this.preparePrimitiveClass("AXInt","int",jT,0,jT,$P,JP),this.preparePrimitiveClass("AXUint","uint",VT,0,VT,ZP,JP),function(t,e){for(var n=0;n<lD.length;n++)UP(t,e,lD[n].name,lD[n].alias,lD[n].nsType)}(this.application,this),function(t){for(var e in OS){var n=e.split("."),i=n.pop();kP(n,t)[i]=t.boxFunction(OS[e])}}(this)},t}();var sO=function(){function t(t,e,n,i){this.abc=t,this.name=e,this.keys=n,this.values=i}return t.prototype.getName=function(){return"number"==typeof this.name&&(this.name=this.abc.getString(this.name)),this.name},t.prototype.getKeyAt=function(t){return this.abc.getString(this.keys[t])},t.prototype.getValueAt=function(t){return this.abc.getString(this.values[t])},t.prototype.getValue=function(t){for(var e=0;e<this.keys.length;e++)if(this.abc.getString(this.keys[e])===t)return this.abc.getString(this.values[e]);return null},t}(),uO=function(){function t(t,e,n,i,r,o,a){this.abc=t,this._index=e,this.name=n,this.returnTypeNameIndex=i,this.parameters=r,this.optionalCount=o,this.flags=a,this.trait=null,this.scriptInfo=null,this.classInfo=null,this.instanceInfo=null,this.isConstructor=!1,this.compiled=null,this.error=null,this.useCount=0,this._body=null,this.minArgs=r.length-o}return Object.defineProperty(t.prototype,"state",{get:function(){return this.error||null==this.getBody()?"failed":this.compiled?"compiled":"pending"},enumerable:!1,configurable:!0}),t.prototype.getNativeMetadata=function(){if(!this.trait)return null;var t=this.trait.getMetadata();if(!t)return null;for(var e=0;e<t.length;e++)if("native"===t[e].getName())return t[e];return null},t.prototype.getBody=function(){return this._body||(this._body=this.abc.getMethodBodyInfo(this._index))},t.prototype.index=function(){return this._index},t.prototype.getTypeName=function(){return void 0!==this._retunTypeName||(0===this.returnTypeNameIndex?this._retunTypeName=null:this._retunTypeName=this.abc.getMultiname(this.returnTypeNameIndex)),this._retunTypeName},t.prototype.getType=function(){if(void 0!==this._returnType)return this._returnType;if(0===this.returnTypeNameIndex)this._returnType=null;else{var t=this.abc.getMultiname(this.returnTypeNameIndex);this._returnType=this.abc.applicationDomain.getClass(t)}return this._returnType},t.prototype.getName=function(){return"number"==typeof this.name?this.abc.getString(this.name)||"anonymous":this.trait?this.trait.multiname.name:"anonymous"},t.prototype.toString=function(){var t="anonymous";return this.name&&(t=this.abc.getString(this.name)),t+=" ("+this.parameters.join(", ")+")",this.returnTypeNameIndex&&(t+=": "+this.abc.getMultiname(this.returnTypeNameIndex).name),t},t.prototype.toFlashlogString=function(){var t,e,n=this.trait,i=2===n.kind?"get ":3===n.kind?"set ":"",r=n.toFlashlogString(),o=n.holder;return o&&o instanceof nP&&(i=(t=o.toFlashlogString())+"/"+i),o&&o instanceof mP&&o.trait&&(i=(t=o.trait.toFlashlogString())+"$/"+i),t&&(e=r.indexOf("::"))>0&&0===t.indexOf(r.substring(0,e+2))&&(r=r.substring(e+2)),"MTHD "+i+r+" ()"},t.prototype.isNative=function(){return!!(32&this.flags)},t.prototype.needsRest=function(){return!!(4&this.flags)},t.prototype.needsArguments=function(){return!!(1&this.flags)},t}(),lO=function(t){function e(e,n,i,r,o,a,s){var u=t.call(this,s)||this;return u.maxStack=e,u.localCount=n,u.initScopeDepth=i,u.maxScopeDepth=r,u.code=o,u.catchBlocks=a,u.traits=s,u.activationPrototype=null,u}return L_(e,t),e.prototype.trace=function(t){t.writeLn("Code: "+this.code.length);for(var e=new dT(this.code);255!==e.currentBytecode();)t.writeLn(e.currentBCI+": "+sT(e.currentBytecode())),e.next()},e}(eP),cO=function(t){function e(e,n,i){var r=t.call(this,i)||this;return r.abc=e,r.initializer=n,r.traits=i,r.global=null,r.state=0,r}return L_(e,t),e.prototype.getInitializer=function(){return this.initialiser||(this.initialiser=this.abc.getMethodInfo(this.initializer),this.initialiser.scriptInfo=this),this.initialiser},e.prototype.trace=function(t){t.enter("ScriptInfo"),this.traits.trace(t),t.outdent()},e}(eP),hO=function(){function t(t,e,n,i,r){this.abc=t,this.type=e,this.name=n,this.optionalValueKind=i,this.optionalValueIndex=r}return t.prototype.getName=function(){return"number"==typeof this.name&&(this.name=this.abc.getString(this.name)),this.name},t.prototype.getType=function(){return"number"==typeof this.type&&(this.type=this.abc.getMultiname(this.type)),this.type},t.prototype.hasOptionalValue=function(){return this.optionalValueKind>=0},t.prototype.getOptionalValue=function(){return this.abc.getConstant(this.optionalValueKind,this.optionalValueIndex)},t.prototype.toString=function(){var t="";return this.name?t+=this.getName():t+="?",this.type&&(t+=": "+this.getType().name),this.optionalValueKind>=0&&(t+=" = "+this.abc.getConstant(this.optionalValueKind,this.optionalValueIndex)),t},t}(),pO=function(){function t(t,e,n){this.multiname=t,this.kind=e,this.abc=n,this.configurable=!0,this._type=void 0,this.typeName=null}return t.prototype.getType=function(){if(void 0!==this._type)return this._type;if(null===this.typeName)return this._type=null;var t=this.abc.applicationDomain.getClass(this.typeName);return this._type=t&&t.axCoerce?t:null},t}();function dO(t,e,n){var i=(0|e)===e,r=xd(e);if(512&n&&(r||i))return null;if(r)return function(t,e){return{__proto__:t.objectPrototype,$Bgname:void 0===e?"void":"null",$BgisDynamic:!1,$BgisFinal:!0,$BgisStatic:!1,$Bgtraits:{__proto__:t.objectPrototype,$Bgvariables:null,$Bgaccessors:null,$Bgmetadata:t.createArray([]),$Bgconstructor:null,$Bginterfaces:t.createArray([]),$Bgmethods:null,$Bgbases:t.createArray([])}}}(t,e);if(e.sec&&(t=e.sec),e=t.box(e),t.AXFunction.axIsType(e))if(t.AXMethodClosure.axIsType(e)){if(512&n)return null}else if("receiver"in e)return null;var o=e.hasOwnProperty("classInfo")?e:e.axClass,a=o===e&&!(512&n),s=o.classInfo,u=t.createObject();return u.$Bgname=i?"int":s.instanceInfo.getName().toFQNString(!0),u.$BgisDynamic=a||!(1&s.instanceInfo.flags),u.$BgisFinal=a||!!(2&s.instanceInfo.flags),u.$BgisStatic=a,256&n&&(u.$Bgtraits=function(t,e,n,i){var r=t.sec,o=2&i,a=32&i&&!n,s=r.createObject(),u=s.$Bgvariables=8&i?r.createArray([]):null,l=s.$Bgaccessors=16&i?r.createArray([]):null,c=null;if(64&i&&!n){var h=e.trait.getMetadata();h&&(c=vO(r,h))}if(s.$Bgmetadata=c||r.createArray([]),s.$Bgconstructor=null,4&i){if(s.$Bginterfaces=r.createArray([]),!n){var p=s.$Bginterfaces.value;t.classInfo.instanceInfo.getInterfaces(t).forEach((function(t){return p.push(t.name.toFQNString(!0))}))}}else s.$Bginterfaces=null;var d,f=s.$Bgmethods=a?r.createArray([]):null,g=s.$Bgbases=o?r.createArray([]):null,_=Object.create(null),m=Object.create(null),y=Object.create(null),A=!1,v=e.instanceInfo.isInterface();for(;t&&(d=t.classInfo.instanceInfo.getName().toFQNString(!0),o&&A&&!n?g.push(d):A=!0,!(1024&i&&t===r.AXObject));)C(r,n?t.classInfo.traits.traits:t.classInfo.instanceInfo.traits.traits,v),t=t.superClass;if(n){if(16&i){var b=r.createObject();b.$Bgname="prototype",b.$Bgtype="*",b.$Bgaccess="readonly",b.$Bgmetadata=null,b.$Bguri=null,b.$BgdeclaredBy="Class",l.push(b)}o&&(g.pop(),g.push("Class","Object"),t=r.AXClass)}function C(t,e,r){for(var o=0;o<e.length;o++){var s=e[o],c=s.multiname,h=c.namespace;if(r||!(!h.isPublic()&&!h.uri||1&i&&h.uri)){var p=r?c.name:c.toFQNString(!0);if(m[p]===y[p]){if(!_[p]){var g=t.createObject();_[p]=g;var A=s.getMetadata();switch(s.kind){case 6:case 0:if(!(8&i))continue;g.$Bgname=p,g.$Bguri=h.reflectedURI;var v=s.typeName;g.$Bgtype=v?v.toFQNString(!0):"*",g.$Bgaccess="readwrite",g.$Bgmetadata=64&i?vO(t,A):null,u.push(g);break;case 1:if(!a)continue;var b=s.methodInfo.getType();g.$BgreturnType=b?b.name.toFQNString(!0):"*",g.$Bgmetadata=64&i?vO(t,A):null,g.$Bgname=p,g.$Bguri=h.reflectedURI;for(var C=g.$Bgparameters=t.createArray([]),x=s.methodInfo.parameters,I=0;I<x.length;I++){var E=x[I],w=t.createObject();w.$Bgtype=E.type?E.getType().toFQNString(!0):"*",w.$Bgoptional="value"in E,C.push(w)}g.$BgdeclaredBy=d,f.push(g);break;case 2:case 3:if(!(16&i)||n)continue;if(g.$Bgname=p,2===s.kind){b=s.methodInfo.getType();g.$Bgtype=b?b.name.toFQNString(!0):"*",m[p]=g}else{var S=s.methodInfo.parameters[0].getType();g.$Bgtype=S?S.toFQNString(!0):"*",y[p]=g}g.$Bgaccess=2===s.kind?"readonly":"writeonly",g.$Bgmetadata=64&i?vO(t,A):null,g.$Bguri=h.reflectedURI,g.$BgdeclaredBy=d,l.push(g)}}}else{var D=_[p];if(D.$Bgaccess="readwrite",2===s.kind){var T=s.methodInfo.getType();D.$Bgtype=T?T.name.toFQNString(!0):"*"}}}}}f&&0!==f.value.length||(s.$Bgmethods=null);u&&0!==u.value.length||(s.$Bgvariables=null);return s}(o,s,a,n)),u}var fO=new u_(null,0,7,[i_.PUBLIC],null,null,!0),gO=new u_(null,0,13,[i_.PUBLIC],null,null,!0);function _O(t,e){for(var n=0,i=e.$Bgbases&&e.$Bgbases.value,r=0;i&&r<i.length;r++){var o=i[r],a=t.sec.AXXML.Create('<extendsClass type="'+fD(o)+'"/>');t.appendChild(a),n++}var s=e.$Bginterfaces&&e.$Bginterfaces.value;for(r=0;s&&r<s.length;r++){var a=t.sec.AXXML.Create('<implementsInterface type="'+fD(s[r])+'"/>');t.appendChild(a),n++}null!==e.$Bgconstructor&&(yO(a=t.sec.AXXML.Create("<constructor/>"),e.$Bgconstructor),t.appendChild(a),n++);var u=e.$Bgvariables&&e.$Bgvariables.value;for(r=0;u&&r<u.length;r++){var l=u[r],c="readonly"===l.$Bgaccess?"constant":"variable";mO(l,a=t.sec.AXXML.Create("<"+c+' name="'+fD(l.$Bgname)+'" type="'+l.$Bgtype+'"/>'),t),n++}var h=e.$Bgaccessors&&e.$Bgaccessors.value;for(r=0;h&&r<h.length;r++){var p=h[r];mO(p,a=t.sec.AXXML.Create('<accessor name="'+fD(p.$Bgname)+'" access="'+p.$Bgaccess+'" type="'+fD(p.$Bgtype)+'" declaredBy="'+fD(p.$BgdeclaredBy)+'"/>'),t),n++}var d=e.$Bgmethods&&e.$Bgmethods.value;for(r=0;d&&r<d.length;r++){var f=d[r];yO(a=t.sec.AXXML.Create('<method name="'+fD(f.$Bgname)+'" declaredBy="'+fD(f.$BgdeclaredBy)+'" returnType="'+fD(f.$BgreturnType)+'"/>'),f.$Bgparameters.value),mO(f,a,t),n++}return AO(t,e.$Bgmetadata),n>0}function mO(t,e,n){null!==t.$Bguri&&(gO.name="uri",e.setProperty(gO,t.$Bguri)),null!==t.$Bgmetadata&&AO(e,t.$Bgmetadata),n.appendChild(e)}function yO(t,e){if(e)for(var n=0;n<e.length;n++){var i=e[n],r=t.sec.AXXML.Create('<parameter index="'+(n+1)+'" type="'+fD(i.$Bgtype)+'" optional="'+i.$Bgoptional+'"/>');t.appendChild(r)}}function AO(t,e){if(e)for(var n=e.value,i=0;i<n.length;i++){for(var r=n[i],o=t.sec.AXXML.Create('<metadata name="'+fD(r.$Bgname)+'"/>'),a=r.$Bgvalue.value,s=0;s<a.length;s++){var u=a[s],l=t.sec.AXXML.Create('<arg key="'+fD(u.$Bgkey)+'" value="'+fD(u.$Bgvalue)+'"/>');o.appendChild(l)}t.appendChild(o)}}function vO(t,e){if(!e)return null;for(var n=t.createArray([]),i=0;i<e.length;i++){var r=e[i];"native"!==r.getName()&&n.push(bO(t,r))}return n}function bO(t,e){var n=t.createObject();n.$Bgname=e.name;var i=[];n.$Bgvalue=t.createArray(i);for(var r=0;r<e.keys.length;r++){var o=t.createObject();o.$Bgvalue=e.getValueAt(r),o.$Bgkey=e.getKeyAt(r),i.push(o)}return n}var CO=function(t,e){switch(typeof e){case"undefined":return"void";case"object":return null===e?"null":e.classInfo.instanceInfo.name.toFQNString(!1);case"number":return(0|e)===e?"int":"Number";case"string":return"String";case"boolean":return"Boolean"}},xO={print:function(t,e,n,i,r,o){var a,s=[];if(2==arguments.length)a=arguments[1]?arguments[1].toString():arguments[1],-1===["string","boolean","number","null","undefined"].indexOf(typeof arguments[1])&&s.push(arguments[1]);else{a="";for(var u=1;u<arguments.length;u++)a+=arguments[u]?arguments[u].toString():arguments[u],-1===["string","boolean","number","null","undefined"].indexOf(typeof arguments[u])&&s.push(arguments[u]),u!=arguments.length-1&&(a+=" ")}console.log("%c Trace from SWF:","color: DodgerBlue",a,0==s.length?"":s)},debugBreak:function(t){},bugzilla:function(t,e){return 574600===e},decodeURI:function(t,e){try{return Wp.decodeURI(e)}catch(e){t.throwError("URIError",w_.InvalidURIError,"decodeURI")}},decodeURIComponent:function(t,e){try{return Wp.decodeURIComponent(e)}catch(e){t.throwError("URIError",w_.InvalidURIError,"decodeURIComponent")}},encodeURI:function(t,e){try{return Wp.encodeURI(e)}catch(e){t.throwError("URIError",w_.InvalidURIError,"encodeURI")}},encodeURIComponent:function(t,e){try{return Wp.encodeURIComponent(e)}catch(e){t.throwError("URIError",w_.InvalidURIError,"encodeURIComponent")}},isNaN:PS(Wp.isNaN),isFinite:PS(Wp.isFinite),parseInt:PS(Wp.parseInt),parseFloat:PS(Wp.parseFloat),escape:PS(Wp.escape),unescape:PS(Wp.unescape),isXMLName:function(){return!1},notImplemented:PS(Md),getQualifiedClassName:function(t,e){return CO(0,e)},getQualifiedSuperclassName:function(t,e){if(Ya(e))return"null";var n=(e=t.box(e)).sec.AXClass.axIsType(e)?e.superClass:e.axClass.superClass;return CO(0,n)},getDefinitionByName:function(t,e){e=a_(e).replace("::",".");var n=u_.FromFQNString(e,0);return DS().env.app.getClass(n)},describeType:function(t,e,n){return function(t,e,n){fO.name="XML";var i=t.system.getClass(u_.FromSimpleName("XML")),r=dO(t,e,n),o=i.Create("<type/>");gO.name="name",o.setProperty(gO,r.$Bgname);var a=r.$Bgtraits.$Bgbases.value;a.length&&(gO.name="base",o.setProperty(gO,a[0])),gO.name="isDynamic",o.setProperty(gO,r.$BgisDynamic.toString()),gO.name="isFinal",o.setProperty(gO,r.$BgisFinal.toString()),gO.name="isStatic",o.setProperty(gO,r.$BgisStatic.toString()),_O(o,r.$Bgtraits);var s=dO(t,e,512|n);if(s){var u=t.AXXML.Create("<factory/>");gO.name="type",u.setProperty(gO,s.$Bgname),_O(u,s.$Bgtraits)&&o.appendChild(u)}return o}(t,e,n)},describeTypeJSON:function(t,e,n){return console.log("describeTypeJSON not implemented"),null},getArgv:function(){return null}};function IO(t){for(var e=t.split("."),n=xO,i=0,r=e.length;i<r;i++)n=n&&n[e[i]];return n||(n=OS[t]),n}function EO(t,e){void 0===e&&(e=!0);for(var n=function(t,e){var n,i=null;if(t.holder instanceof nP){if(i=t.holder.getClassName(),!(r=sD[i]||uD[i])&&!e)return[];Qa(r,"Class native is not defined: "+i),n=[r.prototype],r.instanceNatives&&qg(n,r.instanceNatives)}else if(t.holder instanceof mP){var r;if(i=t.holder.instanceInfo.getClassName(),!(r=sD[i]||uD[i])&&!e)return[];Qa(r,"Class native is not defined: "+i),n=[r],r.classNatives&&qg(n,r.classNatives)}return n}(t,e),i=t.multiname.name,r=0;r<n.length;r++){var o=n[r],a=i;if(!Qg(o,i)&&Qg(o,"native_"+i)&&(a="native_"+i),Qg(o,a)){var s=void 0;if(t.isAccessor()){var u=Object.getOwnPropertyDescriptor(o,a);s=t.isGetter()?u.get:u.set}else s=o[a];return s}}return t.holder,null}function wO(t,e,n){if(void 0===n&&(n=!1),t.method)return t.method;var i,r,o,a=t.methodInfo;if(32&a.flags){var s=a.getNativeMetadata();if(s||t.holder instanceof cO){if(s)i=IO(s.getValueAt(0));else{var u=t.multiname;i=IO(u.uri+"."+u.name)}r=i,o=e.object.sec,i=function(){switch(arguments.length){case 0:return r(o);case 1:return r(o,arguments[0]);case 2:return r(o,arguments[0],arguments[1]);case 3:return r(o,arguments[0],arguments[1],arguments[2]);default:for(var t=[o],e=0;e<arguments.length;e++)t.push(arguments[e]);return r.apply(this,t)}}}else i=EO(t);i&&!Pd&&(i.toString=function(){return"Native "+t.toString()},i.isInterpreted=!1)}else n&&(i=EO(t,!1)),i||(i=DP(a,e,null));return Qa(i,"Not found method:"+t.toString()),t.method=i,i.methodInfo=a,i.methodInfo=a,i}var SO=function(){function t(e){this.traits=e;for(var n=0;n<this.traits.length;n++){var i=this.traits[n],r=i.multiname;t.multinames[r.namespaces[0].uri+"."+r.name]=i}}return t.prototype.attachHolder=function(t){for(var e=0;e<this.traits.length;e++)this.traits[e].holder=t},t.prototype.trace=function(t){void 0===t&&(t=new Ed),this.traits.forEach((function(e){return t.writeLn(e.toString())}))},t.prototype.getTrait=function(e){for(var n=e.name,i=0,r=e.namespaces;i<r.length;i++){var o=r[i],a=t.multinames[o.uri+"."+n];if(a&&a.holder.traits===this)return a}return null},t.prototype.resolveRuntimeTraits=function(t,e,n,i){void 0===i&&(i=!1);for(var r=Object.create(t?t.protectedNsMappings:null),o=new h_(t,e,r),a=0;a<this.traits.length;a++){var s=this.traits[a],u=s.multiname,l=new pO(u,s.kind,s.abc);1===u.namespaces[0].type&&(o.protectedNsMappings[u.name]&&(l.multiname=o.protectedNsMappings[u.name].multiname),o.protectedNsMappings[u.name]=l);var c=o.addTrait(l);switch(s.kind){case 1:l.value=wO(s,n,i);break;case 2:l.get=wO(s,n,i),c&&c.set&&(l.set=c.set,l.kind=7);break;case 3:l.set=wO(s,n,i),c&&c.get&&(l.get=c.get,l.kind=7);break;case 0:case 6:case 4:l.writable=!0,l.slot=s.slot,l.value=s.getDefaultValue(),l.typeName=s.typeName,o.addSlotTrait(l)}}return o},t.multinames={},t}(),DO={__proto__:null,$BgNumber:NaN,$Bgint:0,$Bguint:0,$BgBoolean:!1},TO=function(t){function e(e,n,i,r,o,a,s){var u=t.call(this,e,n,i)||this;return u.slot=r,u.typeName=o,u.defaultValueKind=a,u.defaultValueIndex=s,u}return L_(e,t),e.prototype.getDefaultValue=function(){if(-1===this.defaultValueKind){if(null===this.typeName)return;var t=DO[this.typeName.getMangledName()];return void 0===t?null:t}return this.abc.getConstant(this.defaultValueKind,this.defaultValueIndex)},e}(yP),PO=function(t){function e(e,n,i,r,o){var a=t.call(this,e,n,i,r,e.getMultiname(0),0,-1)||this;return a.classInfo=o,a}return L_(e,t),e}(TO),OO=function(){function t(t,e,n,i,r,o){this.abc=t,this.start=e,this.end=n,this.target=i,this.multiname=r,this.type=o,this.catchPrototype=null,this._traits=null}return t.prototype.getTraits=function(){return this._traits||(this._traits=new SO([new TO(this.abc,0,this.multiname,1,this.type,0,0)])),this._traits},t}(),MO=null;"undefined"!=typeof TextDecoder&&(MO=new TextDecoder);var BO=function(){function t(t){this._bytes=t,this._view=new DataView(t.buffer,t.byteOffset),this._position=0}return t._getResultBuffer=function(e){return(!t._resultBuffer||t._resultBuffer.length<e)&&(t._resultBuffer=new Uint32Array(2*e)),t._resultBuffer},Object.defineProperty(t.prototype,"position",{get:function(){return this._position},enumerable:!1,configurable:!0}),t.prototype.remaining=function(){return this._bytes.length-this._position},t.prototype.seek=function(t){this._position=t},t.prototype.advance=function(t){this._position+=t},t.prototype.readU8=function(){return this._bytes[this._position++]},t.prototype.readU8s=function(t){var e=new Uint8Array(t);return e.set(this._bytes.subarray(this._position,this._position+t),0),this._position+=t,e},t.prototype.viewU8s=function(t){var e=this._bytes.subarray(this._position,this._position+t);return this._position+=t,e},t.prototype.readS8=function(){return this._bytes[this._position++]<<24>>24},t.prototype.readU32=function(){return this.readS32()>>>0},t.prototype.readU30=function(){var t=this.readU32();return t},t.prototype.readU30Unsafe=function(){return this.readU32()},t.prototype.readS16=function(){return this.readU30Unsafe()<<16>>16},t.prototype.readS32=function(){var t=this.readU8();return 128&t&&16384&(t=127&t|this.readU8()<<7)&&2097152&(t=16383&t|this.readU8()<<14)&&268435456&(t=2097151&t|this.readU8()<<21)&&(t=268435455&t|this.readU8()<<28,t&=4294967295),t},t.prototype.readWord=function(){var t=this._view.getUint32(this._position,!0);return this._position+=4,t},t.prototype.readS24=function(){return(this.readU8()|this.readU8()<<8|this.readU8()<<16)<<8>>8},t.prototype.readDouble=function(){var t=this._view.getFloat64(this._position,!0);return this._position+=8,t},t.prototype.readUTFString=function(e){if(MO){var n=this._position;return this._position+=e,MO.decode(this._bytes.subarray(n,n+e))}for(var i=this._position,r=i+e,o=this._bytes,a=0,s=t._getResultBuffer(2*e);i<r;){var u=o[i++];if(u<=127)s[a++]=u;else if(u>=192){var l=0;u<224?l=(31&u)<<6|63&o[i++]:u<240?l=(15&u)<<12|(63&o[i++])<<6|63&o[i++]:(l=((7&u)<<18|(63&o[i++])<<12|(63&o[i++])<<6|63&o[i++])-65536,s[a++]=55296+((1047552&l)>>>10),l=56320+(1023&l)),s[a++]=l}}return this._position=i,ld.fromCharCodeArray(s.subarray(0,a))},t._resultBuffer=new Uint32Array(256),t}(),NO=function(){function t(t,e){this._buffer=e,this.env=t,this._stream=new BO(e),this._checkMagic(),this._parseConstantPool(),this._parseNamespaces(),this._parseNamespaceSets(),this._parseMultinames(),this._parseMethodInfos(),this._parseMetaData(),this._parseInstanceAndClassInfos(),this._parseScriptInfos(),this._parseMethodBodyInfos()}return Object.defineProperty(t.prototype,"applicationDomain",{get:function(){return this.env.app},enumerable:!1,configurable:!0}),t.prototype._parseConstantPool=function(){this._parseNumericConstants(),this._parseStringConstants()},t.prototype._parseNumericConstants=function(){var t=this._stream,e=t.readU30(),n=new Int32Array(e);n[0]=0;for(var i=1;i<e;i++)n[i]=t.readS32();this.ints=n,e=t.readU30();var r=new Uint32Array(e);r[0]=0;for(i=1;i<e;i++)r[i]=t.readS32();this.uints=r,e=t.readU30();var o=new Float64Array(e);o[0]=NaN;for(i=1;i<e;i++)o[i]=t.readDouble();this.doubles=o},t.prototype._parseStringConstants=function(){var t=this._stream,e=t.readU30();this._strings=new Array(e),this._strings[0]=null;for(var n=1;n<e;n++){var i=t.readU30();this._strings[n]=t.readUTFString(i)}},t.prototype._parseNamespaces=function(){var t=this._stream,e=t.readU30();this._namespaces=new Array(e);for(var n=1;n<e;n++){var i=t.readU8(),r=t.readU30(),o=r?this.getString(r):void 0,a=void 0;switch(i){case 8:case 22:a=0;break;case 23:a=2;break;case 24:a=1;break;case 25:a=4;break;case 26:a=5;break;case 5:a=3;break;default:this.applicationDomain.sec.throwError("VerifierError",w_.CpoolEntryWrongTypeError,n)}o&&3!==a||void 0===o&&(o=""),this._namespaces[n]=r_(a,o)}},t.prototype._parseNamespaceSets=function(){var t=this._stream,e=t.readU30();this._namespaceSets=new Array(e),this._namespaceSets[0]=null;for(var n=1;n<e;n++)for(var i=t.readU30(),r=this._namespaceSets[n]=new Array(i),o=0;o<i;o++){var a=t.readU30();r[o]=this.getNamespace(a)}},t.prototype._parseMultinames=function(){var t=this._stream.readU30();this._multinames=new Array(t),this._multinames[0]=null;for(var e=1;e<t;e++)this._multinames[e]=this._parseMultiname(e)},t.prototype._parseMultiname=function(t){var e,n=this._stream,i=!1,r=!0,o=0,a=n.readU8();switch(a){case 7:case 13:e=n.readU30(),r=!1,o=n.readU30();break;case 15:case 16:i=!0,o=n.readU30();break;case 17:case 18:i=!0;break;case 9:case 14:o=n.readU30(),e=n.readU30();break;case 27:case 28:e=n.readU30();break;case 29:var s=n.readU32();n.readU32();var u=this._multinames[n.readU32()],l=this._multinames[s];return new u_(this,t,a,l.namespaces,l.name,u);default:Gd()}var c,h=0===o?null:this.getString(o);return c=i?null:r?this._namespaceSets[e]:[this.getNamespace(e)],new u_(this,t,a,c,h)},t.prototype._checkMagic=function(){var t=this._stream.readWord();t<3014671&&this.env.app.sec.throwError("VerifierError",w_.InvalidMagicError,t>>16,65535&t)},t.prototype._checkForDuplicateStrings=function(){for(var t=[],e=0;e<this._strings.length;e++)t.push(this.getString(e));t.sort();for(e=0;e<t.length-1;e++)if(t[e]===t[e+1])return!0;return!1},t.prototype.getString=function(t){return this._strings[t]},t.prototype.getMultiname=function(t){return(t<0||t>=this._multinames.length)&&this.applicationDomain.sec.throwError("VerifierError",w_.CpoolIndexRangeError,t,this._multinames.length),0===t?null:this._multinames[t]},t.prototype.getNamespace=function(t){return(t<0||t>=this._namespaces.length)&&this.applicationDomain.sec.throwError("VerifierError",w_.CpoolIndexRangeError,t,this._namespaces.length),0===t?i_.PUBLIC:this._namespaces[t]},t.prototype.getNamespaceSet=function(t){return(t<0||t>=this._namespaceSets.length)&&this.applicationDomain.sec.throwError("VerifierError",w_.CpoolIndexRangeError,t,this._namespaceSets.length),0===t?null:this._namespaceSets[t]},t.prototype._parseMethodInfos=function(){var t=this._stream.readU30();this._methods=new Array(t);for(var e=0;e<t;++e)this._methods[e]=this._parseMethodInfo(e)},t.prototype._parseMethodInfo=function(t){for(var e=this._stream,n=e.readU30(),i=e.readU30(),r=new Array(n),o=0;o<n;o++)r[o]=new hO(this,e.readU30(),0,-1,-1);var a=e.readU30(),s=e.readU8(),u=0;if(8&s)for(o=n-(u=e.readU30());o<n;o++)r[o].optionalValueIndex=e.readU30(),r[o].optionalValueKind=e.readU8();if(128&s)for(o=0;o<n;o++)r[o].name=e.readU30();return new uO(this,t,a,i,r,u,s)},t.prototype.getMethodInfo=function(t){return this._methods[t]},t.prototype.getMethodBodyInfo=function(t){return this._methodBodies[t]},t.prototype._parseMetaData=function(){var t=this._stream,e=t.readU30();this._metadata=new Array(e);for(var n=0;n<e;n++){for(var i=t.readU30(),r=t.readU30(),o=new Uint32Array(r),a=0;a<r;a++)o[a]=t.readU30();var s=new Uint32Array(r);for(a=0;a<r;a++)s[a]=t.readU30();this._metadata[n]=new sO(this,i,o,s)}},t.prototype.getMetadataInfo=function(t){return this._metadata[t]},t.prototype._parseInstanceAndClassInfos=function(){for(var t=this._stream,e=t.readU30(),n=this.instances=new Array(e),i=0;i<e;i++)n[i]=this._parseInstanceInfo();this._parseClassInfos(e);var r=t.position;for(i=0;i<e;i++)n[i].classInfo=this.classes[i];t.seek(r)},t.prototype._parseInstanceInfo=function(){var t=this._stream,e=t.readU30(),n=t.readU30(),i=t.readU8(),r=0;8&i&&(r=t.readU30());for(var o=t.readU30(),a=[],s=0;s<o;s++)a[s]=t.readU30();var u=t.readU30(),l=this._parseTraits(),c=new nP(this,e,n,i,r,a,u,l);return l.attachHolder(c),c},t.prototype._parseTraits=function(){for(var t=this._stream.readU30(),e=[],n=0;n<t;n++)e.push(this._parseTrait());return new SO(e)},t.prototype._parseTrait=function(){var t,e=this._stream,n=this._multinames[e.readU30()],i=e.readU8(),r=15&i,o=i>>4&15;switch(r){case 0:case 6:var a=e.readU30(),s=this._multinames[e.readU30()],u=e.readU30(),l=-1;0!==u&&(l=e.readU8()),t=new TO(this,r,n,a,s,l,u);break;case 1:case 2:case 3:e.readU30();var c=this._methods[e.readU30()];t=c.trait=new AP(this,r,n,c);break;case 4:a=e.readU30();var h=this.classes[e.readU30()];t=h.trait=new PO(this,r,n,a,h);break;default:this.applicationDomain.sec.throwError("VerifierError",w_.UnsupportedTraitsKindError,r)}if(4&o){for(var p=e.readU30(),d=new Uint32Array(p),f=0;f<p;f++)d[f]=e.readU30();t.metadata=d}return t},t.prototype._parseClassInfos=function(t){for(var e=this.classes=new Array(t),n=0;n<t;n++)e[n]=this._parseClassInfo(n)},t.prototype._parseClassInfo=function(t){var e=this._stream.readU30(),n=this._parseTraits(),i=new mP(this,this.instances[t],e,n);return n.attachHolder(i),i},t.prototype._parseScriptInfos=function(){for(var t=this._stream.readU30(),e=this.scripts=new Array(t),n=0;n<t;n++)e[n]=this._parseScriptInfo()},t.prototype._parseScriptInfo=function(){var t=this._stream.readU30(),e=this._parseTraits(),n=new cO(this,t,e);return e.attachHolder(n),n},t.prototype._parseMethodBodyInfos=function(){for(var t=this._stream,e=this._methodBodies=new Array(this._methods.length),n=t.readU30(),i=0;i<n;i++){for(var r=t.readU30(),o=t.readU30(),a=t.readU30(),s=t.readU30(),u=t.readU30(),l=t.viewU8s(t.readU30()),c=t.readU30(),h=new Array(c),p=0;p<c;++p)h[p]=this._parseException();var d=this._parseTraits();e[r]=new lO(o,a,s,u,l,h,d),d.attachHolder(e[r])}},t.prototype._parseException=function(){var t=this._stream,e=t.readU30(),n=t.readU30(),i=t.readU30(),r=t.readU30(),o=t.readU30();return new OO(this,e,n,i,this._multinames[o],this._multinames[r])},t.prototype.getConstant=function(t,e){switch(t){case 3:return this.ints[e];case 4:return this.uints[e];case 6:return this.doubles[e];case 1:return this.getString(e);case 11:return!0;case 10:return!1;case 12:return null;case 0:return;case 8:case 23:return this.getNamespace(e);case 7:case 14:case 15:case 16:case 17:case 18:case 19:case 20:return this._multinames[e]}},t.prototype.stress=function(){for(var t=0;t<this._multinames.length;t++)this._multinames[t];for(t=0;t<this._namespaceSets.length;t++)this._namespaceSets[t];for(t=0;t<this._namespaces.length;t++)this.getNamespace(t);for(t=0;t<this._strings.length;t++)this.getString(t)},t.prototype.trace=function(t){t.writeLn("Multinames: "+this._multinames.length),t.indent();for(var e=0;e<this._multinames.length;e++)t.writeLn(e+" "+this._multinames[e]);t.outdent(),t.writeLn("Namespace Sets: "+this._namespaceSets.length),t.indent();for(e=0;e<this._namespaceSets.length;e++)t.writeLn(e+" "+this._multinames[e]);t.outdent(),t.writeLn("Namespaces: "+this._namespaces.length),t.indent();for(e=0;e<this._namespaces.length;e++)t.writeLn(e+" "+this.getNamespace(e));t.outdent(),t.writeLn("Strings: "+this._strings.length),t.indent();for(e=0;e<this._strings.length;e++)t.writeLn(e+" "+this.getString(e));t.outdent(),t.writeLn("MethodInfos: "+this._methods.length),t.indent();for(e=0;e<this._methods.length;e++)t.writeLn(e+" "+this.getMethodInfo(e)),this._methodBodies[e]&&this._methodBodies[e].trace(t);t.outdent(),t.writeLn("InstanceInfos: "+this.instances.length),t.indent();for(e=0;e<this.instances.length;e++)t.writeLn(e+" "+this.instances[e]),this.instances[e].trace(t);t.outdent(),t.writeLn("ClassInfos: "+this.classes.length),t.indent();for(e=0;e<this.classes.length;e++)this.classes[e].trace(t);t.outdent(),t.writeLn("ScriptInfos: "+this.scripts.length),t.indent();for(e=0;e<this.scripts.length;e++)this.scripts[e].trace(t);t.outdent()},t}();var LO,RO=function(){function t(t,e,n){this.app=t,this.map=Gg(),this.abcs=e,this.scripts=Gg();for(var i=0;i<n.length;i++){var r=n[i];this.scripts[r.name]=r;for(var o=0;o<r.defs.length;o++){var a=r.defs[o].split(":"),s=this.map[a[1]];s||(s=this.map[a[1]]=Object.create(null)),s[a[0]]=r.name}}}return t.prototype.getABCByScriptName=function(t){var e=this.scripts[t];if(!e)return null;var n={url:t,app:this.app};return new NO(n,this.abcs.subarray(e.offset,e.offset+e.length))},t.prototype.getABCByMultiname=function(t){var e=this.map[t.name];if(!e)return null;for(var n=t.namespaces,i=0;i<n.length;i++){var r=e[n[i].uri];if(r)return this.getABCByScriptName(r)}return null},t}();!function(t){t[t.Builtin=1]="Builtin",t[t.Playerglobal=2]="Playerglobal",t[t.Shell=4]="Shell"}(LO||(LO={}));var FO=function(){function t(t){if(this.avmVersion=r.AVM2,!t)throw"AVM2Handler must be init with a valid PlayerGlobal-class";this._playerglobal=t}return t.prototype.init=function(t,e,n){var i=this;this._avmStage&&n(!1),this._avmStage=t,aD(),b_(),i_.PUBLIC=r_(0,""),Function.prototype.axApply=Function.prototype.apply,Function.prototype.axCall=Function.prototype.call,this._playerglobal.createSecurityDomain(t,e,LO.Builtin|LO.Playerglobal).then((function(t){i._factory=t,i._avmStage.config.externalInterfaceID&&(Jg.interfaceID=i._avmStage.config.externalInterfaceID),n(!0)}))},t.prototype.dispose=function(){this._playerglobal.dispose()},t.prototype.enterFrame=function(t){this._playerglobal.enterFrame()},t.prototype.resizeStage=function(){this._playerglobal.resizeStage()},Object.defineProperty(t.prototype,"factory",{get:function(){if(!this._factory)throw"AVM2Handler - no Factory get factory";return this._factory},enumerable:!1,configurable:!0}),t.prototype.addAsset=function(t,e){this._playerglobal.addAsset(t,e)},t}();console.debug("AwayFL - 0.2.207");var kO=function(t){function e(e,n,i){void 0===n&&(n=!0),void 0===i&&(i=!0);var r=t.call(this)||this;return r._iAllowedToPropagate=!0,r._iAllowedToImmediatlyPropagate=!0,r._type=us(e),r._bubbles=!!n,r._cancelable=!!i,r._target=null,r._currentTarget=null,r._eventPhase=null,r._stopPropagation=!1,r._stopImmediatePropagation=!1,r._isDefaultPrevented=!1,r}return Zg(e,t),e.getInstance=function(t,n,i){void 0===n&&(n=!1),void 0===i&&(i=!1);var r=this._instances[t];return r||(r=new e(t,n,i),this._instances[t]=r),r._bubbles=n,r._cancelable=i,r},e.getBroadcastInstance=function(t,n,i){void 0===n&&(n=!1),void 0===i&&(i=!1);var r=this._instances[t];return r||(r=new e(t,n,i),this._instances[t]=r),r._isBroadcastEvent=!0,r._bubbles=n,r._cancelable=i,r},e.isBroadcastEventType=function(t){switch(t){case e.ENTER_FRAME:case e.EXIT_FRAME:case e.FRAME_CONSTRUCTED:case e.RENDER:case e.ACTIVATE:case e.DEACTIVATE:return!0}return!1},Object.defineProperty(e.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bubbles",{get:function(){return this._bubbles},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cancelable",{get:function(){return this._cancelable},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"target",{get:function(){return this._target},set:function(t){this._target=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentTarget",{get:function(){return this._currentTarget},set:function(t){this._currentTarget=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"eventPhase",{get:function(){return this._eventPhase},enumerable:!1,configurable:!0}),e.prototype.stopPropagation=function(){this._stopPropagation=!0,this.adaptee&&this.adaptee.stopPropagation()},e.prototype.stopImmediatePropagation=function(){this._stopImmediatePropagation=this._stopPropagation=!0,this.adaptee&&this.adaptee.stopImmediatePropagation()},e.prototype.preventDefault=function(){this._cancelable&&(this._isDefaultPrevented=!0)},e.prototype.isDefaultPrevented=function(){return this._isDefaultPrevented},e.prototype.isBroadcastEvent=function(){return!!this._isBroadcastEvent},e.prototype.clone=function(){return new e(this._type,this._bubbles,this._cancelable)},e.prototype.toString=function(){return this.formatToString("Event","type","bubbles","cancelable","eventPhase")},e.prototype.formatToString=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var i="["+t,r=0;r<e.length;r++){var o=e[r],a=this.axGetPublicProperty(o);"string"==typeof a&&(a='"'+a+'"'),i+=" "+o+"="+a}return i+"]"},e.classInitializer=function(){this._instances=Gg()},e.ACTIVATE="activate",e.ADDED="added",e.ADDED_TO_STAGE="addedToStage",e.CANCEL="cancel",e.CHANGE="change",e.CLEAR="clear",e.CLOSE="close",e.COMPLETE="complete",e.CONNECT="connect",e.COPY="copy",e.CUT="cut",e.DEACTIVATE="deactivate",e.ENTER_FRAME="enterFrame",e.FRAME_CONSTRUCTED="frameConstructed",e.EXIT_FRAME="exitFrame",e.FRAME_LABEL="frameLabel",e.ID3="id3",e.INIT="init",e.MOUSE_LEAVE="mouseLeave",e.OPEN="open",e.PASTE="paste",e.REMOVED="removed",e.REMOVED_FROM_STAGE="removedFromStage",e.RENDER="render",e.RESIZE="resize",e.SCROLL="scroll",e.TEXT_INTERACTION_MODE_CHANGE="textInteractionModeChange",e.SELECT="select",e.SELECT_ALL="selectAll",e.SOUND_COMPLETE="soundComplete",e.TAB_CHILDREN_CHANGE="tabChildrenChange",e.TAB_ENABLED_CHANGE="tabEnabledChange",e.TAB_INDEX_CHANGE="tabIndexChange",e.UNLOAD="unload",e.FULLSCREEN="fullScreen",e.CONTEXT3D_CREATE="context3DCreate",e.TEXTURE_READY="textureReady",e.VIDEO_FRAME="videoFrame",e.SUSPEND="suspend",e.AVM1_INIT="initialize",e.AVM1_CONSTRUCT="construct",e.AVM1_LOAD="load",e}(B_),UO=function(t){function e(e){void 0===e&&(e=null);var n=t.call(this)||this;return n._t=e||n,n._listenerObjects||(n._listenerObjects=[]),n}return Zg(e,t),e.prototype.toString=function(){return""},e.prototype.addEventListener=function(t,e,n,i,r){void 0===i&&(i=0),this._listenerObjects||(this._listenerObjects=[]);var o=this._listenerObjects[t];void 0===o&&(o=this._listenerObjects[t]=new VO),o.addEventListener(e,i)},e.prototype.removeEventListener=function(t,e){this._listenerObjects||(this._listenerObjects=[]);var n=this._listenerObjects[t];n&&(n.removeEventListener(e),0==n.numListeners&&delete this._listenerObjects[t])},e.prototype.dispatchEvent=function(t){this._listenerObjects||(this._listenerObjects=[]);var e=this._listenerObjects[t.type];return e&&(t.target||(t.target=this._t),e.dispatchEvent(t)),!0},e.prototype.hasEventListener=function(t,e){return void 0!==this._listenerObjects[t]&&(null!=e?-1!==this._listenerObjects[t].getEventListenerIndex(e):this._listenerObjects[t].numListeners>0)},e}(B_);function jO(t,e){return t.priority<e.priority?-1:1}var VO=function(){function t(){this._index=0,this._singlePriority=0,this._listeners=new Array,this.numListeners=0}return t.prototype.addEventListener=function(t,e){if(void 0===e&&(e=0),!this._listenersByPriority)return-1!==this._listeners.indexOf(t)?void 0:0==this._listeners.length||e==this._singlePriority?(this._listeners.push(t),void this.numListeners++):(this._singlePriority<e?this._listenersByPriority=[{priority:this._singlePriority,listeners:this._listeners.concat()},{priority:e,listeners:[t]}]:this._listenersByPriority=[{priority:e,listeners:[t]},{priority:this._singlePriority,listeners:this._listeners.concat()}],void this.numListeners++);for(var n=0;n<this._listenersByPriority.length;n++)if(-1!==this._listenersByPriority[n].listeners.indexOf(t))return;var i=null;for(n=0;n<this._listenersByPriority.length;n++)if(this._listenersByPriority[n].priority==e){i=this._listenersByPriority[n];break}i||(i={priority:e,listeners:[]},this._listenersByPriority.push(i),this._listenersByPriority.length>1&&this._listenersByPriority.sort(jO)),i.listeners.push(t),this.numListeners++},t.prototype.removeEventListener=function(t){var e=-1;if(!this._listenersByPriority){if(-1===(e=this._listeners.indexOf(t)))return;return this._listeners.splice(e,1),void this.numListeners--}for(var n=0;n<this._listenersByPriority.length;n++)if(-1!==(e=this._listenersByPriority[n].listeners.indexOf(t)))return this.numListeners--,void this._listenersByPriority[n].listeners.splice(e,1)},t.prototype.dispatchEvent=function(t){if(this._listenersByPriority){for(var e=this._listenersByPriority.length;e>0;){e--;i=(n=this._listenersByPriority[e].listeners.length>1?this._listenersByPriority[e].listeners.concat():this._listenersByPriority[e].listeners).length,r=0;for(r=0;r<i;r++)n[r]&&n[r].call(n[r],t)}1==this._listenersByPriority.length&&(this._listeners=this._listenersByPriority[0].listeners.concat(),this._singlePriority=this._listenersByPriority[0].priority,this._listenersByPriority=null)}else{var n,i=(n=this._listeners.length>1?this._listeners.concat():this._listeners).length,r=0;for(r=0;r<i;r++)n[r]&&n[r].call(n[r],t)}},t.prototype.getEventListenerIndex=function(t){if(!this._listenersByPriority)return this._listeners.indexOf(t);for(var e=0;e<this._listenersByPriority.length;e++)for(var n=0;n<this._listenersByPriority[e].listeners.length;n++)if(this._listenersByPriority[e].listeners[n]==t)return e;return-1},t}(),QO=function(t){function e(e,n,i,r,o,a,s,u,l,c,h){void 0===n&&(n=!0),void 0===i&&(i=!1),void 0===r&&(r=void 0),void 0===o&&(o=void 0),void 0===a&&(a=null),void 0===s&&(s=!1),void 0===u&&(u=!1),void 0===l&&(l=!1),void 0===c&&(c=!1),void 0===h&&(h=0);var p=t.call(this,e,n,i)||this;return p._localX=r,p._localY=o,p._relatedObject=a,p._ctrlKey=s,p._altKey=u,p._shiftKey=l,p._buttonDown=c,p._delta=h,p}return Zg(e,t),e.typeFromDOMType=function(t){switch(t){case"click":return e.CLICK;case"dblclick":return e.DOUBLE_CLICK;case"mousedown":return e.MOUSE_DOWN;case"mouseout":case"mouseover":case"mousemove":return e.MOUSE_MOVE;case"mouseup":return e.MOUSE_UP}},e.prototype.fillFromAway=function(t){this.adaptee=t,this.target=t.target.adapter,this.currentTarget=t.currentTarget.adapter,this.delta=t.delta,this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey},Object.defineProperty(e.prototype,"localX",{get:function(){return this._localX/20|0},set:function(t){this._localX=20*t|0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"localY",{get:function(){return this._localY/20|0},set:function(t){this._localY=20*t|0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stageX",{get:function(){return isNaN(this.localX+this.localY)?Number.NaN:this.target.stage.mouseX},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stageY",{get:function(){return isNaN(this.localX+this.localY)?Number.NaN:this.target.stage.mouseY},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"movementX",{get:function(){return this._movementX||0},set:function(t){this._movementX=+t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"movementY",{get:function(){return this._movementY||0},set:function(t){this._movementY=+t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"delta",{get:function(){return this._delta},set:function(t){this._delta=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ctrlKey",{get:function(){return this._ctrlKey},set:function(t){this._ctrlKey=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"altKey",{get:function(){return this._altKey},set:function(t){this._altKey=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"shiftKey",{get:function(){return this._shiftKey},set:function(t){this._shiftKey=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"buttonDown",{get:function(){return this._buttonDown},set:function(t){this._buttonDown=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"relatedObject",{get:function(){return this._relatedObject},set:function(t){this._relatedObject=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isRelatedObjectInaccessible",{get:function(){return this._isRelatedObjectInaccessible},set:function(t){this._isRelatedObjectInaccessible=t},enumerable:!1,configurable:!0}),e.prototype.updateAfterEvent=function(){this.sec.player.requestRender()},e.prototype.clone=function(){return new e(this.type,this.bubbles,this.cancelable,this.localX,this.localY,this.relatedObject,this.ctrlKey,this.altKey,this.shiftKey,this.buttonDown,this.delta)},e.prototype.toString=function(){return this.formatToString("MouseEvent","type","bubbles","cancelable","eventPhase","localX","localY","relatedObject","ctrlKey","altKey","shiftKey","buttonDown","delta")},e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.CLICK="click",e.DOUBLE_CLICK="doubleClick",e.MOUSE_DOWN="mouseDown",e.MOUSE_MOVE="mouseMove",e.MOUSE_OUT="mouseOut",e.MOUSE_OVER="mouseOver",e.MOUSE_UP="mouseUp",e.RELEASE_OUTSIDE="releaseOutside",e.MOUSE_WHEEL="mouseWheel",e.ROLL_OUT="rollOut",e.ROLL_OVER="rollOver",e.MIDDLE_CLICK="middleClick",e.MIDDLE_MOUSE_DOWN="middleMouseDown",e.MIDDLE_MOUSE_UP="middleMouseUp",e.RIGHT_CLICK="rightClick",e.RIGHT_MOUSE_DOWN="rightMouseDown",e.RIGHT_MOUSE_UP="rightMouseUp",e.CONTEXT_MENU="contextMenu",e}(kO),GO=function(t){function e(e){void 0===e&&(e=null);var n=t.call(this,e)||this;return n.id=_.Next(),n.eventMapping||(n.eventMapping={}),n.eventMappingDummys||(n.eventMappingDummys={}),n.eventMappingExtern||(n.eventMappingExtern={}),n.eventMappingInvert||(n.eventMappingInvert={}),n._activateCallbackDelegate=function(t){return n.activateCallback(t)},n.eventMapping[kO.ACTIVATE]={adaptedType:"",addListener:n.initActivateListener,removeListener:n.removeActivateListener,callback:n._activateCallbackDelegate},n._deactivateCallbackDelegate=function(t){return n.deactivateCallback(t)},n.eventMapping[kO.DEACTIVATE]={adaptedType:"",addListener:n.initDeactivateListener,removeListener:n.removeDeactivateListener,callback:n._deactivateCallbackDelegate},n}return Zg(e,t),e.prototype.toString=function(){return""},e.prototype.hasEventListener=function(e,n){return t.prototype.hasEventListener.call(this,e,n)},e.prototype.willTrigger=function(){},e.prototype.dispatchEvent=function(n,i){void 0===i&&(i=!1),n.currentTarget=this,"enterFrame"==n.type&&(n.target=this);var r=t.prototype.dispatchEvent.call(this,n);return i||-1!=e.eventsThatBubbleInAwayJS.indexOf(n.type)||this.adaptee&&this.adaptee.parent&&this.adaptee.parent.adapter.dispatchEvent(n),r},e.prototype.initActivateListener=function(t,e){window.onfocus=e},e.prototype.removeActivateListener=function(t,e){window.onfocus=null},e.prototype.activateCallback=function(t){this.dispatchEvent(new this.sec.flash.events.Event(kO.ACTIVATE))},e.prototype.initDeactivateListener=function(t,e){window.onblur=e},e.prototype.removeDeactivateListener=function(t,e){window.onblur=null},e.prototype.deactivateCallback=function(t){this.dispatchEvent(new this.sec.flash.events.Event(kO.DEACTIVATE))},e.prototype.addEventListener=function(e,n,i,r,o){return void 0===i&&(i=!1),void 0===r&&(r=0),void 0===o&&(o=!1),!i&&kO.isBroadcastEventType(e)&&XO.getInstance().add(e,this),this.eventMapping||(this.eventMapping={}),this.eventMappingDummys||(this.eventMappingDummys={}),this.eventMappingExtern||(this.eventMappingExtern={}),this.eventMappingInvert||(this.eventMappingInvert={}),this.eventMappingDummys.hasOwnProperty(e)?void 0:this.eventMapping.hasOwnProperty(e)?(t.prototype.addEventListener.call(this,e,n,i,r,o),void this.eventMapping[e].addListener.call(this,this.eventMapping[e].adaptedType,this.eventMapping[e].callback,n)):void t.prototype.addEventListener.call(this,e,n,i,r,o)},e.prototype.removeEventListener=function(e,n){this.eventMapping||(this.eventMapping={}),this.eventMappingDummys||(this.eventMappingDummys={}),this.eventMappingExtern||(this.eventMappingExtern={}),this.eventMappingInvert||(this.eventMappingInvert={}),t.prototype.removeEventListener.call(this,e,n),this.eventMapping.hasOwnProperty(e)&&(this.eventMapping[e].removeListener.call(this,this.eventMapping[e].adaptedType,this.eventMapping[e].callback,n),this.hasEventListener(e)||kO.isBroadcastEventType(e)&&XO.getInstance().remove(e,this))},e.eventsThatBubbleInAwayJS=[QO.MOUSE_WHEEL,QO.MOUSE_UP,QO.MOUSE_OVER,QO.MOUSE_OUT,QO.ROLL_OVER,QO.ROLL_OUT,QO.MOUSE_MOVE,QO.MOUSE_DOWN,QO.DOUBLE_CLICK,QO.CLICK,kO.ENTER_FRAME,kO.EXIT_FRAME,kO.FRAME_CONSTRUCTED,kO.ADDED_TO_STAGE,kO.RESIZE,kO.REMOVED_FROM_STAGE],e}(UO),zO="WeakRef"in self&&s_.USE_WEAK_REF;zO&&console.debug("[BroadcastEventDispatchQueue] `WeakRef` used for Broadcast Events!");var HO,XO=function(){function t(){this._queues={}}return t.getInstance=function(){return t._instance||(t._instance=new t)},t.prototype.add=function(t,e){var n=this._queues[t]||(this._queues[t]=[]);n[e.id]||(n[e.id]=zO?new self.WeakRef(e):e)},t.prototype.remove=function(t,e){delete this._queues[t][e.id]},t.prototype.dispatchEvent=function(t){var e=this._queues[t._type];if(e)for(var n in e){var i=e[n];zO&&(i=null==i?void 0:i.deref()),i?i.dispatchEvent(t):(console.debug("[BroadcastEventDispatchQueue] Broadcast target was deleted by GC:",n),delete e[n])}},t.prototype.getQueueLength=function(t){return this._queues[t]?Object.getOwnPropertyNames(this._queues[t]).length:0},t}(),YO=function(){function t(){}return t.events={},t}(),qO=function(t){function e(){return t.call(this)||this}return Zg(e,t),e.prototype.clone=function(){return null},e.prototype.toAwayObject=function(){return null},e.classInitializer=null,e}(B_),KO=function(){function t(){}return t.sanitize=function(t,e,n){if(xd(t)||0===t.length)this.colors=[],this.alphas=[],this.ratios=[];else{var i=void 0;xd(n)?(this.colors=this.sanitizeColors(t),i=this.colors.length,this.ratios=this.initArray(i),xd(e)?this.alphas=this.initArray(i):this.alphas=this.sanitizeAlphas(e,i,i,1)):0===n.length?(this.colors=[],this.alphas=[],this.ratios=[]):(i=Math.min(t.length,n.length,16),this.colors=this.sanitizeColors(t,i),this.ratios=this.sanitizeRatios(n,i),xd(e)?this.alphas=this.initArray(i):this.alphas=this.sanitizeAlphas(e,i,i,1))}},t.sanitizeColors=function(t,e){void 0===e&&(e=16);for(var n=[],i=0,r=Math.min(t.length,e);i<r;i++)n[i]=t[i]>>>0&16777215;return n},t.sanitizeAlphas=function(t,e,n,i){void 0===e&&(e=16),void 0===n&&(n=0),void 0===i&&(i=0);var r,o=[],a=Math.min(t.length,e);for(r=0;r<a;r++)o[r]=Jp(+t[r],0,1);for(;r<n;)o[r++]=i;return o},t.sanitizeRatios=function(t,e,n,i){void 0===e&&(e=16),void 0===n&&(n=0),void 0===i&&(i=0);var r,o=[],a=Math.min(t.length,e);for(r=0;r<a;r++)o[r]=Jp(+t[r],0,255);for(;r<n;)o[r++]=i;return o},t.initArray=function(t,e){void 0===e&&(e=0);for(var n=Array(t),i=0;i<t;i++)n[i]=e;return n},t}(),WO=function(t){function e(e,n,i,r,o,a,s,u,l,c,h){void 0===e&&(e=4),void 0===n&&(n=45),void 0===i&&(i=0),void 0===r&&(r=1),void 0===o&&(o=4),void 0===a&&(a=4),void 0===s&&(s=1),void 0===u&&(u=1),void 0===l&&(l=!1),void 0===c&&(c=!1),void 0===h&&(h=!1);var p=t.call(this)||this;return p.filterName="dropShadow",p.distance=e,p.angle=n,p.color=i,p.alpha=r,p.blurX=o,p.blurY=a,p.strength=s,p.quality=u,p.inner=l,p.knockout=c,p.hideObject=h,p}return Zg(e,t),e.FromUntyped=function(t,e){var n=t.colors[0]>>>8,i=(255&t.colors[0])/255,r=180*t.angle/Math.PI,o=!t.compositeSource;return new e.flash.filters.DropShadowFilter(t.distance,r,n,i,t.blurX,t.blurY,t.strength,t.quality,t.inner,t.knockout,o)},Object.defineProperty(e.prototype,"distance",{get:function(){return this._distance},set:function(t){this._distance=+t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"angle",{get:function(){return this._angle},set:function(t){this._angle=+t%360},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"color",{get:function(){return this._color},set:function(t){this._color=t>>>0&16777215},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"alpha",{get:function(){return this._alpha},set:function(t){this._alpha=Jp(+t,0,1)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"blurX",{get:function(){return this._blurX},set:function(t){this._blurX=Jp(+t,0,255)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"blurY",{get:function(){return this._blurY},set:function(t){this._blurY=Jp(+t,0,255)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hideObject",{get:function(){return this._hideObject},set:function(t){this._hideObject=!!t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"inner",{get:function(){return this._inner},set:function(t){this._inner=!!t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"knockout",{get:function(){return this._knockout},set:function(t){this._knockout=!!t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"quality",{get:function(){return this._quality},set:function(t){this._quality=Jp(0|t,0,15)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"strength",{get:function(){return this._strength},set:function(t){this._strength=Jp(+t,0,255)},enumerable:!1,configurable:!0}),e.prototype.toAwayObject=function(){return this},e.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)},e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e}(qO),JO=function(t){function e(e,n,i,r,o,a,s,u){void 0===e&&(e=16711680),void 0===n&&(n=1),void 0===i&&(i=6),void 0===r&&(r=6),void 0===o&&(o=2),void 0===a&&(a=1),void 0===s&&(s=!1),void 0===u&&(u=!1);var l=t.call(this)||this;return l.filterName="glow",l.color=e,l.alpha=n,l.blurX=i,l.blurY=r,l.strength=o,l.quality=a,l.inner=s,l.knockout=u,l}return Zg(e,t),e.FromUntyped=function(t,e){var n=t.colors[0]>>>8,i=(255&t.colors[0])/255;return new e.flash.filters.GlowFilter(n,i,t.blurX,t.blurY,t.strength,t.quality,t.inner,t.knockout)},Object.defineProperty(e.prototype,"color",{get:function(){return this._color},set:function(t){this._color=t>>>0&16777215},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"alpha",{get:function(){return this._alpha},set:function(t){this._alpha=Jp(+t,0,1)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"blurX",{get:function(){return this._blurX},set:function(t){this._blurX=Jp(+t,0,255)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"blurY",{get:function(){return this._blurY},set:function(t){this._blurY=Jp(+t,0,255)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"inner",{get:function(){return this._inner},set:function(t){this._inner=!!t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"knockout",{get:function(){return this._knockout},set:function(t){this._knockout=!!t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"quality",{get:function(){return this._quality},set:function(t){this._quality=Jp(0|t,0,15)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"strength",{get:function(){return this._strength},set:function(t){this._strength=Jp(+t,0,255)},enumerable:!1,configurable:!0}),e.prototype.toAwayObject=function(){return this},e.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)},e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e}(qO),$O=function(t){function e(){return t.call(this)||this}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.INNER="inner",e.OUTER="outer",e.FULL="full",e}(B_),ZO=function(t){function e(e,n,i,r,o,a,s,u,l,c,h,p){void 0===e&&(e=4),void 0===n&&(n=45),void 0===i&&(i=16777215),void 0===r&&(r=1),void 0===o&&(o=0),void 0===a&&(a=1),void 0===s&&(s=4),void 0===u&&(u=4),void 0===l&&(l=1),void 0===c&&(c=1),void 0===h&&(h="inner"),void 0===p&&(p=!1);var d=t.call(this)||this;return d.filterName="bevel",d.distance=e,d.angle=n,d.highlightColor=i,d.highlightAlpha=r,d.shadowColor=o,d.shadowAlpha=a,d.blurX=s,d.blurY=u,d.strength=l,d.quality=c,d.type=h,d.knockout=p,d}return Zg(e,t),e.FromUntyped=function(t,e){var n=t.colors[0]>>>8,i=(255&t.colors[0])/255,r=t.colors[1]>>>8,o=(255&t.colors[1])/255,a=$O.OUTER;t.onTop?a=$O.FULL:t.inner&&(a=$O.INNER);var s=180*t.angle/Math.PI;return new e.flash.filters.BevelFilter(t.distance,s,n,i,r,o,t.blurX,t.blurY,t.strength,t.quality,a,t.knockout)},Object.defineProperty(e.prototype,"distance",{get:function(){return this._distance},set:function(t){this._distance=+t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"angle",{get:function(){return this._angle},set:function(t){this._angle=+t%360},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"highlightColor",{get:function(){return this._highlightColor},set:function(t){this._highlightColor=t>>>0&16777215},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"highlightAlpha",{get:function(){return this._highlightAlpha},set:function(t){this._highlightAlpha=Jp(+t,0,1)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"shadowColor",{get:function(){return this._shadowColor},set:function(t){this._shadowColor=t>>>0&16777215},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"shadowAlpha",{get:function(){return this._shadowAlpha},set:function(t){this._shadowAlpha=Jp(+t,0,1)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"blurX",{get:function(){return this._blurX},set:function(t){this._blurX=Jp(+t,0,255)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"blurY",{get:function(){return this._blurY},set:function(t){this._blurY=Jp(+t,0,255)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"knockout",{get:function(){return this._knockout},set:function(t){this._knockout=!!t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"quality",{get:function(){return this._quality},set:function(t){this._quality=Jp(0|t,0,15)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"strength",{get:function(){return this._strength},set:function(t){this._strength=Jp(+t,0,255)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this._type},set:function(t){null===(t=a_(t))?this.sec.throwError("TypeError",w_.NullPointerError,"type"):t===$O.INNER||t===$O.OUTER?this._type=t:this._type=$O.FULL},enumerable:!1,configurable:!0}),e.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)},e.prototype.toAwayObject=function(){return this},e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e}(qO),tM=function(t){function e(e,n,i,r,o,a,s,u,l,c,h){void 0===e&&(e=4),void 0===n&&(n=45),void 0===i&&(i=null),void 0===r&&(r=null),void 0===o&&(o=null),void 0===a&&(a=4),void 0===s&&(s=4),void 0===u&&(u=1),void 0===l&&(l=1),void 0===c&&(c="inner"),void 0===h&&(h=!1);var p=t.call(this)||this;return p.distance=e,p.angle=n,KO.sanitize(i?i.value:null,r?r.value:null,o?o.value:null),p._colors=KO.colors,p._alphas=KO.alphas,p._ratios=KO.ratios,p.blurX=a,p.blurY=s,p.strength=u,p.quality=l,p.type=c,p.knockout=h,p}return Zg(e,t),e.FromUntyped=function(t,e){for(var n=[],i=[],r=0;r<t.colors.length;r++){var o=t.colors[r];n.push(o>>>8),i.push(255&o)}var a=$O.OUTER;t.onTop?a=$O.FULL:t.inner&&(a=$O.INNER);var s=180*t.angle/Math.PI;return new e.flash.filters.GradientGlowFilter(t.distance,s,this.sec.createArrayUnsafe(n),this.sec.createArrayUnsafe(i),this.sec.createArrayUnsafe(t.ratios),t.blurX,t.blurY,t.strength,t.quality,a,t.knockout)},Object.defineProperty(e.prototype,"distance",{get:function(){return this._distance},set:function(t){this._distance=+t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"angle",{get:function(){return this._angle},set:function(t){this._angle=+t%360},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"colors",{get:function(){return this.sec.createArrayUnsafe(this._colors.concat())},set:function(t){xd(t)&&this.sec.throwError("TypeError",w_.NullPointerError,"colors"),this._colors=KO.sanitizeColors(t.value);var e=this._colors.length;this._alphas=KO.sanitizeAlphas(this._alphas,e,e),this._ratios=KO.sanitizeRatios(this._ratios,e,e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"alphas",{get:function(){return this.sec.createArrayUnsafe(this._alphas.concat())},set:function(t){xd(t)&&this.sec.throwError("TypeError",w_.NullPointerError,"alphas"),KO.sanitize(this._colors,t.value,this._ratios),this._colors=KO.colors,this._alphas=KO.alphas,this._ratios=KO.ratios},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ratios",{get:function(){return this.sec.createArrayUnsafe(this._ratios.concat())},set:function(t){xd(t)&&this.sec.throwError("TypeError",w_.NullPointerError,"ratios"),KO.sanitize(this._colors,this._alphas,t.value),this._colors=KO.colors,this._alphas=KO.alphas,this._ratios=KO.ratios},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"blurX",{get:function(){return this._blurX},set:function(t){this._blurX=Jp(+t,0,255)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"blurY",{get:function(){return this._blurY},set:function(t){this._blurY=Jp(+t,0,255)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"knockout",{get:function(){return this._knockout},set:function(t){this._knockout=!!t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"quality",{get:function(){return this._quality},set:function(t){this._quality=Jp(0|t,0,15)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"strength",{get:function(){return this._strength},set:function(t){this._strength=Jp(+t,0,255)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this._type},set:function(t){null===(t=a_(t))?this.sec.throwError("TypeError",w_.NullPointerError,"type"):t===$O.INNER||t===$O.OUTER?this._type=t:this._type=$O.FULL},enumerable:!1,configurable:!0}),e.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)},e.classInitializer=null,e}(qO),eM=function(t){function e(e,n,i,r,o,a,s,u,l,c,h){void 0===e&&(e=4),void 0===n&&(n=45),void 0===i&&(i=null),void 0===r&&(r=null),void 0===o&&(o=null),void 0===a&&(a=4),void 0===s&&(s=4),void 0===u&&(u=1),void 0===l&&(l=1),void 0===c&&(c="inner"),void 0===h&&(h=!1);var p=t.call(this)||this;return p.distance=e,p.angle=n,KO.sanitize(i?i.value:null,r?r.value:null,o?o.value:null),p._colors=KO.colors,p._alphas=KO.alphas,p._ratios=KO.ratios,p.blurX=a,p.blurY=s,p.strength=u,p.quality=l,p.type=c,p.knockout=h,p}return Zg(e,t),e.FromUntyped=function(t,e){for(var n=[],i=[],r=0;r<t.colors.length;r++){var o=t.colors[r];n.push(o>>>8),i.push(255&o)}var a=$O.OUTER;t.onTop?a=$O.FULL:t.inner&&(a=$O.INNER);var s=180*t.angle/Math.PI;return new e.flash.filters.GradientBevelFilter(t.distance,s,e.createArrayUnsafe(n),e.createArrayUnsafe(i),e.createArrayUnsafe(t.ratios),t.blurX,t.blurY,t.strength,t.quality,a,t.knockout)},Object.defineProperty(e.prototype,"distance",{get:function(){return this._distance},set:function(t){this._distance=+t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"angle",{get:function(){return this._angle},set:function(t){this._angle=+t%360},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"colors",{get:function(){return this.sec.createArrayUnsafe(this._colors.concat())},set:function(t){xd(t)&&this.sec.throwError("TypeError",w_.NullPointerError,"colors"),this._colors=KO.sanitizeColors(t.value);var e=this._colors.length;this._alphas=KO.sanitizeAlphas(this._alphas,e,e),this._ratios=KO.sanitizeRatios(this._ratios,e,e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"alphas",{get:function(){return this.sec.createArrayUnsafe(this._alphas.concat())},set:function(t){xd(t)&&this.sec.throwError("TypeError",w_.NullPointerError,"alphas"),KO.sanitize(this._colors,t.value,this._ratios),this._colors=KO.colors,this._alphas=KO.alphas,this._ratios=KO.ratios},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ratios",{get:function(){return this.sec.createArrayUnsafe(this._ratios.concat())},set:function(t){xd(t)&&this.sec.throwError("TypeError",w_.NullPointerError,"ratios"),KO.sanitize(this._colors,this._alphas,t.value),this._colors=KO.colors,this._alphas=KO.alphas,this._ratios=KO.ratios},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"blurX",{get:function(){return this._blurX},set:function(t){this._blurX=Jp(+t,0,255)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"blurY",{get:function(){return this._blurY},set:function(t){this._blurY=Jp(+t,0,255)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"knockout",{get:function(){return this._knockout},set:function(t){this._knockout=!!t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"quality",{get:function(){return this._quality},set:function(t){this._quality=Jp(0|t,0,15)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"strength",{get:function(){return this._strength},set:function(t){this._strength=Jp(+t,0,255)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this._type},set:function(t){null===(t=a_(t))?this.sec.throwError("TypeError",w_.NullPointerError,"type"):t===$O.INNER||t===$O.OUTER?this._type=t:this._type=$O.FULL},enumerable:!1,configurable:!0}),e.prototype.toAwayObject=function(){return{filterName:"bevel",distance:this._distance,angle:this._angle,blurX:this._blurX,blurY:this._blurY,strength:this._strength,quality:this._quality,type:this._type,knockout:this._knockout,colors:this._colors,alphas:this._alphas,ratios:this._ratios}},e.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)},e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e}(qO),nM=function(t){function e(e,n,i){void 0===e&&(e=4),void 0===n&&(n=4),void 0===i&&(i=1);var r=t.call(this)||this;return r.filterName="blur",r.blurX=e,r.blurY=n,r.quality=i,r}return Zg(e,t),e.FromUntyped=function(t,e){return new e.flash.filters.BlurFilter(t.blurX,t.blurY,t.quality)},Object.defineProperty(e.prototype,"blurX",{get:function(){return this._blurX},set:function(t){this._blurX=Jp(+t,0,255)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"blurY",{get:function(){return this._blurY},set:function(t){this._blurY=Jp(+t,0,255)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"quality",{get:function(){return this._quality},set:function(t){this._quality=Jp(0|t,0,15)},enumerable:!1,configurable:!0}),e.prototype.clone=function(){return new this.sec.flash.filters.BlurFilter(this._blurX,this._blurY,this._quality)},e.prototype.toAwayObject=function(){return this},e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e}(qO),iM=function(t){function e(e,n,i,r,o,a,s,u,l){void 0===e&&(e=0),void 0===n&&(n=0),void 0===i&&(i=null),void 0===r&&(r=1),void 0===o&&(o=0),void 0===a&&(a=!0),void 0===s&&(s=!0),void 0===u&&(u=0),void 0===l&&(l=0);var c=t.call(this)||this;return c.matrixX=e,c.matrixY=n,i?c.matrix=i:c._matrix=c._expandArray([],c._matrixX*c._matrixY),c.divisor=r,c.bias=o,c.preserveAlpha=a,c.clamp=s,c.color=u,c.alpha=l,c}return Zg(e,t),e.FromUntyped=function(t,e){return new e.flash.filters.ConvolutionFilter(t.matrixX,t.matrixY,t.matrix,t.divisor,t.bias,t.preserveAlpha,t.clamp,t.color>>>8,(255&t.color)/255)},e.prototype._expandArray=function(t,e,n){if(t)for(var i=t.length;i<e;)t[i++]=0;return t},Object.defineProperty(e.prototype,"matrix",{get:function(){return this.sec.createArrayUnsafe(this._matrix.slice(0,this._matrixX*this._matrixY))},set:function(t){xd(t)&&this.sec.throwError("TypeError",w_.NullPointerError,"matrix");for(var e=t.value,n=this._matrixX*this._matrixY,i=Math.min(e.length,n),r=Array(i),o=0;o<i;o++)r[o]=vd(e[o]);this._expandArray(r,n),this._matrix=r},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"matrixX",{get:function(){return this._matrixX},set:function(t){var e=0|Jp(+t,0,15);this._matrixX!==e&&(this._matrixX=e,this._expandArray(this._matrix,e*this._matrixY))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"matrixY",{get:function(){return this._matrixY},set:function(t){var e=0|Jp(+t,0,15);this._matrixY!==e&&(this._matrixY=e,this._expandArray(this._matrix,e*this._matrixX))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"divisor",{get:function(){return this._divisor},set:function(t){this._divisor=+t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bias",{get:function(){return this._bias},set:function(t){this._bias=+t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"preserveAlpha",{get:function(){return this._preserveAlpha},set:function(t){this._preserveAlpha=!!t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clamp",{get:function(){return this._clamp},set:function(t){this._clamp=!!t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"color",{get:function(){return this._color},set:function(t){this._color=t>>>0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"alpha",{get:function(){return this._alpha},set:function(t){this._alpha=Jp(+t,0,1)},enumerable:!1,configurable:!0}),e.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)},e.classInitializer=null,e}(qO),rM=function(t){function e(e){void 0===e&&(e=null);var n=t.call(this)||this;return e?n.matrix=e:n._matrix=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],n}return Zg(e,t),e.FromUntyped=function(t,e){return new e.flash.filters.ColorMatrixFilter(e.createArrayUnsafe(t.matrix))},e.prototype._serialize=function(t){var e=this._matrix;t.ensureAdditionalCapacity(4*(e.length+1)),t.writeIntUnsafe(6);for(var n=0;n<e.length;n++)t.writeFloatUnsafe(e[n])},Object.defineProperty(e.prototype,"matrix",{get:function(){return this.sec.createArrayUnsafe(this._matrix.concat())},set:function(t){xd(t)&&this.sec.throwError("TypeError",w_.NullPointerError,"matrix");for(var e=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],n=t.value,i=0,r=Math.min(n.length,20);i<r;i++)e[i]=vd(n[i]);this._matrix=e},enumerable:!1,configurable:!0}),e.prototype.clone=function(){return new this.sec.flash.filters.ColorMatrixFilter(this.sec.createArrayUnsafe(this._matrix))},e.prototype.toAwayObject=function(){return{filterName:"colorMatrix",matrix:this._matrix}},e.classInitializer=null,e}(qO),oM=((HO={})[wf.DROPSHADOW]=WO,HO[wf.GLOW]=JO,HO[wf.BEVEL]=ZO,HO[wf.GRADIENTGLOW]=tM,HO[wf.GRADIENTBEVEL]=eM,HO[wf.BLUR]=nM,HO[wf.CONVOLUTION]=iM,HO[wf.COLORMATRIX]=rM,HO),aM=function(){function t(){}return t.FromUntyped=function(t,e){return t&&oM[t.type]?oM[t.type].FromUntyped(t,e):null},t}(),sM=new N,uM=function(t){return isNaN(t)?0:t===1/0||t===-1/0?-107374182.4:t},lM=function(t){function e(){var n=t.call(this)||this;return n._forceWidth=0,n._forceHeight=0,n.$lazyConstructProperty={},n._onNodeClearDelegate=function(t){return n._onNodeClear(t)},e.applyLazy(n),n._filters=n._filters||n.sec.createArrayUnsafe([]),n._blockedByScript=!1,n._ctBlockedByScript=!1,n._visibilityByScript=!1,n.adaptee=n.adaptee||n.createAdaptee(),n.adaptee.mouseEnabled=!1,n._stage=n.activeStage,n.eventMappingExtern[kO.ENTER_FRAME]="",n.eventMappingExtern[kO.FRAME_CONSTRUCTED]="",n.eventMappingExtern[kO.EXIT_FRAME]="",n.eventMappingExtern[kO.RENDER]="",n.eventMappingExtern[kO.REMOVED_FROM_STAGE]="",n.eventMappingExtern[kO.REMOVED]="",n.eventMappingExtern[kO.ADDED_TO_STAGE]="",n.eventMappingExtern[kO.ADDED]="",n._transform=new n.sec.flash.geom.Transform(n.adaptee.transform),n}return Zg(e,t),e.defineLazy=function(t,e,n){return!t._adaptee&&(t.$lazyConstructProperty||(t.$lazyConstructProperty={}),t.$lazyConstructProperty[e]=n,!0)},e.applyLazy=function(t){if(t.$lazyConstructProperty){for(var e in t.$lazyConstructProperty)e in t&&(t[e]=t.$lazyConstructProperty[e]);t.$lazyConstructProperty=null}},e.prototype.toString=function(){return"[object ".concat(this.classInfo.instanceInfo.name.name,"]")},e.prototype.applySymbol=function(){},e.prototype.dispatchStaticEvent=function(t,e){void 0===e&&(e=null),YO.events[t]||(YO.events[t]=new this.sec.flash.events.Event(t)),YO.events[t].target=e,this.dispatchEvent(YO.events[t])},e.prototype.dispatch_ADDED_TO_STAGE=function(t){void 0===t&&(t=!1),t&&(YO.events[kO.ADDED_TO_STAGE]||(YO.events[kO.ADDED_TO_STAGE]=new this.sec.flash.events.Event(kO.ADDED_TO_STAGE)),YO.events[kO.ADDED_TO_STAGE].target=this,this.dispatchEvent(YO.events[kO.ADDED_TO_STAGE]))},e.prototype.dispatch_REMOVED_FROM_STAGE=function(t){void 0===t&&(t=!1),t&&(YO.events[kO.REMOVED_FROM_STAGE]||(YO.events[kO.REMOVED_FROM_STAGE]=new this.sec.flash.events.Event(kO.REMOVED_FROM_STAGE)),YO.events[kO.REMOVED_FROM_STAGE].target=this,this.dispatchEvent(YO.events[kO.REMOVED_FROM_STAGE]))},e.prototype.dispatchStaticBroadCastEvent=function(t){YO.events[t]||(YO.events[t]=new this.sec.flash.events.Event(t)),XO.getInstance().dispatchEvent(YO.events[t])},e.prototype.updateFilters=function(t){var e=[];if(t&&t.length)for(var n=0,i=t;n<i.length;n++){var r=i[n],o=aM.FromUntyped(r,this.sec);o&&e.push(o)}this.filters=this.sec.createArrayUnsafe(e)},e.prototype._onNodeClear=function(t){this._node.removeEventListener(d.CLEAR,this._onNodeClearDelegate),this._node=null},e.prototype.createAdaptee=function(){return new dl},e.prototype.mapAdaptee=function(t){return t&&(t.partitionClass=Br,t.adapter=this),t},Object.defineProperty(e.prototype,"activeStage",{get:function(){return this.sec.flash.display.DisplayObject.axClass._activeStage},enumerable:!1,configurable:!0}),e.prototype.dispatchEventRecursive=function(t){this.dispatchEvent(t)},Object.defineProperty(e.prototype,"node",{get:function(){return this._node||(this._node=jg.instance().view.getNode(this._adaptee),this._node.addEventListener(d.CLEAR,this._onNodeClearDelegate)),this._node},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"adaptee",{get:function(){return this._adaptee},set:function(t){this._adaptee!=t&&(this._adaptee&&(this._adaptee.adapter=null),this._adaptee=this.mapAdaptee(t))},enumerable:!1,configurable:!0}),e.prototype.initAdapter=function(){},e.prototype.isBlockedByScript=function(){return this._blockedByScript},e.prototype.isVisibilityByScript=function(){return this._visibilityByScript},e.prototype.isColorTransformByScript=function(){return this._ctBlockedByScript},e.prototype.freeFromScript=function(){this._blockedByScript=!1,this._ctBlockedByScript=!1,this._visibilityByScript=!1},e.prototype.clone=function(){if(!this._symbol)throw"_symbol not defined when cloning movieclip";var t=WD(this._symbol,this._symbol.symbolClass);return t.axInitializer(),t.loaderInfo=this.loaderInfo,this.adaptee.copyTo(t.adaptee),t},e.prototype.dispose=function(){throw new h},e.prototype.disposeValues=function(){this.adaptee=null},Object.defineProperty(e.prototype,"accessibilityProperties",{get:function(){return Tt.throwPIR("playerglobals/display/DisplayObject","get accessibilityProperties",""),null},set:function(t){Tt.throwPIR("playerglobals/display/DisplayObject","set accessibilityProperties","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"alpha",{get:function(){return this.adaptee.alpha},set:function(t){this._ctBlockedByScript=!0,this.adaptee.alpha=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"blendMode",{get:function(){return Tt.throwPIR("playerglobals/display/DisplayObject","get blendMode",""),""},set:function(t){Tt.throwPIR("playerglobals/display/DisplayObject","set blendMode",""),this._adaptee.blendMode=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"blendShader",{set:function(t){Tt.throwPIR("playerglobals/display/DisplayObject","set blendShader","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cacheAsBitmap",{get:function(){return this.adaptee.cacheAsBitmap},set:function(t){this.adaptee.cacheAsBitmap=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"filters",{get:function(){return this._filters},set:function(t){this._filters!=t&&(this._filters=t,this._adaptee.filters=null==t?void 0:t.value.map((function(t){return t.toAwayObject()})))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){if(0!=this._forceHeight)return this._forceHeight;if(this.adaptee.isAsset(Qp))return this.adaptee.height;if(!this.node.partition)return console.warn("Trying to get Display.height on orphan child!"),100;var t=this.getBoundsInternal(this.parent||this._stage);return null==t?0:Math.round(20*t.height)/20},set:function(t){isNaN(t)||(t=uM(t),t=Math.round(20*t)/20,this._blockedByScript=!0,this.adaptee.isAsset(Qp)?this.adaptee.height=t:this.node.partition?kr.getInstance().getBoundsPicker(this.node.partition).height=t:console.warn("Trying to set Display.height on orphan child!"))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"loaderInfo",{get:function(){var t;return this._loaderInfo||(null===(t=this.root)||void 0===t?void 0:t._loaderInfo)},set:function(t){this._loaderInfo=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mask",{get:function(){var t;return(null===(t=this.adaptee.scriptMask)||void 0===t?void 0:t.adapter)||null},set:function(t){this.adaptee.scriptMask=(null==t?void 0:t.adaptee)||null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"metaData",{get:function(){return Tt.throwPIR("playerglobals/display/DisplayObject","get metaData",""),null},set:function(t){Tt.throwPIR("playerglobals/display/DisplayObject","set metaData","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mouseX",{get:function(){return sM.setTo(this._stage.mouseX,this._stage.mouseY),this.node.globalToLocal(sM,sM),Math.floor(sM.x)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mouseY",{get:function(){return sM.setTo(this._stage.mouseX,this._stage.mouseY),this.node.globalToLocal(sM,sM),Math.floor(sM.y)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this.adaptee.name},set:function(t){this.adaptee.name=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"opaqueBackground",{get:function(){return Tt.throwPIR("playerglobals/display/DisplayObject","get opaqueBackground",""),null},set:function(t){Tt.throwPIR("playerglobals/display/DisplayObject","set opaqueBackground","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return null==this.adaptee.parent||null==this.adaptee.parent.adapter||this.adaptee.parent.adapter==this.adaptee.parent?null:this.adaptee.parent.adapter},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"root",{get:function(){var t=this._stage.getChildAt(0);return t||(console.log("DisplayObject: could not get root"),null)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rotation",{get:function(){return this.adaptee.rotationZ},set:function(t){this._blockedByScript=!0;var e=isNaN(t)?0:isFinite(t)?t%360:-8;e<-180?e+=360:e>180&&(e-=360),this.adaptee.rotationZ=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rotationX",{get:function(){return this.adaptee.rotationX},set:function(t){this._blockedByScript=!0,this.adaptee.rotationX=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rotationY",{get:function(){return this.adaptee.rotationY},set:function(t){this._blockedByScript=!0,this.adaptee.rotationY=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rotationZ",{get:function(){return this.adaptee.rotationZ},set:function(t){this._blockedByScript=!0,this.adaptee.rotationZ=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scale9Grid",{get:function(){return new this.sec.flash.geom.Rectangle(this.adaptee.scale9Grid)},set:function(t){this.adaptee.scale9Grid=t.adaptee},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleX",{get:function(){return this.adaptee.scaleX},set:function(t){this._blockedByScript=!0,this.adaptee.scaleX=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleY",{get:function(){return this.adaptee.scaleY},set:function(t){this._blockedByScript=!0,this.adaptee.scaleY=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleZ",{get:function(){return this.adaptee.scaleZ},set:function(t){this._blockedByScript=!0,this.adaptee.scaleZ=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scrollRect",{get:function(){return this.adaptee.scrollRect?new this.sec.flash.geom.Rectangle(this.adaptee.scrollRect):null},set:function(t){this.adaptee.scrollRect=t?t.adaptee:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stage",{get:function(){return this._isAVMStage?this:this.adaptee.parent?this.adaptee.parent.adapter.stage:null},set:function(t){this._stage=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"transform",{get:function(){return this._ctBlockedByScript=!0,this._transform=new this.sec.flash.geom.Transform(this.adaptee.transform)},set:function(t){Tt.throwPIR("playerglobals/display/DisplayObject","set transform","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"visible",{get:function(){return this._adaptee.visible},set:function(t){this._visibilityByScript=!0,this._adaptee.visible=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){if(0!=this._forceWidth)return this._forceWidth;if(this.adaptee.isAsset(Qp))return this.adaptee.width;if(!this.node.partition)return console.warn("Trying to get Display.width on orphan child!"),100;var t=this.getBoundsInternal(this.parent||this._stage);return null==t?0:Math.round(20*t.width)/20},set:function(t){isNaN(t)||(t=uM(t),this.node.partition?(t=Math.round(20*t)/20,this._blockedByScript=!0,this.adaptee.isAsset(Qp)?this.adaptee.width=t:kr.getInstance().getBoundsPicker(this.node.partition).width=t):console.warn("Trying to set Display.width on orphan child!"))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"x",{get:function(){return this._adaptee.textOffsetX?this._adaptee._transform._matrix3D._rawData[12]+this._adaptee.textOffsetX*this.adaptee.scaleX:this._adaptee._transform._matrix3D._rawData[12]},set:function(t){t=uM(t),e.defineLazy(this,"x",t)||(this._blockedByScript=!0,this._adaptee.textOffsetX&&(t-=this._adaptee.textOffsetX*this.adaptee.scaleX),this._adaptee.x=t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"y",{get:function(){return this._adaptee.textOffsetY?this._adaptee._transform._matrix3D._rawData[13]+this._adaptee.textOffsetY*this.adaptee.scaleY:this._adaptee._transform._matrix3D._rawData[13]},set:function(t){t=uM(t),e.defineLazy(this,"y",t)||(this._blockedByScript=!0,this._adaptee.textOffsetY&&(t-=this._adaptee.textOffsetY*this.adaptee.scaleY),this._adaptee.y=t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"z",{get:function(){return this._adaptee._transform._matrix3D._rawData[14]},set:function(t){t=uM(t),this._blockedByScript=!0,this._adaptee.z=t},enumerable:!1,configurable:!0}),e.prototype.getBounds=function(t){var e=this.getBoundsInternal(t,!0),n=this.sec.flash.geom.Rectangle;return e?new n(e.x,e.y,e.width,e.height):new n(6710886.4,6710886.4,0,0)},e.prototype.getBoundsInternal=function(t,e){return void 0===t&&(t=null),void 0===e&&(e=!1),t||(t=this),this._boundsPicker=kr.getInstance().getBoundsPicker(this.node.partition),this._boundsPicker.getBoxBounds(jg.instance().view.getNode(t.adaptee),e,!0)},e.prototype.getRect=function(t){var e=this.getBoundsInternal(t),n=this.sec.flash.geom.Rectangle;return e?new n(e.x,e.y,e.width,e.height):new n},e.prototype.globalToLocal=function(t){return new this.sec.flash.geom.Point(this.node.globalToLocal(t.adaptee))},e.prototype.globalToLocal3D=function(t){return Tt.throwPIR("playerglobals/display/DisplayObject","globalToLocal3D",""),new this.sec.flash.geom.Vector3D},e.prototype.hitTestObject=function(t){return kr.getInstance().getBoundsPicker(this.node.partition).hitTestObject(kr.getInstance().getBoundsPicker(jg.instance().view.getNode(t.adaptee).partition))},e.prototype.hitTestPoint=function(t,e,n){return void 0===n&&(n=!1),kr.getInstance().getBoundsPicker(this.node.partition).hitTestPoint(t,e,n)},e.prototype._getObjectsUnderPointInternal=function(t,e){},e.prototype.local3DToGlobal=function(t){return Tt.throwPIR("playerglobals/display/DisplayObject","local3DToGlobal",""),new this.sec.flash.geom.Point},e.prototype.localToGlobal=function(t){return new this.sec.flash.geom.Point(this.node.localToGlobal(t.adaptee))},e._activeStage=null,e}(GO),cM=function(t){function e(e,n,i,r,o,a,s,u,l){void 0===n&&(n=!0),void 0===i&&(i=!1),void 0===r&&(r=0),void 0===o&&(o=0),void 0===a&&(a=0),void 0===s&&(s=!1),void 0===u&&(u=!1),void 0===l&&(l=!1);var c=t.call(this,e,n,i)||this;return c._charCode=r>>>0,c._keyCode=o>>>0,c._keyLocation=a>>>0,c._ctrlKey=!!s,c._altKey=!!u,c._shiftKey=!!l,c}return Zg(e,t),Object.defineProperty(e.prototype,"charCode",{get:function(){return this._charCode},set:function(t){this._charCode=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"keyCode",{get:function(){return this._keyCode},set:function(t){this._keyCode=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"keyLocation",{get:function(){return this._keyLocation},set:function(t){this._keyLocation=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ctrlKey",{get:function(){return this._ctrlKey},set:function(t){this._ctrlKey=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"altKey",{get:function(){return this._altKey},set:function(t){this._altKey=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"shiftKey",{get:function(){return this._shiftKey},set:function(t){this._shiftKey=t},enumerable:!1,configurable:!0}),e.prototype.clone=function(){return new e(this.type,this.bubbles,this.cancelable,this.charCode,this.keyCode,this.keyLocation,this.ctrlKey,this.altKey,this.shiftKey)},e.prototype.toString=function(){return this.formatToString("KeyboardEvent","type","bubbles","cancelable","eventPhase","charCode","keyCode","keyLocation","ctrlKey","altKey","shiftKey")},e.prototype.updateAfterEvent=function(){this.sec.player.requestRender()},e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.KEY_DOWN="keyDown",e.KEY_UP="keyUp",e}(kO),hM=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zg(e,t),Object.defineProperty(e.prototype,"isRelatedObjectInaccessible",{get:function(){return console.log("isRelatedObjectInaccessible not implemented yet in flash/FocusEvent"),!1},set:function(t){console.log("isRelatedObjectInaccessible not implemented yet in flash/FocusEvent")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"keyCode",{get:function(){return console.log("keyCode not implemented yet in flash/FocusEvent"),0},set:function(t){console.log("keyCode not implemented yet in flash/FocusEvent")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"relatedObject",{get:function(){return console.log("relatedObject not implemented yet in flash/FocusEvent"),null},set:function(t){console.log("relatedObject not implemented yet in flash/FocusEvent")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"shiftKey",{get:function(){return console.log("shiftKey not implemented yet in flash/FocusEvent"),!1},set:function(t){console.log("shiftKey not implemented yet in flash/FocusEvent")},enumerable:!1,configurable:!0}),e.prototype.clone=function(){return console.log("clone not implemented yet in flash/IOErrorEvent"),null},e.prototype.toString=function(){return console.log("toString not implemented yet in flash/FocusEvent"),""},e.prototype.fillFromAway=function(t){this.adaptee=t,this.target=t.target},e.FOCUS_IN="focusIn",e.FOCUS_OUT="focusOut",e.KEY_FOCUS_CHANGE="keyFocusChange",e.MOUSE_FOCUS_CHANGE="mouseFocusChange",e}(kO),pM=function(t){function e(){var e=t.call(this)||this;return e._mouseListnersCallbacksByType={},e.adaptee.mouseEnabled=!0,e.eventMappingDummys[QO.RIGHT_MOUSE_UP]="InteractiveObject:MouseEvent.RIGHT_MOUSE_UP",e.eventMappingDummys[QO.RIGHT_MOUSE_DOWN]="InteractiveObject:MouseEvent.RIGHT_MOUSE_DOWN",e.eventMappingDummys[QO.RIGHT_MOUSE_DOWN]="InteractiveObject:MouseEvent.RIGHT_MOUSE_DOWN",e.eventMappingDummys[QO.RIGHT_CLICK]="InteractiveObject:MouseEvent.RIGHT_CLICK",e.eventMappingDummys[QO.MIDDLE_MOUSE_UP]="InteractiveObject:MouseEvent.MIDDLE_MOUSE_UP",e.eventMappingDummys[QO.MIDDLE_MOUSE_DOWN]="InteractiveObject:MouseEvent.MIDDLE_MOUSE_DOWN",e.eventMappingDummys[QO.MIDDLE_CLICK]="InteractiveObject:MouseEvent.MIDDLE_CLICK",e._keyUpCallbackDelegate=function(t){return e.keyUpCallback(t)},e.eventMapping[cM.KEY_UP]={adaptedType:"",addListener:e.initKeyUpListener,removeListener:e.removeKeyUpListener,callback:e._keyUpCallbackDelegate},e._keyDownCallbackDelegate=function(t){return e.keyDownCallback(t)},e.eventMapping[cM.KEY_DOWN]={adaptedType:"",addListener:e.initKeyDownListener,removeListener:e.removeKeyDownListener,callback:e._keyDownCallbackDelegate},e._mouseCallbackDelegate=function(t){return e.mouseCallback(t)},e.eventMappingInvert[Ll.MOUSE_WHEEL]=QO.MOUSE_WHEEL,e.eventMapping[QO.MOUSE_WHEEL]={adaptedType:Ll.MOUSE_WHEEL,addListener:e.initMouseListener,removeListener:e.removeMouseListener,callback:e._mouseCallbackDelegate},e.eventMappingInvert[Ll.MOUSE_UP]=QO.MOUSE_UP,e.eventMapping[QO.MOUSE_UP]={adaptedType:Ll.MOUSE_UP,addListener:e.initMouseListener,removeListener:e.removeMouseListener,callback:e._mouseCallbackDelegate},e.eventMappingInvert[Ll.MOUSE_UP_OUTSIDE]=QO.RELEASE_OUTSIDE,e.eventMapping[QO.RELEASE_OUTSIDE]={adaptedType:Ll.MOUSE_UP_OUTSIDE,addListener:e.initMouseListener,removeListener:e.removeMouseListener,callback:e._mouseCallbackDelegate},e.eventMappingInvert[Ll.MOUSE_OVER]=QO.MOUSE_OVER,e.eventMapping[QO.MOUSE_OVER]={adaptedType:Ll.MOUSE_OVER,addListener:e.initMouseListener,removeListener:e.removeMouseListener,callback:e._mouseCallbackDelegate},e.eventMappingInvert[Ll.MOUSE_OUT]=QO.MOUSE_OUT,e.eventMapping[QO.MOUSE_OUT]={adaptedType:Ll.MOUSE_OUT,addListener:e.initMouseListener,removeListener:e.removeMouseListener,callback:e._mouseCallbackDelegate},e.eventMappingInvert[Ll.MOUSE_MOVE]=QO.MOUSE_MOVE,e.eventMapping[QO.MOUSE_MOVE]={adaptedType:Ll.MOUSE_MOVE,addListener:e.initMouseListener,removeListener:e.removeMouseListener,callback:e._mouseCallbackDelegate},e.eventMappingInvert[Ll.MOUSE_DOWN]=QO.MOUSE_DOWN,e.eventMapping[QO.MOUSE_DOWN]={adaptedType:Ll.MOUSE_DOWN,addListener:e.initMouseListener,removeListener:e.removeMouseListener,callback:e._mouseCallbackDelegate},e.eventMappingInvert[Ll.DOUBLE_CLICK]=QO.DOUBLE_CLICK,e.eventMapping[QO.DOUBLE_CLICK]={adaptedType:Ll.DOUBLE_CLICK,addListener:e.initMouseListener,removeListener:e.removeMouseListener,callback:e._mouseCallbackDelegate},e.eventMappingInvert[Ll.CLICK]=QO.CLICK,e.eventMapping[QO.CLICK]={adaptedType:Ll.CLICK,addListener:e.initMouseListener,removeListener:e.removeMouseListener,callback:e._mouseCallbackDelegate},e.eventMappingInvert[Ll.ROLL_OUT]=QO.ROLL_OUT,e.eventMapping[QO.ROLL_OUT]={adaptedType:Ll.ROLL_OUT,addListener:e.initMouseListener,removeListener:e.removeMouseListener,callback:e._mouseCallbackDelegate},e.eventMappingInvert[Ll.ROLL_OVER]=QO.ROLL_OVER,e.eventMapping[QO.ROLL_OVER]={adaptedType:Ll.ROLL_OVER,addListener:e.initMouseListener,removeListener:e.removeMouseListener,callback:e._mouseCallbackDelegate},e._focusCallbackDelegate=function(t){return e.focusCallback(t)},e.eventMappingInvert[Gp.FOCUS_OUT]=hM.FOCUS_OUT,e.eventMapping[hM.FOCUS_OUT]={adaptedType:Gp.FOCUS_OUT,addListener:e.initMouseListener,removeListener:e.removeMouseListener,callback:e._focusCallbackDelegate},e.eventMappingInvert[Gp.FOCUS_IN]=hM.FOCUS_IN,e.eventMapping[hM.FOCUS_IN]={adaptedType:Gp.FOCUS_IN,addListener:e.initMouseListener,removeListener:e.removeMouseListener,callback:e._focusCallbackDelegate},e}return Zg(e,t),e.prototype.initKeyUpListener=function(t,e,n){if(!this._keyUpListeners)return this._keyUpListeners=[n],document.addEventListener("keyup",e),void document.addEventListener("keypress",e);this._keyUpListeners.push(n)},e.prototype.removeKeyUpListener=function(t,e,n){if(this._keyUpListeners){var i=this._keyUpListeners.indexOf(n);if(-1!=i){if(1==this._keyUpListeners.length)return this._keyUpListeners=null,void document.removeEventListener("keyup",e);this._keyUpListeners.splice(i,1)}}},e.prototype.keyUpCallback=function(t){if(void 0===t&&(t=null),!jg.instance().isPaused){window.event&&(window.event.returnValue=!1),t.preventDefault?t.preventDefault():t.returnValue=!1;var e=new this.sec.flash.events.KeyboardEvent(cM.KEY_UP,!0,!1,t.charCode,t.keyCode,t.location,t.ctrlKey,t.altKey,t.shiftKey);return this.dispatchEvent(e),!1}},e.prototype.initKeyDownListener=function(t,e,n){if(!this._keyDownListeners)return this._keyDownListeners=[n],document.addEventListener("keydown",e),void document.addEventListener("keypress",e);this._keyDownListeners.push(n)},e.prototype.removeKeyDownListener=function(t,e,n){if(this._keyDownListeners){var i=this._keyDownListeners.indexOf(n);if(-1!=i){if(1==this._keyDownListeners.length)return this._keyDownListeners=null,document.removeEventListener("keydown",e),void document.removeEventListener("keypress",e);this._keyDownListeners.splice(i,1)}}},e.prototype.keyDownCallback=function(t){if(void 0===t&&(t=null),!jg.instance().isPaused){window.event&&(window.event.returnValue=!1),t.preventDefault?t.preventDefault():t.returnValue=!1;var e=new this.sec.flash.events.KeyboardEvent(cM.KEY_DOWN);return e.axInitializer(cM.KEY_DOWN),e.keyCode=t.keyCode,e.charCode=t.charCode,e.shiftKey=t.shiftKey,e.ctrlKey=t.ctrlKey,e.altKey=t.altKey,this.dispatchEvent(e),!1}},e.prototype.initMouseListener=function(t,e,n){if(!this._mouseListnersCallbacksByType[t])return this.adaptee.addEventListener(t,e),void(this._mouseListnersCallbacksByType[t]=[n]);this._mouseListnersCallbacksByType[t].push(n)},e.prototype.removeMouseListener=function(t,e,n){if(this._mouseListnersCallbacksByType[t]){var i=this._mouseListnersCallbacksByType[t].indexOf(n);if(-1!=i){if(1==this._mouseListnersCallbacksByType[t].length)return delete this._mouseListnersCallbacksByType[t],void this.adaptee.removeEventListener(t,e);this._mouseListnersCallbacksByType[t].splice(i,1)}}},e.prototype.mouseCallback=function(t){var e=new this.sec.flash.events.MouseEvent(this.eventMappingInvert[t.type]);e.fillFromAway(t),this.dispatchEvent(e,!0)},e.prototype.focusCallback=function(t){var e=new this.sec.flash.events.FocusEvent(this.eventMappingInvert[t.type]);e.fillFromAway(t),e.target=this,this.dispatchEvent(e,!0)},Object.defineProperty(e.prototype,"accessibilityImplementation",{get:function(){return Tt.throwPIR("playerglobals/display/InteractiveObject","get accessibilityImplementation",""),null},set:function(t){Tt.throwPIR("playerglobals/display/InteractiveObject","set accessibilityImplementation","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"contextMenu",{get:function(){return Tt.throwPIR("playerglobals/display/InteractiveObject","get contextMenu",""),null},set:function(t){Tt.throwPIR("playerglobals/display/InteractiveObject","set contextMenu","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"doubleClickEnabled",{get:function(){return Tt.throwPIR("playerglobals/display/InteractiveObject","get doubleClickEnabled",""),!1},set:function(t){Tt.throwPIR("playerglobals/display/InteractiveObject","set doubleClickEnabled","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"focusRect",{get:function(){return Tt.throwPIR("playerglobals/display/InteractiveObject","get focusRect",""),null},set:function(t){Tt.throwPIR("playerglobals/display/InteractiveObject","set focusRect","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mouseEnabled",{get:function(){return this.adaptee.mouseEnabled},set:function(t){this.adaptee.mouseEnabled=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"needsSoftKeyboard",{get:function(){return Tt.throwPIR("playerglobals/display/InteractiveObject","get needsSoftKeyboard",""),!1},set:function(t){Tt.throwPIR("playerglobals/display/InteractiveObject","set needsSoftKeyboard","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"softKeyboardInputAreaOfInterest",{get:function(){return Tt.throwPIR("playerglobals/display/InteractiveObject","get softKeyboardInputAreaOfInterest",""),null},set:function(t){Tt.throwPIR("playerglobals/display/InteractiveObject","set softKeyboardInputAreaOfInterest","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tabEnabled",{get:function(){return Tt.throwPIR("playerglobals/display/InteractiveObject","get tabEnabled",""),!1},set:function(t){Tt.throwPIR("playerglobals/display/InteractiveObject","set tabEnabled","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{get:function(){return Tt.throwPIR("playerglobals/display/InteractiveObject","get tabIndex",""),0},set:function(t){Tt.throwPIR("playerglobals/display/InteractiveObject","set tabIndex","")},enumerable:!1,configurable:!0}),e.prototype.requestSoftKeyboard=function(){return Tt.throwPIR("playerglobals/display/InteractiveObject","requestSoftKeyboard",""),!1},e}(lM),dM=function(t){function e(){var e=t.call(this)||this;if(e.adaptee)for(var n=0;n<e.adaptee.numChildren;n++){var i=e.adaptee.getChildAt(n),r=i.adapter,o=r.executeConstructor;o&&(r.executeConstructor=null,o()),i.just_added_to_timeline&&-1!=i._sessionID&&r&&r.dispatchStaticEvent&&(r.dispatchStaticEvent("added",r),i.just_added_to_timeline=!1,i.hasDispatchedAddedToStage=i.isOnDisplayList(),i.hasDispatchedAddedToStage&&r.dispatchStaticEvent("addedToStage",r))}return e}return Zg(e,t),e.prototype.addTimelineObjectAtDepth=function(t,e){},e.prototype.getTimelineObjectAtDepth=function(t){return null},e.prototype.createAdaptee=function(){return new fl},e.prototype.clone=function(){if(!this._symbol)throw"_symbol not defined when cloning movieclip";var t=WD(this._symbol,this._symbol.symbolClass);return t.axInitializer(),this.adaptee.copyTo(t.adaptee),t},e.prototype.debugDisplayGraph=function(t){t.object=this,t.rectangle="x:"+this.x+", y:"+this.y+", width:"+this.width+", height:"+this.height,t.children={};var e=0;for(e=0;e<this._adaptee.numChildren;e++){var n=this._adaptee.getChildAt(e),i="child_"+e+" "+n.adapter.constructor.name;if(n.isAsset(gl)||n.isAsset(fl))n.adapter&&(t.children[i]={},n.adapter.debugDisplayGraph(t.children[i]));else if(n.isAsset(Il))t.children[i]={},t.children[i].object=n.adapter,t.children[i].name=n.name,t.children[i].rectangle="x:"+n.x+", y:"+n.y;else if(n.isAsset(Rl))t.children[i]={},t.children[i].object=n.adapter,t.children[i].name=n.name,t.children[i].rectangle="x:"+n.x+", y:"+n.y;else if(n.isAsset(Qp)){t.children[i]={},t.children[i].object=n.adapter,t.children[i].text=n.text,t.children[i].rectangle="x:"+n.x+", y:"+n.y;var r=kr.getInstance().getBoundsPicker(jg.instance().view.getNode(n).partition).getBoxBounds(jg.instance().view.getNode(n));t.children[i].width=null==r?0:r.width,t.children[i].height=null==r?0:r.height}}},e.prototype.dispatch_ADDED_TO_STAGE=function(t){if(void 0===t&&(t=!1),t&&(YO.events[kO.ADDED_TO_STAGE]||(YO.events[kO.ADDED_TO_STAGE]=new this.sec.flash.events.Event(kO.ADDED_TO_STAGE)),YO.events[kO.ADDED_TO_STAGE].target=this,this.dispatchEvent(YO.events[kO.ADDED_TO_STAGE])),this._adaptee)for(var e=0;e<this._adaptee.numChildren;e++){var n=this._adaptee.getChildAt(e);n.adapter&&n.adapter.dispatchEventRecursive&&!n.hasDispatchedAddedToStage&&(n.hasDispatchedAddedToStage=!0,n.adapter.dispatch_ADDED_TO_STAGE(!0))}},e.prototype.dispatch_REMOVED_FROM_STAGE=function(t){if(void 0===t&&(t=!1),t&&(YO.events[kO.REMOVED_FROM_STAGE]||(YO.events[kO.REMOVED_FROM_STAGE]=new this.sec.flash.events.Event(kO.REMOVED_FROM_STAGE)),YO.events[kO.REMOVED_FROM_STAGE].target=this,this.dispatchEvent(YO.events[kO.REMOVED_FROM_STAGE])),this._adaptee)for(var e=0;e<this._adaptee.numChildren;e++){var n=this._adaptee.getChildAt(e);n.adapter&&n.adapter.dispatchEventRecursive&&n.hasDispatchedAddedToStage&&(n.hasDispatchedAddedToStage=!1,n.adapter.dispatch_REMOVED_FROM_STAGE(!0))}},Object.defineProperty(e.prototype,"mouseChildren",{get:function(){return this._adaptee.mouseChildren},set:function(t){this._adaptee.mouseChildren=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"numChildren",{get:function(){return this._adaptee.numChildren},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tabChildren",{get:function(){return Tt.throwPIR("playerglobals/display/DisplayObjectContainer","get tabChildren",""),!1},set:function(t){Tt.throwPIR("playerglobals/display/DisplayObjectContainer","set tabChildren","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textSnapshot",{get:function(){return Tt.throwPIR("playerglobals/display/DisplayObjectContainer","get textSnapshot",""),null},enumerable:!1,configurable:!0}),e.prototype.addChild=function(t){var e=t.adaptee._sessionID>=0&&this.registerScriptObject,n=!(t.adaptee.parent==this.adaptee);return this._adaptee.addChild(t.adaptee),e&&this.registerScriptObject(t.adaptee),n&&(t.dispatchStaticEvent(kO.ADDED,t),this.adaptee.isOnDisplayList()&&t.dispatch_ADDED_TO_STAGE(!0)),oP.removeOrphan(t.adaptee),t},e.prototype.addChildAt=function(t,e){var n=t.adaptee._sessionID>=0&&this.registerScriptObject,i=!(t.adaptee.parent==this.adaptee);return this.adaptee.addChildAt(t.adaptee,e),n&&this.registerScriptObject(t.adaptee),i&&(t.dispatchStaticEvent(kO.ADDED),this.adaptee.isOnDisplayList()&&t.dispatch_ADDED_TO_STAGE(!0)),oP.removeOrphan(t.adaptee),t},e.prototype.areInaccessibleObjectsUnderPoint=function(t){return Tt.throwPIR("playerglobals/display/DisplayObjectContainer","areInaccessibleObjectsUnderPoint",""),!1},e.prototype.contains=function(t){return this._adaptee.contains(t.adaptee)},e.prototype.getChildAt=function(t){var e=this._adaptee.getChildAt(t);e.adapter&&e.adapter!=e||((e.adapter=new this.sec.flash.display.Shape).adaptee=e);return e.adapter},e.prototype.getChildByName=function(t){return this._adaptee.getChildByName(t)?this._adaptee.getChildByName(t).adapter:null},e.prototype.getChildIndex=function(t){return this._adaptee.getChildIndex(t.adaptee)},e.prototype.getObjectsUnderPoint=function(t){for(var e=kr.getInstance().getRaycastPicker(jg.instance().view.getNode(this.adaptee).partition).getObjectsUnderPoint(new R(0,0,-1e3),new R(t.x,t.y,1e3)),n=[],i=e.length;i>0;){var r=e[--i];r instanceof fp?r=r.parent:r.isAsset(gl)&&r.adapter==r&&(r.adapter=new this.sec.flash.display.Sprite,r.adapter.adaptee=r),n.push(r.adapter)}return n},e.prototype._getObjectsUnderPointInternal=function(t,e){for(var n,i=0;i<this._adaptee.numChildren;i++)if((n=this._adaptee.getChildAt(i)).visible){kr.getInstance().getBoundsPicker(jg.instance().view.getNode(n.adaptee).partition).hitTestPoint(t.x,t.y,!0)&&e.push(n.adapter);var r=n.adapter;"function"!=typeof r._getObjectsUnderPointInternal||r._getObjectsUnderPointInternal(t,e)}},e.prototype.removeChild=function(t){try{this._adaptee.removeChild(t.adaptee)}catch(t){throw this.sec.createError("ArgumentError",w_.NotAChildError)}return oP.addOrphan(t.adaptee),t},e.prototype.removeChildAt=function(t){var e=this._adaptee.removeChildAt(t).adapter;return oP.addOrphan(e.adaptee),e},e.prototype.removeChildren=function(t,e){void 0===t&&(t=0),void 0===e&&(e=2147483647),e>=this._adaptee.numChildren&&(e=this._adaptee.numChildren-1);for(var n=e-1;n>=t;n--)this.removeChildAt(n)},e.prototype.setChildIndex=function(t,e){this.setChildIndexInternal(t,e)},e.prototype.setChildIndexInternal=function(t,e){var n=this.adaptee.getChildIndex(t.adaptee);if(n<0)throw"[DisplayObjectContainer.setChildindex] \t\t\t\t- todo: throw as3 error when child is not child of this obj";if(n!=e){if(e>this._adaptee.numChildren)throw"[DisplayObjectContainer.setChildindex] - todo: throw as3 error when index is out of bounds";this.adaptee.setChildIndex(t.adaptee,e)}},e.prototype.stopAllMovieClips=function(){Tt.throwPIR("playerglobals/display/DisplayObjectContainer","stopAllMovieClips","")},e.prototype.swapChildren=function(t,e){this._adaptee.swapChildren(t.adaptee,e.adaptee)},e.prototype.swapChildrenAt=function(t,e){this._adaptee.swapChildrenAt(t,e)},e}(pM),fM=function(t){function e(){var e=t.call(this)||this;return e.isDragging=!1,e.startDragPoint=new N,e.startDragMCPosition=new N,e.dragListenerDelegate=function(t){return e.dragListener(t)},e.stopDragDelegate=function(t){return e.stopDrag(t)},e._graphics=new e.sec.flash.display.Graphics(e._adaptee.graphics),!e.sec.flash.display.MovieClip.axIsType(e)&&e.adaptee.isAsset(Rl)&&e.adaptee.transformToSprite(),e}return Zg(e,t),e.getNewSprite=function(t){if(e._sprites.length){var n=e._sprites.pop();return n.adaptee=t,n}return new e},e.prototype.initAdapter=function(){},e.prototype.setChildIndexInternal=function(e,n){var i=this._registeredChildNames&&this._registeredChildNames.indexOf(e.name)>-1;t.prototype.setChildIndexInternal.call(this,e,n),i&&this.registerScriptObject(e.adaptee)},e.prototype.createAdaptee=function(){var t=gl.getNewSprite();return t.reset(),t},e.prototype.addTimelineChildAtDepth=function(t,e){t.reset();for(var n=this.adaptee.numChildren-1,i=n+1,r=0,o=n;o>=0;o--){var a=this.adaptee.getChildAt(o);if(-1==a._avmDepthID&&r++,a._avmDepthID>-1){if(a._avmDepthID<e){i=o+1+r;break}r=0,i=o}}return t._avmDepthID=e,t.just_added_to_timeline=!0,this.adaptee._sessionID_childs[t._sessionID]=t,this.adaptee.addChildAt(t,i)},e.prototype.removeTimelineChildAt=function(t){var e=this.adaptee._sessionID_childs[t];e&&(delete this.adaptee._sessionID_childs[t],this.adaptee.removeChild(e))},e.prototype.removeAllTimelineChilds=function(){var t=this.adaptee;for(var e in t._sessionID_childs){var n=t._sessionID_childs[e];n&&(delete t._sessionID_childs[e],t.removeChild(n))}},e.prototype.queueFrameScripts=function(t,e,n){n?Nl.add_script_to_queue(this.adaptee,e):Nl.add_script_to_queue_pass2(this.adaptee,e)},e.prototype.constructFrame=function(t,e,n,i,r,o,a){for(var s,u,l=this.adaptee,c=l.numChildren,h=[],p={},d=0;d<c;d++){var f=l.getChildAt(d);(i||-1==f._sessionID)&&(h[h.length]={sessionID:f._sessionID,as3DepthID:f._avmDepthID,addedOnTargetFrame:!1,child:f}),-1!=f._sessionID&&(p[f._sessionID]=f)}this.$Bg__setPropDict&&this.clearPropsDic(),t._update_indices.length=0,t._update_frames.length=0;var g,_,m=0;for(u=e;u<=n;u++){var y=t.frame_command_indices[u],A=t.frame_recipe[u];if(2&A){_=(g=t.command_index_stream[y])+t.command_length_stream[y++];var v={};for(s=g;s<_;s++)v[t.remove_child_stream[s]]=!0;var b=[];c=h.length;for(var C=0;C<c;C++)v[h[C].sessionID]||(b[b.length]=h[C]);h=b}if(4&A)for(_=(g=t.command_index_stream[y])+t.command_length_stream[y++],s=g;s<_;s++){for(var x=h.length-1,I=t.add_child_stream[3*s+1],E=x+1,w=0,S=x;S>=0;S--){var D=h[S];if(-1==D.as3DepthID&&w++,D.as3DepthID>-1){if(D.as3DepthID==I&&D.sessionID==t.add_child_stream[3*S]){E=-1;break}if(D.as3DepthID<I){E=S+1+w;break}w=0,E=S}}E>=h.length?h[h.length]={sessionID:t.add_child_stream[3*s],addedOnTargetFrame:u==n,symbolID:t.add_child_stream[3*s+2],as3DepthID:t.add_child_stream[3*s+1]}:E>-1&&h.splice(E,0,{sessionID:t.add_child_stream[3*s],addedOnTargetFrame:u==n,symbolID:t.add_child_stream[3*s+2],as3DepthID:t.add_child_stream[3*s+1]})}8&A&&(t._update_frames[m]=t.keyframe_firstframes[u],t._update_indices[m++]=y++),16&A&&u==n&&t.start_sounds(l,y)}var T,P=[],O=[],M=[];l._sessionID_childs={},c=P.length=h.length;for(var B=0;B<c;B++)if(-1==(T=h[B]).sessionID&&T.child)P[B]=T.child.adaptee;else if(p[T.sessionID]){var N=p[T.sessionID];l._sessionID_childs[T.sessionID]=N,P[B]=N,i||(P[B]._adapter?(P[B].adapter.isColorTransformByScript()||P[B].transform.clearColorTransform(),P[B].adapter.isBlockedByScript()||P[B].noTimelineUpdate||(P[B].transform.clearMatrix3D(),P[B].updateTimelineMask(null)),P[B].adapter.isVisibilityByScript()||(P[B].visible=!0)):(P[B].transform.clearColorTransform(),P[B].transform.clearMatrix3D(),P[B].visible=!0,P[B].updateTimelineMask(null)))}else{var L=t.getChildInstance(T.symbolID,T.sessionID);this.adaptee.isSlice9ScaledMC&&"[asset Sprite]"==L.assetType&&(L.isSlice9ScaledSprite=!0),L._sessionID=T.sessionID,L._avmDepthID=T.as3DepthID,l._sessionID_childs[T.sessionID]=L,P[B]=L,T.addedOnTargetFrame?M[M.length]=L:O[O.length]=L}for(var R=l.numChildren-1;R>=0;R--)P.indexOf(l.getChildAt(R))<0&&l.removeChildAt(R);for(var F=0;F<P.length;F++)l.contains(P[F])||l.addChildAt(P[F],F);l.preventScript=!0,this.finalizeChildren(O),a&&this.queueFrameScripts(t,r,!o),l.preventScript=!0,this.finalizeChildren(M)},e.prototype.finalizeChildren=function(t){for(var e=t.length,n=0;n<e;n++){var i=t[n];i.just_added_to_timeline=!0,i.reset()}},e.prototype.registerScriptObject=function(t){t.adapter!=t&&t.name&&("mask"!==t.name?(this[t.name]=t._adapter?t.adapter:t,this.axSetPublicProperty(t.name,t.adapter),this._registeredChildNames?-1===this._registeredChildNames.indexOf(t.name)&&this._registeredChildNames.push(t.name):this._registeredChildNames=[t.name]):this.adaptee.scriptMask=t)},e.prototype.unregisterScriptObject=function(t){this[t.name]==t.adapter&&(delete this[t.name],this.axDeletePublicProperty(t.name),this._registeredChildNames&&this._registeredChildNames.splice(this._registeredChildNames.indexOf(t.name),1)),t.isAsset(Rl)&&t.removeButtonListeners()},e.prototype.clearPropsDic=function(){},e.prototype.clone=function(){var t=this;if(!this._symbol)throw"_symbol not defined when cloning movieclip";var e=WD(this._symbol,this._symbol.symbolClass),n=new gl;this.adaptee.copyTo(n),e.adaptee=n,e._stage=this.activeStage,e.executeConstructor=function(){e.axInitializer(),t.constructorHasRun=!0},e.adaptee.graphics=this.graphics;var i=n.timeline;if(i){var r=i;if(r.frame_command_indices=[i.frame_command_indices[0]],r.frame_recipe=[i.frame_recipe[0]],r.keyframe_constructframes=[i.keyframe_constructframes[0]],r.keyframe_durations=[i.keyframe_durations[0]],r.keyframe_firstframes=[i.keyframe_firstframes[0]],r.keyframe_indices=[i.keyframe_indices[0]],this._registeredChildNames)for(var o=0,a=this._registeredChildNames;o<a.length;o++){var s=a[o];e.registerScriptObject(this[s])}}return e},e.prototype.dispose=function(){this.disposeValues()},Object.defineProperty(e.prototype,"buttonMode",{get:function(){return this.adaptee.buttonMode},set:function(t){this.adaptee.buttonMode=t},enumerable:!1,configurable:!0}),e.prototype.setDropTarget=function(t){this._dropTarget=t?t.adapter:null},Object.defineProperty(e.prototype,"dropTarget",{get:function(){return this._dropTarget},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"graphics",{get:function(){return this._graphics||(this._graphics=new this.sec.flash.display.Graphics(null))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hitArea",{get:function(){return this.adaptee.pickObject.adapter},set:function(t){this.adaptee.pickObject=t.adaptee},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"soundTransform",{get:function(){return Tt.throwPIR("playerglobals/display/Sprite","get soundTransform",""),null},set:function(t){Tt.throwPIR("playerglobals/display/Sprite","set soundTransform","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"useHandCursor",{get:function(){return this.adaptee._useHandCursor},set:function(t){this.adaptee._useHandCursor=t},enumerable:!1,configurable:!0}),e.prototype.startDrag=function(t,n){if(void 0===t&&(t=!1),void 0===n&&(n=null),e.currentDraggedMC&&e.currentDraggedMC!=this&&e.currentDraggedMC.stopDrag(),e.currentDraggedMC=this,this._dragBounds=n,!this.isDragging){this.isDragging=!0,this.startDragPoint=jg.instance().view.getNode(this._adaptee.parent).globalToLocal(new N(this.stage.mouseX,this.stage.mouseY)),t&&(this.adaptee.x=this.startDragPoint.x,this.adaptee.y=this.startDragPoint.y),this._dragBounds&&this.checkBounds(),this.startDragMCPosition.x=this.adaptee.x,this.startDragMCPosition.y=this.adaptee.y;var i=jg.instance(),r=i.view.getNode(this.adaptee);i.mousePicker.dragNode=r;var o=this.adaptee.getAbstraction(r.partition);o.setParent(r);var a=o.getAbstraction(i.mousePicker.pickGroup).pickingCollision;a.rootNode=r,i.mouseManager.startDragObject(a),i.view.stage.addEventListener(Ll.MOUSE_MOVE,this.dragListenerDelegate)}},e.prototype.checkBounds=function(){this.adaptee.x<this._dragBounds.left&&(this.adaptee.x=this._dragBounds.left),this.adaptee.x>this._dragBounds.right&&(this.adaptee.x=this._dragBounds.right),this.adaptee.y<this._dragBounds.top&&(this.adaptee.y=this._dragBounds.top),this.adaptee.y>this._dragBounds.bottom&&(this.adaptee.y=this._dragBounds.bottom)},e.prototype.dragListener=function(t){if(this.adaptee.parent){var e=jg.instance().view.getNode(this._adaptee.parent).globalToLocal(new N(this.stage.mouseX,this.stage.mouseY));this.adaptee.x=this.startDragMCPosition.x+(e.x-this.startDragPoint.x),this.adaptee.y=this.startDragMCPosition.y+(e.y-this.startDragPoint.y),this._dragBounds&&this.checkBounds()}},e.prototype.startTouchDrag=function(t,e,n){Tt.throwPIR("playerglobals/display/Sprite","startTouchDrag","")},e.prototype.stopDrag=function(t){e.currentDraggedMC&&e.currentDraggedMC!=this&&e.currentDraggedMC.stopDrag(),this.isDragging=!1,e.currentDraggedMC=null;var n=jg.instance();n.mousePicker.dragNode=null,n.mouseManager.stopDragObject(),n.view.stage.removeEventListener(Ll.MOUSE_MOVE,this.dragListenerDelegate)},e.prototype.stopTouchDrag=function(t){Tt.throwPIR("playerglobals/display/Sprite","stopTouchDrag","")},e._sprites=new Array,e.currentDraggedMC=null,e}(dM),gM=function(t){function e(){var e=t.call(this)||this;return e.queuedNavigationAction=null,e}return Zg(e,t),e.prototype.applySymbol=function(){},e.getNewMovieClip=function(t){if(e._movieClips.length){var n=e._movieClips.pop();return n.adaptee=t,n}return new e},e.prototype._getAbsFrameNumber=function(t,e){return 0},e.prototype.callFrame=function(t){},e.prototype._callFrame=function(t){},e.prototype.addScript=function(t){return t},e.prototype.executeScript=function(t){if((this.allowScript||!(this.sec.swfVersion>9))&&(t=this.adaptee.timeline.get_script_for_frame(this.adaptee,this.adaptee.currentFrameIndex,!1))){this.allowScript=!1;var n=e.current_script_scope;e.current_script_scope=this;for(var i=0;i<t.length;i++)t[i].setReceiver(this),t[i].axCall(this);if(e.current_script_scope=n,this.queuedNavigationAction){var r=this.queuedNavigationAction;this.queuedNavigationAction=null,r()}}},e.prototype.initAdapter=function(){},e.prototype.createAdaptee=function(){var t=Rl.getNewMovieClip(new bl(this.sec.player.factory));return t.reset(),t},e.prototype.clearPropsDic=function(){},e.prototype.evalScript=function(t){var e=document.createElement("script");e.text="var __framescript__ = function() {\n"+t+"\n}";var n=document.scripts[0];n.parentNode.insertBefore(e,n).parentNode.removeChild(e);var i=__framescript__;return window.__framescript__=null,i},e.prototype.freeFromScript=function(){t.prototype.freeFromScript.call(this)},e.prototype.clone=function(){var t=this;if(!t._symbol)throw"_symbol not defined when cloning movieclip";var e=WD(t._symbol,t._symbol.symbolClass),n=new Rl(this.adaptee.timeline);return this.adaptee.copyTo(n),e.adaptee=n,e._stage=this.activeStage,e.executeConstructor=function(){e.axInitializer(),e.constructorHasRun=!0},e},e.prototype.dispose=function(){this.disposeValues()},Object.defineProperty(e.prototype,"currentFrame",{get:function(){return this._adaptee.currentFrameIndexRelative+1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentFrameLabel",{get:function(){return this.adaptee.timeline.getCurrentFrameLabel(this.adaptee)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentLabel",{get:function(){return this.adaptee.timeline.getCurrentLabel(this.adaptee)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentLabels",{get:function(){if(this._currentLabels)return this._currentLabels;var t=this.adaptee.timeline._labels,e=this.adaptee.timeline.keyframe_firstframes;for(var n in this._currentLabels=[],t)this._currentLabels.push(new this.sec.flash.display.FrameLabel(t[n].name,e[t[n].keyFrameIndex]+1));return this._currentLabels},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentScene",{get:function(){for(var t=this.adaptee.currentScene,e={value:[]},n=0;n<t.labels.length;n++)e.value.push(new this.sec.flash.display.FrameLabel(t.labels[n].name,t.labels[n].frame));return new this.sec.flash.display.Scene(t.name,e,t.offset,t.numFrames)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return this.adaptee.buttonEnabled},set:function(t){this.adaptee.buttonEnabled=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"framesLoaded",{get:function(){return this.totalFrames},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isPlaying",{get:function(){return this.adaptee.isPlaying},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scenes",{get:function(){return Tt.throwPIR("playerglobals/display/MovieClip","get scenes",""),[]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"totalFrames",{get:function(){return this._adaptee.numFrames},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"trackAsMenu",{get:function(){return Tt.throwPIR("playerglobals/display/MovieClip","get trackAsMenu",""),!1},set:function(t){Tt.throwPIR("playerglobals/display/MovieClip","set trackAsMenu","")},enumerable:!1,configurable:!0}),e.prototype.addFrameScript=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=arguments.length;1&n&&this.sec.throwError("ArgumentError TooFewArgumentsError",n,n+1);for(var i=0;i<n;i+=2){var r=0|t[i],o=t[i+1];this.adaptee.timeline.add_framescript(o,r,this.adaptee)}this.constructorHasRun=!0},e.prototype.gotoAndPlay=function(t,e,n){void 0===e&&(e=null),void 0===n&&(n=!1),this._gotoInternal(t,e,n,!1)},e.prototype.gotoAndStop=function(t,e,n){void 0===e&&(e=null),void 0===n&&(n=!1),this._gotoInternal(t,e,n,!0)},e.prototype._gotoInternal=function(t,n,i,r){var o=this;if(void 0===n&&(n=null),void 0===i&&(i=!1),void 0===r&&(r=!1),i||e.current_script_scope!=this)if(null!=t){var a=this.adaptee;if(n=n||a.currentSceneName,"string"==typeof t&&null==a.timeline._labels[t])return t=parseInt(t),isNaN(t)||(a.jumpToIndex(t-1,n),r?a.stop():a.play()),void(r&&(this.sec.swfVersion>10&&(a.currentFrameIndex=0),this.stop()));if("number"==typeof t&&t<=0){if(e.current_script_scope==this)return;t=1}r?this.stop():this.play(),this._gotoFrame(t,n)}else r&&this.stop();else this.queuedNavigationAction=function(){return o._gotoInternal(t,n,!0,r)}},e.prototype._gotoFrame=function(t,n){void 0===n&&(n=null);var i,r=this._adaptee;"string"==typeof t?i=r.jumpToLabel(t):"number"==typeof t&&t<=0?(console.warn("[playerglobal/MovieClip] - gotoFrame called with invalid frame-index"),i=!0):i=r.jumpToIndex(t-1,n),i&&(Nl.execute_as3_constructors_recursiv(this.adaptee),Nl.execute_as3_constructors_finish_scene(this.root.adaptee),this.sec.swfVersion>9&&this!==e.current_script_scope&&(this.dispatchStaticBroadCastEvent(kO.FRAME_CONSTRUCTED),Nl.execute_queue(),this.dispatchStaticBroadCastEvent(kO.EXIT_FRAME)))},e.prototype.nextFrame=function(t){var n=this;void 0===t&&(t=!1),t||e.current_script_scope!=this?(this._adaptee.stop(),++this._adaptee.currentFrameIndex,Nl.execute_as3_constructors_recursiv(this.adaptee),Nl.execute_as3_constructors_finish_scene(this.root.adaptee),this.sec.swfVersion>9&&(this.dispatchStaticBroadCastEvent(kO.FRAME_CONSTRUCTED),Nl.execute_queue(),this.dispatchStaticBroadCastEvent(kO.EXIT_FRAME))):this.queuedNavigationAction=function(){return n.nextFrame(!0)}},e.prototype.nextScene=function(t){var n=this;void 0===t&&(t=!1),t||e.current_script_scope!=this?Tt.throwPIR("playerglobals/display/MovieClip","nextScene",""):this.queuedNavigationAction=function(){return n.nextScene(!0)}},e.prototype.play=function(){return this._adaptee.play()},e.prototype.prevFrame=function(t){var n=this;if(void 0===t&&(t=!1),t||e.current_script_scope!=this){var i=this._adaptee;i.currentFrameIndexRelative>0&&i.currentFrameIndexRelative--,Nl.execute_as3_constructors_recursiv(this.adaptee),Nl.execute_as3_constructors_finish_scene(this.root.adaptee),this.sec.swfVersion>9&&(this.dispatchStaticBroadCastEvent(kO.FRAME_CONSTRUCTED),Nl.execute_queue(),this.dispatchStaticBroadCastEvent(kO.EXIT_FRAME))}else this.queuedNavigationAction=function(){return n.prevFrame(!0)}},e.prototype.prevScene=function(t){var n=this;void 0===t&&(t=!1),t||e.current_script_scope!=this?Tt.throwPIR("playerglobals/display/MovieClip","prevScene",""):this.queuedNavigationAction=function(){return n.prevScene(!0)}},e.prototype.stop=function(){return this._adaptee.stop()},e._movieClips=new Array,e.current_script_scope=null,e}(fM),_M=function(t){function e(n,i,r){void 0===n&&(n=null),void 0===i&&(i="auto"),void 0===r&&(r=!1);var o=this,a=new Yh(n?n.adaptee:0);return a.alphaBlending=!0,a.useColorTransform=!0,e.argBitmapMaterial=a,e.argPixelSnapping=i,e.argSmoothing=r,o=t.call(this)||this,n&&!o._bitmapMappedFromAsset&&(o._bitmapData=n,o._bitmapData&&o._bitmapData._addOwner(o)),o}return Zg(e,t),e.getNewBitmap=function(t,n,i){if(void 0===t&&(t=null),void 0===n&&(n="auto"),void 0===i&&(i=!1),e._bitmaps.length){var r=new Yh(t?t.adaptee:0);r.alphaBlending=!0,r.useColorTransform=!0;var o=e._bitmaps.pop();return o.adaptee=Il.getNewBillboard(r,n,i),o}return new e(t,n,i)},e.prototype.mapAdaptee=function(e){var n=e;if(e instanceof Ye||e instanceof Xp){this._adaptee=n=Il.getNewBillboard(new Yh(e),"auto",!1);var i=new this.sec.flash.display.BitmapData(e);this.bitmapData=i,this._bitmapMappedFromAsset=!0}return t.prototype.mapAdaptee.call(this,n)},e.prototype.createAdaptee=function(){var t=Il.getNewBillboard(e.argBitmapMaterial,e.argPixelSnapping,e.argSmoothing);return e.argBitmapMaterial=null,e.argPixelSnapping=null,e.argSmoothing=null,t},e.prototype.clone=function(){var t=e.getNewBitmap(this._bitmapData);return this._adaptee.copyTo(t.adaptee),t},e.prototype.dispose=function(){this.disposeValues(),e._bitmaps.push(this)},e.prototype.disposeValues=function(){this.bitmapData=null,t.prototype.disposeValues.call(this)},Object.defineProperty(e.prototype,"bitmapData",{get:function(){return this._bitmapData},set:function(t){if(this._bitmapData!=t||this._bitmapData.adaptee!==t.adaptee){this._bitmapData&&this._bitmapData._removeOwner(this),this._bitmapData=t,this._bitmapData&&this._bitmapData._addOwner(this);var e=this._adaptee.material;this._bitmapData?(e.ambientMethod.texture||(e.ambientMethod.texture=new Ho),e.style.image=this._bitmapData.adaptee,e.alphaBlending=this._bitmapData.adaptee.transparent,e.useColorTransform=!0):(e.ambientMethod.texture&&(e.ambientMethod.texture=null),e.style.image=null,e.style.color=0,e.alphaBlending=!1),e.invalidateTextures()}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pixelSnapping",{get:function(){return""},set:function(t){Tt.throwPIR("playerglobals/display/Bitmap","set pixelSnapping","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"smoothing",{get:function(){return!!this.adaptee.sampler&&this.adaptee.sampler.smooth},set:function(t){this.adaptee.sampler&&(this.adaptee.sampler.smooth=t)},enumerable:!1,configurable:!0}),e._bitmaps=new Array,e}(lM),mM={},yM=function(t){function e(e,n,i,r){void 0===i&&(i=!0),void 0===r&&(r=4294967295);var o=t.call(this)||this;return o._owners=[],"number"==typeof e?o._adaptee||(o._adaptee=Xp.getImage(e,n,i,r,!1,zi.getInstance().getStageAt(0)),o._adaptee.useWeakRef()):o._adaptee=e,o._adaptee.adapter=o,o}return Zg(e,t),e.prototype.compare=function(t){return!0},Object.defineProperty(e.prototype,"adaptee",{get:function(){return this._adaptee},set:function(t){this._adaptee=t},enumerable:!1,configurable:!0}),e.loadBitmap=function(t){return Tt.throwPIR("playerglobals/display/BitmapData","loadBitmap",""),null},e.prototype.setPixels=function(t,e){Tt.throwPIR("playerglobals/display/BitmapData","setPixels","")},e.prototype.getPixels=function(t){var e=this.adaptee.getPixels(t.adaptee),n=new this.sec.flash.utils.ByteArray;return n.setArrayBuffer(e.buffer),n},e.prototype.copyPixelsToByteArray=function(t,e){Tt.throwPIR("playerglobals/display/BitmapData","copyPixelsToByteArray","")},e.prototype.getVector=function(t){for(var e=this.adaptee.getPixels(t.adaptee),n=new this.sec.Uint32Vector(0,!0),i=new Uint32Array(e.buffer),r=0;r<i.length;r++){var o=e[4*r+3],a=e[4*r+0],s=e[4*r+1],u=e[4*r+2],l=o/255||1;i[r]=o<<24|a/l<<16|s/l<<8|u/l}return n._buffer=i,n._length=i.length,n},e.prototype.setVector=function(t,e){Tt.throwPIR("playerglobals/display/BitmapData","setVector","")},e.prototype.histogram=function(t){Tt.throwPIR("playerglobals/display/BitmapData","histogram","")},e.prototype.encode=function(t,e,n){Tt.throwPIR("playerglobals/display/BitmapData","encode","")},e.prototype.drawWithQuality=function(t,e,n,i,r,o,a){Tt.throwPIR("playerglobals/display/BitmapData","drawWithQuality","")},Object.defineProperty(e.prototype,"transparent",{get:function(){return this._adaptee.transparent},set:function(t){this._adaptee.transparent=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this._adaptee.width},set:function(t){this._adaptee.width=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._adaptee.height},set:function(t){this._adaptee.height=t},enumerable:!1,configurable:!0}),e.prototype.clone=function(){var t=new this.sec.flash.display.BitmapData(this._adaptee.width,this._adaptee.height,this._adaptee.transparent,null);return this._adaptee.copyTo?this._adaptee.copyTo(t._adaptee):t.copyPixels(this,this.rect,new this.sec.flash.geom.Point),t},Object.defineProperty(e.prototype,"rect",{get:function(){return new this.sec.flash.geom.Rectangle(this._adaptee.rect.clone())},enumerable:!1,configurable:!0}),e.prototype.getPixel=function(t,e){return this._adaptee.getPixel(t,e)},e.prototype.getPixel32=function(t,e){return this._adaptee.getPixel32(t,e)},e.prototype.setPixel=function(t,e,n){this._adaptee.setPixel(t,e,n)},e.prototype.setPixel32=function(t,e,n){this._adaptee.setPixel32(t,e,n)},e.prototype.applyFilter=function(t,e,n,i){this._adaptee.applyFilter(t.adaptee,e.adaptee,n.adaptee,i.toAwayObject())||Tt.throwPIR("playerglobals/display/BitmapData","applyFilter",i.axClassName)},e.prototype.colorTransform=function(t,e){this._adaptee.colorTransform(t.adaptee,e.adaptee)},e.prototype.copyChannel=function(t,e,n,i,r){this._adaptee.copyChannel(t.adaptee,e.adaptee,n.adaptee,i,r)},e.prototype.copyPixels=function(t,e,n,i,r,o){void 0===i&&(i=null),void 0===r&&(r=null),void 0===o&&(o=!1),this._adaptee.copyPixels(t.adaptee,e.adaptee,n.adaptee,i?i.adaptee:null,r?r.adaptee:null,o)},e.prototype.dispose=function(){this._adaptee&&(this._owners=[],this._adaptee.canUnload&&this._adaptee.dispose(),this._adaptee=null)},e.prototype.draw=function(t,e,n,i,r,o){void 0===n&&(n=null),void 0===i&&(i=""),void 0===r&&(r=null),void 0===o&&(o=!1),this._adaptee.draw(t.adaptee,e?e.adaptee:null,n?n.adaptee:null,i,r?r.adaptee:null,o)},e.prototype.fillRect=function(t,e){this._adaptee.fillRect(t.adaptee,e)},e.prototype.floodFill=function(t,e,n){!function(t,e){mM[t]||(console.warn("".concat(t,":"),e),mM[t]=!0)}("floodFill:"+this._adaptee.id,"Unsage implementation!"),this._adaptee.floodFill(t,e,n)},e.prototype.generateFilterRect=function(t,e){return Tt.throwPIR("playerglobals/display/BitmapData","generateFilterRect",""),null},e.prototype.getColorBoundsRect=function(t,e,n){return Tt.throwPIR("playerglobals/display/BitmapData","getColorBoundsRect",""),new this.sec.flash.geom.Rectangle(this._adaptee.getColorBoundsRect(t,e,n))},e.prototype.hitTest=function(t,e,n,i,r){return void 0===r&&(r=0),Tt.throwPIR("playerglobals/display/BitmapData","hitTest",""),this._adaptee.hitTest(t.adaptee,e,null==n?void 0:n.adaptee,null==i?void 0:i.adaptee,r)},e.prototype.lock=function(){this._adaptee.lock()},e.prototype.merge=function(t,e,n,i,r,o,a){this._adaptee.merge(t.adaptee,t.rect.adaptee,n.adaptee,i,r,o,a)},e.prototype.noise=function(t,e,n,i,r){throw new Error("[BitmapData] Noise not implemented, very important for games!")},e.prototype.paletteMap=function(t,e,n,i,r,o,a){Tt.throwPIR("playerglobals/display/BitmapData","paletteMap","")},e.prototype.perlinNoise=function(t,e,n,i,r,o,a,s,u){void 0===u&&(u=null);var l=u?[]:null;if(u)for(var c=u.value,h=c.length,p=0;p<h;p++)"number"==typeof c[p]?l.push(c[p]):"number"==typeof c[p].x&&l.push(c[p].x,c[p].y);this._adaptee.perlinNoise(t,e,n,i,r,o,a,s,l),Tt.throwPIR("playerglobals/display/BitmapData","perlinNoise","Unsafe implementation, results not equal!")},e.prototype.pixelDissolve=function(t,e,n,i,r,o){return Tt.throwPIR("playerglobals/display/BitmapData","pixelDissolve",""),0},e.prototype.scroll=function(t,e){e|=0,((t|=0)||e)&&this._adaptee.copyPixels(this._adaptee,this._adaptee.rect,new N(t,e),null,null,!1)},e.prototype.threshold=function(t,e,n,i,r,o,a,s){return this._adaptee.threshold(t.adaptee,e.adaptee,n.adaptee,i,r,o,a,s),0},e.prototype.unlock=function(){this._adaptee.unlock()},e.prototype._addOwner=function(t){-1==this._owners.indexOf(t)&&this._owners.push(t)},e.prototype._removeOwner=function(t){var e=this._owners.indexOf(t);-1!=e&&(this._owners.splice(e,1),0===this._owners.length&&this._adaptee.clear())},e}(B_),AM=function(t){function e(e,n){var i=t.call(this)||this;return i.imageStore={},i._sec=e,i._loaderInfo=n,i}return Zg(e,t),Object.defineProperty(e.prototype,"appDomain",{get:function(){return this._loaderInfo?this._loaderInfo.applicationDomain.axApplicationDomain:this._sec.application},enumerable:!1,configurable:!0}),e.prototype.executeABCBytes=function(t){for(var e=0;e<t.length;e++){var n=t[e],i=new NO({app:this.appDomain,url:""},n.data);n.flags?this.appDomain.loadABC(i):this.appDomain.loadAndExecuteABC(i)}return null},e.prototype.createSprite=function(t,e,n){if(void 0===e&&(e=null),void 0===n&&(n=null),!n||!this._sec)throw"no symbol provided";var i=null;i=n.className?this.appDomain.getClass(u_.FromFQNString(n.className,0)):this._sec.flash.display.Sprite.axClass,n.symbolClass=i;var r=WD(n,i);return r.adaptee=new gl(e),r.adaptee},e.prototype.createDisplayObjectContainer=function(t){return(new this._sec.flash.display.DisplayObjectContainer).adaptee},e.prototype.createBinarySymbol=function(t){void 0===t&&(t=null),this.appDomain.addBinarySymbol(t)},e.prototype.createMovieClip=function(t,e){if(void 0===t&&(t=null),void 0===e&&(e=null),!e||!this._sec)throw"no symbol provided";var n=null;e.className?(n=this.appDomain.getClass(u_.FromFQNString(e.className,0)))._symbol=e:n=e.isButton?this._sec.flash.display.SimpleButton.axClass:this._sec.flash.display.MovieClip.axClass,e.symbolClass=n;var i=WD(e,e.isButton?this._sec.flash.display.SimpleButton.axClass:this._sec.flash.display.MovieClip.axClass);return i.adaptee=new Rl(t||new bl(this)),e.timeline=i.adaptee.timeline,i.adaptee},e.prototype.createTextField=function(t){void 0===t&&(t=null);var e=null;e=t.className?this.appDomain.getClass(u_.FromFQNString(t.className,0)):this._sec.flash.text.TextField.axClass,t.symbolClass=e;var n=WD(t,e);return n.axInitializer(),n.adaptee},e.prototype.createBillboard=function(t,e){return new _M(t.style.image.adapter).adaptee},e.prototype.createImage2D=function(t,e,n,i,r,o){void 0===n&&(n=!0),void 0===i&&(i=null);var a=new yM(t,e,n,i).adaptee;return a.unuseWeakRef(),a},e.prototype.createFrameScripts=function(t,e,n,i){return t},e.prototype.createChildInstanceForTimeline=function(t,e,n){Nl.invalidAS3Constructors=!0;var i,r=this.awaySymbols[e];if(r.isAsset(sl))(i=gl.getNewSprite(r.clone())).mouseEnabled=!1;else if(r.isAsset(gl))(i=gl.getNewSprite(r.graphics)).mouseEnabled=!1;else if(r.isAsset(Al))(i=Al.getNewMorphSprite(r.graphics.clone())).mouseEnabled=!1;else if(r.isAsset(Ye)){var o=new Yh(r);o.alphaBlending=r.transparent,(i=Il.getNewBillboard(o)).mouseEnabled=!1}else i=r.adapter.clone(!1).adaptee;return i.partitionClass=Br,i._sessionID=n,i},e}(zp),vM=function(t){function e(){return t.call(this)||this}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e}(GO),bM=function(t){function e(e,n,i,r){var o=t.call(this,e,n,i)||this;return o._text=r,o}return Zg(e,t),Object.defineProperty(e.prototype,"text",{get:function(){return this._text},set:function(t){this._text=t},enumerable:!1,configurable:!0}),e.prototype.clone=function(){return new e(this.type,this.bubbles,this.cancelable,this.text)},e.prototype.toString=function(){return this.formatToString("TextEvent","type","bubbles","cancelable","text")},e.prototype.copyNativeData=function(t){},e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.LINK="link",e.TEXT_INPUT="textInput",e}(kO),CM=function(t){function e(e,n,i,r,o){void 0===n&&(n=!1),void 0===i&&(i=!1),void 0===r&&(r=""),void 0===o&&(o=0);var a=t.call(this,e,n,i,r)||this;return a.setID(o),a}return Zg(e,t),e.prototype.setID=function(t){this._id=t},Object.defineProperty(e.prototype,"errorID",{get:function(){return this._id},enumerable:!1,configurable:!0}),e.prototype.clone=function(){return new e(this.type,this.bubbles,this.cancelable,this.text,this.errorID)},e.prototype.toString=function(){return this.formatToString("ErrorEvent","type","bubbles","cancelable","text","errorID")},e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.ERROR="error",e}(bM),xM=function(t){function e(e,n,i,r,o){return void 0===n&&(n=!1),void 0===i&&(i=!1),void 0===r&&(r=""),void 0===o&&(o=0),t.call(this,e,n,i,r,o)||this}return Zg(e,t),e.prototype.clone=function(){return new e(this.type,this.bubbles,this.cancelable,this.text,this.errorID)},e.prototype.toString=function(){return this.formatToString("IOErrorEvent","type","bubbles","cancelable","text","errorID")},e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.IO_ERROR="ioError",e.NETWORK_ERROR="networkError",e.DISK_ERROR="diskError",e.VERIFY_ERROR="verifyError",e}(CM),IM=function(t){function e(e,n){void 0===e&&(e=null);var i=t.call(this)||this;return i._bytesLoaded=0,i._onAssetCompleteDelegate=function(t){return i.onAssetComplete(t)},i._onLoaderCompleteDelegate=function(t){return i.onLoaderComplete(t)},i._onLoadErrorDelegate=function(t){return i.onLoadError(t)},e&&i.loadWaveAudio(e),i}return Zg(e,t),e.prototype.loadWaveAudio=function(t){this._url=t.url,this._loading=!0,mt.removeEventListener(d.ASSET_COMPLETE,this._onAssetCompleteDelegate),mt.removeEventListener(H.LOADER_COMPLETE,this._onLoaderCompleteDelegate),mt.removeEventListener(K.LOAD_ERROR,this._onLoadErrorDelegate),mt.addEventListener(d.ASSET_COMPLETE,this._onAssetCompleteDelegate),mt.addEventListener(H.LOADER_COMPLETE,this._onLoaderCompleteDelegate),mt.addEventListener(K.LOAD_ERROR,this._onLoadErrorDelegate),mt.load(new yt(this._url),new ft,this._url,new xt)},e.prototype.onAssetComplete=function(t){var e=t.asset;e.isAsset(D)&&(this._adaptee=e,this._loading=!1,this._pendingPlayCommand&&(this.play(this._pendingPlayCommand.startTime/1e3,this._pendingPlayCommand.loops,this._pendingPlayCommand.sndTransform),this._playAfterLoad=!1),this._pendingPlayCommand=null)},e.prototype.onLoaderComplete=function(t){t.url==this._url&&(this._loading=!1,this._bytesLoaded=1e3,mt.removeEventListener(d.ASSET_COMPLETE,this._onAssetCompleteDelegate),mt.removeEventListener(H.LOADER_COMPLETE,this._onLoaderCompleteDelegate),mt.removeEventListener(K.LOAD_ERROR,this._onLoadErrorDelegate),this.dispatchEvent(new this.sec.flash.events.Event(kO.COMPLETE)))},e.prototype.onLoadError=function(t){mt.removeEventListener(d.ASSET_COMPLETE,this._onAssetCompleteDelegate),mt.removeEventListener(H.LOADER_COMPLETE,this._onLoaderCompleteDelegate),mt.removeEventListener(K.LOAD_ERROR,this._onLoadErrorDelegate),console.log("load error in Sound",t),this._loading=!1,this.dispatchEvent(new this.sec.flash.events.IOErrorEvent(xM.ERROR))},Object.defineProperty(e.prototype,"adaptee",{get:function(){return this._adaptee},set:function(t){this._adaptee=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bytesLoaded",{get:function(){return this._bytesLoaded},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bytesTotal",{get:function(){return 1e3},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"id3",{get:function(){return console.log("id3 not implemented yet in flash/Sound"),null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isBuffering",{get:function(){return console.log("isBuffering not implemented yet in flash/Sound"),!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isURLInaccessible",{get:function(){return console.log("isURLInaccessible not implemented yet in flash/Sound"),!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){if(this._adaptee)return this._adaptee.duration},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this._url},enumerable:!1,configurable:!0}),e.prototype.close=function(){console.log("close not implemented yet in flash/Sound")},e.prototype.extract=function(t,e,n){return console.log("extract not implemented yet in flash/Sound"),0},e.prototype.load=function(t,e){this.loadWaveAudio(t)},e.prototype.loadCompressedDataFromByteArray=function(t,e){console.log("loadCompressedDataFromByteArray not implemented yet in flash/Sound")},e.prototype.loadPCMFromByteArray=function(t,e,n,i,r){console.log("loadPCMFromByteArray not implemented yet in flash/Sound")},e.prototype.play=function(t,e,n){if(void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=null),!this.adaptee&&!this._loading)return console.warn("[Sound#play]: no adaptee exists!"),new this.sec.flash.media.SoundChannel;if(!this.adaptee&&this._loading)return this._pendingPlayCommand={startTime:t,loops:e,sndTransform:n,sndChannel:new this.sec.flash.media.SoundChannel},this._pendingPlayCommand.sndChannel;e=isNaN(e)||e<1?1:Math.floor(e);var i=this._adaptee.play(t/1e3,e);i||console.debug("[Sound] Sound channel missed, channel pool overflow for:",this._adaptee.id);var r=this._pendingPlayCommand?this._pendingPlayCommand.sndChannel:new this.sec.flash.media.SoundChannel;return n=n||new this.sec.flash.media.SoundTransform,r.init(i,n),r},e.prototype.stopAll=function(){this._adaptee.stop()},e}(GO),EM=function(t){function e(n,i){void 0===n&&(n=null),void 0===i&&(i=!1);var r=t.call(this)||this;return i||null!=n||null==e._currentDomain||(n=e.getSystemDomain()),e._currentDomain||(e._currentDomain=r),r._parentDomain=n,r._definitions={},r._font_definitions={},r._audio_definitions={},r.axApplicationDomain=i?r.sec.system:n?new MP(r.sec,r.parentDomain.axApplicationDomain):r.sec.application,r.axApplicationDomain.awayApplicationDomain=r,r}return Zg(e,t),e.getSystemDomain=function(){if(null==e._systemDomain){if(!e._currentDomain)return null;e._systemDomain=new this._currentDomain.sec.flash.system.ApplicationDomain(null,!0)}return e._systemDomain},Object.defineProperty(e,"currentDomain",{get:function(){return e._currentDomain},set:function(t){e._currentDomain=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"domainMemory",{get:function(){return console.log("[UNSAFE IMPLEMENTATION!] domainMemory:flash/ApplicationDomain"),this._memory},set:function(t){console.log("[UNSAFE IMPLEMENTATION!] domainMemory:flash/ApplicationDomain"),(t||this._memory.buffer!==t.buffer)&&(this._memoryView=new DataView(t.buffer)),this._memory=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"internal_memoryView",{get:function(){return this._memoryView},enumerable:!1,configurable:!0}),Object.defineProperty(e,"MIN_DOMAIN_MEMORY_LENGTH",{get:function(){return console.log("MIN_DOMAIN_MEMORY_LENGTH not implemented yet in flash/ApplicationDomain"),0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parentDomain",{get:function(){return this._parentDomain},enumerable:!1,configurable:!0}),e.prototype.addDefinition=function(t,e){this._definitions[t]=e},e.prototype.addAudioDefinition=function(t,e){this._audio_definitions[t]=e},e.prototype.addFontDefinition=function(t,e){this._font_definitions[t]=e},e.prototype.hasSymbolForClass=function(t){return this._definitions[t]||this._font_definitions[t]||this._audio_definitions[t]},e.prototype.getSymbolAdaptee=function(t){var e=this._definitions[t];if(e){if(e.isAsset&&e.isAsset(Xp)||!e.adapter)return e;var n=e.adapter.clone();return n.adaptee.isAsset(Rl)&&(n.adaptee.currentFrameIndex=0),n.adaptee}return this._font_definitions[t]?this._font_definitions[t]:this._audio_definitions[t]?this._audio_definitions[t]:null},e.prototype.getSymbolDefinition=function(t){var e=this._definitions[t];if(e){if(e.isAsset&&e.isAsset(Xp))return e;var n=e.adapter.clone();return n.adaptee.isAsset(Rl)&&(n.adaptee.currentFrameIndex=0),n}if(this._font_definitions[t])return this._font_definitions[t];if(this._audio_definitions[t]){var i=new IM;return i.adaptee=this._audio_definitions[t],i}},e.prototype.getDefinition=function(t){return this.axApplicationDomain.getClass(u_.FromSimpleName(t))},e.prototype.getFontDefinition=function(t){return this._font_definitions[t]},e.prototype.getAwayJSAudio=function(t){return this._audio_definitions[t]},e.prototype.getAudioDefinition=function(t){var e=new IM;return e.adaptee=this._audio_definitions[t],e},e.prototype.getQualifiedDefinitionNames=function(){var t=[];for(var e in this._definitions)this._definitions.hasOwnProperty(e)&&(t[t.length]=e);return t},e.prototype.hasDefinition=function(t){try{return!!this.getDefinition(t)}catch(t){return!1}},e.prototype.hasFontDefinition=function(t){return this._font_definitions.hasOwnProperty(t)},e.prototype.hasAudioDefinition=function(t){return this._audio_definitions.hasOwnProperty(t)},e}(B_),wM=function(t){function e(e,n,i){void 0===e&&(e=!1),void 0===n&&(n=null),void 0===i&&(i=null);var r=t.call(this)||this,o=r.sec;return r.checkPolicyFile=e,r.applicationDomain=n||new o.flash.system.ApplicationDomain(EM.currentDomain),r.securityDomain=i,r}return Zg(e,t),e}(B_),SM=function(t){function e(){var e=t.call(this)||this;return e._contentLoaderInfo=new e.sec.flash.display.LoaderInfo(e,e.adaptee),e._factory=new AM(e.sec,e._contentLoaderInfo),e}return Zg(e,t),e.executeQueue=function(){if(e.loaderQueue.length){var t=e.loaderQueue.concat();e.loaderQueue.length=0;for(var n=0,i=t;n<i.length;n++){(0,i[n])()}}},Object.defineProperty(e.prototype,"contentLoaderInfo",{get:function(){return this._contentLoaderInfo},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"content",{get:function(){return this._content},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"uncaughtErrorEvents",{get:function(){return Tt.throwPIR("playerglobals/display/Loader","get uncaughtErrorEvents",""),this._uncaughtErrorEvents||(this._uncaughtErrorEvents=new vM),this._uncaughtErrorEvents},enumerable:!1,configurable:!0}),e.prototype.createAdaptee=function(){var t=this;this._onAssetCompleteDelegate=function(e){return t._onAssetComplete(e)};var e=new Bl;return e.addEventListener(d.ASSET_COMPLETE,this._onAssetCompleteDelegate),e},e.prototype._onAssetComplete=function(e){var n=e.asset;n.adapter.loaderInfo=this._contentLoaderInfo,n.isAsset(Qp)?this._contentLoaderInfo.applicationDomain.addDefinition(n.name,n):n.isAsset(Xp)||n.isAsset(Ye)?(this._contentLoaderInfo.applicationDomain.addDefinition(n.name,n),this._isImage&&(this._content=new _M(n.adapter),this._adaptee.addChild(this._content.adaptee))):n.isAsset(D)?this._contentLoaderInfo.applicationDomain.addAudioDefinition(n.name,n):n.isAsset(rp)?this._contentLoaderInfo.applicationDomain.addFontDefinition(n.name,n):n.isAsset(gl)?this._contentLoaderInfo.applicationDomain.addDefinition(n.name,n):n.isAsset(Rl)?(this._contentLoaderInfo.applicationDomain.addDefinition(n.name,n),("Scene 1"==n.name||n.isAVMScene)&&(this._content=n.adapter.clone(),this._content.loaderInfo=this._contentLoaderInfo,this._content.adaptee.reset(),Nl.invalidAS3Constructors=!0,t.prototype.addChild.call(this,this._content),Nl.execute_as3_constructors_recursiv(this._content.adaptee))):n.isAsset(sl)||console.log("loaded unhandled asset-type:",n.name)},e.prototype.addChild=function(t){return this.sec.throwError("IllegalOperationError",w_.InvalidLoaderMethodError),null},e.prototype.addChildAt=function(t,e){return this.sec.throwError("IllegalOperationError",w_.InvalidLoaderMethodError),null},e.prototype.removeChild=function(t){return this.sec.throwError("IllegalOperationError",w_.InvalidLoaderMethodError),null},e.prototype.removeChildAt=function(t){return this.sec.throwError("IllegalOperationError",w_.InvalidLoaderMethodError),null},e.prototype.setChildIndex=function(t,e){this.sec.throwError("IllegalOperationError",w_.InvalidLoaderMethodError)},e.prototype.close=function(){this.adaptee.close()},e.prototype.load=function(t,n){var i=this;void 0===n&&(n=null),e.loaderQueue.push((function(){i._delayedLoad(t,n)}))},e.prototype._delayedLoad=function(t,n){var i=this;void 0===n&&(n=null);var r=t.url||"",o=r.replace(/\?.*$/,""),a=kg(r,e.redirectRules);if(a){if(a.supressLoad)return void console.log("[LOADER] Load surpressed ",a.url);console.log("[LOADER] Override loading url:",a.url),t.adaptee.url=a.url}else console.log("[LOADER] start loading the url:",o);var s=o.substr(-3).toLowerCase();this._isImage="jpg"==s||"png"==s,"gif"!==s?(this._loaderContext=n||new wM(!1,EM.currentDomain),this._contentLoaderInfo._setApplicationDomain(this._loaderContext.applicationDomain),this._adaptee.load(t.adaptee,null,null,this._isImage?new Yi(this._factory):new Lg(this._factory)),a&&a.supressErrors&&this.adaptee.addEventListener(K.LOAD_ERROR,(function(t){console.log("[LOADER] Error supressed by redirect rule as empty complete events!",t),i._contentLoaderInfo._onLoaderCompleteDelegate(new H(H.LOADER_COMPLETE,t.urlLoader.url,null))}))):console.warn("[Loader] Unsupported file type:",s,o)},e.prototype.loadBytes=function(t,n){var i=this;if(void 0===n&&(n=null),t){var r=t.bytes;0!==r[0]||0!==r[1]||0!==r[2]?e.loaderQueue.push((function(){i._loaderContext=n||new wM(!1,EM.currentDomain),i._contentLoaderInfo._setApplicationDomain(i._loaderContext.applicationDomain),i._contentLoaderInfo.source=t,i._adaptee.loadData(r,null,null,new Lg(i._factory))})):console.warn("[Loader] Bytes buffer has empty magic number!")}else console.warn("[Loader] Bytes byffer is `undefined`")},e.prototype.unload=function(){this._unload(!1,!1)},e.prototype.unloadAndStop=function(t){this._unload(!0,!!t)},e.prototype._unload=function(t,e){Tt.throwPIR("playerglobals/display/Loader","_unload","")},e.redirectRules=[],e.loaderQueue=[],e}(dM),DM=function(t){function e(e,n,i,r,o){void 0===n&&(n=!1),void 0===i&&(i=!1),void 0===r&&(r=0),void 0===o&&(o=0);var a=t.call(this,e,n,i)||this;return a._bytesLoaded=r,a._bytesTotal=o,a}return Zg(e,t),Object.defineProperty(e.prototype,"bytesLoaded",{get:function(){return this._bytesLoaded},set:function(t){this._bytesLoaded=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bytesTotal",{get:function(){return this._bytesTotal},set:function(t){this._bytesTotal=t},enumerable:!1,configurable:!0}),e.prototype.clone=function(){return new e(this._type,this._bubbles,this._cancelable,this._bytesLoaded,this._bytesTotal)},e.prototype.toString=function(){return this.formatToString("ProgressEvent","bubbles","cancelable","eventPhase","bytesLoaded","bytesTotal")},e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.PROGRESS="progress",e.SOCKET_DATA="socketData",e}(kO),TM=function(){function t(){}return t.addQueue=function(t){this._queue.push({loaderInfo:t,delayCnt:this.DELAY})},t.executeQueue=function(){for(var t=this._queue,e=t.length,n=!0;e>0;){var i=t[--e];if(i.delayCnt--,i.delayCnt>0)n=!1;else if(0==i.delayCnt){var r=new i.loaderInfo.sec.flash.events.Event(kO.COMPLETE);r.currentTarget=i.loaderInfo,i.loaderInfo.dispatchEvent(r)}}n&&(t.length=0)},t._queue=[],t.DELAY=2,t}(),PM=function(t){function e(e,n){var i=t.call(this)||this;return i._bytesLoaded=0,i._bytesTotal=0,i.eventMappingExtern[kO.COMPLETE]="LoaderInfo:Event.COMPLETE",i.eventMappingExtern[DM.PROGRESS]="LoaderInfo:ProgressEvent.PROGRESS",i.eventMappingExtern[xM.IO_ERROR]="LoaderInfo:IOErrorEvent.IO_ERROR",i.eventMappingDummys[kO.UNLOAD]="LoaderInfo:Event.UNLOAD",i.eventMappingDummys[kO.OPEN]="LoaderInfo:Event.OPEN",i.eventMappingDummys[kO.INIT]="LoaderInfo:Event.INIT",i._onLoaderStartDelegate=function(t){return i._onLoaderStart(t)},i._onLoadProgressDelegate=function(t){return i._onLoadProgress(t)},i._onLoaderCompleteDelegate=function(t){return i._onLoaderComplete(t)},i._onLoaderErrorDelegate=i._onLoadeError.bind(i),i._loader=e,i._container=n,i._container.addEventListener(H.LOADER_START,i._onLoaderStartDelegate),i._container.addEventListener(K.LOAD_PROGRESS,i._onLoadProgressDelegate),i._container.addEventListener(H.LOADER_COMPLETE,i._onLoaderCompleteDelegate),i._container.addEventListener(K.LOAD_ERROR,i._onLoaderErrorDelegate),i}return Zg(e,t),Object.defineProperty(e.prototype,"actionScriptVersion",{get:function(){return Tt.throwPIR("playerglobals/display/LoaderInfo","get actionScriptVersion",""),0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"source",{set:function(t){this._source=t,this._bytesTotal=(null==t?void 0:t.length)||0},enumerable:!1,configurable:!0}),e.prototype.getSymbolById=function(t){},e.prototype._onLoadeError=function(t){var e=new this.sec.flash.events.IOErrorEvent(xM.IO_ERROR);e.currentTarget=this,this.dispatchEvent(e)},e.prototype._onLoaderStart=function(t){var e;this._bytesLoaded=0,this._bytesTotal=(null===(e=this._source)||void 0===e?void 0:e.length)||0,this._url=new URL(t.url,document.baseURI).href},e.prototype._onLoadProgress=function(t){this._bytesLoaded=t.urlLoader.bytesLoaded,this._bytesTotal=t.urlLoader.bytesTotal;var e=new this.sec.flash.events.ProgressEvent(DM.PROGRESS,null,null,t.urlLoader.bytesLoaded,t.urlLoader.bytesTotal);e.currentTarget=this,this.dispatchEvent(e)},e.prototype._onLoaderComplete=function(t){this._source?this._bytesTotal=this._bytesLoaded=this._source.length:t.assets&&t.assets.length?(this._bytesLoaded=t.assets.length,this._bytesTotal=t.assets.length):this._bytesTotal=this._bytesLoaded=this._bytesTotal||1,this._url=new URL(t.url,document.baseURI).href,TM.addQueue(this)},Object.defineProperty(e.prototype,"applicationDomain",{get:function(){return this._applicationDomain},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bytes",{get:function(){return Tt.throwPIR("playerglobals/display/LoaderInfo","get bytes",""),null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bytesLoaded",{get:function(){return this._bytesLoaded},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bytesTotal",{get:function(){return this._bytesTotal},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"childAllowsParent",{get:function(){return Tt.throwPIR("playerglobals/display/LoaderInfo","get childAllowsParent",""),!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"childSandboxBridge",{get:function(){return Tt.throwPIR("playerglobals/display/LoaderInfo","get childSandboxBridge",""),null},set:function(t){Tt.throwPIR("playerglobals/display/LoaderInfo","set childSandboxBridge","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"content",{get:function(){return this._loader.content},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"contentType",{get:function(){return Tt.throwPIR("playerglobals/display/LoaderInfo","get contentType",""),null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"frameRate",{get:function(){return jg.instance().frameRate},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){var t=jg.instance().view.getNode(this._container),e=kr.getInstance().getBoundsPicker(t.partition).getBoxBounds(t);return null==e?0:e.height},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isURLInaccessible",{get:function(){return Tt.throwPIR("playerglobals/display/LoaderInfo","get isURLInaccessible",""),!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"loader",{get:function(){return this._loader instanceof SM?this._loader:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"loaderURL",{get:function(){return this._loader.stage.getChildAt(0).loaderInfo.url},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parameters",{get:function(){return Tt.throwPIR("playerglobals/display/LoaderInfo","get parameters",""),this.sec.createArrayUnsafe([])},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parentAllowsChild",{get:function(){return Tt.throwPIR("playerglobals/display/LoaderInfo","get parentAllowsChild",""),!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parentSandboxBridge",{get:function(){return Tt.throwPIR("playerglobals/display/LoaderInfo","get parentSandboxBridge",""),null},set:function(t){Tt.throwPIR("playerglobals/display/LoaderInfo","set parentSandboxBridge","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sameDomain",{get:function(){return Tt.throwPIR("playerglobals/display/LoaderInfo","get sameDomain",""),!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sharedEvents",{get:function(){return Tt.throwPIR("playerglobals/display/LoaderInfo","get sharedEvents",""),null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"swfVersion",{get:function(){return this._swfVersion},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"uncaughtErrorEvents",{get:function(){return Tt.throwPIR("playerglobals/display/LoaderInfo","get uncaughtErrorEvents",""),null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this._url.includes("?")&&(this._url=this._url.substr(0,this._url.indexOf("?"))),this._url},set:function(t){this._url=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){var t=jg.instance().view.getNode(this._container),e=kr.getInstance().getBoundsPicker(t.partition).getBoxBounds(t);return null==e?0:e.width},enumerable:!1,configurable:!0}),e.getLoaderInfoByDefinition=function(t){return Tt.throwPIR("playerglobals/display/LoaderInfo","static getLoaderInfoByDefinition",""),null},e.prototype._setApplicationDomain=function(t){this._applicationDomain=t||new this.sec.flash.system.ApplicationDomain(EM.currentDomain)},e}(GO),OM=function(t){function e(){var e=t.call(this)||this;return e._isAVMStage=!0,e._stage3Ds=[],e._resizeCallbackDelegate=function(t){return e.resizeCallback(t)},window.addEventListener("resize",e._resizeCallbackDelegate),e.eventMapping[kO.RESIZE]={adaptedType:"",addListener:e.initResizeListener,removeListener:e.removeResizeListener,callback:e._resizeCallbackDelegate},e._mouseLeaveCallbackDelegate=function(t){return e.mouseLeaveCallback(t)},e.eventMapping[kO.MOUSE_LEAVE]={adaptedType:"",addListener:e.initMouseLeaveListener,removeListener:e.removeMouseLeaveListener,callback:e._mouseLeaveCallbackDelegate},e.sec.flash.display.DisplayObject.axClass._activeStage=e,e._stage=e,e._resizeCallbackDelegate(null),e}return Zg(e,t),Object.defineProperty(e.prototype,"view",{get:function(){return jg.instance().view},enumerable:!1,configurable:!0}),e.prototype.initResizeListener=function(t,e){},e.prototype.removeResizeListener=function(t,e){},e.prototype.resizeCallback=function(t){this.dispatchEvent(new this.sec.flash.events.Event(kO.RESIZE))},e.prototype.show=function(){},e.prototype.initMouseLeaveListener=function(t,e){window.addEventListener("mouseleave",e)},e.prototype.removeMouseLeaveListener=function(t,e){window.removeEventListener("mouseleave",e)},e.prototype.initMouseListener=function(t,e,n){if(!this._mouseListnersCallbacksByType[t])return this.adaptee.addEventListener(t,e),jg.instance().view.stage.addEventListener(t,e),void(this._mouseListnersCallbacksByType[t]=[n]);this._mouseListnersCallbacksByType[t].push(n)},e.prototype.removeMouseListener=function(t,e,n){if(this._mouseListnersCallbacksByType[t]){var i=this._mouseListnersCallbacksByType[t].indexOf(n);if(-1!=i){if(1==this._mouseListnersCallbacksByType[t].length)return delete this._mouseListnersCallbacksByType[t],this.adaptee.removeEventListener(t,e),void jg.instance().view.stage.removeEventListener(t,e);this._mouseListnersCallbacksByType[t].splice(i,1)}}},e.prototype.mouseLeaveCallback=function(t){this.dispatchEvent(new kO(kO.MOUSE_LEAVE))},e.prototype.enterFrame=function(){if(SM.executeQueue(),0!=this._stage.adaptee.numChildren){this._stage.adaptee.advanceFrame(),oP.updateOrphans();var t=this._stage.adaptee.getChildAt(0);t.firstFrameOnSWFStart?t.firstFrameOnSWFStart=!1:this._stage.dispatchStaticBroadCastEvent(kO.ENTER_FRAME),Nl.execute_as3_constructors_enterFrame(this._stage.adaptee),this._stage.dispatchStaticBroadCastEvent(kO.FRAME_CONSTRUCTED),Nl.execute_queue(),this._stage.dispatchStaticBroadCastEvent(kO.EXIT_FRAME),Nl.execute_queue(),TM.executeQueue(),this._sendEventRender&&(this._stage.dispatchStaticBroadCastEvent(kO.RENDER),Nl.execute_queue(),this._sendEventRender=!1)}},Object.defineProperty(e.prototype,"mouseX",{get:function(){return 0|jg.instance().getLocalMouseX(jg.instance().view.getNode(this.adaptee))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mouseY",{get:function(){return 0|jg.instance().getLocalMouseY(jg.instance().view.getNode(this.adaptee))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"accessibilityImplementation",{set:function(t){Tt.throwPIR("playerglobals/display/Stage","set accessibilityImplementation","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"align",{get:function(){return this.adaptee.align},set:function(t){this.adaptee.align=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"allowsFullScreen",{get:function(){return Tt.throwPIR("playerglobals/display/Stage","get allowsFullScreen",""),!0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"allowsFullScreenInteractive",{get:function(){return Tt.throwPIR("playerglobals/display/Stage","get allowsFullScreenInteractive",""),null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"browserZoomFactor",{get:function(){return Tt.throwPIR("playerglobals/display/Stage","get browserZoomFactor",""),0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"color",{get:function(){return this.adaptee.color},set:function(t){this.adaptee.color=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"colorCorrection",{get:function(){return Tt.throwPIR("playerglobals/display/Stage","get colorCorrection",""),""},set:function(t){Tt.throwPIR("playerglobals/display/Stage","set colorCorrection","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"colorCorrectionSupport",{get:function(){return Tt.throwPIR("playerglobals/display/Stage","get colorCorrectionSupport",""),""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"contentsScaleFactor",{get:function(){return Tt.throwPIR("playerglobals/display/Stage","get contentsScaleFactor",""),0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"displayContextInfo",{get:function(){return Tt.throwPIR("playerglobals/display/Stage","get displayContextInfo",""),""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"displayState",{get:function(){return Tt.throwPIR("playerglobals/display/Stage","get displayState",""),""},set:function(t){Tt.throwPIR("playerglobals/display/Stage","set displayState","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"focus",{get:function(){return jg.instance().mouseManager.getFocus().adapter},set:function(t){jg.instance().mouseManager.setFocus(null==t?void 0:t.node)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"frameRate",{get:function(){return jg.instance().frameRate},set:function(t){jg.instance().frameRate=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fullScreenHeight",{get:function(){return window.screen.height},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fullScreenSourceRect",{get:function(){return Tt.throwPIR("playerglobals/display/Stage","get fullScreenSourceRect",""),null},set:function(t){Tt.throwPIR("playerglobals/display/Stage","set fullScreenSourceRect","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fullScreenWidth",{get:function(){return window.screen.width},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mouseLock",{get:function(){return Tt.throwPIR("playerglobals/display/Stage","get mouseLock",""),!1},set:function(t){Tt.throwPIR("playerglobals/display/Stage","set mouseLock","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"quality",{get:function(){return Tt.throwPIR("playerglobals/display/Stage","get quality",""),""},set:function(t){Tt.throwPIR("playerglobals/display/Stage","set quality","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleMode",{get:function(){return jg.instance().scaleMode},set:function(t){jg.instance().scaleMode=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showDefaultContextMenu",{get:function(){return Tt.throwPIR("playerglobals/display/Stage","get showDefaultContextMenu",""),!1},set:function(t){Tt.throwPIR("playerglobals/display/Stage","set showDefaultContextMenu","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"softKeyboardRect",{get:function(){return Tt.throwPIR("playerglobals/display/Stage","get softKeyboardRect",""),null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stage3Ds",{get:function(){return Tt.throwPIR("playerglobals/display/Stage","get stage3Ds",""),this._stage3Ds},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stage",{get:function(){return this},set:function(t){this._stage=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stageFocusRect",{get:function(){return Tt.throwPIR("playerglobals/display/Stage","get stageFocusRect",""),!1},set:function(t){Tt.throwPIR("playerglobals/display/Stage","set stageFocusRect","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stageHeight",{get:function(){return jg.instance().stageHeight},set:function(t){jg.instance().stageHeight=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stageVideos",{get:function(){return Tt.throwPIR("playerglobals/display/Stage","get stageVideos",""),[]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stageWidth",{get:function(){return jg.instance().stageWidth},set:function(t){jg.instance().stageWidth=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tabChildren",{get:function(){return Tt.throwPIR("playerglobals/display/Stage","get tabChildren",""),!1},set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textSnapshot",{get:function(){return Tt.throwPIR("playerglobals/display/Stage","get textSnapshot",""),null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"wmodeGPU",{get:function(){return Tt.throwPIR("playerglobals/display/Stage","get wmodeGPU",""),!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"accessibilityProperties",{set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"alpha",{set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"blendMode",{set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cacheAsBitmap",{set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"contextMenu",{set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"filters",{set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"focusRect",{set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mask",{set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mouseChildren",{get:function(){return!1},set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mouseEnabled",{get:function(){return!1},set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"numChildren",{get:function(){return 0},set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return 0},set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return 0},set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"opaqueBackground",{set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"name",{set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rotation",{set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rotationX",{set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rotationY",{set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rotationZ",{set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scale9Grid",{set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleX",{set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleY",{set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleZ",{set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scrollRect",{set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tabEnabled",{set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"transform",{set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"visible",{set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"x",{get:function(){return this.adaptee.x},set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"y",{get:function(){return this.adaptee.y},set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"z",{set:function(t){},enumerable:!1,configurable:!0}),e.prototype.addChild=function(e){e.dispatch_ADDED_TO_STAGE();var n=t.prototype.addChild.call(this,e);return e.adaptee.hasDispatchedAddedToStage=!0,e.dispatchStaticEvent(kO.ADDED_TO_STAGE,e),n},e.prototype.addChildAt=function(e,n){e.dispatch_ADDED_TO_STAGE();var i=t.prototype.addChildAt.call(this,e,n);return e.adaptee.hasDispatchedAddedToStage=!0,e.dispatchStaticEvent(kO.ADDED_TO_STAGE,e),i},e.prototype.removeChildAt=function(e){return t.prototype.removeChildAt.call(this,e)},e.prototype.swapChildrenAt=function(e,n){return t.prototype.swapChildrenAt.call(this,e,n)},e.prototype.setChildIndex=function(t,e){return null},e.prototype.addEventListener=function(e,n,i,r,o){void 0===r&&(r=0),void 0===o&&(o=!1),t.prototype.addEventListener.call(this,e,n,!1,r,o)},e.prototype.hasEventListener=function(e){return t.prototype.hasEventListener.call(this,e)},e.prototype.willTrigger=function(){return t.prototype.willTrigger.call(this)},e.prototype.dispatchEvent=function(e){return t.prototype.dispatchEvent.call(this,e)},Object.defineProperty(e.prototype,"loaderInfo",{get:function(){return this.getChildAt(0).loaderInfo},enumerable:!1,configurable:!0}),e.prototype.invalidate=function(){this._sendEventRender=!0},e.prototype.isFocusInaccessible=function(){return Tt.throwPIR("playerglobals/display/Stage","isFocusInaccessible",""),!1},e}(dM),MM=function(t){function e(e){void 0===e&&(e=null);var n=t.call(this)||this;return n._ignoreDecodingErrors=!1,e&&n.decode(e),n}return Zg(e,t),e.prototype.axSetProperty=function(t,e){this[t.getMangledName()]=e},e.prototype.decode=function(t){for(var e=(t=a_(t)).split("&"),n=0;n<e.length;n++){var i=e[n],r=i.indexOf("=");r<0&&(this._ignoreDecodingErrors?r=i.length:this.sec.throwError("Error",w_.DecodeParamError));var o=unescape(i.substring(0,r).split("+").join(" ")),a=unescape(i.substring(r+1).split("+").join(" ")),s=this.axGetPublicProperty(o);void 0===s?this.axSetPublicProperty(o,a):Array.isArray(s)?s.push(a):this.axSetPublicProperty(o,[s,a])}},e.prototype.toString=function(){for(var t=[],e=this.axGetEnumerableKeys(),n=0;n<e.length;n++){var i=e[n].split(" ").join("+"),r=this.axGetPublicProperty(i);if(i=escape(i).split(" ").join("+"),Array.isArray(r))for(var o=0;o<r.length;o++)t.push(i+"="+escape(r[o]));else t.push(i+"="+escape(r))}return t.join("&")},e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e}(B_),BM=function(t){function e(e){void 0===e&&(e=null);var n=t.call(this)||this;return n._adaptee=new yt(e),n}return Zg(e,t),Object.defineProperty(e.prototype,"adaptee",{get:function(){return this._adaptee},set:function(t){this._adaptee=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this._adaptee.url},set:function(t){t=a_(t),this._adaptee.url=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){var t=this._adaptee.data,e=this._adaptee.data;if(t instanceof ht)for(var n in e=new MM,this._adaptee.data.variables)e["$Bg"+n]=this._adaptee.data.variables[n];else"object"==typeof t&&(e=IS(this.sec,t,!0));return this._data=e},set:function(t){this._data=t,this.mapToJSData()},enumerable:!1,configurable:!0}),e.prototype.mapToJSData=function(){var t,e=this._data;if(this.sec.flash.net.URLVariables.axIsType(e))for(var n in t=new ht,e)0==n.indexOf("$Bg")&&"function"!=typeof e[n]&&(t.variables[n.replace("$Bg","")]=e[n]);else t=ES(this.sec,e,!0);return this._adaptee.data=t,t},Object.defineProperty(e.prototype,"method",{get:function(){return this._adaptee.method},set:function(t){this._adaptee.method=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"contentType",{get:function(){return console.log("TODO: URLRequest.contentType"),""},set:function(t){console.log("TODO: URLRequest.contentType")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"requestHeaders",{get:function(){return console.log("TODO: URLRequest.requestHeaders"),null},set:function(t){console.log("TODO: URLRequest.requestHeaders")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"digest",{get:function(){return console.log("TODO: URLRequest.digest"),null},set:function(t){console.log("TODO: URLRequest.digest")},enumerable:!1,configurable:!0}),e}(B_),NM=function(t){function e(){return t.call(this)||this}return Zg(e,t),Object.defineProperty(e.prototype,"formats",{get:function(){return console.log("formats not implemented yet in flash/Clipboard"),[]},enumerable:!1,configurable:!0}),Object.defineProperty(e,"generalClipboard",{get:function(){return console.log("generalClipboard not implemented yet in flash/Clipboard"),null},enumerable:!1,configurable:!0}),e.prototype.clear=function(){console.log("clear not implemented yet in flash/Clipboard")},e.prototype.clearData=function(t){console.log("clearData not implemented yet in flash/Clipboard")},e.prototype.getData=function(t,e){return console.log("getData not implemented yet in flash/Clipboard"),null},e.prototype.hasFormat=function(t){return console.log("hasFormat not implemented yet in flash/Clipboard"),!1},e.prototype.setData=function(t,e,n){return console.log("setData not implemented yet in flash/Clipboard"),!1},e.prototype.setDataHandler=function(t,e,n){return console.log("setDataHandler not implemented yet in flash/Clipboard"),!1},e}(B_),LM=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zg(e,t),e.BITMAP_FORMAT="air:bitmap",e.FILE_LIST_FORMAT="air:file list",e.FILE_PROMISE_LIST_FORMAT="air:file promise list",e.HTML_FORMAT="air:html",e.RICH_TEXT_FORMAT="air:rtf",e.TEXT_FORMAT="air:text",e.URL_FORMAT="air:url",e}(B_),RM=function(t){function e(e,n){var i=t.call(this)||this;return i._name=us(e),i._frame=0|n,i}return Zg(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"frame",{get:function(){return this._frame},enumerable:!1,configurable:!0}),e.prototype.clone=function(){return new e(this._name,this._frame)},e.classInitializer=null,e}(GO),FM=function(t){function e(e){void 0===e&&(e=null);var n=t.call(this)||this;return n._adaptee=e||new sl,n._adaptee.adapter=n,n}return Zg(e,t),e.prototype.dispose=function(){},Object.defineProperty(e.prototype,"adaptee",{get:function(){return this._adaptee},enumerable:!1,configurable:!0}),e.FromData=function(t,e){return new this.sec.flash.display.Graphics},e.prototype.clear=function(){this.adaptee.clear()},e.prototype.beginFill=function(t,e){void 0===e&&(e=1),e<0&&(e=0),e>1&&(e=1),this.adaptee.beginFill(t,e)},e.prototype.beginGradientFill=function(t,e,n,i,r,o,a,s){void 0===r&&(r=null),void 0===o&&(o="pad"),void 0===a&&(a="rgb"),void 0===s&&(s=0),this.adaptee.beginGradientFill(t,e.value,n.value,i.value,null==r?void 0:r.adaptee,o,a,s)},e.prototype.beginBitmapFill=function(t,e,n,i){void 0===e&&(e=null),void 0===n&&(n=!0),void 0===i&&(i=!1),this.adaptee.beginBitmapFill(t.adaptee,null==e?void 0:e.adaptee,n,i)},e.prototype.endFill=function(){this.adaptee.endFill()},e.prototype.lineStyle=function(t,e,n,i,r,o,a,s){void 0===e&&(e=0),void 0===n&&(n=1),void 0===i&&(i=!1),void 0===r&&(r="normal"),void 0===o&&(o=null),void 0===a&&(a=null),void 0===s&&(s=3),this.adaptee.lineStyle(t,e,n,i,r,o,a,s)},e.prototype.lineGradientStyle=function(t,e,n,i,r,o,a,s){void 0===r&&(r=null),void 0===o&&(o="pad"),void 0===a&&(a="rgb"),void 0===s&&(s=0),this.adaptee.lineGradientStyle(t,e.value,n.value,i.value,null==r?void 0:r.adaptee,o,a,s)},e.prototype.lineBitmapStyle=function(t,e,n,i){void 0===e&&(e=null),void 0===n&&(n=!0),void 0===i&&(i=!1),this.adaptee.lineBitmapStyle(t.adaptee,null==e?void 0:e.adaptee,n,i)},e.prototype.drawRect=function(t,e,n,i){this.adaptee.drawRect(t,e,n,i)},e.prototype.drawRoundRect=function(t,e,n,i,r,o){this.adaptee.drawRoundRect(t,e,n,i,r,o)},e.prototype.drawRoundRectComplex=function(t,e,n,i,r,o,a,s){this.adaptee.drawRoundRectComplex(t,e,n,i,r,o,a,s)},e.prototype.drawCircle=function(t,e,n){this.adaptee.drawCircle(t,e,n)},e.prototype.drawEllipse=function(t,e,n,i){this.adaptee.drawEllipse(t,e,n,i)},e.prototype.moveTo=function(t,e){this.adaptee.moveTo(t,e)},e.prototype.lineTo=function(t,e){this.adaptee.lineTo(t,e)},e.prototype.curveTo=function(t,e,n,i){this.adaptee.curveTo(t,e,n,i)},e.prototype.cubicCurveTo=function(t,e,n,i,r,o){this.adaptee.cubicCurveTo(t,e,n,i,r,o)},e.prototype.copyFrom=function(t){this.adaptee.copyFrom(t.adaptee)},e.prototype.drawPath=function(t,e,n){Tt.throwPIR("playerglobals/display/Graphics","drawPath","")},e.prototype.drawTriangles=function(t,e,n,i){Tt.throwPIR("playerglobals/display/Graphics","drawTriangles","")},e.prototype.drawGraphicsData=function(t){Tt.throwPIR("playerglobals/display/Graphics","drawGraphicsData","")},e.prototype.readGraphicsData=function(t){return Tt.throwPIR("playerglobals/display/Graphics","readGraphicsData",""),[]},e.classInitializer=null,e}(B_),kM=function(t){function e(){var e=t.call(this)||this;return e._enabled=!0,e}return Zg(e,t),Object.defineProperty(e.prototype,"enabled",{get:function(){return Tt.throwPIR("playerglobals/display/NativeMenuItem","get enabled",""),this._enabled},set:function(t){t=!!t,Tt.throwPIR("playerglobals/display/NativeMenuItem","set enabled",""),this._enabled=t},enumerable:!1,configurable:!0}),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e}(GO),UM=function(t){function e(e,n,i,r){var o=t.call(this)||this;return o._name=a_(e),o._labels=n,o.offset=i,o._numFrames=0|r,o}return Zg(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"labels",{get:function(){return this._labels},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"numFrames",{get:function(){return this._numFrames},enumerable:!1,configurable:!0}),e.prototype.clone=function(){var t=this._labels.value.map((function(t){return t.clone()}));return new e(this._name,this.sec.createArrayUnsafe(t),this.offset,this._numFrames)},e.prototype.getLabelByName=function(t,e){e&&(t=t.toLowerCase());for(var n=this._labels.value,i=0;i<n.length;i++){var r=n[i];if(e?r.name.toLowerCase()===t:r.name===t)return r}return null},e.prototype.getLabelByFrame=function(t){for(var e=this._labels.value,n=0;n<e.length;n++){var i=e[n];if(i.frame===t)return i}return null},e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e}(B_),jM=function(t){function e(){var e=t.call(this)||this;return e._graphics=new e.sec.flash.display.Graphics(e._adaptee.graphics),e}return Zg(e,t),e.prototype.createAdaptee=function(){var t=gl.getNewSprite();return t.reset(),t},Object.defineProperty(e.prototype,"graphics",{get:function(){return this._graphics},enumerable:!1,configurable:!0}),e.prototype.clone=function(){if(!this._symbol)throw"_symbol not defined when cloning movieclip";var t=WD(this._symbol,this._symbol.symbolClass),e=new gl;return this.adaptee.copyTo(e),t.adaptee=e,t._stage=this.activeStage,t.adaptee.graphics=this.graphics,t},e}(lM),VM=function(t){function e(e,n,i,r){var o=t.call(this)||this;return o._adaptee.addButtonListeners(),o}return Zg(e,t),e.prototype.addTimelineChildAtDepth=function(t,e){t.reset();for(var n=this.adaptee.numChildren-1,i=n+1,r=0,o=n;o>=0;o--){var a=this.adaptee.getChildAt(o);if(-1==a._avmDepthID&&r++,a._avmDepthID>-1){if(a._avmDepthID<e){i=o+1+r;break}r=0,i=o}}return t._avmDepthID=e,t.just_added_to_timeline=!0,this.adaptee._sessionID_childs[t._sessionID]=t,this.adaptee.addChildAt(t,i)},e.prototype.removeTimelineChildAt=function(t){var e=this.adaptee._sessionID_childs[t];e&&(delete this.adaptee._sessionID_childs[t],this.adaptee.removeChild(e))},e.prototype.queueFrameScripts=function(t,e,n){n?Nl.add_script_to_queue(this.adaptee,e):Nl.add_script_to_queue_pass2(this.adaptee,e)},e.prototype.removeAllTimelineChilds=function(){var t=this.adaptee;for(var e in t._sessionID_childs){var n=t._sessionID_childs[e];n&&(delete t._sessionID_childs[e],t.removeChild(n))}},e.prototype.constructFrame=function(t,e,n,i,r,o,a){for(var s,u,l=this.adaptee,c=l.numChildren,h=[],p={},d=0;d<c;d++){var f=l.getChildAt(d);(i||-1==f._sessionID)&&(h[h.length]={sessionID:f._sessionID,as3DepthID:f._avmDepthID,addedOnTargetFrame:!1,child:f}),-1!=f._sessionID&&(p[f._sessionID]=f)}this.$Bg__setPropDict&&this.clearPropsDic(),t._update_indices.length=0,t._update_frames.length=0;var g,_,m=0;for(u=e;u<=n;u++){var y=t.frame_command_indices[u],A=t.frame_recipe[u];if(2&A){_=(g=t.command_index_stream[y])+t.command_length_stream[y++];var v={};for(s=g;s<_;s++)v[t.remove_child_stream[s]]=!0;var b=[];c=h.length;for(var C=0;C<c;C++)v[h[C].sessionID]||(b[b.length]=h[C]);h=b}if(4&A)for(_=(g=t.command_index_stream[y])+t.command_length_stream[y++],s=g;s<_;s++){for(var x=h.length-1,I=t.add_child_stream[3*s+1],E=x+1,w=0,S=x;S>=0;S--){var D=h[S];if(-1==D.as3DepthID&&w++,D.as3DepthID>-1){if(D.as3DepthID==I&&D.sessionID==t.add_child_stream[3*S]){E=-1;break}if(D.as3DepthID<I){E=S+1+w;break}w=0,E=S}}E>=h.length?h[h.length]={sessionID:t.add_child_stream[3*s],addedOnTargetFrame:u==n,symbolID:t.add_child_stream[3*s+2],as3DepthID:t.add_child_stream[3*s+1]}:E>-1&&h.splice(E,0,{sessionID:t.add_child_stream[3*s],addedOnTargetFrame:u==n,symbolID:t.add_child_stream[3*s+2],as3DepthID:t.add_child_stream[3*s+1]})}8&A&&(t._update_frames[m]=t.keyframe_firstframes[u],t._update_indices[m++]=y++),16&A&&u==n&&t.start_sounds(l,y)}var T,P=[],O=[],M=[];l._sessionID_childs={},c=P.length=h.length;for(var B=0;B<c;B++)if(-1==(T=h[B]).sessionID&&T.child)P[B]=T.child.adaptee;else if(p[T.sessionID]){var N=p[T.sessionID];l._sessionID_childs[T.sessionID]=N,P[B]=N,i||(P[B]._adapter?(P[B].adapter.isColorTransformByScript()||P[B].transform.clearColorTransform(),P[B].adapter.isBlockedByScript()||P[B].noTimelineUpdate||(P[B].transform.clearMatrix3D(),P[B].updateTimelineMask(null)),P[B].adapter.isVisibilityByScript()||(P[B].visible=!0)):(P[B].transform.clearColorTransform(),P[B].transform.clearMatrix3D(),P[B].visible=!0,P[B].updateTimelineMask(null)))}else{var L=t.getChildInstance(T.symbolID,T.sessionID);this.adaptee.isSlice9ScaledMC&&"[asset Sprite]"==L.assetType&&(L.isSlice9ScaledSprite=!0),L._sessionID=T.sessionID,L._avmDepthID=T.as3DepthID,l._sessionID_childs[T.sessionID]=L,P[B]=L,T.addedOnTargetFrame?M[M.length]=L:O[O.length]=L}for(var R=l.numChildren-1;R>=0;R--)P.indexOf(l.getChildAt(R))<0&&l.removeChildAt(R);for(var F=0;F<P.length;F++)l.contains(P[F])||l.addChildAt(P[F],F);l.preventScript=!0,this.finalizeChildren(O),a&&this.queueFrameScripts(t,r,!o),l.preventScript=!0,this.finalizeChildren(M)},e.prototype.finalizeChildren=function(t){for(var e=t.length,n=0;n<e;n++){t[n].reset()}},e.prototype.initAdapter=function(){},e.prototype.registerScriptObject=function(t){},e.prototype.unregisterScriptObject=function(t){},e.prototype.clearPropsDic=function(){},Object.defineProperty(e.prototype,"downState",{get:function(){return Tt.throwPIR("playerglobals/display/SimpleButton","get downState",""),null},set:function(t){Tt.throwPIR("playerglobals/display/SimpleButton","set downState","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return Tt.throwPIR("playerglobals/display/SimpleButton","get enabled",""),!1},set:function(t){Tt.throwPIR("playerglobals/display/SimpleButton","set enabled","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hitTestState",{get:function(){return this.adaptee.pickObject.adapter},set:function(t){this.adaptee.pickObject=t.adaptee},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"overState",{get:function(){return Tt.throwPIR("playerglobals/display/SimpleButton","get overState",""),null},set:function(t){Tt.throwPIR("playerglobals/display/SimpleButton","set overState","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"soundTransform",{get:function(){return Tt.throwPIR("playerglobals/display/SimpleButton","get soundTransform",""),null},set:function(t){Tt.throwPIR("playerglobals/display/SimpleButton","set soundTransform","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"trackAsMenu",{get:function(){return Tt.throwPIR("playerglobals/display/SimpleButton","get trackAsMenu",""),!1},set:function(t){Tt.throwPIR("playerglobals/display/SimpleButton","set trackAsMenu","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"upState",{get:function(){return Tt.throwPIR("playerglobals/display/SimpleButton","get upState",""),null},set:function(t){Tt.throwPIR("playerglobals/display/SimpleButton","set upState","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"useHandCursor",{get:function(){return Tt.throwPIR("playerglobals/display/SimpleButton","get useHandCursor",""),!1},set:function(t){Tt.throwPIR("playerglobals/display/SimpleButton","set useHandCursor","")},enumerable:!1,configurable:!0}),e.prototype.clone=function(){var t=this;if(!t._symbol)throw"_symbol not defined when cloning movieclip";var e=WD(t._symbol,t._symbol.symbolClass),n=new Rl(this.adaptee.timeline);return this.adaptee.copyTo(n),e.adaptee=n,e._stage=this.activeStage,e.executeConstructor=function(){e.axInitializer(),e.constructorHasRun=!0},e},e}(pM),QM=function(t){function e(e,n){return void 0===e&&(e=""),void 0===n&&(n=0),t.call(this,e,n)||this}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e}(X_),GM=function(t){function e(e,n){return void 0===e&&(e=""),void 0===n&&(n=0),t.call(this,e,n)||this}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e}(QM),zM=function(t){function e(e,n){return void 0===e&&(e=""),void 0===n&&(n=0),t.call(this,e,n)||this}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e}(X_),HM=function(t){function e(e,n){return void 0===e&&(e=""),void 0===n&&(n=0),t.call(this,e,n)||this}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e}(X_),XM=function(t){function e(e,n){return void 0===e&&(e=""),void 0===n&&(n=0),t.call(this,e,n)||this}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e}(X_),YM=function(t){function e(e,n){return void 0===e&&(e=""),void 0===n&&(n=0),t.call(this,e,n)||this}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e}(X_),qM=function(t){function e(e,n){return void 0===e&&(e=""),void 0===n&&(n=0),t.call(this,e,n)||this}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e}(X_),KM=function(t){function e(e,n,i,r,o,a,s,u){void 0===e&&(e=1),void 0===n&&(n=1),void 0===i&&(i=1),void 0===r&&(r=1),void 0===o&&(o=0),void 0===a&&(a=0),void 0===s&&(s=0),void 0===u&&(u=0);var l=t.call(this)||this;if(e instanceof O)l._adaptee=e;else{var c=+e,h=+n,p=+i,d=+r;l._adaptee=new O(c==c?c:1,h==h?h:1,p==p?p:1,d==d?d:1,+o||0,+a||0,+s||0,+u||0)}return l}return Zg(e,t),e.classInitializer=function(){this.FROZEN_IDENTITY_COLOR_TRANSFORM=Object.freeze(this.axConstruct([])),this.TEMP_COLOR_TRANSFORM=this.axConstruct([])},Object.defineProperty(e.prototype,"adaptee",{get:function(){return this._adaptee},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"alphaMultiplier",{get:function(){return this._adaptee._rawData[3]},set:function(t){this._adaptee._rawData[3]=+t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"alphaOffset",{get:function(){return this._adaptee._rawData[7]},set:function(t){this._adaptee._rawData[7]=+t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"blueMultiplier",{get:function(){return this._adaptee._rawData[2]},set:function(t){this._adaptee._rawData[2]=+t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"blueOffset",{get:function(){return this._adaptee._rawData[6]},set:function(t){this._adaptee._rawData[6]=+t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"greenMultiplier",{get:function(){return this._adaptee._rawData[1]},set:function(t){this._adaptee._rawData[1]=+t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"greenOffset",{get:function(){return this._adaptee._rawData[5]},set:function(t){this._adaptee._rawData[5]=+t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"redMultiplier",{get:function(){return this._adaptee._rawData[0]},set:function(t){this._adaptee._rawData[0]=+t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"redOffset",{get:function(){return this._adaptee._rawData[4]},set:function(t){this._adaptee._rawData[4]=+t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"color",{get:function(){return this._adaptee.color},set:function(t){this._adaptee.color=+t},enumerable:!1,configurable:!0}),e.prototype.concat=function(t){this._adaptee.concat(t.adaptee)},e.prototype.preMultiply=function(t){this._adaptee._rawData[4]+=t.adaptee._rawData[4]*this._adaptee._rawData[0],this._adaptee._rawData[5]+=t.adaptee._rawData[5]*this._adaptee._rawData[1],this._adaptee._rawData[6]+=t.adaptee._rawData[6]*this._adaptee._rawData[2],this._adaptee._rawData[7]+=t.adaptee._rawData[7]*this._adaptee._rawData[3],this._adaptee._rawData[0]*=t.adaptee._rawData[0],this._adaptee._rawData[1]*=t.adaptee._rawData[1],this._adaptee._rawData[2]*=t.adaptee._rawData[2],this._adaptee._rawData[3]*=t.adaptee._rawData[3]},e.prototype.copyFrom=function(t){this._adaptee.copyFrom(t.adaptee)},e.prototype.setTo=function(t,e,n,i,r,o,a,s){var u=+t,l=+e,c=+n,h=+i;this._adaptee._rawData[0]=u==u?u:1,this._adaptee._rawData[1]=l==l?l:1,this._adaptee._rawData[2]=c==c?c:1,this._adaptee._rawData[3]=h==h?h:1,this._adaptee._rawData[4]=+r||0,this._adaptee._rawData[5]=+o||0,this._adaptee._rawData[6]=+a||0,this._adaptee._rawData[7]=+s||0},e.prototype.clone=function(){return new this.sec.flash.geom.ColorTransform(this._adaptee._rawData[0],this._adaptee._rawData[1],this._adaptee._rawData[2],this._adaptee._rawData[3],this._adaptee._rawData[4],this._adaptee._rawData[5],this._adaptee._rawData[6],this._adaptee._rawData[7])},e.prototype.convertToFixedPoint=function(){return this._adaptee._rawData[0]=cd(this._adaptee._rawData[0]),this._adaptee._rawData[1]=cd(this._adaptee._rawData[1]),this._adaptee._rawData[2]=cd(this._adaptee._rawData[2]),this._adaptee._rawData[3]=cd(this._adaptee._rawData[3]),this._adaptee._rawData[4]=hd(this._adaptee._rawData[4]),this._adaptee._rawData[5]=hd(this._adaptee._rawData[5]),this._adaptee._rawData[6]=hd(this._adaptee._rawData[6]),this._adaptee._rawData[7]=hd(this._adaptee._rawData[7]),this},e.prototype.dispose=function(){throw new h},e.prototype.equals=function(t){return this===t||this._adaptee._rawData[0]===t._adaptee._rawData[0]&&this._adaptee._rawData[1]===t._adaptee._rawData[1]&&this._adaptee._rawData[2]===t._adaptee._rawData[2]&&this._adaptee._rawData[3]===t._adaptee._rawData[3]&&this._adaptee._rawData[4]===t._adaptee._rawData[4]&&this._adaptee._rawData[5]===t._adaptee._rawData[5]&&this._adaptee._rawData[6]===t._adaptee._rawData[6]&&this._adaptee._rawData[7]===t._adaptee._rawData[7]},e.prototype.toString=function(){return"(redMultiplier="+this._adaptee._rawData[0]+", greenMultiplier="+this._adaptee._rawData[1]+", blueMultiplier="+this._adaptee._rawData[2]+", alphaMultiplier="+this._adaptee._rawData[3]+", redOffset="+this._adaptee._rawData[4]+", greenOffset="+this._adaptee._rawData[5]+", blueOffset="+this._adaptee._rawData[6]+", alphaOffset="+this._adaptee._rawData[7]+")"},e.classSymbols=null,e.instanceSymbols=null,e}(B_),WM=function(t){function e(e,n,i,r,o,a){void 0===e&&(e=1),void 0===n&&(n=0),void 0===i&&(i=0),void 0===r&&(r=1),void 0===o&&(o=0),void 0===a&&(a=0);var s=t.call(this)||this;return s._adaptee=e instanceof L?e:new L(+e,+n,+i,+r,+o,+a),s}return Zg(e,t),e.classInitializer=function(){this.FROZEN_IDENTITY_MATRIX=Object.freeze(this.axConstruct([])),this.TEMP_MATRIX=this.axConstruct([])},Object.defineProperty(e.prototype,"adaptee",{get:function(){return this._adaptee},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"a",{get:function(){return this._adaptee.rawData[0]},set:function(t){this._adaptee.rawData[0]=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"b",{get:function(){return this._adaptee.rawData[1]},set:function(t){this._adaptee.rawData[1]=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"c",{get:function(){return this._adaptee.rawData[2]},set:function(t){this._adaptee.rawData[2]=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"d",{get:function(){return this._adaptee.rawData[3]},set:function(t){this._adaptee.rawData[3]=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tx",{get:function(){return this._adaptee.rawData[4]},set:function(t){this._adaptee.rawData[4]=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ty",{get:function(){return this._adaptee.rawData[5]},set:function(t){this._adaptee.rawData[5]=t},enumerable:!1,configurable:!0}),e.FromUntyped=function(t){return new this.sec.flash.geom.Matrix(t.a,t.b,t.c,t.d,t.tx,t.ty)},e.FromDataBuffer=function(t){return new this.sec.flash.geom.Matrix(t.readFloat(),t.readFloat(),t.readFloat(),t.readFloat(),t.readFloat(),t.readFloat())},e.prototype.concat=function(t){this._adaptee.concat(t.adaptee)},e.prototype.invert=function(){this._adaptee.invert()},e.prototype.identity=function(){this._adaptee.identity()},e.prototype.createBox=function(t,e,n,i,r){void 0===n&&(n=0),void 0===i&&(i=0),void 0===r&&(r=0),this._adaptee.createBox(t,e,n,i,r)},e.prototype.createGradientBox=function(t,e,n,i,r){void 0===n&&(n=0),void 0===i&&(i=0),void 0===r&&(r=0),this._adaptee.createGradientBox(t,e,n,i,r)},e.prototype.rotate=function(t){this._adaptee.rotate(t)},e.prototype.translate=function(t,e){this._adaptee.translate(t,e)},e.prototype.scale=function(t,e){this._adaptee.scale(t,e)},e.prototype.deltaTransformPoint=function(t){return new this.sec.flash.geom.Point(this._adaptee.deltaTransformPoint(t.adaptee))},e.prototype.transformPoint=function(t){return new this.sec.flash.geom.Point(this._adaptee.transformPoint(t.adaptee))},e.prototype.copyFrom=function(t){this._adaptee.copyFrom(t.adaptee)},e.prototype.setTo=function(t,e,n,i,r,o){this._adaptee.setTo(t,e,n,i,r,o)},e.prototype.copyRowTo=function(t,e){this._adaptee.copyRowTo(t,e.adaptee)},e.prototype.copyColumnTo=function(t,e){this._adaptee.copyColumnTo(t,e.adaptee)},e.prototype.copyRowFrom=function(t,e){this._adaptee.copyRowFrom(t,e.adaptee)},e.prototype.copyColumnFrom=function(t,e){this._adaptee.copyColumnFrom(t,e.adaptee)},e.prototype.clone=function(){return new this.sec.flash.geom.Matrix(this._adaptee.clone())},e.prototype.toString=function(){var t=this._adaptee.rawData;return"(a="+t[0]+", b="+t[1]+", c="+t[2]+", d="+t[3]+", tx="+t[4]+", ty="+t[5]+")"},e.prototype.writeExternal=function(t){var e=this._adaptee.rawData;t.writeFloat(e[0]),t.writeFloat(e[1]),t.writeFloat(e[2]),t.writeFloat(e[3]),t.writeFloat(e[4]),t.writeFloat(e[5])},e.classSymbols=null,e.instanceSymbols=null,e}(B_),JM=new Uint32Array([0,4,8,12,1,5,9,13,2,6,10,14,3,7,11,15]),$M=function(t){function e(e){void 0===e&&(e=null);var n=t.call(this)||this;return e instanceof V?n._adaptee=e:(n._adaptee=new V,e&&e.length>=16?n.copyRawDataFrom(e,0,!1):n.identity()),n}return Zg(e,t),Object.defineProperty(e.prototype,"adaptee",{get:function(){return this._adaptee},enumerable:!1,configurable:!0}),e.interpolate=function(t,e,n){},Object.defineProperty(e.prototype,"rawData",{get:function(){var t=new this.sec.Float64Vector;return this.copyRawDataTo(t,0,!1),t},set:function(t){this.copyRawDataFrom(t,0,!1)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"position",{get:function(){return new this.sec.flash.geom.Vector3D(this._adaptee.position)},set:function(t){this.copyColumnFrom(3,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"determinant",{get:function(){return this._adaptee.determinant},enumerable:!1,configurable:!0}),e.prototype.clone=function(){return new this.sec.flash.geom.Matrix3D(this._adaptee.clone())},e.prototype.copyToMatrix3D=function(t){this._adaptee.copyTo(t.adaptee)},e.prototype.append=function(t){this._adaptee.append(t.adaptee)},e.prototype.prepend=function(t){this._adaptee.prepend(t.adaptee)},e.prototype.invert=function(){return this._adaptee.invert()},e.prototype.identity=function(){this._adaptee.identity()},e.prototype.decompose=function(t){void 0===t&&(t="eulerAngles"),this._adaptee.decompose(t),t=us(t)},e.prototype.recompose=function(t,e){},e.prototype.appendTranslation=function(t,e,n){this._adaptee.appendTranslation(+t,+e,+n)},e.prototype.appendRotation=function(t,e,n){this._adaptee.appendRotation(+t,e.adaptee)},e.prototype.appendScale=function(t,e,n){this._adaptee.appendScale(+t,+e,+n)},e.prototype.prependTranslation=function(t,e,n){this._adaptee.prependTranslation(+t,+e,+n)},e.prototype.prependRotation=function(t,e,n){this._adaptee.prependRotation(+t,e.adaptee)},e.prototype.prependScale=function(t,e,n){this._adaptee.prependScale(+t,+e,+n)},e.prototype.transformVector=function(t){return new this.sec.flash.geom.Vector3D(this._adaptee.transformVector(t.adaptee))},e.prototype.deltaTransformVector=function(t){return new this.sec.flash.geom.Vector3D(this._adaptee.deltaTransformVector(t.adaptee))},e.prototype.transformVectors=function(t,e){for(var n=this._adaptee._rawData,i=n[0],r=n[4],o=n[8],a=n[12],s=n[1],u=n[5],l=n[9],c=n[13],h=n[2],p=n[6],d=n[10],f=n[14],g=0;g<t.length-2;g+=3){var _=t.axGetNumericProperty(g),m=t.axGetNumericProperty(g+1),y=t.axGetNumericProperty(g+2);e.push(i*_+r*m+o*y+a),e.push(s*_+u*m+l*y+c),e.push(h*_+p*m+d*y+f)}},e.prototype.transpose=function(){this._adaptee.transpose()},e.prototype.pointAt=function(t,e,n){},e.prototype.interpolateTo=function(t,e){},e.prototype.copyFrom=function(t){this._adaptee.copyFrom(t.adaptee)},e.prototype.copyRawDataTo=function(t,e,n){void 0===e&&(e=0),void 0===n&&(n=!1),e>>>=0,n=!!n;var i=this._adaptee._rawData;if(n)for(var r=0,o=0|e;r<16;r++,o++)t.axSetNumericProperty(o,i[JM[r]]);else for(r=0,o=0|e;r<16;r++,o++)t.axSetNumericProperty(o,i[r])},e.prototype.copyRawDataFrom=function(t,e,n){void 0===e&&(e=0),void 0===n&&(n=!1),e>>>=0,n=!!n;var i=this._adaptee._rawData;if(n)for(var r=0,o=0|e;r<16;r++,o++)i[JM[r]]=t.axGetNumericProperty(o)||0;else for(r=0,o=0|e;r<16;r++,o++)i[r]=t.axGetNumericProperty(o)||0},e.prototype.copyRowTo=function(t,e){this._adaptee.copyRowTo(t>>>0,e.adaptee)},e.prototype.copyColumnTo=function(t,e){this._adaptee.copyColumnTo(t>>>0,e.adaptee)},e.prototype.copyRowFrom=function(t,e){this._adaptee.copyRowFrom(t>>>0,e.adaptee)},e.prototype.copyColumnFrom=function(t,e){this._adaptee.copyColumnFrom(t>>>0,e.adaptee)},e.classInitializer=null,e}(B_),ZM=function(t){function e(e,n){void 0===e&&(e=0),void 0===n&&(n=0);var i=t.call(this)||this;return i._constructorCalled=!0,i._adaptee=e instanceof N?e:new N(+e,+n),i._constructorCalled=!0,i}return Zg(e,t),Object.defineProperty(e.prototype,"adaptee",{get:function(){return this._adaptee},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"x",{get:function(){return this._constructorCalled?this._adaptee._rawData[0]:(console.warn("[Point] Read x before call constructor"),0)},set:function(t){this._adaptee._rawData[0]=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"y",{get:function(){return this._constructorCalled?this._adaptee._rawData[1]:(console.warn("[Point] Read y before call constructor"),0)},set:function(t){this._adaptee._rawData[1]=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this._adaptee.length},enumerable:!1,configurable:!0}),e.interpolate=function(t,e,n){return new this.sec.flash.geom.Point(N.interpolate(t.adaptee,e.adaptee,n))},e.distance=function(t,e){return N.distance(t.adaptee,e.adaptee)},e.polar=function(t,e){return new this.sec.flash.geom.Point(N.polar(+t,+e))},e.prototype.clone=function(){return new this.sec.flash.geom.Point(this._adaptee.clone())},e.prototype.offset=function(t,e){this._adaptee.offset(t,e)},e.prototype.equals=function(t){return this._adaptee.equals(t.adaptee)},e.prototype.subtract=function(t){return new this.sec.flash.geom.Point(this._adaptee.subtract(t.adaptee))},e.prototype.add=function(t){return new this.sec.flash.geom.Point(this._adaptee.add(t.adaptee))},e.prototype.normalize=function(t){void 0===t&&(t=1),this._adaptee.normalize(+t)},e.prototype.copyFrom=function(t){this._adaptee.copyFrom(t.adaptee)},e.prototype.setTo=function(t,e){this._adaptee.setTo(t,e)},e.prototype.toString=function(){return"(x="+this.x+", y="+this.y+")"},e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e}(B_),tB=function(t){function e(e,n,i,r){void 0===e&&(e=0),void 0===n&&(n=0),void 0===i&&(i=0),void 0===r&&(r=0);var o=t.call(this)||this;return o._adaptee=e instanceof tt?e:new tt(+e,+n,+i,+r),o}return Zg(e,t),Object.defineProperty(e.prototype,"adaptee",{get:function(){return this._adaptee},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._adaptee._rawData[3]},set:function(t){this._adaptee._rawData[3]=+t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this._adaptee._rawData[2]},set:function(t){this._adaptee._rawData[2]=+t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"x",{get:function(){return this._adaptee._rawData[0]},set:function(t){this._adaptee._rawData[0]=+t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"y",{get:function(){return this._adaptee._rawData[1]},set:function(t){this._adaptee._rawData[1]=+t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bottom",{get:function(){return this._adaptee.bottom},set:function(t){this._adaptee.bottom=+t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bottomRight",{get:function(){return new this.sec.flash.geom.Point(this._adaptee.bottomRight)},set:function(t){this.bottom=t.y,this.right=t.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"left",{get:function(){return this._adaptee.left},set:function(t){this._adaptee.left=+t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"right",{get:function(){return this._adaptee.right},set:function(t){this._adaptee.right=+t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return new this.sec.flash.geom.Point(this._adaptee.size)},set:function(t){this.width=t.x,this.height=t.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"top",{get:function(){return this._adaptee.top},set:function(t){this._adaptee.top=+t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"topLeft",{get:function(){return new this.sec.flash.geom.Point(this._adaptee.topLeft)},set:function(t){this.top=t.y,this.left=t.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"area",{get:function(){return this.width*this.height},enumerable:!1,configurable:!0}),e.FromBounds=function(t){var e=t.xMin,n=t.yMin;return new this.sec.flash.geom.Rectangle(e/20,n/20,(t.xMax-e)/20,(t.yMax-n)/20)},e.prototype.clone=function(){return new this.sec.flash.geom.Rectangle(this._adaptee.clone())},e.prototype.isEmpty=function(){return this._adaptee.isEmpty()},e.prototype.setEmpty=function(){return this._adaptee.setEmpty()},e.prototype.inflate=function(t,e){this._adaptee.inflate(+t,+e)},e.prototype.inflatePoint=function(t){this._adaptee.inflatePoint(t.adaptee)},e.prototype.offset=function(t,e){this._adaptee.offset(+t,+e)},e.prototype.offsetPoint=function(t){this._adaptee.offsetPoint(t.adaptee)},e.prototype.contains=function(t,e){return this._adaptee.contains(+t,+e)},e.prototype.containsPoint=function(t){return this._adaptee.containsPoint(t.adaptee)},e.prototype.containsRect=function(t){return this._adaptee.containsRect(t.adaptee)},e.prototype.intersection=function(t){return new this.sec.flash.geom.Rectangle(this._adaptee.intersection(t.adaptee))},e.prototype.intersects=function(t){return this._adaptee.intersects(t.adaptee)},e.prototype.union=function(t){return new this.sec.flash.geom.Rectangle(this._adaptee.union(t.adaptee))},e.prototype.equals=function(t){return this._adaptee.equals(t.adaptee)},e.prototype.copyFrom=function(t){this._adaptee.copyFrom(t.adaptee)},e.prototype.setTo=function(t,e,n,i){this._adaptee.setTo(+t,+e,+n,+i)},e.prototype.toString=function(){return"(x="+this.x+", y="+this.y+", w="+this.width+", h="+this.height+")"},e.prototype.hashCode=function(){var t=0;return t+=20*this.x|0,t*=37,t+=20*this.y|0,t*=37,t+=20*this.width|0,t*=37,t+=20*this.height|0},e.prototype.writeExternal=function(t){t.writeFloat(this.x),t.writeFloat(this.y),t.writeFloat(this.width),t.writeFloat(this.height)},e.prototype.readExternal=function(t){this.x=t.readFloat(),this.y=t.readFloat(),this.width=t.readFloat(),this.height=t.readFloat()},e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e}(B_),eB=function(t){function e(e){var n=t.call(this)||this;return e||n.sec.throwError("ArgumentError",w_.NullPointerError,"displayObject"),n._adaptee=e instanceof Q?e:new Q,n}return Zg(e,t),Object.defineProperty(e.prototype,"adaptee",{get:function(){return this._adaptee},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"matrix",{get:function(){return new this.sec.flash.geom.Matrix(this._adaptee.matrix)},set:function(t){this._adaptee.matrix=t.adaptee},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"colorTransform",{get:function(){return new this.sec.flash.geom.ColorTransform(this._adaptee.colorTransform)},set:function(t){this._adaptee.colorTransform=t.adaptee},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"concatenatedMatrix",{get:function(){return new this.sec.flash.geom.Matrix(this._adaptee.matrix)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"concatenatedColorTransform",{get:function(){return new this.sec.flash.geom.ColorTransform(this._adaptee.colorTransform)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pixelBounds",{get:function(){return new this.sec.flash.geom.Rectangle(this._adaptee.pixelBounds)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"matrix3D",{get:function(){return new this.sec.flash.geom.Matrix3D(this._adaptee.matrix3D)},set:function(t){},enumerable:!1,configurable:!0}),e.prototype.getRelativeMatrix3D=function(t){return function(t,e,n){null==t&&n.throwError("TypeError",w_.NullPointerError,e)}(t,"relativeTo",this.sec),new this.sec.flash.geom.Matrix3D(this._adaptee.matrix3D)},Object.defineProperty(e.prototype,"perspectiveProjection",{get:function(){return new wt},set:function(t){},enumerable:!1,configurable:!0}),e.classInitializer=null,e}(B_),nB=function(t){function e(e,n,i,r){void 0===e&&(e=0),void 0===n&&(n=0),void 0===i&&(i=0),void 0===r&&(r=0);var o=t.call(this)||this;return o._adaptee=e instanceof R?e:new R(+e,+n,+i,+r),o}return Zg(e,t),e.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))},e.Create=function(t,e,n,i){var r=Object.create(this.tPrototype);return r._adaptee=new R(t,e,n,i),r},Object.defineProperty(e.prototype,"adaptee",{get:function(){return this._adaptee},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"x",{get:function(){return this._adaptee._rawData[0]},set:function(t){this._adaptee._rawData[0]=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"y",{get:function(){return this._adaptee._rawData[1]},set:function(t){this._adaptee._rawData[1]=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"z",{get:function(){return this._adaptee._rawData[2]},set:function(t){this._adaptee._rawData[2]=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"w",{get:function(){return this._adaptee._rawData[3]},set:function(t){this._adaptee._rawData[3]=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this._adaptee.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lengthSquared",{get:function(){return this._adaptee.lengthSquared},enumerable:!1,configurable:!0}),e.angleBetween=function(t,e){return R.angleBetween(t.adaptee,e.adaptee)},e.distance=function(t,e){return R.distance(t.adaptee,e.adaptee)},e.prototype.dotProduct=function(t){return this._adaptee.dotProduct(t.adaptee)},e.prototype.crossProduct=function(t){return new this.sec.flash.geom.Vector3D(this._adaptee.crossProduct(t.adaptee))},e.prototype.normalize=function(){return this._adaptee.normalize()},e.prototype.scaleBy=function(t){this._adaptee.scaleBy(+t)},e.prototype.incrementBy=function(t){this._adaptee.incrementBy(t.adaptee)},e.prototype.decrementBy=function(t){this._adaptee.decrementBy(t.adaptee)},e.prototype.add=function(t){return new this.sec.flash.geom.Vector3D(this._adaptee.add(t.adaptee))},e.prototype.subtract=function(t){return new this.sec.flash.geom.Vector3D(this._adaptee.subtract(t.adaptee))},e.prototype.negate=function(){this._adaptee.negate()},e.prototype.equals=function(t,e){return this._adaptee.equals(t.adaptee,e)},e.prototype.nearEquals=function(t,e,n){return this._adaptee.nearEquals(t.adaptee,e,n)},e.prototype.project=function(){this._adaptee.project()},e.prototype.copyFrom=function(t){this._adaptee.copyFrom(t.adaptee)},e.prototype.setTo=function(t,e,n){this._adaptee.setTo(t,e,n)},e.prototype.clone=function(){return new this.sec.flash.geom.Vector3D(this._adaptee.clone())},e.prototype.toString=function(){return"Vector3D("+this.x+", "+this.y+", "+this.z+")"},e}(B_),iB=function(){function t(){}return t.BUFFER_OVERFLOW_ERROR="bufferOverflowError",t.ERROR_CODE_UNKNOWN="errorCodeUnknown",t.ILLEGAL_ARGUMENT_ERROR="illegalArgumentError",t.INDEX_OUT_OF_BOUNDS_ERROR="indexOutOfBoundsError",t.INVALID_ATTR_VALUE="invalidAttrValue",t.INVALID_CHAR_FOUND="invalidCharFound",t.MEMORY_ALLOCATION_ERROR="memoryAllocationError",t.NO_ERROR="noError",t.NUMBER_OVERFLOW_ERROR="numberOverflowError",t.PARSE_ERROR="parseError",t.PATTERN_SYNTAX_ERROR="patternSyntaxError",t.PLATFORM_API_FAILED="platformAPIFailed",t.TRUNCATED_CHAR_FOUND="truncatedCharFound",t.UNEXPECTED_TOKEN="unexpectedToken",t.UNSUPPORTED_ERROR="unsupportedError",t.USING_DEFAULT_WARNING="usingDefaultWarning",t.USING_FALLBACK_WARNING="usingFallbackWarning",t}(),rB=function(t){function e(e){var n=t.call(this)||this;return n._name=e,n.DEFAULT="i-default",n._lastOperationStatus=iB.USING_DEFAULT_WARNING,n}return Zg(e,t),Object.defineProperty(e.prototype,"lastOperationStatus",{get:function(){return this._lastOperationStatus},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ctor",{get:function(){return e},enumerable:!1,configurable:!0}),e.determinePreferredLocales=function(t,e,n){return console.warn("[LocaleID] `determinePreferredLocales` not implemented"),new wm},e.prototype.getLanguage=function(){return console.warn("[LocaleID] `getLanguage` not implemented, use default: en"),this._lastOperationStatus=iB.NO_ERROR,"en"},e.prototype.getRegion=function(){return console.warn("[LocaleID] `getRegion` not implemented, use default: UK"),this._lastOperationStatus=iB.NO_ERROR,"UK"},e.prototype.getScript=function(){return console.warn("[LocaleID] `getScript` not implemented, use default: ''"),this._lastOperationStatus=iB.USING_DEFAULT_WARNING,""},e.prototype.getVariant=function(){return console.warn("[LocaleID] `getVariant` not implemented, use default: ''"),this._lastOperationStatus=iB.USING_DEFAULT_WARNING,""},e.prototype.isRightToLeft=function(){return console.warn("[LocaleID] `isRightToLeft` not implemented, use default: true"),!0},e.prototype.getKeysAndValues=function(){return console.warn("[LocaleID] `isRightToLeft` not implemented, use default: null"),this._lastOperationStatus=iB.USING_DEFAULT_WARNING,null},e}(B_),oB=function(t){function e(e,n,i,r,o,a,s){void 0===n&&(n=!1),void 0===i&&(i=!1),void 0===r&&(r=0),void 0===o&&(o=0),void 0===a&&(a=0),void 0===s&&(s=0);var u=t.call(this,e,n,i)||this;return u.timestamp=+r,u.accelerationX=+o,u.accelerationY=+a,u.accelerationZ=+s,u}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.UPDATE="update",e}(kO),aB=function(t){function e(e,n,i,r){void 0===n&&(n=!1),void 0===i&&(i=!1),void 0===r&&(r=!1);var o=t.call(this,e,n,i)||this;return o.activating=!!r,o}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.ACTIVITY="activity",e}(kO),sB=function(t){function e(e,n,i,r,o){void 0===n&&(n=!1),void 0===i&&(i=!1),void 0===r&&(r=""),void 0===o&&(o=null);var a=t.call(this,e,n,i,r)||this;return a.$Bgerror=o,a}return Zg(e,t),Object.defineProperty(e.prototype,"error",{get:function(){return this.$Bgerror},enumerable:!1,configurable:!0}),e.prototype.clone=function(){return new e(this._type,this._bubbles,this._cancelable,this._text,this.$Bgerror)},e.prototype.toString=function(){return this.formatToString("AsyncErrorEvent","type","bubbles","cancelable","eventPhase","text","error")},e.ASYNC_ERROR="asyncError",e.classInitializer=null,e}(CM),uB=function(t){function e(e,n,i,r,o){void 0===n&&(n=!1),void 0===i&&(i=!1),void 0===r&&(r=null),void 0===o&&(o=null);var a=t.call(this,e,n,i)||this;return a.mouseTarget=r,a.contextMenuOwner=o,a}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.MENU_ITEM_SELECT="menuItemSelect",e.MENU_SELECT="menuSelect",e}(kO),lB=function(t){function e(e,n,i,r){return void 0===n&&(n=!1),void 0===i&&(i=!1),void 0===r&&(r=""),t.call(this,e,n,i,r)||this}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.DATA="data",e.UPLOAD_COMPLETE_DATA="uploadCompleteData",e}(bM),cB=function(t){function e(){return t.call(this)||this}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.CAPTURING_PHASE=1,e.AT_TARGET=2,e.BUBBLING_PHASE=3,e}(B_),hB=function(t){function e(e,n,i,r,o){void 0===n&&(n=!1),void 0===i&&(i=!1),void 0===r&&(r=!1),void 0===o&&(o=!1);var a=t.call(this,e,n,i)||this;return a.fullScreen=!!r,a.interactive=!!o,a}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.FULL_SCREEN="fullScreen",e.FULL_SCREEN_INTERACTIVE_ACCEPTED="fullScreenInteractiveAccepted",e}(aB),pB=function(t){function e(e,n,i,r){void 0===n&&(n=!1),void 0===i&&(i=!1),void 0===r&&(r=null);var o=t.call(this,e,n,i)||this;return o.device=r,o}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.DEVICE_ADDED="deviceAdded",e.DEVICE_REMOVED="deviceRemoved",e}(kO),dB=function(t){function e(e,n,i,r,o,a,s,u,l,c,h){return void 0===n&&(n=!1),void 0===i&&(i=!1),t.call(this,e,n,i)||this}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.UPDATE="update",e}(kO),fB=function(t){function e(e,n,i,r,o,a,s,u,l){void 0===n&&(n=!0),void 0===i&&(i=!1),void 0===r&&(r=null),void 0===o&&(o=0),void 0===a&&(a=0),void 0===s&&(s=!1),void 0===u&&(u=!1),void 0===l&&(l=!1);var c=t.call(this,e,n,i)||this;return c._phase=us(r),c._localX=+o,c._localY=+a,c._ctrlKey=!!s,c._altKey=!!u,c._shiftKey=!!l,c}return Zg(e,t),Object.defineProperty(e.prototype,"localX",{get:function(){return this._localX},set:function(t){this._localX=+t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"localY",{get:function(){return this._localY},set:function(t){this._localY=+t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stageX",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stageY",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ctrlKey",{get:function(){return this._ctrlKey},set:function(t){this._ctrlKey=!!t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"altKey",{get:function(){return this._altKey},set:function(t){this._altKey=!!t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"shiftKey",{get:function(){return this._shiftKey},set:function(t){this._shiftKey=!!t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"phase",{get:function(){return this._phase},set:function(t){this._phase=us(t)},enumerable:!1,configurable:!0}),e.prototype.updateAfterEvent=function(){},e.prototype.NativeCtor=function(t,e,n,i,r,o){this._phase=us(t),this._localX=+e,this._localY=+n,this._ctrlKey=!!i,this._altKey=!!r,this._shiftKey=!!o},e.prototype.clone=function(){return new e(this.type,this.bubbles,this.cancelable,this.phase,this.localX,this.localY,this.ctrlKey,this.altKey,this.shiftKey)},e.prototype.toString=function(){return this.formatToString("GestureEvent","type","bubbles","cancelable","eventPhase","localX","localY","ctrlKey","altKey","shiftKey")},e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.GESTURE_TWO_FINGER_TAP="gestureTwoFingerTap",e}(kO),gB=function(t){function e(){return t.call(this)||this}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.BEGIN="begin",e.UPDATE="update",e.END="end",e.ALL="all",e}(B_),_B=function(t){function e(e,n,i,r,o){void 0===n&&(n=!1),void 0===i&&(i=!1),void 0===r&&(r=0),void 0===o&&(o=!1);var a=t.call(this,e,n,i)||this;return a._status=r,a._redirected=o,a._responseURL="",a._responseHeaders=null,a}return Zg(e,t),e.prototype._setStatus=function(t){this._status=t},Object.defineProperty(e.prototype,"status",{get:function(){return this._status},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"redirected",{get:function(){return this._redirected},set:function(t){this._redirected=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"responseURL",{get:function(){return this._responseURL},set:function(t){this._responseURL=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"responseHeaders",{get:function(){return this._responseHeaders},set:function(t){this._responseHeaders=t},enumerable:!1,configurable:!0}),e.prototype.clone=function(){return new e(this.type,this.bubbles,this.cancelable,this._status,this._redirected)},e.prototype.toString=function(){return this.formatToString("IOErrorEvent","type","bubbles","cancelable","text","errorID")},e.classInitializer=null,e.HTTP_RESPONSE_STATUS="httpResponseStatus",e.HTTP_STATUS="httpStatus",e}(kO),mB=function(t){function e(e,n,i,r,o){void 0===n&&(n=!1),void 0===i&&(i=!1),void 0===r&&(r=""),void 0===o&&(o=null);var a=t.call(this,e,n,i,r)||this;return a.imeClient=o,a}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.IME_COMPOSITION="imeComposition",e.IME_START_COMPOSITION="imeStartComposition",e}(bM),yB=function(t){function e(e,n,i,r,o){void 0===n&&(n=!1),void 0===i&&(i=!1),void 0===r&&(r=0),void 0===o&&(o=null);var a=t.call(this,e,n,i)||this;return a.timestamp=+r,a.info=o,a}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.MEDIA_TYPE_DATA="mediaTypeData",e}(kO),AB=function(t){function e(e,n,i,r){void 0===n&&(n=!1),void 0===i&&(i=!1),void 0===r&&(r=null);var o=t.call(this,e,n,i)||this;return o._info=r,o}return Zg(e,t),Object.defineProperty(e.prototype,"info",{get:function(){return this._info},set:function(t){this._info=t},enumerable:!1,configurable:!0}),e.prototype.clone=function(){return new e(this.type,this.bubbles,this.cancelable,this.info)},e.prototype.toString=function(){return this.formatToString("NetStatusEvent","type","bubbles","cancelable","eventPhase","info")},e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.NET_STATUS="netStatus",e}(kO),vB=function(t){function e(e,n,i,r,o){void 0===n&&(n=!1),void 0===i&&(i=!1),void 0===r&&(r=0),void 0===o&&(o=0);var a=t.call(this,e,n,i)||this;return a.bytesPending=+r,a.bytesTotal=+o,a}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.OUTPUT_PROGRESS="outputProgress",e}(kO),bB=function(t){function e(e,n,i,r,o,a,s,u,l,c,h){void 0===n&&(n=!0),void 0===i&&(i=!1),void 0===r&&(r=null),void 0===o&&(o=0),void 0===a&&(a=0),void 0===s&&(s=0),void 0===u&&(u=0),void 0===l&&(l=!1),void 0===c&&(c=!1),void 0===h&&(h=!1);var p=t.call(this,e,n,i,r,o,a,l,c,h)||this;return p.tapLocalX=+s,p.tapLocalY=+u,p}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.GESTURE_PRESS_AND_TAP="gesturePressAndTap",e}(fB),CB=function(t){function e(e,n,i,r,o){return void 0===n&&(n=!1),void 0===i&&(i=!1),t.call(this,e,n,i)||this}return Zg(e,t),Object.defineProperty(e.prototype,"data",{get:function(){return console.log("data not implemented yet in flash/SampleDataEvent"),null},set:function(t){console.log("data not implemented yet in flash/SampleDataEvent")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"position",{get:function(){return console.log("position not implemented yet in flash/SampleDataEvent"),0},set:function(t){console.log("position not implemented yet in flash/SampleDataEvent")},enumerable:!1,configurable:!0}),e.prototype.clone=function(){return console.log("clone not implemented yet in flash/SampleDataEvent"),null},e.prototype.toString=function(){return console.log("toString not implemented yet in flash/SampleDataEvent"),""},e.SAMPLE_DATA="sampleData",e}(kO),xB=function(t){function e(e,n,i,r,o,a){return void 0===n&&(n=!1),void 0===i&&(i=!1),t.call(this,e,n,i)||this}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.COMPLETE="complete",e}(kO),IB=function(t){function e(e,n,i,r,o){return t.call(this,e,n,i)||this}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.SOFT_KEYBOARD_ACTIVATE="softKeyboardActivate",e.SOFT_KEYBOARD_DEACTIVATE="softKeyboardDeactivate",e.SOFT_KEYBOARD_ACTIVATING="softKeyboardActivating",e}(kO),EB=function(t){function e(){return t.call(this)||this}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.CONTENT_TRIGGERED="contentTriggered",e.USER_TRIGGERED="userTriggered",e}(B_),wB=function(t){function e(e,n,i,r){void 0===n&&(n=!1),void 0===i&&(i=!1),void 0===r&&(r=null);var o=t.call(this,e,n,i)||this;return o.availability=us(r),o}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.STAGE_VIDEO_AVAILABILITY="stageVideoAvailability",e}(kO),SB=function(t){function e(e,n,i,r,o){void 0===n&&(n=!1),void 0===i&&(i=!1),void 0===r&&(r=null),void 0===o&&(o=null);var a=t.call(this,e,n,i)||this;return a.status=us(r),a.colorSpace=us(o),a}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.RENDER_STATE="renderState",e.RENDER_STATUS_UNAVAILABLE="unavailable",e.RENDER_STATUS_SOFTWARE="software",e.RENDER_STATUS_ACCELERATED="accelerated",e}(kO),DB=function(t){function e(e,n,i,r,o){void 0===n&&(n=!1),void 0===i&&(i=!1),void 0===r&&(r=""),void 0===o&&(o="");var a=t.call(this,e,n,i)||this;return a._code=a_(r),a._level=a_(o),a}return Zg(e,t),Object.defineProperty(e.prototype,"level",{get:function(){return this._level},set:function(t){this._level=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"code",{get:function(){return this._code},set:function(t){this._code=t},enumerable:!1,configurable:!0}),e.prototype.clone=function(){return new e(this._type,this._bubbles,this._cancelable,this._code,this._level)},e.prototype.toString=function(){return this.formatToString("StatusEvent","type","bubbles","cancelable","eventPhase","code","level")},e.classInitializer=null,e.STATUS="status",e}(kO),TB=function(t){function e(e,n,i,r){void 0===n&&(n=!1),void 0===i&&(i=!1),void 0===r&&(r=null);var o=t.call(this,e,n,i)||this;return o.changeList=r,o}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.SYNC="sync",e}(kO),PB=function(t){function e(e,n,i,r,o){void 0===n&&(n=!1),void 0===i&&(i=!1),void 0===r&&(r=null),void 0===o&&(o=0);var a=t.call(this,e,n,i)||this;return a.state=us(r),a.targetFrameRate=+o,a}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.THROTTLE="throttle",e}(kO),OB=function(t){function e(){return t.call(this)||this}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.THROTTLE="throttle",e.PAUSE="pause",e.RESUME="resume",e}(B_),MB=function(t){function e(e,n,i){return t.call(this,e,n,i)||this}return Zg(e,t),e.prototype.clone=function(){return new this.sec.flash.events.TimerEvent(this.type,this.bubbles,this.cancelable)},e.prototype.toString=function(){return this.formatToString("TimerEvent","type","bubbles","cancelable","eventPhase")},e.prototype.updateAfterEvent=function(){this.sec.player.requestRender()},e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.TIMER="timer",e.TIMER_COMPLETE="timerComplete",e}(kO),BB=function(t){function e(e,n,i,r,o,a,s,u,l,c,h,p,d,f){return void 0===n&&(n=!0),void 0===i&&(i=!1),t.call(this,e,n,i)||this}return Zg(e,t),Object.defineProperty(e.prototype,"altKey",{get:function(){return!1},set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ctrlKey",{get:function(){return!1},set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isPrimaryTouchPoint",{get:function(){return!1},set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isRelatedObjectInaccessible",{get:function(){return!1},set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"localX",{get:function(){return 0},set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"localY",{get:function(){return 0},set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pressure",{get:function(){return 0},set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"relatedObject",{get:function(){return null},set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"shiftKey",{get:function(){return!1},set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sizeX",{get:function(){return 0},set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sizeY",{get:function(){return 0},set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stageX",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stageY",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"touchPointID",{get:function(){return 0},set:function(t){},enumerable:!1,configurable:!0}),e.prototype.clone=function(){return null},e.prototype.toString=function(){return""},e.prototype.updateAfterEvent=function(){},e.TOUCH_BEGIN="touchBegin",e.TOUCH_END="touchEnd",e.TOUCH_MOVE="touchMove",e.TOUCH_OUT="touchOut",e.TOUCH_OVER="touchOver",e.TOUCH_ROLL_OUT="touchRollOut",e.TOUCH_ROLL_OVER="touchRollOver",e.TOUCH_TAP="touchTap",e}(kO),NB=function(t){function e(e,n,i,r,o,a,s,u,l,c,h,p,d,f){return void 0===n&&(n=!0),void 0===i&&(i=!1),void 0===r&&(r=null),void 0===o&&(o=0),void 0===a&&(a=0),void 0===p&&(p=!1),void 0===d&&(d=!1),void 0===f&&(f=!1),t.call(this,e,n,i,r,o,a,p,d,f)||this}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.GESTURE_ZOOM="gestureZoom",e.GESTURE_PAN="gesturePan",e.GESTURE_ROTATE="gestureRotate",e.GESTURE_SWIPE="gestureSwipe",e}(fB),LB=function(t){function e(e,n,i,r){return void 0===e&&(e="uncaughtError"),void 0===n&&(n=!0),void 0===i&&(i=!0),void 0===r&&(r=null),t.call(this,e,n,i,r)||this}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.UNCAUGHT_ERROR="uncaughtError",e}(CM),RB=function(t){function e(e,n,i,r){void 0===n&&(n=!1),void 0===i&&(i=!1),void 0===r&&(r=null);var o=t.call(this,e,n,i)||this;return o.status=a_(r),o}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.RENDER_STATE="renderState",e.RENDER_STATUS_UNAVAILABLE="unavailable",e.RENDER_STATUS_SOFTWARE="software",e.RENDER_STATUS_ACCELERATED="accelerated",e}(kO),FB=function(t){function e(){return t.call(this)||this}return Zg(e,t),e.ensureInitialized=function(){this.available||this.sec.throwError("Error",w_.ExternalInterfaceNotAvailableError),this.initialized||(this.initialized=!0,Jg.initJS(this._callIn))},e.call=function(t){this.ensureInitialized();var e="";if(arguments.length>1){for(var n=[],i=1;i<arguments.length;i++)n.push(this.convertToJSString(arguments[i]));e=n.join(",")}var r=this.$BgmarshallExceptions?'"<exception>" + e + "</exception>";':'"<undefined/>";',o="try {"+Jg.interfaceID+".__flash__toXML("+t+"("+e+"));} catch (e) {"+r+"}",a=this._evalJS(o);return null==a?null:this.convertFromXML(this.convertToXML(a))},e.addCallback=function(t,e){var n=this;if(this.ensureInitialized(),e){var i=this;this._addCallback(t,(function(t,r){var o,a=!0;if(void 0!==r)if(Array.isArray(r)){for(var s=[],u=0;u<r.length;u++){var l=r[u];"object"==typeof l&&l?Array.isArray(l)?s.push(i.sec.createArray(l)):s.push(i.sec.createObjectFromJS(l,!0)):s.push(l)}r=s}else r=[r];else{var c=n.convertToXML(t),h=c.attribute("returntype");if(a=h&&"javascript"==h._value,r=[],c._children)for(u=0;u<c._children.length;u++){var p=c._children[u];r.push(n.convertFromXML(p))}}try{o=e.axApply(null,r)}catch(t){if(!n.$BgmarshallExceptions)throw t;o=t}return a?i.convertToJSString(o):i.convertToXMLString(o)}))}else this._removeCallback(t)},Object.defineProperty(e,"available",{get:function(){return Jg.enabled},enumerable:!1,configurable:!0}),Object.defineProperty(e,"objectID",{get:function(){return Jg.getId()},enumerable:!1,configurable:!0}),e._addCallback=function(t,n){Jg.registerCallback(t),e.registeredCallbacks[t]=n},e._removeCallback=function(t){Jg.unregisterCallback(t),delete e.registeredCallbacks[t]},e._evalJS=function(t){return t=a_(t),Jg.eval(t)},e._callIn=function(t,n){var i=e.registeredCallbacks[t];if(i)return i(t,n)},e._callOut=function(t){return t=a_(t),Jg.call(t)},e.convertToXML=function(t){var e=this.sec.system.getClass(u_.FromSimpleName("XML")),n=e.ignoreWhitespace;e.ignoreWhitespace=!1;var i=e.Create(t);return e.ignoreWhitespace=n,i},e.convertToXMLString=function(t){switch(typeof t){case"boolean":return t?"<true/>":"<false/>";case"number":return"<number>"+t+"</number>";case"string":return"<string>"+t.split("&").join("&").split("<").join("<").split(">").join(">")+"</string>";case"object":if(null===t)return"<null/>";if(this.sec.AXDate.axIsInstanceOf(t))return"<date>"+t.time+"</date>";if(this.sec.AXError.axIsInstanceOf(t))return this.$BgmarshallExceptions?"<exception>"+t+"</exception>":"<null/>";var e=[];if(t.hasOwnProperty("$Bglength")){for(var n=t.$Bglength,i=0;i<n;i++){var r=this.convertToXMLString(t.axGetNumericProperty(i));e.push('<property id="'+i+'">'+r+"</property>")}return"<array>"+e.join("")+"</array>"}var o=t.axGetEnumerableKeys();for(i=0;i<o.length;i++){var a=o[i];r=this.convertToXMLString(t.axGetPublicProperty(a));e.push('<property id="'+a+'">'+r+"</property>")}return"<object>"+e.join("")+"</object>";default:return"<undefined/>"}},e.convertFromXML=function(t){switch(t._name.name){case"true":return!0;case"false":return!1;case"number":return Number(String(t.children()));case"string":return String(t.children());case"null":return null;case"date":return this.sec.AXDate.axConstruct([Number(String(t.children()))]);case"exception":if(this.$BgmarshallExceptions)throw this.sec.AXError.axConstruct([String(t.children())]);return;case"array":case"object":for(var e="object"===t._name.name?this.sec.createObject():this.sec.createArrayUnsafe([]),n=0;n<t._children.length;n++){var i=t._children[n];e.axSetPublicProperty(kB(i),this.convertFromXML(i._children[0]))}return e;case"class":var r=u_.FromFQNString(String(t.children()),0);return this.sec.application.getClass(r);default:return}},e.convertToJSString=function(t){if("string"==typeof t)return'"'+t.split("\r").join("\\r").split("\n").join("\\n").split('"').join('\\"')+'"';if(this.sec.AXArray.axIsInstanceOf(t)){for(var e=[],n=t.value,i=0;i<n.length;i++)e.push(this.convertToJSString(n[i]));return"["+e.join(",")+"]"}if(this.sec.AXDate.axIsInstanceOf(t))return"new Date("+t.value+")";if(this.$BgmarshallExceptions&&this.sec.AXError.axIsInstanceOf(t))return'throw "'+t+'"';if("object"==typeof t&&null!==t){e=[];var r=t.axGetEnumerableKeys();for(i=0;i<r.length;i++){var o=r[i];e.push(o+":"+this.convertToJSString(t.axGetPublicProperty(o)))}return"({"+e.join(",")+"})"}return String(t)},e.classInitializer=null,e.initialized=!1,e.registeredCallbacks=Object.create(null),e}(B_);function kB(t){for(var e=0;e<t._attributes.length;e++){var n=t._attributes[e];if("id"===n._name.name)return n._value}}var UB=function(t){function e(e,n,i,r,o,a,s,u,l){void 0===e&&(e=null),void 0===n&&(n=null),void 0===i&&(i=0),void 0===r&&(r=0),void 0===o&&(o=0),void 0===a&&(a=0),void 0===s&&(s="wrap"),void 0===u&&(u=0),void 0===l&&(l=0);var c=t.call(this)||this;return c.mapBitmap=e,c.mapPoint=n,c.componentX=i,c.componentY=r,c.scaleX=o,c.scaleY=a,c.mode=s,c.color=u,c.alpha=l,c}return Zg(e,t),e.FromUntyped=function(t,e){return new e.flash.filters.DisplacementMapFilter(t.mapBitmap,t.mapPoint,t.componentX,t.componentY,t.scaleX,t.scaleY,t.mode,t.color,t.alpha)},Object.defineProperty(e.prototype,"mapBitmap",{get:function(){return this._mapBitmap},set:function(t){this._mapBitmap=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mapPoint",{get:function(){return this._mapPoint},set:function(t){this._mapPoint=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"componentX",{get:function(){return this._componentX},set:function(t){this._componentX=t>>>0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"componentY",{get:function(){return this._componentY},set:function(t){this._componentY=t>>>0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleX",{get:function(){return this._scaleX},set:function(t){this._scaleX=+t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleY",{get:function(){return this._scaleY},set:function(t){this._scaleY=+t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mode",{get:function(){return this._mode},set:function(t){this._mode=a_(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"color",{get:function(){return this._color},set:function(t){this._color=t>>>0&16777215},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"alpha",{get:function(){return this._alpha},set:function(t){this._alpha=+t},enumerable:!1,configurable:!0}),e.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)},e.prototype.toAwayObject=function(){return{filterName:"displacement",mapBitmap:this._mapBitmap.adaptee,mapPoint:this._mapPoint.adaptee,componentX:this._componentX,componentY:this._componentY,scaleX:this._scaleX,scaleY:this._scaleY,mode:this._mode,color:this._color,alpha:this._alpha}},e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e}(qO),jB=function(t){function e(e){return t.call(this)||this}return Zg(e,t),Object.defineProperty(e.prototype,"actualLocaleIDName",{get:function(){return Tt.throwPIR("playerglobals/globalization/NumberFormatter","get actualLocaleIDName",""),""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"decimalSeparator",{get:function(){return Tt.throwPIR("playerglobals/globalization/NumberFormatter","get decimalSeparator",""),""},set:function(t){Tt.throwPIR("playerglobals/globalization/NumberFormatter","set decimalSeparator","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"digitsType",{get:function(){return Tt.throwPIR("playerglobals/globalization/NumberFormatter","get digitsType",""),0},set:function(t){Tt.throwPIR("playerglobals/globalization/NumberFormatter","set digitsType","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fractionalDigits",{get:function(){return Tt.throwPIR("playerglobals/globalization/NumberFormatter","get fractionalDigits",""),0},set:function(t){Tt.throwPIR("playerglobals/globalization/NumberFormatter","set fractionalDigits","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"groupingPattern",{get:function(){return Tt.throwPIR("playerglobals/globalization/NumberFormatter","get groupingPattern",""),""},set:function(t){Tt.throwPIR("playerglobals/globalization/NumberFormatter","set groupingPattern","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"groupingSeparator",{get:function(){return Tt.throwPIR("playerglobals/globalization/NumberFormatter","get groupingSeparator",""),""},set:function(t){Tt.throwPIR("playerglobals/globalization/NumberFormatter","set groupingSeparator","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastOperationStatus",{get:function(){return Tt.throwPIR("playerglobals/globalization/NumberFormatter","get lastOperationStatus",""),""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"leadingZero",{get:function(){return Tt.throwPIR("playerglobals/globalization/NumberFormatter","get leadingZero",""),!1},set:function(t){Tt.throwPIR("playerglobals/globalization/NumberFormatter","set leadingZero","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"negativeNumberFormat",{get:function(){return Tt.throwPIR("playerglobals/globalization/NumberFormatter","get negativeNumberFormat",""),0},set:function(t){Tt.throwPIR("playerglobals/globalization/NumberFormatter","set negativeNumberFormat","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"negativeSymbol",{get:function(){return Tt.throwPIR("playerglobals/globalization/NumberFormatter","get negativeSymbol",""),""},set:function(t){Tt.throwPIR("playerglobals/globalization/NumberFormatter","set negativeSymbol","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"requestedLocaleIDName",{get:function(){return Tt.throwPIR("playerglobals/globalization/NumberFormatter","get requestedLocaleIDName",""),""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"trailingZeros",{get:function(){return Tt.throwPIR("playerglobals/globalization/NumberFormatter","get trailingZeros",""),!1},set:function(t){Tt.throwPIR("playerglobals/globalization/NumberFormatter","set trailingZeros","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"useGrouping",{get:function(){return Tt.throwPIR("playerglobals/globalization/NumberFormatter","get useGrouping",""),!1},set:function(t){Tt.throwPIR("playerglobals/globalization/NumberFormatter","set useGrouping","")},enumerable:!1,configurable:!0}),e.prototype.formatInt=function(t){return Tt.throwPIR("playerglobals/globalization/NumberFormatter","formatInt",""),t.toString()},e.prototype.formatNumber=function(t){return Tt.throwPIR("playerglobals/globalization/NumberFormatter","formatNumber",""),t.toString()},e.prototype.formatUint=function(t){return console.log("formatUint not implemented yet in flash/NumberFormatter"),""},e.getAvailableLocaleIDNames=function(){return console.log("getAvailableLocaleIDNames not implemented yet in flash/NumberFormatter"),[]},e.prototype.parse=function(t){return console.log("parse not implemented yet in flash/NumberFormatter"),null},e.prototype.parseNumber=function(t){return console.log("parseNumber not implemented yet in flash/NumberFormatter"),0},e.prototype.ctor=function(t){console.log("ctor not implemented yet in flash/NumberFormatter")},e.forceNativeConstructor=!0,e.forceNativeMethods=!0,e}(B_),VB=function(t){function e(e,n){void 0===e&&(e=1),void 0===n&&(n=0);var i=t.call(this)||this;return i._vol=1,i._pan=0,i._vol=e,i._pan=n,i}return Zg(e,t),e.prototype.axCallPublicProperty=function(t,e){return console.log("axCallPublicProperty not implemented yet in flash/SoundTransform"),null},e.prototype.axGetPublicProperty=function(t){return console.log("axGetPublicProperty not implemented yet in flash/SoundTransform"),null},e.prototype.axSetPublicProperty=function(t,e){return console.log("axSetPublicProperty not implemented yet in flash/SoundTransform"),null},e.prototype.axHasPublicProperty=function(t){return console.log("axHasPublicProperty not implemented yet in flash/SoundTransform"),null},e.prototype.axDeletePublicProperty=function(t){return console.log("axDeletePublicProperty not implemented yet in flash/SoundTransform"),null},e.prototype.axGetEnumerableKeys=function(){return console.log("axGetEnumerableKeys not implemented yet in flash/SoundTransform"),[]},Object.defineProperty(e.prototype,"leftToLeft",{get:function(){return console.log("leftToLeft not implemented yet in flash/SoundTransform"),0},set:function(t){console.log("leftToLeft not implemented yet in flash/SoundTransform")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"leftToRight",{get:function(){return console.log("leftToRight not implemented yet in flash/SoundTransform"),0},set:function(t){console.log("leftToRight not implemented yet in flash/SoundTransform")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pan",{get:function(){return this._pan},set:function(t){this._pan=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rightToLeft",{get:function(){return console.log("rightToLeft not implemented yet in flash/SoundTransform"),0},set:function(t){console.log("rightToLeft not implemented yet in flash/SoundTransform")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rightToRight",{get:function(){return console.log("rightToRight not implemented yet in flash/SoundTransform"),0},set:function(t){console.log("rightToRight not implemented yet in flash/SoundTransform")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"volume",{get:function(){return this._vol},set:function(t){this._vol=t>1?1:t<0?0:t},enumerable:!1,configurable:!0}),e}(B_),QB=function(t){function e(){return t.call(this)||this}return Zg(e,t),Object.defineProperty(e,"bufferTime",{get:function(){return e._bufferTime},set:function(t){e._bufferTime=0|t},enumerable:!1,configurable:!0}),Object.defineProperty(e,"soundTransform",{get:function(){return xd(e._soundTransform)?new VB:new VB(e._soundTransform.volume,e._soundTransform.pan)},set:function(t){e._soundTransform=xd(t)?new VB:t,e._updateAllSoundSources()},enumerable:!1,configurable:!0}),Object.defineProperty(e,"audioPlaybackMode",{get:function(){},set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e,"useSpeakerphoneForVoice",{get:function(){},set:function(t){},enumerable:!1,configurable:!0}),e.stopAll=function(){e._registeredSoundSources.forEach((function(t){return t.stopSound()})),e._registeredSoundSources=[],Rl.stopAllSounds()},e.computeSpectrum=function(t,e,n){for(var i=new Float32Array(1024),r=0;r<1024;r++)i[r]=Math.random();t.writeRawBytes(i),t.position=0},e.areSoundsInaccessible=function(){},e._getMasterVolume=function(){return e._masterVolume},e._setMasterVolume=function(t){t=+t,e._masterVolume=t,e._updateAllSoundSources()},e._registerSoundSource=function(t){e._registeredSoundSources.push(t)},e._unregisterSoundSource=function(t){var n=e._registeredSoundSources.indexOf(t);n>=0&&e._registeredSoundSources.splice(n,1)},e._updateAllSoundSources=function(){var t=e._getMasterVolume();e._soundTransform&&(t*=e._soundTransform.volume),S.setVolume(t,-1)},e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e._masterVolume=1,e._registeredSoundSources=[],e._bufferTime=0,e}(B_),GB=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zg(e,t),e.prototype.axCallPublicProperty=function(t,e){return null},e.prototype.axGetPublicProperty=function(t){return null},e.prototype.axSetPublicProperty=function(t,e){return null},e.prototype.axHasPublicProperty=function(t){return null},e.prototype.axDeletePublicProperty=function(t){return null},e.prototype.axGetEnumerableKeys=function(){return[]},e.prototype.init=function(t,e){this._channel=t,this._channel&&(this._channel.addEventListener(y.COMPLETE,this.soundCompleteInternal.bind(this)),this.soundTransform=e,QB._registerSoundSource(this))},Object.defineProperty(e.prototype,"leftPeak",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"position",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rightPeak",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"soundTransform",{get:function(){return this._soundTransform||(this._soundTransform=new this.sec.flash.media.SoundTransform),this._soundTransform},set:function(t){this._channel&&(this._channel.volume=t.volume,this._channel.pan=t.pan),this._soundTransform=t},enumerable:!1,configurable:!0}),e.prototype.soundCompleteInternal=function(t){this._stopInternally();var e=new this.sec.flash.events.Event(kO.SOUND_COMPLETE);this.dispatchEvent(e)},e.prototype._stopInternally=function(){QB._unregisterSoundSource(this)},e.prototype.stop=function(){this._channel&&(this._stopInternally(),this._channel.stop())},e.prototype.stopSound=function(){this.stop()},e.prototype.updateSoundLevels=function(t){this._channel&&(this._soundTransform.volume=t,this._channel.volume=t)},e}(GO),zB=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zg(e,t),Object.defineProperty(e.prototype,"description",{get:function(){return this._description},set:function(t){this._description=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"extension",{get:function(){return this._extension},set:function(t){this._extension=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"macType",{get:function(){return this._macType},set:function(t){this._macType=t},enumerable:!1,configurable:!0}),e}(B_),HB=Nt.instance.addStore("playerglobal",{ENABLE_FILE_PICKER:!0}),XB="showSaveFilePicker"in self&&HB.ENABLE_FILE_PICKER;XB&&console.debug("[FileReference] `showSaveFilePicker` used for save()");var YB,qB=function(t){function e(){return t.call(this)||this}return Zg(e,t),Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(t){this._size=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){return this._data},set:function(t){this._data=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"extension",{get:function(){return this._extension},set:function(t){this._extension=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"permissionStatus",{get:function(){return this._permissionStatus},set:function(t){this._permissionStatus=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this._type},set:function(t){this._type=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"creator",{get:function(){return this._creator},set:function(t){this._creator=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this._name},set:function(t){this._name=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"modificationDate",{get:function(){return this._modificationDate},set:function(t){this._modificationDate=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"creationDate",{get:function(){return this._creationDate},set:function(t){this._creationDate=t},enumerable:!1,configurable:!0}),e.prototype.browse=function(t){var n,i=this,r=e.knownMimeTypes,o=window.showOpenFilePicker;if(!o)return console.warn("[flash/net/FileReference] FileSystem API not supported!"),!1;for(var a=[],s=0;s<t.length;s++){var u=t[s],l=u.extension.slice(u.extension.lastIndexOf(".")),c=l in r?r[l].mime:"application/unknown";a.push({description:u.description,accept:(n={},n[c]=l,n)})}return o({types:a}).then((function(t){return i._sendSelectEvent(),t[0].getFile()})).then((function(t){i.modificationDate=new Date(t.lastModified),i.name=t.name,i.size=t.size,i.type=t.type;var e=t.name.lastIndexOf(".");return i.extension=e>=0?t.name.slice(e+1):null,t.arrayBuffer()})).then((function(t){i.data=new I(t.byteLength),i.data.setArrayBuffer(t),i._sendCompleteEvent()})).catch((function(t){20!==t.code||"The user aborted a request."!==t.message?console.warn("[flash/net/FileReference] FileSystem API Reject `showOpenFilePicker` request:",t):i._sendCancelEvent()})),!0},e.prototype.upload=function(t){return console.log("upload not implemented yet in flash/FileReference"),!0},e.prototype.load=function(){console.log("load not implemented yet in flash/FileReference")},e.prototype.save=function(t,e){void 0===e&&(e=null),this._useFileSystemSave(t,e)},e.prototype._useFileSystemSave=function(t,n){var i,r=this;void 0===n&&(n="");var o=e.knownMimeTypes,a="string"==typeof t,s=void 0!==t.getBytes,u=n.slice(n.lastIndexOf("."));if(!XB)return!1;var l=window.showSaveFilePicker;if(!l)return console.warn("[flash/net/FileReference] FileSystem API not supported!"),!1;if(a||s){var c=[];if(u in o){var h=o[u].mime;c[0]={description:o[u].description,accept:(i={},i[h]=u,i)}}else c[0]={description:"",accept:{"application/unknown":u}};l({suggestedName:n||"",types:c}).then((function(t){return r._sendSelectEvent(),t.createWritable()})).then((function(e){return e.write(s?t.getBytes():t).then((function(){return e.close()}))})).then((function(t){r._sendCompleteEvent()})).catch((function(t){20!==t.code||"The user aborted a request."!==t.message?console.warn("[flash/net/FileReference] FileSystem API Reject `showSaveFilePicker` request:",t):r._sendCancelEvent()}))}else console.warn("[FileReference] Save is only supported for String and ByteArray")},e.prototype._sendCancelEvent=function(){var t=new this.sec.flash.events.Event(kO.CANCEL);t.currentTarget=this,t.target=this,this.dispatchEvent(t)},e.prototype._sendCompleteEvent=function(){var t=new this.sec.flash.events.Event(kO.COMPLETE);t.currentTarget=this,t.target=this,this.dispatchEvent(t)},e.prototype._sendSelectEvent=function(){var t=new this.sec.flash.events.Event(kO.SELECT);t.currentTarget=this,t.target=this,this.dispatchEvent(t)},e.prototype.requestPermission=function(){console.log("upload not implemented yet in flash/FileReference")},e.prototype.download=function(t,e){return console.log("download not implemented yet in flash/FileReference"),!0},e.prototype.cancel=function(){console.log("cancel not implemented yet in flash/FileReference")},e.forceNativeMethods=!0,e.knownMimeTypes={".jpeg":{mime:"image/jpeg",description:"JPEG images"},".jpg":{mime:"image/jpeg",description:"JPEG images"},".txt":{mime:"text/plain",description:"Text documents"}},e}(GO),KB="AWAY",WB=function(){function t(){this._values={},this._realStorage=null}return t.prototype.getItem=function(t){return this._realStorage&&(this._values[t]=this._realStorage.getItem(t)),this._values[t]},t.prototype.setItem=function(t,e){this._realStorage&&this._realStorage.setItem(t,e),this._values[t]=e},t.prototype.removeItem=function(t){this._realStorage&&this._realStorage.removeItem(t),delete this._values[t]},t}();function JB(){if(!YB&&(YB=new WB,"undefined"!=typeof Storage))try{YB._realStorage=window.localStorage}catch(t){console.warn("[Shared Storage] ",t)}return YB}var $B=function(){function t(){}return t.decodedData=function(){if(!ZB)throw"Can't decode without security context";var t=JB(),e={},n={};for(var i in t._values){null!==t._values[i]?(e[i]=tN.tryDecodeData(t._values[i]).data,n[i]=ES(ZB,e[i],!0)):e[i]=n[i]=null}return this._lastDecodedData=n,this._lastRawData=e,n},t.encodeAndApplyData=function(){if(!this._lastRawData)throw"Need call decode before encode for detecting model";var t={};for(var e in this._lastRawData)void 0!==typeof this._lastDecodedData[e]?t[e]=IS(ZB,this._lastDecodedData[e],!0):t[e]=this._lastRawData[e];var n=JB();for(var e in t)null!==t[e]&&n.setItem(e,tN.tryEncodeData(t[e]));return t},t._lastRawData=null,t._lastDecodedData=null,t}();window._AWAY_DEBUG_STORAGE=$B,window.addEventListener("unload",(function(){tN.closeAll()})),window.addEventListener("blur",(function(){tN.closeAll()}));var ZB=void 0,tN=function(t){function e(){var e=t.call(this)||this;return e.awaySOVersion=1,e}return Zg(e,t),Object.defineProperty(e,"defaultObjectEncoding",{get:function(){},set:function(t){},enumerable:!1,configurable:!0}),e.deleteAll=function(t){},e.getDiskUsage=function(t){return 0},e.tryDecodeData=function(t){var e=1;t.indexOf(KB)>-1&&(e=+t[4],t=t.substring(6));var n=ld.decodeRestrictedBase64ToBytes(t),i=new I(n.length);return i.sec=this.sec||ZB,i.setArrayBuffer(n.buffer),{data:tD.read(i),version:e}},e.tryEncodeData=function(t){var e=new I;e.sec=this.sec||ZB,tD.write(e,t);var n=new Uint8Array(e.arraybytes,0,e.length);return ld.base64EncodeBytes(n)},e.getLocal=function(t,n,i){ZB=this.sec,t=a_(t);var r=((n=a_(n))||"")+"/"+t;if(e._sharedObjects[r])return e._sharedObjects[r];var o,a=JB().getItem(r),s=this._defaultObjectEncoding,u=3;if(a){try{var l=e.tryDecodeData(a);o=l.data,u=l.version}catch(t){}o&&"object"==typeof o||(o=this.sec.createObject())}else o=this.sec.createObject();var c=new this.sec.flash.net.SharedObject;return c._path=r,c._objectEncoding=s,c._data=o,c.awaySOVersion=u,e._sharedObjects[r]=c,c},e.getRemote=function(t,e,n,i){return new this.sec.flash.net.SharedObject},e.closeAll=function(){for(var t in e._sharedObjects)e._sharedObjects[t]&&e._sharedObjects[t].close()},e.prototype.flush=function(t){var n=!0;for(var i in this._data)if(this._data.hasOwnProperty(i)){n=!1;break}if(!n||JB().getItem(this._path)){ZB=this.sec;var r=KB+3..toFixed(0)+","+e.tryEncodeData(this._data);JB().setItem(this._path,r)}},Object.defineProperty(e.prototype,"data",{get:function(){return this._data},set:function(t){this._data=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"objectEncoding",{get:function(){},set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"client",{get:function(){},set:function(t){},enumerable:!1,configurable:!0}),e.prototype.setDirty=function(t){},e.prototype.connect=function(t,e){},e.prototype.send=function(){},e.prototype.close=function(){this.flush(),delete e._sharedObjects[this._path]},e.prototype.clear=function(){this._data=this.sec.createObject(),JB().removeItem(this._path),delete e._sharedObjects[this._path]},Object.defineProperty(e.prototype,"size",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fps",{set:function(t){},enumerable:!1,configurable:!0}),e.prototype.setProperty=function(t,e){},e._sharedObjects={},e._defaultObjectEncoding=eD.DEFAULT,e}(B_),eN=function(t){function e(){var e=t.call(this)||this;return e._dataIsNull=!0,e._adaptee=new pt,e._completeCallbackDelegate=function(t){return e.completeCallback(t)},e._progressCallbackDelegate=function(t){return e.progressCallback(t)},e._loadErrorDelegate=function(t){return e.loadErrorDelegate(t)},e.eventMapping[kO.COMPLETE]={adaptedType:K.LOAD_COMPLETE,addListener:e.initListener,removeListener:e.removeListener,callback:e._completeCallbackDelegate},e.eventMapping[DM.PROGRESS]={adaptedType:K.LOAD_PROGRESS,addListener:e.initListener,removeListener:e.removeListener,callback:e._progressCallbackDelegate},e.eventMapping[xM.IO_ERROR]={adaptedType:K.LOAD_ERROR,addListener:e.initListener,removeListener:e.removeListener,callback:e._loadErrorDelegate},Object.defineProperty(e,"$Bgdata",{get:e.getData.bind(e),set:e.setData.bind(e)}),e}return Zg(e,t),e.prototype.close=function(){console.log("not mimplemented: URLoader.close")},e.prototype.setData=function(t){this._dataIsNull=this._dataIsNull||null===t},e.prototype.getData=function(){if(this._dataIsNull)return null;var t=this._adaptee.data;switch(this.$BgdataFormat){case lt.VARIABLES:return new this.sec.flash.net.URLVariables(t);case lt.BINARY:return console.warn("[URLLoader] Binary not supported"),null;default:return t}},e.prototype.initListener=function(t,e){this._adaptee.addEventListener(t,e)},e.prototype.removeListener=function(t,e){this._adaptee.removeEventListener(t,e)},e.prototype.addEventListener=function(e,n){t.prototype.addEventListener.call(this,e,n)},e.prototype.loadErrorDelegate=function(t){this._dataIsNull=!1;var e=new this.sec.flash.events.IOErrorEvent(xM.IO_ERROR);e.currentTarget=this,this.dispatchEvent(e)},e.prototype.progressCallback=function(t){void 0===t&&(t=null),this._dataIsNull=!1;var e=new this.sec.flash.events.ProgressEvent(DM.PROGRESS,null,null,t.urlLoader.bytesLoaded,t.urlLoader.bytesTotal);e.currentTarget=this,this.dispatchEvent(e)},e.prototype.completeCallback=function(t){this._dataIsNull=!1;var e=new this.sec.flash.events.Event(kO.COMPLETE);e.currentTarget=this,e.target=this,this.dispatchEvent(e)},e.prototype.load=function(t){var n=t.url||"",i=kg(n,e.redirectRules);i?(console.log("[URL LOADER] Override loading url:",i.url),t.adaptee.url=i.url):console.log("[URL LOADER] start loading the url:",n),t.mapToJSData(),this._adaptee.load(t.adaptee)},e.redirectRules=[],e}(GO),nN=["send","connect","close","allowDomain","allowInsecureDomain","client","domain"];Object.freeze(nN);var iN=function(t,e){return console.warn("[NOT IMPLEMENTED] ".concat(t.constructor.name,"#").concat(e," yet!"))},rN=function(t){function e(){var e=t.call(this)||this;e._client=e,e._connectionName=null,e._allowedInsecureDomains=[],e._allowedSecureDomains=[];var n=new URL(document.baseURI);return e._domain=n.hostname,e._secure="https:"===n.protocol,e}return Zg(e,t),Object.defineProperty(e,"isSupported",{get:function(){return!0},enumerable:!1,configurable:!0}),e.prototype.close=function(){this._connectionName||this.sec.throwError("ArgumentError",w_.CloseNotConnectedError),this._connectionName=null,this._allowedInsecureDomains=[],this._allowedSecureDomains=[],iN(this,"close")},e.prototype.connect=function(t){iN(this,"connect")},e.prototype.send=function(t,e){iN(this,"send")},Object.defineProperty(e.prototype,"client",{get:function(){return this._client},set:function(t){this.sec.AXObject.axIsType(t)||this.sec.throwError("ArgumentError",w_.InvalidParamError),this._client=t},enumerable:!1,configurable:!0}),e.prototype.allowDomain=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._allowDomains(t,!0)},e.prototype.allowInsecureDomain=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._allowDomains(t,!0),this._allowDomains(t,!1)},e.prototype._allowDomains=function(t,e){iN(this,"_allowDomains")},e.prototype.handleMessage=function(t,e){var n,i=this._client;if(!i.axHasPublicProperty(t)||nN.indexOf(t)>-1)n=this.sec.createError("ReferenceError",w_.ReadSealedError,t,i.axClass.name.name);else{var r=i.axGetPublicProperty(t);if(!vm(r))return;var o=new iD(e).readObject();if(this.sec.AXArray.axIsType(o))try{r.apply(i,o.value)}catch(t){n=t}else n=this.sec.createError("TypeError",w_.CheckTypeFailedError,o,"Array")}if(n){var a=new CM("asyncError",!1,!1,"Error #2095: flash.net.LocalConnection was unable to invoke callback "+t+".",n.errorID);if(this.hasEventListener("asyncError"))try{this.dispatchEvent(a)}catch(t){console.warn("Exception encountered during asyncErrorEvent handling in LocalConnection sender.")}else console.warn("No handler for asyncError on LocalConnection sender, not sending event",a)}},Object.defineProperty(e.prototype,"domain",{get:function(){return this._domain},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isPerUser",{get:function(){return!0},set:function(t){},enumerable:!1,configurable:!0}),e.classInitializer=null,e}(GO),oN=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zg(e,t),Object.defineProperty(e,"currentDomain",{get:function(){return null},enumerable:!1,configurable:!0}),e}(B_),aN=function(t){function e(){return t.call(this)||this}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.FINGER="finger",e.STYLUS="stylus",e.NONE="none",e}(B_),sN="en",uN="PlugIn",lN=96,cN=!1,hN=function(t){function e(){return t.call(this)||this}return Zg(e,t),Object.defineProperty(e,"isEmbeddedInAcrobat",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(e,"hasEmbeddedVideo",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(e,"hasAudio",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(e,"avHardwareDisable",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(e,"hasAccessibility",{get:function(){return e._hasAccessibility},enumerable:!1,configurable:!0}),Object.defineProperty(e,"hasAudioEncoder",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(e,"hasMP3",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(e,"hasPrinting",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(e,"hasScreenBroadcast",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(e,"hasScreenPlayback",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(e,"hasStreamingAudio",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(e,"hasStreamingVideo",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(e,"hasVideoEncoder",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(e,"isDebugger",{get:function(){return cN},enumerable:!1,configurable:!0}),Object.defineProperty(e,"localFileReadDisable",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(e,"language",{get:function(){return e._language||sN},enumerable:!1,configurable:!0}),Object.defineProperty(e,"manufacturer",{get:function(){return e._manufacturer},enumerable:!1,configurable:!0}),Object.defineProperty(e,"os",{get:function(){if(null===e._os){var t=void 0,n=window.navigator.userAgent;if(n.indexOf("Macintosh")>0)if(-1===n.indexOf("Mac OS X "))t="Mac OS 10.6";else{var i=n.split("Mac OS X ")[1];t=i.substr(0,i.indexOf(";"))}else t=n.indexOf("Windows")>0?"Windows XP":n.indexOf("Linux")>0?"Linux":/(iPad|iPhone|iPod|Android)/.test(n)?"iPhone3,1":"Generic OS";e._os=t}return e._os},enumerable:!1,configurable:!0}),Object.defineProperty(e,"cpuArchitecture",{get:function(){return"x86"},enumerable:!1,configurable:!0}),Object.defineProperty(e,"playerType",{get:function(){return e._playerType||uN},enumerable:!1,configurable:!0}),Object.defineProperty(e,"serverString",{get:function(){var t=function(t){var e=Object.prototype.hasOwnProperty,n=[];for(var i in t)e.call(t,i)&&n.push([i,t[i]]);return n}({OS:e.os}).map((function(t){return t[0]+"="+encodeURIComponent(t[1])})).join("&");return t},enumerable:!1,configurable:!0}),Object.defineProperty(e,"version",{get:function(){return e._version},enumerable:!1,configurable:!0}),Object.defineProperty(e,"screenColor",{get:function(){return"color"},enumerable:!1,configurable:!0}),Object.defineProperty(e,"pixelAspectRatio",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(e,"screenDPI",{get:function(){return e._screenDPI||lN},enumerable:!1,configurable:!0}),Object.defineProperty(e,"screenResolutionX",{get:function(){return window.screen.width},enumerable:!1,configurable:!0}),Object.defineProperty(e,"screenResolutionY",{get:function(){return window.screen.height},enumerable:!1,configurable:!0}),Object.defineProperty(e,"touchscreenType",{get:function(){return aN.NONE},enumerable:!1,configurable:!0}),Object.defineProperty(e,"hasIME",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(e,"hasTLS",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(e,"maxLevelIDC",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(e,"supports32BitProcesses",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(e,"supports64BitProcesses",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(e,"_internal",{get:function(){},enumerable:!1,configurable:!0}),e.hasMultiChannelAudio=function(t){return!1},e.classInitializer=null,e._hasAccessibility=!1,e._language=null,e._manufacturer="Mozilla Research",e._os=null,e._playerType=null,e._version="SHUMWAY 10,0,0,0",e._screenDPI=0,e}(B_);function pN(t,e,n){e=a_(e),n=a_(n),console.log("FSCommand: "+e+"; "+n),"debugger"!==(e=e.toLowerCase())&&t.player.executeFSCommand(e,n)}var dN=function(t){function e(){return t.call(this)||this}return Zg(e,t),Object.defineProperty(e,"exactSettings",{get:function(){return e._exactSettings},set:function(t){t=!!t,e._exactSettings=t},enumerable:!1,configurable:!0}),Object.defineProperty(e,"disableAVM1Loading",{get:function(){},set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e,"sandboxType",{get:function(){return e._sandboxType},enumerable:!1,configurable:!0}),Object.defineProperty(e,"pageDomain",{get:function(){var t=undefined.resolveUrl("/").split("/");return t.pop(),t.pop()},enumerable:!1,configurable:!0}),e.allowDomain=function(){},e.allowInsecureDomain=function(){},e.loadPolicyFile=function(t){},e.showSettings=function(t){},e.duplicateSandboxBridgeInputArguments=function(t,e){},e.duplicateSandboxBridgeOutputArgument=function(t,e){},e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.REMOTE="remote",e.LOCAL_WITH_FILE="localWithFile",e.LOCAL_WITH_NETWORK="localWithNetwork",e.LOCAL_TRUSTED="localTrusted",e.APPLICATION="application",e._exactSettings=!1,e._sandboxType="remote",e}(B_),fN=function(t){function e(){return t.call(this)||this}return Zg(e,t),Object.defineProperty(e,"freeMemory",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(e,"ime",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(e,"privateMemory",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(e,"processCPUUsage",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(e,"totalMemory",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(e,"totalMemoryNumber",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(e,"useCodePage",{get:function(){return!1},set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e,"vmVersion",{get:function(){return""},enumerable:!1,configurable:!0}),e.disposeXML=function(t){},e.exit=function(t){},e.gc=function(){},e.pause=function(){},e.pauseForGCIfCollectionImminent=function(t){},e.resume=function(){},e.setClipboard=function(t){navigator.clipboard&&navigator.clipboard.writeText&&navigator.clipboard.writeText(t).then((function(t){console.log("[flash/System] Clipboard writed!")})).catch((function(t){console.warn("[flash/System] Clipboard write rejected!",t)}))},e}(B_),gN=function(t){function e(){var e=t.call(this)||this;return e.isAVMFont=!0,e.isAVMFont=!0,e}return Zg(e,t),Object.defineProperty(e.prototype,"fontName",{get:function(){return this._fontName},set:function(t){this._fontName=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fontStyle",{get:function(){return Tt.throwPIR("playerglobals/text/Font","get fontStyle",""),"regular"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fontType",{get:function(){return Tt.throwPIR("playerglobals/text/Font","get fontType",""),"embedded"},enumerable:!1,configurable:!0}),e.enumerateFonts=function(t){return Tt.throwPIR("playerglobals/text/Font","enumerateFonts",""),[]},e.registerFont=function(t){},e.prototype.hasGlyphs=function(t){return Tt.throwPIR("playerglobals/text/Font","hasGlyphs",""),!1},e.forceNativeConstructor=!0,e.forceNativeMethods=!0,e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e}(B_),_N=function(t){function e(){return t.call(this)||this}return Zg(e,t),Object.defineProperty(e.prototype,"styleNames",{get:function(){return Tt.throwPIR("playerglobals/text/StyleSheet","get styleNames",""),[]},enumerable:!1,configurable:!0}),e.prototype.clear=function(){Tt.throwPIR("playerglobals/text/StyleSheet","clear","")},e.prototype.getStyle=function(t){return Tt.throwPIR("playerglobals/text/StyleSheet","getStyle",""),null},e.prototype.parseCSS=function(t){Tt.throwPIR("playerglobals/text/StyleSheet","parseCSS","")},e.prototype.setStyle=function(t,e){Tt.throwPIR("playerglobals/text/StyleSheet","setStyle","")},e.prototype.transform=function(t){return Tt.throwPIR("playerglobals/text/StyleSheet","transform",""),null},e}(GO),mN=function(t){function e(){var e=t.call(this)||this;return e._textFieldChangeListener={},e.adaptee.autoSize=Hl.NONE,e.adaptee.mouseEnabled=e.adaptee.selectable,e.eventMappingDummys[bM.TEXT_INPUT]="TextField:TextEvent.TEXT_INPUT",e.eventMappingDummys[bM.LINK]="TextField:TextEvent.LINK",e.eventMappingDummys[kO.SCROLL]="TextField:Event.SCROLL",e.eventMappingDummys[kO.TEXT_INTERACTION_MODE_CHANGE]="TextField:Event.TEXT_INTERACTION_MODE_CHANGE",e._textChangeCallbackDelegate=function(t){return e.textChangeCallback(t)},e.adaptee.type==Xl.INPUT&&e.adaptee.addEventListener(dp.CHANGED,e._textChangeCallbackDelegate),e}return Zg(e,t),e.getNewTextField=function(t){if(void 0===t&&(t=null),e._textFields.length){var n=e._textFields.pop();return n.adaptee=t||Qp.getNewTextField(),n}return new e},e.prototype.textChangeCallback=function(t){var e=new this.sec.flash.events.Event(kO.CHANGE);e.target=this,this.dispatchEvent(e,!1)},e.prototype.createAdaptee=function(){var t=Qp.getNewTextField();return t.reset(),t},e.prototype.initAdapter=function(){},e.prototype.dispatchKeyEvent=function(t,e,n,i){},e.prototype.selectTextField=function(){},e.prototype.clone=function(){var t=WD(this._symbol,this._symbol.symbolClass),e=new Qp;return this.adaptee.copyTo(e),t.adaptee=e,t._stage=this.activeStage,t.executeConstructor=function(){t.axInitializer()},t},e.prototype.dispose=function(){this.disposeValues(),e._textFields.push(this)},Object.defineProperty(e.prototype,"alwaysShowSelection",{get:function(){return this._adaptee.alwaysShowSelection},set:function(t){this._adaptee.alwaysShowSelection=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"antiAliasType",{get:function(){return Tt.throwPIR("playerglobals/text/Textfield","get antiAliasType",""),""},set:function(t){Tt.throwPIR("playerglobals/text/Textfield","set antiAliasType","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"autoSize",{get:function(){return this._adaptee.autoSize},set:function(t){this._adaptee.autoSize=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"background",{get:function(){return this._adaptee.background},set:function(t){this._adaptee.background=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"backgroundColor",{get:function(){return this._adaptee.backgroundColor},set:function(t){this._adaptee.backgroundColor=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"border",{get:function(){return this._adaptee.border},set:function(t){this._adaptee.border=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"borderColor",{get:function(){return this._adaptee.borderColor},set:function(t){this._adaptee.borderColor=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bottomScrollV",{get:function(){return Tt.throwPIR("playerglobals/text/Textfield","set bottomScrollV",""),0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"caretIndex",{get:function(){return Tt.throwPIR("playerglobals/text/Textfield","get caretIndex",""),0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"condenseWhite",{get:function(){return Tt.throwPIR("playerglobals/text/Textfield","get condenseWhite",""),!1},set:function(t){Tt.throwPIR("playerglobals/text/Textfield","set condenseWhite","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"defaultTextFormat",{get:function(){var t=this._adaptee.textFormat;return(t.adapter||t.adapter===t.adaptee)&&(t.adapter=new this.sec.flash.text.TextFormat,t.adapter.adaptee=t),t.adapter},set:function(t){this._adaptee.textFormat=t.adaptee},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"displayAsPassword",{get:function(){return this._adaptee.displayAsPassword},set:function(t){this._adaptee.displayAsPassword=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"embedFonts",{get:function(){return Tt.throwPIR("playerglobals/text/Textfield","get embedFonts",""),!1},set:function(t){Tt.throwPIR("playerglobals/text/Textfield","set embedFonts","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"gridFitType",{get:function(){return Tt.throwPIR("playerglobals/text/Textfield","get gridFitType",""),""},set:function(t){Tt.throwPIR("playerglobals/text/Textfield","set gridFitType","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"htmlText",{get:function(){return this.adaptee.htmlText},set:function(t){this.adaptee.htmlText=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this._adaptee.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxChars",{get:function(){return this.adaptee.maxChars},set:function(t){this.adaptee.maxChars=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxScrollH",{get:function(){return this.adaptee.maxScrollH},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxScrollV",{get:function(){return this.adaptee.maxScrollV+1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mouseWheelEnabled",{get:function(){return this.adaptee.mouseWheelEnabled},set:function(t){this.adaptee.mouseWheelEnabled=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"multiline",{get:function(){return this._adaptee.multiline},set:function(t){this._adaptee.multiline=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"numLines",{get:function(){return this._adaptee.numLines},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"restrict",{get:function(){return this.adaptee.restrict},set:function(t){this.adaptee.restrict=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scrollH",{get:function(){return this.adaptee.scrollH},set:function(t){this.adaptee.scrollH=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scrollV",{get:function(){return this.adaptee.scrollV+1},set:function(t){this.adaptee.scrollV=t-1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selectable",{get:function(){return this.adaptee.selectable},set:function(t){this._adaptee.selectable=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selectedText",{get:function(){return Tt.throwPIR("playerglobals/text/Textfield","get selectedText",""),""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selectionBeginIndex",{get:function(){return this.adaptee.selectionBeginIndex},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selectionEndIndex",{get:function(){return this.adaptee.selectionEndIndex},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sharpness",{get:function(){return Tt.throwPIR("playerglobals/text/Textfield","get sharpness",""),0},set:function(t){Tt.throwPIR("playerglobals/text/Textfield","set sharpness","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"styleSheet",{get:function(){return Tt.throwPIR("playerglobals/text/Textfield","get styleSheet",""),null},set:function(t){Tt.throwPIR("playerglobals/text/Textfield","set styleSheet","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){return this._adaptee.text},set:function(t){this._adaptee.text=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textColor",{get:function(){return this._adaptee.textColor},set:function(t){this._adaptee.textColor=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textHeight",{get:function(){return this._adaptee.textHeight},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textInteractionMode",{get:function(){return Tt.throwPIR("playerglobals/text/Textfield","get textInteractionMode",""),""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textWidth",{get:function(){return this._adaptee.textWidth},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"thickness",{get:function(){return Tt.throwPIR("playerglobals/text/Textfield","get thickness",""),0},set:function(t){Tt.throwPIR("playerglobals/text/Textfield","set thickness","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this._adaptee.type},set:function(t){(t==Xl.INPUT&&this._adaptee.type!=Xl.INPUT||t!=Xl.INPUT&&this._adaptee.type==Xl.INPUT)&&this.adaptee.addEventListener(dp.CHANGED,this._textChangeCallbackDelegate),this._adaptee.type=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"useRichTextClipboard",{get:function(){return Tt.throwPIR("playerglobals/text/Textfield","get useRichTextClipboard",""),!1},set:function(t){Tt.throwPIR("playerglobals/text/Textfield","set useRichTextClipboard","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"wordWrap",{get:function(){return this._adaptee.wordWrap},set:function(t){this._adaptee.wordWrap=t},enumerable:!1,configurable:!0}),e.prototype.appendText=function(t){this._adaptee.appendText(t)},e.prototype.copyRichText=function(){return Tt.throwPIR("playerglobals/text/Textfield","copyRichText",""),""},e.prototype.getCharBoundaries=function(t){return Tt.throwPIR("playerglobals/text/Textfield","getCharBoundaries",""),null},e.prototype.getCharIndexAtPoint=function(t,e){return this._adaptee.getCharIndexAtPoint(t,e)},e.prototype.getFirstCharInParagraph=function(t){return this._adaptee.getFirstCharInParagraph(t)},e.prototype.getImageReference=function(t){return Tt.throwPIR("playerglobals/text/Textfield","getImageReference",""),null},e.prototype.getLineIndexAtPoint=function(t,e){return this._adaptee.getLineIndexAtPoint(t,e)},e.prototype.getLineIndexOfChar=function(t){return this._adaptee.getLineIndexOfChar(t)},e.prototype.getLineLength=function(t){return this._adaptee.getLineLength(t)},e.prototype.getLineMetrics=function(t){var e=this._adaptee.getLineMetrics(t),n=e.x,i=e.width,r=e.height,o=e.ascent,a=e.descent,s=e.leading;return new this.sec.flash.text.TextLineMetrics(n,i,r,o,a,s)},e.prototype.getLineOffset=function(t){return this._adaptee.getLineOffset(t)},e.prototype.getLineText=function(t){return this._adaptee.getLineText(t)},e.prototype.getParagraphLength=function(t){return this._adaptee.getParagraphLength(t)},e.prototype.getRawText=function(){return Tt.throwPIR("playerglobals/text/Textfield","getRawText",""),""},e.prototype.getTextFormat=function(t,e){void 0===t&&(t=-1),void 0===e&&(e=-1);var n=this._adaptee.getTextFormat(t,e);if(n){if(n.adaptee!==n.adapter)return n.adapter;var i=new this.sec.flash.text.TextFormat;return i.adaptee=n,n.adapter=i,i}console.warn("[playerglobal/Textfield] - getTextFormat - textformat should not be null")},e.prototype.getTextRuns=function(t,e){return Tt.throwPIR("playerglobals/text/Textfield","getTextRuns",""),[]},e.prototype.getXMLText=function(t,e){return Tt.throwPIR("playerglobals/text/Textfield","getXMLText",""),""},e.prototype.insertXMLText=function(t,e,n,i){Tt.throwPIR("playerglobals/text/Textfield","insertXMLText","")},e.isFontCompatible=function(t,e){return Tt.throwPIR("playerglobals/text/Textfield","isFontCompatible",""),!1},e.prototype.pasteRichText=function(t){return Tt.throwPIR("playerglobals/text/Textfield","pasteRichText",""),!1},e.prototype.replaceSelectedText=function(t){return this._adaptee.replaceSelectedText(t)},e.prototype.replaceText=function(t,e,n){return this._adaptee.replaceText(t,e,n)},e.prototype.setSelection=function(t,e){return this._adaptee.setSelection(t,e)},e.prototype.setTextFormat=function(t,e,n){void 0===e&&(e=-1),void 0===n&&(n=-1),this._adaptee.setTextFormat(t.adaptee,e,n)},e._textFields=new Array,e}(pM),yN=function(t){function e(e,n,i,r,o,a,s,u,l,c,h,p,d){void 0===e&&(e=null),void 0===n&&(n=null),void 0===i&&(i=null),void 0===r&&(r=null),void 0===o&&(o=null),void 0===a&&(a=null),void 0===s&&(s=null),void 0===u&&(u=null),void 0===l&&(l=null),void 0===c&&(c=null),void 0===h&&(h=null),void 0===p&&(p=null),void 0===d&&(d=null);var f=t.call(this)||this;return f.adaptee=new cp(e,n,i,r,o,a,s,u,l,c,h,p,d),f}return Zg(e,t),Object.defineProperty(e.prototype,"target",{get:function(){return Tt.throwPIR("playerglobals/text/TextFormat","get target",""),null},set:function(t){Tt.throwPIR("playerglobals/text/TextFormat","set target","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tabStops",{get:function(){return Tt.throwPIR("playerglobals/text/TextFormat","get tabStops",""),null},set:function(t){Tt.throwPIR("playerglobals/text/TextFormat","set tabStops","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"display",{get:function(){return Tt.throwPIR("playerglobals/text/TextFormat","get display",""),null},set:function(t){Tt.throwPIR("playerglobals/text/TextFormat","set display","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bullet",{get:function(){return Tt.throwPIR("playerglobals/text/TextFormat","get bullet",""),null},set:function(t){Tt.throwPIR("playerglobals/text/TextFormat","set bullet","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return Tt.throwPIR("playerglobals/text/TextFormat","get url",""),null},set:function(t){Tt.throwPIR("playerglobals/text/TextFormat","set url","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"link_target",{get:function(){return Tt.throwPIR("playerglobals/text/TextFormat","get target",""),null},set:function(t){Tt.throwPIR("playerglobals/text/TextFormat","get target","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"align",{get:function(){return this.adaptee.align},set:function(t){this.adaptee.align=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"blockIndent",{get:function(){return this.adaptee.blockIndent},set:function(t){this.adaptee.blockIndent=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"leftMargin",{get:function(){return this.adaptee.leftMargin},set:function(t){this.adaptee.leftMargin=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rightMargin",{get:function(){return this.adaptee.rightMargin},set:function(t){this.adaptee.rightMargin=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"indent",{get:function(){return this.adaptee.indent},set:function(t){this.adaptee.indent=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"color",{get:function(){return this.adaptee.color},set:function(t){this.adaptee.color=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"kerning",{get:function(){return this.adaptee.kerning},set:function(t){this.adaptee.kerning=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"leading",{get:function(){return this.adaptee.leading},set:function(t){this.adaptee.leading=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"letterSpacing",{get:function(){return this.adaptee.letterSpacing},set:function(t){this.adaptee.letterSpacing=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this.adaptee.size},set:function(t){this.adaptee.size=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bold",{get:function(){return this.adaptee.bold},set:function(t){this.adaptee.bold=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"italic",{get:function(){return this.adaptee.italic},set:function(t){this.adaptee.italic=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"underline",{get:function(){return this.adaptee.underline},set:function(t){this.adaptee.underline=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"font",{get:function(){return this.adaptee.font_name},set:function(t){this.adaptee.font_name=t},enumerable:!1,configurable:!0}),e.prototype.clone=function(){var t=new this.sec.flash.text.TextFormat;return t.adaptee=this.adaptee.clone(),t},e}(B_),AN=function(t){function e(e,n,i){var r=t.call(this)||this;return r._beginIndex=0|e,r._endIndex=0|n,r._textFormat=i,r}return Zg(e,t),Object.defineProperty(e.prototype,"beginIndex",{get:function(){return this._beginIndex},set:function(t){this._beginIndex=0|t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"endIndex",{get:function(){return this._endIndex},set:function(t){this._endIndex=0|t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textFormat",{get:function(){return this._textFormat},set:function(t){this._textFormat=t},enumerable:!1,configurable:!0}),e.prototype.clone=function(){return new e(this.beginIndex,this.endIndex,this.textFormat.clone())},e.prototype.containsIndex=function(t){return t>=this._beginIndex&&t<this._endIndex},e.prototype.intersects=function(t,e){return Math.max(this._beginIndex,t)<Math.min(this._endIndex,e)},e.classInitializer=null,e}(B_),vN=function(t){function e(){var e=t.call(this)||this;return Tt.throwPIR("playerglobals/text/StaticText","constructor",""),e}return Zg(e,t),e.prototype.applySymbol=function(){Tt.throwPIR("playerglobals/text/StaticText","applySymbol","")},e.prototype._canHaveTextContent=function(){return Tt.throwPIR("playerglobals/text/StaticText","_canHaveTextContent",""),!0},e.prototype._getTextContent=function(){return Tt.throwPIR("playerglobals/text/StaticText","_getTextContent",""),this._textContent},Object.defineProperty(e.prototype,"text",{get:function(){return Tt.throwPIR("playerglobals/text/StaticText","text",""),this._textContent.plainText},enumerable:!1,configurable:!0}),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e}(lM),bN=function(t){function e(){var e=t.call(this)||this;return Tt.throwPIR("playerglobals/text/TextRenderer","constructor",""),e}return Zg(e,t),Object.defineProperty(e.prototype,"antiAliasType",{get:function(){return Tt.throwPIR("playerglobals/text/TextRenderer","get antiAliasType",""),null},set:function(t){Tt.throwPIR("playerglobals/text/TextRenderer","set antiAliasType","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxLevel",{get:function(){return Tt.throwPIR("playerglobals/text/TextRenderer","get maxLevel",""),0},set:function(t){Tt.throwPIR("playerglobals/text/TextRenderer","set maxLevel","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"displayMode",{get:function(){return Tt.throwPIR("playerglobals/text/TextRenderer","get displayMode",""),null},set:function(t){Tt.throwPIR("playerglobals/text/TextRenderer","set displayMode","")},enumerable:!1,configurable:!0}),e.setAdvancedAntiAliasingTable=function(t,e,n,i){Tt.throwPIR("playerglobals/text/TextRenderer","setAdvancedAntiAliasingTable","")},e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e}(B_),CN=function(t){function e(){var e=t.call(this)||this;return Tt.throwPIR("playerglobals/text/TextFormatDisplay","constructor",""),e}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.INLINE="inline",e.BLOCK="block",e}(B_),xN=function(t){function e(e,n,i,r,o,a){var s=t.call(this)||this;return s.width=+e,s.height=+n,s.textFieldWidth=+i,s.textFieldHeight=+r,s.ascent=+o,s.descent=+a,Tt.throwPIR("playerglobals/text/TextExtent","constructor",""),s}return Zg(e,t),e}(B_),IN=function(t){function e(){return t.call(this)||this}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.LCD="lcd",e.CRT="crt",e.DEFAULT="default",e}(B_),EN=function(t){function e(){return t.call(this)||this}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.DARK_COLOR="dark",e.LIGHT_COLOR="light",e}(B_),wN=function(t){function e(){return t.call(this)||this}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.EMBEDDED="embedded",e.EMBEDDED_CFF="embeddedCFF",e.DEVICE="device",e}(B_),SN=function(t){function e(e,n,i){var r=t.call(this)||this;return r.fontSize=+e,r.insideCutoff=+n,r.outsideCutoff=+i,Tt.throwPIR("playerglobals/text/CSMSettings","constructor",""),r}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e}(B_),DN=function(t){function e(e,n,i,r,o,a){var s=t.call(this)||this;return Tt.throwPIR("playerglobals/text/TextLineMetrics","constructor",""),s}return Zg(e,t),e}(B_),TN=function(t){function e(){return t.call(this)||this}return Zg(e,t),Object.defineProperty(e.prototype,"charCount",{get:function(){return Tt.throwPIR("playerglobals/text/TextSnapshot","get charCount",""),0},enumerable:!1,configurable:!0}),e.prototype.findText=function(t,e,n){return Tt.throwPIR("playerglobals/text/TextSnapshot","findText",""),0},e.prototype.getSelected=function(t,e){return Tt.throwPIR("playerglobals/text/TextSnapshot","getSelected",""),!1},e.prototype.getSelectedText=function(t){return Tt.throwPIR("playerglobals/text/TextSnapshot","getSelectedText",""),""},e.prototype.getText=function(t,e,n){return Tt.throwPIR("playerglobals/text/TextSnapshot","getText",""),""},e.prototype.getTextRunInfo=function(t,e){return Tt.throwPIR("playerglobals/text/TextSnapshot","getTextRunInfo",""),null},e.prototype.hitTestTextNearPos=function(t,e,n){return Tt.throwPIR("playerglobals/text/TextSnapshot","hitTestTextNearPos",""),0},e.prototype.setSelectColor=function(t){Tt.throwPIR("playerglobals/text/TextSnapshot","setSelectColor","")},e.prototype.setSelected=function(t,e,n){Tt.throwPIR("playerglobals/text/TextSnapshot","setSelected","")},e.classInitializer=null,e}(B_),PN=function(t){function e(e,n,i,r){return t.call(this)||this}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e}(B_),ON=function(t){function e(){return t.call(this)||this}return Zg(e,t),e.forceNativeConstructor=!0,e.forceNativeMethods=!0,e.AUTO="auto",e.ANY="any",e.NONE="none",e.ALL="all",e}(B_),MN=function(t){function e(){return t.call(this)||this}return Zg(e,t),e.forceNativeConstructor=!0,e.forceNativeMethods=!0,e.NONE="none",e.HORIZONTAL_STEM="horizontalStem",e}(B_),BN=0,NN=function(t){function e(e,n,i){void 0===e&&(e=null),void 0===n&&(n=null),void 0===i&&(i="rotate0");var r=t.call(this)||this;return r._id=BN++,r._elementFormat=e,r._eventMirror=n,r._textRotation=a_(i),r}return Zg(e,t),e.prototype.setTextBlock=function(t){this._textBlock=t},e.prototype.setGroupElement=function(t){this._groupElement=t},Object.defineProperty(e.prototype,"textBlock",{get:function(){return this._textBlock},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textBlockBeginIndex",{get:function(){return this._textBlockBeginIndex},set:function(t){this._textBlockBeginIndex=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"elementFormat",{get:function(){return this._elementFormat},set:function(t){this._elementFormat=t,this._textBlock&&this._textBlock.setTextDataDirty()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"eventMirror",{get:function(){return this._eventMirror},set:function(t){this._eventMirror=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"groupElement",{get:function(){return this._groupElement},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rawText",{get:function(){return this._rawText},set:function(t){this._rawText=t,this._text=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){return this._text},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textRotation",{get:function(){return this._textRotation},set:function(t){this._textRotation=a_(t)},enumerable:!1,configurable:!0}),e.forceNativeConstructor=!0,e.forceNativeMethods=!0,e.GRAPHIC_ELEMENT=65007,e}(B_),LN=function(t){function e(){return t.call(this)||this}return Zg(e,t),e.forceNativeConstructor=!0,e.forceNativeMethods=!0,e.DEFAULT="default",e.LINING="lining",e.OLD_STYLE="oldStyle",e}(B_),RN=function(t){function e(){return t.call(this)||this}return Zg(e,t),e.forceNativeConstructor=!0,e.forceNativeMethods=!0,e.DEFAULT="default",e.PROPORTIONAL="proportional",e.TABULAR="tabular",e}(B_),FN=function(t){function e(e,n){var i=t.call(this)||this;return i._locale=a_(e),i._lineJustification=a_(n),i}return Zg(e,t),e.getJustifierForLocale=function(t){return Tt.throwPIR("playerglobals/text/engine/TextJustifier","getJustifierForLocale",""),null},e.prototype.clone=function(){return Tt.throwPIR("playerglobals/text/engine/TextJustifier","clone",""),null},Object.defineProperty(e.prototype,"locale",{get:function(){return this._locale},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lineJustification",{get:function(){return this._lineJustification},set:function(t){this._lineJustification=a_(t)},enumerable:!1,configurable:!0}),e.prototype.setLocale=function(t){this._locale=a_(t)},e.forceNativeConstructor=!0,e.forceNativeMethods=!0,e}(B_),kN=function(t){function e(e,n,i){return t.call(this,void 0,void 0)||this}return Zg(e,t),Object.defineProperty(e.prototype,"justificationStyle",{get:function(){return Tt.throwPIR("playerglobals/text/engine/EastAsianJustifier","get justificationStyle",""),null},set:function(t){Tt.throwPIR("playerglobals/text/engine/EastAsianJustifier","set justificationStyle","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"composeTrailingIdeographicSpaces",{get:function(){return Tt.throwPIR("playerglobals/text/engine/EastAsianJustifier","get composeTrailingIdeographicSpaces",""),null},set:function(t){Tt.throwPIR("playerglobals/text/engine/EastAsianJustifier","set composeTrailingIdeographicSpaces","")},enumerable:!1,configurable:!0}),e.forceNativeConstructor=!0,e.forceNativeMethods=!0,e}(FN),UN=function(t){function e(){return t.call(this)||this}return Zg(e,t),e.forceNativeConstructor=!0,e.forceNativeMethods=!0,e.ROMAN="roman",e.ASCENT="ascent",e.DESCENT="descent",e.IDEOGRAPHIC_TOP="ideographicTop",e.IDEOGRAPHIC_CENTER="ideographicCenter",e.IDEOGRAPHIC_BOTTOM="ideographicBottom",e.USE_DOMINANT_BASELINE="useDominantBaseline",e}(B_),jN=0,VN=function(t){function e(e,n,i,r,o,a,s,u,l,c,h,p,d,f,g,_,m){void 0===e&&(e=null),void 0===n&&(n=12),void 0===i&&(i=0),void 0===r&&(r=1),void 0===o&&(o="auto"),void 0===a&&(a="roman"),void 0===s&&(s="useDominantBaseline"),void 0===u&&(u=0),void 0===l&&(l="on"),void 0===c&&(c=0),void 0===h&&(h=0),void 0===p&&(p="en"),void 0===d&&(d="auto"),void 0===f&&(f="default"),void 0===g&&(g="default"),void 0===_&&(_="common"),void 0===m&&(m="default");var y=t.call(this)||this;return y._id=jN++,y._fontDescription=e,y._fontSize=+n,y._color=i>>>0,y._alpha=+r,y._textRotation=a_(o),y._dominantBaseline=a_(a),y._alignmentBaseline=a_(s),y._baselineShift=+u,y._kerning=a_(l),y._trackingRight=+c,y._trackingLeft=+h,y._locale=a_(p),y._breakOpportunity=a_(d),y._digitCase=a_(f),y._digitWidth=a_(g),y._ligatureLevel=a_(_),y._typographicCase=a_(m),y}return Zg(e,t),e.prototype.createAwayTextformat=function(){var t,e,n,i=new cp;return i.size=this._fontSize,i.color=this._color,i.fontLookUpMode=this._fontDescription?this._fontDescription.fontLookup:ap.DEVICE,i.font_name=null===(t=this._fontDescription)||void 0===t?void 0:t.fontName,i.italic="italic"==(null===(e=this._fontDescription)||void 0===e?void 0:e.fontPosture),i.bold="bold"==(null===(n=this._fontDescription)||void 0===n?void 0:n.fontWeight),i.align=Yl.LEFT,0!=this._baselineShift&&console.warn("baselineshift is not 0",this._baselineShift),this._alignmentBaseline!=UN.USE_DOMINANT_BASELINE&&console.warn("_alignmentBaseline is not USE_DOMINANT_BASELINE",this._alignmentBaseline),this._dominantBaseline!=UN.ROMAN&&console.warn("_dominantBaseline is not ROMAN",this._dominantBaseline),0!=this._trackingRight&&console.warn("_trackingRight is not 0",this._trackingRight),0!=this._trackingLeft&&console.warn("_trackingLeft is not 0",this._trackingLeft),1!=this._alpha&&console.warn("_alpha is not 1",this._alpha),"default"!=this._digitCase&&console.warn('_digitCase is not "default"',this._digitCase),"default"!=this._digitWidth&&console.warn('_digitWidth is not "default"',this._digitWidth),"default"!=this._typographicCase&&console.warn('_typographicCase is not "default"',this._typographicCase),"common"!=this._ligatureLevel&&console.warn('_ligatureLevel is not "common"',this._ligatureLevel),i},e.prototype.getBaseline=function(){return this._alignmentBaseline==UN.USE_DOMINANT_BASELINE?this._dominantBaseline:this._alignmentBaseline},Object.defineProperty(e.prototype,"alignmentBaseline",{get:function(){return this._alignmentBaseline},set:function(t){this._alignmentBaseline=a_(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"alpha",{get:function(){return this._alpha},set:function(t){this._alpha=+t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"baselineShift",{get:function(){return this._baselineShift},set:function(t){this._baselineShift=+t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"breakOpportunity",{get:function(){return this._breakOpportunity},set:function(t){this._breakOpportunity=a_(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"color",{get:function(){return this._color},set:function(t){this._color=t>>>0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dominantBaseline",{get:function(){return this._dominantBaseline},set:function(t){this._dominantBaseline=a_(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fontDescription",{get:function(){return this._fontDescription},set:function(t){this._fontDescription=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"digitCase",{get:function(){return this._digitCase},set:function(t){this._digitCase=a_(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"digitWidth",{get:function(){return this._digitWidth},set:function(t){this._digitWidth=a_(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ligatureLevel",{get:function(){return this._ligatureLevel},set:function(t){this._ligatureLevel=a_(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fontSize",{get:function(){return this._fontSize},set:function(t){this._fontSize=+t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"kerning",{get:function(){return this._kerning},set:function(t){this._kerning=a_(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"locale",{get:function(){return this._locale},set:function(t){this._locale=a_(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textRotation",{get:function(){return this._textRotation},set:function(t){this._textRotation=a_(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"trackingRight",{get:function(){return this._trackingRight},set:function(t){this._trackingRight=+t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"trackingLeft",{get:function(){return this._trackingLeft},set:function(t){this._trackingLeft=+t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"typographicCase",{get:function(){return this._typographicCase},set:function(t){this._typographicCase=a_(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"locked",{get:function(){return this._locked},set:function(t){this._locked=t},enumerable:!1,configurable:!0}),e.prototype.getFontMetrics=function(){return Tt.throwPIR("playerglobals/text/engine/ElementFormat","set getFontMetrics",""),null},e.forceNativeConstructor=!0,e.forceNativeMethods=!0,e}(B_),QN=function(t){function e(e,n,i,r,o,a){void 0===e&&(e="_serif"),void 0===n&&(n="normal"),void 0===i&&(i="normal"),void 0===r&&(r="device"),void 0===o&&(o="cff"),void 0===a&&(a="horizontalStem");var s=t.call(this)||this;return s._fontName=a_(e),s._fontWeight=a_(n),s._fontPosture=a_(i),s._fontLookup=a_(r),s._renderingMode=a_(o),s._cffHinting=a_(a),s}return Zg(e,t),e.isFontCompatible=function(t,e,n){return Tt.throwPIR("playerglobals/text/engine/FontDescription","static isFontCompatible",""),null},e.isDeviceFontCompatible=function(t,e,n){return Tt.throwPIR("playerglobals/text/engine/FontDescription","static isDeviceFontCompatible",""),null},Object.defineProperty(e.prototype,"renderingMode",{get:function(){return this._renderingMode},set:function(t){this._renderingMode=a_(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fontLookup",{get:function(){return this._fontLookup},set:function(t){this._fontLookup=a_(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fontName",{get:function(){return this._fontName},set:function(t){this._fontName=a_(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fontPosture",{get:function(){return this._fontPosture},set:function(t){this._fontPosture=a_(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fontWeight",{get:function(){return this._fontWeight},set:function(t){this._fontWeight=a_(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cffHinting",{get:function(){return this._cffHinting},set:function(t){this._cffHinting=a_(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"locked",{get:function(){return this._locked},set:function(t){this._locked=t},enumerable:!1,configurable:!0}),e.forceNativeConstructor=!0,e.forceNativeMethods=!0,e}(B_),GN=function(t){function e(){return t.call(this)||this}return Zg(e,t),e.forceNativeConstructor=!0,e.forceNativeMethods=!0,e.DEVICE="device",e.EMBEDDED_CFF="embeddedCFF",e}(B_),zN=function(t){function e(e,n,i,r,o,a,s,u,l,c){void 0===c&&(c=0);var h=t.call(this)||this;return h.emBox=e,h.strikethroughOffset=+n,h.strikethroughThickness=+i,h.underlineOffset=+r,h.underlineThickness=+o,h.subscriptOffset=+a,h.subscriptScale=+s,h.superscriptOffset=+u,h.superscriptScale=+l,h.lineGap=+c,h}return Zg(e,t),e.forceNativeConstructor=!0,e.forceNativeMethods=!0,e}(B_),HN=function(t){function e(){return t.call(this)||this}return Zg(e,t),e.forceNativeConstructor=!0,e.forceNativeMethods=!0,e.NORMAL="normal",e.ITALIC="italic",e}(B_),XN=function(t){function e(){return t.call(this)||this}return Zg(e,t),e.forceNativeConstructor=!0,e.forceNativeMethods=!0,e.NORMAL="normal",e.BOLD="bold",e}(B_),YN=function(t){function e(e,n,i,r,o,a){void 0===e&&(e=null),void 0===n&&(n=15),void 0===i&&(i=15),void 0===r&&(r=null),void 0===o&&(o=null),void 0===a&&(a="rotate0");var s=t.call(this,void 0,void 0,void 0)||this;return s.graphic=e,s.elementWidth=+n,s.elementHeight=+i,s.elementFormat=r,s.eventMirror=o,s.textRotation=a_(a),s}return Zg(e,t),Object.defineProperty(e.prototype,"graphic",{get:function(){return Tt.throwPIR("playerglobals/text/engine/GraphicElement","get graphic",""),null},set:function(t){Tt.throwPIR("playerglobals/text/engine/GraphicElement","set graphic","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"elementHeight",{get:function(){return Tt.throwPIR("playerglobals/text/engine/GraphicElement","get elementHeight",""),null},set:function(t){Tt.throwPIR("playerglobals/text/engine/GraphicElement","set elementHeight","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"elementWidth",{get:function(){return Tt.throwPIR("playerglobals/text/engine/GraphicElement","get elementWidth",""),null},set:function(t){Tt.throwPIR("playerglobals/text/engine/GraphicElement","set elementWidth","")},enumerable:!1,configurable:!0}),e.forceNativeConstructor=!0,e.forceNativeMethods=!0,e}(NN),qN=function(t){function e(){return t.call(this)||this}return Zg(e,t),e.forceNativeConstructor=!0,e.forceNativeMethods=!0,e.PUSH_IN_KINSOKU="pushInKinsoku",e.PUSH_OUT_ONLY="pushOutOnly",e.PRIORITIZE_LEAST_ADJUSTMENT="prioritizeLeastAdjustment",e}(B_),KN=function(t){function e(){return t.call(this)||this}return Zg(e,t),e.forceNativeConstructor=!0,e.forceNativeMethods=!0,e.ON="on",e.OFF="off",e.AUTO="auto",e}(B_),WN=function(t){function e(){return t.call(this)||this}return Zg(e,t),e.forceNativeConstructor=!0,e.forceNativeMethods=!0,e.NONE="none",e.MINIMUM="minimum",e.COMMON="common",e.UNCOMMON="uncommon",e.EXOTIC="exotic",e}(B_),JN=function(t){function e(){return t.call(this)||this}return Zg(e,t),e.forceNativeConstructor=!0,e.forceNativeMethods=!0,e.UNJUSTIFIED="unjustified",e.ALL_BUT_LAST="allButLast",e.ALL_INCLUDING_LAST="allIncludingLast",e.ALL_BUT_MANDATORY_BREAK="allButMandatoryBreak",e}(B_),$N=function(t){function e(){return t.call(this)||this}return Zg(e,t),e.forceNativeConstructor=!0,e.forceNativeMethods=!0,e.NORMAL="normal",e.CFF="cff",e}(B_),ZN=function(t){function e(e,n,i){void 0===e&&(e="en"),void 0===n&&(n="unjustified"),void 0===i&&(i=!1);var r=t.call(this,e,n)||this;return r._letterSpacing=!!i,r}return Zg(e,t),Object.defineProperty(e.prototype,"letterSpacing",{get:function(){return this._letterSpacing},set:function(t){this._letterSpacing=!!t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"minimumSpacing",{get:function(){return this._minimumSpacing},set:function(t){this._minimumSpacing=+t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"optimumSpacing",{get:function(){return this._optimumSpacing},set:function(t){this._optimumSpacing=+t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maximumSpacing",{get:function(){return this._maximumSpacing},set:function(t){this._maximumSpacing=+t},enumerable:!1,configurable:!0}),e.forceNativeConstructor=!0,e.forceNativeMethods=!0,e}(FN),tL=function(t){function e(){return t.call(this)||this}return Zg(e,t),e.forceNativeConstructor=!0,e.forceNativeMethods=!0,e.START="start",e.CENTER="center",e.END="end",e.DECIMAL="decimal",e}(B_),eL=function(t){function e(e,n,i){return t.call(this)||this}return Zg(e,t),Object.defineProperty(e.prototype,"alignment",{get:function(){Tt.throwPIR("playerglobals/text/engine/TabStop","get alignment","")},set:function(t){Tt.throwPIR("playerglobals/text/engine/TabStop","set alignment","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"position",{get:function(){Tt.throwPIR("playerglobals/text/engine/TabStop","get position","")},set:function(t){Tt.throwPIR("playerglobals/text/engine/TabStop","set position","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"decimalAlignmentToken",{get:function(){Tt.throwPIR("playerglobals/text/engine/TabStop","get decimalAlignmentToken","")},set:function(t){Tt.throwPIR("playerglobals/text/engine/TabStop","set decimalAlignmentToken","")},enumerable:!1,configurable:!0}),e.forceNativeConstructor=!0,e.forceNativeMethods=!0,e}(B_),nL=function(t){function e(){return t.call(this)||this}return Zg(e,t),e.forceNativeConstructor=!0,e.forceNativeMethods=!0,e.SUCCESS="success",e.EMERGENCY="emergency",e.COMPLETE="complete",e.INSUFFICIENT_WIDTH="insufficientWidth",e}(B_),iL=0,rL=[],oL=function(t){function e(e,n,i,r,o,a,s,u,l){void 0===e&&(e=null),void 0===n&&(n=null),void 0===i&&(i=null),void 0===r&&(r="rotate0"),void 0===o&&(o="roman"),void 0===a&&(a=0),void 0===s&&(s=!0),void 0===u&&(u=null),void 0===l&&(l=12);var c=t.call(this)||this;return c._id=iL++,c._content=e,e&&c._content.setTextBlock(c),c._tabStops=n,c._textJustifier=i,c._lineRotation=r,c._baselineZero=o,c._bidiLevel=a,c._applyNonLinearFontScaling=s,c._baselineFontDescription=u,c._baselineFontSize=l,c._textLines=[],c._creationResult=null,c}return Zg(e,t),e.prototype.setTextDataDirty=function(){this._textData=null},e.prototype._convertContentToTextData=function(){if(this._textData)return this._textData;this._textData={text:"",formats:[],elementFormats:[],formatIndices:[],processedIdx:0,creationResult:null,spaces:{},lineBreaks:{},charWidths:[]},this.resolveGroupElements(this._content),this._textData.formatIndices[this._textData.formatIndices.length-1]!=this._textData.text.length&&this._textData.formatIndices.push(this._textData.text.length);var t=this._textData.formats,e=this._textData.formatIndices,n=this._textData.text;this._content.rawText=n;for(var i=this._textData.spaces,r=this._textData.lineBreaks,o=this._textData.charWidths,a=0,s=t.length,u=0;u<s;u++){var l=t[u];l.font_table.initFontSize(l.size);for(var c=e[u];a<=c;a++){var h=n.charCodeAt(a);if(10===h||8233===h)r[a]=1,o[o.length]=0;else o[o.length]=l.font_table.getCharWidth(h.toString()),(9==h||32==h)&&(i[a]=!0)}}},e.prototype.resolveGroupElements=function(t){if("flash.text.engine.TextElement"==t.axClassName){var e=t.text,n=t.elementFormat,i=void 0;i=n?n.createAwayTextformat():new cp,this._textData.text+=e||"",this._textData.formats.push(i),this._textData.elementFormats.push(n),this._textData.formatIndices.push(this._textData.text.length)}if("flash.text.engine.GroupElement"==t.axClassName)for(var r=t,o=0;o<r.elementCount;o++)this.resolveGroupElements(r.getElementAt(o))},e.prototype.createTextLine=function(t,e,n,i){this._textData||(this._textLines=[],this._convertContentToTextData()),this._tabStops&&this._tabStops.buffer.length>0&&console.warn("this._tabStops is not []",this._tabStops),this._textJustifier&&"unjustified"!=this._textJustifier.lineJustification&&console.warn("lineJustification is not unjustified",this._textJustifier.lineJustification),this._textJustifier&&0!=this._textJustifier.letterSpacing&&console.warn("letterSpacing is not 0",this._textJustifier.letterSpacing),this._baselineZero!=UN.ROMAN&&console.warn('_baselineZero is not "roman"',this._baselineZero);var r=this._textData.text,o=this._textData.processedIdx;if(o>r.length)return this._creationResult=nL.COMPLETE,null;var a,s,u,l=this._textData.formats,c=this._textData.elementFormats,h=this._textData.formatIndices,p=this._textData.spaces,d=this._textData.lineBreaks,f=this._textData.charWidths,g=l.length,_=o,m="",y="",A=0,v=[],b=[],C=[],x=nL.EMERGENCY,I=0;t:for(var E=0;E<g;E++)if(!(o>h[E])){var w=l[E];a=w,v[v.length]=w,b[b.length]=c[E],s=c[E],C[C.length]=0;for(var S=h[E];_<=S;_++){if(1===d[_]){m+=y,A+=y.length+1,x=nL.SUCCESS,this._textData.processedIdx=_,d[_]=2;break t}if(p[_]&&(x=nL.SUCCESS,m+=y,A+=y.length,y="",this._textData.processedIdx=_),1!=y.length||32!=y.charCodeAt(0)&&9!=y.charCodeAt(0)||(x=nL.SUCCESS,m+=y,A+=y.length,y="",this._textData.processedIdx=_),(I+=f[_])>e-2){if(x==nL.SUCCESS)break t;m+=y,A+=y.length,this._textData.processedIdx=_;break t}if(_==r.length){m+=y,A+=y.length,this._textData.processedIdx=_+1;break t}d[_]?(y+=r[_],o++):y+=r[_]}C[C.length-1]=m.length+y.length-1}C[C.length-1]=m.length,this._textData.processedIdx>=r.length&&(this._textData.processedIdx++,x=nL.COMPLETE),0==v.length&&(v[0]=a,b[0]=s);for(var D=0;D<rL.length;D++)if(!rL[D].parent&&rL[D].free){u=rL[D];break}return u?(u.setPreviousLine(null),u.setNextLine(null),u.$BguserData=null,u.free=!1,u.reUseTextLine(t,e,n,i,m,v,C,o,A,b)):u=new this.sec.flash.text.engine.TextLine(t,e,n,i,m,v,C,o,A,b),this._creationResult=x,u.setTextBlock(this),this._textLines.push(u),u},e.prototype.recreateTextLine=function(t,e,n,i,r){return Tt.throwPIR("playerglobals/text/engine/TextBlock","recreateTextLine",""),new this.sec.flash.text.engine.TextLine},Object.defineProperty(e.prototype,"textLineCreationResult",{get:function(){return this._creationResult},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"applyNonLinearFontScaling",{get:function(){return Tt.throwPIR("playerglobals/text/engine/TextBlock","get applyNonLinearFontScaling",""),this._applyNonLinearFontScaling},set:function(t){Tt.throwPIR("playerglobals/text/engine/TextBlock","set applyNonLinearFontScaling",""),this._applyNonLinearFontScaling=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"baselineFontDescription",{get:function(){return Tt.throwPIR("playerglobals/text/engine/TextBlock","get baselineFontDescription",""),this._baselineFontDescription},set:function(t){Tt.throwPIR("playerglobals/text/engine/TextBlock","set baselineFontDescription",""),this._baselineFontDescription=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"baselineFontSize",{get:function(){return Tt.throwPIR("playerglobals/text/engine/TextBlock","get baselineFontSize",""),this._baselineFontSize},set:function(t){Tt.throwPIR("playerglobals/text/engine/TextBlock","set baselineFontSize",""),this._baselineFontSize=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"baselineZero",{get:function(){return this._baselineZero},set:function(t){this._baselineZero=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"content",{get:function(){return this._content},set:function(t){this._textData=null,this._content&&this._content.setTextBlock(null),this._content=t,this._content&&this._content.setTextBlock(this)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bidiLevel",{get:function(){return Tt.throwPIR("playerglobals/text/engine/TextBlock","get bidiLevel",""),this._bidiLevel},set:function(t){Tt.throwPIR("playerglobals/text/engine/TextBlock","set bidiLevel",""),this._bidiLevel=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"firstInvalidLine",{get:function(){return Tt.throwPIR("playerglobals/text/engine/TextBlock","firstInvalidLine",""),null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"firstLine",{get:function(){return this._textLines.length>0?this._textLines[0]:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastLine",{get:function(){return this._textLines.length>0?this._textLines[this._textLines.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lineRotation",{get:function(){return this._lineRotation},set:function(t){this._lineRotation=t},enumerable:!1,configurable:!0}),e.prototype.findNextAtomBoundary=function(t){return Tt.throwPIR("playerglobals/text/engine/TextBlock","findNextAtomBoundary",""),null},e.prototype.findPreviousAtomBoundary=function(t){return Tt.throwPIR("playerglobals/text/engine/TextBlock","findPreviousAtomBoundary",""),null},e.prototype.findNextWordBoundary=function(t){return Tt.throwPIR("playerglobals/text/engine/TextBlock","findNextWordBoundary",""),null},e.prototype.findPreviousWordBoundary=function(t){return Tt.throwPIR("playerglobals/text/engine/TextBlock","findPreviousWordBoundary",""),null},e.prototype.getTextLineAtCharIndex=function(t){return Tt.throwPIR("playerglobals/text/engine/TextBlock","getTextLineAtCharIndex",""),null},e.prototype.releaseLineCreationData=function(){Tt.throwPIR("playerglobals/text/engine/TextBlock","releaseLineCreationData","")},e.prototype.releaseLines=function(t,e){if(0!=this._textLines.length)if(t!=this._textLines[0]||e!=this._textLines[this._textLines.length-1])for(;t;){var n=this._textLines.indexOf(t);n>=0&&this._textLines.splice(n,1),t.free=!0,rL.indexOf(t)<=0&&rL.push(t),t=t!=e?t.nextLine:null}else{if(rL.length<100)for(var i=0;i<this._textLines.length;i++)this._textLines[i].free=!0,rL.indexOf(this._textLines[i])<=0&&rL.push(this._textLines[i]);this._textLines.length=0}},e.prototype.dump=function(){return Tt.throwPIR("playerglobals/text/engine/TextBlock","dump",""),null},e.prototype.DoCreateTextLine=function(t,e,n,i,r){return Tt.throwPIR("playerglobals/text/engine/TextBlock","DoCreateTextLine",""),null},e.prototype.getTabStops=function(){return this._tabStops},e.prototype.setTabStops=function(t){this._tabStops=t},e.prototype.getTextJustifier=function(){return this._textJustifier},e.prototype.setTextJustifier=function(t){this._textJustifier=t},Object.defineProperty(e.prototype,"userData",{get:function(){return this._userData},set:function(t){this._userData=t},enumerable:!1,configurable:!0}),e.forceNativeConstructor=!0,e.forceNativeMethods=!0,e}(B_),aL=function(t){function e(e,n,i,r){void 0===e&&(e=null),void 0===n&&(n=null),void 0===i&&(i=null),void 0===r&&(r="rotate0");var o=t.call(this,n,i,r)||this;return o._text=e,o._rawText=e,o}return Zg(e,t),Object.defineProperty(e.prototype,"text",{get:function(){return this._text},set:function(t){this._text=t,this._textBlock&&this._textBlock.setTextDataDirty()},enumerable:!1,configurable:!0}),e.prototype.replaceText=function(t,e,n){this._rawText=this._text.slice(0,t)+n+this._text.slice(e,this._text.length-1),this._text=this._rawText,this._textBlock&&this._textBlock.setTextDataDirty()},e.forceNativeConstructor=!0,e.forceNativeMethods=!0,e}(NN),sL=function(t){function e(){return t.call(this)||this}return Zg(e,t),e.forceNativeConstructor=!0,e.forceNativeMethods=!0,e.VALID="valid",e.POSSIBLY_INVALID="possiblyInvalid",e.INVALID="invalid",e.STATIC="static",e}(B_),uL=function(t){function e(e,n,i,r,o,a,s,u,l,c){var h=t.call(this)||this,p=new fl;return h.adaptee=p,h._previousLine=e,e&&e.setNextLine(h),h._width=n,h._textWidth=0,h._textHeight=0,h._lineOffset=i,h._fitSomething=r,h._rawText=o||"",h._textFormatsIndices=s,h._textFormats=a,h._textLength=l,h._textBlockBeginIndex=u,h._specifiedWidth=h._width,h._textfield=new Qp,h.initTextline(c),h}return Zg(e,t),e.prototype.initTextline=function(t){this._ascent=0,this._descent=Number.POSITIVE_INFINITY,this._textfield.multiline=!1,this._textfield.border=!1,this._textfield.wordWrap=!1;var e=this._textFormats[0],n=t[0].getBaseline();if(this.adaptee.addChild(this._textfield),""!==this._rawText){this._textfield.autoSize=Hl.LEFT,this._textfield.text=this._rawText;for(var i=0,r=0;r<this._textFormatsIndices.length;r++){var o=this._textFormats[r];n!=t[r].getBaseline()&&console.warn("[TextLine] - one Textline with different alignmentBaseline");var a=this._textFormatsIndices[r],s=o.font_table.ascent,u=o.font_table.descent;s=s/(l=o.font_table.get_font_em_size())*o.size,u=u/l*o.size,this._ascent<s&&(this._ascent=s),this._descent>u&&(this._descent=u),!this._textfield||this._textfield.setTextFormat(o,i,a),i=a,this._textfield.height=this._ascent-this._descent}}else{this._textfield.autoSize=Hl.NONE,this._ascent=e.font_table.ascent,this._descent=e.font_table.descent;var l=e.font_table.get_font_em_size();this._ascent=this._ascent/l*e.size,this._descent=this._descent/l*e.size,this._textfield.width=10,this._textfield.height=this._ascent-this._descent}this._textWidth=this._textfield?this._textfield.textWidth+4:10,this._unjustifiedTextWidth=this._textWidth,this._descent=Math.abs(this._descent),this._ascent+=1,n==UN.ROMAN?this._textfield.y=-this._ascent:n==UN.ASCENT?this._textfield.y=-(this._ascent-this._descent)-this._ascent-this._descent:(console.warn("[TextLine] - unsupported alignmentBaseline",n),this._textfield.y=-(this._ascent-this._descent)-this._ascent),this._textfield.x=0,this._ascent=this._ascent-this._descent,this._validity=sL.VALID},e.prototype.reUseTextLine=function(t,e,n,i,r,o,a,s,u,l){this.adaptee.x=0,this.adaptee.y=0,this._previousLine=t,t&&t.setNextLine(this),this._width=e,this._textWidth=0,this._textHeight=0,this._lineOffset=n,this._fitSomething=i,this._rawText=r||"",this._textFormatsIndices=a,this._textFormats=o,this._textLength=u,this._textBlockBeginIndex=s,this._specifiedWidth=this._width,this._textfield.reset(),this._textfield.text="",this.initTextline(l)},e.prototype.getBaselinePosition=function(t){switch(t){case UN.ROMAN:return-(this._ascent+this._descent);case UN.ASCENT:return-this._ascent}return 0},e.prototype.setNextLine=function(t){this._nextLine=t},e.prototype.setPreviousLine=function(t){this._previousLine=t},e.prototype.setTextBlock=function(t){this._textBlock=t},e.prototype.getMirrorRegion=function(t){return null},e.prototype.flushAtomData=function(){},Object.defineProperty(e.prototype,"textBlock",{get:function(){return this._textBlock},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasGraphicElement",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasTabs",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextLine",{get:function(){return this._nextLine},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousLine",{get:function(){return this._previousLine},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ascent",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"descent",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textHeight",{get:function(){return this._ascent+this._descent},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textWidth",{get:function(){return this._textWidth},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"totalAscent",{get:function(){return this._ascent},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"totalDescent",{get:function(){return this._descent},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"totalHeight",{get:function(){return this._ascent+this._descent},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textBlockBeginIndex",{get:function(){return this._textBlockBeginIndex},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rawTextLength",{get:function(){return this._textLength},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"specifiedWidth",{get:function(){return this._specifiedWidth},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"unjustifiedTextWidth",{get:function(){return this._unjustifiedTextWidth},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"validity",{get:function(){return this._validity},set:function(t){this._validity=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"atomCount",{get:function(){return this._textLength},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mirrorRegions",{get:function(){return this._mirrorRegions},enumerable:!1,configurable:!0}),e.prototype.getAtomIndexAtPoint=function(t,e){return Tt.throwPIR("playerglobals/text/engine/TextLine","getAtomIndexAtPoint",""),null},e.prototype.getAtomIndexAtCharIndex=function(t){return Tt.throwPIR("playerglobals/text/engine/TextLine","getAtomIndexAtCharIndex",""),t},e.prototype.getAtomBounds=function(t){var e=this._textfield.getCharBoundaries(t);return this.sec.flash.geom.Rectangle(e.x,e.y,e.width,this._ascent+this.descent)},e.prototype.getAtomBidiLevel=function(t){return Tt.throwPIR("playerglobals/text/engine/TextLine","getAtomBidiLevel",""),null},e.prototype.getAtomTextRotation=function(t){return Tt.throwPIR("playerglobals/text/engine/TextLine","getAtomTextRotation",""),null},e.prototype.getAtomTextBlockBeginIndex=function(t){return Tt.throwPIR("playerglobals/text/engine/TextLine","getAtomTextBlockBeginIndex",""),null},e.prototype.getAtomTextBlockEndIndex=function(t){return Tt.throwPIR("playerglobals/text/engine/TextLine","getAtomTextBlockEndIndex",""),null},e.prototype.getAtomCenter=function(t){return Tt.throwPIR("playerglobals/text/engine/TextLine","getAtomCenter",""),null},e.prototype.getAtomWordBoundaryOnLeft=function(t){return Tt.throwPIR("playerglobals/text/engine/TextLine","getAtomWordBoundaryOnLeft",""),null},e.prototype.getAtomGraphic=function(t){return Tt.throwPIR("playerglobals/text/engine/TextLine","getAtomGraphic",""),null},e.prototype.dump=function(){return Tt.throwPIR("playerglobals/text/engine/TextLine","dump",""),null},e.forceNativeConstructor=!0,e.forceNativeMethods=!0,e.MAX_LINE_WIDTH=1e6,e}(dM),lL=function(t){function e(){return t.call(this)||this}return Zg(e,t),Object.defineProperty(e.prototype,"textLine",{get:function(){return Tt.throwPIR("playerglobals/text/engine/TextLineMirrorRegion","get textLine",""),null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextRegion",{get:function(){return Tt.throwPIR("playerglobals/text/engine/TextLineMirrorRegion","get nextRegion",""),null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousRegion",{get:function(){return Tt.throwPIR("playerglobals/text/engine/TextLineMirrorRegion","get previousRegion",""),null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mirror",{get:function(){return Tt.throwPIR("playerglobals/text/engine/TextLineMirrorRegion","get mirror",""),null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return Tt.throwPIR("playerglobals/text/engine/TextLineMirrorRegion","get element",""),null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bounds",{get:function(){return Tt.throwPIR("playerglobals/text/engine/TextLineMirrorRegion","get textLine",""),null},enumerable:!1,configurable:!0}),e.forceNativeConstructor=!0,e.forceNativeMethods=!0,e}(B_),cL=function(t){function e(){return t.call(this)||this}return Zg(e,t),e.forceNativeConstructor=!0,e.forceNativeMethods=!0,e.ROTATE_0="rotate0",e.ROTATE_90="rotate90",e.ROTATE_180="rotate180",e.ROTATE_270="rotate270",e.AUTO="auto",e}(B_),hL=function(t){function e(){return t.call(this)||this}return Zg(e,t),e.forceNativeConstructor=!0,e.forceNativeMethods=!0,e.DEFAULT="default",e.TITLE="title",e.CAPS="caps",e.SMALL_CAPS="smallCaps",e.UPPERCASE="uppercase",e.LOWERCASE="lowercase",e.CAPS_AND_SMALL_CAPS="capsAndSmallCaps",e}(B_),pL=function(t){function e(){return t.call(this)||this}return Zg(e,t),Object.defineProperty(e,"capsLock",{get:function(){return Tt.throwPIR("playerglobals/ui/Keyboard","static get capsLock",""),!1},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numLock",{get:function(){return Tt.throwPIR("playerglobals/ui/Keyboard","static get numLock",""),!1},enumerable:!1,configurable:!0}),Object.defineProperty(e,"hasVirtualKeyboard",{get:function(){return Tt.throwPIR("playerglobals/ui/Keyboard","static get hasVirtualKeyboard",""),!1},enumerable:!1,configurable:!0}),Object.defineProperty(e,"physicalKeyboardType",{get:function(){return Tt.throwPIR("playerglobals/ui/Keyboard","static get physicalKeyboardType",""),""},enumerable:!1,configurable:!0}),e.isAccessible=function(){return Tt.throwPIR("playerglobals/ui/Keyboard","static isAccessiblek",""),!0},e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e}(B_),dL=function(t){function e(){var e=t.call(this)||this;return e._builtInItems=new e.sec.flash.ui.ContextMenuBuiltInItems,e._customItems=[],e._clipboardItems=e.sec.flash.ui.ContextMenuClipboardItems(),e}return Zg(e,t),Object.defineProperty(e,"isSupported",{get:function(){return Tt.throwPIR("playerglobals/ui/ContextMenu","isSupported",""),!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"builtInItems",{get:function(){return Tt.throwPIR("playerglobals/ui/ContextMenu","get builtInItems",""),this._builtInItems},set:function(t){Tt.throwPIR("playerglobals/ui/ContextMenu","set builtInItems",""),this._builtInItems=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"customItems",{get:function(){return Tt.throwPIR("playerglobals/ui/ContextMenu","get customItems",""),this.sec.createArrayUnsafe(this._customItems)},set:function(t){Tt.throwPIR("playerglobals/ui/ContextMenu","set customItems",""),this._customItems=t.value},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"link",{get:function(){return Tt.throwPIR("playerglobals/ui/ContextMenu","get link",""),this._link},set:function(t){Tt.throwPIR("playerglobals/ui/ContextMenu","set link",""),this._link=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clipboardMenu",{get:function(){return Tt.throwPIR("playerglobals/ui/ContextMenu","set clipboardMenu",""),this._clipboardMenu},set:function(t){t=!!t,Tt.throwPIR("playerglobals/ui/ContextMenu","set clipboardMenu",""),this._clipboardMenu=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clipboardItems",{get:function(){return Tt.throwPIR("playerglobals/ui/ContextMenu","get clipboardItems",""),this._clipboardItems},set:function(t){Tt.throwPIR("playerglobals/ui/ContextMenu","set clipboardItems",""),this._clipboardItems=t},enumerable:!1,configurable:!0}),e.prototype.hideBuiltInItems=function(){var t=this.builtInItems;t&&(t.save=!1,t.zoom=!1,t.quality=!1,t.play=!1,t.loop=!1,t.rewind=!1,t.forwardAndBack=!1,t.print=!1)},e.prototype.clone=function(){var t=new this.sec.flash.ui.ContextMenu;t._builtInItems=this._builtInItems.clone(),this.cloneLinkAndClipboardProperties(t);for(var e=this._customItems,n=0;n<e.length;n++)t._customItems.push(e[n].clone());return t},e.prototype.cloneLinkAndClipboardProperties=function(t){Tt.throwPIR("playerglobals/ui/ContextMenu","cloneLinkAndClipboardProperties","")},e.classInitializer=null,e}(function(t){function e(){return t.call(this)||this}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e}(GO)),fL=function(t){function e(e,n,i,r){void 0===n&&(n=!1),void 0===i&&(i=!0),void 0===r&&(r=!0);var o=t.call(this)||this;return e=a_(e),n=!!n,i=!!i,r=!!r,o._caption=e||"",o._separatorBefore=n,o._enabled=i,o._visible=r,o}return Zg(e,t),Object.defineProperty(e.prototype,"caption",{get:function(){return this._caption},set:function(t){t=a_(t),this._caption=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"separatorBefore",{get:function(){return this._separatorBefore},set:function(t){t=!!t,this._separatorBefore=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"visible",{get:function(){return this._visible},set:function(t){t=!!t,this._visible=t},enumerable:!1,configurable:!0}),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e}(kM),gL=function(t){function e(){var e=t.call(this)||this;return e._save=!0,e._zoom=!0,e._quality=!0,e._play=!0,e._loop=!0,e._rewind=!0,e._forwardAndBack=!0,e._print=!0,e}return Zg(e,t),Object.defineProperty(e.prototype,"save",{get:function(){return this._save},set:function(t){this._save=!!t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"zoom",{get:function(){return this._zoom},set:function(t){this._zoom=!!t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"quality",{get:function(){return this._quality},set:function(t){this._quality=!!t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"play",{get:function(){return this._play},set:function(t){this._play=!!t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"loop",{get:function(){return this._loop},set:function(t){this._loop=!!t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rewind",{get:function(){return this._rewind},set:function(t){this._rewind=!!t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"forwardAndBack",{get:function(){return this._forwardAndBack},set:function(t){this._forwardAndBack=!!t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"print",{get:function(){return this._print},set:function(t){this._print=!!t},enumerable:!1,configurable:!0}),e.prototype.clone=function(){var t=new e;return t._save=this._save,t._zoom=this._zoom,t._quality=this._quality,t._play=this._play,t._loop=this._loop,t._rewind=this._rewind,t._forwardAndBack=this._forwardAndBack,t._print=this._print,t},e.classInitializer=null,e}(B_),_L=function(t){function e(){var e=t.call(this)||this;return e._cut=!0,e._copy=!0,e._paste=!0,e._clear=!0,e._selectAll=!0,e}return Zg(e,t),Object.defineProperty(e.prototype,"cut",{get:function(){return Tt.throwPIR("playerglobals/ui/ContextMenuClipboardItems","get cut",""),this._cut},set:function(t){Tt.throwPIR("playerglobals/ui/ContextMenuClipboardItems","set cut",""),this._cut=!!t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"copy",{get:function(){return Tt.throwPIR("playerglobals/ui/ContextMenuClipboardItems","get copy",""),this._copy},set:function(t){Tt.throwPIR("playerglobals/ui/ContextMenuClipboardItems","set copy",""),this._copy=!!t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"paste",{get:function(){return Tt.throwPIR("playerglobals/ui/ContextMenuClipboardItems","get paste",""),this._paste},set:function(t){Tt.throwPIR("playerglobals/ui/ContextMenuClipboardItems","set paste",""),this._paste=!!t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clear",{get:function(){return Tt.throwPIR("playerglobals/ui/ContextMenuClipboardItems","get clear",""),this._clear},set:function(t){Tt.throwPIR("playerglobals/ui/ContextMenuClipboardItems","set clear",""),this._clear=!!t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selectAll",{get:function(){return Tt.throwPIR("playerglobals/ui/ContextMenuClipboardItems","get selectAll",""),this._selectAll},set:function(t){Tt.throwPIR("playerglobals/ui/ContextMenuClipboardItems","set selectAll",""),this._selectAll=!!t},enumerable:!1,configurable:!0}),e.prototype.clone=function(){var t=new e;return t._cut=this._cut,t._copy=this._copy,t._paste=this._paste,t._clear=this._clear,t._selectAll=this._selectAll,t},e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e}(B_),mL=function(t){function e(){return t.call(this,void 0)||this}return Zg(e,t),Object.defineProperty(e,"numDevices",{get:function(){return Tt.throwPIR("playerglobals/ui/GameInput","static get numDevices",""),0},enumerable:!1,configurable:!0}),Object.defineProperty(e,"isSupported",{get:function(){return Tt.throwPIR("playerglobals/ui/GameInput","static get isSupported",""),!1},enumerable:!1,configurable:!0}),e.getDeviceAt=function(t){return Tt.throwPIR("playerglobals/ui/GameInput","static getDeviceAt",""),this.sec.throwError("RangeError",w_.ParamRangeError,"index"),null},e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e}(GO),yL=function(t){function e(){return t.call(this)||this}return Zg(e,t),Object.defineProperty(e.prototype,"numValues",{get:function(){return Tt.throwPIR("playerglobals/ui/GameInputControl","get numValues",""),0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"index",{get:function(){return Tt.throwPIR("playerglobals/ui/GameInputControl","get index",""),0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"relative",{get:function(){return Tt.throwPIR("playerglobals/ui/GameInputControl","get relative",""),!0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return Tt.throwPIR("playerglobals/ui/GameInputControl","get type",""),""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hand",{get:function(){return Tt.throwPIR("playerglobals/ui/GameInputControl","get hand",""),""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"finger",{get:function(){return Tt.throwPIR("playerglobals/ui/GameInputControl","get finger",""),""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"device",{get:function(){return Tt.throwPIR("playerglobals/ui/GameInputControl","get device",""),null},enumerable:!1,configurable:!0}),e.prototype.getValueAt=function(t){return Tt.throwPIR("playerglobals/ui/GameInputControl","getValueAt",""),0},e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e}(GO),AL=function(t){function e(){return t.call(this)||this}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.MOVEMENT="movement",e.ROTATION="rotation",e.DIRECTION="direction",e.ACCELERATION="acceleration",e.BUTTON="button",e.TRIGGER="trigger",e}(B_),vL=function(t){function e(){return t.call(this)||this}return Zg(e,t),Object.defineProperty(e.prototype,"numControls",{get:function(){return Tt.throwPIR("playerglobals/ui/GameInputDevice","get numControls",""),0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sampleInterval",{get:function(){Tt.throwPIR("playerglobals/ui/GameInputDevice","get sampleInterval","")},set:function(t){Tt.throwPIR("playerglobals/ui/GameInputDevice","set sampleInterval","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return Tt.throwPIR("playerglobals/ui/GameInputDevice","get enabled",""),!0},set:function(t){Tt.throwPIR("playerglobals/ui/GameInputDevice","set enabled","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return Tt.throwPIR("playerglobals/ui/GameInputDevice","get name",""),""},enumerable:!1,configurable:!0}),e.prototype.getControlAt=function(t){return Tt.throwPIR("playerglobals/ui/GameInputDevice","getControlAt",""),null},e.prototype.startCachingSamples=function(t,e){Tt.throwPIR("playerglobals/ui/GameInputDevice","startCachingSamples","")},e.prototype.stopCachingSamples=function(){Tt.throwPIR("playerglobals/ui/GameInputDevice","stopCachingSamples","")},e.prototype.getCachedSamples=function(t,e){return Tt.throwPIR("playerglobals/ui/GameInputDevice","getCachedSamples",""),0},e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.MAX_BUFFER_SIZE=4800,e}(GO),bL=function(t){function e(){return t.call(this)||this}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.THUMB="thumb",e.INDEX="index",e.MIDDLE="middle",e.UNKNOWN="unknown",e}(B_),CL=function(t){function e(){return t.call(this)||this}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.RIGHT="right",e.LEFT="left",e.UNKNOWN="unknown",e}(B_),xL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zg(e,t),Object.defineProperty(e,"cursor",{get:function(){return e._cursor},set:function(t){e._cursor=t},enumerable:!1,configurable:!0}),Object.defineProperty(e,"supportsCursor",{get:function(){return Tt.throwPIR("playerglobals/ui/Mouse","static get supportsCursor",""),!0},enumerable:!1,configurable:!0}),Object.defineProperty(e,"supportsNativeCursor",{get:function(){return Tt.throwPIR("playerglobals/ui/Mouse","static get supportsNativeCursor",""),!0},enumerable:!1,configurable:!0}),e.hide=function(){this.sec.player.mouseManager.showCursor=!1},e.show=function(){this.sec.player.mouseManager.showCursor=!0},e.registerCursor=function(t,e){Tt.throwPIR("playerglobals/ui/Mouse","static registerCursor","")},e.unregisterCursor=function(t){Tt.throwPIR("playerglobals/ui/Mouse","static unregisterCursor","")},e}(B_),IL=function(){function t(){}return t.GESTURE="gesture",t.NONE="none",t.TOUCH_POINT="touchPoint",t}(),EL=function(){function t(){}return Object.defineProperty(t,"inputMode",{get:function(){return Tt.throwPIR("playerglobals/ui/Multitouch","static get inputMode",""),""},set:function(t){Tt.throwPIR("playerglobals/ui/Multitouch","static set inputMode","")},enumerable:!1,configurable:!0}),Object.defineProperty(t,"mapTouchToMouse",{get:function(){return Tt.throwPIR("playerglobals/ui/Multitouch","static get mapTouchToMouse",""),!1},set:function(t){Tt.throwPIR("playerglobals/ui/Multitouch","static set mapTouchToMouse","")},enumerable:!1,configurable:!0}),Object.defineProperty(t,"maxTouchPoints",{get:function(){return Tt.throwPIR("playerglobals/ui/Multitouch","static get maxTouchPoints",""),0},enumerable:!1,configurable:!0}),Object.defineProperty(t,"supportedGestures",{get:function(){return Tt.throwPIR("playerglobals/ui/Multitouch","static get supportedGestures",""),[]},enumerable:!1,configurable:!0}),Object.defineProperty(t,"supportsGestureEvents",{get:function(){return Tt.throwPIR("playerglobals/ui/Multitouch","static get supportsGestureEvents",""),!1},enumerable:!1,configurable:!0}),Object.defineProperty(t,"supportsTouchEvents",{get:function(){return Tt.throwPIR("playerglobals/ui/Multitouch","static get supportsTouchEvents",""),!1},enumerable:!1,configurable:!0}),t}(),wL=function(t){function e(e,n){var i=t.call(this)||this;return i._delay=+e,i._repeatCount=0|n,i._iteration=0,i}return Zg(e,t),Object.defineProperty(e.prototype,"running",{get:function(){return this._running},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"delay",{get:function(){return this._delay},set:function(t){((t=+t)<0||!isFinite(t))&&this.sec.throwError("RangeError",w_.DelayRangeError),this._delay=t,this._running&&(this.stop(),this.start())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"repeatCount",{get:function(){return this._repeatCount},set:function(t){this._repeatCount=0|t,this._repeatCount&&this._running&&this._iteration>=this._repeatCount&&this.stop()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentCount",{get:function(){return this._iteration},enumerable:!1,configurable:!0}),e.prototype.reset=function(){this._running&&this.stop(),this._iteration=0},e.prototype.stop=function(){this._running=!1,window.clearInterval(this._interval)},e.prototype.start=function(){this._running||(this._running=!0,this._interval=window.setInterval(this._tick.bind(this),this._delay))},e.prototype._tick=function(){if(this._iteration++,this._running){if(e.dispatchingEnabled)try{this.dispatchEvent(new this.sec.flash.events.TimerEvent("timer",!0,!1))}catch(t){}if(0!==this._repeatCount&&this._iteration>=this._repeatCount){this.stop();try{this.dispatchEvent(new this.sec.flash.events.TimerEvent(MB.TIMER_COMPLETE,!1,!1))}catch(t){}}}},e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.dispatchingEnabled=!0,e}(GO),SL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zg(e,t),e.$BgDEFLATE="deflate",e.$BgLZMA="lzma",e.$BgZLIB="zlib",e}(B_),DL=function(t){function e(e,n,i,r){void 0===e&&(e=null),void 0===n&&(n=null),void 0===i&&(i=null),void 0===r&&(r="rotate0");var o=t.call(this,n,i,r)||this;return o._elements=e?e._buffer:[],o}return Zg(e,t),e.prototype.setTextBlock=function(e){t.prototype.setTextBlock.call(this,e);for(var n=0;n<this._elements.length;n++)this._elements[n].setTextBlock(e),this._elements[n].setGroupElement(this)},Object.defineProperty(e.prototype,"elementCount",{get:function(){return this._elements.length},enumerable:!1,configurable:!0}),e.prototype.getElementAt=function(t){return this._elements[t]},e.prototype.setElements=function(t){this._elements=t._buffer;for(var e=0;e<this._elements.length;e++)this._elements[e].setTextBlock(this._textBlock),this._elements[e].setGroupElement(this);this._textBlock&&this._textBlock.setTextDataDirty()},e.prototype.groupElements=function(t,e){return Tt.throwPIR("playerglobals/text/engine/GroupElement","groupElements",""),null},e.prototype.ungroupElements=function(t){Tt.throwPIR("playerglobals/text/engine/GroupElement","ungroupElements","")},e.prototype.mergeTextElements=function(t,e){return Tt.throwPIR("playerglobals/text/engine/GroupElement","mergeTextElements",""),null},e.prototype.splitTextElement=function(t,e){return Tt.throwPIR("playerglobals/text/engine/GroupElement","groupElements",""),null},e.prototype.replaceElements=function(t,e,n){var i=0;e-t>n._buffer.length&&console.warn("[GroupElement] - replaceElements error with range and vector size");for(var r=t;r<=e;r++)this._elements[r]=n._buffer[i++];for(r=0;r<this._elements.length;r++)this._elements[r].setTextBlock(this._textBlock),this._elements[r].setGroupElement(this);return this._textBlock&&this._textBlock.setTextDataDirty(),n},e.prototype.getElementAtCharIndex=function(t){return null},e.forceNativeConstructor=!0,e.forceNativeMethods=!0,e}(NN),TL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zg(e,t),e.createObjectWithPrototype=function(t){var e=t.sec.AXObject.axConstruct([]);for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},e.forceNativeConstructor=!1,e.forceNativeMethods=!0,e}(B_),PL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zg(e,t),e.prototype.checkNamespace=function(t){var e=t.$Bgnamespace();if(this._textFlowNamespace){if(e.uri!=this._textFlowNamespace.uri)return!1}else{if(e.uri!=this.$Bgns.uri)return!1;this._textFlowNamespace=e}return!0},e.forceNativeConstructor=!1,e.forceNativeMethods=!0,e}(B_);function OL(t,e){YD(t,e)}!function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Zg(e,t),Object.defineProperty(e.prototype,"text",{set:function(t){console.log("set text native",t)},enumerable:!1,configurable:!0}),e.forceNativeConstructor=!1,e.forceNativeMethods=!0}(B_);var ML=function(){},BL=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.flash={display:{EventDispatcher:GO,DisplayObject:lM,DisplayObjectContainer:dM,Stage:OM,Loader:SM,LoaderInfo:PM,MovieClip:gM,Graphics:FM,Bitmap:_M,BitmapData:yM,SimpleButton:VM,Sprite:fM,Shape:jM,FrameLabel:RM},events:{EventDispatcher:GO,Event:kO,FocusEvent:hM,KeyboardEvent:cM,MouseEvent:QO,ProgressEvent:DM,IOErrorEvent:xM,TimerEvent:MB},external:{ExternalInterface:FB},filters:{BevelFilter:ZO,BitmapFilter:qO,BlurFilter:nM,ColorMatrixFilter:rM,ConvolutionFilter:iM,DisplacementMapFilter:UB,DropShadowFilter:WO,GlowFilter:JO,GradientBevelFilter:eM,GradientGlowFilter:tM},text:{TextField:mN,TextFormat:yN,TextSnapshot:TN,TextLineMetrics:DN},geom:{Point:ZM,Rectangle:tB,Matrix:WM,ColorTransform:KM,Transform:eB,Vector3D:nB,Matrix3D:$M},net:{URLRequest:BM,URLLoader:eN,URLVariables:MM,SharedObject:tN},system:{ApplicationDomain:EM,Capabilities:hN,LoaderContext:wM,Security:dN,fscommand:pN},ui:{ContextMenu:dL,ContextMenuItem:fL,ContextMenuBuiltInItems:gL,Mouse:ML},utils:{ByteArray:iD},media:{Sound:IM,SoundChannel:GB,SoundTransform:VB,SoundMixer:QB},xml:{XMLDocument:XMLDocument,XMLNode:jD}},e}return Zg(e,t),e}(aO);function NL(t,e){return fetch((n=t,i=n.indexOf("://"),r="/"===n[0]?"/":"",o=n.split(/[\\|/]/).filter(Boolean),i>-1&&(o[0]+="/"),r+o.join("/"))).then((function(t){if(!t.ok)throw"Ups: ".concat(t.statusText,"(").concat(t.status,")");return"json"===e?t.json():t.arrayBuffer()})).catch((function(e){throw new Error("Unable to load: "+t+": "+e)}));var n,i,r,o}var LL=function(){function t(){}return Object.defineProperty(t.prototype,"stage",{get:function(){return this._stage},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"content",{get:function(){return this._content},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){console.log("dispose PlayerGlobal"),EM.currentDomain=null,tN._sharedObjects={}},t.prototype.createSecurityDomain=function(e,n,i){var r=this;this._avmStage=e,this._avmStage.avmTestHandler&&(xO.print=function(t,n){var i,r,o="";if(2==arguments.length)o=null===(i=arguments[1])||void 0===i?void 0:i.toString();else for(var a=1;a<arguments.length;a++)o+=null===(r=arguments[a])||void 0===r?void 0:r.toString(),a!==arguments.length-1&&(o+=" ");var s=o.split("\n");for(a=0;a<s.length;a++)console.log("%c Test-Trace from SWF:","color: DodgerBlue",s[a]),e.avmTestHandler.addMessage(s[a])}),OL("flashx.textLayout.conversion.BaseTextLayoutImporter",PL),OL("flashx.textLayout.property.Property",TL),OL("flash.desktop.Clipboard",NM),OL("flash.desktop.ClipboardFormats",LM),OL("flash.display.Bitmap",_M),OL("flash.display.BitmapData",yM),OL("flash.display.BlendMode",rn),OL("flash.display.DisplayObject",lM),OL("flash.display.DisplayObjectContainer",dM),OL("flash.display.FrameLabel",RM),OL("flash.display.Graphics",FM),OL("flash.display.InteractiveObject",pM),OL("flash.display.Loader",SM),OL("flash.display.LoaderInfo",PM),OL("flash.display.MovieClip",gM),OL("flash.display.NativeMenuItem",kM),OL("flash.display.Scene",UM),OL("flash.display.Shape",jM),OL("flash.display.SimpleButton",VM),OL("flash.display.Sprite",fM),OL("flash.display.Stage",OM),OL("flash.errors.EOFError",GM),OL("flash.errors.IllegalOperationError",zM),OL("flash.errors.InvalidSWFError",HM),OL("flash.errors.IOError",QM),OL("flash.errors.MemoryError",XM),OL("flash.errors.ScriptTimeoutError",YM),OL("flash.errors.StackOverflowError",qM),OL("flash.events.AccelerometerEvent",oB),OL("flash.events.ActivityEvent",aB),OL("flash.events.AsyncErrorEvent",sB),OL("flash.events.ContextMenuEvent",uB),OL("flash.events.DataEvent",lB),OL("flash.events.ErrorEvent",CM),OL("flash.events.Event",kO),OL("flash.events.EventDispatcher",GO),OL("flash.events.EventPhase",cB),OL("flash.events.FocusEvent",hM),OL("flash.events.FullScreenEvent",hB),OL("flash.events.GameInputEvent",pB),OL("flash.events.GeolocationEvent",dB),OL("flash.events.GestureEvent",fB),OL("flash.events.GesturePhase",gB),OL("flash.events.HTTPStatusEvent",_B),OL("flash.events.IMEEvent",mB),OL("flash.events.IOErrorEvent",xM),OL("flash.events.KeyboardEvent",cM),OL("flash.events.MouseEvent",QO),OL("flash.events.NetDataEvent",yB),OL("flash.events.NetStatusEvent",AB),OL("flash.events.OutputProgressEvent",vB),OL("flash.events.PressAndTabGestureEvent",bB),OL("flash.events.ProgressEvent",DM),OL("flash.events.SampleDataEvent",CB),OL("flash.events.ShaderEvent",xB),OL("flash.events.SoftKeyboardEvent",IB),OL("flash.events.SoftKeyboardTrigger",EB),OL("flash.events.StageVideoAvailabilityEvent",wB),OL("flash.events.StageVideoEvent",SB),OL("flash.events.StatusEvent",DB),OL("flash.events.SyncEvent",TB),OL("flash.events.TextEvent",bM),OL("flash.events.ThrottleEvent",PB),OL("flash.events.ThrottleType",OB),OL("flash.events.TimerEvent",MB),OL("flash.events.TouchEvent",BB),OL("flash.events.TransformGestureEvent",NB),OL("flash.events.UncaughtErrorEvent",LB),OL("flash.events.UncaughtErrorEvents",vM),OL("flash.events.VideoEvent",RB),OL("flash.external.ExternalInterface",FB),OL("flash.filters.BevelFilter",ZO),OL("flash.filters.BitmapFilter",qO),OL("flash.filters.BlurFilter",nM),OL("flash.filters.ColorMatrixFilter",rM),OL("flash.filters.ConvolutionFilter",iM),OL("flash.filters.DisplacementMapFilter",UB),OL("flash.filters.DropShadowFilter",WO),OL("flash.filters.GlowFilter",JO),OL("flash.filters.GradientBevelFilter",eM),OL("flash.filters.GradientGlowFilter",tM),OL("flash.geom.ColorTransform",KM),OL("flash.geom.Matrix",WM),OL("flash.geom.Matrix3D",$M),OL("flash.geom.Point",ZM),OL("flash.geom.Rectangle",tB),OL("flash.geom.Transform",eB),OL("flash.geom.Vector3D",nB),OL("flash.globalization.LocaleID",rB),OL("flash.globalization.NumberFormatter",jB),OL("flash.media.Sound",IM),OL("flash.media.SoundChannel",GB),OL("flash.media.SoundMixer",QB),OL("flash.media.SoundTransform",VB),OL("flash.net.FileFilter",zB),OL("flash.net.FileReference",qB),OL("flash.net.LocalConnection",rN),OL("flash.net.SharedObject",tN),OL("flash.net.URLLoader",eN),OL("flash.net.URLRequest",BM),OL("flash.net.URLVariables",MM),OL("flash.system.ApplicationDomain",EM),OL("flash.system.Capabilities",hN),OL("flash.system.LoaderContext",wM),OL("flash.system.Security",dN),OL("flash.system.SecurityDomain",oN),OL("flash.system.System",fN),OL("flash.text.CSMSettings",SN),OL("flash.text.Font",gN),OL("flash.text.FontType",wN),OL("flash.text.StaticText",vN),OL("flash.text.StyleSheet",_N),OL("flash.text.TextColorType",EN),OL("flash.text.TextDisplayMode",IN),OL("flash.text.TextField",mN),OL("flash.text.TextFormat",yN),OL("flash.text.TextLineMetrics",DN),OL("flash.text.TextRenderer",bN),OL("flash.text.TextSnapshot",TN),OL("flash.text.TextFormatDisplay",CN),OL("flash.text.TextExtent",xN),OL("flash.text.TextRun",AN),OL("flash.text.engine.BreakOpportunity",ON),OL("flash.text.engine.CFFHinting",MN),OL("flash.text.engine.ContentElement",NN),OL("flash.text.engine.DigitCase",LN),OL("flash.text.engine.DigitWidth",RN),OL("flash.text.engine.EastAsianJustifier",kN),OL("flash.text.engine.ElementFormat",VN),OL("flash.text.engine.FontDescription",QN),OL("flash.text.engine.FontLookup",GN),OL("flash.text.engine.FontMetrics",zN),OL("flash.text.engine.FontMetrics",zN),OL("flash.text.engine.FontPosture",HN),OL("flash.text.engine.FontWeight",XN),OL("flash.text.engine.GraphicElement",YN),OL("flash.text.engine.GroupElement",DL),OL("flash.text.engine.JustificationStyle",qN),OL("flash.text.engine.Kerning",KN),OL("flash.text.engine.LigatureLevel",WN),OL("flash.text.engine.LineJustification",JN),OL("flash.text.engine.RenderingMode",$N),OL("flash.text.engine.SpaceJustifier",ZN),OL("flash.text.engine.TabAlignment",tL),OL("flash.text.engine.TabStop",eL),OL("flash.text.engine.TextBaseline",UN),OL("flash.text.engine.TextBlock",oL),OL("flash.text.engine.TextElement",aL),OL("flash.text.engine.TextJustifier",FN),OL("flash.text.engine.TextLine",uL),OL("flash.text.engine.TextLineCreationResult",nL),OL("flash.text.engine.TextLineMirrorRegion",lL),OL("flash.text.engine.TextLineValidity",sL),OL("flash.text.engine.TextRotation",cL),OL("flash.text.engine.TypographicCase",hL),OL("flash.text.ime.CompositionAttributeRange",PN),OL("flash.ui.ContextMenu",dL),OL("flash.ui.ContextMenuBuiltInItems",gL),OL("flash.ui.ContextMenuClipboardItems",_L),OL("flash.ui.ContextMenuItem",fL),OL("flash.ui.GameInput",mL),OL("flash.ui.GameInputControl",yL),OL("flash.ui.GameInputControlType",AL),OL("flash.ui.GameInputDevice",vL),OL("flash.ui.GameInputFinger",bL),OL("flash.ui.GameInputHand",CL),OL("flash.ui.Keyboard",pL),OL("flash.ui.Mouse",xL),OL("flash.ui.Multitouch",EL),OL("flash.ui.MultitouchInputMode",IL),OL("flash.utils.ByteArray",iD),OL("flash.utils.CompressionAlgorithm",SL),OL("flash.utils.Timer",wL),OL("flash.xml.XMLDocument",VD),OL("flash.xml.XMLNode",jD),qD("flash.system.fscommand",pN),FB.ensureInitialized();var o=t.builtinsBaseUrl,a=[NL("".concat(o,"/builtin.abc"),"arraybuffer")];return i&LO.Playerglobal&&a.push(NL("".concat(o,"/playerglobal.abcs"),"arraybuffer"),NL("".concat(o,"/playerglobal.json"),"json"),NL("".concat(o,"/avmplus.abc"),"arraybuffer")),Promise.all(a).then((function(t){var o=t[0],a=t[1],s=t[2],u=t[3],l=new BL,c=new NO({url:"builtin.abc",app:l.system},new Uint8Array(o));if(l.swfVersion=n.swfVersion,l.system.loadABC(c),l.initialize(),l.system.executeABC(c),l.player=e,!(i&LO.Playerglobal))return null;var h=new RO(l.system,new Uint8Array(a),s);l.addCatalog(h);var p=new NO({url:"avmplus.File",app:l.system},new Uint8Array(u));return l.system.loadAndExecuteABC(p),r._constructStage(l,n),new AM(l)}))},t.prototype._constructStage=function(t,e){this._contentLoaderInfo=new t.flash.display.LoaderInfo(this,this._avmStage.root),this._contentLoaderInfo.url=new URL(e.url,document.baseURI).href,this._applicationDomain=new t.flash.system.ApplicationDomain,this._contentLoaderInfo._setApplicationDomain(this._applicationDomain),iP.loaderContext=new t.flash.system.LoaderContext(!1,this._applicationDomain),this._stage=new t.flash.display.Stage,t.flash.display.DisplayObject.axClass._activeStage=this._stage,this._avmStage.root.adapter=this._stage,this._stage.adaptee=this._avmStage.root},t.prototype.enterFrame=function(){this._stage&&this._stage.enterFrame()},t.prototype.resizeStage=function(){this._stage&&this._stage.resizeCallback()},t.prototype.addAsset=function(t,e){switch(t.adapter.loaderInfo=this._contentLoaderInfo,t.assetType){case Qp.assetType:case Xp.assetType:case Ye.assetType:this._applicationDomain.addDefinition(t.name,t);break;case D.assetType:this._applicationDomain.addAudioDefinition(t.name,t);break;case rp.assetType:this._applicationDomain.addFontDefinition(t.name,t);break;case gl.assetType:this._applicationDomain.addDefinition(t.name,t);break;case Rl.assetType:this._applicationDomain.addDefinition(t.name,t),e&&t.isAVMScene&&(this._content=t.adapter.clone(),this._content.loaderInfo=this._contentLoaderInfo,this._content.adaptee.reset(),this._content.adaptee.firstFrameOnSWFStart=!0,Nl.invalidAS3Constructors=!0,this._stage.adaptee.addChild(this._content.adaptee),Nl.execute_as3_constructors_recursiv(this._content.adaptee),this._content.dispatchStaticEvent("added",this._content),this._content.dispatch_ADDED_TO_STAGE(!0));break;case"[asset Generic]":this._applicationDomain.addDefinition(t.name,t);break;case sl.assetType:case Al.assetType:break;default:console.warn("Loaded unhandled asset-type",t.assetType)}},t.builtinsBaseUrl="./assets/builtins/",t}();console.debug("AwayFL - PlayerGlobal - 0.2.381");var RL=function(t,e){return RL=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},RL(t,e)};function FL(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}RL(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var kL=function(){return kL=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},kL.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var UL=function(t,e,n,i,r){this.flags=t,this.value=e,this.get=n,this.set=i,this.watcher=r},jL=function(t){function e(e){var n=t.call(this)||this;n.initialDepth=0,n.scriptRefsToChilds={},n._isGhost=!1,n._avm1Context=e,n._ownProperties=Object.create(null),n.scriptRefsToChilds={},n._prototype=null,n._blockedByScript=!1,n._ctBlockedByScript=!1,n._visibilityByScript=!1;var i=n,r=new UL(131,null,{alCall:function(t,e){return i.alPrototype}},{alCall:function(t,e){i.alPrototype=e[0]}});return n.alSetOwnProperty("__proto__",r),n}return FL(e,t),Object.defineProperty(e.prototype,"isGhost",{get:function(){return this._isGhost},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"eventObserver",{get:function(){return this._eventObserver},set:function(t){this._eventObserver=t},enumerable:!1,configurable:!0}),e.prototype.makeGhost=function(){this.deleteOwnProperties(),this.alPut("__proto__",null),this._isGhost=!0},e.prototype.dispose=function(){},e.prototype.updateFilters=function(t){},e.prototype.isBlockedByScript=function(){return this._blockedByScript},e.prototype.isColorTransformByScript=function(){return this._ctBlockedByScript},e.prototype.isVisibilityByScript=function(){return this._visibilityByScript},e.prototype.initAdapter=function(){},e.prototype.freeFromScript=function(){this.protoTypeChanged=!1,this._blockedByScript=!1,this._ctBlockedByScript=!1,this._visibilityByScript=!1},e.prototype.clone=function(){return new e(this._avm1Context)},Object.defineProperty(e.prototype,"context",{get:function(){return this._avm1Context},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"alPrototype",{get:function(){return this._prototype},set:function(t){for(var e=t;e;){if(e===this)return;e=e.alPrototype}this._prototype=t},enumerable:!1,configurable:!0}),e.prototype.alGetPrototypeProperty=function(){return this.alGet("prototype")},e.prototype.alSetOwnPrototypeProperty=function(t){this.alSetOwnProperty("prototype",new UL(65,t))},e.prototype.alGetConstructorProperty=function(){return this.alGet("__constructor__")},e.prototype.alSetOwnConstructorProperty=function(t){this.alSetOwnProperty("__constructor__",new UL(65,t))},e.prototype._debugEscapeProperty=function(t){var e=this.context,n=xk(e,t);return e.isPropertyCaseSensitive||(n=n.toLowerCase()),"$Bg"+n},e.prototype.alGetOwnProperty=function(t){return this._isGhost?null:("string"!=typeof t||this.context.isPropertyCaseSensitive||(t=t.toLowerCase()),this._ownProperties[t])},e.prototype.alSetOwnProperty=function(t,e){if(!this._isGhost){var n=this.context.normalizeName(t);e.originalName||this.context.isPropertyCaseSensitive||(e.originalName=t),this._ownProperties[n]=e}},e.prototype.alHasOwnProperty=function(t){if(this._isGhost)return!1;var e=this.context.normalizeName(t);return!!this._ownProperties[e]},e.prototype.alDeleteOwnProperty=function(t){var e=this.context.normalizeName(t);delete this._ownProperties[e]},e.prototype.deleteOwnProperties=function(){for(var t=this.alGetOwnPropertiesKeys(),e=0;e<t.length;e++)this.alDeleteOwnProperty(t[e])},e.prototype.alGetOwnPropertiesKeys=function(){var t,e=[];if(this._isGhost)return e;if(this.context.isPropertyCaseSensitive)for(var n in this._ownProperties)1&(t=this._ownProperties[n]).flags||e.push(n);else for(var i in this._ownProperties)1&(t=this._ownProperties[i]).flags||e.push(t.originalName);return e},e.prototype.alGetProperty=function(t){if(this._isGhost)return null;var e=this.alGetOwnProperty(t);return e||(this._prototype?this._prototype.alGetProperty(t):void 0)},e.prototype.alGet=function(t){if(!this._isGhost){var e=this.context.normalizeName(t),n=this.alGetProperty(e);if(n){if(64&n.flags)return n.value;var i=n.get;return i?i.alCall(this):void 0}}},e.prototype.alCanPut=function(t){if(this._isGhost)return!1;var e=this.alGetOwnProperty(t);if(e)return 128&e.flags?!!e.set:!(4&e.flags);var n=this._prototype;return!n||n.alCanPut(t)},e.prototype.alPut=function(t,e){if(!this._isGhost){var n=t;if(t=this.context.normalizeName(t),e&&"object"==typeof e&&"symbol"===e.avmType&&"this"!=t&&"_parent"!=t&&!e.dynamicallyCreated&&e.adaptee&&e.adaptee.parent&&e.adaptee.parent.adapter&&e.adaptee.parent.adapter.scriptRefsToChilds&&(e.adaptee.parent.adapter.scriptRefsToChilds[e.adaptee.name]={obj:this,name:t}),this.alCanPut(t)){var i=this.alGetOwnProperty(t);if(i&&64&i.flags)return i.watcher&&(e=i.watcher.callback.alCall(this,[i.watcher.name,i.value,e,i.watcher.userData])),void(t in this._ownProperties?i.value=e:this.alSetOwnProperty(n,new UL(i.flags,e)));if(void 0!==e||"_x"!=t&&"_y"!=t&&"_xscale"!=t&&"_yscale"!=t&&"_width"!=t&&"_height"!=t){var r=this.alGetProperty(t);if(r&&128&r.flags){if(r.watcher){var o=r.get?r.get.alCall(this):void 0;e=r.watcher.callback.alCall(this,[r.watcher.name,o,e,r.watcher.userData])}r.set.alCall(this,[e])}else if(r&&r.watcher&&(e=r.watcher.callback.alCall(this,[r.watcher.name,r.value,e,r.watcher.userData])),e&&e.isTextVar){e=e.value,(a=new UL(r?r.flags:64,e)).isTextVar=!0,this.alSetOwnProperty(n,a)}else{var a=new UL(r?r.flags:64,e);this.alSetOwnProperty(n,a)}}}}},e.prototype.alHasProperty=function(t){return!this._isGhost&&!!this.alGetProperty(t)},e.prototype.alDeleteProperty=function(t){var e=this.alGetOwnProperty(t);return!e||!(2&e.flags)&&(this.alDeleteOwnProperty(t),!0)},e.prototype.alAddPropertyWatcher=function(t,e,n){if(this._isGhost)return!1;var i=this.alGetProperty(t);return!!i&&(i.watcher={name:t,callback:e,userData:n},!0)},e.prototype.alRemotePropertyWatcher=function(t){var e=this.alGetProperty(t);return!(!e||!e.watcher)&&(e.watcher=void 0,!0)},e.prototype.alDefaultValue=function(t){if(void 0===t&&(t=0),1===t){var e=this.alGet(this.context.normalizeName("toString"));if(Ok(e))return e.alCall(this);if(Ok(n=this.alGet(this.context.normalizeName("valueOf"))))return n.alCall(this)}else{var n;if(Ok(n=this.alGet(this.context.normalizeName("valueOf"))))return n.alCall(this);var i=this.alGet(this.context.normalizeName("toString"));if(Ok(i))return i.alCall(this)}return this},e.prototype.alGetKeys=function(){if(this._isGhost)return[];var t=this.alGetOwnPropertiesKeys(),e=this._prototype;if(!e)return t;var n=e.alGetKeys();if(0===t.length)return n;var i,r=this.context;if(r.isPropertyCaseSensitive){var o=Object.create(null),a=t.length;for(i=0;i<a;i++)o[t[i]]=!0;var s=n.length;for(i=0;i<s;i++)o[n[i]]=!0;return Object.getOwnPropertyNames(o)}var u=[t,n],l=Object.create(null),c=[],h=void 0,p=void 0,d=void 0;for(i=0;i<u.length;i++){h=u[i];for(var f=0;f<h.length;f++)p=h[f],l[d=r.normalizeName(p)]||(l[d]=!0,c.push(p))}return c},e}((function(){})),VL=function(t){function e(e){var n=t.call(this,e)||this;return n.alPrototype=e.builtins.Function.alGetPrototypeProperty(),n.isOnEnter=!1,n}return FL(e,t),e.prototype.alConstruct=function(t){throw new Error("not implemented AVM1Function.alConstruct")},e.prototype.alCall=function(t,e){throw new Error("not implemented AVM1Function.alCall")},e.prototype.toJSFunction=function(t){void 0===t&&(t=null);var e=this,n=this.context;return function(){var i=Array.prototype.slice.call(arguments,0);return n.executeFunction(e,t,i)}},e}(jL);function QL(t){if(!t)return new N(0,0);var e,n,i=t.context;return t instanceof jL&&(e=Dk(i,t.alGet("x")),n=Dk(i,t.alGet("y"))),new N(e,n)}function GL(t,e){e.alPut("x",t.x),e.alPut("y",t.y)}var zL=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.alPrototype=e.globals.Point.alGetPrototypeProperty(),r.alPut("x",n),r.alPut("y",i),r}return FL(e,t),e.fromAS3Point=function(t,n){return new e(t,n.x,n.y)},e}(jL),HL=function(t){function e(e){var n=t.call(this,e)||this;return Fk(n,{prototype:{value:new XL(e,n)},distance:{value:n.distance,writable:!0},interpolate:{value:n.interpolate,writable:!0},polar:{value:n.polar,writable:!0}}),n}return FL(e,t),e.prototype.alCall=function(t,e){return this.alConstruct(e)},e.prototype.alConstruct=function(t){return t&&t.length>0?new zL(this.context,t[0],t[1]):new zL(this.context,0,0)},e.prototype.distance=function(t,e){return N.distance(QL(t),QL(e))},e.prototype.interpolate=function(t,e,n){n=vk(this.context,n);var i=N.interpolate(QL(t),QL(e),n);return zL.fromAS3Point(this.context,i)},e.prototype.polar=function(t,e){return t=vk(this.context,t),e=vk(this.context,e),zL.fromAS3Point(this.context,N.polar(t,e))},e}(VL),XL=function(t){function e(e,n){var i=t.call(this,e)||this;return i.alPrototype=e.builtins.Object.alGetPrototypeProperty(),Fk(i,{constructor:{value:n,writable:!0},length:{get:i.getLength},add:{value:i.add,writable:!0},clone:{value:i.clone,writable:!0},equals:{value:i.equals,writable:!0},normalize:{value:i.normalize,writable:!0},offset:{value:i.offset,writable:!0},subtract:{value:i.subtract,writable:!0},toString:{value:i._toString,writable:!0}}),i}return FL(e,t),e.prototype.getLength=function(){return QL(this).length},e.prototype.add=function(t){return zL.fromAS3Point(this.context,QL(this).add(QL(t)))},e.prototype.clone=function(){var t=new zL(this.context);return this instanceof jL&&(t.alPut("x",this.alGet("x")),t.alPut("y",this.alGet("y"))),t},e.prototype.equals=function(t){return QL(this).equals(QL(t))},e.prototype.normalize=function(t){t=vk(this.context,t);var e=QL(this);e.normalize(t),GL(e,this)},e.prototype.offset=function(t,e){t=vk(this.context,t),e=vk(this.context,e);var n=QL(this);n.offset(t,e),GL(n,this)},e.prototype.subtract=function(t){return zL.fromAS3Point(this.context,QL(this).subtract(QL(t)))},e.prototype._toString=function(){return"(x="+this.alGet("x")+", y="+this.alGet("y")+")"},e}(jL);function YL(t){var e,n,i,r,o=t.context;return t instanceof jL&&(e=Dk(o,t.alGet("x")),n=Dk(o,t.alGet("y")),i=Dk(o,t.alGet("width")),r=Dk(o,t.alGet("height"))),new tt(e,n,i,r)}function qL(t,e){e.alPut("x",t.x),e.alPut("y",t.y),e.alPut("width",t.width),e.alPut("height",t.height)}var KL=function(t){function e(e,n,i,r,o){var a=t.call(this,e)||this;return a.alPrototype=e.globals.Rectangle.alGetPrototypeProperty(),a.alPut("x",n),a.alPut("y",i),a.alPut("width",r),a.alPut("height",o),a}return FL(e,t),e.fromAS3Rectangle=function(t,n){return new e(t,n.x,n.y,n.width,n.height)},e}(jL),WL=function(t){function e(e){var n=t.call(this,e)||this;return Fk(n,{prototype:{value:new JL(e,n)}}),n}return FL(e,t),e.prototype.alConstruct=function(t){return t&&t.length>0?new KL(this.context,t[0],t[1],t[2],t[3]):new KL(this.context,0,0,0,0)},e}(VL),JL=function(t){function e(e,n){var i=t.call(this,e)||this;return i.alPrototype=e.builtins.Object.alGetPrototypeProperty(),Fk(i,{constructor:{value:n,writable:!0},bottom:{get:i.getBottom,set:i.setBottom},bottomRight:{get:i.getBottomRight,set:i.setBottomRight},left:{get:i.getLeft,set:i.setLeft},right:{get:i.getRight,set:i.setRight},size:{get:i.getSize,set:i.setSize},top:{get:i.getTop,set:i.setTop},topLeft:{get:i.getTopLeft,set:i.setTopLeft},clone:{value:i.clone,writable:!0},contains:{value:i.contains,writable:!0},containsPoint:{value:i.containsPoint,writable:!0},containsRectangle:{value:i.containsRectangle,writable:!0},equals:{value:i.equals,writable:!0},inflate:{value:i.inflate,writable:!0},inflatePoint:{value:i.inflatePoint,writable:!0},intersection:{value:i.intersection,writable:!0},intersects:{value:i.intersects,writable:!0},isEmpty:{value:i.isEmpty,writable:!0},offset:{value:i.offset,writable:!0},offsetPoint:{value:i.offsetPoint,writable:!0},setEmpty:{value:i.setEmpty,writable:!0},toString:{value:i._toString,writable:!0},union:{value:i.union,writable:!0}}),i}return FL(e,t),e.prototype.getBottom=function(){return vk(this.context,this.alGet("y"))+vk(this.context,this.alGet("height"))},e.prototype.setBottom=function(t){this.alPut("height",vk(this.context,t)-vk(this.context,this.alGet("y")))},e.prototype.getBottomRight=function(){return new zL(this.context,e.prototype.getRight.call(this),e.prototype.getBottom.call(this))},e.prototype.setBottomRight=function(t){e.prototype.setRight.call(this,t.alGet("x")),e.prototype.setBottom.call(this,t.alGet("y"))},e.prototype.getLeft=function(){return vk(this.context,this.alGet("x"))},e.prototype.setLeft=function(t){this.alPut("x",vk(this.context,t))},e.prototype.getSize=function(){return new zL(this.context,this.alGet("width"),this.alGet("height"))},e.prototype.setSize=function(t){this.alPut("width",t.alGet("x")),this.alPut("height",t.alGet("y"))},e.prototype.getRight=function(){return vk(this.context,this.alGet("x"))+vk(this.context,this.alGet("width"))},e.prototype.setRight=function(t){this.alPut("width",vk(this.context,t)-vk(this.context,this.alGet("x")))},e.prototype.getTop=function(){return vk(this.context,this.alGet("y"))},e.prototype.setTop=function(t){this.alPut("y",vk(this.context,t))},e.prototype.getTopLeft=function(){return new zL(this.context,e.prototype.getLeft.call(this),e.prototype.getTop.call(this))},e.prototype.setTopLeft=function(t){e.prototype.setLeft.call(this,t.alGet("x")),e.prototype.setTop.call(this,t.alGet("y"))},e.prototype.clone=function(){var t=new KL(this.context);return this instanceof jL&&(t.alPut("x",this.alGet("x")),t.alPut("y",this.alGet("y")),t.alPut("width",this.alGet("width")),t.alPut("height",this.alGet("height"))),t},e.prototype.contains=function(t,e){return t=vk(this.context,t),e=vk(this.context,e),YL(this).contains(t,e)},e.prototype.containsPoint=function(t){var e=YL(this),n=QL(t);return e.containsPoint(n)},e.prototype.containsRectangle=function(t){var e=YL(this),n=YL(t);return e.containsRect(n)},e.prototype.equals=function(t){var e=YL(this),n=YL(t);return e.equals(n)},e.prototype.inflate=function(t,e){t=vk(this.context,t),e=vk(this.context,e);var n=YL(this);n.inflate(t,e),qL(n,this)},e.prototype.inflatePoint=function(t){var e=YL(this),n=QL(t);e.inflatePoint(n),qL(e,this)},e.prototype.intersection=function(t){var e=YL(this),n=YL(t);return KL.fromAS3Rectangle(this.context,e.intersection(n))},e.prototype.intersects=function(t){var e=YL(this),n=YL(t);return e.intersects(n)},e.prototype.isEmpty=function(){return YL(this).isEmpty()},e.prototype.offset=function(t,e){t=vk(this.context,t),e=vk(this.context,e);var n=YL(this);n.offset(t,e),qL(n,this)},e.prototype.offsetPoint=function(t){var e=YL(this),n=QL(t);e.offsetPoint(n),qL(e,this)},e.prototype.setEmpty=function(){this.alPut("x",0),this.alPut("y",0),this.alPut("width",0),this.alPut("height",0)},e.prototype._toString=function(){return"(x="+this.alGet("x")+", y="+this.alGet("y")+", w="+this.alGet("width")+", h="+this.alGet("height")+")"},e.prototype.union=function(t){var e=YL(this),n=YL(t);return KL.fromAS3Rectangle(this.context,e.union(n))},e}(jL);function $L(t,e){return void 0===t?e:t}function ZL(t){var e=t.context;return t instanceof tR?new O(Dk(e,$L(t._rawData[0],1)),Dk(e,$L(t._rawData[1],1)),Dk(e,$L(t._rawData[2],1)),Dk(e,$L(t._rawData[3],1)),Dk(e,$L(t._rawData[4],0)),Dk(e,$L(t._rawData[5],0)),Dk(e,$L(t._rawData[6],0)),Dk(e,$L(t._rawData[7],0))):new O(1,1,1,1,0,0,0,0)}var tR=function(t){function e(e,n,i,r,o,a,s,u,l){void 0===n&&(n=1),void 0===i&&(i=1),void 0===r&&(r=1),void 0===o&&(o=1),void 0===a&&(a=0),void 0===s&&(s=0),void 0===u&&(u=0),void 0===l&&(l=0);var c=t.call(this,e)||this;return c._rawData=[n,i,r,o,a,s,u,l],c.alPrototype=e.globals.ColorTransform.alGetPrototypeProperty(),Fk(c,{rgb:{get:c.getRgb,set:c.setRgb},ra:{get:c.getRM,set:c.setRM},ga:{get:c.getGM,set:c.setGM},ba:{get:c.getBM,set:c.setBM},aa:{get:c.getAM,set:c.setAM},rb:{get:c.getRO,set:c.setRO},gb:{get:c.getGO,set:c.setGO},bb:{get:c.getBO,set:c.setBO},ab:{get:c.getAO,set:c.setAO},redMultiplier:{get:c.getRedMultiplier,set:c.setRedMultiplier},greenMultiplier:{get:c.getGreenMultiplier,set:c.setGreenMultiplier},blueMultiplier:{get:c.getBlueMultiplier,set:c.setBlueMultiplier},alphaMultiplier:{get:c.getAlphaMultiplier,set:c.setAlphaMultiplier},redOffset:{get:c.getRedOffset,set:c.setRedOffset},greenOffset:{get:c.getGreenOffset,set:c.setGreenOffset},blueOffset:{get:c.getBlueOffset,set:c.setBlueOffset},alphaOffset:{get:c.getAlphaOffset,set:c.setAlphaOffset},concat:{value:c.concat,writable:!0},toString:{value:c._toString,writable:!0}}),c}return FL(e,t),e.prototype.getRedMultiplier=function(){return this._rawData[0]},e.prototype.setRedMultiplier=function(t){this._rawData[0]=t},e.prototype.getGreenMultiplier=function(){return this._rawData[1]},e.prototype.setGreenMultiplier=function(t){this._rawData[1]=t},e.prototype.getBlueMultiplier=function(){return this._rawData[2]},e.prototype.setBlueMultiplier=function(t){this._rawData[2]=t},e.prototype.getAlphaMultiplier=function(){return this._rawData[3]},e.prototype.setAlphaMultiplier=function(t){this._rawData[3]=t},e.prototype.getRedOffset=function(){return this._rawData[4]},e.prototype.setRedOffset=function(t){this._rawData[4]=t},e.prototype.getGreenOffset=function(){return this._rawData[5]},e.prototype.setGreenOffset=function(t){this._rawData[5]=t},e.prototype.getBlueOffset=function(){return this._rawData[6]},e.prototype.setBlueOffset=function(t){this._rawData[6]=t},e.prototype.getAlphaOffset=function(){return this._rawData[7]},e.prototype.setAlphaOffset=function(t){this._rawData[7]=t},e.prototype.getRM=function(){return 100*this._rawData[0]},e.prototype.setRM=function(t){this._rawData[0]=t/100},e.prototype.getGM=function(){return 100*this._rawData[1]},e.prototype.setGM=function(t){this._rawData[1]=t/100},e.prototype.getBM=function(){return 100*this._rawData[2]},e.prototype.setBM=function(t){this._rawData[2]=t/100},e.prototype.getAM=function(){return 100*this._rawData[3]},e.prototype.setAM=function(t){this._rawData[3]=t/100},e.prototype.getRO=function(){return this._rawData[4]},e.prototype.setRO=function(t){this._rawData[4]=t},e.prototype.getGO=function(){return this._rawData[5]},e.prototype.setGO=function(t){this._rawData[5]=t},e.prototype.getBO=function(){return this._rawData[6]},e.prototype.setBO=function(t){this._rawData[6]=t},e.prototype.getAO=function(){return this._rawData[7]},e.prototype.setAO=function(t){this._rawData[7]=t},e.prototype.getRgb=function(){return this._rawData[4]<<16|this._rawData[5]<<8|this._rawData[6]},e.prototype.setRgb=function(t){var e=P.float32ColorToARGB(t);this._rawData[4]=e[1],this._rawData[5]=e[2],this._rawData[6]=e[3],this._rawData[0]=0,this._rawData[1]=0,this._rawData[2]=0},e.prototype.concat=function(t){console.warn("AVM1ColorTransform concat is not implemented")},e.prototype._toString=function(){return"[object Object]"},e.fromAwayColorTransform=function(t,n){return new e(t,n.redMultiplier,n.greenMultiplier,n.blueMultiplier,n.alphaMultiplier,n.redOffset,n.greenOffset,n.blueOffset,n.alphaOffset)},e}(jL),eR=function(t){function e(e){var n=t.call(this,e)||this;return Fk(n,{prototype:{value:new nR(e,n)}}),n}return FL(e,t),e.prototype.alConstruct=function(t){var e=Object.create(tR.prototype);return t=t||[],tR.apply(e,[this.context].concat(t)),e},e}(VL),nR=function(t){function e(e,n){var i=t.call(this,e)||this;return i.alPrototype=e.builtins.Object.alGetPrototypeProperty(),Fk(i,{constructor:{value:n,writable:!0}}),i}return FL(e,t),e}(jL);function iR(t){var e,n,i,r,o,a,s=t.context;return t instanceof jL&&(e=Dk(s,t.alGet("a")),n=Dk(s,t.alGet("b")),i=Dk(s,t.alGet("c")),r=Dk(s,t.alGet("d")),o=Dk(s,t.alGet("tx")),a=Dk(s,t.alGet("ty"))),new L(e,n,i,r,o,a)}function rR(t,e){e.alPut("a",t.a),e.alPut("b",t.b),e.alPut("c",t.c),e.alPut("d",t.d),e.alPut("tx",t.tx),e.alPut("ty",t.ty)}var oR=function(t){function e(e,n,i,r,o,a,s){void 0===n&&(n=1),void 0===i&&(i=0),void 0===r&&(r=0),void 0===o&&(o=1),void 0===a&&(a=0),void 0===s&&(s=0);var u=t.call(this,e)||this;return u.alPrototype=e.globals.Matrix.alGetPrototypeProperty(),u.alPut("a",n),u.alPut("b",i),u.alPut("c",r),u.alPut("d",o),u.alPut("tx",a),u.alPut("ty",s),u}return FL(e,t),e.fromAS3Matrix=function(t,n){return new e(t,n.a,n.b,n.c,n.d,n.tx,n.ty)},e}(jL),aR=function(t){function e(e){var n=t.call(this,e)||this;return Fk(n,{prototype:{value:new sR(e,n)}}),n}return FL(e,t),e.prototype.alConstruct=function(t){return t&&t.length>0?new oR(this.context,t[0],t[1],t[2],t[3],t[4],t[5]):new oR(this.context)},e}(VL),sR=function(t){function e(e,n){var i=t.call(this,e)||this;return i.alPrototype=e.builtins.Object.alGetPrototypeProperty(),Fk(i,{constructor:{value:n,writable:!0},clone:{value:i.clone,writable:!0},concat:{value:i.concat,writable:!0},createBox:{value:i.createBox,writable:!0},createGradientBox:{value:i.createGradientBox,writable:!0},deltaTransformPoint:{value:i.deltaTransformPoint,writable:!0},identity:{value:i.identity,writable:!0},invert:{value:i.invert,writable:!0},rotate:{value:i.rotate,writable:!0},scale:{value:i.scale,writable:!0},toString:{value:i._toString,writable:!0},transformPoint:{value:i.transformPoint,writable:!0},translate:{value:i.translate,writable:!0}}),i}return FL(e,t),e.prototype.clone=function(){var t=new oR(this.context);return this instanceof jL&&(t.alPut("a",this.alGet("a")),t.alPut("b",this.alGet("b")),t.alPut("c",this.alGet("c")),t.alPut("d",this.alGet("d")),t.alPut("tx",this.alGet("tx")),t.alPut("ty",this.alGet("ty"))),t},e.prototype.concat=function(t){var e=iR(this),n=iR(t);e.concat(n),rR(e,this)},e.prototype.createBox=function(t,e,n,i,r){void 0===n&&(n=0),void 0===i&&(i=0),void 0===r&&(r=0),t=Dk(this.context,t),e=Dk(this.context,e),n=Dk(this.context,n),i=Dk(this.context,i),r=Dk(this.context,r);var o=iR(this);o.createBox(t,e,n,i,r),rR(o,this)},e.prototype.createGradientBox=function(t,e,n,i,r){void 0===n&&(n=0),void 0===i&&(i=0),void 0===r&&(r=0),t=Dk(this.context,t),e=Dk(this.context,e),n=Dk(this.context,n),i=Dk(this.context,i),r=Dk(this.context,r);var o=iR(this);o.createGradientBox(t,e,n,i,r),rR(o,this)},e.prototype.deltaTransformPoint=function(t){var e=QL(t),n=iR(this);return zL.fromAS3Point(this.context,n.deltaTransformPoint(e))},e.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)},e.prototype.invert=function(){var t=iR(this);t.invert(),rR(t,this)},e.prototype.rotate=function(t){t=Dk(this.context,t);var e=iR(this);e.rotate(t),rR(e,this)},e.prototype.scale=function(t,e){t=Dk(this.context,t),e=Dk(this.context,e);var n=iR(this);n.scale(t,e),rR(n,this)},e.prototype._toString=function(){return iR(this).toString()},e.prototype.transformPoint=function(t){var e=QL(t),n=iR(this);return zL.fromAS3Point(this.context,n.transformPoint(e))},e.prototype.translate=function(t,e){t=Dk(this.context,t),e=Dk(this.context,e);var n=iR(this);n.translate(t,e),rR(n,this)},e}(jL),uR=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return FL(e,t),e.createAVM1Class=function(t){var n=new e(t);return Xk(t,n,e.prototype,["align#","displayState#","fullScreenSourceRect#","height#","scaleMode#","showMenu#","width#"],!1),n},e.bindStage=function(t,n,i,r,o){n.avmStage=i,n.avm1Handler=r,e.avmStage=i},e.prototype.getAlign=function(){return this.avmStage.align},e.prototype.setAlign=function(t){this.avmStage.align=t},e.prototype.getDisplayState=function(){return this.avmStage.displayState},e.prototype.setDisplayState=function(t){this.avmStage.displayState=t},e.prototype.getFullScreenSourceRect=function(){return null},e.prototype.setFullScreenSourceRect=function(t){},e.prototype.getHeight=function(){return this.avmStage.stageHeight},e.prototype.getScaleMode=function(){return this.avmStage.scaleMode},e.prototype.setScaleMode=function(t){this.avmStage.scaleMode=t},e.prototype.getShowMenu=function(){return null},e.prototype.setShowMenu=function(t){},e.prototype.getWidth=function(){return this.avmStage.stageWidth},e}(jL);function lR(t){return t instanceof hR?t.as3BitmapData:null}var cR,hR=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._linkedBillboards=[],e._isSymbolSource=!1,e}return FL(e,t),e.createAVM1Class=function(t){return Yk(t,!0,e,["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"],null,e.prototype.avm1Constructor)},e.prototype.getBillboard=function(t,e){var n=wu.getMaterialForBitmap(this.adaptee,!0),i=new Il(n,t,e);return this._linkedBillboards.push(i),i},Object.defineProperty(e.prototype,"as3BitmapData",{get:function(){return this.adaptee},enumerable:!1,configurable:!0}),e.prototype.avm1Constructor=function(t,e,n,i){t=vk(this.context,t),e=vk(this.context,e),n=arguments.length<3||Ak(this.context,n),i=arguments.length<4?4294967295:Ck(this.context,i),isNaN(t*e)||t*e==0||(this.adaptee=Xp.getImage(t,e,n,i,!1,uR.avmStage.view.stage))},e.fromAS3BitmapData=function(t,n){var i=new e(t);return i.alPrototype=t.globals.BitmapData.alGetPrototypeProperty(),i.adaptee=n,i},e.loadBitmap=function(t,n){n=xk(t,n);for(var i,r=mt.getBundle(),o=0,a=Object.keys(r._assetDictionary);o<a.length;o++){var s=a[o];if(i=r.getAsset(n,s))break}if(!i||!i.isAsset(Ye))return console.warn("[AVM1 BitmapData] Missing bitmap:",n),null;var u=Xp.getImage(i.width,i.height,i.transparent,null,null,uR.avmStage.view.stage);u.copyPixels(i,u.rect,new N(0,0));var l=new e(t);return l.alPrototype=t.globals.BitmapData.alGetPrototypeProperty(),l.adaptee=u,l._isSymbolSource=!0,l},e.prototype.getHeight=function(){return this.adaptee?this.adaptee.height:0},e.prototype.getRectangle=function(){var t=this.adaptee;return t?new KL(this.context,0,0,t.width,t.height):new KL(this.context,0,0,0,0)},e.prototype.getTransparent=function(){return!this.adaptee||this.adaptee.transparent},e.prototype.getWidth=function(){return this.adaptee?this.adaptee.width:0},e.prototype.applyFilter=function(t,e,n,i){return console.warn("[avm1/AVM1BitmapData] - applyFilter not implemented"),0},e.prototype.clone=function(){var t=new e(this.context);return t.alPrototype=this.context.globals.BitmapData.alGetPrototypeProperty(),t.adaptee=this.adaptee?this.adaptee.clone():null,t._isSymbolSource=this._isSymbolSource,t},e.prototype.colorTransform=function(t,e){var n=YL(t),i=ZL(e);this.adaptee.colorTransform(n,i)},e.prototype.compare=function(t){return t instanceof e&&(console.warn("[avm1/AVM1BitmapData] - compare not implemented"),!0)},e.prototype.copyChannel=function(t,e,n,i,r){var o=t.as3BitmapData;if(this.adaptee&&o){var a=YL(e),s=QL(n);i=Dk(this.context,i),r=Dk(this.context,r),this.adaptee.copyChannel(o,a,s,i,r)}},e.prototype.copyPixels=function(t,e,n,i,r,o){if(t){var a=this.adaptee,s=t.as3BitmapData;if(this.adaptee&&s){var u=YL(e),l=QL(n),c=i?i.as3BitmapData:null,h=r?QL(r):null;o=Ak(this.context,o),a.copyPixels(s,u,l,c,h,o)}}else console.warn("[AVM1BitmapData::copyPixels] Empty source!")},e.prototype.dispose=function(){if(this.adaptee){for(var t=0,e=this._linkedBillboards;t<e.length;t++){var n=e[t];n.parent.removeChild(n),n.dispose()}this._linkedBillboards=[],this._isSymbolSource||this.adaptee.dispose(),this.adaptee=null}},e.prototype.draw=function(t,e,n,i,r,o){if(this.adaptee)if(t){var a=t;if("string"!=typeof t||(a=this.context.resolveTarget(t))){var s=a.adaptee,u=e?iR(e):null,l=n?ZL(n):null,c=r?YL(r):null;i=(i="number"==typeof i?Vk[i]:Sk(this.context,i))||null,o=Ak(this.context,o),a._locked=!0,this.as3BitmapData.draw(s,u,l,i,c,o),a._locked=!1}else console.warn("[AVM1BitmapData::draw] Source ".concat(t," not resolved!"))}else console.warn("[AVM1BitmapData::draw] Empty source!")},e.prototype.fillRect=function(t,e){if(this.adaptee){var n=YL(t);e=Ck(this.context,e),this.as3BitmapData.fillRect(n,e)}},e.prototype.floodFill=function(t,e,n){t=Dk(this.context,t),e=Dk(this.context,e),n=Ck(this.context,n),this.as3BitmapData.floodFill(t,e,n)},e.prototype.generateFilterRect=function(t,e){console.warn("[avm1/AVM1BitmapData] - generateFilterRect not implemented")},e.prototype.getColorBoundsRect=function(t,e,n){var i;if(void 0===n&&(n=!0),this.adaptee){t=Ck(this.context,t)>>>0,e=Ck(this.context,e)>>>0,n=Ak(this.context,n);var r=null===(i=this.as3BitmapData)||void 0===i?void 0:i.getColorBoundsRect(t,e,n);return r?new KL(this.context,r.x,r.y,r.width,r.height):null}},e.prototype.getPixel=function(t,e){return this.adaptee?this.adaptee.getPixel(t,e):0},e.prototype.getPixel32=function(t,e){return this.adaptee?this.adaptee.getPixel32(t,e):0},e.prototype.hitTest=function(t,e,n,i,r){return console.warn("[avm1/AVM1BitmapData] - hitTest not implemented"),!1},e.prototype.merge=function(t,e,n,i,r,o,a){var s=t.as3BitmapData;if(this.adaptee&&s){var u=YL(e),l=QL(n);i=Ck(this.context,i),r=Ck(this.context,r),o=Ck(this.context,o),a=Ck(this.context,a),this.as3BitmapData.merge(s,u,l,i,r,o,a)}},e.prototype.noise=function(t,e,n,i,r){t=Ck(this.context,t),e=arguments.length<2?0:Ck(this.context,e),n=arguments.length<3?255:Ck(this.context,n),i=arguments.length<4?7:Ck(this.context,i),r=!(arguments.length<5)&&Ak(this.context,r),console.warn("[avm1/AVM1BitmapData] - noise not implemented")},e.prototype.paletteMap=function(t,e,n,i,r,o,a){console.warn("[avm1/AVM1BitmapData] - paletteMap not implemented")},e.prototype.perlinNoise=function(t,e,n,i,r,o,a,s,u){t=Dk(this.context,t),e=Dk(this.context,e),n=Dk(this.context,n),i=Dk(this.context,i),r=Ak(this.context,r),o=Ak(this.context,o),a=void 0===a?7:Dk(this.context,a),s=Ak(this.context,s),console.warn("[avm1/AVM1BitmapData] - perlinNoise not implemented")},e.prototype.pixelDissolve=function(t,e,n,i,r,o){var a=YL(e);return i=arguments.length<4?0:Ck(this.context,i),r=arguments.length<5?a.width*a.height/30:Ck(this.context,r),o=arguments.length<6?0:Ck(this.context,o),console.warn("[avm1/AVM1BitmapData] - pixelDissolve not implemented"),0},e.prototype.scroll=function(t,e){if(t=0|Dk(this.context,t),e=0|Dk(this.context,e),(t||e)&&this.adaptee){var n=this.as3BitmapData;n.copyPixels(n,n.rect,new N(t,e),null,null,!1)}},e.prototype.setPixel=function(t,e,n){this.adaptee&&(t=Dk(this.context,t),e=Dk(this.context,e),n=Ck(this.context,n),this.adaptee.setPixel(t,e,n))},e.prototype.setPixel32=function(t,e,n){this.adaptee&&(t=Dk(this.context,t),e=Dk(this.context,e),n=Ck(this.context,n),this.adaptee.setPixel32(t,e,n))},e.prototype.threshold=function(t,e,n,i,r,o,a,s){var u=this.as3BitmapData,l=t.as3BitmapData;if(this.adaptee&&l){var c=YL(e),h=QL(n);return i=Sk(this.context,i),r=Ck(this.context,r)>>>0,o=arguments.length<6?0:Ck(this.context,o),a=arguments.length<7?4294967295:Ck(this.context,a),s=!(arguments.length<8)&&Ak(this.context,s),u.threshold(l,c,h,i,r,o,a,s),0}},e}(jL);!function(t){t[t._x=0]="_x",t[t._y=1]="_y",t[t._xscale=2]="_xscale",t[t._yscale=3]="_yscale",t[t._currentframe=4]="_currentframe",t[t._totalframes=5]="_totalframes",t[t._alpha=6]="_alpha",t[t._visible=7]="_visible",t[t._width=8]="_width",t[t._height=9]="_height",t[t._rotation=10]="_rotation",t[t._target=11]="_target",t[t._framesloaded=12]="_framesloaded",t[t._name=13]="_name",t[t._droptarget=14]="_droptarget",t[t._url=15]="_url",t[t._highquality=16]="_highquality",t[t._focusrect=17]="_focusrect",t[t._soundbuftime=18]="_soundbuftime",t[t._quality=19]="_quality",t[t._xmouse=20]="_xmouse",t[t._ymouse=21]="_ymouse"}(cR||(cR={}));var pR,dR,fR,gR,_R=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return FL(e,t),e.createAVM1Class=function(t){var n=["align#","blockIndent#","bold#","bullet#","color#","font#","getTextExtent","indent#","italic#","kerning#","leading#","leftMargin#","letterSpacing#","rightMargin#","size#","tabStops#","target#","adaptee#","underline#","url#"],i=Yk(t,!0,e,[],n,null,e.prototype.avm1Constructor),r=i.alGetPrototypeProperty(),o=null;return n.forEach((function(t){"#"===t[t.length-1]&&(t=t.slice(0,-1)),(o=r.alGetOwnProperty(t)).flags&=-2,r.alSetOwnProperty(t,o)})),i},e.createFromNative=function(t,n){var i=t.globals.TextFormat,r=new e(t);return r.alPrototype=i.alGetPrototypeProperty(),r.adaptee=n,r},e.prototype.alPut=function(e,n){"font"==e&&this.setFont(n),t.prototype.alPut.call(this,e,n)},e.prototype.avm1Constructor=function(t,e,n,i,r,o,a,s,u,l,c,h,p){var d=this.context;t=null==t?null:xk(d,t),e=null==e?null:vk(d,e),n=null==n?null:vk(d,n),i=null==i?null:Ak(d,i),r=null==r?null:Ak(d,r),o=null==o?null:Ak(d,o),a=null==a?null:xk(d,a),s=null==s?null:xk(d,s),u=null==u?null:xk(d,u),l=null==l?null:vk(d,l),c=null==c?null:vk(d,c),h=null==h?null:vk(d,h),p=null==p?null:vk(d,p);var f=new cp(t,e,n,i,r,o,a,s,u,l,c,h,p);this.adaptee=f},e.alInitStatic=function(t){var e=new Qp;e.multiline=!0,this._measureTextField=e},e.prototype.getAdaptee=function(){return this.adaptee.id},e.prototype.setAdaptee=function(t){},e.prototype.getAlign=function(){return this.adaptee.align},e.prototype.setAlign=function(t){var e=xk(this.context,t);""==e&&(e="center"),this.adaptee.align=e},e.prototype.getBlockIndent=function(){return this.adaptee.blockIndent},e.prototype.setBlockIndent=function(t){this.adaptee.blockIndent=vk(this.context,t)},e.prototype.getBold=function(){return this.adaptee.bold},e.prototype.setBold=function(t){this.adaptee.bold=Ak(this.context,t)},e.prototype.getBullet=function(){return this.adaptee.bullet},e.prototype.setBullet=function(t){this.adaptee.bullet=Ak(this.context,t)},e.prototype.getColor=function(){return this.adaptee.color},e.prototype.setColor=function(t){this.adaptee.color=vk(this.context,t)},e.prototype.getFont=function(){return this.adaptee.font_name},e.prototype.setFont=function(t){this.adaptee.font_name=xk(this.context,t)},e.prototype.getIndent=function(){return this.adaptee.indent},e.prototype.setIndent=function(t){this.adaptee.indent=vk(this.context,t)},e.prototype.getItalic=function(){return this.adaptee.italic},e.prototype.setItalic=function(t){this.adaptee.italic=Ak(this.context,t)},e.prototype.getKerning=function(){return this.adaptee.kerning},e.prototype.setKerning=function(t){this.adaptee.kerning=Ak(this.context,t)},e.prototype.getLeading=function(){return this.adaptee.leading},e.prototype.setLeading=function(t){this.adaptee.leading=vk(this.context,t)},e.prototype.getLeftMargin=function(){return this.adaptee.leftMargin},e.prototype.setLeftMargin=function(t){this.adaptee.leftMargin=vk(this.context,t)},e.prototype.getLetterSpacing=function(){return this.adaptee.letterSpacing},e.prototype.setLetterSpacing=function(t){this.adaptee.letterSpacing=vk(this.context,t)},e.prototype.getRightMargin=function(){return this.adaptee.rightMargin},e.prototype.setRightMargin=function(t){this.adaptee.rightMargin=vk(this.context,t)},e.prototype.getSize=function(){return this.adaptee.size},e.prototype.setSize=function(t){this.adaptee.size=vk(this.context,t)},e.prototype.getTabStops=function(){return new ik(this.context,this.adaptee.tabStops)},e.prototype.setTabStops=function(t){var e=this;this.adaptee.tabStops=ik.mapToJSArray(t,(function(t){return vk(e.context,t)}))},e.prototype.getTarget=function(){return""},e.prototype.setTarget=function(t){},e.prototype.getTextExtent=function(t,n){t=Sk(this.context,t),n=+n;var i=this.context.getStaticState(e)._measureTextField;!isNaN(n)&&n>0?(i.width=n+4,i.wordWrap=!0):i.wordWrap=!1,i.textFormat=this.adaptee,i.text=t;var r=Ek(this.context),o=i.textWidth,a=i.textHeight;return r.alPut("width",o),r.alPut("height",a),r.alPut("textFieldWidth",o+4),r.alPut("textFieldHeight",a+4),r},e.prototype.getUnderline=function(){return this.adaptee.underline},e.prototype.setUnderline=function(t){this.adaptee.underline=Ak(this.context,t)},e.prototype.getUrl=function(){return this.adaptee.url},e.prototype.setUrl=function(t){this.adaptee.url=xk(this.context,t)},e}(jL),mR=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return FL(e,t),e.createAVM1Class=function(t){return Yk(t,!1,e,["BACKSPACE","CAPSLOCK","CONTROL","DELETEKEY","DOWN","END","ENTER","ESCAPE","HOME","INSERT","LEFT","PGDN","PGUP","RIGHT","SHIFT","SPACE","TAB","UP","isDown","getCode","getAscii"],[])},e.alInitStatic=function(t){this._keyStates=[],this._lastKeyCode=0},e.bindStage=function(t,n,i,r){e.keyDownDelegate&&r.removeEventListener("keydown",e.keyDownDelegate),e.keyUpDelegate&&r.removeEventListener("keyup",e.keyUpDelegate),e.keyDownDelegate=function(i){var r=t.getStaticState(e);r._lastKeyCode=i.keyCode,r._keyStates[i.keyCode]=1,Mk(n,"broadcastMessage",["onKeyDown"])},e.keyUpDelegate=function(i){var r=t.getStaticState(e);r._lastKeyCode=i.keyCode,delete r._keyStates[i.keyCode],Mk(n,"broadcastMessage",["onKeyUp"])},r.addEventListener("keydown",e.keyDownDelegate),r.addEventListener("keyup",e.keyUpDelegate)},e.isDown=function(t,n){return!!t.getStaticState(e)._keyStates[n]},e.getCode=function(t){return t.getStaticState(e)._lastKeyCode},e.getAscii=function(t){return t.getStaticState(e)._lastKeyCode},e.BACKSPACE=8,e.CAPSLOCK=20,e.CONTROL=17,e.DELETEKEY=46,e.DOWN=40,e.END=35,e.ENTER=13,e.ESCAPE=27,e.HOME=36,e.INSERT=45,e.LEFT=37,e.PGDN=34,e.PGUP=33,e.RIGHT=39,e.SHIFT=16,e.SPACE=32,e.TAB=9,e.UP=38,e.keyDownDelegate=null,e.keyUpDelegate=null,e}(jL),yR=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return FL(e,t),e.createAVM1Class=function(t){return Yk(t,!0,e,[],["matrix#","concatenatedMatrix#","colorTransform#","pixelBounds#"],null,e.prototype.avm1Constructor)},Object.defineProperty(e.prototype,"as3Transform",{get:function(){return this._targetAwayObject.transform},enumerable:!1,configurable:!0}),e.prototype.avm1Constructor=function(t){this._target=this.context.resolveTarget(t),this._targetAwayObject=this._target.adaptee},e.prototype.getMatrix=function(){var t=this._targetAwayObject.transform;return oR.fromAS3Matrix(this.context,t.matrix)},e.prototype.setMatrix=function(t){this._targetAwayObject.transform.matrix=iR(t)},e.prototype.getConcatenatedMatrix=function(){var t=this._target.node.getMatrix3D()._rawData;return new oR(this.context,t[0],t[1],t[4],t[5],t[12],t[13])},e.prototype.getColorTransform=function(){var t=this._targetAwayObject.transform;return tR.fromAwayColorTransform(this.context,t.colorTransform)},e.prototype.setColorTransform=function(t){this._targetAwayObject.transform.colorTransform=ZL(t)},e.prototype.getPixelBounds=function(){var t=this._targetAwayObject.transform;return KL.fromAS3Rectangle(this.context,t.pixelBounds)},e}(jL);!function(t){t[t.DISPLACEMENT=8]="DISPLACEMENT"}(gR||(gR={}));var AR=kL(kL({},wf),gR),vR=((pR={})[AR.DROPSHADOW]="DropShadowFilter",pR[AR.GLOW]="GlowFilter",pR[AR.BEVEL]="BevelFilter",pR[AR.GRADIENTGLOW]="GradientGlowFilter",pR[AR.GRADIENTBEVEL]="GradientBevelFilter",pR[AR.BLUR]="BlurFilter",pR[AR.CONVOLUTION]="ConvolutionFilter",pR[AR.COLORMATRIX]="ColorMatrixFilter",pR[AR.DISPLACEMENT]="DisplacementMapFilter",pR),bR=((dR={})[AR.DROPSHADOW]="dropShadow",dR[AR.GLOW]="glow",dR[AR.BEVEL]="bevel",dR[AR.GRADIENTGLOW]="gradientGlow",dR[AR.GRADIENTBEVEL]="bevel",dR[AR.BLUR]="blur",dR[AR.CONVOLUTION]="convolution",dR[AR.COLORMATRIX]="colorMatrix",dR[AR.DISPLACEMENT]="displacement",dR),CR=((fR={})[AR.DROPSHADOW]=function(t){var e=t.colors[0]>>>8,n=(255&t.colors[0])/255,i=180*t.angle/Math.PI,r=!t.compositeSource;return{distance:t.distance,angle:i,color:e,alpha:n,blurX:t.blurX,blurY:t.blurY,strength:t.strength,quality:t.quality,inner:t.inner,knockout:t.knockout,hideObject:r}},fR[AR.GLOW]=function(t){return{color:t.colors[0]>>>8,alpha:(255&t.colors[0])/255,blurX:t.blurX,blurY:t.blurY,strength:t.strength,quality:t.quality,inner:t.inner,knockout:t.knockout}},fR[AR.BEVEL]=function(t){var e=t.colors[0]>>>8,n=(255&t.colors[0])/255,i=t.colors[1]>>>8,r=(255&t.colors[1])/255,o="outer";t.onTop?o="full":t.inner&&(o="inner");var a=180*t.angle/Math.PI;return{distance:t.distance,angle:a,highlightColor:e,highlightAlpha:n,shadowColor:i,shadowAlpha:r,blurX:t.blurX,blurY:t.blurY,strength:t.strength,quality:t.quality,type:o,knockout:t.knockout}},fR[AR.GRADIENTGLOW]=function(t){return null},fR[AR.GRADIENTBEVEL]=function(t){return null},fR[AR.BLUR]=function(t){return{blurX:t.blurX,blurY:t.blurY,quality:t.quality}},fR[AR.CONVOLUTION]=function(t){return null},fR[AR.COLORMATRIX]=function(t){return{matrix:t.matrix}},fR),xR=function(t){function e(e){var n=t.call(this,e)||this;return n.alSetOwnPrototypeProperty(new IR(e,n)),n}return FL(e,t),e.prototype.alConstruct=function(t){var e=new jL(this.context);return e.alPrototype=this.alGetPrototypeProperty(),e},e}(VL),IR=function(t){function e(e,n){var i=t.call(this,e)||this;return Fk(i,{constructor:{value:n,writable:!0},clone:{value:i.clone,writable:!0}}),i}return FL(e,t),e.prototype.clone=function(){var t=new jL(this.context);return t.alPrototype=this.alGetPrototypeProperty(),t},e}(jL);function ER(t,e,n,i,r){var o=vR[i];function a(e){var n=new jL(t);n.alPrototype=u;for(var i=0;i<r.length;i+=2)n.alPut(r[i],SR(t,e[r[i]],r[i+1]));return n}var s=n.alGetPrototypeProperty(),u=Object.create(IR.prototype);jL.call(u,t),u.alPrototype=s;var l=Object.create(xR.prototype);VL.call(l,t),l.alSetOwnPrototypeProperty(u),l.alConstruct=function(e){var n=new jL(t);if(n.alPrototype=u,e)for(var i=0;i<e.length;i++)n.alPut(r[i<<1],e[i]);return n},Fk(u,{constructor:{value:l,writable:!0},clone:{value:function(){var e=new jL(t);e.alPrototype=u;for(var n=0;n<r.length;n+=2)e.alPut(r[n],this.alGet(r[n]));return e},writable:!0}}),u.asFilterConverter={toAS3Filter:function(e){for(var n={filterName:o,filterType:i},a=0;a<r.length;a+=2){var s=e.alGet(r[a]);void 0!==s&&(n[r[a]]=wR(t,s,r[a+1]))}return n},fromAS3Filter:a,fromTimelineFilter:function(t){var e=CR[t.type],n=e?e(t):null;if(n)return a(n);console.warn("[AVM1 FILTER] Timeline filter converter not implemented for:",bR[t.type])},getAS3Class:null},e.alPut(o,l)}function wR(t,e,n){switch(n){case"String":return xk(t,e);case"Boolean":return Ak(t,e);case"Number":return vk(t,e);case"Numbers":var i=[];if(e)for(var r=0,o=e.alGet("length");r<o;r++)i[r]=vk(t,e.alGet(r));return i;case"BitmapData":return lR(e);case"Point":return QL(e);default:console.warn("Filters","Unknown convertFromAS3Field type: "+n)}}function SR(t,e,n){switch(n){case"String":case"Boolean":case"Number":return e;case"Numbers":var i=[];if(e)for(var r=0,o=e.length;r<o;r++)i[r]=+e[r];return new ik(t,i);case"BitmapData":return hR.fromAS3BitmapData(t,e);case"Point":return zL.fromAS3Point(t,e);default:console.warn("Filters","Unknown convertFromAS3Field type: "+n)}}function DR(t,e){for(var n=e?e.alPrototype:null;n&&!n.asFilterConverter;)n=n.alPrototype;if(n)return n.asFilterConverter.toAS3Filter(e)}var TR=Td.register(new Sd("AVM1")),PR=TR.register(new Dd("t1","traceAvm1","boolean",!1,"trace AVM1 execution")),OR=TR.register(new Dd("e1","errorsAvm1","boolean",!1,"fail on AVM1 warnings and errors")),MR=TR.register(new Dd("w1","warningsAvm1","boolean",!0,"Emit messages for AVM1 warnings and errors")),BR=TR.register(new Dd("ha1","nohangAvm1","boolean",!1,"disable fail on AVM1 hang")),NR=TR.register(new Dd("ca1","compileAvm1","boolean",!0,"compiles AVM1 code")),LR=TR.register(new Dd("da1","debugAvm1","boolean",!1,"allows AVM1 code debugging"));TR.register(new Dd("cw1","wellknownAvm1","boolean",!0,"Replaces well-known actions patterns instead of compilation"));var RR=Nt.instance.addStore("avm1",{LAZY_EVENT_REGISTERING:!0}),FR=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasSwappedDepth=!1,e.dynamicallyCreated=!1,e._filterModels=[],e.enabled=!0,e}return FL(e,t),e.CompleteEventRegistering=function(){var t=e.LAZY_EVENT_QUEUE.slice();e.LAZY_EVENT_QUEUE=[];for(var n=0,i=t;n<i.length;n++){var r=i[n];r.target.addEventListenerOnAdapter(r.event,r.callback,r.eventProps)}},e.prototype.initAVM1SymbolInstance=function(t,e){this.constructorHasRun=!0,this.avmType="symbol",this.scriptRefsToChilds={},this._mouseListenerCount=0,this._avm1Context=t,this._ownProperties=Object.create(null),this._prototype=null;var n=this;this._onClipEventsListeners=[];var i=new UL(131,null,{alCall:function(t,e){return n.alPrototype}},{alCall:function(t,e){n.alPrototype=e[0]}});this.alSetOwnProperty("__proto__",i),this.adaptee=e,this.adaptee.partitionClass=Br,this.node=uR.avmStage.view.getNode(this.adaptee);var r=e.name,o=this.get_parent();r&&o&&o._addChildName(this,r)},e.prototype.bindEvents=function(t,e){this._events=t;var n=Object.create(null);this._eventsMap=n,this._eventsListeners=Object.create(null),this._eventHandlers=Object.create(null);var i=this,r=this.context;t.forEach((function(t){var e=t.propertyName=r.normalizeName(t.propertyName);n[e]=t,i._updateEvent(t)}))},e.prototype.unbindEvents=function(){var t=this._events,e=this,n=this.context;t.forEach((function(t){n.unregisterEventPropertyObserver(t.propertyName,e),e._removeEventListener(t)})),this._events=null,this._eventsMap=null,this._eventsListeners=null,this._eventHandlers=null},e.prototype._initEventsHandlers=function(){throw"AVM1SymbolBase _initEventsHandlers must be overwritten"},e.prototype.updateEventByPropName=function(t){this._eventsMap?this._eventsMap[t]&&this._updateEvent(this._eventsMap[t]):(this._initEventsHandlers(),console.log("no eventsmap set",this))},e.prototype.updateAllEvents=function(){this._events.forEach((function(t){this._updateEvent(t)}),this)},e.prototype._updateEvent=function(t){!function(t,e,n){if(e.alHasProperty(n)&&e.alGet(n)instanceof VL)return!0;if(e.alHasProperty(n)&&e._ownProperties[n]&&e._ownProperties[n].value)return!0;var i=e.alGet("_listeners");if(!(i instanceof ik))return!1;return i.value.some((function(t){return t instanceof jL&&t.alHasProperty(n)}))}(this.context,this,t.propertyName)?this._removeEventListener(t):this._addEventListener(t)},e.prototype._addOnClipEventListener=function(t,n,i){void 0===n&&(n=null),void 0===i&&(i=null),t.propertyName=this.context.normalizeName(t.propertyName),!this.enabled&&t.allowDisable||(RR.LAZY_EVENT_REGISTERING?e.LAZY_EVENT_QUEUE.push({target:this,event:t,callback:n,eventProps:i}):(this._onClipEventsListeners.push({event:t,callback:n}),this.addEventListenerOnAdapter(t,n,i)))},e.prototype._addEventListener=function(t,e){void 0===e&&(e=null);var n=this.context.normalizeName(t.propertyName),i=this._eventsListeners[n],r=this;i||(i=e||function(){var t=null;"onchanged"==n.toLowerCase()&&(t=[r]),function(t,e,n,i){void 0===i&&(i=null);var r=e.alGet(n);r instanceof VL&&("onenterframe"==n.toLowerCase()&&(r.isOnEnter=!0),t.executeFunction(r,e,i));var o=e.alGet("_listeners");if(o instanceof ik){var a=null;o.value.forEach((function(r){r instanceof jL&&(a=r.alGet(n))instanceof VL&&t.executeFunction(a,e,i)}))}}(this.context,this,n,t)}.bind(this),this._eventsListeners[n]=i,this._eventHandlers[n]=t),!this.enabled&&t.allowDisable||this.addEventListenerOnAdapter(t,i)},e.prototype.addEventListenerOnAdapter=function(t,e,n){(void 0===n&&(n=null),t.stageEvent)?this.context.globals.Stage.avm1Handler.addAVM1EventListener(this.adaptee,t.eventName,e,n):(this.adaptee.addEventListener(t.eventName,e),this._updateMouseEnabled(t,!0))},e.prototype.removeEventListenerOnAdapter=function(t,e){if(t.stageEvent){var n=this.context.globals.Stage.avm1Handler;n&&n.removeAVM1EventListener(this.adaptee,t.eventName,e)}else this.adaptee.removeEventListener(t.eventName,e),this._updateMouseEnabled(t,!1)},e.prototype._updateMouseEnabled=function(t,e){this.adaptee.isAVMScene||t.isMouse&&(e?(this._mouseListenerCount++,this.adaptee.mouseEnabled=!0,this.adaptee.mouseChildren=!1):(this._mouseListenerCount--,this._mouseListenerCount<=0&&(this._mouseListenerCount=0,this.adaptee.mouseEnabled=!1,this.adaptee.mouseChildren=!0)))},e.prototype.freeFromScript=function(){for(var e in t.prototype.freeFromScript.call(this),this.enabled=!0,this.adaptee.mouseEnabled=!1,this.adaptee.mouseChildren=!0,Mk(this.context.globals.Key,"removeListener",[this]),this._eventsListeners)this.removeEventListenerOnAdapter(this._eventHandlers[e],this._eventsListeners[e]);this._eventsListeners={};for(var n=this._onClipEventsListeners.length;n>0;)n--,this.removeEventListenerOnAdapter(this._onClipEventsListeners[n].event,this._onClipEventsListeners[n].callback);this._onClipEventsListeners=[],this._mouseListenerCount=0},e.prototype._removeEventListener=function(t){var e=this.context.normalizeName(t.propertyName),n=this._eventsListeners[e];n&&(this.removeEventListenerOnAdapter(t,n),delete this._eventsListeners[e])},e.prototype.onEventPropertyModified=function(t){t=this.context.normalizeName(t);var e=this._eventsMap[t];this._updateEvent(e)},e.prototype.getEnabled=function(){return this.enabled},e.prototype.setEnabled=function(t){t!=this.enabled&&(this.enabled=t,this.setEnabledListener(t))},e.prototype.setEnabledListener=function(t){if(!1!==t&&0!==t){for(var e in this._eventsListeners)this._eventHandlers[e].allowDisable&&this.addEventListenerOnAdapter(this._eventHandlers[e],this._eventsListeners[e]);for(var e in this._onClipEventsListeners)this._onClipEventsListeners[e].event.allowDisable&&this.addEventListenerOnAdapter(this._onClipEventsListeners[e].event,this._onClipEventsListeners[e].callback)}else{for(var e in this._eventsListeners)this._eventHandlers[e].allowDisable&&this.removeEventListenerOnAdapter(this._eventHandlers[e],this._eventsListeners[e]);for(var e in this._onClipEventsListeners)this._onClipEventsListeners[e].event.allowDisable&&this.removeEventListenerOnAdapter(this._onClipEventsListeners[e].event,this._onClipEventsListeners[e].callback)}},e.prototype.get_alpha=function(){return 100*this.adaptee.alpha},e.prototype.set_alpha=function(t){this._ctBlockedByScript=!0,t=vk(this.context,t),isNaN(t)||(this.adaptee.alpha=t/100)},e.prototype.getBlendMode=function(){return""},e.prototype.setBlendMode=function(t){},e.prototype.getCacheAsBitmap=function(){return this.adaptee.cacheAsBitmap},e.prototype.setCacheAsBitmap=function(t){t=Ak(this.context,t),this.adaptee.cacheAsBitmap=t},e.prototype.getFilters=function(){return this._as2Filters},e.prototype.setFilters=function(t){this.adaptee.filters=function(t,e){var n=[];if(!e)return n;for(var i=e.alGet("length"),r=0;r<i;r++){var o=DR(0,e.alGet(r));o&&bR[o.filterType]&&(o.filterName=bR[o.filterType],n.push(o))}return n}(this.context,t),this._as2Filters=t},e.prototype.updateFilters=function(t){if(!t)return this.setFilters(null);this.setFilters(function(t,e){if(e&&e.length){for(var n=t.globals.filters,i=[],r=0,o=e;r<o.length;r++){var a=o[r],s=n.alGet(vR[a.type]);if(s){var u=s.alGetPrototypeProperty();if(u.asFilterConverter){var l=u.asFilterConverter.fromTimelineFilter(a);if(!l)continue;i.push(l)}}}return new ik(t,i)}}(this.context,t))},e.prototype.get_focusrect=function(){return!1},e.prototype.set_focusrect=function(t){},e.prototype.get_height=function(){var t=uR.avmStage.pickGroup.getBoundsPicker(this.node.partition).getBoxBounds(uR.avmStage.view.getNode(this.adaptee.parent||uR.avmStage.root));return null==t?0:qk(t.height)},e.prototype.set_height=function(t){t=qk(vk(this.context,t)),this._blockedByScript=!0,isNaN(t)||(uR.avmStage.pickGroup.getBoundsPicker(this.node.partition).height=t)},e.prototype.get_highquality=function(){switch(this.get_quality()){case"BEST":return 2;case"HIGH":return 1;default:return 0}},e.prototype.set_highquality=function(t){var e;switch(bk(this.context,t)){case 2:e="BEST";break;case 1:e="HIGH";break;default:e="LOW"}this.set_quality(e)},e.prototype.getMenu=function(){},e.prototype.setMenu=function(t){},e.prototype.get_name=function(){return this.adaptee?this.adaptee.name:void 0},e.prototype.set_name=function(t){t=Sk(this.context,t);var e=this.adaptee.name;this.adaptee.name=t;var n=this.get_parent();n&&(n.registerScriptObject(this.adaptee),n._updateChildName(this,e,t))},e.prototype.get_parent=function(){return Hk(this.adaptee.parent,this.context)||void 0},e.prototype.set_parent=function(t){},e.prototype.getOpaqueBackground=function(){return 0},e.prototype.setOpaqueBackground=function(t){},e.prototype.get_quality=function(){return"HIGH"},e.prototype.set_quality=function(t){},e.prototype.set_root=function(t){},e.prototype.get_root=function(){for(var t=this.adaptee,e=null;t&&!t.isAVMScene;){if((e=Hk(t,this.context))&&e.get_lockroot())return e;t=t.parent}if(t)return Hk(t,this.context)},e.prototype.get_rotation=function(){for(var t=Math.round(this.adaptee.rotationZ);t>180;)t-=360;for(;t<-180;)t+=360;return t},e.prototype.set_rotation=function(t){t=vk(this.context,t),this._blockedByScript=!0,isNaN(t)||(this.adaptee.rotationZ=t)},e.prototype.getScale9Grid=function(){return KL.fromAS3Rectangle(this.context,this.adaptee.scale9Grid)},e.prototype.setScale9Grid=function(t){this.adaptee.scale9Grid=xd(t)?null:YL(t)},e.prototype.getScrollRect=function(){return KL.fromAS3Rectangle(this.context,this.adaptee.scrollRect)},e.prototype.setScrollRect=function(t){this.adaptee.scrollRect=xd(t)?null:YL(t)},e.prototype.get_soundbuftime=function(){return 0},e.prototype.set_soundbuftime=function(t){},e.prototype.getTabEnabled=function(){return!!this.adaptee&&this.adaptee.tabEnabled},e.prototype.setTabEnabled=function(t){this.adaptee&&(this.adaptee.tabEnabled=t)},e.prototype.getTabIndex=function(){return this.adaptee.tabIndex},e.prototype.setTabIndex=function(t){this.adaptee.tabIndex=t},e.prototype.get_target=function(){var t=this.adaptee;if(t===t.root)return"/";var e="";do{if(xd(t))return;e="/"+t.name+e,t=t.parent}while(t&&!t.isAVMScene);return e},e.prototype.getTransform=function(){return this.context.swfVersion<8?this.transformPreFP8:(this._avmTransform||(this._avmTransform=this.context.globals.Transform.alConstruct([this])),this._avmTransform)},e.prototype.setTransform=function(t){this.context.swfVersion<8?this.transformPreFP8=t:t instanceof yR&&console.log("not implemented: AVM1SymbolBase.setTransform")},e.prototype.get_visible=function(){if(this.adaptee)return this.adaptee.visible},e.prototype.set_visible=function(t){this._visibilityByScript=!0,t=Ak(this.context,t),this.adaptee.visible=t},e.prototype.get_url=function(){return new URL(this.adaptee.assetNamespace,document.baseURI).href},e.prototype.get_width=function(){var t=uR.avmStage.pickGroup.getBoundsPicker(this.node.partition).getBoxBounds(uR.avmStage.view.getNode(this.adaptee.parent||uR.avmStage.root));return null==t?0:Kk(t.width)},e.prototype.set_width=function(t){t=Kk(vk(this.context,t)),this._blockedByScript=!0,isNaN(t)||(uR.avmStage.pickGroup.getBoundsPicker(this.node.partition).width=t)},e.prototype.get_x=function(){return this.adaptee?qk(this.adaptee.x):void 0},e.prototype.set_x=function(t){this.adaptee&&(t=qk(vk(this.context,t)),this._blockedByScript=!0,isNaN(t)||(this.adaptee.x=t))},e.prototype.get_xmouse=function(){return qk(uR.avmStage.getLocalMouseX(this.node))},e.prototype.get_xscale=function(){return this.adaptee?100*this.adaptee.scaleX:void 0},e.prototype.set_xscale=function(t){this.adaptee&&(t=vk(this.context,t),this._blockedByScript=!0,isNaN(t)||(this.adaptee.scaleX=t/100))},e.prototype.get_y=function(){return this.adaptee?qk(this.adaptee.y):void 0},e.prototype.set_y=function(t){this.adaptee&&(t=qk(vk(this.context,t)),this._blockedByScript=!0,isNaN(t)||(this.adaptee.y=t))},e.prototype.get_ymouse=function(){return qk(uR.avmStage.getLocalMouseY(this.node))},e.prototype.get_yscale=function(){return this.adaptee?100*this.adaptee.scaleY:void 0},e.prototype.set_yscale=function(t){this.adaptee&&(t=vk(this.context,t),this._blockedByScript=!0,isNaN(t)||(this.adaptee.scaleY=t/100))},e.prototype.getDepth=function(){return this.protoTypeChanged||!this.adaptee?null:Jk(this.adaptee._avmDepthID)},e.prototype.toString=function(){for(var t=this.adaptee,e=[];t;)t.isAVMScene?(e.push("_level0"),t=null):(e.push(t.name),t=t.parent);for(var n=e.length,i="";n>0;)i+=e[--n],n>0&&(i+=".");return i},e.LAZY_EVENT_QUEUE=[],e}(jL),kR=function(t,e,n,i,r,o){this.propertyName=t,this.eventName=e,this.stageEvent=n,this.allowDisable=i,this.isMouse=r,this.isButton=o},UR=function(){},jR=[-1,37,39,36,35,45,46,-1,8,-1,-1,-1,-1,13,38,40,33,34,9,27],VR=Object.create(null),QR=VR,GR=kR;QR[262144]=!0,QR[512]=!0,QR[131072]=new GR("onKey",pp.KEYDOWN,!0,!0,!1,!1),QR[1]=new GR("onLoad","load",!1,!1,!1,!1),QR[4]=new GR("onUnload","unload",!1,!1,!1,!1),QR[256]=new GR("onData","data",!1,!1,!1,!1),QR[2]=new GR("onEnterFrame","enterFrame",!1,!1,!1,!1),QR[64]=new GR("onKeyDown",pp.KEYDOWN,!0,!0,!1,!1),QR[128]=new GR("onKeyUp",pp.KEYUP,!0,!0,!1,!1),QR[8]=new GR("onMouseMove",Ll.MOUSE_MOVE,!0,!0,!0,!1),QR[16]=new GR("onMouseDown",Ll.MOUSE_DOWN,!0,!0,!0,!1),QR[32]=new GR("onMouseUp",Ll.MOUSE_UP,!0,!0,!0,!1),QR[1024]=new GR("onPress",Ll.MOUSE_DOWN,!1,!0,!0,!0),QR[2048]=new GR("onRelease",Ll.MOUSE_UP,!1,!0,!0,!0),QR[4096]=new GR("onReleaseOutside",Ll.MOUSE_UP_OUTSIDE,!1,!0,!0,!0),QR[8192]=new GR("onRollOver",Ll.MOUSE_OVER,!1,!0,!0,!0),QR[16384]=new GR("onRollOut",Ll.MOUSE_OUT,!1,!0,!0,!0),QR[32768]=new GR("onDragOver",Ll.DRAG_OVER,!1,!0,!0,!0),QR[65536]=new GR("onDragOut",Ll.DRAG_OUT,!1,!0,!0,!0);var zR=new GR("onSetFocus",Gp.FOCUS_IN,!1,!0,!1,!1),HR=new GR("onKillFocus",Gp.FOCUS_OUT,!1,!0,!1,!1),XR=new GR("onChanged",dp.CHANGED,!1,!0,!1,!1),YR=[VR[1],VR[4],VR[256],VR[2],VR[64],VR[128],VR[8],VR[16],VR[32],VR[1024],VR[2048],VR[4096],VR[8192],VR[16384],VR[32768],VR[65536],VR[131072],zR,HR,XR],qR=[VR[1],VR[4],VR[256],VR[2],VR[64],VR[128],VR[1024],VR[2048],VR[4096],VR[8192],VR[16384],VR[32768],VR[65536],VR[131072],zR,HR,XR],KR=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._prevTextVarContent="",e._textVarHolder=null,e._textVarPropName="",e}return FL(e,t),e.createAVM1Class=function(t){return Yk(t,!0,e,[],["_alpha#","addListener","antiAliasType#","autoSize#","background#","backgroundColor#","border#","borderColor#","bottomScroll#","condenseWhite#","embedFonts#","filters#","getAwayJSID","getNewTextFormat","getTextFormat","gridFitType#","getDepth","_height#","_highquality#","hscroll#","html#","htmlText#","length#","maxChars#","maxhscroll#","maxscroll#","multiline#","_name#","_parent#","password#","_quality#","_rotation#","replaceSel","removeMovieClip","removeTextField","restrict#","scroll#","selectable#","setNewTextFormat","setTextFormat","_soundbuftime#","tabEnabled#","tabIndex#","_target#","toString","text#","textColor#","textHeight#","textWidth#","type#","_url#","variable#","_visible#","_width#","wordWrap#","_x#","_xmouse#","_xscale#","_y#","_ymouse#","_yscale#"])},e.prototype.dispatchKeyEvent=function(t,e,n,i){if(this.context.globals.Stage&&this.context.globals.Stage.avmStage&&this.context.globals.Stage.avmStage.mouseManager.useSoftkeyboard){var r=this.context.getStaticState(mR);r._lastKeyCode=t,r._keyStates[t]=1,Mk(VF.instance.Key,"broadcastMessage",["onKeyDown"]);var o=new pp(pp.KEYDOWN,"",t);o.isShift=e,o.isCTRL=n,o.isAlt=i,this.context.globals.Stage.avmStage.dispatchEvent(o),delete r._keyStates[t],Mk(VF.instance.Key,"broadcastMessage",["onKeyUp"]),(o=new pp(pp.KEYUP,"",t)).isShift=e,o.isCTRL=n,o.isAlt=i,this.context.globals.Stage.avmStage.dispatchEvent(o)}},e.syncAllTextfields=function(){for(var t in e.allTextfields)e.allTextfields[t]?e.allTextfields[t].syncTextFieldValue():delete e.allTextfields[t]},e.syncQueedTextfields=function(){if(e.textFieldVars.length>0){for(var t=e.textFieldVars.length,n=0;n<t;n++)e.textFieldVars[n].syncTextFieldValue();e.textFieldVars.length=0}},e.prototype.getAwayJSID=function(){return this.adaptee.id},e.prototype.selectTextField=function(t){void 0===t&&(t=!1),VF.softKeyboardManager&&("dummy_txt"!=this.adaptee.name&&0!=this.adaptee.name.indexOf("temp")||(t=!0),VF.softKeyboardManager.openKeyboard(this.adaptee,t))},e.prototype.removeMovieClip=function(){this.adaptee.isAVMScene||this.adaptee.parent&&Jk(this.adaptee._avmDepthID)>=-1&&this.adaptee.parent.adapter.removeChildAtDepth(this.adaptee._avmDepthID)},e.prototype.alPut=function(e,n){t.prototype.alPut.call(this,e,n)},e.prototype.initAdapter=function(){var t=this;this.adaptee._symbol&&this.setVariable(this.adaptee._symbol.variableName||""),this.adaptee.addEventListener(dp.CHANGED,(function(){t.updateVarFromText(),t.syncTextFieldValue()}))},e.prototype.initAVM1SymbolInstance=function(e,n){t.prototype.initAVM1SymbolInstance.call(this,e,n),this.adaptee=n,this._initEventsHandlers(),this._variable="",this._exitFrameHandler=null,this.adaptee=n},e.prototype.clone=function(){return Hk(this.adaptee.clone(),this._avm1Context)},e.prototype.getAntiAliasType=function(){return""},e.prototype.setAntiAliasType=function(t){},e.prototype.get_width=function(){return this.syncTextFieldValue(),Kk(this.adaptee.width)},e.prototype.get_height=function(){return this.syncTextFieldValue(),Kk(this.adaptee.height)},e.prototype.set_width=function(t){t=Kk(vk(this.context,t)),this._blockedByScript=!0,isNaN(t)||(this.adaptee.width=t)},e.prototype.set_height=function(t){t=Kk(vk(this.context,t)),this._blockedByScript=!0,isNaN(t)||(this.adaptee.height=t)},e.prototype.get_x=function(){return this.syncTextFieldValue(),qk(this.adaptee.x+this.adaptee.scaleX*this.adaptee.textOffsetX)},e.prototype.get_y=function(){return this.syncTextFieldValue(),qk(this.adaptee.y+this.adaptee.scaleY*this.adaptee.textOffsetY)},e.prototype.set_x=function(t){this.syncTextFieldValue(),this.adaptee.x=qk(t-this.adaptee.scaleX*this.adaptee.textOffsetX)},e.prototype.set_y=function(t){this.syncTextFieldValue(),this.adaptee.y=qk(t-this.adaptee.scaleY*this.adaptee.textOffsetY)},e.prototype.getAutoSize=function(){return this.adaptee.autoSize},e.prototype.setAutoSize=function(t){!0===t?t="left":!1===t&&(t="none"),t=Sk(this.context,t),this.adaptee.autoSize=t},e.prototype.getBackground=function(){return this.adaptee.background},e.prototype.setBackground=function(t){t=Ak(this.context,t),this.adaptee.background=t},e.prototype.getBackgroundColor=function(){return this.adaptee.backgroundColor},e.prototype.setBackgroundColor=function(t){t=Ck(this.context,t),this.adaptee.backgroundColor=t},e.prototype.getBorder=function(){return this.adaptee.border},e.prototype.setBorder=function(t){t=Ak(this.context,t),this.adaptee.border=t},e.prototype.getBorderColor=function(){return this.adaptee.borderColor},e.prototype.setBorderColor=function(t){t=Ck(this.context,t),this.adaptee.borderColor=t},e.prototype.getBottomScroll=function(){return this.adaptee.bottomScrollV+1},e.prototype.getCondenseWhite=function(){return this.adaptee.condenseWhite},e.prototype.setCondenseWhite=function(t){t=Ak(this.context,t),this.adaptee.condenseWhite=t},e.prototype.getEmbedFonts=function(){return this.adaptee.embedFonts},e.prototype.setEmbedFonts=function(t){t=Ak(this.context,t),this.adaptee.embedFonts=t},e.prototype.getNewTextFormat=function(){return _R.createFromNative(this.context,this.adaptee.textFormat)},e.prototype.getTextFormat=function(t,e){void 0===t&&(t=-1),void 0===e&&(e=-1),t=bk(this.context,t),e=bk(this.context,e);var n=this.adaptee.getTextFormat(t,e);return _R.createFromNative(this.context,n)},e.prototype.getGridFitType=function(){return""},e.prototype.setGridFitType=function(t){},e.prototype.getHscroll=function(){return this.adaptee.scrollH+1},e.prototype.setHscroll=function(t){(t=Dk(this.context,t))<=0&&(t=1),this.adaptee.scrollH=t-1},e.prototype.getHtml=function(){return this.adaptee.html},e.prototype.setHtml=function(t){this.adaptee.html=!!t},e.prototype.getHtmlText=function(){return this.adaptee.html?this.adaptee.htmlText:this.adaptee.text},e.prototype.setHtmlText=function(t){t=void 0===t?"undefined":xk(this.context,t),this.adaptee.html?this.adaptee.htmlText=t:this.adaptee.text=t,this.updateVarFromText(),this.syncTextFieldValue()},e.prototype.getLength=function(){return this.adaptee.length},e.prototype.getMaxChars=function(){return 0==this.adaptee.maxChars?null:this.adaptee.maxChars},e.prototype.setMaxChars=function(t){t=Dk(this.context,t),this.adaptee.maxChars=t},e.prototype.getRestrict=function(){return this.adaptee.restrict},e.prototype.setRestrict=function(t){t=Sk(this.context,t),this.adaptee.restrict=t},e.prototype.getMaxhscroll=function(){return this.adaptee.maxScrollH+1},e.prototype.getMaxscroll=function(){return this.adaptee.maxScrollV+1},e.prototype.getMultiline=function(){return this.adaptee.multiline},e.prototype.setMultiline=function(t){t=Ak(this.context,t),this.adaptee.multiline=t},e.prototype.getPassword=function(){return this.adaptee.displayAsPassword},e.prototype.setPassword=function(t){t=Ak(this.context,t),this.adaptee.displayAsPassword=t},e.prototype.getScroll=function(){return this.adaptee.scrollV+1},e.prototype.setScroll=function(t){(t=Dk(this.context,t))<=0&&(t=1),this.adaptee.scrollV=t-1},e.prototype.getSelectable=function(){return this.adaptee.selectable},e.prototype.setSelectable=function(t){"false"==t&&(t=!1),(t=Ak(this.context,t))||this.context.globals.Stage.avmStage.mouseManager.getFocus().container!=this.adaptee||this.context.globals.Stage.avmStage.mouseManager.setFocus(null),this.adaptee.selectable=t},e.prototype.replaceSel=function(t){t=xk(this.context,t),this.adaptee.replaceSelectedText(t)},e.prototype.setNewTextFormat=function(t){var e;t instanceof _R?(e=t.adaptee,this.adaptee.textFormat||(this.adaptee.textFormat=new cp),this.adaptee.newTextFormat=e):console.log("AVM1Textfield.setNewtextFormat - trying to set something other than a TextFormat",t)},e.prototype.setTextFormat=function(){this._variable&&this.syncTextFieldValue();var t,e,n=-1,i=-1;switch(arguments.length){case 0:return;case 1:t=arguments[0];break;case 2:n=vk(this.context,arguments[0]),t=arguments[1];break;default:n=vk(this.context,arguments[0]),i=vk(this.context,arguments[1]),t=arguments[2]}n>=0&&-1==i&&(i=n),t instanceof _R&&(e=t.adaptee,this.adaptee.setTextFormat(e,n,i))},e.prototype.getText=function(){return this._variable&&this.syncTextFieldValue(),this.adaptee.text},e.prototype.setText=function(t){t=void 0===t?"":xk(this.context,t);var e=this.context.utils;if(this.adaptee.parent){var n=Hk(this.adaptee.parent,this.context);e.setProperty(n,this._variable,t)}this.adaptee.text=t,this._variable&&(this.updateVarFromText(),this.syncTextFieldValue())},e.prototype.getTextColor=function(){return this.adaptee.textColor},e.prototype.setTextColor=function(t){t=Ck(this.context,t),this.adaptee.textColor=t},e.prototype.getTextHeight=function(){return this._variable&&this.syncTextFieldValue(),this.adaptee.textHeight},e.prototype.setTextHeight=function(t){},e.prototype.getTextWidth=function(){return this._variable&&this.syncTextFieldValue(),this.adaptee.textWidth},e.prototype.setTextWidth=function(t){},e.prototype.getType=function(){return this.adaptee.type},e.prototype.setType=function(t){(t=Sk(this.context,t))&&(t=t.toLowerCase()),this.adaptee.type=t},e.prototype.getVariable=function(){return this._variable},e.prototype.setVariable=function(t){if((t=Sk(this.context,t))!==this._variable){var n=this.adaptee;e.allTextfields[n.id]=this,this._prevTextVarContent=this.adaptee.text,this._syncTextFieldValue(n,t),this._exitFrameHandler&&!t&&(n.removeEventListener("exitFrame",this._exitFrameHandler),this._exitFrameHandler=null),this._variable=t,!this._exitFrameHandler&&t&&(this._exitFrameHandler=this._onAS3ObjectExitFrame.bind(this),n.addEventListener("exitFrame",this._exitFrameHandler))}},e.prototype._onAS3ObjectExitFrame=function(){this._variable&&this._syncTextFieldValue(this.adaptee,this._variable)},e.prototype.syncTextFieldValue=function(){this._syncTextFieldValue(this.adaptee,this._variable)},e.prototype.updateVarFromText=function(){this._textVarHolder&&(this.context.utils.setProperty(this._textVarHolder,this._textVarPropName,this.adaptee.html?this.adaptee.htmlText:this.adaptee.text),this._prevTextVarContent=this.adaptee.text)},e.prototype._syncTextFieldValue=function(t,n){if(n&&""!=n){var i=this.context.utils;if(null==this._textVarHolder)if(n.indexOf(".")>=0||n.indexOf(":")>=0){var r=n.split(/[.:\/]/g);if(this._textVarPropName=r.pop(),"_root"==r[0]||"_level0"==r[0]||"_level"==r[0]||""===r[0]){var o=t.parent;for(this._textVarHolder=null;o;)o.isAVMScene?(this._textVarHolder=o.adapter,o=null):o=o.parent;if(null===this._textVarHolder)return;r.shift(),""===r[0]&&r.shift()}else if("_global"==r[0])r.shift(),this._textVarHolder=this.context.globals;else{if(!t.parent)return;this._textVarHolder=Hk(t.parent,this.context)}for(var a=null;r.length>0;)if(a=r.shift(),this._textVarHolder=i.getProperty(this._textVarHolder,a),!this._textVarHolder)return}else if(this._textVarPropName=n,t.parent&&t.parent.parent){this._textVarHolder=Hk(t.parent,this.context);for(var s=void 0,u=t.parent.parent,l=u.numChildren,c=0;c<l;c++)(s=u.getChildAt(c))!=t.parent&&s.name==t.parent.name&&i.hasProperty(s.adapter,this._textVarPropName)&&(this._textVarHolder=s.adapter)}if(!this._textVarHolder)return e.textFieldVars.push(this),t.html?this._prevTextVarContent=t.htmlText:void(this._prevTextVarContent=t.text);if(!i.hasProperty(this._textVarHolder,this._textVarPropName)){var h=void 0;return t.html?(h={isTextVar:!0,value:void 0},""!=t.htmlText&&(h.value=t.htmlText),i.setProperty(this._textVarHolder,this._textVarPropName,h),i.setProperty(this._textVarHolder,this._textVarPropName+"_internal_TF",this),void(this._prevTextVarContent=t.htmlText)):(h={isTextVar:!0,value:void 0},""!=t.text&&(h.value=t.text),i.setProperty(this._textVarHolder,this._textVarPropName,h),i.setProperty(this._textVarHolder,this._textVarPropName+"_internal_TF",this),void(this._prevTextVarContent=t.text))}i.hasProperty(this._textVarHolder,this._textVarPropName+"_internal_TF")||i.setProperty(this._textVarHolder,this._textVarPropName+"_internal_TF",this);var p=i.getProperty(this._textVarHolder,this._textVarPropName);if("string"!=typeof p&&(p=xk(this.context,p)),t.html){if(p!==this._prevTextVarContent)return t.htmlText=void 0===p?"":p,void(this._prevTextVarContent=p);t.htmlText===p||void 0===p&&""===t.htmlText||(t.htmlText=void 0===p?"":p)}else{if(p!==this._prevTextVarContent)return t.text=void 0===p?"":p,void(this._prevTextVarContent=p);t.text===p||void 0===p&&""===t.text||(t.text=void 0===p?"":p)}}},e.prototype.getWordWrap=function(){return this.adaptee.wordWrap},e.prototype.setWordWrap=function(t){t=Ak(this.context,t),this.adaptee.wordWrap=t},e.prototype._initEventsHandlers=function(){this.bindEvents(YR)},e.allTextfields={},e.textFieldVars=[],e}(FR),WR=function(){function t(t){var e=this;this.result=new wd,this._context=t,this._onAssetCompleteDelegate=function(t){return e.onAssetComplete(t)},this._onLoaderCompleteDelegate=function(t){return e.onLoaderComplete(t)},this._onLoadErrorDelegate=function(t){return e.onLoadError(t)},this._loader=new gt}return Object.defineProperty(t.prototype,"loader",{get:function(){return this._loader},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"content",{get:function(){return this._content},enumerable:!1,configurable:!0}),t.prototype.onAssetComplete=function(t){var e=t.asset;if(e.isAsset(Rl)){if(e.assetNamespace!=this._url)return;e.isAVMScene&&(this._content=e,this.result.resolve(e),e.adapter.initAdapter())}},t.prototype.onLoaderComplete=function(t){t.url==this._url&&(mt.removeEventListener(d.ASSET_COMPLETE,this._onAssetCompleteDelegate),mt.removeEventListener(H.LOADER_COMPLETE,this._onLoaderCompleteDelegate),mt.removeEventListener(K.LOAD_ERROR,this._onLoadErrorDelegate))},t.prototype.onLoadError=function(t){mt.removeEventListener(d.ASSET_COMPLETE,this._onAssetCompleteDelegate),mt.removeEventListener(H.LOADER_COMPLETE,this._onLoaderCompleteDelegate),mt.removeEventListener(K.LOAD_ERROR,this._onLoadErrorDelegate),console.log("load error in loadMovie",t)},t.prototype._loadingCallback=function(t,e){var n=e.adaptee,i=t;n.isAVMScene=i.isAVMScene,n.timeline=i.timeline,n.assetNamespace=i.assetNamespace,n.reset(!0,!1)},t.prototype.loadMovieAt=function(e,n,i){var r=this;if(!i)throw new Error("Target can't be null");var o=t._loaderCache[e];return o?(this._loadingCallback(o,i),Promise.resolve(i)):this.load(e,n).then((function(){return(o=r.content)?(t._loaderCache[e]=o,r._loadingCallback(o,i),i):null}))},t.prototype.load=function(t,e){return this._url=t,this.result=new wd,mt.addEventListener(d.ASSET_COMPLETE,this._onAssetCompleteDelegate),mt.addEventListener(H.LOADER_COMPLETE,this._onLoaderCompleteDelegate),mt.addEventListener(K.LOAD_ERROR,this._onLoadErrorDelegate),mt.load(new yt(t),null,t,new Lg(VF._scenegraphFactory)),this.result.promise},t._loaderCache={},t}();function JR(t,e){var n=Ek(e);return n.alPut("xMin",t.left),n.alPut("yMin",t.top),n.alPut("xMax",t.right),n.alPut("yMax",t.bottom),n}var $R=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._hitReportCount=0,e._depthToChilds={},e._nextHighestDepth=1,e.executeConstructor=null,e._locked=!1,e.unregisteredColors={},e.isDragging=!1,e.startDragPoint=new N,e.startDragMCPosition=new N,e}return FL(e,t),e.createAVM1Class=function(t){return Yk(t,!0,e,[],["$version#","_alpha#","getAwayJSID","attachAudio","attachBitmap","attachMovie","attachVideo","beginFill","beginBitmapFill","beginGradientFill","blendMode#","cacheAsBitmap#","_callFrame","clear","createEmptyMovieClip","createTextField","_currentframe#","curveTo","_droptarget#","duplicateMovieClip","enabled#","endFill","filters#","_framesloaded#","_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","_root#","_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#"])},Object.defineProperty(e.prototype,"_stage",{get:function(){return uR.avmStage},enumerable:!1,configurable:!0}),e.prototype.setDepthToChild=function(t,e){e?this._depthToChilds[t]=e:delete this._depthToChilds[t]},e.prototype.getDepthToChild=function(t){return this._depthToChilds[t]},e.prototype.addTimelineChildAtDepth=function(t,e){e-=16383,t.adapter!=t&&t.adapter.deleteOwnProperties&&t.adapter.deleteOwnProperties(),t.reset(),this.addChildAtDepth(t,e,!0)},e.prototype.removeTimelineChildAt=function(t){t-=16383,this.removeChildAtDepth(t)},e.prototype.removeAllTimelineChilds=function(){for(var t=this.adaptee.numChildren-1;t>=0;t--){this.adaptee.getChildAt(t)._avmDepthID<0&&this.adaptee.removeChildAt(t)}},e.prototype.getTimelineChildAtSessionID=function(t){return this.adaptee.getTimelineChildAtSessionID(t)},e.prototype.getDepthIndexInternal=function(t){var e=this.getDepthToChild(t);return e?e.parent!==this.adaptee?-1:this.adaptee.getChildIndex(e):-1},e.prototype.getIndexFromDepthOrTop=function(t){for(var e=0;e<this.adaptee.numChildren;e++)if(this.adaptee.getChildAt(e)._avmDepthID>t)return e;return this.adaptee.numChildren},e.prototype.removeChildAtDepth=function(t){var e=this.getDepthIndexInternal(t);-1!==e&&this.removeChildAt(e)},e.prototype.removeChildAt=function(t){var e=this.adaptee.removeChildAt(t);e._adapter&&e.adapter.freeFromScript(),this.unregisterScriptObject(e),delete this.adaptee._sessionID_childs[e._sessionID],this.setDepthToChild(e._avmDepthID),e._sessionID=-1,e._avmDepthID=-16384},e.prototype.addChildAtDepth=function(t,e,n){if(void 0===n&&(n=!1),null==t)throw"Parameter child cannot be null.";var i=this.getDepthIndexInternal(e);if(-1!=i){if(n)return console.log("depth is occupied"),null;this.removeChildAt(i),this.adaptee.addChildAt(t,i)}else this.adaptee.addChildAt(t,this.getIndexFromDepthOrTop(e));this.adaptee.isSlice9ScaledMC&&"[asset Sprite]"==t.assetType&&(t.isSlice9ScaledSprite=!0),this._nextHighestDepth<e+1&&(this._nextHighestDepth=e+1),t._avmDepthID=e,t.adapter!=t&&t.adapter.initAdapter(),this.setDepthToChild(e,t),n&&(this.adaptee._sessionID_childs[t._sessionID]=t);var r=Hk(t,this._avm1Context);return this.registerScriptObject(t,n),r},e.prototype.sortVirtualSceneGraph=function(t,e){return t.depth-e.depth},e.prototype.queueFrameScripts=function(t,e,n){var i=t.get_script_for_frame(this.adaptee,e,!0);i&&(n?Nl.add_script_to_queue(this.adaptee,i):Nl.add_script_to_queue_pass2(this.adaptee,i))},e.prototype.constructFrame=function(t,e,n,i,r,o,a){for(var s,u,l={},c={},h=this.adaptee.numChildren,p=0;p<h;p++){var d=this.adaptee.getChildAt(p);(i||-1==d._sessionID)&&(l[d._avmDepthID]={sessionID:d._sessionID,addedOnTargetFrame:!1,depth:d._avmDepthID,child:d}),d._sessionID>=0&&(c[d._sessionID]=d)}t._update_indices.length=0,t._update_frames.length=0;var f,g,_=0;for(u=e;u<=n;u++){var m=t.frame_command_indices[u],y=t.frame_recipe[u];if(2&y)for(g=(f=t.command_index_stream[m])+t.command_length_stream[m++],s=f;s<g;s++)delete l[t.remove_child_stream[s]-16383];if(4&y)if(g=(f=t.command_index_stream[m])+t.command_length_stream[m++],o)for(s=g-1;s>=f;s--)l[t.add_child_stream[3*s+1]-16383]||(l[t.add_child_stream[3*s+1]-16383]={sessionID:t.add_child_stream[3*s],symbolID:t.add_child_stream[3*s+2],addedOnTargetFrame:u==n,depth:t.add_child_stream[3*s+1]-16383});else for(s=f;s<g;s++)l[t.add_child_stream[3*s+1]-16383]||(l[t.add_child_stream[3*s+1]-16383]={sessionID:t.add_child_stream[3*s],symbolID:t.add_child_stream[3*s+2],addedOnTargetFrame:u==n,depth:t.add_child_stream[3*s+1]-16383});8&y&&(t._update_frames[_]=t.keyframe_firstframes[u],t._update_indices[_++]=m++),16&y&&u==n&&t.start_sounds(this.adaptee,m)}var A=[];for(var v in l)A[A.length]=l[v];A.sort(this.sortVirtualSceneGraph);var b,C=[],x=[],I=[];this._depthToChilds={},this.adaptee._sessionID_childs={},this.adaptee.preventScript=!0,h=C.length=A.length;for(var E=0;E<h;E++)if(-1==(b=A[E]).sessionID&&b.child)C[E]=b.child,this.setDepthToChild(b.depth,b.child);else if(c[b.sessionID]){var w=c[b.sessionID],S=b.depth;w._avmDepthID=S,w._sessionID=b.sessionID,this.setDepthToChild(S,w),this.adaptee._sessionID_childs[b.sessionID]=w,C[E]=w,i||(C[E]._adapter?(C[E].adapter.isColorTransformByScript()||C[E].transform.clearColorTransform(),C[E].adapter.isBlockedByScript()||C[E].noTimelineUpdate||(C[E].transform.clearMatrix3D(),C[E].updateTimelineMask(null)),C[E].adapter.isVisibilityByScript()||(C[E].visible=!0)):(C[E].transform.clearColorTransform(),C[E].transform.clearMatrix3D(),C[E].visible=!0,C[E].updateTimelineMask(null)))}else{var D=t.getChildInstance(b.symbolID,b.sessionID);this.adaptee.isSlice9ScaledMC&&"[asset Sprite]"==D.assetType&&(D.isSlice9ScaledSprite=!0);S=D._avmDepthID=b.depth;D._sessionID=b.sessionID,this.setDepthToChild(S,D),this.adaptee._sessionID_childs[b.sessionID]=D,C[E]=D,b.addedOnTargetFrame?I[I.length]=D:x[x.length]=D}for(var T=this.adaptee.numChildren-1;T>=0;T--)C.indexOf(this.adaptee.getChildAt(T))<0&&this.adaptee.removeChildAt(T);for(var P=0;P<C.length;P++)this.adaptee.contains(C[P])||this.adaptee.addChildAt(C[P],P);this.adaptee.preventScript=!0,this.finalizeChildren(x),this.adaptee.preventScript=!1,a&&this.queueFrameScripts(t,r,!o),this.finalizeChildren(I)},e.prototype.finalizeChildren=function(t){for(var e=t.length,n=0;n<e;n++){var i=t[n];i.adapter!=i&&i.adapter.deleteOwnProperties&&i.adapter.deleteOwnProperties(),i.reset(),i.adapter!=i&&i.adapter.initAdapter()}},e.prototype.removeMovieClip=function(){this.adaptee.isAVMScene||(!this.adaptee.parent||Jk(this.adaptee._avmDepthID)<0||(this.adaptee.parent.adapter.removeChildAtDepth(this.adaptee._avmDepthID),this.scriptMaskee&&this.scriptMaskee.setMask(null),this.freeFromScript(),this._childrenByName={},this._depthToChilds={},this.makeGhost()))},e.prototype._updateMouseEnabled=function(t,e){this.adaptee.isAVMScene||t.isMouse&&(e?(this._mouseListenerCount++,this.adaptee.mouseEnabled=!0,this.adaptee.mouseChildren=!1,t.isButton&&(this._mouseButtonListenerCount++,this.adaptee.buttonMode=!0)):(this._mouseListenerCount--,this._mouseListenerCount<=0&&(this._mouseListenerCount=0,this.adaptee.mouseEnabled=!1,this.adaptee.mouseChildren=!0),t.isButton&&(this._mouseButtonListenerCount--,this._mouseButtonListenerCount<=0&&(this._mouseButtonListenerCount=0,this.adaptee.buttonMode=!1)))),this.enabled||(this.adaptee.mouseChildren=!1)},e.prototype.clone=function(){var t=Hk(this.adaptee.clone(),this._avm1Context);if("piratefont"==this.adaptee.name){var e=t.adaptee.timeline,n=e;n.frame_command_indices=[e.frame_command_indices[0]],n.frame_recipe=[e.frame_recipe[0]],n.keyframe_constructframes=[e.keyframe_constructframes[0]],n.keyframe_durations=[e.keyframe_durations[0]],n.keyframe_firstframes=[e.keyframe_firstframes[0]],n.keyframe_indices=[e.keyframe_indices[0]]}return t},e.prototype.attachCustomConstructor=function(){if(this.adaptee){var t=this.adaptee.avm1Symbol;if(t){this.alPut("__proto__",t._ownProperties.prototype.value);var e=this;this.executeConstructor=function(){t.alCall(e),e.updateAllEvents()}}}},e.prototype.executeScript=function(t){if(e.currentMCAssetNameSpace=this.adaptee.assetNamespace,KR.syncQueedTextfields(),t){if(this.adaptee.parent)for(var n=0;n<t.length;n++){var i=t[n],r=function(t){this._avm1Context.executeActions(t,this)}.bind(this,i.data);r.precedence=i.precedence,r.context=this.adaptee,r.call(this.adaptee)}}else{var o=this.adaptee.name.replace(/[^\w]/g,"");window.alert("actionsBlocks is empty, can not execute framescript"+o+this.adaptee.currentFrameIndex)}},e.prototype.stopAllSounds=function(){for(var t,e=this.alGetKeys(),n=0;n<e.length;n++){var i=this.alGetProperty(e[n]),r=i?i.value:null;r&&r._sound&&r._sound.isAsset&&r._sound.isAsset(D)&&r.stop()}for(n=this.adaptee.numChildren-1;n>=0;n--)(t=this.adaptee.getChildAt(n)).isAsset(Rl)&&t.adapter!==t&&t.adapter.freeFromScript()},e.prototype.freeFromScript=function(){this._locked||(this.hasSwappedDepth=!1,t.prototype.freeFromScript.call(this),this._mouseButtonListenerCount=0)},e.prototype.initAdapter=function(){for(var t in this._dropTarget="",this._mouseButtonListenerCount=0,e.currentMCAssetNameSpace=this.adaptee.assetNamespace,this.adaptee.timeline.avm1InitActions)this.executeScript(VF._scenegraphFactory.createFrameScripts(this.adaptee.timeline.avm1InitActions[t],0,"initActionsData"+t,this.adaptee.id));this.initEvents&&function(t,e,n){var i=Hk(t,e);n.variableName&&i.alPut("variable",n.variableName);var r,o,a,s,u,l,c=n.events;if(!c)return;for(var h=null,p=0;p<c.length;p++)for(var d in(r=c[p]).actionsBlock?(o=e.actionsDataFactory.createActionsData(r.actionsBlock,"s"+n.symbolId+"d"+n.depth+"e"+p),r.actionsBlock=null,r.compiled=o):o=r.compiled,a=$k.bind(null,o,i),s=r.flags,VR)u=parseInt(d),s&(0|(u|=0))&&(262144!=u?512!=u?1!=u?(l=VR[u]).eventName?(r.keyCode&&((h=new UR).keyCode=r.keyCode,r.keyCode<32&&jR[r.keyCode]&&(h.keyCode=jR[r.keyCode])),i._addOnClipEventListener(l,a,h)):Od.warning("ClipEvent: "+u+" not implemented"):t.onLoaded=a:t.onInitialize=a:t.onConstruct=a)}(this.adaptee,this._avm1Context,this.initEvents),this.attachCustomConstructor(),this.initialDepth=this.adaptee._avmDepthID,(this.adaptee.onLoaded||this.adaptee.onConstruct||this.adaptee.onInitialize||this.executeConstructor)&&Nl.add_loaded_action_to_queue(this.adaptee)},e.prototype.registerScriptObject=function(t,e){void 0===e&&(e=!0),t.adapter!=t&&t.adapter.setEnabled(!0);var n=t.name;if(n){this.context.swfVersion<8&&(n=n.toLowerCase());var i=this.alHasOwnProperty(n);if(e&&i){if(!this.alGetOwnProperty(n).isTextVar)return;this.alPut(n,Hk(t,this.context))}(!this._childrenByName[n]||this._childrenByName[n].adaptee&&null==this._childrenByName[n].adaptee.parent||this._childrenByName[n].adaptee&&this._childrenByName[n].adaptee._avmDepthID>t._avmDepthID)&&(this._childrenByName[n]=Hk(t,this.context),e||this.alPut(n,this._childrenByName[n]))}},e.prototype.unregisterScriptObject=function(t){if(!t.adapter._locked){var e=t.name;if(e){this.context.swfVersion<8&&(e=e.toLowerCase());var n=this.alGetOwnProperty(e);if(n&&n.value instanceof FR&&this.alDeleteOwnProperty(e),this._childrenByName[e]&&this._childrenByName[e].adaptee.id==t.id){for(var i=null,r=null,o=0;o<this.adaptee.numChildren;o++)(i=this.adaptee.getChildAt(o))!=t&&i.name&&i.name.toLowerCase()==e&&(!r||r._avmDepthID>i._avmDepthID)&&(r=i);r?this._childrenByName[e]=Hk(r,this.context):delete this._childrenByName[e]}}}},e.prototype.getLatestObjectForName=function(t){if(!this.alHasOwnProperty(t)){for(var e,n,i=0;i<this.adaptee.numChildren;i++)(e=this.adaptee.getChildAt(i)).name==t&&(!n||n._avmDepthID>e._avmDepthID)&&(n=e);n&&(this.context.swfVersion<8&&(t=t.toLowerCase()),this._childrenByName[t]=Hk(n,this.context),this.unregisteredColors[t]&&(this.unregisteredColors[t].changeTarget(n.adapter),this.unregisteredColors[t]=null))}},Object.defineProperty(e.prototype,"graphics",{get:function(){return this.adaptee.graphics},enumerable:!1,configurable:!0}),e.prototype.initAVM1SymbolInstance=function(e,n){var i=this;this._childrenByName=Object.create(null),this._depthToChilds=Object.create(null),t.prototype.initAVM1SymbolInstance.call(this,e,n),this.dragListenerDelegate=function(t){return i.dragListener(t)},this.stopDragDelegate=function(t){return i.stopDrag(t)},this.dynamicallyCreated=!1,this.adaptee=n,this._initEventsHandlers()},e.prototype._lookupChildByName=function(t){return this._childrenByName[t]},e.prototype._lookupChildInAS3Object=function(t){return Hk(this.adaptee.getChildByName(t),this.context)},Object.defineProperty(e.prototype,"__targetPath",{get:function(){var t=this.get_target(),e=this.adaptee.root,n="_level"+this.context.globals._getLevelForRoot(e);return"/"!=t?n+t.replace(/\//g,"."):n},enumerable:!1,configurable:!0}),e.prototype.getAwayJSID=function(){return this.adaptee.id},e.prototype.attachAudio=function(t){xd(t)||!1!==t&&console.warn("[AVM1MovieClip] attachAudio not implemented")},e.prototype.attachBitmap=function(t,e,n,i){if(void 0===n&&(n="auto"),void 0===i&&(i=!1),t){n=Sk(this.context,n),i=Ak(this.context,i),t.as3BitmapData.transparent=!0;var r=t.getBillboard(n,i);r.mouseEnabled=!1,this.addChildAtDepth(r,e)}else console.error("[AVM1MovieClip:attachBitmap] Bitmap not resolved! Skip attach for prevent crash",this.adaptee.id)},e.prototype._constructMovieClipSymbol=function(t,e){t=xk(this.context,t),e=xk(this.context,e);var n=mt.getAsset(t,this.adaptee.assetNamespace);if(n){var i=n.adaptee.clone();return i.name=e,Hk(i,this._avm1Context),i}},e.prototype.get$version=function(){return""},e.prototype.rgbaToArgb=function(t){return(255&t)<<24|(4278190080&t)>>>24<<16|(16711680&t)>>>16<<8|(65280&t)>>>8},e.prototype.attachMovie=function(t,e,n,i){if(this._constructMovieClipSymbol){e&&Nk(this.context,e)&&(e=e.value[0]);var r=this._constructMovieClipSymbol(t,e);if(r)return r.name||(r.name=""),n=vk(this.context,n),this.initChildMovie(r,e,n,i,!0)}},e.prototype.initChildMovie=function(t,e,n,i,r){void 0===r&&(r=!1);var o=this._childrenByName[e.toLowerCase()];t.reset(),t.name=e;var a=this.addChildAtDepth(t,Wk(n));i&&a._init(i),o&&o.avmColor&&o.avmColor.changeTarget(a),t.timeline&&t.timeline.isButton&&t.addButtonListeners(),a.dynamicallyCreated=!0,e&&this.registerScriptObject(t,r);var s=a.executeConstructor;return a.executeConstructor=null,s&&s(),a},e.prototype.beginFill=function(t,e){t=Ck(this.context,t),void 0===e&&(2==arguments.length?e=0:arguments.length<=1&&(e=100)),e=vk(this.context,e),this.graphics.beginFill(t,e/100)},e.prototype.beginBitmapFill=function(t,e,n,i){void 0===e&&(e=null),void 0===n&&(n=!0),void 0===i&&(i=!1);var r=lR(t);if(r){var o=xd(e)?null:iR(e);n=Ak(this.context,n),i=Ak(this.context,i),this.graphics.beginBitmapFill(r,o,n,i)}},e.prototype.beginGradientFill=function(t,e,n,i,r,o,a,s){void 0===o&&(o="pad"),void 0===a&&(a="rgb"),void 0===s&&(s=0);var u=this.context,l=ik.mapToJSArray(e,(function(t){return Ck(u,t)})),c=ik.mapToJSArray(n,(function(t){return vk(u,t)/100})),h=ik.mapToJSArray(i,(function(t){return vk(u,t)}));xd(r)&&console.warn("[AVM1MovieClip] beginGradientFill not fully implemented"),o=xk(u,o),a=xk(u,a),s=vk(u,s),this.graphics.beginGradientFill(t,l,c,h,null,o,a,s)},e.prototype._callFrame=function(t){var e;"string"==typeof t?(t=t.toLowerCase(),e=this.adaptee.timeline.getScriptForLabel(this.adaptee,t,!0)):"number"==typeof t&&(e=this.adaptee.timeline.get_script_for_frame(this.adaptee,t-1,!0)),e&&this.executeScript(e)},e.prototype.clear=function(){this.graphics.clear()},e.prototype._updateChildName=function(t,e,n){e!==n&&(e&&this._removeChildName(t,e),n&&this._addChildName(t,n))},e.prototype._removeChildName=function(t,e){if(this.context.isPropertyCaseSensitive||(e=e.toLowerCase()),this._childrenByName&&this._childrenByName[e]&&this._childrenByName[e]===t){var n=this._lookupChildInAS3Object(e);n?this._childrenByName[e]=n:delete this._childrenByName[e]}},e.prototype._addChildName=function(t,e){this.context.isPropertyCaseSensitive||(e=e.toLowerCase());var n=this._childrenByName[e];(!n||n.getDepth()>t.getDepth())&&(this._childrenByName[e]=t)},e.prototype.createEmptyMovieClip=function(t,e){t=xk(this.context,t);var n=VF._scenegraphFactory.createMovieClip();n.name=t,n.assetNamespace=this.adaptee.assetNamespace;var i=this.addChildAtDepth(n,Wk(e));return i.dynamicallyCreated=!0,this.registerScriptObject(n,!1),n.mouseEnabled=!1,i},e.prototype.createTextField=function(t,e,n,i,r,o){t=xk(this.context,t);var a=new Qp;a.name=t,a.textFormat=new cp,Hk(a,this._avm1Context);var s=this.addChildAtDepth(a,Wk(e));return this.registerScriptObject(a,!1),a.x=n,a.y=i,a.width=r,a.height=o,s.dynamicallyCreated=!0,s},e.prototype.get_currentframe=function(){return this.adaptee.currentFrameIndex+1},e.prototype.curveTo=function(t,e,n,i){t=vk(this.context,t),e=vk(this.context,e),n=vk(this.context,n),i=vk(this.context,i),this.graphics.curveTo(t,e,n,i)},e.prototype.setDropTarget=function(t){if(t){for(var e=[];t;)t.isAVMScene?t=null:(null!=t.name&&e.push(t.name),t=t.parent);for(var n=e.length,i="";n>0;)""!=e[--n]&&(i+="/"),i+=e[n];this._dropTarget=i}else this._dropTarget=""},e.prototype.get_droptarget=function(){return this._dropTarget},e.prototype.duplicateMovieClip=function(t,e,n){if((t=xk(this.context,t))==this.adaptee.name)return this;var i=this.get_parent();i||(console.warn("[AVM1MovieClip] duplicateMovieClip could not get parent"),i=this.context.resolveTarget(null));var r=this.clone().adaptee,o=i.initChildMovie(r,t,e,null,!1);o.placeObjectTag=this.placeObjectTag,o.initEvents=this.initEvents;var a=r.transform.matrix3D,s=this.adaptee.transform.matrix3D._rawData;a._rawData[0]=s[0],a._rawData[1]=s[1],a._rawData[4]=s[4],a._rawData[5]=s[5],a._rawData[12]=s[12],a._rawData[13]=s[13],r.transform.invalidateComponents(),r.alpha=this.adaptee.alpha,r.blendMode=this.adaptee.blendMode,r.cacheAsBitmap=this.adaptee.cacheAsBitmap;var u=this.getFilters();return u&&o.setFilters(new ik(this.context,u.value.slice())),n&&o._init(n),o},e.prototype.endFill=function(){this.graphics.endFill()},e.prototype.getForceSmoothing=function(){return console.warn("[AVM1MovieClip] getForceSmoothing"),!1},e.prototype.setForceSmoothing=function(t){t=Ak(this.context,t),console.warn("[AVM1MovieClip] setForceSmoothing")},e.prototype.get_framesloaded=function(){return console.warn("[AVM1MovieClip] get_framesloaded"),this.adaptee.numFrames},e.prototype.getBounds=function(t){if(t){var e=this._stage.pickGroup.getBoundsPicker(this.node.partition).getBoxBounds(t.node,!0,!0);if(e)return JR(e,this.context);console.warn("[AVM1 MovieClip::getBounds] Bounds is null!",this.adaptee.id)}},e.prototype.getBytesLoaded=function(){return this.adaptee.currentFrameIndex>=0?100:-1},e.prototype.getBytesTotal=function(){return 100},e.prototype.getInstanceAtDepth=function(t){var e=this.getDepthToChild(Wk(t));return e?Hk(e,this.context):null},e.prototype.getNextHighestDepth=function(){return this.context.swfVersion<7?0:Jk(this._nextHighestDepth)},e.prototype.getRect=function(t){if(t&&t.node)return JR(this._stage.pickGroup.getBoundsPicker(this.node.partition).getBoxBounds(t.node,!1,!0),this.context)},e.prototype.getSWFVersion=function(){return this.context.swfVersion},e.prototype.getTextSnapshot=function(){console.warn("[AVM1MovieClip] getTextSnapshot")},e.prototype.getURL=function(t,e,n){0!==(t=String(t)).toLowerCase().indexOf("fscommand:")?window.open(t,e):console.warn("[AVM1MovieClip] fsCommand not implemented ")},e.prototype.globalToLocal=function(t){if(t){var e=QL(t);this.node.globalToLocal(e,e),GL(e,t)}},e.prototype.gotoAndPlay=function(t){if(!this.protoTypeChanged&&null!=t){if(Array.isArray(t)){if(0==t.length)return;t=t[0]}if(t instanceof ik){if(!t.value||0==t.value.length)return;t=t.value[0]}if("string"==typeof t){var e=t.toLowerCase();if(null==this.adaptee.timeline._labels[e])return t=parseInt(t),void(isNaN(t)||(this.adaptee.currentFrameIndex=t-1,this.adaptee.play()))}"number"==typeof t&&t<=0||(this.adaptee.play(),this._gotoFrame(t))}},e.prototype.gotoAndStop=function(t){if(!this.protoTypeChanged&&null!=t){if(Array.isArray(t)){if(0==t.length)return;t=t[0]}if(t instanceof ik){if(!t.value||0==t.value.length)return;t=t.value[0]}"number"==typeof t&&t<=0||(this.adaptee.stop(),this._gotoFrame(t))}},e.prototype._gotoFrame=function(t){if("number"==typeof t&&t%1!=0&&(t=t.toString()),"string"==typeof t){var e=t.toLowerCase();if(null==this.adaptee.timeline._labels[e])return t=parseInt(t),void(isNaN(t)||(this.adaptee.currentFrameIndex=t-1));this.adaptee.jumpToLabel(e)}else this.adaptee.currentFrameIndex=t-1},e.prototype.getHitArea=function(){return this._hitArea},e.prototype.setHitArea=function(t){this._hitArea=t;var e=t?t.node:null;e&&!e.container.isAsset(Rl)&&(e=null)},e.prototype.hitTest=function(t,e,n){if(arguments.length<2){var i=t;return"string"==typeof i&&(i=this.context.resolveTarget(i)),!(null==i||!i.node)&&uR.avmStage.pickGroup.getBoundsPicker(this.node.partition).hitTestObject(uR.avmStage.pickGroup.getBoundsPicker(i.node.partition))}t=vk(this.context,t),e=vk(this.context,e);var r=this.get_root();return r?(t+=r.get_x(),e+=r.get_y(),n=Ak(this.context,n),this._stage.pickGroup.getBoundsPicker(this.node.partition).hitTestPoint(t,e,n)):(this._hitReportCount<10&&(console.warn("[AVM1MovieClip:: hitTest] Root return undef! Return false to prevent crash!",this.adaptee.id),this._hitReportCount++,10===this._hitReportCount&&console.warn("[AVM1MovieClip:: hitTest] To many reports, supress other!")),!1)},e.prototype.lineGradientStyle=function(t,e,n,i,r,o,a,s){void 0===o&&(o="pad"),void 0===a&&(a="rgb"),void 0===s&&(s=0);var u=this.context,l=ik.mapToJSArray(e,(function(t){return Ck(u,t)})),c=ik.mapToJSArray(n,(function(t){return vk(u,t)/100})),h=ik.mapToJSArray(i,(function(t){return vk(u,t)}));o=xk(u,o),a=xk(u,a),s=vk(u,s),this.graphics.lineGradientStyle(t,l,c,h,null,o,a,s)},e.prototype.lineStyle=function(t,n,i,r,o,a,s,u){void 0===t&&(t=NaN),void 0===n&&(n=0),void 0===i&&(i=100),void 0===r&&(r=!1),void 0===o&&(o="normal"),void 0===a&&(a="round"),void 0===s&&(s="round"),void 0===u&&(u=3),t=vk(this.context,t),n=Ck(this.context,n),r=Ak(this.context,r),o=xk(this.context,o);var l=e.capStyleMapStringToInt[xk(this.context,a)],c=e.jointStyleMapStringToInt[xk(this.context,s)];u=vk(this.context,u),this.graphics.lineStyle(t,n,i/100,r,e.noScaleDictionary[o],l,c,u)},e.prototype.lineTo=function(t,e){t=qk(vk(this.context,t)),e=qk(vk(this.context,e)),this.graphics.lineTo(t,e)},e.prototype.loadMovie=function(t,e){new WR(this.context).loadMovieAt(t,e,this).then((function(t){}))},e.prototype.loadVariables=function(t,e){this.context.actions._loadVariables(this,t,e)},e.prototype.localToGlobal=function(t){if(t){var e=QL(t);this.node.localToGlobal(e,e),GL(e,t)}},e.prototype.get_lockroot=function(){return this._lockroot},e.prototype.set_lockroot=function(t){this._lockroot=Ak(this.context,t)},e.prototype.moveTo=function(t,e){t=qk(vk(this.context,t)),e=qk(vk(this.context,e)),this.graphics.moveTo(t,e)},e.prototype.nextFrame=function(){this.adaptee.stop(),++this.adaptee.currentFrameIndex},e.prototype.nextScene=function(){console.warn("[AVM1MovieClip] nextScene not implemented")},e.prototype.play=function(){this.adaptee.play()},e.prototype.prevFrame=function(){this.adaptee.stop(),--this.adaptee.currentFrameIndex},e.prototype.prevScene=function(){console.warn("[AVM1MovieClip] prevScene not implemented")},e.prototype.setMask=function(t){null!=t?(t.scriptMaskee=this,(t=this.context.resolveTarget(t))&&(this.adaptee.scriptMask=t.adaptee)):this.adaptee.scriptMask=null},e.prototype.startDrag=function(t,n,i,r,o){var a,s,u=this._stage;if(e.currentDraggedMC&&e.currentDraggedMC!=this&&e.currentDraggedMC.stopDrag(),e.currentDraggedMC=this,t=Ak(this.context,t),this._dragBounds=null,n>r&&(r=(a=[n,r])[0],n=a[1]),i>o&&(i=(s=[o,i])[0],o=s[1]),arguments.length>1&&(n=vk(this.context,n),i=vk(this.context,i),r=vk(this.context,r),o=vk(this.context,o),this._dragBounds=new tt(n,i,r-n,o-i)),!this.isDragging){this.isDragging=!0;var l=u.view.getNode(this.adaptee.parent),c=u.getLocalMouseX(l),h=u.getLocalMouseY(l);this.startDragPoint=this.startDragPoint||new N,this.startDragPoint.setTo(c,h),t&&(this.adaptee.x=this.startDragPoint.x,this.adaptee.y=this.startDragPoint.y),this._dragBounds&&this.checkBounds(),this.startDragMCPosition.x=this.adaptee.x,this.startDragMCPosition.y=this.adaptee.y;var p=this.node;u.view.stage.addEventListener(Ll.MOUSE_MOVE,this.dragListenerDelegate);var d=this.adaptee.getAbstraction(p.partition);d.setParent(p);var f=d.getAbstraction(u.mousePicker.pickGroup).pickingCollision;f.rootNode=p,u.mouseManager.startDragObject(f)}},e.prototype.dragListener=function(t){if(this.adaptee.parent){var e=this._stage.view.getNode(this.adaptee.parent),n=this._stage.getLocalMouseX(e),i=this._stage.getLocalMouseY(e);this.adaptee.x=this.startDragMCPosition.x+(n-this.startDragPoint.x),this.adaptee.y=this.startDragMCPosition.y+(i-this.startDragPoint.y),this._dragBounds&&this.checkBounds()}},e.prototype.checkBounds=function(){this.adaptee.x<this._dragBounds.left&&(this.adaptee.x=this._dragBounds.left),this.adaptee.x>this._dragBounds.right&&(this.adaptee.x=this._dragBounds.right),this.adaptee.y<this._dragBounds.top&&(this.adaptee.y=this._dragBounds.top),this.adaptee.y>this._dragBounds.bottom&&(this.adaptee.y=this._dragBounds.bottom)},e.prototype.stop=function(){return this.adaptee.stop()},e.prototype.stopDrag=function(t){e.currentDraggedMC&&e.currentDraggedMC!=this&&e.currentDraggedMC.stopDrag(),this.isDragging=!1,e.currentDraggedMC=null,this._stage.mousePicker.dragNode=null,this._stage.mouseManager.stopDragObject(),this._stage.view.stage.removeEventListener(Ll.MOUSE_MOVE,this.dragListenerDelegate)},e.prototype.swapChildrenToDepth=function(t,e,n,i){e&&this._depthToChilds[n]&&(e=this.getDepthToChild(n).adapter),delete this.adaptee._sessionID_childs[t.adaptee._sessionID],t.adaptee._avmDepthID=n,t.adaptee._sessionID=-1,this.adaptee.addChildAt(t.adaptee,this.getIndexFromDepthOrTop(n)),t.hasSwappedDepth=!0,this.setDepthToChild(n,t.adaptee),e?(delete this.adaptee._sessionID_childs[e.adaptee._sessionID],this.setDepthToChild(i,e.adaptee),e.adaptee._avmDepthID=i,e.adaptee._sessionID=-1,this.adaptee.addChildAt(e.adaptee,this.getIndexFromDepthOrTop(i)),e.hasSwappedDepth=!0):this.setDepthToChild(i),t&&t.updateAllEvents(),e&&e.updateAllEvents(),this.adaptee.name&&parent&&(this.getLatestObjectForName(t.adaptee.name),e&&this.getLatestObjectForName(e.adaptee.name))},e.prototype.swapDepths=function(t){if(!this.adaptee.isAVMScene&&this.get_parent()){var e=this.get_parent(),n=null;if(e)if(void 0!==t){if("number"==typeof t){if(t=Wk(t),this.adaptee._avmDepthID==t)return;(n=e.getDepthToChild(t))&&(n=n.adapter)}else if(t.adaptee){if(t.get_parent()!=e)return;t=(n=t).adaptee._avmDepthID}e.swapChildrenToDepth(this,n,t,this.adaptee._avmDepthID)}else console.warn("[AVM1MovieClip] swapDepth called with undefined as target depth");else console.warn("[AVM1MovieClip] swapDepth called for object with no parent")}},e.prototype.getTabChildren=function(){return jk(this).tabChildren},e.prototype.setTabChildren=function(t){jk(this).tabChildren=Ak(this.context,t)},e.prototype.get_totalframes=function(){return this.adaptee.numFrames},e.prototype.getTrackAsMenu=function(){return console.warn("[AVM1MovieClip] getTrackAsMenu not implemented"),jk(this).trackAsMenu},e.prototype.setTrackAsMenu=function(t){console.warn("[AVM1MovieClip] setTrackAsMenu not implemented"),jk(this).trackAsMenu=Ak(this.context,t)},e.prototype.unloadMovie=function(){var t=this.adaptee;this.adaptee.constructedKeyFrameIndex=0,this.adaptee.stop(),t.removeChildren(0,t.numChildren),(this.dynamicallyCreated||this.hasSwappedDepth)&&t.parent&&t.parent.adapter&&t.parent.adapter.unregisterScriptObject(t)},e.prototype.getUseHandCursor=function(){return this.adaptee.useHandCursor},e.prototype.setUseHandCursor=function(t){this.adaptee&&(this.adaptee.useHandCursor=t)},e.prototype.setParameters=function(t){for(var e in t)this.alHasProperty(e)||this.alPut(e,t[e])},e.prototype._resolveLevelNProperty=function(t){if("_level0"===t||"_level"===t)return this.context.resolveRoot();if("_root"===t)return this.context.resolveRoot();if(0===t.indexOf("_level")){var e=t.substring(6),n=0|e;if(n>0&&e==n)return this.context.resolveLevel(n)}return null},e.prototype._getCachedPropertyResult=function(t){return this._cachedPropertyResult?this._cachedPropertyResult.value=t:this._cachedPropertyResult={flags:65,value:t},this._cachedPropertyResult},e.prototype.alGetOwnProperty=function(e){var n=t.prototype.alGetOwnProperty.call(this,e);if(n)return n;if("_"===e[0])if("l"===e[1]&&0===e.indexOf("_level")||"r"===e[1]&&0===e.indexOf("_root")){var i=this._resolveLevelNProperty(e);if(i)return this._getCachedPropertyResult(i)}else if(e.toLowerCase()in cR)return t.prototype.alGetOwnProperty.call(this,e.toLowerCase());if(Uk(this)){var r=this._lookupChildByName(e);if(r)return this._getCachedPropertyResult(r)}},e.prototype.alGetOwnPropertiesKeys=function(){var e=t.prototype.alGetOwnPropertiesKeys.call(this);if(!Uk(this))return e;for(var n=Object.assign(Object.create(null),this._childrenByName),i=0,r=e;i<r.length;i++){n[r[i]]=!0}return Object.keys(n)},e.prototype._init=function(t){var e=this;t instanceof jL&&Pk(t,(function(n){e.alPut(n,t.alGet(n))}),null)},e.prototype._initEventsHandlers=function(){this.bindEvents(YR)},e.currentMCAssetNameSpace="",e.currentDraggedMC=null,e.pokiSDKonStopActionChildName=null,e.pokiSDKonStopAction=null,e.capStyleMapStringToInt={none:0,round:1,square:2},e.jointStyleMapStringToInt={round:0,bevel:1,miter:2},e.noScaleDictionary={normal:$o.NORMAL,none:$o.NONE,vertical:$o.VERTICAL,horizontal:$o.HORIZONTAL},e}(FR);function ZR(t){Uk(t)&&t.updateAllEvents()}var tF,eF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return FL(e,t),e.createAVM1Class=function(t){return Yk(t,!0,e,["initialize"],[])},e.initialize=function(t,e){var n=new UL(65,new ik(t,[]));e.alSetOwnProperty("_listeners",n),n=new UL(65,new gk(t,(function(e){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];this.alGet("_listeners")instanceof ik&&Qk(t,this,e,n)}))),e.alSetOwnProperty("broadcastMessage",n),n=new UL(65,new gk(t,(function(t){var e=this.alGet("_listeners");return e instanceof ik&&(e.value.push(t),ZR(this),!0)}))),e.alSetOwnProperty("addListener",n),n=new UL(65,new gk(t,(function(t){var e=this.alGet("_listeners");if(!(e instanceof ik))return!1;var n=e.value,i=n.indexOf(t);return!(i<0)&&(n.splice(i,1),ZR(this),!0)}))),e.alSetOwnProperty("removeListener",n)},e}(jL),nF=["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"],iF=function(t){function e(e){var n=t.call(this,e)||this;n.alPrototype=e.builtins.Object.alGetPrototypeProperty();var i=null;return nF.forEach((function(t){i=new UL(131,null,{alCall:function(){return null}}),n.alSetOwnProperty(t,i)}),n),n}return FL(e,t),e}(jL),rF=function(t){function e(e){var n=t.call(this,e)||this;return n.alPrototype=e.builtins.Object.alGetPrototypeProperty(),Fk(n,{sandboxType:{get:n.getSandboxType},allowDomain:{value:n.allowDomain},allowInsecureDomain:{value:n.allowInsecureDomain},loadPolicyFile:{value:n.loadPolicyFile}}),n}return FL(e,t),e.prototype.getSandboxType=function(){return null},e.prototype.allowDomain=function(t){t=Sk(this.context,t)},e.prototype.allowInsecureDomain=function(t){t=Sk(this.context,t)},e.prototype.loadPolicyFile=function(t){t=Sk(this.context,t)},e}(jL),oF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return FL(e,t),e.alInitStatic=function(t){this._capabilities=new iF(t),this._security=new rF(t)},e.createAVM1Class=function(t){return Yk(t,!1,e,["capabilities#","security#"],[])},e.getCapabilities=function(t){return t.getStaticState(e)._capabilities},e.getSecurity=function(t){return t.getStaticState(e)._security},e}(jL),aF=[-1,37,39,36,35,45,46,-1,8,-1,-1,-1,-1,13,38,40,33,34,9,27],sF={1:VR[8192],2:VR[16384],4:VR[1024],8:VR[2048],64:VR[4096],160:VR[32768],272:VR[65536]},uF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return FL(e,t),e.createAVM1Class=function(t){return Yk(t,!0,e,[],["$version#","_alpha#","getAwayJSID","attachAudio","attachBitmap","attachMovie","beginFill","beginBitmapFill","beginGradientFill","blendMode#","cacheAsBitmap#","_callFrame","clear","createEmptyMovieClip","createTextField","_currentframe#","curveTo","_droptarget#","duplicateMovieClip","enabled#","endFill","filters#","_framesloaded#","_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","_root#","_rotation#","scale9Grid#","scrollRect#","setMask","_soundbuftime#","startDrag","stop","stopDrag","swapDepths","tabChildren#","tabEnabled#","tabIndex#","_target#","_totalframes#","trackAsMenu#","toString","unloadMovie","_url#","useHandCursor#","_visible#","_width#","_x#","_xmouse#","_xscale#","_y#","_ymouse#","_yscale#"])},e.prototype.freeFromScript=function(){t.prototype.freeFromScript.call(this),this.adaptee.mouseEnabled=!0,this.adaptee.mouseChildren=!1},e.prototype._updateMouseEnabled=function(t,e){!this.adaptee.isAVMScene&&t.isMouse&&(this.adaptee.mouseEnabled=!0,this.adaptee.mouseChildren=!1,e?(this._mouseListenerCount++,t.isButton&&(this._mouseButtonListenerCount++,this.adaptee.buttonMode=!0)):(this._mouseListenerCount--,this._mouseListenerCount<=0&&(this._mouseListenerCount=0),t.isButton&&(this._mouseButtonListenerCount--,this._mouseButtonListenerCount<=0&&(this._mouseButtonListenerCount=0,this.adaptee.buttonMode=!1))))},e.prototype.initAVM1SymbolInstance=function(e,n){t.prototype.initAVM1SymbolInstance.call(this,e,n),this._requiredListeners=Object.create(null),this._actions=this.adaptee.timeline.avm1ButtonActions;for(var i=null,r=null,o=!1,a=this._actions.length,s=0;s<a;s++)if((i=this._actions[s]).actionsBlock||(i.actionsBlock=e.actionsDataFactory.createActionsData(i.actionsData,"s"+this.adaptee.id+"e"+s)),i.keyCode,0!=i.stateTransitionFlags){for(var u in r=this._mouseEventHandler.bind(this,i.stateTransitionFlags),o=!1,sF)i.stateTransitionFlags&parseInt(u)&&(o=!0,this._requiredListeners[sF[u].eventName]={handler:sF[u],boundListener:r});o||console.warn("unknown button event flag",i.stateTransitionFlags)}this.adaptee.addButtonListeners(),this._initEventsHandlers(),this._addListeners()},e.prototype.initAdapter=function(){t.prototype.initAdapter.call(this),this._addListeners()},e.prototype.stop=function(){return this.adaptee.stop()},e.prototype.getEnabled=function(){return this.enabled},e.prototype.setEnabled=function(t){this.adaptee.buttonEnabled=t,this.adaptee.mouseEnabled=t,t!=this.enabled&&(this.enabled=t,this.setEnabledListener(t))},e.prototype.getTrackAsMenu=function(){return!1},e.prototype.setTrackAsMenu=function(t){},e.prototype._addListeners=function(){for(var t in this._requiredListeners)this._eventHandlers[t]=this._requiredListeners[t].handler,this._eventsListeners[t]=this._requiredListeners[t].boundListener;this.setEnabledListener(this.enabled)},e.prototype._removeListeners=function(){for(var t in this._requiredListeners)this.adaptee.removeEventListener(t,this._requiredListeners[t].boundListener)},e.prototype._keyDownHandler=function(t){for(var e=this._actions,n=e.length,i=0;i<n;i++){var r=e[i];r.keyCode&&((r.keyCode<32&&aF[r.keyCode]===t.axGetPublicProperty("keyCode")||r.keyCode===t.axGetPublicProperty("charCode"))&&this._runAction(r))}},e.prototype._mouseEventHandler=function(t){for(var e=this._actions,n=e.length,i=0;i<n;i++){var r=e[i];r.stateTransitionFlags===t&&this._runAction(r)}},e.prototype._runAction=function(t){var e=this._avm1Context;this.adaptee.parent&&e.executeActions(t.actionsBlock,Hk(this.adaptee.parent,this.context))},e.prototype._initEventsHandlers=function(){this.bindEvents(qR)},e}($R),lF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return FL(e,t),e.createAVM1Class=function(t){return Yk(t,!0,e,[],["getRGB","getTransform","setRGB","setTransform"],null,e.prototype.avm1Constructor)},e.prototype.avm1Constructor=function(t){t&&(this._target=this.context.resolveTarget(t),this._target&&this._target.adaptee&&!this._target.adaptee.isAVMScene&&(this._target.avmColor=this,this._targetAwayObject=this._target.adaptee))},e.prototype.changeTarget=function(t){t&&t instanceof FR?(this._target=t,this._target.avmColor=this,this._target._ctBlockedByScript=!0,this._targetAwayObject=this._target.adaptee):this._target=null},e.prototype.getRGB=function(){var t=e.prototype.getTransform.call(this);return t?t.getRgb():null},e.prototype.getTransform=function(){return this._targetAwayObject?tR.fromAwayColorTransform(this.context,this._targetAwayObject.transform.colorTransform):null},e.prototype.setRGB=function(t){var n=e.prototype.getTransform.call(this);n&&(n.setRgb(t),e.prototype.setTransform.call(this,n)),this._target&&(this._target._ctBlockedByScript=!0)},e.prototype.setTransform=function(t){if(this._targetAwayObject&&t){var e=t;t instanceof tR||t instanceof jL&&(e=function(t){var e=t.context;if(!(t instanceof jL))return new tR(e,1,1,1,1,0,0,0,0);var n=t.alGet("alphaOffset");null==n&&(n=t.alGet("ab"));var i=t.alGet("alphaMultiplier");null==i&&null!=(i=t.alGet("aa"))&&(i/=100);var r=t.alGet("redOffset");null==r&&(r=t.alGet("rb"));var o=t.alGet("redMultiplier");null==o&&null!=(o=t.alGet("ra"))&&(o/=100);var a=t.alGet("greenOffset");null==a&&(a=t.alGet("gb"));var s=t.alGet("greenMultiplier");null==s&&null!=(s=t.alGet("ga"))&&(s/=100);var u=t.alGet("blueOffset");null==u&&(u=t.alGet("bb"));var l=t.alGet("blueMultiplier");return null==l&&null!=(l=t.alGet("ba"))&&(l/=100),new tR(e,Dk(e,$L(o,1)),Dk(e,$L(s,1)),Dk(e,$L(l,1)),Dk(e,$L(i,1)),Dk(e,$L(r,0)),Dk(e,$L(a,0)),Dk(e,$L(u,0)),Dk(e,$L(n,0)))}(t)),e&&(this._targetAwayObject.transform.colorTransform._rawData[0]=e._rawData[0],this._targetAwayObject.transform.colorTransform._rawData[1]=e._rawData[1],this._targetAwayObject.transform.colorTransform._rawData[2]=e._rawData[2],this._targetAwayObject.transform.colorTransform._rawData[3]=e._rawData[3],this._targetAwayObject.transform.colorTransform._rawData[4]=e._rawData[4],this._targetAwayObject.transform.colorTransform._rawData[5]=e._rawData[5],this._targetAwayObject.transform.colorTransform._rawData[6]=e._rawData[6],this._targetAwayObject.transform.colorTransform._rawData[7]=e._rawData[7],this._targetAwayObject.transform.invalidateColorTransform(),this._targetAwayObject.invalidate(),this._targetAwayObject._invalidateHierarchicalProperty(gr.COLOR_TRANSFORM))}this._target&&(this._target._ctBlockedByScript=!0)},e}(jL),cF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return FL(e,t),e.createAVM1Class=function(t){return Yk(t,!1,e,["show","hide"],[])},e.bindStage=function(t,n,i,r){e.mouseButtonsState[1]=0,e.mouseButtonsState[4]=0,e.mouseButtonsState[2]=0;var o=i.view.stage;e.mouseDownDelegate&&o.removeEventListener(Ll.MOUSE_DOWN,e.mouseDownDelegate),e.mouseMoveDelegate&&o.removeEventListener(Ll.MOUSE_MOVE,e.mouseMoveDelegate),e.mouseOutDelegate&&o.removeEventListener(Ll.MOUSE_OUT,e.mouseOutDelegate),e.mouseUpDelegate&&o.removeEventListener(Ll.MOUSE_UP,e.mouseUpDelegate),e.mouseDownDelegate=function(t){var i,r=null!==(i=t.buttons)&&void 0!==i?i:0;e.mouseButtonsState[1&r]=1,e.mouseButtonsState[2&r]=1,e.mouseButtonsState[4&r]=1,4!==r&&Mk(n,"broadcastMessage",["onMouseDown"])},e.mouseMoveDelegate=function(t){Mk(n,"broadcastMessage",["onMouseMove"])},e.mouseOutDelegate=function(t){Mk(n,"broadcastMessage",["onMouseOut"])},e.mouseUpDelegate=function(t){var i,r=null!==(i=t.buttons)&&void 0!==i?i:0;e.mouseButtonsState[1&r]=1,e.mouseButtonsState[2&r]=1,e.mouseButtonsState[4&r]=1,4!==r&&Mk(n,"broadcastMessage",["onMouseUp"])},o.addEventListener(Ll.MOUSE_DOWN,e.mouseDownDelegate),o.addEventListener(Ll.MOUSE_MOVE,e.mouseMoveDelegate),o.addEventListener(Ll.MOUSE_OUT,e.mouseOutDelegate),o.addEventListener(Ll.MOUSE_UP,e.mouseUpDelegate)},e.hide=function(){VF.instance.Stage.avmStage.mouseManager.showCursor=!1},e.show=function(){VF.instance.Stage.avmStage.mouseManager.showCursor=!0},e.mouseButtonsState=((tF={})[1]=0,tF[4]=0,tF[2]=0,tF),e.mouseDownDelegate=null,e.mouseMoveDelegate=null,e.mouseOutDelegate=null,e.mouseUpDelegate=null,e}(jL),hF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return FL(e,t),e.createAVM1Class=function(t){return Yk(t,!0,e,[],["loadClip","unloadClip","getProgress"],null,e.prototype.avm1Constructor)},e.prototype.avm1Constructor=function(){eF.initialize(this.context,this)},e.prototype.loadClip=function(t,e){var n=this;if("number"==typeof e){if(0===e)return!1}else if(!this.context.resolveTarget(e))return!1;var i=new WR(this.context);if(this._loaderHelper=i,this._target=null,!t)return!1;var r=e;return 0!==t.indexOf("http://")&&0!==t.indexOf("https://")&&(t=this.context.globals.SWF_BASE_URL+t),i.loadMovieAt(t,"get",r).then((function(t){t?(Mk(n,"broadcastMessage",["onLoadComplete",e]),setTimeout((function(){Mk(n,"broadcastMessage",["onLoadInit",e])}))):console.warn("load - content is null")})),!0},e.prototype.unloadClip=function(t){return!0},e.prototype.getProgress=function(t){return 0},e}(jL);function pF(t,e,n,i,r,o){var a=new yt(e),s=a.url||"",u=s.replace(/\?.*$/,""),l=kg(s,null);if(l){if(l.supressLoad)return void console.log("[LOADER] Load supressed ",l.url);console.log("[LOADER] Override loading url:",l.url),a.url=l.url}else console.log("[LOADER] start loading the url:",u);n&&(a.method=n),r&&(a.data="application/x-www-form-urlencoded"===i?new ht(r):r);var c=new pt;c.dataFormat="text";var h=function(e){c.removeEventListener(K.LOAD_COMPLETE,h),Qk(t,o,"onData",[c.data])};c.addEventListener(K.LOAD_COMPLETE,h),o._as3Loader=c,l&&l.supressErrors&&c.addEventListener(K.LOAD_ERROR,(function(t){console.log("[LOADER] Error supressed by redirect rule as empty complete events!",t),c.dispatchEvent(new K(K.LOAD_COMPLETE,c))})),c.load(a)}var dF,fF=function(t){function e(e){var n=t.call(this,e)||this;return n.alSetOwnPrototypeProperty(new gF(e,n)),n}return FL(e,t),e.prototype.alConstruct=function(t){var e=new jL(this.context);return e.alPrototype=this.alGetPrototypeProperty(),e.isAVM1DataObject=!0,e},e.prototype.alCall=function(t,e){return this.alConstruct(e)},e}(VL),gF=function(t){function e(e,n){var i=t.call(this,e)||this;return Fk(i,{constructor:{value:n,writable:!0},toString:{value:i._toString},load:{value:i.load},onData:{value:i.defaultOnData},decode:{value:i.decode},send:{value:i.load},sendAndLoad:{value:i.sendAndLoad}}),i}return FL(e,t),e.prototype.getBytesLoaded=function(){if(this._as3Loader)return this._as3Loader.bytesLoaded},e.prototype.getBytesTotal=function(){if(this._as3Loader)return this._as3Loader.bytesTotal},e.prototype.load=function(t){return!!(t=Sk(this.context,t))&&(pF(this.context,t,null,null,null,this),!0)},e.prototype.defaultOnData=function(t){xd(t)?Qk(this.context,this,"onLoad",[!1]):(e.prototype.decode.call(this,t),this.alPut("loaded",!0),Qk(this.context,this,"onLoad",[!0]))},e.prototype.decode=function(t){t=Sk(this.context,t);var e=new ht(t);for(var n in e.variables)this.alPut(n,e.variables[n])},e.prototype._toString=function(){var t={};for(var e in this._ownProperties)t[e]=this.alGet(e);return new URLSearchParams(t).toString()},e.prototype.send=function(t,e,n){return t=Sk(this.context,t),n=xd(n)?"POST":Sk(this.context,n),!1},e.prototype.sendAndLoad=function(t,e,n){if(t=Sk(this.context,t),n=xd(n)?"POST":Sk(this.context,n),!(t&&e instanceof jL))return!1;if(!e.isAVM1DataObject)return!1;var i=this.alGet("contentType");i=xd(i)?"application/x-www-form-urlencoded":Sk(this.context,i);var r=xk(this.context,this);return pF(this.context,t,n,i,r,e),!0},e}(jL),_F=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return FL(e,t),e.createAVM1Class=function(t){return Yk(t,!0,e,[],["attachSound","duration#","getBytesLoaded","getBytesTotal","loadSound","getPan","setPan","getTransform","setTransform","getVolume","setVolume","start","stop","onSoundComplete"],null,e.prototype.avm1Constructor)},e.prototype.avm1Constructor=function(t){this._target=this.context.resolveTarget(t),this._sound=null,this._channel=null,this._playAfterLoading=!1,this._assetNameSpace=$R.currentMCAssetNameSpace},e.prototype.alPut=function(e,n){t.prototype.alPut.call(this,e,n),e&&"onsoundcomplete"==e.toLowerCase()&&this.onSoundComplete(n)},e.prototype.alDeleteProperty=function(e){return t.prototype.alDeleteProperty.call(this,e),e&&"onsoundcomplete"==e.toLowerCase()&&this.onSoundComplete(),!0},e.prototype.attachSound=function(t){if("string"==typeof t||"number"==typeof t){var e=mt.getAsset(t,this._assetNameSpace);e&&(this._sound=e.clone(),this._sound&&(this.soundCompleteInternal=this.soundCompleteInternal.bind(this)))}},e.prototype.soundCompleteInternal=function(){this._onCompleteCallback&&this._onCompleteCallback()},e.prototype.onSoundComplete=function(t){void 0===t&&(t=null);var e=this;this._onCompleteCallback=null,t&&(this._onCompleteCallback=function(){t.alCall(e)}),this._sound},e.prototype.loadSound=function(t,e){var n=this;e?(this._playAfterLoading=!0,console.warn("[AVM1Sound] - loadSound called with isStreaming=true, but streaming not implemented yet",t,e)):this._playAfterLoading=!1;var i=new gt;i.addEventListener(d.ASSET_COMPLETE,(function(t){return n.onAssetComplete(t)})),i.addEventListener(H.LOADER_COMPLETE,(function(t){return n.onLoadComplete(t)})),i.addEventListener(K.LOAD_ERROR,(function(t){return n.onLoadError(t)})),i.load(new yt(t),null,t,new xt)},e.prototype.onAssetComplete=function(t){var e=t.asset;e.isAsset(D)&&(this._sound=e,this._playAfterLoading&&this._sound.play(0))},e.prototype.onLoadComplete=function(t){this._sound||console.warn("[AVM1Sound] - loadSound: Soundloading is complete, but no WaveAudio was created.")},e.prototype.onLoadError=function(t){console.warn("[AVM1Sound] - loadSound: onLoadError")},e.prototype.getBytesLoaded=function(){return console.warn("AVM1Sound.getBytesLoaded"),0},e.prototype.getBytesTotal=function(){return console.warn("AVM1Sound.getBytesTotal"),1},e.prototype.getDuration=function(){return console.warn("AVM1Sound.getDuration"),0},e.prototype.getPan=function(){return 0},e.prototype.setPan=function(t){},e.prototype.getTransform=function(){return console.warn("AVM1Sound.getTransform"),null},e.prototype.setTransform=function(t){console.warn("AVM1Sound.setTransform")},e.prototype.getVolume=function(){return this._sound?100*this._sound.volume:(console.warn("AVM1Sound.getVolume called, but no WaveAudio set"),100)},e.prototype.setVolume=function(t){this._sound||this._target?(this._target&&this._target.adaptee&&(this._target.adaptee.soundVolume=t/100),this._sound&&(this._sound.volume=t/100)):S.setVolume(t)},e.prototype.start=function(t,e){this._sound&&(e=isNaN(e)||e<1?1:Math.floor(e),this._target&&this._target.adaptee&&this._target.adaptee.startSound(this._sound,e,this.soundCompleteInternal))},e.prototype.stop=function(t){this._sound&&this._target&&this._target.adaptee&&this._target.adaptee.stopSounds(this._sound)},e}(jL),mF=function(){function t(){this._values={},this._realStorage=null}return t.prototype.getItem=function(t){return this._realStorage&&(this._values[t]=this._realStorage.getItem(t)),this._values[t]},t.prototype.setItem=function(t,e){this._realStorage&&this._realStorage.setItem(t,e),this._values[t]=e},t.prototype.removeItem=function(t){this._realStorage&&this._realStorage.removeItem(t),delete this._values[t]},t}();function yF(){if(!dF&&(dF=new mF,"undefined"!=typeof Storage))try{dF._realStorage=window.localStorage}catch(t){console.warn("[Shared Storage] ",t)}return dF}var AF,vF=function(){function t(){}return t.decodedData=function(){var t=yF()._values,e={};for(var n in t)e[n]=JSON.parse(t[n]);return this._lastRawData=e,e},t.encodeAndApplyData=function(){if(!this._lastRawData)throw"Need call decode before encode for detecting a model";var t=yF();for(var e in this._lastRawData)t.setItem(e,JSON.stringify(this._lastRawData[e]));return t._values},t._lastRawData=null,t}(),bF=function(t){function e(e){var n=t.call(this,e)||this;return n._flushPending=0,Fk(n,{data:{get:n.getData,enumerable:!0},clear:{value:n.clear,writable:!0},flush:{value:n.flush,writable:!0}}),n._bindedFlush=n.flush.bind(n),n}return FL(e,t),e.createAVM1Class=function(t){return Yk(t,!0,e,["getLocal"],["data#","flush","clear"])},e.prototype.setName=function(t){t=Sk(this.context,t),this._storage_name=t;var e=yF().getItem(t);if(e)try{return void(this._data=this.getAVM1Value(JSON.parse(e)))}catch(t){console.warn("[AVM1 SharedObject]","Invalid data:",e)}return this._data=Ek(this.context),console.warn("[AVM1 SharedObject]","No shared object found"),null},e.getLocal=function(t,n,i,r){(i||r)&&console.warn("SharedObject.getLocal: params 'localPath' and 'secure' not supported");var o=new e(t);return o.setName(n),o},e.prototype.applyDataHook=function(t){var e=this;return t.__alPutHookApplyed||(t.__alPutHookApplyed=!0,t.alPut=function(n,i){jL.prototype.alPut.call(t,n,i),e.requestFlush()}),t},e.prototype.requestFlush=function(){clearTimeout(this._flushPending),this._flushPending=setTimeout(this._bindedFlush,100)},e.prototype.getData=function(){return this.applyDataHook(this._data)},e.prototype.clear=function(){yF().removeItem(this._storage_name)},e.prototype.getAVM1Value=function(t){if("number"==typeof t||"string"==typeof t||"boolean"==typeof t)return t;if(Array.isArray(t)){for(var e=0;e<t.length;e++)t[e]=this.getAVM1Value(t[e]);return new ik(this.context,t)}if("object"==typeof t){var n=Ek(this.context);for(var i in t)n.alSetOwnProperty(i,new UL(64,this.getAVM1Value(t[i])));return n}},e.prototype.getJSValue=function(t){if("number"==typeof t||"string"==typeof t||"boolean"==typeof t)return t;if(Nk(this.context,t)){console.log("array");var e=t.value,n=[];if(e)for(var i=e.length,r=0;r<i;r++)n[r]=this.getJSValue(e[r]);return n}if(t instanceof jL){var o={};for(var a in t._ownProperties)"__proto__"!=a&&"__constructor__"!=a&&(o[a]=this.getJSValue(t._ownProperties[a].value));return o}console.log("unknown datatype")},e.prototype.flush=function(t){this._flushPending&&(clearTimeout(this._flushPending),this._flushPending=null);var e=this.getJSValue(this._data);return yF().setItem(this._storage_name,JSON.stringify(e)),!1},e}(jL),CF=function(){function t(t,e){}return t.prototype.axCallPublicProperty=function(t,e){return null},t.prototype.axGetPublicProperty=function(t){return null},t.prototype.axSetPublicProperty=function(t,e){return null},t.prototype.removeChild=function(t){},Object.defineProperty(t.prototype,"attributes",{get:function(){return console.log("attributes not implemented yet in flash/XMLNode"),null},set:function(t){console.log("attributes not implemented yet in flash/XMLNode")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return console.log("childNodes not implemented yet in flash/XMLNode"),[]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"localName",{get:function(){return console.log("localName not implemented yet in flash/XMLNode"),""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"namespaceURI",{get:function(){return console.log("namespaceURI not implemented yet in flash/XMLNode"),""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"prefix",{get:function(){return console.log("prefix not implemented yet in flash/XMLNode"),""},enumerable:!1,configurable:!0}),t.prototype.appendChild=function(t){console.log("appendChild not implemented yet in flash/XMLNode")},t.prototype.cloneNode=function(t){return console.log("cloneNode not implemented yet in flash/XMLNode"),null},t.prototype.getNamespaceForPrefix=function(t){return console.log("getNamespaceForPrefix not implemented yet in flash/XMLNode"),""},t.prototype.getPrefixForNamespace=function(t){return console.log("getPrefixForNamespace not implemented yet in flash/XMLNode"),""},t.prototype.hasChildNodes=function(){return console.log("hasChildNodes not implemented yet in flash/XMLNode"),!1},t.prototype.insertBefore=function(t,e){console.log("insertBefore not implemented yet in flash/XMLNode")},t.prototype.removeNode=function(){console.log("removeNode not implemented yet in flash/XMLNode")},t.prototype.toString=function(){return console.log("toString not implemented yet in flash/XMLNode"),""},t}();function xF(t){if(!(t instanceof jL))return null;var e=t.context;return Bk(e,t,e.globals.XMLNode)?t.as3XMLNode:null}function IF(t,e){if(!xd(e)){var n=e._as2Node;return n||((n=new jL(t)).alPrototype=t.globals.XMLNode.alGetPrototypeProperty(),DF.prototype.initializeFromAS3Node.call(n,e)),n}}!function(t){t[t.ELEMENT_NODE=1]="ELEMENT_NODE",t[t.TEXT_NODE=3]="TEXT_NODE"}(AF||(AF={}));var EF=function(t){function e(e){var n=t.call(this,e)||this;return n.alSetOwnPrototypeProperty(new DF(e,n)),n}return FL(e,t),e.prototype.alConstruct=function(t){if(!t&&t.length<2)Od.notImplemented("Unsupported amount of parameters for AVM1XMLNode constructor");else{var e=Dk(this.context,t[0]),n=Sk(this.context,t[1]);if(e===AF.ELEMENT_NODE||e===AF.TEXT_NODE){var i=new jL(this.context);return i.alPrototype=this.alGetPrototypeProperty(),DF.prototype.initializeNode.call(i,e,n),i}Od.notImplemented("Unsupported AVM1XMLNode type: "+e)}},e.prototype.alCall=function(t,e){return this.alConstruct(e)},e}(VL),wF=function(t){function e(e,n){var i=t.call(this,e)||this;return i._as3XMLNode=n,i._cachedNodePropertyDescriptor=new UL(70,void 0),Fk(i,{length:{get:i.getLength}}),i}return FL(e,t),Object.defineProperty(e.prototype,"as3ChildNodes",{get:function(){return this._as3XMLNode.childNodes},enumerable:!1,configurable:!0}),e.prototype.getLength=function(){return this.as3ChildNodes.length},e.prototype.alGetOwnProperty=function(e){if(Tk(this.context,e)){var n=bk(this.context,e);if(n>=0&&n<this.as3ChildNodes.length)return this._cachedNodePropertyDescriptor.value=IF(this.context,this.as3ChildNodes[n]),this._cachedNodePropertyDescriptor}return t.prototype.alGetOwnProperty.call(this,e)},e}(jL),SF=function(t){function e(e,n){var i=t.call(this,e)||this;return i.alPrototype=e.builtins.Object.alGetPrototypeProperty(),i._nativeAttr=n,i._cachedNodePropertyDescriptor=new UL(64,void 0),i}return FL(e,t),e.prototype.alGetOwnProperty=function(t){var e=Sk(this.context,t),n=this._nativeAttr.getNamedItem(e);if(n)return this._cachedNodePropertyDescriptor.value=n.nodeValue,this._cachedNodePropertyDescriptor},e.prototype.alSetOwnProperty=function(t,e){var n=Sk(this.context,t);if(64&e.flags){var i=Sk(this.context,e.value);this._nativeAttr[n]=i}},e.prototype.alHasOwnProperty=function(t){var e=Sk(this.context,t);return!!this._nativeAttr.getNamedItem(e)},e.prototype.alDeleteOwnProperty=function(t){var e=Sk(this.context,t);this._nativeAttr.removeNamedItem(e)},e.prototype.alGetOwnPropertiesKeys=function(){for(var t=[],e=0;e<this._nativeAttr.length;e++)t[e]=Sk(this.context,this._nativeAttr.item(e).name);return t},e}(jL),DF=function(t){function e(e,n){var i=t.call(this,e)||this;return Fk(i,{constructor:{value:n,writable:!0},attributes:{get:i.getAttributes,set:i.setAttributes},childNodes:{get:i.getChildNodes},firstChild:{get:i.getFirstChild},lastChild:{get:i.getLastChild},localName:{get:i.getLocalName},namespaceURI:{get:i.getNamespaceURI},nextSibling:{get:i.getNextSibling},nodeName:{get:i.getNodeName,set:i.setNodeName},nodeType:{get:i.getNodeType},nodeValue:{get:i.getNodeValue,set:i.setNodeValue},parentNode:{get:i.getParentNode},prefix:{get:i.getPrefix},previousSibling:{get:i.getPreviousSibling},appendChild:{value:i.appendChild},cloneNode:{value:i.cloneNode},getNamespaceForPrefix:{value:i.getNamespaceForPrefix},getPrefixForNamespace:{value:i.getPrefixForNamespace},hasChildNodes:{value:i.hasChildNodes},insertBefore:{value:i.insertBefore},removeNode:{value:i.removeNode},toString:{value:i._toString}}),i}return FL(e,t),e.prototype.initializeNode=function(t,n){this.as3XMLNode=new CF(t,n),this._attributes=void 0,this._childNodes=void 0,e.addMap(this.as3XMLNode,this)},e.prototype.initializeFromAS3Node=function(t){this.as3XMLNode=t,this._attributes=void 0,this._childNodes=void 0,e.addMap(this.as3XMLNode,this)},e.prototype._toString=function(){return(new XMLSerializer).serializeToString(this.as3XMLNode).replace(/\/>/g," />")},e.prototype.appendChild=function(t){this.as3XMLNode.appendChild(xF(t))},e.prototype.getAttributes=function(){var t=this.as3XMLNode.attributes;if(!xd(t))return this._attributes||(this._attributes=new SF(this.context,t)),this._attributes},e.prototype.setAttributes=function(t){var e=this;if(xd(t))this._attributes=void 0;else if(t instanceof SF)this._attributes=t;else{var n=this.context,i=this.as3XMLNode.attributes;Pk(t,(function(t){var r=Sk(n,t),o=Sk(n,e.alGet(t)),a=document.createAttribute(r);a.value=o,i.setNamedItem(a)}),this),console.warn("[XMLNode] Invalid attribute implementation"),this._attributes=new SF(n,this.as3XMLNode.attributes)}},e.prototype.getChildNodes=function(){return this._childNodes||(this._childNodes=new wF(this.context,this.as3XMLNode)),this._childNodes},e.prototype.cloneNode=function(t){t=Ak(this.context,t);var e=this.as3XMLNode.axCallPublicProperty("cloneNode",[t]);return IF(this.context,e)},e.prototype.getFirstChild=function(){return IF(this.context,this.as3XMLNode.firstChild)},e.prototype.getNamespaceForPrefix=function(t){return this.as3XMLNode.axCallPublicProperty("getNamespaceForPrefix",[t])},e.prototype.getPrefixForNamespace=function(t){return this.as3XMLNode.axCallPublicProperty("getNamespaceForPrefix",[t])},e.prototype.hasChildNodes=function(){return this.as3XMLNode.hasChildNodes()},e.prototype.insertBefore=function(t,e){this.as3XMLNode.axCallPublicProperty("insertBefore",[xF(t),xF(e)])},e.prototype.getLastChild=function(){return IF(this.context,this.as3XMLNode.lastChild)},e.prototype.getLocalName=function(){return this.as3XMLNode.localName},e.prototype.getNamespaceURI=function(){return this.as3XMLNode.namespaceURI},e.prototype.getNextSibling=function(){return IF(this.context,this.as3XMLNode.nextSibling)},e.prototype.getNodeName=function(){return this.as3XMLNode.nodeName},e.prototype.setNodeName=function(t){t=Sk(this.context,t),this.as3XMLNode.nodeName=t},e.prototype.getNodeType=function(){return this.as3XMLNode.nodeType},e.prototype.getNodeValue=function(){return this.as3XMLNode.nodeValue},e.prototype.setNodeValue=function(t){t=Sk(this.context,t),this.as3XMLNode.nodeValue=t},e.prototype.getParentNode=function(){return IF(this.context,this.as3XMLNode.parentNode)},e.prototype.getPrefix=function(){return this.as3XMLNode.prefix},e.prototype.getPreviousSibling=function(){return IF(this.context,this.as3XMLNode.previousSibling)},e.prototype.removeNode=function(){this.as3XMLNode.removeNode()},e.addMap=function(t,e){t._as2Node=e},e}(jL),TF=function(t){function e(e,n){var i=t.call(this,e)||this;return i.alSetOwnPrototypeProperty(new PF(e,i,n)),i}return FL(e,t),e.prototype.alConstruct=function(t){var e=t&&Sk(this.context,t[0]),n=new jL(this.context);return n.alPrototype=this.alGetPrototypeProperty(),n.isAVM1DataObject=!0,e||(e=""),PF.prototype.initializeDocument.call(n,e),n},e.prototype.alCall=function(t,e){return this.alConstruct(e)},e}(VL),PF=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.alPrototype=i.alGetPrototypeProperty(),Fk(r,{constructor:{value:n,writable:!0},addRequestHeader:{value:r.addRequestHeader},createElement:{value:r.createElement},createTextNode:{value:r.createTextNode},getBytesLoaded:{value:r.getBytesLoaded},getBytesTotal:{value:r.getBytesTotal},ignoreWhite:{value:!1,writable:!0},load:{value:r.load},parseXML:{value:r.parseXML},send:{value:r.send},sendAndLoad:{value:r.sendAndLoad},onData:{value:r.defaultOnData,writable:!0}}),r}return FL(e,t),e.prototype.initializeDocument=function(t){t=Sk(this.context,t)||null;var e=(new DOMParser).parseFromString(t,"application/xml");DF.prototype.initializeFromAS3Node.call(this,e),this.as3XMLDocument=e},e.prototype.addRequestHeader=function(t,e){Od.notImplemented("AVM1XMLPrototype.addRequestHeader")},e.prototype.createElement=function(t){t=Sk(this.context,t);var e=this.as3XMLDocument.axCallPublicProperty("createElement",[t]);return IF(this.context,e)},e.prototype.createTextNode=function(t){t=Sk(this.context,t);var e=this.as3XMLDocument.axCallPublicProperty("createTextNode",[t]);return IF(this.context,e)},e.prototype.getBytesLoaded=function(){if(this._as3Loader)return this._as3Loader.bytesLoaded},e.prototype.getBytesTotal=function(){if(this._as3Loader)return this._as3Loader.bytesTotal},e.prototype.load=function(t){return!!(t=Sk(this.context,t))&&(pF(this.context,t,null,null,null,this),!0)},e.prototype.defaultOnData=function(t){xd(t)?Qk(this.context,this,"onLoad",[!1]):(e.prototype.parseXML.call(this,t),this.alPut("loaded",!0),Qk(this.context,this,"onLoad",[!0]))},e.prototype.parseXML=function(t){t=Sk(this.context,t);var e=(new DOMParser).parseFromString("<syntheticRoot>"+t+"</syntheticRoot>","application/xml"),n=e.getElementsByTagName("parsererror");if(n.length>0){var i=1===e.childElementCount,r=n[0].textContent;if(i)throw"[AVM1XML] Сritical parsing error:"+r;console.warn("[AVM1XML] Parsing error:",r),console.groupCollapsed("[XML Source]:"),console.log(t),console.groupEnd()}this.as3XMLDocument=e.childNodes[0],DF.prototype.initializeFromAS3Node.call(this,this.as3XMLDocument)},e.prototype.send=function(t,e,n){return t=Sk(this.context,t),e=xd(e)?void 0:Sk(this.context,e),n=xd(n)?void 0:Sk(this.context,n),Od.notImplemented("AVM1XMLPrototype.send"),!1},e.prototype.sendAndLoad=function(t,e){if((t=Sk(this.context,t))&&e.isAVM1DataObject){Od.somewhatImplemented("AVM1XMLPrototype.send");var n=this.alGet("contentType");n=xd(n)?void 0:Sk(this.context,n);var i=xk(this.context,this);pF(this.context,t,"POST",n,i,e)}},e}(jL),OF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return FL(e,t),e.createAVM1Class=function(t){return Yk(t,!0,e,["available#","addCallback","call"],[])},e.getAvailable=function(t){return!0},e.addCallback=function(t,e,n,i){if(e=Sk(t,e),!Ok(i))return!1;try{return window.flashObject||(window.flashObject={}),window.flashObject[e]=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];var r=n.alGet(e.toLowerCase());r&&Ok(r)?r.alCall(n,t):r&&r.value&&r.value.alCall(n,t)},!0}catch(t){console.warn("[AVM1ExternalInterface] - error in addCallback",t)}return!1},e.call=function(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];n.length;var r=0;try{var o=e.split("."),a=window;for(r=0;r<o.length;r++)a=a[o[r]];return a.apply(window,n)}catch(t){return}},e}(jL),MF=bp((function(t,e){function n(t,e){var n=[],i=[];return null==e&&(e=function(t,e){return n[0]===e?"[Circular ~]":"[Circular ~."+i.slice(0,n.indexOf(e)).join(".")+"]"}),function(r,o){if(n.length>0){var a=n.indexOf(this);~a?n.splice(a+1):n.push(this),~a?i.splice(a,1/0,r):i.push(r),~n.indexOf(o)&&(o=e.call(this,r,o))}else n.push(o);return null==t?o:t.call(this,r,o)}}(t.exports=function(t,e,i,r){return JSON.stringify(t,n(e,r),i)}).getSerialize=n})),BF=function(){var t=4022871197;return function(e){if(e){e=e.toString();for(var n=0;n<e.length;n++){var i=.02519603282416938*(t+=e.charCodeAt(n));i-=t=i>>>0,t=(i*=t)>>>0,t+=4294967296*(i-=t)}return 2.3283064365386963e-10*(t>>>0)}t=4022871197}},NF=function(t){return function(){var e,n,i=48,r=1,o=i,a=new Array(i),s=0,u=new BF;for(e=0;e<i;e++)a[e]=u(Math.random());var l=function(){++o>=i&&(o=0);var t=1768863*a[o]+2.3283064365386963e-10*r;return a[o]=t-(r=0|t)},c=function(t){return Math.floor(t*(l()+11102230246251565e-32*(2097152*l()|0)))};c.string=function(t){var e,n="";for(e=0;e<t;e++)n+=String.fromCharCode(33+c(94));return n};return c.cleanString=function(t){return t=(t=(t=t.replace(/(^\s*)|(\s*$)/gi,"")).replace(/[\x00-\x1F]/gi,"")).replace(/\n /,"\n")},c.hashString=function(t){for(t=c.cleanString(t),u(t),e=0;e<t.length;e++)for(s=t.charCodeAt(e),n=0;n<i;n++)a[n]-=u(s),a[n]<0&&(a[n]+=1)},c.seed=function(t){null==t&&(t=Math.random()),"string"!=typeof t&&(t=MF(t,(function(t,e){return"function"==typeof e?e.toString():e}))),c.initState(),c.hashString(t)},c.addEntropy=function(){var t=[];for(e=0;e<arguments.length;e++)t.push(arguments[e]);!function(){var t=Array.prototype.slice.call(arguments);for(e=0;e<t.length;e++)for(n=0;n<i;n++)a[n]-=u(t[e]),a[n]<0&&(a[n]+=1)}(s+++(new Date).getTime()+t.join("")+Math.random())},c.initState=function(){for(u(),e=0;e<i;e++)a[e]=u(" ");r=1,o=i},c.done=function(){u=null},void 0!==t&&c.seed(t),c.range=function(t){return c(t)},c.random=function(){return c(Number.MAX_VALUE-1)/Number.MAX_VALUE},c.floatBetween=function(t,e){return c.random()*(e-t)+t},c.intBetween=function(t,e){return Math.floor(c.random()*(e-t+1))+t},c}()};NF.create=function(t){return new NF(t)};var LF,RF=NF,FF=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.url="",e.targetMC=null,e._queued_focus_value=null,e._queued_focus=!1,e.callbackName="",e.callbackTarget=null,e}return FL(e,t),e.createAVM1Class=function(t){return Yk(t,!0,e,[],["addListener","getFocus","getBeginIndex","getEndIndex","removeListener","setFocus","setSelection","getCaretIndex"],null,e.prototype.avm1Constructor)},e.prototype.avm1Constructor=function(t,e){this.url=t,this.targetMC=e,this._queued_focus=!1},e.prototype.addListener=function(t){},e.prototype.removeListener=function(t){return!0},e.prototype.getBeginIndex=function(){var t,e=null===(t=jg.instance().mouseManager.getFocus())||void 0===t?void 0:t.container;return e&&e.isAsset(Qp)?e.selectionBeginIndex:-1},e.prototype.getEndIndex=function(){var t,e=null===(t=jg.instance().mouseManager.getFocus())||void 0===t?void 0:t.container;return e&&e.isAsset(Qp)?e.selectionEndIndex:-1},e.prototype.getCaretIndex=function(){var t,e=null===(t=jg.instance().mouseManager.getFocus())||void 0===t?void 0:t.container;return e&&e.isAsset(Qp)?e.selectionBeginIndex:-1},e.prototype.getFocus=function(){var t,e=null===(t=jg.instance().mouseManager.getFocus())||void 0===t?void 0:t.container;if(e){for(var n=[];e;)e.isAVMScene?e=null:(n.push(e.name),e=e.parent);for(var i=n.length,r="";i>0;)r+=n[--i],i>0&&(r+=".");return r}return""},e.prototype.setFocus=function(t){var e;if(""!==t)return"string"==typeof t?(e=this.context.resolveTarget(t))&&e.node||(e=this.context.resolveTarget(t+"_internal_TF"))&&e.node?void jg.instance().mouseManager.setFocus(e.node):void console.warn("AVM1Selection.setFocus - no object found for string "+t):((e=this.context.resolveTarget(t))&&e.node?jg.instance().mouseManager.setFocus(e.node):console.warn("AVM1Selection.setFocus - no object found '"+t.toString()+"'"),!0)},e.prototype.setSelection=function(t,e){var n,i=null===(n=jg.instance().mouseManager.getFocus())||void 0===n?void 0:n.container;i&&i.isAsset(Qp)&&i.setSelection(t,e)},e}(jL),kF=Wp.escape,UF=[],jF=function(){function t(){}return t.ALL="all",t.NONE="none",t.IMPORTANT="important",t}(),VF=function(t){function e(e){var n=t.call(this,e)||this;return n.SWF_BASE_URL="",n.registeredLevels={},n.NaN=Number.NaN,n.Infinity=Number.POSITIVE_INFINITY,n.newline="\n",n.undefined=void 0,n._initBuiltins(e),n._initializeFlashObject(e),n.buttonCheckFunc=new VL(e),n.buttonCheckFunc.alCall=function(t,e){return cF.mouseButtonsState[e[0]]},n}return FL(e,t),e.generateRandomSeed=function(){for(var t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",e=10+Math.round(10*Math.random()),n="",i=0;i<e;i++)n+=t[Math.floor(62*Math.random())];return n},e.setRandom=function(t){return void 0===t&&(t=null),t?(t==e.GENERATE_SEED&&(t=e.generateRandomSeed()),e.randomProvider=RF.create(t),t):(e.randomProvider=null,null)},e.registerCustomClass=function(t,n){e._registeredCustomClasses[t]=n,e.instance&&e.instance.alPut(t,n)},e.registerCustomClassInstance=function(t,n){e._registeredCustomClassInstances[t]=n,e.instance&&e.instance.alPut(t,n)},e.createGlobalsObject=function(t){var n=new e(t);return Xk(t,n,n,["flash","ASnative","ASSetPropFlags","BitmapData","clearInterval","clearTimeout","ExternalInterface","escape","unescape","setInterval","setTimeout","showRedrawRegions","trace","updateAfterEvent","myName","NaN","Infinity","isFinite","isNaN","parseFloat","parseInt","undefined","Object","Function","Array","Number","Math","Boolean","Date","Selection","String","Error","MovieClip","AsBroadcaster","System","Stage","Button","TextField","Color","Key","Mouse","MovieClipLoader","newline","XML","XMLNode","LoadVars","Sound","SharedObject","ContextMenu","ContextMenuItem","TextFormat"],!1),e.instance=n,n},e.prototype._getLevelForRoot=function(t){for(var e in this.registeredLevels)if(this.registeredLevels[e]===t)return+e;return-1},e.prototype._getRootForLevel=function(t){return this.registeredLevels[t]},e.prototype._addRoot=function(t,e){return this.registeredLevels[t]?this.registeredLevels[t]:(Hk(e,this.context).adaptee,uR.avmStage.root.addChildAt(e,t),e.adapter!=e&&e.adapter.initAdapter(),this.registeredLevels[t]=e,e)},e.prototype._removeRoot=function(t){this.registeredLevels[t]&&(uR.avmStage.root.removeChild(this.registeredLevels[t]),delete this.registeredLevels[t])},e.prototype.ASnative=function(t,e){return 800===t&&2===e?this.buttonCheckFunc:(console.log("ASnatives",t,e),null)},e.prototype.ASSetPropFlags=function(t,e,n,i){},e.prototype.clearIntervals=function(){var t=0,e=UF.length;for(t=0;t<e;t++)Nl.clearInterval(UF[t]);UF.length=0},e.prototype.clearInterval=function(t){var e=UF[t-1];e&&(Nl.clearInterval(e),delete UF[t-1])},e.prototype.clearTimeout=function(t){var e=UF[t-1];e&&(Nl.clearTimeout(e),delete UF[t-1])},e.prototype.escape=function(t){return encodeURIComponent(t).replace(/!|'|\(|\)|\*|-|\.|_|~/g,(function(t){switch(t){case"*":return"%2A";case"-":return"%2D";case".":return"%2E";case"_":return"%5F";default:return kF(t)}}))},e.prototype.unescape=function(t){return decodeURIComponent(t)},e.prototype.setInterval=function(){if(!(arguments.length<2)){var t,e=arguments,n=this.context,i=void 0,r=2;if(Ok(e[0]))t=e[0].toJSFunction(),i=e[1];else{if(e.length<3)return;var o=e[0],a=e[1];if(i=e[2],r=3,!(o instanceof jL)||"string"!=typeof a)return;t=function(){var t=o.alGet(a);if(Ok(t)){var e=Array.prototype.slice.call(arguments,0);n.executeFunction(t,o,e)}}}if(void 0!==i){i=bk(n,i);var s,u=Array.prototype.slice.call(e,r);if(t){s=Nl.setInterval((function(){t.apply(null,u)}),i)}return UF.push(s)}}},e.prototype.setTimeout=function(){var t=arguments;if(!(t.length<2)&&Ok(t[0])){for(var e=t[0].toJSFunction(),n=bk(this.context,t[1]),i=[],r=t.length,o=2;o<r;o++)i.push(t[o]);var a=Nl.setTimeOut((function(){e.apply(null,i)}),n);return UF.push(a)}},e.prototype.showRedrawRegions=function(t,e){},e.prototype.trace=function(t){this&&this.context.actions.trace(t)},e.prototype.updateAfterEvent=function(){},e.prototype.isFinite=function(t){return isFinite(vk(this.context,t))},e.prototype.isNaN=function(t){return" "===t||isNaN(vk(this.context,t))},e.prototype.parseFloat=function(t){return parseFloat(xk(this.context,t))},e.prototype.parseInt=function(t,e){return parseInt(xk(this.context,t),Ck(this.context,e))},e.prototype._initBuiltins=function(t){var n=t.builtins;for(var i in this.Object=n.Object,this.Function=n.Function,this.Array=n.Array,this.Number=n.Number,this.Math=n.Math,this.Boolean=n.Boolean,this.Date=n.Date,this.String=n.String,this.Error=n.Error,this.Selection=FF.createAVM1Class(t)._ownProperties.prototype.value,this.ExternalInterface=OF.createAVM1Class(t),this.MovieClip=$R.createAVM1Class(t),this.AsBroadcaster=eF.createAVM1Class(t),this.System=oF.createAVM1Class(t),this.Stage=uR.createAVM1Class(t),this.Button=uF.createAVM1Class(t),this.TextField=KR.createAVM1Class(t),this.Color=lF.createAVM1Class(t),this.Key=mR.createAVM1Class(t),this.Mouse=cF.createAVM1Class(t),this.MovieClipLoader=hF.createAVM1Class(t),this.LoadVars=new fF(t),this.Sound=_F.createAVM1Class(t),this.SharedObject=bF.createAVM1Class(t),this.ContextMenu=void 0,this.ContextMenuItem=void 0,this.TextFormat=_R.createAVM1Class(t),this.XMLNode=new EF(t),this.XML=new TF(t,this.XMLNode),this.BitmapData=hR.createAVM1Class(t),this.Matrix=new aR(t),this.Point=new HL(t),this.Rectangle=new WL(t),this.Transform=yR.createAVM1Class(t),this.ColorTransform=new eR(t),eF.initialize(t,this.Stage),eF.initialize(t,this.Key),eF.initialize(t,this.Mouse),e._registeredCustomClasses)this.alPut(i,e._registeredCustomClasses[i]);for(var i in e._registeredCustomClassInstances)this.alPut(i,e._registeredCustomClassInstances[i])},e.prototype._initializeFlashObject=function(t){this.flash=Ek(t);var e=Ek(t);e.alPut("BitmapData",this.BitmapData),this.flash.alPut("display",e);var n=Ek(t);n.alPut("ExternalInterface",OF.createAVM1Class(t)),this.flash.alPut("external",n);var i=function(t){var e=Ek(t),n=new xR(t);return e.alPut("BitmapFilter",n),ER(t,e,n,AR.BEVEL,["distance","Number","angle","Number","highlightColor","Number","highlightAlpha","Number","shadowColor","Number","shadowAlpha","Number","blurX","Number","blurY","Number","strength","Number","quality","Number","type","String","knockout","Boolean"]),ER(t,e,n,AR.BLUR,["blurX","Number","blurY","Number","quality","Number"]),ER(t,e,n,AR.COLORMATRIX,["matrix","Numbers"]),ER(t,e,n,AR.CONVOLUTION,["matrixX","Number","matrixY","Number","matrix","Numbers","divisor","Number","bias","Number","preserveAlpha","Boolean","clamp","Boolean","color","Number","alpha","Number"]),ER(t,e,n,AR.DISPLACEMENT,["mapBitmap","BitmapData","mapPoint","Point","componentX","Number","componentY","Number","scaleX","Number","scaleY","Number","mode","String","color","Number","alpha","Number"]),ER(t,e,n,AR.DROPSHADOW,["distance","Number","angle","Number","color","Number","alpha","Number","blurX","Number","blurY","Number","strength","Number","quality","Number","inner","Boolean","knockout","Boolean","hideObject","Boolean"]),ER(t,e,n,AR.GLOW,["color","Number","alpha","Number","blurX","Number","blurY","Number","strength","Number","quality","Number","inner","Boolean","knockout","Boolean"]),ER(t,e,n,AR.GRADIENTBEVEL,["distance","Number","angle","Number","colors","Numbers","alphas","Numbers","ratios","Numbers","blurX","Number","blurY","Number","strength","Number","quality","Number","type","String","knockout","Boolean"]),ER(t,e,n,AR.GRADIENTGLOW,["distance","Number","angle","Number","colors","Numbers","alphas","Numbers","ratios","Numbers","blurX","Number","blurY","Number","strength","Number","quality","Number","type","String","knockout","Boolean"]),e}(t);this.flash.alPut("filters",i),this.filters=i;var r=Ek(t);r.alPut("ColorTransform",this.ColorTransform),r.alPut("Matrix",this.Matrix),r.alPut("Point",this.Point),r.alPut("Rectangle",this.Rectangle),r.alPut("Transform",this.Transform),this.flash.alPut("geom",r);var o=Ek(t);this.flash.alPut("text",o)},e.swfStartTime=Date.now(),e._registeredCustomClasses={},e._registeredCustomClassInstances={},e.GENERATE_SEED="GENERATE_SEED",e.tracelevel=jF.NONE,e.toStringPrecision=-1,e}(jL),QF=function(){function t(t){this.context=t}return t.prototype.asfunction=function(t){},t.prototype.call=function(t){this.context.resolveTarget(null)._callFrame(t)},t.prototype.chr=function(t){return t=bk(this.context,t),this.context.swfVersion<=5&&(t&=255),t?String.fromCharCode(t):""},t.prototype.duplicateMovieClip=function(t,e,n){var i=Dk(this.context,n)-kk;this.context.resolveTarget(t).duplicateMovieClip(e,i,null)},t.prototype.fscommand=function(t,e){},t.prototype.getTimer=function(){return Date.now()-VF.swfStartTime},t.prototype.getURL=function(t,e,n){t=String(t),"string"!=typeof e||0!==e.indexOf("_level")?0!==t.toLowerCase().indexOf("fscommand:")?window.open(t,e):console.log("fsCommand not implemented "):this.loadMovieNum(t,+e.substr(6),n)},t.prototype.gotoAndPlay=function(t,e){var n=this.context.resolveTarget(null);n.adaptee.play(),this._gotoFrame(n.adaptee,t,e)},t.prototype.gotoAndStop=function(t,e){var n=this.context.resolveTarget(null);"number"==typeof e&&e<=0||(n.adaptee.stop(),this._gotoFrame(n.adaptee,t,e))},t.prototype._gotoFrame=function(t,e,n){if(void 0!==e){if(Array.isArray(e)){if(0==e.length)return;e=e[0]}if(e instanceof ik){if(!e.value||0==e.value.length)return;e=e.value[0]}if("number"==typeof e&&e%1!=0&&(e=e.toString()),"string"==typeof e){var i=e.toLowerCase();if(null===t.timeline._labels[i])return e=parseInt(e),void(isNaN(e)||(t.currentFrameIndex=e-1));t.jumpToLabel(i,n)}else t.currentFrameIndex=e-1}},t.prototype.ifFrameLoaded=function(t,e){var n=this.context.resolveTarget(null),i=arguments.length<2?arguments[0]:arguments[1],r=n.alGet("_framesloaded"),o=n.alGet("_totalframes");return Math.min(i+1,o)<=r},t.prototype.length_=function(t){return(""+t).length},t.prototype.loadMovie=function(t,e,n){if(t&&0===t.toLowerCase().indexOf("fscommand:"))this.fscommand(t.substring(10),e);else if(""===t&&e)e.unloadMovie();else{""!=t&&0!==t.indexOf("http://")&&0!==t.indexOf("https://")&&(t=this.context.globals.SWF_BASE_URL+t);var i,r="string"==typeof e&&0===e.indexOf("_level");if(r){var o=e.substr(6);r=(i=parseInt(o,10)).toString()===o}if(r)this.loadMovieNum(t,i,n);else this.context.resolveTarget(e).loadMovie(t,n)}},t.prototype.loadMovieNum=function(t,e,n){if(t=Sk(this.context,t),e=bk(this.context,e),n=Sk(this.context,n),t&&0===t.toLowerCase().indexOf("fscommand:"))return this.fscommand(t.substring(10));if(""!=t){var i=this.context.globals._addRoot(e,new Rl(new bl(VF._scenegraphFactory)));0!==t.indexOf("http://")&&0!==t.indexOf("https://")&&(t=this.context.globals.SWF_BASE_URL+t),i.adapter.loadMovie(t,n)}else this.context.globals._removeRoot(e)},t.prototype.loadVariables=function(t,e,n){void 0===n&&(n=""),t=Sk(this.context,t),n=Sk(this.context,n);var i=this.context.resolveTarget(e);i&&this._loadVariables(i,t,n)},t.prototype.loadVariablesNum=function(t,e,n){void 0===n&&(n=""),t=Sk(this.context,t),e=bk(this.context,e),n=Sk(this.context,n);var i=this.context.resolveLevel(e);i&&this._loadVariables(i,t,n)},t.prototype._loadVariables=function(t,e,n){var i=this.context,r=new yt(e);n&&(r.method=n);var o=new pt;o.dataFormat="variables";var a=function(e){if(o.removeEventListener(K.LOAD_COMPLETE,a),o.dataFormat==lt.VARIABLES)for(var n in o.data)i.utils.setProperty(t,n,o.data[n]);t instanceof $R&&Qk(i,t,"onData")};o.addEventListener(K.LOAD_COMPLETE,a),o.load(r)},t.prototype.mbchr=function(t){return(t=bk(this.context,t))?String.fromCharCode(t):""},t.prototype.mblength=function(t){return(""+t).length},t.prototype.mbord=function(t){return(""+t).charCodeAt(0)},t.prototype.mbsubstring=function(t,e,n){return e!==(0|e)||n!==(0|n)?"":(n<0&&(n=void 0),(""+t).substr(e=e<1?0:e-1,n))},t.prototype.nextFrame=function(){var t=this.context.resolveTarget(null).adaptee;t.stop(),++t.currentFrameIndex},t.prototype.nextScene=function(){},t.prototype.ord=function(t){return(""+t).charCodeAt(0)},t.prototype.play=function(){this.context.resolveTarget(null).play()},t.prototype.prevFrame=function(){var t=this.context.resolveTarget(null).adaptee;--t.currentFrameIndex,t.stop()},t.prototype.prevScene=function(){},t.prototype.print=function(t,e){},t.prototype.printAsBitmap=function(t,e){},t.prototype.printAsBitmapNum=function(t,e){},t.prototype.printNum=function(t,e){},t.prototype.random=function(t){return VF.randomProvider?0|VF.randomProvider.random()*(0|t):0|Math.random()*(0|t)},t.prototype.removeMovieClip=function(t){if(t){var e=this.context.resolveTarget(t);e&&e.removeMovieClip()}},t.prototype.startDrag=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var i=this.context.resolveTarget(t);i&&i.startDrag.apply(i,e)},t.prototype.stop=function(){this.context.resolveTarget(null).stop()},t.prototype._stopSoundsOnObjectsRecursivly=function(t){if(t.numChildren)for(var e=0;e<t.numChildren;e++)t.getChildAt(e).isAsset(Rl)?t.getChildAt(e).stopSounds():this._stopSoundsOnObjectsRecursivly(t.getChildAt(e))},t.prototype.stopAllSounds=function(){S.stopAllSounds(),this._stopSoundsOnObjectsRecursivly(uR.avmStage.root)},t.prototype.stopDrag=function(){$R.currentDraggedMC&&$R.currentDraggedMC.stopDrag()},t.prototype.substring=function(t,e,n){return this.mbsubstring(t,e,n)},t.prototype.toggleHighQuality=function(){},t.prototype.trace=function(t){if(VF.tracelevel!=jF.NONE){var e,n=!1;switch(typeof t){case"undefined":e="undefined";break;case"string":n=(e=t).length>0&&"!"==e[0];break;default:e=xk(this.context,t)}(VF.tracelevel!=jF.IMPORTANT||n)&&console.log("%cAVM1 trace: %c "+e+" ","color: #054996","background: #eee; color: #054996")}},t.prototype.unloadMovie=function(t){var e=this.context.resolveTarget(t);e&&e.unloadMovie()},t.prototype.unloadMovieNum=function(t){0!==(t=Ck(this.context,t))&&this.context.globals._removeRoot(t)},t}(),GF=function(t){function e(e){return t.call(this,e)||this}return FL(e,t),e.prototype._initializePrototype=function(){Fk(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}})},e.prototype._valueOf=function(){return this},e.prototype._toString=function(){return Ok(this)?"[type "+wk(this)+"]":"[object "+wk(this)+"]"},e.prototype.addProperty=function(t,e,n){if("string"!=typeof t||""===t)return!1;if(!Ok(e))return!1;if(!Ok(n)&&null!==n)return!1;var i=this.alGetOwnProperty(t);return!(i&&2&i.flags)&&(this.alSetOwnProperty(t,new UL(128,null,e,n||void 0)),!0)},e.prototype.hasOwnProperty=function(t){return this.alHasOwnProperty(t)},e.prototype.isPropertyEnumerable=function(t){return!(1&this.alGetProperty(t).flags)},e.prototype.isPrototypeOf=function(t){return Bk(this.context,this,t)},e.prototype.unwatch=function(t){return t=Sk(this.context,t),this.alRemotePropertyWatcher(t)},e.prototype.watch=function(t,e,n){return t=Sk(this.context,t),!!Ok(e)&&this.alAddPropertyWatcher(t,e,n)},e}(jL),zF=function(t){function e(e){var n=t.call(this,e)||this;return n.alPrototype=e.builtins.Function.alGetPrototypeProperty(),Fk(n,{prototype:{value:e.builtins.Object.alGetPrototypeProperty()},registerClass:{value:n.registerClass}}),n}return FL(e,t),e.prototype.registerClass=function(t,e){this.context.registerClass(t,e)},e.prototype.alConstruct=function(t){if(t){var e=t[0];if(e instanceof jL)return e;switch(typeof e){case"string":case"boolean":case"number":return Ik(this.context,e)}}return Ek(this.context)},e.prototype.alCall=function(t,e){return e&&null!==e[0]&&void 0!==e[0]?Ik(this.context,e[0]):Ek(this.context)},e}(VL),HF=function(t){function e(e){return t.call(this,e)||this}return FL(e,t),e.prototype._initializePrototype=function(){var t=this.context;this.alPrototype=t.builtins.Object.alGetPrototypeProperty(),Fk(this,{constructor:{value:t.builtins.Function,writable:!0},call:this.call,apply:this.apply})},e.prototype.call=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return fk(this,VL).alCall(t,e)},e.prototype.apply=function(t,e){var n=fk(this,VL),i=e?fk(e,ik).value:void 0;return n.alCall(t,i)},e}(jL),XF=function(t){function e(e){var n=t.call(this,e)||this;return n.alPrototype=e.builtins.Function.alGetPrototypeProperty(),Fk(n,{prototype:{value:e.builtins.Function.alGetPrototypeProperty()}}),n}return FL(e,t),e.prototype.alConstruct=function(t){return t?t[0]:void 0},e.prototype.alCall=function(t,e){return e?e[0]:void 0},e}(VL),YF=function(t){function e(e,n){var i=t.call(this,e)||this;return i.alPrototype=e.builtins.Boolean.alGetPrototypeProperty(),i.alSetOwnConstructorProperty(e.builtins.Boolean),i.value=n,i}return FL(e,t),e.prototype.valueOf=function(){return this.value},e}(jL),qF=function(t){function e(e){var n=t.call(this,e)||this;return n.alPrototype=e.builtins.Object.alGetPrototypeProperty(),Fk(n,{constructor:{value:e.builtins.Boolean,writable:!0},valueOf:{value:n._valueOf,writable:!0},toString:{value:n._toString,writable:!0}}),n}return FL(e,t),e.prototype._valueOf=function(){return fk(this,YF).value},e.prototype._toString=function(){return fk(this,YF).value?"true":"false"},e}(jL),KF=function(t){function e(e){var n=t.call(this,e)||this;return n.alPrototype=e.builtins.Function.alGetPrototypeProperty(),Fk(n,{prototype:{value:new qF(e)}}),n}return FL(e,t),e.prototype.alConstruct=function(t){var e=!!t&&Ak(this.context,t[0]);return new YF(this.context,e)},e.prototype.alCall=function(t,e){return!!e&&Ak(this.context,e[0])},e}(VL),WF=function(t){function e(e,n){var i=t.call(this,e)||this;return i.alPrototype=e.builtins.Number.alGetPrototypeProperty(),i.alSetOwnConstructorProperty(e.builtins.Number),i.value=n,i}return FL(e,t),e.prototype.valueOf=function(){return this.value},e}(jL),JF=function(t){function e(e){var n=t.call(this,e)||this;return n.alPrototype=e.builtins.Object.alGetPrototypeProperty(),Fk(n,{constructor:{value:e.builtins.Number,writable:!0},valueOf:{value:n._valueOf,writable:!0},toString:{value:n._toString,writable:!0}}),n}return FL(e,t),e.prototype._valueOf=function(){return fk(this,WF).value},e.prototype._toString=function(t){return fk(this,WF).value.toString(t||10)},e}(jL),$F=function(t){function e(e){var n=t.call(this,e)||this;return n.alPrototype=e.builtins.Function.alGetPrototypeProperty(),Fk(n,{prototype:{value:new JF(e)},MAX_VALUE:Number.MAX_VALUE,MIN_VALUE:Number.MIN_VALUE,NaN:Number.NaN,NEGATIVE_INFINITY:Number.NEGATIVE_INFINITY,POSITIVE_INFINITY:Number.POSITIVE_INFINITY}),n}return FL(e,t),e.prototype.alConstruct=function(t){var e=t?vk(this.context,t[0]):0;return new WF(this.context,e)},e.prototype.alCall=function(t,e){return e?vk(this.context,e[0]):0},e}(VL),ZF=function(t){function e(e,n){var i=t.call(this,e)||this;return i.alPrototype=e.builtins.String.alGetPrototypeProperty(),i.alSetOwnConstructorProperty(e.builtins.String),i.value=n,i}return FL(e,t),e.prototype.toString=function(){return this.value},e}(jL),tk=function(t){function e(e){var n=t.call(this,e)||this;return n.alPrototype=e.builtins.Object.alGetPrototypeProperty(),Fk(n,{constructor:{value:e.builtins.String,writable:!0},valueOf:{value:n._valueOf,writable:!0},toString:{value:n._toString,writable:!0},length:{get:n.getLength},charAt:{value:n.charAt,writable:!0},charCodeAt:{value:n.charCodeAt,writable:!0},concat:{value:n.concat,writable:!0},indexOf:{value:n.indexOf,writable:!0},lastIndexOf:{value:n.lastIndexOf,writable:!0},slice:{value:n.slice,writable:!0},split:{value:n.split,writable:!0},substr:{value:n.substr,writable:!0},substring:{value:n.substring,writable:!0},toLowerCase:{value:n.toLowerCase,writable:!0},toUpperCase:{value:n.toUpperCase,writable:!0}}),n}return FL(e,t),e.prototype._valueOf=function(){return fk(this,ZF).value},e.prototype._toString=function(){return fk(this,ZF).value},e.prototype.getLength=function(){return fk(this,ZF).value.length},e.prototype.charAt=function(t){return xk(this.context,this).charAt(bk(this.context,t))},e.prototype.charCodeAt=function(t){return xk(this.context,this).charCodeAt(bk(this.context,t))},e.prototype.concat=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=[xk(this.context,this)],i=0;i<t.length;++i)n.push(xk(this.context,t[i]));return n.join("")},e.prototype.indexOf=function(t,e){var n=xk(this.context,this);return t=xk(this.context,t),e=bk(this.context,e),n.indexOf(t,e)},e.prototype.lastIndexOf=function(t,e){var n=xk(this.context,this);return t=xk(this.context,t),(e=arguments.length<2?NaN:vk(this.context,e))<0?-1:n.lastIndexOf(t,isNaN(e)?void 0:e)},e.prototype.slice=function(t,e){if(0!==arguments.length){var n=xk(this.context,this);return t=bk(this.context,t),e=void 0===e?void 0:bk(this.context,e),n.slice(t,e)}},e.prototype.split=function(t,e){var n=xk(this.context,this);return void 0!==t?(t=xk(this.context,t),e=(void 0===e?-1:Ck(this.context,e))>>>0,new ik(this.context,n.split(t,e))):new ik(this.context,[n])},e.prototype.substr=function(t,e){var n=xk(this.context,this),i=n.length;if(t=bk(this.context,t),e=void 0===e?i:bk(this.context,e),t<0&&(t=Math.max(0,i+t)),e<0){if(-e<=t)return"";e=Math.max(0,i+e)}return n.substr(t,e)},e.prototype.substring=function(t,e){var n=xk(this.context,this);return(t=bk(this.context,t))>=n.length?"":(e=void 0===e?void 0:bk(this.context,e),n.substring(t,e))},e.prototype.toLowerCase=function(){return xk(this.context,this).toLowerCase()},e.prototype.toUpperCase=function(){return xk(this.context,this).toUpperCase()},e}(jL),ek=function(t){function e(e){var n=t.call(this,e)||this;return n.alPrototype=e.builtins.Function.alGetPrototypeProperty(),Fk(n,{prototype:{value:new tk(e)},fromCharCode:{value:n.fromCharCode}}),n}return FL(e,t),e.prototype.alConstruct=function(t){var e=t?xk(this.context,t[0]):"";return new ZF(this.context,e)},e.prototype.alCall=function(t,e){return e?xk(this.context,e[0]):""},e.prototype.fromCharCode=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e=e.map((function(e){return 65535&Ck(t.context,e)})),String.fromCharCode.apply(String,e)},e}(VL),nk=new UL(64,void 0),ik=function(t){function e(e,n){var i=t.call(this,e)||this;return i.alPrototype=e.builtins.Array.alGetPrototypeProperty(),i.alSetOwnConstructorProperty(e.builtins.Array),i.value=n,i}return FL(e,t),e.prototype.alGetOwnProperty=function(e){if(Tk(this.context,e)){var n=Ck(this.context,e);if(Object.getOwnPropertyDescriptor(this.value,n))return nk.value=this.value[n],nk}return t.prototype.alGetOwnProperty.call(this,e)},e.prototype.alSetOwnProperty=function(e,n){if(Tk(this.context,e)){var i=Ck(this.context,e);if(!(64&n.flags)||1&n.flags||2&n.flags)throw new Error("Special property is non-supported for array");this.value[i]=n.value}else t.prototype.alSetOwnProperty.call(this,e,n)},e.prototype.alDeleteOwnProperty=function(e){if(Tk(this.context,e)){var n=Ck(this.context,e);delete this.value[n]}else t.prototype.alDeleteOwnProperty.call(this,e)},e.prototype.alGetOwnPropertiesKeys=function(){var e=t.prototype.alGetOwnPropertiesKeys.call(this),n=[];for(var i in this.value)n.push(i);return n.concat(e)},e.mapToJSArray=function(t,n,i){if(t instanceof e)return t.value.map(n,i);if(!Lk(t.context,t))throw new Error("Invalid type");var r=[];return Rk(t.context,t,(function(t,e){r.push(n.call(i,t,e))})),r},e}(jL);!function(t){t[t.CASEINSENSITIVE=1]="CASEINSENSITIVE",t[t.DESCENDING=2]="DESCENDING",t[t.UNIQUESORT=4]="UNIQUESORT",t[t.RETURNINDEXEDARRAY=8]="RETURNINDEXEDARRAY",t[t.NUMERIC=16]="NUMERIC"}(LF||(LF={}));var rk=function(t,e){var n=fk(t,ik).value;if(Ok(e)){var i=[void 0,void 0];n.sort((function(t,n){return i[0]=t,i[1]=n,e.alCall(null,i)}))}else{var r="number"==typeof e&&(e&LF.NUMERIC||-1==e),o="number"==typeof e&&e&LF.DESCENDING;if(r)n.sort((function(t,e){for(;t instanceof ik;)(t=fk(t,ik).value)&&t.length>0&&(t=t[0]);for(;e instanceof ik;)(e=fk(e,ik).value)&&e.length>0&&(e=e[0]);return t-e}));else{for(var a=n.length;a>0;)void 0!==n[--a]&&null!==n[a]||(n[a]="00000000000AwayInternal");for(n.sort((function(t,e){for(;t instanceof ik;)(t=fk(t,ik).value)&&t.length>0&&(t=t[0]);for(;e instanceof ik;)(e=fk(e,ik).value)&&e.length>0&&(e=e[0]);return t<e?-1:1})),a=n.length;a>0;)"00000000000AwayInternal"==n[--a]&&(n[a]=void 0)}o&&n.reverse()}return t},ok=function(t){function e(e){var n=t.call(this,e)||this;return n.alPrototype=e.builtins.Object.alGetPrototypeProperty(),Fk(n,{constructor:{value:e.builtins.Array,writable:!0},join:{value:n.join,writable:!0},length:{get:n.getLength,set:n.setLength},concat:{value:n.concat,writable:!0},pop:{value:n.pop,writable:!0},push:{value:n.push,writable:!0},reverse:{value:n.reverse,writable:!0},shift:{value:n.shift,writable:!0},slice:{value:n.slice,writable:!0},splice:{value:n.splice,writable:!0},sort:{value:n.sort,writable:!0},sortOn:{value:n.sortOn,writable:!0},toString:{value:n._toString,writable:!0},unshift:{value:n.unshift,writable:!0}}),n}return FL(e,t),e.prototype._toString=function(){var t,e=this.alGet("length"),n=0,i="";for(n=0;n<e;n++)i+=void 0!==(t=this.alGet(n))?xk(this.context,t)+(n==e-1?"":","):n==e-1?"":",";return i},e.prototype.getLength=function(){return fk(this,ik).value.length},e.prototype.setLength=function(t){(null===t&&(t=0),Cd(t))&&(t=Ck(this.context,t)>>>0,fk(this,ik).value.length=t)},e.prototype.concat=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this instanceof ik){for(var n=fk(this,ik).value,i=0;i<t.length;i++)t[i]instanceof ik&&(t[i]=fk(t[i],ik).value);return new ik(this.context,Array.prototype.concat.apply(n,t))}for(var r=[],o=this,a=Lk(this.context,this),s=0;a?Rk(this.context,o,(function(t){return r.push(t)})):r.push(xk(this.context,o)),!(s>=t.length);)o=t[s++],a=Nk(this.context,o);return new ik(this.context,r)},e.prototype.join=function(t){if(t=void 0===t?",":Sk(this.context,t),this instanceof ik){var e=fk(this,ik).value;if(0===e.length)return"";if(e.every((function(t){return!(t instanceof jL)})))return e.join(t)}var n=this.context,i=Ck(n,this.alGet("length"))>>>0;if(0===i)return"";for(var r=[],o=0;o<i;o++){var a=this.alGet(o);r[o]=null==a?"":Sk(n,a)}return r.join(t)},e.prototype.pop=function(){if(this instanceof ik)return fk(this,ik).value.pop();var t=Ck(this.context,this.alGet("length"))>>>0;if(0!==t){var e=t-1,n=this.alGet(e);return this.alDeleteProperty(e),this.alPut("length",e),n}},e.prototype.push=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this instanceof ik){var n=fk(this,ik).value;return Array.prototype.push.apply(n,t)}for(var i=Ck(this.context,this.alGet("length"))>>>0,r=0;r<t.length;r++)this.alPut(i,t[r]),i++;return this.alPut("length",i),i},e.prototype.reverse=function(){var t=[],e=this.alGet("length"),n=0;for(n=0;n<e;n++)t[n]=this.alGet(n);for(n=e-1;n>=0;)this.alPut(e-1-n,t[n]),n--;return this.value},e.prototype.shift=function(){if(this instanceof ik)return fk(this,ik).value.shift();var t=Ck(this.context,this.alGet("length"))>>>0;if(0!==t){for(var e=this.alGet(0),n=1;n<t;n++)this.alHasProperty(n)?this.alPut(n-1,this.alGet(n)):this.alDeleteProperty(n-1);return this.alDeleteProperty(t-1),this.alPut("length",t-1),e}},e.prototype.slice=function(t,e){if(t=bk(this.context,t),e=void 0!==e?bk(this.context,e):void 0,this instanceof ik){var n=fk(this,ik).value;return new ik(this.context,n.slice(t,e))}var i=[],r=Ck(this.context,this.alGet("length"))>>>0;t=t<0?Math.max(r+t,0):Math.min(r,t),e=void 0===e?r:e<0?Math.max(r+e,0):Math.min(r,e);for(var o=t,a=0;o<e;o++,a++)this.alHasProperty(o)&&(i[a]=this.alGet(o));return new ik(this.context,i)},e.prototype.splice=function(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];t=bk(this.context,t);var r=Ck(this.context,this.alGet("length"))>>>0;if(t=t<0?Math.max(r+t,0):Math.min(r,t),e=e||"number"==typeof e?bk(this.context,e):r-t,this instanceof ik){var o=fk(this,ik).value;return new ik(this.context,Array.prototype.splice.apply(o,[t,e].concat(n)))}for(var a=[],s=0;s<e;s++)this.alHasProperty(t+s)&&(a[s]=this.alGet(t+s));var u=n.length-e;if(u<0){for(s=t-u;s<r;s++)this.alHasProperty(s)?this.alPut(s+u,this.alGet(s)):this.alDeleteProperty(s+u);for(s=u;s<0;s++)this.alDeleteProperty(r+s)}else if(u>0)for(s=r-1;s>=t+u;s--)this.alHasProperty(s)?this.alPut(s+u,this.alGet(s)):this.alDeleteProperty(s+u);for(s=0;s<n.length;s++)this.alPut(t+s,n[s]);return this.alPut("length",r+u),new ik(this.context,a)},e.prototype.sort=function(t){return rk(this,t)},e.prototype.sortOn=function(t,e){var n=this.context,i=[],r=[];if("string"==typeof t)i=[xk(n,t)],r=[Ck(n,e)];else{if(!Nk(n,t))return rk(this,e);i=[],r=[];var o=Nk(n,e)?e:null,a=bk(n,t.alGet("length"));o&&a!==bk(n,o.alGet("length"))&&(o=null);for(var s=0;s<a;s++)i.push(xk(n,t.alGet(s))),r.push(o?Ck(n,o.alGet(s)):0)}r[0];return fk(this,ik).value.sort((function(t,e){for(;t instanceof ik;)(t=fk(t,ik).value)&&t.length>0&&(t=t[0]);for(;e instanceof ik;)(e=fk(e,ik).value)&&e.length>0&&(e=e[0]);for(var o=Ik(n,t),a=Ik(n,e),s=0;s<i.length;s++){var u=o.alGet(i[s]),l=a.alGet(i[s]),c=void 0;if(r[s]&LF.NUMERIC){var h=vk(n,u),p=vk(n,l);c=h<p?-1:h>p?1:0}else{var d=xk(n,u),f=xk(n,l);r[s]&LF.CASEINSENSITIVE&&(d=d.toLowerCase(),f=f.toLowerCase()),c=d<f?-1:d>f?1:0}if(0!==c)return r[s]&LF.DESCENDING?-c:c}return 0})),this},e.prototype.unshift=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this instanceof ik){var n=fk(this,ik).value;return Array.prototype.unshift.apply(n,t)}for(var i=Ck(this.context,this.alGet("length"))>>>0,r=t.length,o=i-1;o>=0;o--)this.alHasProperty(o)?this.alPut(o+r,this.alGet(o)):this.alDeleteProperty(o+r);for(o=0;o<t.length;o++)this.alPut(o,t[o]);return i+=r,this.alPut("length",i),i},e}(jL),ak=function(t){function e(e){var n=t.call(this,e)||this;return n.alPrototype=e.builtins.Function.alGetPrototypeProperty(),Fk(n,{prototype:{value:new ok(e)}}),Fk(n,{NUMERIC:{value:LF.NUMERIC}}),Fk(n,{DESCENDING:{value:LF.DESCENDING}}),n}return FL(e,t),e.prototype.alConstruct=function(t){if(!t)return new ik(this.context,[]);if(1===t.length&&"number"==typeof t[0]){var e=t[0];if(e>>>0!==e)throw new Error("Range error");return new ik(this.context,new Array(e))}return new ik(this.context,t)},e.prototype.alCall=function(t,e){return this.alConstruct.apply(this,e)},e}(VL),sk=function(t){function e(e){var n=t.call(this,e)||this;return n.alPrototype=e.builtins.Object.alGetPrototypeProperty(),Fk(n,{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:n.abs,acos:n.acos,asin:n.asin,atan:n.atan,atan2:n.atan2,ceil:n.ceil,cos:n.cos,exp:n.exp,floor:n.floor,log:n.log,max:n.max,min:n.min,pow:n.pow,random:n.random,round:n.round,sin:n.sin,sqrt:n.sqrt,tan:n.tan}),n}return FL(e,t),e.prototype.abs=function(t){return Math.abs(vk(this.context,t))},e.prototype.acos=function(t){return Math.acos(vk(this.context,t))},e.prototype.asin=function(t){return Math.asin(vk(this.context,t))},e.prototype.atan=function(t){return Math.atan(vk(this.context,t))},e.prototype.atan2=function(t,e){return Math.atan2(vk(this.context,t),vk(this.context,e))},e.prototype.ceil=function(t){return Math.ceil(vk(this.context,t))},e.prototype.cos=function(t){return Math.cos(vk(this.context,t))},e.prototype.exp=function(t){return Math.exp(vk(this.context,t))},e.prototype.floor=function(t){return Math.floor(vk(this.context,t))},e.prototype.log=function(t){return Math.log(vk(this.context,t))},e.prototype.max=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e=e.map((function(e){return vk(t.context,e)})),Math.max.apply(null,e)},e.prototype.min=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e=e.map((function(e){return vk(t.context,e)})),Math.min.apply(null,e)},e.prototype.pow=function(t,e){return Math.pow(vk(this.context,t),vk(this.context,e))},e.prototype.random=function(){return VF.randomProvider?VF.randomProvider.random():Math.random()},e.prototype.round=function(t){return Math.round(vk(this.context,t))},e.prototype.sin=function(t){return Math.sin(vk(this.context,t))},e.prototype.sqrt=function(t){return Math.sqrt(vk(this.context,t))},e.prototype.tan=function(t){return Math.tan(vk(this.context,t))},e}(jL),uk=function(t){function e(e,n){var i=t.call(this,e)||this;return i.alPrototype=e.builtins.Date.alGetPrototypeProperty(),i.alSetOwnConstructorProperty(e.builtins.Date),i.value=n,i}return FL(e,t),e.prototype.alDefaultValue=function(e){return void 0!==e?t.prototype.alDefaultValue.call(this,e):this.context.swfVersion>=6?t.prototype.alDefaultValue.call(this,1):t.prototype.alDefaultValue.call(this,0)},e}(jL),lk=function(t){function e(e){var n=t.call(this,e)||this;return n.alPrototype=e.builtins.Object.alGetPrototypeProperty(),Fk(n,{constructor:{value:e.builtins.Date,writable:!0},valueOf:{value:n._valueOf,writable:!0},toString:{value:n._toString,writable:!0},toLocaleString:{value:n._toLocaleString,writable:!0},toDateString:{value:n.toDateString,writable:!0},toTimeString:{value:n.toTimeString,writable:!0},toLocaleDateString:{value:n.toLocaleDateString,writable:!0},toLocaleTimeString:{value:n.toLocaleTimeString,writable:!0},getTime:{value:n.getTime,writable:!0},getFullYear:{value:n.getFullYear,writable:!0},getUTCFullYear:{value:n.getUTCFullYear,writable:!0},getMonth:{value:n.getMonth,writable:!0},getUTCMonth:{value:n.getUTCMonth,writable:!0},getDate:{value:n.getDate,writable:!0},getUTCDate:{value:n.getUTCDate,writable:!0},getDay:{value:n.getDay,writable:!0},getUTCDay:{value:n.getUTCDay,writable:!0},getHours:{value:n.getHours,writable:!0},getUTCHours:{value:n.getUTCHours,writable:!0},getMinutes:{value:n.getMinutes,writable:!0},getUTCMinutes:{value:n.getUTCMinutes,writable:!0},getSeconds:{value:n.getSeconds,writable:!0},getUTCSeconds:{value:n.getUTCSeconds,writable:!0},getMilliseconds:{value:n.getMilliseconds,writable:!0},getUTCMilliseconds:{value:n.getUTCMilliseconds,writable:!0},getTimezoneOffset:{value:n.getTimezoneOffset,writable:!0},setTime:{value:n.setTime,writable:!0},setMilliseconds:{value:n.setMilliseconds,writable:!0},setUTCMilliseconds:{value:n.setUTCMilliseconds,writable:!0},setSeconds:{value:n.setSeconds,writable:!0},setUTCSeconds:{value:n.setUTCSeconds,writable:!0},setMinutes:{value:n.setMinutes,writable:!0},setUTCMinutes:{value:n.setUTCMinutes,writable:!0},setHours:{value:n.setHours,writable:!0},setUTCHours:{value:n.setUTCHours,writable:!0},setDate:{value:n.setDate,writable:!0},setUTCDate:{value:n.setUTCDate,writable:!0},setMonth:{value:n.setMonth,writable:!0},setUTCMonth:{value:n.setUTCMonth,writable:!0},setFullYear:{value:n.setFullYear,writable:!0},setUTCFullYear:{value:n.setUTCFullYear,writable:!0},toUTCString:{value:n.toUTCString,writable:!0}}),n}return FL(e,t),e.prototype._valueOf=function(){return fk(this,uk).value.valueOf()},e.prototype._toString=function(){return fk(this,uk).value.toString()},e.prototype._toLocaleString=function(){return fk(this,uk).value.toLocaleString()},e.prototype.toDateString=function(){return fk(this,uk).value.toDateString()},e.prototype.toTimeString=function(){return fk(this,uk).value.toTimeString()},e.prototype.toLocaleDateString=function(){return fk(this,uk).value.toLocaleDateString()},e.prototype.toLocaleTimeString=function(){return fk(this,uk).value.toLocaleTimeString()},e.prototype.getTime=function(){return fk(this,uk).value.getTime()},e.prototype.getFullYear=function(){return fk(this,uk).value.getFullYear()},e.prototype.getUTCFullYear=function(){return fk(this,uk).value.getUTCFullYear()},e.prototype.getMonth=function(){return fk(this,uk).value.getMonth()},e.prototype.getUTCMonth=function(){return fk(this,uk).value.getUTCMonth()},e.prototype.getDate=function(){return fk(this,uk).value.getDate()},e.prototype.getUTCDate=function(){return fk(this,uk).value.getUTCDate()},e.prototype.getDay=function(){return fk(this,uk).value.getDay()},e.prototype.getUTCDay=function(){return fk(this,uk).value.getUTCDay()},e.prototype.getHours=function(){return fk(this,uk).value.getHours()},e.prototype.getUTCHours=function(){return fk(this,uk).value.getUTCHours()},e.prototype.getMinutes=function(){return fk(this,uk).value.getMinutes()},e.prototype.getUTCMinutes=function(){return fk(this,uk).value.getUTCMinutes()},e.prototype.getSeconds=function(){return fk(this,uk).value.getSeconds()},e.prototype.getUTCSeconds=function(){return fk(this,uk).value.getUTCSeconds()},e.prototype.getMilliseconds=function(){return fk(this,uk).value.getMilliseconds()},e.prototype.getUTCMilliseconds=function(){return fk(this,uk).value.getUTCMilliseconds()},e.prototype.getTimezoneOffset=function(){return fk(this,uk).value.getTimezoneOffset()},e.prototype.setTime=function(t){return t=vk(this.context,t),fk(this,uk).value.setTime(t)},e.prototype.setMilliseconds=function(t){return t=vk(this.context,t),fk(this,uk).value.setMilliseconds(t)},e.prototype.setUTCMilliseconds=function(t){return t=vk(this.context,t),fk(this,uk).value.setUTCMilliseconds(t)},e.prototype.setSeconds=function(t,e){return t=vk(this.context,t),arguments.length<=1?fk(this,uk).value.setSeconds(t):(e=vk(this.context,e),fk(this,uk).value.setSeconds(t,e))},e.prototype.setUTCSeconds=function(t,e){return t=vk(this.context,t),arguments.length<=1?fk(this,uk).value.setUTCSeconds(t):(e=vk(this.context,e),fk(this,uk).value.setUTCSeconds(t,e))},e.prototype.setMinutes=function(t,e,n){return t=vk(this.context,t),arguments.length<=1?fk(this,uk).value.setMinutes(t):(e=vk(this.context,e),arguments.length<=2?fk(this,uk).value.setMinutes(t,e):(n=vk(this.context,n),fk(this,uk).value.setMinutes(t,e,n)))},e.prototype.setUTCMinutes=function(t,e,n){return t=vk(this.context,t),arguments.length<=1?fk(this,uk).value.setUTCMinutes(t):(e=vk(this.context,e),arguments.length<=2?fk(this,uk).value.setUTCMinutes(t,e):(n=vk(this.context,n),fk(this,uk).value.setUTCMinutes(t,e,n)))},e.prototype.setHours=function(t,e,n,i){return t=vk(this.context,t),arguments.length<=1?fk(this,uk).value.setHours(t):(e=vk(this.context,e),arguments.length<=2?fk(this,uk).value.setHours(t,e):(n=vk(this.context,n),arguments.length<=3?fk(this,uk).value.setHours(t,e,n):(i=vk(this.context,i),fk(this,uk).value.setHours(t,e,n,i))))},e.prototype.setUTCHours=function(t,e,n,i){return t=vk(this.context,t),arguments.length<=1?fk(this,uk).value.setUTCHours(t):(e=vk(this.context,e),arguments.length<=2?fk(this,uk).value.setUTCHours(t,e):(n=vk(this.context,n),arguments.length<=3?fk(this,uk).value.setUTCHours(t,e,n):(i=vk(this.context,i),fk(this,uk).value.setUTCHours(t,e,n,i))))},e.prototype.setDate=function(t){return t=vk(this.context,t),fk(this,uk).value.setDate(t)},e.prototype.setUTCDate=function(t){return t=vk(this.context,t),fk(this,uk).value.setUTCDate(t)},e.prototype.setMonth=function(t,e){return t=vk(this.context,t),arguments.length<=1?fk(this,uk).value.setMonth(t):(e=vk(this.context,e),fk(this,uk).value.setMonth(t,e))},e.prototype.setUTCMonth=function(t,e){return t=vk(this.context,t),arguments.length<=1?fk(this,uk).value.setUTCMonth(t):(e=vk(this.context,e),fk(this,uk).value.setUTCMonth(t,e))},e.prototype.setFullYear=function(t,e,n){return t=vk(this.context,t),arguments.length<=1?fk(this,uk).value.setFullYear(t):(e=vk(this.context,e),arguments.length<=2?fk(this,uk).value.setFullYear(t,e):(n=vk(this.context,n),fk(this,uk).value.setFullYear(t,e,n)))},e.prototype.setUTCFullYear=function(t,e,n){return t=vk(this.context,t),arguments.length<=1?fk(this,uk).value.setUTCFullYear(t):(e=vk(this.context,e),arguments.length<=2?fk(this,uk).value.setUTCFullYear(t,e):(n=vk(this.context,n),fk(this,uk).value.setUTCFullYear(t,e,n)))},e.prototype.toUTCString=function(){return fk(this,uk).value.toUTCString()},e}(jL),ck=function(t){function e(e){var n=t.call(this,e)||this;return n.alPrototype=e.builtins.Function.alGetPrototypeProperty(),Fk(n,{prototype:{value:new lk(e)},UTC:{value:n._UTC,writable:!0}}),n}return FL(e,t),e.prototype.alConstruct=function(t){var e,n=this.context;switch(t.length){case 0:e=new Date;break;case 1:e=new Date(yk(n,t[0]));break;default:for(var i=[],r=0;r<t.length;r++)i.push(vk(n,t[r]));e=new Date(vk(n,t[0]),vk(n,t[1]),t.length>2?vk(n,t[2]):1,t.length>3?vk(n,t[3]):0,t.length>4?vk(n,t[4]):0,t.length>5?vk(n,t[5]):0,t.length>6?vk(n,t[6]):0)}return new uk(n,e)},e.prototype.alCall=function(t,e){return Mk(this.alConstruct.apply(this,e),"toString")},e.prototype._UTC=function(t,e,n,i,r,o){var a=this.context;return Date.UTC(vk(a,arguments[0]),vk(a,arguments[1]),arguments.length>2?vk(a,arguments[2]):1,arguments.length>3?vk(a,arguments[3]):0,arguments.length>4?vk(a,arguments[4]):0,arguments.length>5?vk(a,arguments[5]):0,arguments.length>6?vk(a,arguments[6]):0)},e}(VL),hk=function(t){function e(e,n){var i=t.call(this,e)||this;return i.alPrototype=e.builtins.Error.alGetPrototypeProperty(),i.alSetOwnConstructorProperty(e.builtins.Error),void 0!==n&&i.alPut("message",n),i}return FL(e,t),e}(jL),pk=function(t){function e(e){var n=t.call(this,e)||this;return n.alPrototype=e.builtins.Object.alGetPrototypeProperty(),Fk(n,{constructor:{value:e.builtins.Error,writable:!0},name:{value:"Error",writable:!0},message:{value:"Error",writable:!0},toString:{value:n._toString,writable:!0}}),n}return FL(e,t),e.prototype._toString=function(){return this.alGet("message")},e}(jL),dk=function(t){function e(e){var n=t.call(this,e)||this;return n.alPrototype=e.builtins.Function.alGetPrototypeProperty(),Fk(n,{prototype:{value:new pk(e)}}),n}return FL(e,t),e.prototype.alConstruct=function(t){var e=t&&void 0!==t[0]?Sk(this.context,t[0]):void 0;return new hk(this.context,e)},e.prototype.alCall=function(t,e){var n=e&&void 0!==e[0]?Sk(this.context,e[0]):void 0;return new hk(this.context,n)},e}(VL);function fk(t,e){if(t instanceof e)return t;throw new Error("Invalid type")}var gk=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r._fn=n,i&&(r._ctor=i),r}return FL(e,t),e.prototype.alConstruct=function(t){if(!this._ctor)throw new Error("not a constructor");return this._ctor.apply(this,t)},e.prototype.alCall=function(t,e){if(!this._fn)throw new Error("not callable");return this._fn.apply(t,e)},e}(VL),_k=function(t){function e(e){var n=t.call(this,e)||this,i=new jL(e);return i.alPrototype=e.builtins.Object.alGetPrototypeProperty(),i.alSetOwnProperty("constructor",new UL(67)),n.alSetOwnPrototypeProperty(i),n}return FL(e,t),e.prototype.alConstruct=function(t){var e=new jL(this.context),n=this.alGetPrototypeProperty();n instanceof jL||(n=this.context.builtins.Object.alGetPrototypeProperty()),e.alPrototype=n,e.alSetOwnConstructorProperty(this);var i=this.alCall(e,t);return i instanceof jL?i:e},e}(VL);function mk(t){}function yk(t,e,n){var i=typeof e;if("string"===i||"number"===i||"undefined"===i)return e;if(!(e instanceof jL))return e;var r=e;return void 0!==n?r.alDefaultValue(n):r.alDefaultValue()}function Ak(t,e){var n=t.swfVersion>=7;switch(typeof e){case"undefined":return!1;case"object":return null!==e;case"boolean":return e;case"string":return n?!!e:!isNaN(+e)&&0!=+e;case"number":return!!e}}function vk(t,e){switch("object"==typeof e&&null!==e&&(e=yk(0,e,0)),typeof e){case"undefined":return t.swfVersion>=7?NaN:0;case"object":return null===e?t.swfVersion>=7?NaN:0:void 0!==e.nodeValue?parseFloat(e.nodeValue):t.swfVersion>=5?NaN:0;case"boolean":return e?1:0;case"number":return e;case"string":return""===e&&t.swfVersion<5?0:""===e?NaN:+e}}function bk(t,e){var n=vk(t,e);return isNaN(n)?0:0===n||n===Number.POSITIVE_INFINITY||n===Number.NEGATIVE_INFINITY?n:n<0?Math.ceil(n):Math.floor(n)}function Ck(t,e){return 0|vk(t,e)}function xk(t,e){switch("object"==typeof e&&null!==e&&(e=yk(0,e,1)),typeof e){case"undefined":return t.swfVersion>=7?"undefined":"";case"object":if(null===e)return"null";if(e&&e instanceof Array){for(var n="",i=0;i<e.length;i++)n+=xk(t,e[i]),n+=i===e.length-1?"":",";return n}return"[type "+wk(e)+"]";case"boolean":return e?"true":"false";case"number":if((0|e)===e)return""+e;if(isFinite(e)){var r=Math.floor(Math.log10(Math.abs(+e)));if(Math.abs(r)<14){var o=Math.pow(10,14-r);e=Math.round(e*o)/o}}return""+e;case"string":return e}}function Ik(t,e){switch(typeof e){case"undefined":throw new mk;case"object":if(null===e)throw new mk;return Array.isArray(e)?new ik(t,e):e;case"boolean":return new YF(t,e);case"number":return new WF(t,e);case"string":return new ZF(t,e)}}function Ek(t){var e=new jL(t);return e.alPrototype=t.builtins.Object.alGetPrototypeProperty(),e.alSetOwnConstructorProperty(t.builtins.Object),e}function wk(t){return t instanceof VL?"Function":"Object"}function Sk(t,e){return e instanceof jL?xk(t,e):"string"==typeof e?e:null==e?null:e+""}function Dk(t,e){if(!xd(e))return vk(t,e)}function Tk(t,e){return Cd(e instanceof jL?xk(t,e):e)}function Pk(t,e,n){t.alGetKeys().forEach(e,n)}function Ok(t){return t instanceof VL}function Mk(t,e,n){t.alGet(e).alCall(t,n)}function Bk(t,e,n){if(!(e instanceof jL))return!1;if(!(n instanceof jL))return!1;for(var i=n.alGetPrototypeProperty(),r=e;r;r=r.alPrototype)if(r===i)return!0;return!1}function Nk(t,e){return Bk(0,e,t.builtins.Array)}function Lk(t,e){if(!(e instanceof jL))return!1;var n=bk(t,e.alGet("length"));return!(isNaN(n)||n<0||n>=4294967296)}function Rk(t,e,n,i){void 0===i&&(i=null);var r=bk(t,e.alGet("length"));if(!(isNaN(r)||r>=4294967296))for(var o=0;o<r;o++)n.call(i,e.alGet(o),o)}function Fk(t,e){var n=t.context;Object.getOwnPropertyNames(e).forEach((function(i){var r,o,a,s=e[i],u=0;"object"==typeof s?(s.get||s.set?(o=s.get?new gk(n,s.get):void 0,a=s.set?new gk(n,s.set):void 0,u|=128):("function"==typeof(r=s.value)&&(r=new gk(n,r)),u|=64,s.writable||(u|=4)),s.enumerable||(u|=1),s.configurable||(u|=2)):("function"==typeof(r=s)&&(r=new gk(n,r)),u|=71),t.alSetOwnProperty(i,new UL(u,r,o,a))}))}mk.prototype=Object.create(Error.prototype);var kk=16384;function Uk(t){return!!t.adaptee}function jk(t){if(t.adaptee)return t.adaptee;if(!t._as3ObjectTemplate){for(var e=void 0,n=t.alPrototype;n&&!n.initAVM1SymbolInstance&&!(e=n._as3ObjectTemplate);)n=n.alPrototype;t._as3ObjectTemplate=Object.create(e||null)}return t._as3ObjectTemplate}var Vk=[void 0,"normal","layer","multiply","screen","lighten","darken","difference","add","subtract","invert","alpha","erase","overlay","hardlight"];function Qk(t,e,n,i){void 0===i&&(i=null);var r=e.alGet(n);r instanceof VL&&r.alCall(e,i);var o=e.alGet("_listeners");if(o instanceof ik){var a=null;o.value.forEach((function(t){t instanceof jL&&(a=t.alGet(n))instanceof VL&&a.alCall(t,i)}))}}var Gk=0;function zk(t,e,n){for(var i,r=t.alGetPrototypeProperty();r&&!r.initAVM1SymbolInstance;)r._as3ObjectTemplate&&!i&&(i=r._as3ObjectTemplate),r=r.alPrototype;var o=Object.create(r);if(r.initAVM1SymbolInstance.call(o,n,e),o.alPrototype=t.alGetPrototypeProperty(),o.alSetOwnConstructorProperty(t),e._as2Object=o,t.alCall(o),o.aCount=Gk++,i)for(var a in i)e[a]=i[a];return o}function Hk(t,e){return t?t._as2Object?t._as2Object:(t.isAsset(Rl)?n=t.timeline.isButton?zk(e.globals.Button,t,e):zk(e.globals.MovieClip,t,e):t.isAsset(Qp)&&(n=zk(e.globals.TextField,t,e)),n&&(t._as2Object=n,t.adapter=n,n.adaptee=t),t._as2Object=n,n):null;var n}function Xk(t,e,n,i,r){function o(e){if(!xd(e))return new gk(t,r?function(){var n=Array.prototype.slice.call(arguments,0);return n.unshift(t),e.apply(this,n)}:e)}void 0===r&&(r=!1),i&&i.forEach((function(t){if("#"!==t[t.length-1]){var i=function(t){for(var e,i=n;i;i=Object.getPrototypeOf(i))if(e=Object.getOwnPropertyDescriptor(i,t))return e;return null}(t);if(i&&!i.get&&!i.set){var r=i.value;"function"==typeof r&&(r=o(r));var a=new UL(67,r);e.alSetOwnProperty(t,a)}}else{var s="get"+t[0].toUpperCase()+t.slice(1,-1),u=n[s],l="set"+t[0].toUpperCase()+t.slice(1,-1),c=n[l],h=new UL(131,null,o(u),o(c));e.alSetOwnProperty(t.slice(0,-1),h)}}))}function Yk(t,e,n,i,r,o,a){var s=e?new gk(t,o||function(){},(function(){var e=new n(t);return e.alPrototype=u,e.alSetOwnConstructorProperty(s),a&&a.apply(e,arguments),e})):new jL(t);Xk(t,s,n,i,!0);var u=new n(t);return u.alPrototype=t.builtins.Object.alGetPrototypeProperty(),Xk(t,u,n.prototype,r,!1),Fk(s,{prototype:{value:u}}),Fk(u,{constructor:{value:s,writable:!0}}),s}function qk(t){var e=t<0?-1:1;t=Math.abs(t);var n=Math.floor(20*t)/20;return t>n&&t-n>.04&&(n+=.05,n=Math.round(20*n)/20),n*e}function Kk(t){return Math.round(20*t)/20}function Wk(t){return t+1}function Jk(t){return t-1}function $k(t,e){return e.context.executeActions(t,e)}var Zk,tU=function(t){function e(n){var i=t.call(this)||this;return i.imageStore={},i.avm1Context=n,e._instance=i,i}return FL(e,t),Object.defineProperty(e,"instance",{get:function(){return e._instance||console.log("Error. A instance of AVM1SceneGraphFactory must be created manually \t\t\t\tbefore accessing the singleton AVM1SceneGraphFactory._instance"),e._instance},enumerable:!1,configurable:!0}),e.prototype.createSprite=function(t){return new gl},e.prototype.createDisplayObjectContainer=function(){return new fl},e.prototype.createMovieClip=function(t,e){void 0===t&&(t=null),void 0===e&&(e=null);var n=new Rl(t||new bl(this));return Hk(n,this.avm1Context),n._symbol=e,n},e.prototype.createTextField=function(){var t=new Qp;return t.multiline=!0,t.wordWrap=!0,Hk(t,this.avm1Context),t},e.prototype.createBillboard=function(t){return null},e.prototype.createImage2D=function(t,e,n,i,r){return void 0===n&&(n=!0),void 0===i&&(i=null),void 0===r&&(r=!0),new Ye(t,e,n,i,r)},e.prototype.createFrameScripts=function(t,e,n,i){n=n.replace(/[^\w]/g,"");for(var r=[],o=0;o<t.length;o++){var a=t[o];a.data=this.avm1Context.actionsDataFactory.createActionsData(a,"script_"+name+"_"+i+"_frame_"+e+"_idx_"+o),r[r.length]=a}return r.length&&r.sort(this.compareAVM1FrameScripts),r},e.prototype.createChildInstanceForTimeline=function(t,e,n){Nl.invalidAS3Constructors=!0;var i,r=this.awaySymbols[e];if(r.isAsset(sl))(i=gl.getNewSprite(r.clone())).mouseEnabled=!1;else if(r.isAsset(gl))(i=gl.getNewSprite(r.graphics)).mouseEnabled=!1;else if(r.isAsset(Al))(i=Al.getNewMorphSprite(r.graphics.clone())).mouseEnabled=!1;else if(r.isAsset(Ye)){var o=new Yh(r);o.alphaBlending=r.transparent,(i=Il.getNewBillboard(o)).mouseEnabled=!1}else i=r.adapter.clone(!1).adaptee;var a=t.placeObjectTagsForSessionIDs[n];return a&&(a.variableName||a.events&&a.events.length>0)&&(i.adapter.placeObjectTag=a,i.adapter.initEvents=a),i.partitionClass=Br,i._sessionID=n,i},e.prototype.compareAVM1FrameScripts=function(t,e){if(!t.precedence)return e.precedence?-1:0;if(!e.precedence)return 1;for(var n=0;n<t.precedence.length&&n<e.precedence.length&&t.precedence[n]===e.precedence[n];)n++;return n>=t.precedence.length?t.precedence.length===e.precedence.length?0:-1:n>=e.precedence.length?1:t.precedence[n]-e.precedence[n]},e}(zp),eU=function(t,e,n,i){void 0===n&&(n=null),this.bytes=t,this.id=e,this.parent=n,this.encryptedData=i,this.debugPath=this.id,this.ir=null,this.compiled=null},nU=function(){function t(){this._cache=new WeakMap}return t.prototype.createActionsData=function(t,e,n){void 0===n&&(n=null);var i=t instanceof Uint8Array,r=i?t:t.actionsData,o=i?void 0:t.encryptedData,a=this._cache.get(r);return a||(a=new eU(r,e,n,o),this._cache.set(r,a)),a},t}(),iU=function(){function t(t){this.swfVersion=t,this.globals=null,this.actionsDataFactory=new nU,t>6?(this.isPropertyCaseSensitive=!0,this.normalizeName=this.normalizeNameCaseSensitive):(this.isPropertyCaseSensitive=!1,this._nameCache=Object.create(null),this.normalizeName=this.normalizeNameCaseInsensitive),this.builtins={},function(t){var e=t.builtins,n=new GF(t),i=new jL(t);i.alSetOwnPrototypeProperty(n),e.Object=i;var r=new HF(t),o=new jL(t);o.alSetOwnPrototypeProperty(r),e.Function=o,n._initializePrototype(),r._initializePrototype(),e.Object=new zF(t),e.Function=new XF(t),e.Boolean=new KF(t),e.Number=new $F(t),e.String=new ek(t),e.Array=new ak(t),e.Date=new ck(t),e.Math=new sk(t),e.Error=new dk(t)}(this),this.eventObservers=Object.create(null),this.assets={},this.assetsSymbols=[],this.assetsClasses=[],this.awayAssets={},this.staticStates=new WeakMap}return t.prototype.resolveTarget=function(t){},t.prototype.resolveRoot=function(){},t.prototype.checkTimeout=function(){},t.prototype.executeActions=function(t,e){},t.prototype.executeFunction=function(t,e,n){},t.prototype.normalizeNameCaseSensitive=function(t){switch(typeof t){case"number":case"string":return t;default:return xk(this,t)}},t.prototype.normalizeNameCaseInsensitive=function(t){switch(typeof t){case"number":return t.toString();case"string":break;default:t=xk(this,t)}var e=this._nameCache[t];return e||(e=t.toLowerCase(),this._nameCache[t]=e,e)},t.prototype._getEventPropertyObservers=function(t,e){this.isPropertyCaseSensitive||(t=t.toLowerCase());var n=this.eventObservers[t];return n||(e?(n=[],this.eventObservers[t]=n,n):null)},t.prototype.registerEventPropertyObserver=function(t,e){this._getEventPropertyObservers(t,!0).push(e)},t.prototype.unregisterEventPropertyObserver=function(t,e){var n=this._getEventPropertyObservers(t,!1);if(n){var i=n.indexOf(e);i<0||n.splice(i,1)}},t.prototype.broadcastEventPropertyChange=function(t){var e=this._getEventPropertyObservers(t,!1);e&&e.forEach((function(e){return e.onEventPropertyModified(t)}))},t.prototype.addAsset=function(t,e,n){this.assets[t.toLowerCase()]=e,this.assetsSymbols[e]=n,this.awayAssets[t.toLowerCase()]=n},t.prototype.registerClass=function(t,e){if(null!==(t=Sk(this,t))){var n=mt.getAsset(t,$R.currentMCAssetNameSpace);n&&n.adaptee?n.adaptee.avm1Symbol=e:console.warn("can not find symbol to register class "+t)}else this.utils.warn("Cannot register class for symbol: className is missing")},t.prototype.getSymbolClass=function(t){return this.assetsClasses[t]||null},t.prototype.getAsset=function(t){if(null!==(t=Sk(this,t))){var e=this.assets[t.toLowerCase()];if(void 0!==e){var n=this.awayAssets[t.toLowerCase()];return n||console.log("error in getAsset. not implemented to grab assets from loaderInfo"),{symbolId:e,symbolProps:n}}}},t.prototype.reset=function(){this.eventObservers=Object.create(null),this.assets={},this.assetsSymbols=[],this.assetsClasses=[],this.awayAssets={},this.staticStates=new WeakMap,uR.bindStage(this,this.globals.Stage,null,null,null)},t.prototype.setStage=function(t,e,n){mR.bindStage(this,this.globals.Key,t,n),cF.bindStage(this,this.globals.Mouse,t,n),uR.bindStage(this,this.globals.Stage,t,e,n)},t.prototype.getStaticState=function(t){var e=this.staticStates.get(t);if(!e){e=Object.create(null);var n=t.alInitStatic;n&&n.call(e,this),this.staticStates.set(t,e)}return e},t.prototype.resolveLevel=function(t){var e=this.globals._getRootForLevel(t);if(e)return Hk(e,this);this.utils.warn("Unable to resolve level "+t+" root")},t}(),rU=function(){function t(){this.parentResults=null,this.registersLimit=0}return t.prototype.analyze=function(t){for(var e,n,i,r,o,a,s,u,l=[],c=[0],h=[!0],p=!1,d=null,f=[0];f.length>0;)if(e=f.shift(),!l[e])for(t.position=e;!t.eof&&!l[e]&&0!==(n=t.readNext()).actionCode;){switch(r={action:n,next:i=t.position,conditionalJumpTo:-1},o=0,a=!1,s=!1,n.actionCode){case 138:case 141:a=!0,u=138===n.actionCode?n.args[1]:n.args[0],t.skip(u),o=t.position,t.position=i;break;case 153:s=!0,a=!0,o=i+n.args[0];break;case 157:a=!0,o=i+n.args[0];break;case 42:case 62:case 0:s=!0,a=!0,o=t.length;break;case 136:if(p){d=null;break}p=!0,0===e&&(d=n.args[0])}if(a&&(s?r.next=o:r.conditionalJumpTo=o,h[o]||(c.push(o),f.push(o),h[o]=!0)),l[e]=r,s)break;e=i}var g,_,m=[];c.forEach((function(t){if(l[t]){var e;g=[],_=t;do{e=l[_],g.push(e),_=e.next}while(!h[_]&&l[_]);m.push({label:t,items:g,jump:_})}}));var y=null;return p?y=d:this.parentResults&&(y=this.parentResults.singleConstantPool),{actions:l,blocks:m,dataId:t.dataId,singleConstantPool:y,registersLimit:this.registersLimit}},t}(),oU=function(){function t(t,e){this.array=t,this.position=0,this.end=t.length,this.readANSI=e<6;var n=new ArrayBuffer(4);if(new Int32Array(n)[0]=1,!new Uint8Array(n)[0])throw new Error("big-endian platform")}return t.prototype.readUI8=function(){return this.array[this.position++]},t.prototype.readUI16=function(){var t=this.position,e=this.array,n=e[t+1]<<8|e[t];return this.position=t+2,n},t.prototype.readSI16=function(){var t=this.position,e=this.array,n=e[t+1]<<8|e[t];return this.position=t+2,n<32768?n:n-65536},t.prototype.readInteger=function(){var t=this.position,e=this.array,n=e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24;return this.position=t+4,n},t.prototype.readFloat=function(){var t=this.position,e=this.array,n=new ArrayBuffer(4),i=new Uint8Array(n);return i[0]=e[t],i[1]=e[t+1],i[2]=e[t+2],i[3]=e[t+3],this.position=t+4,new Float32Array(n)[0]},t.prototype.readDouble=function(){var t=this.position,e=this.array,n=new ArrayBuffer(8),i=new Uint8Array(n);return i[4]=e[t],i[5]=e[t+1],i[6]=e[t+2],i[7]=e[t+3],i[0]=e[t+4],i[1]=e[t+5],i[2]=e[t+6],i[3]=e[t+7],this.position=t+8,new Float64Array(n)[0]},t.prototype.readBoolean=function(){return!!this.readUI8()},t.prototype.readANSIString=function(){for(var t,e="";t=this.readUI8();)e+=String.fromCharCode(t);return e},t.prototype.readUTF8String=function(){for(var t,e="";t=this.readUI8();)if(t<128)e+=String.fromCharCode(t);else if(128!=(192&t)){var n=this.position-1,i=192,r=5;do{var o=i>>1|128;if((t&o)===i)break;i=o,--r}while(r>=0);for(var a=t&(1<<r)-1,s=5;s>=r;--s)if(128==(192&(t=this.readUI8())))a=a<<6|63&t;else{var u=this.position-1;for(this.position=n;this.position<u;)e+=String.fromCharCode(this.readUI8())}e+=a>=65536?String.fromCharCode(a-65536>>10&1023|55296,1023&a|56320):String.fromCharCode(a)}else e+=String.fromCharCode(t);return e},t.prototype.readString=function(){return this.readANSI?this.readANSIString():this.readUTF8String()},t.prototype.readBytes=function(t){var e=this.position,n=Math.max(this.end-e,0);n<t&&(t=n);var i=this.array.subarray(e,e+t);return this.position=e+t,i},t}(),aU=/[^A-Za-z0-9_]+/g,sU=function(t){this.registerNumber=t},uU=function(t){this.constantIndex=t},lU=function(){function t(t,e){this.swfVersion=e,this._lastPushedValue=null,this._lastDefinedConstantPool=null,this._initialPosition=0,this._initialLen=0,this._actionsData=t,this.dataId=t.id;var n=t.bytes,i=new Uint8Array(n.buffer,0);this._initialPosition=n.byteOffset,this._initialLen=n.length,this._stream=new oU(i,e),this._stream.position=this._initialPosition}return Object.defineProperty(t.prototype,"position",{get:function(){return this._stream.position-this._initialPosition},set:function(t){this._stream.position=t+this._initialPosition},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"eof",{get:function(){return this.position>=this._initialLen},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this._initialLen},enumerable:!1,configurable:!0}),t.prototype.readNext=function(){var t=this._stream,e=t.position,n=t.readUI8(),i=n>=128?t.readUI16():0,r=t.position+i,o=null;switch(155!==n&&142!==n&&(this._lastPushedValue=null),0|n){case 129:var a=t.readUI16(),s=!1;6!==(u=t.readUI8())&&7!==u?t.position--:(r++,s=6===u),o=[a,s];break;case 131:o=[t.readString(),t.readString()];break;case 138:o=[a=t.readUI16(),p=t.readUI8()];break;case 139:o=[t.readString()];break;case 140:var u,l=t.readString();s=!1;6!==(u=t.readUI8())&&7!==u?t.position--:(r++,s=6===u),o=[l,s];break;case 150:var c,h;for(o=[];t.position<r;){switch(0|(c=t.readUI8())){case 0:h=t.readString(),this._lastPushedValue=h;break;case 1:h=t.readFloat();break;case 2:h=null;break;case 3:h=void 0;break;case 4:h=new sU(t.readUI8());break;case 5:h=t.readBoolean();break;case 6:h=t.readDouble();break;case 7:h=t.readInteger();break;case 8:h=new uU(t.readUI8());break;case 9:h=new uU(t.readUI16());break;default:console.error("Unknown value type: "+c,t.position),t.position=r;continue}this._lastPushedValue=h,o.push(h)}break;case 153:case 157:o=[t.readSI16()];break;case 154:o=[A=t.readUI8()];break;case 159:o=[A=t.readUI8()],2&A&&o.push(t.readUI16());break;case 141:o=[p=t.readUI8()];break;case 136:for(var p=t.readUI16(),d=[],f=0;f<p;f++)d.push(t.readString());this._lastDefinedConstantPool=d,o=[d];break;case 155:var g=t.readString(),_=(p=t.readUI16(),[]);for(f=0;f<p;f++)_.push(t.readString());r+=I=t.readUI16(),o=[w=new eU(t.readBytes(I),this.dataId+"_f"+t.position,this._actionsData),g,_];break;case 148:r+=I=t.readUI16(),o=[new eU(t.readBytes(I),this.dataId+"_w"+t.position,this._actionsData)];break;case 135:o=[b=t.readUI8()];break;case 142:var m=null;this._lastPushedValue instanceof uU&&this._lastDefinedConstantPool&&(m=this._lastDefinedConstantPool[this._lastPushedValue.constantIndex]),"string"==typeof this._lastPushedValue&&(m=this._lastPushedValue),m&&aU.test(m)&&(m=null);g=t.readString(),p=t.readUI16();var y=t.readUI8(),A=t.readUI16(),v=[];for(_=[],f=0;f<p;f++){var b=t.readUI8(),C=t.readString();_.push(C),b&&(v[b]={type:1,name:C,index:f})}var x=1;1&A&&(v[x++]={type:2}),4&A&&(v[x++]={type:4}),16&A&&(v[x++]={type:8}),64&A&&(v[x++]={type:64}),128&A&&(v[x++]={type:32}),256&A&&(v[x++]={type:16});var I,E=0;2&A&&(E|=2),8&A&&(E|=4),32&A&&(E|=8),r+=I=t.readUI16();var w,S=this.dataId+"_f"+t.position;m&&(S=m+"__"+S),(w=new eU(t.readBytes(I),S,this._actionsData)).debugPath=this.dataId+"/"+(m||"f"+t.position),o=[w,g,_,y,v,E];break;case 143:var D=!!(4&(A=t.readUI8())),T=!!(2&A),P=!!(1&A),O=t.readUI16(),M=t.readUI16(),B=t.readUI16(),N=D?t.readUI8():t.readString();r+=O+M+B;var L=this._actionsData.debugPath,R=new eU(t.readBytes(O),this.dataId+"_t"+t.position,this._actionsData);L&&(R.debugPath=L+"/try_"+this._stream.position);var F=new eU(t.readBytes(M),this.dataId+"_c"+t.position,this._actionsData);L&&(F.debugPath=L+"/catch_"+this._stream.position);var k=new eU(t.readBytes(B),this.dataId+"_z"+t.position,this._actionsData);L&&(k.debugPath=L+"/finaly_"+this._stream.position),o=[D,N,R,P,F,T,k];break;case 137:o=[t.readUI8()]}return t.position=r,{position:e-this._initialPosition,actionCode:n,actionName:cU[n],knownAction:!!cU[n],args:o}},t.prototype.skip=function(t){for(var e=this._stream;t>0&&this.position<this._initialLen;){var n=e.readUI8()>=128?e.readUI16():0;e.position+=n,t--}},t}(),cU={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"},hU=/[^A-Za-z0-9_/]+/g,pU=null;function dU(){return pU||(pU=function(){var t=function(t){return t};return{ActionGotoFrame:t(nj),ActionGetURL:t(ij),ActionNextFrame:t(rj),ActionPreviousFrame:t(oj),ActionPlay:t(aj),ActionStop:t(sj),ActionToggleQuality:t(uj),ActionStopSounds:t(lj),ActionWaitForFrame:t(cj),ActionSetTarget:t(hj),ActionGoToLabel:t(pj),ActionPush:t(dj),ActionPop:t(fj),ActionAdd:t(gj),ActionSubtract:t(_j),ActionMultiply:t(mj),ActionDivide:t(yj),ActionEquals:t(Aj),ActionLess:t(vj),ActionAnd:t(bj),ActionOr:t(Cj),ActionNot:t(xj),ActionStringEquals:t(Ij),ActionStringLength:t(Ej),ActionMBStringLength:t(wj),ActionStringAdd:t(Sj),ActionStringExtract:t(Dj),ActionMBStringExtract:t(Tj),ActionStringLess:t(Pj),ActionToInteger:t(Oj),ActionCharToAscii:t(Mj),ActionMBCharToAscii:t(Bj),ActionAsciiToChar:t(Nj),ActionMBAsciiToChar:t(Lj),ActionJump:t(Rj),ActionIf:t(Fj),ActionCall:t(kj),ActionGetVariable:t(Uj),ActionSetVariable:t(jj),ActionGetURL2:t(Vj),ActionGotoFrame2:t(Qj),ActionSetTarget2:t(Gj),ActionGetProperty:t(zj),ActionSetProperty:t(Hj),ActionCloneSprite:t(Xj),ActionRemoveSprite:t(Yj),ActionStartDrag:t(qj),ActionEndDrag:t(Kj),ActionWaitForFrame2:t(Wj),ActionTrace:t(Jj),ActionGetTime:t($j),ActionRandomNumber:t(Zj),ActionCallFunction:t(tV),ActionCallMethod:t(eV),ActionConstantPool:t(iV),ActionDefineFunction:t(rV),ActionDefineLocal:t(oV),ActionDefineLocal2:t(aV),ActionDelete:t(sV),ActionDelete2:t(uV),ActionEnumerate:t(lV),ActionEquals2:t(cV),ActionGetMember:t(hV),ActionInitArray:t(pV),ActionInitObject:t(dV),ActionNewMethod:t(fV),ActionNewObject:t(gV),ActionSetMember:t(_V),ActionTargetPath:t(mV),ActionWith:t(yV),ActionToNumber:t(AV),ActionToString:t(vV),ActionTypeOf:t(bV),ActionAdd2:t(CV),ActionLess2:t(xV),ActionModulo:t(IV),ActionBitAnd:t(EV),ActionBitLShift:t(wV),ActionBitOr:t(SV),ActionBitRShift:t(DV),ActionBitURShift:t(TV),ActionBitXor:t(PV),ActionDecrement:t(OV),ActionIncrement:t(MV),ActionPushDuplicate:t(BV),ActionReturn:t(NV),ActionStackSwap:t(LV),ActionStoreRegister:t(RV),ActionInstanceOf:t(FV),ActionEnumerate2:t(kV),ActionStrictEquals:t(UV),ActionGreater:t(jV),ActionStringGreater:t(VV),ActionDefineFunction2:t(QV),ActionExtends:t(GV),ActionCastOp:t(zV),ActionImplementsOp:t(HV),ActionTry:t(XV),ActionThrow:t(YV),ActionFSCommand2:t(qV),ActionStrictMode:t(KV)}}()),pU}var fU=function(t){void 0===t&&(t=!1),this.inlinePop=t},gU=((Zk={})[78]={AllowReturnValue:!0,AllowStackToArgs:!0,AllowCallapsDouble:!0,ArgsCount:2},Zk[79]={AllowStackToArgs:!0,ArgsCount:3},Zk[71]={AllowStackToArgs:!0,AllowReturnValue:!0,PlainArgs:!0,ArgsCount:2},Zk[103]={AllowStackToArgs:!0,AllowReturnValue:!0,ArgsCount:2},Zk),_U=function(){function t(){}return t.prototype.convertArgs=function(t,e,n,i){for(var r,o,a,s,u,l,c=[],h=t.length,p=0;p<h;p++)"object"!=typeof(r=t[p])||null===r||Array.isArray(r)?void 0===r?c.push("undefined"):c.push(JSON.stringify(r)):r instanceof uU?i.singleConstantPool?(o=i.singleConstantPool[r.constantIndex],c.push(void 0===o?"undefined":JSON.stringify(o))):(a="",(s=n.constantPool)&&(a=(a=void 0===(o=s[r.constantIndex])?"undefined":JSON.stringify(o)).indexOf("*/")>=0?"":" /* "+a+" */"),c.push("constantPool["+r.constantIndex+"]"+a)):r instanceof sU?(u=r.registerNumber)<0||u>=i.registersLimit?c.push("undefined"):c.push("registers["+u+"]"):r instanceof eU?(n[l="code_"+e+"_"+p]=r,c.push("res."+l)):r instanceof fU&&r.inlinePop&&c.push("stack.pop()");return c.join(",")},t.prototype.convertAction=function(t,e,n,i,r,o,a){var s=o[i-1],u=t.flags,l="";if((null==u?void 0:u.optimised)&&(l=" /* ".concat(t.action.actionName," optimised */\n")),null==u?void 0:u.killed)return" /* ".concat(t.action.actionName," killed by optimiser */\n");if(!t.action.knownAction)return" // unknown actionCode ".concat(t.action.actionCode," at ").concat(t.action.position,"\n");switch(t.action.actionCode){case 153:case 62:return"";case 136:return n.constantPool=t.action.args[0],a.forward["constPool".concat(e)]="[".concat(this.convertArgs(t.action.args[0],e,n,r),"]")," constantPool = ectx.constantPool = constPool".concat(e,";\n");case 150:return l+" stack.push("+this.convertArgs(t.action.args,e,n,r)+");\n";case 135:var c=t.action.args[0];return c<0||c>=r.registersLimit?"":" registers["+c+"] = stack[stack.length - 1];\n";case 138:case 141:var h=this.convertArgs(t.action.args,e,n,r);return" if (calls."+t.action.actionName+"(ectx,["+h+"])) { position = "+t.conditionalJumpTo+"; checkTimeAfter -= "+(i+1)+"; break; }\n";case 157:return" if (!!stack.pop()) { position = "+t.conditionalJumpTo+"; checkTimeAfter -= "+(i+1)+"; break; }\n";default:if((h=t.action.args?this.convertArgs(t.action.args,e,n,r):"")&&!u.PlainArgs&&(h="["+h+"]"),142===t.action.actionCode){var p="defFunArgs".concat(e);a.forward[p]=h,h=p}if(l+=" calls."+t.action.actionName+"(ectx"+(h?", "+h:"")+");\n","ActionCallMethod"==t.action.actionName&&(s||(l="// strange oppcode at ".concat(t.action.position,"\n")+l),s&&150==s.action.actionCode)){var d=this.convertArgs(s.action.args,e-1,n,r);'"gotoAndStop"'!=d&&'"gotoAndPlay"'!=d||(l+=" if(ectx.scopeList && ectx.scopeList.scope && ectx.scopeList.scope.adaptee && !ectx.scopeList.scope.adaptee.parent){ ectx.framescriptmanager.execute_avm1_constructors(); return;}\n")}return l}},t.prototype.inlineStackOpt=function(t,e,n){if(!n.length)return!1;var i=e[t],r=i.flags,o=i.action.actionCode,a=e[n[0]];n.length=0;var s=gU[o];if(!s||!s.AllowStackToArgs)return!1;r.PlainArgs=s.PlainArgs;var u=a.action.args;if(u.length===s.ArgsCount)a.flags.killed=!0,i.action.args=u;else if(u.length>s.ArgsCount){var l=u.length-s.ArgsCount;i.action.args=u.slice(l),u.length=l,a.flags.optimised=!0}else{var c=s.ArgsCount-u.length;if(c>1)return!1;a.flags.killed=!0,i.action.args=u.slice();for(var h=0;h<c;h++)i.action.args.unshift(new fU(!0))}return r.optimised=!0,!0},t.prototype.optimiser=function(t){for(var e=t.items,n=[],i=!0,r=0,o=e.length;r<o;r++){var a=e[r],s=a.action.actionCode;if(a.flags=a.flags||{},150!==s){if(n.length>1)for(var u=n[0],l=n[n.length-1],c=e[u].action,h=u+1;h<=l;h++)c.args=c.args.concat(e[h].action.args),e[h].flags.killed=!0;i=!!i&&this.inlineStackOpt(r,e,n),n.length=0}switch(s){case 150:n.push(r),i=!0;break;case 78:var p=a.action.args;if(!(null==p?void 0:p.length))break;var d=p[0];if(!(d instanceof fU&&d.inlinePop))break;for(var f=r-1;f>=0&&e[f].flags.killed;f--);if(f>=0){var g=e[f],_=g.action.args;if(78===g.action.actionCode&&(null==_?void 0:_.length)){g.flags.killed=!0,a.flags.optimised=!0,p.shift();for(var m=_.length-1;m>=0;m--)p.unshift(_[m])}}}}},t.prototype.generate=function(t,e){var n=this;void 0===e&&(e=null);var i=t.blocks,r={},o={forward:{},back:{}},a=t.dataId.replace(hU,"_"),s="return function "+a+"(ectx) {\nvar position = 0;\nvar checkTimeAfter = 0;\nvar constantPool = ectx.constantPool, registers = ectx.registers, stack = ectx.stack;\n",u="",l="";LR.value&&(l+="/* Running "+a+" */ if (Shumway.AVM1.Debugger.pause || Shumway.AVM1.Debugger.breakpoints."+a+") { debugger; }\n"),l+="while (!ectx.isEndOfActions) {\n"+"if (checkTimeAfter <= 0) { checkTimeAfter = ".concat(AU,"; ectx.context.checkTimeout(); }\n\n")+"switch(position) {\n";var c=0;for(var h in i.forEach((function(e){l+=" case "+e.label+":\n",n.optimiser(e);var i=e.items.map((function(i,a){return n.convertAction(i,c++,r,a,t,e.items,o)}));l+=i.join(""),l+=" position = "+e.jump+";\n checkTimeAfter -= "+e.items.length+";\n break;\n"})),l+=" default: ectx.isEndOfActions = true; break;\n}\n}\nreturn stack.pop();};",u+="\n// hoisted vars\n",o.forward)u+="var ".concat(h," = ").concat(o.forward[h],";\n");l=(u+="\n")+s+l,l+="//# sourceURL=http://jit/"+(e&&!hU.test(e)?e:a);try{return new Function("calls","res",l)(dU(),r)}catch(t){throw t}},t}();function mU(t,e,n,i,r){if(OR.value)try{throw new Error(t)}catch(t){}MR.value&&Od.warning.apply(console,arguments)}var yU,AU=1e3,vU=1e3;!function(t){t[t.DEFAULT=0]="DEFAULT",t[t.TARGET=1]="TARGET",t[t.REPLACE_TARGET=2]="REPLACE_TARGET"}(yU||(yU={}));var bU=function(t,e){this.scope=t,this.previousScopeItem=e,this.flags=yU.DEFAULT},CU=function(t){function e(e,n){var i=t.call(this,e)||this;return i.alSetOwnProperty("this",new UL(71,n)),i.alSetOwnProperty("_global",new UL(71,e.globals)),i}return FL(e,t),e}(jL),xU=function(){function t(t,e,n,i,r){this.previousFrame=t,this.currentThis=e,this.fn=n,this.args=i,this.ectx=r,this.inSequence=!!t&&(t.calleeThis===e&&t.calleeFn===n),this.resetCallee()}return t.prototype.setCallee=function(t,e,n,i){this.calleeThis=t,this.calleeSuper=e,this.calleeFn=n},t.prototype.resetCallee=function(){this.calleeThis=null,this.calleeSuper=null,this.calleeFn=null},t}(),IU=function(){function t(t){this._context=t}return t.prototype.hasProperty=function(t,e){return function(t,e,n){var i=Ik(t,e);return n=t.normalizeName(n),i.alHasProperty(n)}(this._context,t,e)},t.prototype.getProperty=function(t,e){return OU(this._context,t,e)},t.prototype.setProperty=function(t,e,n){return MU(this._context,t,e,n)},t.prototype.warn=function(t){mU.apply(null,arguments)},t}(),EU=function(t){function e(e){var n=t.call(this,e)||this;return n.globals=VF.createGlobalsObject(n),n.actions=new QF(n),n.initialScope=new bU(n.globals,null),n.utils=new IU(n),n.isActive=!1,n.executionProhibited=!1,n.actionTracer=PR.value?new $V:null,n.abortExecutionAt=0,n.stackDepth=0,n.frame=null,n.isTryCatchListening=!1,n.errorsIgnored=0,n.deferScriptExecution=!0,n}return FL(e,t),e.prototype._getExecutionContext=function(){return this.frame.ectx},e.prototype.resolveTarget=function(t){return tj(this._getExecutionContext(),t,!0)},e.prototype.resolveRoot=function(){return ej(this._getExecutionContext())},e.prototype.checkTimeout=function(){Date.now(),this.abortExecutionAt},e.prototype.pushCallFrame=function(t,e,n,i){var r=new xU(this.frame,t,e,n,i);return this.frame=r,r},e.prototype.popCallFrame=function(){var t=this.frame.previousFrame;return this.frame=t,t},e.prototype.executeActions=function(t,e){if(!this.executionProhibited){var n,i=this.isActive;i||(this.isActive=!0,this.abortExecutionAt=BR.value?Number.MAX_VALUE:Date.now()+1e3,this.errorsIgnored=0);try{!function(t,e,n){t.actionTracer;var i,r=new bU(new CU(t,n),t.initialScope),o=new bU(n,r);o.flags|=yU.TARGET;var a=QU.create(t,o,[],UU);t.pushCallFrame(n,null,null,a);try{JV(a,e)}catch(t){i=LU(t)}a.dispose(),i instanceof SU&&(t.executionProhibited=!0,console.error("Disabling AVM1 execution"));if(t.popCallFrame(),i)throw i}(this,t,e)}catch(t){n=t}this.isActive=i,n&&console.error("error in framescripts",n)}},e.prototype.executeFunction=function(t,e,n){if(!this.executionProhibited){var i,r=this.isActive;return r||(this.isActive=!0,this.abortExecutionAt=BR.value?Number.MAX_VALUE:Date.now()+1e3,this.errorsIgnored=0),i=t.alCall(e,n),this.isActive=r,i}},e}(iU);iU.create=function(t){return new EU(t)};var wU=function(t){this.error=t},SU=function(t){function e(e,n){var i=t.call(this,e)||this;return i.error=n,i}return FL(e,t),e}(Error);function DU(t,e,n){var i=yk(0,e),r=yk(0,n);if("string"==typeof i&&"string"==typeof r)return xk(t,i)<xk(t,r);var o=vk(t,i),a=vk(t,r);return isNaN(o)||isNaN(a)?void 0:o<a}function TU(t,e,n){if(typeof e==typeof n){if("number"==typeof e){var i=Math.abs(e),r=Math.abs(n),o=1e-6*(i>r?i:r);return Math.abs(e-n)<=o}return e===n}return null==e&&null==n||("number"==typeof e&&"string"==typeof n?""!==n&&e===+n:"string"==typeof e&&"number"==typeof n?""!==e&&+e===n:"boolean"==typeof e&&(e=+e,"number"==typeof n||"string"==typeof n)?""!==n&&e===+n:"boolean"==typeof n&&(n=+n,"number"==typeof e||"string"==typeof e)?""!==e&&+e===n:"number"!=typeof e&&"string"!=typeof e||"object"!=typeof n||null===n?"object"==typeof e&&null!==e&&("number"==typeof n||"string"==typeof n)&&("object"!=typeof(e=yk(0,e))&&TU(t,e,n)):"object"!=typeof(n=yk(0,n))&&TU(t,e,n))}function PU(t,e){if(xd(t)||xd(e))return!1;var n=e.alGetPrototypeProperty();if(!n)return!1;for(var i=t;i;){if(i===n)return!0;i=i.alPrototype}return!1}function OU(t,e,n){var i=Ik(t,e);if(i)return i.alGet(n)}function MU(t,e,n,i){var r=Ik(t,e);if(r)if("__proto__"==n){if(i){for(var o=i.alGetKeys(),a=0;a<o.length;a++){var s=o[a];""!=s&&(r.alPut(s,i.alGet(s)),NU(t,s,r))}r.protoTypeChanged=!(i instanceof $R)}}else r.alPut(n,i),r.adaptee&&NU(t,n,r)}function BU(t,e,n){var i=Ik(t,e);n=t.normalizeName(n);var r=i.alDeleteProperty(n);return NU(t,n,i),r}function NU(t,e,n){void 0!==e&&(e=Sk(t,e),"o"===(e=t.normalizeName(e))[0]&&"n"===e[1]&&n&&n.updateEventByPropName&&n.updateEventByPropName(e))}function LU(t){return"undefined"!=typeof InternalError&&t instanceof InternalError&&"too much recursion"===t.message?new SU("long running script -- AVM1 recursion limit is reached"):t}function RU(t,e){if(Ok(t))return t.alConstruct(e)}function FU(t,e,n){"boolean"!=typeof t&&"string"!=typeof t&&"number"!=typeof t&&Pk(t,(function(i){var r;if("string"!=typeof i||-1==i.indexOf("_internal_TF")){var o=t.alGet(i);(null===(r=null==o?void 0:o.adaptee)||void 0===r?void 0:r.isAsset(Qp))&&o.adaptee.isStatic||e.call(n,i)}}),n)}function kU(t,e,n){if(t.swfVersion<6)return null;var i=e.inSequence&&e.previousFrame.calleeSuper;if(!i){for(i=e.currentThis;i&&!i.alHasOwnProperty(n);)i=i.alPrototype;if(!i)return null}return i=i.alPrototype}var UU=4;var jU=function(t){function e(e,n){var i=t.call(this,e)||this;return i.callFrame=n,i.alPrototype=e.builtins.Object.alGetPrototypeProperty(),i}return FL(e,t),e}(jL),VU=function(t){function e(e,n,i,r){var o=t.call(this,e,n)||this;return Fk(o,{callee:{value:i},caller:{value:r}}),o}return FL(e,t),e}(ik),QU=function(){function t(t,e,n,i){this.framescriptmanager=Nl,this.context=t,this.actions=t.actions,this.isSwfVersion5=t.swfVersion>=5,this.isSwfVersion7=t.swfVersion>=7,this.registers=[],this.stack=[],this.frame=null,this.recoveringFromError=!1,this.isEndOfActions=!1,this.reset(e,n,i)}return t.alInitStatic=function(){this.cache=[]},t.prototype.reset=function(t,e,n){this.scopeList=t,this.constantPool=e,this.registers.length=n},t.prototype.clean=function(){this.scopeList=null,this.constantPool=null,this.registers.length=0,this.stack.length=0,this.frame=null,this.recoveringFromError=!1,this.isEndOfActions=!1},t.prototype.pushScope=function(t){var e=Object.create(this);return e.stack=[],xd(t)||(e.scopeList=t),e},t.prototype.dispose=function(){this.clean();var e=this.context.getStaticState(t);e.cache.length<t.MAX_CACHED_EXECUTIONCONTEXTS&&e.cache.push(this)},t.create=function(e,n,i,r){var o,a=e.getStaticState(t);return a.cache.length>0?(o=a.cache.pop()).reset(n,i,r):o=new t(e,n,i,r),o},t.MAX_CACHED_EXECUTIONCONTEXTS=20,t}(),GU=function(t){function e(e){var n=t.call(this,e)||this;return n.alPut("toString",new gk(e,n._toString)),n}return FL(e,t),e.prototype._toString=function(){return this},e}(jL),zU=function(t){function e(e,n,i,r,o,a,s,u){var l=t.call(this,e)||this;l.functionName=r,l.actionsData=i,l.parametersNames=o,l.registersAllocation=s,l.suppressArguments=u,l.scopeList=n.scopeList,l.constantPool=n.constantPool;for(var c=null,h=s?s.length:0,p=0;p<h;p++){var d=s[p];d&&1===d.type&&(c||(c=[]),c[s[p].index]=!0)}l.skipArguments=c;var f=Math.min(a,255);return f=Math.max(f,h+1),l.registersLength=f,l}return FL(e,t),e.prototype.alCall=function(t,e){var n,i,r=this.context;if(!r.executionProhibited){var o=new GU(r),a=new bU(o,this.scopeList),s=this.scopeList.scope;e=e||[];var u,l,c=QU.create(r,a,this.constantPool,this.registersLength),h=r.frame?r.frame.fn:void 0,p=r.pushCallFrame(t,this,e,c),d=this.suppressArguments;4&d||o.alPut("arguments",new VU(r,e,this,h)),2&d||o.alPut("this",t),8&d||(u=new jU(r,p),o.alPut("super",u));var f=c.registers,g=this.registersAllocation,_=g?g.length:0;for(l=0;l<_;l++){var m=g[l];if(m)switch(m.type){case 1:f[l]=e[m.index];break;case 2:f[l]=t;break;case 4:f[l]=new VU(r,e,this,h);break;case 8:u=u||new jU(r,p),f[l]=u;break;case 16:f[l]=r.globals;break;case 32:var y=null;if(s&&((y=s.alGet("_parent"))||(y=s.alGet("this"))&&(y=y.alGet("_parent"))),!y&&((y=t)&&(y=y.alGet("_parent")),y&&this.isOnEnter&&y.alGet("_parent")&&(y=y.alGet("_parent")),!y&&(null===(i=null===(n=this.scopeList)||void 0===n?void 0:n.previousScopeItem)||void 0===i?void 0:i.scope)))for(var A=this.scopeList.previousScopeItem;A;)A.scope&&A.scope instanceof $R?y=A.scope:A.scope&&(y=A.scope.alGet("this")),y&&(y=y.alGet("_parent")),A=A.previousScopeItem?A.previousScopeItem:null;y&&(f[l]=y);break;case 64:f[l]=ej(c)}}var v,b=this.parametersNames,C=this.skipArguments;for(l=0;l<e.length||l<b.length;l++)C&&C[l]||o.alPut(b[l],e[l]);r.actionTracer;var x=this.actionsData;if(++r.stackDepth>=256)throw new SU("long running script -- AVM1 recursion limit is reached");return v=JV(c,x),r.stackDepth--,r.popCallFrame(),c.dispose(),v}},e}(_k);function HU(t,e){return isNaN(t)||t<0?(mU("Invalid amount of arguments: "+t),0):(t|=0)>e?(mU("Truncating amount of arguments: from "+t+" to "+e),e):t}function XU(t){var e=+t.pop();e=HU(e,t.length);for(var n=[],i=0;i<e;i++)n.push(t.pop());return n}function YU(t,e){var n=null;if(e){if("string"==typeof e)for(;e.length&&"."==e[e.length-1];)e=e.substring(0,e.length-1);try{WU(n=tj(t,e,!1))||(mU("Invalid AVM1 target object: "+e),n=void 0)}catch(t){mU("Unable to set target: "+t)}}n?(t.scopeList.flags|=yU.REPLACE_TARGET,t.scopeList.replaceTargetBy=n):(t.scopeList.flags&=~yU.REPLACE_TARGET,t.scopeList.replaceTargetBy=null)}function qU(t,e,n,i,r,o,a){return new zU(t.context,t,e,n,i,r,o,a)}var KU={scope:null,propertyName:null,value:void 0};function WU(t){return t instanceof jL&&Uk(t)}function JU(t,e,n,i){var r;void 0===i&&(i=null);for(var o=KU,a=t;a;a=a.previousScopeItem){if(!(a.flags&yU.REPLACE_TARGET)||64&n||r||(r=a.replaceTargetBy),a.flags&yU.TARGET){if(2&n)return o.scope=r||a.scope,o.propertyName=e,o.value=32&n?o.scope.alGet(e):void 0,o;if(1&n&&r){if(r.alHasProperty(e))return o.scope=r,o.propertyName=e,o.value=32&n?r.alGet(e):void 0,o;continue}}if(a.scope.alHasProperty(e)){var s=a.scope.alGet(e);if(i&&(!s||"object"!=typeof s||!s.alHasProperty||!s.alHasProperty(i)))continue;return o.scope=a.scope,o.propertyName=e,o.value=32&n?a.scope.alGet(e):void 0,o}}}function $U(t,e,n){var i,r,o,a=e.length,s=0,u=!0,l=null,c=null,h=void 0,p=e;if(!function(t){return t&&(t.indexOf(".")>=0||t.indexOf(":")>=0||t.indexOf("/")>=0)}(e))return"string"==typeof(e=t.context.normalizeName(e))&&e.startsWith("_level")?((i=KU).scope=c,i.propertyName=e,i.value=t.context.resolveLevel(+e[6]),i):JU(t.scopeList,e,n);if("."==e[e.length-1])return null;if("/"===e[0]?((i=JU(t.scopeList,"_root",33))&&(l=i.propertyName,c=i.scope,h=i.value),s++,o=!1):(i=null,o=!0),s>=a)return i;for(var d=s;s<a;){if(!(o||h instanceof jL))return mU("Unable to resolve variable on invalid object "+e.substring(d,s-1)+" (expr "+e+")"),null;if(d=s,"."===e[s]&&"."===e[s+1])s+=2,l="_parent";else{for(;s<a&&"/"!==(r=e[s])&&"."!==r&&":"!==r;)s++;l=e.substring(d,s)}if(""===l&&s<a)s++;else{c=h;var f=!1;if(u){var g=h instanceof $R?h._lookupChildByName(l):void 0;g&&(f=!0,h=g)}if(!f)if(o){d=s+1;var _=s+1,m="";if("."===e[_]&&"."===e[_+1])_+=2,m="_parent";else{for(;_<a&&"/"!==(r=e[_])&&"."!==r&&":"!==r;)_++;m=e.substring(d,_)}""==m&&(m=null),!(i=JU(t.scopeList,l,n,m))&&m&&(i=JU(t.scopeList,l,n)),i&&(f=!0,l=i.propertyName,c=i.scope,h=i.value,s<a&&!h&&c&&(h=c)),o=!1}else h.alHasProperty(l)&&(h=h.alGet(l),f=!0);if(f||"_"!==l[0]||(l.startsWith("_level")?(h=t.context.resolveLevel(+l[6]),f=!0):"_root"===l&&(h=ej(t),f=!0)),!(f||2&n))return mU("Unable to resolve "+l+" on "+e.substring(d,s-1)+" (expr "+e+")"),null;if(s>=a)break;var y=e[s++];"/"!==y||":"!==(r=e[s])&&"."!==r||(y=e[s++]),u="/"===y}}return(i=KU).scope=c,i.propertyName=p.substring(d,s),i.value=32&n?h:void 0,i}function ZU(t,e){for(var n=t.scopeList;n.previousScopeItem;n=n.previousScopeItem){if(n.flags&yU.REPLACE_TARGET&&e)return n.replaceTargetBy;if(n.flags&yU.TARGET)return n.scope}}function tj(t,e,n){var i;if(WU(e))i=e;else if(e=xd(e)?"":xk(this,e)){var r=xk(t.context,e),o=$U(t,r,161|(n?0:64));o&&WU(o.value)?i=o.value:(mU("Invalid AVM1 target object: "+r),i=void 0)}else i=ZU(t,!0);return i}function ej(t){return ZU(t,!0).get_root()}function nj(t,e){var n=e[0];e[1]?t.actions.gotoAndPlay(n+1):t.actions.gotoAndStop(n+1)}function ij(t,e){var n=e[0],i=e[1];t.actions.getURL(n,i)}function rj(t){t.actions.nextFrame()}function oj(t){t.actions.prevFrame()}function aj(t){t.actions.play()}function sj(t){t.actions.stop()}function uj(t){t.actions.toggleHighQuality()}function lj(t){t.actions.stopAllSounds()}function cj(t,e){var n=e[0];return!t.actions.ifFrameLoaded(n)}function hj(t,e){YU(t,e[0])}function pj(t,e){var n=e[0];e[1]?t.actions.gotoAndPlay(n):t.actions.gotoAndStop(n)}function dj(t,e){var n=t.registers,i=t.constantPool,r=t.stack;e.forEach((function(t){if(t instanceof uU)r.push(i[t.constantIndex]);else if(t instanceof sU){var e=t.registerNumber;e<0||e>=n.length?r.push(void 0):r.push(n[e])}else r.push(t)}))}function fj(t){t.stack.pop()}function gj(t){var e=t.stack,n=vk(t.context,e.pop()),i=vk(t.context,e.pop());t.isSwfVersion7||(void 0===n&&(n=0),void 0===i&&(i=0)),isFinite(n)&&isFinite(i)?null==i?e.push(NaN):e.push(n+i):n===-1/0&&i===-1/0?e.push(-1/0):isNaN(n)||isNaN(i)?e.push(NaN):n===i?e.push(1/0):isFinite(n)||isFinite(i)?isFinite(n)?isFinite(i)||e.push(i):e.push(n):e.push(NaN)}function _j(t){var e=t.stack,n=e.pop(),i=e.pop();n=vk(t.context,n),i=vk(t.context,i),t.isSwfVersion7||(null==n&&(n=0),null==i&&(i=0)),isFinite(n)&&isFinite(i)?e.push(i-n):isNaN(n)||isNaN(i)||n===i?e.push(NaN):isFinite(n)?isFinite(i)||e.push(i):n===-1/0?e.push(1/0):e.push(-1/0)}function mj(t){var e=t.stack,n=e.pop();n="\n"===n?NaN:vk(t.context,n);var i=e.pop();i="\n"===i?NaN:vk(t.context,i),t.isSwfVersion7||(null!=n&&void 0!==n||(n=0),null!=i&&void 0!==i||(i=0)),isFinite(n)&&isFinite(i)?e.push(n*i):isNaN(n)||isNaN(i)?e.push(NaN):n===i?e.push(1/0):isFinite(n)||isFinite(i)?isFinite(n)?isFinite(i)||(0==n?e.push(NaN):i>=0?n>=0?e.push(1/0):e.push(-1/0):n>=0?e.push(-1/0):e.push(1/0)):0==i?e.push(NaN):n>=0?i>=0?e.push(1/0):e.push(-1/0):i>=0?e.push(-1/0):e.push(1/0):e.push(-1/0)}function yj(t){var e=t.stack,n=e.pop(),i=e.pop(),r=typeof(n=Number.isNaN(+n)?n:+n),o=typeof(i=Number.isNaN(+i)?i:+i);t.isSwfVersion7||(null!==n&&"undefined"!==r||(n=0,r="number"),null!==i&&"undefined"!==o||(i=0,o="number")),"object"===r||"object"===o||"string"===r||"string"===o||"undefined"===r||"undefined"===o||isNaN(n)||isNaN(i)?e.push(NaN):(n="boolean"===r?+n:vk(t.context,n),i="boolean"===o?+i:vk(t.context,i),!isFinite(n)||!isFinite(i)||0==n&&0==i?0==n&&0==i||!isFinite(n)&&!isFinite(i)?e.push(NaN):0==n?e.push(i):0==i?e.push(0):isFinite(i)?isFinite(n)||(isNaN(n)?e.push(n):e.push(0)):i>=0?n>=0?e.push(1/0):e.push(-1/0):n>=0?e.push(-1/0):e.push(1/0):0==n?e.push(i>0?1/0:-1/0):e.push(i/n))}function Aj(t){var e=t.stack,n=t.isSwfVersion5,i=vk(t.context,e.pop()),r=vk(t.context,e.pop()),o=Math.abs(i),a=Math.abs(r),s=1e-6*(o>a?o:a),u=Math.abs(i-r)<=s;e.push(n?u:u?1:0)}function vj(t){var e=t.stack,n=t.isSwfVersion5,i=vk(t.context,e.pop()),r=vk(t.context,e.pop())<i;e.push(n?r:r?1:0)}function bj(t){var e=t.stack,n=t.isSwfVersion5,i=Ak(t.context,e.pop()),r=Ak(t.context,e.pop()),o=i&&r;e.push(n?o:o?1:0)}function Cj(t){var e=t.stack,n=t.isSwfVersion5,i=Ak(t.context,e.pop()),r=Ak(t.context,e.pop()),o=i||r;e.push(n?o:o?1:0)}function xj(t){var e=t.context,n=t.stack,i=!Ak(e,n.pop());n.push(function(t,e){return t.swfVersion>=5?!!e:+e}(e,i))}function Ij(t){var e=t.stack,n=t.isSwfVersion5,i=xk(t.context,e.pop())==xk(t.context,e.pop());e.push(n?i:i?1:0)}function Ej(t){var e=t.stack,n=xk(t.context,e.pop());e.push(t.actions.length_(n))}function wj(t){var e=t.stack,n=xk(t.context,e.pop());e.push(t.actions.length_(n))}function Sj(t){var e=t.stack,n=xk(t.context,e.pop()),i=xk(t.context,e.pop());e.push(i+n)}function Dj(t){var e=t.stack,n=e.pop(),i=e.pop(),r=xk(t.context,e.pop());e.push(t.actions.substring(r,i,n))}function Tj(t){var e=t.stack,n=e.pop(),i=e.pop(),r=xk(t.context,e.pop());e.push(t.actions.mbsubstring(r,i,n))}function Pj(t){var e=t.stack,n=t.isSwfVersion5,i=xk(t.context,e.pop()),r=xk(t.context,e.pop())<i;e.push(n?r:r?1:0)}function Oj(t){var e=t.stack,n=Ck(t.context,e.pop());e.push(n)}function Mj(t){var e=t.stack,n=e.pop(),i=t.actions.ord(n);e.push(i)}function Bj(t){var e=t.stack,n=e.pop(),i=t.actions.mbord(n);e.push(i)}function Nj(t){var e=t.stack,n=+e.pop(),i=t.actions.chr(n);e.push(i)}function Lj(t){var e=t.stack,n=+e.pop(),i=t.actions.mbchr(n);e.push(i)}function Rj(t,e){}function Fj(t,e){return!!t.stack.pop()}function kj(t){var e=t.stack.pop();t.actions.call(e)}function Uj(t){var e=t.stack,n=e.pop();n&&(n=xk(t.context,n));var i=e.length;e.push(void 0);var r=$U(t,"__get__"+n,33);if(r&&r.value){var o=nV(t,r.scope,r.propertyName,[]),a=o.result;if(o.called)return void(e[i]=a)}var s=$U(t,n,33);xd(s)?"TRUE"==n?e[i]=!0:"FALSE"==n?e[i]=!1:n&&0==n.indexOf("this.")?(s=$U(t,n=n.replace("this.",""),33),e[i]=s?s.value:void 0):MR.value&&mU("AVM1 warning: cannot look up variable '"+n+"'"):e[i]=s?s.value:void 0}function jj(t){var e=t.stack,n=e.pop(),i=""+e.pop(),r=$U(t,"__set__"+i,33);if(r&&r.value&&nV(t,r.scope,r.propertyName,[n]).called)return;var o=$U(t,i,2);o?(o.scope.alPut(o.propertyName,n),NU(t.context,o.propertyName,o.scope)):MR.value&&mU("AVM1 warning: cannot look up variable '"+i+"'")}function Vj(t,e){var n,i=t.stack,r=e[0],o=i.pop(),a=i.pop();1&r?n="GET":2&r&&(n="POST");var s=64&r;128&r?t.actions.loadVariables(a,o,n):s?t.actions.loadMovie(a,o,n):t.actions.getURL(a,o,n)}function Qj(t,e){var n=t.stack,i=e[0],r=[n.pop()];2&i&&r.push(e[1]),(1&i?t.actions.gotoAndPlay:t.actions.gotoAndStop).apply(t.actions,r)}function Gj(t){var e=t.stack;YU(t,xk(t.context,e.pop()))}function zj(t){var e=t.stack,n=e.pop(),i=e.pop(),r=e.length;e.push(void 0);var o=tj(t,i,!0),a=cR[n];o&&a&&(e[r]=o.alGet(a))}function Hj(t){var e=t.stack,n=e.pop(),i=e.pop(),r=tj(t,e.pop(),!0),o=cR[i];r&&o&&r.alPut(o,n)}function Xj(t){var e=t.stack,n=e.pop(),i=e.pop(),r=e.pop();t.actions.duplicateMovieClip(r,i,n)}function Yj(t){var e=t.stack.pop();t.actions.removeMovieClip(e)}function qj(t){var e=t.stack,n=t.actions.startDrag,i=e.pop(),r=e.pop();if(!!e.pop()){var o=e.pop(),a=e.pop(),s=e.pop(),u=e.pop();n.call(t.actions,i,r,u,s,a,o)}else n.call(t.actions,i,r)}function Kj(t){t.actions.stopDrag()}function Wj(t,e){var n=t.stack.pop();return!t.actions.ifFrameLoaded(n)}function Jj(t){var e=t.stack.pop();t.actions.trace(e)}function $j(t){t.stack.push(t.actions.getTimer())}function Zj(t){var e=t.stack;e.push(t.actions.random(e.pop()))}function tV(t){var e=t.stack,n=e.pop();Nk(t.context,n)&&(n=n.value.join("."));var i=XU(e),r=e.length;e.push(void 0);var o=$U(t,n,33);if(xd(o))mU("AVM1 warning: cannot look up function '"+n+"'");else{var a=o.value;Ok(a)?("array"==n.toLowerCase()&&(i=[i]),e[r]=a.alCall(o.scope||null,i)):mU("AVM1 warning: function '"+n+(a?"' is not callable":"' is undefined"))}}function eV(t){var e=t.stack,n=e.pop(),i=e.pop(),r=XU(e),o=e.length;e.push(void 0);var a=nV(t,i,n,r);a.called&&(e[o]=a.result)}function nV(t,e,n,i){if(xd(e))return mU("AVM1 warning: method '"+n+"' can't be called on undefined object"),{called:!1,result:void 0};var r,o,a,s,u=t.context.frame,l=!1;if(xd(n)||""===n){if(e instanceof jU){var c=e.callFrame;(r=kU(t.context,c,"__constructor__"))&&(o=r.alGet("__constructor__"),a=c.currentThis)}else o=e,a=e;return Ok(o)?(u.setCallee(a,r,o,i),s=o.alCall(a,i),l=!0,u.resetCallee()):mU("AVM1 warning: obj '"+e+(e?"' is not callable":"' is undefined")),{result:s,called:l}}if(e instanceof jU){c=e.callFrame;(r=kU(t.context,c,n))&&(o=r.alGet(n),a=c.currentThis)}else o=OU(t.context,e,n),a=Ik(t.context,e);return Ok(o)?(u.setCallee(a,r,o,i),"toString"==n&&"number"==typeof e?1==i.length&&16==i[0]?s=e.toString(16):(s=xk(t.context,e),l=!0):(s=o.alCall(a,i),l=!0),u.resetCallee(),{result:s,called:l}):("function"==typeof o?(s=o(i),l=!0):mU("AVM1 warning: method '"+n+"' on object",e,xd(o)?"is undefined":"is not callable"),{result:s,called:l})}function iV(t,e){var n=e[0];t.constantPool=n}function rV(t,e){var n=t.stack,i=e[0],r=e[1],o=qU(t,i,r,e[2],4,null,0);if(r){var a=t.scopeList.scope;a.alPut(r,o),NU(t.context,r,a)}else n.push(o)}function oV(t){var e=t.stack,n=t.scopeList.scope,i=e.pop(),r=e.pop();n.alPut(r,i)}function aV(t){var e=t.stack,n=t.scopeList.scope,i=e.pop();n.alHasProperty(i)||n.alPut(i,void 0)}function sV(t){var e=t.stack,n=e.pop(),i=e.pop();xd(i)?mU("AVM1 warning: cannot delete member '"+n+"' on undefined object"):e.push(BU(t.context,i,n))}function uV(t){var e=t.stack,n=e.pop(),i=$U(t,n,1);if(xd(i))mU("AVM1 warning: cannot look up variable '"+n+"'");else{var r=i.scope.alGetProperty(n);r&&r.value&&r.value.adaptee||e.push(BU(t.context,i.scope,n))}}function lV(t){var e=t.stack,n=e.pop();e.push(null);var i=$U(t,n,33);if(xd(i))mU("AVM1 warning: cannot look up variable '"+n+"'");else{var r=i.value;xd(r)?mU("AVM1 warning: cannot iterate over undefined object"):FU(r,(function(t){e.push(t)}),null)}}function cV(t){var e=t.stack,n=e.pop(),i=e.pop();e.push(TU(t.context,n,i))}function hV(t,e){for(var n=t.stack,i=e?e[1]:n.pop(),r=e?e[0]:n.pop(),o=e?e.length-1:1,a=void 0,s=0;s<o;){if(null==r)return mU("AVM1 warning: cannot get member '"+i+"' on undefined object"),n[n.length]=void 0;if(r instanceof jU){var u=r.callFrame,l=kU(t.context,u,i);l&&(a=l.alGet(i))}else a=OU(t.context,r,i);if(s===o-1)return n[n.length]=a;r=a,i=e[s+2],s++}return n[n.length]=a}function pV(t){var e=t.stack,n=new ik(t.context,XU(e));e.push(n)}function dV(t){var e=t.stack,n=+e.pop();n=HU(n,e.length>>1);for(var i=Ek(t.context),r=0;r<n;r++){var o=e.pop(),a=e.pop();i.alPut(a,o)}e.push(i)}function fV(t){var e=t.stack,n=e.pop(),i=e.pop(),r=XU(e),o=e.length;if(e.push(void 0),xd(i))mU("AVM1 warning: method '"+n+"' can't be constructed on undefined object");else{var a=RU(xd(n)||""===n?i:OU(t.context,i,n),r);void 0===a&&mU("AVM1 warning: method '"+n+"' on object",i,"is not constructible"),e[o]=a}}function gV(t){var e=t.stack,n=e.pop(),i=XU(e),r=e.length;e.push(void 0);var o=$U(t,n,33);if(xd(o))mU("AVM1 warning: cannot look up object '"+n+"'");else{var a=o.value,s=function(t,e,n){var i=t.builtins,r=void 0;if(e!==i.Array&&e!==i.Object&&e!==i.Date&&e!==i.String&&e!==i.Function||(r=e.alConstruct(n)),e!==i.Boolean&&e!==i.Number||(r=e.alConstruct(n).value),r instanceof jL){var o=new UL(65,e);r.alSetOwnProperty("__constructor__",o)}return r}(t.context,a,i);void 0===s&&void 0===(s=RU(a,i))&&mU("AVM1 warning: object '"+n+(a?"' is not constructible":"' is undefined")),e[r]=s}}function _V(t,e){var n=t.stack,i=e?e[2]:n.pop(),r=e?e[1]:n.pop(),o=e?e[0]:n.pop();xd(o)?mU("AVM1 warning: cannot set member '"+r+"' on undefined object"):o instanceof jU?mU("AVM1 warning: cannot set member '"+r+"' on super"):void 0!==r&&MU(t.context,o,r,i)}function mV(t){var e=t.stack,n=e.pop();e.push(function(t){return"object"==typeof t&&t&&t instanceof $R}(n)?n._target:void 0)}function yV(t,e){var n=t.stack,i=e[0];!function(t,e,n){if(xd(e))mU("The with statement object cannot be undefined.");else{var i=t.context,r=t.scopeList,o=new bU(Ik(i,e),r);JV(t.pushScope(o),n)}}(t,n.pop(),i)}function AV(t){var e=t.stack;e.push(vk(t.context,e.pop()))}function vV(t){var e=t.stack;e.push(xk(t.context,e.pop()))}function bV(t){var e=t.stack,n=function(t){if(null===t)return"null";if("object"==typeof t){if(t instanceof $R)return"movieclip";if(t instanceof VL)return"function"}return typeof t}(e.pop());e.push(n)}function CV(t,e,n){var i=t.stack;arguments.length>1?(n=yk(t.context,n),e=yk(t.context,e)):(n=yk(t.context,i.pop()),e=yk(t.context,i.pop()));var r=typeof e,o=typeof n,a="string"===r,s="string"===o;return a&&s?i[i.length]=e+n:a||s?i[i.length]=(a?e:xk(t.context,e))+(s?n:xk(t.context,n)):(t.isSwfVersion7||(null!==e&&"undefined"!==r||(e=0),null!==n&&"undefined"!==o||(n=0)),null==n||null==e?i.push(NaN):isFinite(e)&&isFinite(n)?i.push(e+n):e===-1/0&&n===-1/0?i.push(-1/0):isNaN(e)||isNaN(n)?i.push(NaN):e===n?i.push(1/0):isFinite(e)||isFinite(n)?isFinite(e)?isFinite(n)||i.push(n):i.push(e):i.push(NaN),i[i.length-1])}function xV(t){var e=t.stack,n=e.pop(),i=e.pop();e.push(DU(t.context,i,n))}function IV(t){var e=t.stack,n=e.pop(),i=e.pop();t.isSwfVersion7||(void 0===n&&(n=0),void 0===i&&(i=0)),n=vk(t.context,n),i=vk(t.context,i),!isFinite(n)||!isFinite(i)||0==n&&0==i?isNaN(n)||isNaN(i)||!isFinite(n)&&!isFinite(i)||isFinite(n)?e.push(NaN):e.push(i):e.push(i%n)}function EV(t){var e=t.stack,n=Ck(t.context,e.pop()),i=Ck(t.context,e.pop());e.push(i&n)}function wV(t){var e=t.stack,n=Ck(t.context,e.pop()),i=Ck(t.context,e.pop());e.push(i<<n)}function SV(t){var e=t.stack,n=Ck(t.context,e.pop()),i=Ck(t.context,e.pop());e.push(i|n)}function DV(t){var e=t.stack,n=Ck(t.context,e.pop()),i=Ck(t.context,e.pop());e.push(i>>n)}function TV(t){var e=t.stack,n=Ck(t.context,e.pop()),i=Ck(t.context,e.pop());e.push(i>>>n)}function PV(t){var e=t.stack,n=Ck(t.context,e.pop()),i=Ck(t.context,e.pop());e.push(i^n)}function OV(t){var e=t.stack,n=vk(t.context,e.pop());n--,e.push(n)}function MV(t){var e=t.stack,n=vk(t.context,e.pop());n++,e.push(n)}function BV(t){var e=t.stack;e.push(e[e.length-1])}function NV(t){t.isEndOfActions=!0}function LV(t){var e=t.stack;e.push(e.pop(),e.pop())}function RV(t,e){var n=t.stack,i=t.registers,r=e[0];r<0||r>=i.length||(i[r]=n[n.length-1])}function FV(t){var e=t.stack,n=e.pop(),i=e.pop();e.push(PU(i,n))}function kV(t){var e=t.stack,n=e.pop();e.push(null),xd(n)?mU("AVM1 warning: cannot iterate over undefined object"):FU(n,(function(t){e.push(t)}),null)}function UV(t){var e=t.stack,n=e.pop(),i=e.pop();e.push(i===n)}function jV(t,e){var n=t.stack,i=e?e[1]:n.pop(),r=e?e[0]:n.pop();return n[n.length]=DU(t.context,i,r)}function VV(t){var e=t.stack,n=t.isSwfVersion5,i=xk(t.context,e.pop()),r=xk(t.context,e.pop())>i;e.push(n?r:r?1:0)}function QV(t,e){var n=t.stack,i=t.scopeList.scope,r=e[0],o=e[1],a=qU(t,r,o,e[2],e[3],e[4],e[5]);o?(i.alPut(o,a),NU(t.context,o,i)):n.push(a)}function GV(t){var e=t.stack,n=t.context,i=Ik(n,e.pop()),r=Ik(n,e.pop()).alGetPrototypeProperty(),o=i.alGetPrototypeProperty();r.alPrototype=o;var a=new UL(65,i);r.alSetOwnProperty("__constructor__",a)}function zV(t){var e=t.stack,n=e.pop(),i=e.pop();e.push(PU(n,i)?n:null)}function HV(t){var e=t.stack,n=e.pop(),i=+e.pop();HU(i,e.length);for(var r=[],o=0;o<i;o++)r.push(e.pop());n._as2Interfaces=r}function XV(t,e){e[0];var n=e[1],i=e[2],r=e[3],o=e[4];!function(t,e,n,i,r,o,a,s){var u,l=t.context,c=t.scopeList,h=t.registers,p=l.isTryCatchListening;try{l.isTryCatchListening=!0,JV(t.pushScope(),o)}catch(e){l.isTryCatchListening=p,i&&e instanceof wU?("string"==typeof r?c.scope.alPut(r,e.error):h[r]=e.error,JV(t.pushScope(),a)):u=e}if(l.isTryCatchListening=p,n&&JV(t.pushScope(),s),u)throw u}(t,0,e[5],r,n,i,o,e[6])}function YV(t){var e=t.stack.pop();throw new wU(e)}function qV(t){var e=t.stack,n=XU(e),i=e.length;e.push(void 0);var r=t.actions.fscommand.apply(t.actions,n);e[i]=r}function KV(t,e){}function WV(t,e){var n,i;try{i=function(t,e){t.stack;var n=e.actionCode,i=e.args;t.context.actionTracer;var r=!1;switch(0|n){case 129:nj(t,i);break;case 131:ij(t,i);break;case 4:rj(t);break;case 5:oj(t);break;case 6:aj(t);break;case 7:sj(t);break;case 8:uj(t);break;case 9:lj(t);break;case 138:r=cj(t,i);break;case 139:hj(t,i);break;case 140:pj(t,i);break;case 150:dj(t,i);break;case 23:fj(t);break;case 10:gj(t);break;case 11:_j(t);break;case 12:mj(t);break;case 13:yj(t);break;case 14:Aj(t);break;case 15:vj(t);break;case 16:bj(t);break;case 17:Cj(t);break;case 18:xj(t);break;case 19:Ij(t);break;case 20:Ej(t);break;case 49:wj(t);break;case 33:Sj(t);break;case 21:Dj(t);break;case 53:Tj(t);break;case 41:Pj(t);break;case 24:Oj(t);break;case 50:Mj(t);break;case 54:Bj(t);break;case 51:Nj(t);break;case 55:Lj(t);break;case 153:case 137:break;case 157:r=Fj(t);break;case 158:kj(t);break;case 28:Uj(t);break;case 29:jj(t);break;case 154:Vj(t,i);break;case 159:Qj(t,i);break;case 32:Gj(t);break;case 34:zj(t);break;case 35:Hj(t);break;case 36:Xj(t);break;case 37:Yj(t);break;case 39:qj(t);break;case 40:Kj(t);break;case 141:r=Wj(t);break;case 38:Jj(t);break;case 52:$j(t);break;case 48:Zj(t);break;case 61:tV(t);break;case 82:eV(t);break;case 136:iV(t,i);break;case 155:rV(t,i);break;case 60:oV(t);break;case 65:aV(t);break;case 58:sV(t);break;case 59:uV(t);break;case 70:lV(t);break;case 73:cV(t);break;case 78:hV(t);break;case 66:pV(t);break;case 67:dV(t);break;case 83:fV(t);break;case 64:gV(t);break;case 79:_V(t);break;case 69:mV(t);break;case 148:yV(t,i);break;case 74:AV(t);break;case 75:vV(t);break;case 68:bV(t);break;case 71:CV(t);break;case 72:xV(t);break;case 63:IV(t);break;case 96:EV(t);break;case 99:wV(t);break;case 97:SV(t);break;case 100:DV(t);break;case 101:TV(t);break;case 98:PV(t);break;case 81:OV(t);break;case 80:MV(t);break;case 76:BV(t);break;case 62:NV(t);break;case 77:LV(t);break;case 135:RV(t,i);break;case 84:FV(t);break;case 85:kV(t);break;case 102:UV(t);break;case 103:jV(t);break;case 104:VV(t);break;case 142:QV(t,i);break;case 105:GV(t);break;case 43:zV(t);break;case 44:HV(t);break;case 143:XV(t,i);break;case 42:YV(t);break;case 45:qV(t);break;case 0:t.isEndOfActions=!0;break;default:throw new Error("Unknown action code: "+n)}return r}(t,e),t.recoveringFromError=!1}catch(e){n=t.context;var r=LU(e);if(OR.value&&!n.isTryCatchListening||r instanceof SU)throw r;if(r instanceof wU)throw r;if(Vg.instance.reportTelemetry({topic:"error",error:1}),!t.recoveringFromError){if(n.errorsIgnored++>=vU)throw new SU("long running script -- AVM1 errors limit is reached");console.error("AVM1 error: "+e),t.recoveringFromError=!0}}return i}function JV(t,e){e.ir||e.compiled||function(t,e){var n,i=t.context,r=new lU(e,i.swfVersion),o=new rU;o.registersLimit=t.registers.length,o.parentResults=e.parent&&e.parent.ir;var a=o.analyze(r);e.ir=a,NR.value&&(n=(new _U).generate(a,e.debugPath),e.compiled=n)}(t,e);var n=t.context,i=t.scopeList.scope.adaptee;i&&i._deferScriptExecution&&(n.deferScriptExecution=!0),i&&($R.currentMCAssetNameSpace=i.assetNamespace);var r=e.compiled;if(r)return r(t);for(var o=0,a=n.abortExecutionAt,s=e.ir,u=0,l=s.actions[u];l&&!t.isEndOfActions;){if(o++%AU==0&&Date.now()>=a)throw new SU("long running script -- AVM1 instruction hang timeout");u=WV(t,l.action)?l.conditionalJumpTo:l.next,l=s.actions[u]}return t.stack.pop()}var $V=function(){function t(){this._indentation=0,this._indentStringCache=[]}return t.prototype._getIndentString=function(){return this._indentStringCache[this._indentation]||(this._indentStringCache[this._indentation]=new Array(this._indentation+1).join(".."))},t.prototype.print=function(t,e){for(var n=t.position,i=t.actionCode,r=t.actionName,o=[],a=0;a<e.length;a++){var s=e[a];if(s&&"object"==typeof s){var u=s.alGetConstructorProperty();o.push("["+(u?u.name:"Object")+"]")}else o.push(s)}console.log("AVM1 trace: "+this._getIndentString()+n+": "+r+"("+i.toString(16)+"), stack="+o)},t.prototype.indent=function(){this._indentation++},t.prototype.unindent=function(){this._indentation--},t.prototype.message=function(t){console.log("AVM1 trace: ------- "+t)},t}(),ZV=function(){function t(){}return t.CDATA_NODE=100,t.COMMENT_NODE=101,t.DOCUMENT_TYPE_NODE=102,t.ELEMENT_NODE=1,t.PROCESSING_INSTRUCTION_NODE=103,t.TEXT_NODE=3,t.XML_DECLARATION=104,t}(),tQ=function(t){function e(e){return t.call(this,ZV.DOCUMENT_TYPE_NODE,"null")||this}return FL(e,t),e.prototype.axCallPublicProperty=function(t,e){return null},e.prototype.axGetPublicProperty=function(t){return null},e.prototype.axSetPublicProperty=function(t,e){return null},e.prototype.createElement=function(t){return console.log("createElement not implemented yet in flash/XMLDocument"),null},e.prototype.createTextNode=function(t){return console.log("createTextNode not implemented yet in flash/XMLDocument"),null},e.prototype.parseXML=function(t){console.log("parseXML not implemented yet in flash/XMLDocument")},e.prototype.toString=function(){return console.log("toString not implemented yet in flash/XMLDocument"),""},e}(CF),eQ=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return FL(e,t),e.prototype._getLevelForRoot=function(t){return 0},e.prototype._getRootForLevel=function(t){return null},e.prototype._addRoot=function(t,e){},e.prototype._removeRoot=function(t){},e}(dl),nQ=function(){},iQ=function(){},rQ=function(){},oQ=function(){},aQ=function(){},sQ=function(){},uQ=function(){},lQ=function(){},cQ=function(){},hQ=function(){},pQ=function(){this.flash={display:{AVM1Movie:eQ,Stage:uR},events:{Event:Event,KeyboardEvent:KeyboardEvent,MouseEvent:MouseEvent,ProgressEvent:ProgressEvent},external:{ExternalInterface:sQ},filters:{},system:{Capabilities:aQ,Security:oQ,fscommand:rQ},ui:{ContextMenu:nQ,ContextMenuItem:iQ,Mouse:uQ},media:{SoundChannel:lQ,SoundTransform:cQ,SoundMixer:hQ},xml:{XMLDocument:tQ}},this.player={}},dQ=function(){function t(){this.avmVersion=r.AVM1,this.enterEvent=new p("enterFrame"),this.exitEvent=new p("exitFrame"),this.avm1Listener={},this._collectedDispatcher=[]}return Object.defineProperty(t.prototype,"factory",{get:function(){if(!this._factory)throw"AVM1Handler - no factory set";return this._factory},enumerable:!1,configurable:!0}),t.prototype.init=function(t,e,n){var i=this;if(Nl.useAVM1=!0,this._avmStage)n(!1);else{this._avmStage=t,this._avmStage.mouseManager.eventBubbling=!1,this._factory=new tU(new EU(e.swfVersion)),this._factory.avm1Context.sec=new pQ,this._factory.avm1Context.setStage(this._avmStage,this,document),this._factory.avm1Context.swfVersion=e.swfVersion,this._avmStage.scaleMode=_f.SHOW_ALL,this._avmStage.align=mf.TOP,VF.tracelevel=jF.ALL,VF._scenegraphFactory=this._factory,mt.enableParser(Lg),this._factory.avm1Context.globals.SWF_BASE_URL=e.url.substring(0,e.url.lastIndexOf("/")+1),this.clearAllAVM1Listener();var r=this._avmStage.view.stage;r.addEventListener(Ll.MOUSE_DOWN,(function(t){return i.onMouseEvent(t)})),r.addEventListener(Ll.MOUSE_UP,(function(t){return i.onMouseEvent(t)})),r.addEventListener(Ll.MOUSE_MOVE,(function(t){return i.onMouseEvent(t)})),r.addEventListener(pp.KEYDOWN,(function(t){return i.onKeyEvent(t)})),r.addEventListener(pp.KEYUP,(function(t){return i.onKeyEvent(t)})),this._avmStage.avmTestHandler&&(this._factory.avm1Context.actions.originalTrace=this._factory.avm1Context.actions.trace,this._factory.avm1Context.actions.trace=function(t){i._factory.avm1Context.actions.originalTrace(t),i._avmStage.avmTestHandler.addMessage(t)}),n(!0)}},t.prototype.collectMCs=function(t,e,n){for(var i,r=t.numChildren;r>0;)r--,(i=t.getChildAt(r)).isAsset(Rl)&&this.collectMCs(i,e,n);t.hasEventListener(n.type)&&e.push(t)},t.prototype.enterFrame=function(t){Nl.execute_queue(),this._avmStage.root.advanceFrame();var e=[];this.collectMCs(this._avmStage.root,e,this.enterEvent);for(var n=0;n<e.length;n++)e[n].dispatchEvent(this.enterEvent);FR.CompleteEventRegistering(),Nl.execute_queue(),Nl.execute_intervals(t),Nl.execute_queue();var i=[];this.collectMCs(this._avmStage.root,i,this.exitEvent);for(n=0;n<i.length;n++)i[n].dispatchEvent(this.exitEvent);Nl.execute_queue()},t.prototype.onKeyEvent=function(t){if(this.avm1Listener[t.type]){this._collectedDispatcher.length=0;var e,n=0;for(n=0;n<this._avmStage.root.numChildren;n++)(e=this._avmStage.root.getChildAt(n)).isAsset(Rl)&&this.collectMousEvents(e);for(n=0;n<this._collectedDispatcher.length;n++)if(this.avm1Listener[t.type]&&this.avm1Listener[t.type][this._collectedDispatcher[n].id])for(var i=this.avm1Listener[t.type][this._collectedDispatcher[n].id],r=0;r<i.length;r++)"number"==typeof i[r].keyCode&&i[r].keyCode!=t.keyCode||i[r].callback();Nl.execute_queue()}},t.prototype.addAVM1EventListener=function(t,e,n,i){this.avm1Listener[e]||(this.avm1Listener[e]={}),this.avm1Listener[e][t.id]||(this.avm1Listener[e][t.id]=[]);var r=this.avm1Listener[e][t.id];r.push({type:e,callback:n}),i&&"number"==typeof i.keyCode&&(r[r.length-1].keyCode=i.keyCode)},t.prototype.removeAVM1EventListener=function(t,e,n){this.avm1Listener[e]&&delete this.avm1Listener[e][t.id]},t.prototype.clearAllAVM1Listener=function(){this.avm1Listener={}},t.prototype.collectMousEvents=function(t){for(var e,n=t.numChildren;n>0;)n--,e=t.getChildAt(n),this.collectMousEvents(e);t.isAsset(Rl)&&(this._collectedDispatcher[this._collectedDispatcher.length]=t)},t.prototype.onMouseEvent=function(t){if(this.avm1Listener[t.type]){this._collectedDispatcher.length=0;var e,n,i=0,r=this._avmStage.root.numChildren;for(i=0;i<r;i++)(e=this._avmStage.root.getChildAt(i)).isAsset(Rl)&&this.collectMousEvents(e);for(r=this._collectedDispatcher.length,i=0;i<r;i++){var o=this.avm1Listener[t.type];if(o&&o[this._collectedDispatcher[i].id]){n=o[this._collectedDispatcher[i].id].length;for(var a=0;a<n;a++){var s=o[this._collectedDispatcher[i].id];s&&s[a]&&s[a].callback()}}}Nl.execute_queue()}},t.prototype.dispose=function(){},t.prototype.resizeStage=function(){},t.prototype.addAsset=function(t,e){if(t.isAsset(Rl)&&e&&t.isAVMScene){var n=Hk(t.clone(),this._factory.avm1Context);this._factory.avm1Context.globals._addRoot(0,n.adaptee)}},t}();function fQ(t){var e=Object.assign({},t);return Object.keys(e).forEach((function(t){"object"==typeof e[t]?e[t]=fQ(e[t]):"function"==typeof e[t]&&(e[t]=e[t].toString())})),e}console.debug("AwayFL - 0.2.164");var gQ=["id","visible","index","assetType:type","name"],_Q=function(){function t(t){this.player=t,this._rafState="play",this._defaultRaf=self.requestAnimationFrame,this._requestedCallbacks=[],Hd(this._dirObjectByIds.bind(this),{name:"dirObjectByIds",description:"Export selected object to console",declaration:[{name:"ids",type:"object"}]}),Hd(this._applyPropsByIds.bind(this),{name:"applyPropsByIds",description:"Apply propertyes by node ids",declaration:[{name:"ids",type:"object"},{name:"object",type:"object"}]}),Hd(this._removeObjectByIds.bind(this),{name:"removeObjectByIds",description:"Remove object from sceen tree",declaration:[{name:"ids",type:"object"}]}),Hd(this._getInfo.bind(this),{name:"getInfo",description:"Get file info for app",declaration:[{name:"return",type:"object"}]}),Hd(this._getSceneTree.bind(this),{name:"getNodeTree",description:"Get sceen tree of app",declaration:[{name:"return",type:"object"},{name:"flat",type:"boolean"},{name:"from",type:"number"},{name:"rect",type:"object"}]}),Hd(this._getStageCanvas.bind(this),{name:"getStageCanvas",description:"Get canvas attahed to stage",declaration:[]}),Hd(this._setRAFState.bind(this),{name:"setRAFState",description:"Changed RAF state",declaration:[{name:"return",type:"string"},{name:"state",type:"string"}]}),Hd(this._getRAFState.bind(this),{name:"getRAFState",description:"Changed RAF state",declaration:[{name:"return",type:"string"},{name:"state",type:"string"}]}),this._mokedRaf=this._mokedRaf.bind(this),window._AWAY_DEBUG_PLAYER_=this}return t.prototype.onAvmInit=function(t){window._AWAY_DEBUG_STORAGE=1===t?vF:$B},t.prototype._mokedRaf=function(t){if(-1===this._requestedCallbacks.indexOf(t))return this._requestedCallbacks.push(t),0},t.prototype._setRAFState=function(t){if(!t)return this._rafState;if(t!==this._rafState){if("next"===t&&"stop"===this._rafState){var e=performance.now(),n=this._requestedCallbacks.slice();return this._rafState="next",this._requestedCallbacks.length=0,n.forEach((function(t){return t&&t(e)})),this._rafState="stop"}if("stop"===t)return this._requestedCallbacks.length=0,self.requestAnimationFrame=this._mokedRaf,this._rafState="stop";if("play"===t){var i=performance.now();n=this._requestedCallbacks.slice();this._rafState="play",this._requestedCallbacks.length=0,self.requestAnimationFrame=this._defaultRaf,n.forEach((function(t){return t&&t(i)}))}return this._rafState}},t.prototype._getRAFState=function(){return this._rafState},t.prototype._selectNode=function(t){for(var e=this.player.root,n=function(t){if(!(e=e._children.find((function(e){return e.id===t}))))return"break"},i=0,r=t;i<r.length;i++){if("break"===n(r[i]))break}if(!e)throw new Error("Node not found");return e},t.prototype._getStageCanvas=function(){return this.player.view.stage.container},t.prototype._dirObjectByIds=function(t){var e=this._selectNode(t),n=window._lastTempNode=window._lastTempNode||1;window._lastTempNode++,window["tempNode"+n]=e,console.log("tempNode"+n,"="),console.dir(e)},t.prototype._getNodeBounds=function(t){var e,n=this.player.view,i=jg.instance&&jg.instance().pool;if(i){var r=i.getNode(t).partition;e=kr.getInstance().getBoundsPicker(r).getBoxBounds(i.getNode(this.player.root),!0,!0)}else e=kr.getInstance().getBoundsPicker(t.partition).getBoxBounds(this.player.root);if(!e)return null;var o=n.width/this.player.stageWidth,a=n.height/this.player.stageHeight;return{x:e.x*o,y:e.y*a,width:e.width*o,height:e.height*a}},t.prototype._traverse=function(t,e,n,i){void 0===e&&(e=!1),void 0===n&&(n=!1),void 0===i&&(i=!1);for(var r={parentId:t.parent?t.parent.id:-1,children:null,rect:null},o=0,a=gQ;o<a.length;o++){var s=a[o],u=s.split(":");u.length>1?r[u[1]]=t[u[0]]:r[s]=t[s]}if(r.globalVisible=t.parent?t.parent.visible&&t.visible:t.visible,n&&(r.rect=this._getNodeBounds(t)),e){r.children=[];for(var l=0,c=t._children;l<c.length;l++){var h=c[l];(i&&h.visible||!i)&&r.children.push(this._traverse(h,e,n,i))}}return r},t.prototype._removeObjectByIds=function(t){var e=this._selectNode(t);e.parent.removeChild(e)},t.prototype._applyPropsByIds=function(t,e){var n=this._selectNode(t);Object.assign(n,e)},t.prototype._getSceneTree=function(t,e,n){"object"!=typeof t&&(t={flat:t||!1,from:e||0,rect:n||!1,visibleOnly:!1});var i=t.flat,r=void 0!==i&&i;t.from;for(var o=t.rect,a=void 0!==o&&o,s=t.visibleOnly,u=void 0!==s&&s,l=[],c=this.player.root._children.slice();;){var h=c.pop();if(!h)break;l.push(this._traverse(h,!r,a,u)),r&&c.push.apply(c,h._children.reverse().filter((function(t){return t.visible&&u||!u})))}return l},t.prototype._getInfo=function(){var t,e=this.player,n=e._avmHandler.avmVersion,i=e._swfFile,r=i.swfVersion,o=i.fpVersion,a=i.frameCount,s=i.frameRate,u=i.compression,l=i.bytesTotal,c=null===(t=e._gameConfig.binary.filter((function(t){return"GAME"===t.resourceType}))[0])||void 0===t?void 0:t.path;return c&&c.indexOf("?")>-1&&(c=c.substring(0,c.indexOf("?"))),{file:{name:e._gameConfig.title,path:c,size:l},runtime:{swfVersion:r,fpVersion:o,frameCount:a,frameRate:s,compression:u,avm:n},config:fQ(e._gameConfig)}},t}(),mQ=function(t){function e(e){var n=t.call(this,e)||this;return n.registerAVMStageHandler(new dQ),n.registerAVMStageHandler(new FO(new LL)),n.addEventListener(Jt.AVM_COMPLETE,(function(t){return n.onAVMAvailable(t)})),n._debug=new _Q(n),n}return i(e,t),e.prototype.onAVMAvailable=function(t){this._debug&&this._debug.onAvmInit(t.avmVersion===r.AVM1?1:2)},e}(jg),yQ=function(t){function e(e){var n=t.call(this,e)||this;return n.registerAVMStageHandler(new dQ),n}return i(e,t),e}(jg),AQ=function(t){function e(e){var n=t.call(this,e)||this;return n.registerAVMStageHandler(new FO(new LL)),n}return i(e,t),e}(jg);return console.debug("AwayFL-Player - 0.2.38"),t.AVM1Player=yQ,t.AVM2Player=AQ,t.AVM2Settings=s_,t.AVMPlayer=mQ,t.EventBase=p,t.LoaderEvent=H,t.PlayerGlobal=LL,t.StageManager=zi,Object.defineProperty(t,"__esModule",{value:!0}),t}({});
|
|
36
|
+
*/e.default=function(t){if(!t.addUnicodeData)throw new ReferenceError("Unicode Base must be loaded before Unicode Scripts");t.addUnicodeData(n.default)},t.exports=e.default})),yS=bp((function(t,e){ov(e,"__esModule",{value:!0}),e.default=void 0;var n=Om(Xw),i=Om(sS),r=Om(uS),o=Om(lS),a=Om(hS),s=Om(dS),u=Om(gS),l=Om(mS);(0,i.default)(n.default),(0,r.default)(n.default),(0,o.default)(n.default),(0,a.default)(n.default),(0,s.default)(n.default),(0,u.default)(n.default),(0,l.default)(n.default);var c=n.default;e.default=c,t.exports=e.default})),AS=vp(yS);!function(t){function e(e,n){var i,r,o;if(n=n||"",e=e.replace(/^\(\?([\w$]+)\)/,(function(t,e){return n+=e,""})),!(i=/^\(\?<([=!])/.exec(e)))throw new Error("lookbehind not at start of pattern");return r=t.matchRecursive(e,/\((?:[^()[\\]|\\.|\[(?:[^\\\]]|\\.)*])*/.source,"\\)","s",{valueNames:[null,null,null,"right"],escapeChar:"\\"})[0].end,o=e.slice(4,r-1),{lb:t("(?:"+o+")$(?!\\s)",n.replace(/[gy]/g,"")),lbType:"="===i[1],main:t(e.slice(("(?<=)"+o).length),n)}}t.execLb=function(n,i,r){for(var o,a,s=0,u=e(i,r);o=t.exec(n,u.main,s);){if(a=n.slice(0,o.index),u.lbType===u.lb.test(a))return o;s=o.index+1}return null},t.testLb=function(e,n,i){return!!t.execLb(e,n,i)},t.searchLb=function(e,n,i){var r=t.execLb(e,n,i);return r?r.index:-1},t.matchAllLb=function(n,i,r){for(var o,a,s=[],u=0,l=e(i,r);o=t.exec(n,l.main,u);)a=n.slice(0,o.index),l.lbType===l.lb.test(a)?(s.push(o[0]),u=o.index+(o[0].length||1)):u=o.index+1;return s},t.replaceLb=function(n,i,r,o){for(var a,s,u="",l=0,c=0,h=e(i,o);a=t.exec(n,h.main,l);)if(s=n.slice(0,a.index),h.lbType===h.lb.test(s)){if(u+=n.slice(c,a.index)+t.replace(a[0],h.main,r),c=a.index+a[0].length,!h.main.global)break;l=a.index+(a[0].length||1)}else l=a.index+1;return u+n.slice(c)}}(AS);var vS=AS,bS={},CS=function(){try{return new RegExp("(?<=)"),!0}catch(t){return!1}}(),xS=function(t){function e(e,n){var i,r=t.call(this)||this;if(r._flags="",r._useFallback=!1,r._dotall=!1,r._extended=!1,r._captureNames=[],void 0===e)e=i="";else if(r.sec.AXRegExp.axIsType(e))n&&r.sec.throwError("TypeError",w_.RegExpFlagsArgumentError),n=e._flags,i=e.source,e=e.value;else{if(i=(e=String(e)).replace(/(^|^[/]|(?:\\\\)+)\//g,"$1\\/"),n){var o=n;n="";for(var a=0;a<o.length;a++){var s=o[a];switch(s){case"s":r._dotall=!0;break;case"x":r._extended=!0;break;case"g":case"i":case"m":n+=s}}}r._flags=n||"",e=r._parse(i)}try{r.value=new RegExp(e,n)}catch(t){console.log("Unsupported RegExp pattern:"+e),r._useFallback=!0}return r._source=i,r}return L_(e,t),e.classInitializer=function(){var t=this.dPrototype,n=e.prototype;l_(t,"$BgtoString",n.ecmaToString),l_(t,"$Bgexec",n.exec),l_(t,"$Bgtest",n.test)},e.prototype._parse=function(t){if(t.includes("(?<=")||t.includes("(?<!")&&!this._extended){if(!CS){if(!s_.EMULATE_LOOKBEHIND)throw new Error("[ASRegExp] Pattern include a lookbehind, but your browser not usupport it:"+t);return bS.lookbehind||console.warn("[ASRegExp] Pattern include a lookbehind, we should use XRegExp polyfill for Safari.\n",t),bS.lookbehind=!0,this._useFallback=!0,t}return bS.lookbehind||console.warn("[ASRegExp] Pattern include a lookbehind, we will use a native .\n",t),bS.lookbehind=!0,t}for(var n="",i=this._captureNames,r=[],o=0,a=0;a<t.length;a++){var s=t[a];switch(s){case"(":if(n+=s,r.push(o>1?o-1:o),o=0,"?"===t[a+1])switch(t[a+2]){case":":case"=":case"!":n+="?"+t[a+2],a+=2;break;default:if(!/\(\?P<([\w$]+)>/.exec(t.substr(a)))return e.UNMATCHABLE_PATTERN;var u=RegExp.$1;"length"!==u&&i.push(u),i.indexOf(u),a+=RegExp.lastMatch.length-1}else i.push(null);if(i.length>406)return e.UNMATCHABLE_PATTERN;break;case")":if(!r.length)return e.UNMATCHABLE_PATTERN;n+=s,o=r.pop()+1;break;case"|":n+=s;break;case"\\":n+=s,/\\|c[A-Z]|x[0-9,a-z,A-Z]{2}|u[0-9,a-z,A-Z]{4}|./.exec(t.substr(a+1))&&(n+=RegExp.lastMatch,a+=RegExp.lastMatch.length),o<=1&&o++;break;case"[":if(!/\[[^\]]*\]/.exec(t.substr(a)))return e.UNMATCHABLE_PATTERN;n+=RegExp.lastMatch,a+=RegExp.lastMatch.length-1,o<=1&&o++;break;case"{":if(!/\{[^{]*?(?:,[^{]*?)?\}/.exec(t.substr(a)))return e.UNMATCHABLE_PATTERN;n+=RegExp.lastMatch,a+=RegExp.lastMatch.length-1;break;case".":this._dotall?n+="[\\s\\S]":n+=s,o<=1&&o++;break;case"?":case"*":case"+":if(!o)return e.UNMATCHABLE_PATTERN;n+=s,"?"===t[a+1]&&(a++,n+="?");break;case" ":if(this._extended)break;n+=s,o<=1&&o++;break;default:n+=s,o<=1&&o++}if(n.length>32767)return e.UNMATCHABLE_PATTERN}return r.length?e.UNMATCHABLE_PATTERN:n},e.prototype.ecmaToString=function(){var t="/"+this._source+"/";return this.value.global&&(t+="g"),this.value.ignoreCase&&(t+="i"),this.value.multiline&&(t+="m"),this._dotall&&(t+="s"),this._extended&&(t+="x"),t},e.prototype.axCall=function(t){return this.exec.apply(this,arguments)},e.prototype.axApply=function(t,e){return this.exec.apply(this,e)},Object.defineProperty(e.prototype,"source",{get:function(){return this._source},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"global",{get:function(){return this.value.global},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ignoreCase",{get:function(){return this.value.ignoreCase},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"multiline",{get:function(){return this.value.multiline},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastIndex",{get:function(){return this.value.lastIndex},set:function(t){this.value.lastIndex=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dotall",{get:function(){return this._dotall},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"extended",{get:function(){return this._extended},enumerable:!1,configurable:!0}),e.prototype.internalStringSearch=function(t){return this._useFallback?vS.searchLb(t,this._source,this._flags):t.search(this.value)},e.prototype.internalStringReplace=function(t,e){return this._useFallback?vS.replaceLb(t,this._source,e,this._flags):t.replace(this.value,e)},e.prototype.internalStringMatch=function(t){var e=this._flags.includes("g");if(!this._useFallback){var n=t.match(this.value);return n||(e?[]:null)}var i=vS.matchAllLb(t,this._source,this._flags);if(i.length>0){var r=[i[0]];return r.index=0,r.input=t,r}return e?[]:null},e.prototype.exec=function(t){var e;if(void 0===t&&(t=""),!(e=this._useFallback?vS.execLb(t,this._source,this._flags):this.value.exec(t)))return null;var n=fm(this.sec,e),i=this._captureNames;if(i){for(var r=0;r<i.length;r++){var o=i[r];if(null!==o){var a=e[r+1]||"";e[o]=a,n.axSetPublicProperty(o,a)}}return n}},e.prototype.test=function(t){return void 0===t&&(t=""),null!==this.exec(t)},e.UNMATCHABLE_PATTERN="^(?!)$",e}(B_);function IS(t,e,n){if("object"!=typeof e)return e;if(Ya(e))return e;if(Array.isArray(e)){for(var i=[],r=0;r<e.length;r++){var o=e[r],a=n?IS(t,o,!0):o;i.push(a)}return t.createArray(i)}return t.createObjectFromJS(e,n)}function ES(t,e,n,i,r){if(void 0===i&&(i=null),void 0===r&&(r=null),i&&(e=i(r,e)),"object"!=typeof e||Ya(e))return e;if(Ya(e))return e;if(t.AXArray.axIsType(e)){for(var o=[],a=Array.isArray(e)?e:e.value,s=0;s<a.length;s++){var u=a[s],l=n?ES(t,u,!0,i,s.toString()):u;o.push(l)}return o}if(t.ObjectVector.axClass.axIsType(e)){for(o=[],a=e._buffer,s=0;s<a.length;s++){u=a[s],l=n?ES(t,u,!0,i,s.toString()):u;o.push(l)}return o}var c=Object.keys(e),h={};for(s=0;s<c.length;s++){var p=c[s];if("__scope__"!=p){var d=p;bd(p)||(d=p.substr(3));var f=e[p];n&&(f=ES(t,f,!0,i,d)),h[d]=f}}return h}function wS(t,e,n,i){var r=e[n];if(Array.isArray(r))for(var o=r,a=0,s=o.length;a<s;a++){void 0===(l=wS(t,o,a_(a),i))?delete o[a]:o[a]=l}else if(null!==r&&"boolean"!=typeof r&&"number"!=typeof r&&"string"!=typeof r)for(var u in r){if(!r.hasOwnProperty(u)||!u_.isPublicQualifiedName(u))break;var l;void 0===(l=wS(t,r,u,i))?delete r[u]:r[u]=l}return i.call(e,n,r)}var SS=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return L_(e,t),e.parse=function(t,e){var n;void 0===e&&(e=null),t=a_(t),null===e||vm(e)||this.sec.throwError("TypeError",w_.CheckTypeFailedError,e,"Function"),null===t&&this.sec.throwError("SyntaxError",w_.JSONInvalidParseInput);try{n=IS(this.sec,JSON.parse(t),!0)}catch(t){this.sec.throwError("SyntaxError",w_.JSONInvalidParseInput)}return null===e?n:wS(this.sec,{"":n},"",e.value)},e.stringify=function(t,e,n){void 0===e&&(e=null),void 0===n&&(n=null);var i,r="object"==typeof e?null==e?void 0:e.sec:null;return null!==e&&(r&&(r.AXFunction.axIsType(e)||r.AXArray.axIsType(e))||this.sec.throwError("TypeError",w_.JSONInvalidReplacer)),i="string"==typeof n?n.length>10?n.substring(0,10):n:"number"==typeof n?" ".substring(0,Math.min(10,0|n)):"",null===e?this.stringifySpecializedToString(t,null,null,i):r.AXArray.axIsType(e)?this.stringifySpecializedToString(t,this.computePropertyList(e.value),null,i):this.stringifySpecializedToString(t,null,e.value,i)},e.computePropertyList=function(t){for(var e=[],n=Object.create(null),i=0,r=t.length;i<r;i++)if(t.hasOwnProperty(i)){var o=t[i],a=null;"string"==typeof o?a=o:"number"==typeof o&&(a=a_(o)),null===a||n[a]||(n[a]=!0,e.push(a))}return e},e.stringifySpecializedToString=function(t,e,n,i){if(void 0===t)return"null";var r=ES(this.sec,t,!0,n);try{return JSON.stringify(r,null,i)}catch(t){this.sec.throwError("TypeError",w_.JSONCyclicStructure)}},e}(B_);function DS(){return 0===F_.length?null:F_[F_.length-1].topScope().global.object.scriptInfo.abc}function TS(t,e,n){null==e&&t.throwError("TypeError",w_.NullPointerError,"request"),t.flash.net.URLRequest.axClass.axIsType(e)||t.throwError("TypeError",w_.CheckTypeFailedError,e,"flash.net.URLRequest");var i=e.url;(Ya(i)&&t.throwError("TypeError",w_.NullPointerError,"url"),0!==i.toLowerCase().indexOf("fscommand:"))?window.open(e.url,"_blank"):(0,t.flash.system.fscommand.value)(t,i.substring(10),n)}function PS(t){return function(e){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];return t.apply(Wp,n)}}var OS=Gg(),MS=function(t){function e(e,n,i,r,o,a,s){void 0===i&&(i=1),void 0===r&&(r=0),void 0===o&&(o=0),void 0===a&&(a=0),void 0===s&&(s=0);var u=t.call(this)||this;switch(arguments.length){case 0:u.value=new Date;break;case 1:u.value=new Date(e);break;case 2:u.value=new Date(e,n);break;case 3:u.value=new Date(e,n,i);break;case 4:u.value=new Date(e,n,i,r);break;case 5:u.value=new Date(e,n,i,r,o);break;case 6:u.value=new Date(e,n,i,r,o,a);break;default:u.value=new Date(e,n,i,r,o,a,s)}return u}return L_(e,t),e.classInitializer=function(){var t=this.dPrototype,n=e.prototype;l_(t,"$BgtoString",n.toString),l_(t,"$BgtoLocaleString",n.toString),l_(t,"$BgvalueOf",n.valueOf),l_(t,"$BgtoDateString",n.toDateString),l_(t,"$BgtoTimeString",n.toTimeString),l_(t,"$BgtoLocaleString",n.toLocaleString),l_(t,"$BgtoLocaleDateString",n.toLocaleDateString),l_(t,"$BgtoLocaleTimeString",n.toLocaleTimeString),l_(t,"$BgtoUTCString",n.toUTCString),l_(t,"$BgtoJSON",n.toJSON),l_(t,"$BggetUTCFullYear",n.getUTCFullYear),l_(t,"$BggetUTCMonth",n.getUTCMonth),l_(t,"$BggetUTCDate",n.getUTCDate),l_(t,"$BggetUTCDay",n.getUTCDay),l_(t,"$BggetUTCHours",n.getUTCHours),l_(t,"$BggetUTCMinutes",n.getUTCMinutes),l_(t,"$BggetUTCSeconds",n.getUTCSeconds),l_(t,"$BggetUTCMilliseconds",n.getUTCMilliseconds),l_(t,"$BggetFullYear",n.getFullYear),l_(t,"$BggetMonth",n.getMonth),l_(t,"$BggetDate",n.getDate),l_(t,"$BggetDay",n.getDay),l_(t,"$BggetHours",n.getHours),l_(t,"$BggetMinutes",n.getMinutes),l_(t,"$BggetSeconds",n.getSeconds),l_(t,"$BggetMilliseconds",n.getMilliseconds),l_(t,"$BggetTimezoneOffset",n.getTimezoneOffset),l_(t,"$BggetTime",n.getTime),l_(t,"$BgsetFullYear",n.setFullYear),l_(t,"$BgsetMonth",n.setMonth),l_(t,"$BgsetDate",n.setDate),l_(t,"$BgsetHours",t.setHours),l_(t,"$BgsetMinutes",n.setMinutes),l_(t,"$BgsetSeconds",n.setSeconds),l_(t,"$BgsetMilliseconds",n.setMilliseconds),l_(t,"$BgsetUTCFullYear",n.setUTCFullYear),l_(t,"$BgsetUTCMonth",n.setUTCMonth),l_(t,"$BgsetUTCDate",n.setUTCDate),l_(t,"$BgsetUTCHours",n.setUTCHours),l_(t,"$BgsetUTCMinutes",n.setUTCMinutes),l_(t,"$BgsetUTCSeconds",n.setUTCSeconds),l_(t,"$BgsetUTCMilliseconds",n.setUTCMilliseconds)},e.parse=function(t){return Date.parse(t)},e.UTC=function(t,e,n,i,r,o,a){return void 0===n&&(n=1),void 0===i&&(i=0),void 0===r&&(r=0),void 0===o&&(o=0),void 0===a&&(a=0),Date.parse.apply(null,arguments)},e.axCoerce=function(t){return this.axConstruct([t])},e.prototype.toString=function(){if(!(this.value instanceof Date))return"Invalid Date";var t=this.value.toString().split(" ");return t.length<4?"Invalid Date":(t.length=6,t.push(t.splice(3,1)[0]),"0"===t[2][0]&&(t[2]=t[2][1]),t.join(" "))},e.prototype.toDateString=function(){if(!(this.value instanceof Date))return"Invalid Date";var t=this.value.toDateString().split(" ");return t.length<4?"Invalid Date":("0"===t[2][0]&&(t[2]=t[2][1]),t.join(" "))},e.prototype.toJSON=function(){return this.value instanceof Date?this.value.toString():"Invalid Date"},e.prototype.valueOf=function(){return this.value instanceof Date?this.value.valueOf():NaN},e.prototype.setTime=function(t){return void 0===t&&(t=0),this.value instanceof Date?this.value.setTime(t):NaN},e.prototype.toTimeString=function(){return this.value instanceof Date?this.value.toTimeString():"Invalid Date"},e.prototype.toLocaleString=function(){return this.value instanceof Date?this.value.toLocaleString():"Invalid Date"},e.prototype.toLocaleDateString=function(){return this.value instanceof Date?this.value.toLocaleDateString():"Invalid Date"},e.prototype.toLocaleTimeString=function(){return this.value instanceof Date?this.value.toLocaleTimeString():"Invalid Date"},e.prototype.toUTCString=function(){return this.value instanceof Date?this.value.toUTCString():"Invalid Date"},e.prototype.getUTCFullYear=function(){return this.value instanceof Date?this.value.getUTCFullYear():NaN},e.prototype.getUTCMonth=function(){return this.value instanceof Date?this.value.getUTCMonth():NaN},e.prototype.getUTCDate=function(){return this.value instanceof Date?this.value.getUTCDate():NaN},e.prototype.getUTCDay=function(){return this.value instanceof Date?this.value.getUTCDay():NaN},e.prototype.getUTCHours=function(){return this.value instanceof Date?this.value.getUTCHours():NaN},e.prototype.getUTCMinutes=function(){return this.value instanceof Date?this.value.getUTCMinutes():NaN},e.prototype.getUTCSeconds=function(){return this.value instanceof Date?this.value.getUTCSeconds():NaN},e.prototype.getUTCMilliseconds=function(){return this.value instanceof Date?this.value.getUTCMilliseconds():NaN},e.prototype.getFullYear=function(){return this.value instanceof Date?this.value.getFullYear():NaN},e.prototype.getMonth=function(){return this.value instanceof Date?this.value.getMonth():NaN},e.prototype.getDate=function(){return this.value instanceof Date?this.value.getDate():NaN},e.prototype.getDay=function(){return this.value instanceof Date?this.value.getDay():NaN},e.prototype.getHours=function(){return this.value instanceof Date?this.value.getHours():NaN},e.prototype.getMinutes=function(){return this.value instanceof Date?this.value.getMinutes():NaN},e.prototype.getSeconds=function(){return this.value instanceof Date?this.value.getSeconds():NaN},e.prototype.getMilliseconds=function(){return this.value instanceof Date?this.value.getMilliseconds():NaN},e.prototype.getTimezoneOffset=function(){return this.value instanceof Date?this.value.getTimezoneOffset():NaN},e.prototype.getTime=function(){return this.value instanceof Date?this.value.getTime():NaN},e.prototype.setFullYear=function(t,e,n){return this.value instanceof Date?this.value.setFullYear(t,e,n):NaN},e.prototype.setMonth=function(t,e){return this.value instanceof Date?this.value.setMonth(t,e):NaN},e.prototype.setDate=function(t){return this.value instanceof Date?this.value.setDate(t):NaN},e.prototype.setHours=function(t,e,n,i){return this.value instanceof Date?this.value.setHours(t,e,n,i):NaN},e.prototype.setMinutes=function(t,e,n){return this.value instanceof Date?this.value.setMinutes(t,e,n):NaN},e.prototype.setSeconds=function(t,e){return this.value instanceof Date?this.value.setSeconds(t,e):NaN},e.prototype.setMilliseconds=function(t){return this.value instanceof Date?this.value.setMilliseconds(t):NaN},e.prototype.setUTCFullYear=function(t,e,n){return this.value instanceof Date?this.value.setUTCFullYear(t,e,n):NaN},e.prototype.setUTCMonth=function(t,e){return this.value instanceof Date?this.value.setUTCMonth(t,e):NaN},e.prototype.setUTCDate=function(t){return this.value instanceof Date?this.value.setUTCDate(t):NaN},e.prototype.setUTCHours=function(t,e,n,i){return this.value instanceof Date?this.value.setUTCHours(t,e,n,i):NaN},e.prototype.setUTCMinutes=function(t,e,n){return this.value instanceof Date?this.value.setUTCMinutes(t,e,n):NaN},e.prototype.setUTCSeconds=function(t,e){return this.value instanceof Date?this.value.setUTCSeconds(t,e):NaN},e.prototype.setUTCMilliseconds=function(t){return this.value instanceof Date?this.value.setUTCMilliseconds(t):NaN},Object.defineProperty(e.prototype,"fullYear",{get:function(){return this.value.getFullYear()},set:function(t){this.value.setFullYear(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"month",{get:function(){return this.value.getMonth()},set:function(t){this.value.setMonth(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"date",{get:function(){return this.value.getDate()},set:function(t){this.value.setDate(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hours",{get:function(){return this.value.getHours()},set:function(t){this.value.setHours(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"minutes",{get:function(){return this.value.getMinutes()},set:function(t){this.value.setMinutes(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"seconds",{get:function(){return this.value.getSeconds()},set:function(t){this.value.setSeconds(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"milliseconds",{get:function(){return this.value.getMilliseconds()},set:function(t){this.value.setMilliseconds(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fullYearUTC",{get:function(){return this.value.getUTCFullYear()},set:function(t){this.value.setUTCFullYear(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"monthUTC",{get:function(){return this.value.getUTCMonth()},set:function(t){this.value.setUTCMonth(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dateUTC",{get:function(){return this.value.getUTCDate()},set:function(t){this.value.setUTCDate(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hoursUTC",{get:function(){return this.value.getUTCHours()},set:function(t){this.value.setUTCHours(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"minutesUTC",{get:function(){return this.value.getUTCMinutes()},set:function(t){this.value.setUTCMinutes(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"secondsUTC",{get:function(){return this.value.getUTCSeconds()},set:function(t){this.value.setUTCSeconds(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"millisecondsUTC",{get:function(){return this.value.getUTCMilliseconds()},set:function(t){this.value.setUTCMilliseconds(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"time",{get:function(){return this.value.getTime()},set:function(t){this.value.setTime(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"timezoneOffset",{get:function(){return this.value.getTimezoneOffset()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"day",{get:function(){return this.value.getDay()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dayUTC",{get:function(){return this.value.getUTCDay()},enumerable:!1,configurable:!0}),e}(B_),BS="$"+r_(0,"http://www.adobe.com/2006/actionscript/flash/proxy").mangledName,NS=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return L_(e,t),e.classInitializer=function(){var t=this.dPrototype,n=e.prototype;Xg(t,BS+"getProperty",n.native_getProperty),Xg(t,BS+"setProperty",n.native_setProperty),Xg(t,BS+"callProperty",n.native_callProperty),Xg(t,BS+"hasProperty",n.native_hasProperty),Xg(t,BS+"deleteProperty",n.native_deleteProperty),Xg(t,BS+"getDescendants",n.native_getDescendants),Xg(t,BS+"nextNameIndex",n.native_nextNameIndex),Xg(t,BS+"nextName",n.native_nextName),Xg(t,BS+"nextValue",n.native_nextValue)},e.prototype.native_getProperty=function(){this.sec.throwError("flash.errors.IllegalOperationError",w_.ProxyGetPropertyError)},e.prototype.native_setProperty=function(){this.sec.throwError("flash.errors.IllegalOperationError",w_.ProxySetPropertyError)},e.prototype.native_callProperty=function(){this.sec.throwError("flash.errors.IllegalOperationError",w_.ProxyCallPropertyError)},e.prototype.native_hasProperty=function(){this.sec.throwError("flash.errors.IllegalOperationError",w_.ProxyHasPropertyError)},e.prototype.native_deleteProperty=function(){this.sec.throwError("flash.errors.IllegalOperationError",w_.ProxyDeletePropertyError)},e.prototype.native_getDescendants=function(){this.sec.throwError("flash.errors.IllegalOperationError",w_.ProxyGetDescendantsError)},e.prototype.native_nextNameIndex=function(){this!==this.axClass.dPrototype&&this.sec.throwError("flash.errors.IllegalOperationError",w_.ProxyNextNameIndexError)},e.prototype.native_nextName=function(){this.sec.throwError("flash.errors.IllegalOperationError",w_.ProxyNextNameError)},e.prototype.native_nextValue=function(){this.sec.throwError("flash.errors.IllegalOperationError",w_.ProxyNextValueError)},e.prototype.axGetProperty=function(t){var e,n="string"==typeof t.name?this.traits.getTrait(t.namespaces,t.name):null;if(n){var i=n.multiname.getMangledName();if("function"==typeof(e=this[i]))return this.axGetMethod(i)}else e=this[BS+"getProperty"](this.sec.AXQName.FromMultiname(t));return e},e.prototype.axGetNumericProperty=function(t){return this[BS+"getProperty"](+t+"")},e.prototype.axSetNumericProperty=function(t,e){this[BS+"setProperty"](+t+"",e)},e.prototype.axSetProperty=function(e,n,i){("string"==typeof e.name?this.traits.getTrait(e.namespaces,e.name):null)?t.prototype.axSetProperty.call(this,e,n,i):this[BS+"setProperty"](this.sec.AXQName.FromMultiname(e),n)},e.prototype.axCallProperty=function(e,n,i){if("string"==typeof e.name?this.traits.getTrait(e.namespaces,e.name):null)return t.prototype.axCallProperty.call(this,e,n,i);var r=[this.sec.AXQName.FromMultiname(e)].concat(n);return this[BS+"callProperty"].apply(this,r)},e.prototype.axHasProperty=function(t){return this.axHasOwnProperty(t)},e.prototype.axHasPublicProperty=function(t){return LS.name=t,!!this.axHasPropertyInternal(LS)||this[BS+"hasProperty"](t)},e.prototype.axHasOwnProperty=function(t){return!!("string"==typeof t.name?this.traits.getTrait(t.namespaces,t.name):null)||this[BS+"hasProperty"](this.sec.AXQName.FromMultiname(t))},e.prototype.axDeleteProperty=function(t){var e="string"==typeof t.name?this.traits.getTrait(t.namespaces,t.name):null;return e?delete this[e.multiname.getMangledName()]:this[BS+"deleteProperty"](this.sec.AXQName.FromMultiname(t))},e.prototype.axNextName=function(t){return this[BS+"nextName"](t)},e.prototype.axNextValue=function(t){return this[BS+"nextValue"](t)},e.prototype.axNextNameIndex=function(t){return this[BS+"nextNameIndex"](t)},e}(B_),LS=new u_(null,0,17,[],null,null,!0),RS="WeakRef"in self&&s_.USE_WEAK_REF,FS=function(t){function e(e){void 0===e&&(e=!1);var n=t.call(this)||this;return n.map=new WeakMap,n.keys=new Set,n.primitiveMap=Object.create(null),(n.weakKeys=!!e&&RS)&&(n.refs=new WeakMap),n}return L_(e,t),e.makePrimitiveKey=function(t){if("string"==typeof t||"number"==typeof t)return t},e.prototype.toJSON=function(){return"Dictionary"},e.prototype.axGetProperty=function(n){if(this===this.axClass.dPrototype)return t.prototype.axGetProperty.call(this,n);var i=e.makePrimitiveKey(n.name);return void 0!==i?this.primitiveMap[i]:this.map.get(Object(n.name))},e.prototype.axSetProperty=function(n,i,r){if(this!==this.axClass.dPrototype){var o=e.makePrimitiveKey(n.name);if(void 0===o){var a=Object(n.name);if(!this.map.has(a))if(this.weakKeys){var s=new self.WeakRef(a);this.refs.set(a,s),this.keys.add(s)}else this.keys.add(a);this.map.set(a,i)}else this.primitiveMap[o]=i}else t.prototype.axSetProperty.call(this,n,i,r)},e.prototype.axHasPropertyInternal=function(n){if(this===this.axClass.dPrototype)return t.prototype.axHasProperty.call(this,n);var i=e.makePrimitiveKey(n.name);return void 0!==i?i in this.primitiveMap:this.map.has(Object(n.name))},e.prototype.axDeleteProperty=function(n){if(this===this.axClass.dPrototype)return t.prototype.axDeleteProperty.call(this,n);var i=e.makePrimitiveKey(n.name);if(void 0===i){var r=Object(n.name);return!!this.map.has(r)&&(this.map.delete(r),this.weakKeys?(this.keys.delete(this.refs.get(r)),this.refs.delete(r)):this.keys.delete(r),!0)}delete this.primitiveMap[i]},e.prototype.axGetPublicProperty=function(n){if(this===this.axClass.dPrototype)return t.prototype.axGetPublicProperty.call(this,n);var i=e.makePrimitiveKey(n);return void 0!==i?this.primitiveMap[i]:this.map.get(Object(n))},e.prototype.axGetEnumerableKeys=function(){var e=this;if(this===this.axClass.dPrototype)return t.prototype.axGetEnumerableKeys.call(this);var n=[];for(var i in this.primitiveMap)n.push(i);return this.keys.forEach((function(t){var i=e.weakKeys?t.deref():t;i?n.push(i):e.keys.delete(t)})),n},e.classInitializer=function(){l_(this.dPrototype,"$BgtoJSON",e.prototype.toJSON)},e}(B_);function kS(t,e,n){for(var i=t.axGetEnumerableKeys(),r=0;r<i.length;r++){var o=i[r],a=t.axGetPublicProperty(o);e.call(n,o,a)}}var US=function(){this.strings=[],this.objects=[],this.traits=[],this.traitNames=[]},jS=function(){function t(){this._classMap=new WeakMap,this._nameMap=Object.create(null)}return t.prototype.getAliasByClass=function(t){return this._classMap.get(t)},t.prototype.getClassByAlias=function(t){return this._nameMap[t]},t.prototype.registerClassAlias=function(t,e){this._classMap.set(e,t),this._nameMap[t]=e},t}();function VS(t,e){if(e.length>65535)throw"AMF short string exceeded";if(!e.length)return t.writeByte(0),void t.writeByte(0);var n=ld.utf8decode(e);t.writeByte(n.length>>8&255),t.writeByte(255&n.length);for(var i=0;i<n.length;i++)t.writeByte(n[i])}function QS(t){var e=t.readByte()<<8|t.readByte();if(!e)return"";for(var n=new Uint8Array(e),i=0;i<e;i++)n[i]=t.readByte();return ld.utf8encode(n)}function GS(t,e){var n=new ArrayBuffer(8),i=new DataView(n);i.setFloat64(0,e,!1);for(var r=0;r<n.byteLength;r++)t.writeByte(i.getUint8(r))}function zS(t){for(var e=new ArrayBuffer(8),n=new DataView(e),i=0;i<e.byteLength;i++)n.setUint8(i,t.readByte());return n.getFloat64(0,!1)}var HS=function(){function t(){}return t.write=function(t,e){switch(typeof e){case"boolean":t.writeByte(1),t.writeByte(e?1:0);break;case"number":t.writeByte(0),GS(t,e);break;case"undefined":t.writeByte(6);break;case"string":t.writeByte(2),VS(t,e);break;case"object":var n=e;if(null===n)t.writeByte(5);else if(t.sec.AXArray.axIsType(n)){var i=n.value;t.writeByte(8),t.writeByte(i.length>>>24&255),t.writeByte(i.length>>16&255),t.writeByte(i.length>>8&255),t.writeByte(255&i.length),kS(n,(function(e,n){VS(t,e),this.write(t,n)}),this),t.writeByte(0),t.writeByte(0),t.writeByte(9)}else t.writeByte(3),kS(n,(function(e,n){VS(t,e),this.write(t,n)}),this),t.writeByte(0),t.writeByte(0),t.writeByte(9);return}},t.read=function(t){var e=t.readByte();switch(e){case 0:return zS(t);case 1:return!!t.readByte();case 2:return QS(t);case 3:for(var n=t.sec.createObject(),i=void 0;(i=QS(t)).length;)n.axSetPublicProperty(i,this.read(t));if(9!==t.readByte())throw"AMF0 End marker is not found";return n;case 5:return null;case 6:return;case 8:(r=t.sec.createArray([])).length=t.readByte()<<24|t.readByte()<<16|t.readByte()<<8|t.readByte();for(i=void 0;(i=QS(t)).length;)r.axSetPublicProperty(i,this.read(t));if(9!==t.readByte())throw"AMF0 End marker is not found";return r;case 10:for(var r,o=(r=t.sec.createArray([])).length=t.readByte()<<24|t.readByte()<<16|t.readByte()<<8|t.readByte(),a=0;a<o;a++)r.axSetPublicProperty(a,this.read(t));return r;case 17:return WS(t,new US);default:throw"AMF0 Unknown marker "+e}},t}();function XS(t){var e=t.readByte();if(0==(128&e))return 127&e;var n=t.readByte();if(0==(128&n))return(127&e)<<7|127&n;var i=t.readByte();if(0==(128&i))return(127&e)<<14|(127&n)<<7|127&i;var r=(127&e)<<22|(127&n)<<15|(127&i)<<8|255&t.readByte();return 0!=(268435456&r)&&(r|=3758096384),r}function YS(t,e){if(e<-268435456||e>=268435456)throw"AMF3 U29 range";0==(4294967168&e)?t.writeByte(127&e):0==(4294950912&e)?(t.writeByte(128|e>>7&127),t.writeByte(127&e)):0==(4292870144&e)?(t.writeByte(128|e>>14&127),t.writeByte(128|e>>7&127),t.writeByte(127&e)):(t.writeByte(128|e>>22&127),t.writeByte(128|e>>15&127),t.writeByte(128|e>>8&127),t.writeByte(255&e))}function qS(t,e){var n=XS(t);if(1===n)return"";var i=e.strings;if(0==(1&n))return i[n>>1];for(var r=n>>1,o=new Uint8Array(r),a=0;a<r;a++)o[a]=t.readByte();var s=ld.utf8encode(o);return i.push(s),s}function KS(t,e,n){if(""!==e){var i=n.strings,r=i.indexOf(e);if(r>=0)YS(t,r<<1);else{i.push(e);var o=ld.utf8decode(e);if(YS(t,1|o.length<<1),t instanceof I)t.writeArrayBuffer(o.byteLength!==o.buffer.byteLength?new Uint8Array(o).buffer:o.buffer);else for(var a=0;a<o.length;a++)t.writeByte(o[a])}}else t.writeByte(1)}function WS(t,e){var n=t.readByte();switch(n){case 1:return null;case 0:return;case 2:return!1;case 3:return!0;case 4:return XS(t);case 5:return zS(t);case 6:return qS(t,e);case 8:var i=XS(t);return t.sec.AXDate.axConstruct([zS(t)]);case 10:if(0==(1&(i=XS(t))))return e.objects[i>>1];if(0!=(4&i))throw"AMF3 Traits-Ext is not supported";var r=void 0,o=void 0,a=!0,s=void 0;if(0==(2&i))o=e.traits[i>>2],s=e.traitNames[i>>2];else{var u=qS(t,e);u&&(o=r=t.sec.classAliases.getClassByAlias(u)),a=0!=(8&i),s=[];for(var l=0,c=i>>4;l<c;l++)s.push(qS(t,e));e.traits.push(o),e.traitNames.push(s)}var h=r?r.axConstruct([]):t.sec.createObject();e.objects.push(h);for(l=0;l<s.length;l++){var p=WS(t,e);h.axSetPublicProperty(s[l],p)}if(a)for(var d=void 0;""!==(d=qS(t,e));){p=WS(t,e);h.axSetPublicProperty(d,p)}return h;case 9:if(0==(1&(i=XS(t))))return e.objects[i>>1];var f=t.sec.createArray([]);e.objects.push(f);var g=i>>1;for(d=void 0;(d=qS(t,e)).length;){p=WS(t,e);f.axSetPublicProperty(d,p)}for(l=0;l<g;l++){p=WS(t,e);f.axSetPublicProperty(l,p)}return f;default:throw"AMF3 Unknown marker "+n}}function JS(t,e,n){var i=n.objects,r=i.indexOf(e);return r<0?(i.push(e),!1):(YS(t,r<<1),!0)}function $S(t,e,n){switch(typeof e){case"boolean":t.writeByte(e?3:2);break;case"number":var i=e===(0|e);i&&(e>268435455||e<-268435456)&&(i=!1),i?(t.writeByte(4),YS(t,e)):(t.writeByte(5),GS(t,e));break;case"undefined":t.writeByte(0);break;case"string":t.writeByte(6),KS(t,e,n);break;case"object":if(null===e)t.writeByte(1);else if(t.sec.AXArray.axIsType(e)){var r=e;if(t.writeByte(9),JS(t,r,n))break;for(var o=0;r.axHasPublicProperty(o);)++o;YS(t,o<<1|1),kS(r,(function(e,i){bd(e)&&e>=0&&e<o||(KS(t,e,n),$S(t,i,n))})),KS(t,"",n);for(var a=0;a<o;a++)$S(t,r.axGetPublicProperty(a),n)}else if(t.sec.AXDate.axIsType(e)){if(t.writeByte(8),JS(t,e,n))break;YS(t,1),GS(t,e.valueOf())}else{var s=e;if(t.writeByte(10),JS(t,s,n))break;var u=!0,l=s.axClass;if(l){var c=l.classInfo;u=!c.instanceInfo.isSealed();var h=t.sec.classAliases.getAliasByClass(l)||"",p=n.traits.indexOf(l),d=null;if(p<0){d=c.instanceInfo.runtimeTraits.getSlotPublicTraitNames(),n.traits.push(l),n.traitNames.push(d),YS(t,(u?11:3)+(d.length<<4)),KS(t,h,n);for(var f=0;f<d.length;f++)KS(t,d[f],n)}else d=n.traitNames[p],YS(t,1+(p<<2));for(f=0;f<d.length;f++)$S(t,s.axGetPublicProperty(d[f]),n)}else YS(t,11),KS(t,"",n);u&&(kS(s,(function(e,i){KS(t,e,n),$S(t,i,n)})),KS(t,"",n))}return}}var ZS,tD=function(){function t(){}return t.write=function(t,e){$S(t,e,new US)},t.read=function(t){return WS(t,new US)},t}();!function(t){t[t.AMF0=0]="AMF0",t[t.AMF3=3]="AMF3",t[t.DEFAULT=3]="DEFAULT"}(ZS||(ZS={}));var eD=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return L_(e,t),Object.defineProperty(e,"dynamicPropertyWriter",{get:function(){return null},set:function(t){},enumerable:!1,configurable:!0}),e.AMF0=ZS.AMF0,e.AMF3=ZS.AMF3,e.DEFAULT=ZS.DEFAULT,e}(B_),nD=function(){},iD=function(t){function e(n){var i,r=t.call(this)||this;nD.symbolForConstructor&&(n=nD.symbolForConstructor,nD.symbolForConstructor=null);var o=0;if(n){if(n instanceof ArrayBuffer)i=n.slice(0);else if(Array.isArray(n))i=new Uint8Array(n).buffer;else if("buffer"in n)if(n.buffer instanceof ArrayBuffer)i=new Uint8Array(n.buffer).buffer;else if(n.buffer instanceof Uint8Array){var a=n.buffer.byteOffset;i=n.buffer.buffer.slice(a,a+n.buffer.length)}else i=n.buffer.slice();else Gd("Source type.");o=i.byteLength}else i=new ArrayBuffer(e.INITIAL_SIZE);return r._buffer=i,r._length=o,r._position=0,r._resetViews(),r._objectEncoding=e.defaultObjectEncoding,r._littleEndian=!1,r._bitBuffer=0,r._bitLength=0,r}return L_(e,t),e.classInitializer=function(){var t=su.prototype;Xg(t,"$BgtoJSON",t.toJSON)},e.prototype.setArrayBuffer=function(t){this._buffer=t,this._length=this._buffer.byteLength,this._resetViews()},Object.defineProperty(e,"defaultObjectEncoding",{get:function(){return this._defaultObjectEncoding},set:function(t){t>>>=0,this._defaultObjectEncoding=t},enumerable:!1,configurable:!0}),e.prototype.toJSON=function(){return"ByteArray"},e.prototype.readObject=function(){switch(this._objectEncoding){case eD.AMF0:return HS.read(this);case eD.AMF3:return tD.read(this);default:Gd("Object Encoding")}},e.prototype.writeObject=function(t){switch(this._objectEncoding){case eD.AMF0:return HS.write(this,t);case eD.AMF3:return tD.write(this,t);default:Gd("Object Encoding")}},e.prototype.axGetPublicProperty=function(t){return"number"==typeof t||bd(t=I_(t))?this.axGetNumericProperty(t):this["$Bg"+t]},e.prototype.axGetNumericProperty=function(t){return this.getValue(t)},e.prototype.axSetPublicProperty=function(t,e){"number"==typeof t||bd(t=I_(t))?this.axSetNumericProperty(t,e):this["$Bg"+t]=e},e.prototype.axSetNumericProperty=function(t,e){this.setValue(t,e)},e.prototype.axGetProperty=function(e){var n=e.name;return"number"==typeof n||bd(n=I_(n))?this.getValue(+n):t.prototype.axGetProperty.call(this,e)},e.prototype.axSetProperty=function(e,n,i){var r=e.name;"number"==typeof r||bd(r=I_(r))?this.setValue(+r,n):t.prototype.axSetProperty.call(this,e,n,i)},e.classNatives=[su],e.instanceNatives=[su.prototype],e.INITIAL_SIZE=128,e._defaultObjectEncoding=eD.DEFAULT,e}(B_);!function(t){function e(){return t.call(this)||this}L_(e,t),Object.defineProperty(e,"enabled",{get:function(){return!1},set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e,"conversionMode",{get:function(){return"UNKNOWN"},set:function(t){},enumerable:!1,configurable:!0}),e.setCompositionString=function(t){},e.doConversion=function(){},e.compositionSelectionChanged=function(t,e){},e.compositionAbandoned=function(){},Object.defineProperty(e,"isSupported",{get:function(){return!1},enumerable:!1,configurable:!0})}(B_);var rD=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return L_(e,t),e.classInitializer=function(){Xg(this,"$Bgargv",this.sec.createArray([]))},Object.defineProperty(e,"ime",{get:function(){return null},enumerable:!1,configurable:!0}),e.setClipboard=function(t){t=a_(t),null!==Kg&&Kg.setClipboard(t)},Object.defineProperty(e,"totalMemoryNumber",{get:function(){return 2097152},enumerable:!1,configurable:!0}),Object.defineProperty(e,"freeMemory",{get:function(){return 1048576},enumerable:!1,configurable:!0}),Object.defineProperty(e,"privateMemory",{get:function(){return 1048576},enumerable:!1,configurable:!0}),Object.defineProperty(e,"useCodePage",{get:function(){return this._useCodePage},set:function(t){this._useCodePage=!!t},enumerable:!1,configurable:!0}),Object.defineProperty(e,"vmVersion",{get:function(){return"1.0 Shumway - Mozilla Research"},enumerable:!1,configurable:!0}),e.pause=function(){},e.resume=function(){},e.exit=function(t){},e.gc=function(){},e.pauseForGCIfCollectionImminent=function(t){},e.disposeXML=function(t){},Object.defineProperty(e,"swfVersion",{get:function(){return 19},enumerable:!1,configurable:!0}),Object.defineProperty(e,"apiVersion",{get:function(){return 26},enumerable:!1,configurable:!0}),e.getArgv=function(){return[]},e.getRunmode=function(){return"mixed"},e._useCodePage=!1,e}(B_),oD=rD;function aD(){sD.Object=B_,sD.Class=R_,sD.Function=cm,sD.Boolean=Am,sD["builtin.as$0.MethodClosure"]=hm,sD.Number=pm,sD.int=dm,sD.uint=ym,sD.String=mm,sD.Array=H_,sD["__AS3__.vec.Vector"]=Em,sD["__AS3__.vec.Vector$object"]=wm,sD["__AS3__.vec.Vector$int"]=Sm,sD["__AS3__.vec.Vector$uint"]=Dm,sD["__AS3__.vec.Vector$double"]=Tm,sD.Namespace=BD,sD.QName=ND,sD.XML=RD,sD.XMLList=UD,sD["flash.xml.XMLNode"]=jD,sD["flash.xml.XMLDocument"]=VD,sD["flash.xml.XMLParser"]=HD,sD["flash.xml.XMLTag"]=QD,sD["flash.xml.XMLNodeType"]=GD,sD.Math=Pm,sD.Date=MS,sD.RegExp=xS,sD.JSON=SS,sD["flash.utils.Proxy"]=NS,sD["flash.utils.Dictionary"]=FS,sD["flash.utils.ByteArray"]=iD,sD["avmplus.System"]=oD,sD["avmplus.File"]=XD,sD.Error=X_,sD.DefinitionError=Y_,sD.EvalError=q_,sD.RangeError=K_,sD.ReferenceError=W_,sD.SecurityError=J_,sD.SyntaxError=$_,sD.TypeError=Z_,sD.URIError=tm,sD.VerifyError=em,sD.UninitializedError=nm,sD.ArgumentError=im,sD["flash.errors.IOError"]=rm,sD["flash.errors.EOFError"]=om,sD["flash.errors.MemoryError"]=am,sD["flash.errors.IllegalOperationError"]=sm}var sD=Gg(),uD=Gg(),lD=[];function cD(t,e){return"object"==typeof t&&t&&(t.axClass===e.AXXML||t.axClass===e.AXXMLList||t.axClass===e.AXQName||t.axClass===e.AXNamespace)}function hD(t,e){return"object"==typeof e&&e&&(e.axClass===t.AXXML||e.axClass===t.AXXMLList)}function pD(t,e){if(!t||t.axClass!==e.AXXML)return a_(t);switch(t._kind){case 3:case 2:return t._value;default:if(t.hasSimpleContent()){for(var n="",i=0;i<t._children.length;i++){var r=t._children[i];4!==r._kind&&5!==r._kind&&(n+=pD(r,e))}return n}return bD(e,t)}}function dD(t,e){if(hD(t,e))return e.toXMLString();e=a_(e);for(var n,i=0;i<e.length&&"&"!==(n=e[i])&&"<"!==n&&">"!==n;)i++;if(i>=e.length)return e;for(var r=e.substring(0,i);i<e.length;)switch(n=e[i++]){case"&":r+="&";break;case"<":r+="<";break;case">":r+=">";break;default:r+=n}return r}function fD(t){t=String(t);for(var e,n=0;n<t.length&&"&"!==(e=t[n])&&"<"!==e&&'"'!==e&&"\n"!==e&&"\r"!==e&&"\t"!==e;)n++;if(n>=t.length)return t;for(var i=t.substring(0,n);n<t.length;)switch(e=t[n++]){case"&":i+="&";break;case"<":i+="<";break;case'"':i+=""";break;case"\n":i+="
";break;case"\r":i+="
";break;case"\t":i+="	";break;default:i+=e}return i}function gD(t,e){var n=t[e];return" "===n||"\n"===n||"\r"===n||"\t"===n}function _D(t){for(var e=0;e<t.length;e++){var n=t[e];if(" "!==n&&"\n"!==n&&"\r"!==n&&"\t"!==n)return!1}return!0}function mD(t){for(var e=0;e<t.length&&gD(t,e);)e++;if(e>=t.length)return"";for(var n=t.length-1;gD(t,n);)n--;return 0===e&&n===t.length-1?t:t.substring(e,n+1)}var yD=[];function AD(t){if(t>0){if(void 0!==yD[t])return yD[t];for(var e="",n=0;n<t;n++)e+=" ";return yD[t]=e,e}return""}function vD(t){for(var e,n=1;;){if(e="_ns"+n,!t.some((function(t){return t.prefix===e})))return e;n++}}function bD(t,e){if(null==e)throw new TypeError;return dD(t,e)}function CD(t,e){if(null===t&&e.throwError("TypeError",w_.ConvertNullToObjectError),void 0===t&&e.throwError("TypeError",w_.ConvertUndefinedToObjectError),t.axClass===e.AXXML)return t;if(t.axClass===e.AXXMLList)return 1!==t._children.length&&e.throwError("TypeError",w_.XMLMarkupMustBeWellFormed),t._children[0];var n=e.xmlParser.parseFromString(a_(t)),i=n._children.length;return 0===i?FD(e,3):1===i?(n._children[0]._parent=null,n._children[0]):2===i?(n._children[1]._parent=null,n._children[1]):void e.throwError("TypeError",w_.XMLMarkupMustBeWellFormed)}function xD(t,e){if(null===t&&e.sec.throwError("TypeError",w_.ConvertNullToObjectError),void 0===t&&e.sec.throwError("TypeError",w_.ConvertUndefinedToObjectError),t.axClass!==e.sec.AXXML){var n=CD('<parent xmlns="'+fD(wD(e.sec).uri)+'">'+t+"</parent>",e.sec)._children;if(n)for(var i=0;i<n.length;i++){var r=n[i];r._parent=null,e.append(r)}}else e.append(t)}function ID(t,e){if(void 0===t)return PD;var n;if("object"==typeof t&&null!==t){if(t instanceof u_)return t;if(t.axClass===e.AXQName)return t.name;n=String(t)}else"number"==typeof t?n=t+"":"string"==typeof t?n="*"===t?null:t:e.throwError("TypeError",w_.XMLInvalidName,t);return n&&"@"===n[0]?("*"===(n=n.substr(1))&&(n=null),new u_(null,0,13,[i_.PUBLIC],n)):new u_(null,0,7,[i_.PUBLIC],n)}function ED(t,e){var n=TD;if(n.kind=t.kind,t.name&&t.name.axClass===e.AXQName&&(t=t.name.name),t.isQName())n.name=t.name,n.namespaces=t.namespaces;else if(t.isAnyNamespace())n.namespaces=t.namespaces;else{for(var i=wD(e),r=t.namespaces,o=!1,a=0;a<r.length;a++){var s=r[a];if(s.uri===i.uri&&s.prefix===i.prefix&&s.type===i.type){o=!0;break}}n.namespaces=o?t.namespaces:t.namespaces.concat(i)}var u=t.name;return t.isAnyName()||"*"===u||null===u?n.name=null:u.length>1&&"@"===u[0]?n.isAttribute()?n.name=u:(n.name="@*"===u?null:u.substr(1),n.kind=1===n.namespaces.length?13:14):n.name=u,n}function wD(t){for(var e=0===F_.length?null:F_[F_.length-1].topScope();e;){if(e.defaultNamespace)return e.defaultNamespace;e=e.parent}return t.AXNamespace.defaultNamespace||(t.AXNamespace.defaultNamespace=new i_(0,"default","")),t.AXNamespace.defaultNamespace}function SD(t,e){for(var n=t.uri,i=0;e&&i<e.length;i++)if(n===e[i].uri)return e[i];return t.namespaces[0]}var DD,TD=new u_(null,0,7,[],null,null,!0),PD=new u_(null,0,7,[],null,null,!0),OD=function(){function t(){}return t.prototype.resolveEntities=function(t){return t.replace(/&([^;]+);/g,(function(t,e){if("#x"===e.substring(0,2))return String.fromCharCode(parseInt(e.substring(2),16));if("#"===e.substring(0,1))return String.fromCharCode(parseInt(e.substring(1),10));switch(e){case"lt":return"<";case"gt":return">";case"amp":return"&";case"quot":return'"'}return t}))},t.prototype.parseContent=function(t,e){var n=e,i=[];function r(){for(;n<t.length&&gD(t,n);)++n}for(;n<t.length&&!gD(t,n)&&">"!==t[n]&&"/"!==t[n];)++n;var o=t.substring(e,n);for(r();n<t.length&&">"!==t[n]&&"/"!==t[n]&&"?"!==t[n];){r();for(var a,s="";n<t.length&&!gD(t,n)&&"="!==t[n];)s+=t[n],++n;if(r(),"="!==t[n])return null;++n,r();var u=t[n];if('"'!==u&&"'"!==u)return null;var l=t.indexOf(u,++n);if(l<0)return null;a=t.substring(n,l),i.push({name:s,value:this.resolveEntities(a)}),n=l+1,r()}return{name:o,attributes:i,parsed:n-e}},t.prototype.parseProcessingInstruction=function(t,e){var n=e;for(;n<t.length&&!gD(t,n)&&">"!==t[n]&&"/"!==t[n];)++n;var i=t.substring(e,n);!function(){for(;n<t.length&&gD(t,n);)++n}();for(var r=n;n<t.length&&("?"!==t[n]||">"!=t[n+1]);)++n;return{name:i,value:t.substring(r,n),parsed:n-e}},t.prototype.parseXml=function(t){for(var e=0;e<t.length;){var n=e;if("<"===t[e]){var i=void 0;switch(t[++n]){case"/":if(++n,(i=t.indexOf(">",n))<0)return void this.onError(-9);this.onEndElement(t.substring(n,i)),n=i+1;break;case"?":++n;var r=this.parseProcessingInstruction(t,n);if("?>"!=t.substring(n+r.parsed,n+r.parsed+2))return void this.onError(-3);this.onPi(r.name,r.value),n+=r.parsed+2;break;case"!":if("--"===t.substring(n+1,n+3)){if((i=t.indexOf("--\x3e",n+3))<0)return void this.onError(-5);this.onComment(t.substring(n+3,i)),n=i+3}else if("[CDATA["===t.substring(n+1,n+8)){if((i=t.indexOf("]]>",n+8))<0)return void this.onError(-2);this.onCdata(t.substring(n+8,i)),n=i+3}else{if("DOCTYPE"!==t.substring(n+1,n+8))return void this.onError(-6);var o=t.indexOf("[",n+8),a=!1;if((i=t.indexOf(">",n+8))<0)return void this.onError(-4);if(o>0&&i>o){if((i=t.indexOf("]>",n+8))<0)return void this.onError(-4);a=!0}var s=t.substring(n+8,i+(a?1:0));this.onDoctype(s),n=i+(a?2:1)}break;default:var u=this.parseContent(t,n);if(null===u)return void this.onError(-6);var l=!1;if("/>"===t.substring(n+u.parsed,n+u.parsed+2))l=!0;else if(">"!==t.substring(n+u.parsed,n+u.parsed+1))return void this.onError(-9);this.onBeginElement(u.name,u.attributes,l),n+=u.parsed+(l?2:1)}}else{do{}while(n++<t.length&&"<"!==t[n]);var c=t.substring(e,n);this.onText(this.resolveEntities(c))}e=n}},t.prototype.onPi=function(t,e){},t.prototype.onComment=function(t){},t.prototype.onCdata=function(t){},t.prototype.onDoctype=function(t){},t.prototype.onText=function(t){},t.prototype.onBeginElement=function(t,e,n){},t.prototype.onEndElement=function(t){},t.prototype.onError=function(t){},t}(),MD=function(t){function e(e){var n=t.call(this)||this;return n.sec=e,n.scopes=[],n}return L_(e,t),e.prototype.isWhitespacePreserved=function(){for(var t=this.scopes,e=t.length-1;e>=0;--e)if("preserve"===t[e].space)return!0;return!1},e.prototype.lookupDefaultNs=function(){for(var t=this.scopes,e=t.length-1;e>=0;--e)if("xmlns"in t[e])return t[e].xmlns;return""},e.prototype.lookupNs=function(t){for(var e=this.scopes,n=e.length-1;n>=0;--n)if(t in e[n].lookup)return e[n].lookup[t]},e.prototype.getName=function(t,e){var n=t.indexOf(":");if(n>=0){var i=t.substring(0,n),r=t.substring(n+1),o=this.lookupNs(i);return void 0===o&&this.sec.throwError("TypeError",w_.XMLPrefixNotBound,i,r),{name:o+"::"+r,localName:r,prefix:i,namespace:o}}return e?{name:t,localName:t,prefix:"",namespace:this.lookupDefaultNs()}:{name:t,localName:t,prefix:"",namespace:""}},e.prototype.onError=function(t){switch(t){case-6:return void this.sec.throwError("TypeError",w_.XMLMalformedElement);case-9:return void this.sec.throwError("TypeError",w_.XMLUnterminatedElement);case-4:return void this.sec.throwError("TypeError",w_.XMLUnterminatedDocTypeDecl);case-2:return void this.sec.throwError("TypeError",w_.XMLUnterminatedCData);case-5:return void this.sec.throwError("TypeError",w_.XMLUnterminatedComment);case-3:return void this.sec.throwError("TypeError",w_.XMLUnterminatedXMLDecl)}},e.prototype.onPi=function(t,e){this.pi(t,e)},e.prototype.onComment=function(t){this.comment(t)},e.prototype.onCdata=function(t){this.cdata(t)},e.prototype.onDoctype=function(t){this.doctype(t)},e.prototype.onText=function(t){this.text(t,this.isWhitespacePreserved())},e.prototype.onBeginElement=function(t,e,n){for(var i=this.scopes,r={namespaces:[],lookup:Object.create(null),inScopes:null},o=0;o<e.length;++o){var a=(d=e[o]).name;if("xmlns:"===a.substring(0,6)){var s=a.substring(6),u=d.value;if(this.lookupNs(s)!==u){r.lookup[s]=mD(u);var l=o_(0,u,s);r.namespaces.push(l)}e[o]=null}else if("xmlns"===a){u=d.value;if(this.lookupDefaultNs()!==u){r.xmlns=mD(u);l=r_(0,u);r.namespaces.push(l)}e[o]=null}else if("xml:"===a.substring(0,4)){var c=a.substring(4);r[c]=mD(d.value)}}var h=[];r.namespaces.forEach((function(t){t.prefix&&r.lookup[t.prefix]!==t.uri||h.push(t)})),i[i.length-1].inScopes.forEach((function(t){(t.prefix&&!(t.prefix in r.lookup)||!t.prefix&&!("xmlns"in r))&&h.push(t)})),r.inScopes=h,i.push(r);var p=[];for(o=0;o<e.length;++o){var d;(d=e[o])&&p.push({name:this.getName(d.name,!1),value:d.value})}this.beginElement(this.getName(t,!0),p,h,n),n&&i.pop()},e.prototype.onEndElement=function(t){this.endElement(this.getName(t,!0)),this.scopes.pop()},e.prototype.beginElement=function(t,e,n,i){var r=this.currentElement;this.elementsStack.push(r),this.currentElement=FD(this.sec,1,t.namespace,t.localName,t.prefix);for(var o=0;o<e.length;++o){var a=e[o],s=FD(this.sec,2,a.name.namespace,a.name.localName,a.name.prefix);s._value=a.value,s._parent=this.currentElement,this.currentElement._attributes.push(s)}for(o=0;o<n.length;++o)this.currentElement._inScopeNamespaces.push(n[o]);r.insert(r._children.length,this.currentElement),i&&(this.currentElement=this.elementsStack.pop())},e.prototype.endElement=function(t){this.currentElement=this.elementsStack.pop()},e.prototype.text=function(t,e){if(this.sec.AXXML.ignoreWhitespace&&(t=mD(t)),!(0===t.length||e&&this.sec.AXXML.ignoreWhitespace)){var n=FD(this.sec);n._value=t,this.currentElement.insert(this.currentElement._children.length,n)}},e.prototype.cdata=function(t){var e=FD(this.sec);e._value=t,this.currentElement.insert(this.currentElement._children.length,e)},e.prototype.comment=function(t){if(!this.sec.AXXML.ignoreComments){var e=FD(this.sec,4,"","");e._value=t,this.currentElement.insert(this.currentElement._children.length,e)}},e.prototype.pi=function(t,e){if(!this.sec.AXXML.ignoreProcessingInstructions){var n=FD(this.sec,5,"",t);n._value=e,this.currentElement.insert(this.currentElement._children.length,n)}},e.prototype.doctype=function(t){},e.prototype.parseFromString=function(t,e){var n=this.currentElement=FD(this.sec,1,"","","");this.elementsStack=[];var i=wD(this.sec),r=[{namespaces:[],lookup:{xmlns:"http://www.w3.org/2000/xmlns/",xml:"http://www.w3.org/XML/1998/namespace"},inScopes:[i],space:"default",xmlns:i.uri}];if(this.scopes=r,this.parseXml(t),this.currentElement=null,this.elementsStack.length>0){var o=this.elementsStack.pop()._name.name;this.sec.throwError("TypeError",w_.XMLUnterminatedElementTag,o,o)}return this.elementsStack=null,n},e}(OD),BD=function(t){function e(e,n){var i=t.call(this)||this,r="",o="";if(1===arguments.length){if((s=e)instanceof i_)return i._ns=s,i;if(s&&"object"==typeof s)if(s.axClass===i.sec.AXNamespace){var a=s;o=a.prefix,r=a.uri}else s.axClass===i.sec.AXQName&&null!==s.uri&&(r=s.uri);else o=""===(r=pD(s,i.sec))?"":void 0}else{var s,u=e;""===(r=Ad(s=n)&&s.axClass===i.sec.AXQName&&null!==s.uri?s.uri:pD(s,i.sec))?void 0===u||""===pD(u,i.sec)?o="":i.sec.throwError("TypeError",w_.XMLNamespaceWithPrefixAndNoURI,u):o=void 0===u||!1===function(t,e){try{e.AXQName.Create(t)}catch(t){return!1}return!0}(u,i.sec)?void 0:pD(u,i.sec)}return i._ns=o_(0,r,o),i}return L_(e,t),e.classInitializer=function(){Xg(this,"$Bglength",2),Xg(this.dPrototype,"$BgtoString",e.prototype.toString)},e.axApply=function(t,e){var n=e[0],i=e[1];if(1===e.length&&Ad(n)&&n.axClass===this.sec.AXNamespace)return n;switch(e.length){case 0:return this.sec.AXNamespace.Create();case 1:return this.sec.AXNamespace.Create(n);default:return this.sec.AXNamespace.Create(n,i)}},e.Create=function(t,e){var n=Object.create(this.sec.AXNamespace.tPrototype);return n.axInitializer.apply(n,arguments),n},e.FromNamespace=function(t){var e=Object.create(this.sec.AXNamespace.tPrototype);return e._ns=t,e},e.prototype.equals=function(t){return t&&t.axClass===this.axClass&&t._ns.uri===this._ns.uri||"string"==typeof t&&this._ns.uri===t},Object.defineProperty(e.prototype,"prefix",{get:function(){return this._ns.prefix},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"uri",{get:function(){return this._ns.uri},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return this===this.axClass.dPrototype?"":this._ns.uri},e.prototype.valueOf=function(){return this===this.axClass.dPrototype?"":this._ns.uri},e.instanceConstructor=e,e.defaultNamespace=i_.PUBLIC,e}(B_),ND=function(t){function e(e,n){var i,r,o=t.call(this)||this;if(0===arguments.length?i="":1===arguments.length?i=e:(r=e,i=n),i&&i.axClass===o.sec.AXQName){if(arguments.length<2)return o.name=i.name,o;i=i.localName}i=void 0===i?"":pD(i,o.sec),void 0===r&&(r="*"===i?null:wD(o.sec));var a=i,s=null;return null!==r&&(r.axClass!==o.sec.AXNamespace&&(r=o.sec.AXNamespace.Create(r)),s=r._ns),o.name=new u_(null,0,7,[s],a),o}return L_(e,t),e.classInitializer=function(){Xg(this,"$Bglength",2),Xg(this.dPrototype,"$BgtoString",e.prototype.ecmaToString)},e.Create=function(t,e,n){var i=Object.create(this.sec.AXQName.tPrototype);return i.axInitializer.apply(i,arguments),i},e.FromMultiname=function(t){var e=Object.create(this.sec.AXQName.tPrototype);return e.name=t,e},e.axApply=function(t,e){var n=e[0],i=e[1];if(1===e.length&&n&&n.axClass===this.sec.AXQName)return n;switch(e.length){case 0:return this.sec.AXQName.Create();case 1:return this.sec.AXQName.Create(n);default:return this.sec.AXQName.Create(n,i)}},e.prototype.equals=function(t){return t&&t.axClass===this.sec.AXQName&&t.uri===this.uri&&t.name.name===this.name.name||"string"==typeof t&&this.toString()===t},Object.defineProperty(e.prototype,"localName",{get:function(){return""!=this.name.name?this.name.name:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"uri",{get:function(){var t=this.name.namespaces;return t.length>1?"":t[0]?t[0].uri:null},enumerable:!1,configurable:!0}),e.prototype.ecmaToString=function(){return this&&this===this.sec.AXQName.dPrototype?"":(this&&this.axClass===this.sec.AXQName||this.sec.throwError("TypeError",w_.InvokeOnIncompatibleObjectError,"QName.prototype.toString"),this.toString())},e.prototype.toString=function(){var t=this.uri;if(""===t)return this.name.name;if(null===t)return"*::"+this.name.name;var e=(t+="").charCodeAt(t.length-1);return e>=57344&&e<=63743&&t.substr(0,t.length-1),this.name.name},e.prototype.valueOf=function(){return this},Object.defineProperty(e.prototype,"prefix",{get:function(){return this.name.namespaces[0]?this.name.namespaces[0].prefix:null},enumerable:!1,configurable:!0}),e}(B_);!function(t){t[t.FLAG_IGNORE_COMMENTS=1]="FLAG_IGNORE_COMMENTS",t[t.FLAG_IGNORE_PROCESSING_INSTRUCTIONS=2]="FLAG_IGNORE_PROCESSING_INSTRUCTIONS",t[t.FLAG_IGNORE_WHITESPACE=4]="FLAG_IGNORE_WHITESPACE",t[t.FLAG_PRETTY_PRINTING=8]="FLAG_PRETTY_PRINTING",t[t.ALL=15]="ALL"}(DD||(DD={}));var LD=[null,"element","attribute","text","comment","processing-instruction"],RD=function(t){function e(e){var n=t.call(this)||this;if(n._parent=null,xd(e)&&(e=""),"string"==typeof e&&0===e.length)return n._kind=3,n._value="",n;var i=CD(e,n.sec);cD(e,n.sec)&&(i=i._deepCopy()),n._kind=i._kind,n._name=i._name,n._value=i._value,n._attributes=i._attributes,n._inScopeNamespaces=i._inScopeNamespaces;var r=i._children;if(n._children=r,r)for(var o=0;o<r.length;o++){r[o]._parent=n}return n}return L_(e,t),e.classInitializer=function(){Xg(this,"$Bglength",1);var t=this.dPrototype,n=e.prototype;l_(t,"$BgvalueOf",n.valueOf),Xg(t,"$BghasOwnProperty",n.native_hasOwnProperty),Xg(t,"$BgpropertyIsEnumerable",n.native_propertyIsEnumerable),l_(this,"$Bgsettings",e.native_settings),l_(this,"$BgsetSettings",e.native_setSettings),l_(this,"$BgdefaultSettings",e.native_defaultSettings),l_(t,"$BgtoString",n.toString),l_(t,"$BgaddNamespace",n.addNamespace),l_(t,"$BgappendChild",n.appendChild),l_(t,"$Bgattribute",n.attribute),l_(t,"$Bgattributes",n.attributes),l_(t,"$Bgchild",n.child),l_(t,"$BgchildIndex",n.childIndex),l_(t,"$Bgchildren",n.children),l_(t,"$Bgcomments",n.comments),l_(t,"$Bgcontains",n.contains),l_(t,"$Bgcopy",n.copy),l_(t,"$Bgdescendants",n.descendants),l_(t,"$Bgelements",n.elements),l_(t,"$BghasComplexContent",n.hasComplexContent),l_(t,"$BghasSimpleContent",n.hasSimpleContent),l_(t,"$BginScopeNamespaces",n.inScopeNamespaces),l_(t,"$BginsertChildAfter",n.insertChildAfter),l_(t,"$BginsertChildBefore",n.insertChildBefore),l_(t,"$Bglength",n.length),l_(t,"$BglocalName",n.localName),l_(t,"$Bgname",n.name),l_(t,"$Bgnamespace",n.namespace),l_(t,"$BgnamespaceDeclarations",n.namespaceDeclarations),l_(t,"$BgnodeKind",n.nodeKind),l_(t,"$Bgnormalize",n.normalize),l_(t,"$Bgparent",n.parent),l_(t,"$BgprocessingInstructions",n.processingInstructions),l_(t,"$BgprependChild",n.prependChild),l_(t,"$BgremoveNamespace",n.removeNamespace),l_(t,"$Bgreplace",n.replace),l_(t,"$BgsetChildren",n.setChildren),l_(t,"$BgsetLocalName",n.setLocalName),l_(t,"$BgsetName",n.setName),l_(t,"$BgsetNamespace",n.setNamespace),l_(t,"$Bgtext",n.text),l_(t,"$BgtoXMLString",n.toXMLString),l_(t,"$BgtoJSON",n.toJSON)},e.Create=function(t){var e=Object.create(this.sec.AXXML.tPrototype);return e.axInitializer(t),e},e.resetSettings=function(){this._flags=DD.ALL},e.native_settings=function(){var t=Object.create(this.sec.AXObject.tPrototype);return t.$BgignoreComments=this.ignoreComments,t.$BgignoreProcessingInstructions=this.ignoreProcessingInstructions,t.$BgignoreWhitespace=this.ignoreWhitespace,t.$BgprettyPrinting=this.prettyPrinting,t.$BgprettyIndent=this.prettyIndent,t},e.native_setSettings=function(t){if(xd(t))return this.ignoreComments=!0,this.ignoreProcessingInstructions=!0,this.ignoreWhitespace=!0,this.prettyPrinting=!0,void(this.prettyIndent=2);"boolean"==typeof t.$BgignoreComments&&(this.ignoreComments=t.$BgignoreComments),"boolean"==typeof t.$BgignoreProcessingInstructions&&(this.ignoreProcessingInstructions=t.$BgignoreProcessingInstructions),"boolean"==typeof t.$BgignoreWhitespace&&(this.ignoreWhitespace=t.$BgignoreWhitespace),"boolean"===t.$BgprettyPrinting&&(this.prettyPrinting=t.$BgprettyPrinting),"number"===t.$BgprettyIndent&&(this.prettyIndent=t.$BgprettyIndent)},e.native_defaultSettings=function(){return{__proto__:this.sec.AXObject.tPrototype,$BgignoreComments:!0,$BgignoreProcessingInstructions:!0,$BgignoreWhitespace:!0,$BgprettyPrinting:!0,$BgprettyIndent:2}},e.axApply=function(t,e){var n=e[0];return xd(n)&&(n=""),CD(n,this.sec)},e.prototype.valueOf=function(){return this},e.prototype.equals=function(t){if(t&&t.axClass===this.sec.AXXMLList)return t.equals(this);if(t&&t.axClass===this.sec.AXXML){var e=t;return(3===this._kind||2===this._kind)&&e.hasSimpleContent()||(3===e._kind||2===e._kind)&&this.hasSimpleContent()?this.toString()===t.toString():this._deepEquals(t)}return this.hasSimpleContent()&&this.toString()===a_(t)},e.prototype.init=function(t,e){switch(this._name=e,this._kind=t,this._parent=null,t){case 1:this._inScopeNamespaces=[],this._attributes=[],this._children=[];break;case 4:case 5:case 2:case 3:this._value=""}return this},e.prototype._deepEquals=function(t){if(!t||t.axClass!==this.sec.AXXML)return!1;var e=t;if(this._kind!==e._kind)return!1;if(!!this._name!=!!e._name||this._name&&!this._name.equalsQName(e._name))return!1;if(1!==this._kind)return this._value===e._value;var n=this._attributes,i=e._attributes;if(n.length!==i.length)return!1;var r=this._children,o=e._children;if(r.length!==o.length)return!1;t:for(var a=0;a<n.length;a++){for(var s=n[a],u=0;u<i.length;u++){var l=i[u];if(l._name.equalsQName(s._name)&&l._value===s._value)continue t}return!1}for(a=0;a<r.length;a++)if(!r[a].equals(o[a]))return!1;return!0},e.prototype._deepCopy=function(){var t=this._kind,e=this.sec.AXXML.Create();switch(e._kind=t,e._name=this._name,t){case 1:e._inScopeNamespaces=this._inScopeNamespaces.slice(),e._attributes=this._attributes.map((function(t){return(t=t._deepCopy())._parent=e,t})),e._children=this._children.map((function(t){return(t=t._deepCopy())._parent=e,t}));break;case 4:case 5:case 2:case 3:e._value=this._value}return e},e.prototype.resolveValue=function(){return this},e.prototype._addInScopeNamespace=function(t){this._inScopeNamespaces.some((function(e){return e.uri===t.uri&&e.prefix===t.prefix}))||this._inScopeNamespaces.push(t)},Object.defineProperty(e,"ignoreComments",{get:function(){return!!(this._flags&DD.FLAG_IGNORE_COMMENTS)},set:function(t){(t=!!t)?this._flags|=DD.FLAG_IGNORE_COMMENTS:this._flags&=~DD.FLAG_IGNORE_COMMENTS},enumerable:!1,configurable:!0}),Object.defineProperty(e,"ignoreProcessingInstructions",{get:function(){return!!(this._flags&DD.FLAG_IGNORE_PROCESSING_INSTRUCTIONS)},set:function(t){(t=!!t)?this._flags|=DD.FLAG_IGNORE_PROCESSING_INSTRUCTIONS:this._flags&=~DD.FLAG_IGNORE_PROCESSING_INSTRUCTIONS},enumerable:!1,configurable:!0}),Object.defineProperty(e,"ignoreWhitespace",{get:function(){return!!(this._flags&DD.FLAG_IGNORE_WHITESPACE)},set:function(t){(t=!!t)?this._flags|=DD.FLAG_IGNORE_WHITESPACE:this._flags&=~DD.FLAG_IGNORE_WHITESPACE},enumerable:!1,configurable:!0}),Object.defineProperty(e,"prettyPrinting",{get:function(){return!!(this._flags&DD.FLAG_PRETTY_PRINTING)},set:function(t){(t=!!t)?this._flags|=DD.FLAG_PRETTY_PRINTING:this._flags&=~DD.FLAG_PRETTY_PRINTING},enumerable:!1,configurable:!0}),Object.defineProperty(e,"prettyIndent",{get:function(){return this._prettyIndent},set:function(t){t|=0,this._prettyIndent=t},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return this===this.axClass.dPrototype?"":this.hasComplexContent()?this.toXMLString():pD(this,this.sec)},e.prototype.native_hasOwnProperty=function(t){if(this===this.axClass.dPrototype)return B_.prototype.native_hasOwnProperty.call(this,t);var e=ID(t,this.sec);return!!this.hasProperty(e)||this.axHasOwnProperty(e)},e.prototype.native_propertyIsEnumerable=function(t){return void 0===t&&(t=void 0),"0"===String(t)},e.prototype.addNamespace=function(t){return this&&this.axClass===this.sec.AXXML||this.sec.throwError("TypeError",w_.CheckTypeFailedError,this,"XML"),this._addInScopeNamespace(t),this},e.prototype.appendChild=function(t){return this&&this.axClass===this.sec.AXXML||this.sec.throwError("TypeError",w_.CheckTypeFailedError,this,"XML"),this.insert(this._children.length,t),this},e.prototype.attribute=function(t){return this&&this.axClass===this.sec.AXXML||this.sec.throwError("TypeError",w_.CheckTypeFailedError,this,"XML"),xd(t)&&arguments.length>0&&this.sec.throwError("TypeError",w_.ConvertUndefinedToObjectError),t&&t.axClass===this.sec.AXQName?this.getProperty(t.name):("*"!==(t=a_(t))&&0!==arguments.length||(t=null),TD.name=t,TD.namespaces=[i_.PUBLIC],TD.kind=13,this.getProperty(TD))},e.prototype.attributes=function(){this&&this.axClass===this.sec.AXXML||this.sec.throwError("TypeError",w_.CheckTypeFailedError,this,"XML");var t=this.sec.AXXMLList.CreateList(this,this._name);return Array.prototype.push.apply(t._children,this._attributes),t},e.prototype.child=function(t){if(this&&this.axClass===this.sec.AXXML||this.sec.throwError("TypeError",w_.CheckTypeFailedError,this,"XML"),Cd(t)){var e=this.sec.AXXMLList.CreateList(null,null);return this._children&&t<this._children.length&&e.append(this._children[0|t]),e}var n;return t&&t.axClass===this.sec.AXQName?n=t.name:((n=TD).kind=7,n.name=pD(t,this.sec)),this.getProperty(n)},e.prototype.childIndex=function(){return this&&this.axClass===this.sec.AXXML||this.sec.throwError("TypeError",w_.CheckTypeFailedError,this,"XML"),this._parent&&2!==this._kind?this._parent._children.indexOf(this):-1},e.prototype.children=function(){this&&this.axClass===this.sec.AXXML||this.sec.throwError("TypeError",w_.CheckTypeFailedError,this,"XML");var t=this.sec.AXXMLList.CreateList(this,this._name);return t._children=this._children.concat(),t},e.prototype.comments=function(){this&&this.axClass===this.sec.AXXML||this.sec.throwError("TypeError",w_.CheckTypeFailedError,this,"XML");var t=this.sec.AXXMLList.CreateList(this,this._name);return this._children&&this._children.forEach((function(e,n){4===e._kind&&t.append(e)})),t},e.prototype.contains=function(t){return this&&this.axClass===this.sec.AXXML||this.sec.throwError("TypeError",w_.CheckTypeFailedError,this,"XML"),this===t},e.prototype.copy=function(){return this&&this.axClass===this.sec.AXXML||this.sec.throwError("TypeError",w_.CheckTypeFailedError,this,"XML"),this._deepCopy()},e.prototype.descendants=function(t){this&&this.axClass===this.sec.AXXML||this.sec.throwError("TypeError",w_.CheckTypeFailedError,this,"XML");var e=this.sec.AXXMLList.CreateList(this,this._name);return this.descendantsInto(ID(t,this.sec),e)},e.prototype.elements=function(t){return this&&this.axClass===this.sec.AXXML||this.sec.throwError("TypeError",w_.CheckTypeFailedError,this,"XML"),this.getProperty(ID(t,this.sec))},e.prototype.hasComplexContent=function(){return this&&this.axClass===this.sec.AXXML||this.sec.throwError("TypeError",w_.CheckTypeFailedError,this,"XML"),2!==this._kind&&4!==this._kind&&5!==this._kind&&3!==this._kind&&this._children.some((function(t){return 1===t._kind}))},e.prototype.hasSimpleContent=function(){return this&&this.axClass===this.sec.AXXML||this.sec.throwError("TypeError",w_.CheckTypeFailedError,this,"XML"),4!==this._kind&&5!==this._kind&&(1!==this._kind||(!this._children&&0===this._children.length||this._children.every((function(t){return 1!==t._kind}))))},e.prototype.inScopeNamespaces=function(){this&&this.axClass===this.sec.AXXML||this.sec.throwError("TypeError",w_.CheckTypeFailedError,this,"XML");for(var t=this._inScopeNamespacesImpl(),e=[],n=0;n<t.length;n++){var i=this.sec.AXNamespace;e[n]=i.FromNamespace(t[n])}return this.sec.AXArray.axBox(e)},e.prototype._inScopeNamespacesImpl=function(){for(var t=this,e=[],n=e;null!==t;){for(var i=t._inScopeNamespaces,r=0;i&&r<i.length;r++){var o=i[r];n[o.prefix]||(n[o.prefix]=o,e.push(o))}t=t._parent}return e},e.prototype.insertChildAfter=function(t,e){if(this&&this.axClass===this.sec.AXXML||this.sec.throwError("TypeError",w_.CheckTypeFailedError,this,"XML"),!(this._kind>1)){if(null==t)return this.insert(0,e),this;if(t.axClass===this.sec.AXXMLList&&1===t._children.length&&(t=t._children[0]),t.axClass===this.sec.AXXML)for(var n=0;n<this._children.length;n++){if(this._children[n]===t)return this.insert(n+1,e),this}}},e.prototype.insertChildBefore=function(t,e){if(this&&this.axClass===this.sec.AXXML||this.sec.throwError("TypeError",w_.CheckTypeFailedError,this,"XML"),!(this._kind>1)){if(null==t)return this.insert(this._children.length,e),this;if(t.axClass===this.sec.AXXMLList&&1===t._children.length&&(t=t._children[0]),t.axClass===this.sec.AXXML)for(var n=0;n<this._children.length;n++){if(this._children[n]===t)return this.insert(n,e),this}}},e.prototype.length=function(){return this&&this.axClass===this.sec.AXXML||this.sec.throwError("TypeError",w_.CheckTypeFailedError,this,"XML"),this._children?this._children.length:0},e.prototype.localName=function(){return this&&this.axClass===this.sec.AXXML||this.sec.throwError("TypeError",w_.CheckTypeFailedError,this,"XML"),""!=this._name.name?this._name.name:null},e.prototype.name=function(){return this&&this.axClass===this.sec.AXXML||this.sec.throwError("TypeError",w_.CheckTypeFailedError,this,"XML"),this.sec.AXQName.FromMultiname(this._name)},e.prototype.namespace=function(t){if(this&&this.axClass===this.sec.AXXML||this.sec.throwError("TypeError",w_.CheckTypeFailedError,this,"XML"),0===arguments.length&&this._kind>=3)return null;var e=this._inScopeNamespacesImpl();if(0===arguments.length)return this.sec.AXNamespace.FromNamespace(SD(this._name,e));t=a_(t);for(var n=0;n<e.length;n++){var i=e[n];if(i.prefix===t)return this.sec.AXNamespace.FromNamespace(i)}},e.prototype.namespaceDeclarations=function(){this&&this.axClass===this.sec.AXXML||this.sec.throwError("TypeError",w_.CheckTypeFailedError,this,"XML")},e.prototype.nodeKind=function(){return this&&this.axClass===this.sec.AXXML||this.sec.throwError("TypeError",w_.CheckTypeFailedError,this,"XML"),LD[this._kind]},e.prototype.normalize=function(){this&&this.axClass===this.sec.AXXML||this.sec.throwError("TypeError",w_.CheckTypeFailedError,this,"XML");for(var t=0;t<this._children.length;){var e=this._children[t];if(1===e._kind)e.normalize(),t++;else if(3===e._kind){for(;t+1<this._children.length;){var n=this._children[t+1];if(3!==n._kind)break;e._value+=n._value,this.removeByIndex(t+1)}0===e._value.length||_D(e._value)?this.removeByIndex(t):t++}else t++}return this},e.prototype.removeByIndex=function(t){this._children[t]._parent=null,this._children.splice(t,1)},e.prototype.parent=function(){return this._parent||void 0},e.prototype.processingInstructions=function(t){var e=this.sec.AXXMLList.CreateList(this,this._name);return e._targetObject=this,e._targetProperty=null,this.processingInstructionsInto(ID(t,this.sec),e)},e.prototype.processingInstructionsInto=function(t,e){var n=t||"*",i=this._children;if(!i)return e;for(var r=0;r<i.length;r++){var o=i[r];5!==o._kind||"*"!==n&&o._name.name!==n||e._children.push(o)}return e},e.prototype.prependChild=function(t){return this.insert(0,t),this},e.prototype.removeNamespace=function(t){},e.prototype.replace=function(t,e){if(1===this._kind){var n;n=!e||e.axClass!==this.axClass&&e.axClass!==this.sec.AXXMLList?a_(e):e._deepCopy();var i=ID(t,this.sec);if(Cd(i.name))return this._replaceByIndex(0|i.name,n),this;for(var r=i.isAnyName(),o=-1,a=this._children,s=a.length;s--;){var u=a[s];(r||1===u._kind&&u._name.matches(i))&&(-1!==o&&this.deleteByIndex(o),o=s)}return-1===o||this._replaceByIndex(o,n),this}},e.prototype._replaceByIndex=function(t,e){if(this._kind>1)return this;var n=this._children;if(t>n.length&&(t=n.length),e&&e.axClass===this.axClass&&2!==e._kind){if(1===e._kind)for(var i=this;i;)i===e&&this.sec.throwError("Error",w_.XMLIllegalCyclicalLoop),i=i._parent;e._parent=this,n[t]&&(n[t]._parent=null),n[t]=e}else if(e&&e.axClass===this.sec.AXXMLList)if(0===e._children.length)this.deleteByIndex(t);else{var r=e._children.length;if(t<n.length){n[t]._parent=null;for(var o=n.length-1;o>t;o--)n[o+r]=n[o]}for(o=0;o<r;o++){var a=e._children[o];a._parent=this,n[o+t]=a}}else{var s=a_(e),u=this.axClass.Create();u._kind=3,u._value=s,u._parent=this,n[t]&&(n[t]._parent=null),n[t]=u}},e.prototype.setChildren=function(t){return this.setProperty(PD,t),this},e.prototype.setLocalName=function(t){var e;3!==this._kind&&4!==this._kind&&(e=t&&t.axClass===this.sec.AXQName?t.localName:a_(t),this._name.name=e)},e.prototype.setName=function(t){if(3!==this._kind&&4!==this._kind){t&&t.axClass===this.sec.AXQName&&null===t.uri&&(t=t.localName);var e=this.sec.AXQName.Create(t).name;5===this._kind&&(e.namespaces[0]=i_.PUBLIC),this._name=e;var n=this;if(2===this._kind){if(null===this._parent)return;n=this._parent}n.addInScopeNamespace(e.namespaces[0])}},e.prototype.setNamespace=function(t){if(3!==this._kind&&4!==this._kind&&5!==this._kind){var e=this.sec.AXNamespace.Create(t)._ns;this._name.namespaces=[e],2===this._kind?this._parent&&this._parent.addInScopeNamespace(e):1===this._kind&&this.addInScopeNamespace(e)}},e.prototype.text=function(){var t=this.sec.AXXMLList.CreateList(this,this._name);return this._children&&this._children.forEach((function(e){3===e._kind&&t.append(e)})),t},e.prototype.toXMLString=function(){return this.toXMLStringImpl()},e.prototype.toXMLStringImpl=function(t,e){var n=this,i=this.sec,r=i.AXXML.prettyPrinting;e|=0;var o=r?AD(e):"";switch(n._kind){case 3:return r?o+dD(i,mD(n._value)):dD(i,n._value);case 2:return o+fD(n._value);case 4:return o+"\x3c!--"+n._value+"--\x3e";case 5:return o+"<?"+n._name.name+" "+n._value+"?>"}t=t||[];for(var a=[],s=function(e){var i=n._inScopeNamespaces[e];t.every((function(t){return t.uri!==i.uri||t.prefix!==i.prefix}))&&a.push(i)},u=0;n._inScopeNamespaces&&u<n._inScopeNamespaces.length;u++)s(u);var l=t.concat(a),c=SD(n._name,l);if(void 0===c.prefix){var h=vD(l),p=o_(0,c.uri,h);a.push(p),l.push(p)}var d=(c.prefix?c.prefix+":":"")+n._name.name;o+="<"+d,n._attributes&&n._attributes.forEach((function(t){var e=t._name;if(void 0===(c=SD(e,l)).prefix){var n=vD(l),i=o_(0,c.uri,n);a.push(i),l.push(i)}}));for(u=0;u<a.length;u++)if(""!==(c=a[u]).uri&&"default"!==c.uri){var f=c.prefix?"xmlns:"+c.prefix:"xmlns";o+=" "+f+'="'+fD(c.uri)+'"'}if(n._attributes&&n._attributes.forEach((function(e){var n=e._name,i=SD(n,t),r=i.prefix?i.prefix+":"+n.name:n.name;o+=" "+r+'="'+fD(e._value)+'"'})),0===n._children.length)return o+="/>";o+=">";var g=n._children.length>1||1===n._children.length&&3!==n._children[0]._kind,_=r&&g?e+i.AXXML._prettyIndent:0;return n._children.forEach((function(t){r&&g&&(o+="\n"),o+=t.toXMLStringImpl(l,_)})),r&&g&&(o+="\n"+AD(e)),o+="</"+d+">"},e.prototype.toJSON=function(t){return"XML"},e.prototype.axGetEnumerableKeys=function(){if(this===this.axClass.dPrototype)return t.prototype.axGetEnumerableKeys.call(this);for(var e=[],n=0;n<this._children.length;n++)e.push(this._children[n]._name.name);return e},e.prototype.setProperty=function(t,e){var n,i=this.sec;if(t.isAnyName()||t.isAttribute()||t.name!==t.name>>>0||i.throwError("TypeError",w_.XMLAssignmentToIndexedXMLNotAllowed),3!==this._kind&&4!==this._kind&&5!==this._kind&&2!==this._kind)if(n=cD(e,i)&&3!==e._kind&&2!==e._kind?e._deepCopy():pD(e,i),t.isAttribute()){if(n&&n.axClass===i.AXXMLList)if(0===n._children.length)n="";else{for(var r=pD(n._children[0],i),o=1;o<n._children.length;o++)r+=" "+pD(n._children[o],i);n=r}else n=a_(n);var a=null,s=this._attributes,u=this._attributes=[];for(o=0;s&&o<s.length;o++){var l=s[o];if(l._name.matches(t)){if(a){l._parent=null;continue}a=l}u.push(l)}if(!a){if(t.isAnyName())return;var c="";1===t.namespaces.length&&t.namespaces[0]&&(c=t.namespaces[0].uri),(a=FD(i,2,c,t.name))._parent=this,u.push(a)}a._value=n}else{for(var h,p=t.isAnyName(),d=!cD(n,i)&&!p&&"*"!==t.name,f=t.isAnyNamespace(),g=this._children.length-1;g>=0;g--)(p||1===this._children[g]._kind&&this._children[g]._name.name===t.name)&&(f||1===this._children[g]._kind&&this._children[g]._name.matches(t))&&(void 0!==h&&this.deleteByIndex(h),h=g);if(void 0===h&&(h=this._children.length,d)){var _=t.namespaces[0],m=(c=null,void 0);if(null!==_.uri&&(c=_.uri,m=_.prefix),null===c){var y=wD(i);c=y.uri,m=y.prefix}var A=FD(i,1,c,t.name,m);A._parent=this,this._replaceByIndex(h,A),A.addInScopeNamespace(A._name.namespace)}if(d){var v=this._children[h]._children;for(o=v.length;o--;)v[o]._parent=null;v.length=0,""!==(r=pD(n,i))&&this._children[h]._replaceByIndex(0,r)}else this._replaceByIndex(h,n)}},e.prototype.axSetProperty=function(t,e,n){this!==this.axClass.dPrototype?this.setProperty(ED(t,this.sec),e):this[this.axResolveMultiname(t)]=e},e.prototype.getProperty=function(t){var e=t.name;if(Cd(e))return 0==(0|e)?this:null;var n=this.sec.AXXMLList.CreateList(this,t),i=0,r=t.isAnyName(),o=t.isAnyNamespace();if(t.isAttribute()){for(var a=0;this._attributes&&a<this._attributes.length;a++){var s=this._attributes[a];!r&&s._name.name!==e||!o&&!s._name.matches(t)||(n._children[i++]=s,Qa(n._children[0]))}return n}for(a=0;this._children&&a<this._children.length;a++){s=this._children[a];(r||1===s._kind&&s._name.name===e)&&(o||s._name.matches(t))&&(n._children[i++]=s,Qa(n._children[0]))}return n},e.prototype.axGetProperty=function(t){return this===this.axClass.dPrototype?this[this.axResolveMultiname(t)]:this.getProperty(ED(t,this.sec))},e.prototype.hasProperty=function(t){if(Cd(t.name))return 0==(0|t.name);var e=ID(t,this.sec),n=e.isAnyName(),i=e.isAnyNamespace();if(t.isAttribute()){for(var r=0;this._attributes&&r<this._attributes.length;r++){var o=this._attributes[r];if(n||o._name.matches(e))return!0}return!1}for(r=0;this._children&&r<this._children.length;r++){o=this._children[r];if((n||1===o._kind&&o._name.name===e.name)&&(i||1===o._kind&&o._name.matches(e)))return!0}return!1},e.prototype.deleteProperty=function(t){if(Cd(t.name))return!0;var e=ID(t,this.sec),n=e.name,i=t.isAnyName(),r=t.isAnyNamespace();if(t.isAttribute()){var o=this._attributes;if(o)for(var a=this._attributes=[],s=0;s<o.length;s++){var u=o[s],l=u._name;!i&&l.name!==n||!r&&!l.matches(e)?a.push(u):u._parent=null}}else if(this._children.some((function(t,n){return(i||1===t._kind&&t._name.name===e.name)&&(r||1===t._kind&&t._name.matches(e))})))return!0},e.prototype.axHasProperty=function(e){return this===this.axClass.dPrototype?t.prototype.axHasPropertyInternal.call(this,e):this.axHasPropertyInternal(e)},e.prototype.axHasPropertyInternal=function(t){return!!this.hasProperty(t)||!!this[this.axResolveMultiname(t)]},e.prototype.axDeleteProperty=function(t){return!!this.deleteProperty(t)||delete this[this.axResolveMultiname(t)]},e.prototype.axCallProperty=function(t,e){var n=this[this.axResolveMultiname(t)];return n||(n=this["$Bg"+t.name]),n?(O_(this.sec,n,e.length),n.axApply(this,e)):this.hasSimpleContent()?this.sec.box(pD(this,this.sec)).axCallProperty(t,e):void this.sec.throwError("TypeError",w_.CallOfNonFunctionError,"value")},e.prototype._delete=function(t,e){},e.prototype.deleteByIndex=function(t){if(String(t>>>0)!==String(t))throw"TypeError in XML.prototype.deleteByIndex(): invalid index "+t;var e=this._children;t<e.length&&e[t]&&(e[t]._parent=null,e.splice(t,1))},e.prototype.insert=function(t,e){if(!(this._kind>1)){var n=t;if(e&&e.axClass===this.axClass)for(var i=this;i;)i===e&&this.sec.throwError("TypeError",w_.XMLIllegalCyclicalLoop),i=i._parent;var r=1;if(!e||e.axClass!==this.sec.AXXMLList||0!==(r=e._children.length)){for(var o=this._children,a=o.length-1;a>=n;a--)o[a+r]=o[a],Qa(o[0]);if(e&&e.axClass===this.sec.AXXMLList){r=e._children.length;for(a=0;a<r;a++)e._children[a]._parent=this,o[n+a]=e._children[a]}else e&&e.axClass===this.axClass||(e=this.sec.AXXML.Create(e)),e._parent=this,o||(this._children=o=[]),o[n]=e,Qa(o[0])}}},e.prototype.addInScopeNamespace=function(t){if(3!==this._kind&&4!==this._kind&&5!==this._kind&&2!==this._kind){var e=t.prefix;if(void 0!==e){if(""===e&&""===this._name.uri)return;var n=null;this._inScopeNamespaces.forEach((function(t,i){t.prefix===e&&(n=t)})),null!==n&&n.uri!==t.uri&&this._inScopeNamespaces.forEach((function(e,i){e.prefix===n.prefix&&(this._inScopeNamespaces[i]=t)})),this._name.prefix===e&&(this._name.prefix=void 0),this._attributes.forEach((function(t,n){t._name.prefix===e&&(t._name.prefix=void 0)}))}}},e.prototype.descendantsInto=function(t,e){if(1!==this._kind)return e;var n=e._children.length,i=t.isAnyName();return t.isAttribute()?this._attributes.forEach((function(r,o){(i||r._name.matches(t))&&(e._children[n++]=r,Qa(null!=e._children[0]))})):this._children.forEach((function(r,o){(i||r._name)&&(i||r._name.matches(t))&&(e._children[n++]=r,Qa(null!=e._children[0]))})),this._children.forEach((function(n,i){n.descendantsInto(t,e)})),e},e.instanceConstructor=e,e._flags=DD.ALL,e._prettyIndent=2,e}(B_);function FD(t,e,n,i,r){void 0===e&&(e=3),void 0===n&&(n=""),void 0===i&&(i="");var o=t.AXXML.Create(),a=o_(0,n,r||""),s=new u_(null,0,2===e?13:7,[a],i,null);return o.init(e,s),o}var kD,UD=function(t){function e(e){var n=t.call(this)||this;if(n._children=[],xd(e)&&(e=""),!e)return n;if(e&&e.axClass===n.sec.AXXMLList)for(var i=e._children,r=0;r<i.length;r++){var o=i[r];n._children[r]=o,Qa(n._children[0])}else xD(e,n);return n}return L_(e,t),e.classInitializer=function(){Xg(this,"$Bglength",1);var t=this.dPrototype,n=e.prototype;Xg(t,"$BgvalueOf",Object.prototype.$BgvalueOf),Xg(t,"$BghasOwnProperty",n.native_hasOwnProperty),Xg(t,"$BgpropertyIsEnumerable",n.native_propertyIsEnumerable),l_(t,"$BgtoString",n.toString),l_(t,"$BgaddNamespace",n.addNamespace),l_(t,"$BgappendChild",n.appendChild),l_(t,"$Bgattribute",n.attribute),l_(t,"$Bgattributes",n.attributes),l_(t,"$Bgchild",n.child),l_(t,"$BgchildIndex",n.childIndex),l_(t,"$Bgchildren",n.children),l_(t,"$Bgcomments",n.comments),l_(t,"$Bgcontains",n.contains),l_(t,"$Bgcopy",n.copy),l_(t,"$Bgdescendants",n.descendants),l_(t,"$Bgelements",n.elements),l_(t,"$BghasComplexContent",n.hasComplexContent),l_(t,"$BghasSimpleContent",n.hasSimpleContent),l_(t,"$BginScopeNamespaces",n.inScopeNamespaces),l_(t,"$BginsertChildAfter",n.insertChildAfter),l_(t,"$BginsertChildBefore",n.insertChildBefore),l_(t,"$Bglength",n.length),l_(t,"$BglocalName",n.localName),l_(t,"$Bgname",n.name),l_(t,"$Bgnamespace",n.namespace),l_(t,"$BgnamespaceDeclarations",n.namespaceDeclarations),l_(t,"$BgnodeKind",n.nodeKind),l_(t,"$Bgnormalize",n.normalize),l_(t,"$Bgparent",n.parent),l_(t,"$BgprocessingInstructions",n.processingInstructions),l_(t,"$BgprependChild",n.prependChild),l_(t,"$BgremoveNamespace",n.removeNamespace),l_(t,"$Bgreplace",n.replace),l_(t,"$BgsetChildren",n.setChildren),l_(t,"$BgsetLocalName",n.setLocalName),l_(t,"$BgsetName",n.setName),l_(t,"$BgsetNamespace",n.setNamespace),l_(t,"$Bgtext",n.text),l_(t,"$BgtoXMLString",n.toXMLString),l_(t,"$BgtoJSON",n.toJSON)},e.axApply=function(t,e){var n=e[0];if(xd(n)&&(n=""),n&&n.axClass===this.sec.AXXMLList)return n;var i=this.sec.AXXMLList.Create();return xD(n,i),i},e.addXML=function(t,e){var n;return t.axClass===t.sec.AXXML?(n=t.sec.AXXMLList.Create()).append(t):n=t,n.append(e),n},e.Create=function(t){var e=Object.create(this.sec.AXXMLList.tPrototype);return e.axInitializer(t),e},e.CreateList=function(t,e){var n=this.Create();return n._targetObject=t,n._targetProperty=e,n},e.prototype.valueOf=function(){return this},e.prototype.equals=function(t){var e=this._children;if(void 0===t&&0===e.length)return!0;if(t&&t.axClass===this.sec.AXXMLList){var n=t._children;if(n.length!==e.length)return!1;for(var i=0;i<e.length;i++)if(!e[i].equals(n[i]))return!1;return!0}return 1===e.length&&e[0].equals(t)},e.prototype.toString=function(){if(this.hasComplexContent())return this.toXMLString();for(var t="",e=0;e<this._children.length;e++)t+=pD(this._children[e],this.sec);return t},e.prototype._deepCopy=function(){for(var t=this.sec.AXXMLList.CreateList(this._targetObject,this._targetProperty),e=this._children.length,n=0;n<e;n++)t._children[n]=this._children[n]._deepCopy(),Qa(t._children[0]);return t},e.prototype._shallowCopy=function(){for(var t=this.sec.AXXMLList.CreateList(this._targetObject,this._targetProperty),e=this._children.length,n=0;n<e;n++)t._children[n]=this._children[n],Qa(t._children[0]);return t},e.prototype.native_hasOwnProperty=function(t){if(t=a_(t),this===this.sec.AXXMLList.dPrototype)return B_.prototype.native_hasOwnProperty.call(this,t);if(Cd(t))return(0|t)<this._children.length;for(var e=ID(t,this.sec),n=this._children,i=0;i<n.length;i++){var r=n[i];if(1===r._kind&&r.hasProperty(e))return!0}return!1},e.prototype.native_propertyIsEnumerable=function(t){return Cd(t)&&(0|t)<this._children.length},e.prototype.attribute=function(t){return xd(t)&&arguments.length>0&&this.sec.throwError("TypeError",w_.ConvertUndefinedToObjectError),t&&t.axClass===this.sec.AXQName?this.getProperty(t.name):("*"!==(t=a_(t))&&0!==arguments.length||(t=null),TD.name=t,TD.namespaces=[i_.PUBLIC],TD.kind=13,this.getProperty(TD))},e.prototype.attributes=function(){return TD.name=null,TD.namespaces=[],TD.kind=13,this.getProperty(TD)},e.prototype.child=function(t){if(Cd(t)){var e=this.sec.AXXMLList.CreateList(this._targetObject,this._targetProperty);return(0|t)<this._children.length&&(e._children[0]=this._children[0|t]._deepCopy(),Qa(e._children[0])),e}return this.getProperty(ID(t,this.sec))},e.prototype.children=function(){return this.getProperty(PD)},e.prototype.descendants=function(t){for(var e=ID(t,this.sec),n=this.sec.AXXMLList.CreateList(this._targetObject,this._targetProperty),i=0;i<this._children.length;i++){var r=this._children[i];1===r._kind&&r.descendantsInto(e,n)}return n},e.prototype.comments=function(){var t=this.sec.AXXMLList.CreateList(this._targetObject,this._targetProperty);return this._children.forEach((function(e){if(1===e._kind){var n=e.comments();Array.prototype.push.apply(t._children,n._children)}})),t},e.prototype.contains=function(t){for(var e=this._children,n=0;n<e.length;n++){if(e[n].equals(t))return!0}return!1},e.prototype.copy=function(){return this._deepCopy()},e.prototype.elements=function(t){var e=ID(t,this.sec),n=this.sec.AXXMLList.CreateList(this._targetObject,e);return this._children.forEach((function(t){if(1===t._kind){var i=t.elements(e);Array.prototype.push.apply(n._children,i._children)}})),n},e.prototype.hasComplexContent=function(){switch(this._children.length){case 0:return!1;case 1:return this._children[0].hasComplexContent();default:return this._children.some((function(t){return 1===t._kind}))}},e.prototype.hasSimpleContent=function(){switch(this._children.length){case 0:return!0;case 1:return this._children[0].hasSimpleContent();default:return this._children.every((function(t){return 1!==t._kind}))}},e.prototype.length=function(){return this._children.length},e.prototype.name=function(){return 1!==this._children.length&&this.sec.throwError("TypeError",w_.XMLOnlyWorksWithOneItemLists,"name"),this._children[0].name()},e.prototype.normalize=function(){for(var t=0;t<this._children.length;){var e=this._children[t];if(1===e._kind)e.normalize(),t++;else if(3===e._kind){for(t++;t<this._children.length;){var n=this._children[t];if(3!==n._kind)break;e._value+=n._value,this.removeByIndex(t)}0===e._value.length?this.removeByIndex(t):t++}else t++}return this},e.prototype.parent=function(){var t=this._children;if(0!==t.length){for(var e=t[0]._parent,n=1;n<t.length;n++)if(t[n]._parent!==e)return;return e}},e.prototype.processingInstructions=function(t){var e=ID(t,this.sec),n=this.sec.AXXMLList.CreateList(this._targetObject,this._targetProperty);n._targetObject=this,n._targetProperty=null;for(var i=this._children,r=0;r<i.length;r++)i[r].processingInstructionsInto(e,n);return n},e.prototype.text=function(){var t=this.sec.AXXMLList.CreateList(this._targetObject,this._targetProperty);return this._children.forEach((function(e,n){if(1===e._kind){var i=e.text();i._children.length>0&&t._children.push(i)}})),t},e.prototype.toXMLString=function(){var t=this.sec;return this._children.map((function(e){return bD(t,e)})).join(t.AXXML.prettyPrinting?"\n":"")},e.prototype.toJSON=function(t){return"XMLList"},e.prototype.addNamespace=function(t){1!==this._children.length&&this.sec.throwError("TypeError",w_.XMLOnlyWorksWithOneItemLists,"addNamespace");var e=this._children[0];return e.addNamespace(t),e},e.prototype.appendChild=function(t){1!==this._children.length&&this.sec.throwError("TypeError",w_.XMLOnlyWorksWithOneItemLists,"appendChild");var e=this._children[0];return e.appendChild(t),e},e.prototype.append=function(t){var e=this._children,n=e.length;if(t&&t.axClass===this.sec.AXXMLList){this._targetObject=t._targetObject,this._targetProperty=t._targetProperty;var i=t._children;if(0===i.length)return;for(var r=0;r<i.length;r++)e[n+r]=i[r]}else e[n]=t},e.prototype.childIndex=function(){return 1!==this._children.length&&this.sec.throwError("TypeError",w_.XMLOnlyWorksWithOneItemLists,"childIndex"),this._children[0].childIndex()},e.prototype.inScopeNamespaces=function(){return 1!==this._children.length&&this.sec.throwError("TypeError",w_.XMLOnlyWorksWithOneItemLists,"inScopeNamespaces"),this._children[0].inScopeNamespaces()},e.prototype.insertChildAfter=function(t,e){return 1!==this._children.length&&this.sec.throwError("TypeError",w_.XMLOnlyWorksWithOneItemLists,"insertChildAfter"),this._children[0].insertChildAfter(t,e)},e.prototype.insertChildBefore=function(t,e){return 1!==this._children.length&&this.sec.throwError("TypeError",w_.XMLOnlyWorksWithOneItemLists,"insertChildBefore"),this._children[0].insertChildBefore(t,e)},e.prototype.nodeKind=function(){return 1!==this._children.length&&this.sec.throwError("TypeError",w_.XMLOnlyWorksWithOneItemLists,"nodeKind"),this._children[0].nodeKind()},e.prototype.namespace=function(t){1!==this._children.length&&this.sec.throwError("TypeError",w_.XMLOnlyWorksWithOneItemLists,"namespace");var e=this._children[0];return arguments.length?e.namespace(t):e.namespace()},e.prototype.localName=function(){return 1!==this._children.length&&this.sec.throwError("TypeError",w_.XMLOnlyWorksWithOneItemLists,"localName"),this._children[0].localName()},e.prototype.namespaceDeclarations=function(){return 1!==this._children.length&&this.sec.throwError("TypeError",w_.XMLOnlyWorksWithOneItemLists,"namespaceDeclarations"),this._children[0].namespaceDeclarations()},e.prototype.prependChild=function(t){return 1!==this._children.length&&this.sec.throwError("TypeError",w_.XMLOnlyWorksWithOneItemLists,"prependChild"),this._children[0].prependChild(t)},e.prototype.removeNamespace=function(t){return 1!==this._children.length&&this.sec.throwError("TypeError",w_.XMLOnlyWorksWithOneItemLists,"removeNamespace"),this._children[0].removeNamespace(t)},e.prototype.replace=function(t,e){return 1!==this._children.length&&this.sec.throwError("TypeError",w_.XMLOnlyWorksWithOneItemLists,"replace"),this._children[0].replace(t,e)},e.prototype.setChildren=function(t){return 1!==this._children.length&&this.sec.throwError("TypeError",w_.XMLOnlyWorksWithOneItemLists,"setChildren"),this._children[0].setChildren(t)},e.prototype.setLocalName=function(t){return 1!==this._children.length&&this.sec.throwError("TypeError",w_.XMLOnlyWorksWithOneItemLists,"setLocalName"),this._children[0].setLocalName(t)},e.prototype.setName=function(t){return 1!==this._children.length&&this.sec.throwError("TypeError",w_.XMLOnlyWorksWithOneItemLists,"setName"),this._children[0].setName(t)},e.prototype.setNamespace=function(t){return 1!==this._children.length&&this.sec.throwError("TypeError",w_.XMLOnlyWorksWithOneItemLists,"setNamespace"),this._children[0].setNamespace(t)},e.prototype.axGetEnumerableKeys=function(){return this===this.axClass.dPrototype?t.prototype.axGetEnumerableKeys.call(this):Object.keys(this._children)},e.prototype.getProperty=function(t){var e=t.name;if(Cd(e))return this._children[0|e];for(var n=null===e||"*"===e,i=t.isAnyNamespace(),r=t.isAttribute(),o=this.sec.AXXMLList.CreateList(this._targetObject,t),a=this._children,s=0;s<a.length;s++){var u=a[s];if(1===u._kind)if(r)for(var l=u._attributes,c=0;l&&c<l.length;c++){var h=l[c];!n&&h._name.name!==e||!i&&!h._name.matches(t)||o._children.push(h)}else{var p=u._children;for(c=0;p&&c<p.length;c++){var d=p[c];(n||1===d._kind&&d._name.name===e)&&(i||d._name.matches(t))&&o._children.push(d)}}}return o},e.prototype.axGetProperty=function(t){return this===this.axClass.dPrototype?this[this.axResolveMultiname(t)]:this.getProperty(ED(t,this.sec))},e.prototype.axGetPublicProperty=function(t){return this===this.axClass.dPrototype?this[u_.getPublicMangledName(t)]:Cd(t)?this._children[0|t]:(TD.name=t,TD.namespaces=[i_.PUBLIC],TD.kind=7,this.getProperty(TD))},e.prototype.hasProperty=function(t){return!Cd(t.name)||Number(t.name)<this._children.length},e.prototype.axHasProperty=function(t){return this.hasProperty(t)},e.prototype.axHasPropertyInternal=function(t){return this.hasProperty(t)},e.prototype.resolveValue=function(){return this},e.prototype.setProperty=function(t,e){if(Cd(t.name)){var n=0|t.name,i=null;if(this._targetObject&&null===(i=this._targetObject.resolveValue()))return;var r=this._children.length;if(n>=r){if(i&&i.axClass===this.sec.AXXMLList){if(1!==i._children.length)return;i=i._children[0]}if(i&&1!==i._kind)return;var o=this.sec.AXXML.Create();o._parent=i;var a=this._targetProperty,s=3;if(this._targetProperty&&this._targetProperty.isAttribute()){if(i.hasProperty(this._targetProperty))return;s=2}else this._targetProperty&&null!==this._targetProperty.name?s=1:(a=null,s=3);if(o.init(s,a),n=r,2!==o._kind){if(null!==i){var u=void 0;if(n>0){var l=this._children[n-1],c=i._children.length-1;for(u=0;u<c&&i._children[u]!==l;u++);}else u=i._children.length-1;i._children[u+1]=o,Qa(i._children[0]),o._parent=i}e&&e.axClass===this.sec.AXXML?o._name=e._name:e&&e.axClass===this.sec.AXXMLList&&(o._name=e._targetProperty),this.append(o)}}cD(e,this.sec)&&3!==e._kind&&2!==e._kind||(e+="");var h=this._children[n],p=h._kind,d=h._parent;if(2===p){var f=d._children.indexOf(h);return d.setProperty(h._name,!1),this._children[n]=d._children[f],void Qa(this._children[0])}if(e&&e.axClass===this.sec.AXXMLList){var g=e._shallowCopy(),_=g._children.length;if(null!==d){var m=d._children.indexOf(h);d._replaceByIndex(m,g);for(u=0;u<_;u++)g._children[u]=d._children[m+u]}if(0===_){for(u=n+1;u<r;u++)this._children[u-1]=this._children[u],Qa(this._children[0]);this._children.length--}else for(u=r-1;u>n;u--)this._children[u+_-1]=this._children[u],Qa(this._children[0]);for(u=0;u<_;u++)this._children[n+u]=g._children[u],Qa(this._children[0]);return}if(p>=3||e&&e.axClass===this.sec.AXXML){if(null!==d){m=d._children.indexOf(h);d._replaceByIndex(m,e),e=d._children[m]}if("string"==typeof e){var y=this.sec.AXXML.Create(e);this._children[n]=y,Qa(this._children[0])}else this._children[n]=e,Qa(this._children[0]);return}h.setProperty(PD,e)}else{if(0===this._children.length){if(null===(i=this.resolveValue())||1!==i._children.length)return;this.append(i._children[0])}1!==this._children.length?this.sec.throwError("TypeError",w_.XMLAssigmentOneItemLists):this._children[0].setProperty(t,e)}},e.prototype.axSetProperty=function(t,e,n){this!==this.axClass.dPrototype?this.setProperty(ED(t,this.sec),e):this[this.axResolveMultiname(t)]=e},e.prototype.axDeleteProperty=function(t){var e=t.name;if(Cd(e))return(n=0|e)>=this._children.length||this.removeByIndex(n),!0;for(var n=0;n<this._children.length;n++){var i=this._children[n];1===i._kind&&i.deleteProperty(t)}return!0},e.prototype.removeByIndex=function(t){var e=this._children[t],n=e._parent;n&&(e._parent=null,n._children.splice(n._children.indexOf(e),1)),this._children.splice(t,1)},e.prototype.axCallProperty=function(t,e){var n=this[this.axResolveMultiname(t)];return n?(O_(this.sec,n,e.length),n.axApply(this,e)):1===this._children.length?this._children[0].axCallProperty(t,e):void this.sec.throwError("TypeError",w_.CallOfNonFunctionError,"value")},e.instanceConstructor=e,e}(B_);!function(t){t[t.APOS=39]="APOS",t[t.AMP=38]="AMP",t[t.QUOT=34]="QUOT",t[t.LT=60]="LT",t[t.GT=62]="GT"}(kD||(kD={}));var jD=function(t){function e(e,n){return t.call(this)||this}return L_(e,t),e.escapeXML=function(t){for(var e,n=(t=a_(t)).length,i=0;i<n&&(e=t.charCodeAt(i))!==kD.APOS&&e!==kD.AMP&&e!==kD.QUOT&&e!==kD.LT&&e!==kD.GT;)i++;if(i>=n)return t;for(var r=[t.substring(0,i)];i<n;){switch(e){case kD.APOS:r.push("'");break;case kD.AMP:r.push("&");break;case kD.QUOT:r.push(""");break;case kD.LT:r.push("<");break;case kD.GT:r.push(">")}for(var o=++i;i<n&&(e=t.charCodeAt(i))!==kD.APOS&&e!==kD.AMP&&e!==kD.QUOT&&e!==kD.LT&&e!==kD.GT;)i++;o<i&&r.push(t.substring(o,i))}return r.join("")},e}(B_),VD=function(t){function e(e){return t.call(this,1,"")||this}return L_(e,t),e}(jD),QD=function(t){function e(){var e=t.call(this)||this;return e._type=0,e._value=null,e._empty=!1,e._attrs=null,e}return L_(e,t),Object.defineProperty(e.prototype,"type",{get:function(){return this._type},set:function(t){t>>>=0,this._type=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"empty",{get:function(){return this._empty},set:function(t){t=!!t,this._empty=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(t){t=a_(t),this._value=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"attrs",{get:function(){return this._attrs},set:function(t){this._attrs=t},enumerable:!1,configurable:!0}),e}(B_),GD=function(t){function e(){return t.call(this)||this}return L_(e,t),e}(B_);var zD=function(t){function e(e){var n=t.call(this)||this;return n.sec=e,n.queue=[],n.ignoreWhitespace=!1,n}return L_(e,t),e.prototype.onError=function(t){this.queue.push(t)},e.prototype.onPi=function(t,e){},e.prototype.onComment=function(t){},e.prototype.onCdata=function(t){this.queue.push({type:4,value:t})},e.prototype.onDoctype=function(t){},e.prototype.onBeginElement=function(t,e,n){var i=this.sec.createObject();e.forEach((function(t){i.axSetPublicProperty(t.name,t.value)})),this.queue.push({type:1,value:t,empty:n,attrs:i})},e.prototype.onEndElement=function(t){this.queue.push({type:1,value:"/"+t})},e.prototype.onText=function(t){this.ignoreWhitespace&&function(t){for(var e=0;e<t.length;e++){var n=t[e];if(" "!==n&&"\n"!==n&&"\r"!==n&&"\t"!==n)return!1}return!0}(t)||this.queue.push({type:3,value:t})},e}(OD),HD=function(t){function e(){return t.call(this)||this}return L_(e,t),e.prototype.startParse=function(t,e){t=a_(t),e=!!e;var n=new zD(this.sec);n.ignoreWhitespace=e,n.parseXml(t),this.queue=n.queue},e.prototype.getNext=function(t){if(0===this.queue.length)return-1;var e=this.queue.shift();if("number"==typeof e)return e;var n=e;return t.type=n.type,t.value=n.value,t.empty=n.empty||!1,t.attrs=n.attrs||null,0},e}(B_),XD=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return L_(e,t),e.exists=function(){},e.read=function(){},e.write=function(){},e.readByteArray=function(){},e.writeByteArray=function(){},e}(B_);function YD(t,e,n,i){void 0===n&&(n=t),void 0===i&&(i=0),uD[t]=e,lD.push({name:t,alias:n,nsType:i})}function qD(t,e){OS[t]=e}function KD(t){return"string"==typeof t}function WD(t,e){var n=Object.create(e.tPrototype);return n._symbol||(n._symbol=t),n.applySmybol&&n.applySymbol(),n[f_]=!0,n}YD("__AS3__.vec.Vector$object",wm,"ObjectVector",2),YD("__AS3__.vec.Vector$int",Sm,"Int32Vector",2),YD("__AS3__.vec.Vector$uint",Dm,"Uint32Vector",2),YD("__AS3__.vec.Vector$double",Tm,"Float64Vector",2),qD("FlashUtilScript::getDefinitionByName",(function(t,e){var n=String(e).replace("::",".");return DS().env.app.getClass(u_.FromFQNString(n,0))})),qD("FlashUtilScript::getTimer",(function(t){return Date.now()-jg.runtimeStartTime})),qD("FlashUtilScript::navigateToURL",TS),qD("FlashNetScript::navigateToURL",TS),qD("FlashNetScript::sendToURL",(function(t,e){Ya(e)&&t.throwError("TypeError",w_.NullPointerError,"request"),t.flash.net.URLRequest.axClass.axIsType(e)||t.throwError("TypeError",w_.CheckTypeFailedError,e,"flash.net.URLRequest"),console.log("TODO: FlashNetScript_sendToURL: FileLoadingService")})),qD("FlashUtilScript::escapeMultiByte",PS(Wp.escape)),qD("FlashUtilScript::unescapeMultiByte",PS(Wp.unescape)),qD("Toplevel::registerClassAlias",(function(t,e,n){(e=a_(e))||t.throwError("TypeError",w_.NullPointerError,"aliasName"),n||t.throwError("TypeError",w_.NullPointerError,"classObject"),t.classAliases.registerClassAlias(e,n)})),qD("Toplevel::getClassByAlias",(function(t,e){(e=a_(e))||t.throwError("TypeError",w_.NullPointerError,"aliasName");var n=t.classAliases.getClassByAlias(e);return n||t.throwError("ReferenceError",w_.ClassNotFoundError,e),n}));var JD=function(){function t(e,n,i){void 0===i&&(i=!1),t.ID++,this[f_]=!0,this.init(e,n,i)}return t.prototype.toString=function(){return this.parent+" => "+this.object+" "+this.isWith},t.prototype.init=function(t,e,n){void 0===n&&(n=!1),this.parent=t,this.object=e,this.global=t?t.global:this,this.isWith=n,this.cache=[],this.defaultNamespace=null,e.__scope__=this},Object.defineProperty(t.prototype,"superConstructor",{get:function(){var t=this.object.superClass;if(!t)return null;var e=t[f_]?t.tPrototype.axInitializer:t;return Object.defineProperty(this,"superConstructor",{value:e}),e},enumerable:!1,configurable:!0}),t.prototype.extend=function(e){if(e===this.object)return this;var n=e.__scope__;return n&&n.parent==this?n:new t(this,e,!1)},t.prototype.findDepth=function(t){for(var e=this,n=0;e;){if(e.object===t)return n;n++,e=e.parent}return-1},t.prototype.getScopeObjects=function(){for(var t=[],e=this;e;)t.unshift(e.object),e=e.parent;return t},t.prototype.getScopeProperty=function(t,e,n){return this.findScopeProperty(t,e,n).axGetProperty(t)},t.prototype.findScopeProperty=function(t,e,n){if(t.mutable||n)return this._findScopeProperty(t,e,n);if(t.scope===this.object&&!this.isWith)return t.value;var i=this._findScopeProperty(t,e,n);return this.isWith||(t.value=i,t.scope=this.object),i},t.prototype._findScopeProperty=function(t,e,n){null===t.name&&this.global.object.sec.throwError("ReferenceError",w_.UndefinedVarError,"*");var i=this.cache[t.id];if(i)return i;if(this.object&&this.object[f_]&&(this.isWith?this.object.axHasPropertyInternal(t):this.object.traits.getTrait(t.namespaces,t.name)))return this.isWith||t.isRuntime()?this.object:this.cache[t.id]=this.object;if(this.parent)return i=this.parent.findScopeProperty(t,e,n),7===t.kind&&(this.cache[t.id]=i),i;if(n)return null;t.isAttribute()&&this.object.sec.throwError("ReferenceError",w_.UndefinedVarError,t.name);var r=this.global.object;return(i=r.applicationDomain.findProperty(t,e,!0))?i:(e&&(t.getPublicMangledName()in r||this.global.object.sec.throwError("ReferenceError",w_.UndefinedVarError,t.name)),r)},t.ID=0,t}();function $D(t){var e=t.axClass;if(!e||e===e.sec.AXObject)return null;var n=e.dPrototype;return n===t&&(n=e.superClass.dPrototype),n}var ZD=function(){function t(t,e){this.object=t,this.index=e}return t.prototype.next=function(t,e){if(xd(t))return this.index=0,void(this.object=null);this.object=t,this.index=e;var n=t.axNextNameIndex(this.index);if(n>0)this.index=n;else{for(;!(n>0);){if(!(t=$D(t)))return this.index=0,void(this.object=null);n=t.axNextNameIndex(0)}this.index=n,this.object=t}},t}();function tT(t,e,n){return cD(t,n)?t.equals(e):cD(e,n)?e.equals(t):t==e}function eT(t,e){return e.AXXML.dPrototype.isPrototypeOf(t)||e.AXXMLList.dPrototype.isPrototypeOf(t)}function nT(t,e,n){return eT(t,n)||n.throwError("TypeError",w_.DescendentsError,t),t.descendants(e)}function iT(t,e){if(!e||!hD(t,e)){var n=e&&e.axClass?e.axClass.name.toFQNString(!1):"[unknown]";t.throwError("TypeError",w_.FilterError,n)}return e}function rT(t){return"string"==typeof t?t:t+""}function oT(t,e,n){return"string"==typeof t||"string"==typeof e?String(t)+String(e):hD(n,t)&&hD(n,e)?UD.addXML(t,e):t+e}function aT(t,e){if(t){if(t.value)return typeof t.value;if(eT(t,e))return"xml"}return typeof t}function sT(t){return"Bytecode: "+t}var uT=new Uint32Array(256),lT=new Array(256);function cT(t,e,n){void 0===n&&(n=0),uT[t]=n,lT[t]=e}cT(1,""),cT(2,""),cT(3,""),cT(4,"e"),cT(5,"e"),cT(6,"e"),cT(7,""),cT(8,"e"),cT(9,""),cT(10,""),cT(11,""),cT(12,"d"),cT(13,"d"),cT(14,"d"),cT(15,"d"),cT(16,"d"),cT(17,"d"),cT(18,"d"),cT(19,"d"),cT(20,"d"),cT(21,"d"),cT(22,"d"),cT(23,"d"),cT(24,"d"),cT(25,"d"),cT(26,"d"),cT(27,""),cT(28,""),cT(29,""),cT(30,""),cT(31,""),cT(32,""),cT(33,""),cT(35,""),cT(36,"b"),cT(37,"c"),cT(38,""),cT(39,""),cT(40,""),cT(41,""),cT(42,""),cT(43,""),cT(44,"e"),cT(45,"e"),cT(46,"e"),cT(47,"e"),cT(48,""),cT(49,"e"),cT(50,"ee"),cT(53,""),cT(54,""),cT(55,""),cT(56,""),cT(57,""),cT(58,""),cT(59,""),cT(60,""),cT(61,""),cT(62,""),cT(64,"e"),cT(65,"e"),cT(66,"e"),cT(67,"ee"),cT(68,"ee"),cT(69,"ee"),cT(70,"ee"),cT(71,""),cT(72,""),cT(73,"e"),cT(74,"ee"),cT(75,""),cT(76,"ee"),cT(77,""),cT(78,"ee"),cT(79,"ee"),cT(80,""),cT(81,""),cT(82,""),cT(83,"e"),cT(84,""),cT(85,"e"),cT(86,"e"),cT(87,""),cT(88,"e"),cT(89,"e"),cT(90,"e"),cT(93,"e"),cT(94,"e"),cT(95,""),cT(96,"e"),cT(97,"e"),cT(98,"e"),cT(99,"e"),cT(100,""),cT(101,"e"),cT(102,"e"),cT(103,""),cT(104,"e"),cT(106,"e"),cT(108,"e"),cT(109,"e"),cT(110,"e"),cT(111,"e"),cT(112,""),cT(113,""),cT(114,""),cT(115,""),cT(116,""),cT(117,""),cT(118,""),cT(119,""),cT(120,""),cT(121,""),cT(122,""),cT(123,""),cT(128,"e"),cT(129,""),cT(130,""),cT(131,""),cT(132,""),cT(133,""),cT(134,"e"),cT(135,""),cT(136,""),cT(137,""),cT(144,""),cT(145,""),cT(146,"e"),cT(147,""),cT(148,"e"),cT(149,""),cT(150,""),cT(151,""),cT(160,""),cT(161,""),cT(162,""),cT(163,""),cT(164,""),cT(165,""),cT(166,""),cT(167,""),cT(168,""),cT(169,""),cT(170,""),cT(171,""),cT(172,""),cT(173,""),cT(174,""),cT(175,""),cT(176,""),cT(177,""),cT(178,"e"),cT(179,""),cT(180,""),cT(192,""),cT(193,""),cT(194,"e"),cT(195,"e"),cT(196,""),cT(197,""),cT(198,""),cT(199,""),cT(208,""),cT(209,""),cT(210,""),cT(211,""),cT(212,""),cT(213,""),cT(214,""),cT(215,""),cT(237,""),cT(239,"aeae"),cT(240,"e"),cT(241,"e"),cT(242,"e"),cT(243,"");var hT=function(){function t(){}return t.u8=function(t,e){return t[e]},t.s32=function(t,e){var n=t[e];return 128&n&&16384&(n=127&n|t[e+1]<<7)&&2097152&(n=16383&n|t[e+2]<<14)&&268435456&(n=2097151&n|t[e+3]<<21)&&(n=268435455&n|t[e+4]<<28,n&=4294967295),n},t.u32=function(e,n){return t.s32(e,n)>>>0},t.u30=function(e,n){return t.u32(e,n)},t.s32Length=function(t,e){var n=t[e];return 128&n?16384&(n=127&n|t[e+1]<<7)?2097152&(n=16383&n|t[e+2]<<14)?268435456&(n=2097151&n|t[e+3]<<21)?5:4:3:2:1},t}();var pT,dT=function(){function t(t){this._code=t,this.setBCI(0)}return t.prototype.next=function(){this.setBCI(this._nextBCI)},t.prototype.endBCI=function(){return this._code.length},Object.defineProperty(t.prototype,"nextBCI",{get:function(){return this._nextBCI},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentBCI",{get:function(){return this._currentBCI},enumerable:!1,configurable:!0}),t.prototype.currentBytecode=function(){return this._bytecode},t.prototype.nextBC=function(){return hT.u8(this._code,this._nextBCI)},t.prototype.setBCI=function(t){if(this._currentBCI=t,this._currentBCI<this._code.length){this._bytecode=hT.u8(this._code,t);var e=function(t,e){var n=1,i=t[e];if(27===i){n+=3;var r=hT.u30(t,e+n)+1;return(n+=hT.s32Length(t,e+n))+3*r}var o=lT[i];if(""===o)return n;Qa(o,"OP: "+sT(i));for(var a=0;a<o.length;a++)switch(o[a].charCodeAt(0)-97){case 0:case 1:n+=1;continue;case 3:n+=3;continue;case 2:case 4:case 5:n+=hT.s32Length(t,e+n);continue}return n}(this._code,t);this._nextBCI=t+e}else this._bytecode=255,this._nextBCI=this._currentBCI},t}();!function(t){t[t.BKPT=1]="BKPT",t[t.NOP=2]="NOP",t[t.THROW=3]="THROW",t[t.GETSUPER=4]="GETSUPER",t[t.GETSUPER_DYN=260]="GETSUPER_DYN",t[t.SETSUPER=5]="SETSUPER",t[t.SETSUPER_DYN=261]="SETSUPER_DYN",t[t.DXNS=6]="DXNS",t[t.DXNSLATE=7]="DXNSLATE",t[t.KILL=8]="KILL",t[t.LABEL=9]="LABEL",t[t.LF32X4=10]="LF32X4",t[t.SF32X4=11]="SF32X4",t[t.IFNLT=12]="IFNLT",t[t.IFNLE=13]="IFNLE",t[t.IFNGT=14]="IFNGT",t[t.IFNGE=15]="IFNGE",t[t.JUMP=16]="JUMP",t[t.IFTRUE=17]="IFTRUE",t[t.IFFALSE=18]="IFFALSE",t[t.IFEQ=19]="IFEQ",t[t.IFNE=20]="IFNE",t[t.IFLT=21]="IFLT",t[t.IFLE=22]="IFLE",t[t.IFGT=23]="IFGT",t[t.IFGE=24]="IFGE",t[t.IFSTRICTEQ=25]="IFSTRICTEQ",t[t.IFSTRICTNE=26]="IFSTRICTNE",t[t.LOOKUPSWITCH=27]="LOOKUPSWITCH",t[t.PUSHWITH=28]="PUSHWITH",t[t.POPSCOPE=29]="POPSCOPE",t[t.NEXTNAME=30]="NEXTNAME",t[t.HASNEXT=31]="HASNEXT",t[t.PUSHNULL=32]="PUSHNULL",t[t.PUSHUNDEFINED=33]="PUSHUNDEFINED",t[t.PUSHFLOAT=34]="PUSHFLOAT",t[t.NEXTVALUE=35]="NEXTVALUE",t[t.PUSHBYTE=36]="PUSHBYTE",t[t.PUSHSHORT=37]="PUSHSHORT",t[t.PUSHTRUE=38]="PUSHTRUE",t[t.PUSHFALSE=39]="PUSHFALSE",t[t.PUSHNAN=40]="PUSHNAN",t[t.POP=41]="POP",t[t.DUP=42]="DUP",t[t.SWAP=43]="SWAP",t[t.PUSHSTRING=44]="PUSHSTRING",t[t.PUSHINT=45]="PUSHINT",t[t.PUSHUINT=46]="PUSHUINT",t[t.PUSHDOUBLE=47]="PUSHDOUBLE",t[t.PUSHSCOPE=48]="PUSHSCOPE",t[t.PUSHNAMESPACE=49]="PUSHNAMESPACE",t[t.HASNEXT2=50]="HASNEXT2",t[t.LI8=53]="LI8",t[t.LI16=54]="LI16",t[t.LI32=55]="LI32",t[t.LF32=56]="LF32",t[t.LF64=57]="LF64",t[t.SI8=58]="SI8",t[t.SI16=59]="SI16",t[t.SI32=60]="SI32",t[t.SF32=61]="SF32",t[t.SF64=62]="SF64",t[t.NEWFUNCTION=64]="NEWFUNCTION",t[t.CALL=65]="CALL",t[t.CONSTRUCT=66]="CONSTRUCT",t[t.CALLMETHOD=67]="CALLMETHOD",t[t.CALLSTATIC=68]="CALLSTATIC",t[t.CALLSUPER=69]="CALLSUPER",t[t.CALLSUPER_DYN=325]="CALLSUPER_DYN",t[t.CALLPROPERTY=70]="CALLPROPERTY",t[t.CALLPROPERTY_DYN=326]="CALLPROPERTY_DYN",t[t.RETURNVOID=71]="RETURNVOID",t[t.RETURNVALUE=72]="RETURNVALUE",t[t.CONSTRUCTSUPER=73]="CONSTRUCTSUPER",t[t.CONSTRUCTSUPER_DYN=329]="CONSTRUCTSUPER_DYN",t[t.CONSTRUCTPROP=74]="CONSTRUCTPROP",t[t.CONSTRUCTPROP_DYN=330]="CONSTRUCTPROP_DYN",t[t.CALLSUPERID=75]="CALLSUPERID",t[t.CALLPROPLEX=76]="CALLPROPLEX",t[t.CALLPROPLEX_DYN=332]="CALLPROPLEX_DYN",t[t.CALLINTERFACE=77]="CALLINTERFACE",t[t.CALLSUPERVOID=78]="CALLSUPERVOID",t[t.CALLSUPERVOID_DYN=334]="CALLSUPERVOID_DYN",t[t.CALLPROPVOID=79]="CALLPROPVOID",t[t.SXI1=80]="SXI1",t[t.SXI8=81]="SXI8",t[t.SXI16=82]="SXI16",t[t.APPLYTYPE=83]="APPLYTYPE",t[t.PUSHFLOAT4=84]="PUSHFLOAT4",t[t.NEWOBJECT=85]="NEWOBJECT",t[t.NEWARRAY=86]="NEWARRAY",t[t.NEWACTIVATION=87]="NEWACTIVATION",t[t.NEWCLASS=88]="NEWCLASS",t[t.GETDESCENDANTS=89]="GETDESCENDANTS",t[t.NEWCATCH=90]="NEWCATCH",t[t.FINDPROPSTRICT=93]="FINDPROPSTRICT",t[t.FINDPROPSTRICT_DYN=349]="FINDPROPSTRICT_DYN",t[t.FINDPROPERTY=94]="FINDPROPERTY",t[t.FINDPROPERTY_DYN=350]="FINDPROPERTY_DYN",t[t.FINDDEF=95]="FINDDEF",t[t.GETLEX=96]="GETLEX",t[t.GETLEX_DYN=352]="GETLEX_DYN",t[t.SETPROPERTY=97]="SETPROPERTY",t[t.SETPROPERTY_DYN=353]="SETPROPERTY_DYN",t[t.GETLOCAL=98]="GETLOCAL",t[t.SETLOCAL=99]="SETLOCAL",t[t.GETGLOBALSCOPE=100]="GETGLOBALSCOPE",t[t.GETSCOPEOBJECT=101]="GETSCOPEOBJECT",t[t.GETPROPERTY=102]="GETPROPERTY",t[t.GETPROPERTY_DYN=358]="GETPROPERTY_DYN",t[t.GETOUTERSCOPE=103]="GETOUTERSCOPE",t[t.INITPROPERTY=104]="INITPROPERTY",t[t.UNUSED_69=105]="UNUSED_69",t[t.DELETEPROPERTY=106]="DELETEPROPERTY",t[t.DELETEPROPERTY_DYN=362]="DELETEPROPERTY_DYN",t[t.UNUSED_6B=107]="UNUSED_6B",t[t.GETSLOT=108]="GETSLOT",t[t.SETSLOT=109]="SETSLOT",t[t.GETGLOBALSLOT=110]="GETGLOBALSLOT",t[t.SETGLOBALSLOT=111]="SETGLOBALSLOT",t[t.CONVERT_S=112]="CONVERT_S",t[t.ESC_XELEM=113]="ESC_XELEM",t[t.ESC_XATTR=114]="ESC_XATTR",t[t.CONVERT_I=115]="CONVERT_I",t[t.CONVERT_U=116]="CONVERT_U",t[t.CONVERT_D=117]="CONVERT_D",t[t.CONVERT_B=118]="CONVERT_B",t[t.CONVERT_O=119]="CONVERT_O",t[t.CHECKFILTER=120]="CHECKFILTER",t[t.CONVERT_F=121]="CONVERT_F",t[t.UNPLUS=122]="UNPLUS",t[t.CONVERT_F4=123]="CONVERT_F4",t[t.BC_7C=124]="BC_7C",t[t.BC_7D=125]="BC_7D",t[t.BC_7E=126]="BC_7E",t[t.BC_7F=127]="BC_7F",t[t.COERCE=128]="COERCE",t[t.COERCE_DYN=384]="COERCE_DYN",t[t.COERCE_B=129]="COERCE_B",t[t.COERCE_A=130]="COERCE_A",t[t.COERCE_I=131]="COERCE_I",t[t.COERCE_D=132]="COERCE_D",t[t.COERCE_S=133]="COERCE_S",t[t.ASTYPE=134]="ASTYPE",t[t.ASTYPELATE=135]="ASTYPELATE",t[t.COERCE_U=136]="COERCE_U",t[t.COERCE_O=137]="COERCE_O",t[t.NEGATE=144]="NEGATE",t[t.INCREMENT=145]="INCREMENT",t[t.INCLOCAL=146]="INCLOCAL",t[t.DECREMENT=147]="DECREMENT",t[t.DECLOCAL=148]="DECLOCAL",t[t.TYPEOF=149]="TYPEOF",t[t.NOT=150]="NOT",t[t.BITNOT=151]="BITNOT",t[t.UNUSED_98=152]="UNUSED_98",t[t.UNUSED_99=153]="UNUSED_99",t[t.UNUSED_9A=154]="UNUSED_9A",t[t.UNUSED_9B=155]="UNUSED_9B",t[t.UNUSED_9C=156]="UNUSED_9C",t[t.UNUSED_9D=157]="UNUSED_9D",t[t.UNUSED_9E=158]="UNUSED_9E",t[t.UNUSED_9F=159]="UNUSED_9F",t[t.ADD=160]="ADD",t[t.SUBTRACT=161]="SUBTRACT",t[t.MULTIPLY=162]="MULTIPLY",t[t.DIVIDE=163]="DIVIDE",t[t.MODULO=164]="MODULO",t[t.LSHIFT=165]="LSHIFT",t[t.RSHIFT=166]="RSHIFT",t[t.URSHIFT=167]="URSHIFT",t[t.BITAND=168]="BITAND",t[t.BITOR=169]="BITOR",t[t.BITXOR=170]="BITXOR",t[t.EQUALS=171]="EQUALS",t[t.STRICTEQUALS=172]="STRICTEQUALS",t[t.LESSTHAN=173]="LESSTHAN",t[t.LESSEQUALS=174]="LESSEQUALS",t[t.GREATERTHAN=175]="GREATERTHAN",t[t.GREATEREQUALS=176]="GREATEREQUALS",t[t.INSTANCEOF=177]="INSTANCEOF",t[t.ISTYPE=178]="ISTYPE",t[t.ISTYPELATE=179]="ISTYPELATE",t[t.IN=180]="IN",t[t.UNUSED_B5=181]="UNUSED_B5",t[t.UNUSED_B6=182]="UNUSED_B6",t[t.UNUSED_B7=183]="UNUSED_B7",t[t.UNUSED_B8=184]="UNUSED_B8",t[t.UNUSED_B9=185]="UNUSED_B9",t[t.UNUSED_BA=186]="UNUSED_BA",t[t.UNUSED_BB=187]="UNUSED_BB",t[t.UNUSED_BC=188]="UNUSED_BC",t[t.UNUSED_BD=189]="UNUSED_BD",t[t.UNUSED_BE=190]="UNUSED_BE",t[t.UNUSED_BF=191]="UNUSED_BF",t[t.INCREMENT_I=192]="INCREMENT_I",t[t.DECREMENT_I=193]="DECREMENT_I",t[t.INCLOCAL_I=194]="INCLOCAL_I",t[t.DECLOCAL_I=195]="DECLOCAL_I",t[t.NEGATE_I=196]="NEGATE_I",t[t.ADD_I=197]="ADD_I",t[t.SUBTRACT_I=198]="SUBTRACT_I",t[t.MULTIPLY_I=199]="MULTIPLY_I",t[t.UNUSED_C8=200]="UNUSED_C8",t[t.UNUSED_C9=201]="UNUSED_C9",t[t.UNUSED_CA=202]="UNUSED_CA",t[t.UNUSED_CB=203]="UNUSED_CB",t[t.UNUSED_CC=204]="UNUSED_CC",t[t.UNUSED_CD=205]="UNUSED_CD",t[t.UNUSED_CE=206]="UNUSED_CE",t[t.UNUSED_CF=207]="UNUSED_CF",t[t.GETLOCAL0=208]="GETLOCAL0",t[t.GETLOCAL1=209]="GETLOCAL1",t[t.GETLOCAL2=210]="GETLOCAL2",t[t.GETLOCAL3=211]="GETLOCAL3",t[t.SETLOCAL0=212]="SETLOCAL0",t[t.SETLOCAL1=213]="SETLOCAL1",t[t.SETLOCAL2=214]="SETLOCAL2",t[t.SETLOCAL3=215]="SETLOCAL3",t[t.UNUSED_D8=216]="UNUSED_D8",t[t.UNUSED_D9=217]="UNUSED_D9",t[t.UNUSED_DA=218]="UNUSED_DA",t[t.UNUSED_DB=219]="UNUSED_DB",t[t.UNUSED_DC=220]="UNUSED_DC",t[t.UNUSED_DD=221]="UNUSED_DD",t[t.UNUSED_DE=222]="UNUSED_DE",t[t.UNUSED_DF=223]="UNUSED_DF",t[t.UNUSED_E0=224]="UNUSED_E0",t[t.UNUSED_E1=225]="UNUSED_E1",t[t.UNUSED_E2=226]="UNUSED_E2",t[t.UNUSED_E3=227]="UNUSED_E3",t[t.UNUSED_E4=228]="UNUSED_E4",t[t.UNUSED_E5=229]="UNUSED_E5",t[t.UNUSED_E6=230]="UNUSED_E6",t[t.UNUSED_E7=231]="UNUSED_E7",t[t.UNUSED_E8=232]="UNUSED_E8",t[t.UNUSED_E9=233]="UNUSED_E9",t[t.UNUSED_EA=234]="UNUSED_EA",t[t.UNUSED_EB=235]="UNUSED_EB",t[t.UNUSED_EC=236]="UNUSED_EC",t[t.UNUSED_ED=237]="UNUSED_ED",t[t.UNUSED_EE=238]="UNUSED_EE",t[t.INVALID=237]="INVALID",t[t.DEBUG=239]="DEBUG",t[t.DEBUGLINE=240]="DEBUGLINE",t[t.DEBUGFILE=241]="DEBUGFILE",t[t.BKPTLINE=242]="BKPTLINE",t[t.TIMESTAMP=243]="TIMESTAMP",t[t.RESTARGC=244]="RESTARGC",t[t.RESTARG=245]="RESTARG",t[t.UNUSED_F6=246]="UNUSED_F6",t[t.UNUSED_F7=247]="UNUSED_F7",t[t.UNUSED_F8=248]="UNUSED_F8",t[t.UNUSED_F9=249]="UNUSED_F9",t[t.UNUSED_FA=250]="UNUSED_FA",t[t.UNUSED_FB=251]="UNUSED_FB",t[t.UNUSED_FC=252]="UNUSED_FC",t[t.UNUSED_FD=253]="UNUSED_FD",t[t.UNUSED_FE=254]="UNUSED_FE",t[t.END=255]="END"}(pT||(pT={}));var fT=31,gT=function(){function t(t,e,n,i,r,o,a){void 0===n&&(n=null),void 0===i&&(i=0),void 0===r&&(r=0),void 0===o&&(o=!1),void 0===a&&(a=[]),this.position=t,this.name=e,this.params=n,this.delta=i,this.deltaScope=r,this.terminal=o,this.refs=a,this.stack=-1024,this.scope=-1024,this.catchStart=!1,this.catchEnd=!1,this.returnTypeId=-1,this.childs=[],this.comment=null}return t.prototype.toString=function(){return"Instruction(".concat(this.position,", ").concat(pT[this.name]," (").concat(this.name,"), [").concat(this.params,"], ").concat(this.stack," -> ").concat(this.stack+this.delta,", ").concat(this.scope," -> ").concat(this.scope+this.deltaScope,", ").concat(this.terminal,", [").concat(this.refs,"])")},t}();function _T(t,e,n){for(var i=e,r=n.length,o=e,a=0;a<r;a++)if(n[a].position>=t){if(n[a].stack>=0)return o;n[a].stack=i,(i+=n[a].delta)<o&&(o=i);for(var s=0;s<n[a].refs.length;s++){var u=_T(n[a].refs[s],i,n);u<o&&(o=u)}if(n[a].terminal)return o}return o}function mT(t,e,n){for(var i=e,r=n.length,o=0;o<r;o++)if(n[o].position>=t){if(n[o].scope>=0)return;n[o].scope=i,i+=n[o].deltaScope;for(var a=0;a<n[o].refs.length;a++)mT(n[o].refs[a],i,n);if(n[o].terminal)return}}function yT(t){var e=t.code,n=t.index,i=e[n++];return 128&i&&16384&(i=127&i|e[n++]<<7)&&2097152&(i=16383&i|e[n++]<<14)&&268435456&(i=2097151&i|e[n++]<<21)&&(i=268435455&i|e[n++]<<28,i&=4294967295),t.index=n,i>>>0}function AT(t){var e=yT(t),n=t.abc.getMultiname(e),i=t.currentMn;return i[0]=e,n.isRuntimeName()||n.isRuntimeNamespace()?(i[1]=256,i[2]=n.isRuntimeName()&&n.isRuntimeNamespace()?-2:-1,i):(i[1]=0,i[2]=0,i)}function vT(t){var e=t.code,n=t.index,i=e[n++]|e[n++]<<8|e[n++]<<16;return i=i<<8>>8,t.index=n,i}function bT(t){return t.code[t.index++]<<24>>24}function CT(t){for(var e=t.abc,n=t.getBody(),i=n.code,r=[],o={index:0,abc:e,code:i,currentMn:[0,0,0]},a=0,s=0,u=!1;o.index<i.length;){var l=o.index,c=i[o.index++],h=s_.OPTIMISE_ON_IR?r[r.length-1]:null,p=void 0;switch(c){case pT.LABEL:p=new gT(l,c);break;case pT.DXNSLATE:p=new gT(l,c,0,-1);break;case pT.DEBUGFILE:case pT.DEBUGLINE:p=new gT(l,c,yT(o));break;case pT.DEBUG:p=new gT(l,c,[bT(o),yT(o),bT(o),yT(o)]);break;case pT.THROW:p=new gT(l,c,null,-1,0,!0);break;case pT.PUSHSCOPE:(p=new gT(l,c,null,-1,1)).returnTypeId=s=++a;break;case pT.PUSHWITH:p=new gT(l,c,null,-1,1);break;case pT.POPSCOPE:p=new gT(l,c,null,0,-1);break;case pT.GETSCOPEOBJECT:(p=new gT(l,c,bT(o),1,0)).returnTypeId=s=++a,u=!0;break;case pT.GETGLOBALSCOPE:(p=new gT(l,c,null,1)).returnTypeId=s=++a,u=!0;break;case pT.GETSLOT:(p=new gT(l,c,yT(o),0)).returnTypeId=s=++a;break;case pT.SETSLOT:p=new gT(l,c,yT(o),-2);break;case pT.NEXTNAME:case pT.NEXTVALUE:(p=new gT(l,c,null,-1)).returnTypeId=s=++a;break;case pT.HASNEXT:(p=new gT(l,c,null,-1)).returnTypeId=s=-2;break;case pT.HASNEXT2:(p=new gT(l,c,[yT(o),yT(o)],1)).returnTypeId=s=-2;break;case pT.IN:(p=new gT(l,c,null,-1)).returnTypeId=s=-2;break;case pT.DUP:if((p=new gT(l,c,null,1)).returnTypeId=s=a,h)switch(h.name){case pT.PUSHTRUE:case pT.PUSHFALSE:case pT.PUSHNAN:case pT.PUSHINT:case pT.PUSHDOUBLE:case pT.PUSHBYTE:case pT.PUSHFLOAT:case pT.PUSHSTRING:case pT.PUSHNULL:p.name=h.name,p.params=h.params,p.comment="IR: DUP changed to PUSH*, reason: prevent optimisation"}break;case pT.POP:(p=new gT(l,c,null,-1)).returnTypeId=s=a,h&&h.name===pT.CALLPROPERTY&&(h.name=pT.CALLPROPVOID,h.comment='IR: Optimised from "CALLPROPERTY", reason: POP STACK');break;case pT.SWAP:p=new gT(l,c,null,0);break;case pT.PUSHTRUE:case pT.PUSHFALSE:(p=new gT(l,c,null,1)).returnTypeId=s=-2;break;case pT.PUSHBYTE:(p=new gT(l,c,bT(o),1)).returnTypeId=s=-3;break;case pT.PUSHSHORT:(p=new gT(l,c,yT(o)<<16>>16,1)).returnTypeId=s=-3;break;case pT.PUSHINT:case pT.PUSHUINT:case pT.PUSHDOUBLE:(p=new gT(l,c,yT(o),1)).returnTypeId=s=-3;break;case pT.PUSHNAN:(p=new gT(l,c,null,1)).returnTypeId=s=-3;break;case pT.PUSHNULL:(p=new gT(l,c,null,1)).returnTypeId=s=-6;break;case pT.PUSHUNDEFINED:(p=new gT(l,c,null,1)).returnTypeId=s=-5;break;case pT.PUSHSTRING:(p=new gT(l,c,yT(o),1)).returnTypeId=s=-4;break;case pT.IFEQ:var d=vT(o),f=o.index;p=new gT(l,c,f+d,-2,0,!1,[f+d]);break;case pT.IFNE:d=vT(o),f=o.index;p=new gT(l,c,f+d,-2,0,!1,[f+d]);break;case pT.IFSTRICTEQ:d=vT(o),f=o.index;p=new gT(l,c,f+d,-2,0,!1,[f+d]);break;case pT.IFSTRICTNE:d=vT(o),f=o.index;p=new gT(l,c,f+d,-2,0,!1,[f+d]);break;case pT.IFGT:case pT.IFNLE:d=vT(o),f=o.index;p=new gT(l,c,f+d,-2,0,!1,[f+d]);break;case pT.IFGE:case pT.IFNLT:d=vT(o),f=o.index;p=new gT(l,c,f+d,-2,0,!1,[f+d]);break;case pT.IFLT:case pT.IFNGE:d=vT(o),f=o.index;p=new gT(l,c,f+d,-2,0,!1,[f+d]);break;case pT.IFLE:case pT.IFNGT:d=vT(o),f=o.index;p=new gT(l,c,f+d,-2,0,!1,[f+d]);break;case pT.IFTRUE:d=vT(o),f=o.index;p=new gT(l,c,f+d,-1,0,!1,[f+d]);break;case pT.IFFALSE:d=vT(o),f=o.index;p=new gT(l,c,f+d,-1,0,!1,[f+d]);break;case pT.LOOKUPSWITCH:var g=l+vT(o),_=yT(o),m=[g];for(d=0;d<=_;d++)m.push(l+vT(o));p=new gT(l,c,m,-1,0,!0,m);break;case pT.JUMP:d=vT(o),f=o.index;p=new gT(l,c,f+d,0,0,!0,[f+d]);break;case pT.RETURNVALUE:p=new gT(l,c,null,-1,0,!0);break;case pT.RETURNVOID:p=new gT(l,c,null,0,0,!0);break;case pT.NOT:(p=new gT(l,c,null,0)).returnTypeId=s=-2;break;case pT.BITNOT:case pT.NEGATE:case pT.INCREMENT:case pT.DECREMENT:(p=new gT(l,c,null,0)).returnTypeId=s=-3;break;case pT.INCLOCAL:case pT.DECLOCAL:(p=new gT(l,c,yT(o),0)).returnTypeId=s=-3;break;case pT.INCREMENT_I:case pT.DECREMENT_I:(p=new gT(l,c,null,0)).returnTypeId=s=-3;break;case pT.INCLOCAL_I:case pT.DECLOCAL_I:(p=new gT(l,c,yT(o),0)).returnTypeId=s=-3;break;case pT.NEGATE_I:(p=new gT(l,c,null,0)).returnTypeId=s=-3;break;case pT.ADD_I:case pT.SUBTRACT_I:case pT.MULTIPLY_I:case pT.ADD:case pT.SUBTRACT:case pT.MULTIPLY:case pT.DIVIDE:case pT.MODULO:case pT.LSHIFT:case pT.RSHIFT:case pT.URSHIFT:case pT.BITAND:case pT.BITOR:case pT.BITXOR:(p=new gT(l,c,null,-1)).returnTypeId=s=-3;break;case pT.EQUALS:case pT.STRICTEQUALS:case pT.GREATERTHAN:case pT.GREATEREQUALS:case pT.LESSTHAN:case pT.LESSEQUALS:(p=new gT(l,c,null,-1)).returnTypeId=s=-2;break;case pT.TYPEOF:(p=new gT(l,c,null,0)).returnTypeId=s=++a;break;case pT.INSTANCEOF:(p=new gT(l,c,null,-1)).returnTypeId=s=-2;break;case pT.ISTYPE:var y=AT(o),A=y[0],v=y[2];(p=new gT(l,c,A,0+v)).returnTypeId=s=-2,u=!0;break;case pT.ISTYPELATE:(p=new gT(l,c,null,-1)).returnTypeId=s=-2,u=!0;break;case pT.ASTYPELATE:p=new gT(l,c,null,-1);break;case pT.ASTYPE:var b=AT(o);A=b[0],v=b[2];p=new gT(l,c,A,0+v),u=!0;break;case pT.CALL:var C=yT(o);p=new gT(l,c,C,-C-1),u=!0;break;case pT.CONSTRUCT:C=yT(o);(p=new gT(l,c,C,-C)).returnTypeId=s=++a;break;case pT.CALLPROPERTY:var x=AT(o),I=(A=x[0],x[1]);v=x[2],C=yT(o);(p=new gT(l,c+I,[C,A],-C+v)).returnTypeId=s=++a,u=u||0!==I;break;case pT.CALLPROPLEX:var E=AT(o);A=E[0],I=E[1],v=E[2],C=yT(o);(p=new gT(l,c+I,[C,A],-C+v)).returnTypeId=s=++a,u=u||0!==I;break;case pT.CALLPROPVOID:var w=AT(o);A=w[0],I=w[1],v=w[2],C=yT(o);p=new gT(l,c+I,[C,A],-(C+1)+v);break;case pT.APPLYTYPE:C=yT(o);(p=new gT(l,c,C,-C)).returnTypeId=s=a;break;case pT.FINDPROPSTRICT:var S=AT(o);A=S[0],I=S[1],v=S[2];(p=new gT(l,c+I,A,1+v)).returnTypeId=s=++a,u=!0;break;case pT.FINDPROPERTY:var D=AT(o);A=D[0],I=D[1],v=D[2];(p=new gT(l,c+I,A,1+v)).returnTypeId=s=++a,u=!0;break;case pT.NEWFUNCTION:(p=new gT(l,c,yT(o),1)).returnTypeId=s=++a,u=!0;break;case pT.NEWCLASS:(p=new gT(l,c,yT(o),0)).returnTypeId=s=++a,u=!0;break;case pT.GETDESCENDANTS:(p=new gT(l,c,yT(o),0)).returnTypeId=s=++a;break;case pT.NEWARRAY:C=yT(o);(p=new gT(l,c,C,1-C)).returnTypeId=s=++a;break;case pT.NEWOBJECT:C=yT(o);(p=new gT(l,c,C,-2*C+1)).returnTypeId=s=++a;break;case pT.NEWACTIVATION:(p=new gT(l,c,null,1)).returnTypeId=s=++a,u=!0;break;case pT.NEWCATCH:p=new gT(l,c,yT(o),1),u=!0;break;case pT.CONSTRUCTSUPER:C=yT(o);p=new gT(l,c,C,-(C+1));break;case pT.CALLSUPER:var T=AT(o);A=T[0],I=T[1],v=T[2],C=yT(o);p=new gT(l,c+I,[C,A],-C+v);break;case pT.CALLSUPERVOID:var P=AT(o);A=P[0],I=P[1],v=P[2],C=yT(o);p=new gT(l,c+I,[C,A],-(C+1)+v);break;case pT.CONSTRUCTPROP:var O=AT(o);A=O[0],I=O[1],v=O[2],C=yT(o);(p=new gT(l,c+I,[C,A],-C+v)).returnTypeId=s=++a;break;case pT.GETPROPERTY:var M=AT(o);A=M[0],I=M[1],v=M[2];(p=new gT(l,pT.GETPROPERTY+I,A,0+v)).returnTypeId=s=++a;break;case pT.INITPROPERTY:case pT.SETPROPERTY:var B=AT(o);A=B[0],I=B[1],v=B[2];p=new gT(l,pT.SETPROPERTY+I,A,-2+v);break;case pT.DELETEPROPERTY:var N=AT(o);A=N[0],I=N[1],v=N[2];p=new gT(l,c+I,A,0+v);break;case pT.GETSUPER:var L=AT(o);A=L[0],I=L[1],v=L[2];(p=new gT(l,c+I,A,0+v)).returnTypeId=s=++a;break;case pT.SETSUPER:var R=AT(o);A=R[0],I=R[1],v=R[2];p=new gT(l,c+I,A,-2+v);break;case pT.COERCE:var F=AT(o);A=F[0],I=F[1],v=F[2];if((p=new gT(l,c+I,A,0+v)).returnTypeId=s,h&&h.name===pT.CONSTRUCTPROP&&h.params[1]===A){p.returnTypeId=-1,p.name=pT.LABEL,p.comment="IR: Drop coerce, reason: redundant";break}u=!0;break;case pT.COERCE_A:(p=new gT(l,c,null,0)).returnTypeId=s;break;case pT.COERCE_S:(p=new gT(l,c,null,0)).returnTypeId=-4;break;case pT.CONVERT_D:if(p=new gT(l,c,null,0),h)switch(h.name){case pT.PUSHINT:case pT.PUSHFLOAT:case pT.PUSHDOUBLE:case pT.ADD_I:case pT.INCREMENT:case pT.DECREMENT:case pT.DECREMENT_I:case pT.INCREMENT_I:p.name=pT.LABEL,p.comment="IR: CONVERT_D removed, reason: arguments strictly number"}break;case pT.CONVERT_B:if(p=new gT(l,c,null,0),h)switch(h.name){case pT.EQUALS:case pT.STRICTEQUALS:case pT.GREATERTHAN:case pT.GREATEREQUALS:case pT.LESSTHAN:case pT.LESSEQUALS:case pT.NOT:p.name=pT.LABEL,p.comment="IR: CONVERT_B removed, reason: arguments strictly boolean"}break;case pT.ESC_XATTR:case pT.ESC_XELEM:case pT.CONVERT_I:case pT.CONVERT_U:case pT.CONVERT_S:case pT.CONVERT_O:case pT.CHECKFILTER:p=new gT(l,c,null,0);break;case pT.GETLOCAL:(p=new gT(l,pT.GETLOCAL,yT(o),1)).returnTypeId=s;break;case pT.GETLOCAL0:(p=new gT(l,pT.GETLOCAL,0,1)).returnTypeId=s;break;case pT.GETLOCAL1:(p=new gT(l,pT.GETLOCAL,1,1)).returnTypeId=s;break;case pT.GETLOCAL2:(p=new gT(l,pT.GETLOCAL,2,1)).returnTypeId=s;break;case pT.GETLOCAL3:(p=new gT(l,pT.GETLOCAL,3,1)).returnTypeId=s;break;case pT.SETLOCAL:(p=new gT(l,pT.SETLOCAL,yT(o),-1)).returnTypeId=s;break;case pT.SETLOCAL0:(p=new gT(l,pT.SETLOCAL,0,-1)).returnTypeId=s;break;case pT.SETLOCAL1:(p=new gT(l,pT.SETLOCAL,1,-1)).returnTypeId=s;break;case pT.SETLOCAL2:(p=new gT(l,pT.SETLOCAL,2,-1)).returnTypeId=s;break;case pT.SETLOCAL3:(p=new gT(l,pT.SETLOCAL,3,-1)).returnTypeId=s;break;case pT.KILL:(p=new gT(l,c,yT(o),0)).name=pT.LABEL,p.comment="IR: KILL removed, reason: prevent optimisation";break;case pT.GETLEX:var k=AT(o);A=k[0],I=k[1],v=k[2];(p=new gT(l,c+I,A,1+v)).returnTypeId=s=++a,u=!0;break;case pT.SI8:case pT.SI16:case pT.SI32:case pT.SF32:case pT.SF64:p=new gT(l,c,null,-2);break;case pT.LI8:case pT.LI16:case pT.LI32:case pT.LF32:case pT.LF64:(p=new gT(l,c,null,0)).returnTypeId=s=-3;break;default:var U=i[o.index-1];return{error:{message:"UNKNOWN BYTECODE ".concat(U.toString(16)," ").concat(pT[U]," at ").concat(l),reason:"unknow_bytecode"}}}r.push(p)}var j=_T(0,0,r);if(u)mT(0,0,r);else{var V=[];for(f=0;f<r.length;f++)r[f].name===pT.PUSHSCOPE&&V.push(f);for(var Q=0,G=V;Q<G.length;Q++){f=G[Q];var z=new gT(0,pT.LABEL);z.comment="IR: PUSHSCOPE removed, reason: unused",r.splice(f-1,2,z)}}var H,X,Y=[0];for(f=0;f<r.length;f++)for(d=0;d<r[f].refs.length;d++)Y.push(r[f].refs[d]);if(n.catchBlocks.length){H={},X={};for(f=0;f<n.catchBlocks.length;f++){var q=n.catchBlocks[f],K=-1,W=-1,J=0;for(U=0;U<r.length;U++){if(($=r[U].position)>=q.start){K=$;break}s_.NO_PROPAGATE_SCOPES_FOR_TRY||(J=r[U].scope)}for(U=r.length-1;U>=0;U--){var $;if(($=r[U].position)<=q.end){W=$;break}}H[K]||(H[K]=[]),H[K].push(q),X[W]||(X[W]=[]),X[W].push(q);var Z=_T(q.target,1,r);Z<j&&(j=Z),mT(q.target,J,r),Y.push(q.target)}}return function(t,e){var n={},i=[];n[0]=0;for(var r=t.length,o=1;o<r;o++){var a=t[o];e.indexOf(a.position)>-1&&(n[a.position]=o),a.name>=pT.IFNLT&&a.name<=pT.LOOKUPSWITCH&&i.push(a)}for(var s=0,u=i;s<u.length;s++){var l=u[s];if(l.name!==pT.LOOKUPSWITCH)l.name!==pT.JUMP?l.childs.push(n[l.params[0]]):l.childs=[n[l.params[0]]];else{var c=l.params;for(l.childs=[],o=0;o<c.length-1;o++)l.childs.push(n[o])}}}(r,Y),{set:r,jumps:Y,catchStart:H,catchEnd:X,error:j<0?{message:"Stack underrun while preprocess, stack:"+j,reason:"underrun"}:null}}var xT=function(){function t(){}return t.prototype.test=function(t){if(!t.isConstructor)return!1;if(t.parameters.length>0)return!1;var e=t.getBody();return!(e.maxStack>1)&&(!(e.localCount>1)&&(!(e.maxScopeDepth-e.initScopeDepth>1)&&!(e.code.length>6)))},t.prototype.getBody=function(t){return this.test(t)?function(t){return function(){t.savedScope.superConstructor.call(this)}}:null},t}(),IT=function(){function t(){}return t.begin=function(t){var e=performance.now();this._currentTask={name:t,start:e,droped:!1},this._firstCompilerRun<0&&(this._firstCompilerRun=e)},t.drop=function(){this._currentTask&&(this._currentTask.droped=!0,this.end())},t.end=function(){if(this._currentTask){var t=performance.now(),e=t-this._currentTask.start,n=this.statRecords;t-this._lastCompilerStop<this.TASK_DELAY?this._taskBathTime+=e:this._taskBathTime=0,n.runs++,n.drops+=+this._currentTask.droped,n.totalCompileTime+=e,n.minCompileTime=n.minCompileTime>e?e:n.minCompileTime,n.maxCompileTime=n.minCompileTime<e?e:n.minCompileTime,n.overhead=100*n.totalCompileTime/(this._lastCompilerStop-this._firstCompilerRun),n.maxCompilerBatchTime=this._taskBathTime>n.maxCompilerBatchTime?this._taskBathTime:n.maxCompilerBatchTime,this._lastCompilerStop=t,this._currentTask=null}},t.reset=function(){Object.assign(this.statRecords,{compiled:0,droped:0,minCompileTime:Number.MAX_VALUE,maxCompileTime:-Number.MAX_VALUE,totalCompileTime:-0,maxCompilerTaskTime:-Number.MAX_VALUE,overhead:0}),this._currentTask=null,this._taskBathTime=0},t.TASK_DELAY=10,t.statRecords={runs:0,drops:0,minCompileTime:Number.MAX_VALUE,maxCompileTime:-Number.MAX_VALUE,totalCompileTime:-0,maxCompilerBatchTime:-Number.MAX_VALUE,overhead:0},t._firstCompilerRun=-1,t._lastCompilerStop=-1,t._taskBathTime=0,t}();window.AWAY_COMPILER_STAT=IT;var ET=Symbol("External class marker"),wT={_lib:null,set lib(t){t&&console.debug("[AVM2] Register external lib:",t),this._lib=t},get lib(){return this._lib}};function ST(){return!!wT._lib}var DT=function(){function t(){this.imports=[],this._lexMode=!1}return t.prototype.test=function(t,e){return!1},t.prototype._genEntry=function(t){return"//"+t.name},t.prototype._genAlias=function(t,e){return t.namespace.uri.replace(/\./g,"_")+"__"+t.name},t.prototype.findAliases=function(t,e){return this.imports.filter((function(n){return n.name===t&&(!e||e===n.options.findProp)}))},t.prototype.getLexAlias=function(t,e){this._lexMode=!0;var n=this.getPropStrictAlias(t,Object.assign({findProp:!0,mnIndex:-1},e||{}));return this._lexMode=!1,n},t.prototype.getPropStrictAlias=function(t,e){var n;if(void 0===e&&(e={findProp:!1,mnIndex:-1}),!this.test(t,this._lexMode))throw"Can't generate static alias for ".concat(t.name," of ").concat(null===(n=t.namespace)||void 0===n?void 0:n.uri);var i=this.imports.find((function(n){return n.name===t&&e.findProp===n.options.findProp}));if(i)return i.alias;var r=this._genAlias(t,e);return this.imports.find((function(t){return t.alias===r}))||this.imports.push({name:t,alias:r,options:e}),r},t.prototype.genHeader=function(t){if(void 0===t&&(t=""),!this.imports.length)return"";for(var e=["\n".concat(t," /* ").concat(this.constructor.name," */")],n=0,i=this.imports;n<i.length;n++){var r=i[n];e.push(t+" "+this._genEntry(r))}return e.push("\n"),e.join("\n")},t.prototype.genBody=function(t){return""},t.prototype.genPost=function(t){return t},t.prototype.reset=function(){this.imports.length=0},t}(),TT=function(){function t(t){if(this.generators=t,this.allowColissions=!1,!t)throw"Generators array can't be null"}return t.prototype.getGenerator=function(t,e){for(var n=0,i=this.generators;n<i.length;n++){var r=i[n];if(r.test(t,e))return r}return null},t.prototype.test=function(t,e){return!!this.generators.length&&!!this.getGenerator(t,e)},t.prototype.findAliases=function(t,e){for(var n=[],i=0,r=this.generators;i<r.length;i++){var o=r[i];n=n.concat(o.findAliases(t,e))}return n},t.prototype.getLexAlias=function(t,e){var n,i=this.getGenerator(t,!0);if(!i)throw"Can't generate static alias for ".concat(t.name," of ").concat(null===(n=t.namespace)||void 0===n?void 0:n.uri);return i.getLexAlias(t,e)},t.prototype.getPropStrictAlias=function(t,e){var n,i=this.getGenerator(t,!1);if(!i)throw"Can't generate static alias for ".concat(t.name," of ").concat(null===(n=t.namespace)||void 0===n?void 0:n.uri);return i.getPropStrictAlias(t,e)},t.prototype.genHeader=function(t){for(var e="",n=0,i=this.generators;n<i.length;n++){e+=i[n].genHeader(t)}return e},t.prototype.genBody=function(t){for(var e="",n=0,i=this.generators;n<i.length;n++){e+=i[n].genBody(t)}return e},t.prototype.genPost=function(t){for(var e=0,n=this.generators;e<n.length;e++){t=n[e].genPost(t)}return t},t.prototype.reset=function(){this.generators.forEach((function(t){return t.reset()}))},t}(),PT=function(t){function e(e){var n=t.call(this)||this;return n.allows=e,n.allows=Object.assign({box2D:!0,nape:!0},e),n}return L_(e,t),e.prototype._genEntry=function(t){var e=t.name.namespace.uri,n=t.name.name;return"const ".concat(t.alias," = context.getStaticImportExt('").concat(e,"', '").concat(n,"');")},e.prototype._genAlias=function(t,e){return t.namespace.uri.replace(/\./g,"_")+"__"+t.name},e.prototype.test=function(t){var e,n=null===(e=t.namespace)||void 0===e?void 0:e.uri;return!(!n||!wT.lib)&&(n.startsWith("Box2D")&&this.allows.box2D?(t.name,!1):!(!n.startsWith("nape.")||!this.allows.nape)&&!t.name.includes("Debug"))},e}(DT),OT=["flash.geom","flash.utils","Math","trace","parseInt","RegExp"],MT=["getDefinitionByName","SetIntervalTimer","setTimeout",":trace"],BT=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return L_(e,t),e.prototype.test=function(t){var e,n=(null===(e=t.namespace)||void 0===e?void 0:e.uri)||"",i=t.name;return void 0!==n&&(!(MT.indexOf(i)>-1||MT.indexOf(n)>-1)&&(OT.indexOf(i)>-1&&!n||OT.indexOf(n)>-1))},e.prototype._genEntry=function(t){var e=t.name.namespace.uri,n=t.name.name,i=t.options||{},r=i.mnIndex,o=i.findProp;if("number"!=typeof r||r<0)throw"Name alias required for generatin Toplevel exports!";var a=r,s="['".concat(u_.getPublicMangledName(n),"']");return"const ".concat(t.alias," = context.getTopLevel(").concat(a,")").concat(o?s:"","; // ").concat(e,":").concat(n)},e.prototype._genAlias=function(t,e){var n=t.namespace.uri.split(/[.:]/g);if("number"!=typeof e.mnIndex||e.mnIndex<0)throw"Name alias required for generatin Toplevel exports!";return"".concat(n.join("_"),"__").concat(t.name).concat(e.findProp?"":"_def")},e}(DT),NT=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._mn=new Set,e._loc={},e}return L_(e,t),e.prototype.markScope=function(t,e){if(void 0===e&&(e=0),!e)throw"Scope location should be marked!";this._loc[t]=e},e.prototype.test=function(t,e){return!!e&&(!(!t.uri||0!==t.namespace.type)&&(!!this._mn.has(t)||(this._mn.add(t),!1)))},e.prototype._genAlias=function(t,e){var n=t.namespace.uri.split(/[.|:]/g),i=e;if(!i.nameAlias)throw"Name alias required for generatin FirstUsageScopeLex exports!";if(!i.scope)throw"Scope alias required for generatin FirstUsageScopeLex exports!";return"".concat(n.join("_"),"__").concat(t.name)},e.prototype.findAliases=function(){return[]},e.prototype.genHeader=function(){return""},e.prototype.genBody=function(t){if(!this.imports.length)return"";for(var e=["".concat(t," // ").concat(this.constructor.name," ")],n=0,i=this.imports;n<i.length;n++){var r=i[n];e.push("".concat(t," let ").concat(r.alias,"; // ").concat(r.name))}return e.join("\n")},e.prototype.genPost=function(t){for(var e=0,n=this.imports;e<n.length;e++){var i=n[e],r=i.options,o=this._loc[r.scope];if(!o)throw"Unknow import for scope:"+r.scope;var a=t[o].length-t[o].trimLeft().length-1;t.splice(o+1,0,this._genEntry(i," ".repeat(a)))}return t},e.prototype._genEntry=function(t,e){void 0===e&&(e=" ");var n=[],i=t.name,r=t.options;return n.push("".concat(e," // ")),n.push("".concat(e," // ").concat(i)),n.push("".concat(e," temp = ").concat(r.scope,".findScopeProperty(").concat(r.nameAlias,", true, false);")),n.push("".concat(e," ").concat(t.alias," = temp['$Bg").concat(i.name,"'];")),n.push("".concat(e," if (").concat(t.alias," === undefined || typeof ").concat(t.alias," === 'function') {")),n.push("".concat(e," ").concat(t.alias," = temp.axGetProperty(").concat(r.nameAlias,");")),n.push("".concat(e," }")),n.join("\n")},e}(DT);function LT(t,e){return t.canUseRealThis&&0===e?"this":0===e?"_this":"local"+e}var RT,FT,kT="[stack underrun]";function UT(t,e,n){void 0===n&&(n=!0);var i=t.evalStackIndex(e);if(i<0)return"/*".concat(kT," ").concat(i,"*/ null");var r="stack"+i;return n?t.isThisAlias(r)?LT(t,0):t.getConstAlias(r):r}function jT(t){return s_.FOLLOW_AS3_BUG&&(t=bm(t)),0|t}function VT(t){return t>>>0}function QT(t){return!!t}var GT=((RT={}).Number=function(t){return s_.FOLLOW_AS3_BUG?"sec.AXNumber.axCoerce(".concat(t,")"):"(+".concat(t,")")},RT.int=function(t){return s_.FOLLOW_AS3_BUG?"sec.AXNumber.axCoerce(".concat(t,") | 0"):"(".concat(t,"|0)")},RT.uint=function(t){return"(".concat(t,">>>0)")},RT.Boolean=function(t){return"(!!".concat(t,")")},RT.String=function(t){return"(".concat(t,"==null?null:''+ ").concat(t,")")},RT),zT=((FT={}).Number=bm,FT.int=jT,FT.uint=VT,FT.Boolean=QT,FT.String=a_,FT);function HT(t){return t&&t.name&&t.name in zT}function XT(t,e,n,i){if(void 0===i&&(i=!1),!HT(n))return i?"string"==typeof e?e:UT(t,e):null;if("string"==typeof e)return GT[n.name](e);var r=t.getConstAliasMeta(e);if(r&&"const"===r.kind){var o=zT[n.name](r.value);return"string"==typeof o?JSON.stringify(o):""+o}return GT[n.name](UT(t,e))}var YT=/^[a-zA-Z$_][a-zA-Z0-9$_]*$/;function qT(t,e){return e&&YT.test(e)?"".concat(t,".").concat(e):"".concat(t,'["').concat(e,'"]')}function KT(t,e){if(t.names.length<=e)throw"Name index out of bounds";return t.noHoistMultiname?"$names["+e+"]":"name"+e}function WT(t,e){t.emitBeginMain("try {")}function JT(t,e){t.emitEndMain(),function(t,e){t.popAnyAlias("stack0"),t.emitBeginMain("catch(e) {"),t.emitMain("// in case this is a error coming from stack0.__fast when stack0 is undefined,"),t.emitMain("// we convert it to a ASError, so that avm2 can still catch it"),t.emitMain("if (e instanceof TypeError) {"),t.emitMain(' var _e = context.sec.createError("TypeError", {code:1065, message:e.message})'),t.emitMain(" _e.source = e; e = _e;"),t.emitMain("}"),t.emitMain("stack0 = e;");for(var n="",i=0;i<e.length;i++){var r=e[i].type;if(r){var o=t.getMultinameIndex(r);t.emitMain("const errorClass$".concat(i," = context.sec.application.getClass(").concat(KT(t,o),");")),t.emitMain("if(errorClass$".concat(i," && errorClass$").concat(i,".axIsType(e))")),t.emitMain(" { p = ".concat(e[i].target,"; continue; };"))}else n="{ p = ".concat(e[i].target,"; continue; };")}n&&t.emitMain(n),t.emitMain("throw e;"),t.emitEndMain()}(t,e)}function $T(t){var e=t.currentOpcode,n=UT(t,0),i=UT(t,1);switch(t.emitMain("domainMemory = domainMemory || context.domainMemory;"),e.name){case pT.SI8:t.emitMain("domainMemory.setInt8(".concat(n,", ").concat(i,")"));break;case pT.SI16:t.emitMain("domainMemory.setInt16(".concat(n,", ").concat(i,", true);"));break;case pT.SI32:t.emitMain("domainMemory.setInt32(".concat(n,", ").concat(i,", true);"));break;case pT.SF32:t.emitMain("domainMemory.setFloat32(".concat(n,", ").concat(i,", true);"));break;case pT.SF64:t.emitMain("domainMemory.setFloat64(".concat(n,", ").concat(i,", true);"));break;case pT.LI8:t.emitMain("".concat(n," = domainMemory.getInt8(").concat(n,")"));break;case pT.LI16:t.emitMain("".concat(n," = getInt16(").concat(n,", true);"));break;case pT.LI32:t.emitMain("".concat(n," = domainMemory.getInt32(").concat(n,", true);"));break;case pT.LF32:t.emitMain("".concat(n," = domainMemory.getFloat32(").concat(n,", true);"));break;case pT.LF64:t.emitMain("".concat(n," = domainMemory.getFloat64(").concat(n,", true);"))}}var ZT=function(){function t(t){this._indent="",this._indentLen=0,this.names=[],this.openTryCatchGroups=[],this.mainBlock=[],this.headerBlock=[],this.thisAliases=new Set,this.constAliases={},this.localAliases={},this.localTypes={},this.stackAliases={},this.noHoistMultiname=s_.NO_HOIST_MULTINAME,this.methodInfo=t,this.abc=t.abc,this.init()}return Object.defineProperty(t.prototype,"indent",{get:function(){return this._indent},enumerable:!1,configurable:!0}),t.prototype.setStackAlias=function(t,e){void 0===e&&(e=null);var n=this.evalStackIndex(t);return this.stackAliases[n]=e,e},t.prototype.getStackAlias=function(t){return this.stackAliases[this.evalStackIndex(t)]},Object.defineProperty(t.prototype,"isPossibleGlobalThis",{get:function(){var t=this.methodInfo.trait&&this.methodInfo.trait.kind;return 1!==t&&2!==t&&3!==t&&!this.methodInfo.isConstructor},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canUseRealThis",{get:function(){return!!s_.EMIT_REAL_THIS&&!this.isPossibleGlobalThis},enumerable:!1,configurable:!0}),t.prototype.init=function(){this.methodInfo.parentInfo&&(this.localTypes[0]=[this.methodInfo.parentInfo.getTypeName()]);for(var t=1,e=0,n=this.methodInfo.parameters;e<n.length;e++){var i=n[e];this.localTypes[t]=i.getType()?[i.getType()]:[],t++}},t.prototype.evalStackIndex=function(t){var e=this.currentOpcode.stack-1-t;return e<0?-1:e},t.prototype.moveIndent=function(t){return this._indentLen+=4*t,this._indentLen<0&&(this._indentLen=0),this._indent=" ".repeat(this._indentLen),this._indent},t.prototype.getMultinameIndex=function(t){var e="number"==typeof t?this.abc.getMultiname(t):t,n=this.names.indexOf(e);return n>-1?n:(this.names.push(e),this.names.length-1)},t.prototype.emitConst=function(t,e,n){void 0===n&&(n=!0);var i=this.evalStackIndex(t),r=UT(this,t,!1);return this.popAnyAlias(r),s_.UNSAFE_INLINE_CONST&&(this.constAliases[r]={value:e,kind:n?"const":"alias",pos:this.mainBlock.length},this.stackAliases[i]=this.constAliases[r]),n&&"string"==typeof e&&(e=JSON.stringify(e)),this.mainBlock.push(this.indent+r+" = "+e+";")},t.prototype.emitGetLocal=function(t,e){var n=UT(this,t,!1);if(this.popAnyAlias(n),0===e&&this.pushThisAlias(n),s_.UNSAFE_INLINE_CONST){var i="local"+e;this.constAliases[n]={value:i,pos:this.mainBlock.length,kind:"alias"},this.localAliases[i]=n}return this.localTypes[e]&&this.localTypes[e][0]&&this.emitMain("// JIT: potential type:"+this.localTypes[e][0].toString()),this.mainBlock.push(this.indent+n+" = "+LT(this,e)+";")},t.prototype.emitMain=function(t){return void 0===t&&(t=""),this.mainBlock.push(this.indent+t)},t.prototype.emitHead=function(t,e){return void 0===e&&(e=""),this.headerBlock.push(e+t)},t.prototype.emitBeginMain=function(t){void 0===t&&(t="{");var e=this.emitMain(t);return this.moveIndent(1),e},t.prototype.emitEndMain=function(){return this.moveIndent(-1),this.emitMain("}")},t.prototype.killConstAliasInstruction=function(t){if(t&&0!==t.length)for(var e=0,n=t;e<n.length;e++){var i=n[e];if(this.constAliases[i]){var r=this.mainBlock[this.constAliases[i].pos];this.mainBlock[this.constAliases[i].pos]="//"+r+"// JIT: redundant assigment, value unused"}}},t.prototype.getConstAliasMeta=function(t){return s_.UNSAFE_INLINE_CONST?this.constAliases["stack"+this.evalStackIndex(t)]:null},t.prototype.getConstAlias=function(t){if(!s_.UNSAFE_INLINE_CONST)return t;var e=this.constAliases[t];return e?"const"!==e.kind?e.value:"string"==typeof e.value?JSON.stringify(e.value):""+e.value:t},t.prototype.isThisAlias=function(t){return!!s_.UNSAFE_PROPAGATE_THIS&&this.thisAliases.has(t)},t.prototype.pushThisAlias=function(t,e){return!!s_.UNSAFE_PROPAGATE_THIS&&(!(e&&!this.thisAliases.has(e))&&(!this.thisAliases.has(t)&&(this.thisAliases.add(t),!0)))},t.prototype.dropAllAliases=function(){this.constAliases={},this.localAliases={}},t.prototype.popAnyAlias=function(t){if(t in this.localAliases){var e=t;t=this.localAliases[e],delete this.localAliases[e]}return delete this.constAliases[t],this.thisAliases.delete(t)},t}(),tP=["Slot","Method","Getter","Setter","Class","Function","Const","GetterSetter"];var eP=function(t){this.traits=t},nP=function(t){function e(e,n,i,r,o,a,s,u){var l=t.call(this,u)||this;return l.abc=e,l.name=n,l.superName=i,l.flags=r,l.protectedNs=o,l.interfaceNameIndices=a,l.initializer=s,l.traits=u,l.classInfo=null,l.runtimeTraits=null,l._interfaces=null,l}return L_(e,t),e.prototype.getInitializer=function(){return"number"==typeof this.initializer&&(this.initializer=this.abc.getMethodInfo(this.initializer),this.initializer.instanceInfo=this,this.initializer.isConstructor=!0),this.initializer},e.prototype.getName=function(){return"number"==typeof this.name&&(this.name=this.abc.getMultiname(this.name)),this.name},e.prototype.getClassName=function(){var t=this.getName();return t.namespaces[0].uri?t.namespaces[0].uri+"."+t.name:t.name},e.prototype.getSuperName=function(){return"number"==typeof this.superName&&(this.superName=this.abc.getMultiname(this.superName)),this.superName},e.prototype.getInterfaces=function(t){if(this._interfaces)return this._interfaces;var e,n=t.superClass;n&&(e=n.classInfo.instanceInfo.getInterfaces(n));for(var i=Set,r=this._interfaces=new i(e),o=0;o<this.interfaceNameIndices.length;o++){var a=this.abc.getMultiname(this.interfaceNameIndices[o]),s=this.abc.applicationDomain.getClass(a);r.add(s),s.classInfo.instanceInfo.getInterfaces(s).forEach((function(t){return r.add(t)}))}return r},e.prototype.toString=function(){return"InstanceInfo "+this.getName().name},e.prototype.toFlashlogString=function(){return this.getName().toFlashlogString()},e.prototype.trace=function(t){t.enter("InstanceInfo: "+this.getName()),this.superName&&t.writeLn("Super: "+this.getSuperName()),this.traits.trace(t),t.outdent()},e.prototype.isInterface=function(){return!!(4&this.flags)},e.prototype.isSealed=function(){return!!(1&this.flags)},e.prototype.isFinal=function(){return!!(2&this.flags)},e}(eP),iP=function(){},rP="WeakRef"in self&&s_.USE_WEAK_REF;rP&&console.debug("[OrphanManager] `WeakRef` used for orphans!");var oP=function(){function t(){}return t.addOrphan=function(t){void 0===t&&(t=null),t&&t.isAsset&&(t.isAsset(Rl)||t.isAsset(gl)||t.isAsset(fl))&&(t.id in this.orphans||(this.orphans[t.id]=rP?new self.WeakRef(t):t,this.totalOrphansCount++))},t.removeOrphan=function(t){t.id in this.orphans&&(this.totalOrphansCount--,delete this.orphans[t.id])},t.updateOrphans=function(){var t;for(var e in this.orphans)t=this.orphans[e],rP&&t&&(t=null==t?void 0:t.deref()),t?t.parent?(this.totalOrphansCount--,delete this.orphans[e]):(t.advanceFrame(),Nl.execute_as3_constructors_recursiv(t)):(console.debug("[OrphanManager] Orphan was deleted by GC:",e),this.totalOrphansCount--,delete this.orphans[e])},t.orphans=Object.create(null),t.totalOrphansCount=0,t}();function aP(t,e){if(e){if(e.slots)for(var n=0;n<e.slots.length;n++)e.slots[n]&&(t[e.slots[n].multiname.getMangledName()]=e.slots[n].value);return e.superTraits&&aP(t,e.superTraits),t}}function sP(t){var e,n,i,r,o=this,a=Object.create(o.tPrototype);aP(a,o.tPrototype.traits);for(var s=null,u=null,l=o;l&&!u;)(s=l._symbol)&&s.timeline&&(u=s.timeline),l=l.superClass;var c,h=null===(r=null===(i=null===(n=null===(e=o.superClass)||void 0===e?void 0:e.classInfo)||void 0===n?void 0:n.instanceInfo)||void 0===i?void 0:i.name)||void 0===r?void 0:r.name;o.axApplicationDomain&&o.axApplicationDomain.awayApplicationDomain?c=o.axApplicationDomain.awayApplicationDomain:iP.loaderContext&&(c=iP.loaderContext.applicationDomain);var p=o.classInfo.instanceInfo.name,d=p.name,f=p.uri?p.uri+"."+d:d;if(u){var g=this.sec.flash.display.MovieClip.axIsType(a)||this.sec.flash.display.SimpleButton.axIsType(a),_=new Rl(u,!g);a.adaptee=_,_.reset(),Nl.execute_as3_constructors_recursiv(_)}if(!u&&c&&c.hasSymbolForClass(f)){var m=c.getSymbolAdaptee(f);m||console.warn("error: could not get asset ".concat(h," for class ").concat(d,", no ActiveLoaderContext.loaderContext")),m&&(m instanceof Rl?a.adaptee.graphics=m.graphics:a.adaptee=m)}return"SimpleButton"===d&&(a.adaptee=new Rl(new bl(this.sec.player.factory))),a[f_]=!0,a.axInitializer.apply(a,t),a.constructorHasRun=!0,a.adaptee&&oP.addOrphan(a.adaptee),a.isAVMFont&&(a.fontName=d),a}var uP={MovieClip:!0,DisplayObject:!0,Sprite:!0,Sound:!0,SimpleButton:!0,BitmapData:!0};function lP(t,e){var n=t.abc.applicationDomain.findClassInfoDeep(t);if(!n)return!1;for(e&&e.push(t.name);n&&t;){if(uP[t.name])return!1;if(!(t=n.instanceInfo.getSuperName()))return!0;if(uP[t.name])return!1;if(e&&e.push(t.name),!(n=t.abc.applicationDomain.findClassInfoDeep(t)))return!0;if("Object"===t.name&&""===t.namespace.uri&&!n.instanceInfo.superName)return!0}return!1}function cP(t,e){var n=Object.create(t.tPrototype);return t.tPrototype.traits&&aP(n,t.tPrototype.traits),n[f_]=!0,Reflect.apply(n.axInitializer,n,e),n.constructorHasRun=!0,n}var hP={},pP=pT;function dP(t,e,n,i){if(s_.MAX_INLINE_RETURN<=0)return!1;var r=function(t,e,n,i){for(var r=-1,o=-1,a=n;a<t.length;a++){var s=t[a];if(s.position===i&&(r=a),r>a&&e.indexOf(s.position)>=0){o=a;break}}return r>=0&&-1===o&&(o=t.length),{startIndex:r,endIndex:o}}(t,e,n,i).startIndex;return r>=0&&t[r].name===pT.RETURNVOID}function fP(t,e){for(var n=t.traits.getTrait(e),i=t;s_.CHEK_SUPER_TRAITS&&!n&&i&&i instanceof nP;){var r=i.getSuperName();if(!r)return null;if((i=r.value.applicationDomain.getClass(r).classInfo.instanceInfo).runtimeTraits&&(n=i.runtimeTraits.getTrait(e.namespaces,e.name)))return n;if(n=i.traits.getTrait(e))return n}return n}function gP(t,e){var n;void 0===e&&(e={});var i=e.optimise,r=void 0===i?fT:i,o=new ZT(t),a=new NT,s=new TT([new PT({box2D:!1}),new BT]),u=new xT,l=null;IT.begin("");var c=function(t){return 16&r&&!!t};if(c(u)&&"function"==typeof(P=u.getBody(t)))return IT.drop(),{names:[],compiled:P};var h=t.meta,p=h.name,d=CT(t),f=d.error,g=d.jumps,_=d.catchStart,m=d.catchEnd,y=d.set;if(f&&(IT.drop(),"underrun"!==f.reason||!(32&r)))return{error:f};for(var A=t.instanceInfo||(null===(n=t.trait)||void 0===n?void 0:n.holder),v=t.abc,b=t.getBody(),C=b.maxStack,x=b.localCount-1,I=b.maxScopeDepth-b.initScopeDepth,E=o.headerBlock,w=o.mainBlock,S=!1,D=0,T=y;D<T.length;D++){var P=T[D].name;S=S||P>=pT.LI8&&P<=pT.SF64}o.moveIndent(1);var O=t.parameters,M=1&r,B=M?function(t){for(var e=t.methodInfo,n=t.methodInfo.parameters,i=t.methodInfo.abc,r=t.methodInfo.meta.name,o=0,a=[],s=[],u=0;u<n.length;u++){var l=n[u],c={name:LT(t,u+1),value:null,type:null};l.hasOptionalValue()&&(1===l.optionalValueKind?c.value="".concat(JSON.stringify(i.getString(l.optionalValueIndex))):c.value="".concat(l.getOptionalValue())),c.type=l.getType(),a[u]=c}e.needsRest()&&a.push({name:"...args"});var h=a.map((function(t){return t.value?"".concat(t.name," /* ").concat(t.type?t.type.name:"*"," */ = ").concat(t.value):"".concat(t.name," /* ").concat(t.type?t.type.name:"*"," */")})).join(", "),p=r.replace(/([^a-z0-9]+)/gi,"_");s.push("".concat(t.indent,"return function compiled_").concat(p,"(").concat(h,") {")),t.moveIndent(1);var d=LT(t,0);"this"!==d?t.isPossibleGlobalThis?s.push("".concat(t.indent,"let ").concat(d," = this === context.jsGlobal ? context.savedScope.global.object : this;")):s.push("".concat(t.indent,"let ").concat(d," = this;")):s.push("".concat(t.indent,'// Possible use a real "this"'));for(var f=0,g=a;f<g.length;f++){var _=g[f],m=XT(t,_.name,_.type,!1);m&&(s.push("".concat(t.indent,"/* Force ").concat(_.type.name," coerce */")),s.push("".concat(t.indent).concat(_.name," = ").concat(m,";")))}return e.needsRest()&&(s.push("".concat(t.indent,"let ").concat(LT(t,n.length+1)," = context.sec.createArrayUnsafe(args);")),o+=1),e.needsArguments()&&(s.push("".concat(t.indent,"let ").concat(LT(t,n.length+1)," = context.sec.createArrayUnsafe(Array.from(arguments));")),o+=1),{annotation:s.join("\n"),paramsShift:o}}(o):function(t){var e=t.methodInfo.parameters,n=t.methodInfo.meta.name,i=[];i.push("".concat(t.indent,"return function compiled_").concat(n.replace(/([^a-z0-9]+)/gi,"_"),"() {")),t.moveIndent(1);for(var r=0;r<e.length;r++)if(e[r].hasOptionalValue()){i.push("".concat(t.indent,"let argnum = arguments.length;"));break}for("this"!==LT(t,0)?i.push("".concat(t.indent,"let ").concat(LT(t,0)," = this === context.jsGlobal ? context.savedScope.global.object : this;")):i.push("".concat(t.indent,'// Possible use a real "this"')),r=0;r<e.length;r++){var o=e[r];i.push("".concat(t.indent,"let ").concat(LT(t,r+1)," = arguments[").concat(r,"];")),e[r].hasOptionalValue()&&(1===o.optionalValueKind?i.push("".concat(t.indent,"if (argnum <= ").concat(r,") ").concat(LT(t,r+1)," = context.abc.getString(").concat(o.optionalValueIndex,");")):i.push("".concat(t.indent,"if (argnum <= ").concat(r,") ").concat(LT(t,r+1)," = ").concat(o.getOptionalValue(),";")))}return{annotation:i.join("\n"),paramsShift:0}}(o),N=B.paramsShift,L=B.annotation,R=o.indent;E.push(L);var F=E.length;E.push("__PLACE__FOR__OPTIONAL__LOCALS__");for(var k=[],U=O.length+1+N;U<=x;U++)k[U]={index:U,isArgumentList:U===O.length+1,read:0,write:0,die:!1};for(U=0;U<C;U++)E.push("".concat(R,"let stack").concat(U," = undefined;"));for(U=0;U<I;U++)E.push("".concat(R,"let scope").concat(U," = undefined;"));E.push("".concat(R,"let temp = undefined;")),S&&E.push("".concat(R,"let domainMemory; // domainMemory"));var j=o.names,V=function(t){return KT(o,o.getMultinameIndex(t))};E.push("".concat(R,"let sec = context.sec;"));var Q=g.length>1||_;hP&&hP[h.classPath+"__begin"]&&(o.emitMain("/* ATTACH METHOD HOOK */"),o.emitMain("context.executeHook(".concat(LT(o,0),", '").concat(h.classPath+"__begin","')"))),o.emitMain("");var G,z,H,X=_?Object.keys(_).length:0,Y=s_.ENABLE_LOOP_GUARD&&Q&&g.length-2*X>=s_.LOOP_GUARD_MIN_BRANCHES;if(Q){if(Y&&o.emitMain("let tick = 0;"),o.emitMain("let p = 0;"),o.emitBeginMain("while (true) {"),Y){var q=s_.LOOP_GUARD_MAX_LOOPS;o.emitBeginMain("if (tick++ > ".concat(q,") {")),o.emitMain("throw 'To many loops (> ".concat(q,') in "').concat(h.classPath,"\" at' + p + ' ,method was dropped to avoid stucking';\n'")),o.emitEndMain()}o.emitBeginMain("switch (p) {")}Q&&o.moveIndent(2);var K=function(t,e){return void 0===e&&(e=!0),UT(o,t,e)},W=function(t){return LT(o,t)},J=function(t,e){var n=e||o.currentOpcode.params;return"number"==typeof n?n:n[t]};for(U=0;U<y.length;U++){if(o.currentOpcode=y[U],H&&(z=H),H=y[U],c(l)&&l.killFar(U),g.indexOf(H.position)>=0&&(o.dropAllAliases(),o.openTryCatchGroups.forEach((function(t){return JT(o,t)})),Q&&(o.moveIndent(-1),o.emitMain("case ".concat(H.position,":")),o.moveIndent(1)),o.openTryCatchGroups.forEach((function(t){return WT(o)}))),(G=_?_[H.position]:null)&&(o.openTryCatchGroups.push(G),o.emitBeginMain("try {"),o.moveIndent(1)),s_.PRINT_BYTE_INSTRUCTION){var $="number"==typeof H.params?H.params:H.params.join(" / ");o.emitMain("//".concat(pP[H.name]," ").concat($," -> ").concat(H.returnTypeId))}H.comment&&o.emitMain("//".concat(H.comment));var Z,tt=K(0),et=K(1),nt=K(2),it=K(3),rt=H.scope>0?"scope".concat(H.scope-1):"context.savedScope",ot="scope"+H.scope;if(H.stack<0)o.emitMain("// unreachable");else{var at=0;switch(H.name){case pT.LABEL:break;case pT.DXNSLATE:o.emitMain("".concat(rt,".defaultNamespace = context.internNamespace(0, ").concat(tt,");"));break;case pT.DEBUGFILE:case pT.DEBUGLINE:case pT.DEBUG:break;case pT.THROW:o.emitMain("throw ".concat(tt,";"));break;case pT.GETLOCAL:k[at=J(0)]&&k[at].read++,o.emitGetLocal(-1,at);break;case pT.SETLOCAL:k[at=J(0)]&&(k[at].write++,k[at].read||(k[at].die=!0)),o.killConstAliasInstruction([K(0,!1)]),o.popAnyAlias(W(at)),o.emitMain("".concat(W(at)," = ").concat(tt,";"));break;case pT.GETSLOT:o.popAnyAlias(tt),o.emitMain("".concat(K(0,!1)," = ").concat(tt,".axGetSlot(").concat(J(0),");"));break;case pT.SETSLOT:o.emitMain("".concat(et,".axSetSlot(").concat(J(0),", ").concat(tt,");"));break;case pT.GETGLOBALSCOPE:o.popAnyAlias(K(-1,!1)),o.emitMain("".concat(K(-1,!1)," = context.savedScope.global.object;"));break;case pT.PUSHSCOPE:null==a||a.markScope(ot,w.length),o.emitMain("".concat(ot," = ").concat(rt,".extend(").concat(tt,");"));break;case pT.PUSHWITH:o.emitMain("".concat(ot," = context.pushwith(").concat(rt,", ").concat(tt,");"));break;case pT.POPSCOPE:o.emitMain("".concat(rt," = undefined;"));break;case pT.GETSCOPEOBJECT:o.popAnyAlias(K(-1,!1)),o.emitMain("".concat(K(-1)," = scope").concat(J(0),".object;"));break;case pT.NEXTNAME:o.popAnyAlias(K(1,!1)),o.emitMain("".concat(K(1)," = sec.box(").concat(et,").axNextName(").concat(tt,");"));break;case pT.NEXTVALUE:o.popAnyAlias(K(1,!1)),o.emitMain("".concat(K(1)," = sec.box(").concat(et,").axNextValue(").concat(tt,");"));break;case pT.HASNEXT:o.popAnyAlias(K(1,!1)),o.emitMain("".concat(K(1)," = sec.box(").concat(et,").axNextNameIndex(").concat(tt,");"));break;case pT.HASNEXT2:o.popAnyAlias(K(-1,!1)),o.emitMain("temp = context.hasnext2(".concat(W(J(0)),", ").concat(W(J(1)),");")),o.emitMain("".concat(W(J(0))," = temp[0];")),o.emitMain("".concat(W(J(1))," = temp[1];")),o.emitMain("".concat(K(-1)," = ").concat(W(J(1))," > 0;"));break;case pT.IN:o.popAnyAlias(K(1,!1)),o.emitMain("".concat(K(1)," = (").concat(et," && ").concat(et,".axClass === sec.AXQName) ? obj.axHasProperty(").concat(et,".name) : ").concat(tt,".axHasPublicProperty(").concat(et,");"));break;case pT.DUP:o.popAnyAlias(K(-1,!1)),o.emitMain("".concat(K(-1)," = ").concat(tt,";")),o.pushThisAlias(K(-1),tt);break;case pT.POP:o.popAnyAlias(K(0,!1));break;case pT.SWAP:o.popAnyAlias(K(0,!1)),o.popAnyAlias(K(1,!1)),o.emitMain("temp = ".concat(tt,";")),o.emitMain("".concat(K(0)," = ").concat(et,";")),o.emitMain("".concat(K(1)," = temp;")),o.emitMain("temp = undefined;");break;case pT.PUSHTRUE:o.emitConst(-1,!0);break;case pT.PUSHFALSE:o.emitConst(-1,!1);break;case pT.PUSHBYTE:case pT.PUSHSHORT:o.emitConst(-1,J(0));break;case pT.PUSHINT:o.emitConst(-1,v.ints[J(0)]);break;case pT.PUSHUINT:o.emitConst(-1,v.uints[J(0)]);break;case pT.PUSHDOUBLE:o.emitConst(-1,v.doubles[J(0)]);break;case pT.PUSHSTRING:o.emitConst(-1,v.getString(J(0)));break;case pT.PUSHNAN:o.emitConst(-1,NaN);break;case pT.PUSHNULL:o.emitConst(-1,null);break;case pT.PUSHUNDEFINED:o.emitConst(-1,void 0);break;case pT.IFEQ:if(dP(y,g,U,J(0))){o.emitMain("//JIT: Emit inline return"),o.emitMain("if (".concat(tt," == ").concat(et,") { return; }"));break}o.emitMain("if (".concat(tt," == ").concat(et,") { p = ").concat(J(0),"; continue; };"));break;case pT.IFNE:if(dP(y,g,U,J(0))){o.emitMain("//JIT: Emit inline return"),o.emitMain("if (".concat(tt," != ").concat(et,") { return; }"));break}o.emitMain("if (".concat(tt," != ").concat(et,") { p = ").concat(J(0),"; continue; };"));break;case pT.IFSTRICTEQ:if(dP(y,g,U,J(0))){o.emitMain("//JIT: Emit inline return"),o.emitMain("if (".concat(tt," === ").concat(et,") { return; }"));break}o.emitMain("if (".concat(tt," === ").concat(et,") { p = ").concat(J(0),"; continue; };"));break;case pT.IFSTRICTNE:if(dP(y,g,U,J(0))){o.emitMain("//JIT: Emit inline return"),o.emitMain("if (".concat(tt," !== ").concat(et,") { return; }"));break}o.emitMain("if (".concat(tt," !== ").concat(et,") { p = ").concat(J(0),"; continue; };"));break;case pT.IFNLE:if(dP(y,g,U,J(0))){o.emitMain("//JIT: Emit inline return"),o.emitMain("if (!(".concat(tt," >= ").concat(et,")) { return; }"));break}o.emitMain("if (!(".concat(tt," >= ").concat(et,")) { p = ").concat(J(0),"; continue; };"));break;case pT.IFGT:if(dP(y,g,U,J(0))){o.emitMain("//JIT: Emit inline return"),o.emitMain("if (".concat(tt," < ").concat(et,") { return; }"));break}o.emitMain("if (".concat(tt," < ").concat(et,") { p = ").concat(J(0),"; continue; };"));break;case pT.IFNLT:if(dP(y,g,U,J(0))){o.emitMain("//JIT: Emit inline return"),o.emitMain("if (!(".concat(tt," > ").concat(et,")) { return; }"));break}o.emitMain("if (!(".concat(tt," > ").concat(et,")) { p = ").concat(J(0),"; continue; };"));break;case pT.IFGE:if(dP(y,g,U,J(0))){o.emitMain("//JIT: Emit inline return"),o.emitMain("if (".concat(tt," <= ").concat(et,") { return; }"));break}o.emitMain("if (".concat(tt," <= ").concat(et,") { p = ").concat(J(0),"; continue; };"));break;case pT.IFNGE:if(dP(y,g,U,J(0))){o.emitMain("//JIT: Emit inline return"),o.emitMain("if (!(".concat(tt," <= ").concat(et,")) { return; }"));break}o.emitMain("if (!(".concat(tt," <= ").concat(et,")) { p = ").concat(J(0),"; continue; };"));break;case pT.IFLT:if(dP(y,g,U,J(0))){o.emitMain("//JIT: Emit inline return"),o.emitMain("if (".concat(tt," > ").concat(et,") { return; }"));break}o.emitMain("if (".concat(tt," > ").concat(et,") { p = ").concat(J(0),"; continue; };"));break;case pT.IFNGT:if(dP(y,g,U,J(0))){o.emitMain("//JIT: Emit inline return"),o.emitMain("if (!(".concat(tt," < ").concat(et,")) { return; }"));break}o.emitMain("if (!(".concat(tt," < ").concat(et,")) { p = ").concat(J(0),"; continue; };"));break;case pT.IFLE:if(dP(y,g,U,J(0))){o.emitMain("//JIT: Emit inline return"),o.emitMain("if (".concat(tt," >= ").concat(et,") { return; }"));break}o.emitMain("if (".concat(tt," >= ").concat(et,") { p = ").concat(J(0),"; continue; };"));break;case pT.IFFALSE:if(dP(y,g,U,J(0))){o.emitMain("//JIT: Emit inline return"),o.emitMain("if (!".concat(tt,") { return; }"));break}o.emitMain("if (!".concat(tt,") { p = ").concat(J(0),"; continue; };"));break;case pT.IFTRUE:if(dP(y,g,U,J(0))){o.emitMain("//JIT: Emit inline return"),o.emitMain("if (".concat(tt,") { return; }"));break}o.emitMain("if (".concat(tt,") { p = ").concat(J(0),"; continue; };"));break;case pT.LOOKUPSWITCH:var st=H.params.concat(),ut=st.shift();o.emitMain("if (".concat(tt," >= 0 && ").concat(tt," < ").concat(st.length,") { p = [").concat(st.join(", "),"][").concat(tt,"]; continue; } else { p = ").concat(ut,"; continue; };"));break;case pT.JUMP:if(dP(y,g,U,J(0))){o.emitMain("//JIT: Emit inline return"),o.emitMain("return;");break}o.emitMain("{ p = ".concat(J(0),"; continue; };"));break;case pT.INCREMENT:o.popAnyAlias(K(0,!1)),o.emitMain("".concat(K(0),"++;"));break;case pT.DECREMENT:o.popAnyAlias(K(0,!1)),o.emitMain("".concat(K(0),"--;"));break;case pT.INCLOCAL:o.emitMain("".concat(W(J(0)),"++;"));break;case pT.DECLOCAL:o.emitMain("".concat(W(J(0)),"--;"));break;case pT.INCREMENT_I:o.popAnyAlias(K(0,!1)),o.emitMain("".concat(K(0)," = (").concat(K(0)," | 0) + 1;"));break;case pT.DECREMENT_I:o.popAnyAlias(K(0,!1)),o.emitMain("".concat(K(0)," = (").concat(K(0)," | 0) - 1;"));break;case pT.INCLOCAL_I:o.emitMain("".concat(W(J(0))," = (").concat(W(J(0))," | 0) + 1;"));break;case pT.DECLOCAL_I:o.emitMain("".concat(W(J(0))," = (").concat(W(J(0))," | 0) - 1;"));break;case pT.NEGATE_I:o.popAnyAlias(K(0,!1)),o.emitMain("".concat(K(0)," = -(").concat(tt," | 0);"));break;case pT.ADD_I:o.killConstAliasInstruction([K(0,!1)]),o.popAnyAlias(K(1,!1)),o.emitMain("".concat(K(1)," = (").concat(et," | 0) + (").concat(tt," | 0);"));break;case pT.SUBTRACT_I:o.killConstAliasInstruction([K(0,!1)]),o.popAnyAlias(K(1,!1)),o.emitMain("".concat(K(1)," = (").concat(et," | 0) - (").concat(tt," | 0);"));break;case pT.MULTIPLY_I:o.killConstAliasInstruction([K(0,!1)]),o.popAnyAlias(K(1,!1)),o.emitMain("".concat(K(1)," = (").concat(et," | 0) * (").concat(tt," | 0);"));break;case pT.ADD:o.killConstAliasInstruction([K(0,!1)]),o.popAnyAlias(K(1,!1)),o.emitMain("".concat(K(1)," += ").concat(tt,";"));break;case pT.SUBTRACT:o.killConstAliasInstruction([K(0,!1)]),o.popAnyAlias(K(1,!1)),o.emitMain("".concat(K(1)," -= ").concat(tt,";"));break;case pT.MULTIPLY:o.killConstAliasInstruction([K(0,!1)]),o.popAnyAlias(K(1,!1)),o.emitMain("".concat(K(1)," *= ").concat(tt,";"));break;case pT.DIVIDE:o.killConstAliasInstruction([K(0,!1)]),o.popAnyAlias(K(1,!1)),o.emitMain("".concat(K(1)," /= ").concat(tt,";"));break;case pT.MODULO:o.killConstAliasInstruction([K(0,!1)]),o.popAnyAlias(K(1,!1)),o.emitMain("".concat(K(1)," %= ").concat(tt,";"));break;case pT.LSHIFT:o.popAnyAlias(K(1,!1)),o.emitMain("".concat(K(1)," <<= ").concat(tt,";"));break;case pT.RSHIFT:o.popAnyAlias(K(1,!1)),o.emitMain("".concat(K(1)," >>= ").concat(tt,";"));break;case pT.URSHIFT:o.popAnyAlias(K(1,!1)),o.emitMain("".concat(K(1)," >>>= ").concat(tt,";"));break;case pT.BITAND:o.popAnyAlias(K(1,!1)),o.emitMain("".concat(K(1)," &= ").concat(tt,";"));break;case pT.BITOR:o.popAnyAlias(K(1,!1)),o.emitMain("".concat(K(1)," |= ").concat(tt,";"));break;case pT.BITXOR:o.popAnyAlias(K(1,!1)),o.emitMain("".concat(K(1)," ^= ").concat(tt,";"));break;case pT.EQUALS:o.popAnyAlias(K(1,!1)),o.emitMain("".concat(K(1)," = ").concat(et," == ").concat(tt,";"));break;case pT.STRICTEQUALS:o.popAnyAlias(K(1,!1)),o.emitMain("".concat(K(1)," = ").concat(et," === ").concat(tt,";"));break;case pT.GREATERTHAN:o.popAnyAlias(K(1,!1)),o.emitMain("".concat(K(1)," = ").concat(et," > ").concat(tt,";"));break;case pT.GREATEREQUALS:o.popAnyAlias(K(1,!1)),o.emitMain("".concat(K(1)," = ").concat(et," >= ").concat(tt,";"));break;case pT.LESSTHAN:o.popAnyAlias(K(1,!1)),o.emitMain("".concat(K(1)," = ").concat(et," < ").concat(tt,";"));break;case pT.LESSEQUALS:o.popAnyAlias(K(1,!1)),o.emitMain("".concat(K(1)," = ").concat(et," <= ").concat(tt,";"));break;case pT.NOT:o.popAnyAlias(K(0,!1)),o.emitMain("".concat(K(0)," = !").concat(tt,";"));break;case pT.BITNOT:o.popAnyAlias(K(0,!1)),o.emitMain("".concat(K(0)," = ~").concat(tt,";"));break;case pT.NEGATE:o.popAnyAlias(K(0,!1)),o.emitMain("".concat(K(0)," = -").concat(tt,";"));break;case pT.TYPEOF:o.popAnyAlias(K(0,!1)),o.emitMain("".concat(K(0)," = typeof ").concat(tt," === 'undefined' ? 'undefined' : context.typeof(").concat(tt,");"));break;case pT.INSTANCEOF:o.popAnyAlias(K(1,!1)),o.emitMain("".concat(K(1)," = ").concat(tt,".axIsInstanceOf(").concat(et,");"));break;case pT.ISTYPE:o.popAnyAlias(K(0,!1)),o.emitMain("".concat(K(0)," = ").concat(rt,".getScopeProperty(").concat(V(J(0)),", true, false).axIsType(").concat(tt,");"));break;case pT.ISTYPELATE:o.popAnyAlias(K(1,!1)),o.emitMain("".concat(K(1)," = ").concat(tt,".axIsType(").concat(et,");"));break;case pT.ASTYPE:if(4&r&&(z.name===pT.PUSHNULL||z.name===pT.PUSHUNDEFINED)){o.emitMain("// SKIP_NULL_COERCE");break}o.popAnyAlias(K(0,!1)),o.emitMain("".concat(K(0)," = ").concat(rt,".getScopeProperty(").concat(V(J(0)),", true, false).axAsType(").concat(tt,");"));break;case pT.ASTYPELATE:o.popAnyAlias(K(1,!1)),o.emitMain("".concat(K(1)," = ").concat("true"," ? ").concat(tt,".axAsType(").concat(et,") : ").concat(et,";"));break;case pT.CALL:o.popAnyAlias(K(J(0)+1,!1));for(var lt=[],ct=K(J(0)+1),ht=1;ht<=J(0);ht++)lt.push(K(J(0)-ht)),o.killConstAliasInstruction([K(J(0)-ht,!1)]);o.emitMain("".concat(ct," = context.call(").concat(K(J(0)+1),", ").concat(K(J(0)),", [").concat(lt.join(", "),"], ").concat(rt,");"));break;case pT.CONSTRUCT:o.popAnyAlias(K(J(0),!1));for(lt=[],ct=K(J(0)),ht=1;ht<=J(0);ht++)lt.push(K(J(0)-ht)),o.killConstAliasInstruction([K(J(0)-ht,!1)]);var pt=o.getStackAlias(J(0));if(pt&&("lookup"===pt.kind||"alias"===pt.kind)&&pt.type&&(o.emitMain("//JIT: Possible source:"+pt.type),"RegExp"===pt.type.name)){o.emitMain("".concat(ct," = context.getRegExp([").concat(lt.join(", "),"]);"));break}o.emitMain("".concat(ct," = context.construct(").concat(ct,", [").concat(lt.join(", "),"]);"));break;case pT.CALLPROPERTY:var dt=v.getMultiname(J(1));for(lt=[],ct=K(J(0)),ht=1;ht<=J(0);ht++)lt.push(K(J(0)-ht)),o.killConstAliasInstruction([K(J(0)-ht,!1)]);o.killConstAliasInstruction([K(J(0),!1)]),o.popAnyAlias(K(J(0),!1));var ft=K(J(0));if("getDefinitionByName"==v.getMultiname(J(1)).name)o.emitMain("".concat(ft," = context.getdefinitionbyname(").concat(rt,", ").concat(ct,", [").concat(lt.join(", "),"]);"));else{var gt=void 0;if(c(l)&&(gt=l.sureThatFast("".concat(ct),dt.getMangledName()))){var _t=gt.isMangled?u_.getPublicMangledName(dt.name):dt.name;l.kill("".concat(ct)),o.emitMain("/* We sure that this safe call */"),gt.isFunc?o.emitMain("".concat(ft," = ").concat(qT(ct,_t),"(").concat(lt.join(", "),");")):o.emitMain("".concat(ft," = /*fast*/sec.box(").concat(ct,").axCallProperty(").concat(V(J(1)),", [").concat(lt.join(", "),"], false);"));break}if(s_.CHEK_TRAIT_GET_CALL&&"this"===ct&&A)if(Dt=fP(A,dt)){o.emitMain("/* We sure that this safe call, represented in TRAIT as ".concat(tP[Dt.kind]," */ ")),1===Dt.kind?o.emitMain("".concat(ft," = ").concat(qT(ct,dt.getMangledName()),"(").concat(lt.join(", "),");")):o.emitMain("".concat(ft," = /*fast*/").concat(ct,".axCallProperty(").concat(V(J(1)),", [").concat(lt.join(", "),"], false);"));break}if((St=ST())&&(o.emitMain("if (!".concat("true",") {")),o.emitMain(" ".concat(ft," = ").concat(qT(ct,dt.name),"(").concat(lt.join(", "),");")),o.emitBeginMain("} else {")),o.emitMain("// ".concat(dt)),o.emitBeginMain(),wt=!s_.NO_CHECK_BOXED_THIS||"this"!==ct){o.emitMain("let t = ".concat(ct,";"));var mt=qT("t","$Bg"+dt.name);o.emitMain("const m = ".concat(mt," || (t = sec.box(").concat(ct,"), ").concat(mt,");"))}else o.emitMain("const m = ".concat(qT(ct,"$Bg"+dt.name),";"));o.emitMain('if( typeof m === "function" ) { '),o.emitMain(" ".concat(ft," = ").concat(qT(wt?"t":ct,"$Bg"+dt.name)," (").concat(lt.join(", "),");")),o.emitMain("} else { "),o.emitMain(" ".concat(ft," = ").concat(ct,".axCallProperty(").concat(V(J(1)),", [").concat(lt.join(", "),"], false);")),o.emitMain("}"),o.emitEndMain(),St&&o.emitEndMain()}break;case pT.CALLPROPLEX:dt=v.getMultiname(J(1));o.popAnyAlias(K(J(0),!1));for(ft=K(J(0)),lt=[],ht=1;ht<=J(0);ht++)lt.push(K(J(0)-ht)),o.killConstAliasInstruction([K(J(0)-ht,!1)]);o.emitMain("temp = sec.box(".concat(ft,");"));mt=qT("temp","$Bg"+dt.name);o.emitMain("".concat(ft," = (typeof ").concat(mt," === 'function')? ").concat(mt,"(").concat(lt.join(", "),") : temp.axCallProperty(").concat(V(J(1)),", [").concat(lt.join(", "),"], true);"));break;case pT.CALLPROPVOID:for(dt=v.getMultiname(J(1)),lt=[],ct=K(J(0)),ht=1;ht<=J(0);ht++)lt.push(K(J(0)-ht)),o.killConstAliasInstruction([K(J(0)-ht,!1)]);if(o.killConstAliasInstruction([K(J(0),!1)]),c(l)&&l.sureThatFast(ct)){_t=l.sureThatFast(ct).isMangled?u_.getPublicMangledName(dt.name):dt.name;o.emitMain("/* We sure that this safe call */ "),o.emitMain("".concat(qT(ct,_t),"(").concat(lt.join(", "),");")),l.kill("".concat(ct));break}if(s_.CHEK_TRAIT_GET_CALL&&"this"===ct&&A)if(Dt=fP(A,dt)){o.emitMain("/* We sure that this safe call, represented in TRAIT as ".concat(tP[Dt.kind]," */ ")),1===Dt.kind?o.emitMain("".concat(qT(ct,dt.getMangledName()),"(").concat(lt.join(", "),");")):o.emitMain("/*fast*/".concat(ct,".axCallProperty(").concat(V(J(1)),", [").concat(lt.join(", "),"], false);"));break}(St=ST())&&(o.emitMain("if (!".concat("true",") {")),o.emitMain(" ".concat(qT(ct,dt.name),"(").concat(lt.join(", "),");")),o.emitMain("} else {"),o.moveIndent(1)),o.emitMain("// ".concat(dt)),o.emitBeginMain(),o.emitMain("let t = ".concat(ct,";"));mt=qT("t","$Bg"+dt.name);o.emitMain("const m = ".concat(mt," || (t = sec.box(").concat(ct,"), ").concat(mt,");")),o.emitMain('if( typeof m === "function" ) { '),o.emitMain(" m.call(t".concat(lt.length?", ":"").concat(lt.join(", "),");")),o.emitMain("} else { "),o.emitMain(" ".concat(ct,".axCallProperty(").concat(V(J(1)),", [").concat(lt.join(", "),"], false);")),o.emitMain("}"),o.emitEndMain(),St&&o.emitEndMain();break;case pT.APPLYTYPE:lt=[];o.popAnyAlias(K(J(0),!1));for(ft=K(J(0)),ht=1;ht<=J(0);ht++)lt.push(K(J(0)-ht)),o.killConstAliasInstruction([K(J(0)-ht,!1)]);o.emitMain("".concat(ft," = sec.applyType(").concat(ft,", [").concat(lt.join(", "),"]);"));break;case pT.FINDPROPSTRICT:dt=v.getMultiname(J(0));o.emitMain("// ".concat(dt)),o.popAnyAlias(K(-1,!1));var yt=K(-1);if(c(s)&&s.test(dt,!1)){o.emitMain("/* GenerateLexImports */");var At=s.getPropStrictAlias(dt,{mnIndex:o.getMultinameIndex(J(0))});if(o.emitConst(-1,At,!1),c(l)){var vt=s.getGenerator(dt,!1)instanceof BT;l.mark(yt,U,vt,dt)}break}if(s_.CHEK_TRAIT_GET_CALL&&s_.CHEK_TRAIT_FIND_PROP&&1===H.scope&&A)if(Dt=fP(A,dt)){o.emitMain("/* We sure that this scope owner, represented in TRAIT as ".concat(tP[Dt.kind]," */ ")),o.emitGetLocal(-1,0);break}o.emitMain("".concat(K(-1)," = ").concat(rt,".findScopeProperty(").concat(V(J(0)),", true, false);"));break;case pT.FINDPROPERTY:o.emitMain("// ".concat(v.getMultiname(J(0)))),o.popAnyAlias(K(-1,!1)),o.emitMain("".concat(K(-1)," = ").concat(rt,".findScopeProperty(").concat(V(J(0)),", false, false);"));break;case pT.NEWFUNCTION:o.emitMain("// ".concat(v.getMethodInfo(J(0)))),o.popAnyAlias(K(-1,!1)),o.emitMain("".concat(K(-1)," = context.createFunction(").concat(J(0),", ").concat(rt,", true, ").concat(t.index(),");"));break;case pT.NEWCLASS:o.emitMain("// ".concat(v.classes[J(0)])),o.popAnyAlias(K(0,!1)),o.emitMain("".concat(K(0)," = sec.createClass(context.abc.classes[").concat(J(0),"], ").concat(tt,", ").concat(rt,");"));break;case pT.GETDESCENDANTS:dt=v.getMultiname(J(0));if(o.emitMain("// ".concat(dt)),dt.isRuntimeName()){var bt=dt.isRuntimeName()&&dt.isRuntimeNamespace();o.popAnyAlias(K(bt?2:1,!1));yt=K(bt?2:1);o.emitBeginMain(),bt?o.emitMain("const rn = context.runtimename(".concat(V(J(0)),", ").concat(tt,", ").concat(et,");")):o.emitMain("const rn = context.runtimename(".concat(V(J(0)),", ").concat(tt,");")),o.emitMain("".concat(yt," = ").concat(yt,".descendants(rn);")),o.emitEndMain();break}o.popAnyAlias(K(0,!1)),o.emitMain("".concat(K(0)," = ").concat(tt,".descendants(").concat(V(J(0)),");"));break;case pT.NEWARRAY:for(lt=[],ht=1;ht<=J(0);ht++)lt.push(K(J(0)-ht)),o.killConstAliasInstruction([K(J(0)-ht,!1)]);o.popAnyAlias(K(J(0)-1,!1)),o.emitMain("".concat(K(J(0)-1)," = sec.AXArray.axBox([").concat(lt.join(", "),"]);"));break;case pT.NEWOBJECT:o.emitMain("temp = Object.create(sec.AXObject.tPrototype);");for(ht=1;ht<=J(0);ht++)o.emitMain("temp.axSetPublicProperty(".concat(K(2*J(0)-2*ht+1),", ").concat(K(2*J(0)-2*ht),");"));o.popAnyAlias(K(2*J(0)-1,!1)),o.emitMain("".concat(K(2*J(0)-1)," = temp;")),o.emitMain("temp = undefined;");break;case pT.NEWACTIVATION:o.popAnyAlias(K(-1,!1)),o.emitMain("".concat(K(-1)," = sec.createActivation(context.mi, ").concat(rt,");"));break;case pT.NEWCATCH:o.popAnyAlias(K(-1,!1)),o.emitMain("".concat(K(-1)," = sec.createCatch(context.mi.getBody().catchBlocks[").concat(J(0),"], ").concat(rt,");"));break;case pT.CONSTRUCTSUPER:for(lt=[],ht=1;ht<=J(0);ht++)lt.push(K(J(0)-ht)),o.killConstAliasInstruction([K(J(0)-ht,!1)]);o.emitMain("context.savedScope.superConstructor.call(".concat(K(J(0)),", ").concat(lt.join(", "),");"));break;case pT.CALLSUPER:lt=[];o.popAnyAlias(K(J(0),!1));for(ft=K(J(0)),ht=1;ht<=J(0);ht++)lt.push(K(J(0)-ht)),o.killConstAliasInstruction([K(J(0)-ht,!1)]);o.emitMain("".concat(ft," = sec.box(").concat(ft,").axCallSuper(").concat(V(J(1)),", context.savedScope, [").concat(lt.join(", "),"]);"));break;case pT.CALLSUPER_DYN:for(lt=[],ht=1;ht<=J(0);ht++)lt.push(K(J(0)-ht)),o.killConstAliasInstruction([K(J(0)-ht,!1)]);(dt=v.getMultiname(J(1))).isRuntimeName()&&dt.isRuntimeNamespace()?(o.popAnyAlias(K(J(0)+2,!1)),o.emitMain("".concat(K(J(0)+2)," = sec.box(").concat(K(J(0)+2),").axGetSuper(context.runtimename(").concat(V(J(1)),", ").concat(K(J(0)),", ").concat(K(J(0)+1),"), context.savedScope, [").concat(lt.join(", "),"]);"))):(o.popAnyAlias(K(J(0)+1,!1)),o.emitMain("".concat(K(J(0)+1)," = sec.box(").concat(K(J(0)+1),").axGetSuper(context.runtimename(").concat(V(J(1)),", ").concat(K(J(0)),"), context.savedScope, [").concat(lt.join(", "),"]);")));break;case pT.CALLSUPERVOID:for(lt=[],ht=1;ht<=J(0);ht++)lt.push(K(J(0)-ht)),o.killConstAliasInstruction([K(J(0)-ht,!1)]);o.emitMain("sec.box(".concat(K(J(0)),").axCallSuper(").concat(V(J(1)),", context.savedScope, [").concat(lt.join(", "),"]);"));break;case pT.CONSTRUCTPROP:lt=[],ft=K(J(0),!1);var Ct=K(J(0));o.killConstAliasInstruction([ft]),o.popAnyAlias(ft),o.setStackAlias(J(0),{kind:"lookup",type:v.getMultiname(J(1)),scope:-1e3});for(ht=1;ht<=J(0);ht++)lt.push(K(J(0)-ht)),o.killConstAliasInstruction([K(J(0)-ht,!1)]);var xt=!1,It=[];s_.CHECK_FAST_CONSTRUCTOR&&(xt=lP(v.getMultiname(J(1)),It)),xt?(o.emitMain("//JIT: Support fast construct:"+It.join("/")),o.emitMain("".concat(K(J(0))," = context.constructFast(").concat(Ct,", [").concat(lt.join(", "),"], ").concat(V(J(1)),");"))):o.emitMain("".concat(K(J(0))," = context.constructprop(").concat(V(J(1)),", ").concat(Ct,", [").concat(lt.join(", "),"]);")),c(l)&&l.kill(K(J(0)));break;case pT.GETPROPERTY:dt=v.getMultiname(J(0)),Ct=K(0),yt=K(0,!1);o.killConstAliasInstruction([yt]),o.popAnyAlias(K(0,!1)),o.emitMain("// ".concat(dt));gt=void 0;if(c(l)&&(gt=l.sureThatFast(Ct,dt.name))){_t=gt.isMangled?u_.getPublicMangledName(dt.name):dt.name;l.kill(Ct),o.emitMain("/* We sure that this safe get */ "),o.emitMain("".concat(yt," = ").concat(qT(Ct,_t),";"));break}var Et=o.getStackAlias(0);if(Et&&o.emitMain("//Possible type:"+Et.type),s_.CHEK_TRAIT_GET_CALL&&"this"===tt&&A)if(Dt=fP(A,dt)){if(o.emitMain("/* We sure that this safe get, represented in TRAIT as ".concat(tP[Dt.kind],", type: ").concat(Dt.typeName," */ ")),1===Dt.kind){o.emitMain("".concat(yt," = this.axGetProperty(").concat(V(J(0)),");"));break}if(0===Dt.kind||7===Dt.kind||2===Dt.kind){o.emitMain("".concat(yt," = ").concat(qT(tt,dt.getMangledName()),";")),o.setStackAlias(0,{kind:"var",type:Dt.typeName});break}}o.setStackAlias(0),(St=ST())&&(o.emitMain("if (!".concat("true",") {")),o.emitMain(" ".concat(yt," = ").concat(tt,"['").concat(dt.name,"'];")),o.emitBeginMain("} else {")),(wt=!s_.NO_CHECK_BOXED_THIS||"this"!==tt)&&o.emitMain("temp = ".concat(tt,"[AX_CLASS_SYMBOL] ? ").concat(tt," : sec.box(").concat(tt,");")),o.emitMain("".concat(yt," = ").concat(qT(wt?"temp":tt,"$Bg"+dt.name),";")),o.emitMain("if (".concat(yt," === undefined || typeof ").concat(yt," === 'function') {")),o.emitMain(" ".concat(yt," = ").concat(wt?"temp":tt,".axGetProperty(").concat(V(J(0)),");")),o.emitMain("}"),St&&o.emitEndMain();break;case pT.GETPROPERTY_DYN:bt=(dt=v.getMultiname(J(0))).isRuntimeName()&&dt.isRuntimeNamespace();o.popAnyAlias(K(bt?2:1,!1));var wt;yt=K(bt?2:1);o.emitMain("// ".concat(dt)),o.emitBeginMain(),bt?(o.emitMain("const rm = context.runtimename(".concat(V(J(0)),", ").concat(tt,", ").concat(et,");")),o.emitMain("const simple = rm.numeric ? rm.numericValue : rm.name;")):o.emitMain("let simple = ".concat(tt,";")),(wt=!s_.NO_CHECK_BOXED_THIS||"this"!==yt)?o.emitMain("const b_obj = ".concat(yt,"[AX_CLASS_SYMBOL] ? ").concat(yt," : sec.box(").concat(yt,");\n")):o.emitMain("const b_obj = ".concat(yt)),o.emitMain('if (typeof simple === "number") {'),o.emitMain(" ".concat(yt," = b_obj.axGetNumericProperty(simple);")),o.emitBeginMain("} else {"),o.emitMain("".concat(yt," = b_obj['$Bg' + simple];")),o.emitMain("if (".concat(yt," === undefined || typeof ").concat(yt," === 'function') {")),bt||o.emitMain(" const rm = context.runtimename(".concat(V(J(0)),", ").concat(tt,");")),o.emitMain(" ".concat(yt," = b_obj.axGetProperty(rm);")),o.emitMain("}"),o.emitEndMain(),o.emitEndMain();break;case pT.SETPROPERTY:var St;dt=v.getMultiname(J(0));if(o.killConstAliasInstruction([K(0,!1),K(1,!1)]),o.emitMain("// ".concat(dt)),s_.CHEK_TRAIT_SET&&"this"===et&&A)if((Dt=fP(A,dt))&&Dt&&(o.emitMain("/* We sure that this safe set, represented in TRAIT as ".concat(tP[Dt.kind],", with type: ").concat(Dt.typeName," */ ")),0===Dt.kind||7===Dt.kind||2===Dt.kind||3===Dt.kind)){o.emitMain("".concat(qT(et,dt.getMangledName())," = ").concat(XT(o,0,Dt.typeName,!0),";"));break}(St=ST())&&(o.emitMain("if (!".concat("true","){")),o.emitMain(" ".concat(qT(et,dt.name)," = ").concat(tt,";")),o.emitBeginMain("} else {")),o.emitMain("context.setproperty(".concat(V(J(0)),", ").concat(tt,", ").concat(et,");")),St&&o.emitEndMain();break;case pT.SETPROPERTY_DYN:(dt=v.getMultiname(J(0))).isRuntimeName()&&dt.isRuntimeNamespace()?o.emitMain("context.setproperty(context.runtimename(".concat(V(J(0)),", ").concat(et,", ").concat(nt,"), ").concat(tt,", ").concat(it,");")):o.emitMain("context.setproperty(context.runtimename(".concat(V(J(0)),", ").concat(et,"), ").concat(tt,", ").concat(nt,");"));break;case pT.DELETEPROPERTY:o.popAnyAlias(K(0,!1)),o.emitMain("// ".concat(v.getMultiname(J(0)))),o.emitMain("".concat(K(0)," = context.deleteproperty(").concat(V(J(0)),", ").concat(tt,");"));break;case pT.DELETEPROPERTY_DYN:(dt=v.getMultiname(J(0))).isRuntimeName()&&dt.isRuntimeNamespace()?(o.popAnyAlias(K(2,!1)),o.emitMain("".concat(K(2)," = context.deleteproperty(context.runtimename(").concat(V(J(0)),", ").concat(tt,", ").concat(et,"), ").concat(nt,");"))):(o.popAnyAlias(K(1,!1)),o.emitMain("".concat(K(1)," = context.deleteproperty(context.runtimename(").concat(V(J(0)),", ").concat(tt,"), ").concat(et,");")));break;case pT.GETSUPER:o.popAnyAlias(K(0,!1)),o.emitMain("".concat(K(0)," = sec.box(").concat(tt,").axGetSuper(").concat(V(J(0)),", context.savedScope);"));break;case pT.GETSUPER_DYN:(dt=v.getMultiname(J(0))).isRuntimeName()&&dt.isRuntimeNamespace()?(o.popAnyAlias(K(2,!1)),o.emitMain("".concat(K(2)," = sec.box(").concat(nt,").axGetSuper(context.runtimename(").concat(V(J(0)),", ").concat(tt,", ").concat(et,"), context.savedScope);"))):(o.popAnyAlias(K(1,!1)),o.emitMain("".concat(K(1)," = sec.box(").concat(et,").axGetSuper(context.runtimename(").concat(V(J(0)),", ").concat(tt,"), context.savedScope);")));break;case pT.SETSUPER:o.emitMain("sec.box(".concat(et,").axSetSuper(").concat(V(J(0)),", context.savedScope, ").concat(tt,");"));break;case pT.SETSUPER_DYN:(dt=v.getMultiname(J(0))).isRuntimeName()&&dt.isRuntimeNamespace()?o.emitMain("sec.box(".concat(it,").axSetSuper(context.runtimename(").concat(V(J(0)),", ").concat(et,", ").concat(nt,"), context.savedScope, ").concat(tt,");")):o.emitMain("sec.box(".concat(nt,").axSetSuper(context.runtimename(").concat(V(J(0)),", ").concat(et,"), context.savedScope, ").concat(tt,");"));break;case pT.GETLEX:dt=v.getMultiname(J(0));o.popAnyAlias(K(-1,!1));var Dt;yt=K(-1);if(c(s)&&s.test(dt,!0)){o.emitMain("// ".concat(dt)),o.emitMain("/* GenerateLexImports GETLEX */"),o.emitConst(-1,s.getLexAlias(dt,{mnIndex:o.getMultinameIndex(J(0)),scope:rt}),!1);var Tt=o.getStackAlias(-1);Tt&&(Tt.type=dt);break}if(o.setStackAlias(-1,{kind:"lookup",type:dt,scope:H.scope}),s_.CHEK_TRAIT_GET_CALL&&s_.CHEK_TRAIT_FIND_PROP&&1===H.scope&&A)if(Dt=fP(A,dt)){var Pt=LT(o,0);if(o.emitMain("/* GETLEX We sure that this safe get, represented in TRAIT as ".concat(tP[Dt.kind]," */ ")),1===Dt.kind){o.emitMain("".concat(yt," = ").concat(Pt,".axGetProperty(").concat(V(J(0)),");"));break}if(0===Dt.kind||7===Dt.kind||2===Dt.kind){o.emitMain("".concat(yt," = ").concat(qT(Pt,dt.getMangledName()),";"));break}}o.emitMain("// ".concat(dt)),o.emitMain("temp = ".concat(rt,".findScopeProperty(").concat(V(J(0)),", true, false);")),o.emitMain("".concat(yt," = ").concat(qT("temp","$Bg"+dt.name),";")),o.emitMain("if (".concat(yt," === undefined || typeof ").concat(yt," === 'function') {")),o.emitMain(" ".concat(yt," = temp.axGetProperty(").concat(V(J(0)),");")),o.emitMain("}");break;case pT.RETURNVALUE:hP&&hP[h.classPath+"__return"]&&(o.emitMain("/* ATTACH METHOD HOOK */"),o.emitMain("context.executeHook(".concat(LT(o,0),", '").concat(h.classPath+"__return","')")));var Ot=t.getTypeName();if(!Ot||"none"===s_.COERCE_RETURN_MODE){o.emitMain("return ".concat(tt,";"));break}if(HT(Ot)){o.emitMain("return ".concat(XT(o,0,Ot,!0),";"));break}if("all"===s_.COERCE_RETURN_MODE){o.emitMain("return context.coerceReturn(".concat(tt,");"));break}o.emitMain("return ".concat(tt,";"));break;case pT.RETURNVOID:hP&&hP[h.classPath+"__return"]&&(o.emitMain("/* ATTACH METHOD HOOK */"),o.emitMain("context.executeHook(".concat(LT(o,0),", '").concat(h.classPath+"__return","')"))),o.emitMain("return;");break;case pT.COERCE:if(4&r&&(z.name===pT.PUSHNULL||z.name===pT.PUSHUNDEFINED)){o.emitMain("//JIT: SKIP_NULL_COERCE");break}if(z.name===pT.ASTYPELATE){o.emitMain("//JIT: SKIP DOUBLED COERCE AFTER ASTYPELATE");break}o.popAnyAlias(K(0,!1));yt=K(0),dt=v.getMultiname(J(0));o.emitBeginMain("if (".concat("true",") {")),"default"==s_.COERCE_MODE?o.emitMain("".concat(yt," = ").concat(rt,".getScopeProperty(").concat(V(J(0)),", true, false).axCoerce(").concat(tt,");")):(o.emitMain("var _e = ".concat(rt,".getScopeProperty(").concat(V(J(0)),", true, false);")),"soft"===s_.COERCE_MODE&&o.emitMain("_e || console.warn('[".concat(p,"] Coerce Type not found:', ").concat(JSON.stringify(dt.name),")")),o.emitMain("".concat(yt," = _e ? _e.axCoerce(").concat(tt,") : ").concat(tt,";"))),o.emitEndMain();break;case pT.COERCE_A:o.emitMain("");break;case pT.COERCE_S:if(4&r&&(z.name===pT.PUSHNULL||z.name===pT.PUSHUNDEFINED)){o.emitMain("// SKIP_NULL_COERCE");break}o.popAnyAlias(K(0,!1)),o.emitMain("".concat(K(0)," = context.axCoerceString(").concat(tt,");"));break;case pT.ESC_XELEM:o.popAnyAlias(K(0,!1)),o.emitMain("".concat(K(0)," = context.escXElem(").concat(tt,");"));break;case pT.ESC_XATTR:o.popAnyAlias(K(0,!1)),o.emitMain("".concat(K(0)," = context.escXAttr(").concat(tt,");"));break;case pT.CONVERT_I:o.popAnyAlias(K(0,!1)),o.emitMain("".concat(K(0)," |= 0;"));break;case pT.CONVERT_D:o.popAnyAlias(K(0,!1)),o.emitMain("".concat(K(0)," = +").concat(tt,";"));break;case pT.CONVERT_B:o.popAnyAlias(K(0,!1)),o.emitMain("".concat(K(0)," = !!").concat(tt,";"));break;case pT.CONVERT_U:o.popAnyAlias(K(0,!1)),o.emitMain("".concat(K(0)," >>>= 0;"));break;case pT.CONVERT_S:o.popAnyAlias(K(0,!1)),o.emitMain("if (typeof ".concat(tt," !== 'string') ").concat(K(0)," = ").concat(tt," + '';"));break;case pT.CONVERT_O:o.emitMain("");break;case pT.CHECKFILTER:o.popAnyAlias(K(0,!1)),o.emitMain("".concat(tt," = context.axCheckFilter(sec, ").concat(tt,");"));break;case pT.KILL:o.emitMain("// Redundant oppcode KILL, prevent optimisations");break;default:if(8&r||$T(o),H.name<=pT.LI8&&H.name>=pT.SF64)return o.emitMain("//unknown instruction ".concat(pP[y[U].name])),{error:{message:"unhandled instruction "+H,reason:"unhandled_instruction"}}}}if(G=m?m[H.position]:null)(Z=o.openTryCatchGroups.pop())&&JT(o,Z)}o.openTryCatchGroups.length>0&&((Z=o.openTryCatchGroups.pop())&&JT(o,Z));Q&&(o.emitEndMain(),o.emitEndMain()),o.emitEndMain();for(var Mt=[],Bt=0,Nt=k;Bt<Nt.length;Bt++){(Lt=Nt[Bt])&&(Lt.die&&Mt.push("".concat(R,"// local").concat(Lt.index," is assigned before read, skip init")),Mt.push("".concat(R,"let local").concat(Lt.index," = undefined")),M||Lt.index!=O.length+1||Lt.die||(Mt.push(" if(arguments && arguments.length) { local".concat(Lt.index," = context.sec.createArrayUnsafe(Array.from(arguments).slice(").concat(O.length,")); }")),Mt.push(" else { local".concat(Lt.index," = context.emptyArray; }"))))}if(o.noHoistMultiname)o.emitHead("let $names = context.names;",R);else{U=0;for(var Lt=this.state.names.length;U<Lt;U++)o.emitHead("let ".concat(KT(o,U)," = context.names[").concat(U,"];"),R)}E[F]=Mt.join("\n");var Rt=["const AX_CLASS_SYMBOL = context.AX_CLASS_SYMBOL;"],Ft=[],kt=o.mainBlock;c(s)&&(Rt.push(s.genHeader(o.indent)),Ft.push(s.genBody(o.indent)),kt=s.genPost(kt));var Ut="/*\n\tIndex: ".concat(h.index,"\n\tPath: ").concat(h.classPath,"\n\tType: ").concat(h.type,"\n\tKind: ").concat(h.kind,"\n\tSuper: ").concat(h.superClass||"-","\n\tReturn: ").concat(h.returnType,"\n*/\n\n")+Rt.join("\n")+o.headerBlock.join("\n")+"\n"+Ft.join("\n")+"\n"+kt.join("\n"),jt=Ut.indexOf(kT)>-1,Vt=function(t,e){t+="\n//# sourceURL=".concat(s_.HTTP_STRING,"jit/").concat(e,".js");try{return new Function("context",t)}catch(e){throw new Error("Compiler error:\n\n"+t)}}(Ut,h.filePath),Qt=-1;jt&&(Qt=Ut.split("\n").findIndex((function(t){return t.indexOf(kT)>=0}))+3),c(s)&&s.reset(),IT.end();var Gt=null;return jt&&(Gt={message:"STACK UNDERRUN at http://jit/".concat(h.filePath,".js:").concat(Qt),reason:"underrun"}),{names:j,compiled:Vt,error:Gt}}self.attach_hook=function(t,e,n){if(void 0===e&&(e="begin"),!t||"function"!=typeof n)throw"Hook path should be exits and function should be a function";hP[t+"__"+e]={path:t,place:e,hook:n}};var _P=function(){function t(t,e,n){this.jsGlobal=Wp,this.axCoerceString=a_,this.axCheckFilter=iT,this.internNamespace=r_,this.AX_CLASS_SYMBOL=f_,this.mi=t,this.savedScope=e,this.rn=new u_(t.abc,0,null,null,null,null,!0),this.abc=t.abc,this.sec=t.abc.applicationDomain.sec,this.names=n,this.emptyArray=Object.create(this.sec.AXArray.tPrototype),this.emptyArray.value=[]}return Object.defineProperty(t.prototype,"domainMemory",{get:function(){return this.domain||(this.domain=this.sec.flash.system.ApplicationDomain.axClass.currentDomain,this.domain)?this.domain.internal_memoryView:(console.warn("[JIT] Try access to domainMemory on unresolved ApplicationDomain!"),null)},enumerable:!1,configurable:!0}),t.prototype.getRegExp=function(e){var n=e.join("|");return t.REG_EXP_CACHE[n]||(t.REG_EXP_CACHE[n]=this.sec.AXRegExp.axConstruct(e))},t.prototype.coerceReturn=function(t){var e=this.mi.getType();return e?e.axCoerce(t):t},t.prototype.createFunction=function(t,e,n,i){var r=this.abc.getMethodInfo(t);return void 0!==i&&(r.parentInfo=r.parentInfo||this.abc.getMethodInfo(i)),this.sec.createFunction(r,e,n)},t.prototype.escXElem=function(t){return dD(this.sec,t)},t.prototype.escXAttr=function(t){return fD(t)},t.prototype.executeHook=function(t,e){var n=hP[e];n&&n.hook(t)},t.prototype.getTopLevel=function(t,e){var n=this.savedScope.findScopeProperty(this.names[t],!0,!1);return e?n[e]:n},t.prototype.getStaticImportExt=function(t,e){return null},t.prototype.typeof=function(t){var e=typeof t,n=this.sec;switch(e){case"boolean":return"Boolean";case"object":if(null===t)return"object";if(n.AXXMLList.dPrototype.isPrototypeOf(t)||n.AXXML.dPrototype.isPrototypeOf(t))return"xml";if(n.AXNumber.dPrototype.isPrototypeOf(t))return"number";if(n.AXBoolean.dPrototype.isPrototypeOf(t))return"Boolean";if(n.AXString.dPrototype.isPrototypeOf(t))return"string"}return e},t.prototype.call=function(t,e,n,i){return void 0===i&&(i=null),i&&"getDefinitionByName"==t.methodInfo.trait.multiname.name?this.getdefinitionbyname(i,e,n):(O_(this.sec,t,n.length),t.axApply(e,n))},t.prototype.getdefinitionbyname=function(t,e,n){return t.global.object.scriptInfo.abc.applicationDomain.getClass(u_.FromSimpleName(n[0].toString()))},t.prototype.getpropertydyn=function(t,e){var n=this.sec.box(e);if("number"==typeof t)return n.axGetNumericProperty(t);var i=n["$Bg"+t.name];return null!=i&&"function"!=typeof i?i:n.axGetProperty(t)},t.prototype.setproperty=function(t,e,n){if(null==n)throw this.sec.createError("Error","[AVM2] Unexpected property assignment: ".concat(typeof n,"[").concat(JSON.stringify(null==t?void 0:t.name),"] = ").concat(null==e?void 0:e.toString()));if("number"==typeof t)return n.axSetNumericProperty(t,e);n.axSetProperty(t,e,pT.INITPROPERTY)},t.prototype.deleteproperty=function(t,e){var n=this.sec.box(e);return"number"==typeof t||"string"==typeof t?delete n[t]:n.axDeleteProperty(t)},t.prototype.constructExt=function(t,e,n){return n=n||t.classInfo.instanceInfo.getName(),null},t.prototype.constructFast=function(t,e,n){return cP(n?t[t.axResolveMultiname(n)]:t,e)},t.prototype.construct=function(t,e){t.classInfo.instanceInfo.getName();return M_(this.sec,t,e.length),t.axConstruct(e)},t.prototype.constructprop=function(t,e,n){var i=this.sec.box(e),r=i.axResolveMultiname(t),o=i[r];return M_(i.sec,o,n.length),o.axConstruct(n)},t.prototype.pushwith=function(t,e){var n=this.sec.box(e);return t.object===n&&1==t.isWith?t:new JD(t,n,!0)},t.prototype.hasnext2=function(e,n){var i=t.HAS_NEXT_INFO;return null==e?[null,0]:(i.next(e[f_]?e:this.sec.box(e),n),[i.object,i.index])},t.prototype.runtimename=function(t,e,n){if(this.rn.resolved={},this.rn.script=null,this.rn.numeric=!1,this.rn.id=t.id,this.rn.kind=t.kind,t.isRuntimeName()){var i=e;if(null==i)console.warn("[AVM2 SetProperty DYN] Key is ".concat(i,", are you sure that this is valid?")),i=""+i;else{if("object"==typeof i&&i.axClass===this.sec.AXQName)return i=i.name,this.rn.kind=t.isAttribute()?18:17,this.rn.id=i.id,this.rn.name=i.name,this.rn.namespaces=i.namespaces,this.rn;if("number"==typeof i)this.rn.numeric=!0,this.rn.numericValue=i;else{var r=I_(i);bd(r)&&(this.rn.numeric=!0,this.rn.numericValue=+r)}}this.rn.name=i,this.rn.id=-1}else this.rn.name=t.name,n=e;if(t.isRuntimeNamespace()){var o=n;o._ns&&(o=o._ns),this.rn.namespaces=[o],this.rn.id=-1}else this.rn.namespaces=t.namespaces;return this.rn},t.REG_EXP_CACHE={},t.HAS_NEXT_INFO=new ZD(null,0),t}(),mP=function(t){function e(e,n,i,r){var o=t.call(this,r)||this;return o.abc=e,o.instanceInfo=n,o.initializer=i,o.traits=r,o.trait=null,o.runtimeTraits=null,o}return L_(e,t),e.prototype.getNativeMetadata=function(){if(!this.trait)return null;var t=this.trait.getMetadata();if(!t)return null;for(var e=0;e<t.length;e++)if("native"===t[e].getName())return t[e];return null},e.prototype.getInitializer=function(){return"number"==typeof this.initializer&&(this.initializer=this.abc.getMethodInfo(this.initializer),this.initializer.classInfo=this),this.initializer},e.prototype.toString=function(){return"ClassInfo "+this.instanceInfo.getName()},e.prototype.trace=function(t){t.enter("ClassInfo"),this.traits.trace(t),t.outdent()},e}(eP),yP=function(){function t(t,e,n){this.abc=t,this.kind=e,this.multiname=n,this.metadata=null,this.holder=null}return t.prototype.getMetadata=function(){if(!this.metadata)return null;if(this.metadata instanceof Uint32Array){for(var t=new Array(this.metadata.length),e=0;e<this.metadata.length;e++)t[e]=this.abc.getMetadataInfo(this.metadata[e]);this.metadata=t}return this.metadata},t.prototype.toString=function(){return t=this.kind,String(t)+" "+this.multiname;var t},t.prototype.toFlashlogString=function(){return this.multiname.toFlashlogString()},t.prototype.isConst=function(){return 6===this.kind},t.prototype.isSlot=function(){return 0===this.kind},t.prototype.isMethod=function(){return 1===this.kind},t.prototype.isGetter=function(){return 2===this.kind},t.prototype.isSetter=function(){return 3===this.kind},t.prototype.isAccessor=function(){return 2===this.kind||3===this.kind},t.prototype.isMethodOrAccessor=function(){return this.isAccessor()||1===this.kind},t}(),AP=function(t){function e(e,n,i,r){var o=t.call(this,e,n,i)||this;return o.abc=e,o.kind=n,o.multiname=i,o.methodInfo=r,o.method=null,o}return L_(e,t),e}(yP),vP=0,bP=/^[a-zA-Z_$][0-9a-zA-Z_$]*$/;function CP(t){return bP.test(t)}var xP={};var IP=100,EP=0,wP=function(){function t(t){this.parent=t,this.stack=[],this.isWith=[]}return t.prototype.push=function(t,e){this.stack.push(t),this.isWith.push(!!e)},t.prototype.get=function(t){return this.stack[t]},t.prototype.clear=function(){this.stack.length=0,this.isWith.length=0},t.prototype.pop=function(){this.isWith.pop(),this.stack.pop(),this.scopes&&this.scopes.length>this.stack.length&&this.scopes.length--},t.prototype.topScope=function(){if(!this.scopes){if(0===this.stack.length)return this.parent;this.scopes=[]}for(var t=this.parent,e=0;e<this.stack.length;e++){var n=this.stack[e],i=this.isWith[e],r=this.scopes[e];r&&r.parent===t&&r.object===n&&r.isWith===i||(r=this.scopes[e]=new JD(t,n,i)),t=r}return t},t}();function SP(t,e,n){if(n.resolved={},n.script=null,n.numeric=!1,n.id=e.id,n.kind=e.kind,e.isRuntimeName()){var i=t.pop();if(i&&i.axClass&&i.axClass===i.sec.AXQName)return i=i.name,n.kind=e.isAttribute()?18:17,n.id=i.id,n.name=i.name,void(n.namespaces=i.namespaces);("number"==typeof i||bd(I_(i)))&&(n.numeric=!0,n.numericValue=+I_(i)),n.name=i,n.id=-1}else n.name=e.name;if(e.isRuntimeNamespace()){var r=t.pop();r._ns&&(r=r._ns),n.namespaces=[r],n.id=-1}else n.namespaces=e.namespaces}function DP(t,e,n){try{t.meta=t.meta||function(t,e){var n,i,r,o=(""+e).padLeft("0",4),a=t.getName().replace(/([^a-z0-9]+)/gi,"_"),s=!0,u="__root__/".concat(o,"_").concat(a||"unknown"),l=u,c=a,h=!0,p="Public",d=void 0;t.trait&&(t.trait.holder instanceof mP?(l=t.trait.holder.instanceInfo.getClassName().replace(/\./g,"/"),h=!1):t.trait.holder instanceof nP&&(l=t.trait.holder.getClassName().replace(/\./g,"/"),d=null===(n=t.trait.holder.getSuperName())||void 0===n?void 0:n.toFQNString(!1).replace(/\./g,"/")),t.trait instanceof AP&&(c=t.trait.multiname.name,p=e_[t.trait.multiname.namespace.type]),t.trait&&2===t.trait.kind&&(c="get_"+c),t.trait&&3===t.trait.kind&&(c="set_"+c),c=t.isConstructor?"constructor":h?"m_"+c:c,s=!1,void 0!==xP[u=l+"/"+c]?u+="$"+(xP[u]=xP[u]+1):xP[u]=0),t.instanceInfo&&(l=t.instanceInfo.getClassName().replace(/\./g,"/"),c=t.isConstructor?"constructor":a,d=null===(i=t.instanceInfo.getSuperName())||void 0===i?void 0:i.toFQNString(!1).replace(/\./g,"/"),s=!1,u=l+"/"+c);var f="".concat(l).concat(h?"::":".").concat(c);return t.parentInfo&&s&&(f=u=t.parentInfo.meta.filePath+"/"+"".concat(o,"_").concat(c)),{index:t.index(),filePath:u,classPath:f,name:c,type:p,superClass:d,returnType:(null===(r=t.getTypeName())||void 0===r?void 0:r.toString())||"*",isValidName:CP(c),isValidPath:CP(l.replace("/","_")),kind:t.trait&&tP[t.trait.kind]}}(t,vP++)}catch(t){console.warn("[Interpret] Fail reconstruct method metadata:",t)}if(jg.forceINT&&!s_.NO_FALL_TO_INT)try{var i=PP(t,e,n);return um&&um.leave("< "+t.trait),i}catch(t){throw t}if(null==t.getBody())return function(){};if("pending"===t.state){var r=gP(t,{scope:e});r.error?t.error=r.error:(t.compiled=r.compiled,t.names=r.names)}if("compiled"===t.state)return t.useCount++,t.compiled(new _P(t,e,t.names));if(s_.NO_FALL_TO_INT)throw console.warn("[Interpret] NO_FALL_TO_INT is used, interpret is disable. Fix JIT machin or disable NO_FALL_TO_INT"),t.error.message+"\n Method:"+t.meta.classPath;return t.useCount++,PP(t,e,n)}var TP=function(){function t(t,e,n,i,r){this.pc=0,this.stack=[],this.hasNext2Infos=null;var o=this.body=e.getBody();this.code=o.code,this.scopes=new wP(n);for(var a,s=this.locals=[t],u=this.app=e.abc.applicationDomain,l=this.sec=u.sec,c=i.length,h=0,p=e.parameters.length;h<p;h++){var d=e.parameters[h];a=h<c?i[h]:d.hasOptionalValue()?d.getOptionalValue():void 0;var f=d.getType();if(f&&!f.isAnyName()){var g=n.getScopeProperty(f,!0,!1);if(!g){if(!("axClass"in t)||!t.axClass.name.matches(f))continue;g=t.axClass}a=g.axCoerce(a)}s.push(a)}if(e.needsRest())s.push(l.createArrayUnsafe(lm(i,e.parameters.length)));else if(e.needsArguments()){var _=lm(i,0),m=Object.create(l.argumentsPrototype);m.value=_,m.callee=r,m.receiver=t,m.methodInfo=e,s.push(m)}}return t.prototype.bc=function(){return this.code[this.pc++]},t.prototype.u30=function(){var t=this.code,e=this.pc,n=t[e++];return 128&n&&16384&(n=127&n|t[e++]<<7)&&2097152&(n=16383&n|t[e++]<<14)&&268435456&(n=2097151&n|t[e++]<<21)&&(n=268435455&n|t[e++]<<28,n&=4294967295),this.pc=e,n>>>0},t.prototype.s24=function(){var t=this.code,e=this.pc,n=t[e]|t[e+1]<<8|t[e+2]<<16;return this.pc=e+3,n<<8>>8},t.prototype.getHasNext2Info=function(){var t=this.pc,e=this.hasNext2Infos;return e||(e=this.hasNext2Infos=[]),e[t]||(e[t]=new ZD(null,0)),e[t]},t}();function PP(t,e,n){return t.error&&t.useCount<=1&&(++EP<IP?console.error("[INTERPRET] Compilation failed",t.error.reason,t.error.message):console.debug("[INTERPRET] To many compiler failings:",EP)),function(){var i,r,o,a,s,u,l,c,h=new TP(this,t,e,arguments,n),p=h.stack,d=h.locals,f=h.scopes,g=h.sec,_=t.abc,m=new u_(_,0,null,null,null,null,!0),y=[],A=0,v=F_.length;F_.push(h.scopes);t:for(;;){var b=void 0;try{switch(b=h.bc()){case 9:continue;case 3:throw p.pop();case 8:d[h.u30()]=void 0;break;case 12:case 24:u=h.s24(),p.pop()<=p.pop()&&(h.pc+=u);continue;case 13:case 23:u=h.s24(),p.pop()<p.pop()&&(h.pc+=u);continue;case 14:case 22:u=h.s24(),p.pop()>=p.pop()&&(h.pc+=u);continue;case 15:case 21:u=h.s24(),p.pop()>p.pop()&&(h.pc+=u);continue;case 16:h.pc=h.s24()+h.pc;continue;case 17:u=h.s24(),p.pop()&&(h.pc+=u);continue;case 18:u=h.s24(),p.pop()||(h.pc+=u);continue;case 19:u=h.s24(),tT(p.pop(),p.pop(),g)&&(h.pc+=u);continue;case 20:u=h.s24(),tT(p.pop(),p.pop(),g)||(h.pc+=u);continue;case 25:u=h.s24(),p.pop()==p.pop()&&(h.pc+=u);continue;case 26:u=h.s24(),p.pop()!=p.pop()&&(h.pc+=u);continue;case 27:var C=h.pc-1;u=h.s24();var x=h.u30();(l=p.pop())<=x&&(h.pc+=3*l,u=h.s24()),h.pc=C+u;continue;case 29:f.pop();break;case 30:p[p.length-2]=g.box(p[p.length-2]).axNextName(p.pop());break;case 35:p[p.length-2]=g.box(p[p.length-2]).axNextValue(p.pop());break;case 50:var I=h.getHasNext2Info(),E=h.u30(),w=h.u30();I.next(g.box(d[E]),d[w]),d[E]=I.object,d[w]=I.index,p.push(!!I.index);break;case 32:p.push(null);break;case 33:p.push(void 0);break;case 36:p.push(h.code[h.pc++]<<24>>24);break;case 37:p.push(h.u30()<<16>>16);break;case 44:p.push(_.getString(h.u30()));break;case 45:p.push(_.ints[h.u30()]);break;case 46:p.push(_.uints[h.u30()]);break;case 47:p.push(_.doubles[h.u30()]);break;case 38:p.push(!0);break;case 39:p.push(!1);break;case 40:p.push(NaN);break;case 41:p.pop();break;case 42:p.push(p[p.length-1]);break;case 43:i=p[p.length-1],p[p.length-1]=p[p.length-2],p[p.length-2]=i;break;case 48:f.push(g.box(p.pop()),!1);break;case 28:f.push(g.box(p.pop()),!0);break;case 49:p.push(g.AXNamespace.FromNamespace(_.getNamespace(h.u30())));break;case 64:p.push(g.createFunction(_.getMethodInfo(h.u30()),f.topScope(),!0));break;case 65:Yg(p,h.u30(),y),r=p.pop(),O_(g,i=p[p.length-1],y.length),p[p.length-1]=i.axApply(r,y);break;case 66:Yg(p,h.u30(),y),o=g.box(p[p.length-1]),M_(g,o,y.length),p[p.length-1]=o.axConstruct(y);break;case 71:return Pd||Qa(F_.length===v+1),void F_.length--;case 72:return i=p.pop(),t.returnTypeNameIndex&&(o=t.getType())&&(i=o.axCoerce(i)),Pd||Qa(F_.length===v+1),F_.length--,i;case 73:Yg(p,h.u30(),y),e.object.superClass.tPrototype.axInitializer.apply(p.pop(),y);break;case 74:l=h.u30(),Yg(p,h.u30(),y),SP(p,_.getMultiname(l),m),p[p.length-1]=g.box(p[p.length-1]).axConstructProperty(m,y);break;case 76:case 70:case 79:l=h.u30(),Yg(p,h.u30(),y),SP(p,_.getMultiname(l),m),c=g.box(p[p.length-1]).axCallProperty(m,y,76===b),79===b?p.length--:p[p.length-1]=c;break;case 69:case 78:l=h.u30(),Yg(p,h.u30(),y),SP(p,_.getMultiname(l),m),c=g.box(p[p.length-1]).axCallSuper(m,e,y),78===b?p.length--:p[p.length-1]=c;break;case 83:Yg(p,h.u30(),y),p[p.length-1]=g.applyType(p[p.length-1],y);break;case 85:r=Object.create(g.AXObject.tPrototype),A=h.u30();for(var S=p.length-2*A;S<p.length;S+=2)i=p[S+1],r.axSetPublicProperty(p[S],i);p.length-=2*A,p.push(r);break;case 86:r=[],A=h.u30();for(S=p.length-A;S<p.length;S++)r.push(p[S]);p.length-=A,p.push(g.AXArray.axBox(r));break;case 87:p.push(g.createActivation(t,f.topScope()));break;case 88:i=p[p.length-1],p[p.length-1]=g.createClass(_.classes[h.u30()],i,f.topScope());break;case 89:SP(p,_.getMultiname(h.u30()),m),void 0===m.name&&(m.name="*"),p[p.length-1]=nT(p[p.length-1],m,g);break;case 90:p.push(g.createCatch(h.body.catchBlocks[h.u30()],f.topScope()));break;case 94:case 93:SP(p,_.getMultiname(h.u30()),m),p.push(f.topScope().findScopeProperty(m,93===b,!1));break;case 96:SP(p,_.getMultiname(h.u30()),m),p.push(f.topScope().findScopeProperty(m,!0,!1).axGetProperty(m));break;case 104:case 97:i=p.pop(),SP(p,_.getMultiname(h.u30()),m),g.box(p.pop()).axSetProperty(m,i,104,t);break;case 102:SP(p,_.getMultiname(h.u30()),m),p[p.length-1]=g.box(p[p.length-1]).axGetProperty(m);break;case 106:SP(p,_.getMultiname(h.u30()),m),p[p.length-1]=g.box(p[p.length-1]).axDeleteProperty(m);break;case 4:SP(p,_.getMultiname(h.u30()),m),p[p.length-1]=g.box(p[p.length-1]).axGetSuper(m,e);break;case 5:i=p.pop(),SP(p,_.getMultiname(h.u30()),m),g.box(p.pop()).axSetSuper(m,e,i);break;case 98:p.push(d[h.u30()]);break;case 99:d[h.u30()]=p.pop();break;case 100:p.push(e.global.object);break;case 101:p.push(f.get(h.code[h.pc++]));break;case 108:p[p.length-1]=g.box(p[p.length-1]).axGetSlot(h.u30());break;case 109:i=p.pop(),g.box(p.pop()).axSetSlot(h.u30(),i);break;case 110:p[p.length-1]=e.global.object.axGetSlot(h.u30());break;case 111:i=p.pop(),e.global.object.axSetSlot(h.u30(),i);break;case 114:p[p.length-1]=fD(p[p.length-1]);break;case 113:p[p.length-1]=dD(g,p[p.length-1]);break;case 131:case 115:p[p.length-1]|=0;break;case 136:case 116:p[p.length-1]>>>=0;break;case 132:case 117:p[p.length-1]=+p[p.length-1];break;case 129:case 118:p[p.length-1]=!!p[p.length-1];break;case 133:p[p.length-1]=a_(p[p.length-1]);break;case 112:p[p.length-1]=rT(p[p.length-1]);break;case 120:p[p.length-1]=iT(g,p[p.length-1]);break;case 128:SP(p,_.getMultiname(h.u30()),m),p[p.length-1]=f.topScope().getScopeProperty(m,!0,!1).axCoerce(p[p.length-1]);break;case 130:case 2:case 1:break;case 134:SP(p,_.getMultiname(h.u30()),m),p[p.length-1]=f.topScope().getScopeProperty(m,!0,!1).axAsType(p[p.length-1]);break;case 135:p[p.length-2]=p.pop().axAsType(p[p.length-1]);break;case 137:r=p[p.length-1],p[p.length-1]=null==r?null:r;break;case 144:p[p.length-1]=-p[p.length-1];break;case 145:++p[p.length-1];break;case 146:++d[h.u30()];break;case 147:--p[p.length-1];break;case 148:--d[h.u30()];break;case 149:p[p.length-1]=aT(p[p.length-1],g);break;case 150:p[p.length-1]=!p[p.length-1];break;case 151:p[p.length-1]=~p[p.length-1];break;case 160:s=p.pop(),a=p[p.length-1],p[p.length-1]="number"==typeof a&&"number"==typeof s?a+s:oT(a,s,g);break;case 161:p[p.length-2]-=p.pop();break;case 162:p[p.length-2]*=p.pop();break;case 163:p[p.length-2]/=p.pop();break;case 164:p[p.length-2]%=p.pop();break;case 165:p[p.length-2]<<=p.pop();break;case 166:p[p.length-2]>>=p.pop();break;case 167:p[p.length-2]>>>=p.pop();break;case 168:p[p.length-2]&=p.pop();break;case 169:p[p.length-2]|=p.pop();break;case 170:p[p.length-2]^=p.pop();break;case 171:p[p.length-2]=tT(p[p.length-2],p.pop(),g);break;case 172:p[p.length-2]=p[p.length-2]===p.pop();break;case 173:p[p.length-2]=p[p.length-2]<p.pop();break;case 174:p[p.length-2]=p[p.length-2]<=p.pop();break;case 175:p[p.length-2]=p[p.length-2]>p.pop();break;case 176:p[p.length-2]=p[p.length-2]>=p.pop();break;case 177:p[p.length-2]=p.pop().axIsInstanceOf(p[p.length-1]);break;case 178:SP(p,_.getMultiname(h.u30()),m),p[p.length-1]=f.topScope().findScopeProperty(m,!0,!1).axIsType(p[p.length-1]);break;case 179:p[p.length-2]=p.pop().axIsType(p[p.length-1]);break;case 180:o=g.box(p.pop());var D=p[p.length-1];p[p.length-1]=D&&D.axClass===g.AXQName?o.axHasProperty(D.name):o.axHasPublicProperty(D);break;case 192:p[p.length-1]=1+(0|p[p.length-1]);break;case 193:p[p.length-1]=(0|p[p.length-1])-1;break;case 194:d[l=h.u30()]=1+(0|d[l]);break;case 195:d[l=h.u30()]=(0|d[l])-1;break;case 196:p[p.length-1]=-(0|p[p.length-1]);break;case 197:p[p.length-2]=(0|p[p.length-2])+(0|p.pop())|0;break;case 198:p[p.length-2]=(0|p[p.length-2])-(0|p.pop())|0;break;case 199:p[p.length-2]=(0|p[p.length-2])*(0|p.pop())|0;break;case 208:p.push(d[0]);break;case 209:p.push(d[1]);break;case 210:p.push(d[2]);break;case 211:p.push(d[3]);break;case 212:d[0]=p.pop();break;case 213:d[1]=p.pop();break;case 214:d[2]=p.pop();break;case 215:d[3]=p.pop();break;case 6:f.topScope().defaultNamespace=r_(0,_.getString(h.u30()));break;case 7:f.topScope().defaultNamespace=r_(0,p.pop());break;case 239:h.pc++,h.u30(),h.pc++,h.u30();break;case 240:case 241:h.u30();break;default:sT(b)}}catch(t){var T=t;v_(T)||(T=OP(g,T,b,i,o,a,s,m,v+1));var P=h.body.catchBlocks;for(S=0;S<P.length;S++){var O=P[S];if(h.pc>=O.start&&h.pc<=O.end){var M=O.type;if(!M||h.app.getClass(M).axIsType(T)){p.length=0,p.push(T),f.clear(),h.pc=O.target;continue t}}}throw F_.length--,T}}}}function OP(t,e,n,i,r,o,a,s,u){var l,c=e instanceof Error&&"string"==typeof e.name&&"string"==typeof e.message;if(c)if(e instanceof RangeError||"InternalError"===e.name){var h=Object.create(t.AXError.tPrototype);if(h._errorID=1023,"allocation size overflow"===e.message)return h.$Bgmessage="allocation size overflow",h;if(e.message.indexOf("recursion")>-1||e.message.indexOf("call stack size exceeded")>-1)return h.$Bgmessage="Stack overflow occurred",F_.length=u,h}else if(e instanceof TypeError){if(e.message.indexOf("convert")>-1&&(e.message.indexOf("to primitive")>-1||e.message.indexOf("to string")>-1))return t.createError("TypeError",w_.ConvertToPrimitiveError,"value");if("Conversion to Array failed"===e.message)return t.createError("TypeError",w_.CheckTypeFailedError,"value","Array")}var p,d=!1;switch(n){case 65:if(!i||!i.axApply)return t.createError("TypeError",w_.CallOfNonFunctionError,"value");break;case 66:if(!r||!r.axConstruct)return t.createError("TypeError",w_.ConstructOfNonFunctionError);break;case 88:if(!i||!t.AXClass.axIsType(i))return t.createError("VerifyError",w_.InvalidBaseClassError);break;case 78:case 73:d=!0;case 70:case 79:case 76:case 74:case 69:if(null===r)return t.createError("TypeError",w_.ConvertNullToObjectError);if(void 0===r)return t.createError("TypeError",w_.ConvertUndefinedToObjectError);if(!(r.axResolveMultiname(s)in r)){var f=d?r.axClass.superClass:r.axClass;return f.classInfo.instanceInfo.isSealed()?t.createError("ReferenceError",w_.ReadSealedError,s.name,f.name.toFQNString(!1)):t.createError("TypeError",d?w_.ConstructOfNonFunctionError:w_.CallOfNonFunctionError,s.name)}if(c&&"RangeError"===e.name&&(e.message.indexOf("arguments array passed")>-1||e.message.indexOf("call stack size")>-1))return t.createError("RangeError",w_.StackOverflowError);break;case 4:d=!0;case 102:if(null===r)return t.createError("TypeError",w_.ConvertNullToObjectError);if(void 0===r)return t.createError("TypeError",w_.ConvertUndefinedToObjectError);break;case 104:case 97:if(null===r)return t.createError("TypeError",w_.ConvertNullToObjectError);if(void 0===r)return t.createError("TypeError",w_.ConvertUndefinedToObjectError);var g=r.axResolveMultiname(s);if(g in r&&!1===function(t,e){do{var n=Object.getOwnPropertyDescriptor(t,e);if(n)return n;t=Object.getPrototypeOf(t)}while(t);return null}(r,g).writable)return t.createError("ReferenceError",w_.ConstWriteError,g,r.axClass.name.name);break;case 177:if(!r||!r.axIsInstanceOf)return t.createError("TypeError",w_.CantUseInstanceofOnNonObjectError);break;case 134:case 135:if(r&&!r.axAsType)return t.createError("TypeError",w_.ConvertNullToObjectError);case 178:case 179:if(null===r)return t.createError("TypeError",w_.ConvertNullToObjectError);if(void 0===r)return t.createError("TypeError",w_.ConvertUndefinedToObjectError);if(!r.axIsType)return t.createError("TypeError",w_.IsTypeMustBeClassError);break;case 128:if(!r)return t.createError("ReferenceError",w_.ClassNotFoundError,s.toFQNString(!1));break;case 180:if(null===r)return t.createError("TypeError",w_.ConvertNullToObjectError);if(void 0===r)return t.createError("TypeError",w_.ConvertUndefinedToObjectError);break;case 19:case 20:case 171:if(typeof o!=typeof a&&("object"==typeof o&&o&&"object"!=typeof a||"object"==typeof a&&a&&"object"!=typeof o))return t.createError("TypeError",w_.ConvertToPrimitiveError,"Object");break;default:if(!e||"string"!=typeof e.message||"string"!=typeof e.stack||"string"!=typeof e.name)break;l=e.message;var _=e.stack.split("\n"),m=0===_[0].indexOf("at ")?_[0].substr(3):_[0];if("TypeError"===e.name)if(0===m.indexOf("AXBasePrototype_valueOf")||0===m.indexOf("AXBasePrototype_toString"))return t.createError("TypeError",w_.CallOfNonFunctionError,"value")}l="Uncaught VM-internal exception during op "+sT(n)+": ";try{l+=e.toString(),p=e.stack}catch(t){l+="[Failed to stringify exception]"}return t.player,console.error(l,"\n",p),t.createError("Error",w_.InternalErrorIV)}var MP=function(){function t(t,e){this.sec=t,this.parent=e,this.system=e?e.system:this,this._abcs=[],this._binarySymbols={}}return t.prototype.addBinarySymbol=function(t){this._binarySymbols[t.className]=t},t.prototype.getBinarySymbol=function(t){return this._binarySymbols[t]},t.prototype.loadABC=function(t){Qa(this._abcs.indexOf(t)<0),this._abcs.push(t)},t.prototype.loadAndExecuteABC=function(t){this.loadABC(t),this.executeABC(t)},t.prototype.executeABC=function(t){var e=t.scripts[t.scripts.length-1];this.executeScript(e)},t.prototype.findClassInfoDeep=function(t){var e=this.findClassInfo(t);return e||(this.parent&&(e=this.parent.findClassInfo(t))?e:null)},t.prototype.findClassInfo=function(t){for(var e="string"==typeof t?t:t.name,n="string"==typeof t?"":t.namespaces[0].uri,i=0;i<this._abcs.length;i++)for(var r=this._abcs[i],o=0;o<r.instances.length;o++){var a=r.classes[o],s=a.instanceInfo.getName();if(s.name===e&&s.namespaces[0].uri==n)return a}return null},t.prototype.executeScript=function(t){Qa(0===t.state);var e=this.sec.createAXGlobal(this,t);t.global=e,t.state=1,DP(t.getInitializer(),e.scope,null).apply(e,[]),t.state=2},t.prototype.findProperty=function(t,e,n){var i=this.findDefiningScript(t,n);return i?i.global:null},t.prototype.getClass=function(t){var e=this.getProperty(t,!0,!0);return e&&!e.axApplicationDomain&&(e.axApplicationDomain=this),e},t.prototype.getProperty=function(t,e,n){var i=this.findProperty(t,e,n);if(i)return i.axGetProperty(t);"void"!=t.name&&this.sec.throwError("ReferenceError",w_.DefinitionNotFoundError,t.name)},t.prototype.findDefiningScript=function(t,e){if(t.script)return t.script;var n;if(this.parent&&(n=this.parent.findDefiningScript(t,e)))return n;for(var i=0;i<this._abcs.length;i++){var r=this._abcs[i];if(n=this._findDefiningScriptInABC(r,t,e))return t.mutable||(t.script=n),n}var o=this.system.sec.findDefiningABC(t);return o?(this.loadABC(o),n=this._findDefiningScriptInABC(o,t,e),t.mutable||(t.script=n),n):null},t.prototype._findDefiningScriptInABC=function(t,e,n){for(var i=t.scripts,r=0;r<i.length;r++){var o=i[r];if(o.traits.getTrait(e))return n&&0===o.state&&this.executeScript(o),o}return null},t}();function BP(t,e){for(var n=0;n<t.length;n++){var i=t[n];if(i.indexOf(e)>=0){var r="!"===i[i.length-1];if(r&&(i=i.slice(0,i.length-1)),e!==i)continue;return r}}return!1}function NP(t,e,n){for(var i=0;i<e.traits.length;i++){var r=e.traits[i],o=r.multiname,a=o.name;if(o.namespace,BP(t,a)){if(r.isConst())return;var s=o.getMangledName();r.isSlot()?Object.defineProperty(n,a,{get:new Function("","return this."+s+"//# sourceURL=get-"+s+".as"),set:new Function("v","this."+s+" = v;//# sourceURL=set-"+s+".as")}):r.isGetter()?Object.defineProperty(n,a,{get:new Function("","return this."+s+"//# sourceURL=get-"+s+".as")}):r.toString()}}}function LP(t){return 0!==t.indexOf("native_")}var RP=["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"];function FP(t){var e=t.classInfo.instanceInfo.getClassName(),n=sD[e]||uD[e];n&&function(t,e){if(t.asClass=e,e.classSymbols&&NP(e.classSymbols,t.classInfo.traits,t),e.instanceSymbols&&NP(e.instanceSymbols,t.classInfo.instanceInfo.traits,t.tPrototype),e.classNatives)for(var n=0;n<e.classNatives.length;n++)Hg(t,e.classNatives[n],LP);if(Hg(t,e,LP,!0,!0),t.superClass,e.instanceNatives)for(n=0;n<e.instanceNatives.length;n++)Hg(t.dPrototype,e.instanceNatives[n],LP);Hg(t.dPrototype,e.prototype,LP),function(t,e,n){for(var i=0;i<n.length;i++){var r=n[i];t[r]=e[r]}}(t.dPrototype,e.prototype,RP),e.classInitializer&&e.classInitializer.call(t,e)}(t,n)}var kP=function(t,e){for(var n=0,i=t.length;n<i;n++)e[t[n]]||(e[t[n]]=Object.create(null)),e=e[t[n]];return e};function UP(t,e,n,i,r){var o=i.split("."),a=o.pop();!function(t,e,n,i){Object.defineProperty(e,i,{get:function(){var r=t.getClass(n),o=function(){return r.axConstruct(arguments)};return o.axIsType=function(t){return r.axIsType(t)},o.axClass=r,Object.defineProperty(e,i,{value:o,writable:!1}),o},configurable:!0})}(t,e=kP(o,e),u_.FromFQNString(n,r),a)}function jP(){this.sec.throwError("VerifierError",w_.NotImplementedError,this.name.name)}function VP(t){return!1}function QP(t){return!(!t||"object"!=typeof t)&&t.axImplementsInterface(this)}function GP(t,e){zg(t,"traits",e);for(var n=e.getTraitsList(),i=0;i<n.length;i++){var r=n[i],o=r;o.value instanceof i_&&(o={value:BD.FromNamespace.call(t.sec.AXNamespace,o.value)}),Object.defineProperty(t,r.multiname.getMangledName(),o)}}function zP(t){return null==t?null:(!t[f_]||t.__fast__||Array.isArray(t)&&t[0]&&t[0].__fast__||this.axIsType(t)||this.sec.throwError("TypeError",w_.CheckTypeFailedError,t,this.classInfo.instanceInfo.getClassName()),t)}function HP(t){return this.dPrototype.isPrototypeOf(this.sec.box(t))}function XP(t,e){return this.axCoerce(e?e[0]:void 0)}function YP(){}function qP(){var t=this.callee;if(t)return t;if(null===this.methodInfo.trait)return console.error("arguments.callee used on trait-less methodInfo function. Probably a constructor"),null;var e=this.methodInfo.trait.name;return this.receiver.axGetProperty(e)}function KP(t){return"boolean"==typeof t}function WP(t){return"number"==typeof t}function JP(){return!1}function $P(t){return"number"==typeof t&&(0|t)===t}function ZP(t){return"number"==typeof t&&t>>>0===t}function tO(t){return t[0]}function eO(t){return this.dPrototype.isPrototypeOf(this.sec.box(t))||t===this.dPrototype}function nO(t){return t&&t.__fast__||this.axIsType(t)?t:null}function iO(t,e){var n=e[0];return null==n?Object.create(this.tPrototype):n}function rO(t){var e=t[0];return null==e?Object.create(this.tPrototype):e}function oO(t){return null==t?null:t}var aO=function(){function t(){b_(),this.system=new MP(this,null),this.application=new MP(this,this.system),this.classAliases=new jS,this.nativeClasses=Object.create(null),this.vectorClasses=new Map,this._catalogs=[]}return Object.defineProperty(t.prototype,"xmlParser",{get:function(){return this._xmlParser||(this._xmlParser=new MD(this))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"AXFunctionUndefinedPrototype",{get:function(){return this._AXFunctionUndefinedPrototype||(this._AXFunctionUndefinedPrototype=this.createObject())},enumerable:!1,configurable:!0}),t.prototype.addCatalog=function(t){this._catalogs.push(t)},t.prototype.findDefiningABC=function(t){for(var e=null,n=0;n<this._catalogs.length;n++){if(e=this._catalogs[n].getABCByMultiname(t))return e}return null},t.prototype.throwError=function(t,e,n,i,r,o){throw this.createError(t,e,n,i,r,o)},t.prototype.createError=function(t,e,n,i,r,o){var a=P_.call(null,e,n,i,r,o),s=u_.FromFQNString(t,0);return cP(this.system.getProperty(s,!0,!0),[a,e.code])},t.prototype.applyType=function(t,e){this.ObjectVector.axClass.superClass.dPrototype.isPrototypeOf(t.dPrototype)||this.throwError("TypeError",w_.TypeAppOfNonParamType),1!==e.length&&this.throwError("TypeError",w_.WrongTypeArgCountError,"__AS3__.vec::Vector",1,e.length);var n=e[0]||this.AXObject;return this.getVectorClass(n)},t.prototype.getVectorClass=function(t){var e=this.vectorClasses.get(t);if(e)return e;switch(t&&t.classInfo?t.classInfo.instanceInfo.getName().getMangledName():"$BgObject"){case"$BgNumber":case"$Bgdouble":e=this.Float64Vector.axClass;break;case"$Bgint":e=this.Int32Vector.axClass;break;case"$Bguint":e=this.Uint32Vector.axClass;break;default:e=this.createVectorClass(t)}return this.vectorClasses.set(t,e),e},t.prototype.createVectorClass=function(t){var e=this.ObjectVector.axClass,n=Object.create(e);return n.tPrototype=Object.create(e.tPrototype),n.tPrototype.axClass=n,n.tPrototype.axClassName=n.classInfo.instanceInfo.getClassName(),n.dPrototype=e.dPrototype,n.superClass=e,n.type=t,n},t.prototype.createObject=function(){return Object.create(this.AXObject.tPrototype)},t.prototype.createObjectFromJS=function(t,e){void 0===e&&(e=!1);for(var n=Object.keys(t),i=this.createObject(),r=0;r<n.length;r++){var o=t[n[r]];e&&(o=IS(this,o,!0)),i.axSetPublicProperty(n[r],o)}return i},t.prototype.createArrayUnsafe=function(t){var e=Object.create(this.AXArray.tPrototype);return e.value=t,e},t.prototype.createArray=function(t){var e=this.createArrayUnsafe([]);for(var n in t)e.axSetPublicProperty(n,t[n]);return e.length=t.length,e},t.prototype.boxFunction=function(t){var e=Object.create(this.AXFunction.tPrototype);return e.value=t,e},t.prototype.createClass=function(t,e,n){var i=t.instanceInfo,r=i.getName().toFQNString(!1),o=this.nativeClasses[r]||Object.create(this.AXClass.tPrototype),a=new JD(n,o);this.nativeClasses[r]?o.tPrototype.axInitializer=this.createInitializerFunction(t,a):i.isInterface()?(o.dPrototype=Object.create(this.objectPrototype),o.tPrototype=Object.create(o.dPrototype),o.tPrototype.axInitializer=jP,o.axIsInstanceOf=VP,o.axIsType=QP):(e===this.AXObject?o.dPrototype=Object.create(this.objectPrototype):e.dPrototype?o.dPrototype=Object.create(e.dPrototype):(o.dPrototype=Object.create(e.prototype),Object.defineProperty(o.dPrototype,ET,{value:!0})),o.tPrototype=Object.create(o.dPrototype),o.tPrototype.axInitializer=this.createInitializerFunction(t,a)),o.classInfo=o.dPrototype.classInfo=t,o.dPrototype.axClass=o,o.dPrototype.axClassName=t.instanceInfo.getClassName(),o.superClass=e,o.scope=n;var s=!!uD[r]&&uD[r].forceNativeMethods;"Object"!==r&&"Class"!==r&&this.initializeRuntimeTraits(o,e,a,s),Xg(o.dPrototype,"$Bgconstructor",o),FP(o);var u=t.getInitializer(),l=u.getBody().code;return 208===l[0]&&48===l[1]&&71===l[2]||DP(u,a,null).apply(o,[o]),o},t.prototype.initializeRuntimeTraits=function(t,e,n,i){void 0===i&&(i=!1);var r,o=t.classInfo,a=o.instanceInfo;if(t===this.AXClass)r=a.traits.resolveRuntimeTraits(null,null,n,i);else{var s=this.AXClass.classInfo.instanceInfo.runtimeTraits;r=o.traits.resolveRuntimeTraits(s,null,n.parent,i)}o.runtimeTraits=r,GP(t,r);var u=e&&e[f_]?e.classInfo.instanceInfo.runtimeTraits:null,l=o.abc.getNamespace(a.protectedNs),c=a.traits.resolveRuntimeTraits(u,l,n,i);a.runtimeTraits=c,GP(t.tPrototype,c)},t.prototype.createFunction=function(t,e,n){var i=this.boxFunction(DP(t,e,i));return i.receiver={scope:e},i},t.prototype.createInitializerFunction=function(t,e){var n=t.instanceInfo.getInitializer(),i=function(t){var e=t.instanceInfo.getInitializer(),n=t.instanceInfo.getClassName(),i=sD[n]||uD[n];return e.isNative()||(null==i?void 0:i.forceNativeConstructor)?i:null}(t);if(!i){var r=t.instanceInfo.getClassName(),o=t.abc.applicationDomain.getBinarySymbol(r);o?(o.buffer=o.data,i=function(){return nD.symbolForConstructor=o,DP(n,e,null).apply(this,arguments)}):i=DP(n,e,null),i.methodInfo=n}return i},t.prototype.createActivation=function(t,e){var n=t.getBody(),i=n.activationPrototype;return i||zg(i=n.activationPrototype=Object.create(this.AXActivationPrototype),"traits",n.traits.resolveRuntimeTraits(null,null,e)),Object.create(i)},t.prototype.createCatch=function(t,e){if(!t.catchPrototype){var n=t.getTraits();t.catchPrototype=Object.create(this.AXCatchPrototype),zg(t.catchPrototype,"traits",n.resolveRuntimeTraits(null,null,e))}return Object.create(t.catchPrototype)},t.prototype.box=function(t){if(null==t)return t;if(t.constructor===Array)return this.AXArray.axBox(t);switch(typeof t){case"number":return this.AXNumber.axBox(t);case"boolean":return this.AXBoolean.axBox(t);case"string":return this.AXString.axBox(t)}return t},t.prototype.isPrimitive=function(t){return d_(t)||this.AXPrimitiveBox.dPrototype.isPrototypeOf(t)},t.prototype.createAXGlobal=function(t,e){var n=Object.create(this.AXGlobalPrototype);n.applicationDomain=t,n.scriptInfo=e;var i=n.scope=new JD(null,n,!1),r=this.AXObject.classInfo.instanceInfo.runtimeTraits;return GP(n,e.traits.resolveRuntimeTraits(r,null,i)),n[f_]=!0,n},t.prototype.prepareRootClassPrototype=function(){var t=Object.create(this.objectPrototype),e=Object.create(t);e.$BgtoString=function(){return"[class "+this.classInfo.instanceInfo.getName().name+"]"};var n=Xg;n(e,"axBox",tO),n(e,"axCoerce",zP),n(e,"axIsType",eO),n(e,"axAsType",nO),n(e,"axIsInstanceOf",HP),n(e,"axConstruct",sP),n(e,"axApply",XP),Object.defineProperty(e,"name",{get:function(){return this.classInfo.instanceInfo.name}}),e[f_]=!0,this.rootClassPrototype=e},t.prototype.initializeCoreNatives=function(){this.prepareRootClassPrototype();var t=this.prepareNativeClass("AXClass","Class",!1);t.classInfo=this.system.findClassInfo("Class"),t.defaultValue=null;var e=this.prepareNativeClass("AXObject","Object",!1);e.classInfo=this.system.findClassInfo("Object"),e=this.AXObject,Xg(this.prepareNativeClass("AXFunction","Function",!1),"axBox",G_);var n=new JD(null,t,!1),i=this.AXObject.classInfo,r=i.instanceInfo,o=r.runtimeTraits=r.traits.resolveRuntimeTraits(null,null,n);GP(this.AXObject.tPrototype,o);var a=this.AXClass.classInfo,s=a.instanceInfo;return s.runtimeTraits=s.traits.resolveRuntimeTraits(o,null,n),GP(this.AXClass.tPrototype,s.runtimeTraits),a.runtimeTraits=a.traits.resolveRuntimeTraits(o,null,n),GP(this.AXClass,a.runtimeTraits),i.runtimeTraits=i.traits.resolveRuntimeTraits(s.runtimeTraits,null,n),GP(this.AXObject,i.runtimeTraits),e[f_]=!0,e},t.prototype.prepareNativeClass=function(t,e,n){var i=Object.create(this.rootClassPrototype);if("Object"===e)i.dPrototype=Object.getPrototypeOf(this.objectPrototype),i.tPrototype=this.objectPrototype;else if("Class"===e)i.dPrototype=Object.getPrototypeOf(this.rootClassPrototype),i.tPrototype=this.rootClassPrototype;else{var r=n?this.AXPrimitiveBox.dPrototype:"AXMethodClosure"===t?this.AXFunction.dPrototype:this.objectPrototype;i.dPrototype=Object.create(r),i.tPrototype=Object.create(i.dPrototype)}return this[t]=this.nativeClasses[e]=i,i[f_]=!0,i},t.prototype.preparePrimitiveClass=function(t,e,n,i,r,o,a){var s=this.prepareNativeClass(t,e,!0),u=Xg;return u(s,"axBox",G_),u(s,"axApply",(function(t,e){return n(e&&e.length?e[0]:i)})),u(s,"axConstruct",(function(t){return n(t&&t.length?t[0]:i)})),u(s,"axCoerce",r),u(s,"axIsType",o),u(s,"axIsInstanceOf",a),u(s.dPrototype,"value",i),s[f_]=!0,s},t.prototype.initialize=function(){var t=Xg,e=Object.create(A_);e.sec=this,Object.defineProperty(this,"objectPrototype",{value:Object.create(e)}),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 n=this.AXObject,i=this.AXFunction;t(n,"axApply",iO),t(n,"axConstruct",rO),t(n.tPrototype,"axInitializer",YP),t(n,"axCoerce",oO),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);var r=this.prepareNativeClass("AXArray","Array",!1);r.tPrototype.$BgtoString=i.axBox((function(){return this.value.toString()})),r.dPrototype.value=[],this.argumentsPrototype=Object.create(this.AXArray.tPrototype),Object.defineProperty(this.argumentsPrototype,"$Bgcallee",{get:qP}),this.prepareNativeClass("AXRegExp","RegExp",!1).dPrototype.value=/(?:)/,t(this.prepareNativeClass("AXPrimitiveBox","PrimitiveBox",!1).dPrototype,"$BgtoString",i.axBox((function(){return this.value.toString()}))),this.preparePrimitiveClass("AXBoolean","Boolean",QT,!1,QT,KP,KP),this.preparePrimitiveClass("AXString","String",rT,"",a_,KD,KD),this.preparePrimitiveClass("AXNumber","Number",bm,0,bm,WP,WP),this.preparePrimitiveClass("AXInt","int",jT,0,jT,$P,JP),this.preparePrimitiveClass("AXUint","uint",VT,0,VT,ZP,JP),function(t,e){for(var n=0;n<lD.length;n++)UP(t,e,lD[n].name,lD[n].alias,lD[n].nsType)}(this.application,this),function(t){for(var e in OS){var n=e.split("."),i=n.pop();kP(n,t)[i]=t.boxFunction(OS[e])}}(this)},t}();var sO=function(){function t(t,e,n,i){this.abc=t,this.name=e,this.keys=n,this.values=i}return t.prototype.getName=function(){return"number"==typeof this.name&&(this.name=this.abc.getString(this.name)),this.name},t.prototype.getKeyAt=function(t){return this.abc.getString(this.keys[t])},t.prototype.getValueAt=function(t){return this.abc.getString(this.values[t])},t.prototype.getValue=function(t){for(var e=0;e<this.keys.length;e++)if(this.abc.getString(this.keys[e])===t)return this.abc.getString(this.values[e]);return null},t}(),uO=function(){function t(t,e,n,i,r,o,a){this.abc=t,this._index=e,this.name=n,this.returnTypeNameIndex=i,this.parameters=r,this.optionalCount=o,this.flags=a,this.trait=null,this.scriptInfo=null,this.classInfo=null,this.instanceInfo=null,this.isConstructor=!1,this.compiled=null,this.error=null,this.useCount=0,this._body=null,this.minArgs=r.length-o}return Object.defineProperty(t.prototype,"state",{get:function(){return this.error||null==this.getBody()?"failed":this.compiled?"compiled":"pending"},enumerable:!1,configurable:!0}),t.prototype.getNativeMetadata=function(){if(!this.trait)return null;var t=this.trait.getMetadata();if(!t)return null;for(var e=0;e<t.length;e++)if("native"===t[e].getName())return t[e];return null},t.prototype.getBody=function(){return this._body||(this._body=this.abc.getMethodBodyInfo(this._index))},t.prototype.index=function(){return this._index},t.prototype.getTypeName=function(){return void 0!==this._retunTypeName||(0===this.returnTypeNameIndex?this._retunTypeName=null:this._retunTypeName=this.abc.getMultiname(this.returnTypeNameIndex)),this._retunTypeName},t.prototype.getType=function(){if(void 0!==this._returnType)return this._returnType;if(0===this.returnTypeNameIndex)this._returnType=null;else{var t=this.abc.getMultiname(this.returnTypeNameIndex);this._returnType=this.abc.applicationDomain.getClass(t)}return this._returnType},t.prototype.getName=function(){return"number"==typeof this.name?this.abc.getString(this.name)||"anonymous":this.trait?this.trait.multiname.name:"anonymous"},t.prototype.toString=function(){var t="anonymous";return this.name&&(t=this.abc.getString(this.name)),t+=" ("+this.parameters.join(", ")+")",this.returnTypeNameIndex&&(t+=": "+this.abc.getMultiname(this.returnTypeNameIndex).name),t},t.prototype.toFlashlogString=function(){var t,e,n=this.trait,i=2===n.kind?"get ":3===n.kind?"set ":"",r=n.toFlashlogString(),o=n.holder;return o&&o instanceof nP&&(i=(t=o.toFlashlogString())+"/"+i),o&&o instanceof mP&&o.trait&&(i=(t=o.trait.toFlashlogString())+"$/"+i),t&&(e=r.indexOf("::"))>0&&0===t.indexOf(r.substring(0,e+2))&&(r=r.substring(e+2)),"MTHD "+i+r+" ()"},t.prototype.isNative=function(){return!!(32&this.flags)},t.prototype.needsRest=function(){return!!(4&this.flags)},t.prototype.needsArguments=function(){return!!(1&this.flags)},t}(),lO=function(t){function e(e,n,i,r,o,a,s){var u=t.call(this,s)||this;return u.maxStack=e,u.localCount=n,u.initScopeDepth=i,u.maxScopeDepth=r,u.code=o,u.catchBlocks=a,u.traits=s,u.activationPrototype=null,u}return L_(e,t),e.prototype.trace=function(t){t.writeLn("Code: "+this.code.length);for(var e=new dT(this.code);255!==e.currentBytecode();)t.writeLn(e.currentBCI+": "+sT(e.currentBytecode())),e.next()},e}(eP),cO=function(t){function e(e,n,i){var r=t.call(this,i)||this;return r.abc=e,r.initializer=n,r.traits=i,r.global=null,r.state=0,r}return L_(e,t),e.prototype.getInitializer=function(){return this.initialiser||(this.initialiser=this.abc.getMethodInfo(this.initializer),this.initialiser.scriptInfo=this),this.initialiser},e.prototype.trace=function(t){t.enter("ScriptInfo"),this.traits.trace(t),t.outdent()},e}(eP),hO=function(){function t(t,e,n,i,r){this.abc=t,this.type=e,this.name=n,this.optionalValueKind=i,this.optionalValueIndex=r}return t.prototype.getName=function(){return"number"==typeof this.name&&(this.name=this.abc.getString(this.name)),this.name},t.prototype.getType=function(){return"number"==typeof this.type&&(this.type=this.abc.getMultiname(this.type)),this.type},t.prototype.hasOptionalValue=function(){return this.optionalValueKind>=0},t.prototype.getOptionalValue=function(){return this.abc.getConstant(this.optionalValueKind,this.optionalValueIndex)},t.prototype.toString=function(){var t="";return this.name?t+=this.getName():t+="?",this.type&&(t+=": "+this.getType().name),this.optionalValueKind>=0&&(t+=" = "+this.abc.getConstant(this.optionalValueKind,this.optionalValueIndex)),t},t}(),pO=function(){function t(t,e,n){this.multiname=t,this.kind=e,this.abc=n,this.configurable=!0,this._type=void 0,this.typeName=null}return t.prototype.getType=function(){if(void 0!==this._type)return this._type;if(null===this.typeName)return this._type=null;var t=this.abc.applicationDomain.getClass(this.typeName);return this._type=t&&t.axCoerce?t:null},t}();function dO(t,e,n){var i=(0|e)===e,r=xd(e);if(512&n&&(r||i))return null;if(r)return function(t,e){return{__proto__:t.objectPrototype,$Bgname:void 0===e?"void":"null",$BgisDynamic:!1,$BgisFinal:!0,$BgisStatic:!1,$Bgtraits:{__proto__:t.objectPrototype,$Bgvariables:null,$Bgaccessors:null,$Bgmetadata:t.createArray([]),$Bgconstructor:null,$Bginterfaces:t.createArray([]),$Bgmethods:null,$Bgbases:t.createArray([])}}}(t,e);if(e.sec&&(t=e.sec),e=t.box(e),t.AXFunction.axIsType(e))if(t.AXMethodClosure.axIsType(e)){if(512&n)return null}else if("receiver"in e)return null;var o=e.hasOwnProperty("classInfo")?e:e.axClass,a=o===e&&!(512&n),s=o.classInfo,u=t.createObject();return u.$Bgname=i?"int":s.instanceInfo.getName().toFQNString(!0),u.$BgisDynamic=a||!(1&s.instanceInfo.flags),u.$BgisFinal=a||!!(2&s.instanceInfo.flags),u.$BgisStatic=a,256&n&&(u.$Bgtraits=function(t,e,n,i){var r=t.sec,o=2&i,a=32&i&&!n,s=r.createObject(),u=s.$Bgvariables=8&i?r.createArray([]):null,l=s.$Bgaccessors=16&i?r.createArray([]):null,c=null;if(64&i&&!n){var h=e.trait.getMetadata();h&&(c=vO(r,h))}if(s.$Bgmetadata=c||r.createArray([]),s.$Bgconstructor=null,4&i){if(s.$Bginterfaces=r.createArray([]),!n){var p=s.$Bginterfaces.value;t.classInfo.instanceInfo.getInterfaces(t).forEach((function(t){return p.push(t.name.toFQNString(!0))}))}}else s.$Bginterfaces=null;var d,f=s.$Bgmethods=a?r.createArray([]):null,g=s.$Bgbases=o?r.createArray([]):null,_=Object.create(null),m=Object.create(null),y=Object.create(null),A=!1,v=e.instanceInfo.isInterface();for(;t&&(d=t.classInfo.instanceInfo.getName().toFQNString(!0),o&&A&&!n?g.push(d):A=!0,!(1024&i&&t===r.AXObject));)C(r,n?t.classInfo.traits.traits:t.classInfo.instanceInfo.traits.traits,v),t=t.superClass;if(n){if(16&i){var b=r.createObject();b.$Bgname="prototype",b.$Bgtype="*",b.$Bgaccess="readonly",b.$Bgmetadata=null,b.$Bguri=null,b.$BgdeclaredBy="Class",l.push(b)}o&&(g.pop(),g.push("Class","Object"),t=r.AXClass)}function C(t,e,r){for(var o=0;o<e.length;o++){var s=e[o],c=s.multiname,h=c.namespace;if(r||!(!h.isPublic()&&!h.uri||1&i&&h.uri)){var p=r?c.name:c.toFQNString(!0);if(m[p]===y[p]){if(!_[p]){var g=t.createObject();_[p]=g;var A=s.getMetadata();switch(s.kind){case 6:case 0:if(!(8&i))continue;g.$Bgname=p,g.$Bguri=h.reflectedURI;var v=s.typeName;g.$Bgtype=v?v.toFQNString(!0):"*",g.$Bgaccess="readwrite",g.$Bgmetadata=64&i?vO(t,A):null,u.push(g);break;case 1:if(!a)continue;var b=s.methodInfo.getType();g.$BgreturnType=b?b.name.toFQNString(!0):"*",g.$Bgmetadata=64&i?vO(t,A):null,g.$Bgname=p,g.$Bguri=h.reflectedURI;for(var C=g.$Bgparameters=t.createArray([]),x=s.methodInfo.parameters,I=0;I<x.length;I++){var E=x[I],w=t.createObject();w.$Bgtype=E.type?E.getType().toFQNString(!0):"*",w.$Bgoptional="value"in E,C.push(w)}g.$BgdeclaredBy=d,f.push(g);break;case 2:case 3:if(!(16&i)||n)continue;if(g.$Bgname=p,2===s.kind){b=s.methodInfo.getType();g.$Bgtype=b?b.name.toFQNString(!0):"*",m[p]=g}else{var S=s.methodInfo.parameters[0].getType();g.$Bgtype=S?S.toFQNString(!0):"*",y[p]=g}g.$Bgaccess=2===s.kind?"readonly":"writeonly",g.$Bgmetadata=64&i?vO(t,A):null,g.$Bguri=h.reflectedURI,g.$BgdeclaredBy=d,l.push(g)}}}else{var D=_[p];if(D.$Bgaccess="readwrite",2===s.kind){var T=s.methodInfo.getType();D.$Bgtype=T?T.name.toFQNString(!0):"*"}}}}}f&&0!==f.value.length||(s.$Bgmethods=null);u&&0!==u.value.length||(s.$Bgvariables=null);return s}(o,s,a,n)),u}var fO=new u_(null,0,7,[i_.PUBLIC],null,null,!0),gO=new u_(null,0,13,[i_.PUBLIC],null,null,!0);function _O(t,e){for(var n=0,i=e.$Bgbases&&e.$Bgbases.value,r=0;i&&r<i.length;r++){var o=i[r],a=t.sec.AXXML.Create('<extendsClass type="'+fD(o)+'"/>');t.appendChild(a),n++}var s=e.$Bginterfaces&&e.$Bginterfaces.value;for(r=0;s&&r<s.length;r++){var a=t.sec.AXXML.Create('<implementsInterface type="'+fD(s[r])+'"/>');t.appendChild(a),n++}null!==e.$Bgconstructor&&(yO(a=t.sec.AXXML.Create("<constructor/>"),e.$Bgconstructor),t.appendChild(a),n++);var u=e.$Bgvariables&&e.$Bgvariables.value;for(r=0;u&&r<u.length;r++){var l=u[r],c="readonly"===l.$Bgaccess?"constant":"variable";mO(l,a=t.sec.AXXML.Create("<"+c+' name="'+fD(l.$Bgname)+'" type="'+l.$Bgtype+'"/>'),t),n++}var h=e.$Bgaccessors&&e.$Bgaccessors.value;for(r=0;h&&r<h.length;r++){var p=h[r];mO(p,a=t.sec.AXXML.Create('<accessor name="'+fD(p.$Bgname)+'" access="'+p.$Bgaccess+'" type="'+fD(p.$Bgtype)+'" declaredBy="'+fD(p.$BgdeclaredBy)+'"/>'),t),n++}var d=e.$Bgmethods&&e.$Bgmethods.value;for(r=0;d&&r<d.length;r++){var f=d[r];yO(a=t.sec.AXXML.Create('<method name="'+fD(f.$Bgname)+'" declaredBy="'+fD(f.$BgdeclaredBy)+'" returnType="'+fD(f.$BgreturnType)+'"/>'),f.$Bgparameters.value),mO(f,a,t),n++}return AO(t,e.$Bgmetadata),n>0}function mO(t,e,n){null!==t.$Bguri&&(gO.name="uri",e.setProperty(gO,t.$Bguri)),null!==t.$Bgmetadata&&AO(e,t.$Bgmetadata),n.appendChild(e)}function yO(t,e){if(e)for(var n=0;n<e.length;n++){var i=e[n],r=t.sec.AXXML.Create('<parameter index="'+(n+1)+'" type="'+fD(i.$Bgtype)+'" optional="'+i.$Bgoptional+'"/>');t.appendChild(r)}}function AO(t,e){if(e)for(var n=e.value,i=0;i<n.length;i++){for(var r=n[i],o=t.sec.AXXML.Create('<metadata name="'+fD(r.$Bgname)+'"/>'),a=r.$Bgvalue.value,s=0;s<a.length;s++){var u=a[s],l=t.sec.AXXML.Create('<arg key="'+fD(u.$Bgkey)+'" value="'+fD(u.$Bgvalue)+'"/>');o.appendChild(l)}t.appendChild(o)}}function vO(t,e){if(!e)return null;for(var n=t.createArray([]),i=0;i<e.length;i++){var r=e[i];"native"!==r.getName()&&n.push(bO(t,r))}return n}function bO(t,e){var n=t.createObject();n.$Bgname=e.name;var i=[];n.$Bgvalue=t.createArray(i);for(var r=0;r<e.keys.length;r++){var o=t.createObject();o.$Bgvalue=e.getValueAt(r),o.$Bgkey=e.getKeyAt(r),i.push(o)}return n}var CO=function(t,e){switch(typeof e){case"undefined":return"void";case"object":return null===e?"null":e.classInfo.instanceInfo.name.toFQNString(!1);case"number":return(0|e)===e?"int":"Number";case"string":return"String";case"boolean":return"Boolean"}},xO={print:function(t,e,n,i,r,o){var a,s=[];if(2==arguments.length)a=arguments[1]?arguments[1].toString():arguments[1],-1===["string","boolean","number","null","undefined"].indexOf(typeof arguments[1])&&s.push(arguments[1]);else{a="";for(var u=1;u<arguments.length;u++)a+=arguments[u]?arguments[u].toString():arguments[u],-1===["string","boolean","number","null","undefined"].indexOf(typeof arguments[u])&&s.push(arguments[u]),u!=arguments.length-1&&(a+=" ")}console.log("%c Trace from SWF:","color: DodgerBlue",a,0==s.length?"":s)},debugBreak:function(t){},bugzilla:function(t,e){return 574600===e},decodeURI:function(t,e){try{return Wp.decodeURI(e)}catch(e){t.throwError("URIError",w_.InvalidURIError,"decodeURI")}},decodeURIComponent:function(t,e){try{return Wp.decodeURIComponent(e)}catch(e){t.throwError("URIError",w_.InvalidURIError,"decodeURIComponent")}},encodeURI:function(t,e){try{return Wp.encodeURI(e)}catch(e){t.throwError("URIError",w_.InvalidURIError,"encodeURI")}},encodeURIComponent:function(t,e){try{return Wp.encodeURIComponent(e)}catch(e){t.throwError("URIError",w_.InvalidURIError,"encodeURIComponent")}},isNaN:PS(Wp.isNaN),isFinite:PS(Wp.isFinite),parseInt:PS(Wp.parseInt),parseFloat:PS(Wp.parseFloat),escape:PS(Wp.escape),unescape:PS(Wp.unescape),isXMLName:function(){return!1},notImplemented:PS(Md),getQualifiedClassName:function(t,e){return CO(0,e)},getQualifiedSuperclassName:function(t,e){if(Ya(e))return"null";var n=(e=t.box(e)).sec.AXClass.axIsType(e)?e.superClass:e.axClass.superClass;return CO(0,n)},getDefinitionByName:function(t,e){e=a_(e).replace("::",".");var n=u_.FromFQNString(e,0);return DS().env.app.getClass(n)},describeType:function(t,e,n){return function(t,e,n){fO.name="XML";var i=t.system.getClass(u_.FromSimpleName("XML")),r=dO(t,e,n),o=i.Create("<type/>");gO.name="name",o.setProperty(gO,r.$Bgname);var a=r.$Bgtraits.$Bgbases.value;a.length&&(gO.name="base",o.setProperty(gO,a[0])),gO.name="isDynamic",o.setProperty(gO,r.$BgisDynamic.toString()),gO.name="isFinal",o.setProperty(gO,r.$BgisFinal.toString()),gO.name="isStatic",o.setProperty(gO,r.$BgisStatic.toString()),_O(o,r.$Bgtraits);var s=dO(t,e,512|n);if(s){var u=t.AXXML.Create("<factory/>");gO.name="type",u.setProperty(gO,s.$Bgname),_O(u,s.$Bgtraits)&&o.appendChild(u)}return o}(t,e,n)},describeTypeJSON:function(t,e,n){return console.log("describeTypeJSON not implemented"),null},getArgv:function(){return null}};function IO(t){for(var e=t.split("."),n=xO,i=0,r=e.length;i<r;i++)n=n&&n[e[i]];return n||(n=OS[t]),n}function EO(t,e){void 0===e&&(e=!0);for(var n=function(t,e){var n,i=null;if(t.holder instanceof nP){if(i=t.holder.getClassName(),!(r=sD[i]||uD[i])&&!e)return[];Qa(r,"Class native is not defined: "+i),n=[r.prototype],r.instanceNatives&&qg(n,r.instanceNatives)}else if(t.holder instanceof mP){var r;if(i=t.holder.instanceInfo.getClassName(),!(r=sD[i]||uD[i])&&!e)return[];Qa(r,"Class native is not defined: "+i),n=[r],r.classNatives&&qg(n,r.classNatives)}return n}(t,e),i=t.multiname.name,r=0;r<n.length;r++){var o=n[r],a=i;if(!Qg(o,i)&&Qg(o,"native_"+i)&&(a="native_"+i),Qg(o,a)){var s=void 0;if(t.isAccessor()){var u=Object.getOwnPropertyDescriptor(o,a);s=t.isGetter()?u.get:u.set}else s=o[a];return s}}return t.holder,null}function wO(t,e,n){if(void 0===n&&(n=!1),t.method)return t.method;var i,r,o,a=t.methodInfo;if(32&a.flags){var s=a.getNativeMetadata();if(s||t.holder instanceof cO){if(s)i=IO(s.getValueAt(0));else{var u=t.multiname;i=IO(u.uri+"."+u.name)}r=i,o=e.object.sec,i=function(){switch(arguments.length){case 0:return r(o);case 1:return r(o,arguments[0]);case 2:return r(o,arguments[0],arguments[1]);case 3:return r(o,arguments[0],arguments[1],arguments[2]);default:for(var t=[o],e=0;e<arguments.length;e++)t.push(arguments[e]);return r.apply(this,t)}}}else i=EO(t);i&&!Pd&&(i.toString=function(){return"Native "+t.toString()},i.isInterpreted=!1)}else n&&(i=EO(t,!1)),i||(i=DP(a,e,null));return Qa(i,"Not found method:"+t.toString()),t.method=i,i.methodInfo=a,i.methodInfo=a,i}var SO=function(){function t(e){this.traits=e;for(var n=0;n<this.traits.length;n++){var i=this.traits[n],r=i.multiname;t.multinames[r.namespaces[0].uri+"."+r.name]=i}}return t.prototype.attachHolder=function(t){for(var e=0;e<this.traits.length;e++)this.traits[e].holder=t},t.prototype.trace=function(t){void 0===t&&(t=new Ed),this.traits.forEach((function(e){return t.writeLn(e.toString())}))},t.prototype.getTrait=function(e){for(var n=e.name,i=0,r=e.namespaces;i<r.length;i++){var o=r[i],a=t.multinames[o.uri+"."+n];if(a&&a.holder.traits===this)return a}return null},t.prototype.resolveRuntimeTraits=function(t,e,n,i){void 0===i&&(i=!1);for(var r=Object.create(t?t.protectedNsMappings:null),o=new h_(t,e,r),a=0;a<this.traits.length;a++){var s=this.traits[a],u=s.multiname,l=new pO(u,s.kind,s.abc);1===u.namespaces[0].type&&(o.protectedNsMappings[u.name]&&(l.multiname=o.protectedNsMappings[u.name].multiname),o.protectedNsMappings[u.name]=l);var c=o.addTrait(l);switch(s.kind){case 1:l.value=wO(s,n,i);break;case 2:l.get=wO(s,n,i),c&&c.set&&(l.set=c.set,l.kind=7);break;case 3:l.set=wO(s,n,i),c&&c.get&&(l.get=c.get,l.kind=7);break;case 0:case 6:case 4:l.writable=!0,l.slot=s.slot,l.value=s.getDefaultValue(),l.typeName=s.typeName,o.addSlotTrait(l)}}return o},t.multinames={},t}(),DO={__proto__:null,$BgNumber:NaN,$Bgint:0,$Bguint:0,$BgBoolean:!1},TO=function(t){function e(e,n,i,r,o,a,s){var u=t.call(this,e,n,i)||this;return u.slot=r,u.typeName=o,u.defaultValueKind=a,u.defaultValueIndex=s,u}return L_(e,t),e.prototype.getDefaultValue=function(){if(-1===this.defaultValueKind){if(null===this.typeName)return;var t=DO[this.typeName.getMangledName()];return void 0===t?null:t}return this.abc.getConstant(this.defaultValueKind,this.defaultValueIndex)},e}(yP),PO=function(t){function e(e,n,i,r,o){var a=t.call(this,e,n,i,r,e.getMultiname(0),0,-1)||this;return a.classInfo=o,a}return L_(e,t),e}(TO),OO=function(){function t(t,e,n,i,r,o){this.abc=t,this.start=e,this.end=n,this.target=i,this.multiname=r,this.type=o,this.catchPrototype=null,this._traits=null}return t.prototype.getTraits=function(){return this._traits||(this._traits=new SO([new TO(this.abc,0,this.multiname,1,this.type,0,0)])),this._traits},t}(),MO=null;"undefined"!=typeof TextDecoder&&(MO=new TextDecoder);var BO=function(){function t(t){this._bytes=t,this._view=new DataView(t.buffer,t.byteOffset),this._position=0}return t._getResultBuffer=function(e){return(!t._resultBuffer||t._resultBuffer.length<e)&&(t._resultBuffer=new Uint32Array(2*e)),t._resultBuffer},Object.defineProperty(t.prototype,"position",{get:function(){return this._position},enumerable:!1,configurable:!0}),t.prototype.remaining=function(){return this._bytes.length-this._position},t.prototype.seek=function(t){this._position=t},t.prototype.advance=function(t){this._position+=t},t.prototype.readU8=function(){return this._bytes[this._position++]},t.prototype.readU8s=function(t){var e=new Uint8Array(t);return e.set(this._bytes.subarray(this._position,this._position+t),0),this._position+=t,e},t.prototype.viewU8s=function(t){var e=this._bytes.subarray(this._position,this._position+t);return this._position+=t,e},t.prototype.readS8=function(){return this._bytes[this._position++]<<24>>24},t.prototype.readU32=function(){return this.readS32()>>>0},t.prototype.readU30=function(){var t=this.readU32();return t},t.prototype.readU30Unsafe=function(){return this.readU32()},t.prototype.readS16=function(){return this.readU30Unsafe()<<16>>16},t.prototype.readS32=function(){var t=this.readU8();return 128&t&&16384&(t=127&t|this.readU8()<<7)&&2097152&(t=16383&t|this.readU8()<<14)&&268435456&(t=2097151&t|this.readU8()<<21)&&(t=268435455&t|this.readU8()<<28,t&=4294967295),t},t.prototype.readWord=function(){var t=this._view.getUint32(this._position,!0);return this._position+=4,t},t.prototype.readS24=function(){return(this.readU8()|this.readU8()<<8|this.readU8()<<16)<<8>>8},t.prototype.readDouble=function(){var t=this._view.getFloat64(this._position,!0);return this._position+=8,t},t.prototype.readUTFString=function(e){if(MO){var n=this._position;return this._position+=e,MO.decode(this._bytes.subarray(n,n+e))}for(var i=this._position,r=i+e,o=this._bytes,a=0,s=t._getResultBuffer(2*e);i<r;){var u=o[i++];if(u<=127)s[a++]=u;else if(u>=192){var l=0;u<224?l=(31&u)<<6|63&o[i++]:u<240?l=(15&u)<<12|(63&o[i++])<<6|63&o[i++]:(l=((7&u)<<18|(63&o[i++])<<12|(63&o[i++])<<6|63&o[i++])-65536,s[a++]=55296+((1047552&l)>>>10),l=56320+(1023&l)),s[a++]=l}}return this._position=i,ld.fromCharCodeArray(s.subarray(0,a))},t._resultBuffer=new Uint32Array(256),t}(),NO=function(){function t(t,e){this._buffer=e,this.env=t,this._stream=new BO(e),this._checkMagic(),this._parseConstantPool(),this._parseNamespaces(),this._parseNamespaceSets(),this._parseMultinames(),this._parseMethodInfos(),this._parseMetaData(),this._parseInstanceAndClassInfos(),this._parseScriptInfos(),this._parseMethodBodyInfos()}return Object.defineProperty(t.prototype,"applicationDomain",{get:function(){return this.env.app},enumerable:!1,configurable:!0}),t.prototype._parseConstantPool=function(){this._parseNumericConstants(),this._parseStringConstants()},t.prototype._parseNumericConstants=function(){var t=this._stream,e=t.readU30(),n=new Int32Array(e);n[0]=0;for(var i=1;i<e;i++)n[i]=t.readS32();this.ints=n,e=t.readU30();var r=new Uint32Array(e);r[0]=0;for(i=1;i<e;i++)r[i]=t.readS32();this.uints=r,e=t.readU30();var o=new Float64Array(e);o[0]=NaN;for(i=1;i<e;i++)o[i]=t.readDouble();this.doubles=o},t.prototype._parseStringConstants=function(){var t=this._stream,e=t.readU30();this._strings=new Array(e),this._strings[0]=null;for(var n=1;n<e;n++){var i=t.readU30();this._strings[n]=t.readUTFString(i)}},t.prototype._parseNamespaces=function(){var t=this._stream,e=t.readU30();this._namespaces=new Array(e);for(var n=1;n<e;n++){var i=t.readU8(),r=t.readU30(),o=r?this.getString(r):void 0,a=void 0;switch(i){case 8:case 22:a=0;break;case 23:a=2;break;case 24:a=1;break;case 25:a=4;break;case 26:a=5;break;case 5:a=3;break;default:this.applicationDomain.sec.throwError("VerifierError",w_.CpoolEntryWrongTypeError,n)}o&&3!==a||void 0===o&&(o=""),this._namespaces[n]=r_(a,o)}},t.prototype._parseNamespaceSets=function(){var t=this._stream,e=t.readU30();this._namespaceSets=new Array(e),this._namespaceSets[0]=null;for(var n=1;n<e;n++)for(var i=t.readU30(),r=this._namespaceSets[n]=new Array(i),o=0;o<i;o++){var a=t.readU30();r[o]=this.getNamespace(a)}},t.prototype._parseMultinames=function(){var t=this._stream.readU30();this._multinames=new Array(t),this._multinames[0]=null;for(var e=1;e<t;e++)this._multinames[e]=this._parseMultiname(e)},t.prototype._parseMultiname=function(t){var e,n=this._stream,i=!1,r=!0,o=0,a=n.readU8();switch(a){case 7:case 13:e=n.readU30(),r=!1,o=n.readU30();break;case 15:case 16:i=!0,o=n.readU30();break;case 17:case 18:i=!0;break;case 9:case 14:o=n.readU30(),e=n.readU30();break;case 27:case 28:e=n.readU30();break;case 29:var s=n.readU32();n.readU32();var u=this._multinames[n.readU32()],l=this._multinames[s];return new u_(this,t,a,l.namespaces,l.name,u);default:Gd()}var c,h=0===o?null:this.getString(o);return c=i?null:r?this._namespaceSets[e]:[this.getNamespace(e)],new u_(this,t,a,c,h)},t.prototype._checkMagic=function(){var t=this._stream.readWord();t<3014671&&this.env.app.sec.throwError("VerifierError",w_.InvalidMagicError,t>>16,65535&t)},t.prototype._checkForDuplicateStrings=function(){for(var t=[],e=0;e<this._strings.length;e++)t.push(this.getString(e));t.sort();for(e=0;e<t.length-1;e++)if(t[e]===t[e+1])return!0;return!1},t.prototype.getString=function(t){return this._strings[t]},t.prototype.getMultiname=function(t){return(t<0||t>=this._multinames.length)&&this.applicationDomain.sec.throwError("VerifierError",w_.CpoolIndexRangeError,t,this._multinames.length),0===t?null:this._multinames[t]},t.prototype.getNamespace=function(t){return(t<0||t>=this._namespaces.length)&&this.applicationDomain.sec.throwError("VerifierError",w_.CpoolIndexRangeError,t,this._namespaces.length),0===t?i_.PUBLIC:this._namespaces[t]},t.prototype.getNamespaceSet=function(t){return(t<0||t>=this._namespaceSets.length)&&this.applicationDomain.sec.throwError("VerifierError",w_.CpoolIndexRangeError,t,this._namespaceSets.length),0===t?null:this._namespaceSets[t]},t.prototype._parseMethodInfos=function(){var t=this._stream.readU30();this._methods=new Array(t);for(var e=0;e<t;++e)this._methods[e]=this._parseMethodInfo(e)},t.prototype._parseMethodInfo=function(t){for(var e=this._stream,n=e.readU30(),i=e.readU30(),r=new Array(n),o=0;o<n;o++)r[o]=new hO(this,e.readU30(),0,-1,-1);var a=e.readU30(),s=e.readU8(),u=0;if(8&s)for(o=n-(u=e.readU30());o<n;o++)r[o].optionalValueIndex=e.readU30(),r[o].optionalValueKind=e.readU8();if(128&s)for(o=0;o<n;o++)r[o].name=e.readU30();return new uO(this,t,a,i,r,u,s)},t.prototype.getMethodInfo=function(t){return this._methods[t]},t.prototype.getMethodBodyInfo=function(t){return this._methodBodies[t]},t.prototype._parseMetaData=function(){var t=this._stream,e=t.readU30();this._metadata=new Array(e);for(var n=0;n<e;n++){for(var i=t.readU30(),r=t.readU30(),o=new Uint32Array(r),a=0;a<r;a++)o[a]=t.readU30();var s=new Uint32Array(r);for(a=0;a<r;a++)s[a]=t.readU30();this._metadata[n]=new sO(this,i,o,s)}},t.prototype.getMetadataInfo=function(t){return this._metadata[t]},t.prototype._parseInstanceAndClassInfos=function(){for(var t=this._stream,e=t.readU30(),n=this.instances=new Array(e),i=0;i<e;i++)n[i]=this._parseInstanceInfo();this._parseClassInfos(e);var r=t.position;for(i=0;i<e;i++)n[i].classInfo=this.classes[i];t.seek(r)},t.prototype._parseInstanceInfo=function(){var t=this._stream,e=t.readU30(),n=t.readU30(),i=t.readU8(),r=0;8&i&&(r=t.readU30());for(var o=t.readU30(),a=[],s=0;s<o;s++)a[s]=t.readU30();var u=t.readU30(),l=this._parseTraits(),c=new nP(this,e,n,i,r,a,u,l);return l.attachHolder(c),c},t.prototype._parseTraits=function(){for(var t=this._stream.readU30(),e=[],n=0;n<t;n++)e.push(this._parseTrait());return new SO(e)},t.prototype._parseTrait=function(){var t,e=this._stream,n=this._multinames[e.readU30()],i=e.readU8(),r=15&i,o=i>>4&15;switch(r){case 0:case 6:var a=e.readU30(),s=this._multinames[e.readU30()],u=e.readU30(),l=-1;0!==u&&(l=e.readU8()),t=new TO(this,r,n,a,s,l,u);break;case 1:case 2:case 3:e.readU30();var c=this._methods[e.readU30()];t=c.trait=new AP(this,r,n,c);break;case 4:a=e.readU30();var h=this.classes[e.readU30()];t=h.trait=new PO(this,r,n,a,h);break;default:this.applicationDomain.sec.throwError("VerifierError",w_.UnsupportedTraitsKindError,r)}if(4&o){for(var p=e.readU30(),d=new Uint32Array(p),f=0;f<p;f++)d[f]=e.readU30();t.metadata=d}return t},t.prototype._parseClassInfos=function(t){for(var e=this.classes=new Array(t),n=0;n<t;n++)e[n]=this._parseClassInfo(n)},t.prototype._parseClassInfo=function(t){var e=this._stream.readU30(),n=this._parseTraits(),i=new mP(this,this.instances[t],e,n);return n.attachHolder(i),i},t.prototype._parseScriptInfos=function(){for(var t=this._stream.readU30(),e=this.scripts=new Array(t),n=0;n<t;n++)e[n]=this._parseScriptInfo()},t.prototype._parseScriptInfo=function(){var t=this._stream.readU30(),e=this._parseTraits(),n=new cO(this,t,e);return e.attachHolder(n),n},t.prototype._parseMethodBodyInfos=function(){for(var t=this._stream,e=this._methodBodies=new Array(this._methods.length),n=t.readU30(),i=0;i<n;i++){for(var r=t.readU30(),o=t.readU30(),a=t.readU30(),s=t.readU30(),u=t.readU30(),l=t.viewU8s(t.readU30()),c=t.readU30(),h=new Array(c),p=0;p<c;++p)h[p]=this._parseException();var d=this._parseTraits();e[r]=new lO(o,a,s,u,l,h,d),d.attachHolder(e[r])}},t.prototype._parseException=function(){var t=this._stream,e=t.readU30(),n=t.readU30(),i=t.readU30(),r=t.readU30(),o=t.readU30();return new OO(this,e,n,i,this._multinames[o],this._multinames[r])},t.prototype.getConstant=function(t,e){switch(t){case 3:return this.ints[e];case 4:return this.uints[e];case 6:return this.doubles[e];case 1:return this.getString(e);case 11:return!0;case 10:return!1;case 12:return null;case 0:return;case 8:case 23:return this.getNamespace(e);case 7:case 14:case 15:case 16:case 17:case 18:case 19:case 20:return this._multinames[e]}},t.prototype.stress=function(){for(var t=0;t<this._multinames.length;t++)this._multinames[t];for(t=0;t<this._namespaceSets.length;t++)this._namespaceSets[t];for(t=0;t<this._namespaces.length;t++)this.getNamespace(t);for(t=0;t<this._strings.length;t++)this.getString(t)},t.prototype.trace=function(t){t.writeLn("Multinames: "+this._multinames.length),t.indent();for(var e=0;e<this._multinames.length;e++)t.writeLn(e+" "+this._multinames[e]);t.outdent(),t.writeLn("Namespace Sets: "+this._namespaceSets.length),t.indent();for(e=0;e<this._namespaceSets.length;e++)t.writeLn(e+" "+this._multinames[e]);t.outdent(),t.writeLn("Namespaces: "+this._namespaces.length),t.indent();for(e=0;e<this._namespaces.length;e++)t.writeLn(e+" "+this.getNamespace(e));t.outdent(),t.writeLn("Strings: "+this._strings.length),t.indent();for(e=0;e<this._strings.length;e++)t.writeLn(e+" "+this.getString(e));t.outdent(),t.writeLn("MethodInfos: "+this._methods.length),t.indent();for(e=0;e<this._methods.length;e++)t.writeLn(e+" "+this.getMethodInfo(e)),this._methodBodies[e]&&this._methodBodies[e].trace(t);t.outdent(),t.writeLn("InstanceInfos: "+this.instances.length),t.indent();for(e=0;e<this.instances.length;e++)t.writeLn(e+" "+this.instances[e]),this.instances[e].trace(t);t.outdent(),t.writeLn("ClassInfos: "+this.classes.length),t.indent();for(e=0;e<this.classes.length;e++)this.classes[e].trace(t);t.outdent(),t.writeLn("ScriptInfos: "+this.scripts.length),t.indent();for(e=0;e<this.scripts.length;e++)this.scripts[e].trace(t);t.outdent()},t}();var LO,RO=function(){function t(t,e,n){this.app=t,this.map=Gg(),this.abcs=e,this.scripts=Gg();for(var i=0;i<n.length;i++){var r=n[i];this.scripts[r.name]=r;for(var o=0;o<r.defs.length;o++){var a=r.defs[o].split(":"),s=this.map[a[1]];s||(s=this.map[a[1]]=Object.create(null)),s[a[0]]=r.name}}}return t.prototype.getABCByScriptName=function(t){var e=this.scripts[t];if(!e)return null;var n={url:t,app:this.app};return new NO(n,this.abcs.subarray(e.offset,e.offset+e.length))},t.prototype.getABCByMultiname=function(t){var e=this.map[t.name];if(!e)return null;for(var n=t.namespaces,i=0;i<n.length;i++){var r=e[n[i].uri];if(r)return this.getABCByScriptName(r)}return null},t}();!function(t){t[t.Builtin=1]="Builtin",t[t.Playerglobal=2]="Playerglobal",t[t.Shell=4]="Shell"}(LO||(LO={}));var FO=function(){function t(t){if(this.avmVersion=r.AVM2,!t)throw"AVM2Handler must be init with a valid PlayerGlobal-class";this._playerglobal=t}return t.prototype.init=function(t,e,n){var i=this;this._avmStage&&n(!1),this._avmStage=t,aD(),b_(),i_.PUBLIC=r_(0,""),Function.prototype.axApply=Function.prototype.apply,Function.prototype.axCall=Function.prototype.call,this._playerglobal.createSecurityDomain(t,e,LO.Builtin|LO.Playerglobal).then((function(t){i._factory=t,i._avmStage.config.externalInterfaceID&&(Jg.interfaceID=i._avmStage.config.externalInterfaceID),n(!0)}))},t.prototype.dispose=function(){this._playerglobal.dispose()},t.prototype.enterFrame=function(t){this._playerglobal.enterFrame()},t.prototype.resizeStage=function(){this._playerglobal.resizeStage()},Object.defineProperty(t.prototype,"factory",{get:function(){if(!this._factory)throw"AVM2Handler - no Factory get factory";return this._factory},enumerable:!1,configurable:!0}),t.prototype.addAsset=function(t,e){this._playerglobal.addAsset(t,e)},t}();console.debug("AwayFL - 0.2.207");var kO=function(t){function e(e,n,i){void 0===n&&(n=!0),void 0===i&&(i=!0);var r=t.call(this)||this;return r._iAllowedToPropagate=!0,r._iAllowedToImmediatlyPropagate=!0,r._type=us(e),r._bubbles=!!n,r._cancelable=!!i,r._target=null,r._currentTarget=null,r._eventPhase=null,r._stopPropagation=!1,r._stopImmediatePropagation=!1,r._isDefaultPrevented=!1,r}return Zg(e,t),e.getInstance=function(t,n,i){void 0===n&&(n=!1),void 0===i&&(i=!1);var r=this._instances[t];return r||(r=new e(t,n,i),this._instances[t]=r),r._bubbles=n,r._cancelable=i,r},e.getBroadcastInstance=function(t,n,i){void 0===n&&(n=!1),void 0===i&&(i=!1);var r=this._instances[t];return r||(r=new e(t,n,i),this._instances[t]=r),r._isBroadcastEvent=!0,r._bubbles=n,r._cancelable=i,r},e.isBroadcastEventType=function(t){switch(t){case e.ENTER_FRAME:case e.EXIT_FRAME:case e.FRAME_CONSTRUCTED:case e.RENDER:case e.ACTIVATE:case e.DEACTIVATE:return!0}return!1},Object.defineProperty(e.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bubbles",{get:function(){return this._bubbles},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cancelable",{get:function(){return this._cancelable},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"target",{get:function(){return this._target},set:function(t){this._target=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentTarget",{get:function(){return this._currentTarget},set:function(t){this._currentTarget=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"eventPhase",{get:function(){return this._eventPhase},enumerable:!1,configurable:!0}),e.prototype.stopPropagation=function(){this._stopPropagation=!0,this.adaptee&&this.adaptee.stopPropagation()},e.prototype.stopImmediatePropagation=function(){this._stopImmediatePropagation=this._stopPropagation=!0,this.adaptee&&this.adaptee.stopImmediatePropagation()},e.prototype.preventDefault=function(){this._cancelable&&(this._isDefaultPrevented=!0)},e.prototype.isDefaultPrevented=function(){return this._isDefaultPrevented},e.prototype.isBroadcastEvent=function(){return!!this._isBroadcastEvent},e.prototype.clone=function(){return new e(this._type,this._bubbles,this._cancelable)},e.prototype.toString=function(){return this.formatToString("Event","type","bubbles","cancelable","eventPhase")},e.prototype.formatToString=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var i="["+t,r=0;r<e.length;r++){var o=e[r],a=this.axGetPublicProperty(o);"string"==typeof a&&(a='"'+a+'"'),i+=" "+o+"="+a}return i+"]"},e.classInitializer=function(){this._instances=Gg()},e.ACTIVATE="activate",e.ADDED="added",e.ADDED_TO_STAGE="addedToStage",e.CANCEL="cancel",e.CHANGE="change",e.CLEAR="clear",e.CLOSE="close",e.COMPLETE="complete",e.CONNECT="connect",e.COPY="copy",e.CUT="cut",e.DEACTIVATE="deactivate",e.ENTER_FRAME="enterFrame",e.FRAME_CONSTRUCTED="frameConstructed",e.EXIT_FRAME="exitFrame",e.FRAME_LABEL="frameLabel",e.ID3="id3",e.INIT="init",e.MOUSE_LEAVE="mouseLeave",e.OPEN="open",e.PASTE="paste",e.REMOVED="removed",e.REMOVED_FROM_STAGE="removedFromStage",e.RENDER="render",e.RESIZE="resize",e.SCROLL="scroll",e.TEXT_INTERACTION_MODE_CHANGE="textInteractionModeChange",e.SELECT="select",e.SELECT_ALL="selectAll",e.SOUND_COMPLETE="soundComplete",e.TAB_CHILDREN_CHANGE="tabChildrenChange",e.TAB_ENABLED_CHANGE="tabEnabledChange",e.TAB_INDEX_CHANGE="tabIndexChange",e.UNLOAD="unload",e.FULLSCREEN="fullScreen",e.CONTEXT3D_CREATE="context3DCreate",e.TEXTURE_READY="textureReady",e.VIDEO_FRAME="videoFrame",e.SUSPEND="suspend",e.AVM1_INIT="initialize",e.AVM1_CONSTRUCT="construct",e.AVM1_LOAD="load",e}(B_),UO=function(t){function e(e){void 0===e&&(e=null);var n=t.call(this)||this;return n._t=e||n,n._listenerObjects||(n._listenerObjects=[]),n}return Zg(e,t),e.prototype.toString=function(){return""},e.prototype.addEventListener=function(t,e,n,i,r){void 0===i&&(i=0),this._listenerObjects||(this._listenerObjects=[]);var o=this._listenerObjects[t];void 0===o&&(o=this._listenerObjects[t]=new VO),o.addEventListener(e,i)},e.prototype.removeEventListener=function(t,e){this._listenerObjects||(this._listenerObjects=[]);var n=this._listenerObjects[t];n&&(n.removeEventListener(e),0==n.numListeners&&delete this._listenerObjects[t])},e.prototype.dispatchEvent=function(t){this._listenerObjects||(this._listenerObjects=[]);var e=this._listenerObjects[t.type];return e&&(t.target||(t.target=this._t),e.dispatchEvent(t)),!0},e.prototype.hasEventListener=function(t,e){return void 0!==this._listenerObjects[t]&&(null!=e?-1!==this._listenerObjects[t].getEventListenerIndex(e):this._listenerObjects[t].numListeners>0)},e}(B_);function jO(t,e){return t.priority<e.priority?-1:1}var VO=function(){function t(){this._index=0,this._singlePriority=0,this._listeners=new Array,this.numListeners=0}return t.prototype.addEventListener=function(t,e){if(void 0===e&&(e=0),!this._listenersByPriority)return-1!==this._listeners.indexOf(t)?void 0:0==this._listeners.length||e==this._singlePriority?(this._listeners.push(t),void this.numListeners++):(this._singlePriority<e?this._listenersByPriority=[{priority:this._singlePriority,listeners:this._listeners.concat()},{priority:e,listeners:[t]}]:this._listenersByPriority=[{priority:e,listeners:[t]},{priority:this._singlePriority,listeners:this._listeners.concat()}],void this.numListeners++);for(var n=0;n<this._listenersByPriority.length;n++)if(-1!==this._listenersByPriority[n].listeners.indexOf(t))return;var i=null;for(n=0;n<this._listenersByPriority.length;n++)if(this._listenersByPriority[n].priority==e){i=this._listenersByPriority[n];break}i||(i={priority:e,listeners:[]},this._listenersByPriority.push(i),this._listenersByPriority.length>1&&this._listenersByPriority.sort(jO)),i.listeners.push(t),this.numListeners++},t.prototype.removeEventListener=function(t){var e=-1;if(!this._listenersByPriority){if(-1===(e=this._listeners.indexOf(t)))return;return this._listeners.splice(e,1),void this.numListeners--}for(var n=0;n<this._listenersByPriority.length;n++)if(-1!==(e=this._listenersByPriority[n].listeners.indexOf(t)))return this.numListeners--,void this._listenersByPriority[n].listeners.splice(e,1)},t.prototype.dispatchEvent=function(t){if(this._listenersByPriority){for(var e=this._listenersByPriority.length;e>0;){e--;i=(n=this._listenersByPriority[e].listeners.length>1?this._listenersByPriority[e].listeners.concat():this._listenersByPriority[e].listeners).length,r=0;for(r=0;r<i;r++)n[r]&&n[r].call(n[r],t)}1==this._listenersByPriority.length&&(this._listeners=this._listenersByPriority[0].listeners.concat(),this._singlePriority=this._listenersByPriority[0].priority,this._listenersByPriority=null)}else{var n,i=(n=this._listeners.length>1?this._listeners.concat():this._listeners).length,r=0;for(r=0;r<i;r++)n[r]&&n[r].call(n[r],t)}},t.prototype.getEventListenerIndex=function(t){if(!this._listenersByPriority)return this._listeners.indexOf(t);for(var e=0;e<this._listenersByPriority.length;e++)for(var n=0;n<this._listenersByPriority[e].listeners.length;n++)if(this._listenersByPriority[e].listeners[n]==t)return e;return-1},t}(),QO=function(t){function e(e,n,i,r,o,a,s,u,l,c,h){void 0===n&&(n=!0),void 0===i&&(i=!1),void 0===r&&(r=void 0),void 0===o&&(o=void 0),void 0===a&&(a=null),void 0===s&&(s=!1),void 0===u&&(u=!1),void 0===l&&(l=!1),void 0===c&&(c=!1),void 0===h&&(h=0);var p=t.call(this,e,n,i)||this;return p._localX=r,p._localY=o,p._relatedObject=a,p._ctrlKey=s,p._altKey=u,p._shiftKey=l,p._buttonDown=c,p._delta=h,p}return Zg(e,t),e.typeFromDOMType=function(t){switch(t){case"click":return e.CLICK;case"dblclick":return e.DOUBLE_CLICK;case"mousedown":return e.MOUSE_DOWN;case"mouseout":case"mouseover":case"mousemove":return e.MOUSE_MOVE;case"mouseup":return e.MOUSE_UP}},e.prototype.fillFromAway=function(t){this.adaptee=t,this.target=t.target.adapter,this.currentTarget=t.currentTarget.adapter,this.delta=t.delta,this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey},Object.defineProperty(e.prototype,"localX",{get:function(){return this._localX/20|0},set:function(t){this._localX=20*t|0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"localY",{get:function(){return this._localY/20|0},set:function(t){this._localY=20*t|0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stageX",{get:function(){return isNaN(this.localX+this.localY)?Number.NaN:this.target.stage.mouseX},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stageY",{get:function(){return isNaN(this.localX+this.localY)?Number.NaN:this.target.stage.mouseY},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"movementX",{get:function(){return this._movementX||0},set:function(t){this._movementX=+t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"movementY",{get:function(){return this._movementY||0},set:function(t){this._movementY=+t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"delta",{get:function(){return this._delta},set:function(t){this._delta=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ctrlKey",{get:function(){return this._ctrlKey},set:function(t){this._ctrlKey=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"altKey",{get:function(){return this._altKey},set:function(t){this._altKey=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"shiftKey",{get:function(){return this._shiftKey},set:function(t){this._shiftKey=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"buttonDown",{get:function(){return this._buttonDown},set:function(t){this._buttonDown=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"relatedObject",{get:function(){return this._relatedObject},set:function(t){this._relatedObject=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isRelatedObjectInaccessible",{get:function(){return this._isRelatedObjectInaccessible},set:function(t){this._isRelatedObjectInaccessible=t},enumerable:!1,configurable:!0}),e.prototype.updateAfterEvent=function(){this.sec.player.requestRender()},e.prototype.clone=function(){return new e(this.type,this.bubbles,this.cancelable,this.localX,this.localY,this.relatedObject,this.ctrlKey,this.altKey,this.shiftKey,this.buttonDown,this.delta)},e.prototype.toString=function(){return this.formatToString("MouseEvent","type","bubbles","cancelable","eventPhase","localX","localY","relatedObject","ctrlKey","altKey","shiftKey","buttonDown","delta")},e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.CLICK="click",e.DOUBLE_CLICK="doubleClick",e.MOUSE_DOWN="mouseDown",e.MOUSE_MOVE="mouseMove",e.MOUSE_OUT="mouseOut",e.MOUSE_OVER="mouseOver",e.MOUSE_UP="mouseUp",e.RELEASE_OUTSIDE="releaseOutside",e.MOUSE_WHEEL="mouseWheel",e.ROLL_OUT="rollOut",e.ROLL_OVER="rollOver",e.MIDDLE_CLICK="middleClick",e.MIDDLE_MOUSE_DOWN="middleMouseDown",e.MIDDLE_MOUSE_UP="middleMouseUp",e.RIGHT_CLICK="rightClick",e.RIGHT_MOUSE_DOWN="rightMouseDown",e.RIGHT_MOUSE_UP="rightMouseUp",e.CONTEXT_MENU="contextMenu",e}(kO),GO=function(t){function e(e){void 0===e&&(e=null);var n=t.call(this,e)||this;return n.id=_.Next(),n.eventMapping||(n.eventMapping={}),n.eventMappingDummys||(n.eventMappingDummys={}),n.eventMappingExtern||(n.eventMappingExtern={}),n.eventMappingInvert||(n.eventMappingInvert={}),n._activateCallbackDelegate=function(t){return n.activateCallback(t)},n.eventMapping[kO.ACTIVATE]={adaptedType:"",addListener:n.initActivateListener,removeListener:n.removeActivateListener,callback:n._activateCallbackDelegate},n._deactivateCallbackDelegate=function(t){return n.deactivateCallback(t)},n.eventMapping[kO.DEACTIVATE]={adaptedType:"",addListener:n.initDeactivateListener,removeListener:n.removeDeactivateListener,callback:n._deactivateCallbackDelegate},n}return Zg(e,t),e.prototype.toString=function(){return""},e.prototype.hasEventListener=function(e,n){return t.prototype.hasEventListener.call(this,e,n)},e.prototype.willTrigger=function(){},e.prototype.dispatchEvent=function(n,i){void 0===i&&(i=!1),n.currentTarget=this,"enterFrame"==n.type&&(n.target=this);var r=t.prototype.dispatchEvent.call(this,n);return i||-1!=e.eventsThatBubbleInAwayJS.indexOf(n.type)||this.adaptee&&this.adaptee.parent&&this.adaptee.parent.adapter.dispatchEvent(n),r},e.prototype.initActivateListener=function(t,e){window.onfocus=e},e.prototype.removeActivateListener=function(t,e){window.onfocus=null},e.prototype.activateCallback=function(t){this.dispatchEvent(new this.sec.flash.events.Event(kO.ACTIVATE))},e.prototype.initDeactivateListener=function(t,e){window.onblur=e},e.prototype.removeDeactivateListener=function(t,e){window.onblur=null},e.prototype.deactivateCallback=function(t){this.dispatchEvent(new this.sec.flash.events.Event(kO.DEACTIVATE))},e.prototype.addEventListener=function(e,n,i,r,o){return void 0===i&&(i=!1),void 0===r&&(r=0),void 0===o&&(o=!1),!i&&kO.isBroadcastEventType(e)&&XO.getInstance().add(e,this),this.eventMapping||(this.eventMapping={}),this.eventMappingDummys||(this.eventMappingDummys={}),this.eventMappingExtern||(this.eventMappingExtern={}),this.eventMappingInvert||(this.eventMappingInvert={}),this.eventMappingDummys.hasOwnProperty(e)?void 0:this.eventMapping.hasOwnProperty(e)?(t.prototype.addEventListener.call(this,e,n,i,r,o),void this.eventMapping[e].addListener.call(this,this.eventMapping[e].adaptedType,this.eventMapping[e].callback,n)):void t.prototype.addEventListener.call(this,e,n,i,r,o)},e.prototype.removeEventListener=function(e,n){this.eventMapping||(this.eventMapping={}),this.eventMappingDummys||(this.eventMappingDummys={}),this.eventMappingExtern||(this.eventMappingExtern={}),this.eventMappingInvert||(this.eventMappingInvert={}),t.prototype.removeEventListener.call(this,e,n),this.eventMapping.hasOwnProperty(e)&&(this.eventMapping[e].removeListener.call(this,this.eventMapping[e].adaptedType,this.eventMapping[e].callback,n),this.hasEventListener(e)||kO.isBroadcastEventType(e)&&XO.getInstance().remove(e,this))},e.eventsThatBubbleInAwayJS=[QO.MOUSE_WHEEL,QO.MOUSE_UP,QO.MOUSE_OVER,QO.MOUSE_OUT,QO.ROLL_OVER,QO.ROLL_OUT,QO.MOUSE_MOVE,QO.MOUSE_DOWN,QO.DOUBLE_CLICK,QO.CLICK,kO.ENTER_FRAME,kO.EXIT_FRAME,kO.FRAME_CONSTRUCTED,kO.ADDED_TO_STAGE,kO.RESIZE,kO.REMOVED_FROM_STAGE],e}(UO),zO="WeakRef"in self&&s_.USE_WEAK_REF;zO&&console.debug("[BroadcastEventDispatchQueue] `WeakRef` used for Broadcast Events!");var HO,XO=function(){function t(){this._queues={}}return t.getInstance=function(){return t._instance||(t._instance=new t)},t.prototype.add=function(t,e){var n=this._queues[t]||(this._queues[t]=[]);n[e.id]||(n[e.id]=zO?new self.WeakRef(e):e)},t.prototype.remove=function(t,e){delete this._queues[t][e.id]},t.prototype.dispatchEvent=function(t){var e=this._queues[t._type];if(e)for(var n in e){var i=e[n];zO&&(i=null==i?void 0:i.deref()),i?i.dispatchEvent(t):(console.debug("[BroadcastEventDispatchQueue] Broadcast target was deleted by GC:",n),delete e[n])}},t.prototype.getQueueLength=function(t){return this._queues[t]?Object.getOwnPropertyNames(this._queues[t]).length:0},t}(),YO=function(){function t(){}return t.events={},t}(),qO=function(t){function e(){return t.call(this)||this}return Zg(e,t),e.prototype.clone=function(){return null},e.prototype.toAwayObject=function(){return null},e.classInitializer=null,e}(B_),KO=function(){function t(){}return t.sanitize=function(t,e,n){if(xd(t)||0===t.length)this.colors=[],this.alphas=[],this.ratios=[];else{var i=void 0;xd(n)?(this.colors=this.sanitizeColors(t),i=this.colors.length,this.ratios=this.initArray(i),xd(e)?this.alphas=this.initArray(i):this.alphas=this.sanitizeAlphas(e,i,i,1)):0===n.length?(this.colors=[],this.alphas=[],this.ratios=[]):(i=Math.min(t.length,n.length,16),this.colors=this.sanitizeColors(t,i),this.ratios=this.sanitizeRatios(n,i),xd(e)?this.alphas=this.initArray(i):this.alphas=this.sanitizeAlphas(e,i,i,1))}},t.sanitizeColors=function(t,e){void 0===e&&(e=16);for(var n=[],i=0,r=Math.min(t.length,e);i<r;i++)n[i]=t[i]>>>0&16777215;return n},t.sanitizeAlphas=function(t,e,n,i){void 0===e&&(e=16),void 0===n&&(n=0),void 0===i&&(i=0);var r,o=[],a=Math.min(t.length,e);for(r=0;r<a;r++)o[r]=Jp(+t[r],0,1);for(;r<n;)o[r++]=i;return o},t.sanitizeRatios=function(t,e,n,i){void 0===e&&(e=16),void 0===n&&(n=0),void 0===i&&(i=0);var r,o=[],a=Math.min(t.length,e);for(r=0;r<a;r++)o[r]=Jp(+t[r],0,255);for(;r<n;)o[r++]=i;return o},t.initArray=function(t,e){void 0===e&&(e=0);for(var n=Array(t),i=0;i<t;i++)n[i]=e;return n},t}(),WO=function(t){function e(e,n,i,r,o,a,s,u,l,c,h){void 0===e&&(e=4),void 0===n&&(n=45),void 0===i&&(i=0),void 0===r&&(r=1),void 0===o&&(o=4),void 0===a&&(a=4),void 0===s&&(s=1),void 0===u&&(u=1),void 0===l&&(l=!1),void 0===c&&(c=!1),void 0===h&&(h=!1);var p=t.call(this)||this;return p.filterName="dropShadow",p.distance=e,p.angle=n,p.color=i,p.alpha=r,p.blurX=o,p.blurY=a,p.strength=s,p.quality=u,p.inner=l,p.knockout=c,p.hideObject=h,p}return Zg(e,t),e.FromUntyped=function(t,e){var n=t.colors[0]>>>8,i=(255&t.colors[0])/255,r=180*t.angle/Math.PI,o=!t.compositeSource;return new e.flash.filters.DropShadowFilter(t.distance,r,n,i,t.blurX,t.blurY,t.strength,t.quality,t.inner,t.knockout,o)},Object.defineProperty(e.prototype,"distance",{get:function(){return this._distance},set:function(t){this._distance=+t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"angle",{get:function(){return this._angle},set:function(t){this._angle=+t%360},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"color",{get:function(){return this._color},set:function(t){this._color=t>>>0&16777215},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"alpha",{get:function(){return this._alpha},set:function(t){this._alpha=Jp(+t,0,1)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"blurX",{get:function(){return this._blurX},set:function(t){this._blurX=Jp(+t,0,255)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"blurY",{get:function(){return this._blurY},set:function(t){this._blurY=Jp(+t,0,255)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hideObject",{get:function(){return this._hideObject},set:function(t){this._hideObject=!!t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"inner",{get:function(){return this._inner},set:function(t){this._inner=!!t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"knockout",{get:function(){return this._knockout},set:function(t){this._knockout=!!t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"quality",{get:function(){return this._quality},set:function(t){this._quality=Jp(0|t,0,15)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"strength",{get:function(){return this._strength},set:function(t){this._strength=Jp(+t,0,255)},enumerable:!1,configurable:!0}),e.prototype.toAwayObject=function(){return this},e.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)},e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e}(qO),JO=function(t){function e(e,n,i,r,o,a,s,u){void 0===e&&(e=16711680),void 0===n&&(n=1),void 0===i&&(i=6),void 0===r&&(r=6),void 0===o&&(o=2),void 0===a&&(a=1),void 0===s&&(s=!1),void 0===u&&(u=!1);var l=t.call(this)||this;return l.filterName="glow",l.color=e,l.alpha=n,l.blurX=i,l.blurY=r,l.strength=o,l.quality=a,l.inner=s,l.knockout=u,l}return Zg(e,t),e.FromUntyped=function(t,e){var n=t.colors[0]>>>8,i=(255&t.colors[0])/255;return new e.flash.filters.GlowFilter(n,i,t.blurX,t.blurY,t.strength,t.quality,t.inner,t.knockout)},Object.defineProperty(e.prototype,"color",{get:function(){return this._color},set:function(t){this._color=t>>>0&16777215},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"alpha",{get:function(){return this._alpha},set:function(t){this._alpha=Jp(+t,0,1)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"blurX",{get:function(){return this._blurX},set:function(t){this._blurX=Jp(+t,0,255)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"blurY",{get:function(){return this._blurY},set:function(t){this._blurY=Jp(+t,0,255)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"inner",{get:function(){return this._inner},set:function(t){this._inner=!!t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"knockout",{get:function(){return this._knockout},set:function(t){this._knockout=!!t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"quality",{get:function(){return this._quality},set:function(t){this._quality=Jp(0|t,0,15)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"strength",{get:function(){return this._strength},set:function(t){this._strength=Jp(+t,0,255)},enumerable:!1,configurable:!0}),e.prototype.toAwayObject=function(){return this},e.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)},e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e}(qO),$O=function(t){function e(){return t.call(this)||this}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.INNER="inner",e.OUTER="outer",e.FULL="full",e}(B_),ZO=function(t){function e(e,n,i,r,o,a,s,u,l,c,h,p){void 0===e&&(e=4),void 0===n&&(n=45),void 0===i&&(i=16777215),void 0===r&&(r=1),void 0===o&&(o=0),void 0===a&&(a=1),void 0===s&&(s=4),void 0===u&&(u=4),void 0===l&&(l=1),void 0===c&&(c=1),void 0===h&&(h="inner"),void 0===p&&(p=!1);var d=t.call(this)||this;return d.filterName="bevel",d.distance=e,d.angle=n,d.highlightColor=i,d.highlightAlpha=r,d.shadowColor=o,d.shadowAlpha=a,d.blurX=s,d.blurY=u,d.strength=l,d.quality=c,d.type=h,d.knockout=p,d}return Zg(e,t),e.FromUntyped=function(t,e){var n=t.colors[0]>>>8,i=(255&t.colors[0])/255,r=t.colors[1]>>>8,o=(255&t.colors[1])/255,a=$O.OUTER;t.onTop?a=$O.FULL:t.inner&&(a=$O.INNER);var s=180*t.angle/Math.PI;return new e.flash.filters.BevelFilter(t.distance,s,n,i,r,o,t.blurX,t.blurY,t.strength,t.quality,a,t.knockout)},Object.defineProperty(e.prototype,"distance",{get:function(){return this._distance},set:function(t){this._distance=+t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"angle",{get:function(){return this._angle},set:function(t){this._angle=+t%360},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"highlightColor",{get:function(){return this._highlightColor},set:function(t){this._highlightColor=t>>>0&16777215},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"highlightAlpha",{get:function(){return this._highlightAlpha},set:function(t){this._highlightAlpha=Jp(+t,0,1)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"shadowColor",{get:function(){return this._shadowColor},set:function(t){this._shadowColor=t>>>0&16777215},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"shadowAlpha",{get:function(){return this._shadowAlpha},set:function(t){this._shadowAlpha=Jp(+t,0,1)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"blurX",{get:function(){return this._blurX},set:function(t){this._blurX=Jp(+t,0,255)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"blurY",{get:function(){return this._blurY},set:function(t){this._blurY=Jp(+t,0,255)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"knockout",{get:function(){return this._knockout},set:function(t){this._knockout=!!t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"quality",{get:function(){return this._quality},set:function(t){this._quality=Jp(0|t,0,15)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"strength",{get:function(){return this._strength},set:function(t){this._strength=Jp(+t,0,255)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this._type},set:function(t){null===(t=a_(t))?this.sec.throwError("TypeError",w_.NullPointerError,"type"):t===$O.INNER||t===$O.OUTER?this._type=t:this._type=$O.FULL},enumerable:!1,configurable:!0}),e.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)},e.prototype.toAwayObject=function(){return this},e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e}(qO),tM=function(t){function e(e,n,i,r,o,a,s,u,l,c,h){void 0===e&&(e=4),void 0===n&&(n=45),void 0===i&&(i=null),void 0===r&&(r=null),void 0===o&&(o=null),void 0===a&&(a=4),void 0===s&&(s=4),void 0===u&&(u=1),void 0===l&&(l=1),void 0===c&&(c="inner"),void 0===h&&(h=!1);var p=t.call(this)||this;return p.distance=e,p.angle=n,KO.sanitize(i?i.value:null,r?r.value:null,o?o.value:null),p._colors=KO.colors,p._alphas=KO.alphas,p._ratios=KO.ratios,p.blurX=a,p.blurY=s,p.strength=u,p.quality=l,p.type=c,p.knockout=h,p}return Zg(e,t),e.FromUntyped=function(t,e){for(var n=[],i=[],r=0;r<t.colors.length;r++){var o=t.colors[r];n.push(o>>>8),i.push(255&o)}var a=$O.OUTER;t.onTop?a=$O.FULL:t.inner&&(a=$O.INNER);var s=180*t.angle/Math.PI;return new e.flash.filters.GradientGlowFilter(t.distance,s,this.sec.createArrayUnsafe(n),this.sec.createArrayUnsafe(i),this.sec.createArrayUnsafe(t.ratios),t.blurX,t.blurY,t.strength,t.quality,a,t.knockout)},Object.defineProperty(e.prototype,"distance",{get:function(){return this._distance},set:function(t){this._distance=+t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"angle",{get:function(){return this._angle},set:function(t){this._angle=+t%360},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"colors",{get:function(){return this.sec.createArrayUnsafe(this._colors.concat())},set:function(t){xd(t)&&this.sec.throwError("TypeError",w_.NullPointerError,"colors"),this._colors=KO.sanitizeColors(t.value);var e=this._colors.length;this._alphas=KO.sanitizeAlphas(this._alphas,e,e),this._ratios=KO.sanitizeRatios(this._ratios,e,e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"alphas",{get:function(){return this.sec.createArrayUnsafe(this._alphas.concat())},set:function(t){xd(t)&&this.sec.throwError("TypeError",w_.NullPointerError,"alphas"),KO.sanitize(this._colors,t.value,this._ratios),this._colors=KO.colors,this._alphas=KO.alphas,this._ratios=KO.ratios},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ratios",{get:function(){return this.sec.createArrayUnsafe(this._ratios.concat())},set:function(t){xd(t)&&this.sec.throwError("TypeError",w_.NullPointerError,"ratios"),KO.sanitize(this._colors,this._alphas,t.value),this._colors=KO.colors,this._alphas=KO.alphas,this._ratios=KO.ratios},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"blurX",{get:function(){return this._blurX},set:function(t){this._blurX=Jp(+t,0,255)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"blurY",{get:function(){return this._blurY},set:function(t){this._blurY=Jp(+t,0,255)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"knockout",{get:function(){return this._knockout},set:function(t){this._knockout=!!t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"quality",{get:function(){return this._quality},set:function(t){this._quality=Jp(0|t,0,15)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"strength",{get:function(){return this._strength},set:function(t){this._strength=Jp(+t,0,255)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this._type},set:function(t){null===(t=a_(t))?this.sec.throwError("TypeError",w_.NullPointerError,"type"):t===$O.INNER||t===$O.OUTER?this._type=t:this._type=$O.FULL},enumerable:!1,configurable:!0}),e.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)},e.classInitializer=null,e}(qO),eM=function(t){function e(e,n,i,r,o,a,s,u,l,c,h){void 0===e&&(e=4),void 0===n&&(n=45),void 0===i&&(i=null),void 0===r&&(r=null),void 0===o&&(o=null),void 0===a&&(a=4),void 0===s&&(s=4),void 0===u&&(u=1),void 0===l&&(l=1),void 0===c&&(c="inner"),void 0===h&&(h=!1);var p=t.call(this)||this;return p.distance=e,p.angle=n,KO.sanitize(i?i.value:null,r?r.value:null,o?o.value:null),p._colors=KO.colors,p._alphas=KO.alphas,p._ratios=KO.ratios,p.blurX=a,p.blurY=s,p.strength=u,p.quality=l,p.type=c,p.knockout=h,p}return Zg(e,t),e.FromUntyped=function(t,e){for(var n=[],i=[],r=0;r<t.colors.length;r++){var o=t.colors[r];n.push(o>>>8),i.push(255&o)}var a=$O.OUTER;t.onTop?a=$O.FULL:t.inner&&(a=$O.INNER);var s=180*t.angle/Math.PI;return new e.flash.filters.GradientBevelFilter(t.distance,s,e.createArrayUnsafe(n),e.createArrayUnsafe(i),e.createArrayUnsafe(t.ratios),t.blurX,t.blurY,t.strength,t.quality,a,t.knockout)},Object.defineProperty(e.prototype,"distance",{get:function(){return this._distance},set:function(t){this._distance=+t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"angle",{get:function(){return this._angle},set:function(t){this._angle=+t%360},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"colors",{get:function(){return this.sec.createArrayUnsafe(this._colors.concat())},set:function(t){xd(t)&&this.sec.throwError("TypeError",w_.NullPointerError,"colors"),this._colors=KO.sanitizeColors(t.value);var e=this._colors.length;this._alphas=KO.sanitizeAlphas(this._alphas,e,e),this._ratios=KO.sanitizeRatios(this._ratios,e,e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"alphas",{get:function(){return this.sec.createArrayUnsafe(this._alphas.concat())},set:function(t){xd(t)&&this.sec.throwError("TypeError",w_.NullPointerError,"alphas"),KO.sanitize(this._colors,t.value,this._ratios),this._colors=KO.colors,this._alphas=KO.alphas,this._ratios=KO.ratios},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ratios",{get:function(){return this.sec.createArrayUnsafe(this._ratios.concat())},set:function(t){xd(t)&&this.sec.throwError("TypeError",w_.NullPointerError,"ratios"),KO.sanitize(this._colors,this._alphas,t.value),this._colors=KO.colors,this._alphas=KO.alphas,this._ratios=KO.ratios},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"blurX",{get:function(){return this._blurX},set:function(t){this._blurX=Jp(+t,0,255)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"blurY",{get:function(){return this._blurY},set:function(t){this._blurY=Jp(+t,0,255)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"knockout",{get:function(){return this._knockout},set:function(t){this._knockout=!!t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"quality",{get:function(){return this._quality},set:function(t){this._quality=Jp(0|t,0,15)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"strength",{get:function(){return this._strength},set:function(t){this._strength=Jp(+t,0,255)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this._type},set:function(t){null===(t=a_(t))?this.sec.throwError("TypeError",w_.NullPointerError,"type"):t===$O.INNER||t===$O.OUTER?this._type=t:this._type=$O.FULL},enumerable:!1,configurable:!0}),e.prototype.toAwayObject=function(){return{filterName:"bevel",distance:this._distance,angle:this._angle,blurX:this._blurX,blurY:this._blurY,strength:this._strength,quality:this._quality,type:this._type,knockout:this._knockout,colors:this._colors,alphas:this._alphas,ratios:this._ratios}},e.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)},e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e}(qO),nM=function(t){function e(e,n,i){void 0===e&&(e=4),void 0===n&&(n=4),void 0===i&&(i=1);var r=t.call(this)||this;return r.filterName="blur",r.blurX=e,r.blurY=n,r.quality=i,r}return Zg(e,t),e.FromUntyped=function(t,e){return new e.flash.filters.BlurFilter(t.blurX,t.blurY,t.quality)},Object.defineProperty(e.prototype,"blurX",{get:function(){return this._blurX},set:function(t){this._blurX=Jp(+t,0,255)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"blurY",{get:function(){return this._blurY},set:function(t){this._blurY=Jp(+t,0,255)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"quality",{get:function(){return this._quality},set:function(t){this._quality=Jp(0|t,0,15)},enumerable:!1,configurable:!0}),e.prototype.clone=function(){return new this.sec.flash.filters.BlurFilter(this._blurX,this._blurY,this._quality)},e.prototype.toAwayObject=function(){return this},e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e}(qO),iM=function(t){function e(e,n,i,r,o,a,s,u,l){void 0===e&&(e=0),void 0===n&&(n=0),void 0===i&&(i=null),void 0===r&&(r=1),void 0===o&&(o=0),void 0===a&&(a=!0),void 0===s&&(s=!0),void 0===u&&(u=0),void 0===l&&(l=0);var c=t.call(this)||this;return c.matrixX=e,c.matrixY=n,i?c.matrix=i:c._matrix=c._expandArray([],c._matrixX*c._matrixY),c.divisor=r,c.bias=o,c.preserveAlpha=a,c.clamp=s,c.color=u,c.alpha=l,c}return Zg(e,t),e.FromUntyped=function(t,e){return new e.flash.filters.ConvolutionFilter(t.matrixX,t.matrixY,t.matrix,t.divisor,t.bias,t.preserveAlpha,t.clamp,t.color>>>8,(255&t.color)/255)},e.prototype._expandArray=function(t,e,n){if(t)for(var i=t.length;i<e;)t[i++]=0;return t},Object.defineProperty(e.prototype,"matrix",{get:function(){return this.sec.createArrayUnsafe(this._matrix.slice(0,this._matrixX*this._matrixY))},set:function(t){xd(t)&&this.sec.throwError("TypeError",w_.NullPointerError,"matrix");for(var e=t.value,n=this._matrixX*this._matrixY,i=Math.min(e.length,n),r=Array(i),o=0;o<i;o++)r[o]=vd(e[o]);this._expandArray(r,n),this._matrix=r},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"matrixX",{get:function(){return this._matrixX},set:function(t){var e=0|Jp(+t,0,15);this._matrixX!==e&&(this._matrixX=e,this._expandArray(this._matrix,e*this._matrixY))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"matrixY",{get:function(){return this._matrixY},set:function(t){var e=0|Jp(+t,0,15);this._matrixY!==e&&(this._matrixY=e,this._expandArray(this._matrix,e*this._matrixX))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"divisor",{get:function(){return this._divisor},set:function(t){this._divisor=+t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bias",{get:function(){return this._bias},set:function(t){this._bias=+t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"preserveAlpha",{get:function(){return this._preserveAlpha},set:function(t){this._preserveAlpha=!!t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clamp",{get:function(){return this._clamp},set:function(t){this._clamp=!!t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"color",{get:function(){return this._color},set:function(t){this._color=t>>>0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"alpha",{get:function(){return this._alpha},set:function(t){this._alpha=Jp(+t,0,1)},enumerable:!1,configurable:!0}),e.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)},e.classInitializer=null,e}(qO),rM=function(t){function e(e){void 0===e&&(e=null);var n=t.call(this)||this;return e?n.matrix=e:n._matrix=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],n}return Zg(e,t),e.FromUntyped=function(t,e){return new e.flash.filters.ColorMatrixFilter(e.createArrayUnsafe(t.matrix))},e.prototype._serialize=function(t){var e=this._matrix;t.ensureAdditionalCapacity(4*(e.length+1)),t.writeIntUnsafe(6);for(var n=0;n<e.length;n++)t.writeFloatUnsafe(e[n])},Object.defineProperty(e.prototype,"matrix",{get:function(){return this.sec.createArrayUnsafe(this._matrix.concat())},set:function(t){xd(t)&&this.sec.throwError("TypeError",w_.NullPointerError,"matrix");for(var e=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],n=t.value,i=0,r=Math.min(n.length,20);i<r;i++)e[i]=vd(n[i]);this._matrix=e},enumerable:!1,configurable:!0}),e.prototype.clone=function(){return new this.sec.flash.filters.ColorMatrixFilter(this.sec.createArrayUnsafe(this._matrix))},e.prototype.toAwayObject=function(){return{filterName:"colorMatrix",matrix:this._matrix}},e.classInitializer=null,e}(qO),oM=((HO={})[wf.DROPSHADOW]=WO,HO[wf.GLOW]=JO,HO[wf.BEVEL]=ZO,HO[wf.GRADIENTGLOW]=tM,HO[wf.GRADIENTBEVEL]=eM,HO[wf.BLUR]=nM,HO[wf.CONVOLUTION]=iM,HO[wf.COLORMATRIX]=rM,HO),aM=function(){function t(){}return t.FromUntyped=function(t,e){return t&&oM[t.type]?oM[t.type].FromUntyped(t,e):null},t}(),sM=new N,uM=function(t){return isNaN(t)?0:t===1/0||t===-1/0?-107374182.4:t},lM=function(t){function e(){var n=t.call(this)||this;return n._forceWidth=0,n._forceHeight=0,n.$lazyConstructProperty={},n._onNodeClearDelegate=function(t){return n._onNodeClear(t)},e.applyLazy(n),n._filters=n._filters||n.sec.createArrayUnsafe([]),n._blockedByScript=!1,n._ctBlockedByScript=!1,n._visibilityByScript=!1,n.adaptee=n.adaptee||n.createAdaptee(),n.adaptee.mouseEnabled=!1,n._stage=n.activeStage,n.eventMappingExtern[kO.ENTER_FRAME]="",n.eventMappingExtern[kO.FRAME_CONSTRUCTED]="",n.eventMappingExtern[kO.EXIT_FRAME]="",n.eventMappingExtern[kO.RENDER]="",n.eventMappingExtern[kO.REMOVED_FROM_STAGE]="",n.eventMappingExtern[kO.REMOVED]="",n.eventMappingExtern[kO.ADDED_TO_STAGE]="",n.eventMappingExtern[kO.ADDED]="",n._transform=new n.sec.flash.geom.Transform(n.adaptee.transform),n}return Zg(e,t),e.defineLazy=function(t,e,n){return!t._adaptee&&(t.$lazyConstructProperty||(t.$lazyConstructProperty={}),t.$lazyConstructProperty[e]=n,!0)},e.applyLazy=function(t){if(t.$lazyConstructProperty){for(var e in t.$lazyConstructProperty)e in t&&(t[e]=t.$lazyConstructProperty[e]);t.$lazyConstructProperty=null}},e.prototype.toString=function(){return"[object ".concat(this.classInfo.instanceInfo.name.name,"]")},e.prototype.applySymbol=function(){},e.prototype.dispatchStaticEvent=function(t,e){void 0===e&&(e=null),YO.events[t]||(YO.events[t]=new this.sec.flash.events.Event(t)),YO.events[t].target=e,this.dispatchEvent(YO.events[t])},e.prototype.dispatch_ADDED_TO_STAGE=function(t){void 0===t&&(t=!1),t&&(YO.events[kO.ADDED_TO_STAGE]||(YO.events[kO.ADDED_TO_STAGE]=new this.sec.flash.events.Event(kO.ADDED_TO_STAGE)),YO.events[kO.ADDED_TO_STAGE].target=this,this.dispatchEvent(YO.events[kO.ADDED_TO_STAGE]))},e.prototype.dispatch_REMOVED_FROM_STAGE=function(t){void 0===t&&(t=!1),t&&(YO.events[kO.REMOVED_FROM_STAGE]||(YO.events[kO.REMOVED_FROM_STAGE]=new this.sec.flash.events.Event(kO.REMOVED_FROM_STAGE)),YO.events[kO.REMOVED_FROM_STAGE].target=this,this.dispatchEvent(YO.events[kO.REMOVED_FROM_STAGE]))},e.prototype.dispatchStaticBroadCastEvent=function(t){YO.events[t]||(YO.events[t]=new this.sec.flash.events.Event(t)),XO.getInstance().dispatchEvent(YO.events[t])},e.prototype.updateFilters=function(t){var e=[];if(t&&t.length)for(var n=0,i=t;n<i.length;n++){var r=i[n],o=aM.FromUntyped(r,this.sec);o&&e.push(o)}this.filters=this.sec.createArrayUnsafe(e)},e.prototype._onNodeClear=function(t){this._node.removeEventListener(d.CLEAR,this._onNodeClearDelegate),this._node=null},e.prototype.createAdaptee=function(){return new dl},e.prototype.mapAdaptee=function(t){return t&&(t.partitionClass=Br,t.adapter=this),t},Object.defineProperty(e.prototype,"activeStage",{get:function(){return this.sec.flash.display.DisplayObject.axClass._activeStage},enumerable:!1,configurable:!0}),e.prototype.dispatchEventRecursive=function(t){this.dispatchEvent(t)},Object.defineProperty(e.prototype,"node",{get:function(){return this._node||(this._node=jg.instance().view.getNode(this._adaptee),this._node.addEventListener(d.CLEAR,this._onNodeClearDelegate)),this._node},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"adaptee",{get:function(){return this._adaptee},set:function(t){this._adaptee!=t&&(this._adaptee&&(this._adaptee.adapter=null),this._adaptee=this.mapAdaptee(t))},enumerable:!1,configurable:!0}),e.prototype.initAdapter=function(){},e.prototype.isBlockedByScript=function(){return this._blockedByScript},e.prototype.isVisibilityByScript=function(){return this._visibilityByScript},e.prototype.isColorTransformByScript=function(){return this._ctBlockedByScript},e.prototype.freeFromScript=function(){this._blockedByScript=!1,this._ctBlockedByScript=!1,this._visibilityByScript=!1},e.prototype.clone=function(){if(!this._symbol)throw"_symbol not defined when cloning movieclip";var t=WD(this._symbol,this._symbol.symbolClass);return t.axInitializer(),t.loaderInfo=this.loaderInfo,this.adaptee.copyTo(t.adaptee),t},e.prototype.dispose=function(){throw new h},e.prototype.disposeValues=function(){this.adaptee=null},Object.defineProperty(e.prototype,"accessibilityProperties",{get:function(){return Tt.throwPIR("playerglobals/display/DisplayObject","get accessibilityProperties",""),null},set:function(t){Tt.throwPIR("playerglobals/display/DisplayObject","set accessibilityProperties","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"alpha",{get:function(){return this.adaptee.alpha},set:function(t){this._ctBlockedByScript=!0,this.adaptee.alpha=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"blendMode",{get:function(){return Tt.throwPIR("playerglobals/display/DisplayObject","get blendMode",""),""},set:function(t){Tt.throwPIR("playerglobals/display/DisplayObject","set blendMode",""),this._adaptee.blendMode=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"blendShader",{set:function(t){Tt.throwPIR("playerglobals/display/DisplayObject","set blendShader","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cacheAsBitmap",{get:function(){return this.adaptee.cacheAsBitmap},set:function(t){this.adaptee.cacheAsBitmap=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"filters",{get:function(){return this._filters},set:function(t){this._filters!=t&&(this._filters=t,this._adaptee.filters=null==t?void 0:t.value.map((function(t){return t.toAwayObject()})))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){if(0!=this._forceHeight)return this._forceHeight;if(this.adaptee.isAsset(Qp))return this.adaptee.height;if(!this.node.partition)return console.warn("Trying to get Display.height on orphan child!"),100;var t=this.getBoundsInternal(this.parent||this._stage);return null==t?0:Math.round(20*t.height)/20},set:function(t){isNaN(t)||(t=uM(t),t=Math.round(20*t)/20,this._blockedByScript=!0,this.adaptee.isAsset(Qp)?this.adaptee.height=t:this.node.partition?kr.getInstance().getBoundsPicker(this.node.partition).height=t:console.warn("Trying to set Display.height on orphan child!"))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"loaderInfo",{get:function(){var t;return this._loaderInfo||(null===(t=this.root)||void 0===t?void 0:t._loaderInfo)},set:function(t){this._loaderInfo=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mask",{get:function(){var t;return(null===(t=this.adaptee.scriptMask)||void 0===t?void 0:t.adapter)||null},set:function(t){this.adaptee.scriptMask=(null==t?void 0:t.adaptee)||null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"metaData",{get:function(){return Tt.throwPIR("playerglobals/display/DisplayObject","get metaData",""),null},set:function(t){Tt.throwPIR("playerglobals/display/DisplayObject","set metaData","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mouseX",{get:function(){return sM.setTo(this._stage.mouseX,this._stage.mouseY),this.node.globalToLocal(sM,sM),Math.floor(sM.x)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mouseY",{get:function(){return sM.setTo(this._stage.mouseX,this._stage.mouseY),this.node.globalToLocal(sM,sM),Math.floor(sM.y)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this.adaptee.name},set:function(t){this.adaptee.name=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"opaqueBackground",{get:function(){return Tt.throwPIR("playerglobals/display/DisplayObject","get opaqueBackground",""),null},set:function(t){Tt.throwPIR("playerglobals/display/DisplayObject","set opaqueBackground","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return null==this.adaptee.parent||null==this.adaptee.parent.adapter||this.adaptee.parent.adapter==this.adaptee.parent?null:this.adaptee.parent.adapter},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"root",{get:function(){var t=this._stage.getChildAt(0);return t||(console.log("DisplayObject: could not get root"),null)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rotation",{get:function(){return this.adaptee.rotationZ},set:function(t){this._blockedByScript=!0;var e=isNaN(t)?0:isFinite(t)?t%360:-8;e<-180?e+=360:e>180&&(e-=360),this.adaptee.rotationZ=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rotationX",{get:function(){return this.adaptee.rotationX},set:function(t){this._blockedByScript=!0,this.adaptee.rotationX=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rotationY",{get:function(){return this.adaptee.rotationY},set:function(t){this._blockedByScript=!0,this.adaptee.rotationY=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rotationZ",{get:function(){return this.adaptee.rotationZ},set:function(t){this._blockedByScript=!0,this.adaptee.rotationZ=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scale9Grid",{get:function(){return new this.sec.flash.geom.Rectangle(this.adaptee.scale9Grid)},set:function(t){this.adaptee.scale9Grid=t.adaptee},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleX",{get:function(){return this.adaptee.scaleX},set:function(t){this._blockedByScript=!0,this.adaptee.scaleX=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleY",{get:function(){return this.adaptee.scaleY},set:function(t){this._blockedByScript=!0,this.adaptee.scaleY=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleZ",{get:function(){return this.adaptee.scaleZ},set:function(t){this._blockedByScript=!0,this.adaptee.scaleZ=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scrollRect",{get:function(){return this.adaptee.scrollRect?new this.sec.flash.geom.Rectangle(this.adaptee.scrollRect):null},set:function(t){this.adaptee.scrollRect=t?t.adaptee:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stage",{get:function(){return this._isAVMStage?this:this.adaptee.parent?this.adaptee.parent.adapter.stage:null},set:function(t){this._stage=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"transform",{get:function(){return this._ctBlockedByScript=!0,this._transform=new this.sec.flash.geom.Transform(this.adaptee.transform)},set:function(t){Tt.throwPIR("playerglobals/display/DisplayObject","set transform","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"visible",{get:function(){return this._adaptee.visible},set:function(t){this._visibilityByScript=!0,this._adaptee.visible=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){if(0!=this._forceWidth)return this._forceWidth;if(this.adaptee.isAsset(Qp))return this.adaptee.width;if(!this.node.partition)return console.warn("Trying to get Display.width on orphan child!"),100;var t=this.getBoundsInternal(this.parent||this._stage);return null==t?0:Math.round(20*t.width)/20},set:function(t){isNaN(t)||(t=uM(t),this.node.partition?(t=Math.round(20*t)/20,this._blockedByScript=!0,this.adaptee.isAsset(Qp)?this.adaptee.width=t:kr.getInstance().getBoundsPicker(this.node.partition).width=t):console.warn("Trying to set Display.width on orphan child!"))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"x",{get:function(){return this._adaptee.textOffsetX?this._adaptee._transform._matrix3D._rawData[12]+this._adaptee.textOffsetX*this.adaptee.scaleX:this._adaptee._transform._matrix3D._rawData[12]},set:function(t){t=uM(t),e.defineLazy(this,"x",t)||(this._blockedByScript=!0,this._adaptee.textOffsetX&&(t-=this._adaptee.textOffsetX*this.adaptee.scaleX),this._adaptee.x=t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"y",{get:function(){return this._adaptee.textOffsetY?this._adaptee._transform._matrix3D._rawData[13]+this._adaptee.textOffsetY*this.adaptee.scaleY:this._adaptee._transform._matrix3D._rawData[13]},set:function(t){t=uM(t),e.defineLazy(this,"y",t)||(this._blockedByScript=!0,this._adaptee.textOffsetY&&(t-=this._adaptee.textOffsetY*this.adaptee.scaleY),this._adaptee.y=t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"z",{get:function(){return this._adaptee._transform._matrix3D._rawData[14]},set:function(t){t=uM(t),this._blockedByScript=!0,this._adaptee.z=t},enumerable:!1,configurable:!0}),e.prototype.getBounds=function(t){var e=this.getBoundsInternal(t,!0),n=this.sec.flash.geom.Rectangle;return e?new n(e.x,e.y,e.width,e.height):new n(6710886.4,6710886.4,0,0)},e.prototype.getBoundsInternal=function(t,e){return void 0===t&&(t=null),void 0===e&&(e=!1),t||(t=this),this._boundsPicker=kr.getInstance().getBoundsPicker(this.node.partition),this._boundsPicker.getBoxBounds(jg.instance().view.getNode(t.adaptee),e,!0)},e.prototype.getRect=function(t){var e=this.getBoundsInternal(t),n=this.sec.flash.geom.Rectangle;return e?new n(e.x,e.y,e.width,e.height):new n},e.prototype.globalToLocal=function(t){return new this.sec.flash.geom.Point(this.node.globalToLocal(t.adaptee))},e.prototype.globalToLocal3D=function(t){return Tt.throwPIR("playerglobals/display/DisplayObject","globalToLocal3D",""),new this.sec.flash.geom.Vector3D},e.prototype.hitTestObject=function(t){return kr.getInstance().getBoundsPicker(this.node.partition).hitTestObject(kr.getInstance().getBoundsPicker(jg.instance().view.getNode(t.adaptee).partition))},e.prototype.hitTestPoint=function(t,e,n){return void 0===n&&(n=!1),kr.getInstance().getBoundsPicker(this.node.partition).hitTestPoint(t,e,n)},e.prototype._getObjectsUnderPointInternal=function(t,e){},e.prototype.local3DToGlobal=function(t){return Tt.throwPIR("playerglobals/display/DisplayObject","local3DToGlobal",""),new this.sec.flash.geom.Point},e.prototype.localToGlobal=function(t){return new this.sec.flash.geom.Point(this.node.localToGlobal(t.adaptee))},e._activeStage=null,e}(GO),cM=function(t){function e(e,n,i,r,o,a,s,u,l){void 0===n&&(n=!0),void 0===i&&(i=!1),void 0===r&&(r=0),void 0===o&&(o=0),void 0===a&&(a=0),void 0===s&&(s=!1),void 0===u&&(u=!1),void 0===l&&(l=!1);var c=t.call(this,e,n,i)||this;return c._charCode=r>>>0,c._keyCode=o>>>0,c._keyLocation=a>>>0,c._ctrlKey=!!s,c._altKey=!!u,c._shiftKey=!!l,c}return Zg(e,t),Object.defineProperty(e.prototype,"charCode",{get:function(){return this._charCode},set:function(t){this._charCode=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"keyCode",{get:function(){return this._keyCode},set:function(t){this._keyCode=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"keyLocation",{get:function(){return this._keyLocation},set:function(t){this._keyLocation=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ctrlKey",{get:function(){return this._ctrlKey},set:function(t){this._ctrlKey=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"altKey",{get:function(){return this._altKey},set:function(t){this._altKey=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"shiftKey",{get:function(){return this._shiftKey},set:function(t){this._shiftKey=t},enumerable:!1,configurable:!0}),e.prototype.clone=function(){return new e(this.type,this.bubbles,this.cancelable,this.charCode,this.keyCode,this.keyLocation,this.ctrlKey,this.altKey,this.shiftKey)},e.prototype.toString=function(){return this.formatToString("KeyboardEvent","type","bubbles","cancelable","eventPhase","charCode","keyCode","keyLocation","ctrlKey","altKey","shiftKey")},e.prototype.updateAfterEvent=function(){this.sec.player.requestRender()},e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.KEY_DOWN="keyDown",e.KEY_UP="keyUp",e}(kO),hM=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zg(e,t),Object.defineProperty(e.prototype,"isRelatedObjectInaccessible",{get:function(){return console.log("isRelatedObjectInaccessible not implemented yet in flash/FocusEvent"),!1},set:function(t){console.log("isRelatedObjectInaccessible not implemented yet in flash/FocusEvent")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"keyCode",{get:function(){return console.log("keyCode not implemented yet in flash/FocusEvent"),0},set:function(t){console.log("keyCode not implemented yet in flash/FocusEvent")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"relatedObject",{get:function(){return console.log("relatedObject not implemented yet in flash/FocusEvent"),null},set:function(t){console.log("relatedObject not implemented yet in flash/FocusEvent")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"shiftKey",{get:function(){return console.log("shiftKey not implemented yet in flash/FocusEvent"),!1},set:function(t){console.log("shiftKey not implemented yet in flash/FocusEvent")},enumerable:!1,configurable:!0}),e.prototype.clone=function(){return console.log("clone not implemented yet in flash/IOErrorEvent"),null},e.prototype.toString=function(){return console.log("toString not implemented yet in flash/FocusEvent"),""},e.prototype.fillFromAway=function(t){this.adaptee=t,this.target=t.target},e.FOCUS_IN="focusIn",e.FOCUS_OUT="focusOut",e.KEY_FOCUS_CHANGE="keyFocusChange",e.MOUSE_FOCUS_CHANGE="mouseFocusChange",e}(kO),pM=function(t){function e(){var e=t.call(this)||this;return e._mouseListnersCallbacksByType={},e.adaptee.mouseEnabled=!0,e.eventMappingDummys[QO.RIGHT_MOUSE_UP]="InteractiveObject:MouseEvent.RIGHT_MOUSE_UP",e.eventMappingDummys[QO.RIGHT_MOUSE_DOWN]="InteractiveObject:MouseEvent.RIGHT_MOUSE_DOWN",e.eventMappingDummys[QO.RIGHT_MOUSE_DOWN]="InteractiveObject:MouseEvent.RIGHT_MOUSE_DOWN",e.eventMappingDummys[QO.RIGHT_CLICK]="InteractiveObject:MouseEvent.RIGHT_CLICK",e.eventMappingDummys[QO.MIDDLE_MOUSE_UP]="InteractiveObject:MouseEvent.MIDDLE_MOUSE_UP",e.eventMappingDummys[QO.MIDDLE_MOUSE_DOWN]="InteractiveObject:MouseEvent.MIDDLE_MOUSE_DOWN",e.eventMappingDummys[QO.MIDDLE_CLICK]="InteractiveObject:MouseEvent.MIDDLE_CLICK",e._keyUpCallbackDelegate=function(t){return e.keyUpCallback(t)},e.eventMapping[cM.KEY_UP]={adaptedType:"",addListener:e.initKeyUpListener,removeListener:e.removeKeyUpListener,callback:e._keyUpCallbackDelegate},e._keyDownCallbackDelegate=function(t){return e.keyDownCallback(t)},e.eventMapping[cM.KEY_DOWN]={adaptedType:"",addListener:e.initKeyDownListener,removeListener:e.removeKeyDownListener,callback:e._keyDownCallbackDelegate},e._mouseCallbackDelegate=function(t){return e.mouseCallback(t)},e.eventMappingInvert[Ll.MOUSE_WHEEL]=QO.MOUSE_WHEEL,e.eventMapping[QO.MOUSE_WHEEL]={adaptedType:Ll.MOUSE_WHEEL,addListener:e.initMouseListener,removeListener:e.removeMouseListener,callback:e._mouseCallbackDelegate},e.eventMappingInvert[Ll.MOUSE_UP]=QO.MOUSE_UP,e.eventMapping[QO.MOUSE_UP]={adaptedType:Ll.MOUSE_UP,addListener:e.initMouseListener,removeListener:e.removeMouseListener,callback:e._mouseCallbackDelegate},e.eventMappingInvert[Ll.MOUSE_UP_OUTSIDE]=QO.RELEASE_OUTSIDE,e.eventMapping[QO.RELEASE_OUTSIDE]={adaptedType:Ll.MOUSE_UP_OUTSIDE,addListener:e.initMouseListener,removeListener:e.removeMouseListener,callback:e._mouseCallbackDelegate},e.eventMappingInvert[Ll.MOUSE_OVER]=QO.MOUSE_OVER,e.eventMapping[QO.MOUSE_OVER]={adaptedType:Ll.MOUSE_OVER,addListener:e.initMouseListener,removeListener:e.removeMouseListener,callback:e._mouseCallbackDelegate},e.eventMappingInvert[Ll.MOUSE_OUT]=QO.MOUSE_OUT,e.eventMapping[QO.MOUSE_OUT]={adaptedType:Ll.MOUSE_OUT,addListener:e.initMouseListener,removeListener:e.removeMouseListener,callback:e._mouseCallbackDelegate},e.eventMappingInvert[Ll.MOUSE_MOVE]=QO.MOUSE_MOVE,e.eventMapping[QO.MOUSE_MOVE]={adaptedType:Ll.MOUSE_MOVE,addListener:e.initMouseListener,removeListener:e.removeMouseListener,callback:e._mouseCallbackDelegate},e.eventMappingInvert[Ll.MOUSE_DOWN]=QO.MOUSE_DOWN,e.eventMapping[QO.MOUSE_DOWN]={adaptedType:Ll.MOUSE_DOWN,addListener:e.initMouseListener,removeListener:e.removeMouseListener,callback:e._mouseCallbackDelegate},e.eventMappingInvert[Ll.DOUBLE_CLICK]=QO.DOUBLE_CLICK,e.eventMapping[QO.DOUBLE_CLICK]={adaptedType:Ll.DOUBLE_CLICK,addListener:e.initMouseListener,removeListener:e.removeMouseListener,callback:e._mouseCallbackDelegate},e.eventMappingInvert[Ll.CLICK]=QO.CLICK,e.eventMapping[QO.CLICK]={adaptedType:Ll.CLICK,addListener:e.initMouseListener,removeListener:e.removeMouseListener,callback:e._mouseCallbackDelegate},e.eventMappingInvert[Ll.ROLL_OUT]=QO.ROLL_OUT,e.eventMapping[QO.ROLL_OUT]={adaptedType:Ll.ROLL_OUT,addListener:e.initMouseListener,removeListener:e.removeMouseListener,callback:e._mouseCallbackDelegate},e.eventMappingInvert[Ll.ROLL_OVER]=QO.ROLL_OVER,e.eventMapping[QO.ROLL_OVER]={adaptedType:Ll.ROLL_OVER,addListener:e.initMouseListener,removeListener:e.removeMouseListener,callback:e._mouseCallbackDelegate},e._focusCallbackDelegate=function(t){return e.focusCallback(t)},e.eventMappingInvert[Gp.FOCUS_OUT]=hM.FOCUS_OUT,e.eventMapping[hM.FOCUS_OUT]={adaptedType:Gp.FOCUS_OUT,addListener:e.initMouseListener,removeListener:e.removeMouseListener,callback:e._focusCallbackDelegate},e.eventMappingInvert[Gp.FOCUS_IN]=hM.FOCUS_IN,e.eventMapping[hM.FOCUS_IN]={adaptedType:Gp.FOCUS_IN,addListener:e.initMouseListener,removeListener:e.removeMouseListener,callback:e._focusCallbackDelegate},e}return Zg(e,t),e.prototype.initKeyUpListener=function(t,e,n){if(!this._keyUpListeners)return this._keyUpListeners=[n],document.addEventListener("keyup",e),void document.addEventListener("keypress",e);this._keyUpListeners.push(n)},e.prototype.removeKeyUpListener=function(t,e,n){if(this._keyUpListeners){var i=this._keyUpListeners.indexOf(n);if(-1!=i){if(1==this._keyUpListeners.length)return this._keyUpListeners=null,void document.removeEventListener("keyup",e);this._keyUpListeners.splice(i,1)}}},e.prototype.keyUpCallback=function(t){if(void 0===t&&(t=null),!jg.instance().isPaused){window.event&&(window.event.returnValue=!1),t.preventDefault?t.preventDefault():t.returnValue=!1;var e=new this.sec.flash.events.KeyboardEvent(cM.KEY_UP,!0,!1,t.charCode,t.keyCode,t.location,t.ctrlKey,t.altKey,t.shiftKey);return this.dispatchEvent(e),!1}},e.prototype.initKeyDownListener=function(t,e,n){if(!this._keyDownListeners)return this._keyDownListeners=[n],document.addEventListener("keydown",e),void document.addEventListener("keypress",e);this._keyDownListeners.push(n)},e.prototype.removeKeyDownListener=function(t,e,n){if(this._keyDownListeners){var i=this._keyDownListeners.indexOf(n);if(-1!=i){if(1==this._keyDownListeners.length)return this._keyDownListeners=null,document.removeEventListener("keydown",e),void document.removeEventListener("keypress",e);this._keyDownListeners.splice(i,1)}}},e.prototype.keyDownCallback=function(t){if(void 0===t&&(t=null),!jg.instance().isPaused){window.event&&(window.event.returnValue=!1),t.preventDefault?t.preventDefault():t.returnValue=!1;var e=new this.sec.flash.events.KeyboardEvent(cM.KEY_DOWN);return e.axInitializer(cM.KEY_DOWN),e.keyCode=t.keyCode,e.charCode=t.charCode,e.shiftKey=t.shiftKey,e.ctrlKey=t.ctrlKey,e.altKey=t.altKey,this.dispatchEvent(e),!1}},e.prototype.initMouseListener=function(t,e,n){if(!this._mouseListnersCallbacksByType[t])return this.adaptee.addEventListener(t,e),void(this._mouseListnersCallbacksByType[t]=[n]);this._mouseListnersCallbacksByType[t].push(n)},e.prototype.removeMouseListener=function(t,e,n){if(this._mouseListnersCallbacksByType[t]){var i=this._mouseListnersCallbacksByType[t].indexOf(n);if(-1!=i){if(1==this._mouseListnersCallbacksByType[t].length)return delete this._mouseListnersCallbacksByType[t],void this.adaptee.removeEventListener(t,e);this._mouseListnersCallbacksByType[t].splice(i,1)}}},e.prototype.mouseCallback=function(t){var e=new this.sec.flash.events.MouseEvent(this.eventMappingInvert[t.type]);e.fillFromAway(t),this.dispatchEvent(e,!0)},e.prototype.focusCallback=function(t){var e=new this.sec.flash.events.FocusEvent(this.eventMappingInvert[t.type]);e.fillFromAway(t),e.target=this,this.dispatchEvent(e,!0)},Object.defineProperty(e.prototype,"accessibilityImplementation",{get:function(){return Tt.throwPIR("playerglobals/display/InteractiveObject","get accessibilityImplementation",""),null},set:function(t){Tt.throwPIR("playerglobals/display/InteractiveObject","set accessibilityImplementation","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"contextMenu",{get:function(){return Tt.throwPIR("playerglobals/display/InteractiveObject","get contextMenu",""),null},set:function(t){Tt.throwPIR("playerglobals/display/InteractiveObject","set contextMenu","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"doubleClickEnabled",{get:function(){return Tt.throwPIR("playerglobals/display/InteractiveObject","get doubleClickEnabled",""),!1},set:function(t){Tt.throwPIR("playerglobals/display/InteractiveObject","set doubleClickEnabled","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"focusRect",{get:function(){return Tt.throwPIR("playerglobals/display/InteractiveObject","get focusRect",""),null},set:function(t){Tt.throwPIR("playerglobals/display/InteractiveObject","set focusRect","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mouseEnabled",{get:function(){return this.adaptee.mouseEnabled},set:function(t){this.adaptee.mouseEnabled=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"needsSoftKeyboard",{get:function(){return Tt.throwPIR("playerglobals/display/InteractiveObject","get needsSoftKeyboard",""),!1},set:function(t){Tt.throwPIR("playerglobals/display/InteractiveObject","set needsSoftKeyboard","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"softKeyboardInputAreaOfInterest",{get:function(){return Tt.throwPIR("playerglobals/display/InteractiveObject","get softKeyboardInputAreaOfInterest",""),null},set:function(t){Tt.throwPIR("playerglobals/display/InteractiveObject","set softKeyboardInputAreaOfInterest","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tabEnabled",{get:function(){return Tt.throwPIR("playerglobals/display/InteractiveObject","get tabEnabled",""),!1},set:function(t){Tt.throwPIR("playerglobals/display/InteractiveObject","set tabEnabled","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{get:function(){return Tt.throwPIR("playerglobals/display/InteractiveObject","get tabIndex",""),0},set:function(t){Tt.throwPIR("playerglobals/display/InteractiveObject","set tabIndex","")},enumerable:!1,configurable:!0}),e.prototype.requestSoftKeyboard=function(){return Tt.throwPIR("playerglobals/display/InteractiveObject","requestSoftKeyboard",""),!1},e}(lM),dM=function(t){function e(){var e=t.call(this)||this;if(e.adaptee)for(var n=0;n<e.adaptee.numChildren;n++){var i=e.adaptee.getChildAt(n),r=i.adapter,o=r.executeConstructor;o&&(r.executeConstructor=null,o()),i.just_added_to_timeline&&-1!=i._sessionID&&r&&r.dispatchStaticEvent&&(r.dispatchStaticEvent("added",r),i.just_added_to_timeline=!1,i.hasDispatchedAddedToStage=i.isOnDisplayList(),i.hasDispatchedAddedToStage&&r.dispatchStaticEvent("addedToStage",r))}return e}return Zg(e,t),e.prototype.addTimelineObjectAtDepth=function(t,e){},e.prototype.getTimelineObjectAtDepth=function(t){return null},e.prototype.createAdaptee=function(){return new fl},e.prototype.clone=function(){if(!this._symbol)throw"_symbol not defined when cloning movieclip";var t=WD(this._symbol,this._symbol.symbolClass);return t.axInitializer(),this.adaptee.copyTo(t.adaptee),t},e.prototype.debugDisplayGraph=function(t){t.object=this,t.rectangle="x:"+this.x+", y:"+this.y+", width:"+this.width+", height:"+this.height,t.children={};var e=0;for(e=0;e<this._adaptee.numChildren;e++){var n=this._adaptee.getChildAt(e),i="child_"+e+" "+n.adapter.constructor.name;if(n.isAsset(gl)||n.isAsset(fl))n.adapter&&(t.children[i]={},n.adapter.debugDisplayGraph(t.children[i]));else if(n.isAsset(Il))t.children[i]={},t.children[i].object=n.adapter,t.children[i].name=n.name,t.children[i].rectangle="x:"+n.x+", y:"+n.y;else if(n.isAsset(Rl))t.children[i]={},t.children[i].object=n.adapter,t.children[i].name=n.name,t.children[i].rectangle="x:"+n.x+", y:"+n.y;else if(n.isAsset(Qp)){t.children[i]={},t.children[i].object=n.adapter,t.children[i].text=n.text,t.children[i].rectangle="x:"+n.x+", y:"+n.y;var r=kr.getInstance().getBoundsPicker(jg.instance().view.getNode(n).partition).getBoxBounds(jg.instance().view.getNode(n));t.children[i].width=null==r?0:r.width,t.children[i].height=null==r?0:r.height}}},e.prototype.dispatch_ADDED_TO_STAGE=function(t){if(void 0===t&&(t=!1),t&&(YO.events[kO.ADDED_TO_STAGE]||(YO.events[kO.ADDED_TO_STAGE]=new this.sec.flash.events.Event(kO.ADDED_TO_STAGE)),YO.events[kO.ADDED_TO_STAGE].target=this,this.dispatchEvent(YO.events[kO.ADDED_TO_STAGE])),this._adaptee)for(var e=0;e<this._adaptee.numChildren;e++){var n=this._adaptee.getChildAt(e);n.adapter&&n.adapter.dispatchEventRecursive&&!n.hasDispatchedAddedToStage&&(n.hasDispatchedAddedToStage=!0,n.adapter.dispatch_ADDED_TO_STAGE(!0))}},e.prototype.dispatch_REMOVED_FROM_STAGE=function(t){if(void 0===t&&(t=!1),t&&(YO.events[kO.REMOVED_FROM_STAGE]||(YO.events[kO.REMOVED_FROM_STAGE]=new this.sec.flash.events.Event(kO.REMOVED_FROM_STAGE)),YO.events[kO.REMOVED_FROM_STAGE].target=this,this.dispatchEvent(YO.events[kO.REMOVED_FROM_STAGE])),this._adaptee)for(var e=0;e<this._adaptee.numChildren;e++){var n=this._adaptee.getChildAt(e);n.adapter&&n.adapter.dispatchEventRecursive&&n.hasDispatchedAddedToStage&&(n.hasDispatchedAddedToStage=!1,n.adapter.dispatch_REMOVED_FROM_STAGE(!0))}},Object.defineProperty(e.prototype,"mouseChildren",{get:function(){return this._adaptee.mouseChildren},set:function(t){this._adaptee.mouseChildren=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"numChildren",{get:function(){return this._adaptee.numChildren},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tabChildren",{get:function(){return Tt.throwPIR("playerglobals/display/DisplayObjectContainer","get tabChildren",""),!1},set:function(t){Tt.throwPIR("playerglobals/display/DisplayObjectContainer","set tabChildren","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textSnapshot",{get:function(){return Tt.throwPIR("playerglobals/display/DisplayObjectContainer","get textSnapshot",""),null},enumerable:!1,configurable:!0}),e.prototype.addChild=function(t){var e=t.adaptee._sessionID>=0&&this.registerScriptObject,n=!(t.adaptee.parent==this.adaptee);return this._adaptee.addChild(t.adaptee),e&&this.registerScriptObject(t.adaptee),n&&(t.dispatchStaticEvent(kO.ADDED,t),this.adaptee.isOnDisplayList()&&t.dispatch_ADDED_TO_STAGE(!0)),oP.removeOrphan(t.adaptee),t},e.prototype.addChildAt=function(t,e){var n=t.adaptee._sessionID>=0&&this.registerScriptObject,i=!(t.adaptee.parent==this.adaptee);return this.adaptee.addChildAt(t.adaptee,e),n&&this.registerScriptObject(t.adaptee),i&&(t.dispatchStaticEvent(kO.ADDED),this.adaptee.isOnDisplayList()&&t.dispatch_ADDED_TO_STAGE(!0)),oP.removeOrphan(t.adaptee),t},e.prototype.areInaccessibleObjectsUnderPoint=function(t){return Tt.throwPIR("playerglobals/display/DisplayObjectContainer","areInaccessibleObjectsUnderPoint",""),!1},e.prototype.contains=function(t){return this._adaptee.contains(t.adaptee)},e.prototype.getChildAt=function(t){var e=this._adaptee.getChildAt(t);e.adapter&&e.adapter!=e||((e.adapter=new this.sec.flash.display.Shape).adaptee=e);return e.adapter},e.prototype.getChildByName=function(t){return this._adaptee.getChildByName(t)?this._adaptee.getChildByName(t).adapter:null},e.prototype.getChildIndex=function(t){return this._adaptee.getChildIndex(t.adaptee)},e.prototype.getObjectsUnderPoint=function(t){for(var e=kr.getInstance().getRaycastPicker(jg.instance().view.getNode(this.adaptee).partition).getObjectsUnderPoint(new R(0,0,-1e3),new R(t.x,t.y,1e3)),n=[],i=e.length;i>0;){var r=e[--i];r instanceof fp?r=r.parent:r.isAsset(gl)&&r.adapter==r&&(r.adapter=new this.sec.flash.display.Sprite,r.adapter.adaptee=r),n.push(r.adapter)}return n},e.prototype._getObjectsUnderPointInternal=function(t,e){for(var n,i=0;i<this._adaptee.numChildren;i++)if((n=this._adaptee.getChildAt(i)).visible){kr.getInstance().getBoundsPicker(jg.instance().view.getNode(n.adaptee).partition).hitTestPoint(t.x,t.y,!0)&&e.push(n.adapter);var r=n.adapter;"function"!=typeof r._getObjectsUnderPointInternal||r._getObjectsUnderPointInternal(t,e)}},e.prototype.removeChild=function(t){try{this._adaptee.removeChild(t.adaptee)}catch(t){throw this.sec.createError("ArgumentError",w_.NotAChildError)}return oP.addOrphan(t.adaptee),t},e.prototype.removeChildAt=function(t){var e=this._adaptee.removeChildAt(t).adapter;return oP.addOrphan(e.adaptee),e},e.prototype.removeChildren=function(t,e){void 0===t&&(t=0),void 0===e&&(e=2147483647),e>=this._adaptee.numChildren&&(e=this._adaptee.numChildren-1);for(var n=e-1;n>=t;n--)this.removeChildAt(n)},e.prototype.setChildIndex=function(t,e){this.setChildIndexInternal(t,e)},e.prototype.setChildIndexInternal=function(t,e){var n=this.adaptee.getChildIndex(t.adaptee);if(n<0)throw"[DisplayObjectContainer.setChildindex] \t\t\t\t- todo: throw as3 error when child is not child of this obj";if(n!=e){if(e>this._adaptee.numChildren)throw"[DisplayObjectContainer.setChildindex] - todo: throw as3 error when index is out of bounds";this.adaptee.setChildIndex(t.adaptee,e)}},e.prototype.stopAllMovieClips=function(){Tt.throwPIR("playerglobals/display/DisplayObjectContainer","stopAllMovieClips","")},e.prototype.swapChildren=function(t,e){this._adaptee.swapChildren(t.adaptee,e.adaptee)},e.prototype.swapChildrenAt=function(t,e){this._adaptee.swapChildrenAt(t,e)},e}(pM),fM=function(t){function e(){var e=t.call(this)||this;return e.isDragging=!1,e.startDragPoint=new N,e.startDragMCPosition=new N,e.dragListenerDelegate=function(t){return e.dragListener(t)},e.stopDragDelegate=function(t){return e.stopDrag(t)},e._graphics=new e.sec.flash.display.Graphics(e._adaptee.graphics),!e.sec.flash.display.MovieClip.axIsType(e)&&e.adaptee.isAsset(Rl)&&e.adaptee.transformToSprite(),e}return Zg(e,t),e.getNewSprite=function(t){if(e._sprites.length){var n=e._sprites.pop();return n.adaptee=t,n}return new e},e.prototype.initAdapter=function(){},e.prototype.setChildIndexInternal=function(e,n){var i=this._registeredChildNames&&this._registeredChildNames.indexOf(e.name)>-1;t.prototype.setChildIndexInternal.call(this,e,n),i&&this.registerScriptObject(e.adaptee)},e.prototype.createAdaptee=function(){var t=gl.getNewSprite();return t.reset(),t},e.prototype.addTimelineChildAtDepth=function(t,e){t.reset();for(var n=this.adaptee.numChildren-1,i=n+1,r=0,o=n;o>=0;o--){var a=this.adaptee.getChildAt(o);if(-1==a._avmDepthID&&r++,a._avmDepthID>-1){if(a._avmDepthID<e){i=o+1+r;break}r=0,i=o}}return t._avmDepthID=e,t.just_added_to_timeline=!0,this.adaptee._sessionID_childs[t._sessionID]=t,this.adaptee.addChildAt(t,i)},e.prototype.removeTimelineChildAt=function(t){var e=this.adaptee._sessionID_childs[t];e&&(delete this.adaptee._sessionID_childs[t],this.adaptee.removeChild(e))},e.prototype.removeAllTimelineChilds=function(){var t=this.adaptee;for(var e in t._sessionID_childs){var n=t._sessionID_childs[e];n&&(delete t._sessionID_childs[e],t.removeChild(n))}},e.prototype.queueFrameScripts=function(t,e,n){n?Nl.add_script_to_queue(this.adaptee,e):Nl.add_script_to_queue_pass2(this.adaptee,e)},e.prototype.constructFrame=function(t,e,n,i,r,o,a){for(var s,u,l=this.adaptee,c=l.numChildren,h=[],p={},d=0;d<c;d++){var f=l.getChildAt(d);(i||-1==f._sessionID)&&(h[h.length]={sessionID:f._sessionID,as3DepthID:f._avmDepthID,addedOnTargetFrame:!1,child:f}),-1!=f._sessionID&&(p[f._sessionID]=f)}this.$Bg__setPropDict&&this.clearPropsDic(),t._update_indices.length=0,t._update_frames.length=0;var g,_,m=0;for(u=e;u<=n;u++){var y=t.frame_command_indices[u],A=t.frame_recipe[u];if(2&A){_=(g=t.command_index_stream[y])+t.command_length_stream[y++];var v={};for(s=g;s<_;s++)v[t.remove_child_stream[s]]=!0;var b=[];c=h.length;for(var C=0;C<c;C++)v[h[C].sessionID]||(b[b.length]=h[C]);h=b}if(4&A)for(_=(g=t.command_index_stream[y])+t.command_length_stream[y++],s=g;s<_;s++){for(var x=h.length-1,I=t.add_child_stream[3*s+1],E=x+1,w=0,S=x;S>=0;S--){var D=h[S];if(-1==D.as3DepthID&&w++,D.as3DepthID>-1){if(D.as3DepthID==I&&D.sessionID==t.add_child_stream[3*S]){E=-1;break}if(D.as3DepthID<I){E=S+1+w;break}w=0,E=S}}E>=h.length?h[h.length]={sessionID:t.add_child_stream[3*s],addedOnTargetFrame:u==n,symbolID:t.add_child_stream[3*s+2],as3DepthID:t.add_child_stream[3*s+1]}:E>-1&&h.splice(E,0,{sessionID:t.add_child_stream[3*s],addedOnTargetFrame:u==n,symbolID:t.add_child_stream[3*s+2],as3DepthID:t.add_child_stream[3*s+1]})}8&A&&(t._update_frames[m]=t.keyframe_firstframes[u],t._update_indices[m++]=y++),16&A&&u==n&&t.start_sounds(l,y)}var T,P=[],O=[],M=[];l._sessionID_childs={},c=P.length=h.length;for(var B=0;B<c;B++)if(-1==(T=h[B]).sessionID&&T.child)P[B]=T.child.adaptee;else if(p[T.sessionID]){var N=p[T.sessionID];l._sessionID_childs[T.sessionID]=N,P[B]=N,i||(P[B]._adapter?(P[B].adapter.isColorTransformByScript()||P[B].transform.clearColorTransform(),P[B].adapter.isBlockedByScript()||P[B].noTimelineUpdate||(P[B].transform.clearMatrix3D(),P[B].updateTimelineMask(null)),P[B].adapter.isVisibilityByScript()||(P[B].visible=!0)):(P[B].transform.clearColorTransform(),P[B].transform.clearMatrix3D(),P[B].visible=!0,P[B].updateTimelineMask(null)))}else{var L=t.getChildInstance(T.symbolID,T.sessionID);this.adaptee.isSlice9ScaledMC&&"[asset Sprite]"==L.assetType&&(L.isSlice9ScaledSprite=!0),L._sessionID=T.sessionID,L._avmDepthID=T.as3DepthID,l._sessionID_childs[T.sessionID]=L,P[B]=L,T.addedOnTargetFrame?M[M.length]=L:O[O.length]=L}for(var R=l.numChildren-1;R>=0;R--)P.indexOf(l.getChildAt(R))<0&&l.removeChildAt(R);for(var F=0;F<P.length;F++)l.contains(P[F])||l.addChildAt(P[F],F);l.preventScript=!0,this.finalizeChildren(O),a&&this.queueFrameScripts(t,r,!o),l.preventScript=!0,this.finalizeChildren(M)},e.prototype.finalizeChildren=function(t){for(var e=t.length,n=0;n<e;n++){var i=t[n];i.just_added_to_timeline=!0,i.reset()}},e.prototype.registerScriptObject=function(t){t.adapter!=t&&t.name&&("mask"!==t.name?(this[t.name]=t._adapter?t.adapter:t,this.axSetPublicProperty(t.name,t.adapter),this._registeredChildNames?-1===this._registeredChildNames.indexOf(t.name)&&this._registeredChildNames.push(t.name):this._registeredChildNames=[t.name]):this.adaptee.scriptMask=t)},e.prototype.unregisterScriptObject=function(t){this[t.name]==t.adapter&&(delete this[t.name],this.axDeletePublicProperty(t.name),this._registeredChildNames&&this._registeredChildNames.splice(this._registeredChildNames.indexOf(t.name),1)),t.isAsset(Rl)&&t.removeButtonListeners()},e.prototype.clearPropsDic=function(){},e.prototype.clone=function(){var t=this;if(!this._symbol)throw"_symbol not defined when cloning movieclip";var e=WD(this._symbol,this._symbol.symbolClass),n=new gl;this.adaptee.copyTo(n),e.adaptee=n,e._stage=this.activeStage,e.executeConstructor=function(){e.axInitializer(),t.constructorHasRun=!0},e.adaptee.graphics=this.graphics;var i=n.timeline;if(i){var r=i;if(r.frame_command_indices=[i.frame_command_indices[0]],r.frame_recipe=[i.frame_recipe[0]],r.keyframe_constructframes=[i.keyframe_constructframes[0]],r.keyframe_durations=[i.keyframe_durations[0]],r.keyframe_firstframes=[i.keyframe_firstframes[0]],r.keyframe_indices=[i.keyframe_indices[0]],this._registeredChildNames)for(var o=0,a=this._registeredChildNames;o<a.length;o++){var s=a[o];e.registerScriptObject(this[s])}}return e},e.prototype.dispose=function(){this.disposeValues()},Object.defineProperty(e.prototype,"buttonMode",{get:function(){return this.adaptee.buttonMode},set:function(t){this.adaptee.buttonMode=t},enumerable:!1,configurable:!0}),e.prototype.setDropTarget=function(t){this._dropTarget=t?t.adapter:null},Object.defineProperty(e.prototype,"dropTarget",{get:function(){return this._dropTarget},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"graphics",{get:function(){return this._graphics||(this._graphics=new this.sec.flash.display.Graphics(null))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hitArea",{get:function(){return this.adaptee.pickObject.adapter},set:function(t){this.adaptee.pickObject=t.adaptee},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"soundTransform",{get:function(){return Tt.throwPIR("playerglobals/display/Sprite","get soundTransform",""),null},set:function(t){Tt.throwPIR("playerglobals/display/Sprite","set soundTransform","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"useHandCursor",{get:function(){return this.adaptee._useHandCursor},set:function(t){this.adaptee._useHandCursor=t},enumerable:!1,configurable:!0}),e.prototype.startDrag=function(t,n){if(void 0===t&&(t=!1),void 0===n&&(n=null),e.currentDraggedMC&&e.currentDraggedMC!=this&&e.currentDraggedMC.stopDrag(),e.currentDraggedMC=this,this._dragBounds=n,!this.isDragging){this.isDragging=!0,this.startDragPoint=jg.instance().view.getNode(this._adaptee.parent).globalToLocal(new N(this.stage.mouseX,this.stage.mouseY)),t&&(this.adaptee.x=this.startDragPoint.x,this.adaptee.y=this.startDragPoint.y),this._dragBounds&&this.checkBounds(),this.startDragMCPosition.x=this.adaptee.x,this.startDragMCPosition.y=this.adaptee.y;var i=jg.instance(),r=i.view.getNode(this.adaptee);i.mousePicker.dragNode=r;var o=this.adaptee.getAbstraction(r.partition);o.setParent(r);var a=o.getAbstraction(i.mousePicker.pickGroup).pickingCollision;a.rootNode=r,i.mouseManager.startDragObject(a),i.view.stage.addEventListener(Ll.MOUSE_MOVE,this.dragListenerDelegate)}},e.prototype.checkBounds=function(){this.adaptee.x<this._dragBounds.left&&(this.adaptee.x=this._dragBounds.left),this.adaptee.x>this._dragBounds.right&&(this.adaptee.x=this._dragBounds.right),this.adaptee.y<this._dragBounds.top&&(this.adaptee.y=this._dragBounds.top),this.adaptee.y>this._dragBounds.bottom&&(this.adaptee.y=this._dragBounds.bottom)},e.prototype.dragListener=function(t){if(this.adaptee.parent){var e=jg.instance().view.getNode(this._adaptee.parent).globalToLocal(new N(this.stage.mouseX,this.stage.mouseY));this.adaptee.x=this.startDragMCPosition.x+(e.x-this.startDragPoint.x),this.adaptee.y=this.startDragMCPosition.y+(e.y-this.startDragPoint.y),this._dragBounds&&this.checkBounds()}},e.prototype.startTouchDrag=function(t,e,n){Tt.throwPIR("playerglobals/display/Sprite","startTouchDrag","")},e.prototype.stopDrag=function(t){e.currentDraggedMC&&e.currentDraggedMC!=this&&e.currentDraggedMC.stopDrag(),this.isDragging=!1,e.currentDraggedMC=null;var n=jg.instance();n.mousePicker.dragNode=null,n.mouseManager.stopDragObject(),n.view.stage.removeEventListener(Ll.MOUSE_MOVE,this.dragListenerDelegate)},e.prototype.stopTouchDrag=function(t){Tt.throwPIR("playerglobals/display/Sprite","stopTouchDrag","")},e._sprites=new Array,e.currentDraggedMC=null,e}(dM),gM=function(t){function e(){var e=t.call(this)||this;return e.queuedNavigationAction=null,e}return Zg(e,t),e.prototype.applySymbol=function(){},e.getNewMovieClip=function(t){if(e._movieClips.length){var n=e._movieClips.pop();return n.adaptee=t,n}return new e},e.prototype._getAbsFrameNumber=function(t,e){return 0},e.prototype.callFrame=function(t){},e.prototype._callFrame=function(t){},e.prototype.addScript=function(t){return t},e.prototype.executeScript=function(t){if((this.allowScript||!(this.sec.swfVersion>9))&&(t=this.adaptee.timeline.get_script_for_frame(this.adaptee,this.adaptee.currentFrameIndex,!1))){this.allowScript=!1;var n=e.current_script_scope;e.current_script_scope=this;for(var i=0;i<t.length;i++)t[i].setReceiver(this),t[i].axCall(this);if(e.current_script_scope=n,this.queuedNavigationAction){var r=this.queuedNavigationAction;this.queuedNavigationAction=null,r()}}},e.prototype.initAdapter=function(){},e.prototype.createAdaptee=function(){var t=Rl.getNewMovieClip(new bl(this.sec.player.factory));return t.reset(),t},e.prototype.clearPropsDic=function(){},e.prototype.evalScript=function(t){var e=document.createElement("script");e.text="var __framescript__ = function() {\n"+t+"\n}";var n=document.scripts[0];n.parentNode.insertBefore(e,n).parentNode.removeChild(e);var i=__framescript__;return window.__framescript__=null,i},e.prototype.freeFromScript=function(){t.prototype.freeFromScript.call(this)},e.prototype.clone=function(){var t=this;if(!t._symbol)throw"_symbol not defined when cloning movieclip";var e=WD(t._symbol,t._symbol.symbolClass),n=new Rl(this.adaptee.timeline);return this.adaptee.copyTo(n),e.adaptee=n,e._stage=this.activeStage,e.executeConstructor=function(){e.axInitializer(),e.constructorHasRun=!0},e},e.prototype.dispose=function(){this.disposeValues()},Object.defineProperty(e.prototype,"currentFrame",{get:function(){return this._adaptee.currentFrameIndexRelative+1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentFrameLabel",{get:function(){return this.adaptee.timeline.getCurrentFrameLabel(this.adaptee)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentLabel",{get:function(){return this.adaptee.timeline.getCurrentLabel(this.adaptee)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentLabels",{get:function(){if(this._currentLabels)return this._currentLabels;var t=this.adaptee.timeline._labels,e=this.adaptee.timeline.keyframe_firstframes;for(var n in this._currentLabels=[],t)this._currentLabels.push(new this.sec.flash.display.FrameLabel(t[n].name,e[t[n].keyFrameIndex]+1));return this._currentLabels},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentScene",{get:function(){for(var t=this.adaptee.currentScene,e={value:[]},n=0;n<t.labels.length;n++)e.value.push(new this.sec.flash.display.FrameLabel(t.labels[n].name,t.labels[n].frame));return new this.sec.flash.display.Scene(t.name,e,t.offset,t.numFrames)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return this.adaptee.buttonEnabled},set:function(t){this.adaptee.buttonEnabled=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"framesLoaded",{get:function(){return this.totalFrames},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isPlaying",{get:function(){return this.adaptee.isPlaying},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scenes",{get:function(){return Tt.throwPIR("playerglobals/display/MovieClip","get scenes",""),[]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"totalFrames",{get:function(){return this._adaptee.numFrames},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"trackAsMenu",{get:function(){return Tt.throwPIR("playerglobals/display/MovieClip","get trackAsMenu",""),!1},set:function(t){Tt.throwPIR("playerglobals/display/MovieClip","set trackAsMenu","")},enumerable:!1,configurable:!0}),e.prototype.addFrameScript=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=arguments.length;1&n&&this.sec.throwError("ArgumentError TooFewArgumentsError",n,n+1);for(var i=0;i<n;i+=2){var r=0|t[i],o=t[i+1];this.adaptee.timeline.add_framescript(o,r,this.adaptee)}this.constructorHasRun=!0},e.prototype.gotoAndPlay=function(t,e,n){void 0===e&&(e=null),void 0===n&&(n=!1),this._gotoInternal(t,e,n,!1)},e.prototype.gotoAndStop=function(t,e,n){void 0===e&&(e=null),void 0===n&&(n=!1),this._gotoInternal(t,e,n,!0)},e.prototype._gotoInternal=function(t,n,i,r){var o=this;if(void 0===n&&(n=null),void 0===i&&(i=!1),void 0===r&&(r=!1),i||e.current_script_scope!=this)if(null!=t){var a=this.adaptee;if(n=n||a.currentSceneName,"string"==typeof t&&null==a.timeline._labels[t])return t=parseInt(t),isNaN(t)||(a.jumpToIndex(t-1,n),r?a.stop():a.play()),void(r&&(this.sec.swfVersion>10&&(a.currentFrameIndex=0),this.stop()));if("number"==typeof t&&t<=0){if(e.current_script_scope==this)return;t=1}r?this.stop():this.play(),this._gotoFrame(t,n)}else r&&this.stop();else this.queuedNavigationAction=function(){return o._gotoInternal(t,n,!0,r)}},e.prototype._gotoFrame=function(t,n){void 0===n&&(n=null);var i,r=this._adaptee;"string"==typeof t?i=r.jumpToLabel(t):"number"==typeof t&&t<=0?(console.warn("[playerglobal/MovieClip] - gotoFrame called with invalid frame-index"),i=!0):i=r.jumpToIndex(t-1,n),i&&(Nl.execute_as3_constructors_recursiv(this.adaptee),Nl.execute_as3_constructors_finish_scene(this.root.adaptee),this.sec.swfVersion>9&&this!==e.current_script_scope&&(this.dispatchStaticBroadCastEvent(kO.FRAME_CONSTRUCTED),Nl.execute_queue(),this.dispatchStaticBroadCastEvent(kO.EXIT_FRAME)))},e.prototype.nextFrame=function(t){var n=this;void 0===t&&(t=!1),t||e.current_script_scope!=this?(this._adaptee.stop(),++this._adaptee.currentFrameIndex,Nl.execute_as3_constructors_recursiv(this.adaptee),Nl.execute_as3_constructors_finish_scene(this.root.adaptee),this.sec.swfVersion>9&&(this.dispatchStaticBroadCastEvent(kO.FRAME_CONSTRUCTED),Nl.execute_queue(),this.dispatchStaticBroadCastEvent(kO.EXIT_FRAME))):this.queuedNavigationAction=function(){return n.nextFrame(!0)}},e.prototype.nextScene=function(t){var n=this;void 0===t&&(t=!1),t||e.current_script_scope!=this?Tt.throwPIR("playerglobals/display/MovieClip","nextScene",""):this.queuedNavigationAction=function(){return n.nextScene(!0)}},e.prototype.play=function(){return this._adaptee.play()},e.prototype.prevFrame=function(t){var n=this;if(void 0===t&&(t=!1),t||e.current_script_scope!=this){var i=this._adaptee;i.currentFrameIndexRelative>0&&i.currentFrameIndexRelative--,Nl.execute_as3_constructors_recursiv(this.adaptee),Nl.execute_as3_constructors_finish_scene(this.root.adaptee),this.sec.swfVersion>9&&(this.dispatchStaticBroadCastEvent(kO.FRAME_CONSTRUCTED),Nl.execute_queue(),this.dispatchStaticBroadCastEvent(kO.EXIT_FRAME))}else this.queuedNavigationAction=function(){return n.prevFrame(!0)}},e.prototype.prevScene=function(t){var n=this;void 0===t&&(t=!1),t||e.current_script_scope!=this?Tt.throwPIR("playerglobals/display/MovieClip","prevScene",""):this.queuedNavigationAction=function(){return n.prevScene(!0)}},e.prototype.stop=function(){return this._adaptee.stop()},e._movieClips=new Array,e.current_script_scope=null,e}(fM),_M=function(t){function e(n,i,r){void 0===n&&(n=null),void 0===i&&(i="auto"),void 0===r&&(r=!1);var o=this,a=new Yh(n?n.adaptee:0);return a.alphaBlending=!0,a.useColorTransform=!0,e.argBitmapMaterial=a,e.argPixelSnapping=i,e.argSmoothing=r,o=t.call(this)||this,n&&!o._bitmapMappedFromAsset&&(o._bitmapData=n,o._bitmapData&&o._bitmapData._addOwner(o)),o}return Zg(e,t),e.getNewBitmap=function(t,n,i){if(void 0===t&&(t=null),void 0===n&&(n="auto"),void 0===i&&(i=!1),e._bitmaps.length){var r=new Yh(t?t.adaptee:0);r.alphaBlending=!0,r.useColorTransform=!0;var o=e._bitmaps.pop();return o.adaptee=Il.getNewBillboard(r,n,i),o}return new e(t,n,i)},e.prototype.mapAdaptee=function(e){var n=e;if(e instanceof Ye||e instanceof Xp){this._adaptee=n=Il.getNewBillboard(new Yh(e),"auto",!1);var i=new this.sec.flash.display.BitmapData(e);this.bitmapData=i,this._bitmapMappedFromAsset=!0}return t.prototype.mapAdaptee.call(this,n)},e.prototype.createAdaptee=function(){var t=Il.getNewBillboard(e.argBitmapMaterial,e.argPixelSnapping,e.argSmoothing);return e.argBitmapMaterial=null,e.argPixelSnapping=null,e.argSmoothing=null,t},e.prototype.clone=function(){var t=e.getNewBitmap(this._bitmapData);return this._adaptee.copyTo(t.adaptee),t},e.prototype.dispose=function(){this.disposeValues(),e._bitmaps.push(this)},e.prototype.disposeValues=function(){this.bitmapData=null,t.prototype.disposeValues.call(this)},Object.defineProperty(e.prototype,"bitmapData",{get:function(){return this._bitmapData},set:function(t){if(this._bitmapData!=t||this._bitmapData.adaptee!==t.adaptee){this._bitmapData&&this._bitmapData._removeOwner(this),this._bitmapData=t,this._bitmapData&&this._bitmapData._addOwner(this);var e=this._adaptee.material;this._bitmapData?(e.ambientMethod.texture||(e.ambientMethod.texture=new Ho),e.style.image=this._bitmapData.adaptee,e.alphaBlending=this._bitmapData.adaptee.transparent,e.useColorTransform=!0):(e.ambientMethod.texture&&(e.ambientMethod.texture=null),e.style.image=null,e.style.color=0,e.alphaBlending=!1),e.invalidateTextures()}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pixelSnapping",{get:function(){return""},set:function(t){Tt.throwPIR("playerglobals/display/Bitmap","set pixelSnapping","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"smoothing",{get:function(){return!!this.adaptee.sampler&&this.adaptee.sampler.smooth},set:function(t){this.adaptee.sampler&&(this.adaptee.sampler.smooth=t)},enumerable:!1,configurable:!0}),e._bitmaps=new Array,e}(lM),mM={},yM=function(t){function e(e,n,i,r){void 0===i&&(i=!0),void 0===r&&(r=4294967295);var o=t.call(this)||this;return o._owners=[],"number"==typeof e?o._adaptee||(o._adaptee=Xp.getImage(e,n,i,r,!1,zi.getInstance().getStageAt(0)),o._adaptee.useWeakRef()):o._adaptee=e,o._adaptee.adapter=o,o}return Zg(e,t),e.prototype.compare=function(t){return!0},Object.defineProperty(e.prototype,"adaptee",{get:function(){return this._adaptee},set:function(t){this._adaptee=t},enumerable:!1,configurable:!0}),e.loadBitmap=function(t){return Tt.throwPIR("playerglobals/display/BitmapData","loadBitmap",""),null},e.prototype.setPixels=function(t,e){Tt.throwPIR("playerglobals/display/BitmapData","setPixels","")},e.prototype.getPixels=function(t){var e=this.adaptee.getPixels(t.adaptee),n=new this.sec.flash.utils.ByteArray;return n.setArrayBuffer(e.buffer),n},e.prototype.copyPixelsToByteArray=function(t,e){Tt.throwPIR("playerglobals/display/BitmapData","copyPixelsToByteArray","")},e.prototype.getVector=function(t){for(var e=this.adaptee.getPixels(t.adaptee),n=new this.sec.Uint32Vector(0,!0),i=new Uint32Array(e.buffer),r=0;r<i.length;r++){var o=e[4*r+3],a=e[4*r+0],s=e[4*r+1],u=e[4*r+2],l=o/255||1;i[r]=o<<24|a/l<<16|s/l<<8|u/l}return n._buffer=i,n._length=i.length,n},e.prototype.setVector=function(t,e){Tt.throwPIR("playerglobals/display/BitmapData","setVector","")},e.prototype.histogram=function(t){Tt.throwPIR("playerglobals/display/BitmapData","histogram","")},e.prototype.encode=function(t,e,n){Tt.throwPIR("playerglobals/display/BitmapData","encode","")},e.prototype.drawWithQuality=function(t,e,n,i,r,o,a){Tt.throwPIR("playerglobals/display/BitmapData","drawWithQuality","")},Object.defineProperty(e.prototype,"transparent",{get:function(){return this._adaptee.transparent},set:function(t){this._adaptee.transparent=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this._adaptee.width},set:function(t){this._adaptee.width=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._adaptee.height},set:function(t){this._adaptee.height=t},enumerable:!1,configurable:!0}),e.prototype.clone=function(){var t=new this.sec.flash.display.BitmapData(this._adaptee.width,this._adaptee.height,this._adaptee.transparent,null);return this._adaptee.copyTo?this._adaptee.copyTo(t._adaptee):t.copyPixels(this,this.rect,new this.sec.flash.geom.Point),t},Object.defineProperty(e.prototype,"rect",{get:function(){return new this.sec.flash.geom.Rectangle(this._adaptee.rect.clone())},enumerable:!1,configurable:!0}),e.prototype.getPixel=function(t,e){return this._adaptee.getPixel(t,e)},e.prototype.getPixel32=function(t,e){return this._adaptee.getPixel32(t,e)},e.prototype.setPixel=function(t,e,n){this._adaptee.setPixel(t,e,n)},e.prototype.setPixel32=function(t,e,n){this._adaptee.setPixel32(t,e,n)},e.prototype.applyFilter=function(t,e,n,i){this._adaptee.applyFilter(t.adaptee,e.adaptee,n.adaptee,i.toAwayObject())||Tt.throwPIR("playerglobals/display/BitmapData","applyFilter",i.axClassName)},e.prototype.colorTransform=function(t,e){this._adaptee.colorTransform(t.adaptee,e.adaptee)},e.prototype.copyChannel=function(t,e,n,i,r){this._adaptee.copyChannel(t.adaptee,e.adaptee,n.adaptee,i,r)},e.prototype.copyPixels=function(t,e,n,i,r,o){void 0===i&&(i=null),void 0===r&&(r=null),void 0===o&&(o=!1),this._adaptee.copyPixels(t.adaptee,e.adaptee,n.adaptee,i?i.adaptee:null,r?r.adaptee:null,o)},e.prototype.dispose=function(){this._adaptee&&(this._owners=[],this._adaptee.canUnload&&this._adaptee.dispose(),this._adaptee=null)},e.prototype.draw=function(t,e,n,i,r,o){void 0===n&&(n=null),void 0===i&&(i=""),void 0===r&&(r=null),void 0===o&&(o=!1),this._adaptee.draw(t.adaptee,e?e.adaptee:null,n?n.adaptee:null,i,r?r.adaptee:null,o)},e.prototype.fillRect=function(t,e){this._adaptee.fillRect(t.adaptee,e)},e.prototype.floodFill=function(t,e,n){!function(t,e){mM[t]||(console.warn("".concat(t,":"),e),mM[t]=!0)}("floodFill:"+this._adaptee.id,"Unsage implementation!"),this._adaptee.floodFill(t,e,n)},e.prototype.generateFilterRect=function(t,e){return Tt.throwPIR("playerglobals/display/BitmapData","generateFilterRect",""),null},e.prototype.getColorBoundsRect=function(t,e,n){return Tt.throwPIR("playerglobals/display/BitmapData","getColorBoundsRect",""),new this.sec.flash.geom.Rectangle(this._adaptee.getColorBoundsRect(t,e,n))},e.prototype.hitTest=function(t,e,n,i,r){return void 0===r&&(r=0),Tt.throwPIR("playerglobals/display/BitmapData","hitTest",""),this._adaptee.hitTest(t.adaptee,e,null==n?void 0:n.adaptee,null==i?void 0:i.adaptee,r)},e.prototype.lock=function(){this._adaptee.lock()},e.prototype.merge=function(t,e,n,i,r,o,a){this._adaptee.merge(t.adaptee,t.rect.adaptee,n.adaptee,i,r,o,a)},e.prototype.noise=function(t,e,n,i,r){throw new Error("[BitmapData] Noise not implemented, very important for games!")},e.prototype.paletteMap=function(t,e,n,i,r,o,a){Tt.throwPIR("playerglobals/display/BitmapData","paletteMap","")},e.prototype.perlinNoise=function(t,e,n,i,r,o,a,s,u){void 0===u&&(u=null);var l=u?[]:null;if(u)for(var c=u.value,h=c.length,p=0;p<h;p++)"number"==typeof c[p]?l.push(c[p]):"number"==typeof c[p].x&&l.push(c[p].x,c[p].y);this._adaptee.perlinNoise(t,e,n,i,r,o,a,s,l),Tt.throwPIR("playerglobals/display/BitmapData","perlinNoise","Unsafe implementation, results not equal!")},e.prototype.pixelDissolve=function(t,e,n,i,r,o){return Tt.throwPIR("playerglobals/display/BitmapData","pixelDissolve",""),0},e.prototype.scroll=function(t,e){e|=0,((t|=0)||e)&&this._adaptee.copyPixels(this._adaptee,this._adaptee.rect,new N(t,e),null,null,!1)},e.prototype.threshold=function(t,e,n,i,r,o,a,s){return this._adaptee.threshold(t.adaptee,e.adaptee,n.adaptee,i,r,o,a,s),0},e.prototype.unlock=function(){this._adaptee.unlock()},e.prototype._addOwner=function(t){-1==this._owners.indexOf(t)&&this._owners.push(t)},e.prototype._removeOwner=function(t){var e=this._owners.indexOf(t);-1!=e&&(this._owners.splice(e,1),0===this._owners.length&&this._adaptee.clear())},e}(B_),AM=function(t){function e(e,n){var i=t.call(this)||this;return i.imageStore={},i._sec=e,i._loaderInfo=n,i}return Zg(e,t),Object.defineProperty(e.prototype,"appDomain",{get:function(){return this._loaderInfo?this._loaderInfo.applicationDomain.axApplicationDomain:this._sec.application},enumerable:!1,configurable:!0}),e.prototype.executeABCBytes=function(t){for(var e=0;e<t.length;e++){var n=t[e],i=new NO({app:this.appDomain,url:""},n.data);n.flags?this.appDomain.loadABC(i):this.appDomain.loadAndExecuteABC(i)}return null},e.prototype.createSprite=function(t,e,n){if(void 0===e&&(e=null),void 0===n&&(n=null),!n||!this._sec)throw"no symbol provided";var i=null;i=n.className?this.appDomain.getClass(u_.FromFQNString(n.className,0)):this._sec.flash.display.Sprite.axClass,n.symbolClass=i;var r=WD(n,i);return r.adaptee=new gl(e),r.adaptee},e.prototype.createDisplayObjectContainer=function(t){return(new this._sec.flash.display.DisplayObjectContainer).adaptee},e.prototype.createBinarySymbol=function(t){void 0===t&&(t=null),this.appDomain.addBinarySymbol(t)},e.prototype.createMovieClip=function(t,e){if(void 0===t&&(t=null),void 0===e&&(e=null),!e||!this._sec)throw"no symbol provided";var n=null;e.className?(n=this.appDomain.getClass(u_.FromFQNString(e.className,0)))._symbol=e:n=e.isButton?this._sec.flash.display.SimpleButton.axClass:this._sec.flash.display.MovieClip.axClass,e.symbolClass=n;var i=WD(e,e.isButton?this._sec.flash.display.SimpleButton.axClass:this._sec.flash.display.MovieClip.axClass);return i.adaptee=new Rl(t||new bl(this)),e.timeline=i.adaptee.timeline,i.adaptee},e.prototype.createTextField=function(t){void 0===t&&(t=null);var e=null;e=t.className?this.appDomain.getClass(u_.FromFQNString(t.className,0)):this._sec.flash.text.TextField.axClass,t.symbolClass=e;var n=WD(t,e);return n.axInitializer(),n.adaptee},e.prototype.createBillboard=function(t,e){return new _M(t.style.image.adapter).adaptee},e.prototype.createImage2D=function(t,e,n,i,r,o){void 0===n&&(n=!0),void 0===i&&(i=null);var a=new yM(t,e,n,i).adaptee;return a.unuseWeakRef(),a},e.prototype.createFrameScripts=function(t,e,n,i){return t},e.prototype.createChildInstanceForTimeline=function(t,e,n){Nl.invalidAS3Constructors=!0;var i,r=this.awaySymbols[e];if(r.isAsset(sl))(i=gl.getNewSprite(r.clone())).mouseEnabled=!1;else if(r.isAsset(gl))(i=gl.getNewSprite(r.graphics)).mouseEnabled=!1;else if(r.isAsset(Al))(i=Al.getNewMorphSprite(r.graphics.clone())).mouseEnabled=!1;else if(r.isAsset(Ye)){var o=new Yh(r);o.alphaBlending=r.transparent,(i=Il.getNewBillboard(o)).mouseEnabled=!1}else i=r.adapter.clone(!1).adaptee;return i.partitionClass=Br,i._sessionID=n,i},e}(zp),vM=function(t){function e(){return t.call(this)||this}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e}(GO),bM=function(t){function e(e,n,i,r){var o=t.call(this,e,n,i)||this;return o._text=r,o}return Zg(e,t),Object.defineProperty(e.prototype,"text",{get:function(){return this._text},set:function(t){this._text=t},enumerable:!1,configurable:!0}),e.prototype.clone=function(){return new e(this.type,this.bubbles,this.cancelable,this.text)},e.prototype.toString=function(){return this.formatToString("TextEvent","type","bubbles","cancelable","text")},e.prototype.copyNativeData=function(t){},e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.LINK="link",e.TEXT_INPUT="textInput",e}(kO),CM=function(t){function e(e,n,i,r,o){void 0===n&&(n=!1),void 0===i&&(i=!1),void 0===r&&(r=""),void 0===o&&(o=0);var a=t.call(this,e,n,i,r)||this;return a.setID(o),a}return Zg(e,t),e.prototype.setID=function(t){this._id=t},Object.defineProperty(e.prototype,"errorID",{get:function(){return this._id},enumerable:!1,configurable:!0}),e.prototype.clone=function(){return new e(this.type,this.bubbles,this.cancelable,this.text,this.errorID)},e.prototype.toString=function(){return this.formatToString("ErrorEvent","type","bubbles","cancelable","text","errorID")},e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.ERROR="error",e}(bM),xM=function(t){function e(e,n,i,r,o){return void 0===n&&(n=!1),void 0===i&&(i=!1),void 0===r&&(r=""),void 0===o&&(o=0),t.call(this,e,n,i,r,o)||this}return Zg(e,t),e.prototype.clone=function(){return new e(this.type,this.bubbles,this.cancelable,this.text,this.errorID)},e.prototype.toString=function(){return this.formatToString("IOErrorEvent","type","bubbles","cancelable","text","errorID")},e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.IO_ERROR="ioError",e.NETWORK_ERROR="networkError",e.DISK_ERROR="diskError",e.VERIFY_ERROR="verifyError",e}(CM),IM=function(t){function e(e,n){void 0===e&&(e=null);var i=t.call(this)||this;return i._bytesLoaded=0,i._onAssetCompleteDelegate=function(t){return i.onAssetComplete(t)},i._onLoaderCompleteDelegate=function(t){return i.onLoaderComplete(t)},i._onLoadErrorDelegate=function(t){return i.onLoadError(t)},e&&i.loadWaveAudio(e),i}return Zg(e,t),e.prototype.loadWaveAudio=function(t){this._url=t.url,this._loading=!0,mt.removeEventListener(d.ASSET_COMPLETE,this._onAssetCompleteDelegate),mt.removeEventListener(H.LOADER_COMPLETE,this._onLoaderCompleteDelegate),mt.removeEventListener(K.LOAD_ERROR,this._onLoadErrorDelegate),mt.addEventListener(d.ASSET_COMPLETE,this._onAssetCompleteDelegate),mt.addEventListener(H.LOADER_COMPLETE,this._onLoaderCompleteDelegate),mt.addEventListener(K.LOAD_ERROR,this._onLoadErrorDelegate),mt.load(new yt(this._url),new ft,this._url,new xt)},e.prototype.onAssetComplete=function(t){var e=t.asset;e.isAsset(D)&&(this._adaptee=e,this._loading=!1,this._pendingPlayCommand&&(this.play(this._pendingPlayCommand.startTime/1e3,this._pendingPlayCommand.loops,this._pendingPlayCommand.sndTransform),this._playAfterLoad=!1),this._pendingPlayCommand=null)},e.prototype.onLoaderComplete=function(t){t.url==this._url&&(this._loading=!1,this._bytesLoaded=1e3,mt.removeEventListener(d.ASSET_COMPLETE,this._onAssetCompleteDelegate),mt.removeEventListener(H.LOADER_COMPLETE,this._onLoaderCompleteDelegate),mt.removeEventListener(K.LOAD_ERROR,this._onLoadErrorDelegate),this.dispatchEvent(new this.sec.flash.events.Event(kO.COMPLETE)))},e.prototype.onLoadError=function(t){mt.removeEventListener(d.ASSET_COMPLETE,this._onAssetCompleteDelegate),mt.removeEventListener(H.LOADER_COMPLETE,this._onLoaderCompleteDelegate),mt.removeEventListener(K.LOAD_ERROR,this._onLoadErrorDelegate),console.log("load error in Sound",t),this._loading=!1,this.dispatchEvent(new this.sec.flash.events.IOErrorEvent(xM.ERROR))},Object.defineProperty(e.prototype,"adaptee",{get:function(){return this._adaptee},set:function(t){this._adaptee=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bytesLoaded",{get:function(){return this._bytesLoaded},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bytesTotal",{get:function(){return 1e3},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"id3",{get:function(){return console.log("id3 not implemented yet in flash/Sound"),null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isBuffering",{get:function(){return console.log("isBuffering not implemented yet in flash/Sound"),!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isURLInaccessible",{get:function(){return console.log("isURLInaccessible not implemented yet in flash/Sound"),!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){if(this._adaptee)return this._adaptee.duration},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this._url},enumerable:!1,configurable:!0}),e.prototype.close=function(){console.log("close not implemented yet in flash/Sound")},e.prototype.extract=function(t,e,n){return console.log("extract not implemented yet in flash/Sound"),0},e.prototype.load=function(t,e){this.loadWaveAudio(t)},e.prototype.loadCompressedDataFromByteArray=function(t,e){console.log("loadCompressedDataFromByteArray not implemented yet in flash/Sound")},e.prototype.loadPCMFromByteArray=function(t,e,n,i,r){console.log("loadPCMFromByteArray not implemented yet in flash/Sound")},e.prototype.play=function(t,e,n){if(void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=null),!this.adaptee&&!this._loading)return console.warn("[Sound#play]: no adaptee exists!"),new this.sec.flash.media.SoundChannel;if(!this.adaptee&&this._loading)return this._pendingPlayCommand={startTime:t,loops:e,sndTransform:n,sndChannel:new this.sec.flash.media.SoundChannel},this._pendingPlayCommand.sndChannel;e=isNaN(e)||e<1?1:Math.floor(e);var i=this._adaptee.play(t/1e3,e);i||console.debug("[Sound] Sound channel missed, channel pool overflow for:",this._adaptee.id);var r=this._pendingPlayCommand?this._pendingPlayCommand.sndChannel:new this.sec.flash.media.SoundChannel;return n=n||new this.sec.flash.media.SoundTransform,r.init(i,n),r},e.prototype.stopAll=function(){this._adaptee.stop()},e}(GO),EM=function(t){function e(n,i){void 0===n&&(n=null),void 0===i&&(i=!1);var r=t.call(this)||this;return i||null!=n||null==e._currentDomain||(n=e.getSystemDomain()),e._currentDomain||(e._currentDomain=r),r._parentDomain=n,r._definitions={},r._font_definitions={},r._audio_definitions={},r.axApplicationDomain=i?r.sec.system:n?new MP(r.sec,r.parentDomain.axApplicationDomain):r.sec.application,r.axApplicationDomain.awayApplicationDomain=r,r}return Zg(e,t),e.getSystemDomain=function(){if(null==e._systemDomain){if(!e._currentDomain)return null;e._systemDomain=new this._currentDomain.sec.flash.system.ApplicationDomain(null,!0)}return e._systemDomain},Object.defineProperty(e,"currentDomain",{get:function(){return e._currentDomain},set:function(t){e._currentDomain=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"domainMemory",{get:function(){return console.log("[UNSAFE IMPLEMENTATION!] domainMemory:flash/ApplicationDomain"),this._memory},set:function(t){console.log("[UNSAFE IMPLEMENTATION!] domainMemory:flash/ApplicationDomain"),(t||this._memory.buffer!==t.buffer)&&(this._memoryView=new DataView(t.buffer)),this._memory=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"internal_memoryView",{get:function(){return this._memoryView},enumerable:!1,configurable:!0}),Object.defineProperty(e,"MIN_DOMAIN_MEMORY_LENGTH",{get:function(){return console.log("MIN_DOMAIN_MEMORY_LENGTH not implemented yet in flash/ApplicationDomain"),0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parentDomain",{get:function(){return this._parentDomain},enumerable:!1,configurable:!0}),e.prototype.addDefinition=function(t,e){this._definitions[t]=e},e.prototype.addAudioDefinition=function(t,e){this._audio_definitions[t]=e},e.prototype.addFontDefinition=function(t,e){this._font_definitions[t]=e},e.prototype.hasSymbolForClass=function(t){return this._definitions[t]||this._font_definitions[t]||this._audio_definitions[t]},e.prototype.getSymbolAdaptee=function(t){var e=this._definitions[t];if(e){if(e.isAsset&&e.isAsset(Xp)||!e.adapter)return e;var n=e.adapter.clone();return n.adaptee.isAsset(Rl)&&(n.adaptee.currentFrameIndex=0),n.adaptee}return this._font_definitions[t]?this._font_definitions[t]:this._audio_definitions[t]?this._audio_definitions[t]:null},e.prototype.getSymbolDefinition=function(t){var e=this._definitions[t];if(e){if(e.isAsset&&e.isAsset(Xp))return e;var n=e.adapter.clone();return n.adaptee.isAsset(Rl)&&(n.adaptee.currentFrameIndex=0),n}if(this._font_definitions[t])return this._font_definitions[t];if(this._audio_definitions[t]){var i=new IM;return i.adaptee=this._audio_definitions[t],i}},e.prototype.getDefinition=function(t){return this.axApplicationDomain.getClass(u_.FromSimpleName(t))},e.prototype.getFontDefinition=function(t){return this._font_definitions[t]},e.prototype.getAwayJSAudio=function(t){return this._audio_definitions[t]},e.prototype.getAudioDefinition=function(t){var e=new IM;return e.adaptee=this._audio_definitions[t],e},e.prototype.getQualifiedDefinitionNames=function(){var t=[];for(var e in this._definitions)this._definitions.hasOwnProperty(e)&&(t[t.length]=e);return t},e.prototype.hasDefinition=function(t){try{return!!this.getDefinition(t)}catch(t){return!1}},e.prototype.hasFontDefinition=function(t){return this._font_definitions.hasOwnProperty(t)},e.prototype.hasAudioDefinition=function(t){return this._audio_definitions.hasOwnProperty(t)},e}(B_),wM=function(t){function e(e,n,i){void 0===e&&(e=!1),void 0===n&&(n=null),void 0===i&&(i=null);var r=t.call(this)||this,o=r.sec;return r.checkPolicyFile=e,r.applicationDomain=n||new o.flash.system.ApplicationDomain(EM.currentDomain),r.securityDomain=i,r}return Zg(e,t),e}(B_),SM=function(t){function e(){var e=t.call(this)||this;return e._contentLoaderInfo=new e.sec.flash.display.LoaderInfo(e,e.adaptee),e._factory=new AM(e.sec,e._contentLoaderInfo),e}return Zg(e,t),e.executeQueue=function(){if(e.loaderQueue.length){var t=e.loaderQueue.concat();e.loaderQueue.length=0;for(var n=0,i=t;n<i.length;n++){(0,i[n])()}}},Object.defineProperty(e.prototype,"contentLoaderInfo",{get:function(){return this._contentLoaderInfo},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"content",{get:function(){return this._content},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"uncaughtErrorEvents",{get:function(){return Tt.throwPIR("playerglobals/display/Loader","get uncaughtErrorEvents",""),this._uncaughtErrorEvents||(this._uncaughtErrorEvents=new vM),this._uncaughtErrorEvents},enumerable:!1,configurable:!0}),e.prototype.createAdaptee=function(){var t=this;this._onAssetCompleteDelegate=function(e){return t._onAssetComplete(e)};var e=new Bl;return e.addEventListener(d.ASSET_COMPLETE,this._onAssetCompleteDelegate),e},e.prototype._onAssetComplete=function(e){var n=e.asset;n.adapter.loaderInfo=this._contentLoaderInfo,n.isAsset(Qp)?this._contentLoaderInfo.applicationDomain.addDefinition(n.name,n):n.isAsset(Xp)||n.isAsset(Ye)?(this._contentLoaderInfo.applicationDomain.addDefinition(n.name,n),this._isImage&&(this._content=new _M(n.adapter),this._adaptee.addChild(this._content.adaptee))):n.isAsset(D)?this._contentLoaderInfo.applicationDomain.addAudioDefinition(n.name,n):n.isAsset(rp)?this._contentLoaderInfo.applicationDomain.addFontDefinition(n.name,n):n.isAsset(gl)?this._contentLoaderInfo.applicationDomain.addDefinition(n.name,n):n.isAsset(Rl)?(this._contentLoaderInfo.applicationDomain.addDefinition(n.name,n),("Scene 1"==n.name||n.isAVMScene)&&(this._content=n.adapter.clone(),this._content.loaderInfo=this._contentLoaderInfo,this._content.adaptee.reset(),Nl.invalidAS3Constructors=!0,t.prototype.addChild.call(this,this._content),Nl.execute_as3_constructors_recursiv(this._content.adaptee))):n.isAsset(sl)||console.log("loaded unhandled asset-type:",n.name)},e.prototype.addChild=function(t){return this.sec.throwError("IllegalOperationError",w_.InvalidLoaderMethodError),null},e.prototype.addChildAt=function(t,e){return this.sec.throwError("IllegalOperationError",w_.InvalidLoaderMethodError),null},e.prototype.removeChild=function(t){return this.sec.throwError("IllegalOperationError",w_.InvalidLoaderMethodError),null},e.prototype.removeChildAt=function(t){return this.sec.throwError("IllegalOperationError",w_.InvalidLoaderMethodError),null},e.prototype.setChildIndex=function(t,e){this.sec.throwError("IllegalOperationError",w_.InvalidLoaderMethodError)},e.prototype.close=function(){this.adaptee.close()},e.prototype.load=function(t,n){var i=this;void 0===n&&(n=null),e.loaderQueue.push((function(){i._delayedLoad(t,n)}))},e.prototype._delayedLoad=function(t,n){var i=this;void 0===n&&(n=null);var r=t.url||"",o=r.replace(/\?.*$/,""),a=kg(r,e.redirectRules);if(a){if(a.supressLoad)return void console.log("[LOADER] Load surpressed ",a.url);console.log("[LOADER] Override loading url:",a.url),t.adaptee.url=a.url}else console.log("[LOADER] start loading the url:",o);var s=o.substr(-3).toLowerCase();this._isImage="jpg"==s||"png"==s,"gif"!==s?(this._loaderContext=n||new wM(!1,EM.currentDomain),this._contentLoaderInfo._setApplicationDomain(this._loaderContext.applicationDomain),this._adaptee.load(t.adaptee,null,null,this._isImage?new Yi(this._factory):new Lg(this._factory)),a&&a.supressErrors&&this.adaptee.addEventListener(K.LOAD_ERROR,(function(t){console.log("[LOADER] Error supressed by redirect rule as empty complete events!",t),i._contentLoaderInfo._onLoaderCompleteDelegate(new H(H.LOADER_COMPLETE,t.urlLoader.url,null))}))):console.warn("[Loader] Unsupported file type:",s,o)},e.prototype.loadBytes=function(t,n){var i=this;if(void 0===n&&(n=null),t){var r=t.bytes;0!==r[0]||0!==r[1]||0!==r[2]?e.loaderQueue.push((function(){i._loaderContext=n||new wM(!1,EM.currentDomain),i._contentLoaderInfo._setApplicationDomain(i._loaderContext.applicationDomain),i._contentLoaderInfo.source=t,i._adaptee.loadData(r,null,null,new Lg(i._factory))})):console.warn("[Loader] Bytes buffer has empty magic number!")}else console.warn("[Loader] Bytes byffer is `undefined`")},e.prototype.unload=function(){this._unload(!1,!1)},e.prototype.unloadAndStop=function(t){this._unload(!0,!!t)},e.prototype._unload=function(t,e){Tt.throwPIR("playerglobals/display/Loader","_unload","")},e.redirectRules=[],e.loaderQueue=[],e}(dM),DM=function(t){function e(e,n,i,r,o){void 0===n&&(n=!1),void 0===i&&(i=!1),void 0===r&&(r=0),void 0===o&&(o=0);var a=t.call(this,e,n,i)||this;return a._bytesLoaded=r,a._bytesTotal=o,a}return Zg(e,t),Object.defineProperty(e.prototype,"bytesLoaded",{get:function(){return this._bytesLoaded},set:function(t){this._bytesLoaded=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bytesTotal",{get:function(){return this._bytesTotal},set:function(t){this._bytesTotal=t},enumerable:!1,configurable:!0}),e.prototype.clone=function(){return new e(this._type,this._bubbles,this._cancelable,this._bytesLoaded,this._bytesTotal)},e.prototype.toString=function(){return this.formatToString("ProgressEvent","bubbles","cancelable","eventPhase","bytesLoaded","bytesTotal")},e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.PROGRESS="progress",e.SOCKET_DATA="socketData",e}(kO),TM=function(){function t(){}return t.addQueue=function(t){this._queue.push({loaderInfo:t,delayCnt:this.DELAY})},t.executeQueue=function(){for(var t=this._queue,e=t.length,n=!0;e>0;){var i=t[--e];if(i.delayCnt--,i.delayCnt>0)n=!1;else if(0==i.delayCnt){var r=new i.loaderInfo.sec.flash.events.Event(kO.COMPLETE);r.currentTarget=i.loaderInfo,i.loaderInfo.dispatchEvent(r)}}n&&(t.length=0)},t._queue=[],t.DELAY=2,t}(),PM=function(t){function e(e,n){var i=t.call(this)||this;return i._bytesLoaded=0,i._bytesTotal=0,i.eventMappingExtern[kO.COMPLETE]="LoaderInfo:Event.COMPLETE",i.eventMappingExtern[DM.PROGRESS]="LoaderInfo:ProgressEvent.PROGRESS",i.eventMappingExtern[xM.IO_ERROR]="LoaderInfo:IOErrorEvent.IO_ERROR",i.eventMappingDummys[kO.UNLOAD]="LoaderInfo:Event.UNLOAD",i.eventMappingDummys[kO.OPEN]="LoaderInfo:Event.OPEN",i.eventMappingDummys[kO.INIT]="LoaderInfo:Event.INIT",i._onLoaderStartDelegate=function(t){return i._onLoaderStart(t)},i._onLoadProgressDelegate=function(t){return i._onLoadProgress(t)},i._onLoaderCompleteDelegate=function(t){return i._onLoaderComplete(t)},i._onLoaderErrorDelegate=i._onLoadeError.bind(i),i._loader=e,i._container=n,i._container.addEventListener(H.LOADER_START,i._onLoaderStartDelegate),i._container.addEventListener(K.LOAD_PROGRESS,i._onLoadProgressDelegate),i._container.addEventListener(H.LOADER_COMPLETE,i._onLoaderCompleteDelegate),i._container.addEventListener(K.LOAD_ERROR,i._onLoaderErrorDelegate),i}return Zg(e,t),Object.defineProperty(e.prototype,"actionScriptVersion",{get:function(){return Tt.throwPIR("playerglobals/display/LoaderInfo","get actionScriptVersion",""),0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"source",{set:function(t){this._source=t,this._bytesTotal=(null==t?void 0:t.length)||0},enumerable:!1,configurable:!0}),e.prototype.getSymbolById=function(t){},e.prototype._onLoadeError=function(t){var e=new this.sec.flash.events.IOErrorEvent(xM.IO_ERROR);e.currentTarget=this,this.dispatchEvent(e)},e.prototype._onLoaderStart=function(t){var e;this._bytesLoaded=0,this._bytesTotal=(null===(e=this._source)||void 0===e?void 0:e.length)||0,this._url=new URL(t.url,document.baseURI).href},e.prototype._onLoadProgress=function(t){this._bytesLoaded=t.urlLoader.bytesLoaded,this._bytesTotal=t.urlLoader.bytesTotal;var e=new this.sec.flash.events.ProgressEvent(DM.PROGRESS,null,null,t.urlLoader.bytesLoaded,t.urlLoader.bytesTotal);e.currentTarget=this,this.dispatchEvent(e)},e.prototype._onLoaderComplete=function(t){this._source?this._bytesTotal=this._bytesLoaded=this._source.length:t.assets&&t.assets.length?(this._bytesLoaded=t.assets.length,this._bytesTotal=t.assets.length):this._bytesTotal=this._bytesLoaded=this._bytesTotal||1,this._url=new URL(t.url,document.baseURI).href,TM.addQueue(this)},Object.defineProperty(e.prototype,"applicationDomain",{get:function(){return this._applicationDomain},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bytes",{get:function(){return Tt.throwPIR("playerglobals/display/LoaderInfo","get bytes",""),null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bytesLoaded",{get:function(){return this._bytesLoaded},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bytesTotal",{get:function(){return this._bytesTotal},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"childAllowsParent",{get:function(){return Tt.throwPIR("playerglobals/display/LoaderInfo","get childAllowsParent",""),!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"childSandboxBridge",{get:function(){return Tt.throwPIR("playerglobals/display/LoaderInfo","get childSandboxBridge",""),null},set:function(t){Tt.throwPIR("playerglobals/display/LoaderInfo","set childSandboxBridge","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"content",{get:function(){return this._loader.content},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"contentType",{get:function(){return Tt.throwPIR("playerglobals/display/LoaderInfo","get contentType",""),null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"frameRate",{get:function(){return jg.instance().frameRate},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){var t=jg.instance().view.getNode(this._container),e=kr.getInstance().getBoundsPicker(t.partition).getBoxBounds(t);return null==e?0:e.height},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isURLInaccessible",{get:function(){return Tt.throwPIR("playerglobals/display/LoaderInfo","get isURLInaccessible",""),!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"loader",{get:function(){return this._loader instanceof SM?this._loader:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"loaderURL",{get:function(){return this._loader.stage.getChildAt(0).loaderInfo.url},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parameters",{get:function(){return Tt.throwPIR("playerglobals/display/LoaderInfo","get parameters",""),this.sec.createArrayUnsafe([])},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parentAllowsChild",{get:function(){return Tt.throwPIR("playerglobals/display/LoaderInfo","get parentAllowsChild",""),!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parentSandboxBridge",{get:function(){return Tt.throwPIR("playerglobals/display/LoaderInfo","get parentSandboxBridge",""),null},set:function(t){Tt.throwPIR("playerglobals/display/LoaderInfo","set parentSandboxBridge","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sameDomain",{get:function(){return Tt.throwPIR("playerglobals/display/LoaderInfo","get sameDomain",""),!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sharedEvents",{get:function(){return Tt.throwPIR("playerglobals/display/LoaderInfo","get sharedEvents",""),null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"swfVersion",{get:function(){return this._swfVersion},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"uncaughtErrorEvents",{get:function(){return Tt.throwPIR("playerglobals/display/LoaderInfo","get uncaughtErrorEvents",""),null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this._url.includes("?")&&(this._url=this._url.substr(0,this._url.indexOf("?"))),this._url},set:function(t){this._url=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){var t=jg.instance().view.getNode(this._container),e=kr.getInstance().getBoundsPicker(t.partition).getBoxBounds(t);return null==e?0:e.width},enumerable:!1,configurable:!0}),e.getLoaderInfoByDefinition=function(t){return Tt.throwPIR("playerglobals/display/LoaderInfo","static getLoaderInfoByDefinition",""),null},e.prototype._setApplicationDomain=function(t){this._applicationDomain=t||new this.sec.flash.system.ApplicationDomain(EM.currentDomain)},e}(GO),OM=function(t){function e(){var e=t.call(this)||this;return e._isAVMStage=!0,e._stage3Ds=[],e._resizeCallbackDelegate=function(t){return e.resizeCallback(t)},window.addEventListener("resize",e._resizeCallbackDelegate),e.eventMapping[kO.RESIZE]={adaptedType:"",addListener:e.initResizeListener,removeListener:e.removeResizeListener,callback:e._resizeCallbackDelegate},e._mouseLeaveCallbackDelegate=function(t){return e.mouseLeaveCallback(t)},e.eventMapping[kO.MOUSE_LEAVE]={adaptedType:"",addListener:e.initMouseLeaveListener,removeListener:e.removeMouseLeaveListener,callback:e._mouseLeaveCallbackDelegate},e.sec.flash.display.DisplayObject.axClass._activeStage=e,e._stage=e,e._resizeCallbackDelegate(null),e}return Zg(e,t),Object.defineProperty(e.prototype,"view",{get:function(){return jg.instance().view},enumerable:!1,configurable:!0}),e.prototype.initResizeListener=function(t,e){},e.prototype.removeResizeListener=function(t,e){},e.prototype.resizeCallback=function(t){this.dispatchEvent(new this.sec.flash.events.Event(kO.RESIZE))},e.prototype.show=function(){},e.prototype.initMouseLeaveListener=function(t,e){window.addEventListener("mouseleave",e)},e.prototype.removeMouseLeaveListener=function(t,e){window.removeEventListener("mouseleave",e)},e.prototype.initMouseListener=function(t,e,n){if(!this._mouseListnersCallbacksByType[t])return this.adaptee.addEventListener(t,e),jg.instance().view.stage.addEventListener(t,e),void(this._mouseListnersCallbacksByType[t]=[n]);this._mouseListnersCallbacksByType[t].push(n)},e.prototype.removeMouseListener=function(t,e,n){if(this._mouseListnersCallbacksByType[t]){var i=this._mouseListnersCallbacksByType[t].indexOf(n);if(-1!=i){if(1==this._mouseListnersCallbacksByType[t].length)return delete this._mouseListnersCallbacksByType[t],this.adaptee.removeEventListener(t,e),void jg.instance().view.stage.removeEventListener(t,e);this._mouseListnersCallbacksByType[t].splice(i,1)}}},e.prototype.mouseLeaveCallback=function(t){this.dispatchEvent(new kO(kO.MOUSE_LEAVE))},e.prototype.enterFrame=function(){if(SM.executeQueue(),0!=this._stage.adaptee.numChildren){this._stage.adaptee.advanceFrame(),oP.updateOrphans();var t=this._stage.adaptee.getChildAt(0);t.firstFrameOnSWFStart?t.firstFrameOnSWFStart=!1:this._stage.dispatchStaticBroadCastEvent(kO.ENTER_FRAME),Nl.execute_as3_constructors_enterFrame(this._stage.adaptee),this._stage.dispatchStaticBroadCastEvent(kO.FRAME_CONSTRUCTED),Nl.execute_queue(),this._stage.dispatchStaticBroadCastEvent(kO.EXIT_FRAME),Nl.execute_queue(),TM.executeQueue(),this._sendEventRender&&(this._stage.dispatchStaticBroadCastEvent(kO.RENDER),Nl.execute_queue(),this._sendEventRender=!1)}},Object.defineProperty(e.prototype,"mouseX",{get:function(){return 0|jg.instance().getLocalMouseX(jg.instance().view.getNode(this.adaptee))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mouseY",{get:function(){return 0|jg.instance().getLocalMouseY(jg.instance().view.getNode(this.adaptee))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"accessibilityImplementation",{set:function(t){Tt.throwPIR("playerglobals/display/Stage","set accessibilityImplementation","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"align",{get:function(){return this.adaptee.align},set:function(t){this.adaptee.align=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"allowsFullScreen",{get:function(){return Tt.throwPIR("playerglobals/display/Stage","get allowsFullScreen",""),!0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"allowsFullScreenInteractive",{get:function(){return Tt.throwPIR("playerglobals/display/Stage","get allowsFullScreenInteractive",""),null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"browserZoomFactor",{get:function(){return Tt.throwPIR("playerglobals/display/Stage","get browserZoomFactor",""),0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"color",{get:function(){return this.adaptee.color},set:function(t){this.adaptee.color=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"colorCorrection",{get:function(){return Tt.throwPIR("playerglobals/display/Stage","get colorCorrection",""),""},set:function(t){Tt.throwPIR("playerglobals/display/Stage","set colorCorrection","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"colorCorrectionSupport",{get:function(){return Tt.throwPIR("playerglobals/display/Stage","get colorCorrectionSupport",""),""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"contentsScaleFactor",{get:function(){return Tt.throwPIR("playerglobals/display/Stage","get contentsScaleFactor",""),0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"displayContextInfo",{get:function(){return Tt.throwPIR("playerglobals/display/Stage","get displayContextInfo",""),""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"displayState",{get:function(){return Tt.throwPIR("playerglobals/display/Stage","get displayState",""),""},set:function(t){Tt.throwPIR("playerglobals/display/Stage","set displayState","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"focus",{get:function(){return jg.instance().mouseManager.getFocus().adapter},set:function(t){jg.instance().mouseManager.setFocus(null==t?void 0:t.node)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"frameRate",{get:function(){return jg.instance().frameRate},set:function(t){jg.instance().frameRate=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fullScreenHeight",{get:function(){return window.screen.height},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fullScreenSourceRect",{get:function(){return Tt.throwPIR("playerglobals/display/Stage","get fullScreenSourceRect",""),null},set:function(t){Tt.throwPIR("playerglobals/display/Stage","set fullScreenSourceRect","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fullScreenWidth",{get:function(){return window.screen.width},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mouseLock",{get:function(){return Tt.throwPIR("playerglobals/display/Stage","get mouseLock",""),!1},set:function(t){Tt.throwPIR("playerglobals/display/Stage","set mouseLock","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"quality",{get:function(){return Tt.throwPIR("playerglobals/display/Stage","get quality",""),""},set:function(t){Tt.throwPIR("playerglobals/display/Stage","set quality","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleMode",{get:function(){return jg.instance().scaleMode},set:function(t){jg.instance().scaleMode=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showDefaultContextMenu",{get:function(){return Tt.throwPIR("playerglobals/display/Stage","get showDefaultContextMenu",""),!1},set:function(t){Tt.throwPIR("playerglobals/display/Stage","set showDefaultContextMenu","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"softKeyboardRect",{get:function(){return Tt.throwPIR("playerglobals/display/Stage","get softKeyboardRect",""),null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stage3Ds",{get:function(){return Tt.throwPIR("playerglobals/display/Stage","get stage3Ds",""),this._stage3Ds},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stage",{get:function(){return this},set:function(t){this._stage=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stageFocusRect",{get:function(){return Tt.throwPIR("playerglobals/display/Stage","get stageFocusRect",""),!1},set:function(t){Tt.throwPIR("playerglobals/display/Stage","set stageFocusRect","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stageHeight",{get:function(){return jg.instance().stageHeight},set:function(t){jg.instance().stageHeight=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stageVideos",{get:function(){return Tt.throwPIR("playerglobals/display/Stage","get stageVideos",""),[]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stageWidth",{get:function(){return jg.instance().stageWidth},set:function(t){jg.instance().stageWidth=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tabChildren",{get:function(){return Tt.throwPIR("playerglobals/display/Stage","get tabChildren",""),!1},set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textSnapshot",{get:function(){return Tt.throwPIR("playerglobals/display/Stage","get textSnapshot",""),null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"wmodeGPU",{get:function(){return Tt.throwPIR("playerglobals/display/Stage","get wmodeGPU",""),!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"accessibilityProperties",{set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"alpha",{set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"blendMode",{set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cacheAsBitmap",{set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"contextMenu",{set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"filters",{set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"focusRect",{set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mask",{set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mouseChildren",{get:function(){return!1},set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mouseEnabled",{get:function(){return!1},set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"numChildren",{get:function(){return 0},set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return 0},set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return 0},set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"opaqueBackground",{set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"name",{set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rotation",{set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rotationX",{set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rotationY",{set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rotationZ",{set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scale9Grid",{set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleX",{set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleY",{set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleZ",{set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scrollRect",{set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tabEnabled",{set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"transform",{set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"visible",{set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"x",{get:function(){return this.adaptee.x},set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"y",{get:function(){return this.adaptee.y},set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"z",{set:function(t){},enumerable:!1,configurable:!0}),e.prototype.addChild=function(e){e.dispatch_ADDED_TO_STAGE();var n=t.prototype.addChild.call(this,e);return e.adaptee.hasDispatchedAddedToStage=!0,e.dispatchStaticEvent(kO.ADDED_TO_STAGE,e),n},e.prototype.addChildAt=function(e,n){e.dispatch_ADDED_TO_STAGE();var i=t.prototype.addChildAt.call(this,e,n);return e.adaptee.hasDispatchedAddedToStage=!0,e.dispatchStaticEvent(kO.ADDED_TO_STAGE,e),i},e.prototype.removeChildAt=function(e){return t.prototype.removeChildAt.call(this,e)},e.prototype.swapChildrenAt=function(e,n){return t.prototype.swapChildrenAt.call(this,e,n)},e.prototype.setChildIndex=function(t,e){return null},e.prototype.addEventListener=function(e,n,i,r,o){void 0===r&&(r=0),void 0===o&&(o=!1),t.prototype.addEventListener.call(this,e,n,!1,r,o)},e.prototype.hasEventListener=function(e){return t.prototype.hasEventListener.call(this,e)},e.prototype.willTrigger=function(){return t.prototype.willTrigger.call(this)},e.prototype.dispatchEvent=function(e){return t.prototype.dispatchEvent.call(this,e)},Object.defineProperty(e.prototype,"loaderInfo",{get:function(){return this.getChildAt(0).loaderInfo},enumerable:!1,configurable:!0}),e.prototype.invalidate=function(){this._sendEventRender=!0},e.prototype.isFocusInaccessible=function(){return Tt.throwPIR("playerglobals/display/Stage","isFocusInaccessible",""),!1},e}(dM),MM=function(t){function e(e){void 0===e&&(e=null);var n=t.call(this)||this;return n._ignoreDecodingErrors=!1,e&&n.decode(e),n}return Zg(e,t),e.prototype.axSetProperty=function(t,e){this[t.getMangledName()]=e},e.prototype.decode=function(t){for(var e=(t=a_(t)).split("&"),n=0;n<e.length;n++){var i=e[n],r=i.indexOf("=");r<0&&(this._ignoreDecodingErrors?r=i.length:this.sec.throwError("Error",w_.DecodeParamError));var o=unescape(i.substring(0,r).split("+").join(" ")),a=unescape(i.substring(r+1).split("+").join(" ")),s=this.axGetPublicProperty(o);void 0===s?this.axSetPublicProperty(o,a):Array.isArray(s)?s.push(a):this.axSetPublicProperty(o,[s,a])}},e.prototype.toString=function(){for(var t=[],e=this.axGetEnumerableKeys(),n=0;n<e.length;n++){var i=e[n].split(" ").join("+"),r=this.axGetPublicProperty(i);if(i=escape(i).split(" ").join("+"),Array.isArray(r))for(var o=0;o<r.length;o++)t.push(i+"="+escape(r[o]));else t.push(i+"="+escape(r))}return t.join("&")},e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e}(B_),BM=function(t){function e(e){void 0===e&&(e=null);var n=t.call(this)||this;return n._adaptee=new yt(e),n}return Zg(e,t),Object.defineProperty(e.prototype,"adaptee",{get:function(){return this._adaptee},set:function(t){this._adaptee=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this._adaptee.url},set:function(t){t=a_(t),this._adaptee.url=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){var t=this._adaptee.data,e=this._adaptee.data;if(t instanceof ht)for(var n in e=new MM,this._adaptee.data.variables)e["$Bg"+n]=this._adaptee.data.variables[n];else"object"==typeof t&&(e=IS(this.sec,t,!0));return this._data=e},set:function(t){this._data=t,this.mapToJSData()},enumerable:!1,configurable:!0}),e.prototype.mapToJSData=function(){var t,e=this._data;if(this.sec.flash.net.URLVariables.axIsType(e))for(var n in t=new ht,e)0==n.indexOf("$Bg")&&"function"!=typeof e[n]&&(t.variables[n.replace("$Bg","")]=e[n]);else t=ES(this.sec,e,!0);return this._adaptee.data=t,t},Object.defineProperty(e.prototype,"method",{get:function(){return this._adaptee.method},set:function(t){this._adaptee.method=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"contentType",{get:function(){return console.log("TODO: URLRequest.contentType"),""},set:function(t){console.log("TODO: URLRequest.contentType")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"requestHeaders",{get:function(){return console.log("TODO: URLRequest.requestHeaders"),null},set:function(t){console.log("TODO: URLRequest.requestHeaders")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"digest",{get:function(){return console.log("TODO: URLRequest.digest"),null},set:function(t){console.log("TODO: URLRequest.digest")},enumerable:!1,configurable:!0}),e}(B_),NM=function(t){function e(){return t.call(this)||this}return Zg(e,t),Object.defineProperty(e.prototype,"formats",{get:function(){return console.log("formats not implemented yet in flash/Clipboard"),[]},enumerable:!1,configurable:!0}),Object.defineProperty(e,"generalClipboard",{get:function(){return console.log("generalClipboard not implemented yet in flash/Clipboard"),null},enumerable:!1,configurable:!0}),e.prototype.clear=function(){console.log("clear not implemented yet in flash/Clipboard")},e.prototype.clearData=function(t){console.log("clearData not implemented yet in flash/Clipboard")},e.prototype.getData=function(t,e){return console.log("getData not implemented yet in flash/Clipboard"),null},e.prototype.hasFormat=function(t){return console.log("hasFormat not implemented yet in flash/Clipboard"),!1},e.prototype.setData=function(t,e,n){return console.log("setData not implemented yet in flash/Clipboard"),!1},e.prototype.setDataHandler=function(t,e,n){return console.log("setDataHandler not implemented yet in flash/Clipboard"),!1},e}(B_),LM=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zg(e,t),e.BITMAP_FORMAT="air:bitmap",e.FILE_LIST_FORMAT="air:file list",e.FILE_PROMISE_LIST_FORMAT="air:file promise list",e.HTML_FORMAT="air:html",e.RICH_TEXT_FORMAT="air:rtf",e.TEXT_FORMAT="air:text",e.URL_FORMAT="air:url",e}(B_),RM=function(t){function e(e,n){var i=t.call(this)||this;return i._name=us(e),i._frame=0|n,i}return Zg(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"frame",{get:function(){return this._frame},enumerable:!1,configurable:!0}),e.prototype.clone=function(){return new e(this._name,this._frame)},e.classInitializer=null,e}(GO),FM=function(t){function e(e){void 0===e&&(e=null);var n=t.call(this)||this;return n._adaptee=e||new sl,n._adaptee.adapter=n,n}return Zg(e,t),e.prototype.dispose=function(){},Object.defineProperty(e.prototype,"adaptee",{get:function(){return this._adaptee},enumerable:!1,configurable:!0}),e.FromData=function(t,e){return new this.sec.flash.display.Graphics},e.prototype.clear=function(){this.adaptee.clear()},e.prototype.beginFill=function(t,e){void 0===e&&(e=1),e<0&&(e=0),e>1&&(e=1),this.adaptee.beginFill(t,e)},e.prototype.beginGradientFill=function(t,e,n,i,r,o,a,s){void 0===r&&(r=null),void 0===o&&(o="pad"),void 0===a&&(a="rgb"),void 0===s&&(s=0),this.adaptee.beginGradientFill(t,e.value,n.value,i.value,null==r?void 0:r.adaptee,o,a,s)},e.prototype.beginBitmapFill=function(t,e,n,i){void 0===e&&(e=null),void 0===n&&(n=!0),void 0===i&&(i=!1),this.adaptee.beginBitmapFill(t.adaptee,null==e?void 0:e.adaptee,n,i)},e.prototype.endFill=function(){this.adaptee.endFill()},e.prototype.lineStyle=function(t,e,n,i,r,o,a,s){void 0===e&&(e=0),void 0===n&&(n=1),void 0===i&&(i=!1),void 0===r&&(r="normal"),void 0===o&&(o=null),void 0===a&&(a=null),void 0===s&&(s=3),this.adaptee.lineStyle(t,e,n,i,r,o,a,s)},e.prototype.lineGradientStyle=function(t,e,n,i,r,o,a,s){void 0===r&&(r=null),void 0===o&&(o="pad"),void 0===a&&(a="rgb"),void 0===s&&(s=0),this.adaptee.lineGradientStyle(t,e.value,n.value,i.value,null==r?void 0:r.adaptee,o,a,s)},e.prototype.lineBitmapStyle=function(t,e,n,i){void 0===e&&(e=null),void 0===n&&(n=!0),void 0===i&&(i=!1),this.adaptee.lineBitmapStyle(t.adaptee,null==e?void 0:e.adaptee,n,i)},e.prototype.drawRect=function(t,e,n,i){this.adaptee.drawRect(t,e,n,i)},e.prototype.drawRoundRect=function(t,e,n,i,r,o){this.adaptee.drawRoundRect(t,e,n,i,r,o)},e.prototype.drawRoundRectComplex=function(t,e,n,i,r,o,a,s){this.adaptee.drawRoundRectComplex(t,e,n,i,r,o,a,s)},e.prototype.drawCircle=function(t,e,n){this.adaptee.drawCircle(t,e,n)},e.prototype.drawEllipse=function(t,e,n,i){this.adaptee.drawEllipse(t,e,n,i)},e.prototype.moveTo=function(t,e){this.adaptee.moveTo(t,e)},e.prototype.lineTo=function(t,e){this.adaptee.lineTo(t,e)},e.prototype.curveTo=function(t,e,n,i){this.adaptee.curveTo(t,e,n,i)},e.prototype.cubicCurveTo=function(t,e,n,i,r,o){this.adaptee.cubicCurveTo(t,e,n,i,r,o)},e.prototype.copyFrom=function(t){this.adaptee.copyFrom(t.adaptee)},e.prototype.drawPath=function(t,e,n){Tt.throwPIR("playerglobals/display/Graphics","drawPath","")},e.prototype.drawTriangles=function(t,e,n,i){Tt.throwPIR("playerglobals/display/Graphics","drawTriangles","")},e.prototype.drawGraphicsData=function(t){Tt.throwPIR("playerglobals/display/Graphics","drawGraphicsData","")},e.prototype.readGraphicsData=function(t){return Tt.throwPIR("playerglobals/display/Graphics","readGraphicsData",""),[]},e.classInitializer=null,e}(B_),kM=function(t){function e(){var e=t.call(this)||this;return e._enabled=!0,e}return Zg(e,t),Object.defineProperty(e.prototype,"enabled",{get:function(){return Tt.throwPIR("playerglobals/display/NativeMenuItem","get enabled",""),this._enabled},set:function(t){t=!!t,Tt.throwPIR("playerglobals/display/NativeMenuItem","set enabled",""),this._enabled=t},enumerable:!1,configurable:!0}),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e}(GO),UM=function(t){function e(e,n,i,r){var o=t.call(this)||this;return o._name=a_(e),o._labels=n,o.offset=i,o._numFrames=0|r,o}return Zg(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"labels",{get:function(){return this._labels},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"numFrames",{get:function(){return this._numFrames},enumerable:!1,configurable:!0}),e.prototype.clone=function(){var t=this._labels.value.map((function(t){return t.clone()}));return new e(this._name,this.sec.createArrayUnsafe(t),this.offset,this._numFrames)},e.prototype.getLabelByName=function(t,e){e&&(t=t.toLowerCase());for(var n=this._labels.value,i=0;i<n.length;i++){var r=n[i];if(e?r.name.toLowerCase()===t:r.name===t)return r}return null},e.prototype.getLabelByFrame=function(t){for(var e=this._labels.value,n=0;n<e.length;n++){var i=e[n];if(i.frame===t)return i}return null},e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e}(B_),jM=function(t){function e(){var e=t.call(this)||this;return e._graphics=new e.sec.flash.display.Graphics(e._adaptee.graphics),e}return Zg(e,t),e.prototype.createAdaptee=function(){var t=gl.getNewSprite();return t.reset(),t},Object.defineProperty(e.prototype,"graphics",{get:function(){return this._graphics},enumerable:!1,configurable:!0}),e.prototype.clone=function(){if(!this._symbol)throw"_symbol not defined when cloning movieclip";var t=WD(this._symbol,this._symbol.symbolClass),e=new gl;return this.adaptee.copyTo(e),t.adaptee=e,t._stage=this.activeStage,t.adaptee.graphics=this.graphics,t},e}(lM),VM=function(t){function e(e,n,i,r){var o=t.call(this)||this;return o._adaptee.addButtonListeners(),o}return Zg(e,t),e.prototype.addTimelineChildAtDepth=function(t,e){t.reset();for(var n=this.adaptee.numChildren-1,i=n+1,r=0,o=n;o>=0;o--){var a=this.adaptee.getChildAt(o);if(-1==a._avmDepthID&&r++,a._avmDepthID>-1){if(a._avmDepthID<e){i=o+1+r;break}r=0,i=o}}return t._avmDepthID=e,t.just_added_to_timeline=!0,this.adaptee._sessionID_childs[t._sessionID]=t,this.adaptee.addChildAt(t,i)},e.prototype.removeTimelineChildAt=function(t){var e=this.adaptee._sessionID_childs[t];e&&(delete this.adaptee._sessionID_childs[t],this.adaptee.removeChild(e))},e.prototype.queueFrameScripts=function(t,e,n){n?Nl.add_script_to_queue(this.adaptee,e):Nl.add_script_to_queue_pass2(this.adaptee,e)},e.prototype.removeAllTimelineChilds=function(){var t=this.adaptee;for(var e in t._sessionID_childs){var n=t._sessionID_childs[e];n&&(delete t._sessionID_childs[e],t.removeChild(n))}},e.prototype.constructFrame=function(t,e,n,i,r,o,a){for(var s,u,l=this.adaptee,c=l.numChildren,h=[],p={},d=0;d<c;d++){var f=l.getChildAt(d);(i||-1==f._sessionID)&&(h[h.length]={sessionID:f._sessionID,as3DepthID:f._avmDepthID,addedOnTargetFrame:!1,child:f}),-1!=f._sessionID&&(p[f._sessionID]=f)}this.$Bg__setPropDict&&this.clearPropsDic(),t._update_indices.length=0,t._update_frames.length=0;var g,_,m=0;for(u=e;u<=n;u++){var y=t.frame_command_indices[u],A=t.frame_recipe[u];if(2&A){_=(g=t.command_index_stream[y])+t.command_length_stream[y++];var v={};for(s=g;s<_;s++)v[t.remove_child_stream[s]]=!0;var b=[];c=h.length;for(var C=0;C<c;C++)v[h[C].sessionID]||(b[b.length]=h[C]);h=b}if(4&A)for(_=(g=t.command_index_stream[y])+t.command_length_stream[y++],s=g;s<_;s++){for(var x=h.length-1,I=t.add_child_stream[3*s+1],E=x+1,w=0,S=x;S>=0;S--){var D=h[S];if(-1==D.as3DepthID&&w++,D.as3DepthID>-1){if(D.as3DepthID==I&&D.sessionID==t.add_child_stream[3*S]){E=-1;break}if(D.as3DepthID<I){E=S+1+w;break}w=0,E=S}}E>=h.length?h[h.length]={sessionID:t.add_child_stream[3*s],addedOnTargetFrame:u==n,symbolID:t.add_child_stream[3*s+2],as3DepthID:t.add_child_stream[3*s+1]}:E>-1&&h.splice(E,0,{sessionID:t.add_child_stream[3*s],addedOnTargetFrame:u==n,symbolID:t.add_child_stream[3*s+2],as3DepthID:t.add_child_stream[3*s+1]})}8&A&&(t._update_frames[m]=t.keyframe_firstframes[u],t._update_indices[m++]=y++),16&A&&u==n&&t.start_sounds(l,y)}var T,P=[],O=[],M=[];l._sessionID_childs={},c=P.length=h.length;for(var B=0;B<c;B++)if(-1==(T=h[B]).sessionID&&T.child)P[B]=T.child.adaptee;else if(p[T.sessionID]){var N=p[T.sessionID];l._sessionID_childs[T.sessionID]=N,P[B]=N,i||(P[B]._adapter?(P[B].adapter.isColorTransformByScript()||P[B].transform.clearColorTransform(),P[B].adapter.isBlockedByScript()||P[B].noTimelineUpdate||(P[B].transform.clearMatrix3D(),P[B].updateTimelineMask(null)),P[B].adapter.isVisibilityByScript()||(P[B].visible=!0)):(P[B].transform.clearColorTransform(),P[B].transform.clearMatrix3D(),P[B].visible=!0,P[B].updateTimelineMask(null)))}else{var L=t.getChildInstance(T.symbolID,T.sessionID);this.adaptee.isSlice9ScaledMC&&"[asset Sprite]"==L.assetType&&(L.isSlice9ScaledSprite=!0),L._sessionID=T.sessionID,L._avmDepthID=T.as3DepthID,l._sessionID_childs[T.sessionID]=L,P[B]=L,T.addedOnTargetFrame?M[M.length]=L:O[O.length]=L}for(var R=l.numChildren-1;R>=0;R--)P.indexOf(l.getChildAt(R))<0&&l.removeChildAt(R);for(var F=0;F<P.length;F++)l.contains(P[F])||l.addChildAt(P[F],F);l.preventScript=!0,this.finalizeChildren(O),a&&this.queueFrameScripts(t,r,!o),l.preventScript=!0,this.finalizeChildren(M)},e.prototype.finalizeChildren=function(t){for(var e=t.length,n=0;n<e;n++){t[n].reset()}},e.prototype.initAdapter=function(){},e.prototype.registerScriptObject=function(t){},e.prototype.unregisterScriptObject=function(t){},e.prototype.clearPropsDic=function(){},Object.defineProperty(e.prototype,"downState",{get:function(){return Tt.throwPIR("playerglobals/display/SimpleButton","get downState",""),null},set:function(t){Tt.throwPIR("playerglobals/display/SimpleButton","set downState","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return Tt.throwPIR("playerglobals/display/SimpleButton","get enabled",""),!1},set:function(t){Tt.throwPIR("playerglobals/display/SimpleButton","set enabled","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hitTestState",{get:function(){return this.adaptee.pickObject.adapter},set:function(t){this.adaptee.pickObject=t.adaptee},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"overState",{get:function(){return Tt.throwPIR("playerglobals/display/SimpleButton","get overState",""),null},set:function(t){Tt.throwPIR("playerglobals/display/SimpleButton","set overState","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"soundTransform",{get:function(){return Tt.throwPIR("playerglobals/display/SimpleButton","get soundTransform",""),null},set:function(t){Tt.throwPIR("playerglobals/display/SimpleButton","set soundTransform","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"trackAsMenu",{get:function(){return Tt.throwPIR("playerglobals/display/SimpleButton","get trackAsMenu",""),!1},set:function(t){Tt.throwPIR("playerglobals/display/SimpleButton","set trackAsMenu","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"upState",{get:function(){return Tt.throwPIR("playerglobals/display/SimpleButton","get upState",""),null},set:function(t){Tt.throwPIR("playerglobals/display/SimpleButton","set upState","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"useHandCursor",{get:function(){return Tt.throwPIR("playerglobals/display/SimpleButton","get useHandCursor",""),!1},set:function(t){Tt.throwPIR("playerglobals/display/SimpleButton","set useHandCursor","")},enumerable:!1,configurable:!0}),e.prototype.clone=function(){var t=this;if(!t._symbol)throw"_symbol not defined when cloning movieclip";var e=WD(t._symbol,t._symbol.symbolClass),n=new Rl(this.adaptee.timeline);return this.adaptee.copyTo(n),e.adaptee=n,e._stage=this.activeStage,e.executeConstructor=function(){e.axInitializer(),e.constructorHasRun=!0},e},e}(pM),QM=function(t){function e(e,n){return void 0===e&&(e=""),void 0===n&&(n=0),t.call(this,e,n)||this}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e}(X_),GM=function(t){function e(e,n){return void 0===e&&(e=""),void 0===n&&(n=0),t.call(this,e,n)||this}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e}(QM),zM=function(t){function e(e,n){return void 0===e&&(e=""),void 0===n&&(n=0),t.call(this,e,n)||this}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e}(X_),HM=function(t){function e(e,n){return void 0===e&&(e=""),void 0===n&&(n=0),t.call(this,e,n)||this}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e}(X_),XM=function(t){function e(e,n){return void 0===e&&(e=""),void 0===n&&(n=0),t.call(this,e,n)||this}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e}(X_),YM=function(t){function e(e,n){return void 0===e&&(e=""),void 0===n&&(n=0),t.call(this,e,n)||this}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e}(X_),qM=function(t){function e(e,n){return void 0===e&&(e=""),void 0===n&&(n=0),t.call(this,e,n)||this}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e}(X_),KM=function(t){function e(e,n,i,r,o,a,s,u){void 0===e&&(e=1),void 0===n&&(n=1),void 0===i&&(i=1),void 0===r&&(r=1),void 0===o&&(o=0),void 0===a&&(a=0),void 0===s&&(s=0),void 0===u&&(u=0);var l=t.call(this)||this;if(e instanceof O)l._adaptee=e;else{var c=+e,h=+n,p=+i,d=+r;l._adaptee=new O(c==c?c:1,h==h?h:1,p==p?p:1,d==d?d:1,+o||0,+a||0,+s||0,+u||0)}return l}return Zg(e,t),e.classInitializer=function(){this.FROZEN_IDENTITY_COLOR_TRANSFORM=Object.freeze(this.axConstruct([])),this.TEMP_COLOR_TRANSFORM=this.axConstruct([])},Object.defineProperty(e.prototype,"adaptee",{get:function(){return this._adaptee},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"alphaMultiplier",{get:function(){return this._adaptee._rawData[3]},set:function(t){this._adaptee._rawData[3]=+t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"alphaOffset",{get:function(){return this._adaptee._rawData[7]},set:function(t){this._adaptee._rawData[7]=+t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"blueMultiplier",{get:function(){return this._adaptee._rawData[2]},set:function(t){this._adaptee._rawData[2]=+t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"blueOffset",{get:function(){return this._adaptee._rawData[6]},set:function(t){this._adaptee._rawData[6]=+t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"greenMultiplier",{get:function(){return this._adaptee._rawData[1]},set:function(t){this._adaptee._rawData[1]=+t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"greenOffset",{get:function(){return this._adaptee._rawData[5]},set:function(t){this._adaptee._rawData[5]=+t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"redMultiplier",{get:function(){return this._adaptee._rawData[0]},set:function(t){this._adaptee._rawData[0]=+t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"redOffset",{get:function(){return this._adaptee._rawData[4]},set:function(t){this._adaptee._rawData[4]=+t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"color",{get:function(){return this._adaptee.color},set:function(t){this._adaptee.color=+t},enumerable:!1,configurable:!0}),e.prototype.concat=function(t){this._adaptee.concat(t.adaptee)},e.prototype.preMultiply=function(t){this._adaptee._rawData[4]+=t.adaptee._rawData[4]*this._adaptee._rawData[0],this._adaptee._rawData[5]+=t.adaptee._rawData[5]*this._adaptee._rawData[1],this._adaptee._rawData[6]+=t.adaptee._rawData[6]*this._adaptee._rawData[2],this._adaptee._rawData[7]+=t.adaptee._rawData[7]*this._adaptee._rawData[3],this._adaptee._rawData[0]*=t.adaptee._rawData[0],this._adaptee._rawData[1]*=t.adaptee._rawData[1],this._adaptee._rawData[2]*=t.adaptee._rawData[2],this._adaptee._rawData[3]*=t.adaptee._rawData[3]},e.prototype.copyFrom=function(t){this._adaptee.copyFrom(t.adaptee)},e.prototype.setTo=function(t,e,n,i,r,o,a,s){var u=+t,l=+e,c=+n,h=+i;this._adaptee._rawData[0]=u==u?u:1,this._adaptee._rawData[1]=l==l?l:1,this._adaptee._rawData[2]=c==c?c:1,this._adaptee._rawData[3]=h==h?h:1,this._adaptee._rawData[4]=+r||0,this._adaptee._rawData[5]=+o||0,this._adaptee._rawData[6]=+a||0,this._adaptee._rawData[7]=+s||0},e.prototype.clone=function(){return new this.sec.flash.geom.ColorTransform(this._adaptee._rawData[0],this._adaptee._rawData[1],this._adaptee._rawData[2],this._adaptee._rawData[3],this._adaptee._rawData[4],this._adaptee._rawData[5],this._adaptee._rawData[6],this._adaptee._rawData[7])},e.prototype.convertToFixedPoint=function(){return this._adaptee._rawData[0]=cd(this._adaptee._rawData[0]),this._adaptee._rawData[1]=cd(this._adaptee._rawData[1]),this._adaptee._rawData[2]=cd(this._adaptee._rawData[2]),this._adaptee._rawData[3]=cd(this._adaptee._rawData[3]),this._adaptee._rawData[4]=hd(this._adaptee._rawData[4]),this._adaptee._rawData[5]=hd(this._adaptee._rawData[5]),this._adaptee._rawData[6]=hd(this._adaptee._rawData[6]),this._adaptee._rawData[7]=hd(this._adaptee._rawData[7]),this},e.prototype.dispose=function(){throw new h},e.prototype.equals=function(t){return this===t||this._adaptee._rawData[0]===t._adaptee._rawData[0]&&this._adaptee._rawData[1]===t._adaptee._rawData[1]&&this._adaptee._rawData[2]===t._adaptee._rawData[2]&&this._adaptee._rawData[3]===t._adaptee._rawData[3]&&this._adaptee._rawData[4]===t._adaptee._rawData[4]&&this._adaptee._rawData[5]===t._adaptee._rawData[5]&&this._adaptee._rawData[6]===t._adaptee._rawData[6]&&this._adaptee._rawData[7]===t._adaptee._rawData[7]},e.prototype.toString=function(){return"(redMultiplier="+this._adaptee._rawData[0]+", greenMultiplier="+this._adaptee._rawData[1]+", blueMultiplier="+this._adaptee._rawData[2]+", alphaMultiplier="+this._adaptee._rawData[3]+", redOffset="+this._adaptee._rawData[4]+", greenOffset="+this._adaptee._rawData[5]+", blueOffset="+this._adaptee._rawData[6]+", alphaOffset="+this._adaptee._rawData[7]+")"},e.classSymbols=null,e.instanceSymbols=null,e}(B_),WM=function(t){function e(e,n,i,r,o,a){void 0===e&&(e=1),void 0===n&&(n=0),void 0===i&&(i=0),void 0===r&&(r=1),void 0===o&&(o=0),void 0===a&&(a=0);var s=t.call(this)||this;return s._adaptee=e instanceof L?e:new L(+e,+n,+i,+r,+o,+a),s}return Zg(e,t),e.classInitializer=function(){this.FROZEN_IDENTITY_MATRIX=Object.freeze(this.axConstruct([])),this.TEMP_MATRIX=this.axConstruct([])},Object.defineProperty(e.prototype,"adaptee",{get:function(){return this._adaptee},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"a",{get:function(){return this._adaptee.rawData[0]},set:function(t){this._adaptee.rawData[0]=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"b",{get:function(){return this._adaptee.rawData[1]},set:function(t){this._adaptee.rawData[1]=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"c",{get:function(){return this._adaptee.rawData[2]},set:function(t){this._adaptee.rawData[2]=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"d",{get:function(){return this._adaptee.rawData[3]},set:function(t){this._adaptee.rawData[3]=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tx",{get:function(){return this._adaptee.rawData[4]},set:function(t){this._adaptee.rawData[4]=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ty",{get:function(){return this._adaptee.rawData[5]},set:function(t){this._adaptee.rawData[5]=t},enumerable:!1,configurable:!0}),e.FromUntyped=function(t){return new this.sec.flash.geom.Matrix(t.a,t.b,t.c,t.d,t.tx,t.ty)},e.FromDataBuffer=function(t){return new this.sec.flash.geom.Matrix(t.readFloat(),t.readFloat(),t.readFloat(),t.readFloat(),t.readFloat(),t.readFloat())},e.prototype.concat=function(t){this._adaptee.concat(t.adaptee)},e.prototype.invert=function(){this._adaptee.invert()},e.prototype.identity=function(){this._adaptee.identity()},e.prototype.createBox=function(t,e,n,i,r){void 0===n&&(n=0),void 0===i&&(i=0),void 0===r&&(r=0),this._adaptee.createBox(t,e,n,i,r)},e.prototype.createGradientBox=function(t,e,n,i,r){void 0===n&&(n=0),void 0===i&&(i=0),void 0===r&&(r=0),this._adaptee.createGradientBox(t,e,n,i,r)},e.prototype.rotate=function(t){this._adaptee.rotate(t)},e.prototype.translate=function(t,e){this._adaptee.translate(t,e)},e.prototype.scale=function(t,e){this._adaptee.scale(t,e)},e.prototype.deltaTransformPoint=function(t){return new this.sec.flash.geom.Point(this._adaptee.deltaTransformPoint(t.adaptee))},e.prototype.transformPoint=function(t){return new this.sec.flash.geom.Point(this._adaptee.transformPoint(t.adaptee))},e.prototype.copyFrom=function(t){this._adaptee.copyFrom(t.adaptee)},e.prototype.setTo=function(t,e,n,i,r,o){this._adaptee.setTo(t,e,n,i,r,o)},e.prototype.copyRowTo=function(t,e){this._adaptee.copyRowTo(t,e.adaptee)},e.prototype.copyColumnTo=function(t,e){this._adaptee.copyColumnTo(t,e.adaptee)},e.prototype.copyRowFrom=function(t,e){this._adaptee.copyRowFrom(t,e.adaptee)},e.prototype.copyColumnFrom=function(t,e){this._adaptee.copyColumnFrom(t,e.adaptee)},e.prototype.clone=function(){return new this.sec.flash.geom.Matrix(this._adaptee.clone())},e.prototype.toString=function(){var t=this._adaptee.rawData;return"(a="+t[0]+", b="+t[1]+", c="+t[2]+", d="+t[3]+", tx="+t[4]+", ty="+t[5]+")"},e.prototype.writeExternal=function(t){var e=this._adaptee.rawData;t.writeFloat(e[0]),t.writeFloat(e[1]),t.writeFloat(e[2]),t.writeFloat(e[3]),t.writeFloat(e[4]),t.writeFloat(e[5])},e.classSymbols=null,e.instanceSymbols=null,e}(B_),JM=new Uint32Array([0,4,8,12,1,5,9,13,2,6,10,14,3,7,11,15]),$M=function(t){function e(e){void 0===e&&(e=null);var n=t.call(this)||this;return e instanceof V?n._adaptee=e:(n._adaptee=new V,e&&e.length>=16?n.copyRawDataFrom(e,0,!1):n.identity()),n}return Zg(e,t),Object.defineProperty(e.prototype,"adaptee",{get:function(){return this._adaptee},enumerable:!1,configurable:!0}),e.interpolate=function(t,e,n){},Object.defineProperty(e.prototype,"rawData",{get:function(){var t=new this.sec.Float64Vector;return this.copyRawDataTo(t,0,!1),t},set:function(t){this.copyRawDataFrom(t,0,!1)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"position",{get:function(){return new this.sec.flash.geom.Vector3D(this._adaptee.position)},set:function(t){this.copyColumnFrom(3,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"determinant",{get:function(){return this._adaptee.determinant},enumerable:!1,configurable:!0}),e.prototype.clone=function(){return new this.sec.flash.geom.Matrix3D(this._adaptee.clone())},e.prototype.copyToMatrix3D=function(t){this._adaptee.copyTo(t.adaptee)},e.prototype.append=function(t){this._adaptee.append(t.adaptee)},e.prototype.prepend=function(t){this._adaptee.prepend(t.adaptee)},e.prototype.invert=function(){return this._adaptee.invert()},e.prototype.identity=function(){this._adaptee.identity()},e.prototype.decompose=function(t){void 0===t&&(t="eulerAngles"),this._adaptee.decompose(t),t=us(t)},e.prototype.recompose=function(t,e){},e.prototype.appendTranslation=function(t,e,n){this._adaptee.appendTranslation(+t,+e,+n)},e.prototype.appendRotation=function(t,e,n){this._adaptee.appendRotation(+t,e.adaptee)},e.prototype.appendScale=function(t,e,n){this._adaptee.appendScale(+t,+e,+n)},e.prototype.prependTranslation=function(t,e,n){this._adaptee.prependTranslation(+t,+e,+n)},e.prototype.prependRotation=function(t,e,n){this._adaptee.prependRotation(+t,e.adaptee)},e.prototype.prependScale=function(t,e,n){this._adaptee.prependScale(+t,+e,+n)},e.prototype.transformVector=function(t){return new this.sec.flash.geom.Vector3D(this._adaptee.transformVector(t.adaptee))},e.prototype.deltaTransformVector=function(t){return new this.sec.flash.geom.Vector3D(this._adaptee.deltaTransformVector(t.adaptee))},e.prototype.transformVectors=function(t,e){for(var n=this._adaptee._rawData,i=n[0],r=n[4],o=n[8],a=n[12],s=n[1],u=n[5],l=n[9],c=n[13],h=n[2],p=n[6],d=n[10],f=n[14],g=0;g<t.length-2;g+=3){var _=t.axGetNumericProperty(g),m=t.axGetNumericProperty(g+1),y=t.axGetNumericProperty(g+2);e.push(i*_+r*m+o*y+a),e.push(s*_+u*m+l*y+c),e.push(h*_+p*m+d*y+f)}},e.prototype.transpose=function(){this._adaptee.transpose()},e.prototype.pointAt=function(t,e,n){},e.prototype.interpolateTo=function(t,e){},e.prototype.copyFrom=function(t){this._adaptee.copyFrom(t.adaptee)},e.prototype.copyRawDataTo=function(t,e,n){void 0===e&&(e=0),void 0===n&&(n=!1),e>>>=0,n=!!n;var i=this._adaptee._rawData;if(n)for(var r=0,o=0|e;r<16;r++,o++)t.axSetNumericProperty(o,i[JM[r]]);else for(r=0,o=0|e;r<16;r++,o++)t.axSetNumericProperty(o,i[r])},e.prototype.copyRawDataFrom=function(t,e,n){void 0===e&&(e=0),void 0===n&&(n=!1),e>>>=0,n=!!n;var i=this._adaptee._rawData;if(n)for(var r=0,o=0|e;r<16;r++,o++)i[JM[r]]=t.axGetNumericProperty(o)||0;else for(r=0,o=0|e;r<16;r++,o++)i[r]=t.axGetNumericProperty(o)||0},e.prototype.copyRowTo=function(t,e){this._adaptee.copyRowTo(t>>>0,e.adaptee)},e.prototype.copyColumnTo=function(t,e){this._adaptee.copyColumnTo(t>>>0,e.adaptee)},e.prototype.copyRowFrom=function(t,e){this._adaptee.copyRowFrom(t>>>0,e.adaptee)},e.prototype.copyColumnFrom=function(t,e){this._adaptee.copyColumnFrom(t>>>0,e.adaptee)},e.classInitializer=null,e}(B_),ZM=function(t){function e(e,n){void 0===e&&(e=0),void 0===n&&(n=0);var i=t.call(this)||this;return i._constructorCalled=!0,i._adaptee=e instanceof N?e:new N(+e,+n),i._constructorCalled=!0,i}return Zg(e,t),Object.defineProperty(e.prototype,"adaptee",{get:function(){return this._adaptee},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"x",{get:function(){return this._constructorCalled?this._adaptee._rawData[0]:(console.warn("[Point] Read x before call constructor"),0)},set:function(t){this._adaptee._rawData[0]=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"y",{get:function(){return this._constructorCalled?this._adaptee._rawData[1]:(console.warn("[Point] Read y before call constructor"),0)},set:function(t){this._adaptee._rawData[1]=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this._adaptee.length},enumerable:!1,configurable:!0}),e.interpolate=function(t,e,n){return new this.sec.flash.geom.Point(N.interpolate(t.adaptee,e.adaptee,n))},e.distance=function(t,e){return N.distance(t.adaptee,e.adaptee)},e.polar=function(t,e){return new this.sec.flash.geom.Point(N.polar(+t,+e))},e.prototype.clone=function(){return new this.sec.flash.geom.Point(this._adaptee.clone())},e.prototype.offset=function(t,e){this._adaptee.offset(t,e)},e.prototype.equals=function(t){return this._adaptee.equals(t.adaptee)},e.prototype.subtract=function(t){return new this.sec.flash.geom.Point(this._adaptee.subtract(t.adaptee))},e.prototype.add=function(t){return new this.sec.flash.geom.Point(this._adaptee.add(t.adaptee))},e.prototype.normalize=function(t){void 0===t&&(t=1),this._adaptee.normalize(+t)},e.prototype.copyFrom=function(t){this._adaptee.copyFrom(t.adaptee)},e.prototype.setTo=function(t,e){this._adaptee.setTo(t,e)},e.prototype.toString=function(){return"(x="+this.x+", y="+this.y+")"},e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e}(B_),tB=function(t){function e(e,n,i,r){void 0===e&&(e=0),void 0===n&&(n=0),void 0===i&&(i=0),void 0===r&&(r=0);var o=t.call(this)||this;return o._adaptee=e instanceof tt?e:new tt(+e,+n,+i,+r),o}return Zg(e,t),Object.defineProperty(e.prototype,"adaptee",{get:function(){return this._adaptee},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._adaptee._rawData[3]},set:function(t){this._adaptee._rawData[3]=+t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this._adaptee._rawData[2]},set:function(t){this._adaptee._rawData[2]=+t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"x",{get:function(){return this._adaptee._rawData[0]},set:function(t){this._adaptee._rawData[0]=+t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"y",{get:function(){return this._adaptee._rawData[1]},set:function(t){this._adaptee._rawData[1]=+t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bottom",{get:function(){return this._adaptee.bottom},set:function(t){this._adaptee.bottom=+t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bottomRight",{get:function(){return new this.sec.flash.geom.Point(this._adaptee.bottomRight)},set:function(t){this.bottom=t.y,this.right=t.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"left",{get:function(){return this._adaptee.left},set:function(t){this._adaptee.left=+t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"right",{get:function(){return this._adaptee.right},set:function(t){this._adaptee.right=+t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return new this.sec.flash.geom.Point(this._adaptee.size)},set:function(t){this.width=t.x,this.height=t.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"top",{get:function(){return this._adaptee.top},set:function(t){this._adaptee.top=+t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"topLeft",{get:function(){return new this.sec.flash.geom.Point(this._adaptee.topLeft)},set:function(t){this.top=t.y,this.left=t.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"area",{get:function(){return this.width*this.height},enumerable:!1,configurable:!0}),e.FromBounds=function(t){var e=t.xMin,n=t.yMin;return new this.sec.flash.geom.Rectangle(e/20,n/20,(t.xMax-e)/20,(t.yMax-n)/20)},e.prototype.clone=function(){return new this.sec.flash.geom.Rectangle(this._adaptee.clone())},e.prototype.isEmpty=function(){return this._adaptee.isEmpty()},e.prototype.setEmpty=function(){return this._adaptee.setEmpty()},e.prototype.inflate=function(t,e){this._adaptee.inflate(+t,+e)},e.prototype.inflatePoint=function(t){this._adaptee.inflatePoint(t.adaptee)},e.prototype.offset=function(t,e){this._adaptee.offset(+t,+e)},e.prototype.offsetPoint=function(t){this._adaptee.offsetPoint(t.adaptee)},e.prototype.contains=function(t,e){return this._adaptee.contains(+t,+e)},e.prototype.containsPoint=function(t){return this._adaptee.containsPoint(t.adaptee)},e.prototype.containsRect=function(t){return this._adaptee.containsRect(t.adaptee)},e.prototype.intersection=function(t){return new this.sec.flash.geom.Rectangle(this._adaptee.intersection(t.adaptee))},e.prototype.intersects=function(t){return this._adaptee.intersects(t.adaptee)},e.prototype.union=function(t){return new this.sec.flash.geom.Rectangle(this._adaptee.union(t.adaptee))},e.prototype.equals=function(t){return this._adaptee.equals(t.adaptee)},e.prototype.copyFrom=function(t){this._adaptee.copyFrom(t.adaptee)},e.prototype.setTo=function(t,e,n,i){this._adaptee.setTo(+t,+e,+n,+i)},e.prototype.toString=function(){return"(x="+this.x+", y="+this.y+", w="+this.width+", h="+this.height+")"},e.prototype.hashCode=function(){var t=0;return t+=20*this.x|0,t*=37,t+=20*this.y|0,t*=37,t+=20*this.width|0,t*=37,t+=20*this.height|0},e.prototype.writeExternal=function(t){t.writeFloat(this.x),t.writeFloat(this.y),t.writeFloat(this.width),t.writeFloat(this.height)},e.prototype.readExternal=function(t){this.x=t.readFloat(),this.y=t.readFloat(),this.width=t.readFloat(),this.height=t.readFloat()},e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e}(B_),eB=function(t){function e(e){var n=t.call(this)||this;return e||n.sec.throwError("ArgumentError",w_.NullPointerError,"displayObject"),n._adaptee=e instanceof Q?e:new Q,n}return Zg(e,t),Object.defineProperty(e.prototype,"adaptee",{get:function(){return this._adaptee},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"matrix",{get:function(){return new this.sec.flash.geom.Matrix(this._adaptee.matrix)},set:function(t){this._adaptee.matrix=t.adaptee},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"colorTransform",{get:function(){return new this.sec.flash.geom.ColorTransform(this._adaptee.colorTransform)},set:function(t){this._adaptee.colorTransform=t.adaptee},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"concatenatedMatrix",{get:function(){return new this.sec.flash.geom.Matrix(this._adaptee.matrix)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"concatenatedColorTransform",{get:function(){return new this.sec.flash.geom.ColorTransform(this._adaptee.colorTransform)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pixelBounds",{get:function(){return new this.sec.flash.geom.Rectangle(this._adaptee.pixelBounds)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"matrix3D",{get:function(){return new this.sec.flash.geom.Matrix3D(this._adaptee.matrix3D)},set:function(t){},enumerable:!1,configurable:!0}),e.prototype.getRelativeMatrix3D=function(t){return function(t,e,n){null==t&&n.throwError("TypeError",w_.NullPointerError,e)}(t,"relativeTo",this.sec),new this.sec.flash.geom.Matrix3D(this._adaptee.matrix3D)},Object.defineProperty(e.prototype,"perspectiveProjection",{get:function(){return new wt},set:function(t){},enumerable:!1,configurable:!0}),e.classInitializer=null,e}(B_),nB=function(t){function e(e,n,i,r){void 0===e&&(e=0),void 0===n&&(n=0),void 0===i&&(i=0),void 0===r&&(r=0);var o=t.call(this)||this;return o._adaptee=e instanceof R?e:new R(+e,+n,+i,+r),o}return Zg(e,t),e.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))},e.Create=function(t,e,n,i){var r=Object.create(this.tPrototype);return r._adaptee=new R(t,e,n,i),r},Object.defineProperty(e.prototype,"adaptee",{get:function(){return this._adaptee},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"x",{get:function(){return this._adaptee._rawData[0]},set:function(t){this._adaptee._rawData[0]=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"y",{get:function(){return this._adaptee._rawData[1]},set:function(t){this._adaptee._rawData[1]=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"z",{get:function(){return this._adaptee._rawData[2]},set:function(t){this._adaptee._rawData[2]=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"w",{get:function(){return this._adaptee._rawData[3]},set:function(t){this._adaptee._rawData[3]=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this._adaptee.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lengthSquared",{get:function(){return this._adaptee.lengthSquared},enumerable:!1,configurable:!0}),e.angleBetween=function(t,e){return R.angleBetween(t.adaptee,e.adaptee)},e.distance=function(t,e){return R.distance(t.adaptee,e.adaptee)},e.prototype.dotProduct=function(t){return this._adaptee.dotProduct(t.adaptee)},e.prototype.crossProduct=function(t){return new this.sec.flash.geom.Vector3D(this._adaptee.crossProduct(t.adaptee))},e.prototype.normalize=function(){return this._adaptee.normalize()},e.prototype.scaleBy=function(t){this._adaptee.scaleBy(+t)},e.prototype.incrementBy=function(t){this._adaptee.incrementBy(t.adaptee)},e.prototype.decrementBy=function(t){this._adaptee.decrementBy(t.adaptee)},e.prototype.add=function(t){return new this.sec.flash.geom.Vector3D(this._adaptee.add(t.adaptee))},e.prototype.subtract=function(t){return new this.sec.flash.geom.Vector3D(this._adaptee.subtract(t.adaptee))},e.prototype.negate=function(){this._adaptee.negate()},e.prototype.equals=function(t,e){return this._adaptee.equals(t.adaptee,e)},e.prototype.nearEquals=function(t,e,n){return this._adaptee.nearEquals(t.adaptee,e,n)},e.prototype.project=function(){this._adaptee.project()},e.prototype.copyFrom=function(t){this._adaptee.copyFrom(t.adaptee)},e.prototype.setTo=function(t,e,n){this._adaptee.setTo(t,e,n)},e.prototype.clone=function(){return new this.sec.flash.geom.Vector3D(this._adaptee.clone())},e.prototype.toString=function(){return"Vector3D("+this.x+", "+this.y+", "+this.z+")"},e}(B_),iB=function(){function t(){}return t.BUFFER_OVERFLOW_ERROR="bufferOverflowError",t.ERROR_CODE_UNKNOWN="errorCodeUnknown",t.ILLEGAL_ARGUMENT_ERROR="illegalArgumentError",t.INDEX_OUT_OF_BOUNDS_ERROR="indexOutOfBoundsError",t.INVALID_ATTR_VALUE="invalidAttrValue",t.INVALID_CHAR_FOUND="invalidCharFound",t.MEMORY_ALLOCATION_ERROR="memoryAllocationError",t.NO_ERROR="noError",t.NUMBER_OVERFLOW_ERROR="numberOverflowError",t.PARSE_ERROR="parseError",t.PATTERN_SYNTAX_ERROR="patternSyntaxError",t.PLATFORM_API_FAILED="platformAPIFailed",t.TRUNCATED_CHAR_FOUND="truncatedCharFound",t.UNEXPECTED_TOKEN="unexpectedToken",t.UNSUPPORTED_ERROR="unsupportedError",t.USING_DEFAULT_WARNING="usingDefaultWarning",t.USING_FALLBACK_WARNING="usingFallbackWarning",t}(),rB=function(t){function e(e){var n=t.call(this)||this;return n._name=e,n.DEFAULT="i-default",n._lastOperationStatus=iB.USING_DEFAULT_WARNING,n}return Zg(e,t),Object.defineProperty(e.prototype,"lastOperationStatus",{get:function(){return this._lastOperationStatus},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ctor",{get:function(){return e},enumerable:!1,configurable:!0}),e.determinePreferredLocales=function(t,e,n){return console.warn("[LocaleID] `determinePreferredLocales` not implemented"),new wm},e.prototype.getLanguage=function(){return console.warn("[LocaleID] `getLanguage` not implemented, use default: en"),this._lastOperationStatus=iB.NO_ERROR,"en"},e.prototype.getRegion=function(){return console.warn("[LocaleID] `getRegion` not implemented, use default: UK"),this._lastOperationStatus=iB.NO_ERROR,"UK"},e.prototype.getScript=function(){return console.warn("[LocaleID] `getScript` not implemented, use default: ''"),this._lastOperationStatus=iB.USING_DEFAULT_WARNING,""},e.prototype.getVariant=function(){return console.warn("[LocaleID] `getVariant` not implemented, use default: ''"),this._lastOperationStatus=iB.USING_DEFAULT_WARNING,""},e.prototype.isRightToLeft=function(){return console.warn("[LocaleID] `isRightToLeft` not implemented, use default: true"),!0},e.prototype.getKeysAndValues=function(){return console.warn("[LocaleID] `isRightToLeft` not implemented, use default: null"),this._lastOperationStatus=iB.USING_DEFAULT_WARNING,null},e}(B_),oB=function(t){function e(e,n,i,r,o,a,s){void 0===n&&(n=!1),void 0===i&&(i=!1),void 0===r&&(r=0),void 0===o&&(o=0),void 0===a&&(a=0),void 0===s&&(s=0);var u=t.call(this,e,n,i)||this;return u.timestamp=+r,u.accelerationX=+o,u.accelerationY=+a,u.accelerationZ=+s,u}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.UPDATE="update",e}(kO),aB=function(t){function e(e,n,i,r){void 0===n&&(n=!1),void 0===i&&(i=!1),void 0===r&&(r=!1);var o=t.call(this,e,n,i)||this;return o.activating=!!r,o}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.ACTIVITY="activity",e}(kO),sB=function(t){function e(e,n,i,r,o){void 0===n&&(n=!1),void 0===i&&(i=!1),void 0===r&&(r=""),void 0===o&&(o=null);var a=t.call(this,e,n,i,r)||this;return a.$Bgerror=o,a}return Zg(e,t),Object.defineProperty(e.prototype,"error",{get:function(){return this.$Bgerror},enumerable:!1,configurable:!0}),e.prototype.clone=function(){return new e(this._type,this._bubbles,this._cancelable,this._text,this.$Bgerror)},e.prototype.toString=function(){return this.formatToString("AsyncErrorEvent","type","bubbles","cancelable","eventPhase","text","error")},e.ASYNC_ERROR="asyncError",e.classInitializer=null,e}(CM),uB=function(t){function e(e,n,i,r,o){void 0===n&&(n=!1),void 0===i&&(i=!1),void 0===r&&(r=null),void 0===o&&(o=null);var a=t.call(this,e,n,i)||this;return a.mouseTarget=r,a.contextMenuOwner=o,a}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.MENU_ITEM_SELECT="menuItemSelect",e.MENU_SELECT="menuSelect",e}(kO),lB=function(t){function e(e,n,i,r){return void 0===n&&(n=!1),void 0===i&&(i=!1),void 0===r&&(r=""),t.call(this,e,n,i,r)||this}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.DATA="data",e.UPLOAD_COMPLETE_DATA="uploadCompleteData",e}(bM),cB=function(t){function e(){return t.call(this)||this}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.CAPTURING_PHASE=1,e.AT_TARGET=2,e.BUBBLING_PHASE=3,e}(B_),hB=function(t){function e(e,n,i,r,o){void 0===n&&(n=!1),void 0===i&&(i=!1),void 0===r&&(r=!1),void 0===o&&(o=!1);var a=t.call(this,e,n,i)||this;return a.fullScreen=!!r,a.interactive=!!o,a}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.FULL_SCREEN="fullScreen",e.FULL_SCREEN_INTERACTIVE_ACCEPTED="fullScreenInteractiveAccepted",e}(aB),pB=function(t){function e(e,n,i,r){void 0===n&&(n=!1),void 0===i&&(i=!1),void 0===r&&(r=null);var o=t.call(this,e,n,i)||this;return o.device=r,o}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.DEVICE_ADDED="deviceAdded",e.DEVICE_REMOVED="deviceRemoved",e}(kO),dB=function(t){function e(e,n,i,r,o,a,s,u,l,c,h){return void 0===n&&(n=!1),void 0===i&&(i=!1),t.call(this,e,n,i)||this}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.UPDATE="update",e}(kO),fB=function(t){function e(e,n,i,r,o,a,s,u,l){void 0===n&&(n=!0),void 0===i&&(i=!1),void 0===r&&(r=null),void 0===o&&(o=0),void 0===a&&(a=0),void 0===s&&(s=!1),void 0===u&&(u=!1),void 0===l&&(l=!1);var c=t.call(this,e,n,i)||this;return c._phase=us(r),c._localX=+o,c._localY=+a,c._ctrlKey=!!s,c._altKey=!!u,c._shiftKey=!!l,c}return Zg(e,t),Object.defineProperty(e.prototype,"localX",{get:function(){return this._localX},set:function(t){this._localX=+t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"localY",{get:function(){return this._localY},set:function(t){this._localY=+t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stageX",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stageY",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ctrlKey",{get:function(){return this._ctrlKey},set:function(t){this._ctrlKey=!!t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"altKey",{get:function(){return this._altKey},set:function(t){this._altKey=!!t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"shiftKey",{get:function(){return this._shiftKey},set:function(t){this._shiftKey=!!t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"phase",{get:function(){return this._phase},set:function(t){this._phase=us(t)},enumerable:!1,configurable:!0}),e.prototype.updateAfterEvent=function(){},e.prototype.NativeCtor=function(t,e,n,i,r,o){this._phase=us(t),this._localX=+e,this._localY=+n,this._ctrlKey=!!i,this._altKey=!!r,this._shiftKey=!!o},e.prototype.clone=function(){return new e(this.type,this.bubbles,this.cancelable,this.phase,this.localX,this.localY,this.ctrlKey,this.altKey,this.shiftKey)},e.prototype.toString=function(){return this.formatToString("GestureEvent","type","bubbles","cancelable","eventPhase","localX","localY","ctrlKey","altKey","shiftKey")},e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.GESTURE_TWO_FINGER_TAP="gestureTwoFingerTap",e}(kO),gB=function(t){function e(){return t.call(this)||this}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.BEGIN="begin",e.UPDATE="update",e.END="end",e.ALL="all",e}(B_),_B=function(t){function e(e,n,i,r,o){void 0===n&&(n=!1),void 0===i&&(i=!1),void 0===r&&(r=0),void 0===o&&(o=!1);var a=t.call(this,e,n,i)||this;return a._status=r,a._redirected=o,a._responseURL="",a._responseHeaders=null,a}return Zg(e,t),e.prototype._setStatus=function(t){this._status=t},Object.defineProperty(e.prototype,"status",{get:function(){return this._status},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"redirected",{get:function(){return this._redirected},set:function(t){this._redirected=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"responseURL",{get:function(){return this._responseURL},set:function(t){this._responseURL=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"responseHeaders",{get:function(){return this._responseHeaders},set:function(t){this._responseHeaders=t},enumerable:!1,configurable:!0}),e.prototype.clone=function(){return new e(this.type,this.bubbles,this.cancelable,this._status,this._redirected)},e.prototype.toString=function(){return this.formatToString("IOErrorEvent","type","bubbles","cancelable","text","errorID")},e.classInitializer=null,e.HTTP_RESPONSE_STATUS="httpResponseStatus",e.HTTP_STATUS="httpStatus",e}(kO),mB=function(t){function e(e,n,i,r,o){void 0===n&&(n=!1),void 0===i&&(i=!1),void 0===r&&(r=""),void 0===o&&(o=null);var a=t.call(this,e,n,i,r)||this;return a.imeClient=o,a}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.IME_COMPOSITION="imeComposition",e.IME_START_COMPOSITION="imeStartComposition",e}(bM),yB=function(t){function e(e,n,i,r,o){void 0===n&&(n=!1),void 0===i&&(i=!1),void 0===r&&(r=0),void 0===o&&(o=null);var a=t.call(this,e,n,i)||this;return a.timestamp=+r,a.info=o,a}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.MEDIA_TYPE_DATA="mediaTypeData",e}(kO),AB=function(t){function e(e,n,i,r){void 0===n&&(n=!1),void 0===i&&(i=!1),void 0===r&&(r=null);var o=t.call(this,e,n,i)||this;return o._info=r,o}return Zg(e,t),Object.defineProperty(e.prototype,"info",{get:function(){return this._info},set:function(t){this._info=t},enumerable:!1,configurable:!0}),e.prototype.clone=function(){return new e(this.type,this.bubbles,this.cancelable,this.info)},e.prototype.toString=function(){return this.formatToString("NetStatusEvent","type","bubbles","cancelable","eventPhase","info")},e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.NET_STATUS="netStatus",e}(kO),vB=function(t){function e(e,n,i,r,o){void 0===n&&(n=!1),void 0===i&&(i=!1),void 0===r&&(r=0),void 0===o&&(o=0);var a=t.call(this,e,n,i)||this;return a.bytesPending=+r,a.bytesTotal=+o,a}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.OUTPUT_PROGRESS="outputProgress",e}(kO),bB=function(t){function e(e,n,i,r,o,a,s,u,l,c,h){void 0===n&&(n=!0),void 0===i&&(i=!1),void 0===r&&(r=null),void 0===o&&(o=0),void 0===a&&(a=0),void 0===s&&(s=0),void 0===u&&(u=0),void 0===l&&(l=!1),void 0===c&&(c=!1),void 0===h&&(h=!1);var p=t.call(this,e,n,i,r,o,a,l,c,h)||this;return p.tapLocalX=+s,p.tapLocalY=+u,p}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.GESTURE_PRESS_AND_TAP="gesturePressAndTap",e}(fB),CB=function(t){function e(e,n,i,r,o){return void 0===n&&(n=!1),void 0===i&&(i=!1),t.call(this,e,n,i)||this}return Zg(e,t),Object.defineProperty(e.prototype,"data",{get:function(){return console.log("data not implemented yet in flash/SampleDataEvent"),null},set:function(t){console.log("data not implemented yet in flash/SampleDataEvent")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"position",{get:function(){return console.log("position not implemented yet in flash/SampleDataEvent"),0},set:function(t){console.log("position not implemented yet in flash/SampleDataEvent")},enumerable:!1,configurable:!0}),e.prototype.clone=function(){return console.log("clone not implemented yet in flash/SampleDataEvent"),null},e.prototype.toString=function(){return console.log("toString not implemented yet in flash/SampleDataEvent"),""},e.SAMPLE_DATA="sampleData",e}(kO),xB=function(t){function e(e,n,i,r,o,a){return void 0===n&&(n=!1),void 0===i&&(i=!1),t.call(this,e,n,i)||this}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.COMPLETE="complete",e}(kO),IB=function(t){function e(e,n,i,r,o){return t.call(this,e,n,i)||this}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.SOFT_KEYBOARD_ACTIVATE="softKeyboardActivate",e.SOFT_KEYBOARD_DEACTIVATE="softKeyboardDeactivate",e.SOFT_KEYBOARD_ACTIVATING="softKeyboardActivating",e}(kO),EB=function(t){function e(){return t.call(this)||this}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.CONTENT_TRIGGERED="contentTriggered",e.USER_TRIGGERED="userTriggered",e}(B_),wB=function(t){function e(e,n,i,r){void 0===n&&(n=!1),void 0===i&&(i=!1),void 0===r&&(r=null);var o=t.call(this,e,n,i)||this;return o.availability=us(r),o}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.STAGE_VIDEO_AVAILABILITY="stageVideoAvailability",e}(kO),SB=function(t){function e(e,n,i,r,o){void 0===n&&(n=!1),void 0===i&&(i=!1),void 0===r&&(r=null),void 0===o&&(o=null);var a=t.call(this,e,n,i)||this;return a.status=us(r),a.colorSpace=us(o),a}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.RENDER_STATE="renderState",e.RENDER_STATUS_UNAVAILABLE="unavailable",e.RENDER_STATUS_SOFTWARE="software",e.RENDER_STATUS_ACCELERATED="accelerated",e}(kO),DB=function(t){function e(e,n,i,r,o){void 0===n&&(n=!1),void 0===i&&(i=!1),void 0===r&&(r=""),void 0===o&&(o="");var a=t.call(this,e,n,i)||this;return a._code=a_(r),a._level=a_(o),a}return Zg(e,t),Object.defineProperty(e.prototype,"level",{get:function(){return this._level},set:function(t){this._level=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"code",{get:function(){return this._code},set:function(t){this._code=t},enumerable:!1,configurable:!0}),e.prototype.clone=function(){return new e(this._type,this._bubbles,this._cancelable,this._code,this._level)},e.prototype.toString=function(){return this.formatToString("StatusEvent","type","bubbles","cancelable","eventPhase","code","level")},e.classInitializer=null,e.STATUS="status",e}(kO),TB=function(t){function e(e,n,i,r){void 0===n&&(n=!1),void 0===i&&(i=!1),void 0===r&&(r=null);var o=t.call(this,e,n,i)||this;return o.changeList=r,o}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.SYNC="sync",e}(kO),PB=function(t){function e(e,n,i,r,o){void 0===n&&(n=!1),void 0===i&&(i=!1),void 0===r&&(r=null),void 0===o&&(o=0);var a=t.call(this,e,n,i)||this;return a.state=us(r),a.targetFrameRate=+o,a}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.THROTTLE="throttle",e}(kO),OB=function(t){function e(){return t.call(this)||this}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.THROTTLE="throttle",e.PAUSE="pause",e.RESUME="resume",e}(B_),MB=function(t){function e(e,n,i){return t.call(this,e,n,i)||this}return Zg(e,t),e.prototype.clone=function(){return new this.sec.flash.events.TimerEvent(this.type,this.bubbles,this.cancelable)},e.prototype.toString=function(){return this.formatToString("TimerEvent","type","bubbles","cancelable","eventPhase")},e.prototype.updateAfterEvent=function(){this.sec.player.requestRender()},e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.TIMER="timer",e.TIMER_COMPLETE="timerComplete",e}(kO),BB=function(t){function e(e,n,i,r,o,a,s,u,l,c,h,p,d,f){return void 0===n&&(n=!0),void 0===i&&(i=!1),t.call(this,e,n,i)||this}return Zg(e,t),Object.defineProperty(e.prototype,"altKey",{get:function(){return!1},set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ctrlKey",{get:function(){return!1},set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isPrimaryTouchPoint",{get:function(){return!1},set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isRelatedObjectInaccessible",{get:function(){return!1},set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"localX",{get:function(){return 0},set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"localY",{get:function(){return 0},set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pressure",{get:function(){return 0},set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"relatedObject",{get:function(){return null},set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"shiftKey",{get:function(){return!1},set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sizeX",{get:function(){return 0},set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sizeY",{get:function(){return 0},set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stageX",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stageY",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"touchPointID",{get:function(){return 0},set:function(t){},enumerable:!1,configurable:!0}),e.prototype.clone=function(){return null},e.prototype.toString=function(){return""},e.prototype.updateAfterEvent=function(){},e.TOUCH_BEGIN="touchBegin",e.TOUCH_END="touchEnd",e.TOUCH_MOVE="touchMove",e.TOUCH_OUT="touchOut",e.TOUCH_OVER="touchOver",e.TOUCH_ROLL_OUT="touchRollOut",e.TOUCH_ROLL_OVER="touchRollOver",e.TOUCH_TAP="touchTap",e}(kO),NB=function(t){function e(e,n,i,r,o,a,s,u,l,c,h,p,d,f){return void 0===n&&(n=!0),void 0===i&&(i=!1),void 0===r&&(r=null),void 0===o&&(o=0),void 0===a&&(a=0),void 0===p&&(p=!1),void 0===d&&(d=!1),void 0===f&&(f=!1),t.call(this,e,n,i,r,o,a,p,d,f)||this}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.GESTURE_ZOOM="gestureZoom",e.GESTURE_PAN="gesturePan",e.GESTURE_ROTATE="gestureRotate",e.GESTURE_SWIPE="gestureSwipe",e}(fB),LB=function(t){function e(e,n,i,r){return void 0===e&&(e="uncaughtError"),void 0===n&&(n=!0),void 0===i&&(i=!0),void 0===r&&(r=null),t.call(this,e,n,i,r)||this}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.UNCAUGHT_ERROR="uncaughtError",e}(CM),RB=function(t){function e(e,n,i,r){void 0===n&&(n=!1),void 0===i&&(i=!1),void 0===r&&(r=null);var o=t.call(this,e,n,i)||this;return o.status=a_(r),o}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.RENDER_STATE="renderState",e.RENDER_STATUS_UNAVAILABLE="unavailable",e.RENDER_STATUS_SOFTWARE="software",e.RENDER_STATUS_ACCELERATED="accelerated",e}(kO),FB=function(t){function e(){return t.call(this)||this}return Zg(e,t),e.ensureInitialized=function(){this.available||this.sec.throwError("Error",w_.ExternalInterfaceNotAvailableError),this.initialized||(this.initialized=!0,Jg.initJS(this._callIn))},e.call=function(t){this.ensureInitialized();var e="";if(arguments.length>1){for(var n=[],i=1;i<arguments.length;i++)n.push(this.convertToJSString(arguments[i]));e=n.join(",")}var r=this.$BgmarshallExceptions?'"<exception>" + e + "</exception>";':'"<undefined/>";',o="try {"+Jg.interfaceID+".__flash__toXML("+t+"("+e+"));} catch (e) {"+r+"}",a=this._evalJS(o);return null==a?null:this.convertFromXML(this.convertToXML(a))},e.addCallback=function(t,e){var n=this;if(this.ensureInitialized(),e){var i=this;this._addCallback(t,(function(t,r){var o,a=!0;if(void 0!==r)if(Array.isArray(r)){for(var s=[],u=0;u<r.length;u++){var l=r[u];"object"==typeof l&&l?Array.isArray(l)?s.push(i.sec.createArray(l)):s.push(i.sec.createObjectFromJS(l,!0)):s.push(l)}r=s}else r=[r];else{var c=n.convertToXML(t),h=c.attribute("returntype");if(a=h&&"javascript"==h._value,r=[],c._children)for(u=0;u<c._children.length;u++){var p=c._children[u];r.push(n.convertFromXML(p))}}try{o=e.axApply(null,r)}catch(t){if(!n.$BgmarshallExceptions)throw t;o=t}return a?i.convertToJSString(o):i.convertToXMLString(o)}))}else this._removeCallback(t)},Object.defineProperty(e,"available",{get:function(){return Jg.enabled},enumerable:!1,configurable:!0}),Object.defineProperty(e,"objectID",{get:function(){return Jg.getId()},enumerable:!1,configurable:!0}),e._addCallback=function(t,n){Jg.registerCallback(t),e.registeredCallbacks[t]=n},e._removeCallback=function(t){Jg.unregisterCallback(t),delete e.registeredCallbacks[t]},e._evalJS=function(t){return t=a_(t),Jg.eval(t)},e._callIn=function(t,n){var i=e.registeredCallbacks[t];if(i)return i(t,n)},e._callOut=function(t){return t=a_(t),Jg.call(t)},e.convertToXML=function(t){var e=this.sec.system.getClass(u_.FromSimpleName("XML")),n=e.ignoreWhitespace;e.ignoreWhitespace=!1;var i=e.Create(t);return e.ignoreWhitespace=n,i},e.convertToXMLString=function(t){switch(typeof t){case"boolean":return t?"<true/>":"<false/>";case"number":return"<number>"+t+"</number>";case"string":return"<string>"+t.split("&").join("&").split("<").join("<").split(">").join(">")+"</string>";case"object":if(null===t)return"<null/>";if(this.sec.AXDate.axIsInstanceOf(t))return"<date>"+t.time+"</date>";if(this.sec.AXError.axIsInstanceOf(t))return this.$BgmarshallExceptions?"<exception>"+t+"</exception>":"<null/>";var e=[];if(t.hasOwnProperty("$Bglength")){for(var n=t.$Bglength,i=0;i<n;i++){var r=this.convertToXMLString(t.axGetNumericProperty(i));e.push('<property id="'+i+'">'+r+"</property>")}return"<array>"+e.join("")+"</array>"}var o=t.axGetEnumerableKeys();for(i=0;i<o.length;i++){var a=o[i];r=this.convertToXMLString(t.axGetPublicProperty(a));e.push('<property id="'+a+'">'+r+"</property>")}return"<object>"+e.join("")+"</object>";default:return"<undefined/>"}},e.convertFromXML=function(t){switch(t._name.name){case"true":return!0;case"false":return!1;case"number":return Number(String(t.children()));case"string":return String(t.children());case"null":return null;case"date":return this.sec.AXDate.axConstruct([Number(String(t.children()))]);case"exception":if(this.$BgmarshallExceptions)throw this.sec.AXError.axConstruct([String(t.children())]);return;case"array":case"object":for(var e="object"===t._name.name?this.sec.createObject():this.sec.createArrayUnsafe([]),n=0;n<t._children.length;n++){var i=t._children[n];e.axSetPublicProperty(kB(i),this.convertFromXML(i._children[0]))}return e;case"class":var r=u_.FromFQNString(String(t.children()),0);return this.sec.application.getClass(r);default:return}},e.convertToJSString=function(t){if("string"==typeof t)return'"'+t.split("\r").join("\\r").split("\n").join("\\n").split('"').join('\\"')+'"';if(this.sec.AXArray.axIsInstanceOf(t)){for(var e=[],n=t.value,i=0;i<n.length;i++)e.push(this.convertToJSString(n[i]));return"["+e.join(",")+"]"}if(this.sec.AXDate.axIsInstanceOf(t))return"new Date("+t.value+")";if(this.$BgmarshallExceptions&&this.sec.AXError.axIsInstanceOf(t))return'throw "'+t+'"';if("object"==typeof t&&null!==t){e=[];var r=t.axGetEnumerableKeys();for(i=0;i<r.length;i++){var o=r[i];e.push(o+":"+this.convertToJSString(t.axGetPublicProperty(o)))}return"({"+e.join(",")+"})"}return String(t)},e.classInitializer=null,e.initialized=!1,e.registeredCallbacks=Object.create(null),e}(B_);function kB(t){for(var e=0;e<t._attributes.length;e++){var n=t._attributes[e];if("id"===n._name.name)return n._value}}var UB=function(t){function e(e,n,i,r,o,a,s,u,l){void 0===e&&(e=null),void 0===n&&(n=null),void 0===i&&(i=0),void 0===r&&(r=0),void 0===o&&(o=0),void 0===a&&(a=0),void 0===s&&(s="wrap"),void 0===u&&(u=0),void 0===l&&(l=0);var c=t.call(this)||this;return c.mapBitmap=e,c.mapPoint=n,c.componentX=i,c.componentY=r,c.scaleX=o,c.scaleY=a,c.mode=s,c.color=u,c.alpha=l,c}return Zg(e,t),e.FromUntyped=function(t,e){return new e.flash.filters.DisplacementMapFilter(t.mapBitmap,t.mapPoint,t.componentX,t.componentY,t.scaleX,t.scaleY,t.mode,t.color,t.alpha)},Object.defineProperty(e.prototype,"mapBitmap",{get:function(){return this._mapBitmap},set:function(t){this._mapBitmap=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mapPoint",{get:function(){return this._mapPoint},set:function(t){this._mapPoint=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"componentX",{get:function(){return this._componentX},set:function(t){this._componentX=t>>>0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"componentY",{get:function(){return this._componentY},set:function(t){this._componentY=t>>>0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleX",{get:function(){return this._scaleX},set:function(t){this._scaleX=+t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleY",{get:function(){return this._scaleY},set:function(t){this._scaleY=+t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mode",{get:function(){return this._mode},set:function(t){this._mode=a_(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"color",{get:function(){return this._color},set:function(t){this._color=t>>>0&16777215},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"alpha",{get:function(){return this._alpha},set:function(t){this._alpha=+t},enumerable:!1,configurable:!0}),e.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)},e.prototype.toAwayObject=function(){return{filterName:"displacement",mapBitmap:this._mapBitmap.adaptee,mapPoint:this._mapPoint.adaptee,componentX:this._componentX,componentY:this._componentY,scaleX:this._scaleX,scaleY:this._scaleY,mode:this._mode,color:this._color,alpha:this._alpha}},e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e}(qO),jB=function(t){function e(e){return t.call(this)||this}return Zg(e,t),Object.defineProperty(e.prototype,"actualLocaleIDName",{get:function(){return Tt.throwPIR("playerglobals/globalization/NumberFormatter","get actualLocaleIDName",""),""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"decimalSeparator",{get:function(){return Tt.throwPIR("playerglobals/globalization/NumberFormatter","get decimalSeparator",""),""},set:function(t){Tt.throwPIR("playerglobals/globalization/NumberFormatter","set decimalSeparator","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"digitsType",{get:function(){return Tt.throwPIR("playerglobals/globalization/NumberFormatter","get digitsType",""),0},set:function(t){Tt.throwPIR("playerglobals/globalization/NumberFormatter","set digitsType","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fractionalDigits",{get:function(){return Tt.throwPIR("playerglobals/globalization/NumberFormatter","get fractionalDigits",""),0},set:function(t){Tt.throwPIR("playerglobals/globalization/NumberFormatter","set fractionalDigits","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"groupingPattern",{get:function(){return Tt.throwPIR("playerglobals/globalization/NumberFormatter","get groupingPattern",""),""},set:function(t){Tt.throwPIR("playerglobals/globalization/NumberFormatter","set groupingPattern","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"groupingSeparator",{get:function(){return Tt.throwPIR("playerglobals/globalization/NumberFormatter","get groupingSeparator",""),""},set:function(t){Tt.throwPIR("playerglobals/globalization/NumberFormatter","set groupingSeparator","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastOperationStatus",{get:function(){return Tt.throwPIR("playerglobals/globalization/NumberFormatter","get lastOperationStatus",""),""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"leadingZero",{get:function(){return Tt.throwPIR("playerglobals/globalization/NumberFormatter","get leadingZero",""),!1},set:function(t){Tt.throwPIR("playerglobals/globalization/NumberFormatter","set leadingZero","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"negativeNumberFormat",{get:function(){return Tt.throwPIR("playerglobals/globalization/NumberFormatter","get negativeNumberFormat",""),0},set:function(t){Tt.throwPIR("playerglobals/globalization/NumberFormatter","set negativeNumberFormat","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"negativeSymbol",{get:function(){return Tt.throwPIR("playerglobals/globalization/NumberFormatter","get negativeSymbol",""),""},set:function(t){Tt.throwPIR("playerglobals/globalization/NumberFormatter","set negativeSymbol","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"requestedLocaleIDName",{get:function(){return Tt.throwPIR("playerglobals/globalization/NumberFormatter","get requestedLocaleIDName",""),""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"trailingZeros",{get:function(){return Tt.throwPIR("playerglobals/globalization/NumberFormatter","get trailingZeros",""),!1},set:function(t){Tt.throwPIR("playerglobals/globalization/NumberFormatter","set trailingZeros","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"useGrouping",{get:function(){return Tt.throwPIR("playerglobals/globalization/NumberFormatter","get useGrouping",""),!1},set:function(t){Tt.throwPIR("playerglobals/globalization/NumberFormatter","set useGrouping","")},enumerable:!1,configurable:!0}),e.prototype.formatInt=function(t){return Tt.throwPIR("playerglobals/globalization/NumberFormatter","formatInt",""),t.toString()},e.prototype.formatNumber=function(t){return Tt.throwPIR("playerglobals/globalization/NumberFormatter","formatNumber",""),t.toString()},e.prototype.formatUint=function(t){return console.log("formatUint not implemented yet in flash/NumberFormatter"),""},e.getAvailableLocaleIDNames=function(){return console.log("getAvailableLocaleIDNames not implemented yet in flash/NumberFormatter"),[]},e.prototype.parse=function(t){return console.log("parse not implemented yet in flash/NumberFormatter"),null},e.prototype.parseNumber=function(t){return console.log("parseNumber not implemented yet in flash/NumberFormatter"),0},e.prototype.ctor=function(t){console.log("ctor not implemented yet in flash/NumberFormatter")},e.forceNativeConstructor=!0,e.forceNativeMethods=!0,e}(B_),VB=function(t){function e(e,n){void 0===e&&(e=1),void 0===n&&(n=0);var i=t.call(this)||this;return i._vol=1,i._pan=0,i._vol=e,i._pan=n,i}return Zg(e,t),e.prototype.axCallPublicProperty=function(t,e){return console.log("axCallPublicProperty not implemented yet in flash/SoundTransform"),null},e.prototype.axGetPublicProperty=function(t){return console.log("axGetPublicProperty not implemented yet in flash/SoundTransform"),null},e.prototype.axSetPublicProperty=function(t,e){return console.log("axSetPublicProperty not implemented yet in flash/SoundTransform"),null},e.prototype.axHasPublicProperty=function(t){return console.log("axHasPublicProperty not implemented yet in flash/SoundTransform"),null},e.prototype.axDeletePublicProperty=function(t){return console.log("axDeletePublicProperty not implemented yet in flash/SoundTransform"),null},e.prototype.axGetEnumerableKeys=function(){return console.log("axGetEnumerableKeys not implemented yet in flash/SoundTransform"),[]},Object.defineProperty(e.prototype,"leftToLeft",{get:function(){return console.log("leftToLeft not implemented yet in flash/SoundTransform"),0},set:function(t){console.log("leftToLeft not implemented yet in flash/SoundTransform")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"leftToRight",{get:function(){return console.log("leftToRight not implemented yet in flash/SoundTransform"),0},set:function(t){console.log("leftToRight not implemented yet in flash/SoundTransform")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pan",{get:function(){return this._pan},set:function(t){this._pan=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rightToLeft",{get:function(){return console.log("rightToLeft not implemented yet in flash/SoundTransform"),0},set:function(t){console.log("rightToLeft not implemented yet in flash/SoundTransform")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rightToRight",{get:function(){return console.log("rightToRight not implemented yet in flash/SoundTransform"),0},set:function(t){console.log("rightToRight not implemented yet in flash/SoundTransform")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"volume",{get:function(){return this._vol},set:function(t){this._vol=t>1?1:t<0?0:t},enumerable:!1,configurable:!0}),e}(B_),QB=function(t){function e(){return t.call(this)||this}return Zg(e,t),Object.defineProperty(e,"bufferTime",{get:function(){return e._bufferTime},set:function(t){e._bufferTime=0|t},enumerable:!1,configurable:!0}),Object.defineProperty(e,"soundTransform",{get:function(){return xd(e._soundTransform)?new VB:new VB(e._soundTransform.volume,e._soundTransform.pan)},set:function(t){e._soundTransform=xd(t)?new VB:t,e._updateAllSoundSources()},enumerable:!1,configurable:!0}),Object.defineProperty(e,"audioPlaybackMode",{get:function(){},set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e,"useSpeakerphoneForVoice",{get:function(){},set:function(t){},enumerable:!1,configurable:!0}),e.stopAll=function(){e._registeredSoundSources.forEach((function(t){return t.stopSound()})),e._registeredSoundSources=[],Rl.stopAllSounds()},e.computeSpectrum=function(t,e,n){for(var i=new Float32Array(1024),r=0;r<1024;r++)i[r]=Math.random();t.writeRawBytes(i),t.position=0},e.areSoundsInaccessible=function(){},e._getMasterVolume=function(){return e._masterVolume},e._setMasterVolume=function(t){t=+t,e._masterVolume=t,e._updateAllSoundSources()},e._registerSoundSource=function(t){e._registeredSoundSources.push(t)},e._unregisterSoundSource=function(t){var n=e._registeredSoundSources.indexOf(t);n>=0&&e._registeredSoundSources.splice(n,1)},e._updateAllSoundSources=function(){var t=e._getMasterVolume();e._soundTransform&&(t*=e._soundTransform.volume),S.setVolume(t,-1)},e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e._masterVolume=1,e._registeredSoundSources=[],e._bufferTime=0,e}(B_),GB=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zg(e,t),e.prototype.axCallPublicProperty=function(t,e){return null},e.prototype.axGetPublicProperty=function(t){return null},e.prototype.axSetPublicProperty=function(t,e){return null},e.prototype.axHasPublicProperty=function(t){return null},e.prototype.axDeletePublicProperty=function(t){return null},e.prototype.axGetEnumerableKeys=function(){return[]},e.prototype.init=function(t,e){this._channel=t,this._channel&&(this._channel.addEventListener(y.COMPLETE,this.soundCompleteInternal.bind(this)),this.soundTransform=e,QB._registerSoundSource(this))},Object.defineProperty(e.prototype,"leftPeak",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"position",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rightPeak",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"soundTransform",{get:function(){return this._soundTransform||(this._soundTransform=new this.sec.flash.media.SoundTransform),this._soundTransform},set:function(t){this._channel&&(this._channel.volume=t.volume,this._channel.pan=t.pan),this._soundTransform=t},enumerable:!1,configurable:!0}),e.prototype.soundCompleteInternal=function(t){this._stopInternally();var e=new this.sec.flash.events.Event(kO.SOUND_COMPLETE);this.dispatchEvent(e)},e.prototype._stopInternally=function(){QB._unregisterSoundSource(this)},e.prototype.stop=function(){this._channel&&(this._stopInternally(),this._channel.stop())},e.prototype.stopSound=function(){this.stop()},e.prototype.updateSoundLevels=function(t){this._channel&&(this._soundTransform.volume=t,this._channel.volume=t)},e}(GO),zB=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zg(e,t),Object.defineProperty(e.prototype,"description",{get:function(){return this._description},set:function(t){this._description=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"extension",{get:function(){return this._extension},set:function(t){this._extension=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"macType",{get:function(){return this._macType},set:function(t){this._macType=t},enumerable:!1,configurable:!0}),e}(B_),HB=Nt.instance.addStore("playerglobal",{ENABLE_FILE_PICKER:!0}),XB="showSaveFilePicker"in self&&HB.ENABLE_FILE_PICKER;XB&&console.debug("[FileReference] `showSaveFilePicker` used for save()");var YB,qB=function(t){function e(){return t.call(this)||this}return Zg(e,t),Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(t){this._size=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){return this._data},set:function(t){this._data=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"extension",{get:function(){return this._extension},set:function(t){this._extension=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"permissionStatus",{get:function(){return this._permissionStatus},set:function(t){this._permissionStatus=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this._type},set:function(t){this._type=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"creator",{get:function(){return this._creator},set:function(t){this._creator=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this._name},set:function(t){this._name=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"modificationDate",{get:function(){return this._modificationDate},set:function(t){this._modificationDate=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"creationDate",{get:function(){return this._creationDate},set:function(t){this._creationDate=t},enumerable:!1,configurable:!0}),e.prototype.browse=function(t){var n,i=this,r=e.knownMimeTypes,o=window.showOpenFilePicker;if(!o)return console.warn("[flash/net/FileReference] FileSystem API not supported!"),!1;for(var a=[],s=0;s<t.length;s++){var u=t[s],l=u.extension.slice(u.extension.lastIndexOf(".")),c=l in r?r[l].mime:"application/unknown";a.push({description:u.description,accept:(n={},n[c]=l,n)})}return o({types:a}).then((function(t){return i._sendSelectEvent(),t[0].getFile()})).then((function(t){i.modificationDate=new Date(t.lastModified),i.name=t.name,i.size=t.size,i.type=t.type;var e=t.name.lastIndexOf(".");return i.extension=e>=0?t.name.slice(e+1):null,t.arrayBuffer()})).then((function(t){i.data=new I(t.byteLength),i.data.setArrayBuffer(t),i._sendCompleteEvent()})).catch((function(t){20!==t.code||"The user aborted a request."!==t.message?console.warn("[flash/net/FileReference] FileSystem API Reject `showOpenFilePicker` request:",t):i._sendCancelEvent()})),!0},e.prototype.upload=function(t){return console.log("upload not implemented yet in flash/FileReference"),!0},e.prototype.load=function(){console.log("load not implemented yet in flash/FileReference")},e.prototype.save=function(t,e){void 0===e&&(e=null),this._useFileSystemSave(t,e)},e.prototype._useFileSystemSave=function(t,n){var i,r=this;void 0===n&&(n="");var o=e.knownMimeTypes,a="string"==typeof t,s=void 0!==t.getBytes,u=n.slice(n.lastIndexOf("."));if(!XB)return!1;var l=window.showSaveFilePicker;if(!l)return console.warn("[flash/net/FileReference] FileSystem API not supported!"),!1;if(a||s){var c=[];if(u in o){var h=o[u].mime;c[0]={description:o[u].description,accept:(i={},i[h]=u,i)}}else c[0]={description:"",accept:{"application/unknown":u}};l({suggestedName:n||"",types:c}).then((function(t){return r._sendSelectEvent(),t.createWritable()})).then((function(e){return e.write(s?t.getBytes():t).then((function(){return e.close()}))})).then((function(t){r._sendCompleteEvent()})).catch((function(t){20!==t.code||"The user aborted a request."!==t.message?console.warn("[flash/net/FileReference] FileSystem API Reject `showSaveFilePicker` request:",t):r._sendCancelEvent()}))}else console.warn("[FileReference] Save is only supported for String and ByteArray")},e.prototype._sendCancelEvent=function(){var t=new this.sec.flash.events.Event(kO.CANCEL);t.currentTarget=this,t.target=this,this.dispatchEvent(t)},e.prototype._sendCompleteEvent=function(){var t=new this.sec.flash.events.Event(kO.COMPLETE);t.currentTarget=this,t.target=this,this.dispatchEvent(t)},e.prototype._sendSelectEvent=function(){var t=new this.sec.flash.events.Event(kO.SELECT);t.currentTarget=this,t.target=this,this.dispatchEvent(t)},e.prototype.requestPermission=function(){console.log("upload not implemented yet in flash/FileReference")},e.prototype.download=function(t,e){return console.log("download not implemented yet in flash/FileReference"),!0},e.prototype.cancel=function(){console.log("cancel not implemented yet in flash/FileReference")},e.forceNativeMethods=!0,e.knownMimeTypes={".jpeg":{mime:"image/jpeg",description:"JPEG images"},".jpg":{mime:"image/jpeg",description:"JPEG images"},".txt":{mime:"text/plain",description:"Text documents"}},e}(GO),KB="AWAY",WB=function(){function t(){this._values={},this._realStorage=null}return t.prototype.getItem=function(t){return this._realStorage&&(this._values[t]=this._realStorage.getItem(t)),this._values[t]},t.prototype.setItem=function(t,e){this._realStorage&&this._realStorage.setItem(t,e),this._values[t]=e},t.prototype.removeItem=function(t){this._realStorage&&this._realStorage.removeItem(t),delete this._values[t]},t}();function JB(){if(!YB&&(YB=new WB,"undefined"!=typeof Storage))try{YB._realStorage=window.localStorage}catch(t){console.warn("[Shared Storage] ",t)}return YB}var $B=function(){function t(){}return t.decodedData=function(){if(!ZB)throw"Can't decode without security context";var t=JB(),e={},n={};for(var i in t._values){null!==t._values[i]?(e[i]=tN.tryDecodeData(t._values[i]).data,n[i]=ES(ZB,e[i],!0)):e[i]=n[i]=null}return this._lastDecodedData=n,this._lastRawData=e,n},t.encodeAndApplyData=function(){if(!this._lastRawData)throw"Need call decode before encode for detecting model";var t={};for(var e in this._lastRawData)void 0!==typeof this._lastDecodedData[e]?t[e]=IS(ZB,this._lastDecodedData[e],!0):t[e]=this._lastRawData[e];var n=JB();for(var e in t)null!==t[e]&&n.setItem(e,tN.tryEncodeData(t[e]));return t},t._lastRawData=null,t._lastDecodedData=null,t}();window._AWAY_DEBUG_STORAGE=$B,window.addEventListener("unload",(function(){tN.closeAll()})),window.addEventListener("blur",(function(){tN.closeAll()}));var ZB=void 0,tN=function(t){function e(){var e=t.call(this)||this;return e.awaySOVersion=1,e}return Zg(e,t),Object.defineProperty(e,"defaultObjectEncoding",{get:function(){},set:function(t){},enumerable:!1,configurable:!0}),e.deleteAll=function(t){},e.getDiskUsage=function(t){return 0},e.tryDecodeData=function(t){var e=1;t.indexOf(KB)>-1&&(e=+t[4],t=t.substring(6));var n=ld.decodeRestrictedBase64ToBytes(t),i=new I(n.length);return i.sec=this.sec||ZB,i.setArrayBuffer(n.buffer),{data:tD.read(i),version:e}},e.tryEncodeData=function(t){var e=new I;e.sec=this.sec||ZB,tD.write(e,t);var n=new Uint8Array(e.arraybytes,0,e.length);return ld.base64EncodeBytes(n)},e.getLocal=function(t,n,i){ZB=this.sec,t=a_(t);var r=((n=a_(n))||"")+"/"+t;if(e._sharedObjects[r])return e._sharedObjects[r];var o,a=JB().getItem(r),s=this._defaultObjectEncoding,u=3;if(a){try{var l=e.tryDecodeData(a);o=l.data,u=l.version}catch(t){}o&&"object"==typeof o||(o=this.sec.createObject())}else o=this.sec.createObject();var c=new this.sec.flash.net.SharedObject;return c._path=r,c._objectEncoding=s,c._data=o,c.awaySOVersion=u,e._sharedObjects[r]=c,c},e.getRemote=function(t,e,n,i){return new this.sec.flash.net.SharedObject},e.closeAll=function(){for(var t in e._sharedObjects)e._sharedObjects[t]&&e._sharedObjects[t].close()},e.prototype.flush=function(t){var n=!0;for(var i in this._data)if(this._data.hasOwnProperty(i)){n=!1;break}if(!n||JB().getItem(this._path)){ZB=this.sec;var r=KB+3..toFixed(0)+","+e.tryEncodeData(this._data);JB().setItem(this._path,r)}},Object.defineProperty(e.prototype,"data",{get:function(){return this._data},set:function(t){this._data=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"objectEncoding",{get:function(){},set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"client",{get:function(){},set:function(t){},enumerable:!1,configurable:!0}),e.prototype.setDirty=function(t){},e.prototype.connect=function(t,e){},e.prototype.send=function(){},e.prototype.close=function(){this.flush(),delete e._sharedObjects[this._path]},e.prototype.clear=function(){this._data=this.sec.createObject(),JB().removeItem(this._path),delete e._sharedObjects[this._path]},Object.defineProperty(e.prototype,"size",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fps",{set:function(t){},enumerable:!1,configurable:!0}),e.prototype.setProperty=function(t,e){},e._sharedObjects={},e._defaultObjectEncoding=eD.DEFAULT,e}(B_),eN=function(t){function e(){var e=t.call(this)||this;return e._dataIsNull=!0,e._adaptee=new pt,e._completeCallbackDelegate=function(t){return e.completeCallback(t)},e._progressCallbackDelegate=function(t){return e.progressCallback(t)},e._loadErrorDelegate=function(t){return e.loadErrorDelegate(t)},e.eventMapping[kO.COMPLETE]={adaptedType:K.LOAD_COMPLETE,addListener:e.initListener,removeListener:e.removeListener,callback:e._completeCallbackDelegate},e.eventMapping[DM.PROGRESS]={adaptedType:K.LOAD_PROGRESS,addListener:e.initListener,removeListener:e.removeListener,callback:e._progressCallbackDelegate},e.eventMapping[xM.IO_ERROR]={adaptedType:K.LOAD_ERROR,addListener:e.initListener,removeListener:e.removeListener,callback:e._loadErrorDelegate},Object.defineProperty(e,"$Bgdata",{get:e.getData.bind(e),set:e.setData.bind(e)}),e}return Zg(e,t),e.prototype.close=function(){console.log("not mimplemented: URLoader.close")},e.prototype.setData=function(t){this._dataIsNull=this._dataIsNull||null===t},e.prototype.getData=function(){if(this._dataIsNull)return null;var t=this._adaptee.data;switch(this.$BgdataFormat){case lt.VARIABLES:return new this.sec.flash.net.URLVariables(t);case lt.BINARY:return console.warn("[URLLoader] Binary not supported"),null;default:return t}},e.prototype.initListener=function(t,e){this._adaptee.addEventListener(t,e)},e.prototype.removeListener=function(t,e){this._adaptee.removeEventListener(t,e)},e.prototype.addEventListener=function(e,n){t.prototype.addEventListener.call(this,e,n)},e.prototype.loadErrorDelegate=function(t){this._dataIsNull=!1;var e=new this.sec.flash.events.IOErrorEvent(xM.IO_ERROR);e.currentTarget=this,this.dispatchEvent(e)},e.prototype.progressCallback=function(t){void 0===t&&(t=null),this._dataIsNull=!1;var e=new this.sec.flash.events.ProgressEvent(DM.PROGRESS,null,null,t.urlLoader.bytesLoaded,t.urlLoader.bytesTotal);e.currentTarget=this,this.dispatchEvent(e)},e.prototype.completeCallback=function(t){this._dataIsNull=!1;var e=new this.sec.flash.events.Event(kO.COMPLETE);e.currentTarget=this,e.target=this,this.dispatchEvent(e)},e.prototype.load=function(t){var n=t.url||"",i=kg(n,e.redirectRules);i?(console.log("[URL LOADER] Override loading url:",i.url),t.adaptee.url=i.url):console.log("[URL LOADER] start loading the url:",n),t.mapToJSData(),this._adaptee.load(t.adaptee)},e.redirectRules=[],e}(GO),nN=["send","connect","close","allowDomain","allowInsecureDomain","client","domain"];Object.freeze(nN);var iN=function(t,e){return console.warn("[NOT IMPLEMENTED] ".concat(t.constructor.name,"#").concat(e," yet!"))},rN=function(t){function e(){var e=t.call(this)||this;e._client=e,e._connectionName=null,e._allowedInsecureDomains=[],e._allowedSecureDomains=[];var n=new URL(document.baseURI);return e._domain=n.hostname,e._secure="https:"===n.protocol,e}return Zg(e,t),Object.defineProperty(e,"isSupported",{get:function(){return!0},enumerable:!1,configurable:!0}),e.prototype.close=function(){this._connectionName||this.sec.throwError("ArgumentError",w_.CloseNotConnectedError),this._connectionName=null,this._allowedInsecureDomains=[],this._allowedSecureDomains=[],iN(this,"close")},e.prototype.connect=function(t){iN(this,"connect")},e.prototype.send=function(t,e){iN(this,"send")},Object.defineProperty(e.prototype,"client",{get:function(){return this._client},set:function(t){this.sec.AXObject.axIsType(t)||this.sec.throwError("ArgumentError",w_.InvalidParamError),this._client=t},enumerable:!1,configurable:!0}),e.prototype.allowDomain=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._allowDomains(t,!0)},e.prototype.allowInsecureDomain=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._allowDomains(t,!0),this._allowDomains(t,!1)},e.prototype._allowDomains=function(t,e){iN(this,"_allowDomains")},e.prototype.handleMessage=function(t,e){var n,i=this._client;if(!i.axHasPublicProperty(t)||nN.indexOf(t)>-1)n=this.sec.createError("ReferenceError",w_.ReadSealedError,t,i.axClass.name.name);else{var r=i.axGetPublicProperty(t);if(!vm(r))return;var o=new iD(e).readObject();if(this.sec.AXArray.axIsType(o))try{r.apply(i,o.value)}catch(t){n=t}else n=this.sec.createError("TypeError",w_.CheckTypeFailedError,o,"Array")}if(n){var a=new CM("asyncError",!1,!1,"Error #2095: flash.net.LocalConnection was unable to invoke callback "+t+".",n.errorID);if(this.hasEventListener("asyncError"))try{this.dispatchEvent(a)}catch(t){console.warn("Exception encountered during asyncErrorEvent handling in LocalConnection sender.")}else console.warn("No handler for asyncError on LocalConnection sender, not sending event",a)}},Object.defineProperty(e.prototype,"domain",{get:function(){return this._domain},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isPerUser",{get:function(){return!0},set:function(t){},enumerable:!1,configurable:!0}),e.classInitializer=null,e}(GO),oN=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zg(e,t),Object.defineProperty(e,"currentDomain",{get:function(){return null},enumerable:!1,configurable:!0}),e}(B_),aN=function(t){function e(){return t.call(this)||this}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.FINGER="finger",e.STYLUS="stylus",e.NONE="none",e}(B_),sN="en",uN="PlugIn",lN=96,cN=!1,hN=function(t){function e(){return t.call(this)||this}return Zg(e,t),Object.defineProperty(e,"isEmbeddedInAcrobat",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(e,"hasEmbeddedVideo",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(e,"hasAudio",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(e,"avHardwareDisable",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(e,"hasAccessibility",{get:function(){return e._hasAccessibility},enumerable:!1,configurable:!0}),Object.defineProperty(e,"hasAudioEncoder",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(e,"hasMP3",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(e,"hasPrinting",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(e,"hasScreenBroadcast",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(e,"hasScreenPlayback",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(e,"hasStreamingAudio",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(e,"hasStreamingVideo",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(e,"hasVideoEncoder",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(e,"isDebugger",{get:function(){return cN},enumerable:!1,configurable:!0}),Object.defineProperty(e,"localFileReadDisable",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(e,"language",{get:function(){return e._language||sN},enumerable:!1,configurable:!0}),Object.defineProperty(e,"manufacturer",{get:function(){return e._manufacturer},enumerable:!1,configurable:!0}),Object.defineProperty(e,"os",{get:function(){if(null===e._os){var t=void 0,n=window.navigator.userAgent;if(n.indexOf("Macintosh")>0)if(-1===n.indexOf("Mac OS X "))t="Mac OS 10.6";else{var i=n.split("Mac OS X ")[1];t=i.substr(0,i.indexOf(";"))}else t=n.indexOf("Windows")>0?"Windows XP":n.indexOf("Linux")>0?"Linux":/(iPad|iPhone|iPod|Android)/.test(n)?"iPhone3,1":"Generic OS";e._os=t}return e._os},enumerable:!1,configurable:!0}),Object.defineProperty(e,"cpuArchitecture",{get:function(){return"x86"},enumerable:!1,configurable:!0}),Object.defineProperty(e,"playerType",{get:function(){return e._playerType||uN},enumerable:!1,configurable:!0}),Object.defineProperty(e,"serverString",{get:function(){var t=function(t){var e=Object.prototype.hasOwnProperty,n=[];for(var i in t)e.call(t,i)&&n.push([i,t[i]]);return n}({OS:e.os}).map((function(t){return t[0]+"="+encodeURIComponent(t[1])})).join("&");return t},enumerable:!1,configurable:!0}),Object.defineProperty(e,"version",{get:function(){return e._version},enumerable:!1,configurable:!0}),Object.defineProperty(e,"screenColor",{get:function(){return"color"},enumerable:!1,configurable:!0}),Object.defineProperty(e,"pixelAspectRatio",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(e,"screenDPI",{get:function(){return e._screenDPI||lN},enumerable:!1,configurable:!0}),Object.defineProperty(e,"screenResolutionX",{get:function(){return window.screen.width},enumerable:!1,configurable:!0}),Object.defineProperty(e,"screenResolutionY",{get:function(){return window.screen.height},enumerable:!1,configurable:!0}),Object.defineProperty(e,"touchscreenType",{get:function(){return aN.NONE},enumerable:!1,configurable:!0}),Object.defineProperty(e,"hasIME",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(e,"hasTLS",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(e,"maxLevelIDC",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(e,"supports32BitProcesses",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(e,"supports64BitProcesses",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(e,"_internal",{get:function(){},enumerable:!1,configurable:!0}),e.hasMultiChannelAudio=function(t){return!1},e.classInitializer=null,e._hasAccessibility=!1,e._language=null,e._manufacturer="Mozilla Research",e._os=null,e._playerType=null,e._version="SHUMWAY 10,0,0,0",e._screenDPI=0,e}(B_);function pN(t,e,n){e=a_(e),n=a_(n),console.log("FSCommand: "+e+"; "+n),"debugger"!==(e=e.toLowerCase())&&t.player.executeFSCommand(e,n)}var dN=function(t){function e(){return t.call(this)||this}return Zg(e,t),Object.defineProperty(e,"exactSettings",{get:function(){return e._exactSettings},set:function(t){t=!!t,e._exactSettings=t},enumerable:!1,configurable:!0}),Object.defineProperty(e,"disableAVM1Loading",{get:function(){},set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e,"sandboxType",{get:function(){return e._sandboxType},enumerable:!1,configurable:!0}),Object.defineProperty(e,"pageDomain",{get:function(){var t=undefined.resolveUrl("/").split("/");return t.pop(),t.pop()},enumerable:!1,configurable:!0}),e.allowDomain=function(){},e.allowInsecureDomain=function(){},e.loadPolicyFile=function(t){},e.showSettings=function(t){},e.duplicateSandboxBridgeInputArguments=function(t,e){},e.duplicateSandboxBridgeOutputArgument=function(t,e){},e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.REMOTE="remote",e.LOCAL_WITH_FILE="localWithFile",e.LOCAL_WITH_NETWORK="localWithNetwork",e.LOCAL_TRUSTED="localTrusted",e.APPLICATION="application",e._exactSettings=!1,e._sandboxType="remote",e}(B_),fN=function(t){function e(){return t.call(this)||this}return Zg(e,t),Object.defineProperty(e,"freeMemory",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(e,"ime",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(e,"privateMemory",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(e,"processCPUUsage",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(e,"totalMemory",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(e,"totalMemoryNumber",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(e,"useCodePage",{get:function(){return!1},set:function(t){},enumerable:!1,configurable:!0}),Object.defineProperty(e,"vmVersion",{get:function(){return""},enumerable:!1,configurable:!0}),e.disposeXML=function(t){},e.exit=function(t){},e.gc=function(){},e.pause=function(){},e.pauseForGCIfCollectionImminent=function(t){},e.resume=function(){},e.setClipboard=function(t){navigator.clipboard&&navigator.clipboard.writeText&&navigator.clipboard.writeText(t).then((function(t){console.log("[flash/System] Clipboard writed!")})).catch((function(t){console.warn("[flash/System] Clipboard write rejected!",t)}))},e}(B_),gN=function(t){function e(){var e=t.call(this)||this;return e.isAVMFont=!0,e.isAVMFont=!0,e}return Zg(e,t),Object.defineProperty(e.prototype,"fontName",{get:function(){return this._fontName},set:function(t){this._fontName=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fontStyle",{get:function(){return Tt.throwPIR("playerglobals/text/Font","get fontStyle",""),"regular"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fontType",{get:function(){return Tt.throwPIR("playerglobals/text/Font","get fontType",""),"embedded"},enumerable:!1,configurable:!0}),e.enumerateFonts=function(t){return Tt.throwPIR("playerglobals/text/Font","enumerateFonts",""),[]},e.registerFont=function(t){},e.prototype.hasGlyphs=function(t){return Tt.throwPIR("playerglobals/text/Font","hasGlyphs",""),!1},e.forceNativeConstructor=!0,e.forceNativeMethods=!0,e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e}(B_),_N=function(t){function e(){return t.call(this)||this}return Zg(e,t),Object.defineProperty(e.prototype,"styleNames",{get:function(){return Tt.throwPIR("playerglobals/text/StyleSheet","get styleNames",""),[]},enumerable:!1,configurable:!0}),e.prototype.clear=function(){Tt.throwPIR("playerglobals/text/StyleSheet","clear","")},e.prototype.getStyle=function(t){return Tt.throwPIR("playerglobals/text/StyleSheet","getStyle",""),null},e.prototype.parseCSS=function(t){Tt.throwPIR("playerglobals/text/StyleSheet","parseCSS","")},e.prototype.setStyle=function(t,e){Tt.throwPIR("playerglobals/text/StyleSheet","setStyle","")},e.prototype.transform=function(t){return Tt.throwPIR("playerglobals/text/StyleSheet","transform",""),null},e}(GO),mN=function(t){function e(){var e=t.call(this)||this;return e._textFieldChangeListener={},e.adaptee.autoSize=Hl.NONE,e.adaptee.mouseEnabled=e.adaptee.selectable,e.eventMappingDummys[bM.TEXT_INPUT]="TextField:TextEvent.TEXT_INPUT",e.eventMappingDummys[bM.LINK]="TextField:TextEvent.LINK",e.eventMappingDummys[kO.SCROLL]="TextField:Event.SCROLL",e.eventMappingDummys[kO.TEXT_INTERACTION_MODE_CHANGE]="TextField:Event.TEXT_INTERACTION_MODE_CHANGE",e._textChangeCallbackDelegate=function(t){return e.textChangeCallback(t)},e.adaptee.type==Xl.INPUT&&e.adaptee.addEventListener(dp.CHANGED,e._textChangeCallbackDelegate),e}return Zg(e,t),e.getNewTextField=function(t){if(void 0===t&&(t=null),e._textFields.length){var n=e._textFields.pop();return n.adaptee=t||Qp.getNewTextField(),n}return new e},e.prototype.textChangeCallback=function(t){var e=new this.sec.flash.events.Event(kO.CHANGE);e.target=this,this.dispatchEvent(e,!1)},e.prototype.createAdaptee=function(){var t=Qp.getNewTextField();return t.reset(),t},e.prototype.initAdapter=function(){},e.prototype.dispatchKeyEvent=function(t,e,n,i){},e.prototype.selectTextField=function(){},e.prototype.clone=function(){var t=WD(this._symbol,this._symbol.symbolClass),e=new Qp;return this.adaptee.copyTo(e),t.adaptee=e,t._stage=this.activeStage,t.executeConstructor=function(){t.axInitializer()},t},e.prototype.dispose=function(){this.disposeValues(),e._textFields.push(this)},Object.defineProperty(e.prototype,"alwaysShowSelection",{get:function(){return this._adaptee.alwaysShowSelection},set:function(t){this._adaptee.alwaysShowSelection=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"antiAliasType",{get:function(){return Tt.throwPIR("playerglobals/text/Textfield","get antiAliasType",""),""},set:function(t){Tt.throwPIR("playerglobals/text/Textfield","set antiAliasType","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"autoSize",{get:function(){return this._adaptee.autoSize},set:function(t){this._adaptee.autoSize=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"background",{get:function(){return this._adaptee.background},set:function(t){this._adaptee.background=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"backgroundColor",{get:function(){return this._adaptee.backgroundColor},set:function(t){this._adaptee.backgroundColor=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"border",{get:function(){return this._adaptee.border},set:function(t){this._adaptee.border=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"borderColor",{get:function(){return this._adaptee.borderColor},set:function(t){this._adaptee.borderColor=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bottomScrollV",{get:function(){return Tt.throwPIR("playerglobals/text/Textfield","set bottomScrollV",""),0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"caretIndex",{get:function(){return Tt.throwPIR("playerglobals/text/Textfield","get caretIndex",""),0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"condenseWhite",{get:function(){return Tt.throwPIR("playerglobals/text/Textfield","get condenseWhite",""),!1},set:function(t){Tt.throwPIR("playerglobals/text/Textfield","set condenseWhite","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"defaultTextFormat",{get:function(){var t=this._adaptee.textFormat;return(t.adapter||t.adapter===t.adaptee)&&(t.adapter=new this.sec.flash.text.TextFormat,t.adapter.adaptee=t),t.adapter},set:function(t){this._adaptee.textFormat=t.adaptee},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"displayAsPassword",{get:function(){return this._adaptee.displayAsPassword},set:function(t){this._adaptee.displayAsPassword=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"embedFonts",{get:function(){return Tt.throwPIR("playerglobals/text/Textfield","get embedFonts",""),!1},set:function(t){Tt.throwPIR("playerglobals/text/Textfield","set embedFonts","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"gridFitType",{get:function(){return Tt.throwPIR("playerglobals/text/Textfield","get gridFitType",""),""},set:function(t){Tt.throwPIR("playerglobals/text/Textfield","set gridFitType","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"htmlText",{get:function(){return this.adaptee.htmlText},set:function(t){this.adaptee.htmlText=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this._adaptee.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxChars",{get:function(){return this.adaptee.maxChars},set:function(t){this.adaptee.maxChars=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxScrollH",{get:function(){return this.adaptee.maxScrollH},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxScrollV",{get:function(){return this.adaptee.maxScrollV+1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mouseWheelEnabled",{get:function(){return this.adaptee.mouseWheelEnabled},set:function(t){this.adaptee.mouseWheelEnabled=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"multiline",{get:function(){return this._adaptee.multiline},set:function(t){this._adaptee.multiline=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"numLines",{get:function(){return this._adaptee.numLines},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"restrict",{get:function(){return this.adaptee.restrict},set:function(t){this.adaptee.restrict=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scrollH",{get:function(){return this.adaptee.scrollH},set:function(t){this.adaptee.scrollH=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scrollV",{get:function(){return this.adaptee.scrollV+1},set:function(t){this.adaptee.scrollV=t-1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selectable",{get:function(){return this.adaptee.selectable},set:function(t){this._adaptee.selectable=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selectedText",{get:function(){return Tt.throwPIR("playerglobals/text/Textfield","get selectedText",""),""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selectionBeginIndex",{get:function(){return this.adaptee.selectionBeginIndex},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selectionEndIndex",{get:function(){return this.adaptee.selectionEndIndex},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sharpness",{get:function(){return Tt.throwPIR("playerglobals/text/Textfield","get sharpness",""),0},set:function(t){Tt.throwPIR("playerglobals/text/Textfield","set sharpness","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"styleSheet",{get:function(){return Tt.throwPIR("playerglobals/text/Textfield","get styleSheet",""),null},set:function(t){Tt.throwPIR("playerglobals/text/Textfield","set styleSheet","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){return this._adaptee.text},set:function(t){this._adaptee.text=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textColor",{get:function(){return this._adaptee.textColor},set:function(t){this._adaptee.textColor=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textHeight",{get:function(){return this._adaptee.textHeight},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textInteractionMode",{get:function(){return Tt.throwPIR("playerglobals/text/Textfield","get textInteractionMode",""),""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textWidth",{get:function(){return this._adaptee.textWidth},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"thickness",{get:function(){return Tt.throwPIR("playerglobals/text/Textfield","get thickness",""),0},set:function(t){Tt.throwPIR("playerglobals/text/Textfield","set thickness","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this._adaptee.type},set:function(t){(t==Xl.INPUT&&this._adaptee.type!=Xl.INPUT||t!=Xl.INPUT&&this._adaptee.type==Xl.INPUT)&&this.adaptee.addEventListener(dp.CHANGED,this._textChangeCallbackDelegate),this._adaptee.type=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"useRichTextClipboard",{get:function(){return Tt.throwPIR("playerglobals/text/Textfield","get useRichTextClipboard",""),!1},set:function(t){Tt.throwPIR("playerglobals/text/Textfield","set useRichTextClipboard","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"wordWrap",{get:function(){return this._adaptee.wordWrap},set:function(t){this._adaptee.wordWrap=t},enumerable:!1,configurable:!0}),e.prototype.appendText=function(t){this._adaptee.appendText(t)},e.prototype.copyRichText=function(){return Tt.throwPIR("playerglobals/text/Textfield","copyRichText",""),""},e.prototype.getCharBoundaries=function(t){return Tt.throwPIR("playerglobals/text/Textfield","getCharBoundaries",""),null},e.prototype.getCharIndexAtPoint=function(t,e){return this._adaptee.getCharIndexAtPoint(t,e)},e.prototype.getFirstCharInParagraph=function(t){return this._adaptee.getFirstCharInParagraph(t)},e.prototype.getImageReference=function(t){return Tt.throwPIR("playerglobals/text/Textfield","getImageReference",""),null},e.prototype.getLineIndexAtPoint=function(t,e){return this._adaptee.getLineIndexAtPoint(t,e)},e.prototype.getLineIndexOfChar=function(t){return this._adaptee.getLineIndexOfChar(t)},e.prototype.getLineLength=function(t){return this._adaptee.getLineLength(t)},e.prototype.getLineMetrics=function(t){var e=this._adaptee.getLineMetrics(t),n=e.x,i=e.width,r=e.height,o=e.ascent,a=e.descent,s=e.leading;return new this.sec.flash.text.TextLineMetrics(n,i,r,o,a,s)},e.prototype.getLineOffset=function(t){return this._adaptee.getLineOffset(t)},e.prototype.getLineText=function(t){return this._adaptee.getLineText(t)},e.prototype.getParagraphLength=function(t){return this._adaptee.getParagraphLength(t)},e.prototype.getRawText=function(){return Tt.throwPIR("playerglobals/text/Textfield","getRawText",""),""},e.prototype.getTextFormat=function(t,e){void 0===t&&(t=-1),void 0===e&&(e=-1);var n=this._adaptee.getTextFormat(t,e);if(n){if(n.adaptee!==n.adapter)return n.adapter;var i=new this.sec.flash.text.TextFormat;return i.adaptee=n,n.adapter=i,i}console.warn("[playerglobal/Textfield] - getTextFormat - textformat should not be null")},e.prototype.getTextRuns=function(t,e){return Tt.throwPIR("playerglobals/text/Textfield","getTextRuns",""),[]},e.prototype.getXMLText=function(t,e){return Tt.throwPIR("playerglobals/text/Textfield","getXMLText",""),""},e.prototype.insertXMLText=function(t,e,n,i){Tt.throwPIR("playerglobals/text/Textfield","insertXMLText","")},e.isFontCompatible=function(t,e){return Tt.throwPIR("playerglobals/text/Textfield","isFontCompatible",""),!1},e.prototype.pasteRichText=function(t){return Tt.throwPIR("playerglobals/text/Textfield","pasteRichText",""),!1},e.prototype.replaceSelectedText=function(t){return this._adaptee.replaceSelectedText(t)},e.prototype.replaceText=function(t,e,n){return this._adaptee.replaceText(t,e,n)},e.prototype.setSelection=function(t,e){return this._adaptee.setSelection(t,e)},e.prototype.setTextFormat=function(t,e,n){void 0===e&&(e=-1),void 0===n&&(n=-1),this._adaptee.setTextFormat(t.adaptee,e,n)},e._textFields=new Array,e}(pM),yN=function(t){function e(e,n,i,r,o,a,s,u,l,c,h,p,d){void 0===e&&(e=null),void 0===n&&(n=null),void 0===i&&(i=null),void 0===r&&(r=null),void 0===o&&(o=null),void 0===a&&(a=null),void 0===s&&(s=null),void 0===u&&(u=null),void 0===l&&(l=null),void 0===c&&(c=null),void 0===h&&(h=null),void 0===p&&(p=null),void 0===d&&(d=null);var f=t.call(this)||this;return f.adaptee=new cp(e,n,i,r,o,a,s,u,l,c,h,p,d),f}return Zg(e,t),Object.defineProperty(e.prototype,"target",{get:function(){return Tt.throwPIR("playerglobals/text/TextFormat","get target",""),null},set:function(t){Tt.throwPIR("playerglobals/text/TextFormat","set target","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tabStops",{get:function(){return Tt.throwPIR("playerglobals/text/TextFormat","get tabStops",""),null},set:function(t){Tt.throwPIR("playerglobals/text/TextFormat","set tabStops","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"display",{get:function(){return Tt.throwPIR("playerglobals/text/TextFormat","get display",""),null},set:function(t){Tt.throwPIR("playerglobals/text/TextFormat","set display","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bullet",{get:function(){return Tt.throwPIR("playerglobals/text/TextFormat","get bullet",""),null},set:function(t){Tt.throwPIR("playerglobals/text/TextFormat","set bullet","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return Tt.throwPIR("playerglobals/text/TextFormat","get url",""),null},set:function(t){Tt.throwPIR("playerglobals/text/TextFormat","set url","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"link_target",{get:function(){return Tt.throwPIR("playerglobals/text/TextFormat","get target",""),null},set:function(t){Tt.throwPIR("playerglobals/text/TextFormat","get target","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"align",{get:function(){return this.adaptee.align},set:function(t){this.adaptee.align=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"blockIndent",{get:function(){return this.adaptee.blockIndent},set:function(t){this.adaptee.blockIndent=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"leftMargin",{get:function(){return this.adaptee.leftMargin},set:function(t){this.adaptee.leftMargin=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rightMargin",{get:function(){return this.adaptee.rightMargin},set:function(t){this.adaptee.rightMargin=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"indent",{get:function(){return this.adaptee.indent},set:function(t){this.adaptee.indent=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"color",{get:function(){return this.adaptee.color},set:function(t){this.adaptee.color=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"kerning",{get:function(){return this.adaptee.kerning},set:function(t){this.adaptee.kerning=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"leading",{get:function(){return this.adaptee.leading},set:function(t){this.adaptee.leading=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"letterSpacing",{get:function(){return this.adaptee.letterSpacing},set:function(t){this.adaptee.letterSpacing=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this.adaptee.size},set:function(t){this.adaptee.size=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bold",{get:function(){return this.adaptee.bold},set:function(t){this.adaptee.bold=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"italic",{get:function(){return this.adaptee.italic},set:function(t){this.adaptee.italic=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"underline",{get:function(){return this.adaptee.underline},set:function(t){this.adaptee.underline=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"font",{get:function(){return this.adaptee.font_name},set:function(t){this.adaptee.font_name=t},enumerable:!1,configurable:!0}),e.prototype.clone=function(){var t=new this.sec.flash.text.TextFormat;return t.adaptee=this.adaptee.clone(),t},e}(B_),AN=function(t){function e(e,n,i){var r=t.call(this)||this;return r._beginIndex=0|e,r._endIndex=0|n,r._textFormat=i,r}return Zg(e,t),Object.defineProperty(e.prototype,"beginIndex",{get:function(){return this._beginIndex},set:function(t){this._beginIndex=0|t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"endIndex",{get:function(){return this._endIndex},set:function(t){this._endIndex=0|t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textFormat",{get:function(){return this._textFormat},set:function(t){this._textFormat=t},enumerable:!1,configurable:!0}),e.prototype.clone=function(){return new e(this.beginIndex,this.endIndex,this.textFormat.clone())},e.prototype.containsIndex=function(t){return t>=this._beginIndex&&t<this._endIndex},e.prototype.intersects=function(t,e){return Math.max(this._beginIndex,t)<Math.min(this._endIndex,e)},e.classInitializer=null,e}(B_),vN=function(t){function e(){var e=t.call(this)||this;return Tt.throwPIR("playerglobals/text/StaticText","constructor",""),e}return Zg(e,t),e.prototype.applySymbol=function(){Tt.throwPIR("playerglobals/text/StaticText","applySymbol","")},e.prototype._canHaveTextContent=function(){return Tt.throwPIR("playerglobals/text/StaticText","_canHaveTextContent",""),!0},e.prototype._getTextContent=function(){return Tt.throwPIR("playerglobals/text/StaticText","_getTextContent",""),this._textContent},Object.defineProperty(e.prototype,"text",{get:function(){return Tt.throwPIR("playerglobals/text/StaticText","text",""),this._textContent.plainText},enumerable:!1,configurable:!0}),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e}(lM),bN=function(t){function e(){var e=t.call(this)||this;return Tt.throwPIR("playerglobals/text/TextRenderer","constructor",""),e}return Zg(e,t),Object.defineProperty(e.prototype,"antiAliasType",{get:function(){return Tt.throwPIR("playerglobals/text/TextRenderer","get antiAliasType",""),null},set:function(t){Tt.throwPIR("playerglobals/text/TextRenderer","set antiAliasType","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxLevel",{get:function(){return Tt.throwPIR("playerglobals/text/TextRenderer","get maxLevel",""),0},set:function(t){Tt.throwPIR("playerglobals/text/TextRenderer","set maxLevel","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"displayMode",{get:function(){return Tt.throwPIR("playerglobals/text/TextRenderer","get displayMode",""),null},set:function(t){Tt.throwPIR("playerglobals/text/TextRenderer","set displayMode","")},enumerable:!1,configurable:!0}),e.setAdvancedAntiAliasingTable=function(t,e,n,i){Tt.throwPIR("playerglobals/text/TextRenderer","setAdvancedAntiAliasingTable","")},e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e}(B_),CN=function(t){function e(){var e=t.call(this)||this;return Tt.throwPIR("playerglobals/text/TextFormatDisplay","constructor",""),e}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.INLINE="inline",e.BLOCK="block",e}(B_),xN=function(t){function e(e,n,i,r,o,a){var s=t.call(this)||this;return s.width=+e,s.height=+n,s.textFieldWidth=+i,s.textFieldHeight=+r,s.ascent=+o,s.descent=+a,Tt.throwPIR("playerglobals/text/TextExtent","constructor",""),s}return Zg(e,t),e}(B_),IN=function(t){function e(){return t.call(this)||this}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.LCD="lcd",e.CRT="crt",e.DEFAULT="default",e}(B_),EN=function(t){function e(){return t.call(this)||this}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.DARK_COLOR="dark",e.LIGHT_COLOR="light",e}(B_),wN=function(t){function e(){return t.call(this)||this}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.EMBEDDED="embedded",e.EMBEDDED_CFF="embeddedCFF",e.DEVICE="device",e}(B_),SN=function(t){function e(e,n,i){var r=t.call(this)||this;return r.fontSize=+e,r.insideCutoff=+n,r.outsideCutoff=+i,Tt.throwPIR("playerglobals/text/CSMSettings","constructor",""),r}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e}(B_),DN=function(t){function e(e,n,i,r,o,a){var s=t.call(this)||this;return Tt.throwPIR("playerglobals/text/TextLineMetrics","constructor",""),s}return Zg(e,t),e}(B_),TN=function(t){function e(){return t.call(this)||this}return Zg(e,t),Object.defineProperty(e.prototype,"charCount",{get:function(){return Tt.throwPIR("playerglobals/text/TextSnapshot","get charCount",""),0},enumerable:!1,configurable:!0}),e.prototype.findText=function(t,e,n){return Tt.throwPIR("playerglobals/text/TextSnapshot","findText",""),0},e.prototype.getSelected=function(t,e){return Tt.throwPIR("playerglobals/text/TextSnapshot","getSelected",""),!1},e.prototype.getSelectedText=function(t){return Tt.throwPIR("playerglobals/text/TextSnapshot","getSelectedText",""),""},e.prototype.getText=function(t,e,n){return Tt.throwPIR("playerglobals/text/TextSnapshot","getText",""),""},e.prototype.getTextRunInfo=function(t,e){return Tt.throwPIR("playerglobals/text/TextSnapshot","getTextRunInfo",""),null},e.prototype.hitTestTextNearPos=function(t,e,n){return Tt.throwPIR("playerglobals/text/TextSnapshot","hitTestTextNearPos",""),0},e.prototype.setSelectColor=function(t){Tt.throwPIR("playerglobals/text/TextSnapshot","setSelectColor","")},e.prototype.setSelected=function(t,e,n){Tt.throwPIR("playerglobals/text/TextSnapshot","setSelected","")},e.classInitializer=null,e}(B_),PN=function(t){function e(e,n,i,r){return t.call(this)||this}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e}(B_),ON=function(t){function e(){return t.call(this)||this}return Zg(e,t),e.forceNativeConstructor=!0,e.forceNativeMethods=!0,e.AUTO="auto",e.ANY="any",e.NONE="none",e.ALL="all",e}(B_),MN=function(t){function e(){return t.call(this)||this}return Zg(e,t),e.forceNativeConstructor=!0,e.forceNativeMethods=!0,e.NONE="none",e.HORIZONTAL_STEM="horizontalStem",e}(B_),BN=0,NN=function(t){function e(e,n,i){void 0===e&&(e=null),void 0===n&&(n=null),void 0===i&&(i="rotate0");var r=t.call(this)||this;return r._id=BN++,r._elementFormat=e,r._eventMirror=n,r._textRotation=a_(i),r}return Zg(e,t),e.prototype.setTextBlock=function(t){this._textBlock=t},e.prototype.setGroupElement=function(t){this._groupElement=t},Object.defineProperty(e.prototype,"textBlock",{get:function(){return this._textBlock},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textBlockBeginIndex",{get:function(){return this._textBlockBeginIndex},set:function(t){this._textBlockBeginIndex=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"elementFormat",{get:function(){return this._elementFormat},set:function(t){this._elementFormat=t,this._textBlock&&this._textBlock.setTextDataDirty()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"eventMirror",{get:function(){return this._eventMirror},set:function(t){this._eventMirror=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"groupElement",{get:function(){return this._groupElement},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rawText",{get:function(){return this._rawText},set:function(t){this._rawText=t,this._text=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){return this._text},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textRotation",{get:function(){return this._textRotation},set:function(t){this._textRotation=a_(t)},enumerable:!1,configurable:!0}),e.forceNativeConstructor=!0,e.forceNativeMethods=!0,e.GRAPHIC_ELEMENT=65007,e}(B_),LN=function(t){function e(){return t.call(this)||this}return Zg(e,t),e.forceNativeConstructor=!0,e.forceNativeMethods=!0,e.DEFAULT="default",e.LINING="lining",e.OLD_STYLE="oldStyle",e}(B_),RN=function(t){function e(){return t.call(this)||this}return Zg(e,t),e.forceNativeConstructor=!0,e.forceNativeMethods=!0,e.DEFAULT="default",e.PROPORTIONAL="proportional",e.TABULAR="tabular",e}(B_),FN=function(t){function e(e,n){var i=t.call(this)||this;return i._locale=a_(e),i._lineJustification=a_(n),i}return Zg(e,t),e.getJustifierForLocale=function(t){return Tt.throwPIR("playerglobals/text/engine/TextJustifier","getJustifierForLocale",""),null},e.prototype.clone=function(){return Tt.throwPIR("playerglobals/text/engine/TextJustifier","clone",""),null},Object.defineProperty(e.prototype,"locale",{get:function(){return this._locale},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lineJustification",{get:function(){return this._lineJustification},set:function(t){this._lineJustification=a_(t)},enumerable:!1,configurable:!0}),e.prototype.setLocale=function(t){this._locale=a_(t)},e.forceNativeConstructor=!0,e.forceNativeMethods=!0,e}(B_),kN=function(t){function e(e,n,i){return t.call(this,void 0,void 0)||this}return Zg(e,t),Object.defineProperty(e.prototype,"justificationStyle",{get:function(){return Tt.throwPIR("playerglobals/text/engine/EastAsianJustifier","get justificationStyle",""),null},set:function(t){Tt.throwPIR("playerglobals/text/engine/EastAsianJustifier","set justificationStyle","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"composeTrailingIdeographicSpaces",{get:function(){return Tt.throwPIR("playerglobals/text/engine/EastAsianJustifier","get composeTrailingIdeographicSpaces",""),null},set:function(t){Tt.throwPIR("playerglobals/text/engine/EastAsianJustifier","set composeTrailingIdeographicSpaces","")},enumerable:!1,configurable:!0}),e.forceNativeConstructor=!0,e.forceNativeMethods=!0,e}(FN),UN=function(t){function e(){return t.call(this)||this}return Zg(e,t),e.forceNativeConstructor=!0,e.forceNativeMethods=!0,e.ROMAN="roman",e.ASCENT="ascent",e.DESCENT="descent",e.IDEOGRAPHIC_TOP="ideographicTop",e.IDEOGRAPHIC_CENTER="ideographicCenter",e.IDEOGRAPHIC_BOTTOM="ideographicBottom",e.USE_DOMINANT_BASELINE="useDominantBaseline",e}(B_),jN=0,VN=function(t){function e(e,n,i,r,o,a,s,u,l,c,h,p,d,f,g,_,m){void 0===e&&(e=null),void 0===n&&(n=12),void 0===i&&(i=0),void 0===r&&(r=1),void 0===o&&(o="auto"),void 0===a&&(a="roman"),void 0===s&&(s="useDominantBaseline"),void 0===u&&(u=0),void 0===l&&(l="on"),void 0===c&&(c=0),void 0===h&&(h=0),void 0===p&&(p="en"),void 0===d&&(d="auto"),void 0===f&&(f="default"),void 0===g&&(g="default"),void 0===_&&(_="common"),void 0===m&&(m="default");var y=t.call(this)||this;return y._id=jN++,y._fontDescription=e,y._fontSize=+n,y._color=i>>>0,y._alpha=+r,y._textRotation=a_(o),y._dominantBaseline=a_(a),y._alignmentBaseline=a_(s),y._baselineShift=+u,y._kerning=a_(l),y._trackingRight=+c,y._trackingLeft=+h,y._locale=a_(p),y._breakOpportunity=a_(d),y._digitCase=a_(f),y._digitWidth=a_(g),y._ligatureLevel=a_(_),y._typographicCase=a_(m),y}return Zg(e,t),e.prototype.createAwayTextformat=function(){var t,e,n,i=new cp;return i.size=this._fontSize,i.color=this._color,i.fontLookUpMode=this._fontDescription?this._fontDescription.fontLookup:ap.DEVICE,i.font_name=null===(t=this._fontDescription)||void 0===t?void 0:t.fontName,i.italic="italic"==(null===(e=this._fontDescription)||void 0===e?void 0:e.fontPosture),i.bold="bold"==(null===(n=this._fontDescription)||void 0===n?void 0:n.fontWeight),i.align=Yl.LEFT,0!=this._baselineShift&&console.warn("baselineshift is not 0",this._baselineShift),this._alignmentBaseline!=UN.USE_DOMINANT_BASELINE&&console.warn("_alignmentBaseline is not USE_DOMINANT_BASELINE",this._alignmentBaseline),this._dominantBaseline!=UN.ROMAN&&console.warn("_dominantBaseline is not ROMAN",this._dominantBaseline),0!=this._trackingRight&&console.warn("_trackingRight is not 0",this._trackingRight),0!=this._trackingLeft&&console.warn("_trackingLeft is not 0",this._trackingLeft),1!=this._alpha&&console.warn("_alpha is not 1",this._alpha),"default"!=this._digitCase&&console.warn('_digitCase is not "default"',this._digitCase),"default"!=this._digitWidth&&console.warn('_digitWidth is not "default"',this._digitWidth),"default"!=this._typographicCase&&console.warn('_typographicCase is not "default"',this._typographicCase),"common"!=this._ligatureLevel&&console.warn('_ligatureLevel is not "common"',this._ligatureLevel),i},e.prototype.getBaseline=function(){return this._alignmentBaseline==UN.USE_DOMINANT_BASELINE?this._dominantBaseline:this._alignmentBaseline},Object.defineProperty(e.prototype,"alignmentBaseline",{get:function(){return this._alignmentBaseline},set:function(t){this._alignmentBaseline=a_(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"alpha",{get:function(){return this._alpha},set:function(t){this._alpha=+t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"baselineShift",{get:function(){return this._baselineShift},set:function(t){this._baselineShift=+t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"breakOpportunity",{get:function(){return this._breakOpportunity},set:function(t){this._breakOpportunity=a_(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"color",{get:function(){return this._color},set:function(t){this._color=t>>>0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dominantBaseline",{get:function(){return this._dominantBaseline},set:function(t){this._dominantBaseline=a_(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fontDescription",{get:function(){return this._fontDescription},set:function(t){this._fontDescription=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"digitCase",{get:function(){return this._digitCase},set:function(t){this._digitCase=a_(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"digitWidth",{get:function(){return this._digitWidth},set:function(t){this._digitWidth=a_(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ligatureLevel",{get:function(){return this._ligatureLevel},set:function(t){this._ligatureLevel=a_(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fontSize",{get:function(){return this._fontSize},set:function(t){this._fontSize=+t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"kerning",{get:function(){return this._kerning},set:function(t){this._kerning=a_(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"locale",{get:function(){return this._locale},set:function(t){this._locale=a_(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textRotation",{get:function(){return this._textRotation},set:function(t){this._textRotation=a_(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"trackingRight",{get:function(){return this._trackingRight},set:function(t){this._trackingRight=+t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"trackingLeft",{get:function(){return this._trackingLeft},set:function(t){this._trackingLeft=+t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"typographicCase",{get:function(){return this._typographicCase},set:function(t){this._typographicCase=a_(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"locked",{get:function(){return this._locked},set:function(t){this._locked=t},enumerable:!1,configurable:!0}),e.prototype.getFontMetrics=function(){return Tt.throwPIR("playerglobals/text/engine/ElementFormat","set getFontMetrics",""),null},e.forceNativeConstructor=!0,e.forceNativeMethods=!0,e}(B_),QN=function(t){function e(e,n,i,r,o,a){void 0===e&&(e="_serif"),void 0===n&&(n="normal"),void 0===i&&(i="normal"),void 0===r&&(r="device"),void 0===o&&(o="cff"),void 0===a&&(a="horizontalStem");var s=t.call(this)||this;return s._fontName=a_(e),s._fontWeight=a_(n),s._fontPosture=a_(i),s._fontLookup=a_(r),s._renderingMode=a_(o),s._cffHinting=a_(a),s}return Zg(e,t),e.isFontCompatible=function(t,e,n){return Tt.throwPIR("playerglobals/text/engine/FontDescription","static isFontCompatible",""),null},e.isDeviceFontCompatible=function(t,e,n){return Tt.throwPIR("playerglobals/text/engine/FontDescription","static isDeviceFontCompatible",""),null},Object.defineProperty(e.prototype,"renderingMode",{get:function(){return this._renderingMode},set:function(t){this._renderingMode=a_(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fontLookup",{get:function(){return this._fontLookup},set:function(t){this._fontLookup=a_(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fontName",{get:function(){return this._fontName},set:function(t){this._fontName=a_(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fontPosture",{get:function(){return this._fontPosture},set:function(t){this._fontPosture=a_(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fontWeight",{get:function(){return this._fontWeight},set:function(t){this._fontWeight=a_(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cffHinting",{get:function(){return this._cffHinting},set:function(t){this._cffHinting=a_(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"locked",{get:function(){return this._locked},set:function(t){this._locked=t},enumerable:!1,configurable:!0}),e.forceNativeConstructor=!0,e.forceNativeMethods=!0,e}(B_),GN=function(t){function e(){return t.call(this)||this}return Zg(e,t),e.forceNativeConstructor=!0,e.forceNativeMethods=!0,e.DEVICE="device",e.EMBEDDED_CFF="embeddedCFF",e}(B_),zN=function(t){function e(e,n,i,r,o,a,s,u,l,c){void 0===c&&(c=0);var h=t.call(this)||this;return h.emBox=e,h.strikethroughOffset=+n,h.strikethroughThickness=+i,h.underlineOffset=+r,h.underlineThickness=+o,h.subscriptOffset=+a,h.subscriptScale=+s,h.superscriptOffset=+u,h.superscriptScale=+l,h.lineGap=+c,h}return Zg(e,t),e.forceNativeConstructor=!0,e.forceNativeMethods=!0,e}(B_),HN=function(t){function e(){return t.call(this)||this}return Zg(e,t),e.forceNativeConstructor=!0,e.forceNativeMethods=!0,e.NORMAL="normal",e.ITALIC="italic",e}(B_),XN=function(t){function e(){return t.call(this)||this}return Zg(e,t),e.forceNativeConstructor=!0,e.forceNativeMethods=!0,e.NORMAL="normal",e.BOLD="bold",e}(B_),YN=function(t){function e(e,n,i,r,o,a){void 0===e&&(e=null),void 0===n&&(n=15),void 0===i&&(i=15),void 0===r&&(r=null),void 0===o&&(o=null),void 0===a&&(a="rotate0");var s=t.call(this,void 0,void 0,void 0)||this;return s.graphic=e,s.elementWidth=+n,s.elementHeight=+i,s.elementFormat=r,s.eventMirror=o,s.textRotation=a_(a),s}return Zg(e,t),Object.defineProperty(e.prototype,"graphic",{get:function(){return Tt.throwPIR("playerglobals/text/engine/GraphicElement","get graphic",""),null},set:function(t){Tt.throwPIR("playerglobals/text/engine/GraphicElement","set graphic","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"elementHeight",{get:function(){return Tt.throwPIR("playerglobals/text/engine/GraphicElement","get elementHeight",""),null},set:function(t){Tt.throwPIR("playerglobals/text/engine/GraphicElement","set elementHeight","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"elementWidth",{get:function(){return Tt.throwPIR("playerglobals/text/engine/GraphicElement","get elementWidth",""),null},set:function(t){Tt.throwPIR("playerglobals/text/engine/GraphicElement","set elementWidth","")},enumerable:!1,configurable:!0}),e.forceNativeConstructor=!0,e.forceNativeMethods=!0,e}(NN),qN=function(t){function e(){return t.call(this)||this}return Zg(e,t),e.forceNativeConstructor=!0,e.forceNativeMethods=!0,e.PUSH_IN_KINSOKU="pushInKinsoku",e.PUSH_OUT_ONLY="pushOutOnly",e.PRIORITIZE_LEAST_ADJUSTMENT="prioritizeLeastAdjustment",e}(B_),KN=function(t){function e(){return t.call(this)||this}return Zg(e,t),e.forceNativeConstructor=!0,e.forceNativeMethods=!0,e.ON="on",e.OFF="off",e.AUTO="auto",e}(B_),WN=function(t){function e(){return t.call(this)||this}return Zg(e,t),e.forceNativeConstructor=!0,e.forceNativeMethods=!0,e.NONE="none",e.MINIMUM="minimum",e.COMMON="common",e.UNCOMMON="uncommon",e.EXOTIC="exotic",e}(B_),JN=function(t){function e(){return t.call(this)||this}return Zg(e,t),e.forceNativeConstructor=!0,e.forceNativeMethods=!0,e.UNJUSTIFIED="unjustified",e.ALL_BUT_LAST="allButLast",e.ALL_INCLUDING_LAST="allIncludingLast",e.ALL_BUT_MANDATORY_BREAK="allButMandatoryBreak",e}(B_),$N=function(t){function e(){return t.call(this)||this}return Zg(e,t),e.forceNativeConstructor=!0,e.forceNativeMethods=!0,e.NORMAL="normal",e.CFF="cff",e}(B_),ZN=function(t){function e(e,n,i){void 0===e&&(e="en"),void 0===n&&(n="unjustified"),void 0===i&&(i=!1);var r=t.call(this,e,n)||this;return r._letterSpacing=!!i,r}return Zg(e,t),Object.defineProperty(e.prototype,"letterSpacing",{get:function(){return this._letterSpacing},set:function(t){this._letterSpacing=!!t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"minimumSpacing",{get:function(){return this._minimumSpacing},set:function(t){this._minimumSpacing=+t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"optimumSpacing",{get:function(){return this._optimumSpacing},set:function(t){this._optimumSpacing=+t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maximumSpacing",{get:function(){return this._maximumSpacing},set:function(t){this._maximumSpacing=+t},enumerable:!1,configurable:!0}),e.forceNativeConstructor=!0,e.forceNativeMethods=!0,e}(FN),tL=function(t){function e(){return t.call(this)||this}return Zg(e,t),e.forceNativeConstructor=!0,e.forceNativeMethods=!0,e.START="start",e.CENTER="center",e.END="end",e.DECIMAL="decimal",e}(B_),eL=function(t){function e(e,n,i){return t.call(this)||this}return Zg(e,t),Object.defineProperty(e.prototype,"alignment",{get:function(){Tt.throwPIR("playerglobals/text/engine/TabStop","get alignment","")},set:function(t){Tt.throwPIR("playerglobals/text/engine/TabStop","set alignment","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"position",{get:function(){Tt.throwPIR("playerglobals/text/engine/TabStop","get position","")},set:function(t){Tt.throwPIR("playerglobals/text/engine/TabStop","set position","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"decimalAlignmentToken",{get:function(){Tt.throwPIR("playerglobals/text/engine/TabStop","get decimalAlignmentToken","")},set:function(t){Tt.throwPIR("playerglobals/text/engine/TabStop","set decimalAlignmentToken","")},enumerable:!1,configurable:!0}),e.forceNativeConstructor=!0,e.forceNativeMethods=!0,e}(B_),nL=function(t){function e(){return t.call(this)||this}return Zg(e,t),e.forceNativeConstructor=!0,e.forceNativeMethods=!0,e.SUCCESS="success",e.EMERGENCY="emergency",e.COMPLETE="complete",e.INSUFFICIENT_WIDTH="insufficientWidth",e}(B_),iL=0,rL=[],oL=function(t){function e(e,n,i,r,o,a,s,u,l){void 0===e&&(e=null),void 0===n&&(n=null),void 0===i&&(i=null),void 0===r&&(r="rotate0"),void 0===o&&(o="roman"),void 0===a&&(a=0),void 0===s&&(s=!0),void 0===u&&(u=null),void 0===l&&(l=12);var c=t.call(this)||this;return c._id=iL++,c._content=e,e&&c._content.setTextBlock(c),c._tabStops=n,c._textJustifier=i,c._lineRotation=r,c._baselineZero=o,c._bidiLevel=a,c._applyNonLinearFontScaling=s,c._baselineFontDescription=u,c._baselineFontSize=l,c._textLines=[],c._creationResult=null,c}return Zg(e,t),e.prototype.setTextDataDirty=function(){this._textData=null},e.prototype._convertContentToTextData=function(){if(this._textData)return this._textData;this._textData={text:"",formats:[],elementFormats:[],formatIndices:[],processedIdx:0,creationResult:null,spaces:{},lineBreaks:{},charWidths:[]},this.resolveGroupElements(this._content),this._textData.formatIndices[this._textData.formatIndices.length-1]!=this._textData.text.length&&this._textData.formatIndices.push(this._textData.text.length);var t=this._textData.formats,e=this._textData.formatIndices,n=this._textData.text;this._content.rawText=n;for(var i=this._textData.spaces,r=this._textData.lineBreaks,o=this._textData.charWidths,a=0,s=t.length,u=0;u<s;u++){var l=t[u];l.font_table.initFontSize(l.size);for(var c=e[u];a<=c;a++){var h=n.charCodeAt(a);if(10===h||8233===h)r[a]=1,o[o.length]=0;else o[o.length]=l.font_table.getCharWidth(h.toString()),(9==h||32==h)&&(i[a]=!0)}}},e.prototype.resolveGroupElements=function(t){if("flash.text.engine.TextElement"==t.axClassName){var e=t.text,n=t.elementFormat,i=void 0;i=n?n.createAwayTextformat():new cp,this._textData.text+=e||"",this._textData.formats.push(i),this._textData.elementFormats.push(n),this._textData.formatIndices.push(this._textData.text.length)}if("flash.text.engine.GroupElement"==t.axClassName)for(var r=t,o=0;o<r.elementCount;o++)this.resolveGroupElements(r.getElementAt(o))},e.prototype.createTextLine=function(t,e,n,i){this._textData||(this._textLines=[],this._convertContentToTextData()),this._tabStops&&this._tabStops.buffer.length>0&&console.warn("this._tabStops is not []",this._tabStops),this._textJustifier&&"unjustified"!=this._textJustifier.lineJustification&&console.warn("lineJustification is not unjustified",this._textJustifier.lineJustification),this._textJustifier&&0!=this._textJustifier.letterSpacing&&console.warn("letterSpacing is not 0",this._textJustifier.letterSpacing),this._baselineZero!=UN.ROMAN&&console.warn('_baselineZero is not "roman"',this._baselineZero);var r=this._textData.text,o=this._textData.processedIdx;if(o>r.length)return this._creationResult=nL.COMPLETE,null;var a,s,u,l=this._textData.formats,c=this._textData.elementFormats,h=this._textData.formatIndices,p=this._textData.spaces,d=this._textData.lineBreaks,f=this._textData.charWidths,g=l.length,_=o,m="",y="",A=0,v=[],b=[],C=[],x=nL.EMERGENCY,I=0;t:for(var E=0;E<g;E++)if(!(o>h[E])){var w=l[E];a=w,v[v.length]=w,b[b.length]=c[E],s=c[E],C[C.length]=0;for(var S=h[E];_<=S;_++){if(1===d[_]){m+=y,A+=y.length+1,x=nL.SUCCESS,this._textData.processedIdx=_,d[_]=2;break t}if(p[_]&&(x=nL.SUCCESS,m+=y,A+=y.length,y="",this._textData.processedIdx=_),1!=y.length||32!=y.charCodeAt(0)&&9!=y.charCodeAt(0)||(x=nL.SUCCESS,m+=y,A+=y.length,y="",this._textData.processedIdx=_),(I+=f[_])>e-2){if(x==nL.SUCCESS)break t;m+=y,A+=y.length,this._textData.processedIdx=_;break t}if(_==r.length){m+=y,A+=y.length,this._textData.processedIdx=_+1;break t}d[_]?(y+=r[_],o++):y+=r[_]}C[C.length-1]=m.length+y.length-1}C[C.length-1]=m.length,this._textData.processedIdx>=r.length&&(this._textData.processedIdx++,x=nL.COMPLETE),0==v.length&&(v[0]=a,b[0]=s);for(var D=0;D<rL.length;D++)if(!rL[D].parent&&rL[D].free){u=rL[D];break}return u?(u.setPreviousLine(null),u.setNextLine(null),u.$BguserData=null,u.free=!1,u.reUseTextLine(t,e,n,i,m,v,C,o,A,b)):u=new this.sec.flash.text.engine.TextLine(t,e,n,i,m,v,C,o,A,b),this._creationResult=x,u.setTextBlock(this),this._textLines.push(u),u},e.prototype.recreateTextLine=function(t,e,n,i,r){return Tt.throwPIR("playerglobals/text/engine/TextBlock","recreateTextLine",""),new this.sec.flash.text.engine.TextLine},Object.defineProperty(e.prototype,"textLineCreationResult",{get:function(){return this._creationResult},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"applyNonLinearFontScaling",{get:function(){return Tt.throwPIR("playerglobals/text/engine/TextBlock","get applyNonLinearFontScaling",""),this._applyNonLinearFontScaling},set:function(t){Tt.throwPIR("playerglobals/text/engine/TextBlock","set applyNonLinearFontScaling",""),this._applyNonLinearFontScaling=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"baselineFontDescription",{get:function(){return Tt.throwPIR("playerglobals/text/engine/TextBlock","get baselineFontDescription",""),this._baselineFontDescription},set:function(t){Tt.throwPIR("playerglobals/text/engine/TextBlock","set baselineFontDescription",""),this._baselineFontDescription=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"baselineFontSize",{get:function(){return Tt.throwPIR("playerglobals/text/engine/TextBlock","get baselineFontSize",""),this._baselineFontSize},set:function(t){Tt.throwPIR("playerglobals/text/engine/TextBlock","set baselineFontSize",""),this._baselineFontSize=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"baselineZero",{get:function(){return this._baselineZero},set:function(t){this._baselineZero=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"content",{get:function(){return this._content},set:function(t){this._textData=null,this._content&&this._content.setTextBlock(null),this._content=t,this._content&&this._content.setTextBlock(this)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bidiLevel",{get:function(){return Tt.throwPIR("playerglobals/text/engine/TextBlock","get bidiLevel",""),this._bidiLevel},set:function(t){Tt.throwPIR("playerglobals/text/engine/TextBlock","set bidiLevel",""),this._bidiLevel=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"firstInvalidLine",{get:function(){return Tt.throwPIR("playerglobals/text/engine/TextBlock","firstInvalidLine",""),null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"firstLine",{get:function(){return this._textLines.length>0?this._textLines[0]:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastLine",{get:function(){return this._textLines.length>0?this._textLines[this._textLines.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lineRotation",{get:function(){return this._lineRotation},set:function(t){this._lineRotation=t},enumerable:!1,configurable:!0}),e.prototype.findNextAtomBoundary=function(t){return Tt.throwPIR("playerglobals/text/engine/TextBlock","findNextAtomBoundary",""),null},e.prototype.findPreviousAtomBoundary=function(t){return Tt.throwPIR("playerglobals/text/engine/TextBlock","findPreviousAtomBoundary",""),null},e.prototype.findNextWordBoundary=function(t){return Tt.throwPIR("playerglobals/text/engine/TextBlock","findNextWordBoundary",""),null},e.prototype.findPreviousWordBoundary=function(t){return Tt.throwPIR("playerglobals/text/engine/TextBlock","findPreviousWordBoundary",""),null},e.prototype.getTextLineAtCharIndex=function(t){return Tt.throwPIR("playerglobals/text/engine/TextBlock","getTextLineAtCharIndex",""),null},e.prototype.releaseLineCreationData=function(){Tt.throwPIR("playerglobals/text/engine/TextBlock","releaseLineCreationData","")},e.prototype.releaseLines=function(t,e){if(0!=this._textLines.length)if(t!=this._textLines[0]||e!=this._textLines[this._textLines.length-1])for(;t;){var n=this._textLines.indexOf(t);n>=0&&this._textLines.splice(n,1),t.free=!0,rL.indexOf(t)<=0&&rL.push(t),t=t!=e?t.nextLine:null}else{if(rL.length<100)for(var i=0;i<this._textLines.length;i++)this._textLines[i].free=!0,rL.indexOf(this._textLines[i])<=0&&rL.push(this._textLines[i]);this._textLines.length=0}},e.prototype.dump=function(){return Tt.throwPIR("playerglobals/text/engine/TextBlock","dump",""),null},e.prototype.DoCreateTextLine=function(t,e,n,i,r){return Tt.throwPIR("playerglobals/text/engine/TextBlock","DoCreateTextLine",""),null},e.prototype.getTabStops=function(){return this._tabStops},e.prototype.setTabStops=function(t){this._tabStops=t},e.prototype.getTextJustifier=function(){return this._textJustifier},e.prototype.setTextJustifier=function(t){this._textJustifier=t},Object.defineProperty(e.prototype,"userData",{get:function(){return this._userData},set:function(t){this._userData=t},enumerable:!1,configurable:!0}),e.forceNativeConstructor=!0,e.forceNativeMethods=!0,e}(B_),aL=function(t){function e(e,n,i,r){void 0===e&&(e=null),void 0===n&&(n=null),void 0===i&&(i=null),void 0===r&&(r="rotate0");var o=t.call(this,n,i,r)||this;return o._text=e,o._rawText=e,o}return Zg(e,t),Object.defineProperty(e.prototype,"text",{get:function(){return this._text},set:function(t){this._text=t,this._textBlock&&this._textBlock.setTextDataDirty()},enumerable:!1,configurable:!0}),e.prototype.replaceText=function(t,e,n){this._rawText=this._text.slice(0,t)+n+this._text.slice(e,this._text.length-1),this._text=this._rawText,this._textBlock&&this._textBlock.setTextDataDirty()},e.forceNativeConstructor=!0,e.forceNativeMethods=!0,e}(NN),sL=function(t){function e(){return t.call(this)||this}return Zg(e,t),e.forceNativeConstructor=!0,e.forceNativeMethods=!0,e.VALID="valid",e.POSSIBLY_INVALID="possiblyInvalid",e.INVALID="invalid",e.STATIC="static",e}(B_),uL=function(t){function e(e,n,i,r,o,a,s,u,l,c){var h=t.call(this)||this,p=new fl;return h.adaptee=p,h._previousLine=e,e&&e.setNextLine(h),h._width=n,h._textWidth=0,h._textHeight=0,h._lineOffset=i,h._fitSomething=r,h._rawText=o||"",h._textFormatsIndices=s,h._textFormats=a,h._textLength=l,h._textBlockBeginIndex=u,h._specifiedWidth=h._width,h._textfield=new Qp,h.initTextline(c),h}return Zg(e,t),e.prototype.initTextline=function(t){this._ascent=0,this._descent=Number.POSITIVE_INFINITY,this._textfield.multiline=!1,this._textfield.border=!1,this._textfield.wordWrap=!1;var e=this._textFormats[0],n=t[0].getBaseline();if(this.adaptee.addChild(this._textfield),""!==this._rawText){this._textfield.autoSize=Hl.LEFT,this._textfield.text=this._rawText;for(var i=0,r=0;r<this._textFormatsIndices.length;r++){var o=this._textFormats[r];n!=t[r].getBaseline()&&console.warn("[TextLine] - one Textline with different alignmentBaseline");var a=this._textFormatsIndices[r],s=o.font_table.ascent,u=o.font_table.descent;s=s/(l=o.font_table.get_font_em_size())*o.size,u=u/l*o.size,this._ascent<s&&(this._ascent=s),this._descent>u&&(this._descent=u),!this._textfield||this._textfield.setTextFormat(o,i,a),i=a,this._textfield.height=this._ascent-this._descent}}else{this._textfield.autoSize=Hl.NONE,this._ascent=e.font_table.ascent,this._descent=e.font_table.descent;var l=e.font_table.get_font_em_size();this._ascent=this._ascent/l*e.size,this._descent=this._descent/l*e.size,this._textfield.width=10,this._textfield.height=this._ascent-this._descent}this._textWidth=this._textfield?this._textfield.textWidth+4:10,this._unjustifiedTextWidth=this._textWidth,this._descent=Math.abs(this._descent),this._ascent+=1,n==UN.ROMAN?this._textfield.y=-this._ascent:n==UN.ASCENT?this._textfield.y=-(this._ascent-this._descent)-this._ascent-this._descent:(console.warn("[TextLine] - unsupported alignmentBaseline",n),this._textfield.y=-(this._ascent-this._descent)-this._ascent),this._textfield.x=0,this._ascent=this._ascent-this._descent,this._validity=sL.VALID},e.prototype.reUseTextLine=function(t,e,n,i,r,o,a,s,u,l){this.adaptee.x=0,this.adaptee.y=0,this._previousLine=t,t&&t.setNextLine(this),this._width=e,this._textWidth=0,this._textHeight=0,this._lineOffset=n,this._fitSomething=i,this._rawText=r||"",this._textFormatsIndices=a,this._textFormats=o,this._textLength=u,this._textBlockBeginIndex=s,this._specifiedWidth=this._width,this._textfield.reset(),this._textfield.text="",this.initTextline(l)},e.prototype.getBaselinePosition=function(t){switch(t){case UN.ROMAN:return-(this._ascent+this._descent);case UN.ASCENT:return-this._ascent}return 0},e.prototype.setNextLine=function(t){this._nextLine=t},e.prototype.setPreviousLine=function(t){this._previousLine=t},e.prototype.setTextBlock=function(t){this._textBlock=t},e.prototype.getMirrorRegion=function(t){return null},e.prototype.flushAtomData=function(){},Object.defineProperty(e.prototype,"textBlock",{get:function(){return this._textBlock},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasGraphicElement",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasTabs",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextLine",{get:function(){return this._nextLine},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousLine",{get:function(){return this._previousLine},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ascent",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"descent",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textHeight",{get:function(){return this._ascent+this._descent},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textWidth",{get:function(){return this._textWidth},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"totalAscent",{get:function(){return this._ascent},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"totalDescent",{get:function(){return this._descent},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"totalHeight",{get:function(){return this._ascent+this._descent},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textBlockBeginIndex",{get:function(){return this._textBlockBeginIndex},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rawTextLength",{get:function(){return this._textLength},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"specifiedWidth",{get:function(){return this._specifiedWidth},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"unjustifiedTextWidth",{get:function(){return this._unjustifiedTextWidth},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"validity",{get:function(){return this._validity},set:function(t){this._validity=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"atomCount",{get:function(){return this._textLength},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mirrorRegions",{get:function(){return this._mirrorRegions},enumerable:!1,configurable:!0}),e.prototype.getAtomIndexAtPoint=function(t,e){return Tt.throwPIR("playerglobals/text/engine/TextLine","getAtomIndexAtPoint",""),null},e.prototype.getAtomIndexAtCharIndex=function(t){return Tt.throwPIR("playerglobals/text/engine/TextLine","getAtomIndexAtCharIndex",""),t},e.prototype.getAtomBounds=function(t){var e=this._textfield.getCharBoundaries(t);return this.sec.flash.geom.Rectangle(e.x,e.y,e.width,this._ascent+this.descent)},e.prototype.getAtomBidiLevel=function(t){return Tt.throwPIR("playerglobals/text/engine/TextLine","getAtomBidiLevel",""),null},e.prototype.getAtomTextRotation=function(t){return Tt.throwPIR("playerglobals/text/engine/TextLine","getAtomTextRotation",""),null},e.prototype.getAtomTextBlockBeginIndex=function(t){return Tt.throwPIR("playerglobals/text/engine/TextLine","getAtomTextBlockBeginIndex",""),null},e.prototype.getAtomTextBlockEndIndex=function(t){return Tt.throwPIR("playerglobals/text/engine/TextLine","getAtomTextBlockEndIndex",""),null},e.prototype.getAtomCenter=function(t){return Tt.throwPIR("playerglobals/text/engine/TextLine","getAtomCenter",""),null},e.prototype.getAtomWordBoundaryOnLeft=function(t){return Tt.throwPIR("playerglobals/text/engine/TextLine","getAtomWordBoundaryOnLeft",""),null},e.prototype.getAtomGraphic=function(t){return Tt.throwPIR("playerglobals/text/engine/TextLine","getAtomGraphic",""),null},e.prototype.dump=function(){return Tt.throwPIR("playerglobals/text/engine/TextLine","dump",""),null},e.forceNativeConstructor=!0,e.forceNativeMethods=!0,e.MAX_LINE_WIDTH=1e6,e}(dM),lL=function(t){function e(){return t.call(this)||this}return Zg(e,t),Object.defineProperty(e.prototype,"textLine",{get:function(){return Tt.throwPIR("playerglobals/text/engine/TextLineMirrorRegion","get textLine",""),null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextRegion",{get:function(){return Tt.throwPIR("playerglobals/text/engine/TextLineMirrorRegion","get nextRegion",""),null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousRegion",{get:function(){return Tt.throwPIR("playerglobals/text/engine/TextLineMirrorRegion","get previousRegion",""),null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mirror",{get:function(){return Tt.throwPIR("playerglobals/text/engine/TextLineMirrorRegion","get mirror",""),null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return Tt.throwPIR("playerglobals/text/engine/TextLineMirrorRegion","get element",""),null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bounds",{get:function(){return Tt.throwPIR("playerglobals/text/engine/TextLineMirrorRegion","get textLine",""),null},enumerable:!1,configurable:!0}),e.forceNativeConstructor=!0,e.forceNativeMethods=!0,e}(B_),cL=function(t){function e(){return t.call(this)||this}return Zg(e,t),e.forceNativeConstructor=!0,e.forceNativeMethods=!0,e.ROTATE_0="rotate0",e.ROTATE_90="rotate90",e.ROTATE_180="rotate180",e.ROTATE_270="rotate270",e.AUTO="auto",e}(B_),hL=function(t){function e(){return t.call(this)||this}return Zg(e,t),e.forceNativeConstructor=!0,e.forceNativeMethods=!0,e.DEFAULT="default",e.TITLE="title",e.CAPS="caps",e.SMALL_CAPS="smallCaps",e.UPPERCASE="uppercase",e.LOWERCASE="lowercase",e.CAPS_AND_SMALL_CAPS="capsAndSmallCaps",e}(B_),pL=function(t){function e(){return t.call(this)||this}return Zg(e,t),Object.defineProperty(e,"capsLock",{get:function(){return Tt.throwPIR("playerglobals/ui/Keyboard","static get capsLock",""),!1},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numLock",{get:function(){return Tt.throwPIR("playerglobals/ui/Keyboard","static get numLock",""),!1},enumerable:!1,configurable:!0}),Object.defineProperty(e,"hasVirtualKeyboard",{get:function(){return Tt.throwPIR("playerglobals/ui/Keyboard","static get hasVirtualKeyboard",""),!1},enumerable:!1,configurable:!0}),Object.defineProperty(e,"physicalKeyboardType",{get:function(){return Tt.throwPIR("playerglobals/ui/Keyboard","static get physicalKeyboardType",""),""},enumerable:!1,configurable:!0}),e.isAccessible=function(){return Tt.throwPIR("playerglobals/ui/Keyboard","static isAccessiblek",""),!0},e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e}(B_),dL=function(t){function e(){var e=t.call(this)||this;return e._builtInItems=new e.sec.flash.ui.ContextMenuBuiltInItems,e._customItems=[],e._clipboardItems=e.sec.flash.ui.ContextMenuClipboardItems(),e}return Zg(e,t),Object.defineProperty(e,"isSupported",{get:function(){return Tt.throwPIR("playerglobals/ui/ContextMenu","isSupported",""),!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"builtInItems",{get:function(){return Tt.throwPIR("playerglobals/ui/ContextMenu","get builtInItems",""),this._builtInItems},set:function(t){Tt.throwPIR("playerglobals/ui/ContextMenu","set builtInItems",""),this._builtInItems=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"customItems",{get:function(){return Tt.throwPIR("playerglobals/ui/ContextMenu","get customItems",""),this.sec.createArrayUnsafe(this._customItems)},set:function(t){Tt.throwPIR("playerglobals/ui/ContextMenu","set customItems",""),this._customItems=t.value},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"link",{get:function(){return Tt.throwPIR("playerglobals/ui/ContextMenu","get link",""),this._link},set:function(t){Tt.throwPIR("playerglobals/ui/ContextMenu","set link",""),this._link=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clipboardMenu",{get:function(){return Tt.throwPIR("playerglobals/ui/ContextMenu","set clipboardMenu",""),this._clipboardMenu},set:function(t){t=!!t,Tt.throwPIR("playerglobals/ui/ContextMenu","set clipboardMenu",""),this._clipboardMenu=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clipboardItems",{get:function(){return Tt.throwPIR("playerglobals/ui/ContextMenu","get clipboardItems",""),this._clipboardItems},set:function(t){Tt.throwPIR("playerglobals/ui/ContextMenu","set clipboardItems",""),this._clipboardItems=t},enumerable:!1,configurable:!0}),e.prototype.hideBuiltInItems=function(){var t=this.builtInItems;t&&(t.save=!1,t.zoom=!1,t.quality=!1,t.play=!1,t.loop=!1,t.rewind=!1,t.forwardAndBack=!1,t.print=!1)},e.prototype.clone=function(){var t=new this.sec.flash.ui.ContextMenu;t._builtInItems=this._builtInItems.clone(),this.cloneLinkAndClipboardProperties(t);for(var e=this._customItems,n=0;n<e.length;n++)t._customItems.push(e[n].clone());return t},e.prototype.cloneLinkAndClipboardProperties=function(t){Tt.throwPIR("playerglobals/ui/ContextMenu","cloneLinkAndClipboardProperties","")},e.classInitializer=null,e}(function(t){function e(){return t.call(this)||this}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e}(GO)),fL=function(t){function e(e,n,i,r){void 0===n&&(n=!1),void 0===i&&(i=!0),void 0===r&&(r=!0);var o=t.call(this)||this;return e=a_(e),n=!!n,i=!!i,r=!!r,o._caption=e||"",o._separatorBefore=n,o._enabled=i,o._visible=r,o}return Zg(e,t),Object.defineProperty(e.prototype,"caption",{get:function(){return this._caption},set:function(t){t=a_(t),this._caption=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"separatorBefore",{get:function(){return this._separatorBefore},set:function(t){t=!!t,this._separatorBefore=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"visible",{get:function(){return this._visible},set:function(t){t=!!t,this._visible=t},enumerable:!1,configurable:!0}),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e}(kM),gL=function(t){function e(){var e=t.call(this)||this;return e._save=!0,e._zoom=!0,e._quality=!0,e._play=!0,e._loop=!0,e._rewind=!0,e._forwardAndBack=!0,e._print=!0,e}return Zg(e,t),Object.defineProperty(e.prototype,"save",{get:function(){return this._save},set:function(t){this._save=!!t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"zoom",{get:function(){return this._zoom},set:function(t){this._zoom=!!t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"quality",{get:function(){return this._quality},set:function(t){this._quality=!!t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"play",{get:function(){return this._play},set:function(t){this._play=!!t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"loop",{get:function(){return this._loop},set:function(t){this._loop=!!t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rewind",{get:function(){return this._rewind},set:function(t){this._rewind=!!t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"forwardAndBack",{get:function(){return this._forwardAndBack},set:function(t){this._forwardAndBack=!!t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"print",{get:function(){return this._print},set:function(t){this._print=!!t},enumerable:!1,configurable:!0}),e.prototype.clone=function(){var t=new e;return t._save=this._save,t._zoom=this._zoom,t._quality=this._quality,t._play=this._play,t._loop=this._loop,t._rewind=this._rewind,t._forwardAndBack=this._forwardAndBack,t._print=this._print,t},e.classInitializer=null,e}(B_),_L=function(t){function e(){var e=t.call(this)||this;return e._cut=!0,e._copy=!0,e._paste=!0,e._clear=!0,e._selectAll=!0,e}return Zg(e,t),Object.defineProperty(e.prototype,"cut",{get:function(){return Tt.throwPIR("playerglobals/ui/ContextMenuClipboardItems","get cut",""),this._cut},set:function(t){Tt.throwPIR("playerglobals/ui/ContextMenuClipboardItems","set cut",""),this._cut=!!t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"copy",{get:function(){return Tt.throwPIR("playerglobals/ui/ContextMenuClipboardItems","get copy",""),this._copy},set:function(t){Tt.throwPIR("playerglobals/ui/ContextMenuClipboardItems","set copy",""),this._copy=!!t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"paste",{get:function(){return Tt.throwPIR("playerglobals/ui/ContextMenuClipboardItems","get paste",""),this._paste},set:function(t){Tt.throwPIR("playerglobals/ui/ContextMenuClipboardItems","set paste",""),this._paste=!!t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clear",{get:function(){return Tt.throwPIR("playerglobals/ui/ContextMenuClipboardItems","get clear",""),this._clear},set:function(t){Tt.throwPIR("playerglobals/ui/ContextMenuClipboardItems","set clear",""),this._clear=!!t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selectAll",{get:function(){return Tt.throwPIR("playerglobals/ui/ContextMenuClipboardItems","get selectAll",""),this._selectAll},set:function(t){Tt.throwPIR("playerglobals/ui/ContextMenuClipboardItems","set selectAll",""),this._selectAll=!!t},enumerable:!1,configurable:!0}),e.prototype.clone=function(){var t=new e;return t._cut=this._cut,t._copy=this._copy,t._paste=this._paste,t._clear=this._clear,t._selectAll=this._selectAll,t},e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e}(B_),mL=function(t){function e(){return t.call(this,void 0)||this}return Zg(e,t),Object.defineProperty(e,"numDevices",{get:function(){return Tt.throwPIR("playerglobals/ui/GameInput","static get numDevices",""),0},enumerable:!1,configurable:!0}),Object.defineProperty(e,"isSupported",{get:function(){return Tt.throwPIR("playerglobals/ui/GameInput","static get isSupported",""),!1},enumerable:!1,configurable:!0}),e.getDeviceAt=function(t){return Tt.throwPIR("playerglobals/ui/GameInput","static getDeviceAt",""),this.sec.throwError("RangeError",w_.ParamRangeError,"index"),null},e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e}(GO),yL=function(t){function e(){return t.call(this)||this}return Zg(e,t),Object.defineProperty(e.prototype,"numValues",{get:function(){return Tt.throwPIR("playerglobals/ui/GameInputControl","get numValues",""),0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"index",{get:function(){return Tt.throwPIR("playerglobals/ui/GameInputControl","get index",""),0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"relative",{get:function(){return Tt.throwPIR("playerglobals/ui/GameInputControl","get relative",""),!0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return Tt.throwPIR("playerglobals/ui/GameInputControl","get type",""),""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hand",{get:function(){return Tt.throwPIR("playerglobals/ui/GameInputControl","get hand",""),""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"finger",{get:function(){return Tt.throwPIR("playerglobals/ui/GameInputControl","get finger",""),""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"device",{get:function(){return Tt.throwPIR("playerglobals/ui/GameInputControl","get device",""),null},enumerable:!1,configurable:!0}),e.prototype.getValueAt=function(t){return Tt.throwPIR("playerglobals/ui/GameInputControl","getValueAt",""),0},e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e}(GO),AL=function(t){function e(){return t.call(this)||this}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.MOVEMENT="movement",e.ROTATION="rotation",e.DIRECTION="direction",e.ACCELERATION="acceleration",e.BUTTON="button",e.TRIGGER="trigger",e}(B_),vL=function(t){function e(){return t.call(this)||this}return Zg(e,t),Object.defineProperty(e.prototype,"numControls",{get:function(){return Tt.throwPIR("playerglobals/ui/GameInputDevice","get numControls",""),0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sampleInterval",{get:function(){Tt.throwPIR("playerglobals/ui/GameInputDevice","get sampleInterval","")},set:function(t){Tt.throwPIR("playerglobals/ui/GameInputDevice","set sampleInterval","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return Tt.throwPIR("playerglobals/ui/GameInputDevice","get enabled",""),!0},set:function(t){Tt.throwPIR("playerglobals/ui/GameInputDevice","set enabled","")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return Tt.throwPIR("playerglobals/ui/GameInputDevice","get name",""),""},enumerable:!1,configurable:!0}),e.prototype.getControlAt=function(t){return Tt.throwPIR("playerglobals/ui/GameInputDevice","getControlAt",""),null},e.prototype.startCachingSamples=function(t,e){Tt.throwPIR("playerglobals/ui/GameInputDevice","startCachingSamples","")},e.prototype.stopCachingSamples=function(){Tt.throwPIR("playerglobals/ui/GameInputDevice","stopCachingSamples","")},e.prototype.getCachedSamples=function(t,e){return Tt.throwPIR("playerglobals/ui/GameInputDevice","getCachedSamples",""),0},e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.MAX_BUFFER_SIZE=4800,e}(GO),bL=function(t){function e(){return t.call(this)||this}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.THUMB="thumb",e.INDEX="index",e.MIDDLE="middle",e.UNKNOWN="unknown",e}(B_),CL=function(t){function e(){return t.call(this)||this}return Zg(e,t),e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.RIGHT="right",e.LEFT="left",e.UNKNOWN="unknown",e}(B_),xL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zg(e,t),Object.defineProperty(e,"cursor",{get:function(){return e._cursor},set:function(t){e._cursor=t},enumerable:!1,configurable:!0}),Object.defineProperty(e,"supportsCursor",{get:function(){return Tt.throwPIR("playerglobals/ui/Mouse","static get supportsCursor",""),!0},enumerable:!1,configurable:!0}),Object.defineProperty(e,"supportsNativeCursor",{get:function(){return Tt.throwPIR("playerglobals/ui/Mouse","static get supportsNativeCursor",""),!0},enumerable:!1,configurable:!0}),e.hide=function(){this.sec.player.mouseManager.showCursor=!1},e.show=function(){this.sec.player.mouseManager.showCursor=!0},e.registerCursor=function(t,e){Tt.throwPIR("playerglobals/ui/Mouse","static registerCursor","")},e.unregisterCursor=function(t){Tt.throwPIR("playerglobals/ui/Mouse","static unregisterCursor","")},e}(B_),IL=function(){function t(){}return t.GESTURE="gesture",t.NONE="none",t.TOUCH_POINT="touchPoint",t}(),EL=function(){function t(){}return Object.defineProperty(t,"inputMode",{get:function(){return Tt.throwPIR("playerglobals/ui/Multitouch","static get inputMode",""),""},set:function(t){Tt.throwPIR("playerglobals/ui/Multitouch","static set inputMode","")},enumerable:!1,configurable:!0}),Object.defineProperty(t,"mapTouchToMouse",{get:function(){return Tt.throwPIR("playerglobals/ui/Multitouch","static get mapTouchToMouse",""),!1},set:function(t){Tt.throwPIR("playerglobals/ui/Multitouch","static set mapTouchToMouse","")},enumerable:!1,configurable:!0}),Object.defineProperty(t,"maxTouchPoints",{get:function(){return Tt.throwPIR("playerglobals/ui/Multitouch","static get maxTouchPoints",""),0},enumerable:!1,configurable:!0}),Object.defineProperty(t,"supportedGestures",{get:function(){return Tt.throwPIR("playerglobals/ui/Multitouch","static get supportedGestures",""),[]},enumerable:!1,configurable:!0}),Object.defineProperty(t,"supportsGestureEvents",{get:function(){return Tt.throwPIR("playerglobals/ui/Multitouch","static get supportsGestureEvents",""),!1},enumerable:!1,configurable:!0}),Object.defineProperty(t,"supportsTouchEvents",{get:function(){return Tt.throwPIR("playerglobals/ui/Multitouch","static get supportsTouchEvents",""),!1},enumerable:!1,configurable:!0}),t}(),wL=function(t){function e(e,n){var i=t.call(this)||this;return i._delay=+e,i._repeatCount=0|n,i._iteration=0,i}return Zg(e,t),Object.defineProperty(e.prototype,"running",{get:function(){return this._running},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"delay",{get:function(){return this._delay},set:function(t){((t=+t)<0||!isFinite(t))&&this.sec.throwError("RangeError",w_.DelayRangeError),this._delay=t,this._running&&(this.stop(),this.start())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"repeatCount",{get:function(){return this._repeatCount},set:function(t){this._repeatCount=0|t,this._repeatCount&&this._running&&this._iteration>=this._repeatCount&&this.stop()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentCount",{get:function(){return this._iteration},enumerable:!1,configurable:!0}),e.prototype.reset=function(){this._running&&this.stop(),this._iteration=0},e.prototype.stop=function(){this._running=!1,window.clearInterval(this._interval)},e.prototype.start=function(){this._running||(this._running=!0,this._interval=window.setInterval(this._tick.bind(this),this._delay))},e.prototype._tick=function(){if(this._iteration++,this._running){if(e.dispatchingEnabled)try{this.dispatchEvent(new this.sec.flash.events.TimerEvent("timer",!0,!1))}catch(t){}if(0!==this._repeatCount&&this._iteration>=this._repeatCount){this.stop();try{this.dispatchEvent(new this.sec.flash.events.TimerEvent(MB.TIMER_COMPLETE,!1,!1))}catch(t){}}}},e.classInitializer=null,e.classSymbols=null,e.instanceSymbols=null,e.dispatchingEnabled=!0,e}(GO),SL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zg(e,t),e.$BgDEFLATE="deflate",e.$BgLZMA="lzma",e.$BgZLIB="zlib",e}(B_),DL=function(t){function e(e,n,i,r){void 0===e&&(e=null),void 0===n&&(n=null),void 0===i&&(i=null),void 0===r&&(r="rotate0");var o=t.call(this,n,i,r)||this;return o._elements=e?e._buffer:[],o}return Zg(e,t),e.prototype.setTextBlock=function(e){t.prototype.setTextBlock.call(this,e);for(var n=0;n<this._elements.length;n++)this._elements[n].setTextBlock(e),this._elements[n].setGroupElement(this)},Object.defineProperty(e.prototype,"elementCount",{get:function(){return this._elements.length},enumerable:!1,configurable:!0}),e.prototype.getElementAt=function(t){return this._elements[t]},e.prototype.setElements=function(t){this._elements=t._buffer;for(var e=0;e<this._elements.length;e++)this._elements[e].setTextBlock(this._textBlock),this._elements[e].setGroupElement(this);this._textBlock&&this._textBlock.setTextDataDirty()},e.prototype.groupElements=function(t,e){return Tt.throwPIR("playerglobals/text/engine/GroupElement","groupElements",""),null},e.prototype.ungroupElements=function(t){Tt.throwPIR("playerglobals/text/engine/GroupElement","ungroupElements","")},e.prototype.mergeTextElements=function(t,e){return Tt.throwPIR("playerglobals/text/engine/GroupElement","mergeTextElements",""),null},e.prototype.splitTextElement=function(t,e){return Tt.throwPIR("playerglobals/text/engine/GroupElement","groupElements",""),null},e.prototype.replaceElements=function(t,e,n){var i=0;e-t>n._buffer.length&&console.warn("[GroupElement] - replaceElements error with range and vector size");for(var r=t;r<=e;r++)this._elements[r]=n._buffer[i++];for(r=0;r<this._elements.length;r++)this._elements[r].setTextBlock(this._textBlock),this._elements[r].setGroupElement(this);return this._textBlock&&this._textBlock.setTextDataDirty(),n},e.prototype.getElementAtCharIndex=function(t){return null},e.forceNativeConstructor=!0,e.forceNativeMethods=!0,e}(NN),TL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zg(e,t),e.createObjectWithPrototype=function(t){var e=t.sec.AXObject.axConstruct([]);for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},e.forceNativeConstructor=!1,e.forceNativeMethods=!0,e}(B_),PL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zg(e,t),e.prototype.checkNamespace=function(t){var e=t.$Bgnamespace();if(this._textFlowNamespace){if(e.uri!=this._textFlowNamespace.uri)return!1}else{if(e.uri!=this.$Bgns.uri)return!1;this._textFlowNamespace=e}return!0},e.forceNativeConstructor=!1,e.forceNativeMethods=!0,e}(B_);function OL(t,e){YD(t,e)}!function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Zg(e,t),Object.defineProperty(e.prototype,"text",{set:function(t){console.log("set text native",t)},enumerable:!1,configurable:!0}),e.forceNativeConstructor=!1,e.forceNativeMethods=!0}(B_);var ML=function(){},BL=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.flash={display:{EventDispatcher:GO,DisplayObject:lM,DisplayObjectContainer:dM,Stage:OM,Loader:SM,LoaderInfo:PM,MovieClip:gM,Graphics:FM,Bitmap:_M,BitmapData:yM,SimpleButton:VM,Sprite:fM,Shape:jM,FrameLabel:RM},events:{EventDispatcher:GO,Event:kO,FocusEvent:hM,KeyboardEvent:cM,MouseEvent:QO,ProgressEvent:DM,IOErrorEvent:xM,TimerEvent:MB},external:{ExternalInterface:FB},filters:{BevelFilter:ZO,BitmapFilter:qO,BlurFilter:nM,ColorMatrixFilter:rM,ConvolutionFilter:iM,DisplacementMapFilter:UB,DropShadowFilter:WO,GlowFilter:JO,GradientBevelFilter:eM,GradientGlowFilter:tM},text:{TextField:mN,TextFormat:yN,TextSnapshot:TN,TextLineMetrics:DN},geom:{Point:ZM,Rectangle:tB,Matrix:WM,ColorTransform:KM,Transform:eB,Vector3D:nB,Matrix3D:$M},net:{URLRequest:BM,URLLoader:eN,URLVariables:MM,SharedObject:tN},system:{ApplicationDomain:EM,Capabilities:hN,LoaderContext:wM,Security:dN,fscommand:pN},ui:{ContextMenu:dL,ContextMenuItem:fL,ContextMenuBuiltInItems:gL,Mouse:ML},utils:{ByteArray:iD},media:{Sound:IM,SoundChannel:GB,SoundTransform:VB,SoundMixer:QB},xml:{XMLDocument:XMLDocument,XMLNode:jD}},e}return Zg(e,t),e}(aO);function NL(t,e){return fetch((n=t,i=n.indexOf("://"),r="/"===n[0]?"/":"",o=n.split(/[\\|/]/).filter(Boolean),i>-1&&(o[0]+="/"),r+o.join("/"))).then((function(t){if(!t.ok)throw"Ups: ".concat(t.statusText,"(").concat(t.status,")");return"json"===e?t.json():t.arrayBuffer()})).catch((function(e){throw new Error("Unable to load: "+t+": "+e)}));var n,i,r,o}var LL=function(){function t(){}return Object.defineProperty(t.prototype,"stage",{get:function(){return this._stage},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"content",{get:function(){return this._content},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){console.log("dispose PlayerGlobal"),EM.currentDomain=null,tN._sharedObjects={}},t.prototype.createSecurityDomain=function(e,n,i){var r=this;this._avmStage=e,this._avmStage.avmTestHandler&&(xO.print=function(t,n){var i,r,o="";if(2==arguments.length)o=null===(i=arguments[1])||void 0===i?void 0:i.toString();else for(var a=1;a<arguments.length;a++)o+=null===(r=arguments[a])||void 0===r?void 0:r.toString(),a!==arguments.length-1&&(o+=" ");var s=o.split("\n");for(a=0;a<s.length;a++)console.log("%c Test-Trace from SWF:","color: DodgerBlue",s[a]),e.avmTestHandler.addMessage(s[a])}),OL("flashx.textLayout.conversion.BaseTextLayoutImporter",PL),OL("flashx.textLayout.property.Property",TL),OL("flash.desktop.Clipboard",NM),OL("flash.desktop.ClipboardFormats",LM),OL("flash.display.Bitmap",_M),OL("flash.display.BitmapData",yM),OL("flash.display.BlendMode",rn),OL("flash.display.DisplayObject",lM),OL("flash.display.DisplayObjectContainer",dM),OL("flash.display.FrameLabel",RM),OL("flash.display.Graphics",FM),OL("flash.display.InteractiveObject",pM),OL("flash.display.Loader",SM),OL("flash.display.LoaderInfo",PM),OL("flash.display.MovieClip",gM),OL("flash.display.NativeMenuItem",kM),OL("flash.display.Scene",UM),OL("flash.display.Shape",jM),OL("flash.display.SimpleButton",VM),OL("flash.display.Sprite",fM),OL("flash.display.Stage",OM),OL("flash.errors.EOFError",GM),OL("flash.errors.IllegalOperationError",zM),OL("flash.errors.InvalidSWFError",HM),OL("flash.errors.IOError",QM),OL("flash.errors.MemoryError",XM),OL("flash.errors.ScriptTimeoutError",YM),OL("flash.errors.StackOverflowError",qM),OL("flash.events.AccelerometerEvent",oB),OL("flash.events.ActivityEvent",aB),OL("flash.events.AsyncErrorEvent",sB),OL("flash.events.ContextMenuEvent",uB),OL("flash.events.DataEvent",lB),OL("flash.events.ErrorEvent",CM),OL("flash.events.Event",kO),OL("flash.events.EventDispatcher",GO),OL("flash.events.EventPhase",cB),OL("flash.events.FocusEvent",hM),OL("flash.events.FullScreenEvent",hB),OL("flash.events.GameInputEvent",pB),OL("flash.events.GeolocationEvent",dB),OL("flash.events.GestureEvent",fB),OL("flash.events.GesturePhase",gB),OL("flash.events.HTTPStatusEvent",_B),OL("flash.events.IMEEvent",mB),OL("flash.events.IOErrorEvent",xM),OL("flash.events.KeyboardEvent",cM),OL("flash.events.MouseEvent",QO),OL("flash.events.NetDataEvent",yB),OL("flash.events.NetStatusEvent",AB),OL("flash.events.OutputProgressEvent",vB),OL("flash.events.PressAndTabGestureEvent",bB),OL("flash.events.ProgressEvent",DM),OL("flash.events.SampleDataEvent",CB),OL("flash.events.ShaderEvent",xB),OL("flash.events.SoftKeyboardEvent",IB),OL("flash.events.SoftKeyboardTrigger",EB),OL("flash.events.StageVideoAvailabilityEvent",wB),OL("flash.events.StageVideoEvent",SB),OL("flash.events.StatusEvent",DB),OL("flash.events.SyncEvent",TB),OL("flash.events.TextEvent",bM),OL("flash.events.ThrottleEvent",PB),OL("flash.events.ThrottleType",OB),OL("flash.events.TimerEvent",MB),OL("flash.events.TouchEvent",BB),OL("flash.events.TransformGestureEvent",NB),OL("flash.events.UncaughtErrorEvent",LB),OL("flash.events.UncaughtErrorEvents",vM),OL("flash.events.VideoEvent",RB),OL("flash.external.ExternalInterface",FB),OL("flash.filters.BevelFilter",ZO),OL("flash.filters.BitmapFilter",qO),OL("flash.filters.BlurFilter",nM),OL("flash.filters.ColorMatrixFilter",rM),OL("flash.filters.ConvolutionFilter",iM),OL("flash.filters.DisplacementMapFilter",UB),OL("flash.filters.DropShadowFilter",WO),OL("flash.filters.GlowFilter",JO),OL("flash.filters.GradientBevelFilter",eM),OL("flash.filters.GradientGlowFilter",tM),OL("flash.geom.ColorTransform",KM),OL("flash.geom.Matrix",WM),OL("flash.geom.Matrix3D",$M),OL("flash.geom.Point",ZM),OL("flash.geom.Rectangle",tB),OL("flash.geom.Transform",eB),OL("flash.geom.Vector3D",nB),OL("flash.globalization.LocaleID",rB),OL("flash.globalization.NumberFormatter",jB),OL("flash.media.Sound",IM),OL("flash.media.SoundChannel",GB),OL("flash.media.SoundMixer",QB),OL("flash.media.SoundTransform",VB),OL("flash.net.FileFilter",zB),OL("flash.net.FileReference",qB),OL("flash.net.LocalConnection",rN),OL("flash.net.SharedObject",tN),OL("flash.net.URLLoader",eN),OL("flash.net.URLRequest",BM),OL("flash.net.URLVariables",MM),OL("flash.system.ApplicationDomain",EM),OL("flash.system.Capabilities",hN),OL("flash.system.LoaderContext",wM),OL("flash.system.Security",dN),OL("flash.system.SecurityDomain",oN),OL("flash.system.System",fN),OL("flash.text.CSMSettings",SN),OL("flash.text.Font",gN),OL("flash.text.FontType",wN),OL("flash.text.StaticText",vN),OL("flash.text.StyleSheet",_N),OL("flash.text.TextColorType",EN),OL("flash.text.TextDisplayMode",IN),OL("flash.text.TextField",mN),OL("flash.text.TextFormat",yN),OL("flash.text.TextLineMetrics",DN),OL("flash.text.TextRenderer",bN),OL("flash.text.TextSnapshot",TN),OL("flash.text.TextFormatDisplay",CN),OL("flash.text.TextExtent",xN),OL("flash.text.TextRun",AN),OL("flash.text.engine.BreakOpportunity",ON),OL("flash.text.engine.CFFHinting",MN),OL("flash.text.engine.ContentElement",NN),OL("flash.text.engine.DigitCase",LN),OL("flash.text.engine.DigitWidth",RN),OL("flash.text.engine.EastAsianJustifier",kN),OL("flash.text.engine.ElementFormat",VN),OL("flash.text.engine.FontDescription",QN),OL("flash.text.engine.FontLookup",GN),OL("flash.text.engine.FontMetrics",zN),OL("flash.text.engine.FontMetrics",zN),OL("flash.text.engine.FontPosture",HN),OL("flash.text.engine.FontWeight",XN),OL("flash.text.engine.GraphicElement",YN),OL("flash.text.engine.GroupElement",DL),OL("flash.text.engine.JustificationStyle",qN),OL("flash.text.engine.Kerning",KN),OL("flash.text.engine.LigatureLevel",WN),OL("flash.text.engine.LineJustification",JN),OL("flash.text.engine.RenderingMode",$N),OL("flash.text.engine.SpaceJustifier",ZN),OL("flash.text.engine.TabAlignment",tL),OL("flash.text.engine.TabStop",eL),OL("flash.text.engine.TextBaseline",UN),OL("flash.text.engine.TextBlock",oL),OL("flash.text.engine.TextElement",aL),OL("flash.text.engine.TextJustifier",FN),OL("flash.text.engine.TextLine",uL),OL("flash.text.engine.TextLineCreationResult",nL),OL("flash.text.engine.TextLineMirrorRegion",lL),OL("flash.text.engine.TextLineValidity",sL),OL("flash.text.engine.TextRotation",cL),OL("flash.text.engine.TypographicCase",hL),OL("flash.text.ime.CompositionAttributeRange",PN),OL("flash.ui.ContextMenu",dL),OL("flash.ui.ContextMenuBuiltInItems",gL),OL("flash.ui.ContextMenuClipboardItems",_L),OL("flash.ui.ContextMenuItem",fL),OL("flash.ui.GameInput",mL),OL("flash.ui.GameInputControl",yL),OL("flash.ui.GameInputControlType",AL),OL("flash.ui.GameInputDevice",vL),OL("flash.ui.GameInputFinger",bL),OL("flash.ui.GameInputHand",CL),OL("flash.ui.Keyboard",pL),OL("flash.ui.Mouse",xL),OL("flash.ui.Multitouch",EL),OL("flash.ui.MultitouchInputMode",IL),OL("flash.utils.ByteArray",iD),OL("flash.utils.CompressionAlgorithm",SL),OL("flash.utils.Timer",wL),OL("flash.xml.XMLDocument",VD),OL("flash.xml.XMLNode",jD),qD("flash.system.fscommand",pN),FB.ensureInitialized();var o=t.builtinsBaseUrl,a=[NL("".concat(o,"/builtin.abc"),"arraybuffer")];return i&LO.Playerglobal&&a.push(NL("".concat(o,"/playerglobal.abcs"),"arraybuffer"),NL("".concat(o,"/playerglobal.json"),"json"),NL("".concat(o,"/avmplus.abc"),"arraybuffer")),Promise.all(a).then((function(t){var o=t[0],a=t[1],s=t[2],u=t[3],l=new BL,c=new NO({url:"builtin.abc",app:l.system},new Uint8Array(o));if(l.swfVersion=n.swfVersion,l.system.loadABC(c),l.initialize(),l.system.executeABC(c),l.player=e,!(i&LO.Playerglobal))return null;var h=new RO(l.system,new Uint8Array(a),s);l.addCatalog(h);var p=new NO({url:"avmplus.File",app:l.system},new Uint8Array(u));return l.system.loadAndExecuteABC(p),r._constructStage(l,n),new AM(l)}))},t.prototype._constructStage=function(t,e){this._contentLoaderInfo=new t.flash.display.LoaderInfo(this,this._avmStage.root),this._contentLoaderInfo.url=new URL(e.url,document.baseURI).href,this._applicationDomain=new t.flash.system.ApplicationDomain,this._contentLoaderInfo._setApplicationDomain(this._applicationDomain),iP.loaderContext=new t.flash.system.LoaderContext(!1,this._applicationDomain),this._stage=new t.flash.display.Stage,t.flash.display.DisplayObject.axClass._activeStage=this._stage,this._avmStage.root.adapter=this._stage,this._stage.adaptee=this._avmStage.root},t.prototype.enterFrame=function(){this._stage&&this._stage.enterFrame()},t.prototype.resizeStage=function(){this._stage&&this._stage.resizeCallback()},t.prototype.addAsset=function(t,e){switch(t.adapter.loaderInfo=this._contentLoaderInfo,t.assetType){case Qp.assetType:case Xp.assetType:case Ye.assetType:this._applicationDomain.addDefinition(t.name,t);break;case D.assetType:this._applicationDomain.addAudioDefinition(t.name,t);break;case rp.assetType:this._applicationDomain.addFontDefinition(t.name,t);break;case gl.assetType:this._applicationDomain.addDefinition(t.name,t);break;case Rl.assetType:this._applicationDomain.addDefinition(t.name,t),e&&t.isAVMScene&&(this._content=t.adapter.clone(),this._content.loaderInfo=this._contentLoaderInfo,this._content.adaptee.reset(),this._content.adaptee.firstFrameOnSWFStart=!0,Nl.invalidAS3Constructors=!0,this._stage.adaptee.addChild(this._content.adaptee),Nl.execute_as3_constructors_recursiv(this._content.adaptee),this._content.dispatchStaticEvent("added",this._content),this._content.dispatch_ADDED_TO_STAGE(!0));break;case"[asset Generic]":this._applicationDomain.addDefinition(t.name,t);break;case sl.assetType:case Al.assetType:break;default:console.warn("Loaded unhandled asset-type",t.assetType)}},t.builtinsBaseUrl="./assets/builtins/",t}();console.debug("AwayFL - PlayerGlobal - 0.2.381");var RL=function(t,e){return RL=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},RL(t,e)};function FL(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}RL(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var kL=function(){return kL=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},kL.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var UL=function(t,e,n,i,r){this.flags=t,this.value=e,this.get=n,this.set=i,this.watcher=r},jL=function(t){function e(e){var n=t.call(this)||this;n.initialDepth=0,n.scriptRefsToChilds={},n._isGhost=!1,n._avm1Context=e,n._ownProperties=Object.create(null),n.scriptRefsToChilds={},n._prototype=null,n._blockedByScript=!1,n._ctBlockedByScript=!1,n._visibilityByScript=!1;var i=n,r=new UL(131,null,{alCall:function(t,e){return i.alPrototype}},{alCall:function(t,e){i.alPrototype=e[0]}});return n.alSetOwnProperty("__proto__",r),n}return FL(e,t),Object.defineProperty(e.prototype,"isGhost",{get:function(){return this._isGhost},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"eventObserver",{get:function(){return this._eventObserver},set:function(t){this._eventObserver=t},enumerable:!1,configurable:!0}),e.prototype.makeGhost=function(){this.deleteOwnProperties(),this.alPut("__proto__",null),this._isGhost=!0},e.prototype.dispose=function(){},e.prototype.updateFilters=function(t){},e.prototype.isBlockedByScript=function(){return this._blockedByScript},e.prototype.isColorTransformByScript=function(){return this._ctBlockedByScript},e.prototype.isVisibilityByScript=function(){return this._visibilityByScript},e.prototype.initAdapter=function(){},e.prototype.freeFromScript=function(){this.protoTypeChanged=!1,this._blockedByScript=!1,this._ctBlockedByScript=!1,this._visibilityByScript=!1},e.prototype.clone=function(){return new e(this._avm1Context)},Object.defineProperty(e.prototype,"context",{get:function(){return this._avm1Context},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"alPrototype",{get:function(){return this._prototype},set:function(t){for(var e=t;e;){if(e===this)return;e=e.alPrototype}this._prototype=t},enumerable:!1,configurable:!0}),e.prototype.alGetPrototypeProperty=function(){return this.alGet("prototype")},e.prototype.alSetOwnPrototypeProperty=function(t){this.alSetOwnProperty("prototype",new UL(65,t))},e.prototype.alGetConstructorProperty=function(){return this.alGet("__constructor__")},e.prototype.alSetOwnConstructorProperty=function(t){this.alSetOwnProperty("__constructor__",new UL(65,t))},e.prototype._debugEscapeProperty=function(t){var e=this.context,n=xk(e,t);return e.isPropertyCaseSensitive||(n=n.toLowerCase()),"$Bg"+n},e.prototype.alGetOwnProperty=function(t){return this._isGhost?null:("string"!=typeof t||this.context.isPropertyCaseSensitive||(t=t.toLowerCase()),this._ownProperties[t])},e.prototype.alSetOwnProperty=function(t,e){if(!this._isGhost){var n=this.context.normalizeName(t);e.originalName||this.context.isPropertyCaseSensitive||(e.originalName=t),this._ownProperties[n]=e}},e.prototype.alHasOwnProperty=function(t){if(this._isGhost)return!1;var e=this.context.normalizeName(t);return!!this._ownProperties[e]},e.prototype.alDeleteOwnProperty=function(t){var e=this.context.normalizeName(t);delete this._ownProperties[e]},e.prototype.deleteOwnProperties=function(){for(var t=this.alGetOwnPropertiesKeys(),e=0;e<t.length;e++)this.alDeleteOwnProperty(t[e])},e.prototype.alGetOwnPropertiesKeys=function(){var t,e=[];if(this._isGhost)return e;if(this.context.isPropertyCaseSensitive)for(var n in this._ownProperties)1&(t=this._ownProperties[n]).flags||e.push(n);else for(var i in this._ownProperties)1&(t=this._ownProperties[i]).flags||e.push(t.originalName);return e},e.prototype.alGetProperty=function(t){if(this._isGhost)return null;var e=this.alGetOwnProperty(t);return e||(this._prototype?this._prototype.alGetProperty(t):void 0)},e.prototype.alGet=function(t){if(!this._isGhost){var e=this.context.normalizeName(t),n=this.alGetProperty(e);if(n){if(64&n.flags)return n.value;var i=n.get;return i?i.alCall(this):void 0}}},e.prototype.alCanPut=function(t){if(this._isGhost)return!1;var e=this.alGetOwnProperty(t);if(e)return 128&e.flags?!!e.set:!(4&e.flags);var n=this._prototype;return!n||n.alCanPut(t)},e.prototype.alPut=function(t,e){if(!this._isGhost){var n=t;if(t=this.context.normalizeName(t),e&&"object"==typeof e&&"symbol"===e.avmType&&"this"!=t&&"_parent"!=t&&!e.dynamicallyCreated&&e.adaptee&&e.adaptee.parent&&e.adaptee.parent.adapter&&e.adaptee.parent.adapter.scriptRefsToChilds&&(e.adaptee.parent.adapter.scriptRefsToChilds[e.adaptee.name]={obj:this,name:t}),this.alCanPut(t)){var i=this.alGetOwnProperty(t);if(i&&64&i.flags)return i.watcher&&(e=i.watcher.callback.alCall(this,[i.watcher.name,i.value,e,i.watcher.userData])),void(t in this._ownProperties?i.value=e:this.alSetOwnProperty(n,new UL(i.flags,e)));if(void 0!==e||"_x"!=t&&"_y"!=t&&"_xscale"!=t&&"_yscale"!=t&&"_width"!=t&&"_height"!=t){var r=this.alGetProperty(t);if(r&&128&r.flags){if(r.watcher){var o=r.get?r.get.alCall(this):void 0;e=r.watcher.callback.alCall(this,[r.watcher.name,o,e,r.watcher.userData])}r.set.alCall(this,[e])}else if(r&&r.watcher&&(e=r.watcher.callback.alCall(this,[r.watcher.name,r.value,e,r.watcher.userData])),e&&e.isTextVar){e=e.value,(a=new UL(r?r.flags:64,e)).isTextVar=!0,this.alSetOwnProperty(n,a)}else{var a=new UL(r?r.flags:64,e);this.alSetOwnProperty(n,a)}}}}},e.prototype.alHasProperty=function(t){return!this._isGhost&&!!this.alGetProperty(t)},e.prototype.alDeleteProperty=function(t){var e=this.alGetOwnProperty(t);return!e||!(2&e.flags)&&(this.alDeleteOwnProperty(t),!0)},e.prototype.alAddPropertyWatcher=function(t,e,n){if(this._isGhost)return!1;var i=this.alGetProperty(t);return!!i&&(i.watcher={name:t,callback:e,userData:n},!0)},e.prototype.alRemotePropertyWatcher=function(t){var e=this.alGetProperty(t);return!(!e||!e.watcher)&&(e.watcher=void 0,!0)},e.prototype.alDefaultValue=function(t){if(void 0===t&&(t=0),1===t){var e=this.alGet(this.context.normalizeName("toString"));if(Ok(e))return e.alCall(this);if(Ok(n=this.alGet(this.context.normalizeName("valueOf"))))return n.alCall(this)}else{var n;if(Ok(n=this.alGet(this.context.normalizeName("valueOf"))))return n.alCall(this);var i=this.alGet(this.context.normalizeName("toString"));if(Ok(i))return i.alCall(this)}return this},e.prototype.alGetKeys=function(){if(this._isGhost)return[];var t=this.alGetOwnPropertiesKeys(),e=this._prototype;if(!e)return t;var n=e.alGetKeys();if(0===t.length)return n;var i,r=this.context;if(r.isPropertyCaseSensitive){var o=Object.create(null),a=t.length;for(i=0;i<a;i++)o[t[i]]=!0;var s=n.length;for(i=0;i<s;i++)o[n[i]]=!0;return Object.getOwnPropertyNames(o)}var u=[t,n],l=Object.create(null),c=[],h=void 0,p=void 0,d=void 0;for(i=0;i<u.length;i++){h=u[i];for(var f=0;f<h.length;f++)p=h[f],l[d=r.normalizeName(p)]||(l[d]=!0,c.push(p))}return c},e}((function(){})),VL=function(t){function e(e){var n=t.call(this,e)||this;return n.alPrototype=e.builtins.Function.alGetPrototypeProperty(),n.isOnEnter=!1,n}return FL(e,t),e.prototype.alConstruct=function(t){throw new Error("not implemented AVM1Function.alConstruct")},e.prototype.alCall=function(t,e){throw new Error("not implemented AVM1Function.alCall")},e.prototype.toJSFunction=function(t){void 0===t&&(t=null);var e=this,n=this.context;return function(){var i=Array.prototype.slice.call(arguments,0);return n.executeFunction(e,t,i)}},e}(jL);function QL(t){if(!t)return new N(0,0);var e,n,i=t.context;return t instanceof jL&&(e=Dk(i,t.alGet("x")),n=Dk(i,t.alGet("y"))),new N(e,n)}function GL(t,e){e.alPut("x",t.x),e.alPut("y",t.y)}var zL=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.alPrototype=e.globals.Point.alGetPrototypeProperty(),r.alPut("x",n),r.alPut("y",i),r}return FL(e,t),e.fromAS3Point=function(t,n){return new e(t,n.x,n.y)},e}(jL),HL=function(t){function e(e){var n=t.call(this,e)||this;return Fk(n,{prototype:{value:new XL(e,n)},distance:{value:n.distance,writable:!0},interpolate:{value:n.interpolate,writable:!0},polar:{value:n.polar,writable:!0}}),n}return FL(e,t),e.prototype.alCall=function(t,e){return this.alConstruct(e)},e.prototype.alConstruct=function(t){return t&&t.length>0?new zL(this.context,t[0],t[1]):new zL(this.context,0,0)},e.prototype.distance=function(t,e){return N.distance(QL(t),QL(e))},e.prototype.interpolate=function(t,e,n){n=vk(this.context,n);var i=N.interpolate(QL(t),QL(e),n);return zL.fromAS3Point(this.context,i)},e.prototype.polar=function(t,e){return t=vk(this.context,t),e=vk(this.context,e),zL.fromAS3Point(this.context,N.polar(t,e))},e}(VL),XL=function(t){function e(e,n){var i=t.call(this,e)||this;return i.alPrototype=e.builtins.Object.alGetPrototypeProperty(),Fk(i,{constructor:{value:n,writable:!0},length:{get:i.getLength},add:{value:i.add,writable:!0},clone:{value:i.clone,writable:!0},equals:{value:i.equals,writable:!0},normalize:{value:i.normalize,writable:!0},offset:{value:i.offset,writable:!0},subtract:{value:i.subtract,writable:!0},toString:{value:i._toString,writable:!0}}),i}return FL(e,t),e.prototype.getLength=function(){return QL(this).length},e.prototype.add=function(t){return zL.fromAS3Point(this.context,QL(this).add(QL(t)))},e.prototype.clone=function(){var t=new zL(this.context);return this instanceof jL&&(t.alPut("x",this.alGet("x")),t.alPut("y",this.alGet("y"))),t},e.prototype.equals=function(t){return QL(this).equals(QL(t))},e.prototype.normalize=function(t){t=vk(this.context,t);var e=QL(this);e.normalize(t),GL(e,this)},e.prototype.offset=function(t,e){t=vk(this.context,t),e=vk(this.context,e);var n=QL(this);n.offset(t,e),GL(n,this)},e.prototype.subtract=function(t){return zL.fromAS3Point(this.context,QL(this).subtract(QL(t)))},e.prototype._toString=function(){return"(x="+this.alGet("x")+", y="+this.alGet("y")+")"},e}(jL);function YL(t){var e,n,i,r,o=t.context;return t instanceof jL&&(e=Dk(o,t.alGet("x")),n=Dk(o,t.alGet("y")),i=Dk(o,t.alGet("width")),r=Dk(o,t.alGet("height"))),new tt(e,n,i,r)}function qL(t,e){e.alPut("x",t.x),e.alPut("y",t.y),e.alPut("width",t.width),e.alPut("height",t.height)}var KL=function(t){function e(e,n,i,r,o){var a=t.call(this,e)||this;return a.alPrototype=e.globals.Rectangle.alGetPrototypeProperty(),a.alPut("x",n),a.alPut("y",i),a.alPut("width",r),a.alPut("height",o),a}return FL(e,t),e.fromAS3Rectangle=function(t,n){return new e(t,n.x,n.y,n.width,n.height)},e}(jL),WL=function(t){function e(e){var n=t.call(this,e)||this;return Fk(n,{prototype:{value:new JL(e,n)}}),n}return FL(e,t),e.prototype.alConstruct=function(t){return t&&t.length>0?new KL(this.context,t[0],t[1],t[2],t[3]):new KL(this.context,0,0,0,0)},e}(VL),JL=function(t){function e(e,n){var i=t.call(this,e)||this;return i.alPrototype=e.builtins.Object.alGetPrototypeProperty(),Fk(i,{constructor:{value:n,writable:!0},bottom:{get:i.getBottom,set:i.setBottom},bottomRight:{get:i.getBottomRight,set:i.setBottomRight},left:{get:i.getLeft,set:i.setLeft},right:{get:i.getRight,set:i.setRight},size:{get:i.getSize,set:i.setSize},top:{get:i.getTop,set:i.setTop},topLeft:{get:i.getTopLeft,set:i.setTopLeft},clone:{value:i.clone,writable:!0},contains:{value:i.contains,writable:!0},containsPoint:{value:i.containsPoint,writable:!0},containsRectangle:{value:i.containsRectangle,writable:!0},equals:{value:i.equals,writable:!0},inflate:{value:i.inflate,writable:!0},inflatePoint:{value:i.inflatePoint,writable:!0},intersection:{value:i.intersection,writable:!0},intersects:{value:i.intersects,writable:!0},isEmpty:{value:i.isEmpty,writable:!0},offset:{value:i.offset,writable:!0},offsetPoint:{value:i.offsetPoint,writable:!0},setEmpty:{value:i.setEmpty,writable:!0},toString:{value:i._toString,writable:!0},union:{value:i.union,writable:!0}}),i}return FL(e,t),e.prototype.getBottom=function(){return vk(this.context,this.alGet("y"))+vk(this.context,this.alGet("height"))},e.prototype.setBottom=function(t){this.alPut("height",vk(this.context,t)-vk(this.context,this.alGet("y")))},e.prototype.getBottomRight=function(){return new zL(this.context,e.prototype.getRight.call(this),e.prototype.getBottom.call(this))},e.prototype.setBottomRight=function(t){e.prototype.setRight.call(this,t.alGet("x")),e.prototype.setBottom.call(this,t.alGet("y"))},e.prototype.getLeft=function(){return vk(this.context,this.alGet("x"))},e.prototype.setLeft=function(t){this.alPut("x",vk(this.context,t))},e.prototype.getSize=function(){return new zL(this.context,this.alGet("width"),this.alGet("height"))},e.prototype.setSize=function(t){this.alPut("width",t.alGet("x")),this.alPut("height",t.alGet("y"))},e.prototype.getRight=function(){return vk(this.context,this.alGet("x"))+vk(this.context,this.alGet("width"))},e.prototype.setRight=function(t){this.alPut("width",vk(this.context,t)-vk(this.context,this.alGet("x")))},e.prototype.getTop=function(){return vk(this.context,this.alGet("y"))},e.prototype.setTop=function(t){this.alPut("y",vk(this.context,t))},e.prototype.getTopLeft=function(){return new zL(this.context,e.prototype.getLeft.call(this),e.prototype.getTop.call(this))},e.prototype.setTopLeft=function(t){e.prototype.setLeft.call(this,t.alGet("x")),e.prototype.setTop.call(this,t.alGet("y"))},e.prototype.clone=function(){var t=new KL(this.context);return this instanceof jL&&(t.alPut("x",this.alGet("x")),t.alPut("y",this.alGet("y")),t.alPut("width",this.alGet("width")),t.alPut("height",this.alGet("height"))),t},e.prototype.contains=function(t,e){return t=vk(this.context,t),e=vk(this.context,e),YL(this).contains(t,e)},e.prototype.containsPoint=function(t){var e=YL(this),n=QL(t);return e.containsPoint(n)},e.prototype.containsRectangle=function(t){var e=YL(this),n=YL(t);return e.containsRect(n)},e.prototype.equals=function(t){var e=YL(this),n=YL(t);return e.equals(n)},e.prototype.inflate=function(t,e){t=vk(this.context,t),e=vk(this.context,e);var n=YL(this);n.inflate(t,e),qL(n,this)},e.prototype.inflatePoint=function(t){var e=YL(this),n=QL(t);e.inflatePoint(n),qL(e,this)},e.prototype.intersection=function(t){var e=YL(this),n=YL(t);return KL.fromAS3Rectangle(this.context,e.intersection(n))},e.prototype.intersects=function(t){var e=YL(this),n=YL(t);return e.intersects(n)},e.prototype.isEmpty=function(){return YL(this).isEmpty()},e.prototype.offset=function(t,e){t=vk(this.context,t),e=vk(this.context,e);var n=YL(this);n.offset(t,e),qL(n,this)},e.prototype.offsetPoint=function(t){var e=YL(this),n=QL(t);e.offsetPoint(n),qL(e,this)},e.prototype.setEmpty=function(){this.alPut("x",0),this.alPut("y",0),this.alPut("width",0),this.alPut("height",0)},e.prototype._toString=function(){return"(x="+this.alGet("x")+", y="+this.alGet("y")+", w="+this.alGet("width")+", h="+this.alGet("height")+")"},e.prototype.union=function(t){var e=YL(this),n=YL(t);return KL.fromAS3Rectangle(this.context,e.union(n))},e}(jL);function $L(t,e){return void 0===t?e:t}function ZL(t){var e=t.context;return t instanceof tR?new O(Dk(e,$L(t._rawData[0],1)),Dk(e,$L(t._rawData[1],1)),Dk(e,$L(t._rawData[2],1)),Dk(e,$L(t._rawData[3],1)),Dk(e,$L(t._rawData[4],0)),Dk(e,$L(t._rawData[5],0)),Dk(e,$L(t._rawData[6],0)),Dk(e,$L(t._rawData[7],0))):new O(1,1,1,1,0,0,0,0)}var tR=function(t){function e(e,n,i,r,o,a,s,u,l){void 0===n&&(n=1),void 0===i&&(i=1),void 0===r&&(r=1),void 0===o&&(o=1),void 0===a&&(a=0),void 0===s&&(s=0),void 0===u&&(u=0),void 0===l&&(l=0);var c=t.call(this,e)||this;return c._rawData=[n,i,r,o,a,s,u,l],c.alPrototype=e.globals.ColorTransform.alGetPrototypeProperty(),Fk(c,{rgb:{get:c.getRgb,set:c.setRgb},ra:{get:c.getRM,set:c.setRM},ga:{get:c.getGM,set:c.setGM},ba:{get:c.getBM,set:c.setBM},aa:{get:c.getAM,set:c.setAM},rb:{get:c.getRO,set:c.setRO},gb:{get:c.getGO,set:c.setGO},bb:{get:c.getBO,set:c.setBO},ab:{get:c.getAO,set:c.setAO},redMultiplier:{get:c.getRedMultiplier,set:c.setRedMultiplier},greenMultiplier:{get:c.getGreenMultiplier,set:c.setGreenMultiplier},blueMultiplier:{get:c.getBlueMultiplier,set:c.setBlueMultiplier},alphaMultiplier:{get:c.getAlphaMultiplier,set:c.setAlphaMultiplier},redOffset:{get:c.getRedOffset,set:c.setRedOffset},greenOffset:{get:c.getGreenOffset,set:c.setGreenOffset},blueOffset:{get:c.getBlueOffset,set:c.setBlueOffset},alphaOffset:{get:c.getAlphaOffset,set:c.setAlphaOffset},concat:{value:c.concat,writable:!0},toString:{value:c._toString,writable:!0}}),c}return FL(e,t),e.prototype.getRedMultiplier=function(){return this._rawData[0]},e.prototype.setRedMultiplier=function(t){this._rawData[0]=t},e.prototype.getGreenMultiplier=function(){return this._rawData[1]},e.prototype.setGreenMultiplier=function(t){this._rawData[1]=t},e.prototype.getBlueMultiplier=function(){return this._rawData[2]},e.prototype.setBlueMultiplier=function(t){this._rawData[2]=t},e.prototype.getAlphaMultiplier=function(){return this._rawData[3]},e.prototype.setAlphaMultiplier=function(t){this._rawData[3]=t},e.prototype.getRedOffset=function(){return this._rawData[4]},e.prototype.setRedOffset=function(t){this._rawData[4]=t},e.prototype.getGreenOffset=function(){return this._rawData[5]},e.prototype.setGreenOffset=function(t){this._rawData[5]=t},e.prototype.getBlueOffset=function(){return this._rawData[6]},e.prototype.setBlueOffset=function(t){this._rawData[6]=t},e.prototype.getAlphaOffset=function(){return this._rawData[7]},e.prototype.setAlphaOffset=function(t){this._rawData[7]=t},e.prototype.getRM=function(){return 100*this._rawData[0]},e.prototype.setRM=function(t){this._rawData[0]=t/100},e.prototype.getGM=function(){return 100*this._rawData[1]},e.prototype.setGM=function(t){this._rawData[1]=t/100},e.prototype.getBM=function(){return 100*this._rawData[2]},e.prototype.setBM=function(t){this._rawData[2]=t/100},e.prototype.getAM=function(){return 100*this._rawData[3]},e.prototype.setAM=function(t){this._rawData[3]=t/100},e.prototype.getRO=function(){return this._rawData[4]},e.prototype.setRO=function(t){this._rawData[4]=t},e.prototype.getGO=function(){return this._rawData[5]},e.prototype.setGO=function(t){this._rawData[5]=t},e.prototype.getBO=function(){return this._rawData[6]},e.prototype.setBO=function(t){this._rawData[6]=t},e.prototype.getAO=function(){return this._rawData[7]},e.prototype.setAO=function(t){this._rawData[7]=t},e.prototype.getRgb=function(){return this._rawData[4]<<16|this._rawData[5]<<8|this._rawData[6]},e.prototype.setRgb=function(t){var e=P.float32ColorToARGB(t);this._rawData[4]=e[1],this._rawData[5]=e[2],this._rawData[6]=e[3],this._rawData[0]=0,this._rawData[1]=0,this._rawData[2]=0},e.prototype.concat=function(t){console.warn("AVM1ColorTransform concat is not implemented")},e.prototype._toString=function(){return"[object Object]"},e.fromAwayColorTransform=function(t,n){return new e(t,n.redMultiplier,n.greenMultiplier,n.blueMultiplier,n.alphaMultiplier,n.redOffset,n.greenOffset,n.blueOffset,n.alphaOffset)},e}(jL),eR=function(t){function e(e){var n=t.call(this,e)||this;return Fk(n,{prototype:{value:new nR(e,n)}}),n}return FL(e,t),e.prototype.alConstruct=function(t){var e=Object.create(tR.prototype);return t=t||[],tR.apply(e,[this.context].concat(t)),e},e}(VL),nR=function(t){function e(e,n){var i=t.call(this,e)||this;return i.alPrototype=e.builtins.Object.alGetPrototypeProperty(),Fk(i,{constructor:{value:n,writable:!0}}),i}return FL(e,t),e}(jL);function iR(t){var e,n,i,r,o,a,s=t.context;return t instanceof jL&&(e=Dk(s,t.alGet("a")),n=Dk(s,t.alGet("b")),i=Dk(s,t.alGet("c")),r=Dk(s,t.alGet("d")),o=Dk(s,t.alGet("tx")),a=Dk(s,t.alGet("ty"))),new L(e,n,i,r,o,a)}function rR(t,e){e.alPut("a",t.a),e.alPut("b",t.b),e.alPut("c",t.c),e.alPut("d",t.d),e.alPut("tx",t.tx),e.alPut("ty",t.ty)}var oR=function(t){function e(e,n,i,r,o,a,s){void 0===n&&(n=1),void 0===i&&(i=0),void 0===r&&(r=0),void 0===o&&(o=1),void 0===a&&(a=0),void 0===s&&(s=0);var u=t.call(this,e)||this;return u.alPrototype=e.globals.Matrix.alGetPrototypeProperty(),u.alPut("a",n),u.alPut("b",i),u.alPut("c",r),u.alPut("d",o),u.alPut("tx",a),u.alPut("ty",s),u}return FL(e,t),e.fromAS3Matrix=function(t,n){return new e(t,n.a,n.b,n.c,n.d,n.tx,n.ty)},e}(jL),aR=function(t){function e(e){var n=t.call(this,e)||this;return Fk(n,{prototype:{value:new sR(e,n)}}),n}return FL(e,t),e.prototype.alConstruct=function(t){return t&&t.length>0?new oR(this.context,t[0],t[1],t[2],t[3],t[4],t[5]):new oR(this.context)},e}(VL),sR=function(t){function e(e,n){var i=t.call(this,e)||this;return i.alPrototype=e.builtins.Object.alGetPrototypeProperty(),Fk(i,{constructor:{value:n,writable:!0},clone:{value:i.clone,writable:!0},concat:{value:i.concat,writable:!0},createBox:{value:i.createBox,writable:!0},createGradientBox:{value:i.createGradientBox,writable:!0},deltaTransformPoint:{value:i.deltaTransformPoint,writable:!0},identity:{value:i.identity,writable:!0},invert:{value:i.invert,writable:!0},rotate:{value:i.rotate,writable:!0},scale:{value:i.scale,writable:!0},toString:{value:i._toString,writable:!0},transformPoint:{value:i.transformPoint,writable:!0},translate:{value:i.translate,writable:!0}}),i}return FL(e,t),e.prototype.clone=function(){var t=new oR(this.context);return this instanceof jL&&(t.alPut("a",this.alGet("a")),t.alPut("b",this.alGet("b")),t.alPut("c",this.alGet("c")),t.alPut("d",this.alGet("d")),t.alPut("tx",this.alGet("tx")),t.alPut("ty",this.alGet("ty"))),t},e.prototype.concat=function(t){var e=iR(this),n=iR(t);e.concat(n),rR(e,this)},e.prototype.createBox=function(t,e,n,i,r){void 0===n&&(n=0),void 0===i&&(i=0),void 0===r&&(r=0),t=Dk(this.context,t),e=Dk(this.context,e),n=Dk(this.context,n),i=Dk(this.context,i),r=Dk(this.context,r);var o=iR(this);o.createBox(t,e,n,i,r),rR(o,this)},e.prototype.createGradientBox=function(t,e,n,i,r){void 0===n&&(n=0),void 0===i&&(i=0),void 0===r&&(r=0),t=Dk(this.context,t),e=Dk(this.context,e),n=Dk(this.context,n),i=Dk(this.context,i),r=Dk(this.context,r);var o=iR(this);o.createGradientBox(t,e,n,i,r),rR(o,this)},e.prototype.deltaTransformPoint=function(t){var e=QL(t),n=iR(this);return zL.fromAS3Point(this.context,n.deltaTransformPoint(e))},e.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)},e.prototype.invert=function(){var t=iR(this);t.invert(),rR(t,this)},e.prototype.rotate=function(t){t=Dk(this.context,t);var e=iR(this);e.rotate(t),rR(e,this)},e.prototype.scale=function(t,e){t=Dk(this.context,t),e=Dk(this.context,e);var n=iR(this);n.scale(t,e),rR(n,this)},e.prototype._toString=function(){return iR(this).toString()},e.prototype.transformPoint=function(t){var e=QL(t),n=iR(this);return zL.fromAS3Point(this.context,n.transformPoint(e))},e.prototype.translate=function(t,e){t=Dk(this.context,t),e=Dk(this.context,e);var n=iR(this);n.translate(t,e),rR(n,this)},e}(jL),uR=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return FL(e,t),e.createAVM1Class=function(t){var n=new e(t);return Xk(t,n,e.prototype,["align#","displayState#","fullScreenSourceRect#","height#","scaleMode#","showMenu#","width#"],!1),n},e.bindStage=function(t,n,i,r,o){n.avmStage=i,n.avm1Handler=r,e.avmStage=i},e.prototype.getAlign=function(){return this.avmStage.align},e.prototype.setAlign=function(t){this.avmStage.align=t},e.prototype.getDisplayState=function(){return this.avmStage.displayState},e.prototype.setDisplayState=function(t){this.avmStage.displayState=t},e.prototype.getFullScreenSourceRect=function(){return null},e.prototype.setFullScreenSourceRect=function(t){},e.prototype.getHeight=function(){return this.avmStage.stageHeight},e.prototype.getScaleMode=function(){return this.avmStage.scaleMode},e.prototype.setScaleMode=function(t){this.avmStage.scaleMode=t},e.prototype.getShowMenu=function(){return null},e.prototype.setShowMenu=function(t){},e.prototype.getWidth=function(){return this.avmStage.stageWidth},e}(jL);function lR(t){return t instanceof hR?t.as3BitmapData:null}var cR,hR=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._linkedBillboards=[],e._isSymbolSource=!1,e}return FL(e,t),e.createAVM1Class=function(t){return Yk(t,!0,e,["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"],null,e.prototype.avm1Constructor)},e.prototype.getBillboard=function(t,e){var n=wu.getMaterialForBitmap(this.adaptee,!0),i=new Il(n,t,e);return this._linkedBillboards.push(i),i},Object.defineProperty(e.prototype,"as3BitmapData",{get:function(){return this.adaptee},enumerable:!1,configurable:!0}),e.prototype.avm1Constructor=function(t,e,n,i){t=vk(this.context,t),e=vk(this.context,e),n=arguments.length<3||Ak(this.context,n),i=arguments.length<4?4294967295:Ck(this.context,i),isNaN(t*e)||t*e==0||(this.adaptee=Xp.getImage(t,e,n,i,!1,uR.avmStage.view.stage))},e.fromAS3BitmapData=function(t,n){var i=new e(t);return i.alPrototype=t.globals.BitmapData.alGetPrototypeProperty(),i.adaptee=n,i},e.loadBitmap=function(t,n){n=xk(t,n);for(var i,r=mt.getBundle(),o=0,a=Object.keys(r._assetDictionary);o<a.length;o++){var s=a[o];if(i=r.getAsset(n,s))break}if(!i||!i.isAsset(Ye))return console.warn("[AVM1 BitmapData] Missing bitmap:",n),null;var u=Xp.getImage(i.width,i.height,i.transparent,null,null,uR.avmStage.view.stage);u.copyPixels(i,u.rect,new N(0,0));var l=new e(t);return l.alPrototype=t.globals.BitmapData.alGetPrototypeProperty(),l.adaptee=u,l._isSymbolSource=!0,l},e.prototype.getHeight=function(){return this.adaptee?this.adaptee.height:0},e.prototype.getRectangle=function(){var t=this.adaptee;return t?new KL(this.context,0,0,t.width,t.height):new KL(this.context,0,0,0,0)},e.prototype.getTransparent=function(){return!this.adaptee||this.adaptee.transparent},e.prototype.getWidth=function(){return this.adaptee?this.adaptee.width:0},e.prototype.applyFilter=function(t,e,n,i){return console.warn("[avm1/AVM1BitmapData] - applyFilter not implemented"),0},e.prototype.clone=function(){var t=new e(this.context);return t.alPrototype=this.context.globals.BitmapData.alGetPrototypeProperty(),t.adaptee=this.adaptee?this.adaptee.clone():null,t._isSymbolSource=this._isSymbolSource,t},e.prototype.colorTransform=function(t,e){var n=YL(t),i=ZL(e);this.adaptee.colorTransform(n,i)},e.prototype.compare=function(t){return t instanceof e&&(console.warn("[avm1/AVM1BitmapData] - compare not implemented"),!0)},e.prototype.copyChannel=function(t,e,n,i,r){var o=t.as3BitmapData;if(this.adaptee&&o){var a=YL(e),s=QL(n);i=Dk(this.context,i),r=Dk(this.context,r),this.adaptee.copyChannel(o,a,s,i,r)}},e.prototype.copyPixels=function(t,e,n,i,r,o){if(t){var a=this.adaptee,s=t.as3BitmapData;if(this.adaptee&&s){var u=YL(e),l=QL(n),c=i?i.as3BitmapData:null,h=r?QL(r):null;o=Ak(this.context,o),a.copyPixels(s,u,l,c,h,o)}}else console.warn("[AVM1BitmapData::copyPixels] Empty source!")},e.prototype.dispose=function(){if(this.adaptee){for(var t=0,e=this._linkedBillboards;t<e.length;t++){var n=e[t];n.parent.removeChild(n),n.dispose()}this._linkedBillboards=[],this._isSymbolSource||this.adaptee.dispose(),this.adaptee=null}},e.prototype.draw=function(t,e,n,i,r,o){if(this.adaptee)if(t){var a=t;if("string"!=typeof t||(a=this.context.resolveTarget(t))){var s=a.adaptee,u=e?iR(e):null,l=n?ZL(n):null,c=r?YL(r):null;i=(i="number"==typeof i?Vk[i]:Sk(this.context,i))||null,o=Ak(this.context,o),a._locked=!0,this.as3BitmapData.draw(s,u,l,i,c,o),a._locked=!1}else console.warn("[AVM1BitmapData::draw] Source ".concat(t," not resolved!"))}else console.warn("[AVM1BitmapData::draw] Empty source!")},e.prototype.fillRect=function(t,e){if(this.adaptee){var n=YL(t);e=Ck(this.context,e),this.as3BitmapData.fillRect(n,e)}},e.prototype.floodFill=function(t,e,n){t=Dk(this.context,t),e=Dk(this.context,e),n=Ck(this.context,n),this.as3BitmapData.floodFill(t,e,n)},e.prototype.generateFilterRect=function(t,e){console.warn("[avm1/AVM1BitmapData] - generateFilterRect not implemented")},e.prototype.getColorBoundsRect=function(t,e,n){var i;if(void 0===n&&(n=!0),this.adaptee){t=Ck(this.context,t)>>>0,e=Ck(this.context,e)>>>0,n=Ak(this.context,n);var r=null===(i=this.as3BitmapData)||void 0===i?void 0:i.getColorBoundsRect(t,e,n);return r?new KL(this.context,r.x,r.y,r.width,r.height):null}},e.prototype.getPixel=function(t,e){return this.adaptee?this.adaptee.getPixel(t,e):0},e.prototype.getPixel32=function(t,e){return this.adaptee?this.adaptee.getPixel32(t,e):0},e.prototype.hitTest=function(t,e,n,i,r){return console.warn("[avm1/AVM1BitmapData] - hitTest not implemented"),!1},e.prototype.merge=function(t,e,n,i,r,o,a){var s=t.as3BitmapData;if(this.adaptee&&s){var u=YL(e),l=QL(n);i=Ck(this.context,i),r=Ck(this.context,r),o=Ck(this.context,o),a=Ck(this.context,a),this.as3BitmapData.merge(s,u,l,i,r,o,a)}},e.prototype.noise=function(t,e,n,i,r){t=Ck(this.context,t),e=arguments.length<2?0:Ck(this.context,e),n=arguments.length<3?255:Ck(this.context,n),i=arguments.length<4?7:Ck(this.context,i),r=!(arguments.length<5)&&Ak(this.context,r),console.warn("[avm1/AVM1BitmapData] - noise not implemented")},e.prototype.paletteMap=function(t,e,n,i,r,o,a){console.warn("[avm1/AVM1BitmapData] - paletteMap not implemented")},e.prototype.perlinNoise=function(t,e,n,i,r,o,a,s,u){t=Dk(this.context,t),e=Dk(this.context,e),n=Dk(this.context,n),i=Dk(this.context,i),r=Ak(this.context,r),o=Ak(this.context,o),a=void 0===a?7:Dk(this.context,a),s=Ak(this.context,s),console.warn("[avm1/AVM1BitmapData] - perlinNoise not implemented")},e.prototype.pixelDissolve=function(t,e,n,i,r,o){var a=YL(e);return i=arguments.length<4?0:Ck(this.context,i),r=arguments.length<5?a.width*a.height/30:Ck(this.context,r),o=arguments.length<6?0:Ck(this.context,o),console.warn("[avm1/AVM1BitmapData] - pixelDissolve not implemented"),0},e.prototype.scroll=function(t,e){if(t=0|Dk(this.context,t),e=0|Dk(this.context,e),(t||e)&&this.adaptee){var n=this.as3BitmapData;n.copyPixels(n,n.rect,new N(t,e),null,null,!1)}},e.prototype.setPixel=function(t,e,n){this.adaptee&&(t=Dk(this.context,t),e=Dk(this.context,e),n=Ck(this.context,n),this.adaptee.setPixel(t,e,n))},e.prototype.setPixel32=function(t,e,n){this.adaptee&&(t=Dk(this.context,t),e=Dk(this.context,e),n=Ck(this.context,n),this.adaptee.setPixel32(t,e,n))},e.prototype.threshold=function(t,e,n,i,r,o,a,s){var u=this.as3BitmapData,l=t.as3BitmapData;if(this.adaptee&&l){var c=YL(e),h=QL(n);return i=Sk(this.context,i),r=Ck(this.context,r)>>>0,o=arguments.length<6?0:Ck(this.context,o),a=arguments.length<7?4294967295:Ck(this.context,a),s=!(arguments.length<8)&&Ak(this.context,s),u.threshold(l,c,h,i,r,o,a,s),0}},e}(jL);!function(t){t[t._x=0]="_x",t[t._y=1]="_y",t[t._xscale=2]="_xscale",t[t._yscale=3]="_yscale",t[t._currentframe=4]="_currentframe",t[t._totalframes=5]="_totalframes",t[t._alpha=6]="_alpha",t[t._visible=7]="_visible",t[t._width=8]="_width",t[t._height=9]="_height",t[t._rotation=10]="_rotation",t[t._target=11]="_target",t[t._framesloaded=12]="_framesloaded",t[t._name=13]="_name",t[t._droptarget=14]="_droptarget",t[t._url=15]="_url",t[t._highquality=16]="_highquality",t[t._focusrect=17]="_focusrect",t[t._soundbuftime=18]="_soundbuftime",t[t._quality=19]="_quality",t[t._xmouse=20]="_xmouse",t[t._ymouse=21]="_ymouse"}(cR||(cR={}));var pR,dR,fR,gR,_R=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return FL(e,t),e.createAVM1Class=function(t){var n=["align#","blockIndent#","bold#","bullet#","color#","font#","getTextExtent","indent#","italic#","kerning#","leading#","leftMargin#","letterSpacing#","rightMargin#","size#","tabStops#","target#","adaptee#","underline#","url#"],i=Yk(t,!0,e,[],n,null,e.prototype.avm1Constructor),r=i.alGetPrototypeProperty(),o=null;return n.forEach((function(t){"#"===t[t.length-1]&&(t=t.slice(0,-1)),(o=r.alGetOwnProperty(t)).flags&=-2,r.alSetOwnProperty(t,o)})),i},e.createFromNative=function(t,n){var i=t.globals.TextFormat,r=new e(t);return r.alPrototype=i.alGetPrototypeProperty(),r.adaptee=n,r},e.prototype.alPut=function(e,n){"font"==e&&this.setFont(n),t.prototype.alPut.call(this,e,n)},e.prototype.avm1Constructor=function(t,e,n,i,r,o,a,s,u,l,c,h,p){var d=this.context;t=null==t?null:xk(d,t),e=null==e?null:vk(d,e),n=null==n?null:vk(d,n),i=null==i?null:Ak(d,i),r=null==r?null:Ak(d,r),o=null==o?null:Ak(d,o),a=null==a?null:xk(d,a),s=null==s?null:xk(d,s),u=null==u?null:xk(d,u),l=null==l?null:vk(d,l),c=null==c?null:vk(d,c),h=null==h?null:vk(d,h),p=null==p?null:vk(d,p);var f=new cp(t,e,n,i,r,o,a,s,u,l,c,h,p);this.adaptee=f},e.alInitStatic=function(t){var e=new Qp;e.multiline=!0,this._measureTextField=e},e.prototype.getAdaptee=function(){return this.adaptee.id},e.prototype.setAdaptee=function(t){},e.prototype.getAlign=function(){return this.adaptee.align},e.prototype.setAlign=function(t){var e=xk(this.context,t);""==e&&(e="center"),this.adaptee.align=e},e.prototype.getBlockIndent=function(){return this.adaptee.blockIndent},e.prototype.setBlockIndent=function(t){this.adaptee.blockIndent=vk(this.context,t)},e.prototype.getBold=function(){return this.adaptee.bold},e.prototype.setBold=function(t){this.adaptee.bold=Ak(this.context,t)},e.prototype.getBullet=function(){return this.adaptee.bullet},e.prototype.setBullet=function(t){this.adaptee.bullet=Ak(this.context,t)},e.prototype.getColor=function(){return this.adaptee.color},e.prototype.setColor=function(t){this.adaptee.color=vk(this.context,t)},e.prototype.getFont=function(){return this.adaptee.font_name},e.prototype.setFont=function(t){this.adaptee.font_name=xk(this.context,t)},e.prototype.getIndent=function(){return this.adaptee.indent},e.prototype.setIndent=function(t){this.adaptee.indent=vk(this.context,t)},e.prototype.getItalic=function(){return this.adaptee.italic},e.prototype.setItalic=function(t){this.adaptee.italic=Ak(this.context,t)},e.prototype.getKerning=function(){return this.adaptee.kerning},e.prototype.setKerning=function(t){this.adaptee.kerning=Ak(this.context,t)},e.prototype.getLeading=function(){return this.adaptee.leading},e.prototype.setLeading=function(t){this.adaptee.leading=vk(this.context,t)},e.prototype.getLeftMargin=function(){return this.adaptee.leftMargin},e.prototype.setLeftMargin=function(t){this.adaptee.leftMargin=vk(this.context,t)},e.prototype.getLetterSpacing=function(){return this.adaptee.letterSpacing},e.prototype.setLetterSpacing=function(t){this.adaptee.letterSpacing=vk(this.context,t)},e.prototype.getRightMargin=function(){return this.adaptee.rightMargin},e.prototype.setRightMargin=function(t){this.adaptee.rightMargin=vk(this.context,t)},e.prototype.getSize=function(){return this.adaptee.size},e.prototype.setSize=function(t){this.adaptee.size=vk(this.context,t)},e.prototype.getTabStops=function(){return new ik(this.context,this.adaptee.tabStops)},e.prototype.setTabStops=function(t){var e=this;this.adaptee.tabStops=ik.mapToJSArray(t,(function(t){return vk(e.context,t)}))},e.prototype.getTarget=function(){return""},e.prototype.setTarget=function(t){},e.prototype.getTextExtent=function(t,n){t=Sk(this.context,t),n=+n;var i=this.context.getStaticState(e)._measureTextField;!isNaN(n)&&n>0?(i.width=n+4,i.wordWrap=!0):i.wordWrap=!1,i.textFormat=this.adaptee,i.text=t;var r=Ek(this.context),o=i.textWidth,a=i.textHeight;return r.alPut("width",o),r.alPut("height",a),r.alPut("textFieldWidth",o+4),r.alPut("textFieldHeight",a+4),r},e.prototype.getUnderline=function(){return this.adaptee.underline},e.prototype.setUnderline=function(t){this.adaptee.underline=Ak(this.context,t)},e.prototype.getUrl=function(){return this.adaptee.url},e.prototype.setUrl=function(t){this.adaptee.url=xk(this.context,t)},e}(jL),mR=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return FL(e,t),e.createAVM1Class=function(t){return Yk(t,!1,e,["BACKSPACE","CAPSLOCK","CONTROL","DELETEKEY","DOWN","END","ENTER","ESCAPE","HOME","INSERT","LEFT","PGDN","PGUP","RIGHT","SHIFT","SPACE","TAB","UP","isDown","getCode","getAscii"],[])},e.alInitStatic=function(t){this._keyStates=[],this._lastKeyCode=0},e.bindStage=function(t,n,i,r){e.keyDownDelegate&&r.removeEventListener("keydown",e.keyDownDelegate),e.keyUpDelegate&&r.removeEventListener("keyup",e.keyUpDelegate),e.keyDownDelegate=function(i){var r=t.getStaticState(e);r._lastKeyCode=i.keyCode,r._keyStates[i.keyCode]=1,Mk(n,"broadcastMessage",["onKeyDown"])},e.keyUpDelegate=function(i){var r=t.getStaticState(e);r._lastKeyCode=i.keyCode,delete r._keyStates[i.keyCode],Mk(n,"broadcastMessage",["onKeyUp"])},r.addEventListener("keydown",e.keyDownDelegate),r.addEventListener("keyup",e.keyUpDelegate)},e.isDown=function(t,n){return!!t.getStaticState(e)._keyStates[n]},e.getCode=function(t){return t.getStaticState(e)._lastKeyCode},e.getAscii=function(t){return t.getStaticState(e)._lastKeyCode},e.BACKSPACE=8,e.CAPSLOCK=20,e.CONTROL=17,e.DELETEKEY=46,e.DOWN=40,e.END=35,e.ENTER=13,e.ESCAPE=27,e.HOME=36,e.INSERT=45,e.LEFT=37,e.PGDN=34,e.PGUP=33,e.RIGHT=39,e.SHIFT=16,e.SPACE=32,e.TAB=9,e.UP=38,e.keyDownDelegate=null,e.keyUpDelegate=null,e}(jL),yR=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return FL(e,t),e.createAVM1Class=function(t){return Yk(t,!0,e,[],["matrix#","concatenatedMatrix#","colorTransform#","pixelBounds#"],null,e.prototype.avm1Constructor)},Object.defineProperty(e.prototype,"as3Transform",{get:function(){return this._targetAwayObject.transform},enumerable:!1,configurable:!0}),e.prototype.avm1Constructor=function(t){this._target=this.context.resolveTarget(t),this._targetAwayObject=this._target.adaptee},e.prototype.getMatrix=function(){var t=this._targetAwayObject.transform;return oR.fromAS3Matrix(this.context,t.matrix)},e.prototype.setMatrix=function(t){this._targetAwayObject.transform.matrix=iR(t)},e.prototype.getConcatenatedMatrix=function(){var t=this._target.node.getMatrix3D()._rawData;return new oR(this.context,t[0],t[1],t[4],t[5],t[12],t[13])},e.prototype.getColorTransform=function(){var t=this._targetAwayObject.transform;return tR.fromAwayColorTransform(this.context,t.colorTransform)},e.prototype.setColorTransform=function(t){this._targetAwayObject.transform.colorTransform=ZL(t)},e.prototype.getPixelBounds=function(){var t=this._targetAwayObject.transform;return KL.fromAS3Rectangle(this.context,t.pixelBounds)},e}(jL);!function(t){t[t.DISPLACEMENT=8]="DISPLACEMENT"}(gR||(gR={}));var AR=kL(kL({},wf),gR),vR=((pR={})[AR.DROPSHADOW]="DropShadowFilter",pR[AR.GLOW]="GlowFilter",pR[AR.BEVEL]="BevelFilter",pR[AR.GRADIENTGLOW]="GradientGlowFilter",pR[AR.GRADIENTBEVEL]="GradientBevelFilter",pR[AR.BLUR]="BlurFilter",pR[AR.CONVOLUTION]="ConvolutionFilter",pR[AR.COLORMATRIX]="ColorMatrixFilter",pR[AR.DISPLACEMENT]="DisplacementMapFilter",pR),bR=((dR={})[AR.DROPSHADOW]="dropShadow",dR[AR.GLOW]="glow",dR[AR.BEVEL]="bevel",dR[AR.GRADIENTGLOW]="gradientGlow",dR[AR.GRADIENTBEVEL]="bevel",dR[AR.BLUR]="blur",dR[AR.CONVOLUTION]="convolution",dR[AR.COLORMATRIX]="colorMatrix",dR[AR.DISPLACEMENT]="displacement",dR),CR=((fR={})[AR.DROPSHADOW]=function(t){var e=t.colors[0]>>>8,n=(255&t.colors[0])/255,i=180*t.angle/Math.PI,r=!t.compositeSource;return{distance:t.distance,angle:i,color:e,alpha:n,blurX:t.blurX,blurY:t.blurY,strength:t.strength,quality:t.quality,inner:t.inner,knockout:t.knockout,hideObject:r}},fR[AR.GLOW]=function(t){return{color:t.colors[0]>>>8,alpha:(255&t.colors[0])/255,blurX:t.blurX,blurY:t.blurY,strength:t.strength,quality:t.quality,inner:t.inner,knockout:t.knockout}},fR[AR.BEVEL]=function(t){var e=t.colors[0]>>>8,n=(255&t.colors[0])/255,i=t.colors[1]>>>8,r=(255&t.colors[1])/255,o="outer";t.onTop?o="full":t.inner&&(o="inner");var a=180*t.angle/Math.PI;return{distance:t.distance,angle:a,highlightColor:e,highlightAlpha:n,shadowColor:i,shadowAlpha:r,blurX:t.blurX,blurY:t.blurY,strength:t.strength,quality:t.quality,type:o,knockout:t.knockout}},fR[AR.GRADIENTGLOW]=function(t){return null},fR[AR.GRADIENTBEVEL]=function(t){return null},fR[AR.BLUR]=function(t){return{blurX:t.blurX,blurY:t.blurY,quality:t.quality}},fR[AR.CONVOLUTION]=function(t){return null},fR[AR.COLORMATRIX]=function(t){return{matrix:t.matrix}},fR),xR=function(t){function e(e){var n=t.call(this,e)||this;return n.alSetOwnPrototypeProperty(new IR(e,n)),n}return FL(e,t),e.prototype.alConstruct=function(t){var e=new jL(this.context);return e.alPrototype=this.alGetPrototypeProperty(),e},e}(VL),IR=function(t){function e(e,n){var i=t.call(this,e)||this;return Fk(i,{constructor:{value:n,writable:!0},clone:{value:i.clone,writable:!0}}),i}return FL(e,t),e.prototype.clone=function(){var t=new jL(this.context);return t.alPrototype=this.alGetPrototypeProperty(),t},e}(jL);function ER(t,e,n,i,r){var o=vR[i];function a(e){var n=new jL(t);n.alPrototype=u;for(var i=0;i<r.length;i+=2)n.alPut(r[i],SR(t,e[r[i]],r[i+1]));return n}var s=n.alGetPrototypeProperty(),u=Object.create(IR.prototype);jL.call(u,t),u.alPrototype=s;var l=Object.create(xR.prototype);VL.call(l,t),l.alSetOwnPrototypeProperty(u),l.alConstruct=function(e){var n=new jL(t);if(n.alPrototype=u,e)for(var i=0;i<e.length;i++)n.alPut(r[i<<1],e[i]);return n},Fk(u,{constructor:{value:l,writable:!0},clone:{value:function(){var e=new jL(t);e.alPrototype=u;for(var n=0;n<r.length;n+=2)e.alPut(r[n],this.alGet(r[n]));return e},writable:!0}}),u.asFilterConverter={toAS3Filter:function(e){for(var n={filterName:o,filterType:i},a=0;a<r.length;a+=2){var s=e.alGet(r[a]);void 0!==s&&(n[r[a]]=wR(t,s,r[a+1]))}return n},fromAS3Filter:a,fromTimelineFilter:function(t){var e=CR[t.type],n=e?e(t):null;if(n)return a(n);console.warn("[AVM1 FILTER] Timeline filter converter not implemented for:",bR[t.type])},getAS3Class:null},e.alPut(o,l)}function wR(t,e,n){switch(n){case"String":return xk(t,e);case"Boolean":return Ak(t,e);case"Number":return vk(t,e);case"Numbers":var i=[];if(e)for(var r=0,o=e.alGet("length");r<o;r++)i[r]=vk(t,e.alGet(r));return i;case"BitmapData":return lR(e);case"Point":return QL(e);default:console.warn("Filters","Unknown convertFromAS3Field type: "+n)}}function SR(t,e,n){switch(n){case"String":case"Boolean":case"Number":return e;case"Numbers":var i=[];if(e)for(var r=0,o=e.length;r<o;r++)i[r]=+e[r];return new ik(t,i);case"BitmapData":return hR.fromAS3BitmapData(t,e);case"Point":return zL.fromAS3Point(t,e);default:console.warn("Filters","Unknown convertFromAS3Field type: "+n)}}function DR(t,e){for(var n=e?e.alPrototype:null;n&&!n.asFilterConverter;)n=n.alPrototype;if(n)return n.asFilterConverter.toAS3Filter(e)}var TR=Td.register(new Sd("AVM1")),PR=TR.register(new Dd("t1","traceAvm1","boolean",!1,"trace AVM1 execution")),OR=TR.register(new Dd("e1","errorsAvm1","boolean",!1,"fail on AVM1 warnings and errors")),MR=TR.register(new Dd("w1","warningsAvm1","boolean",!0,"Emit messages for AVM1 warnings and errors")),BR=TR.register(new Dd("ha1","nohangAvm1","boolean",!1,"disable fail on AVM1 hang")),NR=TR.register(new Dd("ca1","compileAvm1","boolean",!0,"compiles AVM1 code")),LR=TR.register(new Dd("da1","debugAvm1","boolean",!1,"allows AVM1 code debugging"));TR.register(new Dd("cw1","wellknownAvm1","boolean",!0,"Replaces well-known actions patterns instead of compilation"));var RR=Nt.instance.addStore("avm1",{LAZY_EVENT_REGISTERING:!0}),FR=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasSwappedDepth=!1,e.dynamicallyCreated=!1,e._filterModels=[],e.enabled=!0,e}return FL(e,t),e.CompleteEventRegistering=function(){var t=e.LAZY_EVENT_QUEUE.slice();e.LAZY_EVENT_QUEUE=[];for(var n=0,i=t;n<i.length;n++){var r=i[n];r.target.addEventListenerOnAdapter(r.event,r.callback,r.eventProps)}},e.prototype.initAVM1SymbolInstance=function(t,e){this.constructorHasRun=!0,this.avmType="symbol",this.scriptRefsToChilds={},this._mouseListenerCount=0,this._avm1Context=t,this._ownProperties=Object.create(null),this._prototype=null;var n=this;this._onClipEventsListeners=[];var i=new UL(131,null,{alCall:function(t,e){return n.alPrototype}},{alCall:function(t,e){n.alPrototype=e[0]}});this.alSetOwnProperty("__proto__",i),this.adaptee=e,this.adaptee.partitionClass=Br,this.node=uR.avmStage.view.getNode(this.adaptee);var r=e.name,o=this.get_parent();r&&o&&o._addChildName(this,r)},e.prototype.bindEvents=function(t,e){this._events=t;var n=Object.create(null);this._eventsMap=n,this._eventsListeners=Object.create(null),this._eventHandlers=Object.create(null);var i=this,r=this.context;t.forEach((function(t){var e=t.propertyName=r.normalizeName(t.propertyName);n[e]=t,i._updateEvent(t)}))},e.prototype.unbindEvents=function(){var t=this._events,e=this,n=this.context;t.forEach((function(t){n.unregisterEventPropertyObserver(t.propertyName,e),e._removeEventListener(t)})),this._events=null,this._eventsMap=null,this._eventsListeners=null,this._eventHandlers=null},e.prototype._initEventsHandlers=function(){throw"AVM1SymbolBase _initEventsHandlers must be overwritten"},e.prototype.updateEventByPropName=function(t){this._eventsMap?this._eventsMap[t]&&this._updateEvent(this._eventsMap[t]):(this._initEventsHandlers(),console.log("no eventsmap set",this))},e.prototype.updateAllEvents=function(){this._events.forEach((function(t){this._updateEvent(t)}),this)},e.prototype._updateEvent=function(t){!function(t,e,n){if(e.alHasProperty(n)&&e.alGet(n)instanceof VL)return!0;if(e.alHasProperty(n)&&e._ownProperties[n]&&e._ownProperties[n].value)return!0;var i=e.alGet("_listeners");if(!(i instanceof ik))return!1;return i.value.some((function(t){return t instanceof jL&&t.alHasProperty(n)}))}(this.context,this,t.propertyName)?this._removeEventListener(t):this._addEventListener(t)},e.prototype._addOnClipEventListener=function(t,n,i){void 0===n&&(n=null),void 0===i&&(i=null),t.propertyName=this.context.normalizeName(t.propertyName),!this.enabled&&t.allowDisable||(RR.LAZY_EVENT_REGISTERING?e.LAZY_EVENT_QUEUE.push({target:this,event:t,callback:n,eventProps:i}):(this._onClipEventsListeners.push({event:t,callback:n}),this.addEventListenerOnAdapter(t,n,i)))},e.prototype._addEventListener=function(t,e){void 0===e&&(e=null);var n=this.context.normalizeName(t.propertyName),i=this._eventsListeners[n],r=this;i||(i=e||function(){var t=null;"onchanged"==n.toLowerCase()&&(t=[r]),function(t,e,n,i){void 0===i&&(i=null);var r=e.alGet(n);r instanceof VL&&("onenterframe"==n.toLowerCase()&&(r.isOnEnter=!0),t.executeFunction(r,e,i));var o=e.alGet("_listeners");if(o instanceof ik){var a=null;o.value.forEach((function(r){r instanceof jL&&(a=r.alGet(n))instanceof VL&&t.executeFunction(a,e,i)}))}}(this.context,this,n,t)}.bind(this),this._eventsListeners[n]=i,this._eventHandlers[n]=t),!this.enabled&&t.allowDisable||this.addEventListenerOnAdapter(t,i)},e.prototype.addEventListenerOnAdapter=function(t,e,n){(void 0===n&&(n=null),t.stageEvent)?this.context.globals.Stage.avm1Handler.addAVM1EventListener(this.adaptee,t.eventName,e,n):(this.adaptee.addEventListener(t.eventName,e),this._updateMouseEnabled(t,!0))},e.prototype.removeEventListenerOnAdapter=function(t,e){if(t.stageEvent){var n=this.context.globals.Stage.avm1Handler;n&&n.removeAVM1EventListener(this.adaptee,t.eventName,e)}else this.adaptee.removeEventListener(t.eventName,e),this._updateMouseEnabled(t,!1)},e.prototype._updateMouseEnabled=function(t,e){this.adaptee.isAVMScene||t.isMouse&&(e?(this._mouseListenerCount++,this.adaptee.mouseEnabled=!0,this.adaptee.mouseChildren=!1):(this._mouseListenerCount--,this._mouseListenerCount<=0&&(this._mouseListenerCount=0,this.adaptee.mouseEnabled=!1,this.adaptee.mouseChildren=!0)))},e.prototype.freeFromScript=function(){for(var e in t.prototype.freeFromScript.call(this),this.enabled=!0,this.adaptee.mouseEnabled=!1,this.adaptee.mouseChildren=!0,Mk(this.context.globals.Key,"removeListener",[this]),this._eventsListeners)this.removeEventListenerOnAdapter(this._eventHandlers[e],this._eventsListeners[e]);this._eventsListeners={};for(var n=this._onClipEventsListeners.length;n>0;)n--,this.removeEventListenerOnAdapter(this._onClipEventsListeners[n].event,this._onClipEventsListeners[n].callback);this._onClipEventsListeners=[],this._mouseListenerCount=0},e.prototype._removeEventListener=function(t){var e=this.context.normalizeName(t.propertyName),n=this._eventsListeners[e];n&&(this.removeEventListenerOnAdapter(t,n),delete this._eventsListeners[e])},e.prototype.onEventPropertyModified=function(t){t=this.context.normalizeName(t);var e=this._eventsMap[t];this._updateEvent(e)},e.prototype.getEnabled=function(){return this.enabled},e.prototype.setEnabled=function(t){t!=this.enabled&&(this.enabled=t,this.setEnabledListener(t))},e.prototype.setEnabledListener=function(t){if(!1!==t&&0!==t){for(var e in this._eventsListeners)this._eventHandlers[e].allowDisable&&this.addEventListenerOnAdapter(this._eventHandlers[e],this._eventsListeners[e]);for(var e in this._onClipEventsListeners)this._onClipEventsListeners[e].event.allowDisable&&this.addEventListenerOnAdapter(this._onClipEventsListeners[e].event,this._onClipEventsListeners[e].callback)}else{for(var e in this._eventsListeners)this._eventHandlers[e].allowDisable&&this.removeEventListenerOnAdapter(this._eventHandlers[e],this._eventsListeners[e]);for(var e in this._onClipEventsListeners)this._onClipEventsListeners[e].event.allowDisable&&this.removeEventListenerOnAdapter(this._onClipEventsListeners[e].event,this._onClipEventsListeners[e].callback)}},e.prototype.get_alpha=function(){return 100*this.adaptee.alpha},e.prototype.set_alpha=function(t){this._ctBlockedByScript=!0,t=vk(this.context,t),isNaN(t)||(this.adaptee.alpha=t/100)},e.prototype.getBlendMode=function(){return""},e.prototype.setBlendMode=function(t){},e.prototype.getCacheAsBitmap=function(){return this.adaptee.cacheAsBitmap},e.prototype.setCacheAsBitmap=function(t){t=Ak(this.context,t),this.adaptee.cacheAsBitmap=t},e.prototype.getFilters=function(){return this._as2Filters},e.prototype.setFilters=function(t){this.adaptee.filters=function(t,e){var n=[];if(!e)return n;for(var i=e.alGet("length"),r=0;r<i;r++){var o=DR(0,e.alGet(r));o&&bR[o.filterType]&&(o.filterName=bR[o.filterType],n.push(o))}return n}(this.context,t),this._as2Filters=t},e.prototype.updateFilters=function(t){if(!t)return this.setFilters(null);this.setFilters(function(t,e){if(e&&e.length){for(var n=t.globals.filters,i=[],r=0,o=e;r<o.length;r++){var a=o[r],s=n.alGet(vR[a.type]);if(s){var u=s.alGetPrototypeProperty();if(u.asFilterConverter){var l=u.asFilterConverter.fromTimelineFilter(a);if(!l)continue;i.push(l)}}}return new ik(t,i)}}(this.context,t))},e.prototype.get_focusrect=function(){return!1},e.prototype.set_focusrect=function(t){},e.prototype.get_height=function(){var t=uR.avmStage.pickGroup.getBoundsPicker(this.node.partition).getBoxBounds(uR.avmStage.view.getNode(this.adaptee.parent||uR.avmStage.root));return null==t?0:qk(t.height)},e.prototype.set_height=function(t){t=qk(vk(this.context,t)),this._blockedByScript=!0,isNaN(t)||(uR.avmStage.pickGroup.getBoundsPicker(this.node.partition).height=t)},e.prototype.get_highquality=function(){switch(this.get_quality()){case"BEST":return 2;case"HIGH":return 1;default:return 0}},e.prototype.set_highquality=function(t){var e;switch(bk(this.context,t)){case 2:e="BEST";break;case 1:e="HIGH";break;default:e="LOW"}this.set_quality(e)},e.prototype.getMenu=function(){},e.prototype.setMenu=function(t){},e.prototype.get_name=function(){return this.adaptee?this.adaptee.name:void 0},e.prototype.set_name=function(t){t=Sk(this.context,t);var e=this.adaptee.name;this.adaptee.name=t;var n=this.get_parent();n&&(n.registerScriptObject(this.adaptee),n._updateChildName(this,e,t))},e.prototype.get_parent=function(){return Hk(this.adaptee.parent,this.context)||void 0},e.prototype.set_parent=function(t){},e.prototype.getOpaqueBackground=function(){return 0},e.prototype.setOpaqueBackground=function(t){},e.prototype.get_quality=function(){return"HIGH"},e.prototype.set_quality=function(t){},e.prototype.set_root=function(t){},e.prototype.get_root=function(){for(var t=this.adaptee,e=null;t&&!t.isAVMScene;){if((e=Hk(t,this.context))&&e.get_lockroot())return e;t=t.parent}if(t)return Hk(t,this.context)},e.prototype.get_rotation=function(){for(var t=Math.round(this.adaptee.rotationZ);t>180;)t-=360;for(;t<-180;)t+=360;return t},e.prototype.set_rotation=function(t){t=vk(this.context,t),this._blockedByScript=!0,isNaN(t)||(this.adaptee.rotationZ=t)},e.prototype.getScale9Grid=function(){return KL.fromAS3Rectangle(this.context,this.adaptee.scale9Grid)},e.prototype.setScale9Grid=function(t){this.adaptee.scale9Grid=xd(t)?null:YL(t)},e.prototype.getScrollRect=function(){return KL.fromAS3Rectangle(this.context,this.adaptee.scrollRect)},e.prototype.setScrollRect=function(t){this.adaptee.scrollRect=xd(t)?null:YL(t)},e.prototype.get_soundbuftime=function(){return 0},e.prototype.set_soundbuftime=function(t){},e.prototype.getTabEnabled=function(){return!!this.adaptee&&this.adaptee.tabEnabled},e.prototype.setTabEnabled=function(t){this.adaptee&&(this.adaptee.tabEnabled=t)},e.prototype.getTabIndex=function(){return this.adaptee.tabIndex},e.prototype.setTabIndex=function(t){this.adaptee.tabIndex=t},e.prototype.get_target=function(){var t=this.adaptee;if(t===t.root)return"/";var e="";do{if(xd(t))return;e="/"+t.name+e,t=t.parent}while(t&&!t.isAVMScene);return e},e.prototype.getTransform=function(){return this.context.swfVersion<8?this.transformPreFP8:(this._avmTransform||(this._avmTransform=this.context.globals.Transform.alConstruct([this])),this._avmTransform)},e.prototype.setTransform=function(t){this.context.swfVersion<8?this.transformPreFP8=t:t instanceof yR&&console.log("not implemented: AVM1SymbolBase.setTransform")},e.prototype.get_visible=function(){if(this.adaptee)return this.adaptee.visible},e.prototype.set_visible=function(t){this._visibilityByScript=!0,t=Ak(this.context,t),this.adaptee.visible=t},e.prototype.get_url=function(){return new URL(this.adaptee.assetNamespace,document.baseURI).href},e.prototype.get_width=function(){var t=uR.avmStage.pickGroup.getBoundsPicker(this.node.partition).getBoxBounds(uR.avmStage.view.getNode(this.adaptee.parent||uR.avmStage.root));return null==t?0:Kk(t.width)},e.prototype.set_width=function(t){t=Kk(vk(this.context,t)),this._blockedByScript=!0,isNaN(t)||(uR.avmStage.pickGroup.getBoundsPicker(this.node.partition).width=t)},e.prototype.get_x=function(){return this.adaptee?qk(this.adaptee.x):void 0},e.prototype.set_x=function(t){this.adaptee&&(t=qk(vk(this.context,t)),this._blockedByScript=!0,isNaN(t)||(this.adaptee.x=t))},e.prototype.get_xmouse=function(){return qk(uR.avmStage.getLocalMouseX(this.node))},e.prototype.get_xscale=function(){return this.adaptee?100*this.adaptee.scaleX:void 0},e.prototype.set_xscale=function(t){this.adaptee&&(t=vk(this.context,t),this._blockedByScript=!0,isNaN(t)||(this.adaptee.scaleX=t/100))},e.prototype.get_y=function(){return this.adaptee?qk(this.adaptee.y):void 0},e.prototype.set_y=function(t){this.adaptee&&(t=qk(vk(this.context,t)),this._blockedByScript=!0,isNaN(t)||(this.adaptee.y=t))},e.prototype.get_ymouse=function(){return qk(uR.avmStage.getLocalMouseY(this.node))},e.prototype.get_yscale=function(){return this.adaptee?100*this.adaptee.scaleY:void 0},e.prototype.set_yscale=function(t){this.adaptee&&(t=vk(this.context,t),this._blockedByScript=!0,isNaN(t)||(this.adaptee.scaleY=t/100))},e.prototype.getDepth=function(){return this.protoTypeChanged||!this.adaptee?null:Jk(this.adaptee._avmDepthID)},e.prototype.toString=function(){for(var t=this.adaptee,e=[];t;)t.isAVMScene?(e.push("_level0"),t=null):(e.push(t.name),t=t.parent);for(var n=e.length,i="";n>0;)i+=e[--n],n>0&&(i+=".");return i},e.LAZY_EVENT_QUEUE=[],e}(jL),kR=function(t,e,n,i,r,o){this.propertyName=t,this.eventName=e,this.stageEvent=n,this.allowDisable=i,this.isMouse=r,this.isButton=o},UR=function(){},jR=[-1,37,39,36,35,45,46,-1,8,-1,-1,-1,-1,13,38,40,33,34,9,27],VR=Object.create(null),QR=VR,GR=kR;QR[262144]=!0,QR[512]=!0,QR[131072]=new GR("onKey",pp.KEYDOWN,!0,!0,!1,!1),QR[1]=new GR("onLoad","load",!1,!1,!1,!1),QR[4]=new GR("onUnload","unload",!1,!1,!1,!1),QR[256]=new GR("onData","data",!1,!1,!1,!1),QR[2]=new GR("onEnterFrame","enterFrame",!1,!1,!1,!1),QR[64]=new GR("onKeyDown",pp.KEYDOWN,!0,!0,!1,!1),QR[128]=new GR("onKeyUp",pp.KEYUP,!0,!0,!1,!1),QR[8]=new GR("onMouseMove",Ll.MOUSE_MOVE,!0,!0,!0,!1),QR[16]=new GR("onMouseDown",Ll.MOUSE_DOWN,!0,!0,!0,!1),QR[32]=new GR("onMouseUp",Ll.MOUSE_UP,!0,!0,!0,!1),QR[1024]=new GR("onPress",Ll.MOUSE_DOWN,!1,!0,!0,!0),QR[2048]=new GR("onRelease",Ll.MOUSE_UP,!1,!0,!0,!0),QR[4096]=new GR("onReleaseOutside",Ll.MOUSE_UP_OUTSIDE,!1,!0,!0,!0),QR[8192]=new GR("onRollOver",Ll.MOUSE_OVER,!1,!0,!0,!0),QR[16384]=new GR("onRollOut",Ll.MOUSE_OUT,!1,!0,!0,!0),QR[32768]=new GR("onDragOver",Ll.DRAG_OVER,!1,!0,!0,!0),QR[65536]=new GR("onDragOut",Ll.DRAG_OUT,!1,!0,!0,!0);var zR=new GR("onSetFocus",Gp.FOCUS_IN,!1,!0,!1,!1),HR=new GR("onKillFocus",Gp.FOCUS_OUT,!1,!0,!1,!1),XR=new GR("onChanged",dp.CHANGED,!1,!0,!1,!1),YR=[VR[1],VR[4],VR[256],VR[2],VR[64],VR[128],VR[8],VR[16],VR[32],VR[1024],VR[2048],VR[4096],VR[8192],VR[16384],VR[32768],VR[65536],VR[131072],zR,HR,XR],qR=[VR[1],VR[4],VR[256],VR[2],VR[64],VR[128],VR[1024],VR[2048],VR[4096],VR[8192],VR[16384],VR[32768],VR[65536],VR[131072],zR,HR,XR],KR=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._prevTextVarContent="",e._textVarHolder=null,e._textVarPropName="",e}return FL(e,t),e.createAVM1Class=function(t){return Yk(t,!0,e,[],["_alpha#","addListener","antiAliasType#","autoSize#","background#","backgroundColor#","border#","borderColor#","bottomScroll#","condenseWhite#","embedFonts#","filters#","getAwayJSID","getNewTextFormat","getTextFormat","gridFitType#","getDepth","_height#","_highquality#","hscroll#","html#","htmlText#","length#","maxChars#","maxhscroll#","maxscroll#","multiline#","_name#","_parent#","password#","_quality#","_rotation#","replaceSel","removeMovieClip","removeTextField","restrict#","scroll#","selectable#","setNewTextFormat","setTextFormat","_soundbuftime#","tabEnabled#","tabIndex#","_target#","toString","text#","textColor#","textHeight#","textWidth#","type#","_url#","variable#","_visible#","_width#","wordWrap#","_x#","_xmouse#","_xscale#","_y#","_ymouse#","_yscale#"])},e.prototype.dispatchKeyEvent=function(t,e,n,i){if(this.context.globals.Stage&&this.context.globals.Stage.avmStage&&this.context.globals.Stage.avmStage.mouseManager.useSoftkeyboard){var r=this.context.getStaticState(mR);r._lastKeyCode=t,r._keyStates[t]=1,Mk(VF.instance.Key,"broadcastMessage",["onKeyDown"]);var o=new pp(pp.KEYDOWN,"",t);o.isShift=e,o.isCTRL=n,o.isAlt=i,this.context.globals.Stage.avmStage.dispatchEvent(o),delete r._keyStates[t],Mk(VF.instance.Key,"broadcastMessage",["onKeyUp"]),(o=new pp(pp.KEYUP,"",t)).isShift=e,o.isCTRL=n,o.isAlt=i,this.context.globals.Stage.avmStage.dispatchEvent(o)}},e.syncAllTextfields=function(){for(var t in e.allTextfields)e.allTextfields[t]?e.allTextfields[t].syncTextFieldValue():delete e.allTextfields[t]},e.syncQueedTextfields=function(){if(e.textFieldVars.length>0){for(var t=e.textFieldVars.length,n=0;n<t;n++)e.textFieldVars[n].syncTextFieldValue();e.textFieldVars.length=0}},e.prototype.getAwayJSID=function(){return this.adaptee.id},e.prototype.selectTextField=function(t){void 0===t&&(t=!1),VF.softKeyboardManager&&("dummy_txt"!=this.adaptee.name&&0!=this.adaptee.name.indexOf("temp")||(t=!0),VF.softKeyboardManager.openKeyboard(this.adaptee,t))},e.prototype.removeMovieClip=function(){this.adaptee.isAVMScene||this.adaptee.parent&&Jk(this.adaptee._avmDepthID)>=-1&&this.adaptee.parent.adapter.removeChildAtDepth(this.adaptee._avmDepthID)},e.prototype.alPut=function(e,n){t.prototype.alPut.call(this,e,n)},e.prototype.initAdapter=function(){var t=this;this.adaptee._symbol&&this.setVariable(this.adaptee._symbol.variableName||""),this.adaptee.addEventListener(dp.CHANGED,(function(){t.updateVarFromText(),t.syncTextFieldValue()}))},e.prototype.initAVM1SymbolInstance=function(e,n){t.prototype.initAVM1SymbolInstance.call(this,e,n),this.adaptee=n,this._initEventsHandlers(),this._variable="",this._exitFrameHandler=null,this.adaptee=n},e.prototype.clone=function(){return Hk(this.adaptee.clone(),this._avm1Context)},e.prototype.getAntiAliasType=function(){return""},e.prototype.setAntiAliasType=function(t){},e.prototype.get_width=function(){return this.syncTextFieldValue(),Kk(this.adaptee.width)},e.prototype.get_height=function(){return this.syncTextFieldValue(),Kk(this.adaptee.height)},e.prototype.set_width=function(t){t=Kk(vk(this.context,t)),this._blockedByScript=!0,isNaN(t)||(this.adaptee.width=t)},e.prototype.set_height=function(t){t=Kk(vk(this.context,t)),this._blockedByScript=!0,isNaN(t)||(this.adaptee.height=t)},e.prototype.get_x=function(){return this.syncTextFieldValue(),qk(this.adaptee.x+this.adaptee.scaleX*this.adaptee.textOffsetX)},e.prototype.get_y=function(){return this.syncTextFieldValue(),qk(this.adaptee.y+this.adaptee.scaleY*this.adaptee.textOffsetY)},e.prototype.set_x=function(t){this.syncTextFieldValue(),this.adaptee.x=qk(t-this.adaptee.scaleX*this.adaptee.textOffsetX)},e.prototype.set_y=function(t){this.syncTextFieldValue(),this.adaptee.y=qk(t-this.adaptee.scaleY*this.adaptee.textOffsetY)},e.prototype.getAutoSize=function(){return this.adaptee.autoSize},e.prototype.setAutoSize=function(t){!0===t?t="left":!1===t&&(t="none"),t=Sk(this.context,t),this.adaptee.autoSize=t},e.prototype.getBackground=function(){return this.adaptee.background},e.prototype.setBackground=function(t){t=Ak(this.context,t),this.adaptee.background=t},e.prototype.getBackgroundColor=function(){return this.adaptee.backgroundColor},e.prototype.setBackgroundColor=function(t){t=Ck(this.context,t),this.adaptee.backgroundColor=t},e.prototype.getBorder=function(){return this.adaptee.border},e.prototype.setBorder=function(t){t=Ak(this.context,t),this.adaptee.border=t},e.prototype.getBorderColor=function(){return this.adaptee.borderColor},e.prototype.setBorderColor=function(t){t=Ck(this.context,t),this.adaptee.borderColor=t},e.prototype.getBottomScroll=function(){return this.adaptee.bottomScrollV+1},e.prototype.getCondenseWhite=function(){return this.adaptee.condenseWhite},e.prototype.setCondenseWhite=function(t){t=Ak(this.context,t),this.adaptee.condenseWhite=t},e.prototype.getEmbedFonts=function(){return this.adaptee.embedFonts},e.prototype.setEmbedFonts=function(t){t=Ak(this.context,t),this.adaptee.embedFonts=t},e.prototype.getNewTextFormat=function(){return _R.createFromNative(this.context,this.adaptee.textFormat)},e.prototype.getTextFormat=function(t,e){void 0===t&&(t=-1),void 0===e&&(e=-1),t=bk(this.context,t),e=bk(this.context,e);var n=this.adaptee.getTextFormat(t,e);return _R.createFromNative(this.context,n)},e.prototype.getGridFitType=function(){return""},e.prototype.setGridFitType=function(t){},e.prototype.getHscroll=function(){return this.adaptee.scrollH+1},e.prototype.setHscroll=function(t){(t=Dk(this.context,t))<=0&&(t=1),this.adaptee.scrollH=t-1},e.prototype.getHtml=function(){return this.adaptee.html},e.prototype.setHtml=function(t){this.adaptee.html=!!t},e.prototype.getHtmlText=function(){return this.adaptee.html?this.adaptee.htmlText:this.adaptee.text},e.prototype.setHtmlText=function(t){t=void 0===t?"undefined":xk(this.context,t),this.adaptee.html?this.adaptee.htmlText=t:this.adaptee.text=t,this.updateVarFromText(),this.syncTextFieldValue()},e.prototype.getLength=function(){return this.adaptee.length},e.prototype.getMaxChars=function(){return 0==this.adaptee.maxChars?null:this.adaptee.maxChars},e.prototype.setMaxChars=function(t){t=Dk(this.context,t),this.adaptee.maxChars=t},e.prototype.getRestrict=function(){return this.adaptee.restrict},e.prototype.setRestrict=function(t){t=Sk(this.context,t),this.adaptee.restrict=t},e.prototype.getMaxhscroll=function(){return this.adaptee.maxScrollH+1},e.prototype.getMaxscroll=function(){return this.adaptee.maxScrollV+1},e.prototype.getMultiline=function(){return this.adaptee.multiline},e.prototype.setMultiline=function(t){t=Ak(this.context,t),this.adaptee.multiline=t},e.prototype.getPassword=function(){return this.adaptee.displayAsPassword},e.prototype.setPassword=function(t){t=Ak(this.context,t),this.adaptee.displayAsPassword=t},e.prototype.getScroll=function(){return this.adaptee.scrollV+1},e.prototype.setScroll=function(t){(t=Dk(this.context,t))<=0&&(t=1),this.adaptee.scrollV=t-1},e.prototype.getSelectable=function(){return this.adaptee.selectable},e.prototype.setSelectable=function(t){"false"==t&&(t=!1),(t=Ak(this.context,t))||this.context.globals.Stage.avmStage.mouseManager.getFocus().container!=this.adaptee||this.context.globals.Stage.avmStage.mouseManager.setFocus(null),this.adaptee.selectable=t},e.prototype.replaceSel=function(t){t=xk(this.context,t),this.adaptee.replaceSelectedText(t)},e.prototype.setNewTextFormat=function(t){var e;t instanceof _R?(e=t.adaptee,this.adaptee.textFormat||(this.adaptee.textFormat=new cp),this.adaptee.newTextFormat=e):console.log("AVM1Textfield.setNewtextFormat - trying to set something other than a TextFormat",t)},e.prototype.setTextFormat=function(){this._variable&&this.syncTextFieldValue();var t,e,n=-1,i=-1;switch(arguments.length){case 0:return;case 1:t=arguments[0];break;case 2:n=vk(this.context,arguments[0]),t=arguments[1];break;default:n=vk(this.context,arguments[0]),i=vk(this.context,arguments[1]),t=arguments[2]}n>=0&&-1==i&&(i=n),t instanceof _R&&(e=t.adaptee,this.adaptee.setTextFormat(e,n,i))},e.prototype.getText=function(){return this._variable&&this.syncTextFieldValue(),this.adaptee.text},e.prototype.setText=function(t){t=void 0===t?"":xk(this.context,t);var e=this.context.utils;if(this.adaptee.parent){var n=Hk(this.adaptee.parent,this.context);e.setProperty(n,this._variable,t)}this.adaptee.text=t,this._variable&&(this.updateVarFromText(),this.syncTextFieldValue())},e.prototype.getTextColor=function(){return this.adaptee.textColor},e.prototype.setTextColor=function(t){t=Ck(this.context,t),this.adaptee.textColor=t},e.prototype.getTextHeight=function(){return this._variable&&this.syncTextFieldValue(),this.adaptee.textHeight},e.prototype.setTextHeight=function(t){},e.prototype.getTextWidth=function(){return this._variable&&this.syncTextFieldValue(),this.adaptee.textWidth},e.prototype.setTextWidth=function(t){},e.prototype.getType=function(){return this.adaptee.type},e.prototype.setType=function(t){(t=Sk(this.context,t))&&(t=t.toLowerCase()),this.adaptee.type=t},e.prototype.getVariable=function(){return this._variable},e.prototype.setVariable=function(t){if((t=Sk(this.context,t))!==this._variable){var n=this.adaptee;e.allTextfields[n.id]=this,this._prevTextVarContent=this.adaptee.text,this._syncTextFieldValue(n,t),this._exitFrameHandler&&!t&&(n.removeEventListener("exitFrame",this._exitFrameHandler),this._exitFrameHandler=null),this._variable=t,!this._exitFrameHandler&&t&&(this._exitFrameHandler=this._onAS3ObjectExitFrame.bind(this),n.addEventListener("exitFrame",this._exitFrameHandler))}},e.prototype._onAS3ObjectExitFrame=function(){this._variable&&this._syncTextFieldValue(this.adaptee,this._variable)},e.prototype.syncTextFieldValue=function(){this._syncTextFieldValue(this.adaptee,this._variable)},e.prototype.updateVarFromText=function(){this._textVarHolder&&(this.context.utils.setProperty(this._textVarHolder,this._textVarPropName,this.adaptee.html?this.adaptee.htmlText:this.adaptee.text),this._prevTextVarContent=this.adaptee.text)},e.prototype._syncTextFieldValue=function(t,n){if(n&&""!=n){var i=this.context.utils;if(null==this._textVarHolder)if(n.indexOf(".")>=0||n.indexOf(":")>=0){var r=n.split(/[.:\/]/g);if(this._textVarPropName=r.pop(),"_root"==r[0]||"_level0"==r[0]||"_level"==r[0]||""===r[0]){var o=t.parent;for(this._textVarHolder=null;o;)o.isAVMScene?(this._textVarHolder=o.adapter,o=null):o=o.parent;if(null===this._textVarHolder)return;r.shift(),""===r[0]&&r.shift()}else if("_global"==r[0])r.shift(),this._textVarHolder=this.context.globals;else{if(!t.parent)return;this._textVarHolder=Hk(t.parent,this.context)}for(var a=null;r.length>0;)if(a=r.shift(),this._textVarHolder=i.getProperty(this._textVarHolder,a),!this._textVarHolder)return}else if(this._textVarPropName=n,t.parent&&t.parent.parent){this._textVarHolder=Hk(t.parent,this.context);for(var s=void 0,u=t.parent.parent,l=u.numChildren,c=0;c<l;c++)(s=u.getChildAt(c))!=t.parent&&s.name==t.parent.name&&i.hasProperty(s.adapter,this._textVarPropName)&&(this._textVarHolder=s.adapter)}if(!this._textVarHolder)return e.textFieldVars.push(this),t.html?this._prevTextVarContent=t.htmlText:void(this._prevTextVarContent=t.text);if(!i.hasProperty(this._textVarHolder,this._textVarPropName)){var h=void 0;return t.html?(h={isTextVar:!0,value:void 0},""!=t.htmlText&&(h.value=t.htmlText),i.setProperty(this._textVarHolder,this._textVarPropName,h),i.setProperty(this._textVarHolder,this._textVarPropName+"_internal_TF",this),void(this._prevTextVarContent=t.htmlText)):(h={isTextVar:!0,value:void 0},""!=t.text&&(h.value=t.text),i.setProperty(this._textVarHolder,this._textVarPropName,h),i.setProperty(this._textVarHolder,this._textVarPropName+"_internal_TF",this),void(this._prevTextVarContent=t.text))}i.hasProperty(this._textVarHolder,this._textVarPropName+"_internal_TF")||i.setProperty(this._textVarHolder,this._textVarPropName+"_internal_TF",this);var p=i.getProperty(this._textVarHolder,this._textVarPropName);if("string"!=typeof p&&(p=xk(this.context,p)),t.html){if(p!==this._prevTextVarContent)return t.htmlText=void 0===p?"":p,void(this._prevTextVarContent=p);t.htmlText===p||void 0===p&&""===t.htmlText||(t.htmlText=void 0===p?"":p)}else{if(p!==this._prevTextVarContent)return t.text=void 0===p?"":p,void(this._prevTextVarContent=p);t.text===p||void 0===p&&""===t.text||(t.text=void 0===p?"":p)}}},e.prototype.getWordWrap=function(){return this.adaptee.wordWrap},e.prototype.setWordWrap=function(t){t=Ak(this.context,t),this.adaptee.wordWrap=t},e.prototype._initEventsHandlers=function(){this.bindEvents(YR)},e.allTextfields={},e.textFieldVars=[],e}(FR),WR=function(){function t(t){var e=this;this.result=new wd,this._context=t,this._onAssetCompleteDelegate=function(t){return e.onAssetComplete(t)},this._onLoaderCompleteDelegate=function(t){return e.onLoaderComplete(t)},this._onLoadErrorDelegate=function(t){return e.onLoadError(t)},this._loader=new gt}return Object.defineProperty(t.prototype,"loader",{get:function(){return this._loader},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"content",{get:function(){return this._content},enumerable:!1,configurable:!0}),t.prototype.onAssetComplete=function(t){var e=t.asset;if(e.isAsset(Rl)){if(e.assetNamespace!=this._url)return;e.isAVMScene&&(this._content=e,this.result.resolve(e),e.adapter.initAdapter())}},t.prototype.onLoaderComplete=function(t){t.url==this._url&&(mt.removeEventListener(d.ASSET_COMPLETE,this._onAssetCompleteDelegate),mt.removeEventListener(H.LOADER_COMPLETE,this._onLoaderCompleteDelegate),mt.removeEventListener(K.LOAD_ERROR,this._onLoadErrorDelegate))},t.prototype.onLoadError=function(t){mt.removeEventListener(d.ASSET_COMPLETE,this._onAssetCompleteDelegate),mt.removeEventListener(H.LOADER_COMPLETE,this._onLoaderCompleteDelegate),mt.removeEventListener(K.LOAD_ERROR,this._onLoadErrorDelegate),console.log("load error in loadMovie",t)},t.prototype._loadingCallback=function(t,e){var n=e.adaptee,i=t;n.isAVMScene=i.isAVMScene,n.timeline=i.timeline,n.assetNamespace=i.assetNamespace,n.reset(!0,!1)},t.prototype.loadMovieAt=function(e,n,i){var r=this;if(!i)throw new Error("Target can't be null");var o=t._loaderCache[e];return o?(this._loadingCallback(o,i),Promise.resolve(i)):this.load(e,n).then((function(){return(o=r.content)?(t._loaderCache[e]=o,r._loadingCallback(o,i),i):null}))},t.prototype.load=function(t,e){return this._url=t,this.result=new wd,mt.addEventListener(d.ASSET_COMPLETE,this._onAssetCompleteDelegate),mt.addEventListener(H.LOADER_COMPLETE,this._onLoaderCompleteDelegate),mt.addEventListener(K.LOAD_ERROR,this._onLoadErrorDelegate),mt.load(new yt(t),null,t,new Lg(VF._scenegraphFactory)),this.result.promise},t._loaderCache={},t}();function JR(t,e){var n=Ek(e);return n.alPut("xMin",t.left),n.alPut("yMin",t.top),n.alPut("xMax",t.right),n.alPut("yMax",t.bottom),n}var $R=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._hitReportCount=0,e._depthToChilds={},e._nextHighestDepth=1,e.executeConstructor=null,e._locked=!1,e.unregisteredColors={},e.isDragging=!1,e.startDragPoint=new N,e.startDragMCPosition=new N,e}return FL(e,t),e.createAVM1Class=function(t){return Yk(t,!0,e,[],["$version#","_alpha#","getAwayJSID","attachAudio","attachBitmap","attachMovie","attachVideo","beginFill","beginBitmapFill","beginGradientFill","blendMode#","cacheAsBitmap#","_callFrame","clear","createEmptyMovieClip","createTextField","_currentframe#","curveTo","_droptarget#","duplicateMovieClip","enabled#","endFill","filters#","_framesloaded#","_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","_root#","_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#"])},Object.defineProperty(e.prototype,"_stage",{get:function(){return uR.avmStage},enumerable:!1,configurable:!0}),e.prototype.setDepthToChild=function(t,e){e?this._depthToChilds[t]=e:delete this._depthToChilds[t]},e.prototype.getDepthToChild=function(t){return this._depthToChilds[t]},e.prototype.addTimelineChildAtDepth=function(t,e){e-=16383,t.adapter!=t&&t.adapter.deleteOwnProperties&&t.adapter.deleteOwnProperties(),t.reset(),this.addChildAtDepth(t,e,!0)},e.prototype.removeTimelineChildAt=function(t){t-=16383,this.removeChildAtDepth(t)},e.prototype.removeAllTimelineChilds=function(){for(var t=this.adaptee.numChildren-1;t>=0;t--){this.adaptee.getChildAt(t)._avmDepthID<0&&this.adaptee.removeChildAt(t)}},e.prototype.getTimelineChildAtSessionID=function(t){return this.adaptee.getTimelineChildAtSessionID(t)},e.prototype.getDepthIndexInternal=function(t){var e=this.getDepthToChild(t);return e?e.parent!==this.adaptee?-1:this.adaptee.getChildIndex(e):-1},e.prototype.getIndexFromDepthOrTop=function(t){for(var e=0;e<this.adaptee.numChildren;e++)if(this.adaptee.getChildAt(e)._avmDepthID>t)return e;return this.adaptee.numChildren},e.prototype.removeChildAtDepth=function(t){var e=this.getDepthIndexInternal(t);-1!==e&&this.removeChildAt(e)},e.prototype.removeChildAt=function(t){var e=this.adaptee.removeChildAt(t);e._adapter&&e.adapter.freeFromScript(),this.unregisterScriptObject(e),delete this.adaptee._sessionID_childs[e._sessionID],this.setDepthToChild(e._avmDepthID),e._sessionID=-1,e._avmDepthID=-16384},e.prototype.addChildAtDepth=function(t,e,n){if(void 0===n&&(n=!1),null==t)throw"Parameter child cannot be null.";var i=this.getDepthIndexInternal(e);if(-1!=i){if(n)return console.log("depth is occupied"),null;this.removeChildAt(i),this.adaptee.addChildAt(t,i)}else this.adaptee.addChildAt(t,this.getIndexFromDepthOrTop(e));this.adaptee.isSlice9ScaledMC&&"[asset Sprite]"==t.assetType&&(t.isSlice9ScaledSprite=!0),this._nextHighestDepth<e+1&&(this._nextHighestDepth=e+1),t._avmDepthID=e,t.adapter!=t&&t.adapter.initAdapter(),this.setDepthToChild(e,t),n&&(this.adaptee._sessionID_childs[t._sessionID]=t);var r=Hk(t,this._avm1Context);return this.registerScriptObject(t,n),r},e.prototype.sortVirtualSceneGraph=function(t,e){return t.depth-e.depth},e.prototype.queueFrameScripts=function(t,e,n){var i=t.get_script_for_frame(this.adaptee,e,!0);i&&(n?Nl.add_script_to_queue(this.adaptee,i):Nl.add_script_to_queue_pass2(this.adaptee,i))},e.prototype.constructFrame=function(t,e,n,i,r,o,a){for(var s,u,l={},c={},h=this.adaptee.numChildren,p=0;p<h;p++){var d=this.adaptee.getChildAt(p);(i||-1==d._sessionID)&&(l[d._avmDepthID]={sessionID:d._sessionID,addedOnTargetFrame:!1,depth:d._avmDepthID,child:d}),d._sessionID>=0&&(c[d._sessionID]=d)}t._update_indices.length=0,t._update_frames.length=0;var f,g,_=0;for(u=e;u<=n;u++){var m=t.frame_command_indices[u],y=t.frame_recipe[u];if(2&y)for(g=(f=t.command_index_stream[m])+t.command_length_stream[m++],s=f;s<g;s++)delete l[t.remove_child_stream[s]-16383];if(4&y)if(g=(f=t.command_index_stream[m])+t.command_length_stream[m++],o)for(s=g-1;s>=f;s--)l[t.add_child_stream[3*s+1]-16383]||(l[t.add_child_stream[3*s+1]-16383]={sessionID:t.add_child_stream[3*s],symbolID:t.add_child_stream[3*s+2],addedOnTargetFrame:u==n,depth:t.add_child_stream[3*s+1]-16383});else for(s=f;s<g;s++)l[t.add_child_stream[3*s+1]-16383]||(l[t.add_child_stream[3*s+1]-16383]={sessionID:t.add_child_stream[3*s],symbolID:t.add_child_stream[3*s+2],addedOnTargetFrame:u==n,depth:t.add_child_stream[3*s+1]-16383});8&y&&(t._update_frames[_]=t.keyframe_firstframes[u],t._update_indices[_++]=m++),16&y&&u==n&&t.start_sounds(this.adaptee,m)}var A=[];for(var v in l)A[A.length]=l[v];A.sort(this.sortVirtualSceneGraph);var b,C=[],x=[],I=[];this._depthToChilds={},this.adaptee._sessionID_childs={},this.adaptee.preventScript=!0,h=C.length=A.length;for(var E=0;E<h;E++)if(-1==(b=A[E]).sessionID&&b.child)C[E]=b.child,this.setDepthToChild(b.depth,b.child);else if(c[b.sessionID]){var w=c[b.sessionID],S=b.depth;w._avmDepthID=S,w._sessionID=b.sessionID,this.setDepthToChild(S,w),this.adaptee._sessionID_childs[b.sessionID]=w,C[E]=w,i||(C[E]._adapter?(C[E].adapter.isColorTransformByScript()||C[E].transform.clearColorTransform(),C[E].adapter.isBlockedByScript()||C[E].noTimelineUpdate||(C[E].transform.clearMatrix3D(),C[E].updateTimelineMask(null)),C[E].adapter.isVisibilityByScript()||(C[E].visible=!0)):(C[E].transform.clearColorTransform(),C[E].transform.clearMatrix3D(),C[E].visible=!0,C[E].updateTimelineMask(null)))}else{var D=t.getChildInstance(b.symbolID,b.sessionID);this.adaptee.isSlice9ScaledMC&&"[asset Sprite]"==D.assetType&&(D.isSlice9ScaledSprite=!0);S=D._avmDepthID=b.depth;D._sessionID=b.sessionID,this.setDepthToChild(S,D),this.adaptee._sessionID_childs[b.sessionID]=D,C[E]=D,b.addedOnTargetFrame?I[I.length]=D:x[x.length]=D}for(var T=this.adaptee.numChildren-1;T>=0;T--)C.indexOf(this.adaptee.getChildAt(T))<0&&this.adaptee.removeChildAt(T);for(var P=0;P<C.length;P++)this.adaptee.contains(C[P])||this.adaptee.addChildAt(C[P],P);this.adaptee.preventScript=!0,this.finalizeChildren(x),this.adaptee.preventScript=!1,a&&this.queueFrameScripts(t,r,!o),this.finalizeChildren(I)},e.prototype.finalizeChildren=function(t){for(var e=t.length,n=0;n<e;n++){var i=t[n];i.adapter!=i&&i.adapter.deleteOwnProperties&&i.adapter.deleteOwnProperties(),i.reset(),i.adapter!=i&&i.adapter.initAdapter()}},e.prototype.removeMovieClip=function(){this.adaptee.isAVMScene||(!this.adaptee.parent||Jk(this.adaptee._avmDepthID)<0||(this.adaptee.parent.adapter.removeChildAtDepth(this.adaptee._avmDepthID),this.scriptMaskee&&this.scriptMaskee.setMask(null),this.freeFromScript(),this._childrenByName={},this._depthToChilds={},this.makeGhost()))},e.prototype._updateMouseEnabled=function(t,e){this.adaptee.isAVMScene||t.isMouse&&(e?(this._mouseListenerCount++,this.adaptee.mouseEnabled=!0,this.adaptee.mouseChildren=!1,t.isButton&&(this._mouseButtonListenerCount++,this.adaptee.buttonMode=!0)):(this._mouseListenerCount--,this._mouseListenerCount<=0&&(this._mouseListenerCount=0,this.adaptee.mouseEnabled=!1,this.adaptee.mouseChildren=!0),t.isButton&&(this._mouseButtonListenerCount--,this._mouseButtonListenerCount<=0&&(this._mouseButtonListenerCount=0,this.adaptee.buttonMode=!1)))),this.enabled||(this.adaptee.mouseChildren=!1)},e.prototype.clone=function(){var t=Hk(this.adaptee.clone(),this._avm1Context);if("piratefont"==this.adaptee.name){var e=t.adaptee.timeline,n=e;n.frame_command_indices=[e.frame_command_indices[0]],n.frame_recipe=[e.frame_recipe[0]],n.keyframe_constructframes=[e.keyframe_constructframes[0]],n.keyframe_durations=[e.keyframe_durations[0]],n.keyframe_firstframes=[e.keyframe_firstframes[0]],n.keyframe_indices=[e.keyframe_indices[0]]}return t},e.prototype.attachCustomConstructor=function(){if(this.adaptee){var t=this.adaptee.avm1Symbol;if(t){this.alPut("__proto__",t._ownProperties.prototype.value);var e=this;this.executeConstructor=function(){t.alCall(e),e.updateAllEvents()}}}},e.prototype.executeScript=function(t){if(e.currentMCAssetNameSpace=this.adaptee.assetNamespace,KR.syncQueedTextfields(),t){if(this.adaptee.parent)for(var n=0;n<t.length;n++){var i=t[n],r=function(t){this._avm1Context.executeActions(t,this)}.bind(this,i.data);r.precedence=i.precedence,r.context=this.adaptee,r.call(this.adaptee)}}else{var o=this.adaptee.name.replace(/[^\w]/g,"");window.alert("actionsBlocks is empty, can not execute framescript"+o+this.adaptee.currentFrameIndex)}},e.prototype.stopAllSounds=function(){for(var t,e=this.alGetKeys(),n=0;n<e.length;n++){var i=this.alGetProperty(e[n]),r=i?i.value:null;r&&r._sound&&r._sound.isAsset&&r._sound.isAsset(D)&&r.stop()}for(n=this.adaptee.numChildren-1;n>=0;n--)(t=this.adaptee.getChildAt(n)).isAsset(Rl)&&t.adapter!==t&&t.adapter.freeFromScript()},e.prototype.freeFromScript=function(){this._locked||(this.hasSwappedDepth=!1,t.prototype.freeFromScript.call(this),this._mouseButtonListenerCount=0)},e.prototype.initAdapter=function(){for(var t in this._dropTarget="",this._mouseButtonListenerCount=0,e.currentMCAssetNameSpace=this.adaptee.assetNamespace,this.adaptee.timeline.avm1InitActions)this.executeScript(VF._scenegraphFactory.createFrameScripts(this.adaptee.timeline.avm1InitActions[t],0,"initActionsData"+t,this.adaptee.id));this.initEvents&&function(t,e,n){var i=Hk(t,e);n.variableName&&i.alPut("variable",n.variableName);var r,o,a,s,u,l,c=n.events;if(!c)return;for(var h=null,p=0;p<c.length;p++)for(var d in(r=c[p]).actionsBlock?(o=e.actionsDataFactory.createActionsData(r.actionsBlock,"s"+n.symbolId+"d"+n.depth+"e"+p),r.actionsBlock=null,r.compiled=o):o=r.compiled,a=$k.bind(null,o,i),s=r.flags,VR)u=parseInt(d),s&(0|(u|=0))&&(262144!=u?512!=u?1!=u?(l=VR[u]).eventName?(r.keyCode&&((h=new UR).keyCode=r.keyCode,r.keyCode<32&&jR[r.keyCode]&&(h.keyCode=jR[r.keyCode])),i._addOnClipEventListener(l,a,h)):Od.warning("ClipEvent: "+u+" not implemented"):t.onLoaded=a:t.onInitialize=a:t.onConstruct=a)}(this.adaptee,this._avm1Context,this.initEvents),this.attachCustomConstructor(),this.initialDepth=this.adaptee._avmDepthID,(this.adaptee.onLoaded||this.adaptee.onConstruct||this.adaptee.onInitialize||this.executeConstructor)&&Nl.add_loaded_action_to_queue(this.adaptee)},e.prototype.registerScriptObject=function(t,e){void 0===e&&(e=!0),t.adapter!=t&&t.adapter.setEnabled(!0);var n=t.name;if(n){this.context.swfVersion<8&&(n=n.toLowerCase());var i=this.alHasOwnProperty(n);if(e&&i){if(!this.alGetOwnProperty(n).isTextVar)return;this.alPut(n,Hk(t,this.context))}(!this._childrenByName[n]||this._childrenByName[n].adaptee&&null==this._childrenByName[n].adaptee.parent||this._childrenByName[n].adaptee&&this._childrenByName[n].adaptee._avmDepthID>t._avmDepthID)&&(this._childrenByName[n]=Hk(t,this.context),e||this.alPut(n,this._childrenByName[n]))}},e.prototype.unregisterScriptObject=function(t){if(!t.adapter._locked){var e=t.name;if(e){this.context.swfVersion<8&&(e=e.toLowerCase());var n=this.alGetOwnProperty(e);if(n&&n.value instanceof FR&&this.alDeleteOwnProperty(e),this._childrenByName[e]&&this._childrenByName[e].adaptee.id==t.id){for(var i=null,r=null,o=0;o<this.adaptee.numChildren;o++)(i=this.adaptee.getChildAt(o))!=t&&i.name&&i.name.toLowerCase()==e&&(!r||r._avmDepthID>i._avmDepthID)&&(r=i);r?this._childrenByName[e]=Hk(r,this.context):delete this._childrenByName[e]}}}},e.prototype.getLatestObjectForName=function(t){if(!this.alHasOwnProperty(t)){for(var e,n,i=0;i<this.adaptee.numChildren;i++)(e=this.adaptee.getChildAt(i)).name==t&&(!n||n._avmDepthID>e._avmDepthID)&&(n=e);n&&(this.context.swfVersion<8&&(t=t.toLowerCase()),this._childrenByName[t]=Hk(n,this.context),this.unregisteredColors[t]&&(this.unregisteredColors[t].changeTarget(n.adapter),this.unregisteredColors[t]=null))}},Object.defineProperty(e.prototype,"graphics",{get:function(){return this.adaptee.graphics},enumerable:!1,configurable:!0}),e.prototype.initAVM1SymbolInstance=function(e,n){var i=this;this._childrenByName=Object.create(null),this._depthToChilds=Object.create(null),t.prototype.initAVM1SymbolInstance.call(this,e,n),this.dragListenerDelegate=function(t){return i.dragListener(t)},this.stopDragDelegate=function(t){return i.stopDrag(t)},this.dynamicallyCreated=!1,this.adaptee=n,this._initEventsHandlers()},e.prototype._lookupChildByName=function(t){return this._childrenByName[t]},e.prototype._lookupChildInAS3Object=function(t){return Hk(this.adaptee.getChildByName(t),this.context)},Object.defineProperty(e.prototype,"__targetPath",{get:function(){var t=this.get_target(),e=this.adaptee.root,n="_level"+this.context.globals._getLevelForRoot(e);return"/"!=t?n+t.replace(/\//g,"."):n},enumerable:!1,configurable:!0}),e.prototype.getAwayJSID=function(){return this.adaptee.id},e.prototype.attachAudio=function(t){xd(t)||!1!==t&&console.warn("[AVM1MovieClip] attachAudio not implemented")},e.prototype.attachBitmap=function(t,e,n,i){if(void 0===n&&(n="auto"),void 0===i&&(i=!1),t){n=Sk(this.context,n),i=Ak(this.context,i),t.as3BitmapData.transparent=!0;var r=t.getBillboard(n,i);r.mouseEnabled=!1,this.addChildAtDepth(r,e)}else console.error("[AVM1MovieClip:attachBitmap] Bitmap not resolved! Skip attach for prevent crash",this.adaptee.id)},e.prototype._constructMovieClipSymbol=function(t,e){t=xk(this.context,t),e=xk(this.context,e);var n=mt.getAsset(t,this.adaptee.assetNamespace);if(n){var i=n.adaptee.clone();return i.name=e,Hk(i,this._avm1Context),i}},e.prototype.get$version=function(){return""},e.prototype.rgbaToArgb=function(t){return(255&t)<<24|(4278190080&t)>>>24<<16|(16711680&t)>>>16<<8|(65280&t)>>>8},e.prototype.attachMovie=function(t,e,n,i){if(this._constructMovieClipSymbol){e&&Nk(this.context,e)&&(e=e.value[0]);var r=this._constructMovieClipSymbol(t,e);if(r)return r.name||(r.name=""),n=vk(this.context,n),this.initChildMovie(r,e,n,i,!0)}},e.prototype.initChildMovie=function(t,e,n,i,r){void 0===r&&(r=!1);var o=this._childrenByName[e.toLowerCase()];t.reset(),t.name=e;var a=this.addChildAtDepth(t,Wk(n));i&&a._init(i),o&&o.avmColor&&o.avmColor.changeTarget(a),t.timeline&&t.timeline.isButton&&t.addButtonListeners(),a.dynamicallyCreated=!0,e&&this.registerScriptObject(t,r);var s=a.executeConstructor;return a.executeConstructor=null,s&&s(),a},e.prototype.beginFill=function(t,e){t=Ck(this.context,t),void 0===e&&(2==arguments.length?e=0:arguments.length<=1&&(e=100)),e=vk(this.context,e),this.graphics.beginFill(t,e/100)},e.prototype.beginBitmapFill=function(t,e,n,i){void 0===e&&(e=null),void 0===n&&(n=!0),void 0===i&&(i=!1);var r=lR(t);if(r){var o=xd(e)?null:iR(e);n=Ak(this.context,n),i=Ak(this.context,i),this.graphics.beginBitmapFill(r,o,n,i)}},e.prototype.beginGradientFill=function(t,e,n,i,r,o,a,s){void 0===o&&(o="pad"),void 0===a&&(a="rgb"),void 0===s&&(s=0);var u=this.context,l=ik.mapToJSArray(e,(function(t){return Ck(u,t)})),c=ik.mapToJSArray(n,(function(t){return vk(u,t)/100})),h=ik.mapToJSArray(i,(function(t){return vk(u,t)}));xd(r)&&console.warn("[AVM1MovieClip] beginGradientFill not fully implemented"),o=xk(u,o),a=xk(u,a),s=vk(u,s),this.graphics.beginGradientFill(t,l,c,h,null,o,a,s)},e.prototype._callFrame=function(t){var e;"string"==typeof t?(t=t.toLowerCase(),e=this.adaptee.timeline.getScriptForLabel(this.adaptee,t,!0)):"number"==typeof t&&(e=this.adaptee.timeline.get_script_for_frame(this.adaptee,t-1,!0)),e&&this.executeScript(e)},e.prototype.clear=function(){this.graphics.clear()},e.prototype._updateChildName=function(t,e,n){e!==n&&(e&&this._removeChildName(t,e),n&&this._addChildName(t,n))},e.prototype._removeChildName=function(t,e){if(this.context.isPropertyCaseSensitive||(e=e.toLowerCase()),this._childrenByName&&this._childrenByName[e]&&this._childrenByName[e]===t){var n=this._lookupChildInAS3Object(e);n?this._childrenByName[e]=n:delete this._childrenByName[e]}},e.prototype._addChildName=function(t,e){this.context.isPropertyCaseSensitive||(e=e.toLowerCase());var n=this._childrenByName[e];(!n||n.getDepth()>t.getDepth())&&(this._childrenByName[e]=t)},e.prototype.createEmptyMovieClip=function(t,e){t=xk(this.context,t);var n=VF._scenegraphFactory.createMovieClip();n.name=t,n.assetNamespace=this.adaptee.assetNamespace;var i=this.addChildAtDepth(n,Wk(e));return i.dynamicallyCreated=!0,this.registerScriptObject(n,!1),n.mouseEnabled=!1,i},e.prototype.createTextField=function(t,e,n,i,r,o){t=xk(this.context,t);var a=new Qp;a.name=t,a.textFormat=new cp,Hk(a,this._avm1Context);var s=this.addChildAtDepth(a,Wk(e));return this.registerScriptObject(a,!1),a.x=n,a.y=i,a.width=r,a.height=o,s.dynamicallyCreated=!0,s},e.prototype.get_currentframe=function(){return this.adaptee.currentFrameIndex+1},e.prototype.curveTo=function(t,e,n,i){t=vk(this.context,t),e=vk(this.context,e),n=vk(this.context,n),i=vk(this.context,i),this.graphics.curveTo(t,e,n,i)},e.prototype.setDropTarget=function(t){if(t){for(var e=[];t;)t.isAVMScene?t=null:(null!=t.name&&e.push(t.name),t=t.parent);for(var n=e.length,i="";n>0;)""!=e[--n]&&(i+="/"),i+=e[n];this._dropTarget=i}else this._dropTarget=""},e.prototype.get_droptarget=function(){return this._dropTarget},e.prototype.duplicateMovieClip=function(t,e,n){if((t=xk(this.context,t))==this.adaptee.name)return this;var i=this.get_parent();i||(console.warn("[AVM1MovieClip] duplicateMovieClip could not get parent"),i=this.context.resolveTarget(null));var r=this.clone().adaptee,o=i.initChildMovie(r,t,e,null,!1);o.placeObjectTag=this.placeObjectTag,o.initEvents=this.initEvents;var a=r.transform.matrix3D,s=this.adaptee.transform.matrix3D._rawData;a._rawData[0]=s[0],a._rawData[1]=s[1],a._rawData[4]=s[4],a._rawData[5]=s[5],a._rawData[12]=s[12],a._rawData[13]=s[13],r.transform.invalidateComponents(),r.alpha=this.adaptee.alpha,r.blendMode=this.adaptee.blendMode,r.cacheAsBitmap=this.adaptee.cacheAsBitmap;var u=this.getFilters();return u&&o.setFilters(new ik(this.context,u.value.slice())),n&&o._init(n),o},e.prototype.endFill=function(){this.graphics.endFill()},e.prototype.getForceSmoothing=function(){return console.warn("[AVM1MovieClip] getForceSmoothing"),!1},e.prototype.setForceSmoothing=function(t){t=Ak(this.context,t),console.warn("[AVM1MovieClip] setForceSmoothing")},e.prototype.get_framesloaded=function(){return console.warn("[AVM1MovieClip] get_framesloaded"),this.adaptee.numFrames},e.prototype.getBounds=function(t){if(t){var e=this._stage.pickGroup.getBoundsPicker(this.node.partition).getBoxBounds(t.node,!0,!0);if(e)return JR(e,this.context);console.warn("[AVM1 MovieClip::getBounds] Bounds is null!",this.adaptee.id)}},e.prototype.getBytesLoaded=function(){return this.adaptee.currentFrameIndex>=0?100:-1},e.prototype.getBytesTotal=function(){return 100},e.prototype.getInstanceAtDepth=function(t){var e=this.getDepthToChild(Wk(t));return e?Hk(e,this.context):null},e.prototype.getNextHighestDepth=function(){return this.context.swfVersion<7?0:Jk(this._nextHighestDepth)},e.prototype.getRect=function(t){if(t&&t.node)return JR(this._stage.pickGroup.getBoundsPicker(this.node.partition).getBoxBounds(t.node,!1,!0),this.context)},e.prototype.getSWFVersion=function(){return this.context.swfVersion},e.prototype.getTextSnapshot=function(){console.warn("[AVM1MovieClip] getTextSnapshot")},e.prototype.getURL=function(t,e,n){0!==(t=String(t)).toLowerCase().indexOf("fscommand:")?window.open(t,e):console.warn("[AVM1MovieClip] fsCommand not implemented ")},e.prototype.globalToLocal=function(t){if(t){var e=QL(t);this.node.globalToLocal(e,e),GL(e,t)}},e.prototype.gotoAndPlay=function(t){if(!this.protoTypeChanged&&null!=t){if(Array.isArray(t)){if(0==t.length)return;t=t[0]}if(t instanceof ik){if(!t.value||0==t.value.length)return;t=t.value[0]}if("string"==typeof t){var e=t.toLowerCase();if(null==this.adaptee.timeline._labels[e])return t=parseInt(t),void(isNaN(t)||(this.adaptee.currentFrameIndex=t-1,this.adaptee.play()))}"number"==typeof t&&t<=0||(this.adaptee.play(),this._gotoFrame(t))}},e.prototype.gotoAndStop=function(t){if(!this.protoTypeChanged&&null!=t){if(Array.isArray(t)){if(0==t.length)return;t=t[0]}if(t instanceof ik){if(!t.value||0==t.value.length)return;t=t.value[0]}"number"==typeof t&&t<=0||(this.adaptee.stop(),this._gotoFrame(t))}},e.prototype._gotoFrame=function(t){if("number"==typeof t&&t%1!=0&&(t=t.toString()),"string"==typeof t){var e=t.toLowerCase();if(null==this.adaptee.timeline._labels[e])return t=parseInt(t),void(isNaN(t)||(this.adaptee.currentFrameIndex=t-1));this.adaptee.jumpToLabel(e)}else this.adaptee.currentFrameIndex=t-1},e.prototype.getHitArea=function(){return this._hitArea},e.prototype.setHitArea=function(t){this._hitArea=t;var e=t?t.node:null;e&&!e.container.isAsset(Rl)&&(e=null)},e.prototype.hitTest=function(t,e,n){if(arguments.length<2){var i=t;return"string"==typeof i&&(i=this.context.resolveTarget(i)),!(null==i||!i.node)&&uR.avmStage.pickGroup.getBoundsPicker(this.node.partition).hitTestObject(uR.avmStage.pickGroup.getBoundsPicker(i.node.partition))}t=vk(this.context,t),e=vk(this.context,e);var r=this.get_root();return r?(t+=r.get_x(),e+=r.get_y(),n=Ak(this.context,n),this._stage.pickGroup.getBoundsPicker(this.node.partition).hitTestPoint(t,e,n)):(this._hitReportCount<10&&(console.warn("[AVM1MovieClip:: hitTest] Root return undef! Return false to prevent crash!",this.adaptee.id),this._hitReportCount++,10===this._hitReportCount&&console.warn("[AVM1MovieClip:: hitTest] To many reports, supress other!")),!1)},e.prototype.lineGradientStyle=function(t,e,n,i,r,o,a,s){void 0===o&&(o="pad"),void 0===a&&(a="rgb"),void 0===s&&(s=0);var u=this.context,l=ik.mapToJSArray(e,(function(t){return Ck(u,t)})),c=ik.mapToJSArray(n,(function(t){return vk(u,t)/100})),h=ik.mapToJSArray(i,(function(t){return vk(u,t)}));o=xk(u,o),a=xk(u,a),s=vk(u,s),this.graphics.lineGradientStyle(t,l,c,h,null,o,a,s)},e.prototype.lineStyle=function(t,n,i,r,o,a,s,u){void 0===t&&(t=NaN),void 0===n&&(n=0),void 0===i&&(i=100),void 0===r&&(r=!1),void 0===o&&(o="normal"),void 0===a&&(a="round"),void 0===s&&(s="round"),void 0===u&&(u=3),t=vk(this.context,t),n=Ck(this.context,n),r=Ak(this.context,r),o=xk(this.context,o);var l=e.capStyleMapStringToInt[xk(this.context,a)],c=e.jointStyleMapStringToInt[xk(this.context,s)];u=vk(this.context,u),this.graphics.lineStyle(t,n,i/100,r,e.noScaleDictionary[o],l,c,u)},e.prototype.lineTo=function(t,e){t=qk(vk(this.context,t)),e=qk(vk(this.context,e)),this.graphics.lineTo(t,e)},e.prototype.loadMovie=function(t,e){new WR(this.context).loadMovieAt(t,e,this).then((function(t){}))},e.prototype.loadVariables=function(t,e){this.context.actions._loadVariables(this,t,e)},e.prototype.localToGlobal=function(t){if(t){var e=QL(t);this.node.localToGlobal(e,e),GL(e,t)}},e.prototype.get_lockroot=function(){return this._lockroot},e.prototype.set_lockroot=function(t){this._lockroot=Ak(this.context,t)},e.prototype.moveTo=function(t,e){t=qk(vk(this.context,t)),e=qk(vk(this.context,e)),this.graphics.moveTo(t,e)},e.prototype.nextFrame=function(){this.adaptee.stop(),++this.adaptee.currentFrameIndex},e.prototype.nextScene=function(){console.warn("[AVM1MovieClip] nextScene not implemented")},e.prototype.play=function(){this.adaptee.play()},e.prototype.prevFrame=function(){this.adaptee.stop(),--this.adaptee.currentFrameIndex},e.prototype.prevScene=function(){console.warn("[AVM1MovieClip] prevScene not implemented")},e.prototype.setMask=function(t){null!=t?(t.scriptMaskee=this,(t=this.context.resolveTarget(t))&&(this.adaptee.scriptMask=t.adaptee)):this.adaptee.scriptMask=null},e.prototype.startDrag=function(t,n,i,r,o){var a,s,u=this._stage;if(e.currentDraggedMC&&e.currentDraggedMC!=this&&e.currentDraggedMC.stopDrag(),e.currentDraggedMC=this,t=Ak(this.context,t),this._dragBounds=null,n>r&&(r=(a=[n,r])[0],n=a[1]),i>o&&(i=(s=[o,i])[0],o=s[1]),arguments.length>1&&(n=vk(this.context,n),i=vk(this.context,i),r=vk(this.context,r),o=vk(this.context,o),this._dragBounds=new tt(n,i,r-n,o-i)),!this.isDragging){this.isDragging=!0;var l=u.view.getNode(this.adaptee.parent),c=u.getLocalMouseX(l),h=u.getLocalMouseY(l);this.startDragPoint=this.startDragPoint||new N,this.startDragPoint.setTo(c,h),t&&(this.adaptee.x=this.startDragPoint.x,this.adaptee.y=this.startDragPoint.y),this._dragBounds&&this.checkBounds(),this.startDragMCPosition.x=this.adaptee.x,this.startDragMCPosition.y=this.adaptee.y;var p=this.node;u.view.stage.addEventListener(Ll.MOUSE_MOVE,this.dragListenerDelegate);var d=this.adaptee.getAbstraction(p.partition);d.setParent(p);var f=d.getAbstraction(u.mousePicker.pickGroup).pickingCollision;f.rootNode=p,u.mouseManager.startDragObject(f)}},e.prototype.dragListener=function(t){if(this.adaptee.parent){var e=this._stage.view.getNode(this.adaptee.parent),n=this._stage.getLocalMouseX(e),i=this._stage.getLocalMouseY(e);this.adaptee.x=this.startDragMCPosition.x+(n-this.startDragPoint.x),this.adaptee.y=this.startDragMCPosition.y+(i-this.startDragPoint.y),this._dragBounds&&this.checkBounds()}},e.prototype.checkBounds=function(){this.adaptee.x<this._dragBounds.left&&(this.adaptee.x=this._dragBounds.left),this.adaptee.x>this._dragBounds.right&&(this.adaptee.x=this._dragBounds.right),this.adaptee.y<this._dragBounds.top&&(this.adaptee.y=this._dragBounds.top),this.adaptee.y>this._dragBounds.bottom&&(this.adaptee.y=this._dragBounds.bottom)},e.prototype.stop=function(){return this.adaptee.stop()},e.prototype.stopDrag=function(t){e.currentDraggedMC&&e.currentDraggedMC!=this&&e.currentDraggedMC.stopDrag(),this.isDragging=!1,e.currentDraggedMC=null,this._stage.mousePicker.dragNode=null,this._stage.mouseManager.stopDragObject(),this._stage.view.stage.removeEventListener(Ll.MOUSE_MOVE,this.dragListenerDelegate)},e.prototype.swapChildrenToDepth=function(t,e,n,i){e&&this._depthToChilds[n]&&(e=this.getDepthToChild(n).adapter),delete this.adaptee._sessionID_childs[t.adaptee._sessionID],t.adaptee._avmDepthID=n,t.adaptee._sessionID=-1,this.adaptee.addChildAt(t.adaptee,this.getIndexFromDepthOrTop(n)),t.hasSwappedDepth=!0,this.setDepthToChild(n,t.adaptee),e?(delete this.adaptee._sessionID_childs[e.adaptee._sessionID],this.setDepthToChild(i,e.adaptee),e.adaptee._avmDepthID=i,e.adaptee._sessionID=-1,this.adaptee.addChildAt(e.adaptee,this.getIndexFromDepthOrTop(i)),e.hasSwappedDepth=!0):this.setDepthToChild(i),t&&t.updateAllEvents(),e&&e.updateAllEvents(),this.adaptee.name&&parent&&(this.getLatestObjectForName(t.adaptee.name),e&&this.getLatestObjectForName(e.adaptee.name))},e.prototype.swapDepths=function(t){if(!this.adaptee.isAVMScene&&this.get_parent()){var e=this.get_parent(),n=null;if(e)if(void 0!==t){if("number"==typeof t){if(t=Wk(t),this.adaptee._avmDepthID==t)return;(n=e.getDepthToChild(t))&&(n=n.adapter)}else if(t.adaptee){if(t.get_parent()!=e)return;t=(n=t).adaptee._avmDepthID}e.swapChildrenToDepth(this,n,t,this.adaptee._avmDepthID)}else console.warn("[AVM1MovieClip] swapDepth called with undefined as target depth");else console.warn("[AVM1MovieClip] swapDepth called for object with no parent")}},e.prototype.getTabChildren=function(){return jk(this).tabChildren},e.prototype.setTabChildren=function(t){jk(this).tabChildren=Ak(this.context,t)},e.prototype.get_totalframes=function(){return this.adaptee.numFrames},e.prototype.getTrackAsMenu=function(){return console.warn("[AVM1MovieClip] getTrackAsMenu not implemented"),jk(this).trackAsMenu},e.prototype.setTrackAsMenu=function(t){console.warn("[AVM1MovieClip] setTrackAsMenu not implemented"),jk(this).trackAsMenu=Ak(this.context,t)},e.prototype.unloadMovie=function(){var t=this.adaptee;this.adaptee.constructedKeyFrameIndex=0,this.adaptee.stop(),t.removeChildren(0,t.numChildren),(this.dynamicallyCreated||this.hasSwappedDepth)&&t.parent&&t.parent.adapter&&t.parent.adapter.unregisterScriptObject(t)},e.prototype.getUseHandCursor=function(){return this.adaptee.useHandCursor},e.prototype.setUseHandCursor=function(t){this.adaptee&&(this.adaptee.useHandCursor=t)},e.prototype.setParameters=function(t){for(var e in t)this.alHasProperty(e)||this.alPut(e,t[e])},e.prototype._resolveLevelNProperty=function(t){if("_level0"===t||"_level"===t)return this.context.resolveRoot();if("_root"===t)return this.context.resolveRoot();if(0===t.indexOf("_level")){var e=t.substring(6),n=0|e;if(n>0&&e==n)return this.context.resolveLevel(n)}return null},e.prototype._getCachedPropertyResult=function(t){return this._cachedPropertyResult?this._cachedPropertyResult.value=t:this._cachedPropertyResult={flags:65,value:t},this._cachedPropertyResult},e.prototype.alGetOwnProperty=function(e){var n=t.prototype.alGetOwnProperty.call(this,e);if(n)return n;if("_"===e[0])if("l"===e[1]&&0===e.indexOf("_level")||"r"===e[1]&&0===e.indexOf("_root")){var i=this._resolveLevelNProperty(e);if(i)return this._getCachedPropertyResult(i)}else if(e.toLowerCase()in cR)return t.prototype.alGetOwnProperty.call(this,e.toLowerCase());if(Uk(this)){var r=this._lookupChildByName(e);if(r)return this._getCachedPropertyResult(r)}},e.prototype.alGetOwnPropertiesKeys=function(){var e=t.prototype.alGetOwnPropertiesKeys.call(this);if(!Uk(this))return e;for(var n=Object.assign(Object.create(null),this._childrenByName),i=0,r=e;i<r.length;i++){n[r[i]]=!0}return Object.keys(n)},e.prototype._init=function(t){var e=this;t instanceof jL&&Pk(t,(function(n){e.alPut(n,t.alGet(n))}),null)},e.prototype._initEventsHandlers=function(){this.bindEvents(YR)},e.currentMCAssetNameSpace="",e.currentDraggedMC=null,e.pokiSDKonStopActionChildName=null,e.pokiSDKonStopAction=null,e.capStyleMapStringToInt={none:0,round:1,square:2},e.jointStyleMapStringToInt={round:0,bevel:1,miter:2},e.noScaleDictionary={normal:$o.NORMAL,none:$o.NONE,vertical:$o.VERTICAL,horizontal:$o.HORIZONTAL},e}(FR);function ZR(t){Uk(t)&&t.updateAllEvents()}var tF,eF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return FL(e,t),e.createAVM1Class=function(t){return Yk(t,!0,e,["initialize"],[])},e.initialize=function(t,e){var n=new UL(65,new ik(t,[]));e.alSetOwnProperty("_listeners",n),n=new UL(65,new gk(t,(function(e){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];this.alGet("_listeners")instanceof ik&&Qk(t,this,e,n)}))),e.alSetOwnProperty("broadcastMessage",n),n=new UL(65,new gk(t,(function(t){var e=this.alGet("_listeners");return e instanceof ik&&(e.value.push(t),ZR(this),!0)}))),e.alSetOwnProperty("addListener",n),n=new UL(65,new gk(t,(function(t){var e=this.alGet("_listeners");if(!(e instanceof ik))return!1;var n=e.value,i=n.indexOf(t);return!(i<0)&&(n.splice(i,1),ZR(this),!0)}))),e.alSetOwnProperty("removeListener",n)},e}(jL),nF=["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"],iF=function(t){function e(e){var n=t.call(this,e)||this;n.alPrototype=e.builtins.Object.alGetPrototypeProperty();var i=null;return nF.forEach((function(t){i=new UL(131,null,{alCall:function(){return null}}),n.alSetOwnProperty(t,i)}),n),n}return FL(e,t),e}(jL),rF=function(t){function e(e){var n=t.call(this,e)||this;return n.alPrototype=e.builtins.Object.alGetPrototypeProperty(),Fk(n,{sandboxType:{get:n.getSandboxType},allowDomain:{value:n.allowDomain},allowInsecureDomain:{value:n.allowInsecureDomain},loadPolicyFile:{value:n.loadPolicyFile}}),n}return FL(e,t),e.prototype.getSandboxType=function(){return null},e.prototype.allowDomain=function(t){t=Sk(this.context,t)},e.prototype.allowInsecureDomain=function(t){t=Sk(this.context,t)},e.prototype.loadPolicyFile=function(t){t=Sk(this.context,t)},e}(jL),oF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return FL(e,t),e.alInitStatic=function(t){this._capabilities=new iF(t),this._security=new rF(t)},e.createAVM1Class=function(t){return Yk(t,!1,e,["capabilities#","security#"],[])},e.getCapabilities=function(t){return t.getStaticState(e)._capabilities},e.getSecurity=function(t){return t.getStaticState(e)._security},e}(jL),aF=[-1,37,39,36,35,45,46,-1,8,-1,-1,-1,-1,13,38,40,33,34,9,27],sF={1:VR[8192],2:VR[16384],4:VR[1024],8:VR[2048],64:VR[4096],160:VR[32768],272:VR[65536]},uF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return FL(e,t),e.createAVM1Class=function(t){return Yk(t,!0,e,[],["$version#","_alpha#","getAwayJSID","attachAudio","attachBitmap","attachMovie","beginFill","beginBitmapFill","beginGradientFill","blendMode#","cacheAsBitmap#","_callFrame","clear","createEmptyMovieClip","createTextField","_currentframe#","curveTo","_droptarget#","duplicateMovieClip","enabled#","endFill","filters#","_framesloaded#","_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","_root#","_rotation#","scale9Grid#","scrollRect#","setMask","_soundbuftime#","startDrag","stop","stopDrag","swapDepths","tabChildren#","tabEnabled#","tabIndex#","_target#","_totalframes#","trackAsMenu#","toString","unloadMovie","_url#","useHandCursor#","_visible#","_width#","_x#","_xmouse#","_xscale#","_y#","_ymouse#","_yscale#"])},e.prototype.freeFromScript=function(){t.prototype.freeFromScript.call(this),this.adaptee.mouseEnabled=!0,this.adaptee.mouseChildren=!1},e.prototype._updateMouseEnabled=function(t,e){!this.adaptee.isAVMScene&&t.isMouse&&(this.adaptee.mouseEnabled=!0,this.adaptee.mouseChildren=!1,e?(this._mouseListenerCount++,t.isButton&&(this._mouseButtonListenerCount++,this.adaptee.buttonMode=!0)):(this._mouseListenerCount--,this._mouseListenerCount<=0&&(this._mouseListenerCount=0),t.isButton&&(this._mouseButtonListenerCount--,this._mouseButtonListenerCount<=0&&(this._mouseButtonListenerCount=0,this.adaptee.buttonMode=!1))))},e.prototype.initAVM1SymbolInstance=function(e,n){t.prototype.initAVM1SymbolInstance.call(this,e,n),this._requiredListeners=Object.create(null),this._actions=this.adaptee.timeline.avm1ButtonActions;for(var i=null,r=null,o=!1,a=this._actions.length,s=0;s<a;s++)if((i=this._actions[s]).actionsBlock||(i.actionsBlock=e.actionsDataFactory.createActionsData(i.actionsData,"s"+this.adaptee.id+"e"+s)),i.keyCode,0!=i.stateTransitionFlags){for(var u in r=this._mouseEventHandler.bind(this,i.stateTransitionFlags),o=!1,sF)i.stateTransitionFlags&parseInt(u)&&(o=!0,this._requiredListeners[sF[u].eventName]={handler:sF[u],boundListener:r});o||console.warn("unknown button event flag",i.stateTransitionFlags)}this.adaptee.addButtonListeners(),this._initEventsHandlers(),this._addListeners()},e.prototype.initAdapter=function(){t.prototype.initAdapter.call(this),this._addListeners()},e.prototype.stop=function(){return this.adaptee.stop()},e.prototype.getEnabled=function(){return this.enabled},e.prototype.setEnabled=function(t){this.adaptee.buttonEnabled=t,this.adaptee.mouseEnabled=t,t!=this.enabled&&(this.enabled=t,this.setEnabledListener(t))},e.prototype.getTrackAsMenu=function(){return!1},e.prototype.setTrackAsMenu=function(t){},e.prototype._addListeners=function(){for(var t in this._requiredListeners)this._eventHandlers[t]=this._requiredListeners[t].handler,this._eventsListeners[t]=this._requiredListeners[t].boundListener;this.setEnabledListener(this.enabled)},e.prototype._removeListeners=function(){for(var t in this._requiredListeners)this.adaptee.removeEventListener(t,this._requiredListeners[t].boundListener)},e.prototype._keyDownHandler=function(t){for(var e=this._actions,n=e.length,i=0;i<n;i++){var r=e[i];r.keyCode&&((r.keyCode<32&&aF[r.keyCode]===t.axGetPublicProperty("keyCode")||r.keyCode===t.axGetPublicProperty("charCode"))&&this._runAction(r))}},e.prototype._mouseEventHandler=function(t){for(var e=this._actions,n=e.length,i=0;i<n;i++){var r=e[i];r.stateTransitionFlags===t&&this._runAction(r)}},e.prototype._runAction=function(t){var e=this._avm1Context;this.adaptee.parent&&e.executeActions(t.actionsBlock,Hk(this.adaptee.parent,this.context))},e.prototype._initEventsHandlers=function(){this.bindEvents(qR)},e}($R),lF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return FL(e,t),e.createAVM1Class=function(t){return Yk(t,!0,e,[],["getRGB","getTransform","setRGB","setTransform"],null,e.prototype.avm1Constructor)},e.prototype.avm1Constructor=function(t){t&&(this._target=this.context.resolveTarget(t),this._target&&this._target.adaptee&&!this._target.adaptee.isAVMScene&&(this._target.avmColor=this,this._targetAwayObject=this._target.adaptee))},e.prototype.changeTarget=function(t){t&&t instanceof FR?(this._target=t,this._target.avmColor=this,this._target._ctBlockedByScript=!0,this._targetAwayObject=this._target.adaptee):this._target=null},e.prototype.getRGB=function(){var t=e.prototype.getTransform.call(this);return t?t.getRgb():null},e.prototype.getTransform=function(){return this._targetAwayObject?tR.fromAwayColorTransform(this.context,this._targetAwayObject.transform.colorTransform):null},e.prototype.setRGB=function(t){var n=e.prototype.getTransform.call(this);n&&(n.setRgb(t),e.prototype.setTransform.call(this,n)),this._target&&(this._target._ctBlockedByScript=!0)},e.prototype.setTransform=function(t){if(this._targetAwayObject&&t){var e=t;t instanceof tR||t instanceof jL&&(e=function(t){var e=t.context;if(!(t instanceof jL))return new tR(e,1,1,1,1,0,0,0,0);var n=t.alGet("alphaOffset");null==n&&(n=t.alGet("ab"));var i=t.alGet("alphaMultiplier");null==i&&null!=(i=t.alGet("aa"))&&(i/=100);var r=t.alGet("redOffset");null==r&&(r=t.alGet("rb"));var o=t.alGet("redMultiplier");null==o&&null!=(o=t.alGet("ra"))&&(o/=100);var a=t.alGet("greenOffset");null==a&&(a=t.alGet("gb"));var s=t.alGet("greenMultiplier");null==s&&null!=(s=t.alGet("ga"))&&(s/=100);var u=t.alGet("blueOffset");null==u&&(u=t.alGet("bb"));var l=t.alGet("blueMultiplier");return null==l&&null!=(l=t.alGet("ba"))&&(l/=100),new tR(e,Dk(e,$L(o,1)),Dk(e,$L(s,1)),Dk(e,$L(l,1)),Dk(e,$L(i,1)),Dk(e,$L(r,0)),Dk(e,$L(a,0)),Dk(e,$L(u,0)),Dk(e,$L(n,0)))}(t)),e&&(this._targetAwayObject.transform.colorTransform._rawData[0]=e._rawData[0],this._targetAwayObject.transform.colorTransform._rawData[1]=e._rawData[1],this._targetAwayObject.transform.colorTransform._rawData[2]=e._rawData[2],this._targetAwayObject.transform.colorTransform._rawData[3]=e._rawData[3],this._targetAwayObject.transform.colorTransform._rawData[4]=e._rawData[4],this._targetAwayObject.transform.colorTransform._rawData[5]=e._rawData[5],this._targetAwayObject.transform.colorTransform._rawData[6]=e._rawData[6],this._targetAwayObject.transform.colorTransform._rawData[7]=e._rawData[7],this._targetAwayObject.transform.invalidateColorTransform(),this._targetAwayObject.invalidate(),this._targetAwayObject._invalidateHierarchicalProperty(gr.COLOR_TRANSFORM))}this._target&&(this._target._ctBlockedByScript=!0)},e}(jL),cF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return FL(e,t),e.createAVM1Class=function(t){return Yk(t,!1,e,["show","hide"],[])},e.bindStage=function(t,n,i,r){e.mouseButtonsState[1]=0,e.mouseButtonsState[4]=0,e.mouseButtonsState[2]=0;var o=i.view.stage;e.mouseDownDelegate&&o.removeEventListener(Ll.MOUSE_DOWN,e.mouseDownDelegate),e.mouseMoveDelegate&&o.removeEventListener(Ll.MOUSE_MOVE,e.mouseMoveDelegate),e.mouseOutDelegate&&o.removeEventListener(Ll.MOUSE_OUT,e.mouseOutDelegate),e.mouseUpDelegate&&o.removeEventListener(Ll.MOUSE_UP,e.mouseUpDelegate),e.mouseDownDelegate=function(t){var i,r=null!==(i=t.buttons)&&void 0!==i?i:0;e.mouseButtonsState[1&r]=1,e.mouseButtonsState[2&r]=1,e.mouseButtonsState[4&r]=1,4!==r&&Mk(n,"broadcastMessage",["onMouseDown"])},e.mouseMoveDelegate=function(t){Mk(n,"broadcastMessage",["onMouseMove"])},e.mouseOutDelegate=function(t){Mk(n,"broadcastMessage",["onMouseOut"])},e.mouseUpDelegate=function(t){var i,r=null!==(i=t.buttons)&&void 0!==i?i:0;e.mouseButtonsState[1&r]=1,e.mouseButtonsState[2&r]=1,e.mouseButtonsState[4&r]=1,4!==r&&Mk(n,"broadcastMessage",["onMouseUp"])},o.addEventListener(Ll.MOUSE_DOWN,e.mouseDownDelegate),o.addEventListener(Ll.MOUSE_MOVE,e.mouseMoveDelegate),o.addEventListener(Ll.MOUSE_OUT,e.mouseOutDelegate),o.addEventListener(Ll.MOUSE_UP,e.mouseUpDelegate)},e.hide=function(){VF.instance.Stage.avmStage.mouseManager.showCursor=!1},e.show=function(){VF.instance.Stage.avmStage.mouseManager.showCursor=!0},e.mouseButtonsState=((tF={})[1]=0,tF[4]=0,tF[2]=0,tF),e.mouseDownDelegate=null,e.mouseMoveDelegate=null,e.mouseOutDelegate=null,e.mouseUpDelegate=null,e}(jL),hF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return FL(e,t),e.createAVM1Class=function(t){return Yk(t,!0,e,[],["loadClip","unloadClip","getProgress"],null,e.prototype.avm1Constructor)},e.prototype.avm1Constructor=function(){eF.initialize(this.context,this)},e.prototype.loadClip=function(t,e){var n=this;if("number"==typeof e){if(0===e)return!1}else if(!this.context.resolveTarget(e))return!1;var i=new WR(this.context);if(this._loaderHelper=i,this._target=null,!t)return!1;var r=e;return 0!==t.indexOf("http://")&&0!==t.indexOf("https://")&&(t=this.context.globals.SWF_BASE_URL+t),i.loadMovieAt(t,"get",r).then((function(t){t?(Mk(n,"broadcastMessage",["onLoadComplete",e]),setTimeout((function(){Mk(n,"broadcastMessage",["onLoadInit",e])}))):console.warn("load - content is null")})),!0},e.prototype.unloadClip=function(t){return!0},e.prototype.getProgress=function(t){return 0},e}(jL);function pF(t,e,n,i,r,o){var a=new yt(e),s=a.url||"",u=s.replace(/\?.*$/,""),l=kg(s,null);if(l){if(l.supressLoad)return void console.log("[LOADER] Load supressed ",l.url);console.log("[LOADER] Override loading url:",l.url),a.url=l.url}else console.log("[LOADER] start loading the url:",u);n&&(a.method=n),r&&(a.data="application/x-www-form-urlencoded"===i?new ht(r):r);var c=new pt;c.dataFormat="text";var h=function(e){c.removeEventListener(K.LOAD_COMPLETE,h),Qk(t,o,"onData",[c.data])};c.addEventListener(K.LOAD_COMPLETE,h),o._as3Loader=c,l&&l.supressErrors&&c.addEventListener(K.LOAD_ERROR,(function(t){console.log("[LOADER] Error supressed by redirect rule as empty complete events!",t),c.dispatchEvent(new K(K.LOAD_COMPLETE,c))})),c.load(a)}var dF,fF=function(t){function e(e){var n=t.call(this,e)||this;return n.alSetOwnPrototypeProperty(new gF(e,n)),n}return FL(e,t),e.prototype.alConstruct=function(t){var e=new jL(this.context);return e.alPrototype=this.alGetPrototypeProperty(),e.isAVM1DataObject=!0,e},e.prototype.alCall=function(t,e){return this.alConstruct(e)},e}(VL),gF=function(t){function e(e,n){var i=t.call(this,e)||this;return Fk(i,{constructor:{value:n,writable:!0},toString:{value:i._toString},load:{value:i.load},onData:{value:i.defaultOnData},decode:{value:i.decode},send:{value:i.load},sendAndLoad:{value:i.sendAndLoad}}),i}return FL(e,t),e.prototype.getBytesLoaded=function(){if(this._as3Loader)return this._as3Loader.bytesLoaded},e.prototype.getBytesTotal=function(){if(this._as3Loader)return this._as3Loader.bytesTotal},e.prototype.load=function(t){return!!(t=Sk(this.context,t))&&(pF(this.context,t,null,null,null,this),!0)},e.prototype.defaultOnData=function(t){xd(t)?Qk(this.context,this,"onLoad",[!1]):(e.prototype.decode.call(this,t),this.alPut("loaded",!0),Qk(this.context,this,"onLoad",[!0]))},e.prototype.decode=function(t){t=Sk(this.context,t);var e=new ht(t);for(var n in e.variables)this.alPut(n,e.variables[n])},e.prototype._toString=function(){var t={};for(var e in this._ownProperties)t[e]=this.alGet(e);return new URLSearchParams(t).toString()},e.prototype.send=function(t,e,n){return t=Sk(this.context,t),n=xd(n)?"POST":Sk(this.context,n),!1},e.prototype.sendAndLoad=function(t,e,n){if(t=Sk(this.context,t),n=xd(n)?"POST":Sk(this.context,n),!(t&&e instanceof jL))return!1;if(!e.isAVM1DataObject)return!1;var i=this.alGet("contentType");i=xd(i)?"application/x-www-form-urlencoded":Sk(this.context,i);var r=xk(this.context,this);return pF(this.context,t,n,i,r,e),!0},e}(jL),_F=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return FL(e,t),e.createAVM1Class=function(t){return Yk(t,!0,e,[],["attachSound","duration#","getBytesLoaded","getBytesTotal","loadSound","getPan","setPan","getTransform","setTransform","getVolume","setVolume","start","stop","onSoundComplete"],null,e.prototype.avm1Constructor)},e.prototype.avm1Constructor=function(t){this._target=this.context.resolveTarget(t),this._sound=null,this._channel=null,this._playAfterLoading=!1,this._assetNameSpace=$R.currentMCAssetNameSpace},e.prototype.alPut=function(e,n){t.prototype.alPut.call(this,e,n),e&&"onsoundcomplete"==e.toLowerCase()&&this.onSoundComplete(n)},e.prototype.alDeleteProperty=function(e){return t.prototype.alDeleteProperty.call(this,e),e&&"onsoundcomplete"==e.toLowerCase()&&this.onSoundComplete(),!0},e.prototype.attachSound=function(t){if("string"==typeof t||"number"==typeof t){var e=mt.getAsset(t,this._assetNameSpace);e&&(this._sound=e.clone(),this._sound&&(this.soundCompleteInternal=this.soundCompleteInternal.bind(this)))}},e.prototype.soundCompleteInternal=function(){this._onCompleteCallback&&this._onCompleteCallback()},e.prototype.onSoundComplete=function(t){void 0===t&&(t=null);var e=this;this._onCompleteCallback=null,t&&(this._onCompleteCallback=function(){t.alCall(e)}),this._sound},e.prototype.loadSound=function(t,e){var n=this;e?(this._playAfterLoading=!0,console.warn("[AVM1Sound] - loadSound called with isStreaming=true, but streaming not implemented yet",t,e)):this._playAfterLoading=!1;var i=new gt;i.addEventListener(d.ASSET_COMPLETE,(function(t){return n.onAssetComplete(t)})),i.addEventListener(H.LOADER_COMPLETE,(function(t){return n.onLoadComplete(t)})),i.addEventListener(K.LOAD_ERROR,(function(t){return n.onLoadError(t)})),i.load(new yt(t),null,t,new xt)},e.prototype.onAssetComplete=function(t){var e=t.asset;e.isAsset(D)&&(this._sound=e,this._playAfterLoading&&this._sound.play(0))},e.prototype.onLoadComplete=function(t){this._sound||console.warn("[AVM1Sound] - loadSound: Soundloading is complete, but no WaveAudio was created.")},e.prototype.onLoadError=function(t){console.warn("[AVM1Sound] - loadSound: onLoadError")},e.prototype.getBytesLoaded=function(){return console.warn("AVM1Sound.getBytesLoaded"),0},e.prototype.getBytesTotal=function(){return console.warn("AVM1Sound.getBytesTotal"),1},e.prototype.getDuration=function(){return console.warn("AVM1Sound.getDuration"),0},e.prototype.getPan=function(){return 0},e.prototype.setPan=function(t){},e.prototype.getTransform=function(){return console.warn("AVM1Sound.getTransform"),null},e.prototype.setTransform=function(t){console.warn("AVM1Sound.setTransform")},e.prototype.getVolume=function(){return this._sound?100*this._sound.volume:(console.warn("AVM1Sound.getVolume called, but no WaveAudio set"),100)},e.prototype.setVolume=function(t){this._sound||this._target?(this._target&&this._target.adaptee&&(this._target.adaptee.soundVolume=t/100),this._sound&&(this._sound.volume=t/100)):S.setVolume(t)},e.prototype.start=function(t,e){this._sound&&(e=isNaN(e)||e<1?1:Math.floor(e),this._target&&this._target.adaptee&&this._target.adaptee.startSound(this._sound,e,this.soundCompleteInternal))},e.prototype.stop=function(t){this._sound&&this._target&&this._target.adaptee&&this._target.adaptee.stopSounds(this._sound)},e}(jL),mF=function(){function t(){this._values={},this._realStorage=null}return t.prototype.getItem=function(t){return this._realStorage&&(this._values[t]=this._realStorage.getItem(t)),this._values[t]},t.prototype.setItem=function(t,e){this._realStorage&&this._realStorage.setItem(t,e),this._values[t]=e},t.prototype.removeItem=function(t){this._realStorage&&this._realStorage.removeItem(t),delete this._values[t]},t}();function yF(){if(!dF&&(dF=new mF,"undefined"!=typeof Storage))try{dF._realStorage=window.localStorage}catch(t){console.warn("[Shared Storage] ",t)}return dF}var AF,vF=function(){function t(){}return t.decodedData=function(){var t=yF()._values,e={};for(var n in t)e[n]=JSON.parse(t[n]);return this._lastRawData=e,e},t.encodeAndApplyData=function(){if(!this._lastRawData)throw"Need call decode before encode for detecting a model";var t=yF();for(var e in this._lastRawData)t.setItem(e,JSON.stringify(this._lastRawData[e]));return t._values},t._lastRawData=null,t}(),bF=function(t){function e(e){var n=t.call(this,e)||this;return n._flushPending=0,Fk(n,{data:{get:n.getData,enumerable:!0},clear:{value:n.clear,writable:!0},flush:{value:n.flush,writable:!0}}),n._bindedFlush=n.flush.bind(n),n}return FL(e,t),e.createAVM1Class=function(t){return Yk(t,!0,e,["getLocal"],["data#","flush","clear"])},e.prototype.setName=function(t){t=Sk(this.context,t),this._storage_name=t;var e=yF().getItem(t);if(e)try{return void(this._data=this.getAVM1Value(JSON.parse(e)))}catch(t){console.warn("[AVM1 SharedObject]","Invalid data:",e)}return this._data=Ek(this.context),console.warn("[AVM1 SharedObject]","No shared object found"),null},e.getLocal=function(t,n,i,r){(i||r)&&console.warn("SharedObject.getLocal: params 'localPath' and 'secure' not supported");var o=new e(t);return o.setName(n),o},e.prototype.applyDataHook=function(t){var e=this;return t.__alPutHookApplyed||(t.__alPutHookApplyed=!0,t.alPut=function(n,i){jL.prototype.alPut.call(t,n,i),e.requestFlush()}),t},e.prototype.requestFlush=function(){clearTimeout(this._flushPending),this._flushPending=setTimeout(this._bindedFlush,100)},e.prototype.getData=function(){return this.applyDataHook(this._data)},e.prototype.clear=function(){yF().removeItem(this._storage_name)},e.prototype.getAVM1Value=function(t){if("number"==typeof t||"string"==typeof t||"boolean"==typeof t)return t;if(Array.isArray(t)){for(var e=0;e<t.length;e++)t[e]=this.getAVM1Value(t[e]);return new ik(this.context,t)}if("object"==typeof t){var n=Ek(this.context);for(var i in t)n.alSetOwnProperty(i,new UL(64,this.getAVM1Value(t[i])));return n}},e.prototype.getJSValue=function(t){if("number"==typeof t||"string"==typeof t||"boolean"==typeof t)return t;if(Nk(this.context,t)){console.log("array");var e=t.value,n=[];if(e)for(var i=e.length,r=0;r<i;r++)n[r]=this.getJSValue(e[r]);return n}if(t instanceof jL){var o={};for(var a in t._ownProperties)"__proto__"!=a&&"__constructor__"!=a&&(o[a]=this.getJSValue(t._ownProperties[a].value));return o}console.log("unknown datatype")},e.prototype.flush=function(t){this._flushPending&&(clearTimeout(this._flushPending),this._flushPending=null);var e=this.getJSValue(this._data);return yF().setItem(this._storage_name,JSON.stringify(e)),!1},e}(jL),CF=function(){function t(t,e){}return t.prototype.axCallPublicProperty=function(t,e){return null},t.prototype.axGetPublicProperty=function(t){return null},t.prototype.axSetPublicProperty=function(t,e){return null},t.prototype.removeChild=function(t){},Object.defineProperty(t.prototype,"attributes",{get:function(){return console.log("attributes not implemented yet in flash/XMLNode"),null},set:function(t){console.log("attributes not implemented yet in flash/XMLNode")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return console.log("childNodes not implemented yet in flash/XMLNode"),[]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"localName",{get:function(){return console.log("localName not implemented yet in flash/XMLNode"),""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"namespaceURI",{get:function(){return console.log("namespaceURI not implemented yet in flash/XMLNode"),""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"prefix",{get:function(){return console.log("prefix not implemented yet in flash/XMLNode"),""},enumerable:!1,configurable:!0}),t.prototype.appendChild=function(t){console.log("appendChild not implemented yet in flash/XMLNode")},t.prototype.cloneNode=function(t){return console.log("cloneNode not implemented yet in flash/XMLNode"),null},t.prototype.getNamespaceForPrefix=function(t){return console.log("getNamespaceForPrefix not implemented yet in flash/XMLNode"),""},t.prototype.getPrefixForNamespace=function(t){return console.log("getPrefixForNamespace not implemented yet in flash/XMLNode"),""},t.prototype.hasChildNodes=function(){return console.log("hasChildNodes not implemented yet in flash/XMLNode"),!1},t.prototype.insertBefore=function(t,e){console.log("insertBefore not implemented yet in flash/XMLNode")},t.prototype.removeNode=function(){console.log("removeNode not implemented yet in flash/XMLNode")},t.prototype.toString=function(){return console.log("toString not implemented yet in flash/XMLNode"),""},t}();function xF(t){if(!(t instanceof jL))return null;var e=t.context;return Bk(e,t,e.globals.XMLNode)?t.as3XMLNode:null}function IF(t,e){if(!xd(e)){var n=e._as2Node;return n||((n=new jL(t)).alPrototype=t.globals.XMLNode.alGetPrototypeProperty(),DF.prototype.initializeFromAS3Node.call(n,e)),n}}!function(t){t[t.ELEMENT_NODE=1]="ELEMENT_NODE",t[t.TEXT_NODE=3]="TEXT_NODE"}(AF||(AF={}));var EF=function(t){function e(e){var n=t.call(this,e)||this;return n.alSetOwnPrototypeProperty(new DF(e,n)),n}return FL(e,t),e.prototype.alConstruct=function(t){if(!t&&t.length<2)Od.notImplemented("Unsupported amount of parameters for AVM1XMLNode constructor");else{var e=Dk(this.context,t[0]),n=Sk(this.context,t[1]);if(e===AF.ELEMENT_NODE||e===AF.TEXT_NODE){var i=new jL(this.context);return i.alPrototype=this.alGetPrototypeProperty(),DF.prototype.initializeNode.call(i,e,n),i}Od.notImplemented("Unsupported AVM1XMLNode type: "+e)}},e.prototype.alCall=function(t,e){return this.alConstruct(e)},e}(VL),wF=function(t){function e(e,n){var i=t.call(this,e)||this;return i._as3XMLNode=n,i._cachedNodePropertyDescriptor=new UL(70,void 0),Fk(i,{length:{get:i.getLength}}),i}return FL(e,t),Object.defineProperty(e.prototype,"as3ChildNodes",{get:function(){return this._as3XMLNode.childNodes},enumerable:!1,configurable:!0}),e.prototype.getLength=function(){return this.as3ChildNodes.length},e.prototype.alGetOwnProperty=function(e){if(Tk(this.context,e)){var n=bk(this.context,e);if(n>=0&&n<this.as3ChildNodes.length)return this._cachedNodePropertyDescriptor.value=IF(this.context,this.as3ChildNodes[n]),this._cachedNodePropertyDescriptor}return t.prototype.alGetOwnProperty.call(this,e)},e}(jL),SF=function(t){function e(e,n){var i=t.call(this,e)||this;return i.alPrototype=e.builtins.Object.alGetPrototypeProperty(),i._nativeAttr=n,i._cachedNodePropertyDescriptor=new UL(64,void 0),i}return FL(e,t),e.prototype.alGetOwnProperty=function(t){var e=Sk(this.context,t),n=this._nativeAttr.getNamedItem(e);if(n)return this._cachedNodePropertyDescriptor.value=n.nodeValue,this._cachedNodePropertyDescriptor},e.prototype.alSetOwnProperty=function(t,e){var n=Sk(this.context,t);if(64&e.flags){var i=Sk(this.context,e.value);this._nativeAttr[n]=i}},e.prototype.alHasOwnProperty=function(t){var e=Sk(this.context,t);return!!this._nativeAttr.getNamedItem(e)},e.prototype.alDeleteOwnProperty=function(t){var e=Sk(this.context,t);this._nativeAttr.removeNamedItem(e)},e.prototype.alGetOwnPropertiesKeys=function(){for(var t=[],e=0;e<this._nativeAttr.length;e++)t[e]=Sk(this.context,this._nativeAttr.item(e).name);return t},e}(jL),DF=function(t){function e(e,n){var i=t.call(this,e)||this;return Fk(i,{constructor:{value:n,writable:!0},attributes:{get:i.getAttributes,set:i.setAttributes},childNodes:{get:i.getChildNodes},firstChild:{get:i.getFirstChild},lastChild:{get:i.getLastChild},localName:{get:i.getLocalName},namespaceURI:{get:i.getNamespaceURI},nextSibling:{get:i.getNextSibling},nodeName:{get:i.getNodeName,set:i.setNodeName},nodeType:{get:i.getNodeType},nodeValue:{get:i.getNodeValue,set:i.setNodeValue},parentNode:{get:i.getParentNode},prefix:{get:i.getPrefix},previousSibling:{get:i.getPreviousSibling},appendChild:{value:i.appendChild},cloneNode:{value:i.cloneNode},getNamespaceForPrefix:{value:i.getNamespaceForPrefix},getPrefixForNamespace:{value:i.getPrefixForNamespace},hasChildNodes:{value:i.hasChildNodes},insertBefore:{value:i.insertBefore},removeNode:{value:i.removeNode},toString:{value:i._toString}}),i}return FL(e,t),e.prototype.initializeNode=function(t,n){this.as3XMLNode=new CF(t,n),this._attributes=void 0,this._childNodes=void 0,e.addMap(this.as3XMLNode,this)},e.prototype.initializeFromAS3Node=function(t){this.as3XMLNode=t,this._attributes=void 0,this._childNodes=void 0,e.addMap(this.as3XMLNode,this)},e.prototype._toString=function(){return(new XMLSerializer).serializeToString(this.as3XMLNode).replace(/\/>/g," />")},e.prototype.appendChild=function(t){this.as3XMLNode.appendChild(xF(t))},e.prototype.getAttributes=function(){var t=this.as3XMLNode.attributes;if(!xd(t))return this._attributes||(this._attributes=new SF(this.context,t)),this._attributes},e.prototype.setAttributes=function(t){var e=this;if(xd(t))this._attributes=void 0;else if(t instanceof SF)this._attributes=t;else{var n=this.context,i=this.as3XMLNode.attributes;Pk(t,(function(t){var r=Sk(n,t),o=Sk(n,e.alGet(t)),a=document.createAttribute(r);a.value=o,i.setNamedItem(a)}),this),console.warn("[XMLNode] Invalid attribute implementation"),this._attributes=new SF(n,this.as3XMLNode.attributes)}},e.prototype.getChildNodes=function(){return this._childNodes||(this._childNodes=new wF(this.context,this.as3XMLNode)),this._childNodes},e.prototype.cloneNode=function(t){t=Ak(this.context,t);var e=this.as3XMLNode.axCallPublicProperty("cloneNode",[t]);return IF(this.context,e)},e.prototype.getFirstChild=function(){return IF(this.context,this.as3XMLNode.firstChild)},e.prototype.getNamespaceForPrefix=function(t){return this.as3XMLNode.axCallPublicProperty("getNamespaceForPrefix",[t])},e.prototype.getPrefixForNamespace=function(t){return this.as3XMLNode.axCallPublicProperty("getNamespaceForPrefix",[t])},e.prototype.hasChildNodes=function(){return this.as3XMLNode.hasChildNodes()},e.prototype.insertBefore=function(t,e){this.as3XMLNode.axCallPublicProperty("insertBefore",[xF(t),xF(e)])},e.prototype.getLastChild=function(){return IF(this.context,this.as3XMLNode.lastChild)},e.prototype.getLocalName=function(){return this.as3XMLNode.localName},e.prototype.getNamespaceURI=function(){return this.as3XMLNode.namespaceURI},e.prototype.getNextSibling=function(){return IF(this.context,this.as3XMLNode.nextSibling)},e.prototype.getNodeName=function(){return this.as3XMLNode.nodeName},e.prototype.setNodeName=function(t){t=Sk(this.context,t),this.as3XMLNode.nodeName=t},e.prototype.getNodeType=function(){return this.as3XMLNode.nodeType},e.prototype.getNodeValue=function(){return this.as3XMLNode.nodeValue},e.prototype.setNodeValue=function(t){t=Sk(this.context,t),this.as3XMLNode.nodeValue=t},e.prototype.getParentNode=function(){return IF(this.context,this.as3XMLNode.parentNode)},e.prototype.getPrefix=function(){return this.as3XMLNode.prefix},e.prototype.getPreviousSibling=function(){return IF(this.context,this.as3XMLNode.previousSibling)},e.prototype.removeNode=function(){this.as3XMLNode.removeNode()},e.addMap=function(t,e){t._as2Node=e},e}(jL),TF=function(t){function e(e,n){var i=t.call(this,e)||this;return i.alSetOwnPrototypeProperty(new PF(e,i,n)),i}return FL(e,t),e.prototype.alConstruct=function(t){var e=t&&Sk(this.context,t[0]),n=new jL(this.context);return n.alPrototype=this.alGetPrototypeProperty(),n.isAVM1DataObject=!0,e||(e=""),PF.prototype.initializeDocument.call(n,e),n},e.prototype.alCall=function(t,e){return this.alConstruct(e)},e}(VL),PF=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.alPrototype=i.alGetPrototypeProperty(),Fk(r,{constructor:{value:n,writable:!0},addRequestHeader:{value:r.addRequestHeader},createElement:{value:r.createElement},createTextNode:{value:r.createTextNode},getBytesLoaded:{value:r.getBytesLoaded},getBytesTotal:{value:r.getBytesTotal},ignoreWhite:{value:!1,writable:!0},load:{value:r.load},parseXML:{value:r.parseXML},send:{value:r.send},sendAndLoad:{value:r.sendAndLoad},onData:{value:r.defaultOnData,writable:!0}}),r}return FL(e,t),e.prototype.initializeDocument=function(t){t=Sk(this.context,t)||null;var e=(new DOMParser).parseFromString(t,"application/xml");DF.prototype.initializeFromAS3Node.call(this,e),this.as3XMLDocument=e},e.prototype.addRequestHeader=function(t,e){Od.notImplemented("AVM1XMLPrototype.addRequestHeader")},e.prototype.createElement=function(t){t=Sk(this.context,t);var e=this.as3XMLDocument.axCallPublicProperty("createElement",[t]);return IF(this.context,e)},e.prototype.createTextNode=function(t){t=Sk(this.context,t);var e=this.as3XMLDocument.axCallPublicProperty("createTextNode",[t]);return IF(this.context,e)},e.prototype.getBytesLoaded=function(){if(this._as3Loader)return this._as3Loader.bytesLoaded},e.prototype.getBytesTotal=function(){if(this._as3Loader)return this._as3Loader.bytesTotal},e.prototype.load=function(t){return!!(t=Sk(this.context,t))&&(pF(this.context,t,null,null,null,this),!0)},e.prototype.defaultOnData=function(t){xd(t)?Qk(this.context,this,"onLoad",[!1]):(e.prototype.parseXML.call(this,t),this.alPut("loaded",!0),Qk(this.context,this,"onLoad",[!0]))},e.prototype.parseXML=function(t){t=Sk(this.context,t);var e=(new DOMParser).parseFromString("<syntheticRoot>"+t+"</syntheticRoot>","application/xml"),n=e.getElementsByTagName("parsererror");if(n.length>0){var i=1===e.childElementCount,r=n[0].textContent;if(i)throw"[AVM1XML] Сritical parsing error:"+r;console.warn("[AVM1XML] Parsing error:",r),console.groupCollapsed("[XML Source]:"),console.log(t),console.groupEnd()}this.as3XMLDocument=e.childNodes[0],DF.prototype.initializeFromAS3Node.call(this,this.as3XMLDocument)},e.prototype.send=function(t,e,n){return t=Sk(this.context,t),e=xd(e)?void 0:Sk(this.context,e),n=xd(n)?void 0:Sk(this.context,n),Od.notImplemented("AVM1XMLPrototype.send"),!1},e.prototype.sendAndLoad=function(t,e){if((t=Sk(this.context,t))&&e.isAVM1DataObject){Od.somewhatImplemented("AVM1XMLPrototype.send");var n=this.alGet("contentType");n=xd(n)?void 0:Sk(this.context,n);var i=xk(this.context,this);pF(this.context,t,"POST",n,i,e)}},e}(jL),OF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return FL(e,t),e.createAVM1Class=function(t){return Yk(t,!0,e,["available#","addCallback","call"],[])},e.getAvailable=function(t){return!0},e.addCallback=function(t,e,n,i){if(e=Sk(t,e),!Ok(i))return!1;try{return window.flashObject||(window.flashObject={}),window.flashObject[e]=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];var r=n.alGet(e.toLowerCase());r&&Ok(r)?r.alCall(n,t):r&&r.value&&r.value.alCall(n,t)},!0}catch(t){console.warn("[AVM1ExternalInterface] - error in addCallback",t)}return!1},e.call=function(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];n.length;var r=0;try{var o=e.split("."),a=window;for(r=0;r<o.length;r++)a=a[o[r]];return a.apply(window,n)}catch(t){return}},e}(jL),MF=bp((function(t,e){function n(t,e){var n=[],i=[];return null==e&&(e=function(t,e){return n[0]===e?"[Circular ~]":"[Circular ~."+i.slice(0,n.indexOf(e)).join(".")+"]"}),function(r,o){if(n.length>0){var a=n.indexOf(this);~a?n.splice(a+1):n.push(this),~a?i.splice(a,1/0,r):i.push(r),~n.indexOf(o)&&(o=e.call(this,r,o))}else n.push(o);return null==t?o:t.call(this,r,o)}}(t.exports=function(t,e,i,r){return JSON.stringify(t,n(e,r),i)}).getSerialize=n})),BF=function(){var t=4022871197;return function(e){if(e){e=e.toString();for(var n=0;n<e.length;n++){var i=.02519603282416938*(t+=e.charCodeAt(n));i-=t=i>>>0,t=(i*=t)>>>0,t+=4294967296*(i-=t)}return 2.3283064365386963e-10*(t>>>0)}t=4022871197}},NF=function(t){return function(){var e,n,i=48,r=1,o=i,a=new Array(i),s=0,u=new BF;for(e=0;e<i;e++)a[e]=u(Math.random());var l=function(){++o>=i&&(o=0);var t=1768863*a[o]+2.3283064365386963e-10*r;return a[o]=t-(r=0|t)},c=function(t){return Math.floor(t*(l()+11102230246251565e-32*(2097152*l()|0)))};c.string=function(t){var e,n="";for(e=0;e<t;e++)n+=String.fromCharCode(33+c(94));return n};return c.cleanString=function(t){return t=(t=(t=t.replace(/(^\s*)|(\s*$)/gi,"")).replace(/[\x00-\x1F]/gi,"")).replace(/\n /,"\n")},c.hashString=function(t){for(t=c.cleanString(t),u(t),e=0;e<t.length;e++)for(s=t.charCodeAt(e),n=0;n<i;n++)a[n]-=u(s),a[n]<0&&(a[n]+=1)},c.seed=function(t){null==t&&(t=Math.random()),"string"!=typeof t&&(t=MF(t,(function(t,e){return"function"==typeof e?e.toString():e}))),c.initState(),c.hashString(t)},c.addEntropy=function(){var t=[];for(e=0;e<arguments.length;e++)t.push(arguments[e]);!function(){var t=Array.prototype.slice.call(arguments);for(e=0;e<t.length;e++)for(n=0;n<i;n++)a[n]-=u(t[e]),a[n]<0&&(a[n]+=1)}(s+++(new Date).getTime()+t.join("")+Math.random())},c.initState=function(){for(u(),e=0;e<i;e++)a[e]=u(" ");r=1,o=i},c.done=function(){u=null},void 0!==t&&c.seed(t),c.range=function(t){return c(t)},c.random=function(){return c(Number.MAX_VALUE-1)/Number.MAX_VALUE},c.floatBetween=function(t,e){return c.random()*(e-t)+t},c.intBetween=function(t,e){return Math.floor(c.random()*(e-t+1))+t},c}()};NF.create=function(t){return new NF(t)};var LF,RF=NF,FF=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.url="",e.targetMC=null,e._queued_focus_value=null,e._queued_focus=!1,e.callbackName="",e.callbackTarget=null,e}return FL(e,t),e.createAVM1Class=function(t){return Yk(t,!0,e,[],["addListener","getFocus","getBeginIndex","getEndIndex","removeListener","setFocus","setSelection","getCaretIndex"],null,e.prototype.avm1Constructor)},e.prototype.avm1Constructor=function(t,e){this.url=t,this.targetMC=e,this._queued_focus=!1},e.prototype.addListener=function(t){},e.prototype.removeListener=function(t){return!0},e.prototype.getBeginIndex=function(){var t,e=null===(t=jg.instance().mouseManager.getFocus())||void 0===t?void 0:t.container;return e&&e.isAsset(Qp)?e.selectionBeginIndex:-1},e.prototype.getEndIndex=function(){var t,e=null===(t=jg.instance().mouseManager.getFocus())||void 0===t?void 0:t.container;return e&&e.isAsset(Qp)?e.selectionEndIndex:-1},e.prototype.getCaretIndex=function(){var t,e=null===(t=jg.instance().mouseManager.getFocus())||void 0===t?void 0:t.container;return e&&e.isAsset(Qp)?e.selectionBeginIndex:-1},e.prototype.getFocus=function(){var t,e=null===(t=jg.instance().mouseManager.getFocus())||void 0===t?void 0:t.container;if(e){for(var n=[];e;)e.isAVMScene?e=null:(n.push(e.name),e=e.parent);for(var i=n.length,r="";i>0;)r+=n[--i],i>0&&(r+=".");return r}return""},e.prototype.setFocus=function(t){var e;if(""!==t)return"string"==typeof t?(e=this.context.resolveTarget(t))&&e.node||(e=this.context.resolveTarget(t+"_internal_TF"))&&e.node?void jg.instance().mouseManager.setFocus(e.node):void console.warn("AVM1Selection.setFocus - no object found for string "+t):((e=this.context.resolveTarget(t))&&e.node?jg.instance().mouseManager.setFocus(e.node):console.warn("AVM1Selection.setFocus - no object found '"+t.toString()+"'"),!0)},e.prototype.setSelection=function(t,e){var n,i=null===(n=jg.instance().mouseManager.getFocus())||void 0===n?void 0:n.container;i&&i.isAsset(Qp)&&i.setSelection(t,e)},e}(jL),kF=Wp.escape,UF=[],jF=function(){function t(){}return t.ALL="all",t.NONE="none",t.IMPORTANT="important",t}(),VF=function(t){function e(e){var n=t.call(this,e)||this;return n.SWF_BASE_URL="",n.registeredLevels={},n.NaN=Number.NaN,n.Infinity=Number.POSITIVE_INFINITY,n.newline="\n",n.undefined=void 0,n._initBuiltins(e),n._initializeFlashObject(e),n.buttonCheckFunc=new VL(e),n.buttonCheckFunc.alCall=function(t,e){return cF.mouseButtonsState[e[0]]},n}return FL(e,t),e.generateRandomSeed=function(){for(var t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",e=10+Math.round(10*Math.random()),n="",i=0;i<e;i++)n+=t[Math.floor(62*Math.random())];return n},e.setRandom=function(t){return void 0===t&&(t=null),t?(t==e.GENERATE_SEED&&(t=e.generateRandomSeed()),e.randomProvider=RF.create(t),t):(e.randomProvider=null,null)},e.registerCustomClass=function(t,n){e._registeredCustomClasses[t]=n,e.instance&&e.instance.alPut(t,n)},e.registerCustomClassInstance=function(t,n){e._registeredCustomClassInstances[t]=n,e.instance&&e.instance.alPut(t,n)},e.createGlobalsObject=function(t){var n=new e(t);return Xk(t,n,n,["flash","ASnative","ASSetPropFlags","BitmapData","clearInterval","clearTimeout","ExternalInterface","escape","unescape","setInterval","setTimeout","showRedrawRegions","trace","updateAfterEvent","myName","NaN","Infinity","isFinite","isNaN","parseFloat","parseInt","undefined","Object","Function","Array","Number","Math","Boolean","Date","Selection","String","Error","MovieClip","AsBroadcaster","System","Stage","Button","TextField","Color","Key","Mouse","MovieClipLoader","newline","XML","XMLNode","LoadVars","Sound","SharedObject","ContextMenu","ContextMenuItem","TextFormat"],!1),e.instance=n,n},e.prototype._getLevelForRoot=function(t){for(var e in this.registeredLevels)if(this.registeredLevels[e]===t)return+e;return-1},e.prototype._getRootForLevel=function(t){return this.registeredLevels[t]},e.prototype._addRoot=function(t,e){return this.registeredLevels[t]?this.registeredLevels[t]:(Hk(e,this.context).adaptee,uR.avmStage.root.addChildAt(e,t),e.adapter!=e&&e.adapter.initAdapter(),this.registeredLevels[t]=e,e)},e.prototype._removeRoot=function(t){this.registeredLevels[t]&&(uR.avmStage.root.removeChild(this.registeredLevels[t]),delete this.registeredLevels[t])},e.prototype.ASnative=function(t,e){return 800===t&&2===e?this.buttonCheckFunc:(console.log("ASnatives",t,e),null)},e.prototype.ASSetPropFlags=function(t,e,n,i){},e.prototype.clearIntervals=function(){var t=0,e=UF.length;for(t=0;t<e;t++)Nl.clearInterval(UF[t]);UF.length=0},e.prototype.clearInterval=function(t){var e=UF[t-1];e&&(Nl.clearInterval(e),delete UF[t-1])},e.prototype.clearTimeout=function(t){var e=UF[t-1];e&&(Nl.clearTimeout(e),delete UF[t-1])},e.prototype.escape=function(t){return encodeURIComponent(t).replace(/!|'|\(|\)|\*|-|\.|_|~/g,(function(t){switch(t){case"*":return"%2A";case"-":return"%2D";case".":return"%2E";case"_":return"%5F";default:return kF(t)}}))},e.prototype.unescape=function(t){return decodeURIComponent(t)},e.prototype.setInterval=function(){if(!(arguments.length<2)){var t,e=arguments,n=this.context,i=void 0,r=2;if(Ok(e[0]))t=e[0].toJSFunction(),i=e[1];else{if(e.length<3)return;var o=e[0],a=e[1];if(i=e[2],r=3,!(o instanceof jL)||"string"!=typeof a)return;t=function(){var t=o.alGet(a);if(Ok(t)){var e=Array.prototype.slice.call(arguments,0);n.executeFunction(t,o,e)}}}if(void 0!==i){i=bk(n,i);var s,u=Array.prototype.slice.call(e,r);if(t){s=Nl.setInterval((function(){t.apply(null,u)}),i)}return UF.push(s)}}},e.prototype.setTimeout=function(){var t=arguments;if(!(t.length<2)&&Ok(t[0])){for(var e=t[0].toJSFunction(),n=bk(this.context,t[1]),i=[],r=t.length,o=2;o<r;o++)i.push(t[o]);var a=Nl.setTimeOut((function(){e.apply(null,i)}),n);return UF.push(a)}},e.prototype.showRedrawRegions=function(t,e){},e.prototype.trace=function(t){this&&this.context.actions.trace(t)},e.prototype.updateAfterEvent=function(){},e.prototype.isFinite=function(t){return isFinite(vk(this.context,t))},e.prototype.isNaN=function(t){return" "===t||isNaN(vk(this.context,t))},e.prototype.parseFloat=function(t){return parseFloat(xk(this.context,t))},e.prototype.parseInt=function(t,e){return parseInt(xk(this.context,t),Ck(this.context,e))},e.prototype._initBuiltins=function(t){var n=t.builtins;for(var i in this.Object=n.Object,this.Function=n.Function,this.Array=n.Array,this.Number=n.Number,this.Math=n.Math,this.Boolean=n.Boolean,this.Date=n.Date,this.String=n.String,this.Error=n.Error,this.Selection=FF.createAVM1Class(t)._ownProperties.prototype.value,this.ExternalInterface=OF.createAVM1Class(t),this.MovieClip=$R.createAVM1Class(t),this.AsBroadcaster=eF.createAVM1Class(t),this.System=oF.createAVM1Class(t),this.Stage=uR.createAVM1Class(t),this.Button=uF.createAVM1Class(t),this.TextField=KR.createAVM1Class(t),this.Color=lF.createAVM1Class(t),this.Key=mR.createAVM1Class(t),this.Mouse=cF.createAVM1Class(t),this.MovieClipLoader=hF.createAVM1Class(t),this.LoadVars=new fF(t),this.Sound=_F.createAVM1Class(t),this.SharedObject=bF.createAVM1Class(t),this.ContextMenu=void 0,this.ContextMenuItem=void 0,this.TextFormat=_R.createAVM1Class(t),this.XMLNode=new EF(t),this.XML=new TF(t,this.XMLNode),this.BitmapData=hR.createAVM1Class(t),this.Matrix=new aR(t),this.Point=new HL(t),this.Rectangle=new WL(t),this.Transform=yR.createAVM1Class(t),this.ColorTransform=new eR(t),eF.initialize(t,this.Stage),eF.initialize(t,this.Key),eF.initialize(t,this.Mouse),e._registeredCustomClasses)this.alPut(i,e._registeredCustomClasses[i]);for(var i in e._registeredCustomClassInstances)this.alPut(i,e._registeredCustomClassInstances[i])},e.prototype._initializeFlashObject=function(t){this.flash=Ek(t);var e=Ek(t);e.alPut("BitmapData",this.BitmapData),this.flash.alPut("display",e);var n=Ek(t);n.alPut("ExternalInterface",OF.createAVM1Class(t)),this.flash.alPut("external",n);var i=function(t){var e=Ek(t),n=new xR(t);return e.alPut("BitmapFilter",n),ER(t,e,n,AR.BEVEL,["distance","Number","angle","Number","highlightColor","Number","highlightAlpha","Number","shadowColor","Number","shadowAlpha","Number","blurX","Number","blurY","Number","strength","Number","quality","Number","type","String","knockout","Boolean"]),ER(t,e,n,AR.BLUR,["blurX","Number","blurY","Number","quality","Number"]),ER(t,e,n,AR.COLORMATRIX,["matrix","Numbers"]),ER(t,e,n,AR.CONVOLUTION,["matrixX","Number","matrixY","Number","matrix","Numbers","divisor","Number","bias","Number","preserveAlpha","Boolean","clamp","Boolean","color","Number","alpha","Number"]),ER(t,e,n,AR.DISPLACEMENT,["mapBitmap","BitmapData","mapPoint","Point","componentX","Number","componentY","Number","scaleX","Number","scaleY","Number","mode","String","color","Number","alpha","Number"]),ER(t,e,n,AR.DROPSHADOW,["distance","Number","angle","Number","color","Number","alpha","Number","blurX","Number","blurY","Number","strength","Number","quality","Number","inner","Boolean","knockout","Boolean","hideObject","Boolean"]),ER(t,e,n,AR.GLOW,["color","Number","alpha","Number","blurX","Number","blurY","Number","strength","Number","quality","Number","inner","Boolean","knockout","Boolean"]),ER(t,e,n,AR.GRADIENTBEVEL,["distance","Number","angle","Number","colors","Numbers","alphas","Numbers","ratios","Numbers","blurX","Number","blurY","Number","strength","Number","quality","Number","type","String","knockout","Boolean"]),ER(t,e,n,AR.GRADIENTGLOW,["distance","Number","angle","Number","colors","Numbers","alphas","Numbers","ratios","Numbers","blurX","Number","blurY","Number","strength","Number","quality","Number","type","String","knockout","Boolean"]),e}(t);this.flash.alPut("filters",i),this.filters=i;var r=Ek(t);r.alPut("ColorTransform",this.ColorTransform),r.alPut("Matrix",this.Matrix),r.alPut("Point",this.Point),r.alPut("Rectangle",this.Rectangle),r.alPut("Transform",this.Transform),this.flash.alPut("geom",r);var o=Ek(t);this.flash.alPut("text",o)},e.swfStartTime=Date.now(),e._registeredCustomClasses={},e._registeredCustomClassInstances={},e.GENERATE_SEED="GENERATE_SEED",e.tracelevel=jF.NONE,e.toStringPrecision=-1,e}(jL),QF=function(){function t(t){this.context=t}return t.prototype.asfunction=function(t){},t.prototype.call=function(t){this.context.resolveTarget(null)._callFrame(t)},t.prototype.chr=function(t){return t=bk(this.context,t),this.context.swfVersion<=5&&(t&=255),t?String.fromCharCode(t):""},t.prototype.duplicateMovieClip=function(t,e,n){var i=Dk(this.context,n)-kk;this.context.resolveTarget(t).duplicateMovieClip(e,i,null)},t.prototype.fscommand=function(t,e){},t.prototype.getTimer=function(){return Date.now()-VF.swfStartTime},t.prototype.getURL=function(t,e,n){t=String(t),"string"!=typeof e||0!==e.indexOf("_level")?0!==t.toLowerCase().indexOf("fscommand:")?window.open(t,e):console.log("fsCommand not implemented "):this.loadMovieNum(t,+e.substr(6),n)},t.prototype.gotoAndPlay=function(t,e){var n=this.context.resolveTarget(null);n.adaptee.play(),this._gotoFrame(n.adaptee,t,e)},t.prototype.gotoAndStop=function(t,e){var n=this.context.resolveTarget(null);"number"==typeof e&&e<=0||(n.adaptee.stop(),this._gotoFrame(n.adaptee,t,e))},t.prototype._gotoFrame=function(t,e,n){if(void 0!==e){if(Array.isArray(e)){if(0==e.length)return;e=e[0]}if(e instanceof ik){if(!e.value||0==e.value.length)return;e=e.value[0]}if("number"==typeof e&&e%1!=0&&(e=e.toString()),"string"==typeof e){var i=e.toLowerCase();if(null===t.timeline._labels[i])return e=parseInt(e),void(isNaN(e)||(t.currentFrameIndex=e-1));t.jumpToLabel(i,n)}else t.currentFrameIndex=e-1}},t.prototype.ifFrameLoaded=function(t,e){var n=this.context.resolveTarget(null),i=arguments.length<2?arguments[0]:arguments[1],r=n.alGet("_framesloaded"),o=n.alGet("_totalframes");return Math.min(i+1,o)<=r},t.prototype.length_=function(t){return(""+t).length},t.prototype.loadMovie=function(t,e,n){if(t&&0===t.toLowerCase().indexOf("fscommand:"))this.fscommand(t.substring(10),e);else if(""===t&&e)e.unloadMovie();else{""!=t&&0!==t.indexOf("http://")&&0!==t.indexOf("https://")&&(t=this.context.globals.SWF_BASE_URL+t);var i,r="string"==typeof e&&0===e.indexOf("_level");if(r){var o=e.substr(6);r=(i=parseInt(o,10)).toString()===o}if(r)this.loadMovieNum(t,i,n);else this.context.resolveTarget(e).loadMovie(t,n)}},t.prototype.loadMovieNum=function(t,e,n){if(t=Sk(this.context,t),e=bk(this.context,e),n=Sk(this.context,n),t&&0===t.toLowerCase().indexOf("fscommand:"))return this.fscommand(t.substring(10));if(""!=t){var i=this.context.globals._addRoot(e,new Rl(new bl(VF._scenegraphFactory)));0!==t.indexOf("http://")&&0!==t.indexOf("https://")&&(t=this.context.globals.SWF_BASE_URL+t),i.adapter.loadMovie(t,n)}else this.context.globals._removeRoot(e)},t.prototype.loadVariables=function(t,e,n){void 0===n&&(n=""),t=Sk(this.context,t),n=Sk(this.context,n);var i=this.context.resolveTarget(e);i&&this._loadVariables(i,t,n)},t.prototype.loadVariablesNum=function(t,e,n){void 0===n&&(n=""),t=Sk(this.context,t),e=bk(this.context,e),n=Sk(this.context,n);var i=this.context.resolveLevel(e);i&&this._loadVariables(i,t,n)},t.prototype._loadVariables=function(t,e,n){var i=this.context,r=new yt(e);n&&(r.method=n);var o=new pt;o.dataFormat="variables";var a=function(e){if(o.removeEventListener(K.LOAD_COMPLETE,a),o.dataFormat==lt.VARIABLES)for(var n in o.data)i.utils.setProperty(t,n,o.data[n]);t instanceof $R&&Qk(i,t,"onData")};o.addEventListener(K.LOAD_COMPLETE,a),o.load(r)},t.prototype.mbchr=function(t){return(t=bk(this.context,t))?String.fromCharCode(t):""},t.prototype.mblength=function(t){return(""+t).length},t.prototype.mbord=function(t){return(""+t).charCodeAt(0)},t.prototype.mbsubstring=function(t,e,n){return e!==(0|e)||n!==(0|n)?"":(n<0&&(n=void 0),(""+t).substr(e=e<1?0:e-1,n))},t.prototype.nextFrame=function(){var t=this.context.resolveTarget(null).adaptee;t.stop(),++t.currentFrameIndex},t.prototype.nextScene=function(){},t.prototype.ord=function(t){return(""+t).charCodeAt(0)},t.prototype.play=function(){this.context.resolveTarget(null).play()},t.prototype.prevFrame=function(){var t=this.context.resolveTarget(null).adaptee;--t.currentFrameIndex,t.stop()},t.prototype.prevScene=function(){},t.prototype.print=function(t,e){},t.prototype.printAsBitmap=function(t,e){},t.prototype.printAsBitmapNum=function(t,e){},t.prototype.printNum=function(t,e){},t.prototype.random=function(t){return VF.randomProvider?0|VF.randomProvider.random()*(0|t):0|Math.random()*(0|t)},t.prototype.removeMovieClip=function(t){if(t){var e=this.context.resolveTarget(t);e&&e.removeMovieClip()}},t.prototype.startDrag=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var i=this.context.resolveTarget(t);i&&i.startDrag.apply(i,e)},t.prototype.stop=function(){this.context.resolveTarget(null).stop()},t.prototype._stopSoundsOnObjectsRecursivly=function(t){if(t.numChildren)for(var e=0;e<t.numChildren;e++)t.getChildAt(e).isAsset(Rl)?t.getChildAt(e).stopSounds():this._stopSoundsOnObjectsRecursivly(t.getChildAt(e))},t.prototype.stopAllSounds=function(){S.stopAllSounds(),this._stopSoundsOnObjectsRecursivly(uR.avmStage.root)},t.prototype.stopDrag=function(){$R.currentDraggedMC&&$R.currentDraggedMC.stopDrag()},t.prototype.substring=function(t,e,n){return this.mbsubstring(t,e,n)},t.prototype.toggleHighQuality=function(){},t.prototype.trace=function(t){if(VF.tracelevel!=jF.NONE){var e,n=!1;switch(typeof t){case"undefined":e="undefined";break;case"string":n=(e=t).length>0&&"!"==e[0];break;default:e=xk(this.context,t)}(VF.tracelevel!=jF.IMPORTANT||n)&&console.log("%cAVM1 trace: %c "+e+" ","color: #054996","background: #eee; color: #054996")}},t.prototype.unloadMovie=function(t){var e=this.context.resolveTarget(t);e&&e.unloadMovie()},t.prototype.unloadMovieNum=function(t){0!==(t=Ck(this.context,t))&&this.context.globals._removeRoot(t)},t}(),GF=function(t){function e(e){return t.call(this,e)||this}return FL(e,t),e.prototype._initializePrototype=function(){Fk(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}})},e.prototype._valueOf=function(){return this},e.prototype._toString=function(){return Ok(this)?"[type "+wk(this)+"]":"[object "+wk(this)+"]"},e.prototype.addProperty=function(t,e,n){if("string"!=typeof t||""===t)return!1;if(!Ok(e))return!1;if(!Ok(n)&&null!==n)return!1;var i=this.alGetOwnProperty(t);return!(i&&2&i.flags)&&(this.alSetOwnProperty(t,new UL(128,null,e,n||void 0)),!0)},e.prototype.hasOwnProperty=function(t){return this.alHasOwnProperty(t)},e.prototype.isPropertyEnumerable=function(t){return!(1&this.alGetProperty(t).flags)},e.prototype.isPrototypeOf=function(t){return Bk(this.context,this,t)},e.prototype.unwatch=function(t){return t=Sk(this.context,t),this.alRemotePropertyWatcher(t)},e.prototype.watch=function(t,e,n){return t=Sk(this.context,t),!!Ok(e)&&this.alAddPropertyWatcher(t,e,n)},e}(jL),zF=function(t){function e(e){var n=t.call(this,e)||this;return n.alPrototype=e.builtins.Function.alGetPrototypeProperty(),Fk(n,{prototype:{value:e.builtins.Object.alGetPrototypeProperty()},registerClass:{value:n.registerClass}}),n}return FL(e,t),e.prototype.registerClass=function(t,e){this.context.registerClass(t,e)},e.prototype.alConstruct=function(t){if(t){var e=t[0];if(e instanceof jL)return e;switch(typeof e){case"string":case"boolean":case"number":return Ik(this.context,e)}}return Ek(this.context)},e.prototype.alCall=function(t,e){return e&&null!==e[0]&&void 0!==e[0]?Ik(this.context,e[0]):Ek(this.context)},e}(VL),HF=function(t){function e(e){return t.call(this,e)||this}return FL(e,t),e.prototype._initializePrototype=function(){var t=this.context;this.alPrototype=t.builtins.Object.alGetPrototypeProperty(),Fk(this,{constructor:{value:t.builtins.Function,writable:!0},call:this.call,apply:this.apply})},e.prototype.call=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return fk(this,VL).alCall(t,e)},e.prototype.apply=function(t,e){var n=fk(this,VL),i=e?fk(e,ik).value:void 0;return n.alCall(t,i)},e}(jL),XF=function(t){function e(e){var n=t.call(this,e)||this;return n.alPrototype=e.builtins.Function.alGetPrototypeProperty(),Fk(n,{prototype:{value:e.builtins.Function.alGetPrototypeProperty()}}),n}return FL(e,t),e.prototype.alConstruct=function(t){return t?t[0]:void 0},e.prototype.alCall=function(t,e){return e?e[0]:void 0},e}(VL),YF=function(t){function e(e,n){var i=t.call(this,e)||this;return i.alPrototype=e.builtins.Boolean.alGetPrototypeProperty(),i.alSetOwnConstructorProperty(e.builtins.Boolean),i.value=n,i}return FL(e,t),e.prototype.valueOf=function(){return this.value},e}(jL),qF=function(t){function e(e){var n=t.call(this,e)||this;return n.alPrototype=e.builtins.Object.alGetPrototypeProperty(),Fk(n,{constructor:{value:e.builtins.Boolean,writable:!0},valueOf:{value:n._valueOf,writable:!0},toString:{value:n._toString,writable:!0}}),n}return FL(e,t),e.prototype._valueOf=function(){return fk(this,YF).value},e.prototype._toString=function(){return fk(this,YF).value?"true":"false"},e}(jL),KF=function(t){function e(e){var n=t.call(this,e)||this;return n.alPrototype=e.builtins.Function.alGetPrototypeProperty(),Fk(n,{prototype:{value:new qF(e)}}),n}return FL(e,t),e.prototype.alConstruct=function(t){var e=!!t&&Ak(this.context,t[0]);return new YF(this.context,e)},e.prototype.alCall=function(t,e){return!!e&&Ak(this.context,e[0])},e}(VL),WF=function(t){function e(e,n){var i=t.call(this,e)||this;return i.alPrototype=e.builtins.Number.alGetPrototypeProperty(),i.alSetOwnConstructorProperty(e.builtins.Number),i.value=n,i}return FL(e,t),e.prototype.valueOf=function(){return this.value},e}(jL),JF=function(t){function e(e){var n=t.call(this,e)||this;return n.alPrototype=e.builtins.Object.alGetPrototypeProperty(),Fk(n,{constructor:{value:e.builtins.Number,writable:!0},valueOf:{value:n._valueOf,writable:!0},toString:{value:n._toString,writable:!0}}),n}return FL(e,t),e.prototype._valueOf=function(){return fk(this,WF).value},e.prototype._toString=function(t){return fk(this,WF).value.toString(t||10)},e}(jL),$F=function(t){function e(e){var n=t.call(this,e)||this;return n.alPrototype=e.builtins.Function.alGetPrototypeProperty(),Fk(n,{prototype:{value:new JF(e)},MAX_VALUE:Number.MAX_VALUE,MIN_VALUE:Number.MIN_VALUE,NaN:Number.NaN,NEGATIVE_INFINITY:Number.NEGATIVE_INFINITY,POSITIVE_INFINITY:Number.POSITIVE_INFINITY}),n}return FL(e,t),e.prototype.alConstruct=function(t){var e=t?vk(this.context,t[0]):0;return new WF(this.context,e)},e.prototype.alCall=function(t,e){return e?vk(this.context,e[0]):0},e}(VL),ZF=function(t){function e(e,n){var i=t.call(this,e)||this;return i.alPrototype=e.builtins.String.alGetPrototypeProperty(),i.alSetOwnConstructorProperty(e.builtins.String),i.value=n,i}return FL(e,t),e.prototype.toString=function(){return this.value},e}(jL),tk=function(t){function e(e){var n=t.call(this,e)||this;return n.alPrototype=e.builtins.Object.alGetPrototypeProperty(),Fk(n,{constructor:{value:e.builtins.String,writable:!0},valueOf:{value:n._valueOf,writable:!0},toString:{value:n._toString,writable:!0},length:{get:n.getLength},charAt:{value:n.charAt,writable:!0},charCodeAt:{value:n.charCodeAt,writable:!0},concat:{value:n.concat,writable:!0},indexOf:{value:n.indexOf,writable:!0},lastIndexOf:{value:n.lastIndexOf,writable:!0},slice:{value:n.slice,writable:!0},split:{value:n.split,writable:!0},substr:{value:n.substr,writable:!0},substring:{value:n.substring,writable:!0},toLowerCase:{value:n.toLowerCase,writable:!0},toUpperCase:{value:n.toUpperCase,writable:!0}}),n}return FL(e,t),e.prototype._valueOf=function(){return fk(this,ZF).value},e.prototype._toString=function(){return fk(this,ZF).value},e.prototype.getLength=function(){return fk(this,ZF).value.length},e.prototype.charAt=function(t){return xk(this.context,this).charAt(bk(this.context,t))},e.prototype.charCodeAt=function(t){return xk(this.context,this).charCodeAt(bk(this.context,t))},e.prototype.concat=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=[xk(this.context,this)],i=0;i<t.length;++i)n.push(xk(this.context,t[i]));return n.join("")},e.prototype.indexOf=function(t,e){var n=xk(this.context,this);return t=xk(this.context,t),e=bk(this.context,e),n.indexOf(t,e)},e.prototype.lastIndexOf=function(t,e){var n=xk(this.context,this);return t=xk(this.context,t),(e=arguments.length<2?NaN:vk(this.context,e))<0?-1:n.lastIndexOf(t,isNaN(e)?void 0:e)},e.prototype.slice=function(t,e){if(0!==arguments.length){var n=xk(this.context,this);return t=bk(this.context,t),e=void 0===e?void 0:bk(this.context,e),n.slice(t,e)}},e.prototype.split=function(t,e){var n=xk(this.context,this);return void 0!==t?(t=xk(this.context,t),e=(void 0===e?-1:Ck(this.context,e))>>>0,new ik(this.context,n.split(t,e))):new ik(this.context,[n])},e.prototype.substr=function(t,e){var n=xk(this.context,this),i=n.length;if(t=bk(this.context,t),e=void 0===e?i:bk(this.context,e),t<0&&(t=Math.max(0,i+t)),e<0){if(-e<=t)return"";e=Math.max(0,i+e)}return n.substr(t,e)},e.prototype.substring=function(t,e){var n=xk(this.context,this);return(t=bk(this.context,t))>=n.length?"":(e=void 0===e?void 0:bk(this.context,e),n.substring(t,e))},e.prototype.toLowerCase=function(){return xk(this.context,this).toLowerCase()},e.prototype.toUpperCase=function(){return xk(this.context,this).toUpperCase()},e}(jL),ek=function(t){function e(e){var n=t.call(this,e)||this;return n.alPrototype=e.builtins.Function.alGetPrototypeProperty(),Fk(n,{prototype:{value:new tk(e)},fromCharCode:{value:n.fromCharCode}}),n}return FL(e,t),e.prototype.alConstruct=function(t){var e=t?xk(this.context,t[0]):"";return new ZF(this.context,e)},e.prototype.alCall=function(t,e){return e?xk(this.context,e[0]):""},e.prototype.fromCharCode=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e=e.map((function(e){return 65535&Ck(t.context,e)})),String.fromCharCode.apply(String,e)},e}(VL),nk=new UL(64,void 0),ik=function(t){function e(e,n){var i=t.call(this,e)||this;return i.alPrototype=e.builtins.Array.alGetPrototypeProperty(),i.alSetOwnConstructorProperty(e.builtins.Array),i.value=n,i}return FL(e,t),e.prototype.alGetOwnProperty=function(e){if(Tk(this.context,e)){var n=Ck(this.context,e);if(Object.getOwnPropertyDescriptor(this.value,n))return nk.value=this.value[n],nk}return t.prototype.alGetOwnProperty.call(this,e)},e.prototype.alSetOwnProperty=function(e,n){if(Tk(this.context,e)){var i=Ck(this.context,e);if(!(64&n.flags)||1&n.flags||2&n.flags)throw new Error("Special property is non-supported for array");this.value[i]=n.value}else t.prototype.alSetOwnProperty.call(this,e,n)},e.prototype.alDeleteOwnProperty=function(e){if(Tk(this.context,e)){var n=Ck(this.context,e);delete this.value[n]}else t.prototype.alDeleteOwnProperty.call(this,e)},e.prototype.alGetOwnPropertiesKeys=function(){var e=t.prototype.alGetOwnPropertiesKeys.call(this),n=[];for(var i in this.value)n.push(i);return n.concat(e)},e.mapToJSArray=function(t,n,i){if(t instanceof e)return t.value.map(n,i);if(!Lk(t.context,t))throw new Error("Invalid type");var r=[];return Rk(t.context,t,(function(t,e){r.push(n.call(i,t,e))})),r},e}(jL);!function(t){t[t.CASEINSENSITIVE=1]="CASEINSENSITIVE",t[t.DESCENDING=2]="DESCENDING",t[t.UNIQUESORT=4]="UNIQUESORT",t[t.RETURNINDEXEDARRAY=8]="RETURNINDEXEDARRAY",t[t.NUMERIC=16]="NUMERIC"}(LF||(LF={}));var rk=function(t,e){var n=fk(t,ik).value;if(Ok(e)){var i=[void 0,void 0];n.sort((function(t,n){return i[0]=t,i[1]=n,e.alCall(null,i)}))}else{var r="number"==typeof e&&(e&LF.NUMERIC||-1==e),o="number"==typeof e&&e&LF.DESCENDING;if(r)n.sort((function(t,e){for(;t instanceof ik;)(t=fk(t,ik).value)&&t.length>0&&(t=t[0]);for(;e instanceof ik;)(e=fk(e,ik).value)&&e.length>0&&(e=e[0]);return t-e}));else{for(var a=n.length;a>0;)void 0!==n[--a]&&null!==n[a]||(n[a]="00000000000AwayInternal");for(n.sort((function(t,e){for(;t instanceof ik;)(t=fk(t,ik).value)&&t.length>0&&(t=t[0]);for(;e instanceof ik;)(e=fk(e,ik).value)&&e.length>0&&(e=e[0]);return t<e?-1:1})),a=n.length;a>0;)"00000000000AwayInternal"==n[--a]&&(n[a]=void 0)}o&&n.reverse()}return t},ok=function(t){function e(e){var n=t.call(this,e)||this;return n.alPrototype=e.builtins.Object.alGetPrototypeProperty(),Fk(n,{constructor:{value:e.builtins.Array,writable:!0},join:{value:n.join,writable:!0},length:{get:n.getLength,set:n.setLength},concat:{value:n.concat,writable:!0},pop:{value:n.pop,writable:!0},push:{value:n.push,writable:!0},reverse:{value:n.reverse,writable:!0},shift:{value:n.shift,writable:!0},slice:{value:n.slice,writable:!0},splice:{value:n.splice,writable:!0},sort:{value:n.sort,writable:!0},sortOn:{value:n.sortOn,writable:!0},toString:{value:n._toString,writable:!0},unshift:{value:n.unshift,writable:!0}}),n}return FL(e,t),e.prototype._toString=function(){var t,e=this.alGet("length"),n=0,i="";for(n=0;n<e;n++)i+=void 0!==(t=this.alGet(n))?xk(this.context,t)+(n==e-1?"":","):n==e-1?"":",";return i},e.prototype.getLength=function(){return fk(this,ik).value.length},e.prototype.setLength=function(t){(null===t&&(t=0),Cd(t))&&(t=Ck(this.context,t)>>>0,fk(this,ik).value.length=t)},e.prototype.concat=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this instanceof ik){for(var n=fk(this,ik).value,i=0;i<t.length;i++)t[i]instanceof ik&&(t[i]=fk(t[i],ik).value);return new ik(this.context,Array.prototype.concat.apply(n,t))}for(var r=[],o=this,a=Lk(this.context,this),s=0;a?Rk(this.context,o,(function(t){return r.push(t)})):r.push(xk(this.context,o)),!(s>=t.length);)o=t[s++],a=Nk(this.context,o);return new ik(this.context,r)},e.prototype.join=function(t){if(t=void 0===t?",":Sk(this.context,t),this instanceof ik){var e=fk(this,ik).value;if(0===e.length)return"";if(e.every((function(t){return!(t instanceof jL)})))return e.join(t)}var n=this.context,i=Ck(n,this.alGet("length"))>>>0;if(0===i)return"";for(var r=[],o=0;o<i;o++){var a=this.alGet(o);r[o]=null==a?"":Sk(n,a)}return r.join(t)},e.prototype.pop=function(){if(this instanceof ik)return fk(this,ik).value.pop();var t=Ck(this.context,this.alGet("length"))>>>0;if(0!==t){var e=t-1,n=this.alGet(e);return this.alDeleteProperty(e),this.alPut("length",e),n}},e.prototype.push=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this instanceof ik){var n=fk(this,ik).value;return Array.prototype.push.apply(n,t)}for(var i=Ck(this.context,this.alGet("length"))>>>0,r=0;r<t.length;r++)this.alPut(i,t[r]),i++;return this.alPut("length",i),i},e.prototype.reverse=function(){var t=[],e=this.alGet("length"),n=0;for(n=0;n<e;n++)t[n]=this.alGet(n);for(n=e-1;n>=0;)this.alPut(e-1-n,t[n]),n--;return this.value},e.prototype.shift=function(){if(this instanceof ik)return fk(this,ik).value.shift();var t=Ck(this.context,this.alGet("length"))>>>0;if(0!==t){for(var e=this.alGet(0),n=1;n<t;n++)this.alHasProperty(n)?this.alPut(n-1,this.alGet(n)):this.alDeleteProperty(n-1);return this.alDeleteProperty(t-1),this.alPut("length",t-1),e}},e.prototype.slice=function(t,e){if(t=bk(this.context,t),e=void 0!==e?bk(this.context,e):void 0,this instanceof ik){var n=fk(this,ik).value;return new ik(this.context,n.slice(t,e))}var i=[],r=Ck(this.context,this.alGet("length"))>>>0;t=t<0?Math.max(r+t,0):Math.min(r,t),e=void 0===e?r:e<0?Math.max(r+e,0):Math.min(r,e);for(var o=t,a=0;o<e;o++,a++)this.alHasProperty(o)&&(i[a]=this.alGet(o));return new ik(this.context,i)},e.prototype.splice=function(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];t=bk(this.context,t);var r=Ck(this.context,this.alGet("length"))>>>0;if(t=t<0?Math.max(r+t,0):Math.min(r,t),e=e||"number"==typeof e?bk(this.context,e):r-t,this instanceof ik){var o=fk(this,ik).value;return new ik(this.context,Array.prototype.splice.apply(o,[t,e].concat(n)))}for(var a=[],s=0;s<e;s++)this.alHasProperty(t+s)&&(a[s]=this.alGet(t+s));var u=n.length-e;if(u<0){for(s=t-u;s<r;s++)this.alHasProperty(s)?this.alPut(s+u,this.alGet(s)):this.alDeleteProperty(s+u);for(s=u;s<0;s++)this.alDeleteProperty(r+s)}else if(u>0)for(s=r-1;s>=t+u;s--)this.alHasProperty(s)?this.alPut(s+u,this.alGet(s)):this.alDeleteProperty(s+u);for(s=0;s<n.length;s++)this.alPut(t+s,n[s]);return this.alPut("length",r+u),new ik(this.context,a)},e.prototype.sort=function(t){return rk(this,t)},e.prototype.sortOn=function(t,e){var n=this.context,i=[],r=[];if("string"==typeof t)i=[xk(n,t)],r=[Ck(n,e)];else{if(!Nk(n,t))return rk(this,e);i=[],r=[];var o=Nk(n,e)?e:null,a=bk(n,t.alGet("length"));o&&a!==bk(n,o.alGet("length"))&&(o=null);for(var s=0;s<a;s++)i.push(xk(n,t.alGet(s))),r.push(o?Ck(n,o.alGet(s)):0)}r[0];return fk(this,ik).value.sort((function(t,e){for(;t instanceof ik;)(t=fk(t,ik).value)&&t.length>0&&(t=t[0]);for(;e instanceof ik;)(e=fk(e,ik).value)&&e.length>0&&(e=e[0]);for(var o=Ik(n,t),a=Ik(n,e),s=0;s<i.length;s++){var u=o.alGet(i[s]),l=a.alGet(i[s]),c=void 0;if(r[s]&LF.NUMERIC){var h=vk(n,u),p=vk(n,l);c=h<p?-1:h>p?1:0}else{var d=xk(n,u),f=xk(n,l);r[s]&LF.CASEINSENSITIVE&&(d=d.toLowerCase(),f=f.toLowerCase()),c=d<f?-1:d>f?1:0}if(0!==c)return r[s]&LF.DESCENDING?-c:c}return 0})),this},e.prototype.unshift=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this instanceof ik){var n=fk(this,ik).value;return Array.prototype.unshift.apply(n,t)}for(var i=Ck(this.context,this.alGet("length"))>>>0,r=t.length,o=i-1;o>=0;o--)this.alHasProperty(o)?this.alPut(o+r,this.alGet(o)):this.alDeleteProperty(o+r);for(o=0;o<t.length;o++)this.alPut(o,t[o]);return i+=r,this.alPut("length",i),i},e}(jL),ak=function(t){function e(e){var n=t.call(this,e)||this;return n.alPrototype=e.builtins.Function.alGetPrototypeProperty(),Fk(n,{prototype:{value:new ok(e)}}),Fk(n,{NUMERIC:{value:LF.NUMERIC}}),Fk(n,{DESCENDING:{value:LF.DESCENDING}}),n}return FL(e,t),e.prototype.alConstruct=function(t){if(!t)return new ik(this.context,[]);if(1===t.length&&"number"==typeof t[0]){var e=t[0];if(e>>>0!==e)throw new Error("Range error");return new ik(this.context,new Array(e))}return new ik(this.context,t)},e.prototype.alCall=function(t,e){return this.alConstruct.apply(this,e)},e}(VL),sk=function(t){function e(e){var n=t.call(this,e)||this;return n.alPrototype=e.builtins.Object.alGetPrototypeProperty(),Fk(n,{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:n.abs,acos:n.acos,asin:n.asin,atan:n.atan,atan2:n.atan2,ceil:n.ceil,cos:n.cos,exp:n.exp,floor:n.floor,log:n.log,max:n.max,min:n.min,pow:n.pow,random:n.random,round:n.round,sin:n.sin,sqrt:n.sqrt,tan:n.tan}),n}return FL(e,t),e.prototype.abs=function(t){return Math.abs(vk(this.context,t))},e.prototype.acos=function(t){return Math.acos(vk(this.context,t))},e.prototype.asin=function(t){return Math.asin(vk(this.context,t))},e.prototype.atan=function(t){return Math.atan(vk(this.context,t))},e.prototype.atan2=function(t,e){return Math.atan2(vk(this.context,t),vk(this.context,e))},e.prototype.ceil=function(t){return Math.ceil(vk(this.context,t))},e.prototype.cos=function(t){return Math.cos(vk(this.context,t))},e.prototype.exp=function(t){return Math.exp(vk(this.context,t))},e.prototype.floor=function(t){return Math.floor(vk(this.context,t))},e.prototype.log=function(t){return Math.log(vk(this.context,t))},e.prototype.max=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e=e.map((function(e){return vk(t.context,e)})),Math.max.apply(null,e)},e.prototype.min=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e=e.map((function(e){return vk(t.context,e)})),Math.min.apply(null,e)},e.prototype.pow=function(t,e){return Math.pow(vk(this.context,t),vk(this.context,e))},e.prototype.random=function(){return VF.randomProvider?VF.randomProvider.random():Math.random()},e.prototype.round=function(t){return Math.round(vk(this.context,t))},e.prototype.sin=function(t){return Math.sin(vk(this.context,t))},e.prototype.sqrt=function(t){return Math.sqrt(vk(this.context,t))},e.prototype.tan=function(t){return Math.tan(vk(this.context,t))},e}(jL),uk=function(t){function e(e,n){var i=t.call(this,e)||this;return i.alPrototype=e.builtins.Date.alGetPrototypeProperty(),i.alSetOwnConstructorProperty(e.builtins.Date),i.value=n,i}return FL(e,t),e.prototype.alDefaultValue=function(e){return void 0!==e?t.prototype.alDefaultValue.call(this,e):this.context.swfVersion>=6?t.prototype.alDefaultValue.call(this,1):t.prototype.alDefaultValue.call(this,0)},e}(jL),lk=function(t){function e(e){var n=t.call(this,e)||this;return n.alPrototype=e.builtins.Object.alGetPrototypeProperty(),Fk(n,{constructor:{value:e.builtins.Date,writable:!0},valueOf:{value:n._valueOf,writable:!0},toString:{value:n._toString,writable:!0},toLocaleString:{value:n._toLocaleString,writable:!0},toDateString:{value:n.toDateString,writable:!0},toTimeString:{value:n.toTimeString,writable:!0},toLocaleDateString:{value:n.toLocaleDateString,writable:!0},toLocaleTimeString:{value:n.toLocaleTimeString,writable:!0},getTime:{value:n.getTime,writable:!0},getFullYear:{value:n.getFullYear,writable:!0},getUTCFullYear:{value:n.getUTCFullYear,writable:!0},getMonth:{value:n.getMonth,writable:!0},getUTCMonth:{value:n.getUTCMonth,writable:!0},getDate:{value:n.getDate,writable:!0},getUTCDate:{value:n.getUTCDate,writable:!0},getDay:{value:n.getDay,writable:!0},getUTCDay:{value:n.getUTCDay,writable:!0},getHours:{value:n.getHours,writable:!0},getUTCHours:{value:n.getUTCHours,writable:!0},getMinutes:{value:n.getMinutes,writable:!0},getUTCMinutes:{value:n.getUTCMinutes,writable:!0},getSeconds:{value:n.getSeconds,writable:!0},getUTCSeconds:{value:n.getUTCSeconds,writable:!0},getMilliseconds:{value:n.getMilliseconds,writable:!0},getUTCMilliseconds:{value:n.getUTCMilliseconds,writable:!0},getTimezoneOffset:{value:n.getTimezoneOffset,writable:!0},setTime:{value:n.setTime,writable:!0},setMilliseconds:{value:n.setMilliseconds,writable:!0},setUTCMilliseconds:{value:n.setUTCMilliseconds,writable:!0},setSeconds:{value:n.setSeconds,writable:!0},setUTCSeconds:{value:n.setUTCSeconds,writable:!0},setMinutes:{value:n.setMinutes,writable:!0},setUTCMinutes:{value:n.setUTCMinutes,writable:!0},setHours:{value:n.setHours,writable:!0},setUTCHours:{value:n.setUTCHours,writable:!0},setDate:{value:n.setDate,writable:!0},setUTCDate:{value:n.setUTCDate,writable:!0},setMonth:{value:n.setMonth,writable:!0},setUTCMonth:{value:n.setUTCMonth,writable:!0},setFullYear:{value:n.setFullYear,writable:!0},setUTCFullYear:{value:n.setUTCFullYear,writable:!0},toUTCString:{value:n.toUTCString,writable:!0}}),n}return FL(e,t),e.prototype._valueOf=function(){return fk(this,uk).value.valueOf()},e.prototype._toString=function(){return fk(this,uk).value.toString()},e.prototype._toLocaleString=function(){return fk(this,uk).value.toLocaleString()},e.prototype.toDateString=function(){return fk(this,uk).value.toDateString()},e.prototype.toTimeString=function(){return fk(this,uk).value.toTimeString()},e.prototype.toLocaleDateString=function(){return fk(this,uk).value.toLocaleDateString()},e.prototype.toLocaleTimeString=function(){return fk(this,uk).value.toLocaleTimeString()},e.prototype.getTime=function(){return fk(this,uk).value.getTime()},e.prototype.getFullYear=function(){return fk(this,uk).value.getFullYear()},e.prototype.getUTCFullYear=function(){return fk(this,uk).value.getUTCFullYear()},e.prototype.getMonth=function(){return fk(this,uk).value.getMonth()},e.prototype.getUTCMonth=function(){return fk(this,uk).value.getUTCMonth()},e.prototype.getDate=function(){return fk(this,uk).value.getDate()},e.prototype.getUTCDate=function(){return fk(this,uk).value.getUTCDate()},e.prototype.getDay=function(){return fk(this,uk).value.getDay()},e.prototype.getUTCDay=function(){return fk(this,uk).value.getUTCDay()},e.prototype.getHours=function(){return fk(this,uk).value.getHours()},e.prototype.getUTCHours=function(){return fk(this,uk).value.getUTCHours()},e.prototype.getMinutes=function(){return fk(this,uk).value.getMinutes()},e.prototype.getUTCMinutes=function(){return fk(this,uk).value.getUTCMinutes()},e.prototype.getSeconds=function(){return fk(this,uk).value.getSeconds()},e.prototype.getUTCSeconds=function(){return fk(this,uk).value.getUTCSeconds()},e.prototype.getMilliseconds=function(){return fk(this,uk).value.getMilliseconds()},e.prototype.getUTCMilliseconds=function(){return fk(this,uk).value.getUTCMilliseconds()},e.prototype.getTimezoneOffset=function(){return fk(this,uk).value.getTimezoneOffset()},e.prototype.setTime=function(t){return t=vk(this.context,t),fk(this,uk).value.setTime(t)},e.prototype.setMilliseconds=function(t){return t=vk(this.context,t),fk(this,uk).value.setMilliseconds(t)},e.prototype.setUTCMilliseconds=function(t){return t=vk(this.context,t),fk(this,uk).value.setUTCMilliseconds(t)},e.prototype.setSeconds=function(t,e){return t=vk(this.context,t),arguments.length<=1?fk(this,uk).value.setSeconds(t):(e=vk(this.context,e),fk(this,uk).value.setSeconds(t,e))},e.prototype.setUTCSeconds=function(t,e){return t=vk(this.context,t),arguments.length<=1?fk(this,uk).value.setUTCSeconds(t):(e=vk(this.context,e),fk(this,uk).value.setUTCSeconds(t,e))},e.prototype.setMinutes=function(t,e,n){return t=vk(this.context,t),arguments.length<=1?fk(this,uk).value.setMinutes(t):(e=vk(this.context,e),arguments.length<=2?fk(this,uk).value.setMinutes(t,e):(n=vk(this.context,n),fk(this,uk).value.setMinutes(t,e,n)))},e.prototype.setUTCMinutes=function(t,e,n){return t=vk(this.context,t),arguments.length<=1?fk(this,uk).value.setUTCMinutes(t):(e=vk(this.context,e),arguments.length<=2?fk(this,uk).value.setUTCMinutes(t,e):(n=vk(this.context,n),fk(this,uk).value.setUTCMinutes(t,e,n)))},e.prototype.setHours=function(t,e,n,i){return t=vk(this.context,t),arguments.length<=1?fk(this,uk).value.setHours(t):(e=vk(this.context,e),arguments.length<=2?fk(this,uk).value.setHours(t,e):(n=vk(this.context,n),arguments.length<=3?fk(this,uk).value.setHours(t,e,n):(i=vk(this.context,i),fk(this,uk).value.setHours(t,e,n,i))))},e.prototype.setUTCHours=function(t,e,n,i){return t=vk(this.context,t),arguments.length<=1?fk(this,uk).value.setUTCHours(t):(e=vk(this.context,e),arguments.length<=2?fk(this,uk).value.setUTCHours(t,e):(n=vk(this.context,n),arguments.length<=3?fk(this,uk).value.setUTCHours(t,e,n):(i=vk(this.context,i),fk(this,uk).value.setUTCHours(t,e,n,i))))},e.prototype.setDate=function(t){return t=vk(this.context,t),fk(this,uk).value.setDate(t)},e.prototype.setUTCDate=function(t){return t=vk(this.context,t),fk(this,uk).value.setUTCDate(t)},e.prototype.setMonth=function(t,e){return t=vk(this.context,t),arguments.length<=1?fk(this,uk).value.setMonth(t):(e=vk(this.context,e),fk(this,uk).value.setMonth(t,e))},e.prototype.setUTCMonth=function(t,e){return t=vk(this.context,t),arguments.length<=1?fk(this,uk).value.setUTCMonth(t):(e=vk(this.context,e),fk(this,uk).value.setUTCMonth(t,e))},e.prototype.setFullYear=function(t,e,n){return t=vk(this.context,t),arguments.length<=1?fk(this,uk).value.setFullYear(t):(e=vk(this.context,e),arguments.length<=2?fk(this,uk).value.setFullYear(t,e):(n=vk(this.context,n),fk(this,uk).value.setFullYear(t,e,n)))},e.prototype.setUTCFullYear=function(t,e,n){return t=vk(this.context,t),arguments.length<=1?fk(this,uk).value.setUTCFullYear(t):(e=vk(this.context,e),arguments.length<=2?fk(this,uk).value.setUTCFullYear(t,e):(n=vk(this.context,n),fk(this,uk).value.setUTCFullYear(t,e,n)))},e.prototype.toUTCString=function(){return fk(this,uk).value.toUTCString()},e}(jL),ck=function(t){function e(e){var n=t.call(this,e)||this;return n.alPrototype=e.builtins.Function.alGetPrototypeProperty(),Fk(n,{prototype:{value:new lk(e)},UTC:{value:n._UTC,writable:!0}}),n}return FL(e,t),e.prototype.alConstruct=function(t){var e,n=this.context;switch(t.length){case 0:e=new Date;break;case 1:e=new Date(yk(n,t[0]));break;default:for(var i=[],r=0;r<t.length;r++)i.push(vk(n,t[r]));e=new Date(vk(n,t[0]),vk(n,t[1]),t.length>2?vk(n,t[2]):1,t.length>3?vk(n,t[3]):0,t.length>4?vk(n,t[4]):0,t.length>5?vk(n,t[5]):0,t.length>6?vk(n,t[6]):0)}return new uk(n,e)},e.prototype.alCall=function(t,e){return Mk(this.alConstruct.apply(this,e),"toString")},e.prototype._UTC=function(t,e,n,i,r,o){var a=this.context;return Date.UTC(vk(a,arguments[0]),vk(a,arguments[1]),arguments.length>2?vk(a,arguments[2]):1,arguments.length>3?vk(a,arguments[3]):0,arguments.length>4?vk(a,arguments[4]):0,arguments.length>5?vk(a,arguments[5]):0,arguments.length>6?vk(a,arguments[6]):0)},e}(VL),hk=function(t){function e(e,n){var i=t.call(this,e)||this;return i.alPrototype=e.builtins.Error.alGetPrototypeProperty(),i.alSetOwnConstructorProperty(e.builtins.Error),void 0!==n&&i.alPut("message",n),i}return FL(e,t),e}(jL),pk=function(t){function e(e){var n=t.call(this,e)||this;return n.alPrototype=e.builtins.Object.alGetPrototypeProperty(),Fk(n,{constructor:{value:e.builtins.Error,writable:!0},name:{value:"Error",writable:!0},message:{value:"Error",writable:!0},toString:{value:n._toString,writable:!0}}),n}return FL(e,t),e.prototype._toString=function(){return this.alGet("message")},e}(jL),dk=function(t){function e(e){var n=t.call(this,e)||this;return n.alPrototype=e.builtins.Function.alGetPrototypeProperty(),Fk(n,{prototype:{value:new pk(e)}}),n}return FL(e,t),e.prototype.alConstruct=function(t){var e=t&&void 0!==t[0]?Sk(this.context,t[0]):void 0;return new hk(this.context,e)},e.prototype.alCall=function(t,e){var n=e&&void 0!==e[0]?Sk(this.context,e[0]):void 0;return new hk(this.context,n)},e}(VL);function fk(t,e){if(t instanceof e)return t;throw new Error("Invalid type")}var gk=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r._fn=n,i&&(r._ctor=i),r}return FL(e,t),e.prototype.alConstruct=function(t){if(!this._ctor)throw new Error("not a constructor");return this._ctor.apply(this,t)},e.prototype.alCall=function(t,e){if(!this._fn)throw new Error("not callable");return this._fn.apply(t,e)},e}(VL),_k=function(t){function e(e){var n=t.call(this,e)||this,i=new jL(e);return i.alPrototype=e.builtins.Object.alGetPrototypeProperty(),i.alSetOwnProperty("constructor",new UL(67)),n.alSetOwnPrototypeProperty(i),n}return FL(e,t),e.prototype.alConstruct=function(t){var e=new jL(this.context),n=this.alGetPrototypeProperty();n instanceof jL||(n=this.context.builtins.Object.alGetPrototypeProperty()),e.alPrototype=n,e.alSetOwnConstructorProperty(this);var i=this.alCall(e,t);return i instanceof jL?i:e},e}(VL);function mk(t){}function yk(t,e,n){var i=typeof e;if("string"===i||"number"===i||"undefined"===i)return e;if(!(e instanceof jL))return e;var r=e;return void 0!==n?r.alDefaultValue(n):r.alDefaultValue()}function Ak(t,e){var n=t.swfVersion>=7;switch(typeof e){case"undefined":return!1;case"object":return null!==e;case"boolean":return e;case"string":return n?!!e:!isNaN(+e)&&0!=+e;case"number":return!!e}}function vk(t,e){switch("object"==typeof e&&null!==e&&(e=yk(0,e,0)),typeof e){case"undefined":return t.swfVersion>=7?NaN:0;case"object":return null===e?t.swfVersion>=7?NaN:0:void 0!==e.nodeValue?parseFloat(e.nodeValue):t.swfVersion>=5?NaN:0;case"boolean":return e?1:0;case"number":return e;case"string":return""===e&&t.swfVersion<5?0:""===e?NaN:+e}}function bk(t,e){var n=vk(t,e);return isNaN(n)?0:0===n||n===Number.POSITIVE_INFINITY||n===Number.NEGATIVE_INFINITY?n:n<0?Math.ceil(n):Math.floor(n)}function Ck(t,e){return 0|vk(t,e)}function xk(t,e){switch("object"==typeof e&&null!==e&&(e=yk(0,e,1)),typeof e){case"undefined":return t.swfVersion>=7?"undefined":"";case"object":if(null===e)return"null";if(e&&e instanceof Array){for(var n="",i=0;i<e.length;i++)n+=xk(t,e[i]),n+=i===e.length-1?"":",";return n}return"[type "+wk(e)+"]";case"boolean":return e?"true":"false";case"number":if((0|e)===e)return""+e;if(isFinite(e)){var r=Math.floor(Math.log10(Math.abs(+e)));if(Math.abs(r)<14){var o=Math.pow(10,14-r);e=Math.round(e*o)/o}}return""+e;case"string":return e}}function Ik(t,e){switch(typeof e){case"undefined":throw new mk;case"object":if(null===e)throw new mk;return Array.isArray(e)?new ik(t,e):e;case"boolean":return new YF(t,e);case"number":return new WF(t,e);case"string":return new ZF(t,e)}}function Ek(t){var e=new jL(t);return e.alPrototype=t.builtins.Object.alGetPrototypeProperty(),e.alSetOwnConstructorProperty(t.builtins.Object),e}function wk(t){return t instanceof VL?"Function":"Object"}function Sk(t,e){return e instanceof jL?xk(t,e):"string"==typeof e?e:null==e?null:e+""}function Dk(t,e){if(!xd(e))return vk(t,e)}function Tk(t,e){return Cd(e instanceof jL?xk(t,e):e)}function Pk(t,e,n){t.alGetKeys().forEach(e,n)}function Ok(t){return t instanceof VL}function Mk(t,e,n){t.alGet(e).alCall(t,n)}function Bk(t,e,n){if(!(e instanceof jL))return!1;if(!(n instanceof jL))return!1;for(var i=n.alGetPrototypeProperty(),r=e;r;r=r.alPrototype)if(r===i)return!0;return!1}function Nk(t,e){return Bk(0,e,t.builtins.Array)}function Lk(t,e){if(!(e instanceof jL))return!1;var n=bk(t,e.alGet("length"));return!(isNaN(n)||n<0||n>=4294967296)}function Rk(t,e,n,i){void 0===i&&(i=null);var r=bk(t,e.alGet("length"));if(!(isNaN(r)||r>=4294967296))for(var o=0;o<r;o++)n.call(i,e.alGet(o),o)}function Fk(t,e){var n=t.context;Object.getOwnPropertyNames(e).forEach((function(i){var r,o,a,s=e[i],u=0;"object"==typeof s?(s.get||s.set?(o=s.get?new gk(n,s.get):void 0,a=s.set?new gk(n,s.set):void 0,u|=128):("function"==typeof(r=s.value)&&(r=new gk(n,r)),u|=64,s.writable||(u|=4)),s.enumerable||(u|=1),s.configurable||(u|=2)):("function"==typeof(r=s)&&(r=new gk(n,r)),u|=71),t.alSetOwnProperty(i,new UL(u,r,o,a))}))}mk.prototype=Object.create(Error.prototype);var kk=16384;function Uk(t){return!!t.adaptee}function jk(t){if(t.adaptee)return t.adaptee;if(!t._as3ObjectTemplate){for(var e=void 0,n=t.alPrototype;n&&!n.initAVM1SymbolInstance&&!(e=n._as3ObjectTemplate);)n=n.alPrototype;t._as3ObjectTemplate=Object.create(e||null)}return t._as3ObjectTemplate}var Vk=[void 0,"normal","layer","multiply","screen","lighten","darken","difference","add","subtract","invert","alpha","erase","overlay","hardlight"];function Qk(t,e,n,i){void 0===i&&(i=null);var r=e.alGet(n);r instanceof VL&&r.alCall(e,i);var o=e.alGet("_listeners");if(o instanceof ik){var a=null;o.value.forEach((function(t){t instanceof jL&&(a=t.alGet(n))instanceof VL&&a.alCall(t,i)}))}}var Gk=0;function zk(t,e,n){for(var i,r=t.alGetPrototypeProperty();r&&!r.initAVM1SymbolInstance;)r._as3ObjectTemplate&&!i&&(i=r._as3ObjectTemplate),r=r.alPrototype;var o=Object.create(r);if(r.initAVM1SymbolInstance.call(o,n,e),o.alPrototype=t.alGetPrototypeProperty(),o.alSetOwnConstructorProperty(t),e._as2Object=o,t.alCall(o),o.aCount=Gk++,i)for(var a in i)e[a]=i[a];return o}function Hk(t,e){return t?t._as2Object?t._as2Object:(t.isAsset(Rl)?n=t.timeline.isButton?zk(e.globals.Button,t,e):zk(e.globals.MovieClip,t,e):t.isAsset(Qp)&&(n=zk(e.globals.TextField,t,e)),n&&(t._as2Object=n,t.adapter=n,n.adaptee=t),t._as2Object=n,n):null;var n}function Xk(t,e,n,i,r){function o(e){if(!xd(e))return new gk(t,r?function(){var n=Array.prototype.slice.call(arguments,0);return n.unshift(t),e.apply(this,n)}:e)}void 0===r&&(r=!1),i&&i.forEach((function(t){if("#"!==t[t.length-1]){var i=function(t){for(var e,i=n;i;i=Object.getPrototypeOf(i))if(e=Object.getOwnPropertyDescriptor(i,t))return e;return null}(t);if(i&&!i.get&&!i.set){var r=i.value;"function"==typeof r&&(r=o(r));var a=new UL(67,r);e.alSetOwnProperty(t,a)}}else{var s="get"+t[0].toUpperCase()+t.slice(1,-1),u=n[s],l="set"+t[0].toUpperCase()+t.slice(1,-1),c=n[l],h=new UL(131,null,o(u),o(c));e.alSetOwnProperty(t.slice(0,-1),h)}}))}function Yk(t,e,n,i,r,o,a){var s=e?new gk(t,o||function(){},(function(){var e=new n(t);return e.alPrototype=u,e.alSetOwnConstructorProperty(s),a&&a.apply(e,arguments),e})):new jL(t);Xk(t,s,n,i,!0);var u=new n(t);return u.alPrototype=t.builtins.Object.alGetPrototypeProperty(),Xk(t,u,n.prototype,r,!1),Fk(s,{prototype:{value:u}}),Fk(u,{constructor:{value:s,writable:!0}}),s}function qk(t){var e=t<0?-1:1;t=Math.abs(t);var n=Math.floor(20*t)/20;return t>n&&t-n>.04&&(n+=.05,n=Math.round(20*n)/20),n*e}function Kk(t){return Math.round(20*t)/20}function Wk(t){return t+1}function Jk(t){return t-1}function $k(t,e){return e.context.executeActions(t,e)}var Zk,tU=function(t){function e(n){var i=t.call(this)||this;return i.imageStore={},i.avm1Context=n,e._instance=i,i}return FL(e,t),Object.defineProperty(e,"instance",{get:function(){return e._instance||console.log("Error. A instance of AVM1SceneGraphFactory must be created manually \t\t\t\tbefore accessing the singleton AVM1SceneGraphFactory._instance"),e._instance},enumerable:!1,configurable:!0}),e.prototype.createSprite=function(t){return new gl},e.prototype.createDisplayObjectContainer=function(){return new fl},e.prototype.createMovieClip=function(t,e){void 0===t&&(t=null),void 0===e&&(e=null);var n=new Rl(t||new bl(this));return Hk(n,this.avm1Context),n._symbol=e,n},e.prototype.createTextField=function(){var t=new Qp;return t.multiline=!0,t.wordWrap=!0,Hk(t,this.avm1Context),t},e.prototype.createBillboard=function(t){return null},e.prototype.createImage2D=function(t,e,n,i,r){return void 0===n&&(n=!0),void 0===i&&(i=null),void 0===r&&(r=!0),new Ye(t,e,n,i,r)},e.prototype.createFrameScripts=function(t,e,n,i){n=n.replace(/[^\w]/g,"");for(var r=[],o=0;o<t.length;o++){var a=t[o];a.data=this.avm1Context.actionsDataFactory.createActionsData(a,"script_"+name+"_"+i+"_frame_"+e+"_idx_"+o),r[r.length]=a}return r.length&&r.sort(this.compareAVM1FrameScripts),r},e.prototype.createChildInstanceForTimeline=function(t,e,n){Nl.invalidAS3Constructors=!0;var i,r=this.awaySymbols[e];if(r.isAsset(sl))(i=gl.getNewSprite(r.clone())).mouseEnabled=!1;else if(r.isAsset(gl))(i=gl.getNewSprite(r.graphics)).mouseEnabled=!1;else if(r.isAsset(Al))(i=Al.getNewMorphSprite(r.graphics.clone())).mouseEnabled=!1;else if(r.isAsset(Ye)){var o=new Yh(r);o.alphaBlending=r.transparent,(i=Il.getNewBillboard(o)).mouseEnabled=!1}else i=r.adapter.clone(!1).adaptee;var a=t.placeObjectTagsForSessionIDs[n];return a&&(a.variableName||a.events&&a.events.length>0)&&(i.adapter.placeObjectTag=a,i.adapter.initEvents=a),i.partitionClass=Br,i._sessionID=n,i},e.prototype.compareAVM1FrameScripts=function(t,e){if(!t.precedence)return e.precedence?-1:0;if(!e.precedence)return 1;for(var n=0;n<t.precedence.length&&n<e.precedence.length&&t.precedence[n]===e.precedence[n];)n++;return n>=t.precedence.length?t.precedence.length===e.precedence.length?0:-1:n>=e.precedence.length?1:t.precedence[n]-e.precedence[n]},e}(zp),eU=function(t,e,n,i){void 0===n&&(n=null),this.bytes=t,this.id=e,this.parent=n,this.encryptedData=i,this.debugPath=this.id,this.ir=null,this.compiled=null},nU=function(){function t(){this._cache=new WeakMap}return t.prototype.createActionsData=function(t,e,n){void 0===n&&(n=null);var i=t instanceof Uint8Array,r=i?t:t.actionsData,o=i?void 0:t.encryptedData,a=this._cache.get(r);return a||(a=new eU(r,e,n,o),this._cache.set(r,a)),a},t}(),iU=function(){function t(t){this.swfVersion=t,this.globals=null,this.actionsDataFactory=new nU,t>6?(this.isPropertyCaseSensitive=!0,this.normalizeName=this.normalizeNameCaseSensitive):(this.isPropertyCaseSensitive=!1,this._nameCache=Object.create(null),this.normalizeName=this.normalizeNameCaseInsensitive),this.builtins={},function(t){var e=t.builtins,n=new GF(t),i=new jL(t);i.alSetOwnPrototypeProperty(n),e.Object=i;var r=new HF(t),o=new jL(t);o.alSetOwnPrototypeProperty(r),e.Function=o,n._initializePrototype(),r._initializePrototype(),e.Object=new zF(t),e.Function=new XF(t),e.Boolean=new KF(t),e.Number=new $F(t),e.String=new ek(t),e.Array=new ak(t),e.Date=new ck(t),e.Math=new sk(t),e.Error=new dk(t)}(this),this.eventObservers=Object.create(null),this.assets={},this.assetsSymbols=[],this.assetsClasses=[],this.awayAssets={},this.staticStates=new WeakMap}return t.prototype.resolveTarget=function(t){},t.prototype.resolveRoot=function(){},t.prototype.checkTimeout=function(){},t.prototype.executeActions=function(t,e){},t.prototype.executeFunction=function(t,e,n){},t.prototype.normalizeNameCaseSensitive=function(t){switch(typeof t){case"number":case"string":return t;default:return xk(this,t)}},t.prototype.normalizeNameCaseInsensitive=function(t){switch(typeof t){case"number":return t.toString();case"string":break;default:t=xk(this,t)}var e=this._nameCache[t];return e||(e=t.toLowerCase(),this._nameCache[t]=e,e)},t.prototype._getEventPropertyObservers=function(t,e){this.isPropertyCaseSensitive||(t=t.toLowerCase());var n=this.eventObservers[t];return n||(e?(n=[],this.eventObservers[t]=n,n):null)},t.prototype.registerEventPropertyObserver=function(t,e){this._getEventPropertyObservers(t,!0).push(e)},t.prototype.unregisterEventPropertyObserver=function(t,e){var n=this._getEventPropertyObservers(t,!1);if(n){var i=n.indexOf(e);i<0||n.splice(i,1)}},t.prototype.broadcastEventPropertyChange=function(t){var e=this._getEventPropertyObservers(t,!1);e&&e.forEach((function(e){return e.onEventPropertyModified(t)}))},t.prototype.addAsset=function(t,e,n){this.assets[t.toLowerCase()]=e,this.assetsSymbols[e]=n,this.awayAssets[t.toLowerCase()]=n},t.prototype.registerClass=function(t,e){if(null!==(t=Sk(this,t))){var n=mt.getAsset(t,$R.currentMCAssetNameSpace);n&&n.adaptee?n.adaptee.avm1Symbol=e:console.warn("can not find symbol to register class "+t)}else this.utils.warn("Cannot register class for symbol: className is missing")},t.prototype.getSymbolClass=function(t){return this.assetsClasses[t]||null},t.prototype.getAsset=function(t){if(null!==(t=Sk(this,t))){var e=this.assets[t.toLowerCase()];if(void 0!==e){var n=this.awayAssets[t.toLowerCase()];return n||console.log("error in getAsset. not implemented to grab assets from loaderInfo"),{symbolId:e,symbolProps:n}}}},t.prototype.reset=function(){this.eventObservers=Object.create(null),this.assets={},this.assetsSymbols=[],this.assetsClasses=[],this.awayAssets={},this.staticStates=new WeakMap,uR.bindStage(this,this.globals.Stage,null,null,null)},t.prototype.setStage=function(t,e,n){mR.bindStage(this,this.globals.Key,t,n),cF.bindStage(this,this.globals.Mouse,t,n),uR.bindStage(this,this.globals.Stage,t,e,n)},t.prototype.getStaticState=function(t){var e=this.staticStates.get(t);if(!e){e=Object.create(null);var n=t.alInitStatic;n&&n.call(e,this),this.staticStates.set(t,e)}return e},t.prototype.resolveLevel=function(t){var e=this.globals._getRootForLevel(t);if(e)return Hk(e,this);this.utils.warn("Unable to resolve level "+t+" root")},t}(),rU=function(){function t(){this.parentResults=null,this.registersLimit=0}return t.prototype.analyze=function(t){for(var e,n,i,r,o,a,s,u,l=[],c=[0],h=[!0],p=!1,d=null,f=[0];f.length>0;)if(e=f.shift(),!l[e])for(t.position=e;!t.eof&&!l[e]&&0!==(n=t.readNext()).actionCode;){switch(r={action:n,next:i=t.position,conditionalJumpTo:-1},o=0,a=!1,s=!1,n.actionCode){case 138:case 141:a=!0,u=138===n.actionCode?n.args[1]:n.args[0],t.skip(u),o=t.position,t.position=i;break;case 153:s=!0,a=!0,o=i+n.args[0];break;case 157:a=!0,o=i+n.args[0];break;case 42:case 62:case 0:s=!0,a=!0,o=t.length;break;case 136:if(p){d=null;break}p=!0,0===e&&(d=n.args[0])}if(a&&(s?r.next=o:r.conditionalJumpTo=o,h[o]||(c.push(o),f.push(o),h[o]=!0)),l[e]=r,s)break;e=i}var g,_,m=[];c.forEach((function(t){if(l[t]){var e;g=[],_=t;do{e=l[_],g.push(e),_=e.next}while(!h[_]&&l[_]);m.push({label:t,items:g,jump:_})}}));var y=null;return p?y=d:this.parentResults&&(y=this.parentResults.singleConstantPool),{actions:l,blocks:m,dataId:t.dataId,singleConstantPool:y,registersLimit:this.registersLimit}},t}(),oU=function(){function t(t,e){this.array=t,this.position=0,this.end=t.length,this.readANSI=e<6;var n=new ArrayBuffer(4);if(new Int32Array(n)[0]=1,!new Uint8Array(n)[0])throw new Error("big-endian platform")}return t.prototype.readUI8=function(){return this.array[this.position++]},t.prototype.readUI16=function(){var t=this.position,e=this.array,n=e[t+1]<<8|e[t];return this.position=t+2,n},t.prototype.readSI16=function(){var t=this.position,e=this.array,n=e[t+1]<<8|e[t];return this.position=t+2,n<32768?n:n-65536},t.prototype.readInteger=function(){var t=this.position,e=this.array,n=e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24;return this.position=t+4,n},t.prototype.readFloat=function(){var t=this.position,e=this.array,n=new ArrayBuffer(4),i=new Uint8Array(n);return i[0]=e[t],i[1]=e[t+1],i[2]=e[t+2],i[3]=e[t+3],this.position=t+4,new Float32Array(n)[0]},t.prototype.readDouble=function(){var t=this.position,e=this.array,n=new ArrayBuffer(8),i=new Uint8Array(n);return i[4]=e[t],i[5]=e[t+1],i[6]=e[t+2],i[7]=e[t+3],i[0]=e[t+4],i[1]=e[t+5],i[2]=e[t+6],i[3]=e[t+7],this.position=t+8,new Float64Array(n)[0]},t.prototype.readBoolean=function(){return!!this.readUI8()},t.prototype.readANSIString=function(){for(var t,e="";t=this.readUI8();)e+=String.fromCharCode(t);return e},t.prototype.readUTF8String=function(){for(var t,e="";t=this.readUI8();)if(t<128)e+=String.fromCharCode(t);else if(128!=(192&t)){var n=this.position-1,i=192,r=5;do{var o=i>>1|128;if((t&o)===i)break;i=o,--r}while(r>=0);for(var a=t&(1<<r)-1,s=5;s>=r;--s)if(128==(192&(t=this.readUI8())))a=a<<6|63&t;else{var u=this.position-1;for(this.position=n;this.position<u;)e+=String.fromCharCode(this.readUI8())}e+=a>=65536?String.fromCharCode(a-65536>>10&1023|55296,1023&a|56320):String.fromCharCode(a)}else e+=String.fromCharCode(t);return e},t.prototype.readString=function(){return this.readANSI?this.readANSIString():this.readUTF8String()},t.prototype.readBytes=function(t){var e=this.position,n=Math.max(this.end-e,0);n<t&&(t=n);var i=this.array.subarray(e,e+t);return this.position=e+t,i},t}(),aU=/[^A-Za-z0-9_]+/g,sU=function(t){this.registerNumber=t},uU=function(t){this.constantIndex=t},lU=function(){function t(t,e){this.swfVersion=e,this._lastPushedValue=null,this._lastDefinedConstantPool=null,this._initialPosition=0,this._initialLen=0,this._actionsData=t,this.dataId=t.id;var n=t.bytes,i=new Uint8Array(n.buffer,0);this._initialPosition=n.byteOffset,this._initialLen=n.length,this._stream=new oU(i,e),this._stream.position=this._initialPosition}return Object.defineProperty(t.prototype,"position",{get:function(){return this._stream.position-this._initialPosition},set:function(t){this._stream.position=t+this._initialPosition},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"eof",{get:function(){return this.position>=this._initialLen},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this._initialLen},enumerable:!1,configurable:!0}),t.prototype.readNext=function(){var t=this._stream,e=t.position,n=t.readUI8(),i=n>=128?t.readUI16():0,r=t.position+i,o=null;switch(155!==n&&142!==n&&(this._lastPushedValue=null),0|n){case 129:var a=t.readUI16(),s=!1;6!==(u=t.readUI8())&&7!==u?t.position--:(r++,s=6===u),o=[a,s];break;case 131:o=[t.readString(),t.readString()];break;case 138:o=[a=t.readUI16(),p=t.readUI8()];break;case 139:o=[t.readString()];break;case 140:var u,l=t.readString();s=!1;6!==(u=t.readUI8())&&7!==u?t.position--:(r++,s=6===u),o=[l,s];break;case 150:var c,h;for(o=[];t.position<r;){switch(0|(c=t.readUI8())){case 0:h=t.readString(),this._lastPushedValue=h;break;case 1:h=t.readFloat();break;case 2:h=null;break;case 3:h=void 0;break;case 4:h=new sU(t.readUI8());break;case 5:h=t.readBoolean();break;case 6:h=t.readDouble();break;case 7:h=t.readInteger();break;case 8:h=new uU(t.readUI8());break;case 9:h=new uU(t.readUI16());break;default:console.error("Unknown value type: "+c,t.position),t.position=r;continue}this._lastPushedValue=h,o.push(h)}break;case 153:case 157:o=[t.readSI16()];break;case 154:o=[A=t.readUI8()];break;case 159:o=[A=t.readUI8()],2&A&&o.push(t.readUI16());break;case 141:o=[p=t.readUI8()];break;case 136:for(var p=t.readUI16(),d=[],f=0;f<p;f++)d.push(t.readString());this._lastDefinedConstantPool=d,o=[d];break;case 155:var g=t.readString(),_=(p=t.readUI16(),[]);for(f=0;f<p;f++)_.push(t.readString());r+=I=t.readUI16(),o=[w=new eU(t.readBytes(I),this.dataId+"_f"+t.position,this._actionsData),g,_];break;case 148:r+=I=t.readUI16(),o=[new eU(t.readBytes(I),this.dataId+"_w"+t.position,this._actionsData)];break;case 135:o=[b=t.readUI8()];break;case 142:var m=null;this._lastPushedValue instanceof uU&&this._lastDefinedConstantPool&&(m=this._lastDefinedConstantPool[this._lastPushedValue.constantIndex]),"string"==typeof this._lastPushedValue&&(m=this._lastPushedValue),m&&aU.test(m)&&(m=null);g=t.readString(),p=t.readUI16();var y=t.readUI8(),A=t.readUI16(),v=[];for(_=[],f=0;f<p;f++){var b=t.readUI8(),C=t.readString();_.push(C),b&&(v[b]={type:1,name:C,index:f})}var x=1;1&A&&(v[x++]={type:2}),4&A&&(v[x++]={type:4}),16&A&&(v[x++]={type:8}),64&A&&(v[x++]={type:64}),128&A&&(v[x++]={type:32}),256&A&&(v[x++]={type:16});var I,E=0;2&A&&(E|=2),8&A&&(E|=4),32&A&&(E|=8),r+=I=t.readUI16();var w,S=this.dataId+"_f"+t.position;m&&(S=m+"__"+S),(w=new eU(t.readBytes(I),S,this._actionsData)).debugPath=this.dataId+"/"+(m||"f"+t.position),o=[w,g,_,y,v,E];break;case 143:var D=!!(4&(A=t.readUI8())),T=!!(2&A),P=!!(1&A),O=t.readUI16(),M=t.readUI16(),B=t.readUI16(),N=D?t.readUI8():t.readString();r+=O+M+B;var L=this._actionsData.debugPath,R=new eU(t.readBytes(O),this.dataId+"_t"+t.position,this._actionsData);L&&(R.debugPath=L+"/try_"+this._stream.position);var F=new eU(t.readBytes(M),this.dataId+"_c"+t.position,this._actionsData);L&&(F.debugPath=L+"/catch_"+this._stream.position);var k=new eU(t.readBytes(B),this.dataId+"_z"+t.position,this._actionsData);L&&(k.debugPath=L+"/finaly_"+this._stream.position),o=[D,N,R,P,F,T,k];break;case 137:o=[t.readUI8()]}return t.position=r,{position:e-this._initialPosition,actionCode:n,actionName:cU[n],knownAction:!!cU[n],args:o}},t.prototype.skip=function(t){for(var e=this._stream;t>0&&this.position<this._initialLen;){var n=e.readUI8()>=128?e.readUI16():0;e.position+=n,t--}},t}(),cU={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"},hU=/[^A-Za-z0-9_/]+/g,pU=null;function dU(){return pU||(pU=function(){var t=function(t){return t};return{ActionGotoFrame:t(nj),ActionGetURL:t(ij),ActionNextFrame:t(rj),ActionPreviousFrame:t(oj),ActionPlay:t(aj),ActionStop:t(sj),ActionToggleQuality:t(uj),ActionStopSounds:t(lj),ActionWaitForFrame:t(cj),ActionSetTarget:t(hj),ActionGoToLabel:t(pj),ActionPush:t(dj),ActionPop:t(fj),ActionAdd:t(gj),ActionSubtract:t(_j),ActionMultiply:t(mj),ActionDivide:t(yj),ActionEquals:t(Aj),ActionLess:t(vj),ActionAnd:t(bj),ActionOr:t(Cj),ActionNot:t(xj),ActionStringEquals:t(Ij),ActionStringLength:t(Ej),ActionMBStringLength:t(wj),ActionStringAdd:t(Sj),ActionStringExtract:t(Dj),ActionMBStringExtract:t(Tj),ActionStringLess:t(Pj),ActionToInteger:t(Oj),ActionCharToAscii:t(Mj),ActionMBCharToAscii:t(Bj),ActionAsciiToChar:t(Nj),ActionMBAsciiToChar:t(Lj),ActionJump:t(Rj),ActionIf:t(Fj),ActionCall:t(kj),ActionGetVariable:t(Uj),ActionSetVariable:t(jj),ActionGetURL2:t(Vj),ActionGotoFrame2:t(Qj),ActionSetTarget2:t(Gj),ActionGetProperty:t(zj),ActionSetProperty:t(Hj),ActionCloneSprite:t(Xj),ActionRemoveSprite:t(Yj),ActionStartDrag:t(qj),ActionEndDrag:t(Kj),ActionWaitForFrame2:t(Wj),ActionTrace:t(Jj),ActionGetTime:t($j),ActionRandomNumber:t(Zj),ActionCallFunction:t(tV),ActionCallMethod:t(eV),ActionConstantPool:t(iV),ActionDefineFunction:t(rV),ActionDefineLocal:t(oV),ActionDefineLocal2:t(aV),ActionDelete:t(sV),ActionDelete2:t(uV),ActionEnumerate:t(lV),ActionEquals2:t(cV),ActionGetMember:t(hV),ActionInitArray:t(pV),ActionInitObject:t(dV),ActionNewMethod:t(fV),ActionNewObject:t(gV),ActionSetMember:t(_V),ActionTargetPath:t(mV),ActionWith:t(yV),ActionToNumber:t(AV),ActionToString:t(vV),ActionTypeOf:t(bV),ActionAdd2:t(CV),ActionLess2:t(xV),ActionModulo:t(IV),ActionBitAnd:t(EV),ActionBitLShift:t(wV),ActionBitOr:t(SV),ActionBitRShift:t(DV),ActionBitURShift:t(TV),ActionBitXor:t(PV),ActionDecrement:t(OV),ActionIncrement:t(MV),ActionPushDuplicate:t(BV),ActionReturn:t(NV),ActionStackSwap:t(LV),ActionStoreRegister:t(RV),ActionInstanceOf:t(FV),ActionEnumerate2:t(kV),ActionStrictEquals:t(UV),ActionGreater:t(jV),ActionStringGreater:t(VV),ActionDefineFunction2:t(QV),ActionExtends:t(GV),ActionCastOp:t(zV),ActionImplementsOp:t(HV),ActionTry:t(XV),ActionThrow:t(YV),ActionFSCommand2:t(qV),ActionStrictMode:t(KV)}}()),pU}var fU=function(t){void 0===t&&(t=!1),this.inlinePop=t},gU=((Zk={})[78]={AllowReturnValue:!0,AllowStackToArgs:!0,AllowCallapsDouble:!0,ArgsCount:2},Zk[79]={AllowStackToArgs:!0,ArgsCount:3},Zk[71]={AllowStackToArgs:!0,AllowReturnValue:!0,PlainArgs:!0,ArgsCount:2},Zk[103]={AllowStackToArgs:!0,AllowReturnValue:!0,ArgsCount:2},Zk),_U=function(){function t(){}return t.prototype.convertArgs=function(t,e,n,i){for(var r,o,a,s,u,l,c=[],h=t.length,p=0;p<h;p++)"object"!=typeof(r=t[p])||null===r||Array.isArray(r)?void 0===r?c.push("undefined"):c.push(JSON.stringify(r)):r instanceof uU?i.singleConstantPool?(o=i.singleConstantPool[r.constantIndex],c.push(void 0===o?"undefined":JSON.stringify(o))):(a="",(s=n.constantPool)&&(a=(a=void 0===(o=s[r.constantIndex])?"undefined":JSON.stringify(o)).indexOf("*/")>=0?"":" /* "+a+" */"),c.push("constantPool["+r.constantIndex+"]"+a)):r instanceof sU?(u=r.registerNumber)<0||u>=i.registersLimit?c.push("undefined"):c.push("registers["+u+"]"):r instanceof eU?(n[l="code_"+e+"_"+p]=r,c.push("res."+l)):r instanceof fU&&r.inlinePop&&c.push("stack.pop()");return c.join(",")},t.prototype.convertAction=function(t,e,n,i,r,o,a){var s=o[i-1],u=t.flags,l="";if((null==u?void 0:u.optimised)&&(l=" /* ".concat(t.action.actionName," optimised */\n")),null==u?void 0:u.killed)return" /* ".concat(t.action.actionName," killed by optimiser */\n");if(!t.action.knownAction)return" // unknown actionCode ".concat(t.action.actionCode," at ").concat(t.action.position,"\n");switch(t.action.actionCode){case 153:case 62:return"";case 136:return n.constantPool=t.action.args[0],a.forward["constPool".concat(e)]="[".concat(this.convertArgs(t.action.args[0],e,n,r),"]")," constantPool = ectx.constantPool = constPool".concat(e,";\n");case 150:return l+" stack.push("+this.convertArgs(t.action.args,e,n,r)+");\n";case 135:var c=t.action.args[0];return c<0||c>=r.registersLimit?"":" registers["+c+"] = stack[stack.length - 1];\n";case 138:case 141:var h=this.convertArgs(t.action.args,e,n,r);return" if (calls."+t.action.actionName+"(ectx,["+h+"])) { position = "+t.conditionalJumpTo+"; checkTimeAfter -= "+(i+1)+"; break; }\n";case 157:return" if (!!stack.pop()) { position = "+t.conditionalJumpTo+"; checkTimeAfter -= "+(i+1)+"; break; }\n";default:if((h=t.action.args?this.convertArgs(t.action.args,e,n,r):"")&&!u.PlainArgs&&(h="["+h+"]"),142===t.action.actionCode){var p="defFunArgs".concat(e);a.forward[p]=h,h=p}if(l+=" calls."+t.action.actionName+"(ectx"+(h?", "+h:"")+");\n","ActionCallMethod"==t.action.actionName&&(s||(l="// strange oppcode at ".concat(t.action.position,"\n")+l),s&&150==s.action.actionCode)){var d=this.convertArgs(s.action.args,e-1,n,r);'"gotoAndStop"'!=d&&'"gotoAndPlay"'!=d||(l+=" if(ectx.scopeList && ectx.scopeList.scope && ectx.scopeList.scope.adaptee && !ectx.scopeList.scope.adaptee.parent){ ectx.framescriptmanager.execute_avm1_constructors(); return;}\n")}return l}},t.prototype.inlineStackOpt=function(t,e,n){if(!n.length)return!1;var i=e[t],r=i.flags,o=i.action.actionCode,a=e[n[0]];n.length=0;var s=gU[o];if(!s||!s.AllowStackToArgs)return!1;r.PlainArgs=s.PlainArgs;var u=a.action.args;if(u.length===s.ArgsCount)a.flags.killed=!0,i.action.args=u;else if(u.length>s.ArgsCount){var l=u.length-s.ArgsCount;i.action.args=u.slice(l),u.length=l,a.flags.optimised=!0}else{var c=s.ArgsCount-u.length;if(c>1)return!1;a.flags.killed=!0,i.action.args=u.slice();for(var h=0;h<c;h++)i.action.args.unshift(new fU(!0))}return r.optimised=!0,!0},t.prototype.optimiser=function(t){for(var e=t.items,n=[],i=!0,r=0,o=e.length;r<o;r++){var a=e[r],s=a.action.actionCode;if(a.flags=a.flags||{},150!==s){if(n.length>1)for(var u=n[0],l=n[n.length-1],c=e[u].action,h=u+1;h<=l;h++)c.args=c.args.concat(e[h].action.args),e[h].flags.killed=!0;i=!!i&&this.inlineStackOpt(r,e,n),n.length=0}switch(s){case 150:n.push(r),i=!0;break;case 78:var p=a.action.args;if(!(null==p?void 0:p.length))break;var d=p[0];if(!(d instanceof fU&&d.inlinePop))break;for(var f=r-1;f>=0&&e[f].flags.killed;f--);if(f>=0){var g=e[f],_=g.action.args;if(78===g.action.actionCode&&(null==_?void 0:_.length)){g.flags.killed=!0,a.flags.optimised=!0,p.shift();for(var m=_.length-1;m>=0;m--)p.unshift(_[m])}}}}},t.prototype.generate=function(t,e){var n=this;void 0===e&&(e=null);var i=t.blocks,r={},o={forward:{},back:{}},a=t.dataId.replace(hU,"_"),s="return function "+a+"(ectx) {\nvar position = 0;\nvar checkTimeAfter = 0;\nvar constantPool = ectx.constantPool, registers = ectx.registers, stack = ectx.stack;\n",u="",l="";LR.value&&(l+="/* Running "+a+" */ if (Shumway.AVM1.Debugger.pause || Shumway.AVM1.Debugger.breakpoints."+a+") { debugger; }\n"),l+="while (!ectx.isEndOfActions) {\n"+"if (checkTimeAfter <= 0) { checkTimeAfter = ".concat(AU,"; ectx.context.checkTimeout(); }\n\n")+"switch(position) {\n";var c=0;for(var h in i.forEach((function(e){l+=" case "+e.label+":\n",n.optimiser(e);var i=e.items.map((function(i,a){return n.convertAction(i,c++,r,a,t,e.items,o)}));l+=i.join(""),l+=" position = "+e.jump+";\n checkTimeAfter -= "+e.items.length+";\n break;\n"})),l+=" default: ectx.isEndOfActions = true; break;\n}\n}\nreturn stack.pop();};",u+="\n// hoisted vars\n",o.forward)u+="var ".concat(h," = ").concat(o.forward[h],";\n");l=(u+="\n")+s+l,l+="//# sourceURL=http://jit/"+(e&&!hU.test(e)?e:a);try{return new Function("calls","res",l)(dU(),r)}catch(t){throw t}},t}();function mU(t,e,n,i,r){if(OR.value)try{throw new Error(t)}catch(t){}MR.value&&Od.warning.apply(console,arguments)}var yU,AU=1e3,vU=1e3;!function(t){t[t.DEFAULT=0]="DEFAULT",t[t.TARGET=1]="TARGET",t[t.REPLACE_TARGET=2]="REPLACE_TARGET"}(yU||(yU={}));var bU=function(t,e){this.scope=t,this.previousScopeItem=e,this.flags=yU.DEFAULT},CU=function(t){function e(e,n){var i=t.call(this,e)||this;return i.alSetOwnProperty("this",new UL(71,n)),i.alSetOwnProperty("_global",new UL(71,e.globals)),i}return FL(e,t),e}(jL),xU=function(){function t(t,e,n,i,r){this.previousFrame=t,this.currentThis=e,this.fn=n,this.args=i,this.ectx=r,this.inSequence=!!t&&(t.calleeThis===e&&t.calleeFn===n),this.resetCallee()}return t.prototype.setCallee=function(t,e,n,i){this.calleeThis=t,this.calleeSuper=e,this.calleeFn=n},t.prototype.resetCallee=function(){this.calleeThis=null,this.calleeSuper=null,this.calleeFn=null},t}(),IU=function(){function t(t){this._context=t}return t.prototype.hasProperty=function(t,e){return function(t,e,n){var i=Ik(t,e);return n=t.normalizeName(n),i.alHasProperty(n)}(this._context,t,e)},t.prototype.getProperty=function(t,e){return OU(this._context,t,e)},t.prototype.setProperty=function(t,e,n){return MU(this._context,t,e,n)},t.prototype.warn=function(t){mU.apply(null,arguments)},t}(),EU=function(t){function e(e){var n=t.call(this,e)||this;return n.globals=VF.createGlobalsObject(n),n.actions=new QF(n),n.initialScope=new bU(n.globals,null),n.utils=new IU(n),n.isActive=!1,n.executionProhibited=!1,n.actionTracer=PR.value?new $V:null,n.abortExecutionAt=0,n.stackDepth=0,n.frame=null,n.isTryCatchListening=!1,n.errorsIgnored=0,n.deferScriptExecution=!0,n}return FL(e,t),e.prototype._getExecutionContext=function(){return this.frame.ectx},e.prototype.resolveTarget=function(t){return tj(this._getExecutionContext(),t,!0)},e.prototype.resolveRoot=function(){return ej(this._getExecutionContext())},e.prototype.checkTimeout=function(){Date.now(),this.abortExecutionAt},e.prototype.pushCallFrame=function(t,e,n,i){var r=new xU(this.frame,t,e,n,i);return this.frame=r,r},e.prototype.popCallFrame=function(){var t=this.frame.previousFrame;return this.frame=t,t},e.prototype.executeActions=function(t,e){if(!this.executionProhibited){var n,i=this.isActive;i||(this.isActive=!0,this.abortExecutionAt=BR.value?Number.MAX_VALUE:Date.now()+1e3,this.errorsIgnored=0);try{!function(t,e,n){t.actionTracer;var i,r=new bU(new CU(t,n),t.initialScope),o=new bU(n,r);o.flags|=yU.TARGET;var a=QU.create(t,o,[],UU);t.pushCallFrame(n,null,null,a);try{JV(a,e)}catch(t){i=LU(t)}a.dispose(),i instanceof SU&&(t.executionProhibited=!0,console.error("Disabling AVM1 execution"));if(t.popCallFrame(),i)throw i}(this,t,e)}catch(t){n=t}this.isActive=i,n&&console.error("error in framescripts",n)}},e.prototype.executeFunction=function(t,e,n){if(!this.executionProhibited){var i,r=this.isActive;return r||(this.isActive=!0,this.abortExecutionAt=BR.value?Number.MAX_VALUE:Date.now()+1e3,this.errorsIgnored=0),i=t.alCall(e,n),this.isActive=r,i}},e}(iU);iU.create=function(t){return new EU(t)};var wU=function(t){this.error=t},SU=function(t){function e(e,n){var i=t.call(this,e)||this;return i.error=n,i}return FL(e,t),e}(Error);function DU(t,e,n){var i=yk(0,e),r=yk(0,n);if("string"==typeof i&&"string"==typeof r)return xk(t,i)<xk(t,r);var o=vk(t,i),a=vk(t,r);return isNaN(o)||isNaN(a)?void 0:o<a}function TU(t,e,n){if(typeof e==typeof n){if("number"==typeof e){var i=Math.abs(e),r=Math.abs(n),o=1e-6*(i>r?i:r);return Math.abs(e-n)<=o}return e===n}return null==e&&null==n||("number"==typeof e&&"string"==typeof n?""!==n&&e===+n:"string"==typeof e&&"number"==typeof n?""!==e&&+e===n:"boolean"==typeof e&&(e=+e,"number"==typeof n||"string"==typeof n)?""!==n&&e===+n:"boolean"==typeof n&&(n=+n,"number"==typeof e||"string"==typeof e)?""!==e&&+e===n:"number"!=typeof e&&"string"!=typeof e||"object"!=typeof n||null===n?"object"==typeof e&&null!==e&&("number"==typeof n||"string"==typeof n)&&("object"!=typeof(e=yk(0,e))&&TU(t,e,n)):"object"!=typeof(n=yk(0,n))&&TU(t,e,n))}function PU(t,e){if(xd(t)||xd(e))return!1;var n=e.alGetPrototypeProperty();if(!n)return!1;for(var i=t;i;){if(i===n)return!0;i=i.alPrototype}return!1}function OU(t,e,n){var i=Ik(t,e);if(i)return i.alGet(n)}function MU(t,e,n,i){var r=Ik(t,e);if(r)if("__proto__"==n){if(i){for(var o=i.alGetKeys(),a=0;a<o.length;a++){var s=o[a];""!=s&&(r.alPut(s,i.alGet(s)),NU(t,s,r))}r.protoTypeChanged=!(i instanceof $R)}}else r.alPut(n,i),r.adaptee&&NU(t,n,r)}function BU(t,e,n){var i=Ik(t,e);n=t.normalizeName(n);var r=i.alDeleteProperty(n);return NU(t,n,i),r}function NU(t,e,n){void 0!==e&&(e=Sk(t,e),"o"===(e=t.normalizeName(e))[0]&&"n"===e[1]&&n&&n.updateEventByPropName&&n.updateEventByPropName(e))}function LU(t){return"undefined"!=typeof InternalError&&t instanceof InternalError&&"too much recursion"===t.message?new SU("long running script -- AVM1 recursion limit is reached"):t}function RU(t,e){if(Ok(t))return t.alConstruct(e)}function FU(t,e,n){"boolean"!=typeof t&&"string"!=typeof t&&"number"!=typeof t&&Pk(t,(function(i){var r;if("string"!=typeof i||-1==i.indexOf("_internal_TF")){var o=t.alGet(i);(null===(r=null==o?void 0:o.adaptee)||void 0===r?void 0:r.isAsset(Qp))&&o.adaptee.isStatic||e.call(n,i)}}),n)}function kU(t,e,n){if(t.swfVersion<6)return null;var i=e.inSequence&&e.previousFrame.calleeSuper;if(!i){for(i=e.currentThis;i&&!i.alHasOwnProperty(n);)i=i.alPrototype;if(!i)return null}return i=i.alPrototype}var UU=4;var jU=function(t){function e(e,n){var i=t.call(this,e)||this;return i.callFrame=n,i.alPrototype=e.builtins.Object.alGetPrototypeProperty(),i}return FL(e,t),e}(jL),VU=function(t){function e(e,n,i,r){var o=t.call(this,e,n)||this;return Fk(o,{callee:{value:i},caller:{value:r}}),o}return FL(e,t),e}(ik),QU=function(){function t(t,e,n,i){this.framescriptmanager=Nl,this.context=t,this.actions=t.actions,this.isSwfVersion5=t.swfVersion>=5,this.isSwfVersion7=t.swfVersion>=7,this.registers=[],this.stack=[],this.frame=null,this.recoveringFromError=!1,this.isEndOfActions=!1,this.reset(e,n,i)}return t.alInitStatic=function(){this.cache=[]},t.prototype.reset=function(t,e,n){this.scopeList=t,this.constantPool=e,this.registers.length=n},t.prototype.clean=function(){this.scopeList=null,this.constantPool=null,this.registers.length=0,this.stack.length=0,this.frame=null,this.recoveringFromError=!1,this.isEndOfActions=!1},t.prototype.pushScope=function(t){var e=Object.create(this);return e.stack=[],xd(t)||(e.scopeList=t),e},t.prototype.dispose=function(){this.clean();var e=this.context.getStaticState(t);e.cache.length<t.MAX_CACHED_EXECUTIONCONTEXTS&&e.cache.push(this)},t.create=function(e,n,i,r){var o,a=e.getStaticState(t);return a.cache.length>0?(o=a.cache.pop()).reset(n,i,r):o=new t(e,n,i,r),o},t.MAX_CACHED_EXECUTIONCONTEXTS=20,t}(),GU=function(t){function e(e){var n=t.call(this,e)||this;return n.alPut("toString",new gk(e,n._toString)),n}return FL(e,t),e.prototype._toString=function(){return this},e}(jL),zU=function(t){function e(e,n,i,r,o,a,s,u){var l=t.call(this,e)||this;l.functionName=r,l.actionsData=i,l.parametersNames=o,l.registersAllocation=s,l.suppressArguments=u,l.scopeList=n.scopeList,l.constantPool=n.constantPool;for(var c=null,h=s?s.length:0,p=0;p<h;p++){var d=s[p];d&&1===d.type&&(c||(c=[]),c[s[p].index]=!0)}l.skipArguments=c;var f=Math.min(a,255);return f=Math.max(f,h+1),l.registersLength=f,l}return FL(e,t),e.prototype.alCall=function(t,e){var n,i,r=this.context;if(!r.executionProhibited){var o=new GU(r),a=new bU(o,this.scopeList),s=this.scopeList.scope;e=e||[];var u,l,c=QU.create(r,a,this.constantPool,this.registersLength),h=r.frame?r.frame.fn:void 0,p=r.pushCallFrame(t,this,e,c),d=this.suppressArguments;4&d||o.alPut("arguments",new VU(r,e,this,h)),2&d||o.alPut("this",t),8&d||(u=new jU(r,p),o.alPut("super",u));var f=c.registers,g=this.registersAllocation,_=g?g.length:0;for(l=0;l<_;l++){var m=g[l];if(m)switch(m.type){case 1:f[l]=e[m.index];break;case 2:f[l]=t;break;case 4:f[l]=new VU(r,e,this,h);break;case 8:u=u||new jU(r,p),f[l]=u;break;case 16:f[l]=r.globals;break;case 32:var y=null;if(s&&((y=s.alGet("_parent"))||(y=s.alGet("this"))&&(y=y.alGet("_parent"))),!y&&((y=t)&&(y=y.alGet("_parent")),y&&this.isOnEnter&&y.alGet("_parent")&&(y=y.alGet("_parent")),!y&&(null===(i=null===(n=this.scopeList)||void 0===n?void 0:n.previousScopeItem)||void 0===i?void 0:i.scope)))for(var A=this.scopeList.previousScopeItem;A;)A.scope&&A.scope instanceof $R?y=A.scope:A.scope&&(y=A.scope.alGet("this")),y&&(y=y.alGet("_parent")),A=A.previousScopeItem?A.previousScopeItem:null;y&&(f[l]=y);break;case 64:f[l]=ej(c)}}var v,b=this.parametersNames,C=this.skipArguments;for(l=0;l<e.length||l<b.length;l++)C&&C[l]||o.alPut(b[l],e[l]);r.actionTracer;var x=this.actionsData;if(++r.stackDepth>=256)throw new SU("long running script -- AVM1 recursion limit is reached");return v=JV(c,x),r.stackDepth--,r.popCallFrame(),c.dispose(),v}},e}(_k);function HU(t,e){return isNaN(t)||t<0?(mU("Invalid amount of arguments: "+t),0):(t|=0)>e?(mU("Truncating amount of arguments: from "+t+" to "+e),e):t}function XU(t){var e=+t.pop();e=HU(e,t.length);for(var n=[],i=0;i<e;i++)n.push(t.pop());return n}function YU(t,e){var n=null;if(e){if("string"==typeof e)for(;e.length&&"."==e[e.length-1];)e=e.substring(0,e.length-1);try{WU(n=tj(t,e,!1))||(mU("Invalid AVM1 target object: "+e),n=void 0)}catch(t){mU("Unable to set target: "+t)}}n?(t.scopeList.flags|=yU.REPLACE_TARGET,t.scopeList.replaceTargetBy=n):(t.scopeList.flags&=~yU.REPLACE_TARGET,t.scopeList.replaceTargetBy=null)}function qU(t,e,n,i,r,o,a){return new zU(t.context,t,e,n,i,r,o,a)}var KU={scope:null,propertyName:null,value:void 0};function WU(t){return t instanceof jL&&Uk(t)}function JU(t,e,n,i){var r;void 0===i&&(i=null);for(var o=KU,a=t;a;a=a.previousScopeItem){if(!(a.flags&yU.REPLACE_TARGET)||64&n||r||(r=a.replaceTargetBy),a.flags&yU.TARGET){if(2&n)return o.scope=r||a.scope,o.propertyName=e,o.value=32&n?o.scope.alGet(e):void 0,o;if(1&n&&r){if(r.alHasProperty(e))return o.scope=r,o.propertyName=e,o.value=32&n?r.alGet(e):void 0,o;continue}}if(a.scope.alHasProperty(e)){var s=a.scope.alGet(e);if(i&&(!s||"object"!=typeof s||!s.alHasProperty||!s.alHasProperty(i)))continue;return o.scope=a.scope,o.propertyName=e,o.value=32&n?a.scope.alGet(e):void 0,o}}}function $U(t,e,n){var i,r,o,a=e.length,s=0,u=!0,l=null,c=null,h=void 0,p=e;if(!function(t){return t&&(t.indexOf(".")>=0||t.indexOf(":")>=0||t.indexOf("/")>=0)}(e))return"string"==typeof(e=t.context.normalizeName(e))&&e.startsWith("_level")?((i=KU).scope=c,i.propertyName=e,i.value=t.context.resolveLevel(+e[6]),i):JU(t.scopeList,e,n);if("."==e[e.length-1])return null;if("/"===e[0]?((i=JU(t.scopeList,"_root",33))&&(l=i.propertyName,c=i.scope,h=i.value),s++,o=!1):(i=null,o=!0),s>=a)return i;for(var d=s;s<a;){if(!(o||h instanceof jL))return mU("Unable to resolve variable on invalid object "+e.substring(d,s-1)+" (expr "+e+")"),null;if(d=s,"."===e[s]&&"."===e[s+1])s+=2,l="_parent";else{for(;s<a&&"/"!==(r=e[s])&&"."!==r&&":"!==r;)s++;l=e.substring(d,s)}if(""===l&&s<a)s++;else{c=h;var f=!1;if(u){var g=h instanceof $R?h._lookupChildByName(l):void 0;g&&(f=!0,h=g)}if(!f)if(o){d=s+1;var _=s+1,m="";if("."===e[_]&&"."===e[_+1])_+=2,m="_parent";else{for(;_<a&&"/"!==(r=e[_])&&"."!==r&&":"!==r;)_++;m=e.substring(d,_)}""==m&&(m=null),!(i=JU(t.scopeList,l,n,m))&&m&&(i=JU(t.scopeList,l,n)),i&&(f=!0,l=i.propertyName,c=i.scope,h=i.value,s<a&&!h&&c&&(h=c)),o=!1}else h.alHasProperty(l)&&(h=h.alGet(l),f=!0);if(f||"_"!==l[0]||(l.startsWith("_level")?(h=t.context.resolveLevel(+l[6]),f=!0):"_root"===l&&(h=ej(t),f=!0)),!(f||2&n))return mU("Unable to resolve "+l+" on "+e.substring(d,s-1)+" (expr "+e+")"),null;if(s>=a)break;var y=e[s++];"/"!==y||":"!==(r=e[s])&&"."!==r||(y=e[s++]),u="/"===y}}return(i=KU).scope=c,i.propertyName=p.substring(d,s),i.value=32&n?h:void 0,i}function ZU(t,e){for(var n=t.scopeList;n.previousScopeItem;n=n.previousScopeItem){if(n.flags&yU.REPLACE_TARGET&&e)return n.replaceTargetBy;if(n.flags&yU.TARGET)return n.scope}}function tj(t,e,n){var i;if(WU(e))i=e;else if(e=xd(e)?"":xk(this,e)){var r=xk(t.context,e),o=$U(t,r,161|(n?0:64));o&&WU(o.value)?i=o.value:(mU("Invalid AVM1 target object: "+r),i=void 0)}else i=ZU(t,!0);return i}function ej(t){return ZU(t,!0).get_root()}function nj(t,e){var n=e[0];e[1]?t.actions.gotoAndPlay(n+1):t.actions.gotoAndStop(n+1)}function ij(t,e){var n=e[0],i=e[1];t.actions.getURL(n,i)}function rj(t){t.actions.nextFrame()}function oj(t){t.actions.prevFrame()}function aj(t){t.actions.play()}function sj(t){t.actions.stop()}function uj(t){t.actions.toggleHighQuality()}function lj(t){t.actions.stopAllSounds()}function cj(t,e){var n=e[0];return!t.actions.ifFrameLoaded(n)}function hj(t,e){YU(t,e[0])}function pj(t,e){var n=e[0];e[1]?t.actions.gotoAndPlay(n):t.actions.gotoAndStop(n)}function dj(t,e){var n=t.registers,i=t.constantPool,r=t.stack;e.forEach((function(t){if(t instanceof uU)r.push(i[t.constantIndex]);else if(t instanceof sU){var e=t.registerNumber;e<0||e>=n.length?r.push(void 0):r.push(n[e])}else r.push(t)}))}function fj(t){t.stack.pop()}function gj(t){var e=t.stack,n=vk(t.context,e.pop()),i=vk(t.context,e.pop());t.isSwfVersion7||(void 0===n&&(n=0),void 0===i&&(i=0)),isFinite(n)&&isFinite(i)?null==i?e.push(NaN):e.push(n+i):n===-1/0&&i===-1/0?e.push(-1/0):isNaN(n)||isNaN(i)?e.push(NaN):n===i?e.push(1/0):isFinite(n)||isFinite(i)?isFinite(n)?isFinite(i)||e.push(i):e.push(n):e.push(NaN)}function _j(t){var e=t.stack,n=e.pop(),i=e.pop();n=vk(t.context,n),i=vk(t.context,i),t.isSwfVersion7||(null==n&&(n=0),null==i&&(i=0)),isFinite(n)&&isFinite(i)?e.push(i-n):isNaN(n)||isNaN(i)||n===i?e.push(NaN):isFinite(n)?isFinite(i)||e.push(i):n===-1/0?e.push(1/0):e.push(-1/0)}function mj(t){var e=t.stack,n=e.pop();n="\n"===n?NaN:vk(t.context,n);var i=e.pop();i="\n"===i?NaN:vk(t.context,i),t.isSwfVersion7||(null!=n&&void 0!==n||(n=0),null!=i&&void 0!==i||(i=0)),isFinite(n)&&isFinite(i)?e.push(n*i):isNaN(n)||isNaN(i)?e.push(NaN):n===i?e.push(1/0):isFinite(n)||isFinite(i)?isFinite(n)?isFinite(i)||(0==n?e.push(NaN):i>=0?n>=0?e.push(1/0):e.push(-1/0):n>=0?e.push(-1/0):e.push(1/0)):0==i?e.push(NaN):n>=0?i>=0?e.push(1/0):e.push(-1/0):i>=0?e.push(-1/0):e.push(1/0):e.push(-1/0)}function yj(t){var e=t.stack,n=e.pop(),i=e.pop(),r=typeof(n=Number.isNaN(+n)?n:+n),o=typeof(i=Number.isNaN(+i)?i:+i);t.isSwfVersion7||(null!==n&&"undefined"!==r||(n=0,r="number"),null!==i&&"undefined"!==o||(i=0,o="number")),"object"===r||"object"===o||"string"===r||"string"===o||"undefined"===r||"undefined"===o||isNaN(n)||isNaN(i)?e.push(NaN):(n="boolean"===r?+n:vk(t.context,n),i="boolean"===o?+i:vk(t.context,i),!isFinite(n)||!isFinite(i)||0==n&&0==i?0==n&&0==i||!isFinite(n)&&!isFinite(i)?e.push(NaN):0==n?e.push(i):0==i?e.push(0):isFinite(i)?isFinite(n)||(isNaN(n)?e.push(n):e.push(0)):i>=0?n>=0?e.push(1/0):e.push(-1/0):n>=0?e.push(-1/0):e.push(1/0):0==n?e.push(i>0?1/0:-1/0):e.push(i/n))}function Aj(t){var e=t.stack,n=t.isSwfVersion5,i=vk(t.context,e.pop()),r=vk(t.context,e.pop()),o=Math.abs(i),a=Math.abs(r),s=1e-6*(o>a?o:a),u=Math.abs(i-r)<=s;e.push(n?u:u?1:0)}function vj(t){var e=t.stack,n=t.isSwfVersion5,i=vk(t.context,e.pop()),r=vk(t.context,e.pop())<i;e.push(n?r:r?1:0)}function bj(t){var e=t.stack,n=t.isSwfVersion5,i=Ak(t.context,e.pop()),r=Ak(t.context,e.pop()),o=i&&r;e.push(n?o:o?1:0)}function Cj(t){var e=t.stack,n=t.isSwfVersion5,i=Ak(t.context,e.pop()),r=Ak(t.context,e.pop()),o=i||r;e.push(n?o:o?1:0)}function xj(t){var e=t.context,n=t.stack,i=!Ak(e,n.pop());n.push(function(t,e){return t.swfVersion>=5?!!e:+e}(e,i))}function Ij(t){var e=t.stack,n=t.isSwfVersion5,i=xk(t.context,e.pop())==xk(t.context,e.pop());e.push(n?i:i?1:0)}function Ej(t){var e=t.stack,n=xk(t.context,e.pop());e.push(t.actions.length_(n))}function wj(t){var e=t.stack,n=xk(t.context,e.pop());e.push(t.actions.length_(n))}function Sj(t){var e=t.stack,n=xk(t.context,e.pop()),i=xk(t.context,e.pop());e.push(i+n)}function Dj(t){var e=t.stack,n=e.pop(),i=e.pop(),r=xk(t.context,e.pop());e.push(t.actions.substring(r,i,n))}function Tj(t){var e=t.stack,n=e.pop(),i=e.pop(),r=xk(t.context,e.pop());e.push(t.actions.mbsubstring(r,i,n))}function Pj(t){var e=t.stack,n=t.isSwfVersion5,i=xk(t.context,e.pop()),r=xk(t.context,e.pop())<i;e.push(n?r:r?1:0)}function Oj(t){var e=t.stack,n=Ck(t.context,e.pop());e.push(n)}function Mj(t){var e=t.stack,n=e.pop(),i=t.actions.ord(n);e.push(i)}function Bj(t){var e=t.stack,n=e.pop(),i=t.actions.mbord(n);e.push(i)}function Nj(t){var e=t.stack,n=+e.pop(),i=t.actions.chr(n);e.push(i)}function Lj(t){var e=t.stack,n=+e.pop(),i=t.actions.mbchr(n);e.push(i)}function Rj(t,e){}function Fj(t,e){return!!t.stack.pop()}function kj(t){var e=t.stack.pop();t.actions.call(e)}function Uj(t){var e=t.stack,n=e.pop();n&&(n=xk(t.context,n));var i=e.length;e.push(void 0);var r=$U(t,"__get__"+n,33);if(r&&r.value){var o=nV(t,r.scope,r.propertyName,[]),a=o.result;if(o.called)return void(e[i]=a)}var s=$U(t,n,33);xd(s)?"TRUE"==n?e[i]=!0:"FALSE"==n?e[i]=!1:n&&0==n.indexOf("this.")?(s=$U(t,n=n.replace("this.",""),33),e[i]=s?s.value:void 0):MR.value&&mU("AVM1 warning: cannot look up variable '"+n+"'"):e[i]=s?s.value:void 0}function jj(t){var e=t.stack,n=e.pop(),i=""+e.pop(),r=$U(t,"__set__"+i,33);if(r&&r.value&&nV(t,r.scope,r.propertyName,[n]).called)return;var o=$U(t,i,2);o?(o.scope.alPut(o.propertyName,n),NU(t.context,o.propertyName,o.scope)):MR.value&&mU("AVM1 warning: cannot look up variable '"+i+"'")}function Vj(t,e){var n,i=t.stack,r=e[0],o=i.pop(),a=i.pop();1&r?n="GET":2&r&&(n="POST");var s=64&r;128&r?t.actions.loadVariables(a,o,n):s?t.actions.loadMovie(a,o,n):t.actions.getURL(a,o,n)}function Qj(t,e){var n=t.stack,i=e[0],r=[n.pop()];2&i&&r.push(e[1]),(1&i?t.actions.gotoAndPlay:t.actions.gotoAndStop).apply(t.actions,r)}function Gj(t){var e=t.stack;YU(t,xk(t.context,e.pop()))}function zj(t){var e=t.stack,n=e.pop(),i=e.pop(),r=e.length;e.push(void 0);var o=tj(t,i,!0),a=cR[n];o&&a&&(e[r]=o.alGet(a))}function Hj(t){var e=t.stack,n=e.pop(),i=e.pop(),r=tj(t,e.pop(),!0),o=cR[i];r&&o&&r.alPut(o,n)}function Xj(t){var e=t.stack,n=e.pop(),i=e.pop(),r=e.pop();t.actions.duplicateMovieClip(r,i,n)}function Yj(t){var e=t.stack.pop();t.actions.removeMovieClip(e)}function qj(t){var e=t.stack,n=t.actions.startDrag,i=e.pop(),r=e.pop();if(!!e.pop()){var o=e.pop(),a=e.pop(),s=e.pop(),u=e.pop();n.call(t.actions,i,r,u,s,a,o)}else n.call(t.actions,i,r)}function Kj(t){t.actions.stopDrag()}function Wj(t,e){var n=t.stack.pop();return!t.actions.ifFrameLoaded(n)}function Jj(t){var e=t.stack.pop();t.actions.trace(e)}function $j(t){t.stack.push(t.actions.getTimer())}function Zj(t){var e=t.stack;e.push(t.actions.random(e.pop()))}function tV(t){var e=t.stack,n=e.pop();Nk(t.context,n)&&(n=n.value.join("."));var i=XU(e),r=e.length;e.push(void 0);var o=$U(t,n,33);if(xd(o))mU("AVM1 warning: cannot look up function '"+n+"'");else{var a=o.value;Ok(a)?("array"==n.toLowerCase()&&(i=[i]),e[r]=a.alCall(o.scope||null,i)):mU("AVM1 warning: function '"+n+(a?"' is not callable":"' is undefined"))}}function eV(t){var e=t.stack,n=e.pop(),i=e.pop(),r=XU(e),o=e.length;e.push(void 0);var a=nV(t,i,n,r);a.called&&(e[o]=a.result)}function nV(t,e,n,i){if(xd(e))return mU("AVM1 warning: method '"+n+"' can't be called on undefined object"),{called:!1,result:void 0};var r,o,a,s,u=t.context.frame,l=!1;if(xd(n)||""===n){if(e instanceof jU){var c=e.callFrame;(r=kU(t.context,c,"__constructor__"))&&(o=r.alGet("__constructor__"),a=c.currentThis)}else o=e,a=e;return Ok(o)?(u.setCallee(a,r,o,i),s=o.alCall(a,i),l=!0,u.resetCallee()):mU("AVM1 warning: obj '"+e+(e?"' is not callable":"' is undefined")),{result:s,called:l}}if(e instanceof jU){c=e.callFrame;(r=kU(t.context,c,n))&&(o=r.alGet(n),a=c.currentThis)}else o=OU(t.context,e,n),a=Ik(t.context,e);return Ok(o)?(u.setCallee(a,r,o,i),"toString"==n&&"number"==typeof e?1==i.length&&16==i[0]?s=e.toString(16):(s=xk(t.context,e),l=!0):(s=o.alCall(a,i),l=!0),u.resetCallee(),{result:s,called:l}):("function"==typeof o?(s=o(i),l=!0):mU("AVM1 warning: method '"+n+"' on object",e,xd(o)?"is undefined":"is not callable"),{result:s,called:l})}function iV(t,e){var n=e[0];t.constantPool=n}function rV(t,e){var n=t.stack,i=e[0],r=e[1],o=qU(t,i,r,e[2],4,null,0);if(r){var a=t.scopeList.scope;a.alPut(r,o),NU(t.context,r,a)}else n.push(o)}function oV(t){var e=t.stack,n=t.scopeList.scope,i=e.pop(),r=e.pop();n.alPut(r,i)}function aV(t){var e=t.stack,n=t.scopeList.scope,i=e.pop();n.alHasProperty(i)||n.alPut(i,void 0)}function sV(t){var e=t.stack,n=e.pop(),i=e.pop();xd(i)?mU("AVM1 warning: cannot delete member '"+n+"' on undefined object"):e.push(BU(t.context,i,n))}function uV(t){var e=t.stack,n=e.pop(),i=$U(t,n,1);if(xd(i))mU("AVM1 warning: cannot look up variable '"+n+"'");else{var r=i.scope.alGetProperty(n);r&&r.value&&r.value.adaptee||e.push(BU(t.context,i.scope,n))}}function lV(t){var e=t.stack,n=e.pop();e.push(null);var i=$U(t,n,33);if(xd(i))mU("AVM1 warning: cannot look up variable '"+n+"'");else{var r=i.value;xd(r)?mU("AVM1 warning: cannot iterate over undefined object"):FU(r,(function(t){e.push(t)}),null)}}function cV(t){var e=t.stack,n=e.pop(),i=e.pop();e.push(TU(t.context,n,i))}function hV(t,e){for(var n=t.stack,i=e?e[1]:n.pop(),r=e?e[0]:n.pop(),o=e?e.length-1:1,a=void 0,s=0;s<o;){if(null==r)return mU("AVM1 warning: cannot get member '"+i+"' on undefined object"),n[n.length]=void 0;if(r instanceof jU){var u=r.callFrame,l=kU(t.context,u,i);l&&(a=l.alGet(i))}else a=OU(t.context,r,i);if(s===o-1)return n[n.length]=a;r=a,i=e[s+2],s++}return n[n.length]=a}function pV(t){var e=t.stack,n=new ik(t.context,XU(e));e.push(n)}function dV(t){var e=t.stack,n=+e.pop();n=HU(n,e.length>>1);for(var i=Ek(t.context),r=0;r<n;r++){var o=e.pop(),a=e.pop();i.alPut(a,o)}e.push(i)}function fV(t){var e=t.stack,n=e.pop(),i=e.pop(),r=XU(e),o=e.length;if(e.push(void 0),xd(i))mU("AVM1 warning: method '"+n+"' can't be constructed on undefined object");else{var a=RU(xd(n)||""===n?i:OU(t.context,i,n),r);void 0===a&&mU("AVM1 warning: method '"+n+"' on object",i,"is not constructible"),e[o]=a}}function gV(t){var e=t.stack,n=e.pop(),i=XU(e),r=e.length;e.push(void 0);var o=$U(t,n,33);if(xd(o))mU("AVM1 warning: cannot look up object '"+n+"'");else{var a=o.value,s=function(t,e,n){var i=t.builtins,r=void 0;if(e!==i.Array&&e!==i.Object&&e!==i.Date&&e!==i.String&&e!==i.Function||(r=e.alConstruct(n)),e!==i.Boolean&&e!==i.Number||(r=e.alConstruct(n).value),r instanceof jL){var o=new UL(65,e);r.alSetOwnProperty("__constructor__",o)}return r}(t.context,a,i);void 0===s&&void 0===(s=RU(a,i))&&mU("AVM1 warning: object '"+n+(a?"' is not constructible":"' is undefined")),e[r]=s}}function _V(t,e){var n=t.stack,i=e?e[2]:n.pop(),r=e?e[1]:n.pop(),o=e?e[0]:n.pop();xd(o)?mU("AVM1 warning: cannot set member '"+r+"' on undefined object"):o instanceof jU?mU("AVM1 warning: cannot set member '"+r+"' on super"):void 0!==r&&MU(t.context,o,r,i)}function mV(t){var e=t.stack,n=e.pop();e.push(function(t){return"object"==typeof t&&t&&t instanceof $R}(n)?n._target:void 0)}function yV(t,e){var n=t.stack,i=e[0];!function(t,e,n){if(xd(e))mU("The with statement object cannot be undefined.");else{var i=t.context,r=t.scopeList,o=new bU(Ik(i,e),r);JV(t.pushScope(o),n)}}(t,n.pop(),i)}function AV(t){var e=t.stack;e.push(vk(t.context,e.pop()))}function vV(t){var e=t.stack;e.push(xk(t.context,e.pop()))}function bV(t){var e=t.stack,n=function(t){if(null===t)return"null";if("object"==typeof t){if(t instanceof $R)return"movieclip";if(t instanceof VL)return"function"}return typeof t}(e.pop());e.push(n)}function CV(t,e,n){var i=t.stack;arguments.length>1?(n=yk(t.context,n),e=yk(t.context,e)):(n=yk(t.context,i.pop()),e=yk(t.context,i.pop()));var r=typeof e,o=typeof n,a="string"===r,s="string"===o;return a&&s?i[i.length]=e+n:a||s?i[i.length]=(a?e:xk(t.context,e))+(s?n:xk(t.context,n)):(t.isSwfVersion7||(null!==e&&"undefined"!==r||(e=0),null!==n&&"undefined"!==o||(n=0)),null==n||null==e?i.push(NaN):isFinite(e)&&isFinite(n)?i.push(e+n):e===-1/0&&n===-1/0?i.push(-1/0):isNaN(e)||isNaN(n)?i.push(NaN):e===n?i.push(1/0):isFinite(e)||isFinite(n)?isFinite(e)?isFinite(n)||i.push(n):i.push(e):i.push(NaN),i[i.length-1])}function xV(t){var e=t.stack,n=e.pop(),i=e.pop();e.push(DU(t.context,i,n))}function IV(t){var e=t.stack,n=e.pop(),i=e.pop();t.isSwfVersion7||(void 0===n&&(n=0),void 0===i&&(i=0)),n=vk(t.context,n),i=vk(t.context,i),!isFinite(n)||!isFinite(i)||0==n&&0==i?isNaN(n)||isNaN(i)||!isFinite(n)&&!isFinite(i)||isFinite(n)?e.push(NaN):e.push(i):e.push(i%n)}function EV(t){var e=t.stack,n=Ck(t.context,e.pop()),i=Ck(t.context,e.pop());e.push(i&n)}function wV(t){var e=t.stack,n=Ck(t.context,e.pop()),i=Ck(t.context,e.pop());e.push(i<<n)}function SV(t){var e=t.stack,n=Ck(t.context,e.pop()),i=Ck(t.context,e.pop());e.push(i|n)}function DV(t){var e=t.stack,n=Ck(t.context,e.pop()),i=Ck(t.context,e.pop());e.push(i>>n)}function TV(t){var e=t.stack,n=Ck(t.context,e.pop()),i=Ck(t.context,e.pop());e.push(i>>>n)}function PV(t){var e=t.stack,n=Ck(t.context,e.pop()),i=Ck(t.context,e.pop());e.push(i^n)}function OV(t){var e=t.stack,n=vk(t.context,e.pop());n--,e.push(n)}function MV(t){var e=t.stack,n=vk(t.context,e.pop());n++,e.push(n)}function BV(t){var e=t.stack;e.push(e[e.length-1])}function NV(t){t.isEndOfActions=!0}function LV(t){var e=t.stack;e.push(e.pop(),e.pop())}function RV(t,e){var n=t.stack,i=t.registers,r=e[0];r<0||r>=i.length||(i[r]=n[n.length-1])}function FV(t){var e=t.stack,n=e.pop(),i=e.pop();e.push(PU(i,n))}function kV(t){var e=t.stack,n=e.pop();e.push(null),xd(n)?mU("AVM1 warning: cannot iterate over undefined object"):FU(n,(function(t){e.push(t)}),null)}function UV(t){var e=t.stack,n=e.pop(),i=e.pop();e.push(i===n)}function jV(t,e){var n=t.stack,i=e?e[1]:n.pop(),r=e?e[0]:n.pop();return n[n.length]=DU(t.context,i,r)}function VV(t){var e=t.stack,n=t.isSwfVersion5,i=xk(t.context,e.pop()),r=xk(t.context,e.pop())>i;e.push(n?r:r?1:0)}function QV(t,e){var n=t.stack,i=t.scopeList.scope,r=e[0],o=e[1],a=qU(t,r,o,e[2],e[3],e[4],e[5]);o?(i.alPut(o,a),NU(t.context,o,i)):n.push(a)}function GV(t){var e=t.stack,n=t.context,i=Ik(n,e.pop()),r=Ik(n,e.pop()).alGetPrototypeProperty(),o=i.alGetPrototypeProperty();r.alPrototype=o;var a=new UL(65,i);r.alSetOwnProperty("__constructor__",a)}function zV(t){var e=t.stack,n=e.pop(),i=e.pop();e.push(PU(n,i)?n:null)}function HV(t){var e=t.stack,n=e.pop(),i=+e.pop();HU(i,e.length);for(var r=[],o=0;o<i;o++)r.push(e.pop());n._as2Interfaces=r}function XV(t,e){e[0];var n=e[1],i=e[2],r=e[3],o=e[4];!function(t,e,n,i,r,o,a,s){var u,l=t.context,c=t.scopeList,h=t.registers,p=l.isTryCatchListening;try{l.isTryCatchListening=!0,JV(t.pushScope(),o)}catch(e){l.isTryCatchListening=p,i&&e instanceof wU?("string"==typeof r?c.scope.alPut(r,e.error):h[r]=e.error,JV(t.pushScope(),a)):u=e}if(l.isTryCatchListening=p,n&&JV(t.pushScope(),s),u)throw u}(t,0,e[5],r,n,i,o,e[6])}function YV(t){var e=t.stack.pop();throw new wU(e)}function qV(t){var e=t.stack,n=XU(e),i=e.length;e.push(void 0);var r=t.actions.fscommand.apply(t.actions,n);e[i]=r}function KV(t,e){}function WV(t,e){var n,i;try{i=function(t,e){t.stack;var n=e.actionCode,i=e.args;t.context.actionTracer;var r=!1;switch(0|n){case 129:nj(t,i);break;case 131:ij(t,i);break;case 4:rj(t);break;case 5:oj(t);break;case 6:aj(t);break;case 7:sj(t);break;case 8:uj(t);break;case 9:lj(t);break;case 138:r=cj(t,i);break;case 139:hj(t,i);break;case 140:pj(t,i);break;case 150:dj(t,i);break;case 23:fj(t);break;case 10:gj(t);break;case 11:_j(t);break;case 12:mj(t);break;case 13:yj(t);break;case 14:Aj(t);break;case 15:vj(t);break;case 16:bj(t);break;case 17:Cj(t);break;case 18:xj(t);break;case 19:Ij(t);break;case 20:Ej(t);break;case 49:wj(t);break;case 33:Sj(t);break;case 21:Dj(t);break;case 53:Tj(t);break;case 41:Pj(t);break;case 24:Oj(t);break;case 50:Mj(t);break;case 54:Bj(t);break;case 51:Nj(t);break;case 55:Lj(t);break;case 153:case 137:break;case 157:r=Fj(t);break;case 158:kj(t);break;case 28:Uj(t);break;case 29:jj(t);break;case 154:Vj(t,i);break;case 159:Qj(t,i);break;case 32:Gj(t);break;case 34:zj(t);break;case 35:Hj(t);break;case 36:Xj(t);break;case 37:Yj(t);break;case 39:qj(t);break;case 40:Kj(t);break;case 141:r=Wj(t);break;case 38:Jj(t);break;case 52:$j(t);break;case 48:Zj(t);break;case 61:tV(t);break;case 82:eV(t);break;case 136:iV(t,i);break;case 155:rV(t,i);break;case 60:oV(t);break;case 65:aV(t);break;case 58:sV(t);break;case 59:uV(t);break;case 70:lV(t);break;case 73:cV(t);break;case 78:hV(t);break;case 66:pV(t);break;case 67:dV(t);break;case 83:fV(t);break;case 64:gV(t);break;case 79:_V(t);break;case 69:mV(t);break;case 148:yV(t,i);break;case 74:AV(t);break;case 75:vV(t);break;case 68:bV(t);break;case 71:CV(t);break;case 72:xV(t);break;case 63:IV(t);break;case 96:EV(t);break;case 99:wV(t);break;case 97:SV(t);break;case 100:DV(t);break;case 101:TV(t);break;case 98:PV(t);break;case 81:OV(t);break;case 80:MV(t);break;case 76:BV(t);break;case 62:NV(t);break;case 77:LV(t);break;case 135:RV(t,i);break;case 84:FV(t);break;case 85:kV(t);break;case 102:UV(t);break;case 103:jV(t);break;case 104:VV(t);break;case 142:QV(t,i);break;case 105:GV(t);break;case 43:zV(t);break;case 44:HV(t);break;case 143:XV(t,i);break;case 42:YV(t);break;case 45:qV(t);break;case 0:t.isEndOfActions=!0;break;default:throw new Error("Unknown action code: "+n)}return r}(t,e),t.recoveringFromError=!1}catch(e){n=t.context;var r=LU(e);if(OR.value&&!n.isTryCatchListening||r instanceof SU)throw r;if(r instanceof wU)throw r;if(Vg.instance.reportTelemetry({topic:"error",error:1}),!t.recoveringFromError){if(n.errorsIgnored++>=vU)throw new SU("long running script -- AVM1 errors limit is reached");console.error("AVM1 error: "+e),t.recoveringFromError=!0}}return i}function JV(t,e){e.ir||e.compiled||function(t,e){var n,i=t.context,r=new lU(e,i.swfVersion),o=new rU;o.registersLimit=t.registers.length,o.parentResults=e.parent&&e.parent.ir;var a=o.analyze(r);e.ir=a,NR.value&&(n=(new _U).generate(a,e.debugPath),e.compiled=n)}(t,e);var n=t.context,i=t.scopeList.scope.adaptee;i&&i._deferScriptExecution&&(n.deferScriptExecution=!0),i&&($R.currentMCAssetNameSpace=i.assetNamespace);var r=e.compiled;if(r)return r(t);for(var o=0,a=n.abortExecutionAt,s=e.ir,u=0,l=s.actions[u];l&&!t.isEndOfActions;){if(o++%AU==0&&Date.now()>=a)throw new SU("long running script -- AVM1 instruction hang timeout");u=WV(t,l.action)?l.conditionalJumpTo:l.next,l=s.actions[u]}return t.stack.pop()}var $V=function(){function t(){this._indentation=0,this._indentStringCache=[]}return t.prototype._getIndentString=function(){return this._indentStringCache[this._indentation]||(this._indentStringCache[this._indentation]=new Array(this._indentation+1).join(".."))},t.prototype.print=function(t,e){for(var n=t.position,i=t.actionCode,r=t.actionName,o=[],a=0;a<e.length;a++){var s=e[a];if(s&&"object"==typeof s){var u=s.alGetConstructorProperty();o.push("["+(u?u.name:"Object")+"]")}else o.push(s)}console.log("AVM1 trace: "+this._getIndentString()+n+": "+r+"("+i.toString(16)+"), stack="+o)},t.prototype.indent=function(){this._indentation++},t.prototype.unindent=function(){this._indentation--},t.prototype.message=function(t){console.log("AVM1 trace: ------- "+t)},t}(),ZV=function(){function t(){}return t.CDATA_NODE=100,t.COMMENT_NODE=101,t.DOCUMENT_TYPE_NODE=102,t.ELEMENT_NODE=1,t.PROCESSING_INSTRUCTION_NODE=103,t.TEXT_NODE=3,t.XML_DECLARATION=104,t}(),tQ=function(t){function e(e){return t.call(this,ZV.DOCUMENT_TYPE_NODE,"null")||this}return FL(e,t),e.prototype.axCallPublicProperty=function(t,e){return null},e.prototype.axGetPublicProperty=function(t){return null},e.prototype.axSetPublicProperty=function(t,e){return null},e.prototype.createElement=function(t){return console.log("createElement not implemented yet in flash/XMLDocument"),null},e.prototype.createTextNode=function(t){return console.log("createTextNode not implemented yet in flash/XMLDocument"),null},e.prototype.parseXML=function(t){console.log("parseXML not implemented yet in flash/XMLDocument")},e.prototype.toString=function(){return console.log("toString not implemented yet in flash/XMLDocument"),""},e}(CF),eQ=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return FL(e,t),e.prototype._getLevelForRoot=function(t){return 0},e.prototype._getRootForLevel=function(t){return null},e.prototype._addRoot=function(t,e){},e.prototype._removeRoot=function(t){},e}(dl),nQ=function(){},iQ=function(){},rQ=function(){},oQ=function(){},aQ=function(){},sQ=function(){},uQ=function(){},lQ=function(){},cQ=function(){},hQ=function(){},pQ=function(){this.flash={display:{AVM1Movie:eQ,Stage:uR},events:{Event:Event,KeyboardEvent:KeyboardEvent,MouseEvent:MouseEvent,ProgressEvent:ProgressEvent},external:{ExternalInterface:sQ},filters:{},system:{Capabilities:aQ,Security:oQ,fscommand:rQ},ui:{ContextMenu:nQ,ContextMenuItem:iQ,Mouse:uQ},media:{SoundChannel:lQ,SoundTransform:cQ,SoundMixer:hQ},xml:{XMLDocument:tQ}},this.player={}},dQ=function(){function t(){this.avmVersion=r.AVM1,this.enterEvent=new p("enterFrame"),this.exitEvent=new p("exitFrame"),this.avm1Listener={},this._collectedDispatcher=[]}return Object.defineProperty(t.prototype,"factory",{get:function(){if(!this._factory)throw"AVM1Handler - no factory set";return this._factory},enumerable:!1,configurable:!0}),t.prototype.init=function(t,e,n){var i=this;if(Nl.useAVM1=!0,this._avmStage)n(!1);else{this._avmStage=t,this._avmStage.mouseManager.eventBubbling=!1,this._factory=new tU(new EU(e.swfVersion)),this._factory.avm1Context.sec=new pQ,this._factory.avm1Context.setStage(this._avmStage,this,document),this._factory.avm1Context.swfVersion=e.swfVersion,this._avmStage.scaleMode=_f.SHOW_ALL,this._avmStage.align=mf.TOP,VF.tracelevel=jF.ALL,VF._scenegraphFactory=this._factory,mt.enableParser(Lg),this._factory.avm1Context.globals.SWF_BASE_URL=e.url.substring(0,e.url.lastIndexOf("/")+1),this.clearAllAVM1Listener();var r=this._avmStage.view.stage;r.addEventListener(Ll.MOUSE_DOWN,(function(t){return i.onMouseEvent(t)})),r.addEventListener(Ll.MOUSE_UP,(function(t){return i.onMouseEvent(t)})),r.addEventListener(Ll.MOUSE_MOVE,(function(t){return i.onMouseEvent(t)})),r.addEventListener(pp.KEYDOWN,(function(t){return i.onKeyEvent(t)})),r.addEventListener(pp.KEYUP,(function(t){return i.onKeyEvent(t)})),this._avmStage.avmTestHandler&&(this._factory.avm1Context.actions.originalTrace=this._factory.avm1Context.actions.trace,this._factory.avm1Context.actions.trace=function(t){i._factory.avm1Context.actions.originalTrace(t),i._avmStage.avmTestHandler.addMessage(t)}),n(!0)}},t.prototype.collectMCs=function(t,e,n){for(var i,r=t.numChildren;r>0;)r--,(i=t.getChildAt(r)).isAsset(Rl)&&this.collectMCs(i,e,n);t.hasEventListener(n.type)&&e.push(t)},t.prototype.enterFrame=function(t){Nl.execute_queue(),this._avmStage.root.advanceFrame();var e=[];this.collectMCs(this._avmStage.root,e,this.enterEvent);for(var n=0;n<e.length;n++)e[n].dispatchEvent(this.enterEvent);FR.CompleteEventRegistering(),Nl.execute_queue(),Nl.execute_intervals(t),Nl.execute_queue();var i=[];this.collectMCs(this._avmStage.root,i,this.exitEvent);for(n=0;n<i.length;n++)i[n].dispatchEvent(this.exitEvent);Nl.execute_queue()},t.prototype.onKeyEvent=function(t){if(this.avm1Listener[t.type]){this._collectedDispatcher.length=0;var e,n=0;for(n=0;n<this._avmStage.root.numChildren;n++)(e=this._avmStage.root.getChildAt(n)).isAsset(Rl)&&this.collectMousEvents(e);for(n=0;n<this._collectedDispatcher.length;n++)if(this.avm1Listener[t.type]&&this.avm1Listener[t.type][this._collectedDispatcher[n].id])for(var i=this.avm1Listener[t.type][this._collectedDispatcher[n].id],r=0;r<i.length;r++)"number"==typeof i[r].keyCode&&i[r].keyCode!=t.keyCode||i[r].callback();Nl.execute_queue()}},t.prototype.addAVM1EventListener=function(t,e,n,i){this.avm1Listener[e]||(this.avm1Listener[e]={}),this.avm1Listener[e][t.id]||(this.avm1Listener[e][t.id]=[]);var r=this.avm1Listener[e][t.id];r.push({type:e,callback:n}),i&&"number"==typeof i.keyCode&&(r[r.length-1].keyCode=i.keyCode)},t.prototype.removeAVM1EventListener=function(t,e,n){this.avm1Listener[e]&&delete this.avm1Listener[e][t.id]},t.prototype.clearAllAVM1Listener=function(){this.avm1Listener={}},t.prototype.collectMousEvents=function(t){for(var e,n=t.numChildren;n>0;)n--,e=t.getChildAt(n),this.collectMousEvents(e);t.isAsset(Rl)&&(this._collectedDispatcher[this._collectedDispatcher.length]=t)},t.prototype.onMouseEvent=function(t){if(this.avm1Listener[t.type]){this._collectedDispatcher.length=0;var e,n,i=0,r=this._avmStage.root.numChildren;for(i=0;i<r;i++)(e=this._avmStage.root.getChildAt(i)).isAsset(Rl)&&this.collectMousEvents(e);for(r=this._collectedDispatcher.length,i=0;i<r;i++){var o=this.avm1Listener[t.type];if(o&&o[this._collectedDispatcher[i].id]){n=o[this._collectedDispatcher[i].id].length;for(var a=0;a<n;a++){var s=o[this._collectedDispatcher[i].id];s&&s[a]&&s[a].callback()}}}Nl.execute_queue()}},t.prototype.dispose=function(){},t.prototype.resizeStage=function(){},t.prototype.addAsset=function(t,e){if(t.isAsset(Rl)&&e&&t.isAVMScene){var n=Hk(t.clone(),this._factory.avm1Context);this._factory.avm1Context.globals._addRoot(0,n.adaptee)}},t}();function fQ(t){var e=Object.assign({},t);return Object.keys(e).forEach((function(t){"object"==typeof e[t]?e[t]=fQ(e[t]):"function"==typeof e[t]&&(e[t]=e[t].toString())})),e}console.debug("AwayFL - 0.2.164");var gQ=["id","visible","index","assetType:type","name"],_Q=function(){function t(t){this.player=t,this._rafState="play",this._defaultRaf=self.requestAnimationFrame,this._requestedCallbacks=[],Hd(this._dirObjectByIds.bind(this),{name:"dirObjectByIds",description:"Export selected object to console",declaration:[{name:"ids",type:"object"}]}),Hd(this._applyPropsByIds.bind(this),{name:"applyPropsByIds",description:"Apply propertyes by node ids",declaration:[{name:"ids",type:"object"},{name:"object",type:"object"}]}),Hd(this._removeObjectByIds.bind(this),{name:"removeObjectByIds",description:"Remove object from sceen tree",declaration:[{name:"ids",type:"object"}]}),Hd(this._getInfo.bind(this),{name:"getInfo",description:"Get file info for app",declaration:[{name:"return",type:"object"}]}),Hd(this._getSceneTree.bind(this),{name:"getNodeTree",description:"Get sceen tree of app",declaration:[{name:"return",type:"object"},{name:"flat",type:"boolean"},{name:"from",type:"number"},{name:"rect",type:"object"}]}),Hd(this._getStageCanvas.bind(this),{name:"getStageCanvas",description:"Get canvas attahed to stage",declaration:[]}),Hd(this._setRAFState.bind(this),{name:"setRAFState",description:"Changed RAF state",declaration:[{name:"return",type:"string"},{name:"state",type:"string"}]}),Hd(this._getRAFState.bind(this),{name:"getRAFState",description:"Changed RAF state",declaration:[{name:"return",type:"string"},{name:"state",type:"string"}]}),this._mokedRaf=this._mokedRaf.bind(this),window._AWAY_DEBUG_PLAYER_=this}return t.prototype.onAvmInit=function(t){window._AWAY_DEBUG_STORAGE=1===t?vF:$B},t.prototype._mokedRaf=function(t){if(-1===this._requestedCallbacks.indexOf(t))return this._requestedCallbacks.push(t),0},t.prototype._setRAFState=function(t){if(!t)return this._rafState;if(t!==this._rafState){if("next"===t&&"stop"===this._rafState){var e=performance.now(),n=this._requestedCallbacks.slice();return this._rafState="next",this._requestedCallbacks.length=0,n.forEach((function(t){return t&&t(e)})),this._rafState="stop"}if("stop"===t)return this._requestedCallbacks.length=0,self.requestAnimationFrame=this._mokedRaf,this._rafState="stop";if("play"===t){var i=performance.now();n=this._requestedCallbacks.slice();this._rafState="play",this._requestedCallbacks.length=0,self.requestAnimationFrame=this._defaultRaf,n.forEach((function(t){return t&&t(i)}))}return this._rafState}},t.prototype._getRAFState=function(){return this._rafState},t.prototype._selectNode=function(t){for(var e=this.player.root,n=function(t){if(!(e=e._children.find((function(e){return e.id===t}))))return"break"},i=0,r=t;i<r.length;i++){if("break"===n(r[i]))break}if(!e)throw new Error("Node not found");return e},t.prototype._getStageCanvas=function(){return this.player.view.stage.container},t.prototype._dirObjectByIds=function(t){var e=this._selectNode(t),n=window._lastTempNode=window._lastTempNode||1;window._lastTempNode++,window["tempNode"+n]=e,console.log("tempNode"+n,"="),console.dir(e)},t.prototype._getNodeBounds=function(t){var e,n=this.player.view,i=jg.instance&&jg.instance().pool;if(i){var r=i.getNode(t).partition;e=kr.getInstance().getBoundsPicker(r).getBoxBounds(i.getNode(this.player.root),!0,!0)}else e=kr.getInstance().getBoundsPicker(t.partition).getBoxBounds(this.player.root);if(!e)return null;var o=n.width/this.player.stageWidth,a=n.height/this.player.stageHeight;return{x:e.x*o,y:e.y*a,width:e.width*o,height:e.height*a}},t.prototype._traverse=function(t,e,n,i){void 0===e&&(e=!1),void 0===n&&(n=!1),void 0===i&&(i=!1);for(var r={parentId:t.parent?t.parent.id:-1,children:null,rect:null},o=0,a=gQ;o<a.length;o++){var s=a[o],u=s.split(":");u.length>1?r[u[1]]=t[u[0]]:r[s]=t[s]}if(r.globalVisible=t.parent?t.parent.visible&&t.visible:t.visible,n&&(r.rect=this._getNodeBounds(t)),e){r.children=[];for(var l=0,c=t._children;l<c.length;l++){var h=c[l];(i&&h.visible||!i)&&r.children.push(this._traverse(h,e,n,i))}}return r},t.prototype._removeObjectByIds=function(t){var e=this._selectNode(t);e.parent.removeChild(e)},t.prototype._applyPropsByIds=function(t,e){var n=this._selectNode(t);Object.assign(n,e)},t.prototype._getSceneTree=function(t,e,n){"object"!=typeof t&&(t={flat:t||!1,from:e||0,rect:n||!1,visibleOnly:!1});var i=t.flat,r=void 0!==i&&i;t.from;for(var o=t.rect,a=void 0!==o&&o,s=t.visibleOnly,u=void 0!==s&&s,l=[],c=this.player.root._children.slice();;){var h=c.pop();if(!h)break;l.push(this._traverse(h,!r,a,u)),r&&c.push.apply(c,h._children.reverse().filter((function(t){return t.visible&&u||!u})))}return l},t.prototype._getInfo=function(){var t,e=this.player,n=e._avmHandler.avmVersion,i=e._swfFile,r=i.swfVersion,o=i.fpVersion,a=i.frameCount,s=i.frameRate,u=i.compression,l=i.bytesTotal,c=null===(t=e._gameConfig.binary.filter((function(t){return"GAME"===t.resourceType}))[0])||void 0===t?void 0:t.path;return c&&c.indexOf("?")>-1&&(c=c.substring(0,c.indexOf("?"))),{file:{name:e._gameConfig.title,path:c,size:l},runtime:{swfVersion:r,fpVersion:o,frameCount:a,frameRate:s,compression:u,avm:n},config:fQ(e._gameConfig)}},t}(),mQ=function(t){function e(e){var n=t.call(this,e)||this;return n.registerAVMStageHandler(new dQ),n.registerAVMStageHandler(new FO(new LL)),n.addEventListener(Jt.AVM_COMPLETE,(function(t){return n.onAVMAvailable(t)})),n._debug=new _Q(n),n}return i(e,t),e.prototype.onAVMAvailable=function(t){this._debug&&this._debug.onAvmInit(t.avmVersion===r.AVM1?1:2)},e}(jg),yQ=function(t){function e(e){var n=t.call(this,e)||this;return n.registerAVMStageHandler(new dQ),n}return i(e,t),e}(jg),AQ=function(t){function e(e){var n=t.call(this,e)||this;return n.registerAVMStageHandler(new FO(new LL)),n}return i(e,t),e}(jg);return console.debug("AwayFL-Player - 0.2.40"),t.AVM1Player=yQ,t.AVM2Player=AQ,t.AVM2Settings=s_,t.AVMPlayer=mQ,t.EventBase=p,t.LoaderEvent=H,t.PlayerGlobal=LL,t.StageManager=zi,Object.defineProperty(t,"__esModule",{value:!0}),t}({});
|
|
37
37
|
//# sourceMappingURL=awayfl-player.umd.js.map
|