-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathas2shim-0.1.3.min.js
231 lines (231 loc) · 112 KB
/
as2shim-0.1.3.min.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
/**
* as2shim is (C) 2013 pixelplant GmbH
*
* No permission or right to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software is granted.
* All rights reserved to the copyright holders.
*/
(function(){var fa,ha,V,y,wa,W,ia,F,ja,xa,C,ya,J,za,Aa,ka,M,G,Ba,la,N,Ca,Da,l,o,ma,Ea,Fa,q,na,Ga,Ha,Ia,Ja,Ka,La,Ma,oa,Na,X,Oa,Pa,Qa,Y,Ra,O,Sa,Ta,Ua,Va,Wa,Xa,Ya,Za,$a,ab,bb,cb,db,eb,fb,gb,P,hb,ib,jb,kb,lb,mb,nb,ob,pb,qb,rb,sb,tb,ub,vb,wb,xb,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,A,Q,Jb,pa,Kb,R,Z,Lb,Mb,Nb,B,K,Ob,Pb,Qb,Rb,Sb,qa,H,L,Tb,Ub,Vb,Wb,Xb,Yb,$,Zb,aa,S,T,U,ba,ua,$b,ac,bc,cc,dc,ec,fc,gc,hc,ic,jc,kc,lc,I,mc,nc,oc,ca,va,pc;fa={};ha=function(){var d=function(){};d.prototype=Object.create(Object.prototype);
d.prototype.addProperty=function(a,b,c){Object.defineProperty(this,a,{get:b,set:c})};return d}();V=function(){return{stage:null,trace:function(){"undefined"!=typeof console&&console.log.apply(console,arguments)}}}();y=bonsai;wa=function(){function d(a){" "===a&&(a=".");return a}if("undefined"!=typeof document&&document.createElement){var a=document.createElement("span");a.style.position="absolute";a.style.padding="0px";a.style.whiteSpace="nowrap";document.body.appendChild(a)}return{getTextHeight:function(b,
c){var e=c.size;a.style.fontFamily=c.font;a.style.fontSize=e;a.innerText=d(b);return parseFloat(document.defaultView.getComputedStyle(a,null).height)},getTextWidth:function(b,c){var e=c.size;a.style.fontFamily=c.font;a.style.fontSize=e;a.innerText=d(b);return parseFloat(document.defaultView.getComputedStyle(a,null).width)}}}();W=function(d){d.flash=null;d.mx=null;d._root=null;return d}(fa);ia=function(d){var a=d.Group,b=d.tools,d=function(){a.call(this);this.childrenWrapper=(new a).addTo(this);this.eventArea=
(new a).attr({opacity:0,cursor:"pointer"}).addTo(this);this.stateChildren={normal:new a,hover:new a,active:new a};this.setupConnections();this.childrenWrapper.addChild(this.stateChildren.normal)};d.prototype=b.mixin(Object.create(a.prototype),{childrenWrapper:null,eventArea:null,stateChildren:null,isMouseDown:!1,isMouseOver:!1,type:"Group",addActiveStateChild:function(a,b){this.addStateChild(a,"active",b)},addEventAreaChild:function(a,b){this.eventArea.addChild(a,b)},addHoverStateChild:function(a,
b){this.addStateChild(a,"hover",b)},addNormalStateChild:function(a,b){this.addStateChild(a,"normal",b)},addStateChild:function(a,b,d){this.stateChildren[b].addChild(a,d)},displayState:function(a){var b=this.childrenWrapper.children();b.length&&b[0].stop&&b[0].stop();b=this.stateChildren[a].children();b.length?(this.childrenWrapper.clear().addChild(this.stateChildren[a]),b[0].play&&b[0].play(0)):"normal"===a&&this.childrenWrapper.clear()},onMouseDown:function(){this.isMouseDown=!0;this.displayState("active")},
onMouseUp:function(){this.isMouseDown=!1;this.displayState(this.isMouseOver?"hover":"normal")},onMouseOver:function(){this.isMouseOver=!0;var a="hover";this.isMouseDown&&(a="active");this.displayState(a)},onMouseOut:function(){this.isMouseOver=!1;var a="normal";this.isMouseDown&&(a="hover");this.displayState(a)},setupConnections:function(){this.eventArea.on("mouseover",b.hitch(this,"onMouseOver"));this.eventArea.on("mouseout",b.hitch(this,"onMouseOut"));this.eventArea.on("pointerdown",b.hitch(this,
"onMouseDown"));this.eventArea.on("pointerup",b.hitch(this,"onMouseUp"))}});return d}(y);F=W.flash={};ja=W.mx={};xa=F.display={};C=F.filters={};ya=F.external={};J=F.geom={};za=F.net={};Aa=F.text={};ka=ja.lang={};M=function(){var d={1074:"Error #1074",1077:"Error #1077",2006:"Error #2006",2032:"Stream Error. URL: {{url}}",2098:"The loading object is not a .swf file, you cannot request SWF properties from it.",2099:"The loading object is not sufficiently loaded to provide this information.",2012:"Error #2012",
2024:"Error #2024",2134:"Error #2134"};return{getById:function(a){return d[a]},renderWithPlaceholders:function(a,b){var c=d[a],e;for(e in b)c=c.replace("{{"+e+"}}",b[e]);return c}}}();G=Function("return this")();Ba=function(){function d(){for(var b in a)this[b]=a[b]}var a={align:"left",blockIndent:0,bold:!1,bullet:!1,color:0,font:"Times",indent:0,italic:!1,kerning:!1,leading:0,leftMargin:0,letterSpacing:0,rightMargin:0,size:12,tabStops:[],target:"",underline:!1,url:""};d.defaults=JSON.parse(JSON.stringify(a));
return d}();la=function(d,a){function b(a,b){var c=[],d="__string__"+ +new Date,a=a.replace(/(['"])(?:\\\1|[^\1])*?\1/g,function(a){c.push(a);return d}),a=a.replace(/[^}]+\{/g,function(a){a=a.replace(/^\s+|\s+$/,"");return a.replace(/^|(,)/g,"$1 "+b+" ").replace(/^\s|(\s)\s+/g,"$1")});return a=a.replace(RegExp(d,"g"),function(){return c.shift()})}function c(){return this._owner.raw.styleSheet}function e(a){var c=this._owner,d=c._cssSelectorPrefix;a?(a=b(a,d),c.raw.styleSheet=a,c._style||(c._style=
new ga("style"),c.addChild(c._style)),this._defaultStyleSheet||(this._defaultStyleSheet=b(qa,d)),c._style.setAttribute("innerHTML",this._defaultStyleSheet+a)):c.raw.styleSheet=""}function f(){return this._owner.raw.autoSize}function g(a){var b=this._owner;b.raw.autoSize=a||"none";switch(a){case "none":b.setStyles({"float":"",width:"100px",height:"100px"});break;case "left":b.setStyles({"float":"left",width:"auto",height:"auto"});break;case "right":b.setStyles({"float":"right",width:"auto",height:"auto"});
b.text.setStyle("float","right");b.text.setStyle("textAlign","right");break;case "center":b.setStyles({display:"inline-block",width:"auto",height:"auto"}),b.setStyle("textAlign","center")}}function j(){return!!this._owner.raw.editable}function i(a){var a=!!a,b=this._owner;b.raw.editable=a;!0===a?(b.text.setAttribute("contenteditable","true"),b.text.setStyles({webkitUserModify:"read-write",webkitNbspMode:"space",webkitLineBreak:"after-white-space"}),b.addCSSRule(":focus",{outline:"none"})):(b.text.setAttribute("contenteditable",
"false"),b.text.setStyles({webkitNbspMode:"",webkitLineBreak:""}))}function t(){return!!this._owner.raw.html}function p(a){this._owner.raw.html=!!a}function r(){return this._owner.raw.htmlText||""}function h(a){var b=this._owner;!1!==b.attr("html")&&b.innerHTML(a)}function m(){return this._owner.raw.maxChars}function v(a){this._owner.raw.maxChars=a}function k(){return!!this._owner.raw.password}function n(a){var a=!!a,b=this._owner;b.raw.password=a;!0===a&&b.attr("text",Array(b.text.getAttribute("innerHTML").length+
1).join("*"))}function s(){var a;a=""+this._owner.attr("htmlText");var b=a.match(RegExp("<TEXTFORMAT.*"+aa+">(.*)"));b&&b[1]&&(a=b[1].split(/<\/TEXTFORMAT>(.+)?/),a=S+a[0]+S+(a[1]||""));return Y(a)}function z(a){for(var b=this._owner,c=b.attr("maxChars"),a=(a||"").toString(),a=null===c?a:a.slice(0,c),c="",a=a.split(S),d=0,e=a.length;d<e;d++)0!==a[d].length&&(c+=b.htmlFromText(a[d],d%2));b.innerHTML(c);b.emit("change")}function u(){return!!this._owner.raw.selectable}function E(a){this._owner.raw.selectable=
!!a}function l(){return!!this._owner.raw.background}function da(a){var b=this._owner;b.raw.background=!!a;b.attr("backgroundColor",b.attr("backgroundColor"))}function D(){var a=this._owner;return!0===a.attr("background")?a.raw.backgroundColor:sa.backgroundColor}function o(a){var b=this._owner;b.raw.backgroundColor=a;b.attr("background")?b.setStyle("backgroundColor",T(a)):b.setStyle("backgroundColor","rgba(0,0,0,0)")}function ra(){return!!this._owner.raw.border}function qc(a){var b=this._owner;b.raw.border=
!!a;b.attr("borderColor",b.attr("borderColor"))}function w(){var a=this._owner;return!0===a.attr("border")?a.raw.borderColor:sa.borderColor}function rc(a){var b=this._owner;b.raw.borderColor=a;b.attr("border")?b.setStyles({borderWidth:"1px",borderColor:T(a),borderStyle:"solid"}):b.setStyles({borderColor:"",borderWidth:"0px"})}function sc(){return!!this._owner.raw.wordWrap}function q(a){var a=!!a,b=this._owner;b.raw.wordWrap=a;!0===a?b.text.setStyles({whiteSpace:"normal",display:""}):b.text.setStyles({whiteSpace:"nowrap",
display:"inline-block"})}function tc(){return!!this._owner.raw.multiline}function y(a){var b=this._owner;b.raw.multiline=!!a;b.attr("wordWrap",b.attr("wordWrap"))}function A(){return this._owner.raw.width}function B(a){var b=this._owner;b.raw.width=+a;"none"===b.attr("autoSize")&&b.setStyle("width",(a|0)+"px")}function C(){var a=this._owner,b=a.attr("autoSize");if("undefined"===typeof b||"none"===b)return a.raw.height;b=a.attr("text").split(/\n|\r/).length;return a.text.attr("fontLineHeight")*b}function F(a){var b=
this._owner;b.raw.height=a;"none"===b.attr("autoSize")&&b.setStyle("height",(a|0)+"px")}function G(){return this._owner.raw.align}function H(a){var b=this._owner;b.raw.align=a;b.parent.setStyle("textAlign",a||"")}function I(){return this._owner.raw.bold}function J(a){var a=!!a,b=this._owner;b.raw.bold=a;b.setStyle("fontWeight",a?"700":"normal")}function K(){return this._owner.raw.color}function L(a){var b=this._owner;b.raw.color=a;b.setStyle("color",T(a))}function M(){return this._owner.raw.font}
function N(a,b){var c=this._owner;ta.isArray(a)?(b=a[1]+", "+Q(a[0]),c.raw.font=a[0]):(b=Q(a),c.raw.font=a);c.setStyle("fontFamily",b)}function O(){return this._owner.raw.indent}function P(a){var b=this._owner;b.raw.indent=a;b.setStyle("textIndent",a||"")}function R(){return this._owner.raw.italic}function V(a){var a=!!a,b=this._owner;b.raw.italic=a;b.setStyle("fontStyle",a?"italic":"")}function W(){return this._owner.raw.leftMargin}function Z(a){var b=this._owner;b.raw.leftMargin=a;b.setStyle("paddingLeft",
a+"px")}function $(){return this._owner.raw.rightMargin}function ba(a){var b=this._owner;b.raw.rightMargin=a;b.setStyle("paddingRight",a+"px")}function ca(){return this._owner.raw.letterSpacing}function fa(a){var b=this._owner;b.raw.letterSpacing=a;b.setStyle("letterSpacing",a+"px")}function ha(){return this._owner.raw.size}function ia(a){var a=+a,b=this._owner;b.raw.size=a;b.setStyle("fontSize",a+"px");this.fontLineHeight+=0}function ja(){return this._owner.raw.underline}function ka(a){var a=!!a,
b=this._owner;b.raw.underline=a;b.setStyle("textDecoration",a?"underline":"")}function la(){return this._owner.raw.fontLineHeight||0}function ma(a){var b=this._owner,c=b.attr("size"),a=c>a?c:a;b.raw.fontLineHeight=a;a+=b.attr("leading");b.parent.setStyle("line-height",a+"px")}function na(){return this._owner.raw.leading}function oa(a){var b=this._owner;b.raw.leading=a;this.fontLineHeight+=0;b.parent.setStyle("margin-top",-a/2+"px")}function ea(){ga.call(this,"div",{},{overflow:"hidden",boxSizing:"border-box",
WebkitBoxSizing:"border-box",MozBoxSizing:"border-box",MsBoxSizing:"border-box"});this._domID="bs-textfield-"+this.id;this._domInnerClass=this._domID+"-innerText";this._cssSelectorPrefix="#"+this._domID+" ."+this._domInnerClass;this.setAttribute("id",this._domID);this.innerBox=(new ga("div",{"class":this._domID+"-innerBox"},{width:"100%",height:"100%",display:"inline-block",boxSizing:"border-box",WebkitBoxSizing:"border-box",MozBoxSizing:"border-box",MsBoxSizing:"border-box",padding:"2px"})).addTo(this);
this.raw={};Object.defineProperties(this._attributes,{wordWrap:x(sc,q,!0),multiline:x(tc,y,!0),autoSize:x(f,g,!0),background:x(l,da,!0),backgroundColor:x(D,o,!0),border:x(ra,qc,!0),borderColor:x(w,rc,!0),html:x(t,p,!0),htmlText:x(r,h,!0),maxChars:x(m,v,!0),password:x(k,n,!0),text:x(s,z,!0),selectable:x(u,E,!0),editable:x(j,i,!0),width:x(A,B,!0),height:x(C,F,!0),styleSheet:x(c,e,!0)});this.css=(new ga("style")).addTo(this.innerBox);this.css.raw={};this.addCSSRule("a",{color:"inherit","text-decoration":"none"});
this.addCSSRule("p",{padding:0,margin:0,"word-wrap":"normal"});this.text=(new ga("span",{"class":this._domInnerClass})).addTo(this.innerBox);this.text.raw={};Object.defineProperties(this.text._attributes,{align:x(G,H,!0),bold:x(I,J,!0),color:x(K,L,!0),font:x(M,N,!0),indent:x(O,P,!0),italic:x(R,V,!0),leftMargin:x(W,Z,!0),rightMargin:x($,ba,!0),letterSpacing:x(ca,fa,!0),size:x(ha,ia,!0),underline:x(ja,ka,!0),fontLineHeight:x(la,ma,!0),leading:x(na,oa,!0)});for(var b in sa)this.attr(b,sa[b]);b=new a;
for(var d in b)this.text.attr(d,b[d]);this.text.raw.defaults=a.defaults}var X,Y,Q,ga=d.DOMElement,ta=d.tools,x=ta.descriptorAccessor,pa=Array.prototype.slice,qa="a{color:#000;text-decoration:none;}",sa={autoSize:"none",background:!1,backgroundColor:16777215,border:!1,borderColor:0,html:!0,htmlText:"",maxChars:null,text:"",selectable:!1,password:!1,wordWrap:!1,editable:!1,width:100,height:100,styleSheet:""},aa='bs-swf="true"',S="\ufeff\ufeff",T=ea.rgba=function(a){if("undefined"===typeof a)return"rgba(0,0,0,0)";
a=/^#/.test(a)?parseInt(a.slice(1),16):a<<8|255;return d.color(a).rgba()},U=ea.prototype=ta.beget(ga.prototype);U.addCSSRule=function(a,b){var c=this.css,d=c.raw,e=pa.call(arguments,0,-1),b=arguments[e.length],a=e.join("\x00");d.hasOwnProperty(a)?ta.mixin(d[a],b):d[a]=b;var n,f,i="",t=this._cssSelectorPrefix;for(a in d){e=d[a];f="";for(n in e)f+=n+": "+e[n]+"; ";i+=t+" "+a.split("\x00").join(", "+t+" ")+" { "+f+"}\n"}c.setAttribute("innerHTML",i);return this};U.innerHTML=function(a){this.text.setAttribute("innerHTML",
a);this.raw.htmlText=a;this.emit("change");return this};U.htmlFromText=function(a,b){this.addCSSRule("font",{"font-size":"inherit",color:"inherit","font-family":"inherit"});return ea.htmlTextFormatWrapper("<P><FONT>"+X(a)+"</FONT></P>",b)};Q=ea.mapFontFamily=function(){var a={_sans:"sans-serif",_serif:"serif",_typewriter:"monospace"};return function(b){return b in a?a[b]:b}}();X=ea.escapeHtml=function(a){return(a+"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/\n|\r/g,
"<br/>")};Y=ea.unescapeHtml=function(a){return a.replace(/&/g,"&").replace(/ /g," ").replace(/<br\/>/g,"\n").replace(/<(?:.|\n)*?>/gm,"").replace(/\</g,"<").replace(/\>/g,">")};ea.htmlTextFormatWrapper=function(a,b){return"<TEXTFORMAT"+(b?" "+aa:"")+">"+a+"</TEXTFORMAT>"};return ea}(y,Ba);N=function(d){var a=d.stage.options,a=a.as3shimConfig=a.as3shimConfig||{},a={debug:{logCalls:!1,logUnspyables:!1},warnAbout:{missingImplementation:a.showWarnings||!1,notAvailableApis:!1},stats:{warnAbout:{missingClass:a.showWarnings||
!1}}};return d.stage.as3shimConfig=a}(y);Ca=function(d){return{getLoadableFileUrl:function(a){var b="",c=d.stage.options;"flashConfig"in c&&"__rootMovie__"in c.flashConfig&&(b=d.stage.options.flashConfig.__rootMovie__.loadableFileMap[a]);return b||a}}}(y);Da=function(d){var a={};return{getFileAndLine:function(){var a=Error().stack,c=a&&a.split("\n");if(c)for(var d=0;d<c.length;d++){var f=c[d];if(/movie\.js:\d+:\d+/.test(f))return f}return"... oh dear, movie.js not found in trace. Complete trace:\n"+
a},createFunctionSpy:function(a,c,d){var f=this;return function(a,b,c){return function(d){f.logFunctionCall(b,c,[].slice.call(arguments,0));return a.apply(this,arguments)}}(a[c],d||""+a,c)},isSpyableOwnFunction:function(a,c){return a.hasOwnProperty!=Object.hasOwnProperty||!a.hasOwnProperty(c)||"toString"==c||a.__lookupGetter__(c)?!1:"function"==typeof a[c]},isSpyableOwnAccessor:function(a,c){return!!Object.getOwnPropertyDescriptor(a,c)&&!!a.__lookupGetter__(c)},_logFunctionCall:function(a,c,d){d=
d.map(function(a){return"function"==typeof a?"Function with "+(""+a).split("\n").length+" lines":"object"==typeof a?""+a:a});d=JSON.stringify(d);d=d.substring(1,d.length-1);console.log("SHIM call:",a+"."+c+"("+d+")")},_logEvents:function(a,c,d){console.log("SHIMS: 1000 `dispatchEvent` in "+d+"s of",c,a)},logFunctionCall:function(b,c,d){"dispatchEvent"==c?(c=d[0],a[c]?a[c].count++:a[c]={count:1,lastReset:+new Date},1E3<a[c].count&&(d=this._getElapsedTime(a[c].lastReset),this._logEvents(b,c,d),a[c]=
{count:1,lastReset:+new Date})):this._logFunctionCall(b,c,d)},_getElapsedTime:function(a){return((+new Date-a)/1E3).toFixed(2)},logGetterCall:function(a,c,d){console.log("SHIM call: GET",a,c,""+d)},logSetterCall:function(a,c,d,f){console.log("SHIM call: SET",a,c,""+d,""+f)},spyOnFunction:function(a,c,d){a[c]=this.createFunctionSpy(a,c,d)},spyOnOwnAccessor:function(a,c,e){var f=Object.getOwnPropertyDescriptor(a,c),g=this;if(f.configurable){var j=f.get;f.get=function(){var a=j.apply(this);g.logGetterCall(e,
c,a);return a};var i=f.set;f.set=function(a){g.logSetterCall(e,c,j.apply(this),a);i.apply(this,[a])}}else d.debug.logUnspyables&&console.log('Can not spy on accessor "'+e+"."+c+'", because configurable=false.');Object.defineProperty(a,c,f)},spyOnClass:function(a,c){this.spyOnObject(a,c);this.spyOnObject(a.prototype,c+".prototype")},spyOnObject:function(a,c){for(var d in a)this.isSpyableOwnFunction(a,d)?this.spyOnFunction(a,d,c):this.isSpyableOwnAccessor(a,d)&&this.spyOnOwnAccessor(a,d,c)},spyOnAllClassInNamespace:function(a,
c){for(var d in a){var f=a[d],g=f.prototype.__isNamespace__;f.__isNamespace__?this.spyOnAllClassInNamespace(f,c+"."+d):f.__isClass__&&!g&&this.spyOnClass(f,c+"."+f)}}}}(N);l=function(d,a,b,c,e,f){function g(a){for(var b,c=[1,10,100],d=0,e=c.length;d<e;d++)if(b=l(a*c[d])%1,1.0E-5>b||0.99999<b)return da(a*c[d])/c[d];return a}function j(){}function i(a,b,c){c||(c={});p(a,b,o.mixin({get:j,set:j},c))}function t(a,b,c){3>arguments.length&&(c=b);p(a,m(b),{configurable:!1,enumerable:!1,writable:!1,value:c})}
function p(a,b,c){c||(c={});var d={configurable:!0,enumerable:!0,writable:!0};"configurable"in c&&(d.configurable=c.configurable);"enumerable"in c&&(d.enumerable=c.enumerable);c.get||c.set?("get"in c&&(d.get=c.get),"set"in c&&(d.set=c.set),delete d.value,delete d.writable):(delete d.get,delete d.set,d.value=c.value,"writable"in c&&(d.writable=c.writable));Object.defineProperty(a,b,d)}function r(a){return"__"+a+"__"}function h(a,b,c){p(a,r(b),{enumerable:!1,value:c})}function m(a){z.lastIndex=0;return(a.match(z)||
[]).join("_").toUpperCase()}var v=d.tools,k=e.document,n={},s={}.hasOwnProperty,z=/[a-z]+[a-z\d]*(?!\d[A-Z])|[A-Z][a-z]+|[A-Z\d]+(?![a-z])/g,u=[].slice,E=Math.PI,l=Math.abs,da=Math.round,D="bonsai"+(d.version+Math.random()).replace(/\D/g,""),o=v.mixin(v.beget(v),{addConstantsToClass:function(a){o.forEach(a,function(a){var b=a.shift();o.forEach(a,function(a){"string"===typeof a&&(a=[a]);a.unshift(b);t.apply(null,a)})})},createDummyFunction:function(c){var d="void";if(c===Object(c))var f=c,c=f.name,
d=f.returnType||d;var i="Missing implementation for"+(c?" "+c:"")+", is dummy currently.",k=function(){n[c]||(n[c]=!0,a.warnAbout.missingImplementation&&console.warn(i,"called by "+b.getFileAndLine()));if(f&&"returnValue"in f)return f.returnValue;var k={array:[],"boolean":!1,"int":0,number:0,string:"","null":null,"void":void 0},p=d.toLowerCase();return p in k?k[p]:Function("exposes","try { return new exposes."+d+"} catch (e) {}")(e.exports.asGlobal)};h(k,"isDummy",!0);return k},createUnimplementedFunction:function(b){var c=
"Unimplemented: "+(b?" "+b:"");return function(){if(!n[b])return n[b]=!0,a.warnAbout.missingImplementation&&console.warn(c),new Boolean(!1)}},connectOnDemand:function(a,b,c,d){"onDemandConnects"in b||(b.onDemandConnects={});b.onDemandConnects[a]={connectFunc:c,disconnectFunc:d,connected:!1}},connectEventListener:function(a,b){var c=b.onDemandConnects;c&&a in c&&!c[a].connected&&(c[a].connectFunc(),c[a].connected=!0)},degToRad:function(a){return g(a*(E/180))},detachNode:function(a){return a.parentNode.removeChild(a)},
disconnectEventListener:function(a,b){var c=b.onDemandConnects;c&&a in c&&(c[a].disconnectFunc(),c[a].connected=!1)},dispatchEventWithoutBubbling:function(a,b){a[D].eventDispatcher.emit(b.type,b)},escapeAttributeValue:function(a){return(a+"").replace(/&/g,"&").replace(/</g,"<").replace(/"/g,""").replace(/\n/g,"
").replace(/\r/g,"
").replace(/\t/g,"	")},every:function(a,b,c){var d=-1,e=a.length;for(c&&(b=o.hitch(c,b));++d<e;)if(!b(a[d],d,a))return!1;return!0},expando:D,fixRoundingError:g,
flashToBonsaiBlur:function(a,b){return(a+b)/7.5},forEachSnapshot:function(a,b){for(var c=0,d=(a||{}).snapshotLength;c<d&&!1!==b(a.snapshotItem(c),c,a);c++);return a},getClassNameByClass:function(a,b){var c=a.displayName||a.name;a.__qualifiedName__&&(c=a.__qualifiedName__.split(".").pop());return c||b},getDescriptor:function(a,b){return Object.getOwnPropertyDescriptor(a,b)},getFlashConfig:function(){return f},getPrivateObjectOf:function(a,b){var c=o.expando;c in a||(a[c]={attrs:{}});c=a[c];if(b)for(var d in b)d in
c||(c[d]=b[d]);return c},hasKey:function(a,b){return null!=a&&s.call(a,b)},noop:j,radToDeg:function(a){return g(a*(180/E))},createAndRunMovieFromClass:function(a){var b=(new d.Movie).addTo(d.stage),c=Object.create(a.prototype),e=o.getPrivateObjectOf(c);e.raw=b;e.isRootMovie=!0;a.call(c);return c},setAccessor:i,setConst:t,setConsts:function(a,b){o.forEach(b,function(b){o.setConst(a,b[0],b[1])})},setDescriptor:p,setImmutable:function(a,b,c){var d={configurable:!1,writable:!1};3>arguments.length?("get"in
b?d.get=b.get:"value"in b&&(d.value=b.value),b=b.name):d.value=c;p(a,b,d)},setMovieClipInteractiveState:function(a,b){a.graphics&&a.graphics[D].raw.attr("interactive",b);var c=a[D].children,d=!1;if(c&&c.length)for(var e=0;e<c.length;e++){var n=c[e];"mouseEnabled"in n?d=!0:d?n[D].raw.attr("interactive",!1):n[D].raw.attr("interactive",b)}},setPseudoPrivate:h,setReadOnly:function(a,b,d){i(a,b,{get:d,set:function(){throw new ReferenceError(c.getById(1074));}})},some:function(a,b,c){var d=-1,e=a.length;
for(c&&(b=o.hitch(c,b));++d<e;)if(b(a[d],d,a))return!0;return!1},toArray:function(a,b,c){return u.call(a,b||0,c||a.length)},toCamelCase:function(a){z.lastIndex=0;return a.replace(z,function(a,b){return b?a.charAt().toUpperCase()+a.slice(1):a.toLowerCase()})},toConstCase:m,toPseudoPrivateName:r,toRGBA:function(a){return 256*a+255},timestampAs3Started:+new Date,xQuery:function(a,b,c){var d=k;b||(b=k);b&&(b[D]&&(b=b[D].raw),d=b.ownerDocument||b);return d.evaluate(a,b,null,null==c?6:c,null)}});return o}(y,
N,Da,M,G,Ca);o=function(d){function a(a){return r.apply(p,a)}function b(a){a=(a=a.constructor)&&a[h];return!!(a&&-1!==a.indexOf(this))}function c(b,c){c&&(c=a(t(c,function(a){var b=a[h];return b?b.concat(a):[a]})));return b?c?r.apply(b,c):b.slice():c||null}function e(a){var f,i={};"function"===typeof a?f=a:(i=a||i,f=i.superClass||e);var a=j(i,"constructor")?i.constructor:f===e?function(){}:function(){f.apply(this,arguments)},n=a.prototype;if(f){var p=f.prototype;Object.getOwnPropertyDescriptor(a,
"prototype").writable&&(a.prototype=d.beget(p));n=a.prototype;g(a,"super",p)}j(i,"qualifiedName")&&g(a,"qualifiedName",i.qualifiedName);var t;(p=i.isInterface)?(g(a,"is",b),f!==e&&(t=f[h]||[],t=t.concat(f)),delete i.isInterface):t=c(f[h],i.interfaces);n.constructor===a?delete i.constructor:i.constructor=a;delete i.superClass;var u=n.__proto__;n.__proto__=Object.prototype;for(var r in i)"function"==typeof i[r]&&"constructor"!=r&&g(i[r],"isMethod",!0);d.mixin(n,i);n.__proto__=u;t&&(g(a,"interfaces",
t),p||t.forEach(function(a){Object.getOwnPropertyNames(a.prototype).forEach(function(a){a!=="constructor"&&a!=="qualifiedName"&&(n[a]=n[a.split("\u03bb").pop()])})}));g(a,"isClass",!0);a.__proto__=e.prototype;return a}var f=d.setDescriptor,g=d.setPseudoPrivate,j=d.hasKey,i=d.toPseudoPrivateName,t=d.map,p=Array.prototype,r=p.concat,h=i("interfaces");e.prototype=new Function;f(e.prototype,"constructor",{enumerable:!1,value:e});f(e.prototype,"toString",{enumerable:!1,value:function(){return{}.toString.call(this)}});
g(e,"isBuiltIn",!0);g(e,"isClass",!0);return e}(l);ma=function(d){return{createPropertyMappings:function(a,b){a.forEach(function(a){var e=a[1],f=3==a.length;d.setAccessor(b,a[0],{get:function(){return f?a[2].as3ToAs2(this[e]):this[e]},set:function(b){this[e]=f?a[2].as2ToAs3(b):b}})})},hundredToOne:function(a){return a/100},oneToHundred:function(a){return 100*a}}}(l);Ea=function(d,a,b,c){d=d.exports;d.tools=a;d.TextField=b;d.Button=c;return d}(G,l,la,ia);Fa=function(d,a){function b(){}d({constructor:b,
isActive:a.createDummyFunction("Accessibility.isActive"),updateProperties:a.createDummyFunction("Accessibility.updateProperties")});return b}(o,l);q=function(d,a){return function(b){"superClass"in b||(b.superClass=a);return d(b)}}(o,ha);na=function(d,a,b){function c(a,b,c,d,e,p,r,h){this.redMultiplier=null==a?1:a;this.greenMultiplier=null==b?1:b;this.blueMultiplier=null==c?1:c;this.alphaMultiplier=null==d?1:d;this.redOffset=e||0;this.greenOffset=p||0;this.blueOffset=r||0;this.alphaOffset=h||0;this._color=
(this.redOffset<<16)+(this.greenOffset<<8)+this.blueOffset}var e="redMultiplier,greenMultiplier,blueMultiplier,alphaMultiplier,redOffset,greenOffset,blueOffset,alphaOffset".split(",");b({qualifiedName:"flash.geom.ColorTransform",constructor:c,concat:function(a){this.redOffset+=a.redOffset*this.redMultiplier;this.greenOffset+=a.greenOffset*this.greenMultiplier;this.blueOffset+=a.blueOffset*this.blueMultiplier;this.alphaOffset+=a.alphaOffset*this.alphaMultiplier;this.redMultiplier*=a.redMultiplier;
this.greenMultiplier*=a.greenMultiplier;this.blueMultiplier*=a.blueMultiplier;this.alphaMultiplier*=a.alphaMultiplier},toString:function(){return"("+a.map(e,function(a){return a+"="+this[a]},this).join(", ")+")"}});a.setDescriptor(c.prototype,"color",{set:function(a){this._color=a;this.blueMultiplier=this.greenMultiplier=this.redMultiplier=0;this.redOffset=a>>16&255;this.greenOffset=a>>8&255;this.blueOffset=a&255},get:function(){return this._color}});return c}(y,l,o);Ga=function(d,a){function b(a){this.volume=
null==a?1:a}var c=d.createDummyFunction,e=d.setDescriptor;a({qualifiedName:"flash.media.SoundTransform",constructor:b});var f=b.prototype;e(f,"leftToLeft",{get:c({name:"SoundTransform.leftToLeft getter",returnType:"Number"}),set:c({name:"SoundTransform.leftToLeft setter",returnType:"Number"})});e(f,"leftToRight",{get:c({name:"SoundTransform.leftToRight getter",returnType:"Number"}),set:c({name:"SoundTransform.leftToRight setter",returnType:"Number"})});e(f,"pan",{get:c({name:"SoundTransform.pan getter",
returnType:"Number"}),set:c({name:"SoundTransform.pan setter",returnType:"Number"})});e(f,"rightToLeft",{get:c({name:"SoundTransform.rightToLeft getter",returnType:"Number"}),set:c({name:"SoundTransform.rightToLeft setter",returnType:"Number"})});e(f,"rightToRight",{get:c({name:"SoundTransform.rightToRight getter",returnType:"Number"}),set:c({name:"SoundTransform.rightToRight setter",returnType:"Number"})});return b}(l,o);Ha=function(d,a){function b(){}var c=[].slice,e=d.createDummyFunction,f=d.setDescriptor;
a({qualifiedName:"flash.external.ExternalInterface",constructor:b});b.marshallExceptions=!1;b.addCallback=function(a,b){window.parent[a]=b};b.call=function(a){var b,d;if(/[^a-z0-9.]/i.test(a))d=null;else{b=a.split(".");var e=window.parent;d=null;for(var f=0;f<b.length;f++){d=e;var h=b[f];if(h in e)e=e[h];else{e=null;break}}d=(b=e)?b.apply(d,c.call(arguments,1)):void 0}return d};f(b,"available",{writable:!1,value:!0});f(b,"objectID",{get:function(){return""}});var g=b.prototype;f(g,"available",{get:e({name:"available",
returnType:"Boolean"})});f(g,"objectID",{get:e({name:"objectID",returnType:"String"})});return b}(l,o);Ia=function(d,a){function b(){}d.setConst(b,"advanced");d.setConst(b,"normal");a({qualifiedName:"flash.text.AntiAliasType",constructor:b});return b}(l,o);Ja=function(d,a){function b(){}d.setConst(b,"none");d.setConst(b,"pixel");d.setConst(b,"subpixel");a({qualifiedName:"flash.text.GridFitType",constructor:b});return b}(l,o);Ka=function(d,a){function b(){}d.setConst(b,"center");d.setConst(b,"left");
d.setConst(b,"none");d.setConst(b,"right");a({qualifiedName:"flash.text.TextFieldAutoSize",constructor:b});return b}(l,o);La=function(d,a){function b(a,b,c,d,e,f,h,m,v,k,n,s,z){this.align=v;this.blockIndent=null;this.bold=d;this.bullet=null;this.color=c;this.font=a;this.indent=s;this.italic=e;this.kerning=null;this.leading=z;this.leftMargin=k;this.letterSpacing=null;this.rightMargin=n;this.size=b;this.tabStops=null;this.target=m;this.underline=f;this.url=h}var c=d.expando,e=d.createDummyFunction,
f=d.setDescriptor;b[c]={};b[c].defaults={align:"left",blockIndent:0,bold:!1,bullet:!1,color:0,font:"Times",indent:0,italic:!1,kerning:!1,leading:0,leftMargin:0,letterSpacing:0,rightMargin:0,size:12,tabStops:[],target:"",underline:!1,url:""};a({qualifiedName:"flash.text.TextFormat",constructor:b});f(b.prototype,"display",{get:e({name:"flash.text.TextFormat#display setter",returnType:"String"}),set:e({name:"flash.text.TextFormat#display getter",returnType:"void"})});return b}(l,o);Ma=function(d,a){function b(){}
d.setConst(b,"dynamic");d.setConst(b,"input");a({qualifiedName:"flash.text.TextFieldType",constructor:b});return b}(l,o);oa=function(d,a){function b(){b.__super__.constructor.call(this)}var c=d.noop;a({qualifiedName:"flash.events.IEventDispatcher",constructor:b,isInterface:!0,"flash.events:IEventDispatcher\u03bbaddEventListener":c,"flash.events:IEventDispatcher\u03bbdispatchEvent":c,"flash.events:IEventDispatcher\u03bbhasEventListener":c,"flash.events:IEventDispatcher\u03bbremoveEventListener":c,
"flash.events:IEventDispatcher\u03bbwillTrigger":c});return b}(l,o);Na=function(d,a){function b(){}var c=d.setConst;c(b,"AT_TARGET",2);c(b,"BUBBLING_PHASE",3);c(b,"CAPTURING_PHASE",1);a({qualifiedName:"flash.events.EventPhase",constructor:b});return b}(l,o);X=function(d,a){function b(){}var c=d.setConst;c(b,"DELETE");c(b,"GET");c(b,"HEAD");c(b,"OPTIONS");c(b,"POST");c(b,"PUT");a({qualifiedName:"flash.net.URLRequestMethod",constructor:b});return b}(l,o);Oa=function(d,a,b){function c(a,b){this.x=a||
0;this.y=b||0;f(this,"length",{get:function(){return e(j,this)}})}function e(a,b){var c=a.x-b.x,d=a.y-b.y;return g(c*c+d*d)}var f=a.setDescriptor,g=Math.sqrt,j=new c(0,0);c.distance=e;c.interpolate=function(a,b,d){return new c(a.x+d*(b.x-a.x),a.y+d*(b.y-a.y))};c.polar=function(){return new c(len*Math.cos(angle),len*Math.sin(angle))};b({qualifiedName:"flash.geom.Point",constructor:c,add:function(a){return new c(this.x+a.x,this.y+a.y)},clone:function(){return new c(this.x,this.y)},copyFrom:function(a){this.x=
a.x;this.y=a.y},equals:function(a){return a.x===this.x&&a.y===this.y},normalize:function(a){g(this.x*this.x+this.y*this.y);a/=this.length;this.x*=a;this.y*=a;return this},offset:function(a,b){this.x+=a;this.y+=b},setTo:function(a,b){this.x=a;this.y=b},subtract:function(a){return new c(this.x-a.x,this.y-a.y)},toString:function(){return"(x="+this.x+", y="+this.y+")"}});return c}(y,l,o);Pa=function(d){function a(){}d({qualifiedName:"flash.filters.BitmapFilter",constructor:a,clone:function(){return new a}});
return a}(o);Qa=function(d,a){function b(){}d({qualifiedName:"flash.filters.BitmapFilterQuality",constructor:b});a.setConst(b,"HIGH",3);a.setConst(b,"LOW",1);a.setConst(b,"MEDIUM",2);return b}(o,l);Y=function(d,a,b){var c=d.Error;b({constructor:c,superClass:d.Error,toString:function(){var b=a.getClassNameByClass(this.constructor,"Error"),b=/^[^$]+/.exec(b)[0];return this.message?b+": "+this.message:b},getStackTrace:function(){return this.stack||""}});a.setPseudoPrivate(c,"isBuiltIn",!0);return c}(G,
l,o);Ra=function(d,a){function b(){}d.setConst(b,"LINEAR","linear");d.setConst(b,"RADIAL","radial");a({qualifiedName:"flash.display.GradientType",constructor:b});return b}(l,o);O=Ea.asGlobal={};Sa=function(d,a){function b(){}d({constructor:b,addListener:a.createDummyFunction("AsBroadcaster.addListener"),broadcastMessage:a.createDummyFunction("AsBroadcaster.broadcastMessage"),initialize:a.createDummyFunction("AsBroadcaster.initialize"),removeListener:a.createDummyFunction("AsBroadcaster.removeListener")});
a.setDescriptor(b.prototype,"_listeners",{set:a.createDummyFunction("SETTER AsBroadcaster._listeners"),get:a.createDummyFunction("GETTER AsBroadcaster._listeners")});return b}(q,l);Ta=function(d,a){function b(){}d({constructor:b,get:a.createDummyFunction("Camera.get"),setMode:a.createDummyFunction("Camera.setMode"),setMotionLevel:a.createDummyFunction("Camera.setMotionLevel"),setQuality:a.createDummyFunction("Camera.setQuality")});var c=b.prototype;a.setDescriptor(c,"activityLevel",{set:a.createDummyFunction("SETTER Camera.activityLevel"),
get:a.createDummyFunction("GETTER Camera.activityLevel")});a.setDescriptor(c,"bandwidth",{set:a.createDummyFunction("SETTER Camera.bandwidth"),get:a.createDummyFunction("GETTER Camera.bandwidth")});a.setDescriptor(c,"currentFps",{set:a.createDummyFunction("SETTER Camera.currentFps"),get:a.createDummyFunction("GETTER Camera.currentFps")});a.setDescriptor(c,"fps",{set:a.createDummyFunction("SETTER Camera.fps"),get:a.createDummyFunction("GETTER Camera.fps")});a.setDescriptor(c,"height",{set:a.createDummyFunction("SETTER Camera.height"),
get:a.createDummyFunction("GETTER Camera.height")});a.setDescriptor(c,"index",{set:a.createDummyFunction("SETTER Camera.index"),get:a.createDummyFunction("GETTER Camera.index")});a.setDescriptor(c,"motionLevel",{set:a.createDummyFunction("SETTER Camera.motionLevel"),get:a.createDummyFunction("GETTER Camera.motionLevel")});a.setDescriptor(c,"motionTimeOut",{set:a.createDummyFunction("SETTER Camera.motionTimeOut"),get:a.createDummyFunction("GETTER Camera.motionTimeOut")});a.setDescriptor(c,"muted",
{set:a.createDummyFunction("SETTER Camera.muted"),get:a.createDummyFunction("GETTER Camera.muted")});a.setDescriptor(c,"name",{set:a.createDummyFunction("SETTER Camera.name"),get:a.createDummyFunction("GETTER Camera.name")});a.setDescriptor(c,"names",{set:a.createDummyFunction("SETTER Camera.names"),get:a.createDummyFunction("GETTER Camera.names")});a.setDescriptor(c,"onActivity",{set:a.createDummyFunction("SETTER Camera.onActivity"),get:a.createDummyFunction("GETTER Camera.onActivity")});a.setDescriptor(c,
"onStatus",{set:a.createDummyFunction("SETTER Camera.onStatus"),get:a.createDummyFunction("GETTER Camera.onStatus")});a.setDescriptor(c,"quality",{set:a.createDummyFunction("SETTER Camera.quality"),get:a.createDummyFunction("GETTER Camera.quality")});a.setDescriptor(c,"width",{set:a.createDummyFunction("SETTER Camera.width"),get:a.createDummyFunction("GETTER Camera.width")});return b}(q,l);Ua=function(d,a){function b(){}d({constructor:b,concat:a.createDummyFunction("ColorTransform.concat"),toString:a.createDummyFunction("ColorTransform.toString")});
var c=b.prototype;a.setDescriptor(c,"alphaMultiplier",{set:a.createDummyFunction("SETTER ColorTransform.alphaMultiplier"),get:a.createDummyFunction("GETTER ColorTransform.alphaMultiplier")});a.setDescriptor(c,"alphaOffset",{set:a.createDummyFunction("SETTER ColorTransform.alphaOffset"),get:a.createDummyFunction("GETTER ColorTransform.alphaOffset")});a.setDescriptor(c,"blueMultiplier",{set:a.createDummyFunction("SETTER ColorTransform.blueMultiplier"),get:a.createDummyFunction("GETTER ColorTransform.blueMultiplier")});
a.setDescriptor(c,"blueOffset",{set:a.createDummyFunction("SETTER ColorTransform.blueOffset"),get:a.createDummyFunction("GETTER ColorTransform.blueOffset")});a.setDescriptor(c,"greenMultiplier",{set:a.createDummyFunction("SETTER ColorTransform.greenMultiplier"),get:a.createDummyFunction("GETTER ColorTransform.greenMultiplier")});a.setDescriptor(c,"greenOffset",{set:a.createDummyFunction("SETTER ColorTransform.greenOffset"),get:a.createDummyFunction("GETTER ColorTransform.greenOffset")});a.setDescriptor(c,
"redMultiplier",{set:a.createDummyFunction("SETTER ColorTransform.redMultiplier"),get:a.createDummyFunction("GETTER ColorTransform.redMultiplier")});a.setDescriptor(c,"redOffset",{set:a.createDummyFunction("SETTER ColorTransform.redOffset"),get:a.createDummyFunction("GETTER ColorTransform.redOffset")});a.setDescriptor(c,"rgb",{set:a.createDummyFunction("SETTER ColorTransform.rgb"),get:a.createDummyFunction("GETTER ColorTransform.rgb")});return b}(q,l);Va=function(d,a){function b(){}d({constructor:b,
copy:a.createDummyFunction("ContextMenu.copy"),hideBuiltInItems:a.createDummyFunction("ContextMenu.hideBuiltInItems")});var c=b.prototype;a.setDescriptor(c,"builtInItems",{set:a.createDummyFunction("SETTER ContextMenu.builtInItems"),get:a.createDummyFunction("GETTER ContextMenu.builtInItems")});c.customItems=[];a.setDescriptor(c,"onSelect",{set:a.createDummyFunction("SETTER ContextMenu.onSelect"),get:a.createDummyFunction("GETTER ContextMenu.onSelect")});return b}(q,l);Wa=function(d){function a(){}
d({constructor:a});return a}(q);Xa=function(d){function a(){}d({constructor:a});return a}(q);Ya=function(d){function a(){}d({constructor:a});return a}(q);Za=function(d){function a(){}d({constructor:a});return a}(q);$a=function(d){function a(){}d({constructor:a});return a}(q);ab=q({});bb=function(d){function a(){}d({constructor:a});return a}(q);cb=function(d){function a(){}d({constructor:a});return a}(q);db=function(d){function a(){}d({constructor:a});return a}(q);eb=function(d){function a(){}d({constructor:a});
return a}(q);fb=function(d){function a(){}d({constructor:a});return a}(q);gb=function(d){function a(){}d({constructor:a});return a}(q);P=function(d){function a(){}d({constructor:a});return a}(q);hb=function(d){function a(){}d({constructor:a});return a}(q);ib=function(d){function a(){}d({constructor:a});return a}(q);jb=function(d){function a(){}d({constructor:a});return a}(q);kb=function(d){function a(){}d({constructor:a});return a}(q);lb=function(d){function a(){}d({constructor:a});return a}(q);mb=
function(d){function a(){}d({constructor:a});return a}(q);nb=function(d){function a(){}d({constructor:a});return a}(q);ob=function(d,a){function b(){}d({constructor:b});return a.BitmapData=b}(q,xa);pb=function(d,a){function b(){}d({constructor:b});return a.BitmapFilter=b}(q,C);qb=function(d,a){function b(){}d({constructor:b});return a.BevelFilter=b}(q,C);rb=function(d,a){function b(){}d({constructor:b});return a.ColorMatrixFilter=b}(q,C);sb=function(d,a){function b(){}d({constructor:b});return a.ConvolutionFilter=
b}(q,C);tb=function(d,a){function b(){}d({constructor:b});return a.DisplacementMapFilter=b}(q,C);ub=function(d,a){function b(){}d({constructor:b});return a.GlowFilter=b}(q,C);vb=function(d,a){function b(){}d({constructor:b});return a.GradientGlowFilter=b}(q,C);wb=function(d,a){function b(){}d({constructor:b});return a.Matrix=b}(q,J);xb=function(d,a){function b(){}d({constructor:b});return a.DropShadowFilter=b}(q,C);yb=function(d,a){function b(){}d({constructor:b});return a.Point=b}(q,J);zb=function(d,
a){function b(){}d({constructor:b});return a.GradientBevelFilter=b}(q,C);Ab=function(d,a){function b(){}d({constructor:b});return a.Rectangle=b}(q,J);Bb=function(d,a){function b(){}d({constructor:b});return a.Transform=b}(q,J);Cb=function(d,a){function b(){}d({constructor:b});return a.FileReference=b}(q,za);Db=function(d,a){function b(){}d({constructor:b});return a.FileReferenceList=b}(q,J);Eb=function(d,a){function b(){}d({constructor:b});return a.TextRenderer=b}(q,Aa);Fb=function(d,a){function b(){}
d({constructor:b});return a.Locale=b}(q,ka);Gb=function(d,a,b){function c(b){a.getPrivateObjectOf(this).movieClip=b}d({constructor:c,getRGB:function(){return a.getPrivateObjectOf(this).movieClip.transform.colorTransform.color},getTransform:function(){var b={},c=a.getPrivateObjectOf(this).movieClip.transform.colorTransform;b.ra=100*c.redMultiplier;b.rb=c.redOffset;b.ga=100*c.greenMultiplier;b.gb=c.greenOffset;b.ba=100*c.blueMultiplier;b.bb=c.blueOffset;b.aa=100*c.alphaMultiplier;b.ab=c.alphaOffset;
return b},setRGB:function(c){var d=a.getPrivateObjectOf(this).movieClip,g=new b;g.color=c;d.transform.colorTransform=g},setTransform:function(c){var d=a.getPrivateObjectOf(this).movieClip,c=new b(c.ra/100,c.ga/100,c.ba/100,c.aa/100,c.rb,c.gb,c.bb,c.ab);d.transform.colorTransform=c}});return c}(q,l,na);Hb=function(d,a,b,c){function e(a){this[f]={colorTransform:new c,displayObject:a}}var f=a.expando,g=a.createDummyFunction,j=a.noop,a=a.setDescriptor;b({qualifiedName:"flash.geom.Transform",constructor:e,
getRelativeMatrix3D:g({name:"getRelativeMatrix3D",returnType:"flash.geom.Matrix3D"})});b=e.prototype;a(b,"colorTransform",{get:function(){return this[f].colorTransform},set:function(a){var b=this[f];b.colorTransform=a;a=new d.filter.ColorMatrix([a.redMultiplier,0,0,0,a.redOffset/256,0,a.greenMultiplier,0,0,a.greenOffset/256,0,0,a.blueMultiplier,0,a.blueOffset/256,0,0,0,a.alphaMultiplier,a.alphaOffset/256]);b=b.displayObject[f].raw;b.__touchedByActionScript__=!0;b.attr("filters",[a])}});a(b,"concatenatedColorTransform",
{get:g({name:"concatenatedColorTransform",returnType:""})});a(b,"concatenatedMatrix",{get:g({name:"concatenatedMatrix",returnType:""})});a(b,"matrix",{get:g({name:"matrix",returnType:""}),set:function(){this[f].displayObject[f].raw.__touchedByActionScript__=!0}});a(b,"matrix3D",{get:g({name:"matrix3D",returnType:""}),set:function(){this[f].displayObject[f].raw.__touchedByActionScript__=!0}});a(b,"perspectiveProjection",{get:g({name:"perspectiveProjection",returnType:""}),set:j});a(b,"pixelBounds",
{get:g({name:"pixelBounds",returnType:""})});return e}(y,l,o,na);Ib=function(d,a,b,c){function e(){}d({constructor:e});e.call=a.call;e.available=a.available;e.addCallback=c.createDummyFunction("ExternalInterface.addCallback");return b.ExternalInterface=e}(q,Ha,ya,l);A=function(d,a,b){function c(a,c,e){var f=d.getPrivateObjectOf(this);f.attrs.bubbles=!!c;f.attrs.cancelable=!!e;f.attrs.type=a||"";f.attrs.eventPhase=b.AT_TARGET}var e=d.setReadOnly,f=d.setDescriptor,g=d.createDummyFunction;a({qualifiedName:"flash.events.Event",
constructor:c,clone:g("flash.events.Event#clone"),formatToString:function(){return""},isDefaultPrevented:function(){return!1},preventDefault:g("flash.events.Event#preventDefault"),stopImmediatePropagation:g("flash.events.Event#stopImmediatePropagation"),stopPropagation:g("flash.events.Event#stopPropagation"),toString:toString});a=c.prototype;d.forEach(["activate","added","addedToStage","cancel","change","clear","close","closing","complete","connect",["CONTEXT3D_CREATE","context3DCreate"],"copy","cut",
"deactivate","displaying","enterFrame","exitFrame","exiting","frameConstructed",["FULLSCREEN","fullScreen"],"htmlBoundsChange","htmlDOMInitialize","htmlRender","id3","init","locationChange","mouseLeave","networkChange","open","paste","preparing","removed","removedFromStage","render","resize","scroll","select","selectAll","soundComplete","standardErrorClose","standardInputClose","standardOutputClose","tabChildrenChange","tabEnabledChange","tabIndexChange","textInteractionModeChange","unload","userIdle",
"userPresent"],function(a){var b=[c];"string"!=typeof a?(b.push(a[0]),b.push(a[1])):b.push(a);d.setConst.apply(null,b)});e(a,"bubbles",function(){return d.getPrivateObjectOf(this).attrs.bubbles});e(a,"cancelable",function(){return d.getPrivateObjectOf(this).attrs.cancelable});e(a,"eventPhase",function(){return d.getPrivateObjectOf(this).attrs.eventPhase});e(a,"type",function(){return d.getPrivateObjectOf(this).attrs.type});var j={AccelerometerEvent:"type,bubbles,cancelable,timestamp,accelerationX,accelerationY,accelerationZ".split(","),
ActivityEvent:["type","bubbles","cancelable","eventPhase","activating"],AsyncErrorEvent:"type,bubbles,cancelable,eventPhase,text,error".split(","),ContextMenuEvent:"type,bubbles,cancelable,eventPhase,mouseTarget,contextMenuOwner".split(","),DataEvent:["type","bubbles","cancelable","eventPhase","data"],DRMErrorEvent:"type,bubbles,cancelable,eventPhase,errorID,subErrorID,text,systemUpdateNeeded,drmUpdateNeeded".split(","),DRMStatusEvent:["type","bubbles","cancelable"],Event:["type","bubbles","cancelable",
"eventPhase"],ErrorEvent:["type","bubbles","cancelable","eventPhase","text"],FocusEvent:"type,bubbles,cancelable,eventPhase,relatedObject,shiftKey,keyCode".split(","),FullScreenEvent:"type,bubbles,cancelable,eventPhase,fullScreen,interactive".split(","),GestureEvent:"type,bubbles,cancelable,phase,localX,localY,stageX,stageY,ctrlKey,altKey,shiftKey".split(","),HTTPStatusEvent:"type,bubbles,cancelable,eventPhase,status,responseURL".split(","),IMEEvent:"type,bubbles,cancelable,eventPhase,text,imeClient".split(","),
IOErrorEvent:["type","bubbles","cancelable","eventPhase","text"],KeyboardEvent:"type,bubbles,cancelable,eventPhase,charCode,keyCode,keyLocation,ctrlKey,altKey,shiftKey".split(","),MouseEvent:"type,bubbles,cancelable,eventPhase,localX,localY,stageX,stageY,relatedObject,ctrlKey,altKey,shiftKey,buttonDown,delta".split(","),NetStatusEvent:["type","bubbles","cancelable","eventPhase","info"],PressAndTapGestureEvent:"type,bubbles,cancelable,phase,localX,localY,tapLocalX,tapLocalY,ctrlKey,altKey,shiftKey".split(","),
ProgressEvent:"type,bubbles,cancelable,eventPhase,bytesLoaded,bytesTotal".split(","),SampleDataEvent:"type,bubbles,cancelable,eventPhase,position,data".split(","),SecurityErrorEvent:["type","bubbles","cancelable","eventPhase","text"],ShaderEvent:"type,bubbles,cancelable,eventPhase,bitmapData,byteArray,vector".split(","),SoftKeyboardEvent:["type","bubbles","cancelable","relatedObject","triggerType"],StatusEvent:"type,bubbles,cancelable,eventPhase,code,level".split(","),SyncEvent:["type","bubbles",
"cancelable","eventPhase","changeList"],TextEvent:["type","bubbles","cancelable","eventPhase","text"],TimerEvent:["type","bubbles","cancelable","eventPhase"],TouchEvent:"type,bubbles,cancelable,eventPhase,touchPointID,isPrimaryTouchPoint,localX,localY,stageX,stageY,sizeX,sizeY,pressure,relatedObject,ctrlKey,altKey,shiftKey".split(","),TransformGestureEvent:"type,bubbles,cancelable,phase,localX,localY,stageX,stageY,scaleX,scaleY,rotation,offsetX,offsetY,ctrlKey,altKey,shiftKey".split(","),UncaughtErrorEvent:["type",
"bubbles","cancelable","errorIn"]};f(a,"toString",{value:function(){for(var a=[(""+this.constructor).split(" ")[1].replace(/\]$/,"")],b=this.qualifiedName.split(".").splice(-1)[0],b=j[b],c=0;c<b.length;c++){var d=b[c],e=this[d];"string"===typeof e&&(e='"'+e+'"');try{a.push(d+"="+e)}catch(f){a.push(d+"=[object Object]")}}return"["+a.join(" ")+"]"}});return c}(l,o,Na);Q=function(d,a,b){function c(a){this.digest=this.data=this.contentType=null;this.method=b.GET;this.requestHeaders=[];this.url=a;this.userAgent=
e}var e=d.navigator&&navigator.userAgent||"";a({qualifiedName:"flash.net.URLRequest",constructor:c});return c}(G,o,X);Jb=function(d,a){return{navigateToURL:function(a,c){var e=a.data,f=d.parent,e=a.url+(e?"?"+e:"");if(null==c||"_blank"==c)f.open(e);else if(f="_self"==c||"_top"==c?f[c.slice(1)]:f.frames[c])f.location.href=e},sendToURL:function(b){var c=b.method,d=new XMLHttpRequest;d.open(c,b.url,!0);d.send(c===a.GET?null:b.data)}}}(G,X);pa=function(d,a,b,c){function e(a,b,c,d){this.x=a||0;this.y=
b||0;this.width=c||0;this.height=d||0}var f=a.createDummyFunction,d=a.noop,a=a.setDescriptor;b({qualifiedName:"flash.geom.Rectangle",constructor:e,clone:f({name:"clone",returnType:"flash.geom.Rectangle"}),contains:f({name:"contains",returnType:"Boolean"}),containsPoint:f({name:"containsPoint",returnType:"Boolean"}),containsRect:f({name:"containsRect",returnType:"Boolean"}),equals:f({name:"equals",returnType:"Boolean"}),inflate:f({name:"inflate",returnType:"void"}),inflatePoint:f({name:"inflatePoint",
returnType:"void"}),intersection:f({name:"intersection",returnType:"flash.geom.Rectangle"}),intersects:f({name:"intersects",returnType:"Boolean"}),isEmpty:f({name:"isEmpty",returnType:"Boolean"}),offset:f({name:"offset",returnType:"void"}),offsetPoint:f({name:"offsetPoint",returnType:"void"}),setEmpty:f({name:"setEmpty",returnType:"void"}),union:f({name:"union",returnType:"flash.geom.Rectangle"})});b=e.prototype;a(b,"bottom",{get:function(){return this.y+this.height},set:d});a(b,"bottomRight",{get:function(){return new c(this.bottom,
this.right)},set:d});a(b,"left",{get:function(){return this.x},set:d});a(b,"right",{get:function(){return this.x+this.width},set:d});a(b,"size",{get:function(){return new c(this.width,this.height)},set:d});a(b,"top",{get:function(){return this.y},set:d});a(b,"topLeft",{get:function(){return new c(this.x,this.y)},set:d});return e}(y,l,o,Oa);Kb=function(d,a,b,c,e){function f(b,e,f){switch(arguments.length){case 0:b=4;case 1:e=4;case 2:f=c.LOW}this[g]={blurX:b,blurY:e,raw:new d.filter.Blur(a.flashToBonsaiBlur(b,
e))};this.quality=1}var g=a.expando;e({qualifiedName:"flash.filters.BlurFilter",constructor:f,superClass:b});b=f.prototype;b.clone=function(){return new f(this.blurX,this.blurY,this.quality)};a.setDescriptor(b,"blurX",{get:function(){return this[g].blurX},set:function(b){var c=this[g];c.blurX=b;c.raw.value=a.flashToBonsaiBlur(b,c.blurY)}});a.setDescriptor(b,"blurY",{get:function(){return this[g].blurY},set:function(b){var c=this[g];c.blurY=b;c.raw.value=a.flashToBonsaiBlur(c.blurX,b)}});return f}(y,
l,Pa,Qa,o);R=function(d,a,b){function c(a){if(!(this instanceof c))return new c(a);this.message=a}a({constructor:c,superClass:b});d.setPseudoPrivate(c,"isBuiltIn",!0);return c}(l,o,Y);Z=function(d,a,b,c){function e(){var a=new d.Group;a.__isASGraphics__=!0;this[g]={attrs:{},raw:a,current:null,commands:[]}}function f(b,c){a.keys(c).length&&b.attr(c)}var g=a.expando,j=a.toRGBA;b({qualifiedName:"flash.display.Graphics",constructor:e,beginFill:function(a,b){this[g].attrsAreMutated=!0;var c=this[g].attrs;
c.fillColor=j(a);c.fillGradient=null;c.fillOpacity=null==b?1:b},beginGradientFill:function(b,e,f,r){var h=this[g],m,j=a.map(e,function(b,c){b=d.color(a.toRGBA(b));b.set("alpha",Math.max(0,Math.min(1,f[c])));return[+b,r?100*(r[c]/255):100*(c/(e.length-1))]});switch(b){case c.LINEAR:m=d.gradient.linear(90,j);break;case c.RADIAL:m=d.gradient.radial(j,50,50,50)}h.attrs.fillOpacity=1;h.attrs.fillGradient=m;h.attrs.fillColor=0},clear:function(){var a=this[g],b=a.attrs;a.raw.clear();delete b.strokeColor;
delete b.strokeWidth;delete b.opacity},copyFrom:function(b){var c=this[g].raw;c.clear();a.forEach(b[g].raw.children(),function(a){c.addChild(a.clone(!0))})},drawCircle:function(a,b,c){var e=this[g],a=new d.Circle(a,b,c);f(a,e.attrs);a.addTo(e.raw)},drawEllipse:function(a,b,c,e){var h=this[g],e=e/2,c=c/2,a=new d.Ellipse(a+c,b+e,c,e);f(a,h.attrs);a.addTo(h.raw)},drawRect:function(a,b,c,e){var h=this[g],a=new d.Rect(a,b,c,e);f(a,h.attrs);a.addTo(h.raw)},drawRoundRect:function(a,b,c,e,h,m){var j=this[g],
a=new d.Rect(a,b,c,e,(h+m)/2);f(a,j.attrs);a.addTo(j.raw)},endFill:function(){var a=this[g].attrs;delete a.fillColor;delete a.fillGradient;delete a.fillOpacity},lineStyle:function(a,b,c){this[g].attrsAreMutated=!0;var d=this[g].attrs;d.strokeColor=j(b);1>a&&(a=1);255<a&&(a=255);d.strokeWidth=a;d.strokeOpacity=3>arguments.length?1:0>c?0:1<c?1:c},lineTo:function(a,b){var c=this[g];c.current||(c.current=(new d.Path).addTo(c.raw),c.attrsAreMutated=!0);c.attrsAreMutated&&(f(c.current,c.attrs),c.attrsAreMutated=
!1);var e=c.current._segments;e.length&&"closePath"===e[e.length-1][0]&&e.pop();c.current.lineTo(a,b);c.current.closePath()},curveTo:function(a,b,c,e){var h=this[g];h.current||(h.current=(new d.Path).addTo(h.raw),h.attrsAreMutated=!0);h.attrsAreMutated&&(f(h.current,h.attrs),h.attrsAreMutated=!1);var m=h.current._segments;m.length&&"closePath"===m[m.length-1][0]&&m.pop();h.current.quadraticCurveTo(a,b,c,e);h.current.closePath()},moveTo:function(a,b){var c=this[g];this[g].commands.push(["moveTo",a,
b]);c.current=(new d.Path).addTo(c.raw);c.attrsAreMutated=!0;c.current.moveTo(a,b)}});a.forEach("beginBitmapFill,beginShaderFill,drawGraphicsData,drawPath,drawRoundRectComplex,drawTriangles,lineBitmapStyle,lineGradientStyle,lineShaderStyle".split(","),function(b){e.prototype[b]=a.createDummyFunction("flash.display.Graphics#"+b)});return e}(y,l,o,Ra);Lb=function(d,a){function b(){}d({constructor:b});return a.capabilities=b}(q,P);Mb=function(d,a){function b(){}d({constructor:b});return a.IME=b}(q,P);
Nb=function(d,a,b){function c(){}d({constructor:c});b.setDescriptor(c,"sandboxType",{set:b.createDummyFunction("SETTER System.security.sandboxType"),get:b.createDummyFunction("GETTER System.security.sandboxType")});c.allowDomain=b.createDummyFunction("System.security.allowDomain");c.allowInsecureDomain=b.createDummyFunction("System.security.allowInsecureDomain");c.loadPolicyFile=b.createDummyFunction("System.security.loadPolicyFile");return a.security=c}(q,P,l);B=function(d,a,b){function c(a,c,e,
i,t,p,r,h,m,v,k){b.call(this,a,"undefined"==typeof c?!0:c,e);this.localX=i||Number.NaN;this.localY=t||Number.NaN;this.relatedObject=p||null;this.ctrlKey=r||!1;this.altKey=h||!1;this.shiftKey=m||!1;this.buttonDown=v||!1;this.delta=k||0;this.isRelatedObjectInaccessible=!1;a=d.getPrivateObjectOf(this);a.attrs.stageX=Number.NaN;a.attrs.stageY=Number.NaN;p&&(a.attrs.stageX=p.mouseX,a.attrs.stageY=p.mouseY)}var e=d.setReadOnly;a({qualifiedName:"flash.events.MouseEvent",constructor:c,superClass:b,clone:function(){return new c(this.type,
this.bubbles,this.cancelable,this.localX,this.localY,this.relatedObject,this.ctrlKey,this.altKey,this.shiftKey,this.buttonDown,this.delta)},updateAfterEvent:function(){}});a=c.prototype;d.forEach("click,contextMenu,doubleClick,middleClick,middleMouseDown,middleMouseUp,mouseDown,mouseMove,mouseOut,mouseOver,mouseUp,mouseWheel,rightClick,rightMouseDown,rightMouseUp,rollOut,rollOver".split(","),function(a){d.setConst(c,a)});e(a,"stageX",function(){return d.getPrivateObjectOf(this).attrs.stageX});e(a,
"stageY",function(){return d.getPrivateObjectOf(this).attrs.stageY});return c}(l,o,A);K=function(d,a,b){function c(a,c,d,j,i,t,p,r,h,m,v){b.prototype.constructor.call(this,a,"undefined"==typeof c?!0:c,d);this.charCode=j||0;this.keyCode=i||0;this.keyLocation=t||0;this.ctrlKey=p||!1;this.altKey=r||!1;this.shiftKey=h||!1;this.controlKey=m||!1;this.commandKey=v||!1}d=d.setConst;d(c,"keyDown");d(c,"keyUp");a({qualifiedName:"flash.events.KeyboardEvent",constructor:c,clone:function(){return new c(this.type,
this.bubbles,this.cancelable,this.charCode,this.keyCode,this.keyLocation,this.ctrlKey,this.altKey,this.shiftKey,this.controlKey,this.commandKey)},superClass:b,updateAfterEvent:function(){}});return c}(l,o,A);Ob=C.BlurFilter=Kb;Pb={dragOver:B.MOUSE_OVER,dragOut:B.MOUSE_OUT,keyDown:K.KEY_DOWN,keypress:K.KEY_DOWN,keyPress:K.KEY_DOWN,mouseDown:B.MOUSE_DOWN,mouseUp:B.MOUSE_UP,mouseMove:B.MOUSE_MOVE,press:B.MOUSE_DOWN,release:B.CLICK,rollOut:B.MOUSE_OUT,rollOver:B.MOUSE_OVER,releaseOutside:B.MOUSE_UP};
Qb=function(d,a){function b(){}a({qualifiedName:"flash.display.SWFVersion",constructor:b});(function(){for(var a=0;13>++a;)d.setConst(b,"flash"+a)})();return b}(l,o);Rb=function(d,a,b){function c(a,c,d,j,i){b.call(this,a,c,d);this.bytesLoaded=j||0;this.bytesTotal=i||0}d=d.setConst;d(c,"progress");d(c,"socketData");d(c,"standardErrorData");d(c,"standardInputProgress");d(c,"standardOutputData");a({qualifiedName:"flash.events.ProgressEvent",constructor:c,superClass:b,clone:function(){return new c(this.type,
this.bubbles,this.cancelable,this.bytesLoaded,this.bytesTotal)}});return c}(l,o,A);Sb=function(d,a,b){function c(a,c,d,j){b.prototype.constructor.call(this,a,c,d);this.status=j||0;this.responseURL=null;this.responseHeaders=[]}d.setConst(c,"httpResponseStatus");d.setConst(c,"httpStatus");a({qualifiedName:"flash.events.HTTPStatusEvent",constructor:c,clone:function(){return new c(this.type,this.bubbles,this.cancelable,this.status)},superClass:b});return c}(l,o,A);qa=function(d,a,b){function c(a,c,d){b.prototype.constructor.call(this,
a,c,d)}d=d.setConst;d(c,"timer");d(c,"timerComplete");a({qualifiedName:"flash.events.TimerEvent",constructor:c,superClass:b,clone:function(){return new c(this.type,this.bubbles,this.cancelable)},updateAfterEvent:function(){}});return c}(l,o,A);H=function(d,a,b,c,e,f,g){function j(a,b){return a.some(function(a){return a.listener[v]==b})}function i(){a.getPrivateObjectOf(this).preConstructed||this.__preConstruct__();this.__construct__();this.__postConstruct__()}function t(){return{}}function p(){return{}}
function r(){return d.stage}function h(a){return!!a[v].attrs.isInstanceOfDisplayObject}function m(a){return!!a[v].attrs.isInstanceOfInteractiveObject}var v=a.expando,k={activate:{target:h},added:{},addedToStage:{bubbles:!0},cancel:{},change:{bubbles:!0},clear:{target:m},close:{},closing:{cancelable:!0},complete:{},connect:{},context3DCreate:{},copy:{target:m},cut:{target:m},deactivate:{target:h},displaying:{},enterFrame:{target:h},exitFrame:{target:h},exiting:{cancelable:!0,target:t},frameConstructed:{target:h},
fullScreen:{target:r},htmlBoundsChange:{},htmlDOMInitialize:{},htmlRender:{},httpResponseStatus:{eventClass:e},httpStatus:{eventClass:e},id3:{},init:{},locationChange:{},mouseDown:{},mouseLeave:{target:r},mouseMove:{},mouseUp:{},networkChange:{target:t},open:{},paste:{target:m},removed:{bubbles:!0},removedFromStage:{},render:{target:h},resize:{target:r},scroll:{},select:{},selectAll:{target:m},soundComplete:{},standardErrorClose:{target:p},standardInputClose:{target:p},standardOutputClose:{target:p},
tabChildrenChange:{bubbles:!0},tabEnabledChange:{bubbles:!0},tabIndexChange:{bubbles:!0},textInteractionModeChange:{},timer:{eventClass:f},timerComplete:{eventClass:f},unload:{target:function(){return d.stage.loaderInfo}},userIdle:{target:t},userPresent:{target:t}};b({qualifiedName:"flash.events.EventDispatcher",constructor:i,interfaces:[g],__preConstruct__:function(){var b=a.getPrivateObjectOf(this);b.eventDispatcher=new bonsai.DisplayObject;b.preConstructed=!0},__construct__:function(){},__postConstruct__:function(){},
addEventListener:function(b,d){var e=this[v].eventDispatcher;a.connectEventListener(b,a.getPrivateObjectOf(this));if(!("render"==b||"addedToStage"==b)||!j(e.listeners(b),d)){var f=k[b]||{},h=f.target,m=d[v];m||(m=d[v]=function(a){var e=f.eventClass||c,k=null;a instanceof c||(a=new e(b,!!f.bubbles,!!f.cancelable));h&&(k=h(this),a.target=!1===k?null:k);a.target=this;a.currentTarget||(a.currentTarget=this);d.call(this,a)},m[v]=d);e.on(f.type||b,this,m)}},dispatchEvent:function(a){this[v].eventDispatcher.emit(a.type,
a);return a.bubbles&&this.parent?this.parent.dispatchEvent(a):!0},hasEventListener:function(a){return!!this[v].eventDispatcher.listeners(a)[0]},removeEventListener:function(b,c){var d=k[b]||{},e=c[v];if(e){var f=this[v].eventDispatcher,d=d.type||b;f.removeListener(d,this,e);0===f.listeners(d).length&&a.disconnectEventListener(b,a.getPrivateObjectOf(this))}},willTrigger:function(){var a=this[v].eventDispatcher;do if(a.listeners(type)[0])return!0;while(a=a.parent);return!1}});return i}(V,l,o,A,Sb,qa,
oa);L=function(d,a,b,c,e,f,g,j,i,t,p){function r(a){D=a.x;q=a.y}function h(a){a.__touchedByActionScript__=!0}function m(){if(this.constructor===m)throw new f(b.getById(2012));var a=e.getPrivateObjectOf(this);a.attrs.isInstanceOfDisplayObject=!0;a.preConstructed||this.__preConstruct__();this.__construct__();this.__postConstruct__()}function v(a,b,c){var f=e.getPrivateObjectOf(a),n=function(){e.dispatchEventWithoutBubbling(a,new i(c))};e.connectOnDemand(c,f,function(){d.stage.on(b,a,n)},function(){d.stage.removeListener(b,
a,n)})}function k(a,b,c){var d=n[b];d||(c||(c=b),d=n[b]={configurable:!1,get:function(){return this[s].raw.attr(c)},set:function(a){var b=this[s].raw;h(b);b.attr(c,a)}});u(a,b,d)}var n={},s=e.expando,z=e.createDummyFunction,u=e.setAccessor,E=e.setReadOnly,l=e.setDescriptor,o=1,D=0,q=0;d.stage.on("pointermove",r);d.stage.on("pointerdown",r);d.stage.on("pointerup",r);var ra=j.prototype,y=!1;g({qualifiedName:"flash.display.DisplayObject",constructor:m,superClass:j,localToGlobal:function(a){return a},
globalToLocal:function(a){return a},getBounds:function(){a.warnAbout.missingImplementation&&!1==y&&(console.warn("DisplayObject.getBounds not implemented"),y=!0);return new t},__preConstruct__:function(){var a=e.getPrivateObjectOf(this);a.attrs.filters=[];a.deferredEventFiring={addedToStage:[],added:[]};ra.__preConstruct__.call(this);a.raw.on("addedToStage",this,function(){var b=new i(i.ADDED_TO_STAGE);b.target=this;a.isConstructed?e.dispatchEventWithoutBubbling(this,b):a.deferredEventFiring.addedToStage.push([this,
b])});var b="[class Stage]"==""+this.constructor;a.name=a.isRootMovie?"root1":b?null:"instance"+o++;this.accessibilityProperties=null;var c=new p(this);l(this,"transform",{get:function(){return c}});a.preConstructed=!0},__construct__:function(){ra.__construct__.call(this);v(this,"tick",i.ENTER_FRAME);v(this,"advance",i.FRAME_CONSTRUCTED);v(this,"flash:stage-render",i.RENDER);v(this,"exitFrame",i.EXIT_FRAME);e.getPrivateObjectOf(this).raw.on("removedFromStage",this,function(){e.dispatchEventWithoutBubbling(this,
new i(i.REMOVED_FROM_STAGE))})},__postConstruct__:function(){for(var a=e.getPrivateObjectOf(this),b=["added","addedToStage"],c=0;c<b.length;c++){for(var d=b[c],f=a.deferredEventFiring[d],n=0,k=f.length;n<k;n++)e.dispatchEventWithoutBubbling(f[n][0],f[n][1]);a.deferredEventFiring[d]=[]}a.isConstructed=!0;ra.__postConstruct__.call(this)}});var w=m.prototype;u(w,"alpha",{configurable:!1,get:function(){return this[s].raw.attr("opacity")},set:function(a){var b=this[s].raw;h(b);b.attr("opacity",a)}});u(w,
"blendMode",{get:z("flash.display.DisplayObject#blendMode"),set:function(){h(this[s].raw);return this.blendMode}});u(w,"blendShader",{set:function(){h(this[s].raw)},get:function(){throw new ReferenceError("Error #1077: Illegal read of write-only property blendShader.");}});u(w,"filters",{set:function(a){var b=this[s].raw;h(b);this[s].attrs.filters=a;for(var c=[],e=0;e<a.length;e++){var f=a[e][s].raw;f instanceof d.filter.BaseFilter&&c.push(f)}b.attr("filters",c)},get:function(){return this[s].attrs.filters}});
u(w,"height",{set:function(a){var b=this[s].raw;b.attr("scaleY",a/b.getBoundingBox().height);h(b)},get:function(){var a=this[s].raw;return a.getBoundingBox().height*a.attr("scaleY")}});E(w,"loaderInfo",function(){return this[s].loaderInfo||c.stage.loaderInfo});u(w,"name",{get:function(){return this[s].name},set:function(a){this[s].name=a}});l(w,"mask",{set:function(a){var b=this[s],c=b._maskObject;c&&(c.visible=b._maskObjectVisible);if(b._maskObject=a)b._maskObjectVisible=a.visible,a.visible=!1}});
E(w,"mouseX",function(){for(var a=0,b=this.parent,c=this.stage;b&&b!=c;)a+=b.x,b=b.parent;return D-a});E(w,"mouseY",function(){for(var a=0,b=this.parent,c=this.stage;b&&b!=c;)a+=b.y,b=b.parent;return q-a});u(w,"opaqueBackground",{get:z({name:"flash.display.DisplayObject#opaqueBackground",returnValue:null}),set:function(){h(this[s].raw);return this.opaqueBackground}});e.setAccessor(w,"parent",{get:function(){var a=e.getPrivateObjectOf(this),b=null;a.isRootMovie?b=c.stage:a.parent&&(b=a.parent);return b}});
E(w,"root",function(){if(null==this.stage)return null;if(this==c.stage||this.parent==c.stage&&!this[s].isRootMovie)return c.stage;for(var a=this;a.parent&&!a[s].isRootMovie;)a=a.parent;return a});u(w,"rotation",{configurable:!1,get:function(){return e.radToDeg(this[s].raw.attr("rotation"))},set:function(a){isFinite(a)||(a=0);var b=this[s].raw;h(b);return b.attr("rotation",e.degToRad(a))}});u(w,"rotationX",{get:z({name:"flash.display.DisplayObject#rotationX",returnValue:0}),set:function(){h(this[s].raw);
return this.rotationX}});u(w,"rotationY",{get:z({name:"flash.display.DisplayObject#rotationY",returnValue:0}),set:function(){h(this[s].raw);return this.rotationY}});u(w,"rotationZ",{get:function(){return this.rotation},set:function(a){this.rotation=a}});u(w,"scale9Grid",{get:z({name:"flash.display.DisplayObject#scale9Grid",returnValue:null}),set:function(){h(this[s].raw);return this.scale9Grid}});k(w,"scaleX");k(w,"scaleY");u(w,"scaleZ",{get:z("flash.display.DisplayObject#scaleZ"),set:function(){h(this[s].raw);
return this.scaleZ}});u(w,"scrollRect",{get:function(){return this[s].scrollRect},set:function(a){h(this[s].raw);this[s].scrollRect=a}});E(w,"stage",function(){var a=this.parent;return a?a.stage:null});u(w,"width",{set:function(a){var b=this[s].raw;b.attr("scaleX",a/b.getBoundingBox().width);h(b)},get:function(){var a=this[s].raw;return a.getBoundingBox().width*a.attr("scaleX")}});u(w,"visible",{configurable:!1,get:function(){return this[s].raw.attr("visible")},set:function(a){this[s].raw.attr("visible",
!!a)}});u(w,"x",{get:function(){return this[s].raw.attr("x")},set:function(a){isFinite(a)||(a=0);var b=this[s].raw;h(b);b.attr("x",a)}});u(w,"y",{get:function(){return this[s].raw.attr("y")},set:function(a){isFinite(a)||(a=0);var b=this[s].raw;h(b);b.attr("y",a)}});u(w,"z",{get:z({name:"flash.display.DisplayObject#z",returnValue:0}),set:function(){h(this[s].raw);return this.z}});e.forEach(["getRect","globalToLocal3D","hitTestObject","hitTestPoint","local3DToGlobal"],function(a){w[a]||(w[a]=z("flash.display.DisplayObject#"+
a))});return m}(y,N,M,V,l,R,o,H,A,pa,Hb);Tb=function(d,a,b){function c(){b.call(this);this[e].audioObject=null}var e=d.expando;a({qualifiedName:"flash.media.SoundChannel",constructor:c,superClass:b,stop:function(){this[e].audioObject.stop()}});return c}(l,o,H);Ub=function(d,a,b){function c(){}a({qualifiedName:"flash.events.UncaughtErrorEvents",constructor:c,superClass:b});return c}(l,o,H);Vb=function(d,a,b){function c(){}var e=d.setDescriptor,d=d.createDummyFunction;a({qualifiedName:"flash.display.Bitmap",
constructor:c,superClass:b});a=c.prototype;e(a,"bitmapData",{get:d({name:"bitmapData",returnType:""}),set:d({name:"bitmapData"})});e(a,"pixelSnapping",{get:d({name:"pixelSnapping",returnType:"String"}),set:d({name:"pixelSnapping"})});e(a,"smoothing",{get:d({name:"smoothing",returnType:"Boolean"}),set:d({name:"smoothing"})});return c}(l,o,L);Wb=function(d,a,b){function c(){}var e=d.createDummyFunction,d=d.setDescriptor;a({qualifiedName:"flash.text.StaticText",constructor:c,superClass:b});d(c.prototype,
"text",{get:e({name:"text",returnType:"String"})});return c}(l,o,L);Xb=function(d,a,b,c){function e(){this.__preConstruct__();this.__construct__();this.__postConstruct__()}var f=d.expando,g=b.prototype;a({qualifiedName:"flash.display.Shape",constructor:e,superClass:b,__preConstruct__:function(){var a=d.getPrivateObjectOf(this);a.raw||(a.raw=new bonsai.Group);a.graphics||(a.graphics=new c);g.__preConstruct__.call(this);d.setDescriptor(this,"graphics",{get:function(){a.isRootMovie||a.graphics[f].raw.addTo(a.raw);
return a.graphics}});a.preConstructed=!0},__construct__:function(){g.__construct__.call(this)},__postConstruct__:function(){g.__postConstruct__.call(this)}});return e}(l,o,L,Z);Yb=function(d,a,b){function c(){this.__preConstruct__();this.__construct__();this.__postConstruct__()}var e=b.prototype;a({qualifiedName:"flash.display.MorphShape",constructor:c,superClass:b,__preConstruct__:function(){var a=d.getPrivateObjectOf(this);e.__preConstruct__.call(this);a.preConstructed=!0},__construct__:function(){e.__construct__.call(this)},
__postConstruct__:function(){e.__postConstruct__.call(this)}});return c}(l,o,L);$=function(d,a,b,c,e,f){function g(){var a=d.getPrivateObjectOf(this);a.attrs.isInstanceOfInteractiveObject=!0;a.preConstructed||this.__preConstruct__();this.__construct__();this.__postConstruct__()}function j(a,b,c){var f=d.getPrivateObjectOf(a),m=function(){d.dispatchEventWithoutBubbling(a,new e(c,!0,!0,0,0,a))};d.connectOnDemand(c,f,function(){f.raw.on(b,a,m)},function(){f.raw.removeListener(b,a,m)})}var i=b.prototype;
a({qualifiedName:"flash.display.InteractiveObject",constructor:g,superClass:b,__preConstruct__:function(){var a=d.getPrivateObjectOf(this);(!a||!a.raw)&&console.error("No `raw` is defined for InteractiveObject");i.__preConstruct__.call(this);j(this,"click",e.CLICK);j(this,"pointermove",e.MOUSE_MOVE);j(this,"pointerdown",e.MOUSE_DOWN);j(this,"pointerup",e.MOUSE_UP);j(this,"mouseover",e.MOUSE_OVER);j(this,"mouseout",e.MOUSE_OUT);j(this,"mouseover",e.ROLL_OVER);j(this,"mouseout",e.ROLL_OUT);a.raw.on("keydown",
this,function(a){a=new f(f.KEY_DOWN,!0,!0,a.charCode,a.keyCode,null,a.ctrlKey,a.altKey,a.shiftKey);d.dispatchEventWithoutBubbling(this,a)});a.raw.on("keyup",this,function(a){a=new f(f.KEY_UP,!0,!0,a.charCode,a.keyCode,null,a.ctrlKey,a.altKey,a.shiftKey);d.dispatchEventWithoutBubbling(this,a)});a.preConstructed=!0;a.tabEnabled=!1;a.mouseEnabled=!0},__construct__:function(){i.__construct__.call(this)},__postConstruct__:function(){i.__postConstruct__.call(this)}});a=g.prototype;d.setDescriptor(a,"tabEnabled",
{get:function(){return this[d.expando].tabEnabled},set:function(a){var b=d.getPrivateObjectOf(this),e=b.tabEnabled;b.tabEnabled=a;e!=a&&this.dispatchEvent(new c(c.TAB_ENABLED_CHANGE))}});d.setDescriptor(a,"mouseEnabled",{get:function(){return this[d.expando].mouseEnabled},set:function(a){var b=d.getPrivateObjectOf(this);b.mouseEnabled=a;b.raw.attr("interactive",a)}});return g}(l,o,L,A,B,K);Zb=function(d,a,b,c,e){function f(a,b){c.call(this);this.url="";this[i].raw=(new bonsai.Group).addTo(bonsai.stage);
this[i].audioObjects=[];a&&this.load(a,b)}function g(a){a.destroy()}var j=d.createDummyFunction,i=d.expando;a({qualifiedName:"flash.media.Sound",constructor:f,superClass:c,close:function(){},extract:j({name:"extract",returnType:"Number"}),load:function(a){var c=this[i];this.dispatchEvent(new b(b.OPEN));c.masterAudio&&(g(c.masterAudio),c.audioObjects.forEach(g),c.audioObjects=[]);this.url=a.url;c.masterAudio=new bonsai.Audio(this.url)},play:function(a,b,c){var b=null,d=this[i].masterAudio;d&&(b=d.clone().addTo(this[i].raw),
b.prepareUserEvent(),c&&b.attr("volume",c.volume),b.play(a||0),this[i].audioObjects.push(b));a=new e;a[i].audioObject=b;return a}});a=f.prototype;d.setReadOnly(a,"bytesLoaded",j({name:"bytesLoaded",returnType:"Number"}));d.setReadOnly(a,"bytesTotal",j({name:"bytesTotal",returnType:"Number"}));d.setReadOnly(a,"id3",j({name:"id3",returnType:"Object"}));d.setReadOnly(a,"isBuffering",j({name:"isBuffering",returnType:"Boolean"}));d.setReadOnly(a,"isURLInaccessible",j({name:"isURLInaccessible",returnType:"Boolean"}));
d.setReadOnly(a,"length",j({name:"length",returnType:"Number"}));return f}(l,o,A,H,Tb);aa=function(d,a,b,c,e){function f(b,c,d,e){a.getPrivateObjectOf(this).preConstructed||this.__preConstruct__();this.__construct__(b,c,d,e);this.__postConstruct__()}var g=a.expando,j=a.setDescriptor,i=c.prototype;b({qualifiedName:"flash.display.SimpleButton",constructor:f,superClass:c,__preConstruct__:function(){var b=a.getPrivateObjectOf(this);b.raw||(b.raw=new e);i.__preConstruct__.call(this);b.up=null;b.over=null;
b.down=null;b.hitTest=null;var c=!1;j(this,"enabled",{get:function(){return c},set:function(a){c=a}});j(this,"hitTestState",{get:function(){return b.hitTest},set:function(a){b.hitTest=a;b.raw.addEventAreaChild(a[g].raw)}});j(this,"downState",{get:function(){return b.down},set:function(a){b.down=a;b.raw.stateChildren.active.clear();b.raw.addActiveStateChild(a[g].raw)}});j(this,"overState",{get:function(){return b.over},set:function(a){b.over=a;b.raw.stateChildren.hover.clear();b.raw.addHoverStateChild(a[g].raw)}});
j(this,"upState",{get:function(){return b.up},set:function(a){b.up=a;b.raw.stateChildren.normal.clear();b.raw.addNormalStateChild(a[g].raw)}});var d=!0;j(this,"useHandCursor",{get:function(){return d},set:function(a){d=a;b.raw.eventArea.attr("cursor",d?"pointer":"")}})},__construct__:function(b,c,d,e){i.__construct__.call(this);for(var f=a.getPrivateObjectOf(this),g=f.raw.stateChildren.normal.children(),k=0,n=g.length;k<n;k++)g[k].__flash__&&g[k].__flash__.constructor();g=f.raw.stateChildren.hover.children();
k=0;for(n=g.length;k<n;k++)g[k].__flash__&&g[k].__flash__.constructor();g=f.raw.stateChildren.active.children();k=0;for(n=g.length;k<n;k++)g[k].__flash__&&g[k].__flash__.constructor();b&&(this.upState=b);c&&(this.overState=c);d&&(this.downState=d);e&&(this.hitTestState=e);this.enabled=this.useHandCursor=!0;this.soundTransform=null;this.trackAsMenu=!1;this.tabEnabled=!0},__postConstruct__:function(){i.__postConstruct__.call(this)}});return f}(y,l,o,$,ia);S=function(d,a,b,c,e,f,g,j,i,t,p,r,h){function m(){var a=
new r,b;for(b in k)a[b]=k[b];return a}function v(){a.getPrivateObjectOf(this).preConstructed||this.__preConstruct__();this.__construct__();this.__postConstruct__()}var k={align:"left",blockIndent:0,bold:!1,bullet:!1,color:0,font:"Times",indent:0,italic:!1,kerning:!1,leading:0,leftMargin:0,letterSpacing:0,rightMargin:0,size:12,tabStops:[],target:"",underline:!1,url:""},n=a.expando,s=i.htmlTextFormatWrapper,z=j.prototype;v.isFontCompatible=a.createDummyFunction("display.TextField#isFontCompatible");
c({qualifiedName:"flash.text.TextField",constructor:v,superClass:j,__preConstruct__:function(){var b=a.getPrivateObjectOf(this);b.raw?(b.textField||(b.textField=b.raw.children()[0]),b.textField.innerHTML(s(b.textField.attr("htmlText"),"setHtmlFlag"))):(b.raw=new d.Group,b.textField=(new i).addTo(b.raw),b.textField.text.attr("leading",2));z.__preConstruct__.call(this);this.alwaysShowSelection=!1;this.antiAliasType=f.NORMAL;b.textField.on("change",this,function(){this.dispatchEvent(new e(e.CHANGE))});
this.caretIndex=this.bottomScrollV=0;this.embedFonts=this.displayAsPassword=this.condenseWhite=!1;this.gridFitType=g.PIXEL;this.maxScrollV=this.maxScrollH=0;this.mouseWheelEnabled=!0;this.numLines=0;var c=null;a.setDescriptor(this,"restrict",{get:function(){return c},set:function(a){c=a;a=this._generateRestrictRegExp(c);b.textField.innerBox.setAttribute("onkeypress","return /"+a.source+"/.test(String.fromCharCode(event.charCode));")}});this.scrollV=this.scrollH=0;this.selectable=!0;this.sharpness=
this.selectionEndIndex=this.selectionBeginIndex=0;var k=null;a.setDescriptor(this,"styleSheet",{get:function(){return k},set:function(a){k=a;b.textField.attr("styleSheet",k)}});a.setDescriptor(this,"text",{get:function(){return this[n].textField.attr("text")},set:function(a){if(a===void 0||a===null)a="";return a===this[n].textField.attr("text")?void 0:this[n].textField.attr("text",a)}});this.textInteractionMode=null;this.thickness=0;var h=p.DYNAMIC;a.setDescriptor(this,"type",{get:function(){return h},
set:function(a){h=a;b.textField.attr("editable",h===p.INPUT);b.tabEnabled=h=="input"}});this.useRichTextClipboard=!1;b.preConstructed=!0;b.defaultTextFormat=m()},__construct__:function(){z.__construct__.call(this)},__postConstruct__:function(){z.__postConstruct__.call(this)},_generateRestrictRegExp:function(b){var c,d="",e="",b=b.match(/(?:^|\^)(?:\\\^|.)+?(?=$|\^)/g);a.forEach(b,function(a){"^"===a.charAt(0)&&(a=a.slice(1),c=!c);c?e+=a:d+=a});return RegExp((e?"(?!["+e+"])":"")+(d?"["+d+"]":""))},
appendText:function(a){this.text+=a},getCharBounderies:a.createDummyFunction("display.TextField#getCharBounderies"),getCharIndexAtPoint:a.createDummyFunction("display.TextField#getCharIndexAtPoint"),getFirstCharInParagraph:a.createDummyFunction("display.TextField#getFirstCharInParagraph"),getImageReference:a.createDummyFunction("display.TextField#getImageReference"),getLineIndexAtPoint:a.createDummyFunction("display.TextField#getLineIndexAtPoint"),getLineIndexOfChar:a.createDummyFunction("display.TextField#getLineIndexOfChar"),
getLineLength:a.createDummyFunction("display.TextField#getLineLength"),getLineMetrics:a.createDummyFunction("display.TextField#getLineMetrics"),getLineOffset:a.createDummyFunction("display.TextField#getLineOffset"),getLineText:a.createDummyFunction("display.TextField#getLineText"),getParagraphLength:a.createDummyFunction("display.TextField#getParagraphLength"),getTextFormat:function(){if(this.text){var a=this[n].textField.text.raw;return new r(a.font,a.size,a.color,a.bold,a.italic,a.underline,a.url,
a.target,a.align,a.leftMargin,a.rightMargin,a.indent,a.leading)}return new r},replaceSelectedText:a.createDummyFunction("display.TextField#replaceSelectedText"),replaceText:function(a,b,c){if(!(0>a||0>b)){var d=this[n].textField,e=d.attr("text");d.attr("text",e.substring(0,a)+c+e.substring(b))}},setSelection:a.createDummyFunction("display.TextField#setSelection"),setTextFormat:function(a){var b=this[n].textField,c;for(c in a)null!=a[c]&&b.text.attr(c,a[c])}});c=v.prototype;a.setDescriptor(c,"htmlText",
{get:function(){return this[n].textField.attr("htmlText")},set:function(a){this[n].textField.attr("htmlText",a)}});a.setDescriptor(c,"textColor",{get:function(){return this[n].textField.text.attr("color")},set:function(a){return this[n].textField.text.attr("color",a)}});a.setDescriptor(c,"maxChars",{get:function(){return this[n].textField.attr("maxChars")},set:function(a){this[n].textField.attr("maxChars",a)}});a.setDescriptor(c,"wordWrap",{get:function(){return this[n].textField.attr("wordWrap")},
set:function(a){return this[n].textField.attr("wordWrap",a)}});a.setDescriptor(c,"background",{get:function(){return this[n].textField.attr("background")},set:function(a){this[n].textField.attr("background",a)}});a.setDescriptor(c,"backgroundColor",{get:function(){return this[n].textField.attr("backgroundColor")},set:function(a){this[n].textField.attr("backgroundColor",a)}});a.setDescriptor(c,"autoSize",{get:function(){return this[n].textField.attr("autoSize")},set:function(a){var c=this[n];switch(a){case t.LEFT:c.textField.attr("autoSize",
"left");break;case t.RIGHT:c.textField.attr("autoSize","right");break;case t.CENTER:c.textField.attr("autoSize","center");break;case t.NONE:c.textField.attr("autoSize","none");break;default:throw new b("Error #2008: Parameter autoSize must be one of the accepted values.");}}});a.setDescriptor(c,"border",{get:function(){return this[n].textField.attr("border")},set:function(a){this[n].textField.attr("border",a)}});a.setDescriptor(c,"borderColor",{get:function(){return this[n].textField.attr("borderColor")},
set:function(a){return this[n].textField.attr("borderColor",a)}});a.setDescriptor(c,"defaultTextFormat",{get:function(){return a.getPrivateObjectOf(this).defaultTextFormat},set:function(a){for(var b=Object.keys(k),c=0,d=b.length;c<d;c++)null!==a[b[c]]&&(this.defaultTextFormat[b[c]]=a[b[c]])}});a.setDescriptor(c,"width",{get:function(){return this[n].textField.attr("width")},set:function(a){return this[n].textField.attr("width",a)}});a.setDescriptor(c,"height",{get:function(){return this[n].textField.attr("height")},
set:function(a){return this[n].textField.attr("height",a)}});a.setDescriptor(c,"html",{get:function(){return this[n].textField.attr("html")},set:function(a){this[n].textField.attr("html",a)}});a.setDescriptor(c,"length",{get:function(){return this[n].textField.attr("text").length}});a.setDescriptor(c,"multiline",{get:function(){return this[n].textField.attr("multiline")},set:function(a){this[n].textField.attr("multiline",a)}});a.setReadOnly(c,"textHeight",function(){return h.getTextHeight(this.text,
this.defaultTextFormat)});a.setReadOnly(c,"textWidth",function(){return h.getTextWidth(this.text,this.defaultTextFormat)});return v}(y,l,R,o,A,Ia,Ja,$,la,Ka,Ma,La,wa);T=function(d,a,b,c,e,f,g,j){function i(a,b,c){a=a.childContainer||a;b=b.treeRepresentation||b;3>arguments.length?a.addChild(b):a.addChild(b,c)}function t(a,b){a=a.childContainer||a;b=b.treeRepresentation||b;a.removeChild(b)}function p(){b.getPrivateObjectOf(this).preConstructed||this.__preConstruct__();this.__construct__();this.__postConstruct__()}
function r(a,c){var d=new f(f.ADDED,!0);d.currentTarget=a;b.getPrivateObjectOf(d).attrs.eventPhase=3;var e=b.getPrivateObjectOf(c);if(e.isConstructed){if(e=c,e!=e.parent)for(;e;)d.currentTarget=e,b.dispatchEventWithoutBubbling(e,d),e=e.parent}else e.deferredEventFiring.added.push([c,d])}function h(a){for(var c=!1,d=b.getPrivateObjectOf(this).children,e=0,f=d.length;e<f;e++){var k=d[e];k==a&&(c=!0);!c&&k.numChildren&&(c=h.apply(k,[a]));if(c)break}return c}var m=b.expando,v=g.prototype;c({qualifiedName:"flash.display.DisplayObjectContainer",
constructor:p,superClass:g,__preConstruct__:function(){v.__preConstruct__.call(this);var a=b.getPrivateObjectOf(this);a.children=a.raw.children().map(function(a){return a.__flash__});a.preConstructed=!0},__construct__:function(){v.__construct__.call(this)},__postConstruct__:function(){v.__postConstruct__.call(this)},addChild:function(c){if(this==c)throw new e(a.getById(2024));var d=c[m];d.parent=this;this[m].children.push(c);r(this,c);i(this[m].raw,d.raw);b.setMovieClipInteractiveState(this,this.mouseEnabled);
return c},addChildAt:function(c,d){if(this==c)throw new e(a.getById(2024));var f=this[m],k=f.children;if(d>k.length)throw new RangeError(a.getById(2006));var h=c[m];h.parent=this;k.splice(d,0,c);r(this,c);f.graphics instanceof j&&(d+=1);i(f.raw,h.raw,d);b.setMovieClipInteractiveState(this,this.mouseEnabled);return c},contains:h,getChildAt:function(a){var b=this[m].children;if(a>=b.length)throw RangeError("Error #2006");return b[a]},getChildByName:function(a){for(var b=this[m].children,c=0,d=b.length;c<
d;c++)if(b[c].name==a)return b[c];return null},removeChild:function(a){var b=this[m],c=b.children,d=c.indexOf(a);if(-1!==d)return c.splice(d,1),t(b.raw,a[m].raw),a;throw e("Error #2025");},removeChildAt:function(a){var b=this[m],c=b.children;if(a<c.length){var d=c[a];c.splice(a,1);t(b.raw,d[m].raw);return d}throw RangeError("Error #2006");}});var k=p.prototype;k.tabChildren=!0;b.forEach("areInaccessibleObjectsUnderPoint,getChildIndex,getObjectsUnderPoint,removeChildren,setChildIndex,swapChildren,swapChildrenAt".split(","),
function(a){k[a]=b.createDummyFunction("flash.display.DisplayObjectContainer#"+a)});b.setAccessor(k,"numChildren",{get:function(){return this[m].children.length}});b.setDescriptor(k,"mouseEnabled",{get:function(){return this[b.expando].mouseEnabled},set:function(a){b.getPrivateObjectOf(this).mouseEnabled=a;b.setMovieClipInteractiveState(this,a)}});return p}(y,M,l,o,R,A,$,Z);U=function(d,a,b,c,e){function f(){c.prototype.constructor.call(this);var b=a.getPrivateObjectOf(this);b.as2Attrs||(b.as2Attrs=
{})}b({constructor:f,superClass:c,getDepth:a.createDummyFunction("Button.getDepth")});b=f.prototype;d.createPropertyMappings([["_alpha","alpha",{as2ToAs3:d.hundredToOne,as3ToAs2:d.oneToHundred}],["_height","height"],["_name","name"],["_parent","parent"],["_rotation","rotation"],["_visible","visible"],["_width","width"],["_x","x"],["_y","y"],["_xscale","scaleX",{as2ToAs3:d.hundredToOne,as3ToAs2:d.oneToHundred}],["_yscale","scaleY",{as2ToAs3:d.hundredToOne,as3ToAs2:d.oneToHundred}]],b);a.setDescriptor(b,
"onRelease",{set:function(b){var c=a.getPrivateObjectOf(this);c.as2Attrs.onReleaseFunc&&this.removeEventListener(e.CLICK,c.as2Attrs.onReleaseFunc);this.addEventListener(e.CLICK,a.hitch(this,b));c.as2Attrs.onReleaseFunc=b},get:function(){var b=a.getPrivateObjectOf(this);return b.as2Attrs&&b.as2Attrs.onReleaseFunc||void 0}});a.setDescriptor(b,"blendMode",{set:a.createDummyFunction("SETTER Button.blendMode"),get:a.createDummyFunction("GETTER Button.blendMode")});a.setDescriptor(b,"cacheAsBitmap",{set:a.createDummyFunction("SETTER Button.cacheAsBitmap"),
get:a.createDummyFunction("GETTER Button.cacheAsBitmap")});a.setDescriptor(b,"enabled",{set:a.createDummyFunction("SETTER Button.enabled"),get:a.createDummyFunction("GETTER Button.enabled")});a.setDescriptor(b,"_focusrect",{set:a.createDummyFunction("SETTER Button._focusrect"),get:a.createDummyFunction("GETTER Button._focusrect")});a.setDescriptor(b,"_highquality",{set:a.createDummyFunction("SETTER Button._highquality"),get:a.createDummyFunction("GETTER Button._highquality")});a.setDescriptor(b,"menu",
{set:a.createDummyFunction("SETTER Button.menu"),get:a.createDummyFunction("GETTER Button.menu")});a.setDescriptor(b,"onDragOut",{set:a.createDummyFunction("SETTER Button.onDragOut"),get:a.createDummyFunction("GETTER Button.onDragOut")});a.setDescriptor(b,"onDragOver",{set:a.createDummyFunction("SETTER Button.onDragOver"),get:a.createDummyFunction("GETTER Button.onDragOver")});a.setDescriptor(b,"onKeyDown",{set:a.createDummyFunction("SETTER Button.onKeyDown"),get:a.createDummyFunction("GETTER Button.onKeyDown")});
a.setDescriptor(b,"onKeyUp",{set:a.createDummyFunction("SETTER Button.onKeyUp"),get:a.createDummyFunction("GETTER Button.onKeyUp")});a.setDescriptor(b,"onKillFocus",{set:a.createDummyFunction("SETTER Button.onKillFocus"),get:a.createDummyFunction("GETTER Button.onKillFocus")});a.setDescriptor(b,"onPress",{set:a.createDummyFunction("SETTER Button.onPress"),get:a.createDummyFunction("GETTER Button.onPress")});a.setDescriptor(b,"onReleaseOutside",{set:a.createDummyFunction("SETTER Button.onReleaseOutside"),
get:a.createDummyFunction("GETTER Button.onReleaseOutside")});a.setDescriptor(b,"onRollOut",{set:a.createDummyFunction("SETTER Button.onRollOut"),get:a.createDummyFunction("GETTER Button.onRollOut")});a.setDescriptor(b,"onRollOver",{set:a.createDummyFunction("SETTER Button.onRollOver"),get:a.createDummyFunction("GETTER Button.onRollOver")});a.setDescriptor(b,"onSetFocus",{set:a.createDummyFunction("SETTER Button.onSetFocus"),get:a.createDummyFunction("GETTER Button.onSetFocus")});a.setDescriptor(b,
"_quality",{set:a.createDummyFunction("SETTER Button._quality"),get:a.createDummyFunction("GETTER Button._quality")});a.setDescriptor(b,"scale9Grid",{set:a.createDummyFunction("SETTER Button.scale9Grid"),get:a.createDummyFunction("GETTER Button.scale9Grid")});a.setDescriptor(b,"_soundbuftime",{set:a.createDummyFunction("SETTER Button._soundbuftime"),get:a.createDummyFunction("GETTER Button._soundbuftime")});a.setDescriptor(b,"tabEnabled",{set:a.createDummyFunction("SETTER Button.tabEnabled"),get:a.createDummyFunction("GETTER Button.tabEnabled")});
a.setDescriptor(b,"tabIndex",{set:a.createDummyFunction("SETTER Button.tabIndex"),get:a.createDummyFunction("GETTER Button.tabIndex")});a.setDescriptor(b,"_target",{set:a.createDummyFunction("SETTER Button._target"),get:a.createDummyFunction("GETTER Button._target")});a.setDescriptor(b,"trackAsMenu",{set:a.createDummyFunction("SETTER Button.trackAsMenu"),get:a.createDummyFunction("GETTER Button.trackAsMenu")});a.setDescriptor(b,"_url",{set:a.createDummyFunction("SETTER Button._url"),get:a.createDummyFunction("GETTER Button._url")});
a.setDescriptor(b,"useHandCursor",{set:a.createDummyFunction("SETTER Button.useHandCursor"),get:a.createDummyFunction("GETTER Button.useHandCursor")});a.setDescriptor(b,"_xmouse",{set:a.createDummyFunction("SETTER Button._xmouse"),get:a.createDummyFunction("GETTER Button._xmouse")});a.setDescriptor(b,"_ymouse",{set:a.createDummyFunction("SETTER Button._ymouse"),get:a.createDummyFunction("GETTER Button._ymouse")});return f}(ma,l,o,aa,B);ba=function(d,a){function b(){a.prototype.constructor.call(this)}
d({constructor:b,superClass:a});return b}(q,S);ua=function(d,a,b,c,e,f){function g(){b.getPrivateObjectOf(this).preConstructed||this.__preConstruct__();this.__construct__();this.__postConstruct__()}function j(a){var b,c,d=a.x,e=a.y;null===q||null===da?(l=a.deltaX,o=a.deltaY):(l+=d-q,o+=e-da);E?(b=d,c=e):(b=k+l,c=n+o);q=d;da=e;this.x=s?r(s.right,h(b,s.left)):b;this.y=s?r(s.bottom,h(c,s.top)):c;b=this[p];a:{if(a=a.underPointer)for(var f,d=this.root,e=0;f=a[e];e+=1){do c=f.__flash__,f=f.parent;while(!c&&
f);if(c&&c!==d){for(f=c;c&&c!==this&&c!==d;)c=c.parent;if(c!==this){a=f;break a}}}a=null}b.dropTarget=a}function i(a,b){t();v=this;k=this.x;n=this.y;q=da=null;E=a;s=b instanceof f?b:null;bonsai.stage.on("pointermove",this,j)}function t(){bonsai.stage.removeListener("pointermove",v,j);v=null}var p=b.expando,r=Math.min,h=Math.max,m=c.prototype,v,k,n,s,l,o,E,q=null,da=null;a({qualifiedName:"flash.display.Sprite",constructor:g,superClass:c,__preConstruct__:function(){var a=b.getPrivateObjectOf(this);
b.hasKey(a,"raw")||(a.raw=new bonsai.Group);b.hasKey(a,"isRootMovie")||(a.isRootMovie=!1);a.dropTarget=null;m.__preConstruct__.call(this);a.graphics=new e;a.graphics[p].raw.attr("data","Graphics"+this);a.raw.addChild(a.graphics[p].raw,0);a.preConstructed=!0},__construct__:function(){this.__constructChildren__(this[b.expando].raw,this);m.__construct__.call(this)},__postConstruct__:function(){m.__postConstruct__.call(this)},__constructChildren__:function(){for(var a,b=this.numChildren,c=0;c<b;c++)a=
this.getChildAt(c),a.constructor.call(a)},startDrag:i,startTouchDrag:i,stopDrag:t,stopTouchDrag:t});d=g.prototype;b.setAccessor(d,"useHandCursor",{set:function(a){a?this[p].raw.attr("cursor","pointer"):this[p].raw.attr("cursor","default");this[p].useHandCursor=a},get:function(){return!!this[p].useHandCursor}});b.setDescriptor(d,"graphics",{get:function(){return this[p].graphics}});b.setDescriptor(d,"buttonMode",{set:function(a){b.getPrivateObjectOf(this).tabEnabled=a}});b.setDescriptor(d,"dropTarget",
{get:function(){return this[p].dropTarget}});return g}(O,o,l,T,Z,pa);$b=function(d,a){function b(){}d({constructor:b});return a.StyleSheet=b}(q,ba);ac=function(d,a,b,c){function e(){a.getPrivateObjectOf(this).preConstructed||this.__preConstruct__();this.__construct__();this.__postConstruct__()}function f(a,b){var c=this[i].frameScripts[b];c&&c()}function g(a,b){var c=a[i],d=c.raw,e=d.currentFrame,h=b,m=parseInt(h,10),g=d.swf&&d.swf.frameLabels;isNaN(m)?g&&h in g?h=g[h]:console.error("No frame found for label: "+
h):h=t(1,p(m,d.length()))-1;b=d.currentFrame=h;e!==b&&(a.__goto__(d,b,a),f.call(a,null,b),c.lastScriptFrame=b);return d}var j=d.Movie,i=a.expando,t=Math.max,p=Math.min,r=a.setImmutable,h=Object.create(Object.prototype,{frameScripts:{enumerable:!0,get:function(){return[]}},raw:{enumerable:!0,get:function(){return new j}}}),m=a.getPrivateObjectOf,v=c.prototype;b({qualifiedName:"flash.display.MovieClip",constructor:e,superClass:c,__preConstruct__:function(){var b=m(this,h);b.raw.shimsAreBound||(b.raw.shimsAreBound=
!0,b.raw.on("advance",this,function(){d.stage.once("subMoviesAdvanced",function(){var a=b.raw,c=a.currentFrame;try{c!==b.lastScriptFrame&&(b.lastScriptFrame=c,a.emit("runframescripts",a,c))}catch(e){console.log("AS3VM threw an error... stopping movie.","\n"+e,e.stack?e.stack:""),d.stage.root.freeze()}})}));v.__preConstruct__.call(this);a.getPrivateObjectOf(this).preConstructed=!0},__construct__:function(){v.__construct__.call(this)},__postConstruct__:function(){v.__postConstruct__.call(this)},addFrameScript:function(){for(var b=
m(this,h),c=b.frameScripts,d=0,e=arguments.length;d<e;d+=2)c[arguments[d]]=arguments[d+1];b.handleFrameScripts||(b.handleFrameScripts=f,b.raw.on("runframescripts",a.hitch(this,b.handleFrameScripts)))},__goto__:a.noop,gotoAndPlay:function(a,b){this[i].raw.play();g(this,a,b)},gotoAndStop:function(a,b){this[i].raw.stop();g(this,a,b)},nextFrame:function(){this.gotoAndStop(this.currentFrame+1)},prevFrame:function(){this.gotoAndStop(this.currentFrame-1)},play:function(){this[i].raw.play()},stop:function(){this[i].raw.stop()}});
b=e.prototype;r(b,{name:"totalFrames",get:function(){return this[i].raw.length()}});r(b,{name:"framesLoaded",get:function(){return this[i].raw.length()}});r(b,{name:"currentFrame",get:function(){return this[i].raw.currentFrame+1}});return e}(y,l,o,ua);bc=function(d,a,b){return{getTimer:function(){return new Date-a.timestampAs3Started},getQualifiedClassName:function(a){var d=null;if(null===a)d="null";else if("undefined"===typeof a)d="void";else if(a instanceof b||a.hasOwnProperty("__isClass__"))d=
a.__qualifiedName__||a.__proto__.constructor.__qualifiedName__||a.__proto__.constructor.name.toString(),d=d.replace(/\.(?=[^.]+$)/,"::");else{var f=Object.prototype.toString.call(a);if("object"===typeof a&&"[object Array]"===f||"function"===typeof a&&"[class Array]"===f)d="Array";else switch(typeof a){case "function":d="builtin.as$0::MethodClosure";break;case "string":d="String";break;case "number":d=parseInt(a)==a?"int":"Number";break;case "object":d="Object"}}return d},getQualifiedSuperclassName:function(a){var d=
Object.toString.call(a),f="";return f=1===d.indexOf("class")&&a.__super__?a.__super__.constructor===b?"Object":this.getQualifiedClassName(a.__super__.constructor):1===d.indexOf("object")&&a.constructor.__super__?this.getQualifiedClassName(a.constructor.__super__.constructor):"Object"},getDefinitionByName:function(b){if("undefined"!=b){for(var b=b.replace(/::(?=[^.:]+$)/,"."),e=d,f=b.split("."),g=0,j=f.length;e&&g<j;g+=1)e=e[f[g]];if(!e&&"undefined"!==typeof a.__lookUpNameInVm)try{e=a.__lookUpNameInVm(b)}catch(i){e=
null}if(!e||e instanceof Namespace)throw new ReferenceError("Error #1065");return e}},clearInterval:function(a){return clearInterval.apply(null,arguments)},clearTimeout:function(a){return clearTimeout.apply(null,arguments)},setInterval:function(a,b,d){return setInterval.apply(null,arguments)},setTimeout:function(a,b,d){return setTimeout.apply(null,arguments)}}}(O,l,o);cc=function(d,a,b){function c(a){var b=typeof a;return null===a||void 0===a||"boolean"===b||"number"===b||"string"===b||a instanceof
r||a instanceof h||a instanceof p?h(a):a}function e(){this[t]={keys:[],values:[],deleteProperty:f,has:g,get:j,set:i}}function f(a){var b=this.keys,a=b.indexOf(c(a));return-1!==a?(b.splice(a,1),this.values.splice(a,1),!0):!1}function g(a){return-1!==this.keys.indexOf(c(a))}function j(a){return this.values[this.keys.indexOf(c(a))]}function i(a,b){var a=c(a),d=this.keys,e=d.indexOf(a);-1!==e?this.values[e]=b:(this.values.push(b),d.push(a))}var t=b.expando,p=a.Boolean,r=a.Number,h=a.String;d({qualifiedName:"flash.utils.Dictionary",
constructor:e,hasOwnProperty:function(a){return this[t].has(a)},toJSON:function(){var a=this[t],b=a.values,a=a.keys.reduce(function(a,c,d){a[d]={key:c,value:b[d]};return a},{});return JSON.stringify(a)}});return e}(o,G,l);dc=function(d,a,b,c,e){function f(c,d){if(0==arguments.length)throw new b("1136: Incorrect number of arguments. Expected 1.");if(2<arguments.length)throw new b("1137: Incorrect number of arguments. Expected no more than 2.");f.__super__.constructor.call(this);var e=this[j],h;a.setDescriptor(this,
"delay",{set:function(a){if(0>a||Infinity==a)throw new RangeError("#2066: The Timer delay specified is out of range.");h=a},get:function(){return h}});this.delay=c;this.repeatCount=d||0;a.setImmutable(this,{name:"currentCount",get:function(){return e.currentCount}});a.setImmutable(this,{name:"running",get:function(){return e.running}});e.currentCount=0;e.running=!1;e.hitchedOneIteration=a.hitch(this,g);e.stopped=!0;this.start=function(){e.stopped=!1;e.running=!0;setTimeout(e.hitchedOneIteration,this.delay)};
this.stop=function(){e.stopped=!0};this.reset=function(){this.stop();e.currentCount=0}}function g(){this[j].stopped||(this[j].currentCount++,this.dispatchEvent(new e(e.TIMER)),0===this.repeatCount||this[j].currentCount<this.repeatCount?setTimeout(this[j].hitchedOneIteration,this.delay):(this[j].running=!1,this.dispatchEvent(new e(e.TIMER_COMPLETE))))}var j=a.expando,i=a.noop;d({qualifiedName:"flash.utils.Timer",constructor:f,superClass:c,reset:i,start:i,stop:i});return f}(o,l,R,H,qa);ec=function(){var d=
{}.toString;return function(a){return"[object String]"===d.call(a)}}();fc=function(d,a,b,c){function e(c,g){var t=arguments.length,p=d.QName;t||(c=g="");if(1===t)if(c instanceof e)g=c.uri,c=c.prefix;else if(p&&c instanceof p)g=c.uri,c="";else{if(c===Object(c))return b.mixin(this,c)}else p&&g instanceof p&&(g=g.uri),c=a(c)?""+c:void 0;f(this,"prefix",c);f(this,"uri",""+g)}var f=b.setImmutable,g=b.setPseudoPrivate;c({constructor:e});g(e,"isBuiltIn",!0);g(e.prototype,"isNamespace",!0);b.setDescriptor(e.prototype,
"toString",{enumerable:!1,value:function(){return this.uri}});return e}(O,ec,l,o);gc=function(d,a,b){function c(a){if(!(this instanceof c))return new c(a);this.message=a}a({qualifiedName:"flash.errors.EOFError",constructor:c,superClass:b});return c}(l,o,Y);hc=function(d,a,b){function c(){var a=new ArrayBuffer(p);this[h]={data:this,length:Math.max(0,+this.length),deleteProperty:j,get:f,has:g,set:e};l(this,"_buffer",{value:a,enumerable:!1});l(this,"_dataView",{enumerable:!1});l(this,"_int8View",{enumerable:!1});
l(this,"_isLE",{value:!1,enumerable:!1});l(this,"_length",{value:0,enumerable:!1});l(this,"_objectEncoding",{value:3,enumerable:!1});l(this,"_position",{value:0,enumerable:!1});l(this,"bytesAvailable",{get:function(){return this._length-this._position},configurable:!1});m(this,"endian",{get:function(){return this._isLe?"littleEndian":"bigEndian"},set:function(a){if("littleEndian"!=a&&"bigEndian"!=a)throw ReferenceError("Error #2008");this._isLe="littleEndian"===a},configurable:!1});m(this,"length",
{get:function(){var a=this._length,b=-1,c;for(c in this)c==+c&&(b=Math.max(b,c));return Math.max(a,b+1)},set:function(a){var b=this._length;this._ensureBufferSize(a);this._length=a;for(b-=1;b>=a;b--)delete this[b]},configurable:!1});m(this,"objectEncoding",{get:function(){return this._objectEncoding},set:function(a){"string"==typeof a&&(a="0");if(isNaN(parseInt(a))||0!=a&&3!=a)throw ReferenceError("Error #2008");this._objectEncoding=parseInt(a)},configurable:!1});m(this,"position",{get:function(){return this._position},
set:function(a){if(0>a)throw ReferenceError("Error #1056");this._position=a},configurable:!1});this._setupViews()}function e(a,b){var c=this.data;if(a>c.length)throw RangeError("#1125: The index is ouf of range");a+1>=c.length&&(c.length+=1);c[a]=b}function f(a){if(!this.has(a))throw RangeError("#1125: The index is ouf of range");return this.data[a]}function g(a){return this.data.hasOwnProperty(a)}function j(a){delete this.data[a]}function i(a){for(var b=new Int8Array(4*a.length),c=0,d=0,e=a.length;d<
e;d++)if(127>=a.charCodeAt(d))b[c++]=a.charCodeAt(d);else for(var f=encodeURIComponent(a.charAt(d)).substr(1).split("%"),h=0,g=f.length;h<g;h++)b[c++]=parseInt(f[h],16);return b.subarray(0,c)}function t(a){for(var b="",c=String.fromCharCode,d=0,e=a.length;d<e;d++)var f=a[d],b=b+(127>=f?37===f?"%25":c(f):"%"+f.toString(16).toUpperCase());return decodeURIComponent(b)}var p=128,r=b("Error #2030: End of file was encountered."),h=d.expando,m=d.setAccessor,l=d.setDescriptor;a({qualifiedName:"flash.utils.ByteArray",
constructor:c,_ensureBufferSize:function(a){this._buffer.byteLength<a&&this._setBufferSize(a)},_setBufferSize:function(a){for(var b=this._buffer.byteLength,c=this._int8View;b<a;)b*=2;this._buffer=new ArrayBuffer(b);this._setupViews();this._int8View.set(c)},_setupViews:function(){this._dataView=new DataView(this._buffer);this._int8View=new Int8Array(this._buffer)},_read:function(a,b){if(this._position+b>this._length)throw r;var c=this._dataView[a](this._position,this._isLE);this.position+=b;return c},
_write:function(a,b,c){b=this._position+b;b>this.length&&(this.length=b);this._dataView[a](this._position,c,this._isLE);this.position=b},clear:function(){this.length=this.position=0;this._buffer=new ArrayBuffer(p);this._setupViews()},compress:d.createUnimplementedFunction("flash.utils.ByteArray#compress"),deflate:d.createUnimplementedFunction("flash.utils.ByteArray#deflate"),inflate:d.createUnimplementedFunction("flash.utils.ByteArray#inflate"),readBoolean:function(){return!!this.readByte()},readByte:function(){return this._read("getInt8",
1)},readBytes:function(a,b,c){c="undefined"!=typeof c?c:0;if(this._position+c>this._length)throw r;a._int8View.set(new Int8Array(this._buffer,this._position,c),"undefined"!=typeof b?b:0);a.length+=c;this.position+=c},readDouble:function(){return this._read("getFloat64",8)},readFloat:function(){return this._read("getFloat32",4)},readInt:function(){return this._read("getInt32",4)},readMultiByte:d.createUnimplementedFunction("flash.utils.ByteArray#readMultiByte"),readObject:d.createUnimplementedFunction("flash.utils.ByteArray#readObject"),
readShort:function(){return this._read("getInt16",2)},readUnsignedByte:function(){return this._read("getUint8",1)},readUnsignedInt:function(){return this._read("getUint32",4)},readUnsignedShort:function(){return this._read("getUint16",2)},readUTF:function(){return this.readUTFBytes(this.readShort())},readUTFBytes:function(a){var b=this._position;if(b+a>this._length)throw r;this.position+=a;return t(new Int8Array(this._buffer,b,a))},toString:function(){return t(new Int8Array(this._buffer,0,this._length))},
uncompress:d.createUnimplementedFunction("flash.utils.ByteArray#uncompress"),writeBoolean:function(a){this.writeByte(a)},writeByte:function(a){this._write("setInt8",1,a)},writeBytes:function(a,b,c){c="undefined"!=typeof c?c:a.length;a=new Int8Array(a._buffer||a.buffer,"undefined"!=typeof b?b:0,c);this.length=b=this._position+a.length;this._int8View.set(a,this._position);this.position=b},writeDouble:function(a){this._write("setFloat64",8,a)},writeFloat:function(a){this._write("setFloat32",4,a)},writeInt:function(a){this._write("setInt32",
4,a)},writeMultiByte:d.createUnimplementedFunction("flash.utils.ByteArray#writeMultiByte"),writeObject:d.createUnimplementedFunction("flash.utils.ByteArray#writeObject"),writeShort:function(a){this._write("setInt16",2,a)},writeUnsignedByte:function(a){this._write("setUint8",1,a)},writeUnsignedInt:function(a){this._write("setUint32",4,a)},writeUnsignedShort:function(a){this._write("setUint16",2,a)},writeUTF:function(a){a=i(a||"");this.writeShort(a.length);this.writeBytes(a)},writeUTFBytes:function(a){this.writeBytes(i(a))}});
return c}(l,o,gc);ic=function(d,a,b,c,e,f,g,j){a.__lookUpNameInVm=function(a){return bonsai.stage.toplevel.getType(a)};d=new e({ByteArray:f,Endian:new b,Dictionary:g,Timer:j,describeType:function(){return new XML("")},getTimer:c.getTimer,getQualifiedClassName:c.getQualifiedClassName,getQualifiedSuperclassName:c.getQualifiedSuperclassName,getDefinitionByName:c.getDefinitionByName,clearInterval:c.clearInterval,clearTimeout:c.clearTimeout,setInterval:c.setInterval,setTimeout:c.setTimeout});a.addConstantsToClass([[d.Endian,
"bigEndian","littleEndian"]]);return d}(O,l,o,bc,fc,hc,cc,dc);jc=function(d,a){function b(){}d({qualifiedName:"flash.system.ApplicationDomain",constructor:b});b.currentDomain=new b;var c=b.prototype;c.getDefinition=function(b){return a.getDefinitionByName(b)};c.hasDefinition=function(b){try{a.getDefinitionByName(b)}catch(c){return!1}return!0};return b}(o,ic);kc=function(d,a,b,c,e,f,g,j,i,l){function p(){var a=b.getPrivateObjectOf(this);a.attrs.bytesLoaded=0;a.attrs.bytesTotal=0;a.attrs.contentType=
null;a.attrs.childAllowsParent=!1;a.attrs.parentAllowsChild=!1;a.attrs.url="";a.load=b.hitch(this,m);a.imageLoadComplete=b.hitch(this,o);a.swfLoadComplete=b.hitch(this,k);a.isLoaded=!1;a.fileType="";p.__super__.constructor.call(this);u(this,"applicationDomain",e.currentDomain);u(this,"bytes",[]);u(this,{name:"content",get:function(){}});u(this,"loader",null);u(this,"loaderURL","");u(this,{name:"parameters",get:function(){return b.mixin({},d.stage.options.flashConfig.flashVars||{})}});u(this,"sharedEvents",
new g);u(this,"uncaughtErrorEvents",new l)}function r(){if(!b.getPrivateObjectOf(this).isLoaded)throw Error(a.getById(2099));}function h(){if("swf"!=b.getPrivateObjectOf(this).fileType)throw Error(a.getById(2098));}function m(a,c){var e=b.getPrivateObjectOf(this);e.attrs.bytesLoaded=0;e.attrs.bytesTotal=1;e.attrs.url=a.url;b.hitch(this,n)();var f=b.getFlashConfig().getLoadableFileUrl(a.url),h=s(a.url),g="";0===h.indexOf("image/")?g="image":"application/x-shockwave-flash"===h&&(g="swf");h=e.fileType=
g;"image"===h?(e.imageLoadComplete=b.hitch(this,o,f,c),(new d.Bitmap(f)).on("load",e.imageLoadComplete)):"swf"===h&&(e.swfLoadComplete=b.hitch(this,k,c),(new d.Movie(f)).on("load",e.swfLoadComplete))}function o(a,c,d){var e=b.getPrivateObjectOf(this);e.attrs.contentType=s(a);e.attrs.bytesLoaded=1;e.isLoaded=!0;c.addChild(d);b.hitch(this,n)();this.dispatchEvent(new f(f.COMPLETE))}function k(a,c){var d=b.getPrivateObjectOf(this);d.attrs.contentType="application/x-shockwave-flash";d.attrs.bytesLoaded=
1;d.isLoaded=!0;a.addChild(c);b.hitch(this,n)();this.dispatchEvent(new f(f.COMPLETE))}function n(){var a=b.getPrivateObjectOf(this);this.dispatchEvent(new j(j.PROGRESS,!1,!1,a.bytesLoaded,a.bytesTotal))}function s(a){var a=a.split(".").reverse()[0],b="";"swf"==a?b="application/x-shockwave-flash":("jpg"==a&&(a="jpeg"),b="image/"+a);return b}var q=b.expando,u=b.setImmutable;p.getLoaderInfoByDefinition=function(){return null};c({qualifiedName:"flash.display.LoaderInfo",constructor:p,superClass:g});c=
p.prototype;u(c,{name:"actionScriptVersion",get:function(){b.hitch(this,r)();b.hitch(this,h)()}});u(c,{name:"bytesLoaded",get:function(){return this[q].attrs.bytesLoaded||0}});u(c,{name:"bytesTotal",get:function(){return this[q].attrs.bytesTotal}});u(c,{name:"contentType",get:function(){return this[q].attrs.contentType}});u(c,{name:"childAllowsParent",get:function(){b.hitch(this,r)()}});u(c,{name:"frameRate",get:function(){b.hitch(this,r)();b.hitch(this,h)()}});u(c,{name:"height",get:function(){b.hitch(this,
r)()}});u(c,"isURLInaccessible",!1);u(c,{name:"parentAllowsChild",get:function(){b.hitch(this,r)()}});u(c,{name:"sameDomain",get:function(){b.hitch(this,r)()}});u(c,{name:"swfVersion",get:function(){b.hitch(this,r)();b.hitch(this,h)()}});u(c,{name:"url",get:function(){return this[q].attrs.url}});u(c,{name:"width",get:function(){b.hitch(this,r)()}});return p}(y,M,l,o,jc,A,H,Rb,Qb,Ub);lc=function(d,a,b,c,e,f,g){function j(){var b=a.getPrivateObjectOf(this);b.raw=d.stage;c.prototype.constructor.call(this);
d.stage.on("mouseout",this,function(b){b.target===d.stage&&a.dispatchEventWithoutBubbling(this,new f(f.MOUSE_LEAVE))});o(this,"frameRate",{configurable:!1,get:i,set:r});b.loaderInfo=new e;n(this,"parent",null);n(this,{name:"stageHeight",get:l});n(this,{name:"stageWidth",get:p})}function i(){return d.stage.framerate}function l(){return d.stage.height}function p(){return d.stage.width}function r(a){d.stage.setFramerate(a)}var h=a.createDummyFunction,m=a.noop,o=a.setAccessor,k=a.setDescriptor,n=a.setImmutable,
q=!1;b({qualifiedName:"flash.display.Stage",constructor:j,superClass:c,interfaces:[g],invalidate:function(){q||(setTimeout(function(){d.stage.emit("flash:stage-render");q=!1},1),q=!0)}});b=j.prototype;b.isFocusInaccessible=h({name:"isFocusInaccessible",returnType:"Boolean"});k(b,"accessibilityImplementation",{set:m});k(b,"align",{get:h({name:"align",returnType:"String"}),set:m});k(b,"allowsFullScreen",{get:h({name:"allowsFullScreen",returnType:"Boolean"})});k(b,"blendMode",{set:m});k(b,"cacheAsBitmap",
{set:m});k(b,"color",{get:h({name:"color",returnType:"uint"}),set:m});k(b,"colorCorrection",{get:h({name:"colorCorrection",returnType:"String"}),set:m});k(b,"colorCorrectionSupport",{get:h({name:"colorCorrectionSupport",returnType:"String"})});k(b,"contextMenu",{set:m});k(b,"displayState",{get:h({name:"displayState",returnType:"String"}),set:m});k(b,"focus",{get:h({name:"focus",returnType:""}),set:m});k(b,"fullScreenHeight",{get:h({name:"fullScreenHeight",returnType:"uint"})});k(b,"focusRect",{set:m});
k(b,"fullScreenSourceRect",{get:h({name:"fullScreenSourceRect",returnType:""}),set:m});k(b,"fullScreenWidth",{get:h({name:"fullScreenWidth",returnType:"uint"})});k(b,"height",{get:h({name:"height",returnType:"Number"}),set:m});k(b,"mouseChildren",{get:h({name:"mouseChildren",returnType:"Boolean"}),set:m});k(b,"mouseEnabled",{set:m});k(b,"opaqueBackground",{set:m});k(b,"quality",{get:h({name:"quality",returnType:"String"}),set:m});k(b,"rotationX",{set:m});k(b,"rotationY",{set:m});k(b,"rotationZ",{set:m});
k(b,"scale9Grid",{set:m});k(b,"scaleMode",{get:h({name:"scaleMode",returnType:"String"}),set:m});k(b,"scaleZ",{set:m});k(b,"scrollRect",{set:m});k(b,"showDefaultContextMenu",{get:h({name:"showDefaultContextMenu",returnType:"Boolean"}),set:m});k(b,"softKeyboardRect",{get:h({name:"softKeyboardRect",returnType:""})});k(b,"stage",{get:function(){return this}});k(b,"stageFocusRect",{get:h({name:"stageFocusRect",returnType:"Boolean"}),set:m});k(b,"stageVideos",{get:h({name:"stageVideos",returnType:""})});
k(b,"tabIndex",{set:m});k(b,"textSnapshot",{get:h({name:"textSnapshot",returnType:""})});k(b,"width",{get:h({name:"width",returnType:"Number"}),set:m});k(b,"wmodeGPU",{get:h({name:"wmodeGPU",returnType:"Boolean"})});k(b,"z",{set:m});return j}(y,l,o,T,kc,A,oa);I=function(d,a){d.stage||(d.stage=new a);return{stage:d.stage}}(V,lc);mc=function(d,a){var b=null;d.stage.addEventListener(a.KEY_DOWN,function(a){b=a.keyCode});return{addListener:function(b){b.onKeyDown&&d.stage.addEventListener(a.KEY_DOWN,b.onKeyDown);
b.onKeyUp&&d.stage.addEventListener(a.KEY_UP,b.onKeyUp)},getCode:function(){return b}}}(I,K);nc=function(d,a,b){function c(){}return{addListener:function(a){var c={onMouseDown:b.MOUSE_DOWN,onMouseMove:b.MOUSE_MOVE,onMouseUp:b.MOUSE_UP,onMouseWheel:b.MOUSE_WHEEL},g;for(g in a)d.stage.addEventListener(c[g],a[g])},removeListener:function(a){var c={onMouseDown:b.MOUSE_DOWN,onMouseMove:b.MOUSE_MOVE,onMouseUp:b.MOUSE_UP,onMouseWheel:b.MOUSE_WHEEL},g;for(g in a)d.stage.removeEventListener(c[g],a[g])},hide:c,
show:c}}(I,l,B);oc=function(d,a){function b(){}d({constructor:b});b.width=a.stage.stageWidth;b.height=a.stage.stageHeight;return b}(q,I);ca=function(d,a,b,c){var e=[];return{getURL:function(c,e,j){if(0==c.toLowerCase().indexOf("fscommand:"))b.warnAbout.missingImplementation&&console.warn("getURL() does not support FSCommand yet, tried to call getURL with:",arguments);else{var i=new a(c);i.method=j;d.navigateToURL(i,e||"_blank")}},mixinFlashVars:function(a){var b=c.stage.loaderInfo.parameters,d;for(d in b)a.hasOwnProperty(d)?
console.log('mixinFlashVars: Property "'+d+'" in obj exists, wont be overridden with flashVar of the same name.'):a[d]=b[d]},registerSound:function(a){e.push(a)},stopAllSounds:function(){for(var a=e.length,b=0;b<a;b++){var c=e[b];c&&c.stop()}}}}(Jb,Q,N,I);va=function(d,a,b,c,e,f,g,j,i){function l(){r.constructor.call(this);var a=f.getPrivateObjectOf(this);a.as2Attrs||(a.as2Attrs={listeners:{},depthToInstanceMap:{}})}function p(a,b,c,d){f.setDescriptor(a,b,{set:function(a){var e=f.getPrivateObjectOf(this).as2Attrs;
e.listeners[b]&&this.removeEventListener(c,e.listeners[b].hitched);e.listeners[b]={func:a,hitched:f.hitch(this,a)};this.addEventListener(c,e.listeners[b].hitched);d&&(this.mouseEnabled=!0)},get:function(){var a=f.getPrivateObjectOf(this).as2Attrs.listeners;return a[b]&&a[b].func}})}var r=g.prototype;c({constructor:l,superClass:g,__preConstruct__:function(){r.__preConstruct__.call(this);this.mouseEnabled=!1},attachBitmap:function(){console.log("TODO MovieClip.attachBitmap is DUMMY")},createEmptyMovieClip:function(a,
b){var c=f.getPrivateObjectOf(this).as2Attrs.depthToInstanceMap,d=c[b];d&&(delete this[d.name],this.removeChild(d.movieClip),delete c[b]);d=new l;d[f.expando].name=a;this.addChild(d);this[a]=d;c[b]={movieClip:d,name:a};return d},createTextField:function(a,c,d,e,f,g){c=new b;c.width=f;c.height=g;c.x=d;c.y=e;this.addChild(c);a&&(this[a]=c);return c},getBytesLoaded:function(){return 1},getBytesTotal:function(){return 1},getDepth:function(){var a=f.getPrivateObjectOf(this.parent).as2Attrs.depthToInstanceMap,
b;for(b in a)if(a[b].movieClip==this)return parseInt(b)},getNextHighestDepth:function(){var a=f.getPrivateObjectOf(this).as2Attrs.depthToInstanceMap,a=Object.keys(a).map(function(a){return parseInt(a)}).sort();return a.length?a.pop()+1:0},getInstanceAtDepth:function(a){var b=f.getPrivateObjectOf(this).as2Attrs.depthToInstanceMap;if(b[a])return b[a].movieClip},getURL:e.getURL,removeMovieClip:function(){this.parent.removeChild(this)},startDrag:function(a){return g.prototype.startDrag.apply(this,[a])},
swapDepths:function(a){this.swapChildren(this,a)}});c=l.prototype;d.createPropertyMappings([["_alpha","alpha",{as2ToAs3:d.hundredToOne,as3ToAs2:d.oneToHundred}],["_currentframe","currentFrame"],["_framesloaded","framesLoaded"],["_height","height"],["_name","name"],["_parent","parent"],["_xscale","scaleX",{as2ToAs3:d.hundredToOne,as3ToAs2:d.oneToHundred}],["_yscale","scaleY",{as2ToAs3:d.hundredToOne,as3ToAs2:d.oneToHundred}],["_totalframes","totalFrames"],["_visible","visible"],["_width","width"],
["_x","x"],["_y","y"],["_z","z"]],c);f.setReadOnly(c,"_xmouse",function(){return a.stage.mouseX});f.setReadOnly(c,"_ymouse",function(){return a.stage.mouseY});p(c,"onEnterFrame",j.ENTER_FRAME);p(c,"onMouseMove",i.MOUSE_MOVE,!0);p(c,"onPress",i.MOUSE_DOWN,!0);p(c,"onRelease",i.CLICK,!0);return l}(ma,I,ba,q,ca,l,ac,A,B);pc=function(d,a,b,c,e,f,g){function j(a){a[l]||(a[l]={as3SoundObj:null,channel:null,transform:null});return a[l]}function i(){}var l=d.expando;a({constructor:i,attachSound:function(a){if(c.stage.options.flashConfig&&
c.stage.options.flashConfig.exportAssets)var d=c.stage.options.flashConfig.exportAssets.sounds;a=d&&a in d?new g(d[a]):new g(a);j(this).as3SoundObj=new e(a);b.registerSound(this)},setVolume:function(a){var b=j(this),c=b.channel;b.transform=new f(a);c&&(c.soundTransform=b.transform)},start:function(){var a=j(this);a.channel=a.as3SoundObj.play(0);a.transform&&(a.channel.soundTransform=a.transform)},stop:function(){j(this).channel.stop()}});d.setDescriptor(i.prototype,"onSoundComplete",{set:function(a){var b=
2E3,c=j(this).as3SoundObj,c=c&&c.url;"assets/audio_63.mp3"==c&&(b=6E3);"assets/audio_64.mp3"==c&&(b=6E3);"assets/audio_65.mp3"==c&&(b=8E3);"assets/audio_66.mp3"==c&&(b=4E3);"assets/audio_67.mp3"==c&&(b=1E4);"assets/audio_76.mp3"==c&&(b=4E3);"assets/audio_96.mp3"==c&&(b=5E3);var d=this;setTimeout(function(){d.stop();a()},b)},get:d.createDummyFunction("GETTER Sound.onSoundComplete")});return i}(l,q,ca,y,Zb,Ga,Q);(function(d,a,b,c,e,f,g,j,i,l,p,r,h,m,o,k,n,q,y,u,A,B,C,D,F,G,H,w,I,J,K,L,M,N,O,P,Q,R,S,
T,U,V,W,X,Y,Z,$,aa,ba,ca,fa){c.Accessibility=e;c.AsBroadcaster=f;c.Button=g;c.Camera=j;c.Color=i;c.ColorTransform=l;c.ContextMenu=p;c.ContextMenuItem=r;c.CustomActions=h;c.Key=m;c.LoadVars=o;c.LocalConnection=k;c.Microphone=n;c.Mouse=q;c.MouseEvent=y;c.MovieClip=u;c.MovieClipLoader=A;c.NetConnection=B;c.NetStream=C;c.Object=D;c.PrintJob=F;c.Selection=G;c.SharedObject=H;c.Sound=w;c.Stage=I;c.System=J;c.SystemCapabilities=K;c.SystemIME=L;c.SystemSecurity=M;c.SystemStyleSheet=N;c.TextField=O;c.TextFormat=
P;c.TextSnapshot=Q;c.Video=R;c.XML=S;c.XMLNode=T;c.XMLSocket=U;c.XMLUI=V;c.flash=W;c.mx=X;return{_global:c,helper:d,tools:a,singleton:b,as3shim:{Bitmap:Y,MorphShape:Z,Shape:$,SimpleButton:aa,Sprite:ba,StaticText:ca,TextField:fa}}})(function(d,a,b,c,e,f,g){function j(a){var c=function(){b.prototype.constructor.call(this);for(var c in a)this.addEventListener(f[c],g.hitch(this,a[c]))};d({constructor:c,superClass:b});return c}function i(b){var c=function(){a.prototype.constructor.call(this);var c=[],
d;for(d in b)c.push(parseInt(d)),c.push(g.hitch(this,b[d]));this.addFrameScript.apply(this,c)};d({constructor:c,superClass:a});return c}return{addLookupTo:function(a,b,c){c.forEach(function(c){window.Object.defineProperty(a,c,{get:function(){for(var a=0;a<b.length;a++)if(void 0!=b[a][c])return b[a][c]},set:function(a){b[0][c]=a}})})},buildButtonClasses:function(a){var b={},c;for(c in a)b[c]=j(a[c]);return b},buildSpriteClasses:function(a){var b={},c;for(c in a)b[c]=i(a[c]);return b},buildRootMovie:function(b){var f=
function(){a.prototype.constructor.call(this);c.mixinFlashVars(this);e._root=this;b.setRoot&&b.setRoot(this);var d=[],f;for(f in b.frameScripts)d.push(parseInt(f)),d.push(g.hitch(this,b.frameScripts[f]));this.addFrameScript.apply(this,d)};d({constructor:f,superClass:a});return f}}}(q,va,U,ca,W,Pb,l),l,I,fa,Fa,Sa,U,Ta,Gb,Ua,Va,Wa,Xa,mc,Ya,Za,$a,nc,ab,va,cb,db,bb,ha,eb,fb,gb,pc,oc,P,Lb,Mb,Nb,$b,ba,hb,ib,jb,kb,lb,mb,nb,F,ja,Vb,Yb,Xb,aa,ua,Wb,S,ob,Ib,qb,pb,Ob,rb,sb,tb,xb,ub,zb,vb,wb,yb,Ab,Bb,Cb,Db,Eb,
ka,Fb)})();