/* howler.js v2.1.1 | (c) 2013-2018, James Simpson of GoldFire Studios | MIT License | howlerjs.com Spatial Plugin @source http://purl.eligrey.com/github/FileSaver.js/blob/master/FileSaver.js */ var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(ba,z,T){ba!=Array.prototype&&ba!=Object.prototype&&(ba[z]=T.value)};$jscomp.getGlobal=function(ba){return"undefined"!=typeof window&&window===ba?ba:"undefined"!=typeof global&&null!=global?global:ba};$jscomp.global=$jscomp.getGlobal(this); $jscomp.SYMBOL_PREFIX="jscomp_symbol_";$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)};$jscomp.Symbol=function(){var ba=0;return function(z){return $jscomp.SYMBOL_PREFIX+(z||"")+ba++}}(); $jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var ba=$jscomp.global.Symbol.iterator;ba||(ba=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("iterator"));"function"!=typeof Array.prototype[ba]&&$jscomp.defineProperty(Array.prototype,ba,{configurable:!0,writable:!0,value:function(){return $jscomp.arrayIterator(this)}});$jscomp.initSymbolIterator=function(){}}; $jscomp.arrayIterator=function(ba){var z=0;return $jscomp.iteratorPrototype(function(){return zW||1114111=W?T+=String.fromCharCode(W):(W-=65536,T+=String.fromCharCode(W>>>10&1023|55296),T+=String.fromCharCode(W&1023|56320))}return T}},"es6","es3"); $jscomp.checkStringArgs=function(ba,z,T){if(null==ba)throw new TypeError("The 'this' value for String.prototype."+T+" must not be null or undefined");if(z instanceof RegExp)throw new TypeError("First argument to String.prototype."+T+" must not be a regular expression");return ba+""}; $jscomp.polyfill("String.prototype.startsWith",function(ba){return ba?ba:function(z,T){var K=$jscomp.checkStringArgs(this,z,"startsWith");z+="";var W=K.length,ja=z.length;T=Math.max(0,Math.min(T|0,K.length));for(var r=0;r=ja}},"es6","es3");$jscomp.polyfill("Array.prototype.values",function(ba){return ba?ba:function(){return $jscomp.iteratorFromArray(this,function(z,T){return T})}},"es6","es3"); $jscomp.polyfill("String.prototype.codePointAt",function(ba){return ba?ba:function(z){var T=$jscomp.checkStringArgs(this,null,"codePointAt"),K=T.length;z=Number(z)||0;if(0<=z&&zW||56319z||57343=W}},"es6","es3"); $jscomp.polyfill("String.prototype.repeat",function(ba){return ba?ba:function(z){var T=$jscomp.checkStringArgs(this,null,"repeat");if(0>z||1342177279>>=1)T+=T;return K}},"es6","es3"); $jscomp.polyfill("Array.prototype.fill",function(ba){return ba?ba:function(z,T,K){var W=this.length||0;0>T&&(T=Math.max(0,W+T));if(null==K||K>W)K=W;K=Number(K);0>K&&(K=Math.max(0,W+K));for(T=Number(T||0);Td?a:A.substr(a,0,c+d));if(c=null!=this.r.m)this.r.s=a;return c}if(d=this.match(0>d?A.substr(a,c,null):A.substr(a,c,d)))this.r.s=a,this.r.m.index+=c; return d},split:function(a){return a.replace(this.r,"#__delim__#").split("#__delim__#")},map:function(a,c){for(var d=0,b="";!(d>=a.length);){if(!this.matchSub(a,d)){b+=N.string(A.substr(a,d,null));break}var e=this.matchedPos();b+=N.string(A.substr(a,d,e.pos-d));b+=N.string(c(this));0==e.len?(b+=N.string(A.substr(a,e.pos,1)),d=e.pos+1):d=e.pos+e.len;if(!this.r.global)break}!this.r.global&&0d)if(0==c)d=a.length+d;else return"";return a.substr(c,d)};A.remove=function(a,c){c=a.indexOf(c);if(-1==c)return!1;a.splice(c,1);return!0};A.iter=function(a){return{cur:0,arr:a,hasNext:function(){return this.curc?1:-1};Y.compareMethods=function(a,c){return a==c?!0:Y.isFunction(a)&&Y.isFunction(c)?a.scope==c.scope&&a.method==c.method?null!=a.method:!1:!1};Y.isObject=function(a){if(null== a)return!1;var c=typeof a;return"string"==c||"object"==c&&null==a.__enum__?!0:"function"==c?null!=(a.__name__||a.__ename__):!1};Y.isEnumValue=function(a){return null!=a?null!=a.__enum__:!1};Y.deleteField=function(a,c){if(!Object.prototype.hasOwnProperty.call(a,c))return!1;delete a[c];return!0};Y.makeVarArgs=function(a){return function(){var c=Array.prototype.slice.call(arguments);return a(c)}};var ba=function(a,c){null==c&&(c=2);this.swipeTimeout=.1;this.longPressDelay=1;var d=this;if(!ba.initialized){ba.initialized= !0;var b=$a.get_current().stage;ba.moveToleSqr=.008*(new qa(b.stageWidth,b.stageHeight)).get_length();ba.moveToleSqr*=ba.moveToleSqr;Ie.get_supportsTouchEvents()&&(Ie.inputMode=2)}this.owner=a;this.mode=c;a=Ie.get_supportsTouchEvents();this.owner.mouseEnabled=!0;this.listenEvents=1==this.mode?a?ba.touchEvents:ba.mouseEvents:a?ba.geTouchEvents:ba.geMouseEvents;this.handler=1==this.mode?a?x(this,this.convertTouch):x(this,this.convertMouse):a?x(this,this.onTouch):x(this,this.onMouse);a=0;for(c=this.listenEvents;a< c.length;)b=c[a],++a,this.owner.addEventListener(b,this.handler);3==this.mode&&$a.get_current().stage.addEventListener("resize",function(a){d.overlay=null});this.touchList=new Pa;this.setReady()};k.RoxGestureAgent=ba;ba.__name__="RoxGestureAgent";ba.__properties__={get_multitouchSupported:"get_multitouchSupported"};ba.init=function(){if(!ba.initialized){ba.initialized=!0;var a=$a.get_current().stage;ba.moveToleSqr=.008*(new qa(a.stageWidth,a.stageHeight)).get_length();ba.moveToleSqr*=ba.moveToleSqr; Ie.get_supportsTouchEvents()&&(Ie.inputMode=2)}};ba.localOffset=function(a,c){var d=a.parent.localToGlobal(new qa(a.get_x(),a.get_y()));d.offset(c.x,c.y);d=a.parent.globalToLocal(d);d.offset(-a.get_x(),-a.get_y());return d};ba.get_multitouchSupported=function(){return Ie.get_supportsTouchEvents()?1>1;c= this.swipeTimeout||f.time-this.touch0.time=a||0==this.inactiveObjects)&&(null!=this.__inactiveObject0&&(this.__pool.remove(this.__inactiveObject0),this.__inactiveObject0=null,this.inactiveObjects--,--a),0!=a&&0!= this.inactiveObjects&&(null!=this.__inactiveObject1&&(this.__pool.remove(this.__inactiveObject1),this.__inactiveObject1=null,this.inactiveObjects--,--a),0!=a&&0!=this.inactiveObjects)))for(var c=this.__inactiveObjectList.h;null!=c;){var d=c.item;c=c.next;this.__pool.remove(d);this.__inactiveObjectList.remove(d);this.inactiveObjects--;--a;if(0==a||0==this.inactiveObjects)break}},get_size:function(){return this.__size},set_size:function(a){if(null==a)this.__size=null;else{var c=this.inactiveObjects+ this.activeObjects;this.__size=a;if(c>a)this.__removeInactive(c-a);else if(a>c)for(var d=0,b=a-c;d ";a+=N.string(N.string(this.h[d.__id__]));c.hasNext()&&(a+=", ")}return a+"}"},__class__:ib};var Pa=function(){this.length=0};k["haxe.ds.List"]= Pa;Pa.__name__="haxe.ds.List";Pa.prototype={h:null,q:null,length:null,add:function(a){a=new Wl(a,null);null==this.h?this.h=a:this.q.next=a;this.q=a;this.length++},push:function(a){this.h=a=new Wl(a,this.h);null==this.q&&(this.q=a);this.length++},pop:function(){if(null==this.h)return null;var a=this.h.item;this.h=this.h.next;null==this.h&&(this.q=null);this.length--;return a},clear:function(){this.q=this.h=null;this.length=0},remove:function(a){for(var c=null,d=this.h;null!=d;){if(d.item==a)return null== c?this.h=d.next:c.next=d.next,this.q==d&&(this.q=c),this.length--,!0;c=d;d=d.next}return!1},iterator:function(){return new Dp(this.h)},__class__:Pa};var ca=function(a,c,d){null==d&&(d=!1);null==c&&(c=!1);this.type=a;this.bubbles=c;this.cancelable=d;this.eventPhase=2};k["openfl.events.Event"]=ca;ca.__name__="openfl.events.Event";ca.prototype={bubbles:null,cancelable:null,currentTarget:null,eventPhase:null,target:null,type:null,__isCanceled:null,__isCanceledNow:null,__preventDefault:null,clone:function(){var a= new ca(this.type,this.bubbles,this.cancelable);a.eventPhase=this.eventPhase;a.target=this.target;a.currentTarget=this.currentTarget;return a},formatToString:function(a,c,d,b,e,g){var f=[];null!=c&&f.push(c);null!=d&&f.push(d);null!=b&&f.push(b);null!=e&&f.push(e);null!=g&&f.push(g);return x(this,this.__formatToString).apply(this,[a,f])},isDefaultPrevented:function(){return this.__preventDefault},preventDefault:function(){this.cancelable&&(this.__preventDefault=!0)},stopImmediatePropagation:function(){this.__isCanceledNow= this.__isCanceled=!0},stopPropagation:function(){this.__isCanceled=!0},toString:function(){return this.__formatToString("Event",["type","bubbles","cancelable"])},__formatToString:function(a,c){a="["+a;for(var d,b=0;b=h&&(h=h-55232<<10|e.charCodeAt(g+1)&1023);e=h;65536<=e&&++b;switch(e){case 34:d=c?d+""":d+String.fromCodePoint(e);break;case 38:d+="&";break;case 39:d=c?d+"'":d+String.fromCodePoint(e);break;case 60:d+="<";break; case 62:d+=">";break;default:d+=String.fromCodePoint(e)}}return d};aa.startsWith=function(a,c){return a.length>=c.length?0==a.lastIndexOf(c,0):!1};aa.endsWith=function(a,c){var d=c.length,b=a.length;return b>=d?a.indexOf(c,b-d)==b-d:!1};aa.isSpace=function(a,c){a=A.cca(a,c);return 8a?!0:32==a};aa.ltrim=function(a){for(var c=a.length,d=0;d=c.length)return a;for(a=""+(null==a?"null":""+a);a.length>>=4,0a;return d!=0>c?d:a>c};Ea.toFloat=function(a){return 0>a?4294967296+a:a+0};var Bf=function(){};k["openfl.events.IEventDispatcher"]=Bf;Bf.__name__="openfl.events.IEventDispatcher";Bf.__isInterface__=!0;Bf.prototype={addEventListener:null,dispatchEvent:null,hasEventListener:null,removeEventListener:null,willTrigger:null,__class__:Bf}; var E=function(a){null!=a&&(this.__targetDispatcher=a)};k["openfl.events.EventDispatcher"]=E;E.__name__="openfl.events.EventDispatcher";E.__interfaces__=[Bf];E.prototype={__eventMap:null,__iterators:null,__targetDispatcher:null,addEventListener:function(a,c,d,b,e){null==b&&(b=0);null==d&&(d=!1);if(null!=c)if(null==this.__eventMap&&(this.__eventMap=new sa,this.__iterators=new sa),e=this.__eventMap,null!=v[a]?e.existsReserved(a):e.h.hasOwnProperty(a)){e=this.__eventMap;e=null!=v[a]?e.getReserved(a): e.h[a];for(var f=0,h=e.length;fa&&(a=0);a==this.__alpha||this.get_cacheAsBitmap()|| this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty());return this.__alpha=a},get_blendMode:function(){return this.__blendMode},set_blendMode:function(a){null==a&&(a=10);a==this.__blendMode||this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty());return this.__blendMode=a},get_cacheAsBitmap:function(){return null==this.__filters?this.__cacheAsBitmap:!0},set_cacheAsBitmap:function(a){a==this.__cacheAsBitmap||this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()); return this.__cacheAsBitmap=a},get_cacheAsBitmapMatrix:function(){return this.__cacheAsBitmapMatrix},set_cacheAsBitmapMatrix:function(a){this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty());return this.__cacheAsBitmapMatrix=null!=a?a.clone():a},get_filters:function(){return null==this.__filters?[]:this.__filters.slice()},set_filters:function(a){null!=a&&0a)throw new F(new gj("Parameter tabIndex must be a non-negative number; got "+a)); this.__tabIndex=a;this.dispatchEvent(new ca("tabIndexChange",!0,!1))}return this.__tabIndex},__class__:ab,__properties__:r(wa.prototype.__properties__,{set_tabIndex:"set_tabIndex",get_tabIndex:"get_tabIndex",set_tabEnabled:"set_tabEnabled",get_tabEnabled:"get_tabEnabled"})});var cb=function(){ab.call(this);this.__type=Kh.DISPLAY_OBJECT_CONTAINER;this.__tabChildren=this.mouseChildren=!0;this.__children=[];this.__removedChildren=Ja.toObjectVector(null)};k["openfl.display.DisplayObjectContainer"]=cb; cb.__name__="openfl.display.DisplayObjectContainer";cb.__super__=ab;cb.prototype=r(ab.prototype,{mouseChildren:null,__removedChildren:null,__tabChildren:null,addChild:function(a){return this.addChildAt(a,this.get_numChildren())},addChildAt:function(a,c){if(null==a)throw a=new zk("Error #2007: Parameter child must be non-null."),a.errorID=2007,new F(a);if(a.stage==a)throw a=new ui("Error #3783: A Stage object cannot be added as the child of another object."),a.errorID=3783,new F(a);if(c>this.__children.length|| 0>c)throw new F("Invalid index position "+c);if(a.parent==this)this.__children[c]!=a&&(A.remove(this.__children,a),this.__children.splice(c,0,a),this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()));else{null!=a.parent&&a.parent.removeChild(a);this.__children.splice(c,0,a);a.parent=this;(c=null!=this.stage&&null==a.stage)&&this.__setStageReference(this.stage);a.__setTransformDirty();a.__renderDirty||(a.__renderDirty=!0,a.__setParentRenderDirty());this.__renderDirty||(this.__renderDirty= !0,this.__setParentRenderDirty());var d=ca.__pool.get();d.type="added";d.bubbles=!0;d.target=a;a.__dispatchWithCapture(d);ca.__pool.release(d);c&&(d=new ca("addedToStage",!1,!1),a.__dispatchWithCapture(d),a.__dispatchChildren(d))}return a},areInaccessibleObjectsUnderPoint:function(a){return!1},contains:function(a){for(;a!=this&&null!=a;)a=a.parent;return a==this},getChildAt:function(a){return 0<=a&&ac))return;if(!(a>this.__children.length-1)){if(ca||c>this.__children.length)throw new F(new gj("The supplied index is out of bounds."));for(c-=a;0<=c;)this.removeChildAt(a),--c}},resolve:function(a){if(null==this.__children)return null;for(var c=0,d=this.__children;ce)););if(t)return b.splice(e,0,g),!0}}else{for(g=!1;0<=--f&&(!this.__children[f].__hitTest(a,c,d,b,!1,this.__children[f])|| (g=!0,null!=b)););return g}return!1},__hitTestMask:function(a,c){for(var d=this.__children.length;0<=--d;)if(this.__children[d].__hitTestMask(a,c))return!0;return!1},__readGraphicsData:function(a,c){ab.prototype.__readGraphicsData.call(this,a,c);if(c)for(var d=0,b=this.__children;d=2*f&&c>=2*g?4:a>=d&&c>=b?3:a>=f&&c>=g?2:a>=d/2&&c>=b/2?1.5:1},preloaderComplete:function(){try{new m(this)}catch(a){ha.lastException=a,this.stage.__handleError(a instanceof F?a.val:a)}this.stage.dispatchEvent(new ca("resize",!1, !1));this.stage.window.__fullscreen&&this.stage.dispatchEvent(new fg("fullScreen",!1,!1,!0,!0))},__class__:da});var ea={};k["_Xml.XmlType_Impl_"]=ea;ea.__name__="_Xml.XmlType_Impl_";ea.toString=function(a){switch(a){case 0:return"Element";case 1:return"PCData";case 2:return"CData";case 3:return"Comment";case 4:return"DocType";case 5:return"ProcessingInstruction";case 6:return"Document"}};var pa=function(a){this.nodeType=a;this.children=[];this.attributeMap=new sa};k.Xml=pa;pa.__name__="Xml";pa.parse= function(a){return Lh.parse(a)};pa.createElement=function(a){var c=new pa(pa.Element);if(c.nodeType!=pa.Element)throw new F("Bad node type, expected Element but found "+ea.toString(c.nodeType));c.nodeName=a;return c};pa.createPCData=function(a){var c=new pa(pa.PCData);if(c.nodeType==pa.Document||c.nodeType==pa.Element)throw new F("Bad node type, unexpected "+ea.toString(c.nodeType));c.nodeValue=a;return c};pa.createCData=function(a){var c=new pa(pa.CData);if(c.nodeType==pa.Document||c.nodeType==pa.Element)throw new F("Bad node type, unexpected "+ ea.toString(c.nodeType));c.nodeValue=a;return c};pa.createComment=function(a){var c=new pa(pa.Comment);if(c.nodeType==pa.Document||c.nodeType==pa.Element)throw new F("Bad node type, unexpected "+ea.toString(c.nodeType));c.nodeValue=a;return c};pa.createDocType=function(a){var c=new pa(pa.DocType);if(c.nodeType==pa.Document||c.nodeType==pa.Element)throw new F("Bad node type, unexpected "+ea.toString(c.nodeType));c.nodeValue=a;return c};pa.createProcessingInstruction=function(a){var c=new pa(pa.ProcessingInstruction); if(c.nodeType==pa.Document||c.nodeType==pa.Element)throw new F("Bad node type, unexpected "+ea.toString(c.nodeType));c.nodeValue=a;return c};pa.createDocument=function(){return new pa(pa.Document)};pa.prototype={nodeType:null,nodeName:null,nodeValue:null,parent:null,children:null,attributeMap:null,get:function(a){if(this.nodeType!=pa.Element)throw new F("Bad node type, expected Element but found "+ea.toString(this.nodeType));var c=this.attributeMap;return null!=v[a]?c.getReserved(a):c.h[a]},set:function(a, c){if(this.nodeType!=pa.Element)throw new F("Bad node type, expected Element but found "+ea.toString(this.nodeType));var d=this.attributeMap;null!=v[a]?d.setReserved(a,c):d.h[a]=c},exists:function(a){if(this.nodeType!=pa.Element)throw new F("Bad node type, expected Element but found "+ea.toString(this.nodeType));var c=this.attributeMap;return null!=v[a]?c.existsReserved(a):c.h.hasOwnProperty(a)},attributes:function(){if(this.nodeType!=pa.Element)throw new F("Bad node type, expected Element but found "+ ea.toString(this.nodeType));return this.attributeMap.keys()},elements:function(){if(this.nodeType!=pa.Document&&this.nodeType!=pa.Element)throw new F("Bad node type, expected Element or Document but found "+ea.toString(this.nodeType));for(var a=[],c=0,d=this.children;ce&&(p=h,h=e,e=p,p=1);h>d&&(t.x=p,t.y=0,d=h);b=Math.min(b,e);if(d>b)return!1}if(le&&(p=h,h=e,e=p,p=1),h>d&&(t.y=p,t.x=0,d=h),b=Math.min(b,e),d>b)return!1;a.fraction=d;return!0},testOverlap:function(a){var c=a.lowerBound.y-this.upperBound.y,d=this.lowerBound.y-a.upperBound.y;return 0 a.x?this.x:a.x;this.y=this.y>a.y?this.y:a.y},abs:function(){0>this.x&&(this.x=-this.x);0>this.y&&(this.y=-this.y)},length:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},lengthSquared:function(){return this.x*this.x+this.y*this.y},normalize:function(){var a=Math.sqrt(this.x*this.x+this.y*this.y);if(a>8&255;this.features._incidentVertex=(this._key&16711680)>>16&255;this.features._flip=(this._key&-16777216)>>24&255;return this._key},features:null,_key:null, indexA:null,indexB:null,typeA:null,typeB:null,__class__:P,__properties__:{set_key:"set_key",get_key:"get_key"}};var Je=function(){};k["box2D.collision.Features"]=Je;Je.__name__="box2D.collision.Features";Je.prototype={get_referenceEdge:function(){return this._referenceEdge},set_referenceEdge:function(a){this._referenceEdge=a;this._m_id._key=this._m_id._key&-256|this._referenceEdge&255;return a},_referenceEdge:null,get_incidentEdge:function(){return this._incidentEdge},set_incidentEdge:function(a){this._incidentEdge= a;this._m_id._key=this._m_id._key&-65281|this._incidentEdge<<8&65280;return a},_incidentEdge:null,get_incidentVertex:function(){return this._incidentVertex},set_incidentVertex:function(a){this._incidentVertex=a;this._m_id._key=this._m_id._key&-16711681|this._incidentVertex<<16&16711680;return a},_incidentVertex:null,get_flip:function(){return this._flip},set_flip:function(a){this._flip=a;this._m_id._key=this._m_id._key&16777215|this._flip<<24&-16777216;return a},_flip:null,_m_id:null,__class__:Je, __properties__:{set_flip:"set_flip",get_flip:"get_flip",set_incidentVertex:"set_incidentVertex",get_incidentVertex:"get_incidentVertex",set_incidentEdge:"set_incidentEdge",get_incidentEdge:"get_incidentEdge",set_referenceEdge:"set_referenceEdge",get_referenceEdge:"get_referenceEdge"}};var I=function(){};k["box2D.collision.B2Collision"]=I;I.__name__="box2D.collision.B2Collision";I.clipSegmentToLine=function(a,c,d,b){var f=0,g=c[0],h=g.v;g=c[1];var l=g.v,t=d.x*h.x+d.y*h.y-b;g=d.x*l.x+d.y*l.y-b;0>=t&& a[f++].set(c[0]);0>=g&&a[f++].set(c[1]);0>t*g&&(d=t/(t-g),g=a[f],g=g.v,g.x=h.x+d*(l.x-h.x),g.y=h.y+d*(l.y-h.y),g=a[f],g.id=(0n&&(n=t,p=q)}h=I.edgeSeparation(c,d,p,b,e);n=0<=p-1?p-1:f-1;l=I.edgeSeparation(c,d,n,b,e);k=p+1h&&l>m)t=-1;else if(m>h)t=1,n=k,l=m;else return a[0]=p,h;for(;;)if(p=-1==t?0<=n-1?n-1:f-1:n+1l)n=p,l=h;else break;a[0]=n;return l};I.findIncidentEdge=function(a,c,d,b,e,g){var f=e.m_vertexCount,l=e.m_vertices;e=e.m_normals; var t=d.R;c=c.m_normals[b];d=t.col1.x*c.x+t.col2.x*c.y;var p=t.col1.y*c.x+t.col2.y*c.y;t=g.R;c=t.col1.x*d+t.col1.y*p;p=t.col2.x*d+t.col2.y*p;d=c;t=0;for(var m=Number.MAX_VALUE,n=0;nf)){I.s_edgeBO[0]=0;var t=I.findMaxSeparation(I.s_edgeBO,b,e,c,d);var p= I.s_edgeBO[0];if(!(t>f)){t>.98*h+.001?(h=b,b=c,c=e,t=p,a.m_type=4,l=1):(h=c,c=d,d=e,t=l,a.m_type=2,l=0);p=I.s_incidentEdge;I.findIncidentEdge(p,h,c,t,b,d);b=h.m_vertices;e=b[t];var m=t+1p||(p=I.clipSegmentToLine(e,m,k,t),2>p))){p=a.m_localPlaneNormal;p.x=n.x;p.y=n.y; p=a.m_localPoint;p.x=b.x;p.y=b.y;b=p=0;for(n=fa.b2_maxManifoldPoints;bf*f||(a.m_type=1,e=a.m_localPoint,c=c.m_p,e.x=c.x,e.y=c.y,c=a.m_localPlaneNormal,c.x=0,c.y=0,a.m_pointCount=1,c=a.m_points[0].m_localPoint,b=b.m_p,c.x=b.x,c.y=b.y,a.m_points[0].m_id.set_key(0))};I.collidePolygonAndCircle=function(a,c,d,b,e){a.m_pointCount=0;var f=e.R,h=b.m_p,l=e.position.x+(f.col1.x*h.x+f.col2.x*h.y)-d.position.x,t=e.position.y+(f.col1.y*h.x+f.col2.y*h.y)-d.position.y; f=d.R;d=l*f.col1.x+t*f.col1.y;f=l*f.col2.x+t*f.col2.y;var p=0,m=-Number.MAX_VALUE;e=c.m_radius+b.m_radius;var n=c.m_vertexCount,k=c.m_vertices;c=c.m_normals;for(var q=0;qe)return;h>m&&(m=h,p=u)}l=p;h=k[l];n=k[l+1=(d-h.x)*(n.x- h.x)+(f-h.y)*(n.y-h.y)){if((d-h.x)*(d-h.x)+(f-h.y)*(f-h.y)>e*e)return;a.m_pointCount=1;a.m_type=2;a.m_localPlaneNormal.x=d-h.x;a.m_localPlaneNormal.y=f-h.y;a.m_localPlaneNormal.normalize();d=a.m_localPoint;d.x=h.x;d.y=h.y}else if(0>=m){if((d-n.x)*(d-n.x)+(f-n.y)*(f-n.y)>e*e)return;a.m_pointCount=1;a.m_type=2;a.m_localPlaneNormal.x=d-n.x;a.m_localPlaneNormal.y=f-n.y;a.m_localPlaneNormal.normalize();d=a.m_localPoint;d.x=n.x;d.y=n.y}else{p=.5*(h.x+n.x);h=.5*(h.y+n.y);m=(d-p)*c[l].x+(f-h)*c[l].y;if(m> e)return;a.m_pointCount=1;a.m_type=2;a.m_localPlaneNormal.x=c[l].x;a.m_localPlaneNormal.y=c[l].y;a.m_localPlaneNormal.normalize();d=a.m_localPoint;f=p;e=h;null==e&&(e=0);null==f&&(f=0);d.x=f;d.y=e}d=a.m_points[0].m_localPoint;b=b.m_p;d.x=b.x;d.y=b.y;a.m_points[0].m_id.set_key(0)};I.testOverlap=function(a,c){var d=c.lowerBound,b=a.upperBound,e=d.x-b.x,g=d.y-b.y;d=a.lowerBound;b=c.upperBound;a=d.y-b.y;return 0=a.count);this.m_count=a.count;var f=this.m_vertices;if(a.useCache){for(var h=0,l=this.m_count;h=a?this.m_count=this.m_v1.a=1:(c=c.x*d.x+c.y*d.y,0>=c?(this.m_count=this.m_v2.a=1,this.m_v1.set(this.m_v2)): (d=1/(c+a),this.m_v1.a=c*d,this.m_v2.a=a*d,this.m_count=2))},solve3:function(){var a=this.m_v1.w,c=this.m_v2.w,d=this.m_v3.w,b=O.subtractVVPooled(c,a),e=O.dot(a,b),g=O.dot(c,b);e=-e;var h=O.subtractVVPooled(d,a),l=O.dot(a,h),t=O.dot(d,h);l=-l;var p=O.subtractVVPooled(d,c),m=O.dot(c,p);p=O.dot(d,p);m=-m;h=O.crossVV(b,h);b=h*O.crossVV(c,d);d=h*O.crossVV(d,a);a=h*O.crossVV(a,c);0>=e&&0>=l?this.m_count=this.m_v1.a=1:0=a?(t=1/(g+e),this.m_v1.a=g*t,this.m_v2.a=e*t,this.m_count=2):0= d?(g=1/(t+l),this.m_v1.a=t*g,this.m_v3.a=l*g,this.m_count=2,this.m_v2.set(this.m_v3)):0>=g&&0>=m?(this.m_count=this.m_v2.a=1,this.m_v1.set(this.m_v2)):0>=t&&0>=p?(this.m_count=this.m_v3.a=1,this.m_v1.set(this.m_v3)):0=b?(g=1/(p+m),this.m_v2.a=p*g,this.m_v3.a=m*g,this.m_count=2,this.m_v1.set(this.m_v3)):(g=1/(b+d+a),this.m_v1.a=b*g,this.m_v2.a=d*g,this.m_v3.a=a*g,this.m_count=3)},m_v1:null,m_v2:null,m_v3:null,m_vertices:null,m_count:null,__class__:Ke};var Hd=function(){};k["box2D.collision.B2SimplexVertex"]= Hd;Hd.__name__="box2D.collision.B2SimplexVertex";Hd.prototype={set:function(a){var c=this.wA,d=a.wA;c.x=d.x;c.y=d.y;c=this.wB;d=a.wB;c.x=d.x;c.y=d.y;c=this.w;d=a.w;c.x=d.x;c.y=d.y;this.a=a.a;this.indexA=a.indexA;this.indexB=a.indexB},wA:null,wB:null,w:null,a:null,indexA:null,indexB:null,__class__:Hd};var Lc=function(){};k["box2D.collision.B2Distance"]=Lc;Lc.__name__="box2D.collision.B2Distance";Lc.distance=function(a,c,d){++Lc.b2_gjkCalls;var b=d.proxyA,e=d.proxyB,g=d.transformA,h=d.transformB,l= Lc.s_simplex;l.readCache(c,b,g,e,h);var t=l.m_vertices,p=Lc.s_saveA,m=Lc.s_saveB;l.getClosestPoint().lengthSquared();for(var n,k=0;20>k;){var q=l.m_count;n=0;for(var u=q;nc+e&&a.distance>Number.MIN_VALUE?(a.distance-=c+e,d=O.subtractVVPooled(a.pointB,a.pointA),d.normalize(),a.pointA.x+=c*d.x,a.pointA.y+=c*d.y,a.pointB.x-=e*d.x,a.pointB.y-=e*d.y):(n=M.getFromPool(),n.x=.5*(a.pointA.x+a.pointB.x),n.y=.5*(a.pointA.y+a.pointB.y),a.pointA.x=a.pointB.x=n.x,a.pointA.y=a.pointB.y=n.y,a.distance=0))};var Ee=function(){};k["box2D.collision.B2DistanceInput"]=Ee;Ee.__name__="box2D.collision.B2DistanceInput";Ee.prototype={proxyA:null,proxyB:null,transformA:null, transformB:null,useRadii:null,__class__:Ee};var vi=function(){this.pointA=new M;this.pointB=new M};k["box2D.collision.B2DistanceOutput"]=vi;vi.__name__="box2D.collision.B2DistanceOutput";vi.prototype={pointA:null,pointB:null,distance:null,iterations:null,__class__:vi};var Ed=function(){this.m_internalVertices=[]};k["box2D.collision.B2DistanceProxy"]=Ed;Ed.__name__="box2D.collision.B2DistanceProxy";Ed.prototype={set:function(a){switch(a.getType()){case 0:a=S.__cast(a,Xc);for(this.m_vertices=this.m_internalVertices;1< this.m_vertices.length;)this.m_vertices.pop();this.m_vertices[0]=a.m_p;this.m_count=1;this.m_radius=a.m_radius;break;case 1:a=S.__cast(a,Fb);this.m_vertices=a.m_vertices;this.m_count=a.m_vertexCount;this.m_radius=a.m_radius;break;case 2:a=S.__cast(a,Qg);for(this.m_vertices=this.m_internalVertices;2d&&(c=g,d=h)}return c},getSupportVertex:function(a){for(var c=0,d=this.m_vertices[0].x*a.x+this.m_vertices[0].y*a.y,b=1,e=this.m_count;bd&&(c=g,d=h)}return this.m_vertices[c]},getVertexCount:function(){return this.m_count},getVertex:function(a){fa.b2Assert(0<=a&&a>b&1)?d.child2:d.child1,b=b+1&31;++this.m_path;this.removeLeaf(d);this.insertLeaf(d)}},getFatAABB:function(a){return a.aabb},getUserData:function(a){return a.userData},stackQueuePos:null,stackQueue:null,query:function(a,c){if(null!=this.m_root){null==this.stackQueue[this.stackQueuePos]&&(this.stackQueue[this.stackQueuePos]=[]);var d= this.stackQueue[this.stackQueuePos++],b=0;for(d[b++]=this.m_root;0=this.m_pairCount)d=!1;else for(b=this.m_pairBuffer[c],a.addPair(this.m_tree.getUserData(b.proxyA),this.m_tree.getUserData(b.proxyB)),++c;cc);var f=new M,h=new M;if(1==c){this.m_type=Cf.e_points;f=this.m_proxyA.getVertex(a.indexA[0]); h=this.m_proxyB.getVertex(a.indexB[0]);var l=f;var t=d.R;f=d.position.x+(t.col1.x*l.x+t.col2.x*l.y);d=d.position.y+(t.col1.y*l.x+t.col2.y*l.y);l=h;t=e.R;h=e.position.x+(t.col1.x*l.x+t.col2.x*l.y);e=e.position.y+(t.col1.y*l.x+t.col2.y*l.y);this.m_axis.x=h-f;this.m_axis.y=e-d;this.m_axis.normalize()}else if(a.indexB[0]==a.indexB[1])this.m_type=Cf.e_faceA,c=this.m_proxyA.getVertex(a.indexA[0]),b=this.m_proxyA.getVertex(a.indexA[1]),h=this.m_proxyB.getVertex(a.indexB[0]),this.m_localPoint.x=.5*(c.x+b.x), this.m_localPoint.y=.5*(c.y+b.y),this.m_axis=O.crossVF(O.subtractVV(b,c),1),this.m_axis.normalize(),l=this.m_axis,t=d.R,c=t.col1.x*l.x+t.col2.x*l.y,b=t.col1.y*l.x+t.col2.y*l.y,l=this.m_localPoint,t=d.R,f=d.position.x+(t.col1.x*l.x+t.col2.x*l.y),d=d.position.y+(t.col1.y*l.x+t.col2.y*l.y),l=h,t=e.R,h=e.position.x+(t.col1.x*l.x+t.col2.x*l.y),e=e.position.y+(t.col1.y*l.x+t.col2.y*l.y),0>(h-f)*c+(e-d)*b&&(e=this.m_axis,e.x=-e.x,e.y=-e.y);else if(a.indexA[0]==a.indexA[0])this.m_type=Cf.e_faceB,t=this.m_proxyB.getVertex(a.indexB[0]), l=this.m_proxyB.getVertex(a.indexB[1]),f=this.m_proxyA.getVertex(a.indexA[0]),this.m_localPoint.x=.5*(t.x+l.x),this.m_localPoint.y=.5*(t.y+l.y),this.m_axis=O.crossVF(O.subtractVV(l,t),1),this.m_axis.normalize(),l=this.m_axis,t=e.R,c=t.col1.x*l.x+t.col2.x*l.y,b=t.col1.y*l.x+t.col2.y*l.y,l=this.m_localPoint,t=e.R,h=e.position.x+(t.col1.x*l.x+t.col2.x*l.y),e=e.position.y+(t.col1.y*l.x+t.col2.y*l.y),l=f,t=d.R,f=d.position.x+(t.col1.x*l.x+t.col2.x*l.y),d=d.position.y+(t.col1.y*l.x+t.col2.y*l.y),0>(f-h)* c+(d-e)*b&&(e=this.m_axis,e.x=-e.x,e.y=-e.y);else{c=this.m_proxyA.getVertex(a.indexA[0]);b=this.m_proxyA.getVertex(a.indexA[1]);t=this.m_proxyB.getVertex(a.indexB[0]);l=this.m_proxyB.getVertex(a.indexB[1]);O.mulX(d,f,!0);f=O.mulMV(d.R,O.subtractVVPooled(b,c),!0);O.mulX(e,h,!0);a=O.mulMV(e.R,O.subtractVVPooled(l,t),!0);e=f.x*f.x+f.y*f.y;d=a.x*a.x+a.y*a.y;var p=O.subtractVVPooled(a,f);h=f.x*p.x+f.y*p.y;p=a.x*p.x+a.y*p.y;f=f.x*a.x+f.y*a.y;var m=e*d-f*f;a=0;0!=m&&(a=O.clamp((f*p-h*d)/m,0,1));0>(f*a+p)/ d&&(a=O.clamp((f-h)/e,0,1));f=new M;f.x=c.x+a*(b.x-c.x);f.y=c.y+a*(b.y-c.y);h=new M;h.x=t.x+a*(l.x-t.x);h.y=t.y+a*(l.y-t.y);0==a||1==a?(this.m_type=Cf.e_faceB,this.m_axis=O.crossVF(O.subtractVV(l,t),1),this.m_axis.normalize(),this.m_localPoint=h):(this.m_type=Cf.e_faceA,this.m_axis=O.crossVF(O.subtractVV(b,c),1),this.m_localPoint=f);0>a&&(e=this.m_axis,e.x=-e.x,e.y=-e.y)}},evaluate:function(a,c){var d;if(this.m_type==Cf.e_points){var b=O.mulTMV(a.R,this.m_axis,!0);var e=O.mulTMV(c.R,this.m_axis.getNegativePooled(), !0);b=this.m_proxyA.getSupportVertex(b);e=this.m_proxyB.getSupportVertex(e);a=O.mulX(a,b,!0);c=O.mulX(c,e,!0);return d=(c.x-a.x)*this.m_axis.x+(c.y-a.y)*this.m_axis.y}if(this.m_type==Cf.e_faceA)return d=O.mulMV(a.R,this.m_axis,!0),a=O.mulX(a,this.m_localPoint,!0),e=O.mulTMV(c.R,d.getNegativePooled()),e=this.m_proxyB.getSupportVertex(e),c=O.mulX(c,e,!0),d=(c.x-a.x)*d.x+(c.y-a.y)*d.y;if(this.m_type==Cf.e_faceB)return d=O.mulMV(c.R,this.m_axis,!0),c=O.mulX(c,this.m_localPoint,!0),b=O.mulTMV(a.R,d.getNegativePooled(), !0),b=this.m_proxyA.getSupportVertex(b),a=O.mulX(a,b,!0),d=(a.x-c.x)*d.x+(a.y-c.y)*d.y;fa.b2Assert(!1);return 0},m_proxyA:null,m_proxyB:null,m_type:null,m_localPoint:null,m_axis:null,__class__:Cf};var am=function(){this.useCache=!1;this.indexA=[];this.indexB=[]};k["box2D.collision.B2SimplexCache"]=am;am.__name__="box2D.collision.B2SimplexCache";am.prototype={metric:null,count:null,indexA:null,indexB:null,useCache:null,__class__:am};var Ip=function(){this.proxyA=new Ed;this.proxyB=new Ed;this.sweepA= new Nh;this.sweepB=new Nh};k["box2D.collision.B2TOIInput"]=Ip;Ip.__name__="box2D.collision.B2TOIInput";Ip.prototype={proxyA:null,proxyB:null,sweepA:null,sweepB:null,tolerance:null,__class__:Ip};var tf=function(a,c){this.position=new M;this.R=new Mc;if(null!=a){var d=this.position;d.x=a.x;d.y=a.y;this.R.setM(c)}};k["box2D.common.math.B2Transform"]=tf;tf.__name__="box2D.common.math.B2Transform";tf.prototype={initialize:function(a,c){var d=this.position;d.x=a.x;d.y=a.y;this.R.setM(c)},setIdentity:function(){var a= this.position;a.x=0;a.y=0;this.R.setIdentity()},set:function(a){var c=this.position,d=a.position;c.x=d.x;c.y=d.y;this.R.setM(a.R)},getAngle:function(){return Math.atan2(this.R.col1.y,this.R.col1.x)},multiply:function(a){a=this.R.multiplyV(a);a.add(this.position);return a},position:null,R:null,__class__:tf};var Mc=function(){this.col1=new M(0,1);this.col2=new M(0,1)};k["box2D.common.math.B2Mat22"]=Mc;Mc.__name__="box2D.common.math.B2Mat22";Mc.fromAngle=function(a){var c=new Mc;c.set(a);return c};Mc.fromVV= function(a,c){var d=new Mc;d.setVV(a,c);return d};Mc.prototype={set:function(a){var c=Math.cos(a);a=Math.sin(a);this.col1.x=c;this.col2.x=-a;this.col1.y=a;this.col2.y=c},setVV:function(a,c){var d=this.col1;d.x=a.x;d.y=a.y;a=this.col2;a.x=c.x;a.y=c.y},copy:function(){var a=new Mc;a.setM(this);return a},setM:function(a){var c=this.col1,d=a.col1;c.x=d.x;c.y=d.y;c=this.col2;a=a.col2;c.x=a.x;c.y=a.y},addM:function(a){this.col1.x+=a.col1.x;this.col1.y+=a.col1.y;this.col2.x+=a.col2.x;this.col2.y+=a.col2.y}, multiplyV:function(a){return new M(this.col1.x*a.x+this.col2.x*a.y,this.col1.y*a.x+this.col2.y*a.y)},setIdentity:function(){this.col1.x=1;this.col2.x=0;this.col1.y=0;this.col2.y=1},setZero:function(){this.col1.x=0;this.col2.x=0;this.col1.y=0;this.col2.y=0},setAngle:function(a){this.col1.x=Math.cos(a);this.col1.y=Math.sin(a);this.col2.x=-this.col1.y;this.col2.y=this.col1.x},getAngle:function(){return Math.atan2(this.col1.y,this.col1.x)},getInverse:function(a){var c=this.col1.x,d=this.col2.x,b=this.col1.y, e=this.col2.y,g=c*e-d*b;0!=g&&(g=1/g);a.col1.x=g*e;a.col2.x=-g*d;a.col1.y=-g*b;a.col2.y=g*c;return a},solve:function(a,c,d){var b=this.col1.x,e=this.col2.x,g=this.col1.y,h=this.col2.y,l=b*h-e*g;0!=l&&(l=1/l);a.x=l*(h*c-e*d);a.y=l*(b*d-g*c);return a},abs:function(){this.col1.abs();this.col2.abs()},col1:null,col2:null,__class__:Mc};var Ob=function(){};k["box2D.collision.B2TimeOfImpact"]=Ob;Ob.__name__="box2D.collision.B2TimeOfImpact";Ob.timeOfImpact=function(a){++Ob.b2_toiCalls;var c=a.proxyA,d=a.proxyB, b=a.sweepA,e=a.sweepB;fa.b2Assert(b.t0==e.t0);fa.b2Assert(1-b.t0>Number.MIN_VALUE);var g=c.m_radius+d.m_radius;a=a.tolerance;var h=0,l=0,t=0;Ob.s_cache.count=0;for(Ob.s_distanceInput.useRadii=!1;;){b.getTransform(Ob.s_xfA,h);e.getTransform(Ob.s_xfB,h);Ob.s_distanceInput.proxyA=c;Ob.s_distanceInput.proxyB=d;Ob.s_distanceInput.transformA=Ob.s_xfA;Ob.s_distanceInput.transformB=Ob.s_xfB;Lc.distance(Ob.s_distanceOutput,Ob.s_cache,Ob.s_distanceInput);if(0>=Ob.s_distanceOutput.distance){h=1;break}Ob.s_fcn.initialize(Ob.s_cache, c,Ob.s_xfA,d,Ob.s_xfB);var p=Ob.s_fcn.evaluate(Ob.s_xfA,Ob.s_xfB);if(0>=p){h=1;break}0==l&&(t=p>g?O.max(g-a,.75*g):O.max(p-a,.02*g));if(p-t<.5*a){if(0==l){h=1;break}break}var m=h,n=h,k=1;b.getTransform(Ob.s_xfA,k);e.getTransform(Ob.s_xfB,k);var q=Ob.s_fcn.evaluate(Ob.s_xfA,Ob.s_xfB);if(q>=t){h=1;break}for(var u=0;;){var tb=0!=(u&1)?n+(t-p)*(k-n)/(q-p):.5*(n+k);b.getTransform(Ob.s_xfA,tb);e.getTransform(Ob.s_xfB,tb);var v=Ob.s_fcn.evaluate(Ob.s_xfA,Ob.s_xfB);if(O.abs(v-t)<.025*a){m=tb;break}v>t?(n= tb,p=v):(k=tb,q=v);++u;++Ob.b2_toiRootIters;if(50==u)break}Ob.b2_toiMaxRootIters=O.max(Ob.b2_toiMaxRootIters,u)|0;if(m<(1+100*Number.MIN_VALUE)*h)break;h=m;++l;++Ob.b2_toiIters;if(1E3==l)break}Ob.b2_toiMaxIters=O.max(Ob.b2_toiMaxIters,l)|0;return h};var Ck=function(){this.m_normal=new M;this.m_points=[];for(var a=0,c=fa.b2_maxManifoldPoints;aNumber.MIN_VALUE*Number.MIN_VALUE?(t=Math.sqrt(t),this.m_normal.x=f/t,this.m_normal.y=h/t):(this.m_normal.x=1,this.m_normal.y=0);f=c+d*this.m_normal.y;b-=e*this.m_normal.y;this.m_points[0].x=.5*(l+d*this.m_normal.x+(a-e*this.m_normal.x));this.m_points[0].y=.5*(f+b);break;case 2:h=c.R;f=a.m_localPlaneNormal;l=h.col1.x*f.x+h.col2.x*f.y;t=h.col1.y*f.x+h.col2.y*f.y;h=c.R;f=a.m_localPoint;var p=c.position.x+h.col1.x*f.x+h.col2.x*f.y;var m=c.position.y+h.col1.y* f.x+h.col2.y*f.y;this.m_normal.x=l;this.m_normal.y=t;c=0;for(var n=a.m_pointCount;ct||lthis.m_radius)return b.x=d.x,b.y=d.y,Math.PI*this.m_radius*this.m_radius;c=this.m_radius*this.m_radius;var g=f*f;f=c*(Math.asin(f/this.m_radius)+Math.PI/2)+f*Math.sqrt(c-g);c=-.6666666666666666*Math.pow(c-g,1.5)/f;b.x=d.x+a.x*c;b.y=d.y+a.y*c;return f},getLocalPosition:function(){return this.m_p},setLocalPosition:function(a){var c=this.m_p;c.x=a.x;c.y=a.y},getRadius:function(){return this.m_radius}, setRadius:function(a){this.m_radius=a},m_p:null,__class__:Xc});var Qg=function(a,c){bc.call(this);this.s_supportVec=new M;new M;new M;this.m_v0=new M;this.m_v3=new M;this.m_hasVertex3=this.m_hasVertex0=!1;this.m_coreV1=new M;this.m_coreV2=new M;this.m_normal=new M;this.m_direction=new M;this.m_cornerDir1=new M;this.m_cornerDir2=new M;this.m_type=2;this.m_nextEdge=this.m_prevEdge=null;this.m_v1=a;this.m_v2=c;a=this.m_direction;c=this.m_v2.x-this.m_v1.x;var d=this.m_v2.y-this.m_v1.y;null==d&&(d=0); null==c&&(c=0);a.x=c;a.y=d;this.m_length=this.m_direction.normalize();a=this.m_normal;c=this.m_direction.y;d=-this.m_direction.x;null==d&&(d=0);null==c&&(c=0);a.x=c;a.y=d;a=this.m_coreV1;c=-fa.b2_toiSlop*(this.m_normal.x-this.m_direction.x)+this.m_v1.x;d=-fa.b2_toiSlop*(this.m_normal.y-this.m_direction.y)+this.m_v1.y;null==d&&(d=0);null==c&&(c=0);a.x=c;a.y=d;a=this.m_coreV2;c=-fa.b2_toiSlop*(this.m_normal.x+this.m_direction.x)+this.m_v2.x;d=-fa.b2_toiSlop*(this.m_normal.y+this.m_direction.y)+this.m_v2.y; null==d&&(d=0);null==c&&(c=0);a.x=c;a.y=d;this.m_cornerDir1=this.m_normal;a=this.m_cornerDir2;c=-this.m_normal.x;d=-this.m_normal.y;null==d&&(d=0);null==c&&(c=0);a.x=c;a.y=d};k["box2D.collision.shapes.B2EdgeShape"]=Qg;Qg.__name__="box2D.collision.shapes.B2EdgeShape";Qg.__super__=bc;Qg.prototype=r(bc.prototype,{testPoint:function(a,c){return!1},rayCast:function(a,c,d){var b=c.p2.x-c.p1.x,e=c.p2.y-c.p1.y,g=d.R,h=d.position.x+(g.col1.x*this.m_v1.x+g.col2.x*this.m_v1.y),l=d.position.y+(g.col1.y*this.m_v1.x+ g.col2.y*this.m_v1.y),t=d.position.y+(g.col1.y*this.m_v2.x+g.col2.y*this.m_v2.y)-l;d=-(d.position.x+(g.col1.x*this.m_v2.x+g.col2.x*this.m_v2.y)-h);g=100*Number.MIN_VALUE;var p=-(b*t+e*d);if(p>g){h=c.p1.x-h;var m=c.p1.y-l;l=h*t+m*d;if(0<=l&&l<=c.maxFraction*p&&(c=-b*m+e*h,-g*p<=c&&c<=p*(1+g)))return a.fraction=l/p,c=Math.sqrt(t*t+d*d),a.normal.x=t/c,a.normal.y=d/c,!0}return!1},computeAABB:function(a,c){var d=c.R,b=c.position.x+(d.col1.x*this.m_v1.x+d.col2.x*this.m_v1.y),e=c.position.y+(d.col1.y*this.m_v1.x+ d.col2.y*this.m_v1.y),g=c.position.x+(d.col1.x*this.m_v2.x+d.col2.x*this.m_v2.y);c=c.position.y+(d.col1.y*this.m_v2.x+d.col2.y*this.m_v2.y);bh*c+a*d?(this.s_supportVec.x=e,this.s_supportVec.y=g):(this.s_supportVec.x=h,this.s_supportVec.y=a);return this.s_supportVec}, copy:function(){var a=new Qg(this.m_v1,this.m_v2);a.set(this);var c=S.__cast(a,Qg),d=c.m_v0,b=this.m_v0;d.x=b.x;d.y=b.y;d=c.m_v3;b=this.m_v3;d.x=b.x;d.y=b.y;c.m_hasVertex0=this.m_hasVertex0;c.m_hasVertex3=this.m_hasVertex3;return a},setPrevEdge:function(a,c,d,b){this.m_prevEdge=a;this.m_coreV1=c;this.m_cornerDir1=d;this.m_cornerConvex1=b},setNextEdge:function(a,c,d,b){this.m_nextEdge=a;this.m_coreV2=c;this.m_cornerDir2=d;this.m_cornerConvex2=b},m_v1:null,m_v2:null,m_v0:null,m_v3:null,m_hasVertex0:null, m_hasVertex3:null,m_coreV1:null,m_coreV2:null,m_length:null,m_normal:null,m_direction:null,m_cornerDir1:null,m_cornerDir2:null,m_cornerConvex1:null,m_cornerConvex2:null,m_nextEdge:null,m_prevEdge:null,__class__:Qg});var Dk=function(){this.mass=0;this.center=new M(0,0);this.I=0};k["box2D.collision.shapes.B2MassData"]=Dk;Dk.__name__="box2D.collision.shapes.B2MassData";Dk.prototype={mass:null,center:null,I:null,__class__:Dk};var Fb=function(){bc.call(this);this.m_type=1;this.m_centroid=new M;this.m_vertices= [];this.m_normals=[]};k["box2D.collision.shapes.B2PolygonShape"]=Fb;Fb.__name__="box2D.collision.shapes.B2PolygonShape";Fb.asArray=function(a,c){var d=new Fb;d.setAsArray(a,c);return d};Fb.asVector=function(a,c){var d=new Fb;d.setAsVector(a,c);return d};Fb.asBox=function(a,c){var d=new Fb;d.setAsBox(a,c);return d};Fb.asOrientedBox=function(a,c,d,b){null==b&&(b=0);var f=new Fb;f.setAsOrientedBox(a,c,d,b);return f};Fb.asEdge=function(a,c){var d=new Fb;d.setAsEdge(a,c);return d};Fb.computeCentroid=function(a, c){for(var d=new M,b=0,e=0;eq&&(q=w);r>u&&(u=r)}tb=(q-h)*(u-k);tb<.95*c&&(c=tb,a.R.col1.x=t,a.R.col1.y=p,a.R.col2.x=m,a.R.col2.y=n,t=.5*(h+q),p=.5*(k+u),m=a.R,a.center.x=l.x+(m.col1.x*t+m.col2.x*p),a.center.y=l.y+(m.col1.y*t+m.col2.y*p),a.extents.x=.5*(q-h),a.extents.y=.5*(u-k))}};Fb.__super__=bc;Fb.prototype=r(bc.prototype,{copy:function(){var a=new Fb;a.set(this);return a},set:function(a){bc.prototype.set.call(this,a);if(a instanceof Fb){a=S.__cast(a,Fb);var c=this.m_centroid,d=a.m_centroid;c.x=d.x;c.y=d.y;this.m_vertexCount=a.m_vertexCount;this.reserve(this.m_vertexCount);c=0;for(d=this.m_vertexCount;cNumber.MIN_VALUE),e=this.m_normals[d],b=O.crossVF(b,1),e.x=b.x,e.y=b.y,this.m_normals[d].normalize();this.m_centroid=Fb.computeCentroid(this.m_vertices,this.m_vertexCount)},setAsBox:function(a,c){this.m_vertexCount=4;this.reserve(4); var d=this.m_vertices[0],b=-a,e=-c;null==e&&(e=0);null==b&&(b=0);d.x=b;d.y=e;d=this.m_vertices[1];b=a;e=-c;null==e&&(e=0);null==b&&(b=0);d.x=b;d.y=e;d=this.m_vertices[2];b=a;e=c;null==e&&(e=0);null==b&&(b=0);d.x=b;d.y=e;d=this.m_vertices[3];a=-a;null==c&&(c=0);null==a&&(a=0);d.x=a;d.y=c;c=this.m_normals[0];a=0;d=-1;null==d&&(d=0);null==a&&(a=0);c.x=a;c.y=d;c=this.m_normals[1];a=1;d=0;null==d&&(d=0);null==a&&(a=0);c.x=a;c.y=d;c=this.m_normals[2];a=0;d=1;null==d&&(d=0);null==a&&(a=0);c.x=a;c.y=d;c= this.m_normals[3];a=-1;d=0;null==d&&(d=0);null==a&&(a=0);c.x=a;c.y=d;c=this.m_centroid;c.x=0;c.y=0},setAsOrientedBox:function(a,c,d,b){null==b&&(b=0);this.m_vertexCount=4;this.reserve(4);var f=this.m_vertices[0],g=-a,h=-c;null==h&&(h=0);null==g&&(g=0);f.x=g;f.y=h;f=this.m_vertices[1];g=a;h=-c;null==h&&(h=0);null==g&&(g=0);f.x=g;f.y=h;f=this.m_vertices[2];g=a;h=c;null==h&&(h=0);null==g&&(g=0);f.x=g;f.y=h;f=this.m_vertices[3];a=-a;null==c&&(c=0);null==a&&(a=0);f.x=a;f.y=c;c=this.m_normals[0];a=0;f= -1;null==f&&(f=0);null==a&&(a=0);c.x=a;c.y=f;c=this.m_normals[1];a=1;f=0;null==f&&(f=0);null==a&&(a=0);c.x=a;c.y=f;c=this.m_normals[2];a=0;f=1;null==f&&(f=0);null==a&&(a=0);c.x=a;c.y=f;c=this.m_normals[3];a=-1;f=0;null==f&&(f=0);null==a&&(a=0);c.x=a;c.y=f;this.m_centroid=d;c=new tf;c.position=d;c.R.set(b);d=0;for(b=this.m_vertexCount;dg)return!1}else 0>u&&gm?h:m;l=l>b?l:b}a.lowerBound.x=e-this.m_radius;a.lowerBound.y=g-this.m_radius;a.upperBound.x=h+this.m_radius;a.upperBound.y=l+this.m_radius},computeMass:function(a,c){if(2==this.m_vertexCount)a.center.x=.5*(this.m_vertices[0].x+this.m_vertices[1].x),a.center.y=.5*(this.m_vertices[0].y+this.m_vertices[1].y),a.mass=0,a.I=0;else{for(var d=0,b=0,e=0,g=0,h=0,l=this.m_vertexCount;hd&&(c=g,d=h)}return c},getSupportVertex:function(a){for(var c=0,d=this.m_vertices[0].x*a.x+this.m_vertices[0].y*a.y,b=1,e=this.m_vertexCount;bd&&(c=g,d=h)}return this.m_vertices[c]},validate:function(){return!1},reserve:function(a){for(var c=this.m_vertices.length;cc?a:c};fa.b2Assert=function(a){if(!a)throw new F("Assertion Failed"); };var wi=function(a,c,d){this.col1=new uf;this.col2=new uf;this.col3=new uf;null==a&&null==c&&null==d?(this.col1.setZero(),this.col2.setZero(),this.col3.setZero()):(this.col1.setV(a),this.col2.setV(c),this.col3.setV(d))};k["box2D.common.math.B2Mat33"]=wi;wi.__name__="box2D.common.math.B2Mat33";wi.prototype={setVVV:function(a,c,d){this.col1.setV(a);this.col2.setV(c);this.col3.setV(d)},copy:function(){return new wi(this.col1,this.col2,this.col3)},setM:function(a){this.col1.setV(a.col1);this.col2.setV(a.col2); this.col3.setV(a.col3)},addM:function(a){this.col1.x+=a.col1.x;this.col1.y+=a.col1.y;this.col1.z+=a.col1.z;this.col2.x+=a.col2.x;this.col2.y+=a.col2.y;this.col2.z+=a.col2.z;this.col3.x+=a.col3.x;this.col3.y+=a.col3.y;this.col3.z+=a.col3.z},setIdentity:function(){this.col1.x=1;this.col2.x=0;this.col3.x=0;this.col1.y=0;this.col2.y=1;this.col3.y=0;this.col1.z=0;this.col2.z=0;this.col3.z=1},setZero:function(){this.col1.x=0;this.col2.x=0;this.col3.x=0;this.col1.y=0;this.col2.y=0;this.col3.y=0;this.col1.z= 0;this.col2.z=0;this.col3.z=0},solve22:function(a,c,d){var b=this.col1.x,e=this.col2.x,g=this.col1.y,h=this.col2.y,l=b*h-e*g;0!=l&&(l=1/l);a.x=l*(h*c-e*d);a.y=l*(b*d-g*c);return a},solve33:function(a,c,d,b){var f=this.col1.x,g=this.col1.y,h=this.col1.z,l=this.col2.x,t=this.col2.y,p=this.col2.z,m=this.col3.x,n=this.col3.y,k=this.col3.z,q=f*(t*k-p*n)+g*(p*m-l*k)+h*(l*n-t*m);0!=q&&(q=1/q);a.x=q*(c*(t*k-p*n)+d*(p*m-l*k)+b*(l*n-t*m));a.y=q*(f*(d*k-b*n)+g*(b*m-c*k)+h*(c*n-d*m));a.z=q*(f*(t*b-p*d)+g*(p* c-l*b)+h*(l*d-t*c));return a},col1:null,col2:null,col3:null,__class__:wi};var O=function(){};k["box2D.common.math.B2Math"]=O;O.__name__="box2D.common.math.B2Math";O.__properties__={get_MIN_VALUE:"get_MIN_VALUE",get_MAX_VALUE:"get_MAX_VALUE"};O.isValid=function(a){return isNaN(a)||-Infinity==a||Infinity==a?!1:!0};O.dot=function(a,c){return a.x*c.x+a.y*c.y};O.crossVV=function(a,c){return a.x*c.y-a.y*c.x};O.crossVF=function(a,c,d){null==d&&(d=!1);if(d){d=M.getFromPool();var b=c*a.y;a=-c*a.x;null==a&& (a=0);null==b&&(b=0);d.x=b;d.y=a}else d=new M(c*a.y,-c*a.x);return d};O.crossFV=function(a,c,d){null==d&&(d=!1);if(d){d=M.getFromPool();var b=-a*c.y;a*=c.x;null==a&&(a=0);null==b&&(b=0);d.x=b;d.y=a}else d=new M(-a*c.y,a*c.x);return d};O.mulMV=function(a,c,d){null==d&&(d=!1);if(d){d=M.getFromPool();var b=a.col1.x*c.x+a.col2.x*c.y;a=a.col1.y*c.x+a.col2.y*c.y;null==a&&(a=0);null==b&&(b=0);d.x=b;d.y=a}else d=new M(a.col1.x*c.x+a.col2.x*c.y,a.col1.y*c.x+a.col2.y*c.y);return d};O.mulTMV=function(a,c,d){null== d&&(d=!1);if(d){d=M.getFromPool();var b=O.dot(c,a.col1);a=O.dot(c,a.col2);null==a&&(a=0);null==b&&(b=0);d.x=b;d.y=a}else d=new M(O.dot(c,a.col1),O.dot(c,a.col2));return d};O.mulX=function(a,c,d){null==d&&(d=!1);c=O.mulMV(a.R,c,d);c.x+=a.position.x;c.y+=a.position.y;return c};O.mulXT=function(a,c,d){c=O.subtractVVPooled(c,a.position);d=c.x*a.R.col1.x+c.y*a.R.col1.y;c.y=c.x*a.R.col2.x+c.y*a.R.col2.y;c.x=d;return c};O.addVV=function(a,c){return new M(a.x+c.x,a.y+c.y)};O.subtractVV=function(a,c){return new M(a.x- c.x,a.y-c.y)};O.subtractVVPooled=function(a,c){var d=M.getFromPool(),b=a.x-c.x;a=a.y-c.y;null==a&&(a=0);null==b&&(b=0);d.x=b;d.y=a;return d};O.distance=function(a,c){var d=a.x-c.x;a=a.y-c.y;return Math.sqrt(d*d+a*a)};O.distanceSquared=function(a,c){var d=a.x-c.x;a=a.y-c.y;return d*d+a*a};O.mulFV=function(a,c){return new M(a*c.x,a*c.y)};O.addMM=function(a,c){return Mc.fromVV(O.addVV(a.col1,c.col1),O.addVV(a.col2,c.col2))};O.mulMM=function(a,c){return Mc.fromVV(O.mulMV(a,c.col1),O.mulMV(a,c.col2))}; O.mulTMM=function(a,c){var d=new M(O.dot(a.col1,c.col1),O.dot(a.col2,c.col1));a=new M(O.dot(a.col1,c.col2),O.dot(a.col2,c.col2));return Mc.fromVV(d,a)};O.abs=function(a){return 0c?a:c};O.maxV=function(a,c){return new M(O.max(a.x,c.x),O.max(a.y, c.y))};O.clamp=function(a,c,d){return ad?d:a};O.clampV=function(a,c,d){return O.maxV(c,O.minV(a,d))};O.swap=function(a,c){var d=a[0];a[0]=c[0];c[0]=d};O.random=function(){return 2*Math.random()-1};O.randomRange=function(a,c){return(c-a)*Math.random()+a};O.nextPowerOfTwo=function(a){a|=a>>1&2147483647;a|=a>>2&1073741823;a|=a>>4&268435455;a|=a>>8&16777215;return(a|a>>16&65535)+1};O.isPowerOfTwo=function(a){return 0Number.MIN_VALUE){var c=(a-this.t0)/(1-this.t0);this.c0.x=(1-c)*this.c0.x+c*this.c.x;this.c0.y=(1-c)*this.c0.y+c*this.c.y; this.a0=(1-c)*this.a0+c*this.a;this.t0=a}},localCenter:null,c0:null,c:null,a0:null,a:null,t0:null,__class__:Nh};var uf=function(a,c,d){null==d&&(d=0);null==c&&(c=0);null==a&&(a=0);this.x=a;this.y=c;this.z=d};k["box2D.common.math.B2Vec3"]=uf;uf.__name__="box2D.common.math.B2Vec3";uf.prototype={setZero:function(){this.x=this.y=this.z=0},set:function(a,c,d){this.x=a;this.y=c;this.z=d},setV:function(a){this.x=a.x;this.y=a.y;this.z=a.z},getNegative:function(){return new uf(-this.x,-this.y,-this.z)},negativeSelf:function(){this.x= -this.x;this.y=-this.y;this.z=-this.z},copy:function(){return new uf(this.x,this.y,this.z)},add:function(a){this.x+=a.x;this.y+=a.y;this.z+=a.z},subtract:function(a){this.x-=a.x;this.y-=a.y;this.z-=a.z},multiply:function(a){this.x*=a;this.y*=a;this.z*=a},x:null,y:null,z:null,__class__:uf};var va=function(a,c){this.m_xf=new tf;this.m_sweep=new Nh;this.m_linearVelocity=new M;this.m_force=new M;this.m_flags=0;a.bullet&&(this.m_flags|=va.e_bulletFlag);a.fixedRotation&&(this.m_flags|=va.e_fixedRotationFlag); a.allowSleep&&(this.m_flags|=va.e_allowSleepFlag);a.awake&&(this.m_flags|=va.e_awakeFlag);a.active&&(this.m_flags|=va.e_activeFlag);a.ignoreGravity&&(this.m_flags|=va.e_ignoreGravityFlag);this.m_world=c;c=this.m_xf.position;var d=a.position;c.x=d.x;c.y=d.y;this.m_xf.R.set(a.angle);c=this.m_sweep.localCenter;c.x=0;c.y=0;this.m_sweep.t0=1;this.m_sweep.a0=this.m_sweep.a=a.angle;c=this.m_xf.R;d=this.m_sweep.localCenter;this.m_sweep.c.x=c.col1.x*d.x+c.col2.x*d.y;this.m_sweep.c.y=c.col1.y*d.x+c.col2.y* d.y;this.m_sweep.c.x+=this.m_xf.position.x;this.m_sweep.c.y+=this.m_xf.position.y;c=this.m_sweep.c0;d=this.m_sweep.c;c.x=d.x;c.y=d.y;this.m_contactList=this.m_controllerList=this.m_jointList=null;this.m_controllerCount=0;this.m_next=this.m_prev=null;c=this.m_linearVelocity;d=a.linearVelocity;c.x=d.x;c.y=d.y;this.m_angularVelocity=a.angularVelocity;this.m_linearDamping=a.linearDamping;this.m_angularDamping=a.angularDamping;c=this.m_force;var b=d=0;null==b&&(b=0);null==d&&(d=0);c.x=d;c.y=b;this.m_sleepTime= this.m_torque=0;this.m_type=a.type;this.m_invMass=this.m_type==va.b2_dynamicBody?this.m_mass=1:this.m_mass=0;this.m_invI=this.m_I=0;this.m_inertiaScale=a.inertiaScale;this.m_userData=a.userData;this.m_fixtureList=null;this.m_fixtureCount=0;this.groupID=a.groupID;this.origin=new M;this.size=new M};k["box2D.dynamics.B2Body"]=va;va.__name__="box2D.dynamics.B2Body";va.prototype={connectEdges:function(a,c,d){var b=Math.atan2(c.getDirectionVector().y,c.getDirectionVector().x);d=O.mulFV(Math.tan(.5*(b-d)), c.getDirectionVector());d=O.subtractVV(d,c.getNormalVector());d=O.mulFV(fa.b2_toiSlop,d);d=O.addVV(d,c.getVertex1());var e=O.addVV(a.getDirectionVector(),c.getDirectionVector());e.normalize();var g=0=this.m_mass&&(this.m_mass=1);this.m_invMass=1/this.m_mass;0fa.b2_maxTranslationSquared&&(b.m_linearVelocity.normalize(),b.m_linearVelocity.x=b.m_linearVelocity.x*fa.b2_maxTranslation*a.inv_dt,b.m_linearVelocity.y=b.m_linearVelocity.y*fa.b2_maxTranslation*a.inv_dt),h=a.dt*b.m_angularVelocity,h*h>fa.b2_maxRotationSquared&& (b.m_angularVelocity=0>b.m_angularVelocity?-fa.b2_maxRotation*a.inv_dt:fa.b2_maxRotation*a.inv_dt),h=b.m_sweep.c0,l=b.m_sweep.c,h.x=l.x,h.y=l.y,b.m_sweep.a0=b.m_sweep.a,b.m_sweep.c.x+=a.dt*b.m_linearVelocity.x,b.m_sweep.c.y+=a.dt*b.m_linearVelocity.y,b.m_sweep.a+=a.dt*b.m_angularVelocity,b.synchronizeTransform());e=0;for(g=a.positionIterations;ee||O.dot(b.m_linearVelocity,b.m_linearVelocity)>c?d=b.m_sleepTime=0:(b.m_sleepTime+=a.dt,d= O.min(d,b.m_sleepTime)));if(d>=fa.b2_timeToSleep)for(a=0,d=this.m_bodyCount;afa.b2_maxTranslationSquared&&(e.m_linearVelocity.normalize(),e.m_linearVelocity.x=e.m_linearVelocity.x*fa.b2_maxTranslation*a.inv_dt,e.m_linearVelocity.y=e.m_linearVelocity.y*fa.b2_maxTranslation*a.inv_dt),g=a.dt*e.m_angularVelocity,g*g>fa.b2_maxRotationSquared&&(e.m_angularVelocity=0>e.m_angularVelocity?-fa.b2_maxRotation*a.inv_dt:fa.b2_maxRotation* a.inv_dt),g=e.m_sweep.c0,h=e.m_sweep.c,g.x=h.x,g.y=h.y,e.m_sweep.a0=e.m_sweep.a,e.m_sweep.c.x+=a.dt*e.m_linearVelocity.x,e.m_sweep.c.y+=a.dt*e.m_linearVelocity.y,e.m_sweep.a+=a.dt*e.m_angularVelocity,e.synchronizeTransform());d=0;for(a=a.positionIterations;d=this.m_aabb.lowerBound.x&&e.m_xf.position.y+e.origin.y+e.size.y>=this.m_aabb.lowerBound.y&&e.m_xf.position.x+e.origin.x<=this.m_aabb.upperBound.x&&e.m_xf.position.y+e.origin.y<=this.m_aabb.upperBound.y&&(e.setActive(!0),e.setAwake(!0)),0!=e.isAwake()&&0!=e.isActive()&&!e.isPaused()&&e.getType()!=va.b2_staticBody))if(e.isActive()&&!e.isAlwaysActive()&&(e.m_xf.position.x+e.origin.x+e.size.xthis.m_aabb.upperBound.x||e.m_xf.position.y+e.origin.y>this.m_aabb.upperBound.y))e.setAwake(!1),e.setActive(!1);else{d.clear();var g=0;c[g++]=e;for(e.m_flags|=va.e_islandFlag;0=h);0h&&(h=(1-h)*t+h,1Number.MIN_VALUE*Number.MIN_VALUE?(l=Math.sqrt(l),this.m_normal.x=d/l,this.m_normal.y=h/l):(this.m_normal.x=1,this.m_normal.y=0);this.m_points[0].x=.5*(b+g);this.m_points[0].y=.5*(e+c);this.m_separations[0]=d*this.m_normal.x+h*this.m_normal.y-a.radius;break;case 2:c=a.bodyA.m_xf.R;d=a.localPlaneNormal;this.m_normal.x=c.col1.x*d.x+c.col2.x*d.y;this.m_normal.y=c.col1.y*d.x+c.col2.y*d.y;c=a.bodyA.m_xf.R;d=a.localPoint;b=a.bodyA.m_xf.position.x+ (c.col1.x*d.x+c.col2.x*d.y);e=a.bodyA.m_xf.position.y+(c.col1.y*d.x+c.col2.y*d.y);c=a.bodyB.m_xf.R;h=0;for(l=a.pointCount;h-1.5*fa.b2_linearSlop},m_step:null,m_allocator:null,m_constraints:null,m_constraintCount:null,__class__:cf};var Va=function(){eb.call(this)};k["box2D.dynamics.contacts.B2EdgeAndCircleContact"]=Va;Va.__name__="box2D.dynamics.contacts.B2EdgeAndCircleContact";Va.create=function(a){return new Va};Va.destroy=function(a,c){};Va.__super__=eb;Va.prototype=r(eb.prototype,{m_v0:null, m_v1:null,m_v2:null,m_v3:null,reset:function(a,c){eb.prototype.reset.call(this,a,c)},evaluate:function(){var a=this.m_fixtureA.getBody(),c=this.m_fixtureB.getBody();this.b2CollideEdgeAndCircle(this.m_manifold,S.__cast(this.m_fixtureA.getShape(),Qg),a.m_xf,S.__cast(this.m_fixtureB.getShape(),Xc),c.m_xf)},b2CollideEdgeAndCircle:function(a,c,d,b,e){a.m_pointCount=0;this.multiplyTransformVector(e,b.m_p,Va.temp1);e=Va.q;d=O.mulXT(d,Va.temp1);e.x=d.x;e.y=d.y;this.m_v0=c.m_v0;this.m_v1=c.m_v1;this.m_v2= c.m_v2;this.m_v3=c.m_v3;d=Va.e;e=this.m_v2.x-this.m_v1.x;var f=this.m_v2.y-this.m_v1.y;null==f&&(f=0);null==e&&(e=0);d.x=e;d.y=f;d=Va.temp1;e=this.m_v2.x-Va.q.x;f=this.m_v2.y-Va.q.y;null==f&&(f=0);null==e&&(e=0);d.x=e;d.y=f;e=O.dot(Va.e,Va.temp1);d=Va.temp1;f=Va.q.x-this.m_v1.x;var h=Va.q.y-this.m_v1.y;null==h&&(h=0);null==f&&(f=0);d.x=f;d.y=h;f=O.dot(Va.e,Va.temp1);d=c.m_radius+b.m_radius;if(0>=f){if(e=Va.p,f=this.m_v1,e.x=f.x,e.y=f.y,e=Va.temp1,f=Va.q.x-Va.p.x,h=Va.q.y-Va.p.y,null==h&&(h=0),null== f&&(f=0),e.x=f,e.y=h,!(O.dot(Va.temp1,Va.temp1)>d*d)){if(c.m_hasVertex0&&(c=Va.temp1,d=this.m_v1.x-this.m_v0.x,e=this.m_v1.y-this.m_v0.y,null==e&&(e=0),null==d&&(d=0),c.x=d,c.y=e,c=Va.temp2,d=this.m_v1.x-Va.q.x,e=this.m_v1.y-Va.q.y,null==e&&(e=0),null==d&&(d=0),c.x=d,c.y=e,0=e){if(e=Va.p,f=this.m_v2,e.x=f.x,e.y=f.y,e=Va.temp1,f=Va.q.x-Va.p.x,h=Va.q.y-Va.p.y,null==h&&(h=0),null==f&&(f=0),e.x=f,e.y=h,!(O.dot(Va.temp1,Va.temp1)>d*d)){if(c.m_hasVertex3&&(c=Va.temp1,d=this.m_v3.x-this.m_v2.x,e=this.m_v3.y-this.m_v2.y,null==e&&(e=0),null==d&&(d=0),c.x=d,c.y=e,c=Va.temp2,d=Va.q.x-this.m_v2.x,e=Va.q.y-this.m_v2.y,null==e&&(e=0),null==d&&(d=0),c.x=d,c.y=e,0d*d||(c=Va.temp1,d=-Va.e.y,e=Va.e.x,null==e&&(e=0),null==d&&(d=0),c.x=d,c.y=e,c=Va.temp2,d=Va.q.x-this.m_v1.x,e=Va.q.y-this.m_v1.y,null==e&&(e=0),null==d&&(d=0),c.x=d,c.y=e,0>O.dot(Va.temp1,Va.temp2)&&(c=Va.temp1,c.x=-c.x,c.y=-c.y),Va.temp1.normalize(),a.m_pointCount=1,a.m_type=2,c=a.m_localPlaneNormal,d=Va.temp1,c.x=d.x,c.y=d.y,c=a.m_localPoint,d=this.m_v1,c.x=d.x,c.y=d.y,a.m_points[0].m_id.set_key(0),a.m_points[0].m_id.indexA=0,a.m_points[0].m_id.indexB=0,a.m_points[0].m_id.typeA= P.FACE,a.m_points[0].m_id.typeB=P.VERTEX,a=a.m_points[0].m_localPoint,b=b.m_p,a.x=b.x,a.y=b.y)},multiplyTransformsInverse:function(a,c,d){this.multiplyRotationsInverse(a.R,c.R,Va.mat);var b=Va.temp2;c=c.position;b.x=c.x;b.y=c.y;Va.temp2.subtract(a.position);this.multiplyRotationVectorInverse(a.R,Va.temp2,d.position);a=d.R.col1;b=Va.mat.col1;a.x=b.x;a.y=b.y;d=d.R.col2;a=Va.mat.col2;d.x=a.x;d.y=a.y},multiplyRotationsInverse:function(a,c,d){d.col1.x=a.col1.x*c.col1.x+a.col1.y*c.col1.y;d.col1.y=a.col2.x* c.col1.x+a.col2.y*c.col1.y;d.col2.x=a.col1.x*c.col2.x+a.col1.y*c.col2.y;d.col2.y=a.col2.x*c.col2.x+a.col2.y*c.col2.y},multiplyRotationVector:function(a,c,d){d.x=a.col1.x*c.x+a.col2.x*c.y;d.y=a.col1.y*c.x+a.col2.y*c.y},multiplyRotationVectorInverse:function(a,c,d){d.x=a.col1.x*c.x+a.col1.y*c.y;d.y=a.col2.x*c.x+a.col2.y*c.y},multiplyTransformVector:function(a,c,d){d.x=a.R.col1.x*c.x+a.R.col2.x*c.y+a.position.x;d.y=a.R.col1.y*c.x+a.R.col2.y*c.y+a.position.y},__class__:Va});var Ph=function(){eb.call(this)}; k["box2D.dynamics.contacts.B2PolyAndCircleContact"]=Ph;Ph.__name__="box2D.dynamics.contacts.B2PolyAndCircleContact";Ph.create=function(a){return new Ph};Ph.destroy=function(a,c){};Ph.__super__=eb;Ph.prototype=r(eb.prototype,{reset:function(a,c){eb.prototype.reset.call(this,a,c);fa.b2Assert(1==a.getType());fa.b2Assert(0==c.getType())},evaluate:function(){var a=this.m_fixtureA.m_body,c=this.m_fixtureB.m_body;I.collidePolygonAndCircle(this.m_manifold,S.__cast(this.m_fixtureA.getShape(),Fb),a.m_xf,S.__cast(this.m_fixtureB.getShape(), Xc),c.m_xf)},__class__:Ph});var Rh=function(){this.v=new M;this.id=new P};k["box2D.dynamics.contacts.ClipVertex"]=Rh;Rh.__name__="box2D.dynamics.contacts.ClipVertex";Rh.prototype={v:null,id:null,set:function(a){var c=this.v,d=a.v;c.x=d.x;c.y=d.y;this.id.set(a.id)},__class__:Rh};var hm=function(){};k["box2D.dynamics.contacts.EPAxis"]=hm;hm.__name__="box2D.dynamics.contacts.EPAxis";hm.prototype={type:null,index:null,separation:null,__class__:hm};var Np=function(){this.vertices=[];this.normals=[];for(var a= 0;32>a;)a++,this.vertices.push(new M),this.normals.push(new M)};k["box2D.dynamics.contacts.TempPolygon"]=Np;Np.__name__="box2D.dynamics.contacts.TempPolygon";Np.prototype={vertices:null,normals:null,count:null,__class__:Np};var Op=function(){this.v1=new M;this.v2=new M;this.normal=new M;this.sideNormal1=new M;this.sideNormal2=new M};k["box2D.dynamics.contacts.ReferenceFace"]=Op;Op.__name__="box2D.dynamics.contacts.ReferenceFace";Op.prototype={i1:null,i2:null,v1:null,v2:null,normal:null,sideNormal1:null, sideNormal2:null,sideOffset1:null,sideOffset2:null,__class__:Op};var G=function(){eb.call(this)};k["box2D.dynamics.contacts.B2PolyAndEdgeContact"]=G;G.__name__="box2D.dynamics.contacts.B2PolyAndEdgeContact";G.create=function(a){return new G};G.destroy=function(a,c){};G.clipSegmentToLine=function(a,c,d,b,e){var f=0,h=O.dot(d,c[0].v)-b;d=O.dot(d,c[1].v)-b;0>=h&&a[f++].set(c[0]);0>=d&&a[f++].set(c[1]);0>h*d&&(h/=h-d,d=a[f].v,b=c[1].v,d.x=b.x,d.y=b.y,a[f].v.subtract(c[0].v),a[f].v.multiply(h),a[f].v.add(c[0].v), a[f].id.indexA=e,a[f].id.indexB=c[0].id.indexB,a[f].id.typeA=P.VERTEX,a[f].id.typeB=P.FACE,++f);return f};G.__super__=eb;G.prototype=r(eb.prototype,{m_v0:null,m_v1:null,m_v2:null,m_v3:null,m_front:null,m_radius:null,reset:function(a,c){a.getShape()instanceof Fb?(eb.prototype.reset.call(this,c,a),fa.b2Assert(1==a.getType()),fa.b2Assert(2==c.getType())):(eb.prototype.reset.call(this,a,c),fa.b2Assert(2==a.getType()),fa.b2Assert(1==c.getType()))},evaluate:function(){var a=this.m_fixtureA.getBody(),c= this.m_fixtureB.getBody();this.b2CollidePolyAndEdge(this.m_manifold,S.__cast(this.m_fixtureA.getShape(),Qg),a.m_xf,S.__cast(this.m_fixtureB.getShape(),Fb),c.m_xf)},b2CollidePolyAndEdge:function(a,c,d,b,e){this.multiplyTransformsInverse(d,e,G.m_xf);this.multiplyTransformVector(G.m_xf,b.m_centroid,G.temp);var f=G.m_centroidB,h=G.temp;f.x=h.x;f.y=h.y;this.m_v0=c.m_v0;this.m_v1=c.m_v1;this.m_v2=c.m_v2;this.m_v3=c.m_v3;var l=c.m_hasVertex0,t=c.m_hasVertex3,p=G.edge1,m=this.m_v2;p.x=m.x;p.y=m.y;G.edge1.subtract(this.m_v1); G.edge1.normalize();var n=G.m_normal1,k=G.edge1.y,q=-G.edge1.x;null==q&&(q=0);null==k&&(k=0);n.x=k;n.y=q;var u=G.temp,v=G.m_centroidB;u.x=v.x;u.y=v.y;G.temp.subtract(this.m_v1);var w=O.dot(G.m_normal1,G.temp),r=0,y=0,x=!1,I=!1;if(l){var B=G.edge0,D=this.m_v1;B.x=D.x;B.y=D.y;G.edge0.subtract(this.m_v0);G.edge0.normalize();var A=G.m_normal0,C=G.edge0.y,F=-G.edge0.x;null==F&&(F=0);null==C&&(C=0);A.x=C;A.y=F;x=0<=O.crossVV(G.edge0,G.edge1);var E=G.temp,J=G.m_centroidB;E.x=J.x;E.y=J.y;G.temp.subtract(this.m_v0); r=O.dot(G.m_normal0,G.temp)}if(t){var H=G.edge2,L=this.m_v3;H.x=L.x;H.y=L.y;G.edge2.subtract(this.m_v2);G.edge2.normalize();var z=G.m_normal2,N=G.edge2.y,M=-G.edge2.x;null==M&&(M=0);null==N&&(N=0);z.x=N;z.y=M;I=0this.m_radius||(this.computePolygonSeparation(G.polygonAxis),G.polygonAxis.type!=Sh.UNKNOWN&&G.polygonAxis.separation>this.m_radius))){var hc=G.polygonAxis.type==Sh.UNKNOWN?G.edgeAxis:G.polygonAxis.separation> .98*G.edgeAxis.separation+.001?G.polygonAxis:G.edgeAxis;if(hc.type==Sh.EDGE_A){a.m_type=2;for(var vc=0,wc=O.dot(G.m_normal,G.m_polygonB.normals[0]),xc=1,zc=G.m_polygonB.count;xcthis.m_radius){a.type=Sh.EDGE_B;a.index=b;a.separation=e;break}0<=O.dot(G.n,G.perp)?(g=G.temp,h=G.n,g.x=h.x,g.y=h.y,G.temp.subtract(G.m_upperLimit)):(g=G.temp,h=G.n,g.x=h.x,g.y=h.y,G.temp.subtract(G.m_lowerLimit)); !(O.dot(G.temp,G.m_normal)<-fa.b2_angularSlop)&&e>a.separation&&(a.type=Sh.EDGE_B,a.index=b,a.separation=e)}},multiplyTransformsInverse:function(a,c,d){this.multiplyRotationsInverse(a.R,c.R,G.mat);var b=G.temp2;c=c.position;b.x=c.x;b.y=c.y;G.temp2.subtract(a.position);this.multiplyRotationVectorInverse(a.R,G.temp2,d.position);a=d.R.col1;b=G.mat.col1;a.x=b.x;a.y=b.y;d=d.R.col2;a=G.mat.col2;d.x=a.x;d.y=a.y},multiplyRotationsInverse:function(a,c,d){d.col1.x=a.col1.x*c.col1.x+a.col1.y*c.col1.y;d.col1.y= a.col2.x*c.col1.x+a.col2.y*c.col1.y;d.col2.x=a.col1.x*c.col2.x+a.col1.y*c.col2.y;d.col2.y=a.col2.x*c.col2.x+a.col2.y*c.col2.y},multiplyRotationVector:function(a,c,d){d.x=a.col1.x*c.x+a.col2.x*c.y;d.y=a.col1.y*c.x+a.col2.y*c.y},multiplyRotationVectorInverse:function(a,c,d){d.x=a.col1.x*c.x+a.col1.y*c.y;d.y=a.col2.x*c.x+a.col2.y*c.y},multiplyTransformVector:function(a,c,d){d.x=a.R.col1.x*c.x+a.R.col2.x*c.y+a.position.x;d.y=a.R.col1.y*c.x+a.R.col2.y*c.y+a.position.y},__class__:G});var Sh=B["box2D.dynamics.contacts.Type"]= {__ename__:"box2D.dynamics.contacts.Type",__constructs__:["UNKNOWN","EDGE_A","EDGE_B"],UNKNOWN:{_hx_index:0,__enum__:"box2D.dynamics.contacts.Type",toString:u},EDGE_A:{_hx_index:1,__enum__:"box2D.dynamics.contacts.Type",toString:u},EDGE_B:{_hx_index:2,__enum__:"box2D.dynamics.contacts.Type",toString:u}},Qh=function(){eb.call(this)};k["box2D.dynamics.contacts.B2PolygonContact"]=Qh;Qh.__name__="box2D.dynamics.contacts.B2PolygonContact";Qh.create=function(a){return new Qh};Qh.destroy=function(a,c){}; Qh.__super__=eb;Qh.prototype=r(eb.prototype,{reset:function(a,c){eb.prototype.reset.call(this,a,c)},evaluate:function(){var a=this.m_fixtureA.getBody(),c=this.m_fixtureB.getBody();I.collidePolygons(this.m_manifold,S.__cast(this.m_fixtureA.getShape(),Fb),a.m_xf,S.__cast(this.m_fixtureB.getShape(),Fb),c.m_xf)},__class__:Qh});var Qv=function(){};k["box2D.dynamics.controllers.B2Controller"]=Qv;Qv.__name__="box2D.dynamics.controllers.B2Controller";Qv.prototype={step:function(a){},draw:function(a){},addBody:function(a){var c= new Pp;c.controller=this;c.body=a;c.nextBody=this.m_bodyList;c.prevBody=null;this.m_bodyList=c;null!=c.nextBody&&(c.nextBody.prevBody=c);this.m_bodyCount++;c.nextController=a.m_controllerList;c.prevController=null;a.m_controllerList=c;null!=c.nextController&&(c.nextController.prevController=c);a.m_controllerCount++},removeBody:function(a){for(var c=a.m_controllerList;null!=c&&c.controller!=this;)c=c.nextController;null!=c.prevBody&&(c.prevBody.nextBody=c.nextBody);null!=c.nextBody&&(c.nextBody.prevBody= c.prevBody);null!=c.nextController&&(c.nextController.prevController=c.prevController);null!=c.prevController&&(c.prevController.nextController=c.nextController);this.m_bodyList==c&&(this.m_bodyList=c.nextBody);a.m_controllerList==c&&(a.m_controllerList=c.nextController);a.m_controllerCount--;this.m_bodyCount--},clear:function(){for(;null!=this.m_bodyList;)this.removeBody(this.m_bodyList.body)},getNext:function(){return this.m_next},getWorld:function(){return this.m_world},getBodyList:function(){return this.m_bodyList}, m_next:null,m_prev:null,m_bodyList:null,m_bodyCount:null,m_world:null,__class__:Qv};var Pp=function(){};k["box2D.dynamics.controllers.B2ControllerEdge"]=Pp;Pp.__name__="box2D.dynamics.controllers.B2ControllerEdge";Pp.prototype={controller:null,body:null,prevBody:null,nextBody:null,prevController:null,nextController:null,__class__:Pp};var Yb=function(a){this.m_edgeA=new im;this.m_edgeB=new im;this.m_localCenterA=new M;this.m_localCenterB=new M;fa.b2Assert(a.bodyA!=a.bodyB);this.m_type=a.type;this.m_next= this.m_prev=null;this.m_bodyA=a.bodyA;this.m_bodyB=a.bodyB;this.m_collideConnected=a.collideConnected;this.m_islandFlag=!1;this.m_userData=a.userData};k["box2D.dynamics.joints.B2Joint"]=Yb;Yb.__name__="box2D.dynamics.joints.B2Joint";Yb.create=function(a,c){c=null;3==a.type?c=new jj(S.__cast(a,yi)):5==a.type?c=new jm(S.__cast(a,km)):2==a.type?c=new kj(S.__cast(a,lm)):1==a.type?c=new Ag(S.__cast(a,zi)):4==a.type?c=new Sg(S.__cast(a,mm)):6==a.type?c=new nm(S.__cast(a,om)):7==a.type?c=new Ik(S.__cast(a, Ai)):8==a.type?c=new pm(S.__cast(a,qm)):9==a.type&&(c=new rm(S.__cast(a,sm)));return c};Yb.destroy=function(a,c){};Yb.prototype={getType:function(){return this.m_type},getAnchorA:function(){return null},getAnchorB:function(){return null},getReactionForce:function(a){return null},getReactionTorque:function(a){return 0},getBodyA:function(){return this.m_bodyA},getBodyB:function(){return this.m_bodyB},getNext:function(){return this.m_next},getUserData:function(){return this.m_userData},setUserData:function(a){this.m_userData= a},isActive:function(){return this.m_bodyA.isActive()?this.m_bodyB.isActive():!1},initVelocityConstraints:function(a){},solveVelocityConstraints:function(a){},finalizeVelocityConstraints:function(){},solvePositionConstraints:function(a){return!1},m_type:null,m_prev:null,m_next:null,m_edgeA:null,m_edgeB:null,m_bodyA:null,m_bodyB:null,m_islandFlag:null,m_collideConnected:null,m_userData:null,m_localCenterA:null,m_localCenterB:null,m_invMassA:null,m_invMassB:null,m_invIA:null,m_invIB:null,ID:null,__class__:Yb}; var jj=function(a){Yb.call(this,a);this.m_localAnchor1=new M;this.m_localAnchor2=new M;this.m_u=new M;var c=this.m_localAnchor1,d=a.localAnchorA;c.x=d.x;c.y=d.y;c=this.m_localAnchor2;d=a.localAnchorB;c.x=d.x;c.y=d.y;this.m_length=a.length;this.m_frequencyHz=a.frequencyHz;this.m_dampingRatio=a.dampingRatio;this.m_bias=this.m_gamma=this.m_impulse=0};k["box2D.dynamics.joints.B2DistanceJoint"]=jj;jj.__name__="box2D.dynamics.joints.B2DistanceJoint";jj.__super__=Yb;jj.prototype=r(Yb.prototype,{getAnchorA:function(){return this.m_bodyA.getWorldPoint(this.m_localAnchor1)}, getAnchorB:function(){return this.m_bodyB.getWorldPoint(this.m_localAnchor2)},getReactionForce:function(a){return new M(a*this.m_impulse*this.m_u.x,a*this.m_impulse*this.m_u.y)},getReactionTorque:function(a){return 0},getLength:function(){return this.m_length},setLength:function(a){this.m_length=a},getFrequency:function(){return this.m_frequencyHz},setFrequency:function(a){this.m_frequencyHz=a},getDampingRatio:function(){return this.m_dampingRatio},setDampingRatio:function(a){this.m_dampingRatio= a},initVelocityConstraints:function(a){var c=this.m_bodyA,d=this.m_bodyB,b=c.m_xf.R,e=this.m_localAnchor1.x-c.m_sweep.localCenter.x,g=this.m_localAnchor1.y-c.m_sweep.localCenter.y,h=b.col1.x*e+b.col2.x*g;g=b.col1.y*e+b.col2.y*g;e=h;b=d.m_xf.R;var l=this.m_localAnchor2.x-d.m_sweep.localCenter.x,t=this.m_localAnchor2.y-d.m_sweep.localCenter.y;h=b.col1.x*l+b.col2.x*t;t=b.col1.y*l+b.col2.y*t;l=h;this.m_u.x=d.m_sweep.c.x+l-c.m_sweep.c.x-e;this.m_u.y=d.m_sweep.c.y+t-c.m_sweep.c.y-g;b=Math.sqrt(this.m_u.x* this.m_u.x+this.m_u.y*this.m_u.y);b>fa.b2_linearSlop?this.m_u.multiply(1/b):(h=this.m_u,h.x=0,h.y=0);h=e*this.m_u.y-g*this.m_u.x;var p=l*this.m_u.y-t*this.m_u.x;h=c.m_invMass+c.m_invI*h*h+d.m_invMass+d.m_invI*p*p;this.m_mass=0!=h?1/h:0;if(0n*n&& (this.m_linearImpulse.normalize(),this.m_linearImpulse.multiply(n));n=O.subtractVV(this.m_linearImpulse,u);b.x-=l*n.x;b.y-=l*n.y;e-=p*(k*n.y-q*n.x);g.x+=t*n.x;g.y+=t*n.y;h+=m*(v*n.y-w*n.x);c.m_angularVelocity=e;d.m_angularVelocity=h},solvePositionConstraints:function(a){return!0},m_localAnchorA:null,m_localAnchorB:null,m_linearMass:null,m_angularMass:null,m_linearImpulse:null,m_angularImpulse:null,m_maxForce:null,m_maxTorque:null,__class__:rm});var sm=function(){jd.call(this);this.localAnchorA=new M; this.localAnchorB=new M;this.type=9;this.maxTorque=this.maxForce=0};k["box2D.dynamics.joints.B2FrictionJointDef"]=sm;sm.__name__="box2D.dynamics.joints.B2FrictionJointDef";sm.__super__=jd;sm.prototype=r(jd.prototype,{initialize:function(a,c,b){this.bodyA=a;this.bodyB=c;a=this.localAnchorA;c=this.bodyA.getLocalPoint(b);a.x=c.x;a.y=c.y;a=this.localAnchorB;b=this.bodyB.getLocalPoint(b);a.x=b.x;a.y=b.y},localAnchorA:null,localAnchorB:null,maxForce:null,maxTorque:null,__class__:sm});var nm=function(a){Yb.call(this, a);this.m_groundAnchor1=new M;this.m_groundAnchor2=new M;this.m_localAnchor1=new M;this.m_localAnchor2=new M;this.m_J=new Qp;var c=a.joint1.m_type,b=a.joint2.m_type;this.m_prismatic2=this.m_revolute2=this.m_prismatic1=this.m_revolute1=null;this.m_ground1=a.joint1.getBodyA();this.m_bodyA=a.joint1.getBodyB();if(1==c){this.m_revolute1=S.__cast(a.joint1,Ag);c=this.m_groundAnchor1;var f=this.m_revolute1.m_localAnchor1;c.x=f.x;c.y=f.y;c=this.m_localAnchor1;f=this.m_revolute1.m_localAnchor2;c.x=f.x;c.y= f.y;c=this.m_revolute1.getJointAngle()}else this.m_prismatic1=S.__cast(a.joint1,kj),c=this.m_groundAnchor1,f=this.m_prismatic1.m_localAnchor1,c.x=f.x,c.y=f.y,c=this.m_localAnchor1,f=this.m_prismatic1.m_localAnchor2,c.x=f.x,c.y=f.y,c=this.m_prismatic1.getJointTranslation();this.m_ground2=a.joint2.getBodyA();this.m_bodyB=a.joint2.getBodyB();1==b?(this.m_revolute2=S.__cast(a.joint2,Ag),b=this.m_groundAnchor2,f=this.m_revolute2.m_localAnchor1,b.x=f.x,b.y=f.y,b=this.m_localAnchor2,f=this.m_revolute2.m_localAnchor2, b.x=f.x,b.y=f.y,b=this.m_revolute2.getJointAngle()):(this.m_prismatic2=S.__cast(a.joint2,kj),b=this.m_groundAnchor2,f=this.m_prismatic2.m_localAnchor1,b.x=f.x,b.y=f.y,b=this.m_localAnchor2,f=this.m_prismatic2.m_localAnchor2,b.x=f.x,b.y=f.y,b=this.m_prismatic2.getJointTranslation());this.m_ratio=a.ratio;this.m_constant=c+this.m_ratio*b;this.m_impulse=0};k["box2D.dynamics.joints.B2GearJoint"]=nm;nm.__name__="box2D.dynamics.joints.B2GearJoint";nm.__super__=Yb;nm.prototype=r(Yb.prototype,{getAnchorA:function(){return this.m_bodyA.getWorldPoint(this.m_localAnchor1)}, getAnchorB:function(){return this.m_bodyB.getWorldPoint(this.m_localAnchor2)},getReactionForce:function(a){return new M(a*this.m_impulse*this.m_J.linearB.x,a*this.m_impulse*this.m_J.linearB.y)},getReactionTorque:function(a){var c=this.m_bodyB.m_xf.R,b=this.m_localAnchor1.x-this.m_bodyB.m_sweep.localCenter.x,f=this.m_localAnchor1.y-this.m_bodyB.m_sweep.localCenter.y,e=c.col1.x*b+c.col2.x*f;f=c.col1.y*b+c.col2.y*f;return a*(this.m_impulse*this.m_J.angularB-e*this.m_impulse*this.m_J.linearB.y+f*this.m_impulse* this.m_J.linearB.x)},getRatio:function(){return this.m_ratio},setRatio:function(a){this.m_ratio=a},initVelocityConstraints:function(a){var c=this.m_ground1,b=this.m_ground2,f=this.m_bodyA,e=this.m_bodyB,g=0;this.m_J.setZero();if(null!=this.m_revolute1)this.m_J.angularA=-1,g+=f.m_invI;else{var h=c.m_xf.R;c=this.m_prismatic1.m_localXAxis1;var l=h.col1.x*c.x+h.col2.x*c.y;c=h.col1.y*c.x+h.col2.y*c.y;h=f.m_xf.R;var t=this.m_localAnchor1.x-f.m_sweep.localCenter.x;var p=this.m_localAnchor1.y-f.m_sweep.localCenter.y; var m=h.col1.x*t+h.col2.x*p;p=h.col1.y*t+h.col2.y*p;h=m*c-p*l;t=this.m_J.linearA;l=-l;c=-c;null==c&&(c=0);null==l&&(l=0);t.x=l;t.y=c;this.m_J.angularA=-h;g+=f.m_invMass+f.m_invI*h*h}null!=this.m_revolute2?(this.m_J.angularB=-this.m_ratio,g+=this.m_ratio*this.m_ratio*e.m_invI):(h=b.m_xf.R,c=this.m_prismatic2.m_localXAxis1,l=h.col1.x*c.x+h.col2.x*c.y,c=h.col1.y*c.x+h.col2.y*c.y,h=e.m_xf.R,t=this.m_localAnchor2.x-e.m_sweep.localCenter.x,p=this.m_localAnchor2.y-e.m_sweep.localCenter.y,m=h.col1.x*t+h.col2.x* p,p=h.col1.y*t+h.col2.y*p,h=m*c-p*l,b=this.m_J.linearB,l*=-this.m_ratio,c*=-this.m_ratio,null==c&&(c=0),null==l&&(l=0),b.x=l,b.y=c,this.m_J.angularB=-this.m_ratio*h,g+=this.m_ratio*this.m_ratio*(e.m_invMass+e.m_invI*h*h));this.m_mass=0Number.MIN_VALUE?1/this.m_motorMass:0;m=this.m_perp;g=O.mulMV(g.R,this.m_localYAxis1);m.x=g.x;m.y=g.y;this.m_s1=(f+h)*this.m_perp.y-(e+l)*this.m_perp.x;this.m_s2=t*this.m_perp.y-p*this.m_perp.x;h=this.m_invMassA;l=this.m_invMassB;t=this.m_invIA;p=this.m_invIB;this.m_K.col1.x=h+l+t*this.m_s1*this.m_s1+p*this.m_s2*this.m_s2;this.m_K.col1.y= t*this.m_s1*this.m_a1+p*this.m_s2*this.m_a2;this.m_K.col2.x=this.m_K.col1.y;this.m_K.col2.y=h+l+t*this.m_a1*this.m_a1+p*this.m_a2*this.m_a2;this.m_enableLimit?(f=this.m_axis.x*f+this.m_axis.y*e,O.abs(this.m_upperTranslation-this.m_lowerTranslation)<2*fa.b2_linearSlop?this.m_limitState=3:f<=this.m_lowerTranslation?1!=this.m_limitState&&(this.m_limitState=1,this.m_impulse.y=0):f>=this.m_upperTranslation?2!=this.m_limitState&&(this.m_limitState=2,this.m_impulse.y=0):(this.m_limitState=0,this.m_impulse.y= 0)):this.m_limitState=0;0==this.m_enableMotor&&(this.m_motorImpulse=0);a.warmStarting?(this.m_impulse.x*=a.dtRatio,this.m_impulse.y*=a.dtRatio,this.m_motorImpulse*=a.dtRatio,a=this.m_impulse.x*this.m_perp.x+(this.m_motorImpulse+this.m_impulse.y)*this.m_axis.x,f=this.m_impulse.x*this.m_perp.y+(this.m_motorImpulse+this.m_impulse.y)*this.m_axis.y,e=this.m_impulse.x*this.m_s1+(this.m_motorImpulse+this.m_impulse.y)*this.m_a1,h=this.m_impulse.x*this.m_s2+(this.m_motorImpulse+this.m_impulse.y)*this.m_a2, c.m_linearVelocity.x-=this.m_invMassA*a,c.m_linearVelocity.y-=this.m_invMassA*f,c.m_angularVelocity-=this.m_invIA*e,b.m_linearVelocity.x+=this.m_invMassB*a,b.m_linearVelocity.y+=this.m_invMassB*f,b.m_angularVelocity+=this.m_invIB*h):(c=this.m_impulse,c.x=0,this.m_motorImpulse=c.y=0)},solveVelocityConstraints:function(a){var c=this.m_bodyA,b=this.m_bodyB,f=c.m_linearVelocity,e=c.m_angularVelocity,g=b.m_linearVelocity,h=b.m_angularVelocity;if(this.m_enableMotor&&3!=this.m_limitState){var l=this.m_motorMass* (this.m_motorSpeed-(this.m_axis.x*(g.x-f.x)+this.m_axis.y*(g.y-f.y)+this.m_a2*h-this.m_a1*e));var t=this.m_motorImpulse;a=a.dt*this.m_maxMotorForce;this.m_motorImpulse=O.clamp(this.m_motorImpulse+l,-a,a);l=this.m_motorImpulse-t;t=l*this.m_axis.x;a=l*this.m_axis.y;var p=l*this.m_a1;l*=this.m_a2;f.x-=this.m_invMassA*t;f.y-=this.m_invMassA*a;e-=this.m_invIA*p;g.x+=this.m_invMassB*t;g.y+=this.m_invMassB*a;h+=this.m_invIB*l}a=this.m_perp.x*(g.x-f.x)+this.m_perp.y*(g.y-f.y)+this.m_s2*h-this.m_s1*e;this.m_enableLimit&& 0!=this.m_limitState?(p=this.m_axis.x*(g.x-f.x)+this.m_axis.y*(g.y-f.y)+this.m_a2*h-this.m_a1*e,t=this.m_impulse.copy(),l=this.m_K.solve(new M,-a,-p),this.m_impulse.add(l),1==this.m_limitState?this.m_impulse.y=O.max(this.m_impulse.y,0):2==this.m_limitState&&(this.m_impulse.y=O.min(this.m_impulse.y,0)),a=-a-(this.m_impulse.y-t.y)*this.m_K.col2.x,this.m_impulse.x=0!=this.m_K.col1.x?a/this.m_K.col1.x+t.x:t.x,l.x=this.m_impulse.x-t.x,l.y=this.m_impulse.y-t.y,t=l.x*this.m_perp.x+l.y*this.m_axis.x,a=l.x* this.m_perp.y+l.y*this.m_axis.y,p=l.x*this.m_s1+l.y*this.m_a1,l=l.x*this.m_s2+l.y*this.m_a2):(l=0!=this.m_K.col1.x?-a/this.m_K.col1.x:0,this.m_impulse.x+=l,t=l*this.m_perp.x,a=l*this.m_perp.y,p=l*this.m_s1,l*=this.m_s2);f.x-=this.m_invMassA*t;f.y-=this.m_invMassA*a;e-=this.m_invIA*p;g.x+=this.m_invMassB*t;g.y+=this.m_invMassB*a;h+=this.m_invIB*l;t=c.m_linearVelocity;t.x=f.x;t.y=f.y;c.m_angularVelocity=e;c=b.m_linearVelocity;c.x=g.x;c.y=g.y;b.m_angularVelocity=h},solvePositionConstraints:function(a){a= this.m_bodyA;var c=this.m_bodyB,b=a.m_sweep.c,f=a.m_sweep.a,e=c.m_sweep.c,g=c.m_sweep.a,h=0;var l=!1;var t=0,p=Mc.fromAngle(f);var m=Mc.fromAngle(g);var n=p,k=this.m_localAnchor1.x-this.m_localCenterA.x;var q=this.m_localAnchor1.y-this.m_localCenterA.y;var u=n.col1.x*k+n.col2.x*q;q=n.col1.y*k+n.col2.y*q;k=u;n=m;m=this.m_localAnchor2.x-this.m_localCenterB.x;var v=this.m_localAnchor2.y-this.m_localCenterB.y;u=n.col1.x*m+n.col2.x*v;v=n.col1.y*m+n.col2.y*v;m=u;n=e.x+m-b.x-k;u=e.y+v-b.y-q;if(this.m_enableLimit){this.m_axis= O.mulMV(p,this.m_localXAxis1);this.m_a1=(n+k)*this.m_axis.y-(u+q)*this.m_axis.x;this.m_a2=m*this.m_axis.y-v*this.m_axis.x;var w=this.m_axis.x*n+this.m_axis.y*u;O.abs(this.m_upperTranslation-this.m_lowerTranslation)<2*fa.b2_linearSlop?(t=O.clamp(w,-fa.b2_maxLinearCorrection,fa.b2_maxLinearCorrection),h=O.abs(w),l=!0):w<=this.m_lowerTranslation?(t=O.clamp(w-this.m_lowerTranslation+fa.b2_linearSlop,-fa.b2_maxLinearCorrection,0),h=this.m_lowerTranslation-w,l=!0):w>=this.m_upperTranslation&&(t=O.clamp(w- this.m_upperTranslation+fa.b2_linearSlop,0,fa.b2_maxLinearCorrection),h=w-this.m_upperTranslation,l=!0)}this.m_perp=O.mulMV(p,this.m_localYAxis1);this.m_s1=(n+k)*this.m_perp.y-(u+q)*this.m_perp.x;this.m_s2=m*this.m_perp.y-v*this.m_perp.x;p=new M;k=this.m_perp.x*n+this.m_perp.y*u;h=O.max(h,O.abs(k));l?(l=this.m_invMassA,q=this.m_invMassB,m=this.m_invIA,v=this.m_invIB,this.m_K.col1.x=l+q+m*this.m_s1*this.m_s1+v*this.m_s2*this.m_s2,this.m_K.col1.y=m*this.m_s1*this.m_a1+v*this.m_s2*this.m_a2,this.m_K.col2.x= this.m_K.col1.y,this.m_K.col2.y=l+q+m*this.m_a1*this.m_a1+v*this.m_a2*this.m_a2,this.m_K.solve(p,-k,-t)):(l=this.m_invMassA,q=this.m_invMassB,m=this.m_invIA,v=this.m_invIB,t=l+q+m*this.m_s1*this.m_s1+v*this.m_s2*this.m_s2,p.x=0!=t?-k/t:0,p.y=0);t=p.x*this.m_perp.x+p.y*this.m_axis.x;l=p.x*this.m_perp.y+p.y*this.m_axis.y;k=p.x*this.m_s1+p.y*this.m_a1;p=p.x*this.m_s2+p.y*this.m_a2;b.x-=this.m_invMassA*t;b.y-=this.m_invMassA*l;f-=this.m_invIA*k;e.x+=this.m_invMassB*t;e.y+=this.m_invMassB*l;g+=this.m_invIB* p;a.m_sweep.a=f;c.m_sweep.a=g;a.synchronizeTransform();c.synchronizeTransform();return h<=fa.b2_linearSlop?0<=fa.b2_angularSlop:!1},m_localAnchor1:null,m_localAnchor2:null,m_localXAxis1:null,m_localYAxis1:null,m_axis:null,m_perp:null,m_s1:null,m_s2:null,m_a1:null,m_a2:null,m_K:null,m_impulse:null,m_motorMass:null,m_motorImpulse:null,m_lowerTranslation:null,m_upperTranslation:null,m_maxMotorForce:null,m_motorSpeed:null,m_enableLimit:null,m_enableMotor:null,m_limitState:null,__class__:Ik});var Ai=function(){jd.call(this); this.localAnchorA=new M;this.localAnchorB=new M;this.localAxisA=new M;this.type=7;var a=this.localAxisA,c=1,b=0;null==b&&(b=0);null==c&&(c=0);a.x=c;a.y=b;this.enableLimit=!1;this.upperTranslation=this.lowerTranslation=0;this.enableMotor=!1;this.motorSpeed=this.maxMotorForce=0};k["box2D.dynamics.joints.B2LineJointDef"]=Ai;Ai.__name__="box2D.dynamics.joints.B2LineJointDef";Ai.__super__=jd;Ai.prototype=r(jd.prototype,{initialize:function(a,c,b,f){this.bodyA=a;this.bodyB=c;this.localAnchorA=this.bodyA.getLocalPoint(b); this.localAnchorB=this.bodyB.getLocalPoint(b);this.localAxisA=this.bodyA.getLocalVector(f)},localAnchorA:null,localAnchorB:null,localAxisA:null,enableLimit:null,lowerTranslation:null,upperTranslation:null,enableMotor:null,maxMotorForce:null,motorSpeed:null,__class__:Ai});var jm=function(a){Yb.call(this,a);this.K=new Mc;this.K1=new Mc;this.K2=new Mc;this.m_localAnchor=new M;this.m_target=new M;this.m_impulse=new M;this.m_mass=new Mc;this.m_C=new M;var c=this.m_target,b=a.target;c.x=b.x;c.y=b.y;c=this.m_target.x- this.m_bodyB.m_xf.position.x;b=this.m_target.y-this.m_bodyB.m_xf.position.y;var f=this.m_bodyB.m_xf.R;this.m_localAnchor.x=c*f.col1.x+b*f.col1.y;this.m_localAnchor.y=c*f.col2.x+b*f.col2.y;this.m_maxForce=a.maxForce;c=this.m_impulse;c.x=0;c.y=0;this.m_frequencyHz=a.frequencyHz;this.m_dampingRatio=a.dampingRatio;this.m_gamma=this.m_beta=0};k["box2D.dynamics.joints.B2MouseJoint"]=jm;jm.__name__="box2D.dynamics.joints.B2MouseJoint";jm.__super__=Yb;jm.prototype=r(Yb.prototype,{getAnchorA:function(){return this.m_target}, getAnchorB:function(){return this.m_bodyB.getWorldPoint(this.m_localAnchor)},getReactionForce:function(a){return new M(a*this.m_impulse.x,a*this.m_impulse.y)},getReactionTorque:function(a){return 0},getTarget:function(){return this.m_target},setTarget:function(a){0==this.m_bodyB.isAwake()&&this.m_bodyB.setAwake(!0);this.m_target=a},getMaxForce:function(){return this.m_maxForce},setMaxForce:function(a){this.m_maxForce=a},getFrequency:function(){return this.m_frequencyHz},setFrequency:function(a){this.m_frequencyHz= a},getDampingRatio:function(){return this.m_dampingRatio},setDampingRatio:function(a){this.m_dampingRatio=a},K:null,K1:null,K2:null,initVelocityConstraints:function(a){var c=this.m_bodyB,b=c.getMass(),f=2*Math.PI*this.m_frequencyHz,e=b*f*f;this.m_gamma=a.dt*(2*b*this.m_dampingRatio*f+a.dt*e);this.m_gamma=0!=this.m_gamma?1/this.m_gamma:0;this.m_beta=a.dt*e*this.m_gamma;e=c.m_xf.R;b=this.m_localAnchor.x-c.m_sweep.localCenter.x;f=this.m_localAnchor.y-c.m_sweep.localCenter.y;var g=e.col1.x*b+e.col2.x* f;f=e.col1.y*b+e.col2.y*f;b=g;e=c.m_invMass;g=c.m_invI;this.K1.col1.x=e;this.K1.col2.x=0;this.K1.col1.y=0;this.K1.col2.y=e;this.K2.col1.x=g*f*f;this.K2.col2.x=-g*b*f;this.K2.col1.y=-g*b*f;this.K2.col2.y=g*b*b;this.K.setM(this.K1);this.K.addM(this.K2);this.K.col1.x+=this.m_gamma;this.K.col2.y+=this.m_gamma;this.K.getInverse(this.m_mass);this.m_C.x=c.m_sweep.c.x+b-this.m_target.x;this.m_C.y=c.m_sweep.c.y+f-this.m_target.y;c.m_angularVelocity*=.98;this.m_impulse.x*=a.dtRatio;this.m_impulse.y*=a.dtRatio; c.m_linearVelocity.x+=e*this.m_impulse.x;c.m_linearVelocity.y+=e*this.m_impulse.y;c.m_angularVelocity+=g*(b*this.m_impulse.y-f*this.m_impulse.x)},solveVelocityConstraints:function(a){var c=this.m_bodyB,b=c.m_xf.R,f=this.m_localAnchor.x-c.m_sweep.localCenter.x,e=this.m_localAnchor.y-c.m_sweep.localCenter.y,g=b.col1.x*f+b.col2.x*e;e=b.col1.y*f+b.col2.y*e;f=g;g=c.m_linearVelocity.x+-c.m_angularVelocity*e;var h=c.m_linearVelocity.y+c.m_angularVelocity*f;b=this.m_mass;g=g+this.m_beta*this.m_C.x+this.m_gamma* this.m_impulse.x;var l=h+this.m_beta*this.m_C.y+this.m_gamma*this.m_impulse.y;h=-(b.col1.x*g+b.col2.x*l);l=-(b.col1.y*g+b.col2.y*l);b=this.m_impulse.x;g=this.m_impulse.y;this.m_impulse.x+=h;this.m_impulse.y+=l;a=a.dt*this.m_maxForce;this.m_impulse.lengthSquared()>a*a&&this.m_impulse.multiply(a/this.m_impulse.length());h=this.m_impulse.x-b;l=this.m_impulse.y-g;c.m_linearVelocity.x+=c.m_invMass*h;c.m_linearVelocity.y+=c.m_invMass*l;c.m_angularVelocity+=c.m_invI*(f*l-e*h)},solvePositionConstraints:function(a){return!0}, m_localAnchor:null,m_target:null,m_impulse:null,m_mass:null,m_C:null,m_maxForce:null,m_frequencyHz:null,m_dampingRatio:null,m_beta:null,m_gamma:null,__class__:jm});var km=function(){jd.call(this);this.target=new M;this.type=5;this.maxForce=0;this.frequencyHz=5;this.dampingRatio=.7};k["box2D.dynamics.joints.B2MouseJointDef"]=km;km.__name__="box2D.dynamics.joints.B2MouseJointDef";km.__super__=jd;km.prototype=r(jd.prototype,{target:null,maxForce:null,frequencyHz:null,dampingRatio:null,__class__:km}); var kj=function(a){Yb.call(this,a);this.m_localAnchor1=new M;this.m_localAnchor2=new M;this.m_localXAxis1=new M;this.m_localYAxis1=new M;this.m_axis=new M;this.m_perp=new M;this.m_K=new wi;this.m_impulse=new uf;var c=this.m_localAnchor1,b=a.localAnchorA;c.x=b.x;c.y=b.y;c=this.m_localAnchor2;b=a.localAnchorB;c.x=b.x;c.y=b.y;c=this.m_localXAxis1;b=a.localAxisA;c.x=b.x;c.y=b.y;this.m_localYAxis1.x=-this.m_localXAxis1.y;this.m_localYAxis1.y=this.m_localXAxis1.x;this.m_refAngle=a.referenceAngle;this.m_impulse.setZero(); this.m_motorImpulse=this.m_motorMass=0;this.m_lowerTranslation=a.lowerTranslation;this.m_upperTranslation=a.upperTranslation;this.m_maxMotorForce=a.maxMotorForce;this.m_motorSpeed=a.motorSpeed;this.m_enableLimit=a.enableLimit;this.m_enableMotor=a.enableMotor;this.m_limitState=0;a=this.m_axis;a.x=0;a.y=0;a=this.m_perp;a.x=0;a.y=0};k["box2D.dynamics.joints.B2PrismaticJoint"]=kj;kj.__name__="box2D.dynamics.joints.B2PrismaticJoint";kj.__super__=Yb;kj.prototype=r(Yb.prototype,{getAnchorA:function(){return this.m_bodyA.getWorldPoint(this.m_localAnchor1)}, getAnchorB:function(){return this.m_bodyB.getWorldPoint(this.m_localAnchor2)},getReactionForce:function(a){return new M(a*(this.m_impulse.x*this.m_perp.x+(this.m_motorImpulse+this.m_impulse.z)*this.m_axis.x),a*(this.m_impulse.x*this.m_perp.y+(this.m_motorImpulse+this.m_impulse.z)*this.m_axis.y))},getReactionTorque:function(a){return a*this.m_impulse.y},getJointTranslation:function(){var a=this.m_bodyA,c=this.m_bodyB,b=a.getWorldPoint(this.m_localAnchor1),f=c.getWorldPoint(this.m_localAnchor2);c=f.x- b.x;b=f.y-b.y;a=a.getWorldVector(this.m_localXAxis1);return a.x*c+a.y*b},getJointSpeed:function(){var a=this.m_bodyA,c=this.m_bodyB,b=a.m_xf.R,f=this.m_localAnchor1.x-a.m_sweep.localCenter.x,e=this.m_localAnchor1.y-a.m_sweep.localCenter.y,g=b.col1.x*f+b.col2.x*e;e=b.col1.y*f+b.col2.y*e;f=g;b=c.m_xf.R;var h=this.m_localAnchor2.x-c.m_sweep.localCenter.x,l=this.m_localAnchor2.y-c.m_sweep.localCenter.y;g=b.col1.x*h+b.col2.x*l;l=b.col1.y*h+b.col2.y*l;h=g;b=c.m_sweep.c.x+h-(a.m_sweep.c.x+f);g=c.m_sweep.c.y+ l-(a.m_sweep.c.y+e);var t=a.getWorldVector(this.m_localXAxis1),p=a.m_linearVelocity,m=c.m_linearVelocity;a=a.m_angularVelocity;c=c.m_angularVelocity;return b*-a*t.y+g*a*t.x+(t.x*(m.x+-c*l-p.x- -a*e)+t.y*(m.y+c*h-p.y-a*f))},isLimitEnabled:function(){return this.m_enableLimit},enableLimit:function(a){this.m_bodyA.setAwake(!0);this.m_bodyB.setAwake(!0);this.m_enableLimit=a},getLowerLimit:function(){return this.m_lowerTranslation},getUpperLimit:function(){return this.m_upperTranslation},setLimits:function(a, c){this.m_bodyA.setAwake(!0);this.m_bodyB.setAwake(!0);this.m_lowerTranslation=a;this.m_upperTranslation=c},isMotorEnabled:function(){return this.m_enableMotor},enableMotor:function(a){this.m_bodyA.setAwake(!0);this.m_bodyB.setAwake(!0);this.m_enableMotor=a},setMotorSpeed:function(a){this.m_bodyA.setAwake(!0);this.m_bodyB.setAwake(!0);this.m_motorSpeed=a},getMotorSpeed:function(){return this.m_motorSpeed},setMaxMotorForce:function(a){this.m_bodyA.setAwake(!0);this.m_bodyB.setAwake(!0);this.m_maxMotorForce= a},getMotorForce:function(){return this.m_motorImpulse},initVelocityConstraints:function(a){var c=this.m_bodyA,b=this.m_bodyB,f=this.m_localCenterA,e=c.getLocalCenter();f.x=e.x;f.y=e.y;f=this.m_localCenterB;e=b.getLocalCenter();f.x=e.x;f.y=e.y;var g=c.getTransform();b.getTransform();f=c.m_xf.R;var h=this.m_localAnchor1.x-this.m_localCenterA.x,l=this.m_localAnchor1.y-this.m_localCenterA.y;e=f.col1.x*h+f.col2.x*l;l=f.col1.y*h+f.col2.y*l;h=e;f=b.m_xf.R;var t=this.m_localAnchor2.x-this.m_localCenterB.x, p=this.m_localAnchor2.y-this.m_localCenterB.y;e=f.col1.x*t+f.col2.x*p;p=f.col1.y*t+f.col2.y*p;t=e;f=b.m_sweep.c.x+t-c.m_sweep.c.x-h;e=b.m_sweep.c.y+p-c.m_sweep.c.y-l;this.m_invMassA=c.m_invMass;this.m_invMassB=b.m_invMass;this.m_invIA=c.m_invI;this.m_invIB=b.m_invI;var m=this.m_axis,n=O.mulMV(g.R,this.m_localXAxis1);m.x=n.x;m.y=n.y;this.m_a1=(f+h)*this.m_axis.y-(e+l)*this.m_axis.x;this.m_a2=t*this.m_axis.y-p*this.m_axis.x;this.m_motorMass=this.m_invMassA+this.m_invMassB+this.m_invIA*this.m_a1*this.m_a1+ this.m_invIB*this.m_a2*this.m_a2;this.m_motorMass>Number.MIN_VALUE&&(this.m_motorMass=1/this.m_motorMass);m=this.m_perp;g=O.mulMV(g.R,this.m_localYAxis1);m.x=g.x;m.y=g.y;this.m_s1=(f+h)*this.m_perp.y-(e+l)*this.m_perp.x;this.m_s2=t*this.m_perp.y-p*this.m_perp.x;h=this.m_invMassA;l=this.m_invMassB;t=this.m_invIA;p=this.m_invIB;this.m_K.col1.x=h+l+t*this.m_s1*this.m_s1+p*this.m_s2*this.m_s2;this.m_K.col1.y=t*this.m_s1+p*this.m_s2;this.m_K.col1.z=t*this.m_s1*this.m_a1+p*this.m_s2*this.m_a2;this.m_K.col2.x= this.m_K.col1.y;this.m_K.col2.y=t+p;this.m_K.col2.z=t*this.m_a1+p*this.m_a2;this.m_K.col3.x=this.m_K.col1.z;this.m_K.col3.y=this.m_K.col2.z;this.m_K.col3.z=h+l+t*this.m_a1*this.m_a1+p*this.m_a2*this.m_a2;this.m_enableLimit?(f=this.m_axis.x*f+this.m_axis.y*e,O.abs(this.m_upperTranslation-this.m_lowerTranslation)<2*fa.b2_linearSlop?this.m_limitState=3:f<=this.m_lowerTranslation?1!=this.m_limitState&&(this.m_limitState=1,this.m_impulse.z=0):f>=this.m_upperTranslation?2!=this.m_limitState&&(this.m_limitState= 2,this.m_impulse.z=0):(this.m_limitState=0,this.m_impulse.z=0)):this.m_limitState=0;0==this.m_enableMotor&&(this.m_motorImpulse=0);a.warmStarting?(this.m_impulse.x*=a.dtRatio,this.m_impulse.y*=a.dtRatio,this.m_motorImpulse*=a.dtRatio,a=this.m_impulse.x*this.m_perp.x+(this.m_motorImpulse+this.m_impulse.z)*this.m_axis.x,f=this.m_impulse.x*this.m_perp.y+(this.m_motorImpulse+this.m_impulse.z)*this.m_axis.y,e=this.m_impulse.x*this.m_s1+this.m_impulse.y+(this.m_motorImpulse+this.m_impulse.z)*this.m_a1, h=this.m_impulse.x*this.m_s2+this.m_impulse.y+(this.m_motorImpulse+this.m_impulse.z)*this.m_a2,c.m_linearVelocity.x-=this.m_invMassA*a,c.m_linearVelocity.y-=this.m_invMassA*f,c.m_angularVelocity-=this.m_invIA*e,b.m_linearVelocity.x+=this.m_invMassB*a,b.m_linearVelocity.y+=this.m_invMassB*f,b.m_angularVelocity+=this.m_invIB*h):(this.m_impulse.setZero(),this.m_motorImpulse=0)},solveVelocityConstraints:function(a){var c=this.m_bodyA,b=this.m_bodyB,f=c.m_linearVelocity,e=c.m_angularVelocity,g=b.m_linearVelocity, h=b.m_angularVelocity;if(this.m_enableMotor&&3!=this.m_limitState){var l=this.m_motorMass*(this.m_motorSpeed-(this.m_axis.x*(g.x-f.x)+this.m_axis.y*(g.y-f.y)+this.m_a2*h-this.m_a1*e));var t=this.m_motorImpulse;a=a.dt*this.m_maxMotorForce;this.m_motorImpulse=O.clamp(this.m_motorImpulse+l,-a,a);l=this.m_motorImpulse-t;t=l*this.m_axis.x;a=l*this.m_axis.y;var p=l*this.m_a1;l*=this.m_a2;f.x-=this.m_invMassA*t;f.y-=this.m_invMassA*a;e-=this.m_invIA*p;g.x+=this.m_invMassB*t;g.y+=this.m_invMassB*a;h+=this.m_invIB* l}p=this.m_perp.x*(g.x-f.x)+this.m_perp.y*(g.y-f.y)+this.m_s2*h-this.m_s1*e;a=h-e;this.m_enableLimit&&0!=this.m_limitState?(l=this.m_axis.x*(g.x-f.x)+this.m_axis.y*(g.y-f.y)+this.m_a2*h-this.m_a1*e,t=this.m_impulse.copy(),l=this.m_K.solve33(new uf,-p,-a,-l),this.m_impulse.add(l),1==this.m_limitState?this.m_impulse.z=O.max(this.m_impulse.z,0):2==this.m_limitState&&(this.m_impulse.z=O.min(this.m_impulse.z,0)),p=-p-(this.m_impulse.z-t.z)*this.m_K.col3.x,a=-a-(this.m_impulse.z-t.z)*this.m_K.col3.y,a= this.m_K.solve22(new M,p,a),a.x+=t.x,a.y+=t.y,this.m_impulse.x=a.x,this.m_impulse.y=a.y,l.x=this.m_impulse.x-t.x,l.y=this.m_impulse.y-t.y,l.z=this.m_impulse.z-t.z,t=l.x*this.m_perp.x+l.z*this.m_axis.x,a=l.x*this.m_perp.y+l.z*this.m_axis.y,p=l.x*this.m_s1+l.y+l.z*this.m_a1,l=l.x*this.m_s2+l.y+l.z*this.m_a2):(l=this.m_K.solve22(new M,-p,-a),this.m_impulse.x+=l.x,this.m_impulse.y+=l.y,t=l.x*this.m_perp.x,a=l.x*this.m_perp.y,p=l.x*this.m_s1+l.y,l=l.x*this.m_s2+l.y);f.x-=this.m_invMassA*t;f.y-=this.m_invMassA* a;e-=this.m_invIA*p;g.x+=this.m_invMassB*t;g.y+=this.m_invMassB*a;h+=this.m_invIB*l;l=c.m_linearVelocity;l.x=f.x;l.y=f.y;c.m_angularVelocity=e;c=b.m_linearVelocity;c.x=g.x;c.y=g.y;b.m_angularVelocity=h},solvePositionConstraints:function(a){a=this.m_bodyA;var c=this.m_bodyB,b=a.m_sweep.c,f=a.m_sweep.a,e=c.m_sweep.c,g=c.m_sweep.a,h=0;var l=!1;var t=0,p=Mc.fromAngle(f),m=Mc.fromAngle(g);var n=p;var k=this.m_localAnchor1.x-this.m_localCenterA.x;var q=this.m_localAnchor1.y-this.m_localCenterA.y;var u= n.col1.x*k+n.col2.x*q;q=n.col1.y*k+n.col2.y*q;k=u;n=m;m=this.m_localAnchor2.x-this.m_localCenterB.x;var v=this.m_localAnchor2.y-this.m_localCenterB.y;u=n.col1.x*m+n.col2.x*v;v=n.col1.y*m+n.col2.y*v;m=u;n=e.x+m-b.x-k;u=e.y+v-b.y-q;if(this.m_enableLimit){this.m_axis=O.mulMV(p,this.m_localXAxis1);this.m_a1=(n+k)*this.m_axis.y-(u+q)*this.m_axis.x;this.m_a2=m*this.m_axis.y-v*this.m_axis.x;var w=this.m_axis.x*n+this.m_axis.y*u;O.abs(this.m_upperTranslation-this.m_lowerTranslation)<2*fa.b2_linearSlop?(t= O.clamp(w,-fa.b2_maxLinearCorrection,fa.b2_maxLinearCorrection),h=O.abs(w),l=!0):w<=this.m_lowerTranslation?(t=O.clamp(w-this.m_lowerTranslation+fa.b2_linearSlop,-fa.b2_maxLinearCorrection,0),h=this.m_lowerTranslation-w,l=!0):w>=this.m_upperTranslation&&(t=O.clamp(w-this.m_upperTranslation+fa.b2_linearSlop,0,fa.b2_maxLinearCorrection),h=w-this.m_upperTranslation,l=!0)}this.m_perp=O.mulMV(p,this.m_localYAxis1);this.m_s1=(n+k)*this.m_perp.y-(u+q)*this.m_perp.x;this.m_s2=m*this.m_perp.y-v*this.m_perp.x; p=new uf;q=this.m_perp.x*n+this.m_perp.y*u;m=g-f-this.m_refAngle;h=O.max(h,O.abs(q));k=O.abs(m);l?(l=this.m_invMassA,v=this.m_invMassB,n=this.m_invIA,u=this.m_invIB,this.m_K.col1.x=l+v+n*this.m_s1*this.m_s1+u*this.m_s2*this.m_s2,this.m_K.col1.y=n*this.m_s1+u*this.m_s2,this.m_K.col1.z=n*this.m_s1*this.m_a1+u*this.m_s2*this.m_a2,this.m_K.col2.x=this.m_K.col1.y,this.m_K.col2.y=n+u,this.m_K.col2.z=n*this.m_a1+u*this.m_a2,this.m_K.col3.x=this.m_K.col1.z,this.m_K.col3.y=this.m_K.col2.z,this.m_K.col3.z= l+v+n*this.m_a1*this.m_a1+u*this.m_a2*this.m_a2,this.m_K.solve33(p,-q,-m,-t)):(l=this.m_invMassA,v=this.m_invMassB,n=this.m_invIA,u=this.m_invIB,t=n*this.m_s1+u*this.m_s2,w=n+u,this.m_K.col1.set(l+v+n*this.m_s1*this.m_s1+u*this.m_s2*this.m_s2,t,0),this.m_K.col2.set(t,w,0),t=this.m_K.solve22(new M,-q,-m),p.x=t.x,p.y=t.y,p.z=0);t=p.x*this.m_perp.x+p.z*this.m_axis.x;l=p.x*this.m_perp.y+p.z*this.m_axis.y;q=p.x*this.m_s1+p.y+p.z*this.m_a1;p=p.x*this.m_s2+p.y+p.z*this.m_a2;b.x-=this.m_invMassA*t;b.y-=this.m_invMassA* l;f-=this.m_invIA*q;e.x+=this.m_invMassB*t;e.y+=this.m_invMassB*l;g+=this.m_invIB*p;a.m_sweep.a=f;c.m_sweep.a=g;a.synchronizeTransform();c.synchronizeTransform();return h<=fa.b2_linearSlop?k<=fa.b2_angularSlop:!1},m_localAnchor1:null,m_localAnchor2:null,m_localXAxis1:null,m_localYAxis1:null,m_refAngle:null,m_axis:null,m_perp:null,m_s1:null,m_s2:null,m_a1:null,m_a2:null,m_K:null,m_impulse:null,m_motorMass:null,m_motorImpulse:null,m_lowerTranslation:null,m_upperTranslation:null,m_maxMotorForce:null, m_motorSpeed:null,m_enableLimit:null,m_enableMotor:null,m_limitState:null,__class__:kj});var lm=function(){jd.call(this);this.localAnchorA=new M;this.localAnchorB=new M;this.localAxisA=new M;this.type=2;var a=this.localAxisA,c=1,b=0;null==b&&(b=0);null==c&&(c=0);a.x=c;a.y=b;this.referenceAngle=0;this.enableLimit=!1;this.upperTranslation=this.lowerTranslation=0;this.enableMotor=!1;this.motorSpeed=this.maxMotorForce=0};k["box2D.dynamics.joints.B2PrismaticJointDef"]=lm;lm.__name__="box2D.dynamics.joints.B2PrismaticJointDef"; lm.__super__=jd;lm.prototype=r(jd.prototype,{initialize:function(a,c,b,f){this.bodyA=a;this.bodyB=c;this.localAnchorA=this.bodyA.getLocalPoint(b);this.localAnchorB=this.bodyB.getLocalPoint(b);this.localAxisA=this.bodyA.getLocalVector(f);this.referenceAngle=this.bodyB.getAngle()-this.bodyA.getAngle()},localAnchorA:null,localAnchorB:null,localAxisA:null,referenceAngle:null,enableLimit:null,lowerTranslation:null,upperTranslation:null,enableMotor:null,maxMotorForce:null,motorSpeed:null,__class__:lm}); var Sg=function(a){Yb.call(this,a);this.m_groundAnchor1=new M;this.m_groundAnchor2=new M;this.m_localAnchor1=new M;this.m_localAnchor2=new M;this.m_u1=new M;this.m_u2=new M;this.m_ground=this.m_bodyA.m_world.m_groundBody;this.m_groundAnchor1.x=a.groundAnchorA.x-this.m_ground.m_xf.position.x;this.m_groundAnchor1.y=a.groundAnchorA.y-this.m_ground.m_xf.position.y;this.m_groundAnchor2.x=a.groundAnchorB.x-this.m_ground.m_xf.position.x;this.m_groundAnchor2.y=a.groundAnchorB.y-this.m_ground.m_xf.position.y; var c=this.m_localAnchor1,b=a.localAnchorA;c.x=b.x;c.y=b.y;c=this.m_localAnchor2;b=a.localAnchorB;c.x=b.x;c.y=b.y;this.m_ratio=a.ratio;this.m_constant=a.lengthA+this.m_ratio*a.lengthB;this.m_maxLength1=O.min(a.maxLengthA,this.m_constant-this.m_ratio*Sg.b2_minPulleyLength);this.m_maxLength2=O.min(a.maxLengthB,(this.m_constant-Sg.b2_minPulleyLength)/this.m_ratio);this.m_limitImpulse2=this.m_limitImpulse1=this.m_impulse=0};k["box2D.dynamics.joints.B2PulleyJoint"]=Sg;Sg.__name__="box2D.dynamics.joints.B2PulleyJoint"; Sg.__super__=Yb;Sg.prototype=r(Yb.prototype,{getAnchorA:function(){return this.m_bodyA.getWorldPoint(this.m_localAnchor1)},getAnchorB:function(){return this.m_bodyB.getWorldPoint(this.m_localAnchor2)},getReactionForce:function(a){return new M(a*this.m_impulse*this.m_u2.x,a*this.m_impulse*this.m_u2.y)},getReactionTorque:function(a){return 0},getGroundAnchorA:function(){var a=this.m_ground.m_xf.position.copy();a.add(this.m_groundAnchor1);return a},getGroundAnchorB:function(){var a=this.m_ground.m_xf.position.copy(); a.add(this.m_groundAnchor2);return a},getLength1:function(){var a=this.m_bodyA.getWorldPoint(this.m_localAnchor1),c=a.x-(this.m_ground.m_xf.position.x+this.m_groundAnchor1.x);a=a.y-(this.m_ground.m_xf.position.y+this.m_groundAnchor1.y);return Math.sqrt(c*c+a*a)},getLength2:function(){var a=this.m_bodyB.getWorldPoint(this.m_localAnchor2),c=a.x-(this.m_ground.m_xf.position.x+this.m_groundAnchor2.x);a=a.y-(this.m_ground.m_xf.position.y+this.m_groundAnchor2.y);return Math.sqrt(c*c+a*a)},getRatio:function(){return this.m_ratio}, initVelocityConstraints:function(a){var c=this.m_bodyA,b=this.m_bodyB,f=c.m_xf.R,e=this.m_localAnchor1.x-c.m_sweep.localCenter.x,g=this.m_localAnchor1.y-c.m_sweep.localCenter.y,h=f.col1.x*e+f.col2.x*g;g=f.col1.y*e+f.col2.y*g;e=h;f=b.m_xf.R;var l=this.m_localAnchor2.x-b.m_sweep.localCenter.x,t=this.m_localAnchor2.y-b.m_sweep.localCenter.y;h=f.col1.x*l+f.col2.x*t;t=f.col1.y*l+f.col2.y*t;l=h;var p=b.m_sweep.c.x+l;f=b.m_sweep.c.y+t;var m=this.m_ground.m_xf.position.x+this.m_groundAnchor2.x;h=this.m_ground.m_xf.position.y+ this.m_groundAnchor2.y;var n=this.m_u1,k=c.m_sweep.c.x+e-(this.m_ground.m_xf.position.x+this.m_groundAnchor1.x),q=c.m_sweep.c.y+g-(this.m_ground.m_xf.position.y+this.m_groundAnchor1.y);null==q&&(q=0);null==k&&(k=0);n.x=k;n.y=q;n=this.m_u2;p-=m;f-=h;null==f&&(f=0);null==p&&(p=0);n.x=p;n.y=f;f=this.m_u1.length();h=this.m_u2.length();f>fa.b2_linearSlop?this.m_u1.multiply(1/f):(p=this.m_u1,p.x=0,p.y=0);h>fa.b2_linearSlop?this.m_u2.multiply(1/h):(p=this.m_u2,p.x=0,p.y=0);0fa.b2_linearSlop?this.m_u1.multiply(1/ l):(u=this.m_u1,u.x=0,u.y=0);m>fa.b2_linearSlop?this.m_u2.multiply(1/m):(u=this.m_u2,u.x=0,u.y=0);l=this.m_constant-l-this.m_ratio*m;h=O.max(h,-l);l=O.clamp(l+fa.b2_linearSlop,-fa.b2_maxLinearCorrection,0);l*=-this.m_pulleyMass;q=-l*this.m_u1.x;u=-l*this.m_u1.y;m=-this.m_ratio*l*this.m_u2.x;l=-this.m_ratio*l*this.m_u2.y;c.m_sweep.c.x+=c.m_invMass*q;c.m_sweep.c.y+=c.m_invMass*u;c.m_sweep.a+=c.m_invI*(t*u-p*q);a.m_sweep.c.x+=a.m_invMass*m;a.m_sweep.c.y+=a.m_invMass*l;a.m_sweep.a+=a.m_invI*(n*l-k*m); c.synchronizeTransform();a.synchronizeTransform()}2==this.m_limitState1&&(l=c.m_xf.R,t=this.m_localAnchor1.x-c.m_sweep.localCenter.x,p=this.m_localAnchor1.y-c.m_sweep.localCenter.y,m=l.col1.x*t+l.col2.x*p,p=l.col1.y*t+l.col2.y*p,t=m,q=c.m_sweep.c.x+t,u=c.m_sweep.c.y+p,n=this.m_u1,k=q-b,f=u-f,null==f&&(f=0),null==k&&(k=0),n.x=k,n.y=f,l=this.m_u1.length(),l>fa.b2_linearSlop?(this.m_u1.x*=1/l,this.m_u1.y*=1/l):(n=this.m_u1,n.x=0,n.y=0),l=this.m_maxLength1-l,h=O.max(h,-l),l=O.clamp(l+fa.b2_linearSlop, -fa.b2_maxLinearCorrection,0),l*=-this.m_limitMass1,q=-l*this.m_u1.x,u=-l*this.m_u1.y,c.m_sweep.c.x+=c.m_invMass*q,c.m_sweep.c.y+=c.m_invMass*u,c.m_sweep.a+=c.m_invI*(t*u-p*q),c.synchronizeTransform());2==this.m_limitState2&&(l=a.m_xf.R,n=this.m_localAnchor2.x-a.m_sweep.localCenter.x,k=this.m_localAnchor2.y-a.m_sweep.localCenter.y,m=l.col1.x*n+l.col2.x*k,k=l.col1.y*n+l.col2.y*k,n=m,m=a.m_sweep.c.x+n,l=a.m_sweep.c.y+k,c=this.m_u2,e=m-e,g=l-g,null==g&&(g=0),null==e&&(e=0),c.x=e,c.y=g,m=this.m_u2.length(), m>fa.b2_linearSlop?(this.m_u2.x*=1/m,this.m_u2.y*=1/m):(g=this.m_u2,g.x=0,g.y=0),l=this.m_maxLength2-m,h=O.max(h,-l),l=O.clamp(l+fa.b2_linearSlop,-fa.b2_maxLinearCorrection,0),l*=-this.m_limitMass2,m=-l*this.m_u2.x,l=-l*this.m_u2.y,a.m_sweep.c.x+=a.m_invMass*m,a.m_sweep.c.y+=a.m_invMass*l,a.m_sweep.a+=a.m_invI*(n*l-k*m),a.synchronizeTransform());return h=this.m_upperAngle? (2!=this.m_limitState&&(this.m_impulse.z=0),this.m_limitState=2):(this.m_limitState=0,this.m_impulse.z=0)}else this.m_limitState=0;a.warmStarting?(this.m_impulse.x*=a.dtRatio,this.m_impulse.y*=a.dtRatio,this.m_motorImpulse*=a.dtRatio,a=this.m_impulse.x,n=this.m_impulse.y,c.m_linearVelocity.x-=f*a,c.m_linearVelocity.y-=f*n,c.m_angularVelocity-=p*(e*n-g*a+this.m_motorImpulse+this.m_impulse.z),b.m_linearVelocity.x+=h*a,b.m_linearVelocity.y+=h*n,b.m_angularVelocity+=m*(l*n-t*a+this.m_motorImpulse+this.m_impulse.z)): (this.m_impulse.setZero(),this.m_motorImpulse=0)},impulse3:null,impulse2:null,reduced:null,solveVelocityConstraints:function(a){var c=this.m_bodyA,b=this.m_bodyB,f=c.m_linearVelocity,e=c.m_angularVelocity,g=b.m_linearVelocity,h=b.m_angularVelocity,l=c.m_invMass,t=b.m_invMass,p=c.m_invI,m=b.m_invI;if(this.m_enableMotor&&3!=this.m_limitState){var n=this.m_motorMass*-(h-e-this.m_motorSpeed);var k=this.m_motorImpulse;a=a.dt*this.m_maxMotorTorque;this.m_motorImpulse=O.clamp(this.m_motorImpulse+n,-a,a); n=this.m_motorImpulse-k;e-=p*n;h+=m*n}if(this.m_enableLimit&&0!=this.m_limitState){var q=c.m_xf.R;n=this.m_localAnchor1.x-c.m_sweep.localCenter.x;k=this.m_localAnchor1.y-c.m_sweep.localCenter.y;var u=q.col1.x*n+q.col2.x*k;k=q.col1.y*n+q.col2.y*k;n=u;q=b.m_xf.R;a=this.m_localAnchor2.x-b.m_sweep.localCenter.x;var v=this.m_localAnchor2.y-b.m_sweep.localCenter.y;u=q.col1.x*a+q.col2.x*v;v=q.col1.y*a+q.col2.y*v;a=u;u=g.x+-h*v-f.x- -e*k;var w=g.y+h*a-f.y-e*n;this.m_mass.solve33(this.impulse3,-u,-w,-(h-e)); 3==this.m_limitState?this.m_impulse.add(this.impulse3):1==this.m_limitState?(q=this.m_impulse.z+this.impulse3.z,0>q&&(this.m_mass.solve22(this.reduced,-u,-w),this.impulse3.x=this.reduced.x,this.impulse3.y=this.reduced.y,this.impulse3.z=-this.m_impulse.z,this.m_impulse.x+=this.reduced.x,this.m_impulse.y+=this.reduced.y,this.m_impulse.z=0)):2==this.m_limitState&&(q=this.m_impulse.z+this.impulse3.z,0v*v&&(n=1/(h+k),p=n*-p,m=n*-m,a.m_sweep.c.x-=.5*h*p,a.m_sweep.c.y-=.5*h*m,c.m_sweep.c.x+=.5*k*p,c.m_sweep.c.y+=.5*k*m,p=c.m_sweep.c.x+l-a.m_sweep.c.x-e,m=c.m_sweep.c.y+t-a.m_sweep.c.y-f);this.K1.col1.x=h+k;this.K1.col2.x=0;this.K1.col1.y=0;this.K1.col2.y= h+k;this.K2.col1.x=q*f*f;this.K2.col2.x=-q*e*f;this.K2.col1.y=-q*e*f;this.K2.col2.y=q*e*e;this.K3.col1.x=u*t*t;this.K3.col2.x=-u*l*t;this.K3.col1.y=-u*l*t;this.K3.col2.y=u*l*l;this.K.setM(this.K1);this.K.addM(this.K2);this.K.addM(this.K3);this.K.solve(Ag.tImpulse,-p,-m);p=Ag.tImpulse.x;m=Ag.tImpulse.y;a.m_sweep.c.x-=a.m_invMass*p;a.m_sweep.c.y-=a.m_invMass*m;a.m_sweep.a-=a.m_invI*(e*m-f*p);c.m_sweep.c.x+=c.m_invMass*p;c.m_sweep.c.y+=c.m_invMass*m;c.m_sweep.a+=c.m_invI*(l*m-t*p);a.synchronizeTransform(); c.synchronizeTransform();return g<=fa.b2_linearSlop?b<=fa.b2_angularSlop:!1},m_localAnchor1:null,m_localAnchor2:null,m_impulse:null,m_motorImpulse:null,m_mass:null,m_motorMass:null,m_enableMotor:null,m_maxMotorTorque:null,m_motorSpeed:null,m_enableLimit:null,m_referenceAngle:null,m_lowerAngle:null,m_upperAngle:null,m_limitState:null,__class__:Ag});var zi=function(){jd.call(this);this.localAnchorA=new M;this.localAnchorB=new M;this.type=1;var a=this.localAnchorA,c=0,b=0;null==b&&(b=0);null==c&&(c= 0);a.x=c;a.y=b;a=this.localAnchorB;b=c=0;null==b&&(b=0);null==c&&(c=0);a.x=c;a.y=b;this.motorSpeed=this.maxMotorTorque=this.upperAngle=this.lowerAngle=this.referenceAngle=0;this.enableMotor=this.enableLimit=!1};k["box2D.dynamics.joints.B2RevoluteJointDef"]=zi;zi.__name__="box2D.dynamics.joints.B2RevoluteJointDef";zi.__super__=jd;zi.prototype=r(jd.prototype,{initialize:function(a,c,b){this.bodyA=a;this.bodyB=c;this.localAnchorA=this.bodyA.getLocalPoint(b);this.localAnchorB=this.bodyB.getLocalPoint(b); this.referenceAngle=this.bodyB.getAngle()-this.bodyA.getAngle()},localAnchorA:null,localAnchorB:null,referenceAngle:null,enableLimit:null,lowerAngle:null,upperAngle:null,enableMotor:null,motorSpeed:null,maxMotorTorque:null,__class__:zi});var pm=function(a){Yb.call(this,a);this.m_localAnchorA=new M;this.m_localAnchorB=new M;this.m_impulse=new uf;this.m_mass=new wi;var c=this.m_localAnchorA,b=a.localAnchorA;c.x=b.x;c.y=b.y;c=this.m_localAnchorB;b=a.localAnchorB;c.x=b.x;c.y=b.y;this.m_referenceAngle= a.referenceAngle;this.m_impulse.setZero();this.m_mass=new wi};k["box2D.dynamics.joints.B2WeldJoint"]=pm;pm.__name__="box2D.dynamics.joints.B2WeldJoint";pm.__super__=Yb;pm.prototype=r(Yb.prototype,{getAnchorA:function(){return this.m_bodyA.getWorldPoint(this.m_localAnchorA)},getAnchorB:function(){return this.m_bodyB.getWorldPoint(this.m_localAnchorB)},getReactionForce:function(a){return new M(a*this.m_impulse.x,a*this.m_impulse.y)},getReactionTorque:function(a){return a*this.m_impulse.z},initVelocityConstraints:function(a){var c= this.m_bodyA,b=this.m_bodyB,f=c.m_xf.R,e=this.m_localAnchorA.x-c.m_sweep.localCenter.x,g=this.m_localAnchorA.y-c.m_sweep.localCenter.y,h=f.col1.x*e+f.col2.x*g;g=f.col1.y*e+f.col2.y*g;e=h;f=b.m_xf.R;var l=this.m_localAnchorB.x-b.m_sweep.localCenter.x,t=this.m_localAnchorB.y-b.m_sweep.localCenter.y;h=f.col1.x*l+f.col2.x*t;t=f.col1.y*l+f.col2.y*t;l=h;f=c.m_invMass;h=b.m_invMass;var p=c.m_invI,m=b.m_invI;this.m_mass.col1.x=f+h+g*g*p+t*t*m;this.m_mass.col2.x=-g*e*p-t*l*m;this.m_mass.col3.x=-g*p-t*m;this.m_mass.col1.y= this.m_mass.col2.x;this.m_mass.col2.y=f+h+e*e*p+l*l*m;this.m_mass.col3.y=e*p+l*m;this.m_mass.col1.z=this.m_mass.col3.x;this.m_mass.col2.z=this.m_mass.col3.y;this.m_mass.col3.z=p+m;a.warmStarting?(this.m_impulse.x*=a.dtRatio,this.m_impulse.y*=a.dtRatio,this.m_impulse.z*=a.dtRatio,c.m_linearVelocity.x-=f*this.m_impulse.x,c.m_linearVelocity.y-=f*this.m_impulse.y,c.m_angularVelocity-=p*(e*this.m_impulse.y-g*this.m_impulse.x+this.m_impulse.z),b.m_linearVelocity.x+=h*this.m_impulse.x,b.m_linearVelocity.y+= h*this.m_impulse.y,b.m_angularVelocity+=m*(l*this.m_impulse.y-t*this.m_impulse.x+this.m_impulse.z)):this.m_impulse.setZero()},solveVelocityConstraints:function(a){a=this.m_bodyA;var c=this.m_bodyB,b=a.m_linearVelocity,f=a.m_angularVelocity,e=c.m_linearVelocity,g=c.m_angularVelocity,h=a.m_invMass,l=c.m_invMass,t=a.m_invI,p=c.m_invI,m=a.m_xf.R,n=this.m_localAnchorA.x-a.m_sweep.localCenter.x,k=this.m_localAnchorA.y-a.m_sweep.localCenter.y,q=m.col1.x*n+m.col2.x*k;k=m.col1.y*n+m.col2.y*k;n=q;m=c.m_xf.R; var u=this.m_localAnchorB.x-c.m_sweep.localCenter.x,v=this.m_localAnchorB.y-c.m_sweep.localCenter.y;q=m.col1.x*u+m.col2.x*v;v=m.col1.y*u+m.col2.y*v;u=q;m=e.x-g*v-b.x+f*k;q=e.y+g*u-b.y-f*n;var w=g-f,r=new uf;this.m_mass.solve33(r,-m,-q,-w);this.m_impulse.add(r);b.x-=h*r.x;b.y-=h*r.y;f-=t*(n*r.y-k*r.x+r.z);e.x+=l*r.x;e.y+=l*r.y;g+=p*(u*r.y-v*r.x+r.z);a.m_angularVelocity=f;c.m_angularVelocity=g},solvePositionConstraints:function(a){a=this.m_bodyA;var c=this.m_bodyB,b=a.m_xf.R,f=this.m_localAnchorA.x- a.m_sweep.localCenter.x,e=this.m_localAnchorA.y-a.m_sweep.localCenter.y,g=b.col1.x*f+b.col2.x*e;e=b.col1.y*f+b.col2.y*e;f=g;b=c.m_xf.R;var h=this.m_localAnchorB.x-c.m_sweep.localCenter.x,l=this.m_localAnchorB.y-c.m_sweep.localCenter.y;g=b.col1.x*h+b.col2.x*l;l=b.col1.y*h+b.col2.y*l;h=g;b=a.m_invMass;g=c.m_invMass;var t=a.m_invI,p=c.m_invI,m=c.m_sweep.c.x+h-a.m_sweep.c.x-f,n=c.m_sweep.c.y+l-a.m_sweep.c.y-e,k=c.m_sweep.a-a.m_sweep.a-this.m_referenceAngle,q=10*fa.b2_linearSlop,u=Math.sqrt(m*m+n*n),v= O.abs(k);u>q&&(t*=1,p*=1);this.m_mass.col1.x=b+g+e*e*t+l*l*p;this.m_mass.col2.x=-e*f*t-l*h*p;this.m_mass.col3.x=-e*t-l*p;this.m_mass.col1.y=this.m_mass.col2.x;this.m_mass.col2.y=b+g+f*f*t+h*h*p;this.m_mass.col3.y=f*t+h*p;this.m_mass.col1.z=this.m_mass.col3.x;this.m_mass.col2.z=this.m_mass.col3.y;this.m_mass.col3.z=t+p;q=new uf;this.m_mass.solve33(q,-m,-n,-k);a.m_sweep.c.x-=b*q.x;a.m_sweep.c.y-=b*q.y;a.m_sweep.a-=t*(f*q.y-e*q.x+q.z);c.m_sweep.c.x+=g*q.x;c.m_sweep.c.y+=g*q.y;c.m_sweep.a+=p*(h*q.y-l* q.x+q.z);a.synchronizeTransform();c.synchronizeTransform();return u<=fa.b2_linearSlop?v<=fa.b2_angularSlop:!1},m_localAnchorA:null,m_localAnchorB:null,m_referenceAngle:null,m_impulse:null,m_mass:null,__class__:pm});var qm=function(){jd.call(this);this.localAnchorA=new M;this.localAnchorB=new M;this.type=8;this.referenceAngle=0};k["box2D.dynamics.joints.B2WeldJointDef"]=qm;qm.__name__="box2D.dynamics.joints.B2WeldJointDef";qm.__super__=jd;qm.prototype=r(jd.prototype,{initialize:function(a,c,b){this.bodyA= a;this.bodyB=c;a=this.localAnchorA;c=this.bodyA.getLocalPoint(b);a.x=c.x;a.y=c.y;a=this.localAnchorB;b=this.bodyB.getLocalPoint(b);a.x=b.x;a.y=b.y;this.referenceAngle=this.bodyB.getAngle()-this.bodyA.getAngle()},localAnchorA:null,localAnchorB:null,referenceAngle:null,__class__:qm});var Rp=function(){this.stringMapCloner=new tm(this,sa);this.intMapCloner=new tm(this,Xa);var a=this.classHandles=new sa,c=x(this,this.returnString);null!=v.String?a.setReserved("String",c):a.h.String=c;a=this.classHandles; c=x(this,this.cloneArray);null!=v.Array?a.setReserved("Array",c):a.h.Array=c;a=(y=this.stringMapCloner,x(y,y.clone));c=this.classHandles;null!=v["haxe.ds.StringMap"]?c.setReserved("haxe.ds.StringMap",a):c.h["haxe.ds.StringMap"]=a;a=(y=this.intMapCloner,x(y,y.clone));c=this.classHandles;null!=v["haxe.ds.IntMap"]?c.setReserved("haxe.ds.IntMap",a):c.h["haxe.ds.IntMap"]=a};k["cloner.Cloner"]=Rp;Rp.__name__="cloner.Cloner";Rp.prototype={cache:null,classHandles:null,stringMapCloner:null,intMapCloner:null, returnString:function(a){return a},clone:function(a){this.cache=new ib;a=this._clone(a);this.cache=null;return a},_clone:function(a){if("string"==typeof a)return a;try{if(null!=a.__name__)return a}catch(d){ha.lastException=d}var c=Ua.typeof(a);switch(c._hx_index){case 0:return null;case 1:return a;case 2:return a;case 3:return a;case 4:return this.handleAnonymous(a);case 5:return null;case 6:return c=c.c,null==this.cache.h.__keys__[a.__id__]&&this.cache.set(a,this.handleClass(c,a)),this.cache.h[a.__id__]; case 7:return a;case 8:return null}},handleAnonymous:function(a){for(var c=Y.fields(a),b={},f=0,e=c.length;fthis.ms_prev?(this.mem=9.54E-7*Cg.get_totalMemory(),this.mem_max=this.mem_max> this.mem?this.mem_max:this.mem,this.fps_graph=50-(Math.min(50,this.fps/this._stage.get_frameRate()*50)|0),this.mem_graph=50-this.normalizeMem(this.mem),this.mem_max_graph=50-this.normalizeMem(this.mem_max),this.ms_graph=50-(this.timer-this.ms>>1)|0,this.graph.scroll(-1,0),this.get_graphics().clear(),this.get_graphics().beginFill(51),this.get_graphics().drawRect(0,0,70,50),this.get_graphics().endFill(),this.get_graphics().beginBitmapFill(this.graph,new Ha(1,0,0,1,0,50)),this.get_graphics().drawRect(0, 50,70,50),this.get_graphics().endFill(),this.graph.fillRect(this.rectangle,51),this.graph.lock(),this.graph.setPixel(69,this.fps_graph,16776960),this.graph.setPixel(69,this.mem_graph,65535),this.graph.setPixel(69,this.mem_max_graph,16711792),this.graph.setPixel(69,this.ms_graph,65280),this.graph.unlock(),60"+ this.fpsStr+"
"+this.memStr+"
"+this.memMaxStr+"")):(this.fps++,this.ms=this.timer)},normalizeMem:function(a){return Math.min(50,Math.sqrt(Math.sqrt(5E3*a)))-2|0},__class__:sh});var Tg=function(){};k["com.nmefermmmtools.debug.Colors"]=Tg;Tg.__name__="com.nmefermmmtools.debug.Colors";var Th=function(){};k["com.stencyl.APIKeys"]=Th;Th.__name__="com.stencyl.APIKeys";var oa=function(){};k["com.stencyl.Config"]=oa;oa.__name__="com.stencyl.Config"; oa.load=function(){var a=R.getConfigText("config/game-config.json");oa.loadFromString(a)};oa.loadMap=function(a,c){for(var b=0,f=Y.fields(a);b=m.cameraX/m.SCALE- m.paddingLeft&&p.colY+p.cacheHeight>=m.cameraY/m.SCALE-m.paddingTop&&p.colX=this.shakeTimer?this.stopShakingScreen():(a=-this.shakeIntensity*m.screenHeight+2*Math.random()*this.shakeIntensity*m.screenHeight,this.master.set_x((-this.shakeIntensity*m.screenWidth+2*Math.random()*this.shakeIntensity*m.screenWidth)*m.SCALE),this.master.set_y(a*m.SCALE)))}},onUpdate:function(a){a=$a.getTimer();var c=a-this.lastTime;200<=c&&(c=200);this.acc+=c;m.elapsedTime= c;m.totalElapsedTime+=c|0;null!=this.leave?(this.leave.isComplete()&&(this.leave.deactivate(),this.enterScene()),this.postUpdate(a)):(null!=this.enter&&this.enter.isComplete()&&(this.enter.deactivate(),this.enter.cleanup(),this.enter=null),this.sceneInitialized&&this.postUpdate(a))},postUpdate:function(a){for(;this.acc>m.STEP_SIZE;)this.update(m.STEP_SIZE),this.acc-=m.STEP_SIZE,Q.update();this.lastTime=a;if(0!=this.allActors.mSize)for(a=this.allActors.iterator();a.hasNext();){var c=a.next();null== c||0==c.physicsMode&&null==c.body||(c.dead||c.dying?this.removeActor(c):c.updateMatrix||c.resetOrigin?(c.updateDrawingMatrix(),c.updateMatrix=!1,c.resetOrigin=!1):c.smoothMove&&(c.drawX!=c.realX||c.drawY!=c.realY)&&c.updateDrawingMatrix())}this.draw()},onFocus:function(a){m.inFocus||(m.inFocus=!0,this.focusChanged(!1))},onFocusLost:function(a){m.inFocus&&(m.inFocus=!1,this.focusChanged(!0))},focusChanged:function(a){if(null!=this.whenFocusChangedListeners)for(var c=this.whenFocusChangedListeners, b=0;b=a||this.zoomMultiplier==a||(this.zoomMultiplier=a,this.root.set_scaleX(m.screenScaleX=a*m.unzoomedScaleX),this.root.set_scaleY(m.screenScaleY=a*m.unzoomedScaleY),c&&(m.screenWidth=1/a*da.logicalWidth|0,m.screenWidthHalf=m.screenWidth/2|0,m.screenHeight=1/a*da.logicalHeight|0,m.screenHeightHalf=m.screenHeight/2|0),this.setColorBackground(this.scene.colorBackground),this.root.set_scrollRect(new ia(0, 0,m.screenWidth*m.SCALE,m.screenHeight*m.SCALE)),this.moveCamera(this.camera.realX,this.camera.realY),this.isHUDZoomable||(this.hudLayer.set_scaleX(1/a),this.hudLayer.set_scaleY(1/a)))},pause:function(){if(!this.isTransitioning()){m.paused=!0;if(0!=this.allActors.mSize)for(var a=this.allActors.keys();a.hasNext();){var c=a.next(),b=this.allActors,f=b.mH,e=f.mHash[73856093*c&f.mMask];if(-1==e)c=-2147483648;else if(f=f.mData,f[e]==c)c=f[e+1];else{var g=-2147483648;for(e=f[e+2];-1!=e;){if(f[e]==c){g= f[e+1];break}e=f[e+2]}c=g}b=-2147483648==c?null:b.mVals[c];null!=b&&b.pause()}a=this.whenPausedListeners;for(b=0;bc&&(c=0);c>this.master.get_numChildren()-1&&(c=this.master.get_numChildren()-1);a.order!=c&&(this.master.setChildIndex(a,c),this.refreshLayers())},getNextLayerID:function(){for(var a= -1,c=this.layers.iterator();c.hasNext();){var b=c.next();a=Math.max(a,b.ID)|0}return a+1},insertLayer:function(a,c){this.master.addChildAt(a,c);a instanceof le?this.backgroundLayers.push(S.__cast(a,le)):a instanceof Jc&&this.interactiveLayers.push(S.__cast(a,Jc));this.layers.set(a.ID,a);c=a.layerName;var b=this.layersByName;null!=v[c]?b.setReserved(c,a):b.h[c]=a;this.refreshLayers()},removeLayer:function(a){this.master.removeChild(a);a instanceof le?A.remove(this.backgroundLayers,S.__cast(a,le)): a instanceof Jc&&A.remove(this.interactiveLayers,S.__cast(a,Jc));this.layers.unset(a.ID);this.layersByName.remove(a.layerName);this.refreshLayers()},refreshLayers:function(){for(var a=!1,c=!1,b=0,f=0,e=this.master.get_numChildren();f=a.y?2:3:Math.abs(a.x)>Math.abs(a.y)&&(Q._swipeDirection=0>=a.x?0:1)};Q.controlPressed=function(a,c){if(null!=a)if(a.down)a.pressure=c;else if(a.down=!0,a.pressed=!0,a.pressure=c,Q._controlsToReset.push(a),m.engine.keyPollOccurred&&(a=a.name,c=m.engine.whenKeyPressedListeners,a=null!=v[a]?c.getReserved(a):c.h[a],null!=a))for(c=0;c=a)return String.fromCodePoint(a);if(112<=a&&126>=a)return"F"+N.string(a-111);if(96<=a&&105>=a)return"NUMPAD "+N.string(a-96);switch(a){case 8:return"BACKSPACE";case 9:return"TAB";case 13:return"ENTER";case 15:return"COMMAND";case 16:return"SHIFT";case 17:return"CONTROL"; case 20:return"CAPS LOCK";case 27:return"ESCAPE";case 32:return"SPACE";case 33:return"PAGE UP";case 34:return"PAGE DOWN";case 35:return"END";case 36:return"HOME";case 37:return"LEFT";case 38:return"UP";case 39:return"RIGHT";case 40:return"DOWN";case 45:return"INSERT";case 46:return"DELETE";case 106:return"NUMPAD MULTIPLY";case 107:return"NUMPAD ADD";case 108:return"NUMPAD ENTER";case 109:return"NUMPAD SUBTRACT";case 110:return"NUMPAD DECIMAL";case 111:return"NUMPAD DIVIDE";default:return String.fromCodePoint(a)}}; Ka.keyFromName=function(a){var c=Ka.keyboardNameMap;return null!=v[a]?c.getReserved(a):c.h[a]};var qa=function(a,c){null==c&&(c=0);null==a&&(a=0);this.x=a;this.y=c};k["openfl.geom.Point"]=qa;qa.__name__="openfl.geom.Point";qa.distance=function(a,c){var b=a.x-c.x;a=a.y-c.y;return Math.sqrt(b*b+a*a)};qa.interpolate=function(a,c,b){return new qa(c.x+b*(a.x-c.x),c.y+b*(a.y-c.y))};qa.polar=function(a,c){return new qa(a*Math.cos(c),a*Math.sin(c))};qa.prototype={x:null,y:null,add:function(a){return new qa(a.x+ this.x,a.y+this.y)},clone:function(){return new qa(this.x,this.y)},copyFrom:function(a){this.x=a.x;this.y=a.y},equals:function(a){return null!=a&&a.x==this.x?a.y==this.y:!1},normalize:function(a){if(0!=this.x||0!=this.y)a/=Math.sqrt(this.x*this.x+this.y*this.y),this.x*=a,this.y*=a},offset:function(a,c){this.x+=a;this.y+=c},setTo:function(a,c){this.x=a;this.y=c},subtract:function(a){return new qa(this.x-a.x,this.y-a.y)},toString:function(){return"(x="+this.x+", y="+this.y+")"},__toLimeVector2:function(){null== qa.__limeVector2&&(qa.__limeVector2=new zd);var a=qa.__limeVector2;a.x=this.x;a.y=this.y;return qa.__limeVector2},get_length:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},__class__:qa,__properties__:{get_length:"get_length"}};var ia=function(a,c,b,f){null==f&&(f=0);null==b&&(b=0);null==c&&(c=0);null==a&&(a=0);this.x=a;this.y=c;this.width=b;this.height=f};k["openfl.geom.Rectangle"]=ia;ia.__name__="openfl.geom.Rectangle";ia.prototype={height:null,width:null,x:null,y:null,clone:function(){return new ia(this.x, this.y,this.width,this.height)},contains:function(a,c){return a>=this.x&&c>=this.y&&a=a.width||0>=a.height?a.x>this.x&&a.y>this.y&&a.get_right()=this.x&&a.y>=this.y&&a.get_right()<=this.get_right()?a.get_bottom()<=this.get_bottom():!1},copyFrom:function(a){this.x=a.x;this.y=a.y;this.width=a.width;this.height= a.height},equals:function(a){return a==this?!0:null!=a&&this.x==a.x&&this.y==a.y&&this.width==a.width?this.height==a.height:!1},inflate:function(a,c){this.x-=a;this.width+=2*a;this.y-=c;this.height+=2*c},inflatePoint:function(a){this.inflate(a.x,a.y)},intersection:function(a){var c=this.xa.get_right()?a.get_right():this.get_right();if(b<=c)return new ia;var f=this.ya.get_bottom()?a.get_bottom():this.get_bottom();return a<=f?new ia: new ia(c,f,b-c,a-f)},intersects:function(a){var c=this.xa.get_right()?a.get_right():this.get_right())<=c)return!1;c=this.ya.get_bottom()?a.get_bottom():this.get_bottom())>c},isEmpty:function(){return 0>=this.width?!0:0>=this.height},offset:function(a,c){this.x+=a;this.y+=c},offsetPoint:function(a){this.x+=a.x;this.y+=a.y},setEmpty:function(){this.x=this.y=this.width=this.height=0},setTo:function(a,c,b,f){this.x=a;this.y= c;this.width=b;this.height=f},toString:function(){return"(x="+this.x+", y="+this.y+", width="+this.width+", height="+this.height+")"},union:function(a){if(0==this.width||0==this.height)return a.clone();if(0==a.width||0==a.height)return this.clone();var c=this.x>a.x?a.x:this.x,b=this.get_right()a.y?a.y:this.y;a=this.get_bottom()a+b&&(h=a+b-this.get_right());this.get_bottom()>c+f&&(l=c+f-this.get_bottom());this.x+=d;this.y+=g;this.width+=h-d;this.height+=l-g}},__expand:function(a,c,b,f){if(0==this.width&&0==this.height)this.x=a,this.y=c,this.width=b,this.height=f;else{var d=this.get_right(),g=this.get_bottom();this.x>a&&(this.x=a,this.width=d-a);this.y>c&&(this.y=c,this.height=g-c);df&&(f=h);l>g&&(g=l);h=c.a*(this.x+this.width)+c.c*(this.y+this.height);l=c.b*(this.x+this.width)+c.d*(this.y+this.height);hf&&(f=h);l>g&&(g=l);h=c.a*this.x+c.c*(this.y+this.height);l=c.b*this.x+c.d*(this.y+this.height);hf&&(f=h);l>g&&(g=l);a.setTo(b+c.tx,e+c.ty,f-b,g-e)},get_bottom:function(){return this.y+this.height},set_bottom:function(a){this.height=a-this.y;return a},get_bottomRight:function(){return new qa(this.x+this.width,this.y+this.height)},set_bottomRight:function(a){this.width=a.x-this.x;this.height=a.y-this.y;return a.clone()},get_left:function(){return this.x},set_left:function(a){this.width-= a-this.x;return this.x=a},get_right:function(){return this.x+this.width},set_right:function(a){this.width=a-this.x;return a},get_size:function(){return new qa(this.width,this.height)},set_size:function(a){this.width=a.x;this.height=a.y;return a.clone()},get_top:function(){return this.y},set_top:function(a){this.height-=a-this.y;return this.y=a},get_topLeft:function(){return new qa(this.x,this.y)},set_topLeft:function(a){this.x=a.x;this.y=a.y;return a.clone()},__class__:ia,__properties__:{set_topLeft:"set_topLeft", get_topLeft:"get_topLeft",set_top:"set_top",get_top:"get_top",set_size:"set_size",get_size:"get_size",set_right:"set_right",get_right:"get_right",set_left:"set_left",get_left:"get_left",set_bottomRight:"set_bottomRight",get_bottomRight:"get_bottomRight",set_bottom:"set_bottom",get_bottom:"get_bottom"}};var b=function(){this.checkProperties=this.scriptInit=!1;this.nameMap=new sa;this.propertyChangeListeners=new sa;this.equalityPairs=new ib;this.attributeTweens=new sa};k["com.stencyl.behavior.Script"]= b;b.__name__="com.stencyl.behavior.Script";b.resetStatics=function(){b.engine=null;b.lastCreatedActor=null;b.lastCreatedJoint=null;b.lastCreatedRegion=null;b.lastCreatedTerrainRegion=null;b.mpx=0;b.mpy=0;b.mrx=0;b.mry=0;b.imageApiAutoscale=!0};b.sameAs=function(a,c){return a==c};b.sameAsAny=function(a,c,b){return a!=c?a==b:!0};b.asBoolean=function(a){return 1==a?!0:"true"==a?!0:!1};b.strCompare=function(a,c,b){return 0>b?ac};b.strCompareBefore=function(a,c){return ac};b.asNumber=function(a){return null==a?0:"number"==typeof a?S.__cast(a,Rv):"number"==typeof a&&(a|0)===a?S.__cast(a,Ci):"boolean"==typeof a?S.__cast(a,Sv)?1:0:"string"==typeof a?parseFloat(a):parseFloat(N.string(a))};b.hasValue=function(a){return b.isPrimitive(a)?!0:"string"==typeof a?""!=S.__cast(a,String):null!=a};b.isPrimitive=function(a){return"boolean"==typeof a||"number"==typeof a||"number"==typeof a&&(a|0)===a?!0:!1};b.getDefaultValue=function(a){return"boolean"==typeof a?!1: "number"==typeof a||"number"==typeof a&&(a|0)===a?0:"string"==typeof a?"":null};b.getGroupByName=function(a){return b.engine.getGroupByName(a)};b.getLastCreatedRegion=function(){return b.lastCreatedRegion};b.getAllRegions=function(){for(var a=[],c=b.engine.regions.iterator();c.hasNext();){var d=c.next();null!=d&&a.push(d)}return a};b.getRegion=function(a){return b.engine.getRegion(a)};b.removeRegion=function(a){b.engine.removeRegion(a)};b.createBoxRegion=function(a,c,d,f){return b.lastCreatedRegion= b.engine.createBoxRegion(a,c,d,f)};b.createCircularRegion=function(a,c,d){return b.lastCreatedRegion=b.engine.createCircularRegion(a,c,d)};b.isInRegion=function(a,c){return b.engine.isInRegion(a,c)};b.getActorsInRegion=function(a){var c=[];for(a=a.getContainedActors().iterator();a.hasNext();){var d=a.next();c.push(b.engine.getActor(d))}return c};b.sceneHasBehavior=function(a){return b.engine.behaviors.hasBehavior(a)};b.enableBehaviorForScene=function(a){b.engine.behaviors.enableBehavior(a)};b.disableBehaviorForScene= function(a){b.engine.behaviors.disableBehavior(a)};b.isBehaviorEnabledForScene=function(a){return b.engine.behaviors.isBehaviorEnabled(a)};b.getValueForScene=function(a,c){return b.engine.getValue(a,c)};b.setValueForScene=function(a,c,d){b.engine.setValue(a,c,d)};b.shoutToScene=function(a,c){return b.engine.shout(a,c)};b.sayToScene=function(a,c,d){return b.engine.say(a,c,d)};b.setGameAttribute=function(a,c){var d=b.engine.gameAttributes;null!=v[a]?d.setReserved(a,c):d.h[a]=c};b.getGameAttribute=function(a){return b.engine.getGameAttribute(a)}; b.runLater=function(a,c,d){a=new Em(c,a|0,!1,d);b.engine.addTask(a);return a};b.runPeriodically=function(a,c,d){a=new Em(c,a|0,!0,d);b.engine.addTask(a);return a};b.getStepSize=function(){return m.STEP_SIZE};b.getScene=function(){return b.engine.scene};b.getCurrentScene=function(){return b.getScene().ID};b.getIDForScene=function(a){for(var c=lb.get().scenes.iterator();c.hasNext();){var b=c.next();if(a==b.name)return b.ID}return 0};b.getCurrentSceneName=function(){return b.getScene().name};b.getSceneWidth= function(){return b.getScene().sceneWidth};b.getSceneHeight=function(){return b.getScene().sceneHeight};b.getTileWidth=function(){return b.getScene().tileWidth};b.getTileHeight=function(){return b.getScene().tileHeight};b.reloadCurrentScene=function(a,c){b.engine.switchScene(b.getCurrentScene(),a,c)};b.switchScene=function(a,c,d){b.engine.switchScene(a,c,d)};b.createPixelizeOut=function(a,c){return new Kk(a,1,15)};b.createPixelizeIn=function(a,c){return new Kk(a,15,1)};b.createBubblesOut=function(a, c){null==c&&(c=-16777216);return new Lk(vb.OUT,a,50,c)};b.createBubblesIn=function(a,c){null==c&&(c=-16777216);return new Lk(vb.IN,a,50,c)};b.createBlindsOut=function(a,c){null==c&&(c=-16777216);return new Mk(vb.OUT,a,10,c)};b.createBlindsIn=function(a,c){null==c&&(c=-16777216);return new Mk(vb.IN,a,10,c)};b.createRectangleOut=function(a,c){null==c&&(c=-16777216);return new Nk(vb.OUT,a,c)};b.createRectangleIn=function(a,c){null==c&&(c=-16777216);return new Nk(vb.IN,a,c)};b.createSlideTransition=function(a, c){return new kf(b.engine.master,b.engine.colorLayer,a,c)};b.createSlideUpTransition=function(a){return b.createSlideTransition(a,kf.SLIDE_UP)};b.createSlideDownTransition=function(a){return b.createSlideTransition(a,kf.SLIDE_DOWN)};b.createSlideLeftTransition=function(a){return b.createSlideTransition(a,kf.SLIDE_LEFT)};b.createSlideRightTransition=function(a){return b.createSlideTransition(a,kf.SLIDE_RIGHT)};b.createCrossfadeTransition=function(a){return new Fm(b.engine.root,a)};b.createFadeOut= function(a,c){null==c&&(c=-16777216);return new Gm(a,c)};b.createFadeIn=function(a,c){null==c&&(c=-16777216);return new Hm(a,c)};b.createCircleOut=function(a,c){null==c&&(c=-16777216);return new Ok(vb.OUT,a,c)};b.createCircleIn=function(a,c){null==c&&(c=-16777216);return new Ok(vb.IN,a,c)};b.setBlendModeForLayer=function(a,c){a.set_blendMode(c);a instanceof Jc&&S.__cast(a,Jc).tiles.set_blendMode(c)};b.showTileLayer=function(a){a.set_alpha(1)};b.hideTileLayer=function(a){a.set_alpha(0)};b.fadeTileLayerTo= function(a,c,b,f){null==a.alphaTween&&(a.alphaTween=(new Re).doOnUpdate(function(){a.set_alpha(a.alphaTween.value)}));a.alphaTween.tween(a.get_alpha(),c,f,1E3*b|0)};b.getTileLayerOpacity=function(a){return 100*a.get_alpha()};b.setDrawingLayer=function(a){a instanceof Jc&&(m.engine.g.graphics=a.overlay.get_graphics())};b.setDrawingLayerToActorLayer=function(a){null!=a&&(m.engine.g.graphics=a.layer.overlay.get_graphics())};b.setDrawingLayerToSceneLayer=function(){m.engine.g.graphics=m.engine.transitionLayer.get_graphics()}; b.getScreenX=function(){return m.cameraX/m.SCALE};b.getScreenY=function(){return m.cameraY/m.SCALE};b.getScreenXCenter=function(){return m.cameraX/m.SCALE+m.screenWidth/2};b.getScreenYCenter=function(){return m.cameraY/m.SCALE+m.screenHeight/2};b.getCamera=function(){return b.engine.camera};b.isCtrlDown=function(){return Q.check("iCTRL")?!0:Q.check("iCOMMAND")};b.isShiftDown=function(){return Q.check("iSHIFT")};b.simulateKeyPress=function(a){Q.simulateKeyPress(a)};b.simulateKeyRelease=function(a){Q.simulateKeyRelease(a)}; b.isKeyDown=function(a){return Q.check(a)};b.isKeyPressed=function(a){return Q.pressed(a)};b.isKeyReleased=function(a){return Q.released(a)};b.isMouseDown=function(){return Q.mouseDown};b.isMousePressed=function(){return Q.mousePressed};b.isMouseReleased=function(){return Q.mouseReleased};b.getMouseX=function(){return Q.mouseX/m.SCALE};b.getMouseY=function(){return Q.mouseY/m.SCALE};b.getMouseWorldX=function(){return Q.mouseX/m.SCALE+m.cameraX};b.getMouseWorldY=function(){return Q.mouseY/m.SCALE+ m.cameraY};b.getMousePressedX=function(){return b.mpx};b.getMousePressedY=function(){return b.mpy};b.getMouseReleasedX=function(){return b.mrx};b.getMouseReleasedY=function(){return b.mry};b.showCursor=function(){Fe.show()};b.hideCursor=function(){Fe.hide()};b.charFromCharCode=function(a){return 32>a||126a?"":String.fromCodePoint(a)};b.getLastCreatedActor=function(){return b.lastCreatedActor};b.createActor=function(a,c,d,f){a=b.engine.createActorOfType(a,c,d,f);return b.lastCreatedActor=a}; b.createRecycledActor=function(a,c,d,f){a=b.engine.getRecycledActorOfType(a,c,d,f);return b.lastCreatedActor=a};b.createRecycledActorOnLayer=function(a,c,d,f){a=b.engine.getRecycledActorOfTypeOnLayer(a,c,d,f.ID);return b.lastCreatedActor=a};b.recycleActor=function(a){b.engine.recycleActor(a)};b.createActorInNextScene=function(a,c,d,f){b.engine.createActorInNextScene(a,c,d,f)};b.getActorTypeByName=function(a){return sc.get().resourceMap.get(a)};b.getActorType=function(a){return sc.get().resources.get(a)}; b.getAllActorTypes=function(){return sc.get().getAllActorTypes()};b.getActorsOfType=function(a){return b.engine.getActorsOfType(a)};b.getActor=function(a){return b.engine.getActor(a)};b.getActorGroup=function(a){return b.engine.getGroup(a)};b.setGravity=function(a,c){b.engine.gravityX=a;b.engine.gravityY=c;null!=b.engine.world&&b.engine.world.setGravity(new M(a,c))};b.getGravity=function(){return null==b.engine.world?(b.dummyVec.x=b.engine.gravityX,b.dummyVec.y=b.engine.gravityY,b.dummyVec):b.engine.world.getGravity()}; b.enableContinuousCollisions=function(){gc.m_continuousPhysics=!0};b.toPhysicalUnits=function(a){return m.toPhysicalUnits(a)};b.toPixelUnits=function(a){return m.toPixelUnits(a)};b.makeActorNotPassThroughTerrain=function(a){m.NO_PHYSICS?null!=a&&1==a.physicsMode&&(a.continuousCollision=!0):(gc.m_continuousPhysics=!0,null!=a&&0==a.physicsMode&&a.body.setBullet(!0))};b.makeActorPassThroughTerrain=function(a){if(m.NO_PHYSICS)null!=a&&1==a.physicsMode&&(a.continuousCollision=!1);else if(null!=a&&0==a.physicsMode){a.body.setBullet(!1); a=!1;for(var c=b.engine.allActors.iterator();c.hasNext();){var d=c.next();if(null!=d.body&&d.body.isBullet()){a=!0;break}}a||(gc.m_continuousPhysics=!1)}};b.mute=function(){};b.unmute=function(){};b.getSound=function(a){return sc.get().resources.get(a)};b.getSoundByName=function(a){return sc.get().resourceMap.get(a)};b.playSound=function(a){if(null!=a)for(var c=0;32>c;){var d=c++;d=b.engine.channels[d];if(null==d.currentSound){d.playSound(a);d.setVolume(1);d.setPanning(0);break}}};b.loopSound=function(a){if(null!= a)for(var c=0;32>c;){var d=c++;d=b.engine.channels[d];if(null==d.currentSound){d.loopSound(a);d.setVolume(1);d.setPanning(0);break}}};b.playSoundOnChannel=function(a,c){c=b.engine.channels[c];c.playSound(a);c.setVolume(1);c.setPanning(0)};b.loopSoundOnChannel=function(a,c){c=b.engine.channels[c];c.loopSound(a);c.setVolume(1);c.setPanning(0)};b.stopSoundOnChannel=function(a){b.engine.channels[a].stopSound()};b.pauseSoundOnChannel=function(a){b.engine.channels[a].setPause(!0)};b.resumeSoundOnChannel= function(a){b.engine.channels[a].setPause(!1)};b.setVolumeForChannel=function(a,c){b.engine.channels[c].setVolume(a)};b.setPanningForChannel=function(a,c){b.engine.channels[c].setPanning(a)};b.stopAllSounds=function(){for(var a=0;32>a;){var c=a++;b.engine.channels[c].stopSound()}};b.setVolumeForAllSounds=function(a){cc.masterVolume=a;for(a=0;32>a;){var c=a++;c=b.engine.channels[c];c.setVolume(c.volume)}};b.fadeInSoundOnChannel=function(a,c){b.engine.channels[a].fadeInSound(c)};b.fadeOutSoundOnChannel= function(a,c){b.engine.channels[a].fadeOutSound(c)};b.fadeSoundOnChannel=function(a,c,d){b.engine.channels[a].fadeSound(c,d/100)};b.fadeInForAllSounds=function(a){for(var c=0;32>c;){var d=c++;b.engine.channels[d].fadeInSound(a)}};b.fadeOutForAllSounds=function(a){for(var c=0;32>c;){var d=c++;b.engine.channels[d].fadeOutSound(a)}};b.fadeForAllSounds=function(a,c){for(var d=0;32>d;){var f=d++;b.engine.channels[f].fadeSound(a,c/100)}};b.getPositionForChannel=function(a){a=b.engine.channels[a];return null!= a&&null!=a.currentSound?a.paused?a.position:a.currentSound.get_position():0};b.setPositionForChannel=function(a,c){a=b.engine.channels[a];null!=a&&null!=a.currentSound&&(a.paused?a.position=c:a.looping?a.loopSound(a.currentClip,c):a.playSound(a.currentClip,c))};b.getSoundLengthForChannel=function(a){a=b.engine.channels[a];return null!=a&&null!=a.currentSource?a.currentSource.get_length():0};b.getSoundLength=function(a){return null!=a&&null!=a.src?a.src.get_length():0};b.setColorBackground=function(a, c){null==c&&(c=-2);b.engine.colorLayer.get_graphics().clear();a!=ig.TRANSPARENT&&(c==ig.TRANSPARENT?b.engine.setColorBackground(new ig(a)):b.engine.setColorBackground(new pj(a,c)))};b.setScrollSpeedForBackground=function(a,c,b){if(null==a){a=0;for(var d=m.engine.backgroundLayers;ad?(e=d>a.width-e?a.width:e+d,h-=d,d=0):d>a.width-e&&(e-=d-(a.width-e),d=a.width-e);0>f?(g=f>a.height-g?a.height:g+f,l-=f,f=0):f>a.height-g&&(g-=f-(a.height-g),f=a.height-g);if(!(0>=e||0>=g)){h=new ia(h,l,e,g);c=c.getPixels(h); d=new ia(d,f,e,g);f=a.getPixels(d);h=0;for(e*=g;h>8;f.position=4*g;f.writeByte(l)}c.position=0;f.position=0;a.setPixels(d,f)}};b.retainImageUsingMask=function(a,c,d,f){b.imageApiAutoscale&&(d=d*m.SCALE|0,f=f*m.SCALE|0);b.dummyPoint.x=d;b.dummyPoint.y=f;a.copyChannel(c,c.rect,b.dummyPoint,8,8)};b.fillImage=function(a,c){null!=a&&a.fillRect(a.rect,-16777216|c)};b.filterImage=function(a,c){null!=a&& (b.dummyPoint.x=0,b.dummyPoint.y=0,a.applyFilter(a,a.rect,b.dummyPoint,c))};b.imageSetPixel=function(a,c,d,f){if(null!=a)if(b.imageApiAutoscale&&1!=m.SCALE){var e=(c+1)*m.SCALE|0,g=(d+1)*m.SCALE|0;c=c*m.SCALE|0;for(d=d*m.SCALE|0;cd&&0==e%b.engine.scene.tileWidth&&--e;0>f&&0==c%b.engine.scene.tileHeight&&--c;e=b.getTilePosition(0,e);c=b.getTilePosition(1,c);a=0;for(d=b.engine.interactiveLayers;a=g?2:1;var h=Nc.codePointAt(a,b),l=h;if(128>l){var t=65535>=h?String.fromCodePoint(h):String.fromCodePoint((h>>10)+55232)+String.fromCodePoint(h&1023|56320);c+=t}else c+="~x"+aa.hex(l,4)}}catch(p){return ha.lastException=p,a}return c};b.simpleTweet=function(a,c){b.openURLInBrowser("http://twitter.com/home?status="+encodeURIComponent(a+" "+c))};b.newgroundsShowAd=function(){};b.newgroundsSetMedalPosition=function(a,c){};b.newgroundsUnlockMedal= function(a){};b.newgroundsSubmitScore=function(a,c){};b.newgroundsShowScore=function(a){};b.newgroundsHelper=function(a){};b.kongregateInitAPI=function(){};b.kongregateSubmitStat=function(a,c){};b.kongregateIsGuest=function(){return!0};b.kongregateGetUsername=function(){return"Guest"};b.kongregateGetUserID=function(){return 0};b.loadAtlas=function(a){b.engine.atlasesToLoad.h[a]=a};b.unloadAtlas=function(a){b.engine.atlasesToUnload.h[a]=a};b.atlasIsLoaded=function(a){a=lb.get().atlases.h[a];return null!= a?a.active:!1};b.initGooglePlayGames=function(){};b.stopGooglePlayGames=function(){};b.getGPGConnectionInfo=function(a){return!1};b.showGPGAchievements=function(){};b.showGPGLeaderboards=function(){};b.showGPGLeaderboard=function(a){};b.showGPGQuests=function(){};b.unlockGPGAchievement=function(a){};b.incrementGPGAchievement=function(a,c){};b.submitGPGScore=function(a,c){};b.updateGPGEvent=function(a,c){};b.getCompletedGPGQuests=function(){return[]};b.gameCenterInitialize=function(){};b.gameCenterIsAuthenticated= function(){return!1};b.gameCenterGetPlayerName=function(){return"None"};b.gameCenterGetPlayerID=function(){return"None"};b.gameCenterShowLeaderboard=function(a){};b.gameCenterShowAchievements=function(){};b.gameCenterSubmitScore=function(a,c){};b.gameCenterSubmitAchievement=function(a,c){};b.gameCenterResetAchievements=function(){};b.gameCenterShowBanner=function(a,c){};b.purchasesAreInitialized=function(){return!1};b.purchasesRestore=function(){};b.purchasesBuy=function(a){};b.purchasesHasBought= function(a){return!1};b.purchasesGetTitle=function(a){return""};b.purchasesGetDescription=function(a){return""};b.purchasesGetPrice=function(a){return""};b.purchasesRequestProductInfo=function(a){};b.purchasesUse=function(a){};b.purchasesGoogleConsume=function(a){};b.purchasesGetQuantity=function(a){return 0};b.showAlert=function(a,c){};b.vibrate=function(a){};b.showKeyboard=function(){};b.hideKeyboard=function(){};b.setKeyboardText=function(a){};b.setIconBadgeNumber=function(a){};b.enableDebugDrawing= function(){m.DEBUG_DRAW=!0;m.NO_PHYSICS||m.debugDrawer.m_sprite.get_graphics().clear()};b.disableDebugDrawing=function(){m.DEBUG_DRAW=!1;m.NO_PHYSICS||m.debugDrawer.m_sprite.get_graphics().clear()};b.gameURL=function(){return""};b.exitGame=function(){};b.createGrayscaleFilter=function(){var a=[];a=a.concat([.5,.5,.5,0,0]);a=a.concat([.5,.5,.5,0,0]);a=a.concat([.5,.5,.5,0,0]);a=a.concat([0,0,0,1,0]);return new Qf(a)};b.createSepiaFilter=function(){var a=[];a=a.concat([.34,.33,.33,0,30]);a=a.concat([.33, .34,.33,0,20]);a=a.concat([.33,.33,.34,0,0]);a=a.concat([0,0,0,1,0]);return new Qf(a)};b.createNegativeFilter=function(){var a=[];a=a.concat([-1,0,0,0,255]);a=a.concat([0,-1,0,0,255]);a=a.concat([0,0,-1,0,255]);a=a.concat([0,0,0,1,0]);return new Qf(a)};b.createTintFilter=function(a,c){null==c&&(c=1);var b=new Na;b.colorize(a,c);return b.getFilter()};b.createHueFilter=function(a){var c=new Na;c.adjustHue(a);c.adjustSaturation(1);return c.getFilter()};b.createSaturationFilter=function(a){var c=new Na; c.adjustSaturation(a/100);return c.getFilter()};b.createBrightnessFilter=function(a){var c=new Na;c.adjustBrightness(a/100);return c.getFilter()};b.prototype={wrapper:null,propertyChangeListeners:null,equalityPairs:null,checkProperties:null,nameMap:null,attributeTweens:null,scriptInit:null,toInternalName:function(a){if(null==this.nameMap)return a;var c=this.nameMap;c=null!=v[a]?c.getReserved(a):c.h[a];return null==c?a:c},forwardMessage:function(a){},clearListeners:function(){this.propertyChangeListeners= new sa},internalGetGroup:function(a,c,d){if(m.NO_PHYSICS)return c=S.__cast(d,Dc),a==c.actorA?b.engine.getGroup(c.groupA):b.engine.getGroup(c.groupB);c=S.__cast(c,gg);if(null==c)return S.__cast(a,yb).getGroup();a=c.groupID;return-1E3==a&&(c=c.getBody(),null!=c)?b.engine.getGroup(c.getUserData().groupID):b.engine.getGroup(a)},init:function(){},addMobileKeyboardListener:function(a,c){a=new qj(qd.TYPE_KEYBOARD,a,c);b.engine.nativeListeners.push(a);this instanceof w&&S.__cast(this,w).actor.registerListener(b.engine.nativeListeners, a)},addMobileAdListener:function(a,c){a=new qj(qd.TYPE_ADS,a,c);b.engine.nativeListeners.push(a);this instanceof w&&S.__cast(this,w).actor.registerListener(b.engine.nativeListeners,a)},addGameCenterListener:function(a,c){a=new qj(qd.TYPE_GAMECENTER,a,c);b.engine.nativeListeners.push(a);this instanceof w&&S.__cast(this,w).actor.registerListener(b.engine.nativeListeners,a)},addPurchaseListener:function(a,c){a=new qj(qd.TYPE_PURCHASES,a,c);b.engine.nativeListeners.push(a);this instanceof w&&S.__cast(this, w).actor.registerListener(b.engine.nativeListeners,a)},addWhenCreatedListener:function(a,c){var b=this instanceof w;null!=a&&(a.whenCreatedListeners.push(c),b&&S.__cast(this,w).actor.registerListener(a.whenCreatedListeners,c))},addWhenKilledListener:function(a,c){var b=this instanceof w;null!=a&&(a.whenKilledListeners.push(c),b&&S.__cast(this,w).actor.registerListener(a.whenKilledListeners,c))},addWhenUpdatedListener:function(a,c){var d=this instanceof w;null==a&&d&&(a=S.__cast(this,w).actor);a=null!= a?a.whenUpdatedListeners:b.engine.whenUpdatedListeners;a.push(c);d&&S.__cast(this,w).actor.registerListener(a,c)},addWhenDrawingListener:function(a,c){var d=this instanceof w;null==a&&d&&(a=S.__cast(this,w).actor);a=null!=a?a.whenDrawingListeners:b.engine.whenDrawingListeners;a.push(c);d&&S.__cast(this,w).actor.registerListener(a,c)},addActorEntersRegionListener:function(a,c){null!=a&&(a.whenActorEntersListeners.push(c),this instanceof w&&S.__cast(this,w).actor.registerListener(a.whenActorEntersListeners, c))},addActorExitsRegionListener:function(a,c){null!=a&&(a.whenActorExitsListeners.push(c),this instanceof w&&S.__cast(this,w).actor.registerListener(a.whenActorExitsListeners,c))},addActorPositionListener:function(a,c){null!=a&&(a.positionListeners.push(c),a.positionListenerCount++,this instanceof w&&S.__cast(this,w).actor.registerListener(a.positionListeners,c))},addActorTypeGroupPositionListener:function(a,c){b.engine.typeGroupPositionListeners.h.hasOwnProperty(a)||(b.engine.typeGroupPositionListeners.h[a]= []);a=S.__cast(b.engine.typeGroupPositionListeners.h[a],Array);a.push(c);this instanceof w&&S.__cast(this,w).actor.registerListener(a,c)},addSwipeListener:function(a){b.engine.whenSwipedListeners.push(a);this instanceof w&&S.__cast(this,w).actor.registerListener(b.engine.whenSwipedListeners,a)},addMultiTouchStartListener:function(a){b.engine.whenMTStartListeners.push(a);this instanceof w&&S.__cast(this,w).actor.registerListener(b.engine.whenMTStartListeners,a)},addMultiTouchMoveListener:function(a){b.engine.whenMTDragListeners.push(a); this instanceof w&&S.__cast(this,w).actor.registerListener(b.engine.whenMTDragListeners,a)},addMultiTouchEndListener:function(a){b.engine.whenMTEndListeners.push(a);this instanceof w&&S.__cast(this,w).actor.registerListener(b.engine.whenMTEndListeners,a)},addKeyStateListener:function(a,c){var d=b.engine.whenKeyPressedListeners;if(null==(null!=v[a]?d.getReserved(a):d.h[a])){d=[];var f=b.engine.whenKeyPressedListeners;null!=v[a]?f.setReserved(a,d):f.h[a]=d}b.engine.hasKeyPressedListeners=!0;d=b.engine.whenKeyPressedListeners; a=null!=v[a]?d.getReserved(a):d.h[a];a.push(c);this instanceof w&&S.__cast(this,w).actor.registerListener(a,c)},addAnyKeyPressedListener:function(a){b.engine.whenAnyKeyPressedListeners.push(a);this instanceof w&&S.__cast(this,w).actor.registerListener(b.engine.whenAnyKeyPressedListeners,a)},addAnyKeyReleasedListener:function(a){b.engine.whenAnyKeyReleasedListeners.push(a);this instanceof w&&S.__cast(this,w).actor.registerListener(b.engine.whenAnyKeyReleasedListeners,a)},addAnyGamepadPressedListener:function(a){b.engine.whenAnyGamepadPressedListeners.push(a); this instanceof w&&S.__cast(this,w).actor.registerListener(b.engine.whenAnyGamepadPressedListeners,a)},addAnyGamepadReleasedListener:function(a){b.engine.whenAnyGamepadReleasedListeners.push(a);this instanceof w&&S.__cast(this,w).actor.registerListener(b.engine.whenAnyGamepadReleasedListeners,a)},addMousePressedListener:function(a){b.engine.whenMousePressedListeners.push(a);this instanceof w&&S.__cast(this,w).actor.registerListener(b.engine.whenMousePressedListeners,a)},addMouseReleasedListener:function(a){b.engine.whenMouseReleasedListeners.push(a); this instanceof w&&S.__cast(this,w).actor.registerListener(b.engine.whenMouseReleasedListeners,a)},addMouseMovedListener:function(a){b.engine.whenMouseMovedListeners.push(a);this instanceof w&&S.__cast(this,w).actor.registerListener(b.engine.whenMouseMovedListeners,a)},addMouseDraggedListener:function(a){b.engine.whenMouseDraggedListeners.push(a);this instanceof w&&S.__cast(this,w).actor.registerListener(b.engine.whenMouseDraggedListeners,a)},addMouseOverActorListener:function(a,c){null!=a&&(a.mouseOverListeners.push(c), this instanceof w&&S.__cast(this,w).actor.registerListener(a.mouseOverListeners,c))},addPropertyChangeListener:function(a,c,b){var d=this.propertyChangeListeners;if(null!=v[a]?!d.existsReserved(a):!d.h.hasOwnProperty(a)){d=this.propertyChangeListeners;var e=[];null!=v[a]?d.setReserved(a,e):d.h[a]=e}null!=c?(d=this.propertyChangeListeners,d=!(null!=v[c]?d.existsReserved(c):d.h.hasOwnProperty(c))):d=!1;d&&(d=this.propertyChangeListeners,e=[],null!=v[c]?d.setReserved(c,e):d.h[c]=e);d=this.propertyChangeListeners; a=null!=v[a]?d.getReserved(a):d.h[a];d=this.propertyChangeListeners;d=null!=v[c]?d.getReserved(c):d.h[c];a.push(b);null!=c&&(d.push(b),e=[],e.push(a),e.push(d),this.equalityPairs.set(b,e));this instanceof w&&(S.__cast(this,w).actor.registerListener(a,b),null!=c&&S.__cast(this,w).actor.registerListener(d,b));this.checkProperties=!0},propertyChanged:function(a,c){if(this.checkProperties){var b=this.propertyChangeListeners;a=null!=v[a]?b.getReserved(a):b.h[a];if(null!=a)for(b=0;b=this.timer&&(this.toExecute(this),this.done=!this.repeats, this.repeats&&(this.timer+=this.interval))):this.done=!0},__class__:Em};var qj=function(a,c,b){this.metaType=a;this.type=c;this.fn=b};k["com.stencyl.event.NativeListener"]=qj;qj.__name__="com.stencyl.event.NativeListener";qj.prototype={metaType:null,type:null,fn:null,checkEvents:function(a){a=a.eventTable.h[this.metaType];if(null!=a)for(var c=0;c=this.numFrames;null!=this.filter?(this.filteredFrames[this.frameIndex]|| (this.frames[this.frameIndex]=this.applyFilters(this.frames[this.frameIndex],this.model.frames[this.frameIndex],this.filter),this.filteredFrames[this.frameIndex]=!0),this.set_bitmapData(this.frames[this.frameIndex])):this.set_bitmapData(this.model.frames[this.frameIndex]);this.smoothing=oa.antialias};k["com.stencyl.graphics.BitmapAnimation"]=Tk;Tk.__name__="com.stencyl.graphics.BitmapAnimation";Tk.__interfaces__=[Im];Tk.__super__=Rc;Tk.prototype=r(Rc.prototype,{model:null,frameIndex:null,timer:null, finished:null,durations:null,individualDurations:null,frames:null,numFrames:null,filter:null,filteredFrames:null,update:function(a){this.model.sync&&this.model.looping?(a=this.frameIndex,this.timer=this.model.sharedTimer,this.frameIndex=this.model.sharedFrameIndex,a!=this.frameIndex&&(null!=this.filter?(this.filteredFrames[this.frameIndex]||(this.frames[this.frameIndex]=this.applyFilters(this.frames[this.frameIndex],this.model.frames[this.frameIndex],this.filter),this.filteredFrames[this.frameIndex]= !0),this.set_bitmapData(this.frames[this.frameIndex])):this.set_bitmapData(this.model.frames[this.frameIndex]),this.smoothing=oa.antialias)):(this.timer+=a,0this.durations[this.frameIndex]&&(a=this.frameIndex,this.timer-=this.durations[this.frameIndex],this.frameIndex++,this.frameIndex>=this.numFrames&&(this.model.looping?this.frameIndex=0:(this.finished=!0,this.frameIndex--)),a!=this.frameIndex&&(null!=this.filter?(this.filteredFrames[this.frameIndex]||(this.frames[this.frameIndex]= this.applyFilters(this.frames[this.frameIndex],this.model.frames[this.frameIndex],this.filter),this.filteredFrames[this.frameIndex]=!0),this.set_bitmapData(this.frames[this.frameIndex])):this.set_bitmapData(this.model.frames[this.frameIndex]),this.smoothing=oa.antialias)))},getCurrentFrame:function(){return this.frameIndex},getNumFrames:function(){return this.numFrames},setFrame:function(a){if(0>a||a>=this.numFrames)a=0;a!=this.frameIndex&&(this.frameIndex=a,null!=this.filter?(this.filteredFrames[this.frameIndex]|| (this.frames[this.frameIndex]=this.applyFilters(this.frames[this.frameIndex],this.model.frames[this.frameIndex],this.filter),this.filteredFrames[this.frameIndex]=!0),this.set_bitmapData(this.frames[this.frameIndex])):this.set_bitmapData(this.model.frames[this.frameIndex]),this.smoothing=oa.antialias);this.timer=0;this.finished=!1},isFinished:function(){return this.finished},reset:function(){this.frameIndex=this.timer=0;this.finished=!1;null!=this.filter?(this.filteredFrames[this.frameIndex]||(this.frames[this.frameIndex]= this.applyFilters(this.frames[this.frameIndex],this.model.frames[this.frameIndex],this.filter),this.filteredFrames[this.frameIndex]=!0),this.set_bitmapData(this.frames[this.frameIndex])):this.set_bitmapData(this.model.frames[this.frameIndex]);this.smoothing=oa.antialias},updateBitmap:function(){null!=this.filter?(this.filteredFrames[this.frameIndex]||(this.frames[this.frameIndex]=this.applyFilters(this.frames[this.frameIndex],this.model.frames[this.frameIndex],this.filter),this.filteredFrames[this.frameIndex]= !0),this.set_bitmapData(this.frames[this.frameIndex])):this.set_bitmapData(this.model.frames[this.frameIndex]);this.smoothing=oa.antialias},set_filter:function(a){this.filter=a;for(var c=[],b=0,f=this.numFrames;brd.MAX_TEXTURE_CAP&&(rd.textureMaxSize=rd.MAX_TEXTURE_CAP),null==ra.__supportsBGRA&&(new ra(1,1,!0,0)).getTexture(rd.context3D))};rd.uploadTexture=function(a,c){a.getTexture(rd.context3D);c&&rd.disposeSoftwareBuffer(a)};rd.disposeSoftwareBuffer=function(a){a.image=null;a.readable=!1;a.__surface=null;a.__vertexBuffer=null;a.__framebuffer=null;a.__framebufferContext= null};rd.createNewTexture=function(a){var c=rd.context3D.createRectangleTexture(a,a,1,!1);c.uploadFromTypedArray(null);var b=new ra(0,0,!0,0);b.__resize(a,a);b.readable=!1;b.__texture=c;b.__textureContext=rd.context;b.__isValid=!0;b.image=null;return b};rd.clearTexture=function(a){a.__texture.uploadFromTypedArray(null)};var Wd=function(a){this.value=a};k["com.stencyl.graphics.Scale"]=Wd;Wd.__name__="com.stencyl.graphics.Scale";Wd.fromString=function(a){switch(a){case "1.5x":return Wd._1_5X;case "1x":return Wd._1X; case "2x":return Wd._2X;case "3x":return Wd._3X;case "4x":return Wd._4X;default:return Wd._1X}};Wd.prototype={value:null,toString:function(){return 1==this.value?"1x":1.5==this.value?"1.5x":2==this.value?"2x":3==this.value?"3x":4==this.value?"4x":""},__class__:Wd};var Ug={};k["com.stencyl.graphics._ScaleMode.ScaleMode_Impl_"]=Ug;Ug.__name__="com.stencyl.graphics._ScaleMode.ScaleMode_Impl_";Ug._new=function(a){return a};Ug.fromString=function(a){switch(a){case "FULLSCREEN":return 1;case "NO_SCALING":return 0; case "SCALE_TO_FIT_FILL":return 4;case "SCALE_TO_FIT_FULLSCREEN":return 5;case "SCALE_TO_FIT_LETTERBOX":return 3;case "STRETCH_TO_FIT":return 2;default:return 0}};Ug.toString=function(a){switch(a){case 0:return"NO_SCALING";case 1:return"FULLSCREEN";case 2:return"STRETCH_TO_FIT";case 3:return"SCALE_TO_FIT_LETTERBOX";case 4:return"SCALE_TO_FIT_FILL";case 5:return"SCALE_TO_FIT_FULLSCREEN";default:return"NO_SCALING"}};var Ef=function(){this.lineSpacing=0;this.isDefault=!1;this._maxHeight=0;this._point= new qa;this._glyphs=new Xa;this._num_letters=0};k["com.stencyl.graphics.fonts.BitmapFont"]=Ef;Ef.__name__="com.stencyl.graphics.fonts.BitmapFont";Ef.store=function(a,c){var b=Ef._storedFonts;null!=v[a]?b.setReserved(a,c):b.h[a]=c};Ef.fetch=function(a){var c=Ef._storedFonts;return null!=v[a]?c.getReserved(a):c.h[a]};Ef.prototype={_glyphs:null,_num_letters:null,_tileset:null,_glyphString:null,_maxHeight:null,_point:null,isDefault:null,lineSpacing:null,loadPixelizer:function(a,c){this.reset();this._glyphString= c;if(null!=a){c=[];a=this.prepareBitmapData(a,c);this._tileset=new Di(a);for(var b=0,f=c.length;bh&&(l=b.width|0,f.x=0);" "!=c&&""!=c?this.setGlyph(a,b,e,Math.floor(f.x),Math.floor(f.y),l):this.setGlyph(a,b,e,Math.floor(f.x),1,l);++e}}}return this}, reset:function(){this.dispose();this._maxHeight=0;this._glyphs=new Xa;this._glyphString=""},prepareBitmapData:function(a,c){for(var b=a.getPixel(0,0),f=0,e;fg&&(g=l);l>this._maxHeight&&(this._maxHeight=l);e+=h}++e}f+=g+1}c=a.clone();g=a.getPixel32(0,0);for(f=0;fthis._maxHeight&&(this._maxHeight=Math.floor(c.height)+e)},render:function(a,c,b,f,e,g,h,l){this._point.x=f;this._point.y=e;e= f=0;for(l=c.length;e>16&255)/255,(b>>8&255)/255,(b&255)/255)):a.draw(d);d.removeTiles()},toARGB:function(a,c){return a+(c<<24)},getTextWidth:function(a,c,b){null==b&&(b=1);null==c&&(c=0);for(var d=0,e=0,g=a.length,h=0;hthis._fieldWidth?(""==n?p.splice(0,1):c.push(A.substr(n,0,n.length-1)),n="",this._multiLine?p.splice(0,m):p.splice(0,p.length),m=0,q=!0):(n+=l+" ",++m);else if(this._font.getTextWidth(k,this._letterSpacing,this._fontScale)>this._fieldWidth){var u=0;for(h=l.length;uthis._fieldWidth?(c.push(A.substr(n,0,n.length-1)),l=n="",m=p.length,u=h,q=!0):n+=l.charAt(u),++u}else n+=l+" ",++m; m>=p.length&&(q||(t=A.substr(n,0,n.length-1),a=Math.floor(Math.max(a,this._font.getTextWidth(t,this._letterSpacing,this._fontScale))),c.push(t)),t=!0)}else c.push("")}else a=Math.floor(Math.max(a,this._font.getTextWidth(e[g],this._letterSpacing,this._fontScale))),c.push(e[g]);a=a+2*this._padding+(this._outline?2:0);e=Math.floor(2*this._padding+Math.max(1,c.length*b*this._fontScale+(this._shadow?1:0)+(this._outline?2:0)))+(1<=c.length?this._lineSpacing*(c.length-1):0);this.get_graphics().clear();1== this._background&&(this.get_graphics().beginFill(this._backgroundColor,this._alpha),this.get_graphics().drawRect(0,0,a,e),this.get_graphics().endFill());this.removeChildren();this._outline&&(this._outlineTilemap=new Hg(a,e,this._font.getTileset(),oa.antialias),this.tint(this._outlineTilemap,this._outlineColor),this.addChild(this._outlineTilemap));this._shadow&&(this._shadowTilemap=new Hg(a,e,this._font.getTileset(),oa.antialias),this.tint(this._shadowTilemap,this._shadowColor),this.addChild(this._shadowTilemap)); this._characterTilemap=new Hg(a,e,this._font.getTileset(),oa.antialias);this._useColor&&this.tint(this._characterTilemap,this._color);this.addChild(this._characterTilemap);for(g=e=0;gt;)for(u=t++,h=0;3>h;)l=h++,this._font.render(this._outlineTilemap,p,this._alpha,l+m+this._padding,u+e*(Math.floor(b*this._fontScale)+this._lineSpacing)+this._padding,this._letterSpacing,this._fontScale);++m;++n}this._shadow&&this._font.render(this._shadowTilemap,p,this._alpha,1+m+this._padding,1+n+e*(Math.floor(b*this._fontScale)+this._lineSpacing)+this._padding, this._letterSpacing,this._fontScale);this._font.render(this._characterTilemap,p,this._alpha,m+this._padding,n+e*(Math.floor(b*this._fontScale)+this._lineSpacing)+this._padding,this._letterSpacing,this._fontScale);++e}this._pendingTextChange=!1}},update:function(){this._pendingTextChange&&this.updateBitmapData()},get_background:function(){return this._background},set_background:function(a){this._background!=a&&(this._background=a,this._pendingTextChange=!0,this.update());return a},get_backgroundColor:function(){return this._backgroundColor}, set_backgroundColor:function(a){this._backgroundColor!=a&&(this._backgroundColor=a,this._background&&(this._pendingTextChange=!0,this.update()));return a},get_shadow:function(){return this._shadow},set_shadow:function(a){this._shadow!=a&&(this._shadow=a,this._outline=!1,this.updateGlyphs(!1,this._shadow,!1),this._pendingTextChange=!0,this.update());return a},get_shadowColor:function(){return this._shadowColor},set_shadowColor:function(a){this._shadowColor!=a&&(this._shadowColor=a,this.updateGlyphs(!1, this._shadow,!1),this._pendingTextChange=!0,this.update());return a},get_padding:function(){return this._padding},set_padding:function(a){this._padding!=a&&(this._padding=a,this._pendingTextChange=!0,this.update());return a},get_color:function(){return this._color},set_color:function(a){this._color!=a&&(this._color=a,this.updateGlyphs(!0,!1,!1),this._pendingTextChange=!0,this.update());return a},get_useColor:function(){return this._useColor},set_useColor:function(a){this._useColor!=a&&(this._useColor= a,this.updateGlyphs(!0,!1,!1),this._pendingTextChange=!0,this.update());return a},setWidth:function(a){1>a&&(a=1);a!=this._fieldWidth&&(this._fieldWidth=a,this._pendingTextChange=!0,this.update());return a},get_alignment:function(){return this._alignment},set_alignment:function(a){this._alignment!=a&&(this._alignment=a,this._pendingTextChange=!0,this.update());return a},get_multiLine:function(){return this._multiLine},set_multiLine:function(a){this._multiLine!=a&&(this._multiLine=a,this._pendingTextChange= !0,this.update());return a},get_outline:function(){return this._outline},set_outline:function(a){this._outline!=a&&(this._outline=a,this._shadow=!1,this.updateGlyphs(!1,!1,!0),this._pendingTextChange=!0,this.update());return a},get_outlineColor:function(){return this._outlineColor},set_outlineColor:function(a){this._outlineColor!=a&&(this._outlineColor=a,this.updateGlyphs(!1,!1,this._outline),this._pendingTextChange=!0,this.update());return a},get_font:function(){return this._font},set_font:function(a){this._font!= a&&(this._font=a,this.updateGlyphs(!0,this._shadow,this._outline),this._pendingTextChange=!0,this.update());return a},get_stencylFont:function(){return this._stencylFont},set_stencylFont:function(a){this._stencylFont!=a&&(this._stencylFont=a,this.set_font(a.font));return a},get_lineSpacing:function(){return this._lineSpacing},set_lineSpacing:function(a){this._lineSpacing!=a&&(this._lineSpacing=Math.floor(Math.abs(a)),this._pendingTextChange=!0,this.update());return a},setAlpha:function(a){this._alpha!= a&&(this._alpha=a,this._pendingTextChange=!0,this.update())},getAlpha:function(){return this._alpha},get_fontScale:function(){return this._fontScale},set_fontScale:function(a){var c=Math.abs(a);c!=this._fontScale&&(this._fontScale=c,this.updateGlyphs(!0,this._shadow,this._outline),this._pendingTextChange=!0,this.update());return a},get_letterSpacing:function(){return this._letterSpacing},set_letterSpacing:function(a){a=Math.floor(a);a!=this._letterSpacing&&(this._letterSpacing=a,this._pendingTextChange= !0,this.update());return this._letterSpacing},get_autoUpperCase:function(){return this._autoUpperCase},set_autoUpperCase:function(a){this._autoUpperCase!=a&&(this._autoUpperCase=a)&&this.set_text(this._text.toUpperCase());return this._autoUpperCase},get_wordWrap:function(){return this._wordWrap},set_wordWrap:function(a){this._wordWrap!=a&&(this._wordWrap=a,this._pendingTextChange=!0,this.update());return this._wordWrap},get_fixedWidth:function(){return this._fixedWidth},set_fixedWidth:function(a){this._fixedWidth!= a&&(this._fixedWidth=a,this._pendingTextChange=!0,this.update());return this._fixedWidth},set_labelX:function(a){this.set_x(a*m.SCALE);return this.labelX=a},get_labelX:function(){return this.labelX},set_labelY:function(a){this.set_y(a*m.SCALE);return this.labelY=a},get_labelY:function(){return this.labelY},updatePosition:function(){this.set_x(this.get_labelX()*m.SCALE-this.cacheParentAnchor.x);this.set_y(this.get_labelY()*m.SCALE-this.cacheParentAnchor.y)},updateScale:function(){this.updatePosition(); null!=this._stencylFont&&this.set_font(this._stencylFont.font)},updateGlyphs:function(a,c,b){},tint:function(a,c){var b=new Na;b.colorize(c,1);a.set_filters([b.getFilter()])},__class__:Lm,__properties__:r(ma.prototype.__properties__,{set_fixedWidth:"set_fixedWidth",get_fixedWidth:"get_fixedWidth",set_wordWrap:"set_wordWrap",get_wordWrap:"get_wordWrap",set_autoUpperCase:"set_autoUpperCase",get_autoUpperCase:"get_autoUpperCase",set_letterSpacing:"set_letterSpacing",get_letterSpacing:"get_letterSpacing", set_fontScale:"set_fontScale",get_fontScale:"get_fontScale",set_lineSpacing:"set_lineSpacing",get_lineSpacing:"get_lineSpacing",set_stencylFont:"set_stencylFont",get_stencylFont:"get_stencylFont",set_font:"set_font",get_font:"get_font",set_outlineColor:"set_outlineColor",get_outlineColor:"get_outlineColor",set_outline:"set_outline",get_outline:"get_outline",set_multiLine:"set_multiLine",get_multiLine:"get_multiLine",set_alignment:"set_alignment",get_alignment:"get_alignment",set_useColor:"set_useColor", get_useColor:"get_useColor",set_color:"set_color",get_color:"get_color",set_padding:"set_padding",get_padding:"get_padding",set_shadowColor:"set_shadowColor",get_shadowColor:"get_shadowColor",set_shadow:"set_shadow",get_shadow:"get_shadow",set_backgroundColor:"set_backgroundColor",get_backgroundColor:"get_backgroundColor",set_background:"set_background",get_background:"get_background",set_text:"set_text",get_text:"get_text",set_labelY:"set_labelY",get_labelY:"get_labelY",set_labelX:"set_labelX",get_labelX:"get_labelX"})}); var Xp=function(){};k["com.stencyl.graphics.fonts.TextAlign"]=Xp;Xp.__name__="com.stencyl.graphics.fonts.TextAlign";var sd=function(){};k["com.stencyl.graphics.shaders.BasicShader"]=sd;sd.__name__="com.stencyl.graphics.shaders.BasicShader";sd.prototype={multipassParent:null,multipassTarget:null,model:null,setProperty:function(a,c){this.model.setUniform(a,c)},getProperty:function(a){return this.model.getUniform(a)},tweenProperty:function(a,c,b,f){null==b&&(b=1);this.model.tweenUniform(a,c,b,f)},enable:function(){m.engine.addShader(this.model)}, disable:function(){m.engine.clearShaders()},setTimeScale:function(a){this.model.timeScale=a},combine:function(a){this.multipassTarget=a;a.multipassParent=this;return a},__class__:sd};var Yp=function(a,c,b,f,e,g,h,l,t){null==t&&(t=.0075);null==l&&(l=.009);null==h&&(h=.012);null==g&&(g=.6);null==e&&(e=.4);null==f&&(f=3);null==b&&(b=4);null==c&&(c=.004);null==a&&(a=.25);this.model=new yd(this,"\n\t\t\t#ifdef GL_ES\n\t\t\t\tprecision mediump float;\n\t\t\t#endif\n\t\t\t\n\t\t\tvarying vec2 vTexCoord;\n\t\t\tuniform vec2 uResolution;\n\t\t\tuniform sampler2D uImage0;\n\t\t\t\n\t\t\tuniform float currPixelWeight;\n\t\t\tuniform float neighborPixelWeight;\n\t\t\tuniform float lowThreshold;\n\t\t\tuniform float mediumThreshold;\n\t\t\tuniform float lowMultiplier;\n\t\t\tuniform float mediumMultiplier;\n\t\t\tuniform float highMultiplier;\n\n\t\t\tvoid main(void)\n\t\t\t{\n\t\t\t\tvec4 sum = vec4(0.0);\n\t\t\t\tvec2 q1 = vTexCoord;\n\t\t\t\tvec4 oricol = texture2D(uImage0, vec2(q1.x, q1.y));\n\t\t\t\tvec3 col;\n\t\t\t\t\n\t\t\t\tfor(int i = -3; i < 3; i++) \n\t\t\t\t{\n\t\t\t\t\tfor(int j = -3; j < 3; j++) \n\t\t\t\t\t{\n\t\t\t\t\t\tsum += texture2D(uImage0, vec2(j, i) * neighborPixelWeight + vec2(q1.x, q1.y)) * currPixelWeight;\n\t\t\t\t\t}\n\t\t\t \t}\n\t\t\t \n\t\t\t \tif(oricol.r < lowThreshold) \n\t\t\t \t{\n\t\t\t\t\tgl_FragColor = sum * sum * lowMultiplier + oricol;\n\t\t\t \t} \n\t\t\t \n\t\t\t \telse \n\t\t\t \t{\n\t\t\t\t\tif(oricol.r < mediumThreshold) \n\t\t\t\t\t{\n\t\t\t\t\t\tgl_FragColor = sum * sum * mediumMultiplier + oricol;\n\t\t\t\t \t} \n\t\t\t\t \t\n\t\t\t\t \telse \n\t\t\t\t \t{\n\t\t\t\t\t\tgl_FragColor = sum * sum * highMultiplier + oricol;\n\t\t\t\t \t}\n\t\t\t }\n\t\t\t}\n\t\t", !0);this.setProperty("currPixelWeight",a);this.setProperty("neighborPixelWeight",c);this.setProperty("sampleX",b);this.setProperty("sampleY",f);this.setProperty("lowThreshold",e);this.setProperty("mediumThreshold",g);this.setProperty("lowMultiplier",h);this.setProperty("mediumMultiplier",l);this.setProperty("highMultiplier",t)};k["com.stencyl.graphics.shaders.BloomShader"]=Yp;Yp.__name__="com.stencyl.graphics.shaders.BloomShader";Yp.__super__=sd;Yp.prototype=r(sd.prototype,{__class__:Yp});var Zp= function(a,c,b){null==b&&(b=1);null==c&&(c=1);null==a&&(a=2);this.model=new yd(this,"\n\t\t\t#ifdef GL_ES\n\t\t\t\tprecision mediump float;\n\t\t\t#endif\n\t\t\t\n\t\t\t//in attributes from our vertex shader\n\t\t\tvarying vec2 vTexCoord;\n\t\t\t\n\t\t\t//declare uniforms\n\t\t\tuniform sampler2D uImage0;\n\t\t\tuniform vec2 uResolution;\n\t\t\t\n\t\t\tuniform float radius;\n\t\t\tuniform float dirx;\n\t\t\tuniform float diry;\n\t\t\t\n\t\t\tvoid main()\n\t\t\t{\n\t\t\t\t//this will be our RGBA sum\n\t\t\t\tvec4 sum = vec4(0.0);\n\t\t\t\n\t\t\t\t//our original texcoord for this fragment\n\t\t\t\tvec2 tc = vTexCoord;\n\t\t\t\n\t\t\t\t//the amount to blur, i.e. how far off center to sample from\n\t\t\t\t//1.0 -> blur by one pixel\n\t\t\t\t//2.0 -> blur by two pixels, etc.\n\t\t\t\tfloat blur = radius / uResolution.x;\n\t\t\t\n\t\t\t\t//the direction of our blur\n\t\t\t\t//(1.0, 0.0) -> x-axis blur\n\t\t\t\t//(0.0, 1.0) -> y-axis blur\n\t\t\t\tfloat hstep = dirx;\n\t\t\t\tfloat vstep = diry;\n\t\t\t\n\t\t\t\t//apply blurring, using a 9-tap filter with predefined gaussian weights\n\t\t\t\n\t\t\t\tsum += texture2D(uImage0, vec2(tc.x - 4.0*blur*hstep, tc.y - 4.0*blur*vstep)) * 0.0162162162;\n\t\t\t\tsum += texture2D(uImage0, vec2(tc.x - 3.0*blur*hstep, tc.y - 3.0*blur*vstep)) * 0.0540540541;\n\t\t\t\tsum += texture2D(uImage0, vec2(tc.x - 2.0*blur*hstep, tc.y - 2.0*blur*vstep)) * 0.1216216216;\n\t\t\t\tsum += texture2D(uImage0, vec2(tc.x - 1.0*blur*hstep, tc.y - 1.0*blur*vstep)) * 0.1945945946;\n\t\t\t\n\t\t\t\tsum += texture2D(uImage0, vec2(tc.x, tc.y)) * 0.2270270270;\n\t\t\t\n\t\t\t\tsum += texture2D(uImage0, vec2(tc.x + 1.0*blur*hstep, tc.y + 1.0*blur*vstep)) * 0.1945945946;\n\t\t\t\tsum += texture2D(uImage0, vec2(tc.x + 2.0*blur*hstep, tc.y + 2.0*blur*vstep)) * 0.1216216216;\n\t\t\t\tsum += texture2D(uImage0, vec2(tc.x + 3.0*blur*hstep, tc.y + 3.0*blur*vstep)) * 0.0540540541;\n\t\t\t\tsum += texture2D(uImage0, vec2(tc.x + 4.0*blur*hstep, tc.y + 4.0*blur*vstep)) * 0.0162162162;\n\t\t\t\n\t\t\t\t//discard alpha for our simple demo, multiply by vertex color and return\n\t\t\t\tgl_FragColor = vec4(sum.rgb, 1.0);\n\t\t\t}\n\t\t", !0);this.setRadius(a);this.setDirectionX(c);this.setDirectionY(b)};k["com.stencyl.graphics.shaders.BlurShader"]=Zp;Zp.__name__="com.stencyl.graphics.shaders.BlurShader";Zp.__super__=sd;Zp.prototype=r(sd.prototype,{setRadius:function(a){this.setProperty("radius",a)},setDirectionX:function(a){this.setProperty("dirx",a)},setDirectionY:function(a){this.setProperty("diry",a)},__class__:Zp});var Ei=function(a,c,b){null==b&&(b=1);null==c&&(c=1);null==a&&(a=1);this.model=new yd(this,"\n\t\t\t#ifdef GL_ES\n\t\t\t\tprecision mediump float;\n\t\t\t#endif\n\n\t\t\tvarying vec2 vTexCoord;\n\t\t\tuniform sampler2D uImage0;\n\t\t\tuniform float contrast;\n\t\t\tuniform float brightness;\n\t\t\tuniform float saturation;\n\n\t\t\tvec3 _mix(vec3 a, vec3 b, float amount) \n\t\t\t{ \n\t\t\t\treturn vec3(a.x * (1.0 - amount) + b.x * amount, a.y * (1.0 - amount) + b.y * amount, a.z * (1.0 - amount) + b.z * amount); \n\t\t\t}\n\n\t\t\tvoid main() \n\t\t\t{\n\t\t\t\tvec3 color = texture2D(uImage0, vTexCoord).rgb;\n\t\t\t\tconst vec3 luminanceCoefficient = vec3(0.2125, 0.7154, 0.0721);\n\t\t\t\tvec3 avgLuminance = vec3(0.5, 0.5, 0.5);\n\t\t\n\t\t\t\tvec3 brtColor = vec3(color.x * brightness, color.y * brightness, color.z * brightness);\n\t\t\t\tvec3 intensity = vec3(dot(brtColor, luminanceCoefficient));\n\t\t\t\tvec3 satColor = _mix(intensity, brtColor, saturation);\n\t\t\t\tvec3 conColor = _mix(avgLuminance, satColor, contrast);\n\t\t\n\t\t\t\tgl_FragColor = vec4(conColor, 1);\n\t\t\t}\n\t\t", !0);this.setContrast(a);this.setBrightness(c);this.setSaturation(b)};k["com.stencyl.graphics.shaders.CSBShader"]=Ei;Ei.__name__="com.stencyl.graphics.shaders.CSBShader";Ei.create=function(a,c){null==c&&(c=1);null==a&&(a="contrast");return"contrast"==a?new Ei(c,1,1):"saturation"==a?new Ei(1,1,c):new Ei(1,c,1)};Ei.__super__=sd;Ei.prototype=r(sd.prototype,{setContrast:function(a){this.setProperty("contrast",a)},setBrightness:function(a){this.setProperty("brightness",a)},setSaturation:function(a){this.setProperty("saturation", a)},__class__:Ei});var $p=function(a){this.model=new yd(this,"assets/data/"+a)};k["com.stencyl.graphics.shaders.ExternalShader"]=$p;$p.__name__="com.stencyl.graphics.shaders.ExternalShader";$p.__super__=sd;$p.prototype=r(sd.prototype,{__class__:$p});var aq=function(a,c,b,f,e){null==e&&(e=1);null==f&&(f=1.6);null==b&&(b=.6);null==c&&(c=!1);null==a&&(a=.05);this.model=new yd(this,"\n\t\t\t/*\n\t\t\t\tFilm Grain post-process shader v1.1\n\t\t\t\tMartins Upitis (martinsh) devlog-martinsh.blogspot.com\n\t\t\t*/\n\n\t\t\t#ifdef GL_ES\n\t\t\t\tprecision mediump float;\n\t\t\t#endif\n\t\t\t\n\t\t\tuniform sampler2D uImage0; //rendered scene sampler\n\t\t\tuniform vec2 uResolution; //scene sampler resolution\n\t\t\tuniform float uTime;\n\t\t\t\n\t\t\tvarying vec2 vTexCoord;\n\t\t\t\n\t\t\tconst float permTexUnit = 1.0/256.0; // Perm texture texel-size\n\t\t\tconst float permTexUnitHalf = 0.5/256.0; // Half perm texture texel-size\n\t\t\t\n\t\t\tfloat width;\n\t\t\tfloat height;\n\t\t\t\n\t\t\tuniform float grainamount; //grain amount\n\t\t\tuniform float colored; //colored noise?\n\t\t\tuniform float coloramount;\n\t\t\tuniform float grainsize; //grain particle size (1.5 - 2.5)\n\t\t\tuniform float lumamount; //\n\t\t\t\n\t\t\t//a random texture generator, but you can also use a pre-computed perturbation texture\n\t\t\tvec4 rnm(in vec2 tc)\n\t\t\t{\n\t\t\t\tfloat noise = sin(dot(tc + vec2(uTime,uTime),vec2(12.9898,78.233))) * 43758.5453;\n\t\t\t\n\t\t\t\tfloat noiseR = fract(noise)*2.0-1.0;\n\t\t\t\tfloat noiseG = fract(noise*1.2154)*2.0-1.0;\n\t\t\t\tfloat noiseB = fract(noise*1.3453)*2.0-1.0;\n\t\t\t\tfloat noiseA = fract(noise*1.3647)*2.0-1.0;\n\t\t\t\n\t\t\t\treturn vec4(noiseR,noiseG,noiseB,noiseA);\n\t\t\t}\n\t\t\t\n\t\t\tfloat fade(in float t) {\n\t\t\t\treturn t*t*t*(t*(t*6.0-15.0)+10.0);\n\t\t\t}\n\t\t\t\n\t\t\tfloat pnoise3D(in vec3 p)\n\t\t\t{\n\t\t\t\tvec3 pi = permTexUnit*floor(p)+permTexUnitHalf; // Integer part, scaled so +1 moves permTexUnit texel\n\t\t\t\t// and offset 1/2 texel to sample texel centers\n\t\t\t\tvec3 pf = fract(p); // Fractional part for interpolation\n\t\t\t\n\t\t\t\t// Noise contributions from (x=0, y=0), z=0 and z=1\n\t\t\t\tfloat perm00 = rnm(pi.xy).a ;\n\t\t\t\tvec3 grad000 = rnm(vec2(perm00, pi.z)).rgb * 4.0 - 1.0;\n\t\t\t\tfloat n000 = dot(grad000, pf);\n\t\t\t\tvec3 grad001 = rnm(vec2(perm00, pi.z + permTexUnit)).rgb * 4.0 - 1.0;\n\t\t\t\tfloat n001 = dot(grad001, pf - vec3(0.0, 0.0, 1.0));\n\t\t\t\n\t\t\t\t// Noise contributions from (x=0, y=1), z=0 and z=1\n\t\t\t\tfloat perm01 = rnm(pi.xy + vec2(0.0, permTexUnit)).a ;\n\t\t\t\tvec3 grad010 = rnm(vec2(perm01, pi.z)).rgb * 4.0 - 1.0;\n\t\t\t\tfloat n010 = dot(grad010, pf - vec3(0.0, 1.0, 0.0));\n\t\t\t\tvec3 grad011 = rnm(vec2(perm01, pi.z + permTexUnit)).rgb * 4.0 - 1.0;\n\t\t\t\tfloat n011 = dot(grad011, pf - vec3(0.0, 1.0, 1.0));\n\t\t\t\n\t\t\t\t// Noise contributions from (x=1, y=0), z=0 and z=1\n\t\t\t\tfloat perm10 = rnm(pi.xy + vec2(permTexUnit, 0.0)).a ;\n\t\t\t\tvec3 grad100 = rnm(vec2(perm10, pi.z)).rgb * 4.0 - 1.0;\n\t\t\t\tfloat n100 = dot(grad100, pf - vec3(1.0, 0.0, 0.0));\n\t\t\t\tvec3 grad101 = rnm(vec2(perm10, pi.z + permTexUnit)).rgb * 4.0 - 1.0;\n\t\t\t\tfloat n101 = dot(grad101, pf - vec3(1.0, 0.0, 1.0));\n\t\t\t\n\t\t\t\t// Noise contributions from (x=1, y=1), z=0 and z=1\n\t\t\t\tfloat perm11 = rnm(pi.xy + vec2(permTexUnit, permTexUnit)).a ;\n\t\t\t\tvec3 grad110 = rnm(vec2(perm11, pi.z)).rgb * 4.0 - 1.0;\n\t\t\t\tfloat n110 = dot(grad110, pf - vec3(1.0, 1.0, 0.0));\n\t\t\t\tvec3 grad111 = rnm(vec2(perm11, pi.z + permTexUnit)).rgb * 4.0 - 1.0;\n\t\t\t\tfloat n111 = dot(grad111, pf - vec3(1.0, 1.0, 1.0));\n\t\t\t\n\t\t\t\t// Blend contributions along x\n\t\t\t\tvec4 n_x = mix(vec4(n000, n001, n010, n011), vec4(n100, n101, n110, n111), fade(pf.x));\n\t\t\t\n\t\t\t\t// Blend contributions along y\n\t\t\t\tvec2 n_xy = mix(n_x.xy, n_x.zw, fade(pf.y));\n\t\t\t\n\t\t\t\t// Blend contributions along z\n\t\t\t\tfloat n_xyz = mix(n_xy.x, n_xy.y, fade(pf.z));\n\t\t\t\n\t\t\t\t// We're done, return the final noise value.\n\t\t\t\treturn n_xyz;\n\t\t\t}\n\t\t\t\n\t\t\t//2d coordinate orientation thing\n\t\t\tvec2 coordRot(in vec2 tc, in float angle)\n\t\t\t{\n\t\t\t\tfloat aspect = width/height;\n\t\t\t\tfloat rotX = ((tc.x*2.0-1.0)*aspect*cos(angle)) - ((tc.y*2.0-1.0)*sin(angle));\n\t\t\t\tfloat rotY = ((tc.y*2.0-1.0)*cos(angle)) + ((tc.x*2.0-1.0)*aspect*sin(angle));\n\t\t\t\trotX = ((rotX/aspect)*0.5+0.5);\n\t\t\t\trotY = rotY*0.5+0.5;\n\t\t\t\treturn vec2(rotX,rotY);\n\t\t\t}\n\t\t\t\n\t\t\tvoid main()\n\t\t\t{\n\t\t\t\twidth = uResolution.x;\n\t\t\t\theight = uResolution.y;\n\t\t\t\t\n\t\t\t\tvec2 texCoord = vTexCoord.st;\n\t\t\t\n\t\t\t\tvec3 rotOffset = vec3(1.425,3.892,5.835); //rotation offset values\n\t\t\t\tvec2 rotCoordsR = coordRot(texCoord, uTime + rotOffset.x);\n\t\t\t\tvec3 noise = vec3(pnoise3D(vec3(rotCoordsR*vec2(width/grainsize,height/grainsize),0.0)));\n\t\t\t\n\t\t\t\tif (colored == 1.0)\n\t\t\t\t{\n\t\t\t\t\tvec2 rotCoordsG = coordRot(texCoord, uTime + rotOffset.y);\n\t\t\t\t\tvec2 rotCoordsB = coordRot(texCoord, uTime + rotOffset.z);\n\t\t\t\t\tnoise.g = mix(noise.r,pnoise3D(vec3(rotCoordsG*vec2(width/grainsize,height/grainsize),1.0)),coloramount);\n\t\t\t\t\tnoise.b = mix(noise.r,pnoise3D(vec3(rotCoordsB*vec2(width/grainsize,height/grainsize),2.0)),coloramount);\n\t\t\t\t}\n\t\t\t\n\t\t\t\tvec3 col = texture2D(uImage0, texCoord).rgb;\n\t\t\t\n\t\t\t\t//noisiness response curve based on scene luminance\n\t\t\t\tvec3 lumcoeff = vec3(0.299,0.587,0.114);\n\t\t\t\tfloat luminance = mix(0.0,dot(col, lumcoeff),lumamount);\n\t\t\t\tfloat lum = smoothstep(0.2,0.0,luminance);\n\t\t\t\tlum += luminance;\n\t\t\t\n\t\t\t\n\t\t\t\tnoise = mix(noise,vec3(0.0),pow(lum,4.0));\n\t\t\t\tcol = col+noise*grainamount;\n\t\t\t\n\t\t\t\tgl_FragColor = vec4(col,1.0);\n\t\t\t}\n\t\t", !0);this.setGrainAmount(a);this.setColorAmount(b);this.setGrainSize(f);this.setLuminance(e);c?this.enableColor():this.disableColor()};k["com.stencyl.graphics.shaders.GrainShader"]=aq;aq.__name__="com.stencyl.graphics.shaders.GrainShader";aq.__super__=sd;aq.prototype=r(sd.prototype,{enableColor:function(){this.setProperty("colored",1)},disableColor:function(){this.setProperty("colored",0)},setGrainAmount:function(a){this.setProperty("grainamount",a)},setColorAmount:function(a){this.setProperty("coloramount", a)},setGrainSize:function(a){this.setProperty("grainsize",a)},setLuminance:function(a){this.setProperty("lumamount",a)},__class__:aq});var bq=function(){this.model=new yd(this,"\n\t\t\t#ifdef GL_ES\n\t\t\t\tprecision mediump float;\n\t\t\t#endif\n\t\t\t\n\t\t\tvarying vec2 vTexCoord;\n\t\t\tuniform sampler2D uImage0;\n\t\t\t\n\t\t\tvoid main(void)\n\t\t\t{\n\t\t\t\tvec4 color = texture2D(uImage0, vTexCoord);\n\t\t\t\tfloat gray = dot(color.rgb, vec3(0.299, 0.587, 0.114));\n\t\t\t\tgl_FragColor = vec4(gray, gray, gray, 1.0);\n\t\t\t}\n\t\t", !0)};k["com.stencyl.graphics.shaders.GrayscaleShader"]=bq;bq.__name__="com.stencyl.graphics.shaders.GrayscaleShader";bq.__super__=sd;bq.prototype=r(sd.prototype,{__class__:bq});var cq=function(a,c){null==c&&(c=!0);null==a&&(a=0);c&&(a*=Math.PI/180);this.model=new yd(this,"\n\t\t\t#ifdef GL_ES\n\t\t\t\tprecision mediump float;\n\t\t\t#endif\n\t\t\t\n\t\t\tvarying vec2 vTexCoord;\n\t\t\tuniform sampler2D uImage0;\n\t\t\t\n\t\t\tuniform float hue;\n\t\t\tconst mat3 rgb2yiq = mat3(0.299, 0.587, 0.114, 0.595716, -0.274453, -0.321263, 0.211456, -0.522591, 0.311135);\n\t\t\tconst mat3 yiq2rgb = mat3(1.0, 0.9563, 0.6210, 1.0, -0.2721, -0.6474, 1.0, -1.1070, 1.7046);\n\n\t\t\tvoid main() \n\t\t\t{\n\t\t\t\tvec3 color = texture2D(uImage0, vTexCoord).rgb;\n\t\t\t\tvec3 yColor = rgb2yiq * color; \n\n\t\t\t\tfloat originalHue = atan(yColor.b, yColor.g);\n\t\t\t\tfloat finalHue = originalHue + hue;\n\t\t\t\tfloat chroma = sqrt(yColor.b * yColor.b + yColor.g * yColor.g);\n\t\t\t\t\n\t\t\t\tvec3 yFinalColor = vec3(yColor.r, chroma * cos(finalHue), chroma * sin(finalHue));\n\t\t\t\tgl_FragColor = vec4(yiq2rgb * yFinalColor, 1.0);\n\t\t\t}\n\t\t", !0);this.setHue(a,!1)};k["com.stencyl.graphics.shaders.HueShader"]=cq;cq.__name__="com.stencyl.graphics.shaders.HueShader";cq.__super__=sd;cq.prototype=r(sd.prototype,{setHue:function(a,c){null==c&&(c=!0);c&&(a*=Math.PI/180);this.setProperty("hue",a)},__class__:cq});var dq=function(a){this.model=new yd(this,a,!0)};k["com.stencyl.graphics.shaders.InlineShader"]=dq;dq.__name__="com.stencyl.graphics.shaders.InlineShader";dq.__super__=sd;dq.prototype=r(sd.prototype,{__class__:dq});var eq=function(){this.model= new yd(this,"\n\t\t\t#ifdef GL_ES\n\t\t\t\tprecision mediump float;\n\t\t\t#endif\n\t\t\t\n\t\t\tvarying vec2 vTexCoord;\n\t\t\tuniform sampler2D uImage0;\n\t\t\t\n\t\t\tvoid main(void)\n\t\t\t{\n\t\t\t\tvec4 color = texture2D(uImage0, vTexCoord);\n\t\t\t\tgl_FragColor = vec4(vec3(1.0, 1.0, 1.0) - color.rgb, color.a);\n\t\t\t}\n\t\t",!0)};k["com.stencyl.graphics.shaders.InvertShader"]=eq;eq.__name__="com.stencyl.graphics.shaders.InvertShader";eq.__super__=sd;eq.prototype=r(sd.prototype,{__class__:eq}); var yd=function(a,c,b){null==b&&(b=!1);this.timeScale=1;this.time=0;wa.call(this);this.basicShader=a;this.gl=m.stage.__renderer.gl;this.uniforms=new sa;this.changedUniforms=[];this.uniformTweens=new sa;this.rebuild();this.gl.checkFramebufferStatus(36160);this.buffer=this.gl.createBuffer();this.gl.bindBuffer(34962,this.buffer);a=[-1,-1,0,0,1,-1,1,0,-1,1,0,1,1,-1,1,0,1,1,1,1,-1,1,0,1];a=null!=a?new Float32Array(a):null;wb.bufferData(this.gl,34962,a,35044);this.gl.bindBuffer(34962,null);if(b)this.fullScreenShader= new Uk([{src:"\n#ifdef GL_ES\n\tprecision mediump float;\n#endif\n\nattribute vec4 aVertex;\n\nattribute vec2 aTexCoord;\nvarying vec2 vTexCoord;\n\nvoid main() {\n\tvTexCoord = aTexCoord;\n\tgl_Position = vec4(aVertex.x, aVertex.y, 0.0, 1.0);\n}",fragment:!1},{src:c,fragment:!0}]);else if(6>16&255)/255);this.setProperty("green",(a>>8&255)/255);this.setProperty("blue",(a&255)/255)},__class__:jq});var vb=function(a){this.duration=a;this.complete=this.active=!1;0==a&&(this.active=this.complete=!0)};k["com.stencyl.graphics.transitions.Transition"]= vb;vb.__name__="com.stencyl.graphics.transitions.Transition";vb.prototype={duration:null,direction:null,active:null,complete:null,start:function(){},reset:function(){this.complete=!1},stop:function(){this.complete=!0},deactivate:function(){this.active=!1},cleanup:function(){},isActive:function(){return this.active},isComplete:function(){return this.complete},update:function(a){},draw:function(a){},getDuration:function(){return this.duration},__class__:vb};var Mk=function(a,c,b,f){null==b&&(b=10); vb.call(this,c);this.color=f;this.direction=a;this.numBlinds=b;a==vb.IN?(this.beginBlindWidth=m.screenWidth*m.SCALE/b,this.endBlindWidth=0):a==vb.OUT?(this.beginBlindWidth=0,this.endBlindWidth=m.screenWidth*m.SCALE/b):this.complete=!0};k["com.stencyl.graphics.transitions.BlindsTransition"]=Mk;Mk.__name__="com.stencyl.graphics.transitions.BlindsTransition";Mk.__super__=vb;Mk.prototype=r(vb.prototype,{color:null,numBlinds:null,blindWidth:null,beginBlindWidth:null,endBlindWidth:null,blindRect:null,rect:null, graphics:null,start:function(){this.active=!0;this.blindRect=new ia(0,0,this.beginBlindWidth,m.screenHeight*m.SCALE);this.blindWidth=new Re;this.rect=new Oe;this.graphics=this.rect.get_graphics();this.direction==vb.IN&&(this.graphics.beginFill(this.color),this.graphics.drawRect(0,0,m.screenWidth*m.SCALE,m.screenHeight*m.SCALE),this.graphics.endFill());m.engine.transitionLayer.addChild(this.rect);this.blindWidth.tween(this.beginBlindWidth,this.endBlindWidth,hb.linear,1E3*this.duration|0).doOnComplete(x(this, this.stop))},draw:function(a){this.graphics.clear();this.graphics.beginFill(this.color);this.blindRect.x=0;this.blindRect.width=this.blindWidth.value;this.direction==vb.IN&&(this.blindRect.x+=m.screenWidth*m.SCALE/this.numBlinds-this.blindWidth.value);a=0;for(var c=this.numBlinds;ac)return!1}return!0};Id.EnsureCorrectVertexDirection= function(a){return Id.CheckVertexDirection(a)?!0:(Id.ReverseVertices(a),!1)};Id.ReverseVertices=function(a){for(var c=0,b=a.length-1,f;b>c;)f=a[c].x,a[c].x=a[b].x,a[b].x=f,f=a[c].y,a[c].y=a[b].y,a[b].y=f,++c,--b};Id.getWidth=function(a){for(var c=1E7,b=0,f=0;fthis.bodyDef.friction&&(h.friction=this.bodyDef.friction,h.restitution=this.bodyDef.bounciness,0=this.mouseState){this.mouseState=1;var b=this.mouseOverListeners;c=this.mouseState;for(var f=0;fb;)fe.free(t.points.pop());b=0}else{var q=f.getFixtureA().getUserData(),u=f.getFixtureB().getUserData();q==this?(m=u,p=f.getFixtureB(),n=f.getFixtureA()):(m=q,p=f.getFixtureA(),n=f.getFixtureB());k=new Dc;k.otherActor=m;k.otherShape=p;k.thisActor=this;k.thisShape=n;k.actorA=q;k.actorB=u;f.getWorldManifold(yb.manifold);this.collisions.set(t,k);this.collisionsCount++;t=this.getBody();q=m.getBody(); u=f.getFixtureA().getBody();for(var v=f.getFixtureB().getBody(),w=0,r=yb.manifold.m_points;wf.normalY,k.thisFromLeft=k.thisFromLeft||0>f.normalX,k.thisFromRight= k.thisFromRight||0f.normalY,k.thisFromTop=k.thisFromTop||0f.normalX),u==q?(k.otherFromBottom=k.otherFromBottom||0f.normalY,k.otherFromLeft=k.otherFromLeft||0>f.normalX,k.otherFromRight=k.otherFromRight||0f.normalY,k.otherFromTop=k.otherFromTop||0f.normalX),null!=m&&(k.thisCollidedWithActor=k.thisCollidedWithActor||1!=m.groupID&&-2!=m.groupID&&!m.isTerrainRegion,k.thisCollidedWithTerrain=k.thisCollidedWithTerrain||m.isTerrainRegion,k.thisCollidedWithTile=k.thisCollidedWithTile||1==m.groupID),k.otherCollidedWithActor=k.otherCollidedWithActor||1!=this.groupID&&-2!=this.groupID&&!this.isTerrainRegion,k.otherCollidedWithTerrain=k.otherCollidedWithTerrain||this.isTerrainRegion, k.otherCollidedWithTile=k.otherCollidedWithTile||1==this.groupID,k.thisCollidedWithSensor=k.thisCollidedWithSensor||p.isSensor(),k.otherCollidedWithSensor=k.otherCollidedWithSensor||n.isSensor())}}if(0c.durations[c.frameIndex]&&(a=c.frameIndex,c.timer-=c.durations[c.frameIndex],c.frameIndex++,c.frameIndex>=c.numFrames&&(c.model.looping?c.frameIndex=0:(c.finished=!0,c.frameIndex--)),a!=c.frameIndex&&(null!=c.filter?(c.filteredFrames[c.frameIndex]||(c.frames[c.frameIndex]=c.applyFilters(c.frames[c.frameIndex],c.model.frames[c.frameIndex],c.filter),c.filteredFrames[c.frameIndex]=!0),c.set_bitmapData(c.frames[c.frameIndex])): c.set_bitmapData(c.model.frames[c.frameIndex]),c.smoothing=oa.antialias))))}},updateDrawingMatrix:function(a){null==a&&(a=!1);if(!this.paused||a)this.smoothMove?(this.firstMove||(this.drawX=this.realX,this.drawY=this.realY,this.firstMove=!0),this.moveXDistance=this.realX-this.drawX,this.moveYDistance=this.realY-this.drawY,this.drawX=this.moveXDistance>this.minMove?this.moveXDistance*this.moveMultiplier>this.minMove?this.moveXDistance>this.maxMove?this.realX:this.drawX+this.moveXDistance*this.moveMultiplier: this.drawX+this.minMove:this.moveXDistance<-1*this.minMove?this.moveXDistance*this.moveMultiplier<-1*this.minMove?this.moveXDistance<-1*this.maxMove?this.realX:this.drawX+this.moveXDistance*this.moveMultiplier:this.drawX-this.minMove:this.realX,this.drawY=this.moveYDistance>this.minMove?this.moveYDistance*this.moveMultiplier>this.minMove?this.moveYDistance>this.maxMove?this.realY:this.drawY+this.moveYDistance*this.moveMultiplier:this.drawY+this.minMove:this.moveYDistance<-1*this.minMove?this.moveYDistance* this.moveMultiplier<-1*this.minMove?this.moveYDistance<-1*this.maxMove?this.realY:this.drawY+this.moveYDistance*this.moveMultiplier:this.drawY-this.minMove:this.realY):0!=this.physicsMode?(this.drawX=this.realX,this.drawY=this.realY):(a=this.body.getPosition(),this.drawX=a.x*m.physicsScale,this.drawY=a.y*m.physicsScale),this.transformPoint.x=(this.currOrigin.x-this.cacheWidth/2)*m.SCALE,this.transformPoint.y=(this.currOrigin.y-this.cacheHeight/2)*m.SCALE,this.transformMatrix.identity(),this.transformMatrix.translate(-this.transformPoint.x, -this.transformPoint.y),this.transformMatrix.scale(this.realScaleX,this.realScaleY),0!=this.realAngle&&this.transformMatrix.rotate(.01745329251994278*this.realAngle),oa.pixelsnap?this.transformMatrix.translate(Math.round(this.drawX)*m.SCALE,Math.round(this.drawY)*m.SCALE):this.transformMatrix.translate(this.drawX*m.SCALE,this.drawY*m.SCALE),null==this.transformObj&&(this.transformObj=this.get_transform()),this.transformObj.set_matrix(this.transformMatrix)},updateTweenAlpha:function(){this.set_alpha(this.tweenProps.alpha.value)}, updateTweenScaleXY:function(){this.realScaleX=this.tweenProps.realScaleXY.value1;this.realScaleY=this.tweenProps.realScaleXY.value2;this.updateBodyScale()},updateTweenAngle:function(){this.setAngle(this.tweenProps.angle.value,!1)},updateTweenXY:function(){0==this.physicsMode?this.setXY(this.tweenProps.xy.value1,this.tweenProps.xy.value2):(this.moveActorBy(this.tweenProps.xy.value1-this.getX(!1),this.tweenProps.xy.value2-this.getY(!1),!1),this.updateMatrix=!0);this.tweenProps.xy.finished&&null!=this.currOffset&& this.resetReal(this.realX,this.realY)},updateBodyScale:function(){this.autoScale&&0==this.physicsMode&&null!=this.body&&this.bodyDef.type!=va.b2_staticBody&&0!=this.realScaleX&&0!=this.realScaleY&&this.scaleBody(this.realScaleX,this.realScaleY)},scaleBody:function(a,c){for(var b=[],f=this.body.getFixtureList();null!=f;)b.push(f),f=f.getNext();for(f=0;fa||0>this.bodyScale.x&&0c||0>this.bodyScale.y&&0a;)fe.free(f.points.pop());a=0}else{var t=c.getFixtureA().getUserData(),p=c.getFixtureB().getUserData();t==this?(g=p,e=c.getFixtureB(),h=c.getFixtureA()):(g=t,e=c.getFixtureA(),h=c.getFixtureB());l=new Dc;l.otherActor=g;l.otherShape=e;l.thisActor=this;l.thisShape= h;l.actorA=t;l.actorB=p;c.getWorldManifold(yb.manifold);this.collisions.set(f,l);this.collisionsCount++;f=this.getBody();t=g.getBody();p=c.getFixtureA().getBody();for(var m=c.getFixtureB().getBody(),n=0,k=yb.manifold.m_points;nc.normalY,l.thisFromLeft=l.thisFromLeft||0>c.normalX,l.thisFromRight=l.thisFromRight||0c.normalY,l.thisFromTop=l.thisFromTop||0c.normalX),p==t?(l.otherFromBottom=l.otherFromBottom||0c.normalY,l.otherFromLeft=l.otherFromLeft||0>c.normalX,l.otherFromRight=l.otherFromRight|| 0c.normalY,l.otherFromTop=l.otherFromTop||0c.normalX),null!=g&&(l.thisCollidedWithActor=l.thisCollidedWithActor||1!=g.groupID&&-2!=g.groupID&&!g.isTerrainRegion,l.thisCollidedWithTerrain=l.thisCollidedWithTerrain||g.isTerrainRegion,l.thisCollidedWithTile=l.thisCollidedWithTile||1==g.groupID),l.otherCollidedWithActor=l.otherCollidedWithActor||1!=this.groupID&& -2!=this.groupID&&!this.isTerrainRegion,l.otherCollidedWithTerrain=l.otherCollidedWithTerrain||this.isTerrainRegion,l.otherCollidedWithTile=l.otherCollidedWithTile||1==this.groupID,l.thisCollidedWithSensor=l.thisCollidedWithSensor||e.isSensor(),l.otherCollidedWithSensor=l.otherCollidedWithSensor||h.isSensor())}}if(0c&&(a=c);0>a&&(a=0);this.parent.setChildIndex(this,a)},enableSmoothMotion:function(){this.smoothMove= !0},getX:function(a){null==a&&(a=!0);var c=-1;m.NO_PHYSICS||(this.isRegion||this.isTerrainRegion?c=m.toPixelUnits(this.body.getPosition().x)-this.cacheWidth/2:0==this.physicsMode&&(c=this.body.getPosition().x*m.physicsScale-Math.floor(this.cacheWidth/2)-this.currOffset.x));if(m.NO_PHYSICS||0!=this.physicsMode)c=this.realX-Math.floor(this.cacheWidth/2)-this.currOffset.x;return a?Math.round(c):c},getY:function(a){null==a&&(a=!0);var c=-1;m.NO_PHYSICS||(this.isRegion||this.isTerrainRegion?c=m.toPixelUnits(this.body.getPosition().y)- this.cacheHeight/2:0==this.physicsMode&&(c=this.body.getPosition().y*m.physicsScale-Math.floor(this.cacheHeight/2)-this.currOffset.y));if(m.NO_PHYSICS||0!=this.physicsMode)c=this.realY-Math.floor(this.cacheHeight/2)-this.currOffset.y;return a?Math.round(c):c},getXCenter:function(){return 0==this.physicsMode?Math.round(m.toPixelUnits(this.body.getWorldCenter().x)-this.currOffset.x):this.realX-this.currOffset.x},getYCenter:function(){return 0==this.physicsMode?Math.round(m.toPixelUnits(this.body.getWorldCenter().y)- this.currOffset.y):this.realY-this.currOffset.y},getScreenX:function(){return this.isHUD?this.getX(!0):this.getX(!0)-m.cameraX/m.SCALE},getScreenY:function(){return this.isHUD?this.getY(!0):this.getY(!0)-m.cameraY/m.SCALE},setX:function(a,c,b){null==b&&(b=!1);null==c&&(c=!1);1==this.physicsMode?(c=b||!this.continuousCollision,null==c&&(c=!0),this.moveActorBy(a+Math.floor(this.cacheWidth/2)+this.currOffset.x-this.realX,this.realY-this.realY,c,!1)):2==this.physicsMode?this.resetReal(a+Math.floor(this.cacheWidth/ 2)+this.currOffset.x,this.realY):(this.dummy.x=this.isRegion||this.isTerrainRegion?m.toPhysicalUnits(a):m.toPhysicalUnits(a+Math.floor(this.cacheWidth/2)+this.currOffset.x),this.dummy.y=this.body.getPosition().y,this.body.setPosition(this.dummy),c&&this.body.setLinearVelocity(this.zero));this.snapOnSet&&(this.drawX=this.realX,this.drawY=this.realY);this.updateMatrix=!0},setY:function(a,c,b){null==b&&(b=!1);null==c&&(c=!1);1==this.physicsMode?(c=b||!this.continuousCollision,null==c&&(c=!0),this.moveActorBy(this.realX- this.realX,a+Math.floor(this.cacheHeight/2)+this.currOffset.y-this.realY,c,!1)):2==this.physicsMode?this.resetReal(this.realX,a+Math.floor(this.cacheHeight/2)+this.currOffset.y):(this.dummy.y=this.isRegion||this.isTerrainRegion?m.toPhysicalUnits(a):m.toPhysicalUnits(a+Math.floor(this.cacheHeight/2)+this.currOffset.y),this.dummy.x=this.body.getPosition().x,this.body.setPosition(this.dummy),c&&this.body.setLinearVelocity(this.zero));this.snapOnSet&&(this.drawX=this.realX,this.drawY=this.realY);this.updateMatrix= !0},setXY:function(a,c,b,f){null==f&&(f=!1);null==b&&(b=!1);1==this.physicsMode?(b=f||!this.continuousCollision,null==b&&(b=!0),this.moveActorBy(a+Math.floor(this.cacheWidth/2)+this.currOffset.x-this.realX,c+Math.floor(this.cacheHeight/2)+this.currOffset.y-this.realY,b,!1),0==this.colX&&0==this.colY&&this.resetReal(this.realX,this.realY)):2==this.physicsMode?this.resetReal(a+Math.floor(this.cacheWidth/2)+this.currOffset.x,c+Math.floor(this.cacheHeight/2)+this.currOffset.y):(this.isRegion||this.isTerrainRegion? (this.dummy.x=m.toPhysicalUnits(a),this.dummy.y=m.toPhysicalUnits(c)):(this.dummy.x=m.toPhysicalUnits(a+Math.floor(this.cacheWidth/2)+this.currOffset.x),this.dummy.y=m.toPhysicalUnits(c+Math.floor(this.cacheHeight/2)+this.currOffset.y)),this.body.setPosition(this.dummy),b&&this.body.setLinearVelocity(this.zero));this.snapOnSet&&(this.drawX=this.realX,this.drawY=this.realY);this.updateMatrix=!0},setXCenter:function(a){this.setX(a-this.getWidth()/2)},setYCenter:function(a){this.setY(a-this.getHeight()/ 2)},setScreenX:function(a){this.isHUD?this.setX(a):this.setX(a+m.cameraX/m.SCALE)},setScreenY:function(a){this.isHUD?this.setY(a):this.setY(a+m.cameraY/m.SCALE)},follow:function(a){if(null!=a)if(0!=this.physicsMode){var c=a.getXCenter();a=a.getYCenter();this.moveActorBy(c-this.realX,a-this.realY,!0,!1)}else this.body.setPosition(a.body.getWorldCenter())},followWithOffset:function(a,c,b){0!=this.physicsMode?(c=a.getXCenter()+c,b=a.getYCenter()+b,this.moveActorBy(c-this.realX,b-this.realY,!0,!1)):(a= a.body.getWorldCenter(),a.x+=m.toPhysicalUnits(c),a.y+=m.toPhysicalUnits(b),this.body.setPosition(a))},setOriginPoint:function(a,c){var b=0==this.physicsMode?this.body.getPosition():new M(m.toPhysicalUnits(this.realX),m.toPhysicalUnits(this.realY));var f=new M(this.currOffset.x,this.currOffset.y),e=this.getAngle(),g=a-this.cacheWidth/2|0,h=c-this.cacheHeight/2|0;if(null!=this.currOrigin&&((this.currOffset.x|0)!=g||(this.currOffset.y|0)!=h)&&0!=(57.29577951308402*e|0)){var l=e+Math.atan2(-this.currOffset.y, -this.currOffset.x);e+=Math.atan2(-h,-g);var t=Math.sqrt(Math.pow(this.currOffset.x,2)+Math.pow(this.currOffset.y,2)),p=Math.sqrt(Math.pow(g,2)+Math.pow(h,2)),k=Math.round(this.currOrigin.y+Math.sin(l)*t),n=Math.round(c+Math.sin(e)*p);b.x+=m.toPhysicalUnits(Math.round(this.currOrigin.x+Math.cos(l)*t)-Math.round(a+Math.cos(e)*p));b.y+=m.toPhysicalUnits(k-n)}this.currOrigin.x=a;this.currOrigin.y=c;this.currOffset.x=g;this.currOffset.y=h;f.x=this.currOffset.x-f.x;f.y=this.currOffset.y-f.y;b.x+=m.toPhysicalUnits(f.x); b.y+=m.toPhysicalUnits(f.y);0==this.physicsMode?this.body.setPosition(b):(this.realX=m.toPixelUnits(b.x),this.realY=m.toPixelUnits(b.y));this.resetOrigin=!0},getXVelocity:function(){return 0!=this.physicsMode?this.xSpeed:this.body.getLinearVelocity().x},getYVelocity:function(){return 0!=this.physicsMode?this.ySpeed:this.body.getLinearVelocity().y},setXVelocity:function(a){if(0!=this.physicsMode)this.xSpeed=a;else{var c=this.body.getLinearVelocity();c.x=a;this.body.setLinearVelocity(c);this.body.setAwake(!0)}}, setYVelocity:function(a){if(0!=this.physicsMode)this.ySpeed=a;else{var c=this.body.getLinearVelocity();c.y=a;this.body.setLinearVelocity(c);this.body.setAwake(!0)}},setVelocity:function(a,c){this.setXVelocity(c*Math.cos(.01745329251994278*a));this.setYVelocity(c*Math.sin(.01745329251994278*a))},accelerateX:function(a){this.setXVelocity(this.getXVelocity()+a)},accelerateY:function(a){this.setYVelocity(this.getYVelocity()+a)},accelerate:function(a,c){this.setXVelocity(this.getXVelocity()+c*Math.cos(.01745329251994278* a));this.setYVelocity(this.getYVelocity()+c*Math.sin(.01745329251994278*a))},getAngle:function(){return 0!=this.physicsMode?.01745329251994278*this.realAngle:this.body.getAngle()},getAngleInDegrees:function(){return 0!=this.physicsMode?this.realAngle:57.29577951308402*this.body.getAngle()},setAngle:function(a,c){null==c&&(c=!0);c?0!=this.physicsMode?this.realAngle=57.29577951308402*a:this.body.setAngle(a):0!=this.physicsMode?this.realAngle=a:this.body.setAngle(.01745329251994278*a);this.updateMatrix= !0},rotate:function(a,c){null==c&&(c=!0);c?0!=this.physicsMode?this.realAngle+=57.29577951308402*a:this.body.setAngle(this.body.getAngle()+a):0!=this.physicsMode?this.realAngle+=a:this.body.setAngle(this.body.getAngle()+.01745329251994278*a)},getAngularVelocity:function(){return 0!=this.physicsMode?.01745329251994278*this.rSpeed:this.body.getAngularVelocity()},setAngularVelocity:function(a){0!=this.physicsMode?this.rSpeed=57.29577951308402*a:(this.body.setAngularVelocity(a),this.body.setAwake(!0))}, changeAngularVelocity:function(a){0!=this.physicsMode?this.rSpeed+=57.29577951308402*a:(this.body.setAngularVelocity(this.body.getAngularVelocity()+a),this.body.setAwake(!0))},push:function(a,c,b){if(0!=this.physicsMode)this.dummy.x=a,this.dummy.y=c,this.dummy.normalize(),this.accelerateX(this.dummy.x*b*.01),this.accelerateY(this.dummy.y*b*.01);else if(0!=a||0!=c)this.dummy.x=a,this.dummy.y=c,this.dummy.normalize(),this.dummy.multiply(b),this.body.applyForce(this.dummy,this.body.getWorldCenter())}, pushInDirection:function(a,c){this.push(Math.cos(.01745329251994278*a),Math.sin(.01745329251994278*a),c)},applyImpulse:function(a,c,b){if(0!=this.physicsMode)this.dummy.x=a,this.dummy.y=c,this.dummy.normalize(),this.accelerateX(this.dummy.x*b),this.accelerateY(this.dummy.y*b);else if(0!=a||0!=c)this.dummy.x=a,this.dummy.y=c,this.dummy.normalize(),this.dummy.multiply(b),this.body.applyImpulse(this.dummy,this.body.getWorldCenter())},applyImpulseInDirection:function(a,c){this.applyImpulse(Math.cos(.01745329251994278* a),Math.sin(.01745329251994278*a),c)},applyTorque:function(a){0!=this.physicsMode?this.fixedRotation||(this.rSpeed-=a):(this.body.applyTorque(a),this.body.setAwake(!0))},getWidth:function(){return this.cacheWidth},getHeight:function(){return this.cacheHeight},getPhysicsWidth:function(){return this.cacheWidth/m.physicsScale},getPhysicsHeight:function(){return this.cacheHeight/m.physicsScale},getBody:function(){return this.body},enableRotation:function(){0!=this.physicsMode?this.fixedRotation=!1:this.body.setFixedRotation(!1)}, disableRotation:function(){0!=this.physicsMode?this.fixedRotation=!0:this.body.setFixedRotation(!0)},setIgnoreGravity:function(a){this.ignoreGravity=a;0==this.physicsMode&&this.body.setIgnoreGravity(a)},ignoresGravity:function(){return 0!=this.physicsMode?this.ignoreGravity:this.body.isIgnoringGravity()},getFriction:function(){return 0==this.physicsMode&&null!=this.body.m_fixtureList?this.body.m_fixtureList.m_friction:0},getBounciness:function(){return 0==this.physicsMode&&null!=this.body.m_fixtureList? this.body.m_fixtureList.m_restitution:0},getMass:function(){return 0==this.physicsMode?this.md.mass:0},getAngularMass:function(){return 0==this.physicsMode?this.md.I:0},getLinearDamping:function(){return 0==this.physicsMode?this.body.getLinearDamping():0},getAngularDamping:function(){return 0==this.physicsMode?this.body.getAngularDamping():0},setFriction:function(a){0==this.physicsMode&&this.body.setFriction(a)},setBounciness:function(a){0==this.physicsMode&&this.body.setBounciness(a)},setMass:function(a){0== this.physicsMode&&(this.md.mass=a,this.body.setMassData(this.md))},setAngularMass:function(a){0==this.physicsMode&&(this.md.I=a,this.body.setMassData(this.md))},setLinearDamping:function(a){0==this.physicsMode&&this.body.setLinearDamping(a)},setAngularDamping:function(a){0==this.physicsMode&&this.body.setAngularDamping(a)},isMouseOver:function(){if(this.isHUD){var a=(Q.mouseX-m.engine.hudLayer.get_x())/m.SCALE;var c=(Q.mouseY-m.engine.hudLayer.get_y())/m.SCALE}else a=(Q.mouseX+m.cameraX*this.layer.scrollFactorX)/ m.SCALE,c=(Q.mouseY+m.cameraY*this.layer.scrollFactorY)/m.SCALE;var b=Math.abs(this.realScaleX),f=Math.abs(this.realScaleY),e=this.currOrigin.x*(b-1),g=(this.cacheWidth-this.currOrigin.x)*(b-1),h=this.currOrigin.y*(f-1),l=(this.cacheHeight-this.currOrigin.y)*(f-1);0==this.physicsMode||this.currOrigin.x==this.cacheWidth/2&&this.currOrigin.y==this.cacheHeight/2||this.resetReal(this.realX,this.realY);var t=this.colX-e,p=this.colY-h;if(0!=this.get_rotation()){b=t+this.currOrigin.x*b;f=p+this.currOrigin.y* f;a-=b;c-=f;var k=.01745329251994278*this.get_rotation();f=f-a*Math.sin(k)+c*Math.cos(k);a=b+a*Math.cos(k)+c*Math.sin(k);c=f}return this.isHUD&&!m.engine.isHUDZoomable?a>=t/m.engine.zoomMultiplier&&c>=p/m.engine.zoomMultiplier&&a<(t+this.cacheWidth+e+g)/m.engine.zoomMultiplier?c<(p+this.cacheHeight+h+l)/m.engine.zoomMultiplier:!1:a>=t&&c>=p&&a=a-b&&this.getY(!0)+this.cacheHeight>=c-f&&this.getX(!0)=b.colX&&this.colY+this.cacheHeight>=b.colY&& this.colX<=b.colX+b.cacheWidth&&this.colY<=b.colY+b.cacheHeight&&b.collidable&&b!=this&&(null==b._mask||b._mask.collide(this.HITBOX)))return this.colMask=b._mask,this.resetReal(this._x,this._y),b;this.resetReal(this._x,this._y);return null}c=0;for(a=a.list;c=b.colX&&this.colY+this.cacheHeight>=b.colY&&this.colX<=b.colX+b.cacheWidth&&this.colY<=b.colY+b.cacheHeight&&b.collidable&&b!=this&&this._mask.collide(null!=b._mask?b._mask:b.HITBOX))return this.colMask= null!=b._mask?b._mask:b.HITBOX,this.resetReal(this._x,this._y),b;this.resetReal(this._x,this._y);return null},collideTypes:function(a,c,b){for(var d=this.collidedList.length,e=0;ed?this.collidedList[this.collidedList.length-1]:null},collideWith:function(a,c,b){this._x=this.realX;this._y=this.realY;this.resetReal(c,b);if(this.colX+this.cacheWidth>=a.colX&&this.colY+this.cacheHeight>=a.colY&& this.colX<=a.colX+a.cacheWidth&&this.colY<=a.colY+a.cacheHeight&&this.collidable&&a.collidable){if(null==this._mask){if(null==a._mask||a._mask.collide(this.HITBOX))return this.resetReal(this._x,this._y),a;this.resetReal(this._x,this._y);return null}if(this._mask.collide(null!=a._mask?a._mask:a.HITBOX))return this.resetReal(this._x,this._y),a}this.resetReal(this._x,this._y);return null},collideInto:function(a,c,b,f){a=this.engine.getGroup(a);this._x=this.realX;this._y=this.realY;this.resetReal(c,b); c=f.length;if(null==this._mask)for(b=0,a=a.list;b=d.colX&&this.colY+this.cacheHeight>=d.colY&&this.colX<=d.colX+d.cacheWidth&&this.colY<=d.colY+d.cacheHeight&&d.collidable&&d!=this&&(null==d._mask||d._mask.collide(this.HITBOX))&&(R.contains(f,d)||(f[c++]=d))}else for(b=0,a=a.list;b=d.colX&&this.colY+this.cacheHeight>=d.colY&&this.colX<=d.colX+d.cacheWidth&&this.colY<=d.colY+d.cacheHeight&& d.collidable&&d!=this&&this._mask.collide(null!=d._mask?d._mask:d.HITBOX)&&(R.contains(f,d)||(f[c++]=d));this.resetReal(this._x,this._y)},clearCollisionInfoList:function(){if(0a&&(a=b)}this.collisionsCount=a+1}},clearCollidedList:function(){for(;0=a?1:Math.abs(a);g=0=c?1:Math.abs(c);g=0b,a.thisFromRight=0this.colX),a.otherFromLeft=!a.thisFromLeft,a.otherFromRight=!a.thisFromRight,a.thisFromTop=a.otherFromTop= !1,a.thisFromBottom=a.otherFromBottom=!1);0!=f&&(1E8==c.ID?(a.thisFromTop=0>f,a.thisFromBottom=0this.colY),a.otherFromTop=!a.thisFromTop,a.otherFromBottom=!a.thisFromBottom,a.thisFromLeft=a.otherFromLeft=!1,a.thisFromRight=a.otherFromRight=!1);a.thisCollidedWithActor=!0;a.thisCollidedWithTile=1E8==c.ID;a.thisCollidedWithSensor=null!=a?g||!h&&!a.maskB.solid:!1;a.thisCollidedWithTerrain=!1;a.otherCollidedWithActor=!0;a.otherCollidedWithTile= 1E8==c.ID;a.otherCollidedWithSensor=null!=a?!a.maskA.solid:!1;a.otherCollidedWithTerrain=!1}},handleCollisionsSimple:function(){if(0this.outerRadius||(d>this.outerRadius-this.innerRadius?(d=this.outerRadius-this.innerRadius,this.innerImage.set_x(this.center.x-Math.cos(e)*(this.outerRadius-this.innerRadius)-.5*this.innerImage.get_width()),this.innerImage.set_y(this.center.y-Math.sin(e)*(this.outerRadius-this.innerRadius)-.5*this.innerImage.get_height())): (this.innerImage.set_x(a-Ma.viewOffsetX-.5*this.innerImage.get_width()),this.innerImage.set_y(c-Ma.viewOffsetY-.5*this.innerImage.get_height())),this.isPressed=!0,this.joystickTouchID=b,this.joystickDistance=d/(this.outerRadius-this.innerRadius),this.joystickDirection=180*e/3.1415926535+180)}else this.joystickType!=Ma.showWherePressed||athis.joystickBounds.x+this.joystickBounds.width||cthis.joystickBounds.y+this.joystickBounds.height||(this.isPressed= !0,this.center.x=a-Ma.viewOffsetX,this.center.y=c-Ma.viewOffsetY,this.outerImage.set_x(this.center.x-.5*this.outerImage.get_width()),this.outerImage.set_y(this.center.y-.5*this.outerImage.get_height()),this.innerImage.set_x(this.center.x-.5*this.innerImage.get_width()),this.innerImage.set_y(this.center.y-.5*this.innerImage.get_height()),this.hideWhenReleased&&(this.outerImage.set_visible(!0),this.innerImage.set_visible(!0)),this.joystickTouchID=b)},onMove:function(a,c,b){if(b==this.joystickTouchID){a/= m.screenScaleX;c/=m.screenScaleY;b=Math.sqrt(Math.pow(this.center.x+Ma.viewOffsetX-a,2)+Math.pow(this.center.y+Ma.viewOffsetY-c,2));var d=Math.atan2(this.center.y+Ma.viewOffsetY-c,this.center.x+Ma.viewOffsetX-a);b>this.outerRadius-this.innerRadius?(b=this.outerRadius-this.innerRadius,this.innerImage.set_x(this.center.x-Math.cos(d)*(this.outerRadius-this.innerRadius)-.5*this.innerImage.get_width()),this.innerImage.set_y(this.center.y-Math.sin(d)*(this.outerRadius-this.innerRadius)-.5*this.innerImage.get_height())): (this.innerImage.set_x(a-Ma.viewOffsetX-.5*this.innerImage.get_width()),this.innerImage.set_y(c-Ma.viewOffsetY-.5*this.innerImage.get_height()));this.joystickDistance=b/(this.outerRadius-this.innerRadius);this.joystickDirection=180*d/3.1415926535+180}},onEnd:function(a,c,b){b==this.joystickTouchID&&(this.joystickTouchID=-1,this.isPressed=!1,this.outerImage.set_alpha(this.outerAlphaWhenReleased),this.innerImage.set_alpha(this.innerAlphaWhenReleased),a=this.outerImage.get_x(),this.center.x=a+this.outerRadius, a=this.outerImage.get_y(),this.center.y=a+this.outerRadius,this.innerImage.set_x(this.center.x-.5*this.innerImage.get_width()),this.innerImage.set_y(this.center.y-.5*this.innerImage.get_height()),this.hideWhenReleased&&(this.outerImage.set_visible(!1),this.innerImage.set_visible(!1)),this.joystickDistance=0,this.joystickDirection=this.joystickDefaultDirection)},__class__:Ma});var th={};k["com.stencyl.models._PhysicsMode.PhysicsMode_Impl_"]=th;th.__name__="com.stencyl.models._PhysicsMode.PhysicsMode_Impl_"; th._new=function(a){return a};th.fromInt=function(a){return th._new(a)};th.fromString=function(a){switch(a){case "MINIMAL_PHYSICS":return 2;case "NORMAL_PHYSICS":return 0;case "SIMPLE_PHYSICS":return 1;default:return 0}};th.toString=function(a){switch(a){case 0:return"NORMAL_PHYSICS";case 1:return"SIMPLE_PHYSICS";case 2:return"MINIMAL_PHYSICS";default:return"NORMAL_PHYSICS"}};var xd=function(a,c,b,f,e){yb.call(this,a,-1,-2,c,b,-1,m.NO_PHYSICS?e.width:1,m.NO_PHYSICS?e.height:1,null,null,null,null, !1,!1,!1,!1,m.NO_PHYSICS?null:f[0],m.NO_PHYSICS);this.isRegion=this.alwaysSimulate=!0;this.solid=this.isTerrainRegion=!1;this.set_name("Region");this.simpleBounds=e;this.copy=f[0];this.containedActors=new Xa;this.whenActorEntersListeners=[];this.whenActorExitsListeners=[];this.justAdded=[];this.justRemoved=[];m.NO_PHYSICS||(this.body.setSleepingAllowed(!0),this.body.setAwake(!1),this.body.setIgnoreGravity(!0));a=0;var d=0;if(m.NO_PHYSICS){var h=e.width;e=e.height;this.cacheWidth=this.originalWidth= this.regionWidth=Math.round(Math.abs(a-h));this.cacheHeight=this.originalHeight=this.regionHeight=Math.round(Math.abs(d-e));this.currOffset.x=-(this.cacheWidth/2);this.currOffset.y=-(this.cacheHeight/2);this.resetReal(c,b)}else if(f[0]instanceof Fb){this.isCircle=!1;c=new tf;c.setIdentity();b=new pd;S.__cast(f[0],Fb).computeAABB(b,c);a=b.lowerBound.x;h=b.upperBound.x;d=b.lowerBound.y;e=b.upperBound.y;for(var l=0,t=f.length;l=b&&c>=f&&a= this.mouseState){this.mouseState=1;var g=this.mouseOverListeners;e=this.mouseState;for(f=0;ft&&(t=Math.abs(t+1)|0);for(p=0;pm)f.setTileAt(e,g,null,!1);else{var q=k.tiles[m];if(null==q)f.setTileAt(e,g,null,!1);else if(f.setTileAt(e,g,q,!1),f.autotileData[e][g]=t,0<=q.collisionID&&h.setTile(g,e,!0),1=b&& (g=0,++e)}}return f},readAtlases:function(a){for(var c=[],b=0,f=a.length();ba;){var c=a++;c=m.engine.channels[c];c.currentSource==this.src&&c.stopSound()}},__class__:Bi});var cc=function(a,c){this.paused=!1;this.currentClip=this.currentSound=null;this.looping=!1;this.volume=1;this.position=this.panning=0;this.channelNum=c;this.engine=a;this.transform=new Rf;this.tweenVolume=new Re;this.tweenVolume.doOnUpdate(x(this,this.tweenUpdated))};k["com.stencyl.models.SoundChannel"]=cc;cc.__name__="com.stencyl.models.SoundChannel"; cc.resetStatics=function(){cc.muted=!1;cc.masterVolume=1};cc.prototype={currentSource:null,currentSound:null,currentClip:null,volume:null,panning:null,channelNum:null,looping:null,paused:null,position:null,engine:null,transform:null,tweenVolume:null,playSound:function(a,c){null==c&&(c=0);null!=this.currentSound&&(this.currentSound.stop(),this.paused=!1);if(null!=a){a.volume=this.volume*cc.masterVolume;this.currentClip=a;this.currentSound=a.play(this.channelNum,c);if(null==this.currentSound)return this.currentClip= null;this.setVolume(this.volume);this.setPanning(this.panning);this.currentSound.addEventListener("soundComplete",x(this,this.stopped))}null!=a&&(this.currentSource=a.src);this.looping=!1;return this.currentSound},loopSound:function(a,c){null==c&&(c=0);null!=this.currentSound&&this.currentSound.stop();if(null!=a){a.volume=this.volume*cc.masterVolume;this.currentClip=a;this.currentSound=a.play(this.channelNum,c);if(null==this.currentSound)return this.currentClip=null;this.setVolume(this.volume);this.setPanning(this.panning); this.currentSound.addEventListener("soundComplete",x(this,this.looped))}null!=a&&(this.currentSource=a.src);this.looping=!0;return this.currentSound},setPause:function(a){null!=this.currentSound&&(a?(this.currentSound.removeEventListener("soundComplete",x(this,this.looped)),this.position=this.currentSound.get_position(),this.currentSound.stop(),this.paused=!0):null!=this.currentSource&&this.paused&&(this.currentSound=this.currentClip.play(this.channelNum,this.position),this.currentSound.set_soundTransform(this.transform), this.currentSound.addEventListener("soundComplete",x(this,this.stopped)),this.looping&&this.currentSound.addEventListener("soundComplete",x(this,this.looped)),this.paused=!1))},looped:function(a){null!=this.currentSound&&this.currentSound.removeEventListener("soundComplete",x(this,this.looped));this.loopSound(this.currentClip)},stopped:function(a){null!=this.currentSound&&this.currentSound.removeEventListener("soundComplete",x(this,this.stopped));m.engine.soundFinished(this.channelNum)},stopSound:function(){null!= this.currentSound&&(this.currentSound.stop(),this.position=0,this.currentSound=this.currentSource=null,this.paused=!1)},tweenUpdated:function(){this.setVolume(this.tweenVolume.value)},fadeInSound:function(a){null!=this.currentSound&&this.tweenVolume.tween(this.transform.volume,1,hb.linear,1E3*a|0)},fadeOutSound:function(a){null!=this.currentSound&&this.tweenVolume.tween(this.transform.volume,0,hb.linear,1E3*a|0)},fadeSound:function(a,c){null!=this.currentSound&&this.tweenVolume.tween(this.transform.volume, c,hb.linear,1E3*a|0)},setVolume:function(a){this.volume=a;null!=this.currentSound&&(this.transform.volume=a*cc.masterVolume,this.currentSound.set_soundTransform(this.transform))},setPanning:function(a){this.panning=a;null!=this.currentSound&&(this.transform.pan=a,this.currentSound.set_soundTransform(this.transform))},__class__:cc};var rh=function(a,c,b,f,e,g){null==g&&(g=0);yb.call(this,a,-1,e,c,b,-1,1,1,null,null,null,null,!1,!0,!1,!1,f[0]);0==g&&(b=c=a=0,null==b&&(b=0),null==c&&(c=0),null==a&&(a= 0),g=a<<16|c<<8|b);this.fillColor=g;this.alwaysSimulate=!0;this.isRegion=!1;this.isTerrainRegion=!0;this.copy=f[0];this.body.setSleepingAllowed(!0);this.body.setAwake(!1);this.body.setIgnoreGravity(!0);if(f[0]instanceof Fb){this.isCircle=!1;var d=new tf;d.setIdentity();var l=new pd;S.__cast(f[0],Fb).computeAABB(l,d);a=l.lowerBound.x;c=l.upperBound.x;b=l.lowerBound.y;g=l.upperBound.y;for(var t=0,p=f.length;tf.durations[f.sharedFrameIndex]&& (f.sharedTimer-=f.durations[f.sharedFrameIndex],f.sharedFrameIndex++,f.sharedFrameIndex>=f.frameCount&&(f.looping?f.sharedFrameIndex=0:f.sharedFrameIndex--))}};He.prototype={animID:null,animName:null,parent:null,simpleShapes:null,physicsShapes:null,looping:null,sync:null,durations:null,frames:null,frameWidth:null,frameHeight:null,originX:null,originY:null,sharedTimer:null,sharedFrameIndex:null,imgWidth:null,imgHeight:null,frameCount:null,framesAcross:null,framesDown:null,graphicsLoaded:null,loadGraphics:function(){if(!this.graphicsLoaded){var a= Aa.getBitmapData("assets/graphics/"+m.IMG_BASE+"/sprite-"+this.parent.ID+"-"+this.animID+".png",!1);if(null==a){a=[];for(var c=0,b=this.frameCount;cthis.durations[this.sharedFrameIndex]&& (this.sharedTimer-=this.durations[this.sharedFrameIndex],this.sharedFrameIndex++,this.sharedFrameIndex>=this.frameCount&&(this.looping?this.sharedFrameIndex=0:this.sharedFrameIndex--))},__class__:He};var Dc=function(){this.points=[];this.bounds=new ia;this.clear()};k["com.stencyl.models.actor.Collision"]=Dc;Dc.__name__="com.stencyl.models.actor.Collision";Dc.resetStatics=function(){Dc.recycledCollisions=[];Dc.collisionResponses=new Xa};Dc.addResponse=function(a,c,b){var d=-1,e=-1;a instanceof Dg? d=a.groupID:a instanceof oj&&(d=a.ID);c instanceof Dg?e=c.groupID:c instanceof oj&&(e=c.ID);null==Dc.collisionResponses.h[d]&&(a=Dc.collisionResponses,c=new Xa,a.h[d]=c);null==Dc.collisionResponses.h[e]&&(a=Dc.collisionResponses,c=new Xa,a.h[e]=c);Dc.collisionResponses.h[d].h[e]=b;Dc.collisionResponses.h[e].h[d]=b};Dc.preSolve=function(a,c){c=a.getFixtureA().getBody().groupID;var b=a.getFixtureB().getBody().groupID;null!=Dc.collisionResponses.h[c]&&"sensor"==Dc.collisionResponses.h[c].h[b]&&a.setEnabled(!1)}; Dc.get=function(){return 0=c&&d>=b)){aa.parent.colX&&this.parent.colY+this.parent.cacheHeight>a.parent.colY&&this.parent.colXb&&(b=e);e=(-this.parent.currOffset.x+this.parent.cacheWidth)*a.x-this.parent.currOffset.y*a.y;eb&&(b=e);e=-this.parent.currOffset.x*a.x+(-this.parent.currOffset.y+this.parent.cacheHeight)*a.y;eb&&(b=e);e=(-this.parent.currOffset.x+this.parent.cacheWidth)* a.x+(-this.parent.currOffset.y+this.parent.cacheHeight)*a.y;eb&&(b=e);c.min=f;c.max=b},_class:null,_check:null,__class__:Ig};var kd=function(a,c,b,f,e,g){null==g&&(g=0);null==e&&(e=!0);null==f&&(f=0);null==b&&(b=0);null==c&&(c=1);null==a&&(a=1);Ig.call(this);this.lastBounds.width=this._width=a;this.lastBounds.height=this._height=c;this._x=b;this._y=f;this.solid=e;this.groupID=g;a=kd.__name__;c=this._check;b=x(this,this.collideHitbox);null!=v[a]?c.setReserved(a,b):c.h[a]=b};k["com.stencyl.models.collision.Hitbox"]= kd;kd.__name__="com.stencyl.models.collision.Hitbox";kd.__super__=Ig;kd.prototype=r(Ig.prototype,{clone:function(){return new kd(this._width,this._height,this._x,this._y,this.solid,this.groupID)},collideMask:function(a){return this.parent.colX+this._x+this._width>a.parent.colX&&this.parent.colY+this._y+this._height>a.parent.colY&&this.parent.colX+this._xa.parent.colX+a._x&&this.parent.colY+this._y+this._height>a.parent.colY+a._y&&this.parent.colX+this._xa||a>this.columns-1||0>c||c>this.rows-1||(this.usePositions&&(a=a/this._tile.width|0,c=c/this._tile.height|0),this.data[c][a]=b)},clearTile:function(a,c){null==c&&(c=0);null==a&&(a=0);this.setTile(a,c,!1)},checkTile:function(a,c){return 0>a||a>this.columns-1||0>c||c>this.rows-1?!1:!0},getTile:function(a,c){null==c&&(c=0);null==a&&(a=0);if(0>a||a>this.columns-1||0>c||c>this.rows-1)return!1;this.usePositions&&(a=a/this._tile.width|0,c=c/this._tile.height|0); return this.data[c][a]},setRect:function(a,c,b,f,e){null==e&&(e=!0);null==f&&(f=1);null==b&&(b=1);null==c&&(c=0);null==a&&(a=0);this.usePositions&&(a=a/this._tile.width|0,c=c/this._tile.height|0,b=b/this._tile.width|0,f=f/this._tile.height|0);var d=c;for(c+=f;djc.indexOf(this._masks,a))return a;for(var c=this._temp.length=0,b=this._masks;cb&&(b=e._x+e._width),e._y+e._height>f&&(f=e._y+e._height));this._x=c;this._y=a;this._width=b-c;this._height=f-a;kd.prototype.update.call(this)},count:null,get_count:function(){return this._count},_masks:null,_temp:null,_count:null, __class__:sj,__properties__:r(kd.prototype.__properties__,{get_count:"get_count"})});var Vk=function(a,c,b){null==b&&(b=0);null==c&&(c=0);kd.call(this);a instanceof ra&&(this._data=a);if(null==this._data)throw new F("Invalid Pixelmask source image.");this.threshold=1;this._rect=R.rect;this._point=R.point;this._point2=R.point2;this._width=this.get_data().width;this._height=this.get_data().height;this._x=c;this._y=b;a=Ig.__name__;c=this._check;b=x(this,this.collideMask);null!=v[a]?c.setReserved(a,b): c.h[a]=b;a=Vk.__name__;c=this._check;b=x(this,this.collidePixelmask);null!=v[a]?c.setReserved(a,b):c.h[a]=b;a=kd.__name__;c=this._check;b=x(this,this.collideHitbox);null!=v[a]?c.setReserved(a,b):c.h[a]=b};k["com.stencyl.models.collision.Pixelmask"]=Vk;Vk.__name__="com.stencyl.models.collision.Pixelmask";Vk.__super__=kd;Vk.prototype=r(kd.prototype,{threshold:null,collideMask:function(a){this._point.x=this.parent.colX+this._x;this._point.y=this.parent.colY+this._y;this._rect.x=a.parent.colX;this._rect.y= a.parent.colY;this._rect.width=a.parent.cacheWidth;this._rect.height=a.parent.cacheHeight;return!1},collideHitbox:function(a){this._point.x=this.parent.colX+this._x;this._point.y=this.parent.colY+this._y;this._rect.x=a.parent.colX+a._x;this._rect.y=a.parent.colY+a._y;this._rect.width=a._width;this._rect.height=a._height;return!1},collidePixelmask:function(a){this._point.x=this.parent.colX+this._x;this._point.y=this.parent.colY+this._y;this._point2.x=a.parent.colX+a._x;this._point2.y=a.parent.colY+ a._y;return!1},get_data:function(){return this._data},set_data:function(a){this._data=a;this._width=a.width;this._height=a.height;this.update();return this._data},_data:null,_rect:null,_point:null,_point2:null,__class__:Vk,__properties__:r(kd.prototype.__properties__,{set_data:"set_data",get_data:"get_data"})});var Cm=function(a,c,b,f,e,g,h,l,t,p,m,n){this.elementID=a;this.x=c;this.y=b;this.scaleX=f;this.scaleY=e;this.layerID=g;this.orderInLayer=h;this.angle=l;this.groupID=t;this.actorID=p;this.behaviorValues= m;this.isCustomized=n;this.actorType=S.__cast(sc.get().resources.get(p),Dg)};k["com.stencyl.models.scene.ActorInstance"]=Cm;Cm.__name__="com.stencyl.models.scene.ActorInstance";Cm.prototype={elementID:null,x:null,y:null,scaleX:null,scaleY:null,layerID:null,orderInLayer:null,angle:null,groupID:null,actorID:null,isCustomized:null,behaviorValues:null,actorType:null,__class__:Cm};var df=function(){};k["com.stencyl.models.scene.Autotile"]=df;df.__name__="com.stencyl.models.scene.Autotile";var nq=function(a, c,b,f,e){this.animIndex=[];this.defaultAnimationIndex=0;this.name=a;this.id=c;this.tilesAcross=b;this.tilesDown=f;a=0;c=new ib;for(b=0;256>b;)f=b++,null!=c.h.__keys__[e[f].__id__]?this.animIndex[f]=c.h[e[f].__id__]:(this.animIndex[f]=a,c.set(e[f],a),++a);this.defaultAnimationIndex=this.animIndex[255];this.autotileArrayLength=a;this.animCorners=[];for(a=0;256>a;)c=a++,this.animCorners[this.animIndex[c]]=e[c]};k["com.stencyl.models.scene.AutotileFormat"]=nq;nq.__name__="com.stencyl.models.scene.AutotileFormat"; nq.prototype={autotileArrayLength:null,defaultAnimationIndex:null,name:null,id:null,tilesAcross:null,tilesDown:null,animIndex:null,animCorners:null,__class__:nq};var mq=function(a,c,b,f){this.tl=a;this.tr=c;this.bl=b;this.br=f};k["com.stencyl.models.scene.Corners"]=mq;mq.__name__="com.stencyl.models.scene.Corners";mq.prototype={tl:null,tr:null,bl:null,br:null,toString:function(){return"TL: "+N.string(this.tl)+", TR: "+N.string(this.tr)+", BL: "+N.string(this.bl)+", BR: "+N.string(this.br)},__class__:mq}; var Tp=function(a,c,b,f){this.type=a;this.x=c;this.y=b;this.layer=f};k["com.stencyl.models.scene.DeferredActor"]=Tp;Tp.__name__="com.stencyl.models.scene.DeferredActor";Tp.prototype={type:null,x:null,y:null,layer:null,__class__:Tp};var Vg=function(a,c,b,f,e,g,h){ma.call(this);this.ID=a;this.layerName=c;this.order=b;this.scrollFactorX=f;this.scrollFactorY=e;this.set_alpha(g);this.set_blendMode(h)};k["com.stencyl.models.scene.layers.RegularLayer"]=Vg;Vg.__name__="com.stencyl.models.scene.layers.RegularLayer"; Vg.__super__=ma;Vg.prototype=r(ma.prototype,{ID:null,layerName:null,order:null,scrollFactorX:null,scrollFactorY:null,opacity:null,alphaTween:null,updatePosition:function(a,c,b){},__class__:Vg});var Jc=function(a,c,b,f,e,g,h,l){this.cameraOldX=this.cameraOldY=-1;this.cameraMoved=!0;Vg.call(this,a,c,b,f,e,g,h);this.tiles=l;null!=this.tiles&&this.tiles.set_blendMode(h);this.actorContainer=new ma;this.overlay=new ma;null!=this.tiles&&this.addChild(this.tiles);this.addChild(this.actorContainer);this.addChild(this.overlay); this.attachedImages=[]};k["com.stencyl.models.scene.Layer"]=Jc;Jc.__name__="com.stencyl.models.scene.Layer";Jc.__super__=Vg;Jc.prototype=r(Vg.prototype,{tiles:null,actorContainer:null,overlay:null,attachedImages:null,cameraMoved:null,cameraOldX:null,cameraOldY:null,updatePosition:function(a,c,b){if(oa.pixelsnap){b=a*this.scrollFactorX|0;var d=c*this.scrollFactorY|0;a=Math.round(a);c=Math.round(c);this.set_x(-(a*this.scrollFactorX|0));this.set_y(-(c*this.scrollFactorY|0));var e=b/(m.engine.scene.tileWidth* m.SCALE)|0;var g=d/(m.engine.scene.tileHeight*m.SCALE)|0}else b=a*this.scrollFactorX,d=c*this.scrollFactorY,this.set_x(-a*this.scrollFactorX),this.set_y(-c*this.scrollFactorY),e=b/(m.engine.scene.tileWidth*m.SCALE),g=d/(m.engine.scene.tileHeight*m.SCALE);this.tiles.setPosition(b,d);this.overlay.set_x(a);this.overlay.set_y(c);this.cameraMoved=this.cameraMoved||this.cameraOldX!=e||this.cameraOldY!=g;this.cameraOldX=e;this.cameraOldY=g},clear:function(){for(var a=0,c=this.attachedImages;aa)this.xP=0;if(this.yP<-c||this.yP>c)this.yP=0}this.xPos+=Math.floor(this.xP);this.yPos+=Math.floor(this.yP);this.curStep+= 1;1<=this.curStep&&(b=!0,this.curStep-=Math.floor(this.curStep))}b&&this.resetPositions()},resetPositions:function(){this.cacheWidth=this.image1.get_width();this.cacheHeight=this.image1.get_height();this.repeats&&(this.xPos<-this.cacheWidth&&(this.xPos%=this.cacheWidth),this.yPos<-this.cacheHeight&&(this.yPos%=this.cacheHeight));this.image1.set_x(this.xPos);this.image1.set_y(this.yPos);this.repeats&&(this.image2.set_x(this.xPos-this.cacheWidth),this.image2.set_y(this.yPos),this.image3.set_x(this.xPos+ this.cacheWidth),this.image3.set_y(this.yPos),this.image4.set_x(this.xPos-this.cacheWidth),this.image4.set_y(this.yPos-this.cacheHeight),this.image5.set_x(this.xPos),this.image5.set_y(this.yPos-this.cacheHeight),this.image6.set_x(this.xPos+this.cacheWidth),this.image6.set_y(this.yPos-this.cacheHeight),this.image7.set_x(this.xPos-this.cacheWidth),this.image7.set_y(this.yPos+this.cacheHeight),this.image8.set_x(this.xPos),this.image8.set_y(this.yPos+this.cacheHeight),this.image9.set_x(this.xPos+this.cacheWidth), this.image9.set_y(this.yPos+this.cacheHeight))},start:function(){this.running=!0},stop:function(){this.running=!1},__class__:lg});var oq=function(a,c,b,f,e,g,h){null==h&&(h=0);null==g&&(g=0);this.x=f;this.y=e;this.shapes=a;this.shape=this.shapes[0];this.ID=c;this.name=b;this.groupID=g;0==this.fillColor&&(b=c=a=0,null==b&&(b=0),null==c&&(c=0),null==a&&(a=0),this.fillColor=a<<16|c<<8|b);this.fillColor=h};k["com.stencyl.models.scene.TerrainDef"]=oq;oq.__name__="com.stencyl.models.scene.TerrainDef";oq.prototype= {x:null,y:null,shape:null,shapes:null,ID:null,name:null,groupID:null,fillColor:null,__class__:oq};var Yc=function(a,c,b,f,e,g,h,l){this.tileID=a;this.collisionID=c;this.metadata=b;this.frameIndex=f;this.durations=e;this.parent=l;var d=lb.get().atlases.h[l.atlasID];if(null!=g){this.autotileFormat=g;this.autotileMergeSet=h;h=[];var p=0;for(g=g.autotileArrayLength;p(this.durations[this.currFrame]|0)&&(this.currTime-=this.durations[this.currFrame]| 0,this.currFrame+1c||0>a||c>=this.numCols||a>=this.numRows)){this.noTiles&&null!=b&&(this.noTiles=!1);var d=this.rows[a][c];f&&(f=null!=d&&null!=d.autotiles||null!=b&&null!=b.autotiles);this.rows[a][c]=b;this.autotileData[a][c]=0;f&&this.updateAutotilesNear(a,c)}},getTileAt:function(a,c){return 0>c||0>a||c>=this.numCols||a>=this.numRows?null:this.rows[a][c]},updateAutotilesNear:function(a,c){var b=a-1;for(a+=2;bh||0>f||h>=this.numCols||f>=this.numRows||this.updateAutotile(f,h)}},updateAutotile:function(a,c){var b=this.rows[a][c];if(null!=b&&null!=b.autotiles){for(var f=0,e=De.autotileFlagPointMap.keys();e.hasNext();){var g=e.next(),h=De.autotileFlagPointMap.h[g],l=c+h.x|0;h=a+h.y|0;0>l||0>h||l>=this.numCols||h>=this.numRows||this.rows[h][l]==b||(f|=g)}this.autotileData[a][c]=b.autotileFormat.animIndex[f]}},draw:function(a,c){if(!this.noTiles){for(var b=this.tilemaps.iterator();b.hasNext();)b.next().removeTiles(); a=Math.floor(a);c=Math.floor(c);var f=this.numRows;b=this.scene.tileWidth;var e=this.scene.tileHeight;a=a/m.SCALE/b|0;var g=c/m.SCALE/e|0;c=2+a+(m.screenWidth/b|0);var h=2+g+(m.screenHeight/e|0);c=Math.min(c,this.numCols)|0;h=Math.min(h,f)|0;for(f=g;fe&&bg&&f=this.model.durations[this.currIndex]&&(this.currTime=0,this.currIndex++,this.currIndex>=this.frameCount&&(this.currIndex=0),this.bgChild instanceof lg?(this.cacheIndex=this.currIndex,this.model.repeats&&this.model.drawRepeated(this,m.screenWidth*m.SCALE|0,m.screenHeight*m.SCALE|0),this.currIndex=this.cacheIndex,a=this.bgChild.image1,a.set_bitmapData(this.model.frames[this.currIndex]),this.model.repeats&&(a=this.bgChild.image2,a.set_bitmapData(this.model.frames[this.currIndex]), a=this.bgChild.image3,a.set_bitmapData(this.model.frames[this.currIndex]),a=this.bgChild.image4,a.set_bitmapData(this.model.frames[this.currIndex]),a=this.bgChild.image5,a.set_bitmapData(this.model.frames[this.currIndex]),a=this.bgChild.image6,a.set_bitmapData(this.model.frames[this.currIndex]),a=this.bgChild.image7,a.set_bitmapData(this.model.frames[this.currIndex]),a=this.bgChild.image8,a.set_bitmapData(this.model.frames[this.currIndex]),a=this.bgChild.image9,a.set_bitmapData(this.model.frames[this.currIndex]))): this.bitmap.set_bitmapData(this.model.frames[this.currIndex]))},updatePosition:function(a,c,b){this.bgChild instanceof lg?S.__cast(this.bgChild,lg).update(a,c,b):(this.set_x(-(a*this.scrollFactorX|0)),this.set_y(-(c*this.scrollFactorY|0)));this.isAnimated&&this.updateAnimation(b)},getBitmap:function(){return this.bgChild},__class__:le});var $c=function(a,c,b,f){null==f&&(f=0);null==b&&(b=0);null==c&&(c=0);null==a&&(a=0);this.a=a;this.r=c;this.g=b;this.b=f};k["com.stencyl.utils.ARGB"]=$c;$c.__name__= "com.stencyl.utils.ARGB";$c.setARGBi=function(a,c,b,f){return(a&255)<<24|(c&255)<<16|(b&255)<<8|f&255};$c.setARGBf=function(a,c,b,f){a=255*(0>a?0:1c?0:1b?0:1f?0:1a?a-.5:0)|0)&255)<<24|(((0c?c-.5:0)|0)&255)<<16|(((0b?b-.5:0)|0)&255)<<8|((0f?f-.5:0)|0)&255};$c.toARGB=function(a){return new $c(.00392156862745098*(a>>>24),.00392156862745098*(a>>>16&255),.00392156862745098*(a>>>8&255),.00392156862745098* (a&255))};$c.getRGB=function(a){return a&16777215};$c.setRGB=function(a,c,b,f){return c<<16|b<<8|f|a&-16777216};$c.getA=function(a){return a>>>24};$c.getAf=function(a){return.00392156862745098*(a>>>24)};$c.getR=function(a){return a>>>16&255};$c.getRf=function(a){return.00392156862745098*(a>>>16&255)};$c.getG=function(a){return a>>>8&255};$c.getGf=function(a){return.00392156862745098*(a>>>8&255)};$c.getB=function(a){return a&255};$c.getBf=function(a){return.00392156862745098*(a&255)};$c.setA=function(a, c){return c<<24|a&16777215};$c.setAf=function(a,c){c=255*(0>c?0:1c?c-.5:0)|0)<<24|a&16777215};$c.setR=function(a,c){return(c&255)<<16|a&-16711681};$c.setRf=function(a,c){c=255*(0>c?0:1c?c-.5:0)|0)&255)<<16|a&-16711681};$c.setG=function(a,c){return c<<8|a&-65281};$c.setGf=function(a,c){c=255*(0>c?0:1c?c-.5:0)|0)<<8|a&-65281};$c.setB=function(a,c){return c|a&-256};$c.setBf=function(a,c){c=255*(0>c?0:1c?c-.5:0)|0|a&-256};$c.prototype={a:null,r:null,g:null,b:null,set:function(a,c,b,f){this.a=a;this.r=c;this.g=b;this.b=f},lerp:function(a,c,b){b.a=this.a+(a.a-this.a)*c;b.r=this.r+(a.r-this.r)*c;b.g=this.g+(a.g-this.g)*c;b.b=this.b+(a.b-this.b)*c},getA8:function(){var a=255*this.a;return(0a?a-.5:0)|0},getR8:function(){var a=255*this.r;return(0a?a-.5:0)|0},getG8:function(){var a=255*this.g;return(0a?a-.5:0)|0},getB8:function(){var a=255*this.b;return(0a?a-.5:0)|0},get24:function(){var a=255*this.r,c=255*this.g,b=255*this.b;return((0a?a-.5:0)|0)<<16|((0c?c-.5:0)|0)<<8|(0b?b-.5:0)|0},set24:function(a,c,b){this.a=this.a;this.r=.00392156862745098*(a&255);this.g=.00392156862745098*(c&255);this.b=.00392156862745098*(b&255)},get32:function(){var a=255*this.a,c=255*this.r,b=255*this.g,f=255*this.b;return((0a?a-.5:0)|0)<<24|((0c?c-.5:0)|0)<<16|((0b?b-.5:0)|0)<<8|(0f?f-.5:0)|0},set32:function(a, c,b,f){this.a=.00392156862745098*(a&255);this.r=.00392156862745098*(c&255);this.g=.00392156862745098*(b&255);this.b=.00392156862745098*(f&255)},copy:function(a){a.a=this.a;a.r=this.r;a.g=this.g;a.b=this.b;return a},__class__:$c};B["com.stencyl.utils.ColorDeficiencyTypes"]={__ename__:"com.stencyl.utils.ColorDeficiencyTypes",__constructs__:"Protanopia Protanomaly Deuteranopia Deuteranomaly Tritanopia Tritanomaly Achromatopsia Achromatomaly".split(" "),Protanopia:{_hx_index:0,__enum__:"com.stencyl.utils.ColorDeficiencyTypes", toString:u},Protanomaly:{_hx_index:1,__enum__:"com.stencyl.utils.ColorDeficiencyTypes",toString:u},Deuteranopia:{_hx_index:2,__enum__:"com.stencyl.utils.ColorDeficiencyTypes",toString:u},Deuteranomaly:{_hx_index:3,__enum__:"com.stencyl.utils.ColorDeficiencyTypes",toString:u},Tritanopia:{_hx_index:4,__enum__:"com.stencyl.utils.ColorDeficiencyTypes",toString:u},Tritanomaly:{_hx_index:5,__enum__:"com.stencyl.utils.ColorDeficiencyTypes",toString:u},Achromatopsia:{_hx_index:6,__enum__:"com.stencyl.utils.ColorDeficiencyTypes", toString:u},Achromatomaly:{_hx_index:7,__enum__:"com.stencyl.utils.ColorDeficiencyTypes",toString:u}};var Na=function(){this.identity();this.matrix=[]};k["com.stencyl.utils.ColorMatrix"]=Na;Na.__name__="com.stencyl.utils.ColorMatrix";Na.mulMatrixMatrix=function(a,c,b){var d=a.m11,e=a.m12,g=a.m13,h=a.m14;b.m11=a.m11*c.m11+a.m12*c.m21+a.m13*c.m31+a.m14*c.m41;b.m12=d*c.m12+a.m12*c.m22+a.m13*c.m32+a.m14*c.m42;b.m13=d*c.m13+e*c.m23+a.m13*c.m33+a.m14*c.m43;b.m14=d*c.m14+e*c.m24+g*c.m34+a.m14*c.m44;b.m15= d*c.m15+e*c.m25+g*c.m35+h*c.m45;d=a.m21;e=a.m22;g=a.m23;h=a.m24;b.m21=a.m21*c.m11+a.m22*c.m21+a.m23*c.m31+a.m24*c.m41;b.m22=d*c.m12+a.m22*c.m22+a.m23*c.m32+a.m24*c.m42;b.m23=d*c.m13+e*c.m23+a.m23*c.m33+a.m24*c.m43;b.m24=d*c.m14+e*c.m24+g*c.m34+a.m24*c.m44;b.m25=d*c.m15+e*c.m25+g*c.m35+h*c.m45;d=a.m31;e=a.m32;g=a.m33;h=a.m34;b.m31=a.m31*c.m11+a.m32*c.m21+a.m33*c.m31+a.m34*c.m41;b.m32=d*c.m12+a.m32*c.m22+a.m33*c.m32+a.m34*c.m42;b.m33=d*c.m13+e*c.m23+a.m33*c.m33+a.m34*c.m43;b.m34=d*c.m14+e*c.m24+g*c.m34+ a.m34*c.m44;b.m35=d*c.m15+e*c.m25+g*c.m35+h*c.m45;d=a.m41;e=a.m42;g=a.m43;h=a.m44;b.m41=a.m41*c.m11+a.m42*c.m21+a.m43*c.m31+a.m44*c.m41;b.m42=d*c.m12+a.m42*c.m22+a.m43*c.m32+a.m44*c.m42;b.m43=d*c.m13+e*c.m23+a.m43*c.m33+a.m44*c.m43;b.m44=d*c.m14+e*c.m24+g*c.m34+a.m44*c.m44;b.m45=d*c.m15+e*c.m25+g*c.m35+h*c.m45;return b};Na.blendMatrixMatrix=function(a,c,b,f){var d=1-f;b.m11=d*a.m11+f*c.m11;b.m12=d*a.m12+f*c.m12;b.m13=d*a.m13+f*c.m13;b.m14=d*a.m14+f*c.m14;b.m15=d*a.m15+f*c.m15;b.m21=d*a.m21+f*c.m21; b.m22=d*a.m22+f*c.m22;b.m23=d*a.m23+f*c.m23;b.m24=d*a.m24+f*c.m24;b.m25=d*a.m25+f*c.m25;b.m31=d*a.m31+f*c.m31;b.m32=d*a.m32+f*c.m32;b.m33=d*a.m33+f*c.m33;b.m34=d*a.m34+f*c.m34;b.m35=d*a.m35+f*c.m35;b.m41=d*a.m41+f*c.m41;b.m42=d*a.m42+f*c.m42;b.m43=d*a.m43+f*c.m43;b.m44=d*a.m44+f*c.m44;b.m45=d*a.m45+f*c.m45;return b};Na.prototype={m11:null,m12:null,m13:null,m14:null,m15:null,m21:null,m22:null,m23:null,m24:null,m25:null,m31:null,m32:null,m33:null,m34:null,m35:null,m41:null,m42:null,m43:null,m44:null, m45:null,matrix:null,preHue:null,postHue:null,hueInitialized:null,getFilter:function(){var a=this.matrix;a[0]=this.m11;a[1]=this.m12;a[2]=this.m13;a[3]=this.m14;a[4]=this.m15;a[5]=this.m21;a[6]=this.m22;a[7]=this.m23;a[8]=this.m24;a[9]=this.m25;a[10]=this.m31;a[11]=this.m32;a[12]=this.m33;a[13]=this.m34;a[14]=this.m35;a[15]=this.m41;a[16]=this.m42;a[17]=this.m43;a[18]=this.m44;a[19]=this.m45;return new Qf(this.matrix)},identity:function(){this.m11=1;this.m21=this.m15=this.m14=this.m13=this.m12=0; this.m22=1;this.m32=this.m31=this.m25=this.m24=this.m23=0;this.m33=1;this.m43=this.m42=this.m41=this.m35=this.m34=0;this.m44=1;this.m45=0;return this},invert:function(){var a=this.m11,c=this.m12,b=this.m13,f=this.m14;this.m11=-1*this.m11+0*this.m12+0*this.m13+0*this.m14;this.m12=0*a+-1*this.m12+0*this.m13+0*this.m14;this.m13=0*a+0*c+-1*this.m13+0*this.m14;this.m14=0*a+0*c+0*b+this.m14;this.m15=255*a+255*c+255*b+0*f;a=this.m21;c=this.m22;b=this.m23;f=this.m24;this.m21=-1*this.m21+0*this.m22+0*this.m23+ 0*this.m24;this.m22=0*a+-1*this.m22+0*this.m23+0*this.m24;this.m23=0*a+0*c+-1*this.m23+0*this.m24;this.m24=0*a+0*c+0*b+this.m24;this.m25=255*a+255*c+255*b+0*f;a=this.m31;c=this.m32;b=this.m33;f=this.m34;this.m31=-1*this.m31+0*this.m32+0*this.m33+0*this.m34;this.m32=0*a+-1*this.m32+0*this.m33+0*this.m34;this.m33=0*a+0*c+-1*this.m33+0*this.m34;this.m34=0*a+0*c+0*b+this.m34;this.m35=255*a+255*c+255*b+0*f;a=this.m41;c=this.m42;b=this.m43;f=this.m44;this.m41=-1*this.m41+0*this.m42+0*this.m43+0*this.m44; this.m42=0*a+-1*this.m42+0*this.m43+0*this.m44;this.m43=0*a+0*c+-1*this.m43+0*this.m44;this.m44=0*a+0*c+0*b+this.m44;this.m45=255*a+255*c+255*b+0*f;return this},adjustSaturation:function(a){var c=1-a,b=c*Na.LUMA_R,f=c*Na.LUMA_G;c*=Na.LUMA_B;var e=b+a,g=f+a;a=c+a;var h=this.m11,l=this.m12,t=this.m13,p=this.m14;this.m11=this.m11*e+this.m12*b+this.m13*b+0*this.m14;this.m12=h*f+this.m12*g+this.m13*f+0*this.m14;this.m13=h*c+l*c+this.m13*a+0*this.m14;this.m14=0*h+0*l+0*t+this.m14;this.m15=0*h+0*l+0*t+0* p;h=this.m21;l=this.m22;t=this.m23;p=this.m24;this.m21=this.m21*e+this.m22*b+this.m23*b+0*this.m24;this.m22=h*f+this.m22*g+this.m23*f+0*this.m24;this.m23=h*c+l*c+this.m23*a+0*this.m24;this.m24=0*h+0*l+0*t+this.m24;this.m25=0*h+0*l+0*t+0*p;h=this.m31;l=this.m32;t=this.m33;p=this.m34;this.m31=this.m31*e+this.m32*b+this.m33*b+0*this.m34;this.m32=h*f+this.m32*g+this.m33*f+0*this.m34;this.m33=h*c+l*c+this.m33*a+0*this.m34;this.m34=0*h+0*l+0*t+this.m34;this.m35=0*h+0*l+0*t+0*p;h=this.m41;l=this.m42;t=this.m43; p=this.m44;this.m41=this.m41*e+this.m42*b+this.m43*b+0*this.m44;this.m42=h*f+this.m42*g+this.m43*f+0*this.m44;this.m43=h*c+l*c+this.m43*a+0*this.m44;this.m44=0*h+0*l+0*t+this.m44;this.m45=0*h+0*l+0*t+0*p;return this},adjustBrightness:function(a){this.adjustBrightnessRGB(a,a,a);return this},adjustBrightnessRGB:function(a,c,b){a*=255;c*=255;b*=255;var d=this.m11,e=this.m12,g=this.m13,h=this.m14;this.m11=this.m11+0*this.m12+0*this.m13+0*this.m14;this.m12=0*d+this.m12+0*this.m13+0*this.m14;this.m13=0* d+0*e+this.m13+0*this.m14;this.m14=0*d+0*e+0*g+this.m14;this.m15=d*a+e*c+g*b+0*h;d=this.m21;e=this.m22;g=this.m23;h=this.m24;this.m21=this.m21+0*this.m22+0*this.m23+0*this.m24;this.m22=0*d+this.m22+0*this.m23+0*this.m24;this.m23=0*d+0*e+this.m23+0*this.m24;this.m24=0*d+0*e+0*g+this.m24;this.m25=d*a+e*c+g*b+0*h;d=this.m31;e=this.m32;g=this.m33;h=this.m34;this.m31=this.m31+0*this.m32+0*this.m33+0*this.m34;this.m32=0*d+this.m32+0*this.m33+0*this.m34;this.m33=0*d+0*e+this.m33+0*this.m34;this.m34=0*d+ 0*e+0*g+this.m34;this.m35=d*a+e*c+g*b+0*h;d=this.m41;e=this.m42;g=this.m43;h=this.m44;this.m41=this.m41+0*this.m42+0*this.m43+0*this.m44;this.m42=0*d+this.m42+0*this.m43+0*this.m44;this.m43=0*d+0*e+this.m43+0*this.m44;this.m44=0*d+0*e+0*g+this.m44;this.m45=d*a+e*c+g*b+0*h;return this},adjustContrast:function(a){this.adjustContrastRGB(a,a,a);return this},adjustContrastRGB:function(a,c,b){a+=1;c+=1;b+=1;var d=128*(1-a),e=128*(1-c),g=128*(1-b),h=this.m11,l=this.m12,t=this.m13,p=this.m14;this.m11=this.m11* a+0*this.m12+0*this.m13+0*this.m14;this.m12=0*h+this.m12*c+0*this.m13+0*this.m14;this.m13=0*h+0*l+this.m13*b+0*this.m14;this.m14=0*h+0*l+0*t+this.m14;this.m15=h*d+l*e+t*g+0*p;h=this.m21;l=this.m22;t=this.m23;p=this.m24;this.m21=this.m21*a+0*this.m22+0*this.m23+0*this.m24;this.m22=0*h+this.m22*c+0*this.m23+0*this.m24;this.m23=0*h+0*l+this.m23*b+0*this.m24;this.m24=0*h+0*l+0*t+this.m24;this.m25=h*d+l*e+t*g+0*p;h=this.m31;l=this.m32;t=this.m33;p=this.m34;this.m31=this.m31*a+0*this.m32+0*this.m33+0*this.m34; this.m32=0*h+this.m32*c+0*this.m33+0*this.m34;this.m33=0*h+0*l+this.m33*b+0*this.m34;this.m34=0*h+0*l+0*t+this.m34;this.m35=h*d+l*e+t*g+0*p;h=this.m41;l=this.m42;t=this.m43;p=this.m44;this.m41=this.m41*a+0*this.m42+0*this.m43+0*this.m44;this.m42=0*h+this.m42*c+0*this.m43+0*this.m44;this.m43=0*h+0*l+this.m43*b+0*this.m44;this.m44=0*h+0*l+0*t+this.m44;this.m45=h*d+l*e+t*g+0*p;return this},adjustHue:function(a){a*=.01745329251994278;var c=Math.cos(a),b=Math.sin(a);a=Na.LUMA_R+c*(1-Na.LUMA_R)+b*-Na.LUMA_R; var f=Na.LUMA_G+c*-Na.LUMA_G+b*-Na.LUMA_G,e=Na.LUMA_B+c*-Na.LUMA_B+b*(1-Na.LUMA_B),g=Na.LUMA_R+c*-Na.LUMA_R+.143*b,h=Na.LUMA_G+c*(1-Na.LUMA_G)+.14*b,l=Na.LUMA_B+c*-Na.LUMA_B+-.283*b,t=Na.LUMA_R+c*-Na.LUMA_R+b*-(1-Na.LUMA_R),p=Na.LUMA_G+c*-Na.LUMA_G+b*Na.LUMA_G;c=Na.LUMA_B+c*(1-Na.LUMA_B)+b*Na.LUMA_B;b=this.m11;var m=this.m12,n=this.m13,k=this.m14;this.m11=this.m11*a+this.m12*g+this.m13*t+0*this.m14;this.m12=b*f+this.m12*h+this.m13*p+0*this.m14;this.m13=b*e+m*l+this.m13*c+0*this.m14;this.m14=0*b+0* m+0*n+this.m14;this.m15=0*b+0*m+0*n+0*k;b=this.m21;m=this.m22;n=this.m23;k=this.m24;this.m21=this.m21*a+this.m22*g+this.m23*t+0*this.m24;this.m22=b*f+this.m22*h+this.m23*p+0*this.m24;this.m23=b*e+m*l+this.m23*c+0*this.m24;this.m24=0*b+0*m+0*n+this.m24;this.m25=0*b+0*m+0*n+0*k;b=this.m31;m=this.m32;n=this.m33;k=this.m34;this.m31=this.m31*a+this.m32*g+this.m33*t+0*this.m34;this.m32=b*f+this.m32*h+this.m33*p+0*this.m34;this.m33=b*e+m*l+this.m33*c+0*this.m34;this.m34=0*b+0*m+0*n+this.m34;this.m35=0*b+ 0*m+0*n+0*k;b=this.m41;m=this.m42;n=this.m43;k=this.m44;this.m41=this.m41*a+this.m42*g+this.m43*t+0*this.m44;this.m42=b*f+this.m42*h+this.m43*p+0*this.m44;this.m43=b*e+m*l+this.m43*c+0*this.m44;this.m44=0*b+0*m+0*n+this.m44;this.m45=0*b+0*m+0*n+0*k;return this},luminance2Alpha:function(){var a=Na.LUMA_R,c=Na.LUMA_G,b=Na.LUMA_B,f=this.m11,e=this.m12,g=this.m13,h=this.m14;this.m11=0*this.m11+0*this.m12+0*this.m13+this.m14*a;this.m12=0*f+0*this.m12+0*this.m13+this.m14*c;this.m13=0*f+0*e+0*this.m13+this.m14* b;this.m14=0*f+0*e+0*g+0*this.m14;this.m15=255*f+255*e+255*g+0*h;f=this.m21;e=this.m22;g=this.m23;h=this.m24;this.m21=0*this.m21+0*this.m22+0*this.m23+this.m24*a;this.m22=0*f+0*this.m22+0*this.m23+this.m24*c;this.m23=0*f+0*e+0*this.m23+this.m24*b;this.m24=0*f+0*e+0*g+0*this.m24;this.m25=255*f+255*e+255*g+0*h;f=this.m31;e=this.m32;g=this.m33;h=this.m34;this.m31=0*this.m31+0*this.m32+0*this.m33+this.m34*a;this.m32=0*f+0*this.m32+0*this.m33+this.m34*c;this.m33=0*f+0*e+0*this.m33+this.m34*b;this.m34= 0*f+0*e+0*g+0*this.m34;this.m35=255*f+255*e+255*g+0*h;f=this.m41;e=this.m42;g=this.m43;h=this.m44;this.m41=0*this.m41+0*this.m42+0*this.m43+this.m44*a;this.m42=0*f+0*this.m42+0*this.m43+this.m44*c;this.m43=0*f+0*e+0*this.m43+this.m44*b;this.m44=0*f+0*e+0*g+0*this.m44;this.m45=255*f+255*e+255*g+0*h;return this},adjustAlphaContrast:function(a){a+=1;var c=128*(1-a),b=this.m11,f=this.m12,e=this.m13,g=this.m14;this.m11=this.m11+0*this.m12+0*this.m13+0*this.m14;this.m12=0*b+this.m12+0*this.m13+0*this.m14; this.m13=0*b+0*f+this.m13+0*this.m14;this.m14=0*b+0*f+0*e+this.m14*a;this.m15=0*b+0*f+0*e+g*c;b=this.m21;f=this.m22;e=this.m23;g=this.m24;this.m21=this.m21+0*this.m22+0*this.m23+0*this.m24;this.m22=0*b+this.m22+0*this.m23+0*this.m24;this.m23=0*b+0*f+this.m23+0*this.m24;this.m24=0*b+0*f+0*e+this.m24*a;this.m25=0*b+0*f+0*e+g*c;b=this.m31;f=this.m32;e=this.m33;g=this.m34;this.m31=this.m31+0*this.m32+0*this.m33+0*this.m34;this.m32=0*b+this.m32+0*this.m33+0*this.m34;this.m33=0*b+0*f+this.m33+0*this.m34; this.m34=0*b+0*f+0*e+this.m34*a;this.m35=0*b+0*f+0*e+g*c;b=this.m41;f=this.m42;e=this.m43;g=this.m44;this.m41=this.m41+0*this.m42+0*this.m43+0*this.m44;this.m42=0*b+this.m42+0*this.m43+0*this.m44;this.m43=0*b+0*f+this.m43+0*this.m44;this.m44=0*b+0*f+0*e+this.m44*a;this.m45=0*b+0*f+0*e+g*c;return this},colorize:function(a,c){null==c&&(c=1);var b=.00392156862745098*(a>>>16&255),f=.00392156862745098*(a>>>8&255),e=.00392156862745098*(a&255),g=1-c;a=g+c*b*Na.LUMA_R;var h=c*b*Na.LUMA_G;b=c*b*Na.LUMA_B; var l=c*f*Na.LUMA_R,t=g+c*f*Na.LUMA_G;f=c*f*Na.LUMA_B;var p=c*e*Na.LUMA_R,m=c*e*Na.LUMA_G;c=g+c*e*Na.LUMA_B;e=this.m11;g=this.m12;var n=this.m13,k=this.m14;this.m11=this.m11*a+this.m12*l+this.m13*p+0*this.m14;this.m12=e*h+this.m12*t+this.m13*m+0*this.m14;this.m13=e*b+g*f+this.m13*c+0*this.m14;this.m14=0*e+0*g+0*n+this.m14;this.m15=0*e+0*g+0*n+0*k;e=this.m21;g=this.m22;n=this.m23;k=this.m24;this.m21=this.m21*a+this.m22*l+this.m23*p+0*this.m24;this.m22=e*h+this.m22*t+this.m23*m+0*this.m24;this.m23= e*b+g*f+this.m23*c+0*this.m24;this.m24=0*e+0*g+0*n+this.m24;this.m25=0*e+0*g+0*n+0*k;e=this.m31;g=this.m32;n=this.m33;k=this.m34;this.m31=this.m31*a+this.m32*l+this.m33*p+0*this.m34;this.m32=e*h+this.m32*t+this.m33*m+0*this.m34;this.m33=e*b+g*f+this.m33*c+0*this.m34;this.m34=0*e+0*g+0*n+this.m34;this.m35=0*e+0*g+0*n+0*k;e=this.m41;g=this.m42;n=this.m43;k=this.m44;this.m41=this.m41*a+this.m42*l+this.m43*p+0*this.m44;this.m42=e*h+this.m42*t+this.m43*m+0*this.m44;this.m43=e*b+g*f+this.m43*c+0*this.m44; this.m44=0*e+0*g+0*n+this.m44;this.m45=0*e+0*g+0*n+0*k;return this},rotateHue:function(a){if(!this.hueInitialized){this.hueInitialized=!0;this.preHue=new Na;this.preHue.rotateRed(45);this.preHue.rotateGreen(-39.182655);var c=[];c[0]=Na.LUMA_R2;c[1]=Na.LUMA_G2;c[2]=Na.LUMA_B2;c[3]=1;this.preHue.transformVector(c);var b=c[0]/c[2];c=c[1]/c[2];this.preHue.shearBlue(b,c);this.postHue=new Na;this.postHue.shearBlue(-b,-c);this.postHue.rotateGreen(39.182655);this.postHue.rotateRed(-45)}b=this.preHue;c=this.m11; var f=this.m12,e=this.m13,g=this.m14;this.m11=this.m11*b.m11+this.m12*b.m21+this.m13*b.m31+this.m14*b.m41;this.m12=c*b.m12+this.m12*b.m22+this.m13*b.m32+this.m14*b.m42;this.m13=c*b.m13+f*b.m23+this.m13*b.m33+this.m14*b.m43;this.m14=c*b.m14+f*b.m24+e*b.m34+this.m14*b.m44;this.m15=c*b.m15+f*b.m25+e*b.m35+g*b.m45;c=this.m21;f=this.m22;e=this.m23;g=this.m24;this.m21=this.m21*b.m11+this.m22*b.m21+this.m23*b.m31+this.m24*b.m41;this.m22=c*b.m12+this.m22*b.m22+this.m23*b.m32+this.m24*b.m42;this.m23=c*b.m13+ f*b.m23+this.m23*b.m33+this.m24*b.m43;this.m24=c*b.m14+f*b.m24+e*b.m34+this.m24*b.m44;this.m25=c*b.m15+f*b.m25+e*b.m35+g*b.m45;c=this.m31;f=this.m32;e=this.m33;g=this.m34;this.m31=this.m31*b.m11+this.m32*b.m21+this.m33*b.m31+this.m34*b.m41;this.m32=c*b.m12+this.m32*b.m22+this.m33*b.m32+this.m34*b.m42;this.m33=c*b.m13+f*b.m23+this.m33*b.m33+this.m34*b.m43;this.m34=c*b.m14+f*b.m24+e*b.m34+this.m34*b.m44;this.m35=c*b.m15+f*b.m25+e*b.m35+g*b.m45;c=this.m41;f=this.m42;e=this.m43;g=this.m44;this.m41=this.m41* b.m11+this.m42*b.m21+this.m43*b.m31+this.m44*b.m41;this.m42=c*b.m12+this.m42*b.m22+this.m43*b.m32+this.m44*b.m42;this.m43=c*b.m13+f*b.m23+this.m43*b.m33+this.m44*b.m43;this.m44=c*b.m14+f*b.m24+e*b.m34+this.m44*b.m44;this.m45=c*b.m15+f*b.m25+e*b.m35+g*b.m45;this.rotateBlue(a);a=this.postHue;b=this.m11;c=this.m12;f=this.m13;e=this.m14;this.m11=this.m11*a.m11+this.m12*a.m21+this.m13*a.m31+this.m14*a.m41;this.m12=b*a.m12+this.m12*a.m22+this.m13*a.m32+this.m14*a.m42;this.m13=b*a.m13+c*a.m23+this.m13*a.m33+ this.m14*a.m43;this.m14=b*a.m14+c*a.m24+f*a.m34+this.m14*a.m44;this.m15=b*a.m15+c*a.m25+f*a.m35+e*a.m45;b=this.m21;c=this.m22;f=this.m23;e=this.m24;this.m21=this.m21*a.m11+this.m22*a.m21+this.m23*a.m31+this.m24*a.m41;this.m22=b*a.m12+this.m22*a.m22+this.m23*a.m32+this.m24*a.m42;this.m23=b*a.m13+c*a.m23+this.m23*a.m33+this.m24*a.m43;this.m24=b*a.m14+c*a.m24+f*a.m34+this.m24*a.m44;this.m25=b*a.m15+c*a.m25+f*a.m35+e*a.m45;b=this.m31;c=this.m32;f=this.m33;e=this.m34;this.m31=this.m31*a.m11+this.m32*a.m21+ this.m33*a.m31+this.m34*a.m41;this.m32=b*a.m12+this.m32*a.m22+this.m33*a.m32+this.m34*a.m42;this.m33=b*a.m13+c*a.m23+this.m33*a.m33+this.m34*a.m43;this.m34=b*a.m14+c*a.m24+f*a.m34+this.m34*a.m44;this.m35=b*a.m15+c*a.m25+f*a.m35+e*a.m45;b=this.m41;c=this.m42;f=this.m43;e=this.m44;this.m41=this.m41*a.m11+this.m42*a.m21+this.m43*a.m31+this.m44*a.m41;this.m42=b*a.m12+this.m42*a.m22+this.m43*a.m32+this.m44*a.m42;this.m43=b*a.m13+c*a.m23+this.m43*a.m33+this.m44*a.m43;this.m44=b*a.m14+c*a.m24+f*a.m34+this.m44* a.m44;this.m45=b*a.m15+c*a.m25+f*a.m35+e*a.m45;return this},setChannels:function(a,c,b,f){null==f&&(f=8);null==b&&(b=4);null==c&&(c=2);null==a&&(a=1);var d=(1==(a&1)?1:0)+(2==(a&2)?1:0)+(4==(a&4)?1:0)+(8==(a&8)?1:0);0a?a-.5:0)|0};qq.clamp=function(a,c,b){return ab?b:a};qq.fclamp=function(a,c,b){return ab?b:a};var Oc=function(a){this.points=a;this.combineClosePoints();this.combineColinearPoints();this.makeCCW()};k["com.stencyl.utils.PolyDecompBayazit"]=Oc;Oc.__name__="com.stencyl.utils.PolyDecompBayazit"; Oc.area=function(a,c,b){return(c.x-a.x)*(b.y-a.y)-(b.x-a.x)*(c.y-a.y)};Oc.right=function(a,c,b){return 0>Oc.area(a,c,b)};Oc.rightOn=function(a,c,b){return 0>=Oc.area(a,c,b)};Oc.left=function(a,c,b){return 0Number.MIN_VALUE? new qa((f*a-c*b)/h,(d*b-g*a)/h):null};Oc.prototype={combineColinearPoints:function(){for(var a=[],c=0,b=this.points.length;cNumber.MIN_VALUE&&a.push(e)}this.points=a},at:function(a){var c=this.points.length;return this.points[(a+c)%c]},isReflex:function(a){return Oc.right(this.at(a- 1),this.at(a),this.at(a+1))},polyFromRange:function(a,c){return athis.points.length)){for(var c=0,b=this.points.length;cc&&(c+=this.points.length);e=0;for(g=Number.MAX_VALUE;b<=c;)Oc.leftOn(this.at(f-1),this.at(f),this.at(b))&&Oc.rightOn(this.at(f+1),this.at(f),this.at(b))&&(h=Oc.sqdist(this.at(f),this.at(b)),hthis.at(a).x)a=f}Oc.left(this.at(a-1),this.at(a),this.at(a+1))||this.points.reverse()},__class__:Oc};var Yd=function(a,c,b){null==b&&(b=0);null==c&&(c=0);null==a&&(a=0);this.r=a;this.g=c;this.b=b};k["com.stencyl.utils.RGB"]=Yd;Yd.__name__="com.stencyl.utils.RGB";Yd.setRGBi=function(a,c,b){return(a&255)<<16|(c&255)<<8|b&255};Yd.setRGBf=function(a,c,b){a=255*(0>a?0:1c?0: 1b?0:1a?a-.5:0)|0)&255)<<16|(((0c?c-.5:0)|0)&255)<<8|((0b?b-.5:0)|0)&255};Yd.getR=function(a){return a>>>16&255};Yd.getRf=function(a){return.00392156862745098*(a>>>16&255)};Yd.getG=function(a){return a>>>8&255};Yd.getGf=function(a){return.00392156862745098*(a>>>8&255)};Yd.getB=function(a){return a&255};Yd.getBf=function(a){return.00392156862745098*(a&255)};Yd.setR=function(a,c){return(c&255)<<16|a&-16711681};Yd.setRf=function(a,c){c= 255*(0>c?0:1c?c-.5:0)|0)&255)<<16|a&-16711681};Yd.setG=function(a,c){return(c&255)<<8|a&-65281};Yd.setGf=function(a,c){c=255*(0>c?0:1c?c-.5:0)|0)&255)<<8|a&-65281};Yd.setB=function(a,c){return c&255|a&-256};Yd.setBf=function(a,c){c=255*(0>c?0:1c?c-.5:0)|0)&255|a&-256};Yd.prototype={r:null,g:null,b:null,set:function(a,c,b){this.r=a;this.g=c;this.b=b},lerp:function(a,c,b){c.r=this.r+(a.r-this.r)*b;c.g=this.g+(a.g-this.g)* b;c.b=this.b+(a.b-this.b)*b},getR8:function(){var a=255*this.r;return(0a?a-.5:0)|0},getG8:function(){var a=255*this.g;return(0a?a-.5:0)|0},getB8:function(){var a=255*this.b;return(0a?a-.5:0)|0},get24:function(){var a=255*this.r,c=255*this.g,b=255*this.b;return((0a?a-.5:0)|0)<<16|((0c?c-.5:0)|0)<<8|(0b?b-.5:0)|0},set24:function(a,c,b){this.r=.00392156862745098*(a&255);this.g=.00392156862745098*(c&255);this.b=.00392156862745098*(b&255)},copy:function(a){a.r= this.r;a.g=this.g;a.b=this.b;return a},__class__:Yd};var Rf=function(a,c){null==c&&(c=0);null==a&&(a=1);this.volume=a;this.pan=c;this.rightToRight=this.rightToLeft=this.leftToRight=this.leftToLeft=0};k["openfl.media.SoundTransform"]=Rf;Rf.__name__="openfl.media.SoundTransform";Rf.prototype={leftToLeft:null,leftToRight:null,pan:null,rightToLeft:null,rightToRight:null,volume:null,clone:function(){return new Rf(this.volume,this.pan)},__class__:Rf};var sa=function(){this.h={}};k["haxe.ds.StringMap"]= sa;sa.__name__="haxe.ds.StringMap";sa.__interfaces__=[Gb];sa.prototype={h:null,rh:null,set:function(a,c){null!=v[a]?this.setReserved(a,c):this.h[a]=c},get:function(a){return null!=v[a]?this.getReserved(a):this.h[a]},exists:function(a){return null!=v[a]?this.existsReserved(a):this.h.hasOwnProperty(a)},setReserved:function(a,c){null==this.rh&&(this.rh={});this.rh["$"+a]=c},getReserved:function(a){return null==this.rh?null:this.rh["$"+a]},existsReserved:function(a){return null==this.rh?!1:this.rh.hasOwnProperty("$"+ a)},remove:function(a){if(null!=v[a]){a="$"+a;if(null==this.rh||!this.rh.hasOwnProperty(a))return!1;delete this.rh[a]}else{if(!this.h.hasOwnProperty(a))return!1;delete this.h[a]}return!0},keys:function(){return A.iter(this.arrayKeys())},arrayKeys:function(){var a=[],c;for(c in this.h)this.h.hasOwnProperty(c)&&a.push(c);if(null!=this.rh)for(c in this.rh)36==c.charCodeAt(0)&&a.push(c.substr(1));return a},iterator:function(){return new af(this,this.arrayKeys())},keyValueIterator:function(){return new oh(this)}, toString:function(){var a="{";for(var c=this.arrayKeys(),b=0,f=c.length;b ";a+=N.string(N.string(null!=v[g]?this.getReserved(g):this.h[g]));ef&&(f=h);l>g&&(g=l);h=this.a*(a.x+a.width)+this.c*(a.y+a.height);l=this.b*(a.x+a.width)+this.d*(a.y+a.height);hf&&(f=h);l>g&&(g=l);h=this.a*a.x+this.c*(a.y+a.height);l=this.b*a.x+this.d*(a.y+a.height);hf&&(f=h);l>g&&(g=l);c.setTo(b+h,e+l,f-b,g-e);return c},transformVector:function(a,c){null==c&&(c=new zd);c.x=a.x*this.a+a.y*this.c+this.tx;c.y=a.x*this.b+a.y*this.d+this.ty;return c},translate:function(a,c){this.tx+=a;this.ty+=c},__class__:$h};var Ha=function(a,c,b,f,e,g){null==g&&(g=0);null==e&&(e=0);null==f&&(f=1);null==b&&(b=0);null==c&&(c=0);null==a&&(a=1);this.a=a; this.b=c;this.c=b;this.d=f;this.tx=e;this.ty=g};k["openfl.geom.Matrix"]=Ha;Ha.__name__="openfl.geom.Matrix";Ha.prototype={a:null,b:null,c:null,d:null,tx:null,ty:null,__array:null,clone:function(){return new Ha(this.a,this.b,this.c,this.d,this.tx,this.ty)},concat:function(a){var c=this.a*a.a+this.b*a.c;this.b=this.a*a.b+this.b*a.d;this.a=c;c=this.c*a.a+this.d*a.c;this.d=this.c*a.b+this.d*a.d;this.c=c;c=this.tx*a.a+this.ty*a.c+a.tx;this.ty=this.tx*a.b+this.ty*a.d+a.ty;this.tx=c},copyColumnFrom:function(a, c){if(2>16&255;this.greenOffset=a>>8&255;this.blueOffset=a&255;this.blueMultiplier=this.greenMultiplier=this.redMultiplier=0;return this.get_color()},__toLimeColorMatrix:function(){if(null==Sb.__limeColorMatrix){var a=new Float32Array(20);Sb.__limeColorMatrix=a}Sb.__limeColorMatrix[0]= this.redMultiplier;Sb.__limeColorMatrix[4]=this.redOffset/255;Sb.__limeColorMatrix[6]=this.greenMultiplier;Sb.__limeColorMatrix[9]=this.greenOffset/255;Sb.__limeColorMatrix[12]=this.blueMultiplier;Sb.__limeColorMatrix[14]=this.blueOffset/255;Sb.__limeColorMatrix[18]=this.alphaMultiplier;Sb.__limeColorMatrix[19]=this.alphaOffset/255;return Sb.__limeColorMatrix},__class__:Sb,__properties__:{set_color:"set_color",get_color:"get_color"}};var R=function(){};k["com.stencyl.utils.Utils"]=R;R.__name__="com.stencyl.utils.Utils"; R.__properties__={set_time:"set_time",set_pan:"set_pan",get_pan:"get_pan",set_volume:"set_volume",get_volume:"get_volume"};R.toBoolean=function(a){return"true"==a?!0:!1};R.clear=function(a){a.length=0};R.removeValueFromArray=function(a,c){for(var b=a.length-1;-1a&&(a=0);if(R._volume==a)return a;R._soundTransform.volume=R._volume=a;return R._volume};R.get_pan=function(){return R._pan};R.set_pan=function(a){-1>a&&(a= -1);1a?-1:0a-b?c:a-b};R.lerp=function(a,c,b){null==b&&(b=1);return a+(c-a)*b};R.colorLerp=function(a,c,b){null==b&&(b=1);if(0>=b)return a;if(1<=b)return c;var d=a>>24&255,e=a>>16&255,g=a>>8&255;a&=255;return d+(((c>>24&255)-d)*b|0)<<24|e+(((c>>16&255)-e)*b|0)<<16|g+(((c>>8&255)-g)*b|0)<<8|a+(((c&255)-a)*b|0)};R.stepTowards=function(a, c,b,f){null==f&&(f=1);R.point.x=c-a.x;R.point.y=b-a.y;R.point.get_length()<=f?(a.x=c,a.y=b):(R.point.normalize(f),a.x+=R.point.x,a.y+=R.point.y)};R.anchorTo=function(a,c,b){null==b&&(b=0);R.point.x=a.x-c.x;R.point.y=a.y-c.y;R.point.get_length()>b&&R.point.normalize(b);a.x=c.x+R.point.x;a.y=c.y+R.point.y};R.angle=function(a,c,b,f){a=57.29577951308402*Math.atan2(f-c,b-a);return 0>a?a+360:a};R.angleXY=function(a,c,b,f,e){null==e&&(e=0);null==f&&(f=0);null==b&&(b=1);c*=.01745329251994278;a.x=Math.cos(c)* b+f;a.y=Math.sin(c)*b+e};R.rotateAround=function(a,c,b,f){null==f&&(f=!0);null==b&&(b=0);f&&(f=57.29577951308402*Math.atan2(a.y-c.y,a.x-c.x),b+=0>f?f+360:f);f=c.x;var d=c.y,g=a.x,h=a.y;null==h&&(h=0);null==g&&(g=0);f=Math.sqrt((g-f)*(g-f)+(h-d)*(h-d));d=c.x;c=c.y;null==c&&(c=0);null==d&&(d=0);null==f&&(f=1);b*=.01745329251994278;a.x=Math.cos(b)*f+d;a.y=Math.sin(b)*f+c};R.distance=function(a,c,b,f){null==f&&(f=0);null==b&&(b=0);return Math.sqrt((b-a)*(b-a)+(f-c)*(f-c))};R.distanceSquared=function(a, c,b,f){null==f&&(f=0);null==b&&(b=0);return(b-a)*(b-a)+(f-c)*(f-c)};R.distanceRects=function(a,c,b,f,e,g,h,l){if(ag?c-(g+l):g-(c+f);if(ce?a-(e+h):e-(a+b);if(a>e){if(c>g)return e+=h,g+=l,null==g&&(g=0),null==e&&(e=0),Math.sqrt((e-a)*(e-a)+(g-c)*(g-c));c+=f;e+=h;null==g&&(g=0);null==e&&(e=0);return Math.sqrt((e-a)*(e-a)+(g-c)*(g-c))}if(c>g)return a+=b,g+=l,null==g&&(g=0),null==e&&(e=0),Math.sqrt((e-a)*(e-a)+(g-c)*(g-c));a+=b;c+=f;null==g&&(g= 0);null==e&&(e=0);return Math.sqrt((e-a)*(e-a)+(g-c)*(g-c))};R.distanceRectPoint=function(a,c,b,f,e,g){if(a>=b&&a<=b+e)return c>=f&&c<=f+g?0:c>f?c-(f+g):f-c;if(c>=f&&c<=f+g)return a>b?a-(b+e):b-a;if(a>b){if(c>f)return b+=e,f+=g,null==f&&(f=0),null==b&&(b=0),Math.sqrt((b-a)*(b-a)+(f-c)*(f-c));g=b+e;null==f&&(f=0);null==g&&(g=0);return Math.sqrt((g-a)*(g-a)+(f-c)*(f-c))}if(c>f)return f+=g,null==f&&(f=0),null==b&&(b=0),Math.sqrt((b-a)*(b-a)+(f-c)*(f-c));g=b;null==f&&(f=0);null==g&&(g=0);return Math.sqrt((g- a)*(g-a)+(f-c)*(f-c))};R.clamp=function(a,c,b){if(b>c)return a=ac?a:c;a=ab?a:b};R.clampInRect=function(a,c,b,f,e,g){null==g&&(g=0);a.x=R.clamp(a.x,c+g,c+f-g);a.y=R.clamp(a.y,b+g,b+e-g)};R.scale=function(a,c,b,f,e){return f+(a-c)/(b-c)*(e-f)};R.scaleClamp=function(a,c,b,f,e){a=f+(a-c)/(b-c)*(e-f);if(e>f)return a=af?a:f;a=ae?a:e};R.indexOf=function(a,c){for(var b=0,f=0;f>16&255};R.getGreen=function(a){return a>>8&255};R.getBlue=function(a){return a&255};R.convertColor=function(a){return 0> a?a+16777216:a};R.timeFlag=function(){var a=(new Date).getTime()/1E3,c=a-R._time;R._time=a;return c};R.frames=function(a,c,b){null==b&&(b=0);var d=[];++b;if(a=c;)d.push(a),a-=b;return d};R.set_time=function(a){R._time=a;return R._time};R.saveToSharedObject=function(a,c,b){try{a.data[c]=R.clone(b)}catch(f){if(ha.lastException=f,a=f instanceof F?f.val:f,"string"==typeof a){if("deep clone"!=a)throw new F(a);}else throw f;}};R.loadFromSharedObject=function(a,c){return R.cloner.clone(Y.field(a.data, c))};R.flushSharedObject=function(a,c){var b=null;try{b=a.flush()}catch(f){ha.lastException=f;null!=c&&c(!1);return}0==b&&null!=c&&c(!0)};R.saveMap=function(a,c,b){c=Sc.getLocal(c);for(var d=a.keys();d.hasNext();){var e=d.next();c.data[e]=null!=v[e]?a.getReserved(e):a.h[e]}R.flushSharedObject(c,b)};R.loadMap=function(a,c,b){c=Sc.getLocal(c);for(var d=0,e=Y.fields(c.data);d(a*=2)?.5*a*a*(3.5949095*a-2.5949095):.5*((a-=2)*a*(3.5949095*a+2.5949095)+2)},__class__:Rm});var Sm=function(){};k["com.stencyl.utils.motion.BackOut"]= Sm;Sm.__name__="com.stencyl.utils.motion.BackOut";Sm.__super__=La;Sm.prototype=r(La.prototype,{apply:function(a){return 0==a?0:1==a?1:--a*a*(2.70158*a+1.70158)+1},__class__:Sm});var Tm=function(){};k["com.stencyl.utils.motion.BackOutIn"]=Tm;Tm.__name__="com.stencyl.utils.motion.BackOutIn";Tm.__super__=La;Tm.prototype=r(La.prototype,{apply:function(a){if(0==a)return 0;if(1==a)return 1;if(.5>a)return a=2*a-1,.5*(a*a*(2.70158*a+1.70158)+1);a=2*a-1;return.5*a*a*(2.70158*a-1.70158)+.5},__class__:Tm}); var Um=function(){};k["com.stencyl.utils.motion.BounceIn"]=Um;Um.__name__="com.stencyl.utils.motion.BounceIn";Um.__super__=La;Um.prototype=r(La.prototype,{apply:function(a){a=1-a;return.36363636363636365>a?1-7.5625*a*a:.7272727272727273>a?1-(7.5625*(a-=.5454545454545454)*a+.75):.9090909090909091>a?1-(7.5625*(a-=.8181818181818182)*a+.9375):1-(7.5625*(a-=.9545454545454546)*a+.984375)},__class__:Um});var Vm=function(){};k["com.stencyl.utils.motion.BounceInOut"]=Vm;Vm.__name__="com.stencyl.utils.motion.BounceInOut"; Vm.__super__=La;Vm.prototype=r(La.prototype,{apply:function(a){if(.5>a)return a=1-2*a,.36363636363636365>a?.5*(1-7.5625*a*a):.7272727272727273>a?.5*(1-(7.5625*(a-=.5454545454545454)*a+.75)):.9090909090909091>a?.5*(1-(7.5625*(a-=.8181818181818182)*a+.9375)):.5*(1-(7.5625*(a-=.9545454545454546)*a+.984375));a=2*a-1;return.36363636363636365>a?7.5625*a*a*.5+.5:.7272727272727273>a?.5*(7.5625*(a-=.5454545454545454)*a+.75)+.5:.9090909090909091>a?.5*(7.5625*(a-=.8181818181818182)*a+.9375)+.5:.5*(7.5625*(a-= .9545454545454546)*a+.984375)+.5},__class__:Vm});var Wm=function(){};k["com.stencyl.utils.motion.BounceOut"]=Wm;Wm.__name__="com.stencyl.utils.motion.BounceOut";Wm.__super__=La;Wm.prototype=r(La.prototype,{apply:function(a){return.36363636363636365>a?7.5625*a*a:.7272727272727273>a?7.5625*(a-=.5454545454545454)*a+.75:.9090909090909091>a?7.5625*(a-=.8181818181818182)*a+.9375:7.5625*(a-=.9545454545454546)*a+.984375},__class__:Wm});var Xm=function(){};k["com.stencyl.utils.motion.BounceOutIn"]=Xm;Xm.__name__= "com.stencyl.utils.motion.BounceOutIn";Xm.__super__=La;Xm.prototype=r(La.prototype,{apply:function(a){if(.5>a)return.36363636363636365>(a*=2)?3.78125*a*a:.7272727272727273>a?.5*(7.5625*(a-=.5454545454545454)*a+.75):.9090909090909091>a?.5*(7.5625*(a-=.8181818181818182)*a+.9375):.5*(7.5625*(a-=.9545454545454546)*a+.984375);a=1-(2*a-1);return.36363636363636365>a?.5-3.78125*a*a+.5:.7272727272727273>a?.5-.5*(7.5625*(a-=.5454545454545454)*a+.75)+.5:.9090909090909091>a?.5-.5*(7.5625*(a-=.8181818181818182)* a+.9375)+.5:.5-.5*(7.5625*(a-=.9545454545454546)*a+.984375)+.5},__class__:Xm});var Ym=function(){};k["com.stencyl.utils.motion.CircIn"]=Ym;Ym.__name__="com.stencyl.utils.motion.CircIn";Ym.__super__=La;Ym.prototype=r(La.prototype,{apply:function(a){return-1>a||1a||1.5(a*= 2)?-.5*(Math.sqrt(1-a*a)-1):.5*(Math.sqrt(1-(a-=2)*a)+1)},__class__:Zm});var $m=function(){};k["com.stencyl.utils.motion.CircOut"]=$m;$m.__name__="com.stencyl.utils.motion.CircOut";$m.__super__=La;$m.prototype=r(La.prototype,{apply:function(a){return 0>a||2a)return 0;if(1a)return a=2*a-1,.5*Math.sqrt(1-a*a);a=2*a-1;return-.5*(Math.sqrt(1-a*a)-1-1)},__class__:an});var bn=function(){};k["com.stencyl.utils.motion.CubicIn"]=bn;bn.__name__="com.stencyl.utils.motion.CubicIn";bn.__super__=La;bn.prototype=r(La.prototype,{apply:function(a){return a*a*a},__class__:bn});var cn=function(){};k["com.stencyl.utils.motion.CubicInOut"]=cn;cn.__name__="com.stencyl.utils.motion.CubicInOut";cn.__super__=La;cn.prototype=r(La.prototype,{apply:function(a){return 1>(a*=2)?.5*a*a*a: .5*((a-=2)*a*a+2)},__class__:cn});var dn=function(){};k["com.stencyl.utils.motion.CubicOut"]=dn;dn.__name__="com.stencyl.utils.motion.CubicOut";dn.__super__=La;dn.prototype=r(La.prototype,{apply:function(a){return--a*a*a+1},__class__:dn});var en=function(){};k["com.stencyl.utils.motion.CubicOutIn"]=en;en.__name__="com.stencyl.utils.motion.CubicOutIn";en.__super__=La;en.prototype=r(La.prototype,{apply:function(a){a=2*a-1;return.5*(a*a*a+1)},__class__:en});var fn=function(){};k["com.stencyl.utils.motion.ElasticIn"]= fn;fn.__name__="com.stencyl.utils.motion.ElasticIn";fn.__super__=La;fn.prototype=r(La.prototype,{apply:function(a){return 0==a?0:1==a?1:-(Math.exp(6.931471805599453*--a)*Math.sin(6.283185307179586*(.001*a-7.5E-5)/3E-4))},__class__:fn});var gn=function(){};k["com.stencyl.utils.motion.ElasticInOut"]=gn;gn.__name__="com.stencyl.utils.motion.ElasticInOut";gn.__super__=La;gn.prototype=r(La.prototype,{apply:function(a){return 0==a?0:1==a?1:1>(a*=2)?-.5*Math.exp(6.931471805599453*--a)*Math.sin(6.283185307179586* (.001*a-7.5E-5)/3E-4):Math.exp(-6.931471805599453*--a)*Math.sin(6.283185307179586*(.001*a-7.5E-5)/3E-4)*.5+1},__class__:gn});var hn=function(){};k["com.stencyl.utils.motion.ElasticOut"]=hn;hn.__name__="com.stencyl.utils.motion.ElasticOut";hn.__super__=La;hn.prototype=r(La.prototype,{apply:function(a){return 0==a?0:1==a?1:Math.exp(-6.931471805599453*a)*Math.sin(6.283185307179586*(.001*a-7.5E-5)/3E-4)+1},__class__:hn});var jn=function(){};k["com.stencyl.utils.motion.ElasticOutIn"]=jn;jn.__name__="com.stencyl.utils.motion.ElasticOutIn"; jn.__super__=La;jn.prototype=r(La.prototype,{apply:function(a){if(.5>a)return 0==(a*=2)?0:.5*Math.exp(-6.931471805599453*a)*Math.sin(6.283185307179586*(.001*a-7.5E-5)/3E-4)+.5;if(.5==a)return.5;if(1==a)return 1;a=2*a-1;return-(.5*Math.exp(6.931471805599453*--a)*Math.sin(6.283185307179586*(.001*a-7.5E-5)/3E-4))+.5},__class__:jn});var kn=function(){};k["com.stencyl.utils.motion.ExpoIn"]=kn;kn.__name__="com.stencyl.utils.motion.ExpoIn";kn.__super__=La;kn.prototype=r(La.prototype,{apply:function(a){return 0== a?0:Math.exp(6.931471805599453*(a-1))},__class__:kn});var ln=function(){};k["com.stencyl.utils.motion.ExpoInOut"]=ln;ln.__name__="com.stencyl.utils.motion.ExpoInOut";ln.__super__=La;ln.prototype=r(La.prototype,{apply:function(a){return 0==a?0:1==a?1:1>(a*=2)?.5*Math.exp(6.931471805599453*(a-1)):.5*(2-Math.exp(-6.931471805599453*(a-1)))},__class__:ln});var mn=function(){};k["com.stencyl.utils.motion.ExpoOut"]=mn;mn.__name__="com.stencyl.utils.motion.ExpoOut";mn.__super__=La;mn.prototype=r(La.prototype, {apply:function(a){return 1==a?1:1-Math.exp(-6.931471805599453*a)},__class__:mn});var nn=function(){};k["com.stencyl.utils.motion.ExpoOutIn"]=nn;nn.__name__="com.stencyl.utils.motion.ExpoOutIn";nn.__super__=La;nn.prototype=r(La.prototype,{apply:function(a){return.5>a?.5*(1-Math.exp(-13.862943611198906*a)):.5==a?.5:.5*(Math.exp(13.862943611198906*(a-1))+1)},__class__:nn});var on=function(){};k["com.stencyl.utils.motion.Linear"]=on;on.__name__="com.stencyl.utils.motion.Linear";on.__super__=La;on.prototype= r(La.prototype,{apply:function(a){return a},__class__:on});var pn=function(){};k["com.stencyl.utils.motion.QuadIn"]=pn;pn.__name__="com.stencyl.utils.motion.QuadIn";pn.__super__=La;pn.prototype=r(La.prototype,{apply:function(a){return a*a},__class__:pn});var qn=function(){};k["com.stencyl.utils.motion.QuadInOut"]=qn;qn.__name__="com.stencyl.utils.motion.QuadInOut";qn.__super__=La;qn.prototype=r(La.prototype,{apply:function(a){return.5>a?2*a*a:-2*--a*a+1},__class__:qn});var rn=function(){};k["com.stencyl.utils.motion.QuadOut"]= rn;rn.__name__="com.stencyl.utils.motion.QuadOut";rn.__super__=La;rn.prototype=r(La.prototype,{apply:function(a){return-a*(a-2)},__class__:rn});var sn=function(){};k["com.stencyl.utils.motion.QuadOutIn"]=sn;sn.__name__="com.stencyl.utils.motion.QuadOutIn";sn.__super__=La;sn.prototype=r(La.prototype,{apply:function(a){if(.5>a)return-.5*(a*=2)*(a-2);a=2*a-1;return.5*a*a+.5},__class__:sn});var tn=function(){};k["com.stencyl.utils.motion.QuartIn"]=tn;tn.__name__="com.stencyl.utils.motion.QuartIn";tn.__super__= La;tn.prototype=r(La.prototype,{apply:function(a){return(a*=a)*a},__class__:tn});var un=function(){};k["com.stencyl.utils.motion.QuartInOut"]=un;un.__name__="com.stencyl.utils.motion.QuartInOut";un.__super__=La;un.prototype=r(La.prototype,{apply:function(a){if(1>(a*=2))return.5*(a*=a)*a;a*=a-=2;return-.5*(a*a-2)},__class__:un});var vn=function(){};k["com.stencyl.utils.motion.QuartOut"]=vn;vn.__name__="com.stencyl.utils.motion.QuartOut";vn.__super__=La;vn.prototype=r(La.prototype,{apply:function(a){a*= --a;return 1-a*a},__class__:vn});var wn=function(){};k["com.stencyl.utils.motion.QuartOutIn"]=wn;wn.__name__="com.stencyl.utils.motion.QuartOutIn";wn.__super__=La;wn.prototype=r(La.prototype,{apply:function(a){if(.5>a)return a=2*a-1,-.5*(a*=a)*a+.5;a=2*a-1;return.5*(a*=a)*a+.5},__class__:wn});var xn=function(){};k["com.stencyl.utils.motion.QuintIn"]=xn;xn.__name__="com.stencyl.utils.motion.QuintIn";xn.__super__=La;xn.prototype=r(La.prototype,{apply:function(a){return a*(a*=a)*a},__class__:xn});var yn= function(){};k["com.stencyl.utils.motion.QuintInOut"]=yn;yn.__name__="com.stencyl.utils.motion.QuintInOut";yn.__super__=La;yn.prototype=r(La.prototype,{apply:function(a){return 1>(a*=2)?.5*a*(a*=a)*a:.5*(a-=2)*(a*=a)*a+1},__class__:yn});var zn=function(){};k["com.stencyl.utils.motion.QuintOut"]=zn;zn.__name__="com.stencyl.utils.motion.QuintOut";zn.__super__=La;zn.prototype=r(La.prototype,{apply:function(a){return--a*(a*=a)*a+1},__class__:zn});var An=function(){};k["com.stencyl.utils.motion.QuintOutIn"]= An;An.__name__="com.stencyl.utils.motion.QuintOutIn";An.__super__=La;An.prototype=r(La.prototype,{apply:function(a){a=2*a-1;return.5*(a*(a*=a)*a+1)},__class__:An});var Bn=function(){};k["com.stencyl.utils.motion.SineIn"]=Bn;Bn.__name__="com.stencyl.utils.motion.SineIn";Bn.__super__=La;Bn.prototype=r(La.prototype,{apply:function(a){return 0==a?0:1==a?1:1-Math.cos(1.5707963267948966*a)},__class__:Bn});var Cn=function(){};k["com.stencyl.utils.motion.SineInOut"]=Cn;Cn.__name__="com.stencyl.utils.motion.SineInOut"; Cn.__super__=La;Cn.prototype=r(La.prototype,{apply:function(a){return 0==a?0:1==a?1:-.5*(Math.cos(3.141592653589793*a)-1)},__class__:Cn});var Dn=function(){};k["com.stencyl.utils.motion.SineOut"]=Dn;Dn.__name__="com.stencyl.utils.motion.SineOut";Dn.__super__=La;Dn.prototype=r(La.prototype,{apply:function(a){return 0==a?0:1==a?1:Math.sin(1.5707963267948966*a)},__class__:Dn});var En=function(){};k["com.stencyl.utils.motion.SineOutIn"]=En;En.__name__="com.stencyl.utils.motion.SineOutIn";En.__super__= La;En.prototype=r(La.prototype,{apply:function(a){return 0==a?0:1==a?1:.5>a?.5*Math.sin(3.141592653589793*a):-.5*Math.cos(1.5707963267948966*(2*a-1))+1},__class__:En});var Fn=function(){};k["com.stencyl.utils.motion.WarpIn"]=Fn;Fn.__name__="com.stencyl.utils.motion.WarpIn";Fn.__super__=La;Fn.prototype=r(La.prototype,{apply:function(a){return 1>a?0:1},__class__:Fn});var Gn=function(){};k["com.stencyl.utils.motion.WarpInOut"]=Gn;Gn.__name__="com.stencyl.utils.motion.WarpInOut";Gn.__super__=La;Gn.prototype= r(La.prototype,{apply:function(a){return.5>a?0:1},__class__:Gn});var Hn=function(){};k["com.stencyl.utils.motion.WarpOut"]=Hn;Hn.__name__="com.stencyl.utils.motion.WarpOut";Hn.__super__=La;Hn.prototype=r(La.prototype,{apply:function(a){return 0>=a?0:1},__class__:Hn});var In=function(){};k["com.stencyl.utils.motion.WarpOutIn"]=In;In.__name__="com.stencyl.utils.motion.WarpOutIn";In.__super__=La;In.prototype=r(La.prototype,{apply:function(a){return 0>=a?0:1>a?.5:1},__class__:In});var hb=function(){}; k["com.stencyl.utils.motion.Easing"]=hb;hb.__name__="com.stencyl.utils.motion.Easing";var Hi=function(){};k["com.stencyl.utils.motion.EasingConstants"]=Hi;Hi.__name__="com.stencyl.utils.motion.EasingConstants";var Jg=function(){this.paused=this.finished=this.active=!1};k["com.stencyl.utils.motion.TweenObject"]=Jg;Jg.__name__="com.stencyl.utils.motion.TweenObject";Jg.prototype={easing:null,time:null,duration:null,active:null,paused:null,updated:null,finished:null,onUpdate:null,onComplete:null,_tween:function(a, c){null==a&&(a=hb.linear);this.easing=a;this.duration=c;this.active||Cb.markActive(this);this.time=0;this.active=!0;this.paused=this.finished=this.updated=!1;0==c&&(this.duration=1,Cb.finish(this))},update:function(a){if(!this.paused)if(this.time+=a,this.time>this.duration&&(this.time=this.duration),this.updateValue(),this.updated=!0,this.time==this.duration){this.active=!1;this.finished=!0;if(null!=this.onUpdate)this.onUpdate();if(null!=this.onComplete)this.onComplete()}else if(null!=this.onUpdate)this.onUpdate()}, updateValue:function(){},doOnUpdate:function(a){this.onUpdate=a;return this},doOnComplete:function(a){this.onComplete=a;return this},__class__:Jg};var Re=function(){Jg.call(this)};k["com.stencyl.utils.motion.TweenFloat"]=Re;Re.__name__="com.stencyl.utils.motion.TweenFloat";Re.__super__=Jg;Re.prototype=r(Jg.prototype,{startValue:null,endValue:null,value:null,tween:function(a,c,b,f){this.startValue=a;this.endValue=c;this.value=a;this._tween(b,f);return this},updateValue:function(){this.value=jb.lerp(this.easing.apply(this.time/ this.duration),this.startValue,this.endValue)},__class__:Re});var $f=function(){Jg.call(this)};k["com.stencyl.utils.motion.TweenFloat2"]=$f;$f.__name__="com.stencyl.utils.motion.TweenFloat2";$f.__super__=Jg;$f.prototype=r(Jg.prototype,{startValue1:null,endValue1:null,value1:null,startValue2:null,endValue2:null,value2:null,tween:function(a,c,b,f,e,g){this.startValue1=a;this.endValue1=c;this.value1=a;this.startValue2=b;this.endValue2=f;this.value2=b;this._tween(e,g);return this},updateValue:function(){var a= this.easing.apply(this.time/this.duration);this.value1=jb.lerp(a,this.startValue1,this.endValue1);this.value2=jb.lerp(a,this.startValue2,this.endValue2)},__class__:$f});var Cb=function(){};k["com.stencyl.utils.motion.TweenManager"]=Cb;Cb.__name__="com.stencyl.utils.motion.TweenManager";Cb.resetStatics=function(){Cb.activeObjects=[];Cb.finishedObjects=[]};Cb.markActive=function(a){Cb.activeObjects.push(a)};Cb.cancel=function(a){var c=Cb.activeObjects.indexOf(a);-1!=c&&(a.active=!1,a.updated=!1,a.finished= !1,a.paused=!1,Cb.activeObjects[c]=Cb.activeObjects[Cb.activeObjects.length-1],Cb.activeObjects.pop())};Cb.finish=function(a){var c=Cb.activeObjects.indexOf(a);-1!=c&&(a.update(a.duration-a.time),Cb.activeObjects[c]=Cb.activeObjects[Cb.activeObjects.length-1],Cb.activeObjects.pop(),Cb.finishedObjects.push(a))};Cb.update=function(a){for(var c=Cb.finishedObjects.length;0":c);a.b+= ".";a.b+=null==b?"null":""+b;break;case 4:c=c.v,a.b+="local function #",a.b+=null==c?"null":""+c}};ha.makeStack=function(a){if(null==a)return[];if("string"==typeof a){a=a.split("\n");"Error"==a[0]&&a.shift();for(var c=[],b=new Wa("^ at ([A-Za-z0-9_. ]+) \\(([^)]+):([0-9]+):([0-9]+)\\)$",""),f=0;fa?0>c?~c-~a|0:1:0>c?-1:a-c|0};var Ln={};k["haxe._Int64.Int64_Impl_"]=Ln;Ln.__name__="haxe._Int64.Int64_Impl_";Ln.toString=function(a){var c=a;if(0==c.high&&0==c.low)return"0";a="";var b=!1;0>c.high&&(b=!0);for(var f=new Vb(0,10);0!=c.high||0!=c.low;)if(c=Ln.divMod(c,f),0>c.modulus.high){var e= c.modulus,g=~e.high;e=~e.low+1|0;0==e&&g++;a=e+a;g=c.quotient;c=~g.high;g=~g.low+1|0;0==g&&(c++,c|=0);c=new Vb(c,g)}else a=c.modulus.low+a,c=c.quotient;b&&(a="-"+a);return a};Ln.divMod=function(a,c){if(0==c.high)switch(c.low){case 0:throw new F("divide by zero");case 1:a=new Vb(a.high,a.low);var b=new Vb(0,0);return{quotient:a,modulus:b}}var f=0>a.high!=0>c.high;if(0>a.high){b=~a.high;var e=~a.low+1|0;0==e&&(b++,b|=0);b=new Vb(b,e)}else b=new Vb(a.high,a.low);0>c.high&&(e=~c.high,c=~c.low+1|0,0== c&&(e++,e|=0),c=new Vb(e,c));e=new Vb(0,0);for(var g=new Vb(0,1);!(0>c.high);){var h=vj.ucompare(c.high,b.high);h=0!=h?h:vj.ucompare(c.low,b.low);var l=1;l&=63;c=0==l?new Vb(c.high,c.low):32>l?new Vb(c.high<>>32-l,c.low<l?new Vb(g.high<>>32-l,g.low<vj.ucompare(b.low,c.low)&&(h--,h|=0),b=new Vb(h,l)),h=1,h&=63,g=0==h?new Vb(g.high,g.low):32>h?new Vb(g.high>>>h,g.high<<32-h|g.low>>>h):new Vb(0,g.high>>>h-32),h=1,h&=63,c=0==h?new Vb(c.high,c.low):32>h?new Vb(c.high>>>h,c.high<<32-h|c.low>>>h):new Vb(0,c.high>>>h-32);f&&(f=~e.high,c=~e.low+1|0,0==c&&(f++,f|=0),e=new Vb(f,c));0>a.high&&(a=~b.high,b=~b.low+1|0,0==b&&(a++,a|=0),b=new Vb(a,b));return{quotient:e,modulus:b}};var Vb=function(a,c){this.high=a;this.low= c};k["haxe._Int64.___Int64"]=Vb;Vb.__name__="haxe._Int64.___Int64";Vb.prototype={high:null,low:null,__class__:Vb};var ph=function(){};k["haxe.Log"]=ph;ph.__name__="haxe.Log";ph.formatOutput=function(a,c){a=N.string(a);if(null==c)return a;var b=c.fileName+":"+c.lineNumber;if(null!=c.customParams){var f=0;for(c=c.customParams;fa?"m":"p";break;case 3:this.buf.b+=a?"t":"f";break;case 4:S.__instanceof(a,Uv)?(a=a.__name__,this.buf.b+="A",this.serializeString(a)):S.__instanceof(a,Yw)?(this.buf.b+="B",this.serializeString(a.__ename__)):this.useCache&&this.serializeRef(a)||(this.buf.b+= "o",this.serializeFields(a));break;case 5:throw new F("Cannot serialize function");case 6:c=c.c;if(c==String){this.serializeString(a);break}if(this.useCache&&this.serializeRef(a))break;switch(c){case Array:c=0;this.buf.b+="a";for(var b=0,f=a.length;b>2]),this.buf.b+=String.fromCodePoint(c[(e<< 4|g>>4)&63]),this.buf.b+=String.fromCodePoint(c[(g<<2|h>>6)&63]),this.buf.b+=String.fromCodePoint(c[h&63]);b==f?(f=a.b[b++],a=a.b[b++],this.buf.b+=String.fromCodePoint(c[f>>2]),this.buf.b+=String.fromCodePoint(c[(f<<4|a>>4)&63]),this.buf.b+=String.fromCodePoint(c[a<<2&63])):b==f+1&&(a=a.b[b++],this.buf.b+=String.fromCodePoint(c[a>>2]),this.buf.b+=String.fromCodePoint(c[a<<4&63]));break;default:this.useCache&&this.cache.pop(),null!=a.hxSerialize?(this.buf.b+="C",this.serializeString(c.__name__),this.useCache&& this.cache.push(a),a.hxSerialize(this),this.buf.b+="g"):(this.buf.b+="c",this.serializeString(c.__name__),this.useCache&&this.cache.push(a),this.serializeFields(a))}break;case 7:c=c.e;if(this.useCache){if(this.serializeRef(a))break;this.cache.pop()}this.buf.b+=N.string(this.useEnumIndex?"j":"w");this.serializeString(c.__ename__);this.useEnumIndex?(this.buf.b+=":",this.buf.b+=N.string(a._hx_index)):this.serializeString(B[a.__enum__].__constructs__[a._hx_index]);this.buf.b+=":";c=Ua.enumParameters(a); this.buf.b+=N.string(c.length);for(b=0;bf||57c||101==c||69==c)this.pos++;else break}return parseFloat(A.substr(this.buf,a,this.pos-a))},unserializeObject:function(a){for(;;){if(this.pos>=this.length)throw new F("Invalid object");if(103==this.buf.charCodeAt(this.pos))break; var c=this.unserialize();if("string"!=typeof c)throw new F("Invalid object key");var b=this.unserialize();a[c]=b}this.pos++},unserializeEnum:function(a,c){if(58!=this.buf.charCodeAt(this.pos++))throw new F("Invalid enum format");var b=this.readDigits();if(0==b)return Ua.createEnum(a,c);for(var f=[];0a||a>=this.scache.length)throw new F("Invalid string reference");return this.scache[a];case 97:a=[];for(this.cache.push(a);;){c=this.buf.charCodeAt(this.pos);if(104==c){this.pos++;break}117==c?(this.pos++,c=this.readDigits(),a[a.length+c-1]=null):a.push(this.unserialize())}return a;case 98:a=new sa;for(this.cache.push(a);104!=this.buf.charCodeAt(this.pos);){c=this.unserialize();var b=this.unserialize();null!=v[c]?a.setReserved(c,b):a.h[c]=b}this.pos++; return a;case 99:a=this.unserialize();c=this.resolver.resolveClass(a);if(null==c)throw new F("Class not found "+a);a=Object.create(c.prototype);this.cache.push(a);this.unserializeObject(a);return a;case 100:return this.readFloat();case 102:return!1;case 105:return this.readDigits();case 106:a=this.unserialize();c=this.resolver.resolveEnum(a);if(null==c)throw new F("Enum not found "+a);this.pos++;b=this.readDigits();var f=c.__constructs__.slice()[b];if(null==f)throw new F("Unknown enum index "+a+"@"+ b);a=this.unserializeEnum(c,f);this.cache.push(a);return a;case 107:return NaN;case 108:a=new Pa;for(this.cache.push(a);104!=this.buf.charCodeAt(this.pos);)a.add(this.unserialize());this.pos++;return a;case 109:return-Infinity;case 110:return null;case 111:return a={},this.cache.push(a),this.unserializeObject(a),a;case 112:return Infinity;case 113:a=new Xa;this.cache.push(a);for(c=this.buf.charCodeAt(this.pos++);58==c;)c=this.readDigits(),b=this.unserialize(),a.h[c]=b,c=this.buf.charCodeAt(this.pos++); if(104!=c)throw new F("Invalid IntMap format");return a;case 114:a=this.readDigits();if(0>a||a>=this.cache.length)throw new F("Invalid reference");return this.cache[a];case 115:a=this.readDigits();f=this.buf;if(58!=this.buf.charCodeAt(this.pos++)||this.length-this.pos>2)+(2<=h?h-1:0)));for(b=0;g>4)&255;t=e[f.charCodeAt(g++)];c.b[b++]=(p<<4|t>>2)&255;p=e[f.charCodeAt(g++)];c.b[b++]=(t<<6|p)&255}2<=h&&(p=e[f.charCodeAt(g++)],l=e[f.charCodeAt(g++)],c.b[b++]=(p<<2|l>>4)&255,3==h&&(f=e[f.charCodeAt(g++)],c.b[b++]=(l<<4|f>>2)&255));this.pos+=a;this.cache.push(c);return c;case 116:return!0;case 118:return 48<=this.buf.charCodeAt(this.pos)&&57>=this.buf.charCodeAt(this.pos)&&48<=this.buf.charCodeAt(this.pos+1)&&57>=this.buf.charCodeAt(this.pos+1)&&48<=this.buf.charCodeAt(this.pos+ 2)&&57>=this.buf.charCodeAt(this.pos+2)&&48<=this.buf.charCodeAt(this.pos+3)&&57>=this.buf.charCodeAt(this.pos+3)&&45==this.buf.charCodeAt(this.pos+4)?(a=A.strDate(A.substr(this.buf,this.pos,19)),this.pos+=19):a=new Date(this.readFloat()),this.cache.push(a),a;case 119:a=this.unserialize();c=this.resolver.resolveEnum(a);if(null==c)throw new F("Enum not found "+a);a=this.unserializeEnum(c,this.unserialize());this.cache.push(a);return a;case 120:throw F.wrap(this.unserialize());case 121:a=this.readDigits(); if(58!=this.buf.charCodeAt(this.pos++)||this.length-this.pos=f&&(f=f-55232<<10|a.charCodeAt(b++)&1023);127>=f?c.push(f):(2047>=f?c.push(192|f>>6):(65535>=f?c.push(224|f>>12):(c.push(240|f>>18),c.push(128|f>>12&63)),c.push(128|f>>6&63)),c.push(128| f&63))}return new Sa((new Uint8Array(c)).buffer)};Sa.ofData=function(a){var c=a.hxBytes;return null!=c?c:new Sa(a)};Sa.ofHex=function(a){if(0!=(a.length&1))throw new F("Not a hex string (odd number of digits)");for(var c=[],b=0,f=a.length>>1;b>6);g=(g&15)+9*((g&64)>>6);c.push((e<<4|g)&255);++b}return new Sa((new Uint8Array(c)).buffer)};Sa.fastGet=function(a,c){return a.bytes[c]};Sa.prototype={length:null,b:null,data:null,get:function(a){return this.b[a]}, set:function(a,c){this.b[a]=c&255},blit:function(a,c,b,f){if(0>a||0>b||0>f||a+f>this.length||b+f>c.length)throw new F(Ii.OutsideBounds);0==b&&f==c.b.byteLength?this.b.set(c.b,a):this.b.set(c.b.subarray(b,b+f),a)},fill:function(a,c,b){for(var d=0;da||0>c||a+c>this.length)throw new F(Ii.OutsideBounds);return new Sa(this.b.buffer.slice(a+this.b.byteOffset,a+this.b.byteOffset+c))},compare:function(a){for(var c=this.b,b=a.b,f=0,e=this.lengtha||0>c||a+c>this.length)throw new F(Ii.OutsideBounds);b="";var d=this.b,e=re.fromCharCode,g=a;for(a+=c;gc){if(0==c)break;b+=e(c)}else if(224>c)b+=e((c&63)<<6|d[g++]&127);else if(240>c){var h=d[g++];b+=e((c&31)<<12|(h&127)<<6|d[g++]&127)}else{h=d[g++];var l=d[g++];c=(c&15)<<18|(h&127)<<12|(l&127)<<6|d[g++]&127;b+=e((c>>10)+55232);b+=e(c&1023|56320)}return b},readString:function(a,c){return this.getString(a,c)},toString:function(){return this.getString(0,this.length)}, toHex:function(){for(var a="",c=[],b=0;16>b;){var f=b++;c.push(A.cca("0123456789abcdef",f))}b=0;for(f=this.length;b>4]);a+=String.fromCodePoint(c[e&15])}return a},getData:function(){return this.b.bufferValue},__class__:Sa};var bi=function(){};k["haxe.crypto.Base64"]=bi;bi.__name__="haxe.crypto.Base64";bi.decode=function(a,c){null==c&&(c=!0);if(c)for(;61==A.cca(a,a.length-1);)a=A.substr(a,0,-1);return(new Qk(bi.BYTES)).decodeBytes(Sa.ofString(a))}; var Qk=function(a){for(var c=a.length,b=1;c>1<>h&l]&255}0c;){var b=c++;a[b]=-1}c=0;for(b=this.base.length;c>3,e=new Sa(new ArrayBuffer(f)),g=0,h=0,l=0,t=0;th;){h+=c;g<<=c;var p=b[a.b[l++]];if(-1==p)throw new F("BaseCode : invalid encoded char");g|=p}h-=8;e.b[t++]=g>>h&255}return e},__class__:Qk};var we=function(){};k["haxe.ds.ArraySort"]= we;we.__name__="haxe.ds.ArraySort";we.sort=function(a,c){we.rec(a,c,0,a.length)};we.rec=function(a,c,b,f){var d=b+f>>1;if(12>f-b){if(!(f<=b))for(d=b+1;db;){if(0>c(a[g],a[g-1]))we.swap(a,g-1,g);else break;--g}}else we.rec(a,c,b,d),we.rec(a,c,d,f),we.doMerge(a,c,b,d,f,d-b,f-d)};we.doMerge=function(a,c,b,f,e,g,h){if(0!=g&&0!=h)if(2==g+h)0>c(a[f],a[b])&&we.swap(a,f,b);else{if(g>h){var d=g>>1;var t=b+d;var p=we.lower(a,c,f,e,t);var m=p-f}else m=h>>1,p=f+m,t=we.upper(a,c,b,f,p),d=t- b;we.rotate(a,c,t,f,p);f=t+m;we.doMerge(a,c,b,t,f,d,m);we.doMerge(a,c,f,p,e,g-d,h-m)}};we.rotate=function(a,c,b,f,e){if(b!=f&&f!=e)for(c=we.gcd(e-b,f-b);0!=c--;){for(var d=a[b+c],h=f-b,l=b+c,t=b+c+h;t!=b+c;)a[l]=a[t],l=t,t=e-t>h?t+h:b+(h-(e-t));a[l]=d}};we.gcd=function(a,c){for(;0!=c;){var b=a%c;a=c;c=b}return a};we.upper=function(a,c,b,f,e){f-=b;for(var d,h;0>1,h=b+d,0>c(a[e],a[h])?f=d:(b=h+1,f=f-d-1);return b};we.lower=function(a,c,b,f,e){f-=b;for(var d,h;0>1,h=b+d,0>c(a[h],a[e])? (b=h+1,f=f-d-1):f=d;return b};we.swap=function(a,c,b){var d=a[c];a[c]=a[b];a[b]=d};var Wk=function(){};k["haxe.ds.BalancedTree"]=Wk;Wk.__name__="haxe.ds.BalancedTree";Wk.__interfaces__=[Gb];Wk.prototype={root:null,set:function(a,c){this.root=this.setLoop(a,c,this.root)},get:function(a){for(var c=this.root;null!=c;){var b=this.compare(a,c.key);if(0==b)return c.value;c=0>b?c.left:c.right}return null},remove:function(a){try{return this.root=this.removeLoop(a,this.root),!0}catch(c){ha.lastException=c; if("string"==typeof(c instanceof F?c.val:c))return!1;throw c;}},exists:function(a){for(var c=this.root;null!=c;){var b=this.compare(a,c.key);if(0==b)return!0;c=0>b?c.left:c.right}return!1},iterator:function(){var a=[];this.iteratorLoop(this.root,a);return A.iter(a)},keyValueIterator:function(){return new oh(this)},keys:function(){var a=[];this.keysLoop(this.root,a);return A.iter(a)},setLoop:function(a,c,b){if(null==b)return new vf(null,a,c,null);var d=this.compare(a,b.key);if(0==d)return new vf(b.left, a,c,b.right,null==b?0:b._height);if(0>d)return a=this.setLoop(a,c,b.left),this.balance(a,b.key,b.value,b.right);a=this.setLoop(a,c,b.right);return this.balance(b.left,b.key,b.value,a)},removeLoop:function(a,c){if(null==c)throw new F("Not_found");var b=this.compare(a,c.key);return 0==b?this.merge(c.left,c.right):0>b?this.balance(this.removeLoop(a,c.left),c.key,c.value,c.right):this.balance(c.left,c.key,c.value,this.removeLoop(a,c.right))},iteratorLoop:function(a,c){null!=a&&(this.iteratorLoop(a.left, c),c.push(a.value),this.iteratorLoop(a.right,c))},keysLoop:function(a,c){null!=a&&(this.keysLoop(a.left,c),c.push(a.key),this.keysLoop(a.right,c))},merge:function(a,c){if(null==a)return c;if(null==c)return a;var b=this.minBinding(c);return this.balance(a,b.key,b.value,this.removeMinBinding(c))},minBinding:function(a){if(null==a)throw new F("Not_found");return null==a.left?a:this.minBinding(a.left)},removeMinBinding:function(a){return null==a.left?a.right:this.balance(this.removeMinBinding(a.left), a.key,a.value,a.right)},balance:function(a,c,b,f){var d=null==a?0:a._height,g=null==f?0:f._height;return d>g+2?(d=a.left,g=a.right,(null==d?0:d._height)>=(null==g?0:g._height)?new vf(a.left,a.key,a.value,new vf(a.right,c,b,f)):new vf(new vf(a.left,a.key,a.value,a.right.left),a.right.key,a.right.value,new vf(a.right.right,c,b,f))):g>d+2?(d=f.right,g=f.left,(null==d?0:d._height)>(null==g?0:g._height)?new vf(new vf(a,c,b,f.left),f.key,f.value,f.right):new vf(new vf(a,c,b,f.left.left),f.left.key,f.left.value, new vf(f.left.right,f.key,f.value,f.right))):new vf(a,c,b,f,(d>g?d:g)+1)},compare:function(a,c){return Y.compare(a,c)},__class__:Wk};var vf=function(a,c,b,f,e){null==e&&(e=-1);this.left=a;this.key=c;this.value=b;this.right=f;-1==e?(a=this.left,c=this.right,a=(null==a?0:a._height)>(null==c?0:c._height)?this.left:this.right,a=null==a?0:a._height,this._height=a+1):this._height=e};k["haxe.ds.TreeNode"]=vf;vf.__name__="haxe.ds.TreeNode";vf.prototype={left:null,right:null,key:null,value:null,_height:null, __class__:vf};var yj=function(){};k["haxe.ds.EnumValueMap"]=yj;yj.__name__="haxe.ds.EnumValueMap";yj.__interfaces__=[Gb];yj.__super__=Wk;yj.prototype=r(Wk.prototype,{compare:function(a,c){var b=a._hx_index-c._hx_index;if(0!=b)return b;a=Ua.enumParameters(a);c=Ua.enumParameters(c);return 0==a.length&&0==c.length?0:this.compareArgs(a,c)},compareArgs:function(a,c){var b=a.length-c.length;if(0!=b)return b;b=0;for(var f=a.length;b this.size&&this.grow(a.length);if(0!=this.size){var c=new Uint8Array(a.b.buffer,a.b.byteOffset,a.length);this.u8.set(c,this.pos);this.pos+=a.length}},addBytes:function(a,c,b){if(0>c||0>b||c+b>a.length)throw new F(Ii.OutsideBounds);this.pos+b>this.size&&this.grow(b);0!=this.size&&(a=new Uint8Array(a.b.buffer,a.b.byteOffset+c,b),this.u8.set(a,this.pos),this.pos+=b)},grow:function(a){var c=this.pos+a;for(a=0==this.size?16:this.size;a>1;c=new ArrayBuffer(a);var b=new Uint8Array(c);0c||0>b||c+b>a.length)throw new F(Ii.OutsideBounds);try{for(;0c||0>b||c+b>a.length)throw new F(Ii.OutsideBounds);this.b=a.b;this.pos=c;this.totlen= this.len=b};k["haxe.io.BytesInput"]=Ji;Ji.__name__="haxe.io.BytesInput";Ji.__super__=Nn;Ji.prototype=r(Nn.prototype,{b:null,pos:null,len:null,totlen:null,readByte:function(){if(0==this.len)throw new F(new Yk);this.len--;return this.b[this.pos++]},readBytes:function(a,c,b){if(0>c||0>b||c+b>a.length)throw new F(Ii.OutsideBounds);if(0==this.len&&0=n||65<=n&&90>=n||48<=n&&57>=n||58==n||46==n||95==n||45==n)){if(b==t)throw new F(new xe("Expected node name",a,b));d=pa.createElement(A.substr(a,t,b-t));f.addChild(d);++p;g=0;h=4;continue}break;case 4:switch(n){case 47:g=11;break;case 62:g=9;break;default:g=5;t=b;continue}break;case 5:if(!(97<=n&&122>=n||65<=n&&90>=n||48<=n&&57>=n||58==n||46==n||95==n||45==n)){if(t==b)throw new F(new xe("Expected attribute name", a,b));l=A.substr(a,t,b-t);if(d.exists(l))throw new F(new xe("Duplicate attribute ["+l+"]",a,b));g=0;h=6;continue}break;case 6:if(61==n)g=0,h=7;else throw new F(new xe("Expected =",a,b));break;case 7:switch(n){case 34:case 39:k=new Wc;g=8;t=b+1;u=n;break;default:throw new F(new xe('Expected "',a,b));}break;case 8:switch(n){case 38:q=b-t;k.b+=null==q?A.substr(a,t,null):A.substr(a,t,q);g=18;q=8;t=b+1;break;case 60:case 62:if(c)throw new F(new xe("Invalid unescaped "+String.fromCodePoint(n)+" in attribute value", a,b));n==u&&(h=b-t,k.b+=null==h?A.substr(a,t,null):A.substr(a,t,h),h=k.b,k=new Wc,d.set(l,h),g=0,h=4);break;default:n==u&&(h=b-t,k.b+=null==h?A.substr(a,t,null):A.substr(a,t,h),h=k.b,k=new Wc,d.set(l,h),g=0,h=4)}break;case 9:t=b=Lh.doParse(a,c,b,d);g=1;break;case 10:if(!(97<=n&&122>=n||65<=n&&90>=n||48<=n&&57>=n||58==n||46==n||95==n||45==n)){if(t==b)throw new F(new xe("Expected node name",a,b));h=A.substr(a,t,b-t);if(null==f||0!=f.nodeType)throw new F(new xe("Unexpected , tag is not open", a,b));if(f.nodeType!=pa.Element)throw new F("Bad node type, expected Element but found "+ea.toString(f.nodeType));if(h!=f.nodeName){if(f.nodeType!=pa.Element)throw new F("Bad node type, expected Element but found "+ea.toString(f.nodeType));throw new F(new xe("Expected ",a,b));}g=0;h=12;continue}break;case 11:if(62==n)g=1;else throw new F(new xe("Expected >",a,b));break;case 12:if(62==n)return 0==p&&f.addChild(pa.createPCData("")),b;throw new F(new xe("Expected >",a,b));case 13:60== n?(h=b-t,k.b+=null==h?A.substr(a,t,null):A.substr(a,t,h),h=pa.createPCData(k.b),k=new Wc,f.addChild(h),++p,g=0,h=2):38==n&&(q=b-t,k.b+=null==q?A.substr(a,t,null):A.substr(a,t,q),g=18,q=13,t=b+1);break;case 14:63==n&&62==a.charCodeAt(b+1)&&(++b,n=A.substr(a,t+1,b-t-2),f.addChild(pa.createProcessingInstruction(n)),++p,g=1);break;case 15:45==n&&45==a.charCodeAt(b+1)&&62==a.charCodeAt(b+2)&&(f.addChild(pa.createComment(A.substr(a,t,b-t))),++p,b+=2,g=1);break;case 16:91==n?++m:93==n?--m:62==n&&0==m&&(f.addChild(pa.createDocType(A.substr(a, t,b-t))),++p,g=1);break;case 17:93==n&&93==a.charCodeAt(b+1)&&62==a.charCodeAt(b+2)&&(n=pa.createCData(A.substr(a,t,b-t)),f.addChild(n),++p,b+=2,g=1);break;case 18:if(59==n){t=A.substr(a,t,b-t);if(35==t.charCodeAt(0))t=120==t.charCodeAt(1)?N.parseInt("0"+A.substr(t,1,t.length-1)):N.parseInt(A.substr(t,1,t.length-1)),k.b+=String.fromCodePoint(t);else if(n=Lh.escapes,null!=v[t]?n.existsReserved(t):n.h.hasOwnProperty(t))n=Lh.escapes,t=null!=v[t]?n.getReserved(t):n.h[t],k.b+=N.string(t);else{if(c)throw new F(new xe("Undefined entity: "+ t,a,b));k.b+=N.string("&"+t+";")}t=b+1;g=q}else if(!(97<=n&&122>=n||65<=n&&90>=n||48<=n&&57>=n||58==n||46==n||95==n||45==n)&&35!=n){if(c)throw new F(new xe("Invalid character in entity: "+String.fromCodePoint(n),a,b));k.b+=String.fromCodePoint(38);n=b-t;k.b+=null==n?A.substr(a,t,null):A.substr(a,t,n);--b;t=b+1;g=q}}n=a.charCodeAt(++b)}1==g&&(t=b,g=13);if(13==g){if(0==f.nodeType){if(f.nodeType!=pa.Element)throw new F("Bad node type, expected Element but found "+ea.toString(f.nodeType));throw new F(new xe("Unclosed node <"+ f.nodeName+">",a,b));}if(b!=t||0==p)c=b-t,k.b+=null==c?A.substr(a,t,null):A.substr(a,t,c),f.addChild(pa.createPCData(k.b));return b}if(!c&&18==g&&13==q)return k.b+=String.fromCodePoint(38),c=b-t,k.b+=null==c?A.substr(a,t,null):A.substr(a,t,c),f.addChild(pa.createPCData(k.b)),b;throw new F(new xe("Unexpected end",a,b));};var Ak=function(a){this.output=new Wc;this.pretty=a};k["haxe.xml.Printer"]=Ak;Ak.__name__="haxe.xml.Printer";Ak.print=function(a,c){null==c&&(c=!1);c=new Ak(c);c.writeNode(a,"");return c.output.b}; Ak.prototype={output:null,pretty:null,writeNode:function(a,c){switch(a.nodeType){case 0:this.output.b+=N.string(c+"<");if(a.nodeType!=pa.Element)throw new F("Bad node type, expected Element but found "+ea.toString(a.nodeType));this.output.b+=N.string(a.nodeName);for(var b=a.attributes();b.hasNext();){var f=b.next();this.output.b+=N.string(" "+f+'="');f=aa.htmlEscape(a.get(f),!0);this.output.b+=N.string(f);this.output.b+='"'}if(this.hasChildren(a)){this.output.b+=">";this.pretty&&(this.output.b+="\n"); if(a.nodeType!=pa.Document&&a.nodeType!=pa.Element)throw new F("Bad node type, expected Element or Document but found "+ea.toString(a.nodeType));for(b=A.iter(a.children);b.hasNext();)f=b.next(),this.writeNode(f,this.pretty?c+"\t":c);this.output.b+=N.string(c+""}else this.output.b+="/>";this.pretty&&(this.output.b+="\n");break;case 1:if(a.nodeType== pa.Document||a.nodeType==pa.Element)throw new F("Bad node type, unexpected "+ea.toString(a.nodeType));a=a.nodeValue;0!=a.length&&(c+=aa.htmlEscape(a),this.output.b+=N.string(c),this.pretty&&(this.output.b+="\n"));break;case 2:this.output.b+=N.string(c+"");this.pretty&&(this.output.b+="\n");break;case 5:if(a.nodeType== pa.Document||a.nodeType==pa.Element)throw new F("Bad node type, unexpected "+ea.toString(a.nodeType));this.output.b+=N.string("");this.pretty&&(this.output.b+="\n");break;case 6:if(a.nodeType!=pa.Document&&a.nodeType!=pa.Element)throw new F("Bad node type, expected Element or Document but found "+ea.toString(a.nodeType));for(a=A.iter(a.children);a.hasNext();)b=a.next(),this.writeNode(b,c)}},hasChildren:function(a){if(a.nodeType!=pa.Document&&a.nodeType!=pa.Element)throw new F("Bad node type, expected Element or Document but found "+ ea.toString(a.nodeType));for(a=A.iter(a.children);a.hasNext();){var c=a.next();switch(c.nodeType){case 0:case 1:return!0;case 2:case 3:if(c.nodeType==pa.Document||c.nodeType==pa.Element)throw new F("Bad node type, unexpected "+ea.toString(c.nodeType));if(0!=aa.ltrim(c.nodeValue).length)return!0}}return!1},__class__:Ak};var Wv=B["haxe.zip.ExtraField"]={__ename__:"haxe.zip.ExtraField",__constructs__:["FUnknown","FInfoZipUnicodePath","FUtf8"],FUnknown:(y=function(a,c){return{_hx_index:0,tag:a,bytes:c, __enum__:"haxe.zip.ExtraField",toString:u}},y.__params__=["tag","bytes"],y),FInfoZipUnicodePath:(y=function(a,c){return{_hx_index:1,name:a,crc:c,__enum__:"haxe.zip.ExtraField",toString:u}},y.__params__=["name","crc"],y),FUtf8:{_hx_index:2,__enum__:"haxe.zip.ExtraField",toString:u}},Qn=B["haxe.zip.Huffman"]={__ename__:"haxe.zip.Huffman",__constructs__:["Found","NeedBit","NeedBits"],Found:(y=function(a){return{_hx_index:0,i:a,__enum__:"haxe.zip.Huffman",toString:u}},y.__params__=["i"],y),NeedBit:(y= function(a,c){return{_hx_index:1,left:a,right:c,__enum__:"haxe.zip.Huffman",toString:u}},y.__params__=["left","right"],y),NeedBits:(y=function(a,c){return{_hx_index:2,n:a,table:c,__enum__:"haxe.zip.Huffman",toString:u}},y.__params__=["n","table"],y)},sq=function(){};k["haxe.zip.HuffTools"]=sq;sq.__name__="haxe.zip.HuffTools";sq.prototype={treeDepth:function(a){switch(a._hx_index){case 0:return 0;case 1:var c=a.right;a=this.treeDepth(a.left);c=this.treeDepth(c);return 1+(ac)throw new F("Invalid huffman");var d=b<<5|f;if(a.h.hasOwnProperty(d))return Qn.Found(a.h[d]);b<<=1;++f;return Qn.NeedBit(this.treeMake(a,c,b,f),this.treeMake(a,c,b|1,f))},make:function(a,c,b,f){var d=[],g=[];if(32=f)throw new F("Invalid huffman");d[l]++}h=0;l=1;for(var t=f-1;lc;){var b=c++;a.push(143>=b?8:255>=b?9:279>=b?7:8)}Ue.FIXED_HUFFMAN=this.htools.make(a,0,288,10);return Ue.FIXED_HUFFMAN},readBytes:function(a,c,b){this.needed=b;this.outpos=c;this.output=a;if(0>= a;return c},getBit:function(){0==this.nbits&&(this.nbits=8,this.bits=this.input.readByte());var a=1==(this.bits&1);this.nbits--;this.bits>>=1;return a},getRevBits:function(a){return 0==a?0:this.getBit()?1<c)throw new F("Invalid data");for(;bc)throw new F("Invalid data");break;case 18:b+=11+this.getBits(7);if(b>c)throw new F("Invalid data");break;default:throw new F("Invalid data");}}},inflateLoop:function(){switch(this.state._hx_index){case 0:var a=this.input.readByte();if(8!=(a&15))throw new F("Invalid data");var c=this.input.readByte(),b=0!=(c&32);if(0!=((a<<8)+c)%31)throw new F("Invalid data"); if(b)throw new F("Unsupported dictionary");this.state=Ff.Block;return!0;case 1:switch(this.isFinal=this.getBit(),this.getBits(2)){case 0:this.len=this.input.readUInt16();if(this.input.readUInt16()!=65535-this.len)throw new F("Invalid data");this.state=Ff.Flat;a=this.inflateLoop();this.resetBits();return a;case 1:return this.huffman=this.buildFixedHuffman(),this.huffdist=null,this.state=Ff.CData,!0;case 2:a=this.getBits(5)+257;c=this.getBits(5)+1;b=this.getBits(4)+4;for(var f=0;fb;)f=b++,this.lengths[Ue.CODE_LENGTHS_POS[f]]=0;this.huffman=this.htools.make(this.lengths,0,19,8);b=[];f=0;for(e=a+c;fc)return this.addByte(c),0this.window.available())throw new F("Invalid data");this.state=1==this.dist?Ff.DistOne:Ff.Dist}return!0;case 3:return a=this.len>11&31,b=a>>5&63;a&=31;var f=this.i.readUInt16();return new Date((f>>9)+1980,(f>>5&15)-1,f&31,c,b,a<<1)},readExtraFields:function(a){for(var c=new Pa;0a)throw new F("Invalid extra fields data"); var b=this.i.readUInt16(),f=this.i.readUInt16();if(ag)break}b.data=f.getBytes()}else b.data=this.i.read(b.dataSize);b.crc32=this.i.readInt32();134695760==b.crc32&&(b.crc32=this.i.readInt32());b.dataSize=this.i.readInt32();b.fileSize=this.i.readInt32();b.dataSize=b.fileSize;b.compressed=!1}else b.data=this.i.read(b.dataSize); a.add(b)}return a},__class__:Zk};var Ki=B["hscript.Const"]={__ename__:"hscript.Const",__constructs__:["CInt","CFloat","CString"],CInt:(y=function(a){return{_hx_index:0,v:a,__enum__:"hscript.Const",toString:u}},y.__params__=["v"],y),CFloat:(y=function(a){return{_hx_index:1,f:a,__enum__:"hscript.Const",toString:u}},y.__params__=["f"],y),CString:(y=function(a){return{_hx_index:2,s:a,__enum__:"hscript.Const",toString:u}},y.__params__=["s"],y)},Ya=B["hscript.Expr"]={__ename__:"hscript.Expr",__constructs__:"EConst EIdent EVar EParent EBlock EField EBinop EUnop ECall EIf EWhile EFor EBreak EContinue EFunction EReturn EArray EArrayDecl ENew EThrow ETry EObject ETernary ESwitch EDoWhile EMeta".split(" "), EConst:(y=function(a){return{_hx_index:0,c:a,__enum__:"hscript.Expr",toString:u}},y.__params__=["c"],y),EIdent:(y=function(a){return{_hx_index:1,v:a,__enum__:"hscript.Expr",toString:u}},y.__params__=["v"],y),EVar:(y=function(a,c,b){return{_hx_index:2,n:a,t:c,e:b,__enum__:"hscript.Expr",toString:u}},y.__params__=["n","t","e"],y),EParent:(y=function(a){return{_hx_index:3,e:a,__enum__:"hscript.Expr",toString:u}},y.__params__=["e"],y),EBlock:(y=function(a){return{_hx_index:4,e:a,__enum__:"hscript.Expr", toString:u}},y.__params__=["e"],y),EField:(y=function(a,c){return{_hx_index:5,e:a,f:c,__enum__:"hscript.Expr",toString:u}},y.__params__=["e","f"],y),EBinop:(y=function(a,c,b){return{_hx_index:6,op:a,e1:c,e2:b,__enum__:"hscript.Expr",toString:u}},y.__params__=["op","e1","e2"],y),EUnop:(y=function(a,c,b){return{_hx_index:7,op:a,prefix:c,e:b,__enum__:"hscript.Expr",toString:u}},y.__params__=["op","prefix","e"],y),ECall:(y=function(a,c){return{_hx_index:8,e:a,params:c,__enum__:"hscript.Expr",toString:u}}, y.__params__=["e","params"],y),EIf:(y=function(a,c,b){return{_hx_index:9,cond:a,e1:c,e2:b,__enum__:"hscript.Expr",toString:u}},y.__params__=["cond","e1","e2"],y),EWhile:(y=function(a,c){return{_hx_index:10,cond:a,e:c,__enum__:"hscript.Expr",toString:u}},y.__params__=["cond","e"],y),EFor:(y=function(a,c,b){return{_hx_index:11,v:a,it:c,e:b,__enum__:"hscript.Expr",toString:u}},y.__params__=["v","it","e"],y),EBreak:{_hx_index:12,__enum__:"hscript.Expr",toString:u},EContinue:{_hx_index:13,__enum__:"hscript.Expr", toString:u},EFunction:(y=function(a,c,b,f){return{_hx_index:14,args:a,e:c,name:b,ret:f,__enum__:"hscript.Expr",toString:u}},y.__params__=["args","e","name","ret"],y),EReturn:(y=function(a){return{_hx_index:15,e:a,__enum__:"hscript.Expr",toString:u}},y.__params__=["e"],y),EArray:(y=function(a,c){return{_hx_index:16,e:a,index:c,__enum__:"hscript.Expr",toString:u}},y.__params__=["e","index"],y),EArrayDecl:(y=function(a){return{_hx_index:17,e:a,__enum__:"hscript.Expr",toString:u}},y.__params__=["e"], y),ENew:(y=function(a,c){return{_hx_index:18,cl:a,params:c,__enum__:"hscript.Expr",toString:u}},y.__params__=["cl","params"],y),EThrow:(y=function(a){return{_hx_index:19,e:a,__enum__:"hscript.Expr",toString:u}},y.__params__=["e"],y),ETry:(y=function(a,c,b,f){return{_hx_index:20,e:a,v:c,t:b,ecatch:f,__enum__:"hscript.Expr",toString:u}},y.__params__=["e","v","t","ecatch"],y),EObject:(y=function(a){return{_hx_index:21,fl:a,__enum__:"hscript.Expr",toString:u}},y.__params__=["fl"],y),ETernary:(y=function(a, c,b){return{_hx_index:22,cond:a,e1:c,e2:b,__enum__:"hscript.Expr",toString:u}},y.__params__=["cond","e1","e2"],y),ESwitch:(y=function(a,c,b){return{_hx_index:23,e:a,cases:c,defaultExpr:b,__enum__:"hscript.Expr",toString:u}},y.__params__=["e","cases","defaultExpr"],y),EDoWhile:(y=function(a,c){return{_hx_index:24,cond:a,e:c,__enum__:"hscript.Expr",toString:u}},y.__params__=["cond","e"],y),EMeta:(y=function(a,c,b){return{_hx_index:25,name:a,args:c,e:b,__enum__:"hscript.Expr",toString:u}},y.__params__= ["name","args","e"],y)},Xv=B["hscript.CType"]={__ename__:"hscript.CType",__constructs__:["CTPath","CTFun","CTAnon","CTParent"],CTPath:(y=function(a,c){return{_hx_index:0,path:a,params:c,__enum__:"hscript.CType",toString:u}},y.__params__=["path","params"],y),CTFun:(y=function(a,c){return{_hx_index:1,args:a,ret:c,__enum__:"hscript.CType",toString:u}},y.__params__=["args","ret"],y),CTAnon:(y=function(a){return{_hx_index:2,fields:a,__enum__:"hscript.CType",toString:u}},y.__params__=["fields"],y),CTParent:(y= function(a){return{_hx_index:3,t:a,__enum__:"hscript.CType",toString:u}},y.__params__=["t"],y)},Sf=B["hscript.Error"]={__ename__:"hscript.Error",__constructs__:"EInvalidChar EUnexpected EUnterminatedString EUnterminatedComment EUnknownVariable EInvalidIterator EInvalidOp EInvalidAccess".split(" "),EInvalidChar:(y=function(a){return{_hx_index:0,c:a,__enum__:"hscript.Error",toString:u}},y.__params__=["c"],y),EUnexpected:(y=function(a){return{_hx_index:1,s:a,__enum__:"hscript.Error",toString:u}},y.__params__= ["s"],y),EUnterminatedString:{_hx_index:2,__enum__:"hscript.Error",toString:u},EUnterminatedComment:{_hx_index:3,__enum__:"hscript.Error",toString:u},EUnknownVariable:(y=function(a){return{_hx_index:4,v:a,__enum__:"hscript.Error",toString:u}},y.__params__=["v"],y),EInvalidIterator:(y=function(a){return{_hx_index:5,v:a,__enum__:"hscript.Error",toString:u}},y.__params__=["v"],y),EInvalidOp:(y=function(a){return{_hx_index:6,op:a,__enum__:"hscript.Error",toString:u}},y.__params__=["op"],y),EInvalidAccess:(y= function(a){return{_hx_index:7,f:a,__enum__:"hscript.Error",toString:u}},y.__params__=["f"],y)},zj=B["hscript._Interp.Stop"]={__ename__:"hscript._Interp.Stop",__constructs__:["SBreak","SContinue","SReturn"],SBreak:{_hx_index:0,__enum__:"hscript._Interp.Stop",toString:u},SContinue:{_hx_index:1,__enum__:"hscript._Interp.Stop",toString:u},SReturn:(y=function(a){return{_hx_index:2,v:a,__enum__:"hscript._Interp.Stop",toString:u}},y.__params__=["v"],y)},Rn=function(){var a=this;this.variables=new sa;this.locals= new sa;this.declared=[];var c=this.variables;null!=v["null"]?c.setReserved("null",null):c.h["null"]=null;c=this.variables;null!=v["true"]?c.setReserved("true",!0):c.h["true"]=!0;c=this.variables;null!=v["false"]?c.setReserved("false",!1):c.h["false"]=!1;c=this.variables;var b=function(c){ph.trace(N.string(c),a.posInfos())};null!=v.trace?c.setReserved("trace",b):c.h.trace=b;this.initOps()};k["hscript.Interp"]=Rn;Rn.__name__="hscript.Interp";Rn.prototype={variables:null,locals:null,binops:null,depth:null, inTry:null,declared:null,posInfos:function(){return{fileName:"hscript",lineNumber:0}},initOps:function(){var a=this,c=this.binops=new sa,b=function(c,b){return a.expr(c)+a.expr(b)};null!=v["+"]?c.setReserved("+",b):c.h["+"]=b;c=this.binops;b=function(c,b){return a.expr(c)-a.expr(b)};null!=v["-"]?c.setReserved("-",b):c.h["-"]=b;c=this.binops;b=function(c,b){return a.expr(c)*a.expr(b)};null!=v["*"]?c.setReserved("*",b):c.h["*"]=b;c=this.binops;b=function(c,b){return a.expr(c)/a.expr(b)};null!=v["/"]? c.setReserved("/",b):c.h["/"]=b;c=this.binops;b=function(c,b){return a.expr(c)%a.expr(b)};null!=v["%"]?c.setReserved("%",b):c.h["%"]=b;c=this.binops;b=function(c,b){return a.expr(c)&a.expr(b)};null!=v["&"]?c.setReserved("&",b):c.h["&"]=b;c=this.binops;b=function(c,b){return a.expr(c)|a.expr(b)};null!=v["|"]?c.setReserved("|",b):c.h["|"]=b;c=this.binops;b=function(c,b){return a.expr(c)^a.expr(b)};null!=v["^"]?c.setReserved("^",b):c.h["^"]=b;c=this.binops;b=function(c,b){return a.expr(c)<>a.expr(b)};null!=v[">>"]?c.setReserved(">>",b):c.h[">>"]=b;c=this.binops;b=function(c,b){return a.expr(c)>>>a.expr(b)};null!=v[">>>"]?c.setReserved(">>>",b):c.h[">>>"]=b;c=this.binops;b=function(c,b){return a.expr(c)==a.expr(b)};null!=v["=="]?c.setReserved("==",b):c.h["=="]=b;c=this.binops;b=function(c,b){return a.expr(c)!=a.expr(b)};null!=v["!="]?c.setReserved("!=",b):c.h["!="]=b;c=this.binops;b=function(c, b){return a.expr(c)>=a.expr(b)};null!=v[">="]?c.setReserved(">=",b):c.h[">="]=b;c=this.binops;b=function(c,b){return a.expr(c)<=a.expr(b)};null!=v["<="]?c.setReserved("<=",b):c.h["<="]=b;c=this.binops;b=function(c,b){return a.expr(c)>a.expr(b)};null!=v[">"]?c.setReserved(">",b):c.h[">"]=b;c=this.binops;b=function(c,b){return a.expr(c)>=",function(a,c){return a>>c});this.assignOp(">>>=",function(a,c){return a>>>c})},assign:function(a,c){c=this.expr(c);switch(a._hx_index){case 1:a=a.v;var b=this.locals;b=null!=v[a]?b.getReserved(a):b.h[a];null==b?(b=this.variables,null!=v[a]?b.setReserved(a,c):b.h[a]=c): b.r=c;break;case 5:b=a.f;c=this.set(this.expr(a.e),b,c);break;case 16:b=a.index;a=this.expr(a.e);b=this.expr(b);S.__implements(a,Gb)?S.__cast(a,Gb).set(b,c):a[b]=c;break;default:throw new F(Sf.EInvalidOp("="));}return c},assignOp:function(a,c){var b=this,f=this.binops,e=function(d,f){return b.evalAssignOp(a,c,d,f)};null!=v[a]?f.setReserved(a,e):f.h[a]=e},evalAssignOp:function(a,c,b,f){switch(b._hx_index){case 1:a=b.v;var d=this.locals;d=null!=v[a]?d.getReserved(a):d.h[a];c=c(this.expr(b),this.expr(f)); null==d?(f=this.variables,null!=v[a]?f.setReserved(a,c):f.h[a]=c):d.r=c;break;case 5:a=b.f;b=this.expr(b.e);c=c(this.get(b,a),this.expr(f));c=this.set(b,a,c);break;case 16:a=b.index;b=this.expr(b.e);a=this.expr(a);S.__implements(b,Gb)?(c=c(S.__cast(b,Gb).get(a),this.expr(f)),S.__cast(b,Gb).set(a,c)):(c=c(b[a],this.expr(f)),b[a]=c);break;default:throw new F(Sf.EInvalidOp(a));}return c},increment:function(a,c,b){switch(a._hx_index){case 1:var d=a.v;a=this.locals;var e=null!=v[d]?a.getReserved(d):a.h[d]; null==e?(a=this.variables,a=null!=v[d]?a.getReserved(d):a.h[d]):a=e.r;c?(a+=b,null==e?(b=this.variables,c=a,null!=v[d]?b.setReserved(d,c):b.h[d]=c):e.r=a):null==e?(c=this.variables,b=a+b,null!=v[d]?c.setReserved(d,b):c.h[d]=b):e.r=a+b;return a;case 5:return d=a.f,a=this.expr(a.e),e=this.get(a,d),c?(e+=b,this.set(a,d,e)):this.set(a,d,e+b),e;case 16:e=a.index;d=this.expr(a.e);a=this.expr(e);if(S.__implements(d,Gb))return e=S.__cast(d,Gb).get(a),c?(e+=b,S.__cast(d,Gb).set(a,e)):S.__cast(d,Gb).set(a, e+b),e;e=d[a];c?(e+=b,d[a]=e):d[a]=e+b;return e;default:throw new F(Sf.EInvalidOp(0a;){var c=this.declared.pop(),b=c.n;c=c.old;var f=this.locals;null!=v[b]?f.setReserved(b,c):f.h[b]=c}},edef:function(a){return a},error:function(a){throw new F(a);},resolve:function(a){var c=this.locals;c=null!=v[a]?c.getReserved(a):c.h[a];if(null!=c)return c.r;c=this.variables;c=null!=v[a]?c.getReserved(a):c.h[a];if(null==c){var b=this.variables;b=!(null!=v[a]? b.existsReserved(a):b.h.hasOwnProperty(a))}else b=!1;if(b)throw new F(Sf.EUnknownVariable(a));return c},expr:function(a){var c=this;switch(a._hx_index){case 0:var b=a.c;switch(b._hx_index){case 0:return b.v;case 1:return b.f;case 2:return b.s}break;case 1:return this.resolve(a.v);case 2:var f=a.e,e=a.n,g=this.locals;this.declared.push({n:e,old:null!=v[e]?g.getReserved(e):g.h[e]});var h=this.locals,l={r:null==f?null:this.expr(f)};null!=v[e]?h.setReserved(e,l):h.h[e]=l;return null;case 3:return this.expr(a.e); case 4:for(var t=a.e,p=this.declared.length,m=null,n=0;n"==Wb.op:!1}else ba=!1;if(ba){for(var Ke=!0,la=!0,ka=!0,na=!0,oa=[],qa=[],pa=0;pa"== ma.op){var ja=ma.e2,ra=this.expr(ma.e1),Hd=this.expr(ja);Ke=Ke&&"string"==typeof ra;la=la&&"number"==typeof ra&&(ra|0)===ra;ka=ka&&Y.isObject(ra);na=na&&Y.isEnumValue(ra);oa.push(ra);qa.push(Hd)}else throw new F("=> expected");else throw new F("=> expected");}if(la)var ta=new Xa;else if(Ke)ta=new sa;else if(na)ta=new yj;else if(ka)ta=new ib;else throw new F("Inconsistent key types");for(var wa=0,Ee=oa.length;wa<&|^%~";this.identChars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_";var a=[["%"],["*","/"],["+","-"],["<<",">>",">>>"],["|","&","^"],"== != > < >= <=".split(" "),["..."],["&&"],["||"],"= += -= *= /= %= <<= >>= >>>= |= &= ^= =>".split(" ")];this.opPriority=new sa;this.opRightAssoc=new sa;this.unops=new sa;for(var c=0,b=a.length;c"==f)break a;if(62==A.cca(f,0)){a=this.tokens;a.head=new zc(qb.TOp(A.substr(f,1,null)),a.head);break a}break;case 9:continue}this.unexpected(a)}else f=this.tokens,f.head=new zc(a,f.head);else f=this.tokens,f.head=new zc(a,f.head);return this.parseTypeNext(Xv.CTPath(c,b));case 4:return c=this.parseType(),b=this.token(),b!=qb.TPClose&&this.unexpected(b),this.parseTypeNext(Xv.CTParent(c));case 6:c=[];b=null;a:for(;;)if(a=this.token(),null==a)this.unexpected(a);else switch(a._hx_index){case 2:a= a.s;if("var"==a)a=this.getIdent(),f=this.token(),f!=qb.TDoubleDot&&this.unexpected(f),c.push({name:a,t:this.parseType(),meta:b}),b=null,a=this.token(),a!=qb.TSemicolon&&this.unexpected(a);else if(f=this.token(),f!=qb.TDoubleDot&&this.unexpected(f),c.push({name:a,t:this.parseType(),meta:b}),a=this.token(),null==a)this.unexpected(a);else switch(a._hx_index){case 7:break a;case 9:break;default:this.unexpected(a)}break;case 7:break a;case 15:a=a.s;null==b&&(b=[]);b.push({name:a,params:this.parseMetaArgs()}); break;default:this.unexpected(a)}return this.parseTypeNext(Xv.CTAnon(c));default:return this.unexpected(a)}},parseTypeNext:function(a){var c=this.token();if(null==c){var b=this.tokens;b.head=new zc(c,b.head);return a}if(3==c._hx_index){if("->"!=c.s)return b=this.tokens,b.head=new zc(c,b.head),a}else return b=this.tokens,b.head=new zc(c,b.head),a;c=this.parseType();return 1==c._hx_index?(c.args.unshift(a),c):Xv.CTFun([a],c)},parseExprList:function(a){var c=[],b=this.token();if(b==a)return c;var f= this.tokens;for(f.head=new zc(b,f.head);;)if(c.push(this.parseExpr()),b=this.token(),null==b){if(b==a)break;this.unexpected(b)}else if(9!=b._hx_index){if(b==a)break;this.unexpected(b)}return c},incPos:function(){},readChar:function(){try{return this.input.readByte()}catch(a){return ha.lastException=a,0}},readString:function(a){for(var c=0,b=new On,f=!1,e=this.line,g=this.input;;){try{c=g.readByte()}catch(p){throw ha.lastException=p,this.line=e,new F(Sf.EUnterminatedString);}if(f)switch(f=!1,c){case 34:case 39:case 92:b.writeByte(c); break;case 47:this.allowJSON?b.writeByte(c):this.invalidChar(c);break;case 110:b.writeByte(10);break;case 114:b.writeByte(13);break;case 116:b.writeByte(9);break;case 117:this.allowJSON||this.invalidChar(c);var h=null;try{h=g.readString(4)}catch(p){throw ha.lastException=p,this.line=e,new F(Sf.EUnterminatedString);}var l=0;l<<=4;var t=A.cca(h,0);if(null==t)this.invalidChar(t);else switch(t){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:l+=t-48;break;case 65:case 66:case 67:case 68:case 69:case 70:l+= t-55;break;case 97:case 98:case 99:case 100:case 101:case 102:l+=t-87;break;default:this.invalidChar(t)}l<<=4;t=A.cca(h,1);if(null==t)this.invalidChar(t);else switch(t){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:l+=t-48;break;case 65:case 66:case 67:case 68:case 69:case 70:l+=t-55;break;case 97:case 98:case 99:case 100:case 101:case 102:l+=t-87;break;default:this.invalidChar(t)}l<<=4;t=A.cca(h,2);if(null==t)this.invalidChar(t);else switch(t){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:l+= t-48;break;case 65:case 66:case 67:case 68:case 69:case 70:l+=t-55;break;case 97:case 98:case 99:case 100:case 101:case 102:l+=t-87;break;default:this.invalidChar(t)}l<<=4;h=A.cca(h,3);if(null==h)this.invalidChar(h);else switch(h){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:l+=h-48;break;case 65:case 66:case 67:case 68:case 69:case 70:l+=h-55;break;case 97:case 98:case 99:case 100:case 101:case 102:l+=h-87;break;default:this.invalidChar(h)}127>=l?b.writeByte(l): (2047>=l?b.writeByte(192|l>>6):(b.writeByte(224|l>>12),b.writeByte(128|l>>6&63)),b.writeByte(128|l&63));break;default:this.invalidChar(c)}else if(92==c)f=!0;else if(c==a)break;else 10==c&&this.line++,b.writeByte(c)}return b.getBytes().toString()},token:function(){if(null!=this.tokens.head){var a=this.tokens,c=a.head;if(null==c)return null;a.head=c.next;return c.elt}0>this.char?a=this.readChar():(a=this.char,this.char=-1);for(;;){switch(a){case 0:return qb.TEof;case 10:this.line++;break;case 9:case 13:case 32:break; case 34:return qb.TConst(Ki.CString(this.readString(34)));case 39:return qb.TConst(Ki.CString(this.readString(39)));case 40:return qb.TPOpen;case 41:return qb.TPClose;case 44:return qb.TComma;case 46:switch(a=this.readChar(),a){case 46:return a=this.readChar(),46!=a&&this.invalidChar(a),qb.TOp("...");case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:c=a-48;for(var b=1;;)switch(a=this.readChar(),b*=10,a){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:c= 10*c+(a-48);break;default:return this.char=a,qb.TConst(Ki.CFloat(c/b))}default:return this.char=a,qb.TDot}case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:for(c=1*(a-48),b=0;;)switch(a=this.readChar(),b*=10,a){case 46:if(0");this.char=a;return qb.TOp("=");case 63:return qb.TQuestion;case 64:a=this.readChar();if(this.idents[a]||58==a)for(c=String.fromCodePoint(a);;){a=this.readChar();if(!this.idents[a])return this.char=a,qb.TMeta(c);c+=String.fromCodePoint(a)}this.invalidChar(a);break;case 91:return qb.TBkOpen;case 93:return qb.TBkClose;case 123:return qb.TBrOpen;case 125:return qb.TBrClose;default:if(this.ops[a])for(c= String.fromCodePoint(a),b=-1;;){a=this.readChar();if(!this.ops[a]||61==b){if(47==A.cca(c,0))return this.tokenComment(c,a);this.char=a;return qb.TOp(c)}b=a;c+=String.fromCodePoint(a)}if(this.idents[a])for(c=String.fromCodePoint(a);;){a=this.readChar();if(!this.idents[a])return this.char=a,qb.TId(c);c+=String.fromCodePoint(a)}this.invalidChar(a)}a=this.readChar()}},tokenComment:function(a,c){var b=A.cca(a,1),f=this.input;if(47==b){try{for(;13!=c&&10!=c;)c=f.readByte();this.char=c}catch(e){ha.lastException= e}return this.token()}if(42==b){b=this.line;if("/**/"==a)return this.char=c,this.token();try{for(;;){for(;42!=c;)10==c&&this.line++,c=f.readByte();c=f.readByte();if(47==c)break}}catch(e){throw ha.lastException=e,this.line=b,new F(Sf.EUnterminatedComment);}return this.token()}this.char=c;return qb.TOp(a)},constString:function(a){switch(a._hx_index){case 0:return a=a.v,null==a?"null":""+a;case 1:return a=a.f,null==a?"null":""+a;case 2:return a.s}},tokenString:function(a){switch(a._hx_index){case 0:return""; case 1:return this.constString(a.c);case 2:return a.s;case 3:return a.s;case 4:return"(";case 5:return")";case 6:return"{";case 7:return"}";case 8:return".";case 9:return",";case 10:return";";case 11:return"[";case 12:return"]";case 13:return"?";case 14:return":";case 15:return"@"+a.s}},__class__:di};var F=function(a){Error.call(this);this.val=a;Error.captureStackTrace&&Error.captureStackTrace(this,F)};k["js._Boot.HaxeError"]=F;F.__name__="js._Boot.HaxeError";F.wrap=function(a){return a instanceof Error?a:new F(a)};F.__super__=Error;F.prototype=r(Error.prototype,{val:null,__class__:F});var S=function(){};k["js.Boot"]=S;S.__name__="js.Boot";S.getClass=function(a){if(null==a)return null;if(a instanceof Array)return Array;var c=a.__class__;if(null!=c)return c;a=S.__nativeClassName(a);return null!=a?S.__resolveNativeClass(a):null};S.__string_rec=function(a,c){if(null==a)return"null";if(5<=c.length)return"<...>";var b=typeof a;"function"==b&&(a.__name__||a.__ename__)&&(b="object");switch(b){case "function":return""; case "object":if(a.__enum__){var f=B[a.__enum__];b=f.__constructs__[a._hx_index];var e=f[b];if(e.__params__){c+="\t";f=[];var g=0;for(e=e.__params__;g=a)return a+32;switch(a){case 12:return 1073741980;case 16:return 1073742049;case 17:return 1073742048;case 18:return 1073742050;case 19:return 1073741896;case 20:return 1073741881;case 33:return 1073741899;case 34:return 1073741902;case 35:return 1073741901;case 36:return 1073741898;case 37:return 1073741904;case 38:return 1073741906;case 39:return 1073741903; case 40:return 1073741905;case 41:return 1073741943;case 43:return 1073741940;case 44:return 1073741894;case 45:return 1073741897;case 46:return 127;case 91:return 1073742051;case 92:return 1073742055;case 93:return 1073742055;case 95:return 1073742106;case 96:return 1073741922;case 97:return 1073741913;case 98:return 1073741914;case 99:return 1073741915;case 100:return 1073741916;case 101:return 1073741917;case 102:return 1073741918;case 103:return 1073741919;case 104:return 1073741920;case 105:return 1073741921; case 106:return 1073741909;case 107:return 1073741911;case 108:return 1073741923;case 109:return 1073741910;case 110:return 1073741923;case 111:return 1073741908;case 112:return 1073741882;case 113:return 1073741883;case 114:return 1073741884;case 115:return 1073741885;case 116:return 1073741886;case 117:return 1073741887;case 118:return 1073741888;case 119:return 1073741889;case 120:return 1073741890;case 121:return 1073741891;case 122:return 1073741892;case 123:return 1073741893;case 124:return 1073741928; case 125:return 1073741929;case 126:return 1073741930;case 127:return 1073741931;case 128:return 1073741932;case 129:return 1073741933;case 130:return 1073741934;case 131:return 1073741935;case 132:return 1073741936;case 133:return 1073741937;case 134:return 1073741938;case 135:return 1073741939;case 144:return 1073741907;case 145:return 1073741895;case 160:return 94;case 161:return 33;case 163:return 35;case 164:return 36;case 166:return 1073742094;case 167:return 1073742095;case 168:return 1073742097; case 169:return 41;case 170:return 42;case 171:return 96;case 172:return 1073741898;case 173:return 45;case 174:return 1073741953;case 175:return 1073741952;case 176:return 1073742082;case 177:return 1073742083;case 178:return 1073742084;case 179:return 1073742085;case 180:return 1073742089;case 181:return 1073742086;case 182:return 1073741953;case 183:return 1073741952;case 186:return 59;case 187:return 61;case 188:return 44;case 189:return 45;case 190:return 46;case 191:return 47;case 192:return 96; case 193:return 63;case 194:return 1073741923;case 219:return 91;case 220:return 92;case 221:return 93;case 222:return 39;case 223:return 96;case 224:return 1073742051;case 226:return 92}return a},exec:function(){window.addEventListener("keydown",x(this,this.handleKeyEvent),!1);window.addEventListener("keyup",x(this,this.handleKeyEvent),!1);window.addEventListener("focus",x(this,this.handleWindowEvent),!1);window.addEventListener("blur",x(this,this.handleWindowEvent),!1);window.addEventListener("resize", x(this,this.handleWindowEvent),!1);window.addEventListener("beforeunload",x(this,this.handleWindowEvent),!1);window.addEventListener("devicemotion",x(this,this.handleSensorEvent),!1);CanvasRenderingContext2D.prototype.isPointInStroke||(CanvasRenderingContext2D.prototype.isPointInStroke=function(a,c,b){return!1});CanvasRenderingContext2D.prototype.isPointInPath||(CanvasRenderingContext2D.prototype.isPointInPath=function(a,c,b){return!1});0=="performance"in window&&(window.performance={});if(0=="now"in window.performance){var a=Date.now();performance.timing&&performance.timing.navigationStart&&(a=performance.timing.navigationStart);window.performance.now=function(){return Date.now()-a}}for(var c=0,b=["ms","moz","webkit","o"],f=0;f=this.nextUpdate){this.deltaTime=this.currentUpdate-this.lastUpdate;a=0;for(c=this.parent.__windows;athis.framePeriod?this.currentUpdate:this.currentUpdate-this.currentUpdate%this.framePeriod+this.framePeriod;this.lastUpdate=this.currentUpdate}window.requestAnimationFrame(x(this,this.handleApplicationEvent))}, handleKeyEvent:function(a){if(null!=this.parent.__window){var c=this.convertKeyCode(null!=a.keyCode?a.keyCode:a.which),b=(a.shiftKey?3:0)|(a.ctrlKey?192:0)|(a.altKey?768:0)|(a.metaKey?3072:0);"keydown"==a.type?(this.parent.__window.onKeyDown.dispatch(c,b),this.parent.__window.onKeyDown.canceled&&a.cancelable&&a.preventDefault()):(this.parent.__window.onKeyUp.dispatch(c,b),this.parent.__window.onKeyUp.canceled&&a.cancelable&&a.preventDefault())}},handleSensorEvent:function(a){this.accelerometer.onUpdate.dispatch(a.accelerationIncludingGravity.x, a.accelerationIncludingGravity.y,a.accelerationIncludingGravity.z)},handleWindowEvent:function(a){if(null!=this.parent.__window)switch(a.type){case "blur":this.parent.__window.onFocusOut.dispatch();this.parent.__window.onDeactivate.dispatch();break;case "focus":this.parent.__window.onFocusIn.dispatch();this.parent.__window.onActivate.dispatch();break;case "resize":this.parent.__window.__backend.handleResizeEvent(a)}},updateGameDevices:function(){var a=ad.__getDeviceData();if(null!=a)for(var c,b,f, e,g,h=0,l=a.length;ha?0:a}return 0},setCurrentTime:function(a){if(null!=this.parent.buffer&&null!=this.parent.buffer.__srcHowl){var c=(a+this.parent.offset)/ 1E3;0>c&&(c=0);this.parent.buffer.__srcHowl.seek(c,this.id)}return a},getGain:function(){return this.gain},setGain:function(a){null!=this.parent.buffer&&null!=this.parent.buffer.__srcHowl&&-1!=this.id&&this.parent.buffer.__srcHowl.volume(a,this.id);return this.gain=a},getLength:function(){return 0!=this.length?this.length:null!=this.parent.buffer&&null!=this.parent.buffer.__srcHowl?1E3*this.parent.buffer.__srcHowl.duration()|0:0},setLength:function(a){return this.length=a},getLoops:function(){return this.loops}, setLoops:function(a){return this.loops=a},getPosition:function(){return this.position},setPosition:function(a){this.position.x=a.x;this.position.y=a.y;this.position.z=a.z;this.position.w=a.w;null!=this.parent.buffer.__srcHowl&&null!=this.parent.buffer.__srcHowl.pos&&this.parent.buffer.__srcHowl.pos(this.position.x,this.position.y,this.position.z,this.id);return this.position},__class__:wq};var gb=function(){this.validStatus0=(new Wa("Tizen","gi")).match(window.navigator.userAgent)};k["lime._internal.backend.html5.HTML5HTTPRequest"]= gb;gb.__name__="lime._internal.backend.html5.HTML5HTTPRequest";gb.loadImage=function(a){var c=new Rd;gb.activeRequestsb.request.status||b.validStatus0&&0==b.request.status)?(a=null,""==b.request.responseType?null!=b.request.responseText&&(a=Sa.ofString(b.request.responseText)):null!=b.request.response&&(a=Sa.ofData(b.request.response)),b.processResponse(),c.complete(a)):(b.processResponse(),c.error(b.request.status)),b.request=null,gb.activeRequests--,gb.processQueue())})},__loadText:function(a,c){var b=this;this.binary=!1;this.load(a,function(a){c.progress(a.loaded, a.total)},function(a){4==b.request.readyState&&(null!=b.request.status&&(200<=b.request.status&&400>=b.request.status||b.validStatus0&&0==b.request.status)?(b.processResponse(),c.complete(b.request.responseText)):(b.processResponse(),c.error(b.request.status)),b.request=null,gb.activeRequests--,gb.processQueue())})},__class__:gb};var Ib=function(a){this.unusedTouchesPool=new Pa;this.scale=1;this.currentTouches=new Xa;this.parent=a;this.cursor=Fd.DEFAULT;this.cacheMouseY=this.cacheMouseX=0;var c=a.__attributes; Object.prototype.hasOwnProperty.call(c,"context")||(c.context={});this.renderType=c.context.type;Object.prototype.hasOwnProperty.call(c,"element")&&(a.element=c.element);var b=a.element;Object.prototype.hasOwnProperty.call(c,"allowHighDPI")&&c.allowHighDPI&&"dom"!=this.renderType&&(this.scale=window.devicePixelRatio);a.__scale=this.scale;this.setWidth=Object.prototype.hasOwnProperty.call(c,"width")?c.width:0;this.setHeight=Object.prototype.hasOwnProperty.call(c,"height")?c.height:0;a.__width=this.setWidth; a.__height=this.setHeight;a.id=Ib.windowID++;b instanceof HTMLCanvasElement?this.canvas=b:"dom"==this.renderType?this.div=window.document.createElement("div"):this.canvas=window.document.createElement("canvas");if(null!=this.canvas){var f=this.canvas.style;f.setProperty("-webkit-transform","translateZ(0)",null);f.setProperty("transform","translateZ(0)",null)}else null!=this.div&&(f=this.div.style,f.setProperty("-webkit-transform","translate3D(0,0,0)",null),f.setProperty("transform","translate3D(0,0,0)", null),f.position="relative",f.overflow="hidden",f.setProperty("-webkit-user-select","none",null),f.setProperty("-moz-user-select","none",null),f.setProperty("-ms-user-select","none",null),f.setProperty("-o-user-select","none",null));0==a.__width&&0==a.__height&&(null!=b?(a.__width=b.clientWidth,a.__height=b.clientHeight):(a.__width=window.innerWidth,a.__height=window.innerHeight),this.cacheElementWidth=a.__width,this.cacheElementHeight=a.__height,this.resizeElement=!0);null!=this.canvas?(this.canvas.width= Math.round(a.__width*this.scale),this.canvas.height=Math.round(a.__height*this.scale),this.canvas.style.width=a.__width+"px",this.canvas.style.height=a.__height+"px"):(this.div.style.width=a.__width+"px",this.div.style.height=a.__height+"px");if(Object.prototype.hasOwnProperty.call(c,"resizable")&&c.resizable||!Object.prototype.hasOwnProperty.call(c,"width")&&0==this.setWidth&&0==this.setHeight)a.__resizable=!0;this.updateSize();if(null!=b){null!=this.canvas?b!=this.canvas&&b.appendChild(this.canvas): b.appendChild(this.div);c="mousedown mouseenter mouseleave mousemove mouseup wheel".split(" ");for(f=0;fthis.parent.application.__backend.framePeriod?60:1E3==this.parent.application.__backend.framePeriod?0:1E3/this.parent.application.__backend.framePeriod},getMouseLock:function(){return!1},getTextInputEnabled:function(){return this.textInputEnabled},handleContextEvent:function(a){switch(a.type){case "webglcontextlost":a.cancelable&& a.preventDefault();this.parent.context=null;this.parent.onRenderContextLost.dispatch();break;case "webglcontextrestored":this.createContext(),this.parent.onRenderContextRestored.dispatch(this.parent.context)}},handleContextMenuEvent:function(a){(this.parent.onMouseUp.canceled||this.parent.onMouseDown.canceled)&&a.cancelable&&a.preventDefault()},handleCutOrCopyEvent:function(a){a.clipboardData.setData("text/plain",ye.get_text());a.cancelable&&a.preventDefault()},handleDragEvent:function(a){switch(a.type){case "dragover":return a.preventDefault(), !1;case "dragstart":if("img"==S.__cast(a.target,HTMLElement).nodeName.toLowerCase()&&a.cancelable)return a.preventDefault(),!1;break;case "drop":if(null!=a.dataTransfer&&0b;)b++,g.b[h++]=0;b=a.getPixels(new he(0,0,a.width,a.height),1);if(null!=c)switch(c._hx_index){case 0:var l=0;for(var t=a.height;l>12&4095],c[t+1]=f[p&4095],l+=3,t+=2;switch(e-3*g){case 1:p=a.b[l]<<16;c[t]=f[p>>12&4095];c[t+1]="==";break;case 2:p=a.b[l]<<16|a.b[l+1]<<8,c[t]=f[p>>12&4095],c[t+1]=b[p>>6&63]+"="}return c.join("")};var Un=function(){};k["lime._internal.format.Deflate"]=Un;Un.__name__="lime._internal.format.Deflate";Un.compress=function(a){a=pako.deflateRaw(a.b.bufferValue);return Sa.ofData(a)};Un.decompress=function(a){a= pako.inflateRaw(a.b.bufferValue);return Sa.ofData(a)};var Vn=function(){};k["lime._internal.format.GZip"]=Vn;Vn.__name__="lime._internal.format.GZip";Vn.compress=function(a){a=pako.gzip(a.b.bufferValue);return Sa.ofData(a)};Vn.decompress=function(a){a=pako.ungzip(a.b.bufferValue);return Sa.ofData(a)};var Wn=function(){};k["lime._internal.format.JPEG"]=Wn;Wn.__name__="lime._internal.format.JPEG";Wn.decodeBytes=function(a,c){return null};Wn.decodeFile=function(a,c){return null};Wn.encode=function(a, c){if(a.get_premultiplied()||0!=a.get_format())a=a.clone(),a.set_premultiplied(!1),a.set_format(0);ua.convertToCanvas(a,!1);if(null!=a.buffer.__srcCanvas){a=a.buffer.__srcCanvas.toDataURL("image/jpeg",c/100);a=window.atob(a.split(";base64,")[1]);c=new Sa(new ArrayBuffer(a.length));for(var b=0,f=a.length;b=a.width||f.y>=a.height||null==b||1>b.width||1>b.height||(null!=e&&e.get_transparent()&&(null==g&&(g=new zd),c=c.clone(),c.copyChannel(e,new he(b.x+g.x,b.y+ g.y,b.width,b.height),new zd(b.x,b.y),wf.ALPHA,wf.ALPHA)),ua.convertToCanvas(a,!0),h||a.get_transparent()&&c.get_transparent()&&a.buffer.__srcContext.clearRect(f.x+a.offsetX,f.y+a.offsetY,b.width+a.offsetX,b.height+a.offsetY),ua.convertToCanvas(c),null!=c.buffer.get_src()&&(a.buffer.__srcContext.globalCompositeOperation="source-over",a.buffer.__srcContext.drawImage(c.buffer.get_src(),b.x+c.offsetX|0,b.y+c.offsetY|0,b.width|0,b.height|0,f.x+a.offsetX|0,f.y+a.offsetY|0,b.width|0,b.height|0)),a.dirty= !0,a.version++)};ua.createCanvas=function(a,c,b){var d=a.buffer;null==d.__srcCanvas&&(d.__srcCanvas=window.document.createElement("canvas"),d.__srcCanvas.width=c,d.__srcCanvas.height=b,a.get_transparent()?d.__srcContext=d.__srcCanvas.getContext("2d"):(a.get_transparent()||d.__srcCanvas.setAttribute("moz-opaque","true"),d.__srcContext=d.__srcCanvas.getContext("2d",{alpha:!1})))};ua.createImageData=function(a){a=a.buffer;if(null==a.__srcImageData){null==a.data?a.__srcImageData=a.__srcContext.getImageData(0, 0,a.width,a.height):(a.__srcImageData=a.__srcContext.createImageData(a.width,a.height),a.__srcImageData.data.set(a.data));var c=a.__srcImageData.data.buffer;c=null!=c?new Uint8Array(c):null;a.data=c}};ua.fillRect=function(a,c,b,f){ua.convertToCanvas(a);if(1==f){f=b>>16&255;var d=b>>8&255;var g=b&255;b=a.get_transparent()?b>>24&255:255}else f=b>>24&255,d=b>>16&255,g=b>>8&255,b=a.get_transparent()?b&255:255;0==c.x&&0==c.y&&c.width==a.width&&c.height==a.height&&a.get_transparent()&&0==b?a.buffer.__srcCanvas.width= a.buffer.width:(255>b&&a.buffer.__srcContext.clearRect(c.x+a.offsetX,c.y+a.offsetY,c.width+a.offsetX,c.height+a.offsetY),0>>24&255)*J.unmult)]&255)<<24|(J.__clamp[Math.round((D>>>16&255)*J.unmult)]&255)<<16|(J.__clamp[Math.round((D>>>8&255)*J.unmult)]&255)<<8|D&255);x=c.byteOffset+c.stride*(L-P)+4*(M-B+1);I=k;E=v;null==E&&(E=!1);null==I&&(I=0);switch(I){case 0:A=(p[x]&255)<<24|(p[x+1]&255)<<16|(p[x+2]&255)<<8|p[x+3]&255;break;case 1:A=(p[x+1]&255)<<24|(p[x+2]&255)<<16|(p[x+3]&255)<<8|p[x]&255;break;case 2:A=(p[x+2]&255)<<24|(p[x+1]&255)<<16|(p[x]&255)<<8|p[x+ 3]&255}E&&0!=(A&255)&&255!=(A&255)&&(J.unmult=255/(A&255),A=(J.__clamp[Math.round((A>>>24&255)*J.unmult)]&255)<<24|(J.__clamp[Math.round((A>>>16&255)*J.unmult)]&255)<<16|(J.__clamp[Math.round((A>>>8&255)*J.unmult)]&255)<<8|A&255);x=c.byteOffset+c.stride*(L-P+1)+4*(M-B+1);I=k;E=v;null==E&&(E=!1);null==I&&(I=0);switch(I){case 0:C=(p[x]&255)<<24|(p[x+1]&255)<<16|(p[x+2]&255)<<8|p[x+3]&255;break;case 1:C=(p[x+1]&255)<<24|(p[x+2]&255)<<16|(p[x+3]&255)<<8|p[x]&255;break;case 2:C=(p[x+2]&255)<<24|(p[x+1]& 255)<<16|(p[x]&255)<<8|p[x+3]&255}E&&0!=(C&255)&&255!=(C&255)&&(J.unmult=255/(C&255),C=(J.__clamp[Math.round((C>>>24&255)*J.unmult)]&255)<<24|(J.__clamp[Math.round((C>>>16&255)*J.unmult)]&255)<<16|(J.__clamp[Math.round((C>>>8&255)*J.unmult)]&255)<<8|C&255);x=c.byteOffset+c.stride*(L-P)+4*(M-B);I=k;E=v;null==E&&(E=!1);null==I&&(I=0);switch(I){case 0:F=(p[x]&255)<<24|(p[x+1]&255)<<16|(p[x+2]&255)<<8|p[x+3]&255;break;case 1:F=(p[x+1]&255)<<24|(p[x+2]&255)<<16|(p[x+3]&255)<<8|p[x]&255;break;case 2:F= (p[x+2]&255)<<24|(p[x+1]&255)<<16|(p[x]&255)<<8|p[x+3]&255}E&&0!=(F&255)&&255!=(F&255)&&(J.unmult=255/(F&255),F=(J.__clamp[Math.round((F>>>24&255)*J.unmult)]&255)<<24|(J.__clamp[Math.round((F>>>16&255)*J.unmult)]&255)<<16|(J.__clamp[Math.round((F>>>8&255)*J.unmult)]&255)<<8|F&255);x=Za.bilinear(D,A,C,F,f.x-B,f.y-P)}else{B=b.byteOffset+b.stride*(L-P)+4*(M-B);P=k;I=v;null==I&&(I=!1);null==P&&(P=0);switch(P){case 0:x=(p[B]&255)<<24|(p[B+1]&255)<<16|(p[B+2]&255)<<8|p[B+3]&255;break;case 1:x=(p[B+1]&255)<< 24|(p[B+2]&255)<<16|(p[B+3]&255)<<8|p[B]&255;break;case 2:x=(p[B+2]&255)<<24|(p[B+1]&255)<<16|(p[B]&255)<<8|p[B+3]&255}I&&0!=(x&255)&&255!=(x&255)&&(J.unmult=255/(x&255),x=(J.__clamp[Math.round((x>>>24&255)*J.unmult)]&255)<<24|(J.__clamp[Math.round((x>>>16&255)*J.unmult)]&255)<<16|(J.__clamp[Math.round((x>>>8&255)*J.unmult)]&255)<<8|x&255)}B=(x&255)/255;P=((x>>>24&255)-128)/255*B;I=((x>>>16&255)-128)/255*B;B=P*e.x+I*g.x;E=P*e.y+I*g.y;P=Math.floor(B*c.width);I=Math.floor(E*c.height);if(h){y=c.byteOffset+ c.stride*(L+I+1)+4*(M+P);var O=n,Q=u;null==Q&&(Q=!1);null==O&&(O=0);switch(O){case 0:D=(t[y]&255)<<24|(t[y+1]&255)<<16|(t[y+2]&255)<<8|t[y+3]&255;break;case 1:D=(t[y+1]&255)<<24|(t[y+2]&255)<<16|(t[y+3]&255)<<8|t[y]&255;break;case 2:D=(t[y+2]&255)<<24|(t[y+1]&255)<<16|(t[y]&255)<<8|t[y+3]&255}Q&&0!=(D&255)&&255!=(D&255)&&(J.unmult=255/(D&255),D=(J.__clamp[Math.round((D>>>24&255)*J.unmult)]&255)<<24|(J.__clamp[Math.round((D>>>16&255)*J.unmult)]&255)<<16|(J.__clamp[Math.round((D>>>8&255)*J.unmult)]& 255)<<8|D&255);y=c.byteOffset+c.stride*(L+I)+4*(M+P+1);O=n;Q=u;null==Q&&(Q=!1);null==O&&(O=0);switch(O){case 0:A=(t[y]&255)<<24|(t[y+1]&255)<<16|(t[y+2]&255)<<8|t[y+3]&255;break;case 1:A=(t[y+1]&255)<<24|(t[y+2]&255)<<16|(t[y+3]&255)<<8|t[y]&255;break;case 2:A=(t[y+2]&255)<<24|(t[y+1]&255)<<16|(t[y]&255)<<8|t[y+3]&255}Q&&0!=(A&255)&&255!=(A&255)&&(J.unmult=255/(A&255),A=(J.__clamp[Math.round((A>>>24&255)*J.unmult)]&255)<<24|(J.__clamp[Math.round((A>>>16&255)*J.unmult)]&255)<<16|(J.__clamp[Math.round((A>>> 8&255)*J.unmult)]&255)<<8|A&255);y=c.byteOffset+c.stride*(L+I+1)+4*(M+P+1);O=n;Q=u;null==Q&&(Q=!1);null==O&&(O=0);switch(O){case 0:C=(t[y]&255)<<24|(t[y+1]&255)<<16|(t[y+2]&255)<<8|t[y+3]&255;break;case 1:C=(t[y+1]&255)<<24|(t[y+2]&255)<<16|(t[y+3]&255)<<8|t[y]&255;break;case 2:C=(t[y+2]&255)<<24|(t[y+1]&255)<<16|(t[y]&255)<<8|t[y+3]&255}Q&&0!=(C&255)&&255!=(C&255)&&(J.unmult=255/(C&255),C=(J.__clamp[Math.round((C>>>24&255)*J.unmult)]&255)<<24|(J.__clamp[Math.round((C>>>16&255)*J.unmult)]&255)<<16| (J.__clamp[Math.round((C>>>8&255)*J.unmult)]&255)<<8|C&255);M=c.byteOffset+c.stride*(L+I)+4*(M+P);y=n;O=u;null==O&&(O=!1);null==y&&(y=0);switch(y){case 0:F=(t[M]&255)<<24|(t[M+1]&255)<<16|(t[M+2]&255)<<8|t[M+3]&255;break;case 1:F=(t[M+1]&255)<<24|(t[M+2]&255)<<16|(t[M+3]&255)<<8|t[M]&255;break;case 2:F=(t[M+2]&255)<<24|(t[M+1]&255)<<16|(t[M]&255)<<8|t[M+3]&255}O&&0!=(F&255)&&255!=(F&255)&&(J.unmult=255/(F&255),F=(J.__clamp[Math.round((F>>>24&255)*J.unmult)]&255)<<24|(J.__clamp[Math.round((F>>>16& 255)*J.unmult)]&255)<<16|(J.__clamp[Math.round((F>>>8&255)*J.unmult)]&255)<<8|F&255);y=Za.bilinear(D,A,C,F,B*c.width-P,E*c.height-I)}else{M=c.byteOffset+c.stride*(L+I)+4*(M+P);B=n;P=u;null==P&&(P=!1);null==B&&(B=0);switch(B){case 0:y=(t[M]&255)<<24|(t[M+1]&255)<<16|(t[M+2]&255)<<8|t[M+3]&255;break;case 1:y=(t[M+1]&255)<<24|(t[M+2]&255)<<16|(t[M+3]&255)<<8|t[M]&255;break;case 2:y=(t[M+2]&255)<<24|(t[M+1]&255)<<16|(t[M]&255)<<8|t[M+3]&255}P&&0!=(y&255)&&255!=(y&255)&&(J.unmult=255/(y&255),y=(J.__clamp[Math.round((y>>> 24&255)*J.unmult)]&255)<<24|(J.__clamp[Math.round((y>>>16&255)*J.unmult)]&255)<<16|(J.__clamp[Math.round((y>>>8&255)*J.unmult)]&255)<<8|y&255)}M=m;B=q;null==B&&(B=!1);null==M&&(M=0);B&&(0==(y&255)?0!=y&&(y=0):255!=(y&255)&&(J.a16=J.__alpha16[y&255],y=((y>>>24&255)*J.a16>>16&255)<<24|((y>>>16&255)*J.a16>>16&255)<<16|((y>>>8&255)*J.a16>>16&255)<<8|y&255));switch(M){case 0:d[r]=y>>>24&255;d[r+1]=y>>>16&255;d[r+2]=y>>>8&255;d[r+3]=y&255;break;case 1:d[r]=y&255;d[r+1]=y>>>24&255;d[r+2]=y>>>16&255;d[r+ 3]=y>>>8&255;break;case 2:d[r]=y>>>8&255,d[r+1]=y>>>16&255,d[r+2]=y>>>24&255,d[r+3]=y&255}}}a.dirty=!0;a.version++};Za.bilinear=function(a,c,b,f,e,g){return Za.lerpRGBA(Za.lerpRGBA(f,c,e),Za.lerpRGBA(a,b,e),g)};Za.lerpRGBA=function(a,c,b){var d=0;d=(Math.floor(Za.lerp(a>>>24&255,c>>>24&255,b))&255)<<24|(d>>>16&255)<<16|(d>>>8&255)<<8|d&255;var e=Math.floor(Za.lerp(a>>>16&255,c>>>16&255,b));d=(d>>>24&255)<<24|(e&255)<<16|(d>>>8&255)<<8|d&255;e=Math.floor(Za.lerp(a>>>8&255,c>>>8&255,b));d=(d>>>24&255)<< 24|(d>>>16&255)<<16|(e&255)<<8|d&255;a=Math.floor(Za.lerp(a&255,c&255,b));return(d>>>24&255)<<24|(d>>>16&255)<<16|(d>>>8&255)<<8|a&255};Za.lerp4f=function(a,c,b){return new Gc(Za.lerp(a.x,c.x,b),Za.lerp(a.y,c.y,b),Za.lerp(a.z,c.z,b),Za.lerp(a.w,c.w,b))};Za.lerp=function(a,c,b){return(1-b)*a+b*c};Za.colorTransform=function(a,c,b){var d=a.buffer.data;if(null!=d){var e=a.buffer.format,g=a.buffer.premultiplied;c=new ef(a,c);var h=Ab.getAlphaTable(b),l=Ab.getRedTable(b),t=Ab.getGreenTable(b);b=Ab.getBlueTable(b); for(var p,m,n,k=0,q=c.height;k>>24&255)*J.unmult)]&255)<<24|(J.__clamp[Math.round((n>>> 16&255)*J.unmult)]&255)<<16|(J.__clamp[Math.round((n>>>8&255)*J.unmult)]&255)<<8|n&255);n=(l[n>>>24&255]&255)<<24|(t[n>>>16&255]&255)<<16|(b[n>>>8&255]&255)<<8|h[n&255]&255;r=e;w=g;null==w&&(w=!1);null==r&&(r=0);w&&(0==(n&255)?0!=n&&(n=0):255!=(n&255)&&(J.a16=J.__alpha16[n&255],n=((n>>>24&255)*J.a16>>16&255)<<24|((n>>>16&255)*J.a16>>16&255)<<16|((n>>>8&255)*J.a16>>16&255)<<8|n&255));switch(r){case 0:d[m]=n>>>24&255;d[m+1]=n>>>16&255;d[m+2]=n>>>8&255;d[m+3]=n&255;break;case 1:d[m]=n&255;d[m+1]=n>>> 24&255;d[m+2]=n>>>16&255;d[m+3]=n>>>8&255;break;case 2:d[m]=n>>>8&255,d[m+1]=n>>>16&255,d[m+2]=n>>>24&255,d[m+3]=n&255}}}a.dirty=!0;a.version++}};Za.copyChannel=function(a,c,b,f,e,g){switch(g._hx_index){case 0:var d=0;break;case 1:d=1;break;case 2:d=2;break;case 3:d=3}switch(e._hx_index){case 0:var l=0;break;case 1:l=1;break;case 2:l=2;break;case 3:l=3}e=c.buffer.data;g=a.buffer.data;if(null!=e&&null!=g){b=new ef(c,b);f=new ef(a,new he(f.x,f.y,b.width,b.height));var t=c.buffer.format,p=a.buffer.format; c=c.buffer.premultiplied;for(var m=a.buffer.premultiplied,n,k,q,u,v=0,r=0,w=f.height;r>>24&255)*J.unmult)]&255)<<24|(J.__clamp[Math.round((q>>>16&255)*J.unmult)]&255)<<16|(J.__clamp[Math.round((q>>>8&255)*J.unmult)]&255)<<8|q&255);P=p;I=m;null==I&&(I=!1);null==P&&(P=0);switch(P){case 0:u=(g[k]&255)<<24|(g[k+1]&255)<<16|(g[k+2]&255)<<8|g[k+3]&255;break;case 1:u=(g[k+1]&255)<<24|(g[k+2]&255)<<16|(g[k+3]&255)<<8|g[k]&255;break;case 2:u=(g[k+2]&255)<<24|(g[k+1]&255)<<16|(g[k]&255)<<8|g[k+3]&255}I&&0!=(u&255)&&255!=(u&255)&&(J.unmult=255/(u&255),u=(J.__clamp[Math.round((u>>> 24&255)*J.unmult)]&255)<<24|(J.__clamp[Math.round((u>>>16&255)*J.unmult)]&255)<<16|(J.__clamp[Math.round((u>>>8&255)*J.unmult)]&255)<<8|u&255);switch(l){case 0:v=q>>>24&255;break;case 1:v=q>>>16&255;break;case 2:v=q>>>8&255;break;case 3:v=q&255}switch(d){case 0:u=(v&255)<<24|(u>>>16&255)<<16|(u>>>8&255)<<8|u&255;break;case 1:u=(u>>>24&255)<<24|(v&255)<<16|(u>>>8&255)<<8|u&255;break;case 2:u=(u>>>24&255)<<24|(u>>>16&255)<<16|(v&255)<<8|u&255;break;case 3:u=(u>>>24&255)<<24|(u>>>16&255)<<16|(u>>>8& 255)<<8|v&255}P=p;I=m;null==I&&(I=!1);null==P&&(P=0);I&&(0==(u&255)?0!=u&&(u=0):255!=(u&255)&&(J.a16=J.__alpha16[u&255],u=((u>>>24&255)*J.a16>>16&255)<<24|((u>>>16&255)*J.a16>>16&255)<<16|((u>>>8&255)*J.a16>>16&255)<<8|u&255));switch(P){case 0:g[k]=u>>>24&255;g[k+1]=u>>>16&255;g[k+2]=u>>>8&255;g[k+3]=u&255;break;case 1:g[k]=u&255;g[k+1]=u>>>24&255;g[k+2]=u>>>16&255;g[k+3]=u>>>8&255;break;case 2:g[k]=u>>>8&255,g[k+1]=u>>>16&255,g[k+2]=u>>>24&255,g[k+3]=u&255}n+=4;k+=4}}a.dirty=!0;a.version++}};Za.copyPixels= function(a,c,b,f,e,g,h){null==h&&(h=!1);if(a.width==c.width&&a.height==c.height&&b.width==c.width&&b.height==c.height&&0==b.x&&0==b.y&&0==f.x&&0==f.y&&null==e&&null==g&&0==h&&a.get_format()==c.get_format())a.buffer.data.set(c.buffer.data);else{var d=c.buffer.data,t=a.buffer.data;if(null==d||null==t)return;b=new ef(c,b);var p=new he(f.x,f.y,b.width,b.height);p=new ef(a,p);var m=c.buffer.format,n=a.buffer.format,k=c.buffer.premultiplied,q=a.buffer.premultiplied,u=c.buffer.bitsPerPixel/8|0,v=a.buffer.bitsPerPixel/ 8|0,r=null!=e&&e.get_transparent();h=h||r&&!a.get_transparent()||!h&&!a.get_transparent()&&c.get_transparent();if(r)if(v=e.buffer.data,c=e.buffer.format,g=new ef(e,new he(b.x+(null==g?0:g.x),b.y+(null==g?0:g.y),b.width,b.height)),p.clip(f.x|0,f.y|0,g.width,g.height),h)for(u=0,r=p.height;u>>24&255)*J.unmult)]&255)<<24|(J.__clamp[Math.round((I>>>16&255)*J.unmult)]&255)<<16|(J.__clamp[Math.round((I>>>8&255)*J.unmult)]&255)<<8|I&255);x=n;P=q;null==P&&(P=!1);null==x&&(x=0);switch(x){case 0:var B=(t[e]&255)<<24|(t[e+1]&255)<<16| (t[e+2]&255)<<8|t[e+3]&255;break;case 1:B=(t[e+1]&255)<<24|(t[e+2]&255)<<16|(t[e+3]&255)<<8|t[e]&255;break;case 2:B=(t[e+2]&255)<<24|(t[e+1]&255)<<16|(t[e]&255)<<8|t[e+3]&255}P&&0!=(B&255)&&255!=(B&255)&&(J.unmult=255/(B&255),B=(J.__clamp[Math.round((B>>>24&255)*J.unmult)]&255)<<24|(J.__clamp[Math.round((B>>>16&255)*J.unmult)]&255)<<16|(J.__clamp[Math.round((B>>>8&255)*J.unmult)]&255)<<8|B&255);x=c;P=!1;null==P&&(P=!1);null==x&&(x=0);switch(x){case 0:var D=(v[h]&255)<<24|(v[h+1]&255)<<16|(v[h+2]& 255)<<8|v[h+3]&255;break;case 1:D=(v[h+1]&255)<<24|(v[h+2]&255)<<16|(v[h+3]&255)<<8|v[h]&255;break;case 2:D=(v[h+2]&255)<<24|(v[h+1]&255)<<16|(v[h]&255)<<8|v[h+3]&255}P&&0!=(D&255)&&255!=(D&255)&&(J.unmult=255/(D&255),D=(J.__clamp[Math.round((D>>>24&255)*J.unmult)]&255)<<24|(J.__clamp[Math.round((D>>>16&255)*J.unmult)]&255)<<16|(J.__clamp[Math.round((D>>>8&255)*J.unmult)]&255)<<8|D&255);x=(D&255)/255*((I&255)/255);if(0>>24&255)*x+ (B>>>24&255)*P*A)/C)]&255)<<24|(B>>>16&255)<<16|(B>>>8&255)<<8|B&255;B=(B>>>24&255)<<24|(J.__clamp[Math.round(((I>>>16&255)*x+(B>>>16&255)*P*A)/C)]&255)<<16|(B>>>8&255)<<8|B&255;B=(B>>>24&255)<<24|(B>>>16&255)<<16|(J.__clamp[Math.round(((I>>>8&255)*x+(B>>>8&255)*P*A)/C)]&255)<<8|B&255;B=(B>>>24&255)<<24|(B>>>16&255)<<16|(B>>>8&255)<<8|J.__clamp[Math.round(255*C)]&255;x=n;P=q;null==P&&(P=!1);null==x&&(x=0);P&&(0==(B&255)?0!=B&&(B=0):255!=(B&255)&&(J.a16=J.__alpha16[B&255],B=((B>>>24&255)*J.a16>>16& 255)<<24|((B>>>16&255)*J.a16>>16&255)<<16|((B>>>8&255)*J.a16>>16&255)<<8|B&255));switch(x){case 0:t[e]=B>>>24&255;t[e+1]=B>>>16&255;t[e+2]=B>>>8&255;t[e+3]=B&255;break;case 1:t[e]=B&255;t[e+1]=B>>>24&255;t[e+2]=B>>>16&255;t[e+3]=B>>>8&255;break;case 2:t[e]=B>>>8&255,t[e+1]=B>>>16&255,t[e+2]=B>>>24&255,t[e+3]=B&255}}f+=4;e+=4;h+=4}}else for(B=0,u=p.height;B>>24&255)*J.unmult)]&255)<<24|(J.__clamp[Math.round((I>>>16&255)*J.unmult)]&255)<<16|(J.__clamp[Math.round((I>>>8&255)*J.unmult)]&255)<<8|I&255);y=c;x=!1;null==x&&(x=!1);null==y&&(y=0);switch(y){case 0:D= (v[h]&255)<<24|(v[h+1]&255)<<16|(v[h+2]&255)<<8|v[h+3]&255;break;case 1:D=(v[h+1]&255)<<24|(v[h+2]&255)<<16|(v[h+3]&255)<<8|v[h]&255;break;case 2:D=(v[h+2]&255)<<24|(v[h+1]&255)<<16|(v[h]&255)<<8|v[h+3]&255}x&&0!=(D&255)&&255!=(D&255)&&(J.unmult=255/(D&255),D=(J.__clamp[Math.round((D>>>24&255)*J.unmult)]&255)<<24|(J.__clamp[Math.round((D>>>16&255)*J.unmult)]&255)<<16|(J.__clamp[Math.round((D>>>8&255)*J.unmult)]&255)<<8|D&255);I=(I>>>24&255)<<24|(I>>>16&255)<<16|(I>>>8&255)<<8|Math.round((D&255)/255* (I&255))&255;y=n;x=q;null==x&&(x=!1);null==y&&(y=0);x&&(0==(I&255)?0!=I&&(I=0):255!=(I&255)&&(J.a16=J.__alpha16[I&255],I=((I>>>24&255)*J.a16>>16&255)<<24|((I>>>16&255)*J.a16>>16&255)<<16|((I>>>8&255)*J.a16>>16&255)<<8|I&255));switch(y){case 0:t[e]=I>>>24&255;t[e+1]=I>>>16&255;t[e+2]=I>>>8&255;t[e+3]=I&255;break;case 1:t[e]=I&255;t[e+1]=I>>>24&255;t[e+2]=I>>>16&255;t[e+3]=I>>>8&255;break;case 2:t[e]=I>>>8&255,t[e+1]=I>>>16&255,t[e+2]=I>>>24&255,t[e+3]=I&255}f+=4;e+=4;h+=4}else if(h)for(D=0,v=p.height;D< v;)for(e=D++,f=b.byteOffset+b.stride*e,e=p.byteOffset+p.stride*e,c=0,g=p.width;c>>24&255)*J.unmult)]&255)<<24|(J.__clamp[Math.round((I>>>16&255)*J.unmult)]& 255)<<16|(J.__clamp[Math.round((I>>>8&255)*J.unmult)]&255)<<8|I&255);h=n;u=q;null==u&&(u=!1);null==h&&(h=0);switch(h){case 0:B=(t[e]&255)<<24|(t[e+1]&255)<<16|(t[e+2]&255)<<8|t[e+3]&255;break;case 1:B=(t[e+1]&255)<<24|(t[e+2]&255)<<16|(t[e+3]&255)<<8|t[e]&255;break;case 2:B=(t[e+2]&255)<<24|(t[e+1]&255)<<16|(t[e]&255)<<8|t[e+3]&255}u&&0!=(B&255)&&255!=(B&255)&&(J.unmult=255/(B&255),B=(J.__clamp[Math.round((B>>>24&255)*J.unmult)]&255)<<24|(J.__clamp[Math.round((B>>>16&255)*J.unmult)]&255)<<16|(J.__clamp[Math.round((B>>> 8&255)*J.unmult)]&255)<<8|B&255);x=(I&255)/255;P=(B&255)/255;A=1-x;C=x+P*A;0==C?B=0:(B=(J.__clamp[Math.round(((I>>>24&255)*x+(B>>>24&255)*P*A)/C)]&255)<<24|(B>>>16&255)<<16|(B>>>8&255)<<8|B&255,B=(B>>>24&255)<<24|(J.__clamp[Math.round(((I>>>16&255)*x+(B>>>16&255)*P*A)/C)]&255)<<16|(B>>>8&255)<<8|B&255,B=(B>>>24&255)<<24|(B>>>16&255)<<16|(J.__clamp[Math.round(((I>>>8&255)*x+(B>>>8&255)*P*A)/C)]&255)<<8|B&255,B=(B>>>24&255)<<24|(B>>>16&255)<<16|(B>>>8&255)<<8|J.__clamp[Math.round(255*C)]&255);h=n;u= q;null==u&&(u=!1);null==h&&(h=0);u&&(0==(B&255)?0!=B&&(B=0):255!=(B&255)&&(J.a16=J.__alpha16[B&255],B=((B>>>24&255)*J.a16>>16&255)<<24|((B>>>16&255)*J.a16>>16&255)<<16|((B>>>8&255)*J.a16>>16&255)<<8|B&255));switch(h){case 0:t[e]=B>>>24&255;t[e+1]=B>>>16&255;t[e+2]=B>>>8&255;t[e+3]=B&255;break;case 1:t[e]=B&255;t[e+1]=B>>>24&255;t[e+2]=B>>>16&255;t[e+3]=B>>>8&255;break;case 2:t[e]=B>>>8&255,t[e+1]=B>>>16&255,t[e+2]=B>>>24&255,t[e+3]=B&255}f+=4;e+=4}else if(m==n&&k==q&&u==v)for(I=0,m=p.height;I>>24&255)*J.unmult)]&255)<<24|(J.__clamp[Math.round((I>>>16&255)*J.unmult)]&255)<<16|(J.__clamp[Math.round((I>>>8&255)*J.unmult)]&255)<<8|I&255);g=n;h=q;null==h&&(h=!1);null==g&&(g=0);h&&(0==(I&255)?0!=I&&(I=0):255!=(I&255)&&(J.a16=J.__alpha16[I&255],I=((I>>>24&255)*J.a16>>16&255)<<24|((I>>>16&255)*J.a16>>16&255)<<16|((I>>>8&255)*J.a16>>16&255)<<8|I&255));switch(g){case 0:t[e]=I>>>24&255;t[e+1]=I>>>16&255;t[e+2]=I>>>8&255;t[e+3]=I&255;break;case 1:t[e]=I&255; t[e+1]=I>>>24&255;t[e+2]=I>>>16&255;t[e+3]=I>>>8&255;break;case 2:t[e]=I>>>8&255,t[e+1]=I>>>16&255,t[e+2]=I>>>24&255,t[e+3]=I&255}f+=4;e+=4}}a.dirty=!0;a.version++};Za.fillRect=function(a,c,b,f){switch(f){case 1:b=(b>>>16&255)<<24|(b>>>8&255)<<16|(b&255)<<8|b>>>24&255;break;case 2:b=(b>>>8&255)<<24|(b>>>16&255)<<16|(b>>>24&255)<<8|b&255}a.get_transparent()||(b=(b>>>24&255)<<24|(b>>>16&255)<<16|(b>>>8&255)<<8|255);f=a.buffer.data;if(null!=f){var d=a.buffer.format;a.buffer.premultiplied&&(0==(b&255)? 0!=b&&(b=0):255!=(b&255)&&(J.a16=J.__alpha16[b&255],b=((b>>>24&255)*J.a16>>16&255)<<24|((b>>>16&255)*J.a16>>16&255)<<16|((b>>>8&255)*J.a16>>16&255)<<8|b&255));c=new ef(a,c);for(var g,h=0,l=c.height;h>>24&255)*J.a16>>16&255)<<24|((b>>>16&255)*J.a16>>16&255)<<16|((b>>>8&255)*J.a16>>16&255)<<8|b&255));switch(n){case 0:f[m]= b>>>24&255;f[m+1]=b>>>16&255;f[m+2]=b>>>8&255;f[m+3]=b&255;break;case 1:f[m]=b&255;f[m+1]=b>>>24&255;f[m+2]=b>>>16&255;f[m+3]=b>>>8&255;break;case 2:f[m]=b>>>8&255,f[m+1]=b>>>16&255,f[m+2]=b>>>24&255,f[m+3]=b&255}}}a.dirty=!0;a.version++}};Za.floodFill=function(a,c,b,f,e){var d=a.buffer.data;if(null!=d){1==e&&(f=(f&16777215)<<8|f>>24&255);e=a.buffer.format;var h=a.buffer.premultiplied,l=4*(b+a.offsetY)*a.buffer.width+4*(c+a.offsetX),t=e,p=h;null==p&&(p=!1);null==t&&(t=0);switch(t){case 0:var m=(d[l]& 255)<<24|(d[l+1]&255)<<16|(d[l+2]&255)<<8|d[l+3]&255;break;case 1:m=(d[l+1]&255)<<24|(d[l+2]&255)<<16|(d[l+3]&255)<<8|d[l]&255;break;case 2:m=(d[l+2]&255)<<24|(d[l+1]&255)<<16|(d[l]&255)<<8|d[l+3]&255}p&&0!=(m&255)&&255!=(m&255)&&(J.unmult=255/(m&255),m=(J.__clamp[Math.round((m>>>24&255)*J.unmult)]&255)<<24|(J.__clamp[Math.round((m>>>16&255)*J.unmult)]&255)<<16|(J.__clamp[Math.round((m>>>8&255)*J.unmult)]&255)<<8|m&255);a.get_transparent()||(f=(f>>>24&255)<<24|(f>>>16&255)<<16|(f>>>8&255)<<8|255, m=(m>>>24&255)<<24|(m>>>16&255)<<16|(m>>>8&255)<<8|255);if(f!=m){h&&(0==(f&255)?0!=f&&(f=0):255!=(f&255)&&(J.a16=J.__alpha16[f&255],f=((f>>>24&255)*J.a16>>16&255)<<24|((f>>>16&255)*J.a16>>16&255)<<16|((f>>>8&255)*J.a16>>16&255)<<8|f&255));l=[0,-1,1,0];t=[-1,0,0,1];p=-a.offsetX;var n=-a.offsetY,k=p+a.width,q=n+a.height,u=[];u.push(c);u.push(b);for(var v,r,w,y;0x;)if(r=x++,v=c+l[r],r=b+t[r],!(v=k||r>=q)){w=4*(r*a.width+v);var I=e,B=h;null==B&& (B=!1);null==I&&(I=0);switch(I){case 0:y=(d[w]&255)<<24|(d[w+1]&255)<<16|(d[w+2]&255)<<8|d[w+3]&255;break;case 1:y=(d[w+1]&255)<<24|(d[w+2]&255)<<16|(d[w+3]&255)<<8|d[w]&255;break;case 2:y=(d[w+2]&255)<<24|(d[w+1]&255)<<16|(d[w]&255)<<8|d[w+3]&255}B&&0!=(y&255)&&255!=(y&255)&&(J.unmult=255/(y&255),y=(J.__clamp[Math.round((y>>>24&255)*J.unmult)]&255)<<24|(J.__clamp[Math.round((y>>>16&255)*J.unmult)]&255)<<16|(J.__clamp[Math.round((y>>>8&255)*J.unmult)]&255)<<8|y&255);if(y==m){I=e;B=!1;null==B&&(B= !1);null==I&&(I=0);B&&(0==(f&255)?0!=f&&(f=0):255!=(f&255)&&(J.a16=J.__alpha16[f&255],f=((f>>>24&255)*J.a16>>16&255)<<24|((f>>>16&255)*J.a16>>16&255)<<16|((f>>>8&255)*J.a16>>16&255)<<8|f&255));switch(I){case 0:d[w]=f>>>24&255;d[w+1]=f>>>16&255;d[w+2]=f>>>8&255;d[w+3]=f&255;break;case 1:d[w]=f&255;d[w+1]=f>>>24&255;d[w+2]=f>>>16&255;d[w+3]=f>>>8&255;break;case 2:d[w]=f>>>8&255,d[w+1]=f>>>16&255,d[w+2]=f>>>24&255,d[w+3]=f&255}u.push(v);u.push(r)}}}a.dirty=!0;a.version++}}};Za.gaussianBlur=function(a, c,b,f,e,g,h,l,t){null==h&&(h=1);null==g&&(g=4);null==e&&(e=4);(l=a.get_premultiplied())&&a.set_premultiplied(!1);xf.blur(a,c,b,f,e,g,h);a.dirty=!0;a.version++;l&&a.set_premultiplied(!0);return a};Za.getColorBoundsRect=function(a,c,b,f,e){var d=a.width+1,h=0,l=a.height+1,t=0;switch(e){case 1:b=(b>>>16&255)<<24|(b>>>8&255)<<16|(b&255)<<8|b>>>24&255;c=(c>>>16&255)<<24|(c>>>8&255)<<16|(c&255)<<8|c>>>24&255;break;case 2:b=(b>>>8&255)<<24|(b>>>16&255)<<16|(b>>>24&255)<<8|b&255,c=(c>>>8&255)<<24|(c>>>16& 255)<<16|(c>>>24&255)<<8|c&255}a.get_transparent()||(b=(b>>>24&255)<<24|(b>>>16&255)<<16|(b>>>8&255)<<8|255,c=(c>>>24&255)<<24|(c>>>16&255)<<16|(c>>>8&255)<<8|255);for(var p=0,m=a.width;ph&&(h=n);break}if(e)break}p=0;for(m=a.height;pt&&(t=n);break}if(e)break}f=h-d;b=t-l;0f&&(f=0);0>b&&(b=0);d==h&&(f=1);l==t&&(b=1);d>a.width&&(d=0);l>a.height&&(l=0);return new he(d,l,f,b)};Za.getPixel=function(a,c,b,f){var d=a.buffer.data;c=4*(b+a.offsetY)*a.buffer.width+4*(c+a.offsetX);b= a.buffer.format;a=a.buffer.premultiplied;null==a&&(a=!1);null==b&&(b=0);switch(b){case 0:var g=(d[c]&255)<<24|(d[c+1]&255)<<16|(d[c+2]&255)<<8|d[c+3]&255;break;case 1:g=(d[c+1]&255)<<24|(d[c+2]&255)<<16|(d[c+3]&255)<<8|d[c]&255;break;case 2:g=(d[c+2]&255)<<24|(d[c+1]&255)<<16|(d[c]&255)<<8|d[c+3]&255}a&&0!=(g&255)&&255!=(g&255)&&(J.unmult=255/(g&255),g=(J.__clamp[Math.round((g>>>24&255)*J.unmult)]&255)<<24|(J.__clamp[Math.round((g>>>16&255)*J.unmult)]&255)<<16|(J.__clamp[Math.round((g>>>8&255)*J.unmult)]& 255)<<8|g&255);g=(g>>>24&255)<<24|(g>>>16&255)<<16|(g>>>8&255)<<8|0;switch(f){case 1:return(g&255)<<24|(g>>>24&255)<<16|(g>>>16&255)<<8|g>>>8&255;case 2:return(g>>>8&255)<<24|(g>>>16&255)<<16|(g>>>24&255)<<8|g&255;default:return g}};Za.getPixel32=function(a,c,b,f){var d=a.buffer.data;c=4*(b+a.offsetY)*a.buffer.width+4*(c+a.offsetX);b=a.buffer.format;a=a.buffer.premultiplied;null==a&&(a=!1);null==b&&(b=0);switch(b){case 0:var g=(d[c]&255)<<24|(d[c+1]&255)<<16|(d[c+2]&255)<<8|d[c+3]&255;break;case 1:g= (d[c+1]&255)<<24|(d[c+2]&255)<<16|(d[c+3]&255)<<8|d[c]&255;break;case 2:g=(d[c+2]&255)<<24|(d[c+1]&255)<<16|(d[c]&255)<<8|d[c+3]&255}a&&0!=(g&255)&&255!=(g&255)&&(J.unmult=255/(g&255),g=(J.__clamp[Math.round((g>>>24&255)*J.unmult)]&255)<<24|(J.__clamp[Math.round((g>>>16&255)*J.unmult)]&255)<<16|(J.__clamp[Math.round((g>>>8&255)*J.unmult)]&255)<<8|g&255);switch(f){case 1:return(g&255)<<24|(g>>>24&255)<<16|(g>>>16&255)<<8|g>>>8&255;case 2:return(g>>>8&255)<<24|(g>>>16&255)<<16|(g>>>24&255)<<8|g&255; default:return g}};Za.getPixels=function(a,c,b){if(null==a.buffer.data)return null;var d=new Sa(new ArrayBuffer(4*(c.width*c.height|0))),e=a.buffer.data,g=a.buffer.format,h=a.buffer.premultiplied;a=new ef(a,c);for(var l,t,p=c=0,m=a.height;p>>24&255)*J.unmult)]&255)<<24|(J.__clamp[Math.round((t>>>16&255)*J.unmult)]&255)<<16|(J.__clamp[Math.round((t>>>8&255)*J.unmult)]&255)<<8|t&255);switch(b){case 1:t=(t&255)<<24|(t>>>24&255)<<16|(t>>>16&255)<<8|t>>>8&255;break;case 2:t=(t>>>8&255)<<24|(t>>>16&255)<<16|(t>>>24&255)<<8|t&255}d.b[c++]=t>>>24&255;d.b[c++]=t>>>16&255;d.b[c++]=t>>>8&255;d.b[c++]= t&255;l+=4}}return d};Za.merge=function(a,c,b,f,e,g,h,l){if(null!=a.buffer.data&&null!=c.buffer.data){b=new ef(c,b);f=new ef(a,new he(f.x,f.y,b.width,b.height));var d=c.buffer.data,p=a.buffer.data,m=c.buffer.format,n=a.buffer.format;c=c.buffer.premultiplied;for(var k=a.buffer.premultiplied,q,u,v,w,r=0,y=f.height;r>>24&255)*J.unmult)]&255)<<24|(J.__clamp[Math.round((v>>>16&255)*J.unmult)]&255)<<16|(J.__clamp[Math.round((v>>>8&255)*J.unmult)]&255)<<8|v&255);B=n;P=k;null==P&&(P=!1);null==B&&(B=0);switch(B){case 0:w=(p[u]&255)<<24|(p[u+1]&255)<<16|(p[u+2]&255)<< 8|p[u+3]&255;break;case 1:w=(p[u+1]&255)<<24|(p[u+2]&255)<<16|(p[u+3]&255)<<8|p[u]&255;break;case 2:w=(p[u+2]&255)<<24|(p[u+1]&255)<<16|(p[u]&255)<<8|p[u+3]&255}P&&0!=(w&255)&&255!=(w&255)&&(J.unmult=255/(w&255),w=(J.__clamp[Math.round((w>>>24&255)*J.unmult)]&255)<<24|(J.__clamp[Math.round((w>>>16&255)*J.unmult)]&255)<<16|(J.__clamp[Math.round((w>>>8&255)*J.unmult)]&255)<<8|w&255);w=((((v>>>24&255)*e+(w>>>24&255)*(256-e))/256|0)&255)<<24|(w>>>16&255)<<16|(w>>>8&255)<<8|w&255;w=(w>>>24&255)<<24|((((v>>> 16&255)*g+(w>>>16&255)*(256-g))/256|0)&255)<<16|(w>>>8&255)<<8|w&255;w=(w>>>24&255)<<24|(w>>>16&255)<<16|((((v>>>8&255)*h+(w>>>8&255)*(256-h))/256|0)&255)<<8|w&255;w=(w>>>24&255)<<24|(w>>>16&255)<<16|(w>>>8&255)<<8|(((v&255)*l+(w&255)*(256-l))/256|0)&255;B=n;P=k;null==P&&(P=!1);null==B&&(B=0);P&&(0==(w&255)?0!=w&&(w=0):255!=(w&255)&&(J.a16=J.__alpha16[w&255],w=((w>>>24&255)*J.a16>>16&255)<<24|((w>>>16&255)*J.a16>>16&255)<<16|((w>>>8&255)*J.a16>>16&255)<<8|w&255));switch(B){case 0:p[u]=w>>>24&255; p[u+1]=w>>>16&255;p[u+2]=w>>>8&255;p[u+3]=w&255;break;case 1:p[u]=w&255;p[u+1]=w>>>24&255;p[u+2]=w>>>16&255;p[u+3]=w>>>8&255;break;case 2:p[u]=w>>>8&255,p[u+1]=w>>>16&255,p[u+2]=w>>>24&255,p[u+3]=w&255}q+=4;u+=4}}a.dirty=!0;a.version++}};Za.multiplyAlpha=function(a){var c=a.buffer.data;if(null!=c&&a.buffer.transparent){for(var b=a.buffer.format,f,e=0,g=c.length/4|0;e>>24&255)*J.unmult)]&255)<<24|(J.__clamp[Math.round((f>>>16&255)*J.unmult)]&255)<<16|(J.__clamp[Math.round((f>>>8&255)*J.unmult)]&255)<<8|f&255);h*=4;l=b;t=!0;null==t&&(t=!1);null==l&&(l=0);t&&(0==(f&255)?0!=f&&(f=0):255!=(f&255)&&(J.a16=J.__alpha16[f&255],f=((f>>>24& 255)*J.a16>>16&255)<<24|((f>>>16&255)*J.a16>>16&255)<<16|((f>>>8&255)*J.a16>>16&255)<<8|f&255));switch(l){case 0:c[h]=f>>>24&255;c[h+1]=f>>>16&255;c[h+2]=f>>>8&255;c[h+3]=f&255;break;case 1:c[h]=f&255;c[h+1]=f>>>24&255;c[h+2]=f>>>16&255;c[h+3]=f>>>8&255;break;case 2:c[h]=f>>>8&255,c[h+1]=f>>>16&255,c[h+2]=f>>>24&255,c[h+3]=f&255}}a.buffer.premultiplied=!0;a.dirty=!0;a.version++}};Za.resize=function(a,c,b){var d=a.buffer;if(d.width!=c||d.height!=b){var e=c*b*4;e=null!=e?new Uint8Array(e):null;e=new og(e, c,b);for(var g=a.width,h=a.height,l=a.get_data(),t=e.data,p,m,n,k,q,u,v,w,r,y=0;y>>16&255)<<24|(f>>>8&255)<<16|(f&255)<<8|f>>>24&255;break;case 2:f=(f>>>8&255)<<24|(f>>>16&255)<<16|(f>>>24&255)<<8|f&255}e=0;var d=a.buffer.data,h=4*(b+a.offsetY)*a.buffer.width+4*(c+a.offsetX),l=a.buffer.format,t=a.buffer.premultiplied;null==t&&(t=!1);null==l&&(l=0);switch(l){case 0:e=(d[h]&255)<<24|(d[h+1]&255)<<16|(d[h+2]&255)<<8|d[h+3]&255;break;case 1:e=(d[h+1]&255)<<24| (d[h+2]&255)<<16|(d[h+3]&255)<<8|d[h]&255;break;case 2:e=(d[h+2]&255)<<24|(d[h+1]&255)<<16|(d[h]&255)<<8|d[h+3]&255}t&&0!=(e&255)&&255!=(e&255)&&(J.unmult=255/(e&255),e=(J.__clamp[Math.round((e>>>24&255)*J.unmult)]&255)<<24|(J.__clamp[Math.round((e>>>16&255)*J.unmult)]&255)<<16|(J.__clamp[Math.round((e>>>8&255)*J.unmult)]&255)<<8|e&255);f=(f>>>24&255)<<24|(f>>>16&255)<<16|(f>>>8&255)<<8|e&255;e=a.buffer.data;c=4*(b+a.offsetY)*a.buffer.width+4*(c+a.offsetX);b=a.buffer.format;d=a.buffer.premultiplied; null==d&&(d=!1);null==b&&(b=0);d&&(0==(f&255)?0!=f&&(f=0):255!=(f&255)&&(J.a16=J.__alpha16[f&255],f=((f>>>24&255)*J.a16>>16&255)<<24|((f>>>16&255)*J.a16>>16&255)<<16|((f>>>8&255)*J.a16>>16&255)<<8|f&255));switch(b){case 0:e[c]=f>>>24&255;e[c+1]=f>>>16&255;e[c+2]=f>>>8&255;e[c+3]=f&255;break;case 1:e[c]=f&255;e[c+1]=f>>>24&255;e[c+2]=f>>>16&255;e[c+3]=f>>>8&255;break;case 2:e[c]=f>>>8&255,e[c+1]=f>>>16&255,e[c+2]=f>>>24&255,e[c+3]=f&255}a.dirty=!0;a.version++};Za.setPixel32=function(a,c,b,f,e){switch(e){case 1:f= (f>>>16&255)<<24|(f>>>8&255)<<16|(f&255)<<8|f>>>24&255;break;case 2:f=(f>>>8&255)<<24|(f>>>16&255)<<16|(f>>>24&255)<<8|f&255}a.get_transparent()||(f=(f>>>24&255)<<24|(f>>>16&255)<<16|(f>>>8&255)<<8|255);e=a.buffer.data;c=4*(b+a.offsetY)*a.buffer.width+4*(c+a.offsetX);b=a.buffer.format;var d=a.buffer.premultiplied;null==d&&(d=!1);null==b&&(b=0);d&&(0==(f&255)?0!=f&&(f=0):255!=(f&255)&&(J.a16=J.__alpha16[f&255],f=((f>>>24&255)*J.a16>>16&255)<<24|((f>>>16&255)*J.a16>>16&255)<<16|((f>>>8&255)*J.a16>> 16&255)<<8|f&255));switch(b){case 0:e[c]=f>>>24&255;e[c+1]=f>>>16&255;e[c+2]=f>>>8&255;e[c+3]=f&255;break;case 1:e[c]=f&255;e[c+1]=f>>>24&255;e[c+2]=f>>>16&255;e[c+3]=f>>>8&255;break;case 2:e[c]=f>>>8&255,e[c+1]=f>>>16&255,e[c+2]=f>>>24&255,e[c+3]=f&255}a.dirty=!0;a.version++};Za.setPixels=function(a,c,b,f,e){if(null!=a.buffer.data){var d=a.buffer.data,h=a.buffer.format,l=a.buffer.premultiplied;c=new ef(a,c);var t=a.get_transparent(),p=b.bytes;b=b.offset;e=e!=Li.BIG_ENDIAN;for(var m=0,n=c.height;m< n;){var k=m++;k=c.byteOffset+c.stride*k;for(var q=0,u=c.width;q>>16&255)<<24|(w>>>8&255)<<16|(w&255)<<8|w>>>24&255;break;case 2:w=(w>>>8&255)<<24|(w>>>16&255)<<16|(w>>>24&255)<<8|w&255}t||(w=(w>>>24&255)<<24|(w>>>16&255)<<16|(w>>>8&255)<<8|255);v=k+4*v;var r=h,y=l;null==y&&(y=!1);null==r&&(r=0);y&&(0==(w&255)?0!=w&&(w=0):255!=(w&255)&&(J.a16=J.__alpha16[w&255],w=((w>>>24&255)*J.a16>>16&255)<< 24|((w>>>16&255)*J.a16>>16&255)<<16|((w>>>8&255)*J.a16>>16&255)<<8|w&255));switch(r){case 0:d[v]=w>>>24&255;d[v+1]=w>>>16&255;d[v+2]=w>>>8&255;d[v+3]=w&255;break;case 1:d[v]=w&255;d[v+1]=w>>>24&255;d[v+2]=w>>>16&255;d[v+3]=w>>>8&255;break;case 2:d[v]=w>>>8&255,d[v+1]=w>>>16&255,d[v+2]=w>>>24&255,d[v+3]=w&255}}}a.dirty=!0;a.version++}};Za.threshold=function(a,c,b,f,e,g,h,l,t,p){switch(p){case 1:h=(h>>>16&255)<<24|(h>>>8&255)<<16|(h&255)<<8|h>>>24&255;l=(l>>>16&255)<<24|(l>>>8&255)<<16|(l&255)<<8|l>>> 24&255;g=(g>>>16&255)<<24|(g>>>8&255)<<16|(g&255)<<8|g>>>24&255;break;case 2:h=(h>>>8&255)<<24|(h>>>16&255)<<16|(h>>>24&255)<<8|h&255,l=(l>>>8&255)<<24|(l>>>16&255)<<16|(l>>>24&255)<<8|l&255,g=(g>>>8&255)<<24|(g>>>16&255)<<16|(g>>>24&255)<<8|g&255}switch(e){case "!=":e=0;break;case "<":e=2;break;case "<=":e=3;break;case "==":e=1;break;case ">":e=4;break;case ">=":e=5;break;default:e=-1}if(-1==e)return 0;p=c.buffer.data;var d=a.buffer.data;if(null==p||null==d)return 0;var n=0;b=new ef(c,b);f=new ef(a, new he(f.x,f.y,b.width,b.height));var m=c.buffer.format,k=a.buffer.format;c=c.buffer.premultiplied;for(var q=a.buffer.premultiplied,u,v,w,r,y=0,x=f.height;y>>24&255)*J.unmult)]&255)<<24|(J.__clamp[Math.round((w>>>16&255)*J.unmult)]&255)<<16|(J.__clamp[Math.round((w>>>8&255)*J.unmult)]&255)<<8|w&255);r=w&l;P=r>>>24&255;var D=g>>>24&255;P!=D?r=Ea.gt(P,D)?1:-1:(P=r>>>16&255,D=g>>>16&255,P!=D?r=Ea.gt(P,D)?1:-1:(P=r>>>8&255,D=g>>>8&255,P!=D?r=Ea.gt(P,D)?1:-1:(P=r&255,D=g&255,r=P!=D?Ea.gt(P,D)?1:-1:0)));switch(e){case 0:r=0!=r;break;case 1:r=0==r;break;case 2:r= -1==r;break;case 3:r=0==r||-1==r;break;case 4:r=1==r;break;case 5:r=0==r||1==r;break;default:r=!1}if(r){r=k;P=q;null==P&&(P=!1);null==r&&(r=0);P&&(0==(h&255)?0!=h&&(h=0):255!=(h&255)&&(J.a16=J.__alpha16[h&255],h=((h>>>24&255)*J.a16>>16&255)<<24|((h>>>16&255)*J.a16>>16&255)<<16|((h>>>8&255)*J.a16>>16&255)<<8|h&255));switch(r){case 0:d[v]=h>>>24&255;d[v+1]=h>>>16&255;d[v+2]=h>>>8&255;d[v+3]=h&255;break;case 1:d[v]=h&255;d[v+1]=h>>>24&255;d[v+2]=h>>>16&255;d[v+3]=h>>>8&255;break;case 2:d[v]=h>>>8&255, d[v+1]=h>>>16&255,d[v+2]=h>>>24&255,d[v+3]=h&255}++n}else if(t)switch(r=k,P=q,null==P&&(P=!1),null==r&&(r=0),P&&(0==(w&255)?0!=w&&(w=0):255!=(w&255)&&(J.a16=J.__alpha16[w&255],w=((w>>>24&255)*J.a16>>16&255)<<24|((w>>>16&255)*J.a16>>16&255)<<16|((w>>>8&255)*J.a16>>16&255)<<8|w&255)),r){case 0:d[v]=w>>>24&255;d[v+1]=w>>>16&255;d[v+2]=w>>>8&255;d[v+3]=w&255;break;case 1:d[v]=w&255;d[v+1]=w>>>24&255;d[v+2]=w>>>16&255;d[v+3]=w>>>8&255;break;case 2:d[v]=w>>>8&255,d[v+1]=w>>>16&255,d[v+2]=w>>>24&255,d[v+ 3]=w&255}u+=4;v+=4}}0>>24&255)*J.unmult)]&255)<<24|(J.__clamp[Math.round((f>>>16&255)*J.unmult)]&255)<<16|(J.__clamp[Math.round((f>>>8&255)*J.unmult)]&255)<<8|f&255);h*=4;l=b;t=!1;null==t&&(t=!1);null==l&&(l=0);t&&(0==(f&255)?0!=f&&(f=0):255!=(f&255)&&(J.a16=J.__alpha16[f&255],f=((f>>>24&255)*J.a16>>16&255)<<24|((f>>>16&255)*J.a16>>16&255)<<16|((f>>>8&255)*J.a16>>16&255)<<8|f&255));switch(l){case 0:c[h]=f>>>24&255;c[h+1]=f>>>16&255;c[h+2]=f>>>8&255;c[h+3]=f&255;break;case 1:c[h]=f&255; c[h+1]=f>>>24&255;c[h+2]=f>>>16&255;c[h+3]=f>>>8&255;break;case 2:c[h]=f>>>8&255,c[h+1]=f>>>16&255,c[h+2]=f>>>24&255,c[h+3]=f&255}}a.buffer.premultiplied=!1;a.dirty=!0;a.version++}};Za.__boxBlur=function(a,c,b,f,e,g){c.set(a);e|=0;g|=0;Za.__boxBlurH(c,a,b,f,e,0);Za.__boxBlurH(c,a,b,f,e,1);Za.__boxBlurH(c,a,b,f,e,2);Za.__boxBlurH(c,a,b,f,e,3);e=1/(g+g+1);for(var d=4*b,l,t,p,m,n,k,q=0;qb||0>c||b>=a.width||c>=a.height?-1:4*(c*(a.width|0)+b)};Za.__getBoxesForGaussianBlur=function(a,c){var b=Math.floor(Math.sqrt(12*a*a/c+1));0==b%2&&--b;var f=b+2;a=Math.round((12*a*a-c*b*b-4*c*b-3*c)/(-4*b-4));for(var e=[],g=0;g>>24&255,f=c>>>24&255;if(b!=f)return Ea.gt(b,f)?1:-1;b=a>>>16&255;f=c>>>16&255;if(b!=f)return Ea.gt(b,f)?1:-1;b=a>>>8&255;f=c>>>8&255;if(b!=f)return Ea.gt(b,f)?1:-1;b=a&255;f=c&255;return b!=f?Ea.gt(b,f)?1:-1:0};Za.__translatePixel=function(a,c,b,f,e,g,h){b=4*(g*(b.width|0)+e);c=Za.__calculateSourceOffset(c,f,e,g);0>c?a[b]=a[b+1]=a[b+2]=a[b+3]=0:(a[b]=a[c],a[b+1]=a[c+1],a[b+2]=a[c+2],h=Ea.toFloat(a[c+3])*h|0,a[b+3]=0>h?0:255c.x&&(c.x=0),0>c.y&&(c.y=0),c.x+c.width>a.width&&(c.width=a.width-c.x),c.y+c.height>a.height&&(c.height=a.height-c.y),0>c.width&&(c.width=0),0>c.height&&(c.height=0),this.rect=c);this.stride=a.buffer.get_stride();this.__update()};k["lime._internal.graphics._ImageDataUtil.ImageDataView"]=ef;ef.__name__="lime._internal.graphics._ImageDataUtil.ImageDataView";ef.prototype={x:null,y:null,height:null,width:null,byteOffset:null,image:null,rect:null,stride:null,tempRect:null,clip:function(a, c,b,f){null==this.tempRect&&(this.tempRect=new he);this.tempRect.setTo(a,c,b,f);this.rect.intersection(this.tempRect,this.rect);this.__update()},hasRow:function(a){return 0<=a?aa?(this.rect.x+=a,0>this.rect.x&&(this.rect.x=0)):(this.rect.x+=a,this.rect.width-=a);0>c?(this.rect.y+=c,0>this.rect.y&&(this.rect.y=0)):(this.rect.y+=c,this.rect.height-=c);this.__update()},row:function(a){return this.byteOffset+this.stride*a},__update:function(){this.x=Math.ceil(this.rect.x); this.y=Math.ceil(this.rect.y);this.width=Math.floor(this.rect.width);this.height=Math.floor(this.rect.height);this.byteOffset=this.stride*(this.y+this.image.offsetY)+4*(this.x+this.image.offsetX)},__class__:ef};var xf=function(){};k["lime._internal.graphics.StackBlur"]=xf;xf.__name__="lime._internal.graphics.StackBlur";xf.blur=function(a,c,b,f,e,g,h){a.copyPixels(c,b,f);xf.__stackBlurCanvasRGBA(a,b.width|0,b.height|0,e,g,h)};xf.__stackBlurCanvasRGBA=function(a,c,b,f,e,g){f=Math.round(f)>>1;e=Math.round(e)>> 1;if(null!=xf.MUL_TABLE&&(f>=xf.MUL_TABLE.length&&(f=xf.MUL_TABLE.length-1),e>=xf.MUL_TABLE.length&&(e=xf.MUL_TABLE.length-1),!(0>f||0>e))){1>g&&(g=1);3>>C,a[l++]=t*A>>>C,a[l++]=J*A>>>C,a[l++]=L*A>>>C,r=r+f+1,r=D+(r>>C,a[r+3]=G,0>>C,a[r+1]=t*A>>>C,a[r+2]=J*A>>>C):a[r]=a[r+1]=a[r+2]=0,r=H+u,r=w+(r>>C;a[r+3]=G;0>> C)*G|0,E=(t*A>>>C)*G|0,H=(J*A>>>C)*G|0,a[r]=255=a)||55296<=a&&56319>=a||56320<=a&&57343>=a)throw new F(new Bj(a));return a};wh.cons=function(a,c){return(65535>=a?String.fromCodePoint(a):String.fromCodePoint((a>>10)+55232)+String.fromCodePoint(a&1023|56320))+c};wh.snoc=function(a,c){c=65535>=c?String.fromCodePoint(c):String.fromCodePoint((c>> 10)+55232)+String.fromCodePoint(c&1023|56320);return a+c};wh.addInt=function(a,c){a+=c;if(!(0<=a&&1114111>=a)||55296<=a&&56319>=a||56320<=a&&57343>=a)throw new F(new Bj(a));return a};wh.sub=function(a,c){return a-c};wh.subInt=function(a,c){a-=c;if(!(0<=a&&1114111>=a)||55296<=a&&56319>=a||56320<=a&&57343>=a)throw new F(new Bj(a));return a};wh._new=function(a){return a};wh.toString=function(a){return 65535>=a?String.fromCodePoint(a):String.fromCodePoint((a>>10)+55232)+String.fromCodePoint(a&1023|56320)}; wh.toInt=function(a){return a};var Aq=function(a){this.i=0;this.string=a;this.index=0;this.endIndex=a.length};k["lime._internal.unifill.CodePointIter"]=Aq;Aq.__name__="lime._internal.unifill.CodePointIter";Aq.prototype={string:null,index:null,endIndex:null,hasNext:function(){return this.index=c?2:1);return Nc.codePointAt(this.string,this.i)},__class__:Aq};var Cj=function(){}; k["lime._internal.unifill.Exception"]=Cj;Cj.__name__="lime._internal.unifill.Exception";Cj.prototype={toString:function(){throw new F(null);},__class__:Cj};var Bj=function(a){this.code=a};k["lime._internal.unifill.InvalidCodePoint"]=Bj;Bj.__name__="lime._internal.unifill.InvalidCodePoint";Bj.__super__=Cj;Bj.prototype=r(Cj.prototype,{code:null,toString:function(){return"InvalidCodePoint(code: "+this.code+")"},__class__:Bj});var ei=function(a){this.index=a};k["lime._internal.unifill.InvalidCodeUnitSequence"]= ei;ei.__name__="lime._internal.unifill.InvalidCodeUnitSequence";ei.__super__=Cj;ei.prototype=r(Cj.prototype,{index:null,toString:function(){return"InvalidCodeUnitSequence(index: "+this.index+")"},__class__:ei});var yf=function(){};k["lime._internal.unifill.InternalEncoding"]=yf;yf.__name__="lime._internal.unifill.InternalEncoding";yf.__properties__={get_internalEncoding:"get_internalEncoding"};yf.get_internalEncoding=function(){return"UTF-16"};yf.codeUnitAt=function(a,c){return a.charCodeAt(c)};yf.codePointAt= function(a,c){return Nc.codePointAt(a,c)};yf.charAt=function(a,c){var b=a.charCodeAt(c);return A.substr(a,c,55296<=b&&56319>=b?2:1)};yf.codePointCount=function(a,c,b){return Nc.codePointCount(a,c,b)};yf.codePointWidthAt=function(a,c){a=a.charCodeAt(c);return 55296<=a&&56319>=a?2:1};yf.codePointWidthBefore=function(a,c){a=a.charCodeAt(c-1);return 56320<=a&&57343>=a?2:1};yf.offsetByCodePoints=function(a,c,b){if(0<=b){for(var d=a.length,e=0;e=g?2:1; ++e}return c}for(d=0;d<-b&&0=e?2:1,++d;return c};yf.backwardOffsetByCodePoints=function(a,c,b){b=-b;if(0<=b){for(var d=a.length,e=0;e=g?2:1;++e}return c}for(d=0;d<-b&&0=e?2:1,++d;return c};yf.fromCodePoint=function(a){return 65535>=a?String.fromCodePoint(a):String.fromCodePoint((a>>10)+55232)+String.fromCodePoint(a&1023|56320)};yf.fromCodePoints=function(a){var c= "";for(a=W(a);a.hasNext();){var b=a.next();65535>=b?c+=String.fromCodePoint(b):(c+=String.fromCodePoint((b>>10)+55232),c+=String.fromCodePoint(b&1023|56320))}return c};yf.validate=function(a){Nc.validate(a)};yf.isValidString=function(a){try{return Nc.validate(a),!0}catch(c){ha.lastException=c;if((c instanceof F?c.val:c)instanceof ei)return!1;throw c;}};yf.encodeWith=function(a,c){65535>=c?a(c):(a((c>>10)+55232),a(c&1023|56320))};var $v=function(a,c,b){this.i=0;this.string=a;this.index=c;this.endIndex= b};k["lime._internal.unifill.InternalEncodingIter"]=$v;$v.__name__="lime._internal.unifill.InternalEncodingIter";$v.prototype={string:null,index:null,endIndex:null,hasNext:function(){return this.index=c?2:1);return this.i},__class__:$v};var pg=function(){};k["lime._internal.unifill.Unicode"]=pg;pg.__name__="lime._internal.unifill.Unicode";pg.decodeSurrogate=function(a, c){return a-55232<<10|c&1023};pg.encodeHighSurrogate=function(a){return(a>>10)+55232};pg.encodeLowSurrogate=function(a){return a&1023|56320};pg.isScalar=function(a){return 0<=a&&1114111>=a&&!(55296<=a&&56319>=a)?!(56320<=a&&57343>=a):!1};pg.isHighSurrogate=function(a){return 55296<=a?56319>=a:!1};pg.isLowSurrogate=function(a){return 56320<=a?57343>=a:!1};var Tf=function(){};k["lime._internal.unifill.Unifill"]=Tf;Tf.__name__="lime._internal.unifill.Unifill";Tf.uLength=function(a){return Nc.codePointCount(a, 0,a.length)};Tf.uCharAt=function(a,c){if(0<=c)for(var b=0,f=a.length,e=0;e=g?2:1;++e}else for(f=b=0;f<-c&&0=e?2:1,++f;c=b;b=a.charCodeAt(c);return A.substr(a,c,55296<=b&&56319>=b?2:1)};Tf.uCharCodeAt=function(a,c){if(0<=c)for(var b=0,f=a.length,e=0;e=g?2:1;++e}else for(f=b=0;f<-c&&0=e?2:1,++f;c=b;return Nc.codePointAt(a, c)};Tf.uCodePointAt=function(a,c){if(0<=c)for(var b=0,f=a.length,e=0;e=g?2:1;++e}else for(f=b=0;f<-c&&0=e?2:1,++f;c=b;return Nc.codePointAt(a,c)};Tf.uIndexOf=function(a,c,b){null==b&&(b=0);if(0<=b)for(var d=0,e=a.length,g=0;g=h?2:1;++g}else for(e=d=0;e<-b&&0=g?2:1,++e;b=d;c=a.indexOf(c,b);return 0<=c?Nc.codePointCount(a, 0,c):-1};Tf.uLastIndexOf=function(a,c,b){null==b&&(b=a.length-1);if(0<=b)for(var d=0,e=a.length,g=0;g=h?2:1;++g}else for(e=d=0;e<-b&&0=g?2:1,++e;b=d;c=a.lastIndexOf(c,b);return 0<=c?Nc.codePointCount(a,0,c):-1};Tf.uSplit=function(a,c){if(0==c.length){c=[];for(var b,f=0,e=a.length;f=g?2:1;g=a;var h=g.charCodeAt(b);b=A.substr(g,b,55296<=h&&56319>=h?2:1);c.push(b)}return c}return a.split(c)}; Tf.uSubstr=function(a,c,b){var d=0<=c?0:a.length;if(0<=c)for(var e=a.length,g=0;g=h?2:1;++g}else for(e=0;e<-c&&0=g?2:1,++e;c=d;if(null==b)b=a.length;else if(0>b)b=c;else{if(0<=b)for(d=c,e=a.length,g=0;g=h?2:1,++g;else for(d=c,e=0;e<-b&&0=g?2:1,++e;b=d}return a.substring(c,b)};Tf.uSubstring=function(a,c,b){if(0>c)c=0; else{if(0<=c)for(var d=0,e=a.length,g=0;g=h?2:1;++g}else for(e=d=0;e<-c&&0=g?2:1,++e;c=d}if(null==b)b=a.length;else if(0>b)b=0;else{if(0<=b)for(d=0,e=a.length,g=0;g=h?2:1,++g;else for(e=d=0;e<-b&&0=g?2:1,++e;b=d}return a.substring(c,b)};Tf.uIterator=function(a){return new Aq(a)};Tf.uCompare=function(a,c){for(var b,f= 0,e=a.length,g,h=0,l=c.length;f=g?2:1;b=Nc.codePointAt(a,b);g=h;var t=c.charCodeAt(h);h+=55296<=t&&56319>=t?2:1;g=Nc.codePointAt(c,g);if(bg)return 1}return h=b?c+=String.fromCodePoint(b):(c+=String.fromCodePoint((b>>10)+55232),c+=String.fromCodePoint(b&1023|56320))}return c};Tf.uAddChar=function(a,c){65535>=c?a.b+=String.fromCodePoint(c): (a.b+=String.fromCodePoint((c>>10)+55232),a.b+=String.fromCodePoint(c&1023|56320))};var Nc={};k["lime._internal.unifill._Utf16.Utf16_Impl_"]=Nc;Nc.__name__="lime._internal.unifill._Utf16.Utf16_Impl_";Nc.__properties__={get_length:"get_length"};Nc.fromCodePoint=function(a){return 65535>=a?String.fromCodePoint(a):String.fromCodePoint((a>>10)+55232)+String.fromCodePoint(a&1023|56320)};Nc.fromCodePoints=function(a){var c="";for(a=W(a);a.hasNext();){var b=a.next();65535>=b?c+=String.fromCodePoint(b):(c+= String.fromCodePoint((b>>10)+55232),c+=String.fromCodePoint(b&1023|56320))}return c};Nc.fromString=function(a){return a};Nc.fromArray=function(a){for(var c="",b=0;b=c?a(c):(a((c>>10)+55232),a(c&1023|56320))};Nc.codeUnitAt=function(a,c){return a.charCodeAt(c)};Nc.codePointAt=function(a,c){return Dj.decode_code_point(a.length,function(c){return a.charCodeAt(c)},c)};Nc.charAt=function(a,c){var b=a.charCodeAt(c); return A.substr(a,c,55296<=b&&56319>=b?2:1)};Nc.codePointCount=function(a,c,b){for(var d=0;c=e?2:1;++d}return d};Nc.codePointWidthAt=function(a,c){a=a.charCodeAt(c);return 55296<=a&&56319>=a?2:1};Nc.codePointWidthBefore=function(a,c){a=a.charCodeAt(c-1);return 56320<=a&&57343>=a?2:1};Nc.offsetByCodePoints=function(a,c,b){if(0<=b){for(var d=a.length,e=0;e=g?2:1;++e}return c}for(d=0;d<-b&&0=e?2:1,++d;return c};Nc.substr=function(a,c,b){return A.substr(a,c,b)};Nc.validate=function(a){for(var c=a.length,b=function(c){return a.charCodeAt(c)},f=0;f=e?2:1}};Nc.toString=function(a){return a};Nc.toArray=function(a){for(var c=0,b=a.length,f=[];c=g?2:1;++e}return c};Nc.backward_offset_by_code_points=function(a,c,b){for(var d=0;d=e?2:1;++d}return c};var Dj=function(){};k["lime._internal.unifill._Utf16.Utf16Impl"]=Dj;Dj.__name__="lime._internal.unifill._Utf16.Utf16Impl";Dj.code_point_width=function(a){return 55296<=a&&56319>=a?2:1};Dj.find_prev_code_point=function(a,c){a=a(c-1);return 56320<=a&&57343>=a?2:1}; Dj.encode_code_point=function(a,c){65535>=c?a(c):(a((c>>10)+55232),a(c&1023|56320))};Dj.decode_code_point=function(a,c,b){if(0>b||a<=b)throw new F(new ei(b));var d=c(b);if(55296<=d&&56319>=d){if(0>b+1||a<=b+1)throw new F(new ei(b));a=c(b+1);if(56320<=a&&57343>=a)return d-55232<<10|a&1023;throw new F(new ei(b));}if(56320<=d&&57343>=d)throw new F(new ei(b));return d};var Bq={};k["lime._internal.unifill._Utf16.StringU16Buffer_Impl_"]=Bq;Bq.__name__="lime._internal.unifill._Utf16.StringU16Buffer_Impl_"; Bq._new=function(){return new Wc};Bq.addUnit=function(a,c){a.b+=String.fromCodePoint(c)};Bq.getStringU16=function(a){return a.b};var qg={};k["lime._internal.unifill._Utf16.StringU16_Impl_"]=qg;qg.__name__="lime._internal.unifill._Utf16.StringU16_Impl_";qg.__properties__={get_length:"get_length"};qg.fromString=function(a){return a};qg.fromCodeUnit=function(a){return String.fromCodePoint(a)};qg.fromTwoCodeUnits=function(a,c){return String.fromCodePoint(a)+String.fromCodePoint(c)};qg.ofArray=function(a){for(var c= "",b=0;bthis.__priorities[g]){this.__listeners.splice(g,0,a);this.__priorities.splice(g,0,b);this.__repeat.splice(g,0,!c);return}}this.__listeners.push(a);this.__priorities.push(b);this.__repeat.push(!c)},cancel:function(){this.canceled=!0},dispatch:null,has:function(a){for(var c=0,b=this.__listeners;cthis.__priorities[g]){this.__listeners.splice(g,0,a);this.__priorities.splice(g,0,b);this.__repeat.splice(g,0,!c);return}}this.__listeners.push(a);this.__priorities.push(b);this.__repeat.push(!c)},cancel:function(){this.canceled=!0},has:function(a){for(var c=0,b=this.__listeners;cthis.__priorities[g]){this.__listeners.splice(g,0,a);this.__priorities.splice(g,0,b);this.__repeat.splice(g,0,!c);return}}this.__listeners.push(a);this.__priorities.push(b);this.__repeat.push(!c)},cancel:function(){this.canceled=!0},has:function(a){for(var c=0,b=this.__listeners;cthis.__priorities[g]){this.__listeners.splice(g,0,a);this.__priorities.splice(g,0,b);this.__repeat.splice(g,0,!c);return}}this.__listeners.push(a);this.__priorities.push(b);this.__repeat.push(!c)},cancel:function(){this.canceled=!0},has:function(a){for(var c=0,b=this.__listeners;c< b.length;){var f=b[c];++c;if(Y.compareMethods(f,a))return!0}return!1},remove:function(a){for(var c=this.__listeners.length;0<=--c;)Y.compareMethods(this.__listeners[c],a)&&(this.__listeners.splice(c,1),this.__priorities.splice(c,1),this.__repeat.splice(c,1))},__listeners:null,dispatch:function(a,c,b){this.canceled=!1;for(var d=this.__listeners,e=this.__repeat,g=0;gthis.__priorities[g]){this.__listeners.splice(g,0,a);this.__priorities.splice(g,0,b);this.__repeat.splice(g,0,!c);return}}this.__listeners.push(a);this.__priorities.push(b);this.__repeat.push(!c)},cancel:function(){this.canceled= !0},has:function(a){for(var c=0,b=this.__listeners;cthis.__priorities[g]){this.__listeners.splice(g,0,a);this.__priorities.splice(g,0,b);this.__repeat.splice(g, 0,!c);return}}this.__listeners.push(a);this.__priorities.push(b);this.__repeat.push(!c)},cancel:function(){this.canceled=!0},has:function(a){for(var c=0,b=this.__listeners;cthis.__priorities[g]){this.__listeners.splice(g,0,a);this.__priorities.splice(g,0,b);this.__repeat.splice(g,0,!c);return}}this.__listeners.push(a);this.__priorities.push(b);this.__repeat.push(!c)},cancel:function(){this.canceled=!0},has:function(a){for(var c=0,b=this.__listeners;cthis.__priorities[g]){this.__listeners.splice(g,0,a);this.__priorities.splice(g,0,b);this.__repeat.splice(g,0,!c);return}}this.__listeners.push(a);this.__priorities.push(b);this.__repeat.push(!c)},cancel:function(){this.canceled=!0},has:function(a){for(var c=0,b=this.__listeners;cthis.__priorities[g]){this.__listeners.splice(g,0,a);this.__priorities.splice(g,0,b);this.__repeat.splice(g,0,!c);return}}this.__listeners.push(a);this.__priorities.push(b);this.__repeat.push(!c)},cancel:function(){this.canceled=!0},has:function(a){for(var c=0,b=this.__listeners;cthis.__priorities[g]){this.__listeners.splice(g,0,a);this.__priorities.splice(g,0,b);this.__repeat.splice(g,0,!c);return}}this.__listeners.push(a);this.__priorities.push(b);this.__repeat.push(!c)},cancel:function(){this.canceled=!0},has:function(a){for(var c=0,b=this.__listeners;cthis.__priorities[g]){this.__listeners.splice(g,0,a);this.__priorities.splice(g,0,b);this.__repeat.splice(g,0,!c);return}}this.__listeners.push(a);this.__priorities.push(b);this.__repeat.push(!c)},cancel:function(){this.canceled=!0},has:function(a){for(var c= 0,b=this.__listeners;cthis.__priorities[g]){this.__listeners.splice(g,0,a);this.__priorities.splice(g,0,b);this.__repeat.splice(g,0,!c);return}}this.__listeners.push(a); this.__priorities.push(b);this.__repeat.push(!c)},cancel:function(){this.canceled=!0},has:function(a){for(var c=0,b=this.__listeners;cthis.__priorities[g]){this.__listeners.splice(g,0,a);this.__priorities.splice(g, 0,b);this.__repeat.splice(g,0,!c);return}}this.__listeners.push(a);this.__priorities.push(b);this.__repeat.push(!c)},cancel:function(){this.canceled=!0},has:function(a){for(var c=0,b=this.__listeners;cthis.__priorities[g]){this.__listeners.splice(g, 0,a);this.__priorities.splice(g,0,b);this.__repeat.splice(g,0,!c);return}}this.__listeners.push(a);this.__priorities.push(b);this.__repeat.push(!c)},cancel:function(){this.canceled=!0},has:function(a){for(var c=0,b=this.__listeners;cthis.__priorities[g]){this.__listeners.splice(g,0,a);this.__priorities.splice(g,0,b);this.__repeat.splice(g,0,!c);return}}this.__listeners.push(a);this.__priorities.push(b);this.__repeat.push(!c)},cancel:function(){this.canceled=!0},has:function(a){for(var c=0,b=this.__listeners;cthis.__priorities[g]){this.__listeners.splice(g,0,a);this.__priorities.splice(g,0,b);this.__repeat.splice(g,0,!c);return}}this.__listeners.push(a);this.__priorities.push(b);this.__repeat.push(!c)},cancel:function(){this.canceled=!0},has:function(a){for(var c=0,b=this.__listeners;cthis.__priorities[g]){this.__listeners.splice(g,0,a);this.__priorities.splice(g,0,b);this.__repeat.splice(g,0,!c);return}}this.__listeners.push(a);this.__priorities.push(b);this.__repeat.push(!c)},cancel:function(){this.canceled=!0},has:function(a){for(var c=0,b=this.__listeners;cthis.__priorities[g]){this.__listeners.splice(g,0,a);this.__priorities.splice(g,0,b);this.__repeat.splice(g,0,!c);return}}this.__listeners.push(a);this.__priorities.push(b);this.__repeat.push(!c)},cancel:function(){this.canceled=!0},has:function(a){for(var c=0,b=this.__listeners;c< b.length;){var f=b[c];++c;if(Y.compareMethods(f,a))return!0}return!1},remove:function(a){for(var c=this.__listeners.length;0<=--c;)Y.compareMethods(this.__listeners[c],a)&&(this.__listeners.splice(c,1),this.__priorities.splice(c,1),this.__repeat.splice(c,1))},__listeners:null,dispatch:function(a){this.canceled=!1;for(var c=this.__listeners,b=this.__repeat,f=0;fthis.__priorities[g]){this.__listeners.splice(g,0,a);this.__priorities.splice(g,0,b);this.__repeat.splice(g,0,!c);return}}this.__listeners.push(a);this.__priorities.push(b);this.__repeat.push(!c)},cancel:function(){this.canceled= !0},has:function(a){for(var c=0,b=this.__listeners;cthis.__priorities[g]){this.__listeners.splice(g,0,a);this.__priorities.splice(g,0,b);this.__repeat.splice(g,0,!c);return}}this.__listeners.push(a); this.__priorities.push(b);this.__repeat.push(!c)},cancel:function(){this.canceled=!0},has:function(a){for(var c=0,b=this.__listeners;cthis.__priorities[g]){this.__listeners.splice(g, 0,a);this.__priorities.splice(g,0,b);this.__repeat.splice(g,0,!c);return}}this.__listeners.push(a);this.__priorities.push(b);this.__repeat.push(!c)},cancel:function(){this.canceled=!0},has:function(a){for(var c=0,b=this.__listeners;cthis.__priorities[g]){this.__listeners.splice(g,0,a);this.__priorities.splice(g,0,b);this.__repeat.splice(g,0,!c);return}}this.__listeners.push(a);this.__priorities.push(b);this.__repeat.push(!c)},cancel:function(){this.canceled=!0},has:function(a){for(var c=0,b=this.__listeners;cthis.__priorities[g]){this.__listeners.splice(g,0,a);this.__priorities.splice(g,0,b);this.__repeat.splice(g,0,!c);return}}this.__listeners.push(a);this.__priorities.push(b);this.__repeat.push(!c)},cancel:function(){this.canceled=!0},has:function(a){for(var c=0,b=this.__listeners;cthis.__priorities[g]){this.__listeners.splice(g,0,a);this.__priorities.splice(g,0,b);this.__repeat.splice(g,0,!c);return}}this.__listeners.push(a);this.__priorities.push(b);this.__repeat.push(!c)},cancel:function(){this.canceled=!0},has:function(a){for(var c=0,b=this.__listeners;ca.length)return!1;a=a.getString(0,6);return"GIF87a"!=a?"GIF89a"==a:!0};Lb.__isJPG=function(a){return null==a||4>a.length?!1:255==a.b[0]&&216==a.b[1]&&255==a.b[a.length-2]?217== a.b[a.length-1]:!1};Lb.__isPNG=function(a){return null==a||8>a.length?!1:137==a.b[0]&&80==a.b[1]&&78==a.b[2]&&71==a.b[3]&&13==a.b[4]&&10==a.b[5]&&26==a.b[6]?10==a.b[7]:!1};Lb.__isWebP=function(a){return null==a||16>a.length?!1:"RIFF"==a.getString(0,4)?"WEBP"==a.getString(8,4):!1};Lb.prototype={buffer:null,dirty:null,height:null,offsetX:null,offsetY:null,rect:null,type:null,version:null,width:null,x:null,y:null,clone:function(){if(null!=this.buffer){this.type==Gf.CANVAS?ua.convertToCanvas(this):ua.convertToData(this); var a=new Lb(this.buffer.clone(),this.offsetX,this.offsetY,this.width,this.height,null,this.type);a.version=this.version;return a}return new Lb(null,this.offsetX,this.offsetY,this.width,this.height,null,this.type)},colorTransform:function(a,c){a=this.__clipRect(a);if(null!=this.buffer&&null!=a)switch(this.type._hx_index){case 0:ua.colorTransform(this,a,c);break;case 1:ua.convertToData(this);Za.colorTransform(this,a,c);break;case 2:a.offset(this.offsetX,this.offsetY),this.buffer.__srcBitmapData.colorTransform(a.__toFlashRectangle(), Ab.__toFlashColorTransform(c))}},copyChannel:function(a,c,b,f,e){c=this.__clipRect(c);if(null!=this.buffer&&null!=c&&!(e==wf.ALPHA&&!this.get_transparent()||0>=c.width||0>=c.height))switch(c.x+c.width>a.width&&(c.width=a.width-c.x),c.y+c.height>a.height&&(c.height=a.height-c.y),this.type._hx_index){case 0:ua.copyChannel(this,a,c,b,f,e);break;case 1:ua.convertToData(this);ua.convertToData(a);Za.copyChannel(this,a,c,b,f,e);break;case 2:switch(f._hx_index){case 0:var d=1;break;case 1:d=2;break;case 2:d= 4;break;case 3:d=8}switch(e._hx_index){case 0:var h=1;break;case 1:h=2;break;case 2:h=4;break;case 3:h=8}c.offset(a.offsetX,a.offsetY);b.offset(this.offsetX,this.offsetY);this.buffer.__srcBitmapData.copyChannel(a.buffer.get_src(),c.__toFlashRectangle(),b.__toFlashPoint(),d,h)}},copyPixels:function(a,c,b,f,e,g){null==g&&(g=!1);if(null!=this.buffer&&null!=a&&!(0>=c.width||0>=c.height||0>=this.width||0>=this.height))switch(c.x+c.width>a.width&&(c.width=a.width-c.x),c.y+c.height>a.height&&(c.height=a.height- c.y),0>c.x&&(c.width+=c.x,c.x=0),0>c.y&&(c.height+=c.y,c.y=0),b.x+c.width>this.width&&(c.width=this.width-b.x),b.y+c.height>this.height&&(c.height=this.height-b.y),0>b.x&&(c.width+=b.x,c.x-=b.x,b.x=0),0>b.y&&(c.height+=b.y,c.y-=b.y,b.y=0),a==this&&b.x>>24&255)<<16|(c>>>16&255)<<8|c>>>8& 255;else switch(b){case 1:break;case 2:c=(c&255)<<24|(c>>>8&255)<<16|(c>>>16&255)<<8|c>>>24&255;break;default:c=(c&255)<<24|(c>>>24&255)<<16|(c>>>16&255)<<8|c>>>8&255}this.buffer.__srcBitmapData.fillRect(a.__toFlashRectangle(),c)}},floodFill:function(a,c,b,f){if(null!=this.buffer)switch(this.type._hx_index){case 0:ua.floodFill(this,a,c,b,f);break;case 1:ua.convertToData(this);Za.floodFill(this,a,c,b,f);break;case 2:if(null==f)b=(b&255)<<24|(b>>>24&255)<<16|(b>>>16&255)<<8|b>>>8&255;else switch(f){case 1:break; case 2:b=(b&255)<<24|(b>>>8&255)<<16|(b>>>16&255)<<8|b>>>24&255;break;default:b=(b&255)<<24|(b>>>24&255)<<16|(b>>>16&255)<<8|b>>>8&255}this.buffer.__srcBitmapData.floodFill(a+this.offsetX,c+this.offsetY,b)}},getColorBoundsRect:function(a,c,b,f){null==b&&(b=!0);if(null==this.buffer)return null;switch(this.type._hx_index){case 0:return ua.convertToData(this),Za.getColorBoundsRect(this,a,c,b,f);case 1:return Za.getColorBoundsRect(this,a,c,b,f);case 2:return a=this.buffer.__srcBitmapData.getColorBoundsRect(a, c,b),new he(a.x,a.y,a.width,a.height);default:return null}},getPixel:function(a,c,b){if(null==this.buffer||0>a||0>c||a>=this.width||c>=this.height)return 0;switch(this.type._hx_index){case 0:return ua.getPixel(this,a,c,b);case 1:return ua.convertToData(this),Za.getPixel(this,a,c,b);case 2:a=this.buffer.__srcBitmapData.getPixel(a+this.offsetX,c+this.offsetY);if(null==b)return(a>>>16&255)<<24|(a>>>8&255)<<16|(a&255)<<8|a>>>24&255;switch(b){case 1:return a;case 2:return(a&255)<<24|(a>>>8&255)<<16|(a>>> 16&255)<<8|a>>>24&255;default:return(a>>>16&255)<<24|(a>>>8&255)<<16|(a&255)<<8|a>>>24&255}default:return 0}},getPixel32:function(a,c,b){if(null==this.buffer||0>a||0>c||a>=this.width||c>=this.height)return 0;switch(this.type._hx_index){case 0:return ua.getPixel32(this,a,c,b);case 1:return ua.convertToData(this),Za.getPixel32(this,a,c,b);case 2:a=this.buffer.__srcBitmapData.getPixel32(a+this.offsetX,c+this.offsetY);if(null==b)return(a>>>16&255)<<24|(a>>>8&255)<<16|(a&255)<<8|a>>>24&255;switch(b){case 1:return a; case 2:return(a&255)<<24|(a>>>8&255)<<16|(a>>>16&255)<<8|a>>>24&255;default:return(a>>>16&255)<<24|(a>>>8&255)<<16|(a&255)<<8|a>>>24&255}default:return 0}},getPixels:function(a,c){if(null==this.buffer)return null;switch(this.type._hx_index){case 0:return ua.getPixels(this,a,c);case 1:return ua.convertToData(this),Za.getPixels(this,a,c);case 2:return null;default:return null}},merge:function(a,c,b,f,e,g,h){if(null!=this.buffer&&null!=a)switch(this.type._hx_index){case 0:ua.convertToCanvas(this);ua.merge(this, a,c,b,f,e,g,h);break;case 1:ua.convertToData(this);ua.convertToData(a);Za.merge(this,a,c,b,f,e,g,h);break;case 2:c.offset(this.offsetX,this.offsetY),this.buffer.__srcBitmapData.merge(a.buffer.__srcBitmapData,c.__toFlashRectangle(),b.__toFlashPoint(),f,e,g,h)}},resize:function(a,c){switch(this.type._hx_index){case 0:ua.resize(this,a,c);break;case 1:Za.resize(this,a,c)}this.buffer.width=a;this.buffer.height=c;this.offsetY=this.offsetX=0;this.width=a;this.height=c},scroll:function(a,c){if(null!=this.buffer)switch(this.type._hx_index){case 0:ua.scroll(this, a,c);break;case 1:this.copyPixels(this,this.get_rect(),new zd(a,c));break;case 2:this.buffer.__srcBitmapData.scroll(a+this.offsetX,c+this.offsetX)}},setPixel:function(a,c,b,f){if(!(null==this.buffer||0>a||0>c||a>=this.width||c>=this.height))switch(this.type._hx_index){case 0:ua.setPixel(this,a,c,b,f);break;case 1:ua.convertToData(this);Za.setPixel(this,a,c,b,f);break;case 2:if(null==f)b=(b&255)<<24|(b>>>24&255)<<16|(b>>>16&255)<<8|b>>>8&255;else switch(f){case 1:break;case 2:b=(b&255)<<24|(b>>>8& 255)<<16|(b>>>16&255)<<8|b>>>24&255;break;default:b=(b&255)<<24|(b>>>24&255)<<16|(b>>>16&255)<<8|b>>>8&255}this.buffer.__srcBitmapData.setPixel(a+this.offsetX,c+this.offsetX,b)}},setPixel32:function(a,c,b,f){if(!(null==this.buffer||0>a||0>c||a>=this.width||c>=this.height))switch(this.type._hx_index){case 0:ua.setPixel32(this,a,c,b,f);break;case 1:ua.convertToData(this);Za.setPixel32(this,a,c,b,f);break;case 2:if(null==f)b=(b&255)<<24|(b>>>24&255)<<16|(b>>>16&255)<<8|b>>>8&255;else switch(f){case 1:break; case 2:b=(b&255)<<24|(b>>>8&255)<<16|(b>>>16&255)<<8|b>>>24&255;break;default:b=(b&255)<<24|(b>>>24&255)<<16|(b>>>16&255)<<8|b>>>8&255}this.buffer.__srcBitmapData.setPixel32(a+this.offsetX,c+this.offsetY,b)}},setPixels:function(a,c,b,f){a=this.__clipRect(a);if(null!=this.buffer&&null!=a)switch(null==f&&(f=Li.BIG_ENDIAN),this.type._hx_index){case 0:ua.setPixels(this,a,c,b,f);break;case 1:ua.convertToData(this),Za.setPixels(this,a,c,b,f)}},threshold:function(a,c,b,f,e,g,h,l,t){null==l&&(l=!1);null== h&&(h=-1);null==g&&(g=0);if(null==this.buffer||null==a||null==c)return 0;switch(this.type._hx_index){case 0:case 1:return ua.convertToData(this),ua.convertToData(a),Za.threshold(this,a,c,b,f,e,g,h,l,t);case 2:if(null==t)g=(g&255)<<24|(g>>>24&255)<<16|(g>>>16&255)<<8|g>>>8&255;else switch(t){case 1:break;case 2:g=(g&255)<<24|(g>>>8&255)<<16|(g>>>16&255)<<8|g>>>24&255;break;default:g=(g&255)<<24|(g>>>24&255)<<16|(g>>>16&255)<<8|g>>>8&255}if(null==t)h=(h&255)<<24|(h>>>24&255)<<16|(h>>>16&255)<<8|h>>> 8&255;else switch(t){case 1:break;case 2:h=(h&255)<<24|(h>>>8&255)<<16|(h>>>16&255)<<8|h>>>24&255;break;default:h=(h&255)<<24|(h>>>24&255)<<16|(h>>>16&255)<<8|h>>>8&255}c.offset(a.offsetX,a.offsetY);b.offset(this.offsetX,this.offsetY);return this.buffer.__srcBitmapData.threshold(a.buffer.get_src(),c.__toFlashRectangle(),b.__toFlashPoint(),f,e,g,h,l)}return 0},__clipRect:function(a){return null==a||0>a.x&&(a.width-=-a.x,a.x=0,0>=a.x+a.width)||0>a.y&&(a.height-=-a.y,a.y=0,0>=a.y+a.height)||a.x+a.width>= this.width&&(a.width-=a.x+a.width-this.width,0>=a.width)||a.y+a.height>=this.height&&(a.height-=a.y+a.height-this.height,0>=a.height)?null:a},__fromBase64:function(a,c,b){var d=this,e=new Image;e.addEventListener("load",function(a){d.buffer=new og(null,e.width,e.height);d.buffer.__srcImage=e;d.offsetX=0;d.offsetY=0;d.width=d.buffer.width;d.height=d.buffer.height;null!=b&&b(d)},!1);e.src="data:"+c+";base64,"+a},__fromBytes:function(a,c){if(Lb.__isPNG(a))var b="image/png";else if(Lb.__isJPG(a))b="image/jpeg"; else if(Lb.__isGIF(a))b="image/gif";else return!1;this.__fromBase64(ng.encode(a),b,c);return!0},__fromFile:function(a,c,b){var d=this,e=new Image;gb.__isSameOrigin(a)||(e.crossOrigin="Anonymous");e.onload=function(a){d.buffer=new og(null,e.width,e.height);d.buffer.__srcImage=e;d.width=e.width;d.height=e.height;null!=c&&c(d)};e.onerror=function(a){null!=b&&b()};e.src=a;return!0},__fromImageBuffer:function(a){this.buffer=a;null!=a&&(-1==this.width&&(this.width=a.width),-1==this.height&&(this.height= a.height))},get_data:function(){null==this.buffer.data&&0>>24&255)&&255!=(a>>>24&255)&&(Sd.a16=J.__alpha16[a>>>24&255])};Sd.readUInt8=function(a,c,b,f,e){null==e&&(e=!1);null==f&&(f=0);switch(f){case 0:a=(c[b+1]&255)<<24|(c[b+2]&255)<<16|(c[b+3]&255)<<8|c[b]&255;break;case 1:a=(c[b+2]&255)<<24|(c[b+3]&255)<<16|(c[b]&255)<<8|c[b+1]&255;break;case 2:a=(c[b+1]&255)<<24|(c[b]&255)<<16|(c[b+ 3]&255)<<8|c[b+2]&255}e&&0!=(a>>>24&255)&&255!=(a>>>24&255)&&(Sd.unmult=255/(a>>>24&255))};Sd.set=function(a,c,b,f,e){};Sd.unmultiplyAlpha=function(a){0!=(a>>>24&255)&&255!=(a>>>24&255)&&(Sd.unmult=255/(a>>>24&255))};Sd.writeUInt8=function(a,c,b,f,e){null==e&&(e=!1);null==f&&(f=0);e&&(0==(a>>>24&255)?a=0:255!=(a>>>24&255)&&(Sd.a16=J.__alpha16[a>>>24&255],a=(a>>>24&255)<<24|((a>>>16&255)*Sd.a16>>16&255)<<16|((a>>>8&255)*Sd.a16>>16&255)<<8|(a&255)*Sd.a16>>16&255));switch(f){case 0:c[b]=a>>>16&255;c[b+ 1]=a>>>8&255;c[b+2]=a&255;c[b+3]=a>>>24&255;break;case 1:c[b]=a>>>24&255;c[b+1]=a>>>16&255;c[b+2]=a>>>8&255;c[b+3]=a&255;break;case 2:c[b]=a&255,c[b+1]=a>>>8&255,c[b+2]=a>>>16&255,c[b+3]=a>>>24&255}};Sd.__fromBGRA=function(a){return(a&255)<<24|(a>>>8&255)<<16|(a>>>16&255)<<8|a>>>24&255};Sd.__fromRGBA=function(a){return(a&255)<<24|(a>>>24&255)<<16|(a>>>16&255)<<8|a>>>8&255};Sd.get_a=function(a){return a>>>24&255};Sd.set_a=function(a,c){return c};Sd.get_b=function(a){return a&255};Sd.set_b=function(a, c){return c};Sd.get_g=function(a){return a>>>8&255};Sd.set_g=function(a,c){return c};Sd.get_r=function(a){return a>>>16&255};Sd.set_r=function(a,c){return c};var Td={};k["lime.math._BGRA.BGRA_Impl_"]=Td;Td.__name__="lime.math._BGRA.BGRA_Impl_";Td.__properties__={set_r:"set_r",get_r:"get_r",set_g:"set_g",get_g:"get_g",set_b:"set_b",get_b:"get_b",set_a:"set_a",get_a:"get_a"};Td._new=function(a){null==a&&(a=0);return a};Td.create=function(a,c,b,f){return(a&255)<<24|(c&255)<<16|(b&255)<<8|f&255};Td.multiplyAlpha= function(a){0!=(a&255)&&255!=(a&255)&&(Td.a16=J.__alpha16[a&255])};Td.readUInt8=function(a,c,b,f,e){null==e&&(e=!1);null==f&&(f=0);switch(f){case 0:a=(c[b+2]&255)<<24|(c[b+1]&255)<<16|(c[b]&255)<<8|c[b+3]&255;break;case 1:a=(c[b+3]&255)<<24|(c[b+2]&255)<<16|(c[b+1]&255)<<8|c[b]&255;break;case 2:a=(c[b]&255)<<24|(c[b+1]&255)<<16|(c[b+2]&255)<<8|c[b+3]&255}e&&0!=(a&255)&&255!=(a&255)&&(Td.unmult=255/(a&255))};Td.set=function(a,c,b,f,e){};Td.unmultiplyAlpha=function(a){0!=(a&255)&&255!=(a&255)&&(Td.unmult= 255/(a&255))};Td.writeUInt8=function(a,c,b,f,e){null==e&&(e=!1);null==f&&(f=0);e&&(0==(a&255)?a=0:255!=(a&255)&&(Td.a16=J.__alpha16[a&255],a=((a>>>24&255)*Td.a16>>16&255)<<24|((a>>>16&255)*Td.a16>>16&255)<<16|((a>>>8&255)*Td.a16>>16&255)<<8|a&255));switch(f){case 0:c[b]=a>>>8&255;c[b+1]=a>>>16&255;c[b+2]=a>>>24&255;c[b+3]=a&255;break;case 1:c[b]=a&255;c[b+1]=a>>>8&255;c[b+2]=a>>>16&255;c[b+3]=a>>>24&255;break;case 2:c[b]=a>>>24&255,c[b+1]=a>>>16&255,c[b+2]=a>>>8&255,c[b+3]=a&255}};Td.__fromARGB=function(a){return(a& 255)<<24|(a>>>8&255)<<16|(a>>>16&255)<<8|a>>>24&255};Td.__fromRGBA=function(a){return(a>>>8&255)<<24|(a>>>16&255)<<16|(a>>>24&255)<<8|a&255};Td.get_a=function(a){return a&255};Td.set_a=function(a,c){return c};Td.get_b=function(a){return a>>>24&255};Td.set_b=function(a,c){return c};Td.get_g=function(a){return a>>>16&255};Td.set_g=function(a,c){return c};Td.get_r=function(a){return a>>>8&255};Td.set_r=function(a,c){return c};var Ab={};k["lime.math._ColorMatrix.ColorMatrix_Impl_"]=Ab;Ab.__name__="lime.math._ColorMatrix.ColorMatrix_Impl_"; Ab.__properties__={set_redOffset:"set_redOffset",get_redOffset:"get_redOffset",set_redMultiplier:"set_redMultiplier",get_redMultiplier:"get_redMultiplier",set_greenOffset:"set_greenOffset",get_greenOffset:"get_greenOffset",set_greenMultiplier:"set_greenMultiplier",get_greenMultiplier:"get_greenMultiplier",set_color:"set_color",get_color:"get_color",set_blueOffset:"set_blueOffset",get_blueOffset:"get_blueOffset",set_blueMultiplier:"set_blueMultiplier",get_blueMultiplier:"get_blueMultiplier",set_alphaOffset:"set_alphaOffset", get_alphaOffset:"get_alphaOffset",set_alphaMultiplier:"set_alphaMultiplier",get_alphaMultiplier:"get_alphaMultiplier"};Ab._new=function(a){if(null==a||20!=a.length)a=Ab.__identity,a=null!=a?new Float32Array(a):null;return a};Ab.clone=function(a){a=null!=a?new Float32Array(a):null;return Ab._new(a)};Ab.concat=function(a,c){a[0]+=c[0];a[6]+=c[6];a[12]+=c[12];a[18]+=c[18]};Ab.copyFrom=function(a,c){a.set(c)};Ab.identity=function(a){a[0]=1;a[1]=0;a[2]=0;a[3]=0;a[4]=0;a[5]=0;a[6]=1;a[7]=0;a[8]=0;a[9]= 0;a[10]=0;a[11]=0;a[12]=1;a[13]=0;a[14]=0;a[15]=0;a[16]=0;a[17]=0;a[18]=1;a[19]=0};Ab.getAlphaTable=function(a){if(null==Ab.__alphaTable){var c=new Uint8Array(256);Ab.__alphaTable=c}Ab.__alphaTable[0]=0;for(var b=1;256>b;){var f=b++;c=Math.floor(f*a[18]+255*a[19]);255c&&(c=0);Ab.__alphaTable[f]=c}return Ab.__alphaTable};Ab.getBlueTable=function(a){if(null==Ab.__blueTable){var c=new Uint8Array(256);Ab.__blueTable=c}for(var b=0;256>b;){var f=b++;c=Math.floor(f*a[12]+255*a[14]);255c&&(c=0);Ab.__blueTable[f]=c}return Ab.__blueTable};Ab.getGreenTable=function(a){if(null==Ab.__greenTable){var c=new Uint8Array(256);Ab.__greenTable=c}for(var b=0;256>b;){var f=b++;c=Math.floor(f*a[6]+255*a[9]);255c&&(c=0);Ab.__greenTable[f]=c}return Ab.__greenTable};Ab.getRedTable=function(a){if(null==Ab.__redTable){var c=new Uint8Array(256);Ab.__redTable=c}for(var b=0;256>b;){var f=b++;c=Math.floor(f*a[0]+255*a[4]);255c&&(c=0);Ab.__redTable[f]=c}return Ab.__redTable}; Ab.__toFlashColorTransform=function(a){return null};Ab.get_alphaMultiplier=function(a){return a[18]};Ab.set_alphaMultiplier=function(a,c){return a[18]=c};Ab.get_alphaOffset=function(a){return 255*a[19]};Ab.set_alphaOffset=function(a,c){return a[19]=c/255};Ab.get_blueMultiplier=function(a){return a[12]};Ab.set_blueMultiplier=function(a,c){return a[12]=c};Ab.get_blueOffset=function(a){return 255*a[14]};Ab.set_blueOffset=function(a,c){return a[14]=c/255};Ab.get_color=function(a){return(255*a[4]|0)<< 16|(255*a[9]|0)<<8|255*a[14]|0};Ab.set_color=function(a,c){a[4]=(c>>16&255)/255;a[9]=(c>>8&255)/255;a[14]=(c&255)/255;a[0]=0;a[6]=0;a[12]=0;return Ab.get_color(a)};Ab.get_greenMultiplier=function(a){return a[6]};Ab.set_greenMultiplier=function(a,c){return a[6]=c};Ab.get_greenOffset=function(a){return 255*a[9]};Ab.set_greenOffset=function(a,c){return a[9]=c/255};Ab.get_redMultiplier=function(a){return a[0]};Ab.set_redMultiplier=function(a,c){return a[0]=c};Ab.get_redOffset=function(a){return 255*a[4]}; Ab.set_redOffset=function(a,c){return a[4]=c/255};Ab.get=function(a,c){return a[c]};Ab.set=function(a,c,b){return a[c]=b};var ka={};k["lime.math._Matrix4.Matrix4_Impl_"]=ka;ka.__name__="lime.math._Matrix4.Matrix4_Impl_";ka.__properties__={set_position:"set_position",get_position:"get_position",get_determinant:"get_determinant"};ka._new=function(a){if(null==a||16!=a.length)a=ka.__identity,a=null!=a?new Float32Array(a):null;return a};ka.append=function(a,c){var b=a[0],f=a[4],e=a[8],g=a[12],h=a[1],l= a[5],t=a[9],p=a[13],m=a[2],n=a[6],k=a[10],q=a[14],u=a[3],v=a[7],w=a[11],r=a[15],y=ka.get(c,0),x=ka.get(c,4),I=ka.get(c,8),B=ka.get(c,12),P=ka.get(c,1),D=ka.get(c,5),A=ka.get(c,9),C=ka.get(c,13),F=ka.get(c,2),E=ka.get(c,6),G=ka.get(c,10),H=ka.get(c,14),J=ka.get(c,3),L=ka.get(c,7),M=ka.get(c,11);c=ka.get(c,15);a[0]=b*y+h*x+m*I+u*B;a[1]=b*P+h*D+m*A+u*C;a[2]=b*F+h*E+m*G+u*H;a[3]=b*J+h*L+m*M+u*c;a[4]=f*y+l*x+n*I+v*B;a[5]=f*P+l*D+n*A+v*C;a[6]=f*F+l*E+n*G+v*H;a[7]=f*J+l*L+n*M+v*c;a[8]=e*y+t*x+k*I+w*B;a[9]= e*P+t*D+k*A+w*C;a[10]=e*F+t*E+k*G+w*H;a[11]=e*J+t*L+k*M+w*c;a[12]=g*y+p*x+q*I+r*B;a[13]=g*P+p*D+q*A+r*C;a[14]=g*F+p*E+q*G+r*H;a[15]=g*J+p*L+q*M+r*c};ka.appendRotation=function(a,c,b,f){c=ka.__getAxisRotation(a,b.x,b.y,b.z,c);null!=f&&ka.appendTranslation(c,f.x,f.y,f.z);ka.append(a,c)};ka.appendScale=function(a,c,b,f){c=[c,0,0,0,0,b,0,0,0,0,f,0,0,0,0,1];c=null!=c?new Float32Array(c):null;ka.append(a,ka._new(c))};ka.appendTranslation=function(a,c,b,f){a[12]+=c;a[13]+=b;a[14]+=f};ka.clone=function(a){a= null!=a?new Float32Array(a):null;return ka._new(a)};ka.copyColumnFrom=function(a,c,b){switch(c){case 0:a[0]=b.x;a[1]=b.y;a[2]=b.z;a[3]=b.w;break;case 1:a[4]=b.x;a[5]=b.y;a[6]=b.z;a[7]=b.w;break;case 2:a[8]=b.x;a[9]=b.y;a[10]=b.z;a[11]=b.w;break;case 3:a[12]=b.x;a[13]=b.y;a[14]=b.z;a[15]=b.w;break;default:Qa.error("Column "+c+" out of bounds [0, ..., 3]",{fileName:"lime/math/Matrix4.hx",lineNumber:187,className:"lime.math._Matrix4.Matrix4_Impl_",methodName:"copyColumnFrom"})}};ka.copyColumnTo=function(a, c,b){switch(c){case 0:b.x=a[0];b.y=a[1];b.z=a[2];b.w=a[3];break;case 1:b.x=a[4];b.y=a[5];b.z=a[6];b.w=a[7];break;case 2:b.x=a[8];b.y=a[9];b.z=a[10];b.w=a[11];break;case 3:b.x=a[12];b.y=a[13];b.z=a[14];b.w=a[15];break;default:Qa.error("Column "+c+" out of bounds [0, ..., 3]",{fileName:"lime/math/Matrix4.hx",lineNumber:225,className:"lime.math._Matrix4.Matrix4_Impl_",methodName:"copyColumnTo"})}};ka.copyFrom=function(a,c){a.set(c)};ka.copyRowFrom=function(a,c,b){switch(c){case 0:a[0]=b.x;a[4]=b.y;a[8]= b.z;a[12]=b.w;break;case 1:a[1]=b.x;a[5]=b.y;a[9]=b.z;a[13]=b.w;break;case 2:a[2]=b.x;a[6]=b.y;a[10]=b.z;a[14]=b.w;break;case 3:a[3]=b.x;a[7]=b.y;a[11]=b.z;a[15]=b.w;break;default:Qa.error("Row "+c+" out of bounds [0, ..., 3]",{fileName:"lime/math/Matrix4.hx",lineNumber:272,className:"lime.math._Matrix4.Matrix4_Impl_",methodName:"copyRowFrom"})}};ka.copyRowTo=function(a,c,b){switch(c){case 0:b.x=a[0];b.y=a[4];b.z=a[8];b.w=a[12];break;case 1:b.x=a[1];b.y=a[5];b.z=a[9];b.w=a[13];break;case 2:b.x=a[2]; b.y=a[6];b.z=a[10];b.w=a[14];break;case 3:b.x=a[3];b.y=a[7];b.z=a[11];b.w=a[15];break;default:Qa.error("Row "+c+" out of bounds [0, ..., 3]",{fileName:"lime/math/Matrix4.hx",lineNumber:310,className:"lime.math._Matrix4.Matrix4_Impl_",methodName:"copyRowTo"})}};ka.create2D=function(a,c,b,f,e,g,h){null==h&&(h=0);null==g&&(g=0);a[0]=c;a[1]=b;a[2]=0;a[3]=0;a[4]=f;a[5]=e;a[6]=0;a[7]=0;a[8]=0;a[9]=0;a[10]=1;a[11]=0;a[12]=g;a[13]=h;a[14]=0;a[15]=1};ka.createOrtho=function(a,c,b,f,e,g,h){var d=1/(b-c),t= 1/(e-f),p=1/(h-g);a[0]=2*d;a[1]=0;a[2]=0;a[3]=0;a[4]=0;a[5]=2*t;a[6]=0;a[7]=0;a[8]=0;a[9]=0;a[10]=-2*p;a[11]=0;a[12]=-(c+b)*d;a[13]=-(f+e)*t;a[14]=-(g+h)*p;a[15]=1};ka.deltaTransformVector=function(a,c,b){null==b&&(b=new Gc);var d=c.x,e=c.y;c=c.z;b.x=d*a[0]+e*a[4]+c*a[8]+a[3];b.y=d*a[1]+e*a[5]+c*a[9]+a[7];b.z=d*a[2]+e*a[6]+c*a[10]+a[11];return b};ka.fromMatrix3=function(a){var c=ka._new();ka.create2D(c,a.a,a.b,a.c,a.d,a.tx,a.ty);return c};ka.identity=function(a){a[0]=1;a[1]=0;a[2]=0;a[3]=0;a[4]=0; a[5]=1;a[6]=0;a[7]=0;a[8]=0;a[9]=0;a[10]=1;a[11]=0;a[12]=0;a[13]=0;a[14]=0;a[15]=1};ka.interpolate=function(a,c,b,f){null==f&&(f=ka._new());for(var d=0;16>d;){var g=d++;ka.set(f,g,ka.get(a,g)+(ka.get(c,g)-ka.get(a,g))*b)}return f};ka.interpolateTo=function(a,c,b){for(var d=0;16>d;){var e=d++;a[e]+=(ka.get(c,e)-a[e])*b}};ka.invert=function(a){var c=ka.get_determinant(a),b=1E-11>>24&255)*J.a16>>16&255)<<24|((a>>>16&255)*J.a16>>16&255)<<16|((a>>>8&255)*J.a16>>16&255)<<8|a&255));switch(f){case 0:c[b]=a>>>24&255;c[b+1]=a>>>16&255;c[b+2]=a>>>8&255;c[b+3]=a&255;break;case 1:c[b]=a&255;c[b+1]=a>>>24& 255;c[b+2]=a>>>16&255;c[b+3]=a>>>8&255;break;case 2:c[b]=a>>>8&255,c[b+1]=a>>>16&255,c[b+2]=a>>>24&255,c[b+3]=a&255}};J.__fromARGB=function(a){return(a>>>16&255)<<24|(a>>>8&255)<<16|(a&255)<<8|a>>>24&255};J.__fromBGRA=function(a){return(a>>>8&255)<<24|(a>>>16&255)<<16|(a>>>24&255)<<8|a&255};J.get_a=function(a){return a&255};J.set_a=function(a,c){return c};J.get_b=function(a){return a>>>8&255};J.set_b=function(a,c){return c};J.get_g=function(a){return a>>>16&255};J.set_g=function(a,c){return c};J.get_r= function(a){return a>>>24&255};J.set_r=function(a,c){return c};var he=function(a,c,b,f){null==f&&(f=0);null==b&&(b=0);null==c&&(c=0);null==a&&(a=0);this.x=a;this.y=c;this.width=b;this.height=f};k["lime.math.Rectangle"]=he;he.__name__="lime.math.Rectangle";he.prototype={height:null,width:null,x:null,y:null,clone:function(){return new he(this.x,this.y,this.width,this.height)},contains:function(a,c){return a>=this.x&&c>=this.y&&a=a.width||0>=a.height?a.x>this.x&&a.y>this.y&&a.get_right()=this.x&&a.y>=this.y&&a.get_right()<=this.get_right()?a.get_bottom()<=this.get_bottom():!1},containsVector:function(a){return this.contains(a.x,a.y)},copyFrom:function(a){this.x=a.x;this.y=a.y;this.width=a.width;this.height=a.height},equals:function(a){return null!=a&&this.x==a.x&&this.y==a.y&&this.width==a.width?this.height==a.height:!1},inflate:function(a, c){this.x-=a;this.width+=2*a;this.y-=c;this.height+=2*c},inflateVector:function(a){this.inflate(a.x,a.y)},intersection:function(a,c){null==c&&(c=new he);var b=this.xa.get_right()?a.get_right():this.get_right();if(f<=b)return c.setEmpty(),c;var e=this.ya.get_bottom()?a.get_bottom():this.get_bottom();if(a<=e)return c.setEmpty(),c;c.x=b;c.y=e;c.width=f-b;c.height=a-e;return c},intersects:function(a){var c=this.x a.get_right()?a.get_right():this.get_right())<=c)return!1;c=this.ya.get_bottom()?a.get_bottom():this.get_bottom())>c},isEmpty:function(){return 0>=this.width?!0:0>=this.height},offset:function(a,c){this.x+=a;this.y+=c},offsetVector:function(a){this.x+=a.x;this.y+=a.y},setEmpty:function(){this.x=this.y=this.width=this.height=0},setTo:function(a,c,b,f){this.x=a;this.y=c;this.width=b;this.height=f},union:function(a,c){null==c&&(c=new he);if(0==this.width||0== this.height)c.copyFrom(a);else if(0==a.width||0==a.height)c.copyFrom(this);else{var b=this.x>a.x?a.x:this.x,f=this.get_right()a.y?a.y:this.y;a=this.get_bottom()c};pc.greaterThanPointer=function(a,c){return pc.get(a)>pc.get(c)};pc.greaterThanOrEqual=function(a,c){return pc.get(a)>=c};pc.greaterThanOrEqualPointer=function(a,c){return pc.get(a)>= pc.get(c)};pc.lessThan=function(a,c){return pc.get(a)f.indexOf(" chrome/"); f=(new Wa("(iPhone|iPod|iPad).*AppleWebKit(?!.*Version)","i")).match(f);if(!e&&!f&&window.document.fonts&&(y=window.document.fonts,x(y,y.load)))window.document.fonts.load("1em '"+a+"'").then(function(a){b.complete(c)},function(d){Qa.warn('Could not load web font "'+a+'"',{fileName:"lime/text/Font.hx",lineNumber:513,className:"lime.text.Font",methodName:"__loadFromName"});b.complete(c)});else{var g=be.__measureFontNode("'"+a+"', sans-serif"),h=be.__measureFontNode("'"+a+"', serif"),l=g.offsetWidth, t=h.offsetWidth,p=-1,m=0,n,k;p=window.setInterval(function(){m+=1;n=g.offsetWidth!=l||h.offsetWidth!=t;k=3E3<=50*m;if(n||k)window.clearInterval(p),g.parentNode.removeChild(g),h.parentNode.removeChild(h),h=g=null,k&&Qa.warn('Could not load web font "'+a+'"',{fileName:"lime/text/Font.hx",lineNumber:548,className:"lime.text.Font",methodName:"__loadFromName"}),b.complete(c)},50)}return b.future},__setSize:function(a){},__class__:be};var Rw={};k["lime.text._Glyph.Glyph_Impl_"]=Rw;Rw.__name__="lime.text._Glyph.Glyph_Impl_"; Rw._new=function(a){return a};var nw=function(){};k["lime.text.GlyphMetrics"]=nw;nw.__name__="lime.text.GlyphMetrics";nw.prototype={advance:null,height:null,horizontalBearing:null,verticalBearing:null,__class__:nw};var Sw=function(){};k["lime.text.harfbuzz.HB"]=Sw;Sw.__name__="lime.text.harfbuzz.HB";Sw.shape=function(a,c,b){};var zh={};k["lime.text.harfbuzz._HBBlob.HBBlob_Impl_"]=zh;zh.__name__="lime.text.harfbuzz._HBBlob.HBBlob_Impl_";zh.__properties__={get_length:"get_length",get_immutable:"get_immutable", get_dataWritable:"get_dataWritable",get_data:"get_data",get_empty:"get_empty"};zh._new=function(a,c,b){return null};zh.createSubBlob=function(a,c,b){return null};zh.makeImmutable=function(a){};zh.get_data=function(a){return 0};zh.get_dataWritable=function(a){return 0};zh.get_empty=function(){return null};zh.get_immutable=function(a){return!1};zh.get_length=function(a){return 0};var Ac={};k["lime.text.harfbuzz._HBBuffer.HBBuffer_Impl_"]=Ac;Ac.__name__="lime.text.harfbuzz._HBBuffer.HBBuffer_Impl_"; Ac.__properties__={set_segmentProperties:"set_segmentProperties",get_segmentProperties:"get_segmentProperties",set_script:"set_script",get_script:"get_script",set_replacementCodepoint:"set_replacementCodepoint",get_replacementCodepoint:"get_replacementCodepoint",set_length:"set_length",get_length:"get_length",set_language:"set_language",get_language:"get_language",set_flags:"set_flags",get_flags:"get_flags",set_direction:"set_direction",get_direction:"get_direction",set_contentType:"set_contentType", get_contentType:"get_contentType",set_clusterLevel:"set_clusterLevel",get_clusterLevel:"get_clusterLevel",get_allocationSuccessful:"get_allocationSuccessful"};Ac._new=function(){return null};Ac.add=function(a,c,b){};Ac.addCodepoints=function(a,c,b,f,e){};Ac.addUTF8=function(a,c,b,f){};Ac.addUTF16=function(a,c,b,f,e){};Ac.addUTF32=function(a,c,b,f,e){};Ac.clearContents=function(a){};Ac.getGlyphInfo=function(a){return null};Ac.getGlyphPositions=function(a){return null};Ac.guessSegmentProperties=function(a){}; Ac.normalizeGlyphs=function(a){};Ac.preallocate=function(a,c){return!1};Ac.reset=function(a){};Ac.reverse=function(a){};Ac.reverseClusters=function(a){};Ac.get_allocationSuccessful=function(a){return!1};Ac.get_clusterLevel=function(a){return 0};Ac.set_clusterLevel=function(a,c){return c};Ac.get_contentType=function(a){return 0};Ac.set_contentType=function(a,c){return c};Ac.get_direction=function(a){return 0};Ac.set_direction=function(a,c){return c};Ac.get_empty=function(){return null};Ac.get_flags= function(a){return 0};Ac.set_flags=function(a,c){return c};Ac.get_language=function(a){return null};Ac.set_language=function(a,c){return c};Ac.get_length=function(a){return 0};Ac.set_length=function(a,c){return c};Ac.get_replacementCodepoint=function(a){return 0};Ac.set_replacementCodepoint=function(a,c){return c};Ac.get_script=function(a){return 0};Ac.set_script=function(a,c){return c};Ac.get_segmentProperties=function(a){return null};Ac.set_segmentProperties=function(a,c){return c};var ko={};k["lime.text.harfbuzz._HBFTFont.HBFTFont_Impl_"]= ko;ko.__name__="lime.text.harfbuzz._HBFTFont.HBFTFont_Impl_";ko.__properties__={set_loadFlags:"set_loadFlags",get_loadFlags:"get_loadFlags"};ko._new=function(a){return null};ko.get_loadFlags=function(a){return 0};ko.set_loadFlags=function(a,c){return c};var $g={};k["lime.text.harfbuzz._HBFace.HBFace_Impl_"]=$g;$g.__name__="lime.text.harfbuzz._HBFace.HBFace_Impl_";$g.__properties__={set_upem:"set_upem",get_upem:"get_upem",set_index:"set_index",get_index:"get_index",get_immutable:"get_immutable",set_glyphCount:"set_glyphCount", get_glyphCount:"get_glyphCount",get_empty:"get_empty"};$g._new=function(a,c){return null};$g.get_empty=function(){return null};$g.get_glyphCount=function(a){return 0};$g.set_glyphCount=function(a,c){return c};$g.get_immutable=function(a){return!1};$g.get_index=function(a){return 0};$g.set_index=function(a,c){return c};$g.get_upem=function(a){return 0};$g.set_upem=function(a,c){return c};var ow=function(){};k["lime.text.harfbuzz.HBFeature"]=ow;ow.__name__="lime.text.harfbuzz.HBFeature";ow.prototype= {__class__:ow};var Ne={};k["lime.text.harfbuzz._HBFont.HBFont_Impl_"]=Ne;Ne.__name__="lime.text.harfbuzz._HBFont.HBFont_Impl_";Ne.__properties__={set_scale:"set_scale",get_scale:"get_scale",set_ppem:"set_ppem",get_ppem:"get_ppem",get_parent:"get_parent",get_immutable:"get_immutable",get_face:"get_face",get_empty:"get_empty"};Ne._new=function(a){return null};Ne.addGlyphOriginForDirection=function(a,c,b,f,e){};Ne.createSubFont=function(a){return null};Ne.getGlyphAdvanceForDirection=function(a,c,b){return null}; Ne.getGlyphKerningForDirection=function(a,c,b,f,e){return null};Ne.getGlyphOriginForDirection=function(a,c,b){return null};Ne.glyphFromString=function(a,c){return 0};Ne.glyphToString=function(a,c){return null};Ne.makeImmutable=function(a){};Ne.subtractGlyphOriginForDirection=function(a,c,b,f,e){};Ne.get_empty=function(){return null};Ne.get_face=function(a){return null};Ne.get_immutable=function(a){return!1};Ne.get_parent=function(a){return null};Ne.get_ppem=function(a){return null};Ne.set_ppem=function(a, c){return c};Ne.get_scale=function(a){return null};Ne.set_scale=function(a,c){return c};var pw=function(){};k["lime.text.harfbuzz.HBGlyphInfo"]=pw;pw.__name__="lime.text.harfbuzz.HBGlyphInfo";pw.prototype={codepoint:null,mask:null,cluster:null,__class__:pw};var qw=function(){};k["lime.text.harfbuzz.HBGlyphPosition"]=qw;qw.__name__="lime.text.harfbuzz.HBGlyphPosition";qw.prototype={xAdvance:null,xOffset:null,yAdvance:null,yOffset:null,__class__:qw};var gl={};k["lime.text.harfbuzz._HBLanguage.HBLanguage_Impl_"]= gl;gl.__name__="lime.text.harfbuzz._HBLanguage.HBLanguage_Impl_";gl._new=function(a){return null};gl.toString=function(a){return null};gl.fromString=function(a){return gl._new(a)};var rw=function(){};k["lime.text.harfbuzz.HBSegmentProperties"]=rw;rw.__name__="lime.text.harfbuzz.HBSegmentProperties";rw.prototype={__class__:rw};var Zd=function(a){this.onDisconnect=new $d;this.onButtonUp=new bo;this.onButtonDown=new bo;this.onAxisMove=new Nq;this.id=a;this.connected=!0};k["lime.ui.Gamepad"]=Zd;Zd.__name__= "lime.ui.Gamepad";Zd.addMappings=function(a){};Zd.__connect=function(a){if(!Zd.devices.h.hasOwnProperty(a)){var c=new Zd(a);Zd.devices.h[a]=c;Zd.onConnect.dispatch(c)}};Zd.__disconnect=function(a){var c=Zd.devices.h[a];null!=c&&(c.connected=!1);Zd.devices.remove(a);null!=c&&c.onDisconnect.dispatch()};Zd.prototype={connected:null,id:null,onAxisMove:null,onButtonDown:null,onButtonUp:null,onDisconnect:null,get_guid:function(){return ad.__getDeviceData()[this.id].id},get_name:function(){return ad.__getDeviceData()[this.id].id}, __class__:Zd,__properties__:{get_name:"get_name",get_guid:"get_guid"}};var Oi={};k["lime.ui._GamepadAxis.GamepadAxis_Impl_"]=Oi;Oi.__name__="lime.ui._GamepadAxis.GamepadAxis_Impl_";Oi.toString=function(a){switch(a){case 0:return"LEFT_X";case 1:return"LEFT_Y";case 2:return"RIGHT_X";case 3:return"RIGHT_Y";case 4:return"TRIGGER_LEFT";case 5:return"TRIGGER_RIGHT";default:return"UNKNOWN ("+a+")"}};var nf={};k["lime.ui._GamepadButton.GamepadButton_Impl_"]=nf;nf.__name__="lime.ui._GamepadButton.GamepadButton_Impl_"; nf.toString=function(a){switch(a){case 0:return"A";case 1:return"B";case 2:return"X";case 3:return"Y";case 4:return"BACK";case 5:return"GUIDE";case 6:return"START";case 7:return"LEFT_STICK";case 8:return"RIGHT_STICK";case 9:return"LEFT_SHOULDER";case 10:return"RIGHT_SHOULDER";case 11:return"DPAD_UP";case 12:return"DPAD_DOWN";case 13:return"DPAD_LEFT";case 14:return"DPAD_RIGHT";default:return"UNKNOWN ("+a+")"}};var ad=function(a){this.onTrackballMove=new Jq;this.onHatMove=new Lq;this.onDisconnect= new $d;this.onButtonUp=new Mi;this.onButtonDown=new Mi;this.onAxisMove=new Kq;this.id=a;this.connected=!0};k["lime.ui.Joystick"]=ad;ad.__name__="lime.ui.Joystick";ad.__connect=function(a){if(!ad.devices.h.hasOwnProperty(a)){var c=new ad(a);ad.devices.h[a]=c;ad.onConnect.dispatch(c)}};ad.__disconnect=function(a){var c=ad.devices.h[a];null!=c&&(c.connected=!1);ad.devices.remove(a);null!=c&&c.onDisconnect.dispatch()};ad.__getDeviceData=function(){return navigator.getGamepads?navigator.getGamepads(): navigator.webkitGetGamepads?navigator.webkitGetGamepads():null};ad.prototype={connected:null,id:null,onAxisMove:null,onButtonDown:null,onButtonUp:null,onDisconnect:null,onHatMove:null,onTrackballMove:null,get_guid:function(){return ad.__getDeviceData()[this.id].id},get_name:function(){return ad.__getDeviceData()[this.id].id},get_numAxes:function(){return ad.__getDeviceData()[this.id].axes.length},get_numButtons:function(){return ad.__getDeviceData()[this.id].buttons.length},get_numHats:function(){return 0}, get_numTrackballs:function(){return 0},__class__:ad,__properties__:{get_numTrackballs:"get_numTrackballs",get_numHats:"get_numHats",get_numButtons:"get_numButtons",get_numAxes:"get_numAxes",get_name:"get_name",get_guid:"get_guid"}};var ze={};k["lime.ui._JoystickHatPosition.JoystickHatPosition_Impl_"]=ze;ze.__name__="lime.ui._JoystickHatPosition.JoystickHatPosition_Impl_";ze.__properties__={set_up:"set_up",get_up:"get_up",set_right:"set_right",get_right:"get_right",set_left:"set_left",get_left:"get_left", set_down:"set_down",get_down:"get_down",set_center:"set_center",get_center:"get_center"};ze._new=function(a){return a};ze.get_center=function(a){return 0==a};ze.set_center=function(a,c){return c};ze.get_down=function(a){return 0<(a&4)};ze.set_down=function(a,c){return c};ze.get_left=function(a){return 0<(a&8)};ze.set_left=function(a,c){return c};ze.get_right=function(a){return 0<(a&2)};ze.set_right=function(a,c){return c};ze.get_up=function(a){return 0<(a&1)};ze.set_up=function(a,c){return c};var U= {};k["lime.ui._KeyCode.KeyCode_Impl_"]=U;U.__name__="lime.ui._KeyCode.KeyCode_Impl_";U.fromScanCode=function(a){return 0};U.toScanCode=function(a){return 0};U.gt=function(a,c){return a>c};U.gte=function(a,c){return a>=c};U.lt=function(a,c){return a=(a&256)?0<(a&512):!0};Bb.set_altKey=function(a,c){return c};Bb.get_capsLock=function(a){return 0>=(a&8192)?0<(a&8192):!0};Bb.set_capsLock=function(a,c){return c};Bb.get_ctrlKey=function(a){return 0>=(a&64)? 0<(a&128):!0};Bb.set_ctrlKey=function(a,c){return c};Bb.get_metaKey=function(a){return 0>=(a&1024)?0<(a&2048):!0};Bb.set_metaKey=function(a,c){return c};Bb.get_numLock=function(a){return 0>=(a&4096)?0<(a&4096):!0};Bb.set_numLock=function(a,c){return c};Bb.get_shiftKey=function(a){return 0>=(a&1)?0<(a&2):!0};Bb.set_shiftKey=function(a,c){return c};var Fd=B["lime.ui.MouseCursor"]={__ename__:"lime.ui.MouseCursor",__constructs__:"ARROW CROSSHAIR DEFAULT MOVE POINTER RESIZE_NESW RESIZE_NS RESIZE_NWSE RESIZE_WE TEXT WAIT WAIT_ARROW CUSTOM".split(" "), ARROW:{_hx_index:0,__enum__:"lime.ui.MouseCursor",toString:u},CROSSHAIR:{_hx_index:1,__enum__:"lime.ui.MouseCursor",toString:u},DEFAULT:{_hx_index:2,__enum__:"lime.ui.MouseCursor",toString:u},MOVE:{_hx_index:3,__enum__:"lime.ui.MouseCursor",toString:u},POINTER:{_hx_index:4,__enum__:"lime.ui.MouseCursor",toString:u},RESIZE_NESW:{_hx_index:5,__enum__:"lime.ui.MouseCursor",toString:u},RESIZE_NS:{_hx_index:6,__enum__:"lime.ui.MouseCursor",toString:u},RESIZE_NWSE:{_hx_index:7,__enum__:"lime.ui.MouseCursor", toString:u},RESIZE_WE:{_hx_index:8,__enum__:"lime.ui.MouseCursor",toString:u},TEXT:{_hx_index:9,__enum__:"lime.ui.MouseCursor",toString:u},WAIT:{_hx_index:10,__enum__:"lime.ui.MouseCursor",toString:u},WAIT_ARROW:{_hx_index:11,__enum__:"lime.ui.MouseCursor",toString:u},CUSTOM:{_hx_index:12,__enum__:"lime.ui.MouseCursor",toString:u}},yq=B["lime.ui.MouseWheelMode"]={__ename__:"lime.ui.MouseWheelMode",__constructs__:["PIXELS","LINES","PAGES","UNKNOWN"],PIXELS:{_hx_index:0,__enum__:"lime.ui.MouseWheelMode", toString:u},LINES:{_hx_index:1,__enum__:"lime.ui.MouseWheelMode",toString:u},PAGES:{_hx_index:2,__enum__:"lime.ui.MouseWheelMode",toString:u},UNKNOWN:{_hx_index:3,__enum__:"lime.ui.MouseWheelMode",toString:u}},V={};k["lime.ui._ScanCode.ScanCode_Impl_"]=V;V.__name__="lime.ui._ScanCode.ScanCode_Impl_";V.fromKeyCode=function(a){return U.toScanCode(a)};V.toKeyCode=function(a){return U.fromScanCode(a)};V.gt=function(a,c){return a>c};V.gte=function(a,c){return a>=c};V.lt=function(a,c){return ad&&(c=d);b=this.bytesLoadedCache;(null!=v[a]?b.existsReserved(a):b.h.hasOwnProperty(a))?(b=this.bytesLoadedCache,b=null!=v[a]?b.getReserved(a):b.h[a],c!=b&&(this.bytesLoaded+=c-b)):this.bytesLoaded+=c;b=this.bytesLoadedCache;null!=v[a]? b.setReserved(a,c):b.h[a]=c;this.promise.progress(this.bytesLoaded,this.bytesTotal)}},__class__:ac};var id=function(){this.assets=[];this.libraryArgs=[];this.version=2};k["lime.utils.AssetManifest"]=id;id.__name__="lime.utils.AssetManifest";id.fromBytes=function(a,c){return null!=a?id.parse(a.getString(0,a.length),c):null};id.fromFile=function(a,c){a=id.__resolvePath(a);c=id.__resolveRootPath(c,a);return null==a?null:id.fromBytes(Pc.fromFile(a),c)};id.loadFromBytes=function(a,c){return xb.withValue(id.fromBytes(a, c))};id.loadFromFile=function(a,c){a=id.__resolvePath(a);c=id.__resolveRootPath(c,a);return null==a?null:Pc.loadFromFile(a).then(function(a){return xb.withValue(id.fromBytes(a,c))})};id.parse=function(a,c){if(null==a||""==a)return null;a=JSON.parse(a);var b=new id;Object.prototype.hasOwnProperty.call(a,"name")&&(b.name=a.name);Object.prototype.hasOwnProperty.call(a,"libraryType")&&(b.libraryType=a.libraryType);Object.prototype.hasOwnProperty.call(a,"libraryArgs")&&(b.libraryArgs=a.libraryArgs);if(Object.prototype.hasOwnProperty.call(a, "assets")){var f=a.assets;Object.prototype.hasOwnProperty.call(a,"version")&&2>=a.version?b.assets=Te.run(f):b.assets=f}Object.prototype.hasOwnProperty.call(a,"rootPath")&&(b.rootPath=a.rootPath);null!=c&&""!=c&&(b.rootPath=null==b.rootPath||""==b.rootPath?c:c+"/"+b.rootPath);return b};id.__resolvePath=function(a){if(null==a)return null;var c=a.indexOf("?");var b=-1c};dc.greaterThanPointer=function(a,c){return pc.get(a)>pc.get(c)};dc.greaterThanOrEqual= function(a,c){return a>=c};dc.greaterThanOrEqualPointer=function(a,c){return pc.get(a)>=pc.get(c)};dc.lessThan=function(a,c){return ac};ah.gte=function(a,c){return a>=c};ah.lt=function(a,c){return ad&&(b=d);d=a.bytesLoadedCache2;(null!=v[c[0]]?d.existsReserved(c[0]):d.h.hasOwnProperty(c[0]))?(d=a.bytesLoadedCache2,a.bytesLoaded+=b-(null!=v[c[0]]?d.getReserved(c[0]): d.h[c[0]])):a.bytesLoaded+=b;d=a.bytesLoadedCache2;null!=v[c[0]]?d.setReserved(c[0],b):d.h[c[0]]=b;a.simulateProgress||a.onProgress.dispatch(a.bytesLoaded,a.bytesTotal)}}}(f)).onComplete(function(c){return function(b){b=200;var d=a.bytesTotalCache;if(null!=v[c[0]]?d.existsReserved(c[0]):d.h.hasOwnProperty(c[0]))b=a.bytesTotalCache,b=null!=v[c[0]]?b.getReserved(c[0]):b.h[c[0]];d=a.bytesLoadedCache2;(null!=v[c[0]]?d.existsReserved(c[0]):d.h.hasOwnProperty(c[0]))?(d=a.bytesLoadedCache2,a.bytesLoaded+= b-(null!=v[c[0]]?d.getReserved(c[0]):d.h[c[0]])):a.bytesLoaded+=b;a.loadedAssetLibrary(c[0])}}(f)).onError(function(){return function(a){Qa.error(a,{fileName:"lime/utils/Preloader.hx",lineNumber:290,className:"lime.utils.Preloader",methodName:"updateProgress"})}}())}}this.simulateProgress||this.loadedLibraries!=this.libraries.length+this.libraryNames.length||(this.preloadComplete||(this.preloadComplete=!0,Qa.verbose("Preload complete",{fileName:"lime/utils/Preloader.hx",lineNumber:301,className:"lime.utils.Preloader", methodName:"updateProgress"})),this.start())},__class__:Dq};var qo={};k["lime.utils._UInt16Array.UInt16Array_Impl_"]=qo;qo.__name__="lime.utils._UInt16Array.UInt16Array_Impl_";qo.fromBytes=function(a,c,b){null==c&&(c=0);return null==c?new Uint16Array(a.b.bufferValue):null==b?new Uint16Array(a.b.bufferValue,c):new Uint16Array(a.b.bufferValue,c,b)};qo.toBytes=function(a){return new Sa(new Uint8Array(a.buffer))};qo.toString=function(a){return null!=a?"UInt16Array [byteLength:"+a.byteLength+", length:"+ a.length+"]":null};var ro={};k["lime.utils._UInt32Array.UInt32Array_Impl_"]=ro;ro.__name__="lime.utils._UInt32Array.UInt32Array_Impl_";ro.fromBytes=function(a,c,b){null==c&&(c=0);return null==c?new Uint32Array(a.b.bufferValue):null==b?new Uint32Array(a.b.bufferValue,c):new Uint32Array(a.b.bufferValue,c,b)};ro.toBytes=function(a){return new Sa(new Uint8Array(a.buffer))};ro.toString=function(a){return null!=a?"UInt32Array [byteLength:"+a.byteLength+", length:"+a.length+"]":null};var so={};k["lime.utils._UInt8Array.UInt8Array_Impl_"]= so;so.__name__="lime.utils._UInt8Array.UInt8Array_Impl_";so.fromBytes=function(a,c,b){return null==c?new Uint8Array(a.b.bufferValue):null==b?new Uint8Array(a.b.bufferValue,c):new Uint8Array(a.b.bufferValue,c,b)};so.toBytes=function(a){return new Sa(new Uint8Array(a.buffer))};so.toString=function(a){return null!=a?"UInt8Array [byteLength:"+a.byteLength+", length:"+a.length+"]":null};var il={};k["lime.utils._UInt8ClampedArray.UInt8ClampedArray_Impl_"]=il;il.__name__="lime.utils._UInt8ClampedArray.UInt8ClampedArray_Impl_"; il.fromBytes=function(a,c,b){null==c&&(c=0);return null==c?new Uint8ClampedArray(a.b.bufferValue):null==b?new Uint8ClampedArray(a.b.bufferValue,c):new Uint8ClampedArray(a.b.bufferValue,c,b)};il.toBytes=function(a){return new Sa(new Uint8Array(a.buffer))};il.toString=function(a){return null!=a?"UInt8ClampedArray [byteLength:"+a.byteLength+", length:"+a.length+"]":null};il._clamp=function(a){a|=0;a=255a?0:a};var rj=function(a,c,b){this.name=a;this.type=c;this.address=b};k["mbs.core.MbsField"]= rj;rj.__name__="mbs.core.MbsField";rj.prototype={name:null,type:null,address:null,getName:function(){return this.name},getType:function(){return this.type},getAddress:function(){return this.address},__class__:rj};var to=function(a,c,b){rj.call(this,a,null,b);this.typeName=c};k["mbs.core.reflect.SubstituteField"]=to;to.__name__="mbs.core.reflect.SubstituteField";to.__super__=rj;to.prototype=r(rj.prototype,{typeName:null,toString:function(){return"MbsField [name="+this.getName()+", typeName="+this.typeName+ ", address="+this.address+"]"},__class__:to});var Hj=function(a,c,b,f){zb.call(this,a);this.parentName=c;this.fields=b.slice(0);this.size=f};k["mbs.core.reflect.SubstituteType"]=Hj;Hj.__name__="mbs.core.reflect.SubstituteType";Hj.__super__=zb;Hj.prototype=r(zb.prototype,{parentName:null,mapTypes:function(a){var c=this.parentName;this.parent=null!=v[c]?a.getReserved(c):a.h[c];if(null!=this.fields){c=0;for(var b=this.fields.length;c=this.__array.length?!1:this.__array[a]},indexOf:function(a,c){null==c&&(c=0);for(var b=this.__array.length;c=this.__array.length?this.__array.length-1:c;0<=c;){if(this.__array[c]==a)return c;--c}return-1},pop:function(){return this.fixed?null:this.__array.pop()},push:function(a){return this.fixed?this.__array.length:this.__array.push(a)},removeAt:function(a){return!this.fixed||aa&&(a=0);if(a>c)for(;ca;)this.__array.pop()}return this.__array.length},__class__:ag,__properties__:{set_length:"set_length",get_length:"get_length"}};var cg=function(a,c,b,f){null==f&&(f=!1);null==c&&(c=!1);null==a&&(a=0);if(f){if(this.__array=[],null!=b){f=0;for(var d=b.length;f=this.__array.length?this.__array.length-1:c;0<=c;){if(this.__array[c]==a)return c;--c}return-1},pop:function(){return this.fixed?null: this.__array.pop()},push:function(a){return this.fixed?this.__array.length:this.__array.push(a)},removeAt:function(a){return!this.fixed||aa&&(a=0);if(a>c)for(;ca;)this.__array.pop()}return this.__array.length}, __class__:cg,__properties__:{set_length:"set_length",get_length:"get_length"}};var dg=function(a,c,b){null==c&&(c=!1);null==a&&(a=0);null==b&&(b=[]);this.__array=b;0=this.__array.length?null:this.__array[a]},indexOf:function(a,c){null==c&&(c=0);for(var b=this.__array.length;c=this.__array.length?this.__array.length-1:c;0<=c;){if(Y.compareMethods(this.__array[c],a))return c;--c}return-1},pop:function(){return this.fixed?null:this.__array.pop()},push:function(a){return this.fixed?this.__array.length:this.__array.push(a)},removeAt:function(a){return!this.fixed||aa&&(a=0);if(a>c)for(;ca;)this.__array.pop()}return this.__array.length},__class__:dg,__properties__:{set_length:"set_length",get_length:"get_length"}};var bg=function(a,c,b){null==c&&(c=!1);null==a&&(a=0);null==b&&(b=[]);this.__array=b;0=this.__array.length?this.__array.length-1:c;0<=c;){if(this.__array[c]==a)return c;--c}return-1},pop:function(){return this.fixed?null:this.__array.pop()}, push:function(a){return this.fixed?this.__array.length:this.__array.push(a)},removeAt:function(a){return!this.fixed||aa&&(a=0);if(a>c)for(;ca;)this.__array.pop()}return this.__array.length},__class__:bg, __properties__:{set_length:"set_length",get_length:"get_length"}};var Nf=function(a,c,b,f){null==f&&(f=!1);null==c&&(c=!1);null==a&&(a=0);if(f){if(this.__array=[],null!=b){f=0;for(var d=b.length;f=this.__array.length?this.__array.length-1:c;0<=c;){if(this.__array[c]==a)return c;--c}return-1},pop:function(){return this.fixed?null:this.__array.pop()},push:function(a){return this.fixed?this.__array.length:this.__array.push(a)},removeAt:function(a){return!this.fixed||aa&&(a=0);if(a>c)for(;ca;)this.__array.pop()}return this.__array.length},__class__:Nf,__properties__:{set_length:"set_length",get_length:"get_length"}};var Qc=function(){};k["openfl._internal.Lib"]=Qc;Qc.__name__="openfl._internal.Lib";Qc.notImplemented=function(a){var c= a.className+"."+a.methodName,b=Qc.__sentWarnings;(null!=v[c]?b.existsReserved(c):b.h.hasOwnProperty(c))||(b=Qc.__sentWarnings,null!=v[c]?b.setReserved(c,!0):b.h[c]=!0,Qa.warn(a.methodName+" is not implemented",a))};var We=function(){};k["openfl._internal.formats.agal.AGALConverter"]=We;We.__name__="openfl._internal.formats.agal.AGALConverter";We.prefixFromType=function(a,c){switch(a){case 0:return"va";case 1:return c==Pi.VERTEX?"vc":"fc";case 2:return c==Pi.VERTEX?"vt":"ft";case 3:return"output_"; case 4:return"v";case 5:return"sampler";default:throw new F(new wd("Invalid data!"));}};We.readUInt64=function(a){var c=a.readInt();a=a.readInt();return new Vb(a,c)};We.convertToGLSL=function(a,c){a.position=0;a.__endian=1;var b=a.readByte()&255;if(176==b)return a.readUTF();if(160!=b)throw new F(new wd("Magic value must be 0xA0, may not be AGAL"));if(1!=a.readInt())throw new F(new wd("Version must be 1"));if(161!=(a.readByte()&255))throw new F(new wd("Shader type ID must be 0xA1"));b=0==(a.readByte()& 255)?Pi.VERTEX:Pi.FRAGMENT;for(var f=new vo,e="";;){var g=a.position;if(!Ea.gt(za.get_length(a),g))break;var h=a.readInt();g=a.readUnsignedInt();var l=We.readUInt64(a),t=We.readUInt64(a);g=Ij.parse(g,b);l=Qi.parse(l,b,g.mask);var p=Qi.parse(t,b,g.mask);e+="\t";switch(h){case 0:e+=N.string(g.toGLSL()+" = "+l.toGLSL()+"; // mov");f.addDR(g,Ca.VECTOR_4);f.addSR(l,Ca.VECTOR_4);break;case 1:e+=N.string(g.toGLSL()+" = "+l.toGLSL()+" + "+p.toGLSL()+"; // add");f.addDR(g,Ca.VECTOR_4);f.addSR(l,Ca.VECTOR_4); f.addSR(p,Ca.VECTOR_4);break;case 2:e+=N.string(g.toGLSL()+" = "+l.toGLSL()+" - "+p.toGLSL()+"; // sub");f.addDR(g,Ca.VECTOR_4);f.addSR(l,Ca.VECTOR_4);f.addSR(p,Ca.VECTOR_4);break;case 3:e+=N.string(g.toGLSL()+" = "+l.toGLSL()+" * "+p.toGLSL()+"; // mul");f.addDR(g,Ca.VECTOR_4);f.addSR(l,Ca.VECTOR_4);f.addSR(p,Ca.VECTOR_4);break;case 4:e+=N.string(g.toGLSL()+" = "+l.toGLSL()+" / "+p.toGLSL()+"; // div");f.addDR(g,Ca.VECTOR_4);f.addSR(l,Ca.VECTOR_4);f.addSR(p,Ca.VECTOR_4);break;case 5:e=-1>>24&15;b.mask=a>>>16&15;b.n=a&65535;return b};Ij.prototype={mask:null,n:null,programType:null,type:null,getWriteMask:function(){var a=".";0!=(this.mask&1)&&(a+="x");0!=(this.mask&2)&&(a+="y");0!=(this.mask&4)&&(a+="z");0!=(this.mask&8)&&(a+="w");return a},toGLSL:function(a){null==a&&(a=!0);var c=3==this.type?this.programType==Pi.VERTEX?"gl_Position":"gl_FragColor":We.prefixFromType(this.type,this.programType)+this.n;a&&15!=this.mask&&(c+= this.getWriteMask());return c},__class__:Ij};var Pi=B["openfl._internal.formats.agal._AGALConverter.ProgramType"]={__ename__:"openfl._internal.formats.agal._AGALConverter.ProgramType",__constructs__:["VERTEX","FRAGMENT"],VERTEX:{_hx_index:0,__enum__:"openfl._internal.formats.agal._AGALConverter.ProgramType",toString:u},FRAGMENT:{_hx_index:1,__enum__:"openfl._internal.formats.agal._AGALConverter.ProgramType",toString:u}},vo=function(){this.mEntries=[]};k["openfl._internal.formats.agal.RegisterMap"]= vo;vo.__name__="openfl._internal.formats.agal.RegisterMap";vo.prototype={mEntries:null,add:function(a,c,b,f){for(var d=0,g=this.mEntries;d>31,a.high>>28);b.f=c.low&15;c=new Vb(a.high>>31,a.high>>24);b.m=c.low&15;c=new Vb(a.high>>31,a.high>>20);b.w=c.low&15;c=new Vb(a.high>>31,a.high>>16); b.s=c.low&15;c=new Vb(a.high>>31,a.high>>12);b.d=c.low&15;c=new Vb(a.high>>31,a.high>>8);b.t=c.low&15;c=new Vb(a.high>>31,a.high>>0);b.type=c.low&15;c=new Vb(a.high>>16,a.high<<16|a.low>>>16);b.b=c.low&255;b.n=a.low&65535;return b};Jj.prototype={b:null,d:null,f:null,m:null,n:null,programType:null,s:null,t:null,type:null,w:null,toGLSL:function(){return We.prefixFromType(this.type,this.programType)+this.n},toSamplerState:function(){switch(this.f){case 0:var a=5;break;case 1:a=4;break;default:throw new F(new wd); }switch(this.m){case 0:var c=2;break;case 1:c=1;break;case 2:c=0;break;default:throw new F(new wd);}switch(this.w){case 0:var b=0;break;case 1:b=2;break;default:throw new F(new wd);}return new uh(b,a,c,(this.b<<24>>24)/8,4==(this.s&4),1==(this.s&1),2==this.t)},__class__:Jj};var Qi=function(){};k["openfl._internal.formats.agal._AGALConverter.SourceRegister"]=Qi;Qi.__name__="openfl._internal.formats.agal._AGALConverter.SourceRegister";Qi.parse=function(a,c,b){var d=new Qi;d.programType=c;c=new Vb(a.high>> 31,a.high>>31);d.d=c.low&1;c=new Vb(a.high>>31,a.high>>16);d.q=c.low&3;c=new Vb(a.high>>31,a.high>>8);d.itype=c.low&15;c=new Vb(a.high>>31,a.high>>0);d.type=c.low&15;c=new Vb(a.high>>24,a.high<<8|a.low>>>24);d.s=c.low&255;c=new Vb(a.high>>16,a.high<<16|a.low>>>16);d.o=c.low&255;d.n=a.low&65535;d.sourceMask=b;return d};Qi.prototype={d:null,itype:null,n:null,o:null,programType:null,q:null,s:null,sourceMask:null,type:null,toGLSL:function(a,c){null==c&&(c=0);null==a&&(a=!0);if(3==this.type)return this.programType== Pi.VERTEX?"gl_Position":"gl_FragColor";var b=228==this.s&&15==this.sourceMask,f="";if(5!=this.type&&!b){if(0!=(this.sourceMask&1))switch(this.s&3){case 0:f+="x";break;case 1:f+="y";break;case 2:f+="z";break;case 3:f+="w"}if(0!=(this.sourceMask&2))switch(this.s>>2&3){case 0:f+="x";break;case 1:f+="y";break;case 2:f+="z";break;case 3:f+="w"}if(0!=(this.sourceMask&4))switch(this.s>>4&3){case 0:f+="x";break;case 1:f+="y";break;case 2:f+="z";break;case 3:f+="w"}if(0!=(this.sourceMask&8))switch(this.s>> 6&3){case 0:f+="x";break;case 1:f+="y";break;case 2:f+="z";break;case 3:f+="w"}}b=We.prefixFromType(this.type,this.programType);if(0==this.d)b+=this.n+c;else{b+=this.o;var e="";switch(this.q){case 0:e="x";break;case 1:e="y";break;case 2:e="z";break;case 3:e="w"}e=We.prefixFromType(this.itype,this.programType)+this.n+"."+e;b+="[ int("+e+") +"+c+"]"}a&&""!=f&&(b+="."+f);return b},__class__:Qi};var of=function(){};k["openfl._internal.formats.animate.AnimateSymbol"]=of;of.__name__="openfl._internal.formats.animate.AnimateSymbol"; of.prototype={className:null,id:null,__createObject:function(a){return null},__initObject:function(a,c){},__class__:of};var wo=function(){};k["openfl._internal.formats.animate.AnimateBitmapSymbol"]=wo;wo.__name__="openfl._internal.formats.animate.AnimateBitmapSymbol";wo.__super__=of;wo.prototype=r(of.prototype,{alpha:null,path:null,smooth:null,__createObject:function(a){return new Rc(ra.fromImage(a.getImage(this.path)),1,0!=this.smooth)},__class__:wo});var xo=function(){};k["openfl._internal.formats.animate.AnimateButtonSymbol"]= xo;xo.__name__="openfl._internal.formats.animate.AnimateButtonSymbol";xo.__super__=of;xo.prototype=r(of.prototype,{downState:null,hitState:null,overState:null,upState:null,library:null,__constructor:function(a){null!=this.downState&&a.set_downState(this.downState.__createObject(this.library));null!=this.hitState&&a.set_hitTestState(this.hitState.__createObject(this.library));null!=this.overState&&a.set_overState(this.overState.__createObject(this.library));null!=this.upState&&a.set_upState(this.upState.__createObject(this.library))}, __createObject:function(a){var c=null;pf.__constructor=x(this,this.__constructor);this.library=a;null!=this.className&&(a=k[this.className],null!=a&&(c=Ua.createInstance(a,[])));null==c&&(c=new pf);return c},__initObject:function(a,c){this.library=a;this.__constructor(c)},__class__:xo});var yo=function(){};k["openfl._internal.formats.animate.AnimateDynamicTextSymbol"]=yo;yo.__name__="openfl._internal.formats.animate.AnimateDynamicTextSymbol";yo.__super__=of;yo.prototype=r(of.prototype,{align:null, border:null,color:null,fontHeight:null,fontID:null,fontName:null,height:null,html:null,indent:null,input:null,leading:null,leftMargin:null,multiline:null,password:null,rightMargin:null,selectable:null,text:null,width:null,wordWrap:null,x:null,y:null,__createObject:function(a){var c=new ge;c.set_width(this.width);c.set_height(this.height);c.__offsetX=this.x;c.__offsetY=this.y;c.set_multiline(this.multiline);c.set_wordWrap(this.wordWrap);c.set_displayAsPassword(this.password);this.border&&(c.set_border(!0), c.set_background(!0));c.set_selectable(this.selectable);this.input&&c.set_type(1);var b=new Bg;null!=this.color&&(b.color=this.color&16777215);b.size=Math.round(this.fontHeight/20);a=a.symbols.h[this.fontID];null!=a&&(b.__ascent=a.ascent/20/1024,b.__descent=a.descent/20/1024);b.font=this.fontName;a=!1;var f=b.font;if(null==f)a=!0;else switch(f){case "":case "_sans":case "_serif":case "_typewriter":a=!0;break;default:f=0;for(var e=yc.enumerateFonts();f>24&255)/255);break;case 3:b.curveTo(r.controlX*t+h,r.controlY*t+l,r.anchorX*t+h,r.anchorY*t+l);break;case 4:b.endFill();break;case 5:var y=r.miterLimit,x=r.joints,I=r.caps, B=r.scaleMode,P=r.pixelHinting,D=r.alpha,A=r.color;r=r.thickness;null!=r?b.lineStyle(r,A,D,P,B,I,x,y):b.lineStyle();break;case 6:b.lineTo(r.x*t+h,r.y*t+l);break;case 7:b.moveTo(r.x*t+h,r.y*t+l)}}h+=.05*k.advances[v]}}}c.text=f;this.records=null;this.rendered=new Ri;this.rendered.text=f;this.rendered.__graphics.copyFrom(c.__graphics);return c},__class__:Bo});var Co=function(){};k["openfl._internal.utils.ITimeline"]=Co;Co.__name__="openfl._internal.utils.ITimeline";Co.__isInterface__=!0;Co.prototype= {addFrameScript:null,enterFrame:null,gotoAndPlay:null,gotoAndStop:null,nextFrame:null,play:null,prevFrame:null,stop:null,__class__:Co};var ml=function(a,c,b){this.__movieClip=a;this.__library=c;this.__symbol=b;this.__currentFrame=1;this.__currentLabels=[];this.__instanceFields=[];this.__totalFrames=0;this.__enabled=!0;this.init()};k["openfl._internal.formats.animate.AnimateTimeline"]=ml;ml.__name__="openfl._internal.formats.animate.AnimateTimeline";ml.__interfaces__=[Co];ml.prototype={__activeInstances:null, __activeInstancesByFrameObjectID:null,__currentFrame:null,__currentFrameLabel:null,__currentLabel:null,__currentLabels:null,__enabled:null,__frameScripts:null,__frameTime:null,__hasDown:null,__hasOver:null,__hasUp:null,__instanceFields:null,__lastFrameScriptEval:null,__lastFrameUpdate:null,__library:null,__mouseIsDown:null,__movieClip:null,__playing:null,__symbol:null,__timeElapsed:null,__totalFrames:null,addFrameScript:function(a,c){0>a||(a+=1,null!=c?(null==this.__frameScripts&&(this.__frameScripts= new Xa),this.__frameScripts.h[a]=c):null!=this.__frameScripts&&this.__frameScripts.remove(a))},gotoAndPlay:function(a,c){this.play();this.__goto(this.__resolveFrameReference(a))},gotoAndStop:function(a,c){this.stop();this.__goto(this.__resolveFrameReference(a))},init:function(){if(null==this.__activeInstances){this.__activeInstances=[];this.__activeInstancesByFrameObjectID=new Xa;this.__currentFrame=1;this.__lastFrameUpdate=this.__lastFrameScriptEval=-1;this.__totalFrames=this.__symbol.frames.length; for(var a,c,b=null,f=0,e=this.__symbol.frames.length;fthis.__totalFrames||(this.__playing=!0,this.__frameTime=1E3/this.__library.frameRate|0,this.__timeElapsed=0)},prevFrame:function(){this.stop();this.__goto(this.__currentFrame-1)},stop:function(){this.__playing=!1},enterFrame:function(a){this.__updateFrameScript(a);this.__updateSymbol(this.__currentFrame)}, __updateFrameScript:function(a){if(null!=this.__symbol&&this.__playing&&(a=this.__getNextFrame(a),this.__lastFrameScriptEval!=a))if(null!=this.__frameScripts){if(at.depth&&c<=t.clipDepth){b.set_mask(t.displayObject);h=!0;break}0a&&(a=1);a>this.__totalFrames&&(a=Math.floor((a-1)%this.__totalFrames)+1);this.__timeElapsed%=this.__frameTime;return a},__goto:function(a){null!=this.__symbol&&(1>a?a=1:a>this.__totalFrames&&(a=this.__totalFrames),this.__currentFrame=a,this.enterFrame(0))},__resolveFrameReference:function(a){if("number"==typeof a&&(a|0)===a)return a;if("string"==typeof a){for(var c=0,b=this.__currentLabels;c>>7;if(!b&&0!=e)throw new F(new wd("ATF Cube map not expected"));if(b&&1!=e)throw new F(new wd("ATF Cube map expected"));this.cubeMap=b;this.atfFormat=d&127;3!=this.atfFormat&&5!=this.atfFormat&&Qa.warn("Only ATF block compressed textures without JPEG-XR+LZMA are supported", {fileName:"openfl/_internal/formats/atf/ATFReader.hx",lineNumber:96,className:"openfl._internal.formats.atf.ATFReader",methodName:"readHeader"});this.width=1<this.version?3:4,b=0,f=this.cubeMap?6:1;b>l,this.height>>l,n,k)}}},__readUInt24:function(a){var c=a.readUnsignedByte()<<16;c|=a.readUnsignedByte()<<8;return c|= a.readUnsignedByte()},__readUInt32:function(a){var c=a.readUnsignedByte()<<24;c|=a.readUnsignedByte()<<16;c|=a.readUnsignedByte()<<8;return c|=a.readUnsignedByte()},__class__:ol};var rb=function(){};k["openfl._internal.formats.html.HTMLParser"]=rb;rb.__name__="openfl._internal.formats.html.HTMLParser";rb.parse=function(a,c,b){a=a.replace(rb.__regexBreakTag.r,"\n");a=a.replace(rb.__regexEntities[0].r,'"');a=a.replace(rb.__regexEntities[1].r,"'");a=a.replace(rb.__regexEntities[2].r,"&");a=a.replace(rb.__regexEntities[5].r, " ");var d=a.split("<");if(1==d.length)a=a.replace(rb.__regexHTMLTag.r,""),1"),b=b.get(0),b.format=c,b.start=0,b.end=a.length;else{b.splice(0,b.get_length());a="";for(var e,g=0,h=d.length;g");d[l]=e}e=[c.clone()];g=[];l=!1;for(h=0;h"),n=m+1,k=t.indexOf(" ");k=t.substring(p?1:0,-1=this.__lifetime?(this.__bitmapData.h[b.width].h[b.height].remove(b),b.dispose(),this.__bitmapDataAge.remove(b),A.remove(this.__bitmapDataList,b)):-1=a.length||a[c]!=b)&&(this.__dirty=!0);a[c]=b},__replace_openfl_Vector_Int:function(a,c,b){!this.__dirty&&(c>=a.length||a[c]!=b)&&(this.__dirty=!0);a[c]=b},__replace_openfl_Vector_Float:function(a,c,b){!this.__dirty&&(c>=a.length||a[c]!=b)&&(this.__dirty=!0);a[c]=b},__replace_openfl__internal_renderer_ShaderBuffer:function(a,c,b){!this.__dirty&&(c>=a.length||a[c]!=b)&&(this.__dirty=!0);a[c]=b},__replace_openfl_display_JointStyle:function(a, c,b){!this.__dirty&&(c>=a.length||a[c]!=b)&&(this.__dirty=!0);a[c]=b},__replace_openfl_display_CapsStyle:function(a,c,b){!this.__dirty&&(c>=a.length||a[c]!=b)&&(this.__dirty=!0);a[c]=b},__replace_openfl_display_LineScaleMode:function(a,c,b){!this.__dirty&&(c>=a.length||a[c]!=b)&&(this.__dirty=!0);a[c]=b},__replace_Bool:function(a,c,b){!this.__dirty&&(c>=a.length||a[c]!=b)&&(this.__dirty=!0);a[c]=b},__replace_openfl_display_InterpolationMethod:function(a,c,b){!this.__dirty&&(c>=a.length||a[c]!=b)&& (this.__dirty=!0);a[c]=b},__replace_openfl_display_SpreadMethod:function(a,c,b){!this.__dirty&&(c>=a.length||a[c]!=b)&&(this.__dirty=!0);a[c]=b},__replace_Array_Float:function(a,c,b){!this.__dirty&&(c>=a.length||a[c]!=b)&&(this.__dirty=!0);a[c]=b},__replace_Array_Int:function(a,c,b){!this.__dirty&&(c>=a.length||a[c]!=b)&&(this.__dirty=!0);a[c]=b},__replace_openfl_display_GradientType:function(a,c,b){!this.__dirty&&(c>=a.length||a[c]!=b)&&(this.__dirty=!0);a[c]=b},__replace_Int:function(a,c,b){!this.__dirty&& (c>=a.length||a[c]!=b)&&(this.__dirty=!0);a[c]=b},__replace_Float:function(a,c,b){!this.__dirty&&(c>=a.length||a[c]!=b)&&(this.__dirty=!0);a[c]=b},__replace_openfl__internal_renderer_DrawCommandType:function(a,c,b){!this.__dirty&&(c>=a.length||a[c]!=b)&&(this.__dirty=!0);a[c]=b},dirty:null,types:null,b:null,copyOnWrite:null,f:null,ff:null,i:null,ii:null,o:null,t_i:null,b_i:null,f_i:null,ff_i:null,i_i:null,ii_i:null,o_i:null,objVersions:null,__lastLength:null,__dirty:null,append:function(a){if(0== this.get_length())return this.types=a.types,this.b=a.b,this.i=a.i,this.f=a.f,this.o=a.o,this.ff=a.ff,this.ii=a.ii,this.t_i=a.t_i,this.b_i=a.b_i,this.f_i=a.f_i,this.ff_i=a.ff_i,this.i_i=a.i_i,this.ii_i=a.ii_i,this.o_i=a.o_i,this.objVersions=a.objVersions,this.copyOnWrite=a.copyOnWrite=!0,a;for(var c=new ug(a),b=0,f=a.types;b=d.length||d[g]!=h)&&(this.__dirty=!0);d[g]=h;d=this.o;g=this.o_i++;!this.__dirty&&(g>=d.length||a!=d[g]||a.image.version!=this.objVersions[g])&&(this.__dirty=!0);for(d[g]=a;this.objVersions.length=a.length)&&c.equals(a[d])||(this.__dirty=!0);a[d]=c;c=this.b;a=this.b_i++;!this.__dirty&&(a>=c.length||c[a]!=b)&&(this.__dirty=!0);c[a]= b;b=this.b;c=this.b_i++;!this.__dirty&&(c>=b.length||b[c]!=f)&&(this.__dirty=!0);b[c]=f},beginFill:function(a,c){this.prepareWrite();var b=this.types,f=this.t_i++,e=la.BEGIN_FILL;!this.__dirty&&(f>=b.length||b[f]!=e)&&(this.__dirty=!0);b[f]=e;b=this.i;f=this.i_i++;!this.__dirty&&(f>=b.length||b[f]!=a)&&(this.__dirty=!0);b[f]=a;a=this.f;b=this.f_i++;!this.__dirty&&(b>=a.length||a[b]!=c)&&(this.__dirty=!0);a[b]=c},beginGradientFill:function(a,c,b,f,e,g,h,l){this.prepareWrite();var d=this.types,p=this.t_i++, m=la.BEGIN_GRADIENT_FILL;!this.__dirty&&(p>=d.length||d[p]!=m)&&(this.__dirty=!0);d[p]=m;d=this.o;p=this.o_i++;!this.__dirty&&(p>=d.length||d[p]!=a)&&(this.__dirty=!0);d[p]=a;a=this.ii;d=this.ii_i++;!this.__dirty&&(d>=a.length||a[d]!=c)&&(this.__dirty=!0);a[d]=c;c=this.ff;a=this.ff_i++;!this.__dirty&&(a>=c.length||c[a]!=b)&&(this.__dirty=!0);c[a]=b;b=this.ii;c=this.ii_i++;!this.__dirty&&(c>=b.length||b[c]!=f)&&(this.__dirty=!0);b[c]=f;f=this.o;b=this.o_i++;this.__dirty||!(b>=f.length)&&e.equals(f[b])|| (this.__dirty=!0);f[b]=e;e=this.o;f=this.o_i++;!this.__dirty&&(f>=e.length||e[f]!=g)&&(this.__dirty=!0);e[f]=g;g=this.o;e=this.o_i++;!this.__dirty&&(e>=g.length||g[e]!=h)&&(this.__dirty=!0);g[e]=h;h=this.f;g=this.f_i++;!this.__dirty&&(g>=h.length||h[g]!=l)&&(this.__dirty=!0);h[g]=l},beginShaderFill:function(a){this.prepareWrite();var c=this.types,b=this.t_i++,f=la.BEGIN_SHADER_FILL;!this.__dirty&&(b>=c.length||c[b]!=f)&&(this.__dirty=!0);c[b]=f;c=this.o;b=this.o_i++;!this.__dirty&&(b>=c.length||c[b]!= a)&&(this.__dirty=!0);c[b]=a},clear:function(){this.o_i=this.ii_i=this.i_i=this.ff_i=this.f_i=this.b_i=this.t_i=0},copy:function(){var a=new Xe;a.append(this);return a},cubicCurveTo:function(a,c,b,f,e,g){this.prepareWrite();var d=this.types,l=this.t_i++,t=la.CUBIC_CURVE_TO;!this.__dirty&&(l>=d.length||d[l]!=t)&&(this.__dirty=!0);d[l]=t;d=this.f;l=this.f_i++;!this.__dirty&&(l>=d.length||d[l]!=a)&&(this.__dirty=!0);d[l]=a;a=this.f;d=this.f_i++;!this.__dirty&&(d>=a.length||a[d]!=c)&&(this.__dirty=!0); a[d]=c;c=this.f;a=this.f_i++;!this.__dirty&&(a>=c.length||c[a]!=b)&&(this.__dirty=!0);c[a]=b;b=this.f;c=this.f_i++;!this.__dirty&&(c>=b.length||b[c]!=f)&&(this.__dirty=!0);b[c]=f;f=this.f;b=this.f_i++;!this.__dirty&&(b>=f.length||f[b]!=e)&&(this.__dirty=!0);f[b]=e;e=this.f;f=this.f_i++;!this.__dirty&&(f>=e.length||e[f]!=g)&&(this.__dirty=!0);e[f]=g},curveTo:function(a,c,b,f){this.prepareWrite();var d=this.types,g=this.t_i++,h=la.CURVE_TO;!this.__dirty&&(g>=d.length||d[g]!=h)&&(this.__dirty=!0);d[g]= h;d=this.f;g=this.f_i++;!this.__dirty&&(g>=d.length||d[g]!=a)&&(this.__dirty=!0);d[g]=a;a=this.f;d=this.f_i++;!this.__dirty&&(d>=a.length||a[d]!=c)&&(this.__dirty=!0);a[d]=c;c=this.f;a=this.f_i++;!this.__dirty&&(a>=c.length||c[a]!=b)&&(this.__dirty=!0);c[a]=b;b=this.f;c=this.f_i++;!this.__dirty&&(c>=b.length||b[c]!=f)&&(this.__dirty=!0);b[c]=f},destroy:function(){this.ii=this.ff=this.o=this.f=this.i=this.b=this.types=null},drawCircle:function(a,c,b){this.prepareWrite();var d=this.types,e=this.t_i++, g=la.DRAW_CIRCLE;!this.__dirty&&(e>=d.length||d[e]!=g)&&(this.__dirty=!0);d[e]=g;d=this.f;e=this.f_i++;!this.__dirty&&(e>=d.length||d[e]!=a)&&(this.__dirty=!0);d[e]=a;a=this.f;d=this.f_i++;!this.__dirty&&(d>=a.length||a[d]!=c)&&(this.__dirty=!0);a[d]=c;c=this.f;a=this.f_i++;!this.__dirty&&(a>=c.length||c[a]!=b)&&(this.__dirty=!0);c[a]=b},drawEllipse:function(a,c,b,f){this.prepareWrite();var d=this.types,g=this.t_i++,h=la.DRAW_ELLIPSE;!this.__dirty&&(g>=d.length||d[g]!=h)&&(this.__dirty=!0);d[g]=h; d=this.f;g=this.f_i++;!this.__dirty&&(g>=d.length||d[g]!=a)&&(this.__dirty=!0);d[g]=a;a=this.f;d=this.f_i++;!this.__dirty&&(d>=a.length||a[d]!=c)&&(this.__dirty=!0);a[d]=c;c=this.f;a=this.f_i++;!this.__dirty&&(a>=c.length||c[a]!=b)&&(this.__dirty=!0);c[a]=b;b=this.f;c=this.f_i++;!this.__dirty&&(c>=b.length||b[c]!=f)&&(this.__dirty=!0);b[c]=f},drawQuads:function(a,c,b){this.prepareWrite();var d=this.types,e=this.t_i++,g=la.DRAW_QUADS;!this.__dirty&&(e>=d.length||d[e]!=g)&&(this.__dirty=!0);d[e]=g; d=this.o;e=this.o_i++;!this.__dirty&&(e>=d.length||d[e]!=a)&&(this.__dirty=!0);d[e]=a;a=this.o;d=this.o_i++;!this.__dirty&&(d>=a.length||a[d]!=c)&&(this.__dirty=!0);a[d]=c;c=this.o;a=this.o_i++;!this.__dirty&&(a>=c.length||c[a]!=b)&&(this.__dirty=!0);c[a]=b},drawRect:function(a,c,b,f){this.prepareWrite();var d=this.types,g=this.t_i++,h=la.DRAW_RECT;!this.__dirty&&(g>=d.length||d[g]!=h)&&(this.__dirty=!0);d[g]=h;d=this.f;g=this.f_i++;!this.__dirty&&(g>=d.length||d[g]!=a)&&(this.__dirty=!0);d[g]=a; a=this.f;d=this.f_i++;!this.__dirty&&(d>=a.length||a[d]!=c)&&(this.__dirty=!0);a[d]=c;c=this.f;a=this.f_i++;!this.__dirty&&(a>=c.length||c[a]!=b)&&(this.__dirty=!0);c[a]=b;b=this.f;c=this.f_i++;!this.__dirty&&(c>=b.length||b[c]!=f)&&(this.__dirty=!0);b[c]=f},drawRoundRect:function(a,c,b,f,e,g){this.prepareWrite();var d=this.types,l=this.t_i++,t=la.DRAW_ROUND_RECT;!this.__dirty&&(l>=d.length||d[l]!=t)&&(this.__dirty=!0);d[l]=t;d=this.f;l=this.f_i++;!this.__dirty&&(l>=d.length||d[l]!=a)&&(this.__dirty= !0);d[l]=a;a=this.f;d=this.f_i++;!this.__dirty&&(d>=a.length||a[d]!=c)&&(this.__dirty=!0);a[d]=c;c=this.f;a=this.f_i++;!this.__dirty&&(a>=c.length||c[a]!=b)&&(this.__dirty=!0);c[a]=b;b=this.f;c=this.f_i++;!this.__dirty&&(c>=b.length||b[c]!=f)&&(this.__dirty=!0);b[c]=f;f=this.f;b=this.f_i++;!this.__dirty&&(b>=f.length||f[b]!=e)&&(this.__dirty=!0);f[b]=e;!this.__dirty&&(this.o_i>=this.o.length||this.o[this.o_i]!=g)&&(this.__dirty=!0);this.o[this.o_i++]=g},drawTriangles:function(a,c,b,f){this.prepareWrite(); var d=this.types,g=this.t_i++,h=la.DRAW_TRIANGLES;!this.__dirty&&(g>=d.length||d[g]!=h)&&(this.__dirty=!0);d[g]=h;d=this.o;g=this.o_i++;!this.__dirty&&(g>=d.length||d[g]!=a)&&(this.__dirty=!0);d[g]=a;a=this.o;d=this.o_i++;!this.__dirty&&(d>=a.length||a[d]!=c)&&(this.__dirty=!0);a[d]=c;c=this.o;a=this.o_i++;!this.__dirty&&(a>=c.length||c[a]!=b)&&(this.__dirty=!0);c[a]=b;b=this.o;c=this.o_i++;!this.__dirty&&(c>=b.length||b[c]!=f)&&(this.__dirty=!0);b[c]=f},endFill:function(){this.prepareWrite();var a= this.types,c=this.t_i++,b=la.END_FILL;!this.__dirty&&(c>=a.length||a[c]!=b)&&(this.__dirty=!0);a[c]=b},lineBitmapStyle:function(a,c,b,f){this.prepareWrite();var d=this.types,g=this.t_i++,h=la.LINE_BITMAP_STYLE;!this.__dirty&&(g>=d.length||d[g]!=h)&&(this.__dirty=!0);d[g]=h;d=this.o;g=this.o_i++;!this.__dirty&&(g>=d.length||a!=d[g]||a.image.version!=this.objVersions[g])&&(this.__dirty=!0);for(d[g]=a;this.objVersions.length=a.length)&&c.equals(a[d])||(this.__dirty=!0);a[d]=c;c=this.b;a=this.b_i++;!this.__dirty&&(a>=c.length||c[a]!=b)&&(this.__dirty=!0);c[a]=b;b=this.b;c=this.b_i++;!this.__dirty&&(c>=b.length||b[c]!=f)&&(this.__dirty=!0);b[c]=f},lineGradientStyle:function(a,c,b,f,e,g,h,l){this.prepareWrite();var d=this.types,p=this.t_i++,m=la.LINE_GRADIENT_STYLE;!this.__dirty&&(p>=d.length||d[p]!=m)&&(this.__dirty=!0);d[p]=m;d=this.o;p=this.o_i++;!this.__dirty&&(p>=d.length||d[p]!=a)&&(this.__dirty= !0);d[p]=a;a=this.ii;d=this.ii_i++;!this.__dirty&&(d>=a.length||a[d]!=c)&&(this.__dirty=!0);a[d]=c;c=this.ff;a=this.ff_i++;!this.__dirty&&(a>=c.length||c[a]!=b)&&(this.__dirty=!0);c[a]=b;b=this.ii;c=this.ii_i++;!this.__dirty&&(c>=b.length||b[c]!=f)&&(this.__dirty=!0);b[c]=f;f=this.o;b=this.o_i++;this.__dirty||!(b>=f.length)&&e.equals(f[b])||(this.__dirty=!0);f[b]=e;e=this.o;f=this.o_i++;!this.__dirty&&(f>=e.length||e[f]!=g)&&(this.__dirty=!0);e[f]=g;g=this.o;e=this.o_i++;!this.__dirty&&(e>=g.length|| g[e]!=h)&&(this.__dirty=!0);g[e]=h;h=this.f;g=this.f_i++;!this.__dirty&&(g>=h.length||h[g]!=l)&&(this.__dirty=!0);h[g]=l},lineStyle:function(a,c,b,f,e,g,h,l){this.prepareWrite();var d=this.types,p=this.t_i++,m=la.LINE_STYLE;!this.__dirty&&(p>=d.length||d[p]!=m)&&(this.__dirty=!0);d[p]=m;!this.__dirty&&(this.o_i>=this.o.length||this.o[this.o_i]!=a)&&(this.__dirty=!0);this.o[this.o_i++]=a;a=this.i;d=this.i_i++;!this.__dirty&&(d>=a.length||a[d]!=c)&&(this.__dirty=!0);a[d]=c;c=this.f;a=this.f_i++;!this.__dirty&& (a>=c.length||c[a]!=b)&&(this.__dirty=!0);c[a]=b;b=this.b;c=this.b_i++;!this.__dirty&&(c>=b.length||b[c]!=f)&&(this.__dirty=!0);b[c]=f;f=this.o;b=this.o_i++;!this.__dirty&&(b>=f.length||f[b]!=e)&&(this.__dirty=!0);f[b]=e;e=this.o;f=this.o_i++;!this.__dirty&&(f>=e.length||e[f]!=g)&&(this.__dirty=!0);e[f]=g;g=this.o;e=this.o_i++;!this.__dirty&&(e>=g.length||g[e]!=h)&&(this.__dirty=!0);g[e]=h;h=this.f;g=this.f_i++;!this.__dirty&&(g>=h.length||h[g]!=l)&&(this.__dirty=!0);h[g]=l},lineTo:function(a,c){this.prepareWrite(); var b=this.types,f=this.t_i++,e=la.LINE_TO;!this.__dirty&&(f>=b.length||b[f]!=e)&&(this.__dirty=!0);b[f]=e;b=this.f;f=this.f_i++;!this.__dirty&&(f>=b.length||b[f]!=a)&&(this.__dirty=!0);b[f]=a;a=this.f;b=this.f_i++;!this.__dirty&&(b>=a.length||a[b]!=c)&&(this.__dirty=!0);a[b]=c},markAsClean:function(){this.__dirty=!1},moveTo:function(a,c){this.prepareWrite();var b=this.types,f=this.t_i++,e=la.MOVE_TO;!this.__dirty&&(f>=b.length||b[f]!=e)&&(this.__dirty=!0);b[f]=e;b=this.f;f=this.f_i++;!this.__dirty&& (f>=b.length||b[f]!=a)&&(this.__dirty=!0);b[f]=a;a=this.f;b=this.f_i++;!this.__dirty&&(b>=a.length||a[b]!=c)&&(this.__dirty=!0);a[b]=c},prepareWrite:function(){this.copyOnWrite&&(this.types=this.types.slice(),this.b=this.b.slice(),this.i=this.i.slice(),this.f=this.f.slice(),this.o=this.o.slice(),this.ff=this.ff.slice(),this.ii=this.ii.slice(),this.objVersions=this.objVersions.slice(),this.copyOnWrite=!1)},overrideBlendMode:function(a){this.prepareWrite();this.types.push(la.OVERRIDE_BLEND_MODE);this.o.push(a)}, overrideMatrix:function(a){this.prepareWrite();var c=this.types,b=this.t_i++,f=la.OVERRIDE_MATRIX;!this.__dirty&&(b>=c.length||c[b]!=f)&&(this.__dirty=!0);c[b]=f;c=this.o;b=this.o_i++;this.__dirty||!(b>=c.length)&&a.equals(c[b])||(this.__dirty=!0);c[b]=a},windingEvenOdd:function(){this.prepareWrite();var a=this.types,c=this.t_i++,b=la.WINDING_EVEN_ODD;!this.__dirty&&(c>=a.length||a[c]!=b)&&(this.__dirty=!0);a[c]=b},windingNonZero:function(){this.prepareWrite();var a=this.types,c=this.t_i++,b=la.WINDING_NON_ZERO; !this.__dirty&&(c>=a.length||a[c]!=b)&&(this.__dirty=!0);a[c]=b},get_dirty:function(){return this.__dirty},get_length:function(){return this.t_i},__initFromEmpty:function(){this.types=Xe.empty.types;this.b=Xe.empty.b;this.i=Xe.empty.i;this.f=Xe.empty.f;this.o=Xe.empty.o;this.ff=Xe.empty.ff;this.ii=Xe.empty.ii;this.objVersions=Xe.empty.objVersions;this.copyOnWrite=!0},__endBuffer:function(){this.__lastLength!=this.t_i&&(this.__dirty=!0);this.__lastLength=this.t_i},__replaceMtx:function(a,c,b){this.__dirty|| !(c>=a.length)&&b.equals(a[c])||(this.__dirty=!0);a[c]=b},__replaceBmp:function(a,c,b){!this.__dirty&&(c>=a.length||b!=a[c]||b.image.version!=this.objVersions[c])&&(this.__dirty=!0);for(a[c]=b;this.objVersions.lengththis.paramData.length&&(f=this.paramDataLength,f=null!=f?new Float32Array(f):null,f.set(this.paramData),this.paramData=f));h=g=e=f=0;l=0;for(t=this.paramCount;l=a.__worldAlpha)){this.__updateCacheBitmap(a,!1);if(null==a.__cacheBitmap||a.__isCacheBitmapRender)Si.render(a,this);else if(c=a.__cacheBitmap,c.__renderable&&(b=this.__getAlpha(c.__worldAlpha),0=a.__worldAlpha||null==a.__currentState||(this.__pushMaskObject(a),this.__renderDisplayObject(a.__currentState),this.__popMaskObject(a))},__renderTextField:function(a){this.__updateCacheBitmap(a,!1);if(null==a.__cacheBitmap||a.__isCacheBitmapRender)fr.render(a,this,a.__worldTransform),Si.render(a,this);else if(a=a.__cacheBitmap,a.__renderable){var c= this.__getAlpha(a.__worldAlpha);if(0a.__cacheBitmapData.width||m>a.__cacheBitmapData.height?(l=Math.ceil(Math.max(1.25*p,a.__cacheBitmapData.width)),t=Math.ceil(Math.max(1.25*m,a.__cacheBitmapData.height)),h=!0):(l=a.__cacheBitmapData.width,t=a.__cacheBitmapData.height):(l=p,t=m));if(h)if(a.__cacheBitmapBackground=a.opaqueBackground,.5<=p&&.5<=m){var q=null!=a.opaqueBackground&&(l!=p||t!=m),u=null!=a.opaqueBackground? -16777216|a.opaqueBackground:0,v=q?0:u;null==a.__cacheBitmapData||l>a.__cacheBitmapData.width||t>a.__cacheBitmapData.height?(a.__cacheBitmapData=new ra(l,t,!0,v),null==a.__cacheBitmap&&(a.__cacheBitmap=new Rc),a.__cacheBitmap.__bitmapData=a.__cacheBitmapData,a.__cacheBitmapRendererSW=null):a.__cacheBitmapData.fillRect(a.__cacheBitmapData.rect,v);q&&(b.setTo(0,0,p,m),a.__cacheBitmapData.fillRect(b,u))}else return Sb.__pool.release(g),a.__cacheBitmap=null,a.__cacheBitmapData=null,a.__cacheBitmapData2= null,a.__cacheBitmapData3=null,a.__cacheBitmapRendererSW=null,!0;else a.__cacheBitmapData=a.__cacheBitmap.get_bitmapData(),a.__cacheBitmapData2=null,a.__cacheBitmapData3=null;c&&(a.__cacheBitmap.__worldTransform.copyFrom(a.__worldTransform),e==a.__renderTransform?(a.__cacheBitmap.__renderTransform.identity(),a.__cacheBitmap.__renderTransform.tx=a.__renderTransform.tx+n,a.__cacheBitmap.__renderTransform.ty=a.__renderTransform.ty+k):(a.__cacheBitmap.__renderTransform.copyFrom(a.__cacheBitmapMatrix), a.__cacheBitmap.__renderTransform.invert(),a.__cacheBitmap.__renderTransform.concat(a.__renderTransform),a.__cacheBitmap.__renderTransform.tx+=n,a.__cacheBitmap.__renderTransform.ty+=k));a.__cacheBitmap.smoothing=this.__allowSmoothing;a.__cacheBitmap.__renderable=a.__renderable;a.__cacheBitmap.__worldAlpha=a.__worldAlpha;a.__cacheBitmap.__worldBlendMode=a.__worldBlendMode;a.__cacheBitmap.__worldShader=a.__worldShader;a.__cacheBitmap.set_mask(a.__mask);if(h){if(null==a.__cacheBitmapRendererSW||"cairo"!= a.__cacheBitmapRendererSW.__type)null==a.__cacheBitmapData.image&&(a.__cacheBitmapData=new ra(l,t,!0,null!=a.opaqueBackground?-16777216|a.opaqueBackground:0),a.__cacheBitmap.__bitmapData=a.__cacheBitmapData),a.__cacheBitmapRendererSW=new Sj(new Gj(a.__cacheBitmapData.getSurface())),a.__cacheBitmapRendererSW.__worldTransform=new Ha,a.__cacheBitmapRendererSW.__worldColorTransform=new Sb;null==a.__cacheBitmapColorTransform&&(a.__cacheBitmapColorTransform=new Sb);a.__cacheBitmapRendererSW.__stage=a.stage; a.__cacheBitmapRendererSW.__allowSmoothing=this.__allowSmoothing;S.__cast(a.__cacheBitmapRendererSW,Sj).__setBlendMode(10);a.__cacheBitmapRendererSW.__worldAlpha=1/a.__worldAlpha;a.__cacheBitmapRendererSW.__worldTransform.copyFrom(a.__renderTransform);a.__cacheBitmapRendererSW.__worldTransform.invert();a.__cacheBitmapRendererSW.__worldTransform.concat(a.__cacheBitmapMatrix);a.__cacheBitmapRendererSW.__worldTransform.tx-=n;a.__cacheBitmapRendererSW.__worldTransform.ty-=k;a.__cacheBitmapRendererSW.__worldColorTransform.__copyFrom(g); a.__cacheBitmapRendererSW.__worldColorTransform.__invert();a.__isCacheBitmapRender=!0;a.__cacheBitmapRendererSW.__drawBitmapData(a.__cacheBitmapData,a,null);if(f){m=f=!1;e=0;for(h=a.__filters;ea.__cacheBitmapData2.width||t>a.__cacheBitmapData2.height?a.__cacheBitmapData2=new ra(l,t,!0,0):a.__cacheBitmapData2.fillRect(a.__cacheBitmapData2.rect, 0),h=a.__cacheBitmapData2):h=e;m&&(null==a.__cacheBitmapData3||null==a.__cacheBitmapData3.image||l>a.__cacheBitmapData3.width||t>a.__cacheBitmapData3.height?a.__cacheBitmapData3=new ra(l,t,!0,0):a.__cacheBitmapData3.fillRect(a.__cacheBitmapData3.rect,0),p=a.__cacheBitmapData3);null==a.__tempPoint&&(a.__tempPoint=new qa);l=a.__tempPoint;t=0;for(m=a.__filters;t=b)){c.__setBlendMode(a.__worldBlendMode);c.__pushMaskObject(a);var f=ia.__pool.get();f.setTo(0,0,a.__width,a.__height);c.__pushMaskRect(f,a.__renderTransform);Tj.renderTileContainer(a.__group,c,a.__renderTransform,a.__tileset,c.__allowSmoothing&&a.smoothing,a.tileAlphaEnabled, b,a.tileBlendModeEnabled,a.__worldBlendMode,null,null,null,f,new $h);c.__popMaskRect();c.__popMaskObject(a);ia.__pool.release(f)}}};Tj.renderTileContainer=function(a,c,b,f,e,g,h,l,t,p,m,n,k,q){var d=c.cairo,u=Ha.__pool.get();a=a.__tiles;for(var v,w,r,y=null,x,I=0;I=w))if(g||(w=1),l&&(y=null!=x.__blendMode? x.__blendMode:t),0=x.width||0>=x.height)continue}else{x=v.__data[r];if(null==x)continue;k.setTo(x.x,x.y,x.width,x.height);x=k}v=v.__bitmapData;null!=v&&(v!=p&&(m=v.getSurface(),n=Hc.createForSurface(m),Hc.set_filter(n,e?1:3),d.set_source(n),p=v),l&&c.__setBlendMode(y),c.applyMatrix(u,d),q.tx=x.x,q.ty=x.y,Hc.set_matrix(n,q),d.set_source(n),d.save(),d.newPath(),d.rectangle(0, 0,x.width,x.height),d.clip(),1==w?d.paint():d.paintWithAlpha(w),d.restore())}Ha.__pool.release(u)};var uw=function(){};k["openfl._internal.renderer.canvas.CanvasBitmap"]=uw;uw.__name__="openfl._internal.renderer.canvas.CanvasBitmap";uw.render=function(a,c){if(a.__renderable){var b=c.__getAlpha(a.__worldAlpha);if(0=c.__getAlpha(a.__worldAlpha))){if(null!=a.opaqueBackground&&!a.__isCacheBitmapRender&&0>>16&255)+","+(f>>>8&255)+","+(f&255)+")";b.fillRect(0,0,a.get_width(),a.get_height());c.__popMaskObject(a)}if(null!=a.__graphics&& a.__renderable){var e=c.__getAlpha(a.__worldAlpha);if(!(0>=e)){var g=a.__graphics;if(null!=g){C.render(g,c);var h=g.__width,l=g.__height;b=g.__canvas;if(null!=b&&g.__visible&&1<=h&&1<=l){var t=g.__worldTransform;f=c.context;var p=a.__scrollRect,m=a.__worldScale9Grid;if(null==p||0>>16,n=(p&65280)>>>8,p&=255,k=f[k]/255,0>k&&(k=0),1b/2&&(e=b/2);g>f/2&&(g=f/2);b=a+b;f=c+f;var d=-e+.7071067811865476*e,l=-e+.41421356237309503*e,t=-g+.7071067811865476*g,p=-g+.41421356237309503*g;C.context.moveTo(b,f-g);C.context.quadraticCurveTo(b,f+p,b+d,f+t);C.context.quadraticCurveTo(b+l,f,b-e,f);C.context.lineTo(a+ e,f);C.context.quadraticCurveTo(a-l,f,a-d,f+t);C.context.quadraticCurveTo(a,f+p,a,f-g);C.context.lineTo(a,c+g);C.context.quadraticCurveTo(a,c-p,a-d,c-t);C.context.quadraticCurveTo(a-l,c,a+e,c);C.context.lineTo(b-e,c);C.context.quadraticCurveTo(b+l,c,b+d,c-t);C.context.quadraticCurveTo(b,c-p,b,c+g);C.context.lineTo(b,f-g)};C.endFill=function(){C.context.beginPath();C.playCommands(C.fillCommands,!1);C.fillCommands.clear()};C.endStroke=function(){C.context.beginPath();C.playCommands(C.strokeCommands, !0);C.context.closePath();C.strokeCommands.clear()};C.hitTest=function(a,c,b){C.bounds=a.__bounds;C.graphics=a;if(0==a.__commands.get_length()||null==C.bounds||0>=C.bounds.width||0>=C.bounds.height)return!1;C.hitTesting=!0;var d=a.__renderTransform,e=c*d.b+b*d.d+d.ty;c=c*d.a+b*d.c+d.tx-(C.bounds.x*d.a+C.bounds.y*d.c+d.tx);b=e-(C.bounds.x*d.b+C.bounds.y*d.d+d.ty);e=a.__canvas;var g=a.__context;a.__canvas=C.hitTestCanvas;a.__context=C.hitTestContext;C.context=a.__context;C.context.setTransform(d.a, d.b,d.c,d.d,d.tx,d.ty);C.fillCommands.clear();C.strokeCommands.clear();C.hasFill=!1;C.hasStroke=!1;C.bitmapFill=null;C.bitmapRepeat=!1;C.windingRule="evenodd";d=new ug(a.__commands);for(var h=a.__commands.types,l=0,t=a.__commands.get_length();l(b-a)*(g-c)-(f-c)*(e-a)};C.normalizeUVT=function(a,c){null==c&&(c=!1);for(var b=-Infinity,f,e=a.get_length(),g=1,h=e+1;gD.buffer.f[D.fPos])C.hasFill= !1;else{if(1==D.buffer.f[D.fPos]){var A=aa.hex(D.buffer.i[D.iPos]&16777215,6);C.context.fillStyle="#"+A}else{var F=(D.buffer.i[D.iPos]&16711680)>>>16;var E=(D.buffer.i[D.iPos]&65280)>>>8;var G=D.buffer.i[D.iPos]&255;C.context.fillStyle="rgba("+F+", "+E+", "+G+", "+D.buffer.f[D.fPos]+")"}C.bitmapFill=null;C.setSmoothing(!0);C.hasFill=!0}break;case 2:switch(n.prev._hx_index){case 0:n.oPos+=2;n.bPos+=2;break;case 1:n.iPos+=1;n.fPos+=1;break;case 2:n.oPos+=4;n.iiPos+=2;n.ffPos+=1;n.fPos+=1;break;case 3:n.oPos+= 1;break;case 4:n.fPos+=6;break;case 5:n.fPos+=4;break;case 6:n.fPos+=3;break;case 7:n.fPos+=4;break;case 8:n.oPos+=3;break;case 9:n.fPos+=4;break;case 10:n.fPos+=5;n.oPos+=1;break;case 12:n.oPos+=4;break;case 14:n.oPos+=2;n.bPos+=2;break;case 15:n.oPos+=4;n.iiPos+=2;n.ffPos+=1;n.fPos+=1;break;case 16:n.oPos+=4;n.iPos+=1;n.fPos+=2;n.bPos+=1;break;case 17:n.fPos+=2;break;case 18:n.fPos+=2;break;case 19:n.oPos+=1;break;case 20:n.oPos+=1}n.prev=la.BEGIN_GRADIENT_FILL;var H=n;C.context.fillStyle=C.createGradientPattern(H.buffer.o[H.oPos], H.buffer.ii[H.iiPos],H.buffer.ff[H.ffPos],H.buffer.ii[H.iiPos+1],H.buffer.o[H.oPos+1],H.buffer.o[H.oPos+2],H.buffer.o[H.oPos+3],H.buffer.f[H.fPos]);C.bitmapFill=null;C.setSmoothing(!0);C.hasFill=!0;break;case 3:switch(n.prev._hx_index){case 0:n.oPos+=2;n.bPos+=2;break;case 1:n.iPos+=1;n.fPos+=1;break;case 2:n.oPos+=4;n.iiPos+=2;n.ffPos+=1;n.fPos+=1;break;case 3:n.oPos+=1;break;case 4:n.fPos+=6;break;case 5:n.fPos+=4;break;case 6:n.fPos+=3;break;case 7:n.fPos+=4;break;case 8:n.oPos+=3;break;case 9:n.fPos+= 4;break;case 10:n.fPos+=5;n.oPos+=1;break;case 12:n.oPos+=4;break;case 14:n.oPos+=2;n.bPos+=2;break;case 15:n.oPos+=4;n.iiPos+=2;n.ffPos+=1;n.fPos+=1;break;case 16:n.oPos+=4;n.iPos+=1;n.fPos+=2;n.bPos+=1;break;case 17:n.fPos+=2;break;case 18:n.fPos+=2;break;case 19:n.oPos+=1;break;case 20:n.oPos+=1}n.prev=la.BEGIN_SHADER_FILL;var J=n,L=J.buffer.o[J.oPos];0=6*fa?ea=T=!0:K.get_length()>=4*fa?T=!0:K.get_length()>=2*fa&&(ea=!0));var Wb=ia.__pool.get(),ba=Ha.__pool.get(),Ke=C.graphics.__renderTransform;C.context.save();for(var ka=0,na=fa;kapa||(Wb.setTo(Z.get(pa), Z.get(pa+1),Z.get(pa+2),Z.get(pa+3)),0>=Wb.width||0>=Wb.height))){if(T&&ea){var ma=6*oa;ba.setTo(K.get(ma),K.get(ma+1),K.get(ma+2),K.get(ma+3),K.get(ma+4),K.get(ma+5))}else T?(ma=4*oa,ba.setTo(K.get(ma),K.get(ma+1),K.get(ma+2),K.get(ma+3),Wb.x,Wb.y)):ea?(ma=2*oa,ba.tx=K.get(ma),ba.ty=K.get(ma+1)):(ba.tx=Wb.x,ba.ty=Wb.y);ba.tx+=e-b;ba.ty+=g-f;ba.concat(Ke);C.context.setTransform(ba.a,ba.b,ba.c,ba.d,ba.tx,ba.ty);null!=C.bitmapFill?C.context.drawImage(C.bitmapFill.image.get_src(),Wb.x,Wb.y,Wb.width, Wb.height,0,0,Wb.width,Wb.height):C.context.fillRect(0,0,Wb.width,Wb.height)}}ia.__pool.release(Wb);Ha.__pool.release(ba);C.context.restore();break;case 9:switch(n.prev._hx_index){case 0:n.oPos+=2;n.bPos+=2;break;case 1:n.iPos+=1;n.fPos+=1;break;case 2:n.oPos+=4;n.iiPos+=2;n.ffPos+=1;n.fPos+=1;break;case 3:n.oPos+=1;break;case 4:n.fPos+=6;break;case 5:n.fPos+=4;break;case 6:n.fPos+=3;break;case 7:n.fPos+=4;break;case 8:n.oPos+=3;break;case 9:n.fPos+=4;break;case 10:n.fPos+=5;n.oPos+=1;break;case 12:n.oPos+= 4;break;case 14:n.oPos+=2;n.bPos+=2;break;case 15:n.oPos+=4;n.iiPos+=2;n.ffPos+=1;n.fPos+=1;break;case 16:n.oPos+=4;n.iPos+=1;n.fPos+=2;n.bPos+=1;break;case 17:n.fPos+=2;break;case 18:n.fPos+=2;break;case 19:n.oPos+=1;break;case 20:n.oPos+=1}n.prev=la.DRAW_RECT;var ha=n;var ra=!1;if(null!=C.bitmapFill&&!C.hitTesting){var ja=u=q=k=0;var ta=!0;if(null!=C.pendingMatrix)if(0!=C.pendingMatrix.b||0!=C.pendingMatrix.c)ta=!1;else{null==v&&(v=qa.__pool.get());null==w&&(w=qa.__pool.get());v.setTo(ha.buffer.f[ha.fPos], ha.buffer.f[ha.fPos+1]);var Hd=C.inversePendingMatrix,wa=v.x,ya=v.y;v.x=wa*Hd.a+ya*Hd.c+Hd.tx;v.y=wa*Hd.b+ya*Hd.d+Hd.ty;w.setTo(ha.buffer.f[ha.fPos]+ha.buffer.f[ha.fPos+2],ha.buffer.f[ha.fPos+1]+ha.buffer.f[ha.fPos+3]);var jc=C.inversePendingMatrix,Pa=w.x,Ee=w.y;w.x=Pa*jc.a+Ee*jc.c+jc.tx;w.y=Pa*jc.b+Ee*jc.d+jc.ty;k=v.y;ja=v.x;u=w.y;q=w.x}else k=ha.buffer.f[ha.fPos+1],ja=ha.buffer.f[ha.fPos],u=ha.buffer.f[ha.fPos+1]+ha.buffer.f[ha.fPos+3],q=ha.buffer.f[ha.fPos]+ha.buffer.f[ha.fPos+2];ta&&0<=k&&0<= ja&&q<=C.bitmapFill.width&&u<=C.bitmapFill.height&&(ra=!0,C.hitTesting||C.context.drawImage(C.bitmapFill.image.get_src(),ja,k,q-ja,u-k,ha.buffer.f[ha.fPos]-b,ha.buffer.f[ha.fPos+1]-f,ha.buffer.f[ha.fPos+2],ha.buffer.f[ha.fPos+3]))}ra||(m=!0,C.context.rect(ha.buffer.f[ha.fPos]-b,ha.buffer.f[ha.fPos+1]-f,ha.buffer.f[ha.fPos+2],ha.buffer.f[ha.fPos+3]));break;case 10:switch(n.prev._hx_index){case 0:n.oPos+=2;n.bPos+=2;break;case 1:n.iPos+=1;n.fPos+=1;break;case 2:n.oPos+=4;n.iiPos+=2;n.ffPos+=1;n.fPos+= 1;break;case 3:n.oPos+=1;break;case 4:n.fPos+=6;break;case 5:n.fPos+=4;break;case 6:n.fPos+=3;break;case 7:n.fPos+=4;break;case 8:n.oPos+=3;break;case 9:n.fPos+=4;break;case 10:n.fPos+=5;n.oPos+=1;break;case 12:n.oPos+=4;break;case 14:n.oPos+=2;n.bPos+=2;break;case 15:n.oPos+=4;n.iiPos+=2;n.ffPos+=1;n.fPos+=1;break;case 16:n.oPos+=4;n.iPos+=1;n.fPos+=2;n.bPos+=1;break;case 17:n.fPos+=2;break;case 18:n.fPos+=2;break;case 19:n.oPos+=1;break;case 20:n.oPos+=1}n.prev=la.DRAW_ROUND_RECT;var Ga=n;m=!0; C.drawRoundRect(Ga.buffer.f[Ga.fPos]-b,Ga.buffer.f[Ga.fPos+1]-f,Ga.buffer.f[Ga.fPos+2],Ga.buffer.f[Ga.fPos+3],Ga.buffer.f[Ga.fPos+4],Ga.buffer.o[Ga.oPos]);break;case 12:switch(n.prev._hx_index){case 0:n.oPos+=2;n.bPos+=2;break;case 1:n.iPos+=1;n.fPos+=1;break;case 2:n.oPos+=4;n.iiPos+=2;n.ffPos+=1;n.fPos+=1;break;case 3:n.oPos+=1;break;case 4:n.fPos+=6;break;case 5:n.fPos+=4;break;case 6:n.fPos+=3;break;case 7:n.fPos+=4;break;case 8:n.oPos+=3;break;case 9:n.fPos+=4;break;case 10:n.fPos+=5;n.oPos+= 1;break;case 12:n.oPos+=4;break;case 14:n.oPos+=2;n.bPos+=2;break;case 15:n.oPos+=4;n.iiPos+=2;n.ffPos+=1;n.fPos+=1;break;case 16:n.oPos+=4;n.iPos+=1;n.fPos+=2;n.bPos+=1;break;case 17:n.fPos+=2;break;case 18:n.fPos+=2;break;case 19:n.oPos+=1;break;case 20:n.oPos+=1}n.prev=la.DRAW_TRIANGLES;var va=n,ua=va.buffer.o[va.oPos],xa=va.buffer.o[va.oPos+1],sa=va.buffer.o[va.oPos+2],Lc=null,za=null==C.bitmapFill;if(za&&null!=sa)break a;if(!za){if(null==sa){sa=Ja.toFloatVector(null);for(var Fa=0,Je=ua.get_length()/ 2|0;Fa(Ia-Na)*(Ua-Oa)-(Sa-Oa)*(Ta-Na)){Ba+=3;continue}break;case 2:if(!(0>(Ia-Na)*(Ua-Oa)-(Sa-Oa)*(Ta-Na))){Ba+=3;continue}}za?(C.context.beginPath(),C.context.moveTo(Na,Oa),C.context.lineTo(Ia,Sa),C.context.lineTo(Ta,Ua),C.context.closePath(), C.hitTesting||C.context.fill(C.windingRule),Ba+=3):(cb=sa.get(Ra)*Lc.width,db=sa.get(Xa)*Lc.width,fb=sa.get($a)*Lc.width,gb=sa.get(Va)*Lc.height,eb=sa.get(Za)*Lc.height,Ed=sa.get(ab)*Lc.height,jb=cb*(Ed-eb)-db*Ed+fb*eb+(db-fb)*gb,0==jb?(Ba+=3,C.context.restore()):(C.context.save(),C.context.beginPath(),C.context.moveTo(Na,Oa),C.context.lineTo(Ia,Sa),C.context.lineTo(Ta,Ua),C.context.closePath(),C.context.clip(),kb=-(gb*(Ta-Ia)-eb*Ta+Ed*Ia+(eb-Ed)*Na)/jb,mb=(eb*Ua+gb*(Sa-Ua)-Ed*Sa+(Ed-eb)*Oa)/jb,nb= (cb*(Ta-Ia)-db*Ta+fb*Ia+(db-fb)*Na)/jb,Qb=-(db*Ua+cb*(Sa-Ua)-fb*Sa+(fb-db)*Oa)/jb,pb=(cb*(Ed*Ia-eb*Ta)+gb*(db*Ta-fb*Ia)+(fb*eb-db*Ed)*Na)/jb,qb=(cb*(Ed*Sa-eb*Ua)+gb*(db*Ua-fb*Sa)+(fb*eb-db*Ed)*Oa)/jb,C.context.transform(kb,mb,nb,Qb,pb,qb),C.context.drawImage(Lc,0,0,Lc.width,Lc.height),C.context.restore(),Ba+=3))}break;case 14:switch(n.prev._hx_index){case 0:n.oPos+=2;n.bPos+=2;break;case 1:n.iPos+=1;n.fPos+=1;break;case 2:n.oPos+=4;n.iiPos+=2;n.ffPos+=1;n.fPos+=1;break;case 3:n.oPos+=1;break;case 4:n.fPos+= 6;break;case 5:n.fPos+=4;break;case 6:n.fPos+=3;break;case 7:n.fPos+=4;break;case 8:n.oPos+=3;break;case 9:n.fPos+=4;break;case 10:n.fPos+=5;n.oPos+=1;break;case 12:n.oPos+=4;break;case 14:n.oPos+=2;n.bPos+=2;break;case 15:n.oPos+=4;n.iiPos+=2;n.ffPos+=1;n.fPos+=1;break;case 16:n.oPos+=4;n.iPos+=1;n.fPos+=2;n.bPos+=1;break;case 17:n.fPos+=2;break;case 18:n.fPos+=2;break;case 19:n.oPos+=1;break;case 20:n.oPos+=1}n.prev=la.LINE_BITMAP_STYLE;var lb=n;c&&C.hasStroke&&C.closePath();C.context.moveTo(e- b,g-f);C.context.strokeStyle=C.createBitmapFill(lb.buffer.o[lb.oPos],lb.buffer.b[lb.bPos],lb.buffer.b[lb.bPos+1]);C.hasStroke=!0;break;case 15:switch(n.prev._hx_index){case 0:n.oPos+=2;n.bPos+=2;break;case 1:n.iPos+=1;n.fPos+=1;break;case 2:n.oPos+=4;n.iiPos+=2;n.ffPos+=1;n.fPos+=1;break;case 3:n.oPos+=1;break;case 4:n.fPos+=6;break;case 5:n.fPos+=4;break;case 6:n.fPos+=3;break;case 7:n.fPos+=4;break;case 8:n.oPos+=3;break;case 9:n.fPos+=4;break;case 10:n.fPos+=5;n.oPos+=1;break;case 12:n.oPos+=4; break;case 14:n.oPos+=2;n.bPos+=2;break;case 15:n.oPos+=4;n.iiPos+=2;n.ffPos+=1;n.fPos+=1;break;case 16:n.oPos+=4;n.iPos+=1;n.fPos+=2;n.bPos+=1;break;case 17:n.fPos+=2;break;case 18:n.fPos+=2;break;case 19:n.oPos+=1;break;case 20:n.oPos+=1}n.prev=la.LINE_GRADIENT_STYLE;var hb=n;c&&C.hasStroke&&C.closePath();C.context.moveTo(e-b,g-f);C.context.strokeStyle=C.createGradientPattern(hb.buffer.o[hb.oPos],hb.buffer.ii[hb.iiPos],hb.buffer.ff[hb.ffPos],hb.buffer.ii[hb.iiPos+1],hb.buffer.o[hb.oPos+1],hb.buffer.o[hb.oPos+ 2],hb.buffer.o[hb.oPos+3],hb.buffer.f[hb.fPos]);C.setSmoothing(!0);C.hasStroke=!0;break;case 16:switch(n.prev._hx_index){case 0:n.oPos+=2;n.bPos+=2;break;case 1:n.iPos+=1;n.fPos+=1;break;case 2:n.oPos+=4;n.iiPos+=2;n.ffPos+=1;n.fPos+=1;break;case 3:n.oPos+=1;break;case 4:n.fPos+=6;break;case 5:n.fPos+=4;break;case 6:n.fPos+=3;break;case 7:n.fPos+=4;break;case 8:n.oPos+=3;break;case 9:n.fPos+=4;break;case 10:n.fPos+=5;n.oPos+=1;break;case 12:n.oPos+=4;break;case 14:n.oPos+=2;n.bPos+=2;break;case 15:n.oPos+= 4;n.iiPos+=2;n.ffPos+=1;n.fPos+=1;break;case 16:n.oPos+=4;n.iPos+=1;n.fPos+=2;n.bPos+=1;break;case 17:n.fPos+=2;break;case 18:n.fPos+=2;break;case 19:n.oPos+=1;break;case 20:n.oPos+=1}n.prev=la.LINE_STYLE;var Ya=n;c&&C.hasStroke&&C.closePath(!0);C.context.moveTo(e-b,g-f);if(null==Ya.buffer.o[Ya.oPos])C.hasStroke=!1;else{C.context.lineWidth=0>>16,E=(Ya.buffer.i[Ya.iPos]&65280)>>>8,G=Ya.buffer.i[Ya.iPos]&255,C.context.strokeStyle="rgba("+F+", "+E+", "+G+", "+Ya.buffer.f[Ya.fPos]+")";C.setSmoothing(!0);C.hasStroke= !0}break;case 17:switch(n.prev._hx_index){case 0:n.oPos+=2;n.bPos+=2;break;case 1:n.iPos+=1;n.fPos+=1;break;case 2:n.oPos+=4;n.iiPos+=2;n.ffPos+=1;n.fPos+=1;break;case 3:n.oPos+=1;break;case 4:n.fPos+=6;break;case 5:n.fPos+=4;break;case 6:n.fPos+=3;break;case 7:n.fPos+=4;break;case 8:n.oPos+=3;break;case 9:n.fPos+=4;break;case 10:n.fPos+=5;n.oPos+=1;break;case 12:n.oPos+=4;break;case 14:n.oPos+=2;n.bPos+=2;break;case 15:n.oPos+=4;n.iiPos+=2;n.ffPos+=1;n.fPos+=1;break;case 16:n.oPos+=4;n.iPos+=1;n.fPos+= 2;n.bPos+=1;break;case 17:n.fPos+=2;break;case 18:n.fPos+=2;break;case 19:n.oPos+=1;break;case 20:n.oPos+=1}n.prev=la.LINE_TO;var rb=n;m=!0;C.context.lineTo(rb.buffer.f[rb.fPos]-b,rb.buffer.f[rb.fPos+1]-f);e=rb.buffer.f[rb.fPos];g=rb.buffer.f[rb.fPos+1];e==l&&g==t&&(h=!0);break;case 18:switch(n.prev._hx_index){case 0:n.oPos+=2;n.bPos+=2;break;case 1:n.iPos+=1;n.fPos+=1;break;case 2:n.oPos+=4;n.iiPos+=2;n.ffPos+=1;n.fPos+=1;break;case 3:n.oPos+=1;break;case 4:n.fPos+=6;break;case 5:n.fPos+=4;break; case 6:n.fPos+=3;break;case 7:n.fPos+=4;break;case 8:n.oPos+=3;break;case 9:n.fPos+=4;break;case 10:n.fPos+=5;n.oPos+=1;break;case 12:n.oPos+=4;break;case 14:n.oPos+=2;n.bPos+=2;break;case 15:n.oPos+=4;n.iiPos+=2;n.ffPos+=1;n.fPos+=1;break;case 16:n.oPos+=4;n.iPos+=1;n.fPos+=2;n.bPos+=1;break;case 17:n.fPos+=2;break;case 18:n.fPos+=2;break;case 19:n.oPos+=1;break;case 20:n.oPos+=1}n.prev=la.MOVE_TO;var ob=n;C.context.moveTo(ob.buffer.f[ob.fPos]-b,ob.buffer.f[ob.fPos+1]-f);e=ob.buffer.f[ob.fPos];g= ob.buffer.f[ob.fPos+1];p&&(h=!0);l=ob.buffer.f[ob.fPos];t=ob.buffer.f[ob.fPos+1];p=!0;break;case 21:C.windingRule="evenodd";break;case 22:C.windingRule="nonzero";break;default:switch(n.prev._hx_index){case 0:n.oPos+=2;n.bPos+=2;break;case 1:n.iPos+=1;n.fPos+=1;break;case 2:n.oPos+=4;n.iiPos+=2;n.ffPos+=1;n.fPos+=1;break;case 3:n.oPos+=1;break;case 4:n.fPos+=6;break;case 5:n.fPos+=4;break;case 6:n.fPos+=3;break;case 7:n.fPos+=4;break;case 8:n.oPos+=3;break;case 9:n.fPos+=4;break;case 10:n.fPos+=5; n.oPos+=1;break;case 12:n.oPos+=4;break;case 14:n.oPos+=2;n.bPos+=2;break;case 15:n.oPos+=4;n.iiPos+=2;n.ffPos+=1;n.fPos+=1;break;case 16:n.oPos+=4;n.iPos+=1;n.fPos+=2;n.bPos+=1;break;case 17:n.fPos+=2;break;case 18:n.fPos+=2;break;case 19:n.oPos+=1;break;case 20:n.oPos+=1}n.prev=B}}null!=v&&qa.__pool.release(v);null!=w&&qa.__pool.release(w);n.destroy();m&&(c&&C.hasStroke&&(C.hasFill&&h?(C.context.lineTo(l-b,t-f),C.closePath(!1)):h&&e==l&&g==t&&C.closePath(!1),C.hitTesting||C.context.stroke()),c|| !C.hasFill&&null==C.bitmapFill||(C.context.translate(-C.bounds.x,-C.bounds.y),null!=C.pendingMatrix?(C.context.transform(C.pendingMatrix.a,C.pendingMatrix.b,C.pendingMatrix.c,C.pendingMatrix.d,C.pendingMatrix.tx,C.pendingMatrix.ty),C.hitTesting||C.context.fill(C.windingRule),C.context.transform(C.inversePendingMatrix.a,C.inversePendingMatrix.b,C.inversePendingMatrix.c,C.inversePendingMatrix.d,C.inversePendingMatrix.tx,C.inversePendingMatrix.ty)):C.hitTesting||C.context.fill(C.windingRule),C.context.translate(C.bounds.x, C.bounds.y),C.context.closePath()))};C.render=function(a,c){a.__update(c.__worldTransform);a.__commands.__endBuffer();if(a.__softwareDirty&&a.__commands.get_dirty()){C.hitTesting=!1;C.graphics=a;C.allowSmoothing=c.__allowSmoothing;C.worldAlpha=c.__getAlpha(a.__owner.__worldAlpha);C.bounds=a.__bounds;var b=a.__width,f=a.__height;if(!a.__visible||0==a.__commands.get_length()||null==C.bounds||1>b||1>f)a.__canvas=null,a.__context=null,a.__bitmap=null;else{null==a.__canvas&&(a.__canvas=window.document.createElement("canvas"), a.__context=a.__canvas.getContext("2d"));C.context=a.__context;var e=a.__renderTransform,g=a.__canvas,h=c.pixelRatio,l=b*h|0,t=f*h|0;c.__setBlendModeContext(C.context,10);null!=c.__domRenderer?(g.width==l&&g.height==t?C.context.clearRect(0,0,l,t):(g.width=l,g.height=t,g.style.width=b+"px",g.style.height=f+"px"),b=a.__renderTransform,C.context.setTransform(b.a*h,b.b*h,b.c*h,b.d*h,b.tx*h,b.ty*h)):(g.width==l&&g.height==t?(C.context.closePath(),C.context.setTransform(1,0,0,1,0,0),C.context.clearRect(0, 0,l,t)):(g.width=b,g.height=f),C.context.setTransform(e.a,e.b,e.c,e.d,e.tx,e.ty));C.fillCommands.clear();C.strokeCommands.clear();C.hasFill=!1;C.hasStroke=!1;C.bitmapFill=null;h=C.bitmapRepeat=!1;f=b=0;C.windingRule="evenodd";e=new ug(a.__commands);g=a.__commands.types;l=0;for(t=a.__commands.get_length();l=this.__getAlpha(a.__worldAlpha))){if(null!=a.opaqueBackground&&!a.__isCacheBitmapRender&&0>>16&255)+","+(b>>>8&255)+","+(b&255)+")";c.fillRect(0,0,a.get_width(),a.get_height());this.__popMaskObject(a)}if(null!=a.__graphics&&a.__renderable){var f=this.__getAlpha(a.__worldAlpha);if(!(0>=f)){var e=a.__graphics;if(null!=e){C.render(e,this);var g=e.__width,h=e.__height;c=e.__canvas;if(null!=c&&e.__visible&&1<=g&&1<=h){var l=e.__worldTransform;b=this.context;var t=a.__scrollRect,p=a.__worldScale9Grid;if(null==t||0=a.__worldAlpha||null!=a.get_mask()&&(0>=a.get_mask().get_width()||0>=a.get_mask().get_height()))){this.__updateCacheBitmap(a,!1);if(null!=a.__cacheBitmap&&!a.__isCacheBitmapRender){if(c=a.__cacheBitmap,c.__renderable){var f=this.__getAlpha(c.__worldAlpha);0=this.__getAlpha(a.__worldAlpha))&&(null!=a.opaqueBackground&&!a.__isCacheBitmapRender&& 0>>16&255)+","+(b>>>8&255)+","+(b&255)+")",c.fillRect(0,0,a.get_width(),a.get_height()),this.__popMaskObject(a)),null!=a.__graphics&&a.__renderable)){var e=this.__getAlpha(a.__worldAlpha);if(!(0>=e)){var g=a.__graphics;if(null!=g){C.render(g,this);f=g.__width;var h=g.__height;c=g.__canvas;if(null!=c&& g.__visible&&1<=f&&1<=h){var l=g.__worldTransform;b=this.context;var t=a.__scrollRect,p=a.__worldScale9Grid;if(null==t||0=this.__getAlpha(a.__worldAlpha))&&(null!=a.opaqueBackground&&!a.__isCacheBitmapRender&&0>>16&255)+","+(c>>> 8&255)+","+(c&255)+")",b.fillRect(0,0,a.get_width(),a.get_height()),this.__popMaskObject(a)),null!=a.__graphics&&a.__renderable)){var f=this.__getAlpha(a.__worldAlpha);if(!(0>=f)){var e=a.__graphics;if(null!=e){C.render(e,this);var g=e.__width,h=e.__height;b=e.__canvas;if(null!=b&&e.__visible&&1<=g&&1<=h){var l=e.__worldTransform;c=this.context;var t=a.__scrollRect,p=a.__worldScale9Grid;if(null==t||0=a.__worldAlpha||null==a.__currentState||(this.__pushMaskObject(a),this.__renderDisplayObject(a.__currentState),this.__popMaskObject(a))},__renderTextField:function(a){null==this.__domRenderer||a.__renderedOnCanvasWhileOnDOM|| (a.__renderedOnCanvasWhileOnDOM=!0,1==a.get_type()&&a.replaceText(0,a.__text.length,a.__text),a.__isHTML&&a.__updateText(rb.parse(a.__text,a.__textFormat,a.__textEngine.textFormatRanges)),a.__dirty=!0,a.__layoutDirty=!0,a.__renderDirty||(a.__renderDirty=!0,a.__setParentRenderDirty()));if(null==a.get_mask()||0=c.width||0>=c.height)&&2!=c.autoSize)a.__graphics.__canvas=null,a.__graphics.__context=null,a.__graphics.__bitmap=null,a.__graphics.__softwareDirty=!1,a.__graphics.set___dirty(!1),a.__dirty= !1;else{null==a.__graphics.__canvas&&(a.__graphics.__canvas=window.document.createElement("canvas"),a.__graphics.__context=a.__graphics.__canvas.getContext("2d"));Z.context=f.__context;var h=f.__renderTransform;if(null!=this.__domRenderer){var l=this.pixelRatio;f.__canvas.width=e*l|0;f.__canvas.height=g*l|0;f.__canvas.style.width=e+"px";f.__canvas.style.height=g+"px";e=Ha.__pool.get();e.copyFrom(h);e.scale(l,l);this.setTransform(e,Z.context);Ha.__pool.release(e)}else f.__canvas.width=e,f.__canvas.height= g,Z.context.setTransform(h.a,h.b,h.c,h.d,h.tx,h.ty);null==Z.clearRect&&(Z.clearRect="undefined"!==typeof navigator&&"undefined"!==typeof navigator.isCocoonJS);Z.clearRect&&Z.context.clearRect(0,0,f.__canvas.width,f.__canvas.height);if(null!=c.text&&""!=c.text||c.__hasFocus){h=c.text;f.__context.imageSmoothingEnabled=!this.__allowSmoothing||0==c.antiAliasType&&400==c.sharpness?!1:!0;if(c.border||c.background)Z.context.rect(.5,.5,b.width-1,b.height-1),c.background&&(l=aa.hex(c.backgroundColor&16777215, 6),Z.context.fillStyle="#"+l,Z.context.fill()),c.border&&(Z.context.lineWidth=1,l=aa.hex(c.borderColor&16777215,6),Z.context.strokeStyle="#"+l,Z.context.stroke());Z.context.textBaseline="alphabetic";Z.context.textAlign="start";l=-a.get_scrollH();g=e=0;for(var m=a.get_scrollV()-1;gc.get_bottomScrollV()-1)break;p="#"+aa.hex(m.format.color&16777215, 6);Z.context.font=Rb.getFont(m.format);Z.context.fillStyle=p;Z.context.fillText(h.substring(m.startIndex,m.endIndex),m.offsetX+l-b.x,m.offsetY+m.ascent+e-b.y);if(-1=a.__caretIndex){for(var n=k=0,q=a.__caretIndex-m.startIndex;n=a.__caretIndex||m.startIndex<=a.__selectionIndex&&m.endIndex>=a.__selectionIndex||m.startIndex>a.__caretIndex&&m.endIndexa.__selectionIndex&& m.endIndexk&&(k=m.startIndex),m.endIndex=m.endIndex?(q=a.getCharBoundaries(m.endIndex-1),q.x+=q.width+2):q=a.getCharBoundaries(n),null!=u&&null!=q&&(Z.context.fillStyle="#000000",Z.context.fillRect(u.x+l,u.y+e,q.x-u.x,m.height),Z.context.fillStyle="#FFFFFF",Z.context.fillText(h.substring(k,n),l+u.x,m.offsetY+m.ascent+e));m.format.underline&& (Z.context.beginPath(),Z.context.strokeStyle=p,Z.context.lineWidth=1,p=m.offsetX+l-b.x,k=Math.floor(m.offsetY+e+m.ascent-b.y)+.5,Z.context.moveTo(p,k),Z.context.lineTo(p+m.width,k),Z.context.stroke(),Z.context.closePath())}}else{if(c.border||c.background)c.border?Z.context.rect(.5,.5,b.width-1,b.height-1):Z.context.rect(0,0,b.width,b.height),c.background&&(b=aa.hex(c.backgroundColor&16777215,6),Z.context.fillStyle="#"+b,Z.context.fill()),c.border&&(Z.context.lineWidth=1,Z.context.lineCap="square", b=aa.hex(c.borderColor&16777215,6),Z.context.strokeStyle="#"+b,Z.context.stroke());if(-1=this.__getAlpha(a.__worldAlpha))&&(null!=a.opaqueBackground&&!a.__isCacheBitmapRender&&0>>16&255)+","+(b>>>8&255)+","+(b&255)+")",c.fillRect(0,0,a.get_width(),a.get_height()),this.__popMaskObject(a)),null!=a.__graphics&&a.__renderable&&(p=this.__getAlpha(a.__worldAlpha),!(0>=p)&&(m=a.__graphics,null!=m&&(C.render(m,this),h=m.__width,l=m.__height,c=m.__canvas,null!=c&&m.__visible&&1<=h&&1<=l&&(g=m.__worldTransform,b=this.context,k=a.__scrollRect,e=a.__worldScale9Grid,null==k||0=this.__getAlpha(a.__worldAlpha))){if(null!=a.opaqueBackground&&!a.__isCacheBitmapRender&&0>>16&255)+","+(b>>>8&255)+","+(b&255)+")";c.fillRect(0,0,a.get_width(),a.get_height());this.__popMaskObject(a)}if(null!=a.__graphics&&a.__renderable){var f=this.__getAlpha(a.__worldAlpha);if(!(0>=f)){var e=a.__graphics;if(null!=e){C.render(e,this);var g=e.__width,h=e.__height;c=e.__canvas;if(null!=c&&e.__visible&&1<=g&&1<=h){var l=e.__worldTransform;b=this.context;var m=a.__scrollRect,p=a.__worldScale9Grid;if(null==m||0=c||(b=this.context,this.__setBlendMode(a.__worldBlendMode),this.__pushMaskObject(a),g=ia.__pool.get(),g.setTo(0,0,a.__width,a.__height),this.__pushMaskRect(g, a.__renderTransform),this.__allowSmoothing&&a.smoothing||(b.imageSmoothingEnabled=!1),ki.renderTileContainer(a.__group,this,a.__renderTransform,a.__tileset,this.__allowSmoothing&&a.smoothing,a.tileAlphaEnabled,c,a.tileBlendModeEnabled,a.__worldBlendMode,null,null,g),this.__allowSmoothing&&a.smoothing||(b.imageSmoothingEnabled=!0),this.__popMaskRect(),this.__popMaskObject(a),ia.__pool.release(g)))}else a=a.__cacheBitmap,a.__renderable&&(b=this.__getAlpha(a.__worldAlpha),0a.__cacheBitmapData.width||k>a.__cacheBitmapData.height?(l=Math.ceil(Math.max(1.25*p,a.__cacheBitmapData.width)),m=Math.ceil(Math.max(1.25*k,a.__cacheBitmapData.height)),h=!0):(l=a.__cacheBitmapData.width,m=a.__cacheBitmapData.height): (l=p,m=k));if(h)if(a.__cacheBitmapBackground=a.opaqueBackground,.5<=p&&.5<=k){var u=null!=a.opaqueBackground&&(l!=p||m!=k),v=null!=a.opaqueBackground?-16777216|a.opaqueBackground:0,w=u?0:v;null==a.__cacheBitmapData||l>a.__cacheBitmapData.width||m>a.__cacheBitmapData.height?(a.__cacheBitmapData=new ra(l,m,!0,w),null==a.__cacheBitmap&&(a.__cacheBitmap=new Rc),a.__cacheBitmap.__bitmapData=a.__cacheBitmapData,a.__cacheBitmapRendererSW=null):a.__cacheBitmapData.fillRect(a.__cacheBitmapData.rect,w);u&& (b.setTo(0,0,p,k),a.__cacheBitmapData.fillRect(b,v))}else return Sb.__pool.release(g),null!=this.__domRenderer&&null!=a.__cacheBitmap&&this.__domRenderer.__clearBitmap(a.__cacheBitmap),a.__cacheBitmap=null,a.__cacheBitmapData=null,a.__cacheBitmapData2=null,a.__cacheBitmapData3=null,a.__cacheBitmapRendererSW=null,!0;else a.__cacheBitmapData=a.__cacheBitmap.get_bitmapData(),a.__cacheBitmapData2=null,a.__cacheBitmapData3=null;c&&(a.__cacheBitmap.__worldTransform.copyFrom(a.__worldTransform),e==a.__renderTransform? (a.__cacheBitmap.__renderTransform.identity(),a.__cacheBitmap.__renderTransform.tx=a.__renderTransform.tx+n,a.__cacheBitmap.__renderTransform.ty=a.__renderTransform.ty+q):(a.__cacheBitmap.__renderTransform.copyFrom(a.__cacheBitmapMatrix),a.__cacheBitmap.__renderTransform.invert(),a.__cacheBitmap.__renderTransform.concat(a.__renderTransform),a.__cacheBitmap.__renderTransform.tx+=n,a.__cacheBitmap.__renderTransform.ty+=q));a.__cacheBitmap.smoothing=this.__allowSmoothing;a.__cacheBitmap.__renderable= a.__renderable;a.__cacheBitmap.__worldAlpha=a.__worldAlpha;a.__cacheBitmap.__worldBlendMode=a.__worldBlendMode;a.__cacheBitmap.__worldShader=a.__worldShader;a.__cacheBitmap.set_mask(a.__mask);if(h){if(null==a.__cacheBitmapRendererSW||"canvas"!=a.__cacheBitmapRendererSW.__type)null==a.__cacheBitmapData.image&&(a.__cacheBitmapData=new ra(l,m,!0,null!=a.opaqueBackground?-16777216|a.opaqueBackground:0),a.__cacheBitmap.__bitmapData=a.__cacheBitmapData),ua.convertToCanvas(a.__cacheBitmapData.image),a.__cacheBitmapRendererSW= new fh(a.__cacheBitmapData.image.buffer.__srcContext),a.__cacheBitmapRendererSW.__worldTransform=new Ha,a.__cacheBitmapRendererSW.__worldColorTransform=new Sb;null==a.__cacheBitmapColorTransform&&(a.__cacheBitmapColorTransform=new Sb);a.__cacheBitmapRendererSW.__stage=a.stage;a.__cacheBitmapRendererSW.__allowSmoothing=this.__allowSmoothing;S.__cast(a.__cacheBitmapRendererSW,fh).__setBlendMode(10);a.__cacheBitmapRendererSW.__worldAlpha=1/a.__worldAlpha;a.__cacheBitmapRendererSW.__worldTransform.copyFrom(a.__renderTransform); a.__cacheBitmapRendererSW.__worldTransform.invert();a.__cacheBitmapRendererSW.__worldTransform.concat(a.__cacheBitmapMatrix);a.__cacheBitmapRendererSW.__worldTransform.tx-=n;a.__cacheBitmapRendererSW.__worldTransform.ty-=q;a.__cacheBitmapRendererSW.__worldColorTransform.__copyFrom(g);a.__cacheBitmapRendererSW.__worldColorTransform.__invert();a.__isCacheBitmapRender=!0;a.__cacheBitmapRendererSW.__drawBitmapData(a.__cacheBitmapData,a,null);if(f){k=f=!1;e=0;for(h=a.__filters;ea.__cacheBitmapData2.width||m>a.__cacheBitmapData2.height?a.__cacheBitmapData2=new ra(l,m,!0,0):a.__cacheBitmapData2.fillRect(a.__cacheBitmapData2.rect,0),h=a.__cacheBitmapData2):h=e;k&&(null==a.__cacheBitmapData3||null==a.__cacheBitmapData3.image||l>a.__cacheBitmapData3.width||m>a.__cacheBitmapData3.height?a.__cacheBitmapData3=new ra(l,m,!0,0):a.__cacheBitmapData3.fillRect(a.__cacheBitmapData3.rect, 0),p=a.__cacheBitmapData3);null==a.__tempPoint&&(a.__tempPoint=new qa);l=a.__tempPoint;m=0;for(k=a.__filters;m=b)){var f=a.__graphics;if(null!=f){C.render(f,c);var e=f.__width,g=f.__height,h=f.__canvas; if(null!=h&&f.__visible&&1<=e&&1<=g){var l=f.__worldTransform,m=c.context,p=a.__scrollRect,k=a.__worldScale9Grid;if(null==p||0=d.width||0>=d.height)&&2!=d.autoSize)a.__graphics.__canvas= null,a.__graphics.__context=null,a.__graphics.__bitmap=null,a.__graphics.__softwareDirty=!1,a.__graphics.set___dirty(!1),a.__dirty=!1;else{null==a.__graphics.__canvas&&(a.__graphics.__canvas=window.document.createElement("canvas"),a.__graphics.__context=a.__graphics.__canvas.getContext("2d"));Z.context=b.__context;var l=b.__renderTransform;if(null!=c.__domRenderer){var m=c.pixelRatio;b.__canvas.width=g*m|0;b.__canvas.height=h*m|0;b.__canvas.style.width=g+"px";b.__canvas.style.height=h+"px";g=Ha.__pool.get(); g.copyFrom(l);g.scale(m,m);c.setTransform(g,Z.context);Ha.__pool.release(g)}else b.__canvas.width=g,b.__canvas.height=h,Z.context.setTransform(l.a,l.b,l.c,l.d,l.tx,l.ty);null==Z.clearRect&&(Z.clearRect="undefined"!==typeof navigator&&"undefined"!==typeof navigator.isCocoonJS);Z.clearRect&&Z.context.clearRect(0,0,b.__canvas.width,b.__canvas.height);if(null!=d.text&&""!=d.text||d.__hasFocus){l=d.text;b.__context.imageSmoothingEnabled=!c.__allowSmoothing||0==d.antiAliasType&&400==d.sharpness?!1:!0;if(d.border|| d.background)Z.context.rect(.5,.5,e.width-1,e.height-1),d.background&&(c=aa.hex(d.backgroundColor&16777215,6),Z.context.fillStyle="#"+c,Z.context.fill()),d.border&&(Z.context.lineWidth=1,c=aa.hex(d.borderColor&16777215,6),Z.context.strokeStyle="#"+c,Z.context.stroke());Z.context.textBaseline="alphabetic";Z.context.textAlign="start";c=-a.get_scrollH();g=m=0;for(h=a.get_scrollV()-1;gd.get_bottomScrollV()-1)break;p="#"+aa.hex(h.format.color&16777215,6);Z.context.font=Rb.getFont(h.format);Z.context.fillStyle=p;Z.context.fillText(l.substring(h.startIndex,h.endIndex),h.offsetX+c-e.x,h.offsetY+h.ascent+m-e.y);if(-1=a.__caretIndex){for(var n=k=0,q=a.__caretIndex-h.startIndex;n=a.__caretIndex||h.startIndex<=a.__selectionIndex&& h.endIndex>=a.__selectionIndex||h.startIndex>a.__caretIndex&&h.endIndexa.__selectionIndex&&h.endIndexk&&(k=h.startIndex),h.endIndex=h.endIndex?(q=a.getCharBoundaries(h.endIndex-1),q.x+=q.width+2):q=a.getCharBoundaries(n),null!=u&&null!=q&&(Z.context.fillStyle="#000000",Z.context.fillRect(u.x+c,u.y+ m,q.x-u.x,h.height),Z.context.fillStyle="#FFFFFF",Z.context.fillText(l.substring(k,n),c+u.x,h.offsetY+h.ascent+m));h.format.underline&&(Z.context.beginPath(),Z.context.strokeStyle=p,Z.context.lineWidth=1,p=h.offsetX+c-e.x,k=Math.floor(h.offsetY+m+h.ascent-e.y)+.5,Z.context.moveTo(p,k),Z.context.lineTo(p+h.width,k),Z.context.stroke(),Z.context.closePath())}}else{if(d.border||d.background)d.border?Z.context.rect(.5,.5,e.width-1,e.height-1):Z.context.rect(0,0,e.width,e.height),d.background&&(e=aa.hex(d.backgroundColor& 16777215,6),Z.context.fillStyle="#"+e,Z.context.fill()),d.border&&(Z.context.lineWidth=1,Z.context.lineCap="square",e=aa.hex(d.borderColor&16777215,6),Z.context.strokeStyle="#"+e,Z.context.stroke());if(-1=b)){var f=c.context;c.__setBlendMode(a.__worldBlendMode); c.__pushMaskObject(a);var e=ia.__pool.get();e.setTo(0,0,a.__width,a.__height);c.__pushMaskRect(e,a.__renderTransform);c.__allowSmoothing&&a.smoothing||(f.imageSmoothingEnabled=!1);ki.renderTileContainer(a.__group,c,a.__renderTransform,a.__tileset,c.__allowSmoothing&&a.smoothing,a.tileAlphaEnabled,b,a.tileBlendModeEnabled,a.__worldBlendMode,null,null,e);c.__allowSmoothing&&a.smoothing||(f.imageSmoothingEnabled=!0);c.__popMaskRect();c.__popMaskObject(a);ia.__pool.release(e)}}};ki.renderTileContainer= function(a,c,b,f,e,g,h,l,m,p,k,n){var d=c.context,t=c.__roundPixels,q=Ha.__pool.get(),u=a.__tiles,v,w=null,r=0;for(a=a.__length;r=y))if(g||(y=1),l&&(w=null!=x.__blendMode?x.__blendMode:m),0=x.width||0>=x.height)continue}else{x=I.__data[v];if(null==x)continue;n.setTo(x.x,x.y,x.width,x.height);x=n}I=I.__bitmapData;null!=I&&(I!=p&&(null==I.image.buffer.__srcImage&&ua.convertToCanvas(I.image),k=I.image.get_src(),p=I),d.globalAlpha=y,l&&c.__setBlendMode(w),c.setTransform(q,d),d.drawImage(k,x.x,x.y,x.width,x.height,0,0,x.width,x.height))}}Ha.__pool.release(q)};var gr=function(){};k["openfl._internal.renderer.canvas.CanvasVideo"]= gr;gr.__name__="openfl._internal.renderer.canvas.CanvasVideo";gr.render=function(a,c){if(a.__renderable&&null!=a.__stream){var b=c.__getAlpha(a.__worldAlpha);if(!(0>=b)){var f=c.context;if(null!=a.__stream.__video){c.__setBlendMode(a.__worldBlendMode);c.__pushMaskObject(a);f.globalAlpha=b;b=a.__scrollRect;var e=a.smoothing;c.setTransform(a.__worldTransform,f);e||(f.imageSmoothingEnabled=!1);null==b?f.drawImage(a.__stream.__video,0,0,a.get_width(),a.get_height()):f.drawImage(a.__stream.__video,b.x, b.y,b.width,b.height,b.x,b.y,b.width,b.height);e||(f.imageSmoothingEnabled=!0);c.__popMaskObject(a)}}}};var Ye=function(a){this.byteCode=a;this.precisionHint=1;this.__glSourceDirty=!0;this.__numPasses=1;this.__data=hr._new(a)};k["openfl.display.Shader"]=Ye;Ye.__name__="openfl.display.Shader";Ye.prototype={byteCode:null,glProgram:null,precisionHint:null,program:null,__alpha:null,__alphaTexture:null,__alphaTextureMatrix:null,__bitmap:null,__colorMultiplier:null,__colorOffset:null,__context:null,__data:null, __glFragmentSource:null,__glSourceDirty:null,__glVertexSource:null,__hasColorTransform:null,__inputBitmapData:null,__isGenerated:null,__matrix:null,__numPasses:null,__paramBool:null,__paramFloat:null,__paramInt:null,__position:null,__textureCoord:null,__texture:null,__textureSize:null,__clearUseArray:function(){for(var a=0,c=this.__paramBool;a=a.__worldAlpha)&&null!=a.__bitmapData&&a.__bitmapData.__isValid){var b=c.context3D,f=null!=a.get_mask()&&a.get_mask().get_cacheAsBitmap();f&&a.get_mask().__type!=Kh.BITMAP&&(f=!1);c.__setBlendMode(a.__worldBlendMode);f||c.__pushMaskObject(a);var e=c.__initDisplayShader(f?c.__alphaMaskShader:a.__worldShader);c.setShader(e);c.applyBitmapData(a.__bitmapData,c.__allowSmoothing&&(a.smoothing||c.__upscaled));c.applyMatrix(c.__getMatrix(a.__renderTransform, a.pixelSnapping));c.applyAlpha(a.__worldAlpha);c.applyColorTransform(a.__worldColorTransform);if(f){var g=a.get_mask();c.__currentShader.__alphaTexture.input=g.__bitmapData;null==c.__currentShader.__alphaTextureMatrix.value&&(c.__currentShader.__alphaTextureMatrix.value=[]);var h=c.__currentShader.__alphaTextureMatrix.value,l=Ha.__pool.get();l.copyFrom(a.__renderTransform);l.invert();l.concat(g.__renderTransform);h[0]=a.__bitmapData.width/g.__bitmapData.width*l.a;h[1]=l.b;h[4]=l.c;h[5]=a.__bitmapData.height/ g.__bitmapData.height*l.d;h[12]=l.tx;h[13]=l.ty;h[15]=0;Ha.__pool.release(l)}c.updateShader();g=a.__bitmapData.getVertexBuffer(b);null!=e.__position&&b.setVertexBufferAt(e.__position.index,g,0,3);null!=e.__textureCoord&&b.setVertexBufferAt(e.__textureCoord.index,g,3,2);e=a.__bitmapData.getIndexBuffer(b);b.drawTriangles(e);c.__clearShader();f||c.__popMaskObject(a)}};gh.renderMask=function(a,c){if(null!=a.__bitmapData&&a.__bitmapData.__isValid){var b=c.context3D,f=c.__maskShader;c.setShader(f);c.applyBitmapData(Vi.opaqueBitmapData, !0);c.applyMatrix(c.__getMatrix(a.__renderTransform,a.pixelSnapping));c.updateShader();var e=a.__bitmapData.getVertexBuffer(b);null!=f.__position&&b.setVertexBufferAt(f.__position.index,e,0,3);null!=f.__textureCoord&&b.setVertexBufferAt(f.__textureCoord.index,e,3,2);a=a.__bitmapData.getIndexBuffer(b);b.drawTriangles(a);c.__clearShader()}};var li=function(a,c,b,f){this.context3D=a;this.elementType=c;this.dataPerVertex=f;this.vertexCount=this.indexCount=0;this.resize(b)};k["openfl._internal.renderer.context3D.Context3DBuffer"]= li;li.__name__="openfl._internal.renderer.context3D.Context3DBuffer";li.prototype={dataPerVertex:null,elementCount:null,elementType:null,indexBufferData:null,indexBuffers:null,indexCount:null,vertexBuffer:null,vertexBufferData:null,vertexCount:null,context3D:null,drawElements:function(a,c){null==c&&(c=-1);if(0!=this.indexCount&&0!=this.vertexCount&&0==this.elementType._hx_index)if(-1==c&&(c=2*this.elementCount),10922>a&&10922>c-a)this.context3D.drawTriangles(this.indexBuffers[0],a,2*c);else for(var b= a+c;a=c)break;this.context3D.drawTriangles(this.indexBuffers[f],3*(a-10922*f),2*c);a+=c}},flushVertexBufferData:function(){this.vertexBufferData.length>this.vertexCount&&(this.vertexCount=this.vertexBufferData.length,this.vertexBuffer=this.context3D.createVertexBuffer(this.vertexCount,this.dataPerVertex,0));this.vertexBuffer.uploadFromTypedArray(this.vertexBufferData)},resize:function(a,c){null==c&&(c=-1);this.elementCount=a;-1==c&&(c=this.dataPerVertex); c!=this.dataPerVertex&&(this.vertexBuffer=null,this.vertexCount=0,this.dataPerVertex=c);var b=0;switch(this.elementType._hx_index){case 0:b=4*a;break;case 1:b=3*a;break;case 2:b=3*a}a=b*c;null==this.vertexBufferData?this.vertexBufferData=null!=a?new Float32Array(a):null:a>this.vertexBufferData.length&&(c=this.vertexBufferData,this.vertexBufferData=null!=a?new Float32Array(a):null,this.vertexBufferData.set(c))},__class__:li};var bx=B["openfl._internal.renderer.context3D.Context3DElementType"]={__ename__:"openfl._internal.renderer.context3D.Context3DElementType", __constructs__:["QUADS","TRIANGLES","TRIANGLE_INDICES"],QUADS:{_hx_index:0,__enum__:"openfl._internal.renderer.context3D.Context3DElementType",toString:u},TRIANGLES:{_hx_index:1,__enum__:"openfl._internal.renderer.context3D.Context3DElementType",toString:u},TRIANGLE_INDICES:{_hx_index:2,__enum__:"openfl._internal.renderer.context3D.Context3DElementType",toString:u}},ir=function(){};k["openfl._internal.renderer.context3D.Context3DDisplayObject"]=ir;ir.__name__="openfl._internal.renderer.context3D.Context3DDisplayObject"; ir.render=function(a,c){if(!(null==a.opaqueBackground&&null==a.__graphics||!a.__renderable||0>=a.__worldAlpha)){if(null!=a.opaqueBackground&&!a.__isCacheBitmapRender&&0>>16&255)/255,(e>>>8&255)/255,(e&255)/255,1,0,0,1);c.__popMaskRect();c.__popMaskObject(a); ia.__pool.release(f)}null!=a.__graphics&&If.render(a,c)}};ir.renderMask=function(a,c){if(null!=a.opaqueBackground||null!=a.__graphics)null!=a.opaqueBackground&&!a.__isCacheBitmapRender&&0a?0:a;c=0>c?0:c;this.width=a;this.height=c;this.rect=new ia(0,0,a,c);this.__textureWidth=a;this.__textureHeight=c;0>>24&255),this.image.set_transparent(b),this.readable=this.__isValid=!0);this.__renderTransform=new Ha;this.__worldAlpha=1;this.__worldTransform=new Ha;this.__worldColorTransform=new Sb;this.__renderable=!0};k["openfl.display.BitmapData"]=ra;ra.__name__="openfl.display.BitmapData";ra.__interfaces__=[Gd];ra.fromBase64=function(a,c){return null};ra.fromBytes=function(a,c){return null};ra.fromCanvas=function(a,c){null==c&&(c=!0);if(null== a)return null;var b=new ra(0,0,c,0);b.__fromImage(Lb.fromCanvas(a));b.image.set_transparent(c);return b};ra.fromFile=function(a){return null};ra.fromImage=function(a,c){null==c&&(c=!0);if(null==a||null==a.buffer)return null;var b=new ra(0,0,c,0);b.__fromImage(a);b.image.set_transparent(c);return null!=b.image?b:null};ra.fromTexture=function(a){if(null==a)return null;var c=new ra(a.__width,a.__height,!0,0);c.readable=!1;c.__texture=a;c.__textureContext=a.__textureContext;c.image=null;return c};ra.loadFromBase64= function(a,c){return Lb.loadFromBase64(a,c).then(function(a){return xb.withValue(ra.fromImage(a))})};ra.loadFromBytes=function(a,c){return Lb.loadFromBytes(za.toBytes(a)).then(function(a){a=ra.fromImage(a);null!=c&&a.__applyAlpha(c);return xb.withValue(a)})};ra.loadFromFile=function(a){return Lb.loadFromFile(a).then(function(a){return xb.withValue(ra.fromImage(a))})};ra.prototype={height:null,image:null,readable:null,rect:null,transparent:null,width:null,__blendMode:null,__framebuffer:null,__framebufferContext:null, __indexBuffer:null,__indexBufferContext:null,__indexBufferData:null,__indexBufferGrid:null,__isMask:null,__isValid:null,__mask:null,__renderable:null,__renderTransform:null,__scrollRect:null,__stencilBuffer:null,__surface:null,__symbol:null,__texture:null,__textureContext:null,__textureHeight:null,__textureVersion:null,__textureWidth:null,__transform:null,__type:null,__uvRect:null,__vertexBuffer:null,__vertexBufferContext:null,__vertexBufferData:null,__vertexBufferGrid:null,__vertexBufferHeight:null, __vertexBufferScaleX:null,__vertexBufferScaleY:null,__vertexBufferWidth:null,__worldAlpha:null,__worldColorTransform:null,__worldTransform:null,applyFilter:function(a,c,b,f){if(this.readable&&null!=a&&a.readable){a=f.__needSecondBitmapData;var d=f.__preserveObject,g=null;var h=a?new ra(this.width,this.height,!0,0):this;d&&(g=new ra(this.width,this.height,!0,0));f.__preserveObject&&g.copyPixels(this,this.rect,b);c=f.__applyFilter(h,this,c,b);f.__preserveObject&&c.draw(g,null,null);a&&c==h&&(h.image.version= this.image.version,this.image=h.image);this.image.dirty=!0;this.image.version++}},clone:function(){if(this.__isValid)if(this.readable||null!=this.image)var a=ra.fromImage(this.image.clone(),this.transparent);else a=new ra(0,0,this.transparent,0),a.width=this.width,a.height=this.height,a.__textureWidth=this.__textureWidth,a.__textureHeight=this.__textureHeight,a.rect.copyFrom(this.rect),a.__framebuffer=this.__framebuffer,a.__framebufferContext=this.__framebufferContext,a.__texture=this.__texture,a.__textureContext= this.__textureContext,a.__isValid=!0;else a=new ra(this.width,this.height,this.transparent,0);a.__worldTransform.copyFrom(this.__worldTransform);a.__renderTransform.copyFrom(this.__renderTransform);return a},colorTransform:function(a,c){this.readable&&this.image.colorTransform(a.__toLimeRectangle(),c.__toLimeColorMatrix())},compare:function(a){if(a==this)return 0;if(null==a)return-1;if(0==this.readable||0==a.readable)return-2;if(this.width!=a.width)return-3;if(this.height!=a.height)return-4;if(null!= this.image&&null!=a.image&&this.image.get_format()==a.image.get_format()){for(var c=this.image.get_data(),b=a.image.get_data(),f=!0,e=0,g=c.length;e>>16&255)-(n>>>16&255);var u=(k>>>8&255)-(n>>>8&255);var v=(k&255)-(n&255);0>q&&(q*=-1);0>u&&(u*=-1);0>v&&(v*=-1);0==q&&0==u&&0==v?(k=(k>>> 24&255)-(n>>>24&255),0!=k&&(f=(f>>>24&255)<<24|16711680|(f>>>8&255)<<8|f&255,f=(f>>>24&255)<<24|(f>>>16&255)<<16|65280|f&255,f=(f>>>24&255)<<24|(f>>>16&255)<<16|(f>>>8&255)<<8|255,f=(k&255)<<24|(f>>>16&255)<<16|(f>>>8&255)<<8|f&255,b=!0)):(f=(f>>>24&255)<<24|(q&255)<<16|(f>>>8&255)<<8|f&255,f=(f>>>24&255)<<24|(f>>>16&255)<<16|(u&255)<<8|f&255,f=(f>>>24&255)<<24|(f>>>16&255)<<16|(f>>>8&255)<<8|v&255,f=-16777216|(f>>>16&255)<<16|(f>>>8&255)<<8|f&255,b=!0)}b&&(null==c&&(c=new ra(this.width,this.height, this.transparent||a.transparent,0)),c.setPixel32(p,h,f))}}return null==c?0:c},copyChannel:function(a,c,b,f,e){if(this.readable){switch(f){case 1:f=wf.RED;break;case 2:f=wf.GREEN;break;case 4:f=wf.BLUE;break;case 8:f=wf.ALPHA;break;default:return}switch(e){case 1:e=wf.RED;break;case 2:e=wf.GREEN;break;case 4:e=wf.BLUE;break;case 8:e=wf.ALPHA;break;default:return}this.image.copyChannel(a.image,c.__toLimeRectangle(),b.__toLimeVector2(),f,e)}},copyPixels:function(a,c,b,f,e,g){null==g&&(g=!1);if(this.readable&& null!=a)if(null==f||!f.transparent||f==a&&(null==e||0==e.x&&0==e.y))null!=e&&(ra.__tempVector.x=e.x,ra.__tempVector.y=e.y),this.image.copyPixels(a.image,c.__toLimeRectangle(),b.__toLimeVector2(),null!=f?f.image:null,null!=e?ra.__tempVector:null,g);else{var d=qa.__pool.get(),l=ia.__pool.get();l.copyFrom(a.rect);l.__contract(c.x,c.y,c.width,c.height);c=ra.__pool.get(l.width|0,l.height|0);ua.convertToCanvas(c.image);ua.convertToCanvas(a.image);ua.convertToCanvas(f.image);null!=e&&(l.x+=e.x,l.y+=e.y); c.image.buffer.__srcContext.globalCompositeOperation="source-over";c.image.buffer.__srcContext.drawImage(f.image.buffer.get_src(),l.x+a.image.offsetX|0,l.y+a.image.offsetY|0,l.width|0,l.height|0,d.x+this.image.offsetX|0,d.y+this.image.offsetY|0,l.width|0,l.height|0);null!=e&&(l.x-=e.x,l.y-=e.y);c.image.buffer.__srcContext.globalCompositeOperation="source-in";c.image.buffer.__srcContext.drawImage(a.image.buffer.get_src(),l.x+a.image.offsetX|0,l.y+a.image.offsetY|0,l.width|0,l.height|0,d.x+this.image.offsetX| 0,d.y+this.image.offsetY|0,l.width|0,l.height|0);this.image.copyPixels(c.image,c.rect.__toLimeRectangle(),b.__toLimeVector2(),null,null,g);ra.__pool.release(c);ia.__pool.release(l);qa.__pool.release(d)}},dispose:function(){this.image=null;this.height=this.width=0;this.rect=null;this.readable=this.__isValid=!1;this.__textureContext=this.__texture=this.__framebufferContext=this.__framebuffer=this.__vertexBuffer=this.__surface=null},disposeImage:function(){this.readable=!1},draw:function(a,c,b,f,e,g){null== g&&(g=!1);if(null!=a){a.__update(!1,!0);var d=Ha.__pool.get();d.copyFrom(a.__renderTransform);d.invert();null!=c&&d.concat(c);c=new Sb;c.__copyFrom(a.__worldColorTransform);c.__invert();if(this.readable||null==this.__texture||null==ra.__hardwareRenderer){if(null!=b){var l=ia.__pool.get(),m=Ha.__pool.get();a.__getBounds(l,m);var p=Math.ceil(l.width),k=Math.ceil(l.height);m.tx=-l.x;m.ty=-l.y;p=new ra(p,k,!0,0);p.draw(a,m);p.colorTransform(p.rect,b);p.__renderTransform.identity();p.__renderTransform.tx= l.x;p.__renderTransform.ty=l.y;p.__renderTransform.concat(a.__renderTransform);p.__worldAlpha=a.__worldAlpha;p.__worldColorTransform.__copyFrom(a.__worldColorTransform);a=p;ia.__pool.release(l);Ha.__pool.release(m)}null==ra.__softwareRenderer&&(ra.__softwareRenderer=new fh(null));ua.convertToCanvas(this.image);b=ra.__softwareRenderer;b.context=this.image.buffer.__srcContext;b.__allowSmoothing=g;b.__overrideBlendMode=f;b.__worldTransform=d;b.__worldAlpha=1/a.__worldAlpha;b.__worldColorTransform=c; b.__drawBitmapData(this,a,e)}else null==this.__textureContext&&(this.__textureContext=Ve.current.__window.context),null!=b&&c.__combine(b),ra.__hardwareRenderer.__allowSmoothing=g,ra.__hardwareRenderer.__overrideBlendMode=f,ra.__hardwareRenderer.__worldTransform=d,ra.__hardwareRenderer.__worldAlpha=1/a.__worldAlpha,ra.__hardwareRenderer.__worldColorTransform=c,ra.__hardwareRenderer.__resize(this.width,this.height),ra.__hardwareRenderer.__drawBitmapData(this,a,e);Ha.__pool.release(d)}},drawWithQuality:function(a, c,b,f,e,g,h){null==g&&(g=!1);this.draw(a,c,b,f,e,2!=h&&g)},encode:function(a,c,b){if(!this.readable||null==a)return null;null==b&&(b=new tc(0));var d=this.image;if(!a.equals(this.rect)){var e=Ha.__pool.get();e.tx=Math.round(-a.x);e.ty=Math.round(-a.y);a=new ra(Math.ceil(a.width),Math.ceil(a.height),!0,0);a.draw(this,e);d=a.image;Ha.__pool.release(e)}return c instanceof jr?(b.writeBytes(za.fromBytes(d.encode(ax.PNG)),0,0),b):c instanceof Lo?(b.writeBytes(za.fromBytes(d.encode(ax.JPEG,S.__cast(c,Lo).quality)), 0,0),b):null},fillRect:function(a,c){null!=a&&(this.transparent&&0==(c&-16777216)&&(c=0),this.readable||null==this.__texture||null==ra.__hardwareRenderer?this.readable&&this.image.fillRect(a.__toLimeRectangle(),c,1):ra.__hardwareRenderer.__fillRect(this,a,c))},floodFill:function(a,c,b){this.readable&&this.image.floodFill(a,c,b,1)},generateFilterRect:function(a,c){return a.clone()},getIndexBuffer:function(a,c){if(null==this.__indexBuffer||this.__indexBufferContext!=a.__context||null!=c&&null==this.__indexBufferGrid|| null!=this.__indexBufferGrid&&!this.__indexBufferGrid.equals(c)){this.__indexBufferContext=a.__context;this.__indexBuffer=null;if(null!=c){null==this.__indexBufferGrid&&(this.__indexBufferGrid=new ia);this.__indexBufferGrid.copyFrom(c);var b=c.width;c=c.height;0!=b&&0!=c?(this.__indexBufferData=new Uint16Array(54),this.__indexBufferData[0]=0,this.__indexBufferData[1]=1,this.__indexBufferData[2]=2,this.__indexBufferData[3]=2,this.__indexBufferData[4]=1,this.__indexBufferData[5]=3,this.__indexBufferData[6]= 4,this.__indexBufferData[7]=5,this.__indexBufferData[8]=6,this.__indexBufferData[9]=6,this.__indexBufferData[10]=5,this.__indexBufferData[11]=7,this.__indexBufferData[12]=8,this.__indexBufferData[13]=9,this.__indexBufferData[14]=10,this.__indexBufferData[15]=10,this.__indexBufferData[16]=9,this.__indexBufferData[17]=11,this.__indexBufferData[18]=12,this.__indexBufferData[19]=13,this.__indexBufferData[20]=14,this.__indexBufferData[21]=14,this.__indexBufferData[22]=13,this.__indexBufferData[23]=15, this.__indexBufferData[24]=16,this.__indexBufferData[25]=18,this.__indexBufferData[26]=17,this.__indexBufferData[27]=17,this.__indexBufferData[28]=18,this.__indexBufferData[29]=19,this.__indexBufferData[30]=20,this.__indexBufferData[31]=21,this.__indexBufferData[32]=22,this.__indexBufferData[33]=22,this.__indexBufferData[34]=21,this.__indexBufferData[35]=23,this.__indexBufferData[36]=24,this.__indexBufferData[37]=25,this.__indexBufferData[38]=26,this.__indexBufferData[39]=26,this.__indexBufferData[40]= 25,this.__indexBufferData[41]=27,this.__indexBufferData[42]=28,this.__indexBufferData[43]=29,this.__indexBufferData[44]=30,this.__indexBufferData[45]=30,this.__indexBufferData[46]=29,this.__indexBufferData[47]=31,this.__indexBufferData[48]=32,this.__indexBufferData[49]=33,this.__indexBufferData[50]=34,this.__indexBufferData[51]=34,this.__indexBufferData[52]=33,this.__indexBufferData[53]=35,this.__indexBuffer=a.createIndexBuffer(54)):0==b&&0!=c?(this.__indexBufferData=new Uint16Array(18),this.__indexBufferData[0]= 0,this.__indexBufferData[1]=1,this.__indexBufferData[2]=2,this.__indexBufferData[3]=2,this.__indexBufferData[4]=1,this.__indexBufferData[5]=3,this.__indexBufferData[6]=4,this.__indexBufferData[7]=5,this.__indexBufferData[8]=0,this.__indexBufferData[9]=0,this.__indexBufferData[10]=5,this.__indexBufferData[11]=1,this.__indexBufferData[12]=6,this.__indexBufferData[13]=7,this.__indexBufferData[14]=4,this.__indexBufferData[15]=4,this.__indexBufferData[16]=7,this.__indexBufferData[17]=5,this.__indexBuffer= a.createIndexBuffer(18)):0!=b&&0==c&&(this.__indexBufferData=new Uint16Array(18),this.__indexBufferData[0]=0,this.__indexBufferData[1]=1,this.__indexBufferData[2]=2,this.__indexBufferData[3]=2,this.__indexBufferData[4]=1,this.__indexBufferData[5]=3,this.__indexBufferData[6]=4,this.__indexBufferData[7]=0,this.__indexBufferData[8]=5,this.__indexBufferData[9]=5,this.__indexBufferData[10]=0,this.__indexBufferData[11]=2,this.__indexBufferData[12]=6,this.__indexBufferData[13]=4,this.__indexBufferData[14]= 7,this.__indexBufferData[15]=7,this.__indexBufferData[16]=4,this.__indexBufferData[17]=5,this.__indexBuffer=a.createIndexBuffer(18))}else this.__indexBufferGrid=null;null==this.__indexBuffer&&(this.__indexBufferData=new Uint16Array(6),this.__indexBufferData[0]=0,this.__indexBufferData[1]=1,this.__indexBufferData[2]=2,this.__indexBufferData[3]=2,this.__indexBufferData[4]=1,this.__indexBufferData[5]=3,this.__indexBuffer=a.createIndexBuffer(6));this.__indexBuffer.uploadFromTypedArray(this.__indexBufferData)}return this.__indexBuffer}, getVertexBuffer:function(a,c,b){if(null==this.__vertexBuffer||this.__vertexBufferContext!=a.__context||null!=c&&null==this.__vertexBufferGrid||null!=this.__vertexBufferGrid&&!this.__vertexBufferGrid.equals(c)||null!=b&&(this.__vertexBufferWidth!=b.get_width()||this.__vertexBufferHeight!=b.get_height()||this.__vertexBufferScaleX!=b.get_scaleX()||this.__vertexBufferScaleY!=b.get_scaleY())){this.__uvRect=new ia(0,0,this.width,this.height);this.__vertexBufferContext=a.__context;this.__vertexBuffer=null; if(null!=c&&null!=b){null==this.__vertexBufferGrid&&(this.__vertexBufferGrid=new ia);this.__vertexBufferGrid.copyFrom(c);this.__vertexBufferWidth=b.get_width();this.__vertexBufferHeight=b.get_height();this.__vertexBufferScaleX=b.get_scaleX();this.__vertexBufferScaleY=b.get_scaleY();var d=c.width,e=c.height;if(0!=d&&0!=e){this.__vertexBufferData=new Float32Array(504);var g=c.x,h=c.y,l=this.__vertexBufferWidth-d-g,m=this.__vertexBufferHeight-e-h;e=g/this.__vertexBufferWidth;d=h/this.__vertexBufferHeight; var p=c.width/this.__vertexBufferWidth;c=c.height/this.__vertexBufferHeight;var k=.5/this.__vertexBufferWidth,n=.5/this.__vertexBufferHeight;g/=b.get_scaleX();h/=b.get_scaleY();l/=b.get_scaleX();b=m/b.get_scaleY();l=this.width-g-l;b=this.height-h-b;this.__setVertex(0,0,0,0,0);this.__setVertices([3,6,13,16],g,h,1*e,1*d);this.__setVertices([2,12],0,h,0,1*d);this.__setVertices([1,4],g,0,1*e,0);this.__setVertices([7,10,18,20],g+l,h,1*(e+p),1*d);this.__setVertices([5,8],g+l,0,1*(e+p),0);this.__setVertices([11, 21],this.width,h,1,1*d);this.__setVertex(9,this.width,0,1,0);this.__setVertices([15,17,25,28],g,h+b,1*e,1*(d+c));this.__setVertices([14,24],0,h+b,0,1*(d+c));this.__setVertices([19,22,29,32],g+l,h+b,1*(e+p),1*(d+c));this.__setVertices([23,33],this.width,h+b,1,1*(d+c));this.__setVertices([27,30],g,this.height,1*e,1);this.__setVertex(26,0,this.height,0,1);this.__setVertices([31,34],g+l,this.height,1*(e+p),1);this.__setVertex(35,this.width,this.height,1,1);this.__setUOffsets([1,3,5,7,13,15,18,19,25,27, 29,31],-k);this.__setUOffsets([4,6,8,10,16,17,20,22,28,30,32,34],k);this.__setVOffsets([2,3,6,7,10,11,14,15,17,19,22,23],-n);this.__setVOffsets([12,13,16,18,20,21,24,25,28,29,32,33],n);this.__vertexBuffer=a.createVertexBuffer(16,14)}else 0==d&&0!=e?(this.__vertexBufferData=new Float32Array(112),p=c.y,c=this.height-e-p,d=p/this.height,e/=this.height,p/=b.get_scaleY(),c/=b.get_scaleY(),c=b.get_height()/b.get_scaleY()-p-c,b=b.get_width()/b.get_scaleX(),this.__vertexBufferData[0]=b,this.__vertexBufferData[1]= p,this.__vertexBufferData[3]=1,this.__vertexBufferData[4]=1*d,this.__vertexBufferData[15]=p,this.__vertexBufferData[18]=1*d,this.__vertexBufferData[28]=b,this.__vertexBufferData[31]=1,this.__vertexBufferData[56]=b,this.__vertexBufferData[57]=p+c,this.__vertexBufferData[59]=1,this.__vertexBufferData[60]=1*(d+e),this.__vertexBufferData[71]=p+c,this.__vertexBufferData[74]=1*(d+e),this.__vertexBufferData[84]=b,this.__vertexBufferData[85]=this.height,this.__vertexBufferData[87]=1,this.__vertexBufferData[88]= 1,this.__vertexBufferData[99]=this.height,this.__vertexBufferData[102]=1,this.__vertexBuffer=a.createVertexBuffer(8,14)):0==e&&0!=d&&(this.__vertexBufferData=new Float32Array(112),p=c.x,c=this.width-d-p,e=p/this.width,d/=this.width,p/=b.get_scaleX(),c/=b.get_scaleX(),c=b.get_width()/b.get_scaleX()-p-c,b=b.get_height()/b.get_scaleY(),this.__vertexBufferData[0]=p,this.__vertexBufferData[1]=b,this.__vertexBufferData[3]=1*e,this.__vertexBufferData[4]=1,this.__vertexBufferData[15]=b,this.__vertexBufferData[18]= 1,this.__vertexBufferData[28]=p,this.__vertexBufferData[31]=1*e,this.__vertexBufferData[56]=p+c,this.__vertexBufferData[57]=b,this.__vertexBufferData[59]=1*(e+d),this.__vertexBufferData[60]=1,this.__vertexBufferData[70]=p+c,this.__vertexBufferData[73]=1*(e+d),this.__vertexBufferData[84]=this.width,this.__vertexBufferData[85]=b,this.__vertexBufferData[87]=1,this.__vertexBufferData[88]=1,this.__vertexBufferData[98]=this.width,this.__vertexBufferData[101]=1,this.__vertexBuffer=a.createVertexBuffer(8, 14))}else this.__vertexBufferGrid=null;null==this.__vertexBuffer&&(this.__vertexBufferData=new Float32Array(56),this.__vertexBufferData[0]=this.width,this.__vertexBufferData[1]=this.height,this.__vertexBufferData[3]=1,this.__vertexBufferData[4]=1,this.__vertexBufferData[15]=this.height,this.__vertexBufferData[18]=1,this.__vertexBufferData[28]=this.width,this.__vertexBufferData[31]=1,this.__vertexBuffer=a.createVertexBuffer(3,14));this.__vertexBuffer.uploadFromTypedArray(this.__vertexBufferData)}return this.__vertexBuffer}, getColorBoundsRect:function(a,c,b){null==b&&(b=!0);if(!this.readable)return new ia(0,0,this.width,this.height);a=this.image.getColorBoundsRect(a,c,b,1);return new ia(a.x,a.y,a.width,a.height)},getPixel:function(a,c){return this.readable?this.image.getPixel(a,c,1):0},getPixel32:function(a,c){return this.readable?this.image.getPixel32(a,c,1):0},getPixels:function(a){if(!this.readable)return null;null==a&&(a=this.rect);a=za.fromBytes(this.image.getPixels(a.__toLimeRectangle(),1));a.__endian=0;return a}, getSurface:function(){if(!this.readable)return null;null==this.__surface&&(this.__surface=Zg.fromImage(this.image));return this.__surface},getTexture:function(a){if(!this.__isValid)return null;if(null==this.__texture||this.__textureContext!=a.__context)this.__textureContext=a.__context,this.__texture=a.createRectangleTexture(this.width,this.height,1,!1),this.__textureVersion=-1;ua.sync(this.image,!1);null!=this.image&&this.image.version>this.__textureVersion&&(null!=this.__surface&&Rq.flush(this.__surface), a=this.image,qc.__supportsBGRA||0==a.get_format()||(a=a.clone(),a.set_format(0)),this.__texture.__uploadFromImage(a),this.__textureVersion=this.image.version,this.__textureWidth=a.buffer.width,this.__textureHeight=a.buffer.height);this.readable||null==this.image||(this.image=this.__surface=null);return this.__texture},getVector:function(a){a=this.getPixels(a);for(var c=Ea.toFloat(za.get_length(a))/Ea.toFloat(4)|0,b=Ja.toIntVector(null,c,!0),f=0;ff;)f++,b.push(0);c.push(b);b=[];for(f=0;256>f;)f++,b.push(0);c.push(b);b=[];for(f=0;256>f;)f++,b.push(0);c.push(b);b=[];for(f=0;256>f;)f++,b.push(0);c.push(b);b=0;for(f=za.get_length(a);b>24&255)>c)return!0}else if(b instanceof ra){var d;if(null==f)var h=d=0;else d=Math.round(f.x-a.x),h=Math.round(f.y-a.y);a=ia.__pool.get();a.setTo(d,h,b.width,b.height);if(this.rect.intersects(a)){0>d?(a.x=0,a.width=Math.min(b.width+d,this.width)):a.width=Math.min(b.width,this.width-d);0>h?(a.y=0,a.height=Math.min(b.height+h,this.height)):a.height=Math.min(b.height,this.height-h);f=this.getPixels(a);a.x=0>d?-d:0;a.y=0>h?-h:0; b=b.getPixels(a);for(var l=0,m=a.width*a.height|0;l>>24&255,c)&&Ea.gt(h>>>24&255,e))return ia.__pool.release(a),!0}ia.__pool.release(a)}else if(b instanceof ia){e=ia.__pool.get();e.copyFrom(b);e.offset(-a.x,-a.y);e.__contract(0,0,this.width,this.height);if(0>>24&255,c))return ia.__pool.release(e),!0; ia.__pool.release(e)}return!1},lock:function(){},merge:function(a,c,b,f,e,g,h){this.readable&&null!=a&&a.readable&&null!=c&&null!=b&&this.image.merge(a.image,c.__toLimeRectangle(),b.__toLimeVector2(),f,e,g,h)},noise:function(a,c,b,f,e){null==e&&(e=!1);null==f&&(f=7);null==b&&(b=255);null==c&&(c=0);if(this.readable){var d=function(){a=1103515245*a+12345;return(Math.abs(a/65536)|0)%32768};d();b-=c;var h=1==(f&1),l=1==(f&2)>>1,m=1==(f&4)>>2;f=1==(f&8)>>3;for(var p=0,k=this.height;p>24&255];var u=null==f?n&16711680:f[n>>16&255];var v=null==e?n&65280:e[n>>8&255];n=null==g?n&255:g[n&255];u=q+u+v+n;a.position=4*k;a.writeUnsignedInt(u)}a.position= 0;f=ia.__pool.get();f.setTo(b.x,b.y,d,m);this.setPixels(f,a);ia.__pool.release(f)},perlinNoise:function(a,c,b,f,e,g,h,l,m){null==l&&(l=!1);null==h&&(h=7);this.readable&&(new Wi(f,b,h,l,.5,e,.15)).fill(this,a,c,0)},scroll:function(a,c){this.readable&&this.image.scroll(a,c)},setPixel:function(a,c,b){this.readable&&this.image.setPixel(a,c,b,1)},setPixel32:function(a,c,b){this.readable&&this.image.setPixel32(a,c,b,1)},setPixels:function(a,c){if(this.readable&&null!=a){var b=a.width*a.height*4;if(Ea.toFloat(c.length- c.position)a.width||c.y>a.height||b.x>this.width|| b.y>this.height?0:this.image.threshold(a.image,c.__toLimeRectangle(),b.__toLimeVector2(),f,e,g,h,l,1)},unlock:function(a){},__applyAlpha:function(a){ua.convertToCanvas(this.image);ua.createImageData(this.image);for(var c=this.image.buffer.data,b=0,f=za.get_length(a);b=6*y?r=w=!0:u.get_length()>=4*y?w=!0:u.get_length()>=2*y&&(r=!0));null==a.__quadBuffer?a.__quadBuffer=new li(c,bx.QUADS,y,4):a.__quadBuffer.resize(b+y,4);for(var x,I,B,P,D,A,C,F,E,H,G,J,L,M,N=a.__quadBuffer.vertexBufferData,z=m.width,O=m.height,Q=0,R=y;QI||(h.setTo(n.get(I),n.get(I+1),n.get(I+2),n.get(I+3)),I=h.width,B=h.height,0>=I||0>=B||(w&&r?(P*=6,l.setTo(u.get(P),u.get(P+1),u.get(P+2),u.get(P+3),u.get(P+4),u.get(P+ 5))):w?(P*=4,l.setTo(u.get(P),u.get(P+1),u.get(P+2),u.get(P+3),h.x,h.y)):r?(P*=2,l.tx=u.get(P),l.ty=u.get(P+1)):(l.tx=h.x,l.ty=h.y),P=h.x/z,D=h.y/O,A=h.get_right()/z,C=h.get_bottom()/O,F=0*l.a+0*l.c+l.tx,E=0*l.b+0*l.d+l.ty,H=I*l.a+0*l.c+l.tx,G=I*l.b+0*l.d+l.ty,J=0*l.a+B*l.c+l.tx,L=0*l.b+B*l.d+l.ty,M=I*l.a+B*l.c+l.tx,I=I*l.b+B*l.d+l.ty,N[x]=F,N[x+1]=E,N[x+2]=P,N[x+3]=D,N[x+4]=H,N[x+4+1]=G,N[x+4+2]=A,N[x+4+3]=D,N[x+8]=J,N[x+8+1]=L,N[x+8+2]=P,N[x+8+3]=C,N[x+12]=M,N[x+12+1]=I,N[x+12+2]=A,N[x+12+3]=C)); b+=y}break;case 12:switch(g.prev._hx_index){case 0:g.oPos+=2;g.bPos+=2;break;case 1:g.iPos+=1;g.fPos+=1;break;case 2:g.oPos+=4;g.iiPos+=2;g.ffPos+=1;g.fPos+=1;break;case 3:g.oPos+=1;break;case 4:g.fPos+=6;break;case 5:g.fPos+=4;break;case 6:g.fPos+=3;break;case 7:g.fPos+=4;break;case 8:g.oPos+=3;break;case 9:g.fPos+=4;break;case 10:g.fPos+=5;g.oPos+=1;break;case 12:g.oPos+=4;break;case 14:g.oPos+=2;g.bPos+=2;break;case 15:g.oPos+=4;g.iiPos+=2;g.ffPos+=1;g.fPos+=1;break;case 16:g.oPos+=4;g.iPos+=1; g.fPos+=2;g.bPos+=1;break;case 17:g.fPos+=2;break;case 18:g.fPos+=2;break;case 19:g.oPos+=1;break;case 20:g.oPos+=1}g.prev=la.DRAW_TRIANGLES;u=g;n=u.buffer.o[u.oPos];q=u.buffer.o[u.oPos+1];u=u.buffer.o[u.oPos+2];v=null!=q;y=Math.floor(n.get_length()/2);w=v?q.get_length():y;x=(y=(r=null!=u)&&u.get_length()>=3*y)?4:2;N=y?3:2;z=x+2;O=y?e:f;Vc.resizeVertexBuffer(a,y,O+w*z);Q=y?a.__vertexBufferDataUVT:a.__vertexBufferData;B=0;for(P=w;Ba.__vertexBufferCount)b=c.createVertexBuffer(f,4,0),a.__vertexBuffer=b,a.__vertexBufferCount=f;b.uploadFromTypedArray(a.__vertexBufferData)}if(0< e){f=a.__vertexBufferUVT;if(null==f||e>a.__vertexBufferCountUVT)f=c.createVertexBuffer(e,6,0),a.__vertexBufferUVT=f,a.__vertexBufferCountUVT=e;f.uploadFromTypedArray(a.__vertexBufferDataUVT)}ia.__pool.release(h);Ha.__pool.release(l)};Vc.isCompatible=function(a){if(null!=a.__owner.__worldScale9Grid)return!1;var c=new ug(a.__commands),b=!1,f=!1,e=!1,g=0;for(a=a.__commands.types;g=r)break;null==g||Vc.maskRender||c.__updateShaderBuffer(n);null!=y.__position&&f.setVertexBufferAt(y.__position.index,a.__quadBuffer.vertexBuffer,16*k,2);null!=y.__textureCoord&&f.setVertexBufferAt(y.__textureCoord.index,a.__quadBuffer.vertexBuffer,16*k+2,2);f.drawTriangles(f.__quadIndexBuffer, 0,2*r);n+=4*r;k+=r}c.__clearShader()}break;case 9:if(null!=p){switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1; b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=la.DRAW_RECT;var I=b;r=I.buffer.f[I.fPos];y=I.buffer.f[I.fPos+1];x=I.buffer.f[I.fPos+2];var B=I.buffer.f[I.fPos+3];I=p;Vc.tempColorTransform.redOffset=I>>>16&255;Vc.tempColorTransform.greenOffset=I>>>8&255;Vc.tempColorTransform.blueOffset=I&255;Vc.tempColorTransform.__combine(a.__owner.__worldColorTransform);e.identity();e.scale(x,B); e.tx=r;e.ty=y;e.concat(a.__owner.__renderTransform);r=Vc.maskRender?c.__maskShader:c.__initGraphicsShader(null);c.setShader(r);c.applyMatrix(c.__getMatrix(e,1));c.applyBitmapData(Vc.blankBitmapData,!0,l);c.applyAlpha((I>>>24&255)/255*a.__owner.__worldAlpha);c.applyColorTransform(Vc.tempColorTransform);c.updateShader();y=Vc.blankBitmapData.getVertexBuffer(f);null!=r.__position&&f.setVertexBufferAt(r.__position.index,y,0,3);null!=r.__textureCoord&&f.setVertexBufferAt(r.__textureCoord.index,y,3,2);r= Vc.blankBitmapData.getIndexBuffer(f);f.drawTriangles(r);n+=4;c.__clearShader()}break;case 12:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+= 4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=la.DRAW_TRIANGLES;B=b;y=B.buffer.o[B.oPos+1];x=B.buffer.o[B.oPos+2];r=B.buffer.o[B.oPos+3];I=null!=y;B=Math.floor(B.buffer.o[B.oPos].get_length()/2);y=I?y.get_length():B;I=(x=null!=x&&x.get_length()>=3*B)?4:2;B=I+2;var P=x?a.__vertexBufferUVT:a.__vertexBuffer,D=x?u:q,A=c.__getMatrix(a.__owner.__renderTransform, 1);if(null==g||Vc.maskRender){var F=Vc.maskRender?c.__maskShader:c.__initGraphicsShader(null);c.setShader(F);c.applyMatrix(A);c.applyBitmapData(h,m,l);c.applyAlpha(a.__owner.__worldAlpha);c.applyColorTransform(a.__owner.__worldColorTransform);c.updateShader()}else F=c.__initShaderBuffer(g),c.__setShaderBuffer(g),c.applyMatrix(A),c.applyBitmapData(h,!1,l),c.applyAlpha(1),c.applyColorTransform(null),c.__updateShaderBuffer(n);null!=F.__position&&f.setVertexBufferAt(F.__position.index,P,D,x?4:2);null!= F.__textureCoord&&f.setVertexBufferAt(F.__textureCoord.index,P,D+I,2);switch(r){case 0:f.setCulling(0);break;case 1:f.setCulling(3);break;case 2:f.setCulling(1)}f.__drawTriangles(0,y);n+=y;x?u+=B*y:q+=B*y;switch(r){case 1:case 2:f.setCulling(0)}c.__clearShader();break;case 13:g=p=h=null;switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break; case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=r;break;case 18:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+= 4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=la.MOVE_TO; break;case 19:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+= 2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=la.OVERRIDE_BLEND_MODE;r=b;c.__setBlendMode(r.buffer.o[r.oPos]);break;default:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+= 5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=r}}Ha.__pool.release(e)}a.__hardwareDirty=!1;a.set___dirty(!1)}};Vc.renderMask=function(a,b){Vc.maskRender=!0;Vc.render(a,b);Vc.maskRender=!1};Vc.resizeIndexBuffer=function(a,b,d){if(!b){var c=b?null:a.__triangleIndexBufferData, e=null;null==c?e=null!=d?new Uint16Array(d):null:d>c.length&&(e=null!=d?new Uint16Array(d):null,e.set(c));null==e||b||(a.__triangleIndexBufferData=e)}};Vc.resizeVertexBuffer=function(a,b,d){var c=b?a.__vertexBufferDataUVT:a.__vertexBufferData,e=null;null==c?e=null!=d?new Float32Array(d):null:d>c.length&&(e=null!=d?new Float32Array(d):null,e.set(c));null!=e&&(b?a.__vertexBufferDataUVT=e:a.__vertexBufferData=e)};var Vi=function(){null==this.__glFragmentSource&&(this.__glFragmentSource="varying vec2 openfl_TextureCoordv;\n\t\t\n\t\tuniform sampler2D openfl_Texture;\n\t\t\n\t\tvoid main(void) {\n\t\t\t\n\t\t\tvec4 color = texture2D (openfl_Texture, openfl_TextureCoordv);\n\t\t\t\n\t\t\tif (color.a == 0.0) {\n\t\t\t\t\n\t\t\t\tdiscard;\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\t\n\t\t\t\tgl_FragColor = color;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}"); null==this.__glVertexSource&&(this.__glVertexSource="attribute vec4 openfl_Position;\n\t\tattribute vec2 openfl_TextureCoord;\n\t\tvarying vec2 openfl_TextureCoordv;\n\t\t\n\t\tuniform mat4 openfl_Matrix;\n\t\t\n\t\tvoid main(void) {\n\t\t\t\n\t\t\topenfl_TextureCoordv = openfl_TextureCoord;\n\t\t\t\n\t\t\tgl_Position = openfl_Matrix * openfl_Position;\n\t\t\t\n\t\t}");Ye.call(this);this.__isGenerated=!0;this.__initGL()};k["openfl._internal.renderer.context3D.Context3DMaskShader"]=Vi;Vi.__name__= "openfl._internal.renderer.context3D.Context3DMaskShader";Vi.__super__=Ye;Vi.prototype=r(Ye.prototype,{openfl_Position:null,openfl_TextureCoord:null,openfl_Matrix:null,openfl_Texture:null,__class__:Vi});var Vj=function(a,b){ff.call(this)};k["openfl.display.OpenGLRenderer"]=Vj;Vj.__name__="openfl.display.OpenGLRenderer";Vj.__super__=ff;Vj.prototype=r(ff.prototype,{gl:null,applyAlpha:function(a){},applyBitmapData:function(a,b,d){},applyColorTransform:function(a){},applyHasColorTransform:function(a){}, applyMatrix:function(a){},getMatrix:function(a){return null},setShader:function(a){},setViewport:function(){},updateShader:function(){},useAlphaArray:function(){},useColorTransformArray:function(){},__class__:Vj});var Db=function(a,b){var c=this;ff.call(this);this.__init(a,b);null==jf.maxTextureWidth&&(jf.maxTextureWidth=jf.maxTextureHeight=this.__gl.getParameter(this.__gl.MAX_TEXTURE_SIZE));this.__matrix=ka._new();this.__values=[];this.__softwareRenderer=new fh(null);this.__type="opengl";this.__setBlendMode(10); this.context3D.__setGLBlend(!0);this.__clipRects=[];this.__maskObjects=[];this.__numClipRects=0;this.__projection=ka._new();this.__projectionFlipped=ka._new();this.__stencilReference=0;this.__tempRect=new ia;this.__defaultDisplayShader=new Mo;this.__defaultGraphicsShader=new No;this.__defaultShader=this.__defaultDisplayShader;this.__initShader(this.__defaultShader);this.__scrollRectMasks=new Ia(function(){return new Oe});this.__alphaMaskShader=new Ko;this.__maskShader=new Vi;null==Db.__childRendererPool&& (Db.__childRendererPool=new Ia(function(){var a=new Db(c.context3D,null);a.__worldTransform=new Ha;a.__worldColorTransform=new Sb;return a}))};k["openfl._internal.renderer.context3D.Context3DRenderer"]=Db;Db.__name__="openfl._internal.renderer.context3D.Context3DRenderer";Db.__super__=Vj;Db.prototype=r(Vj.prototype,{context3D:null,__alphaMaskShader:null,__clipRects:null,__context:null,__currentDisplayShader:null,__currentGraphicsShader:null,__currentRenderTarget:null,__currentShader:null,__currentShaderBuffer:null, __defaultDisplayShader:null,__defaultGraphicsShader:null,__defaultRenderTarget:null,__defaultShader:null,__displayHeight:null,__displayWidth:null,__flipped:null,__gl:null,__height:null,__maskShader:null,__matrix:null,__maskObjects:null,__numClipRects:null,__offsetX:null,__offsetY:null,__projection:null,__projectionFlipped:null,__scrollRectMasks:null,__softwareRenderer:null,__stencilReference:null,__tempColorTransform:null,__tempRect:null,__updatedStencil:null,__upscaled:null,__values:null,__width:null, applyAlpha:function(a){Db.__alphaValue[0]=a;null!=this.__currentShaderBuffer?this.__currentShaderBuffer.addFloatOverride("openfl_Alpha",Db.__alphaValue):null!=this.__currentShader&&null!=this.__currentShader.__alpha&&(this.__currentShader.__alpha.value=Db.__alphaValue)},applyBitmapData:function(a,b,d){null==d&&(d=!1);null!=this.__currentShaderBuffer?null!=a&&(Db.__textureSizeValue[0]=a.__textureWidth,Db.__textureSizeValue[1]=a.__textureHeight,this.__currentShaderBuffer.addFloatOverride("openfl_TextureSize", Db.__textureSizeValue)):null!=this.__currentShader&&(null!=this.__currentShader.__bitmap&&(this.__currentShader.__bitmap.input=a,this.__currentShader.__bitmap.filter=b&&this.__allowSmoothing?4:5,this.__currentShader.__bitmap.mipFilter=2,this.__currentShader.__bitmap.wrap=d?2:0),null!=this.__currentShader.__texture&&(this.__currentShader.__texture.input=a,this.__currentShader.__texture.filter=b&&this.__allowSmoothing?4:5,this.__currentShader.__texture.mipFilter=2,this.__currentShader.__texture.wrap= d?2:0),null!=this.__currentShader.__textureSize&&(null!=a?(Db.__textureSizeValue[0]=a.__textureWidth,Db.__textureSizeValue[1]=a.__textureHeight,this.__currentShader.__textureSize.value=Db.__textureSizeValue):this.__currentShader.__textureSize.value=null))},applyColorTransform:function(a){var b=null!=a&&!a.__isDefault(!0);this.applyHasColorTransform(b);b?(a.__setArrays(Db.__colorMultipliersValue,Db.__colorOffsetsValue),null!=this.__currentShaderBuffer?(this.__currentShaderBuffer.addFloatOverride("openfl_ColorMultiplier", Db.__colorMultipliersValue),this.__currentShaderBuffer.addFloatOverride("openfl_ColorOffset",Db.__colorOffsetsValue)):null!=this.__currentShader&&(null!=this.__currentShader.__colorMultiplier&&(this.__currentShader.__colorMultiplier.value=Db.__colorMultipliersValue),null!=this.__currentShader.__colorOffset&&(this.__currentShader.__colorOffset.value=Db.__colorOffsetsValue))):null!=this.__currentShaderBuffer?(this.__currentShaderBuffer.addFloatOverride("openfl_ColorMultiplier",Db.__emptyColorValue), this.__currentShaderBuffer.addFloatOverride("openfl_ColorOffset",Db.__emptyColorValue)):null!=this.__currentShader&&(null!=this.__currentShader.__colorMultiplier&&(this.__currentShader.__colorMultiplier.value=Db.__emptyColorValue),null!=this.__currentShader.__colorOffset&&(this.__currentShader.__colorOffset.value=Db.__emptyColorValue))},applyHasColorTransform:function(a){Db.__hasColorTransformValue[0]=a;null!=this.__currentShaderBuffer?this.__currentShaderBuffer.addBoolOverride("openfl_HasColorTransform", Db.__hasColorTransformValue):null!=this.__currentShader&&null!=this.__currentShader.__hasColorTransform&&(this.__currentShader.__hasColorTransform.value=Db.__hasColorTransformValue)},applyMatrix:function(a){null!=this.__currentShaderBuffer?this.__currentShaderBuffer.addFloatOverride("openfl_Matrix",a):null!=this.__currentShader&&null!=this.__currentShader.__matrix&&(this.__currentShader.__matrix.value=a)},getMatrix:function(a){null!=this.__gl?(a=this.__getMatrix(a,1),ka.set(this.__matrix,0,a[0]), ka.set(this.__matrix,1,a[1]),ka.set(this.__matrix,2,a[2]),ka.set(this.__matrix,3,a[3]),ka.set(this.__matrix,4,a[4]),ka.set(this.__matrix,5,a[5]),ka.set(this.__matrix,6,a[6]),ka.set(this.__matrix,7,a[7]),ka.set(this.__matrix,8,a[8]),ka.set(this.__matrix,9,a[9]),ka.set(this.__matrix,10,a[10]),ka.set(this.__matrix,11,a[11]),ka.set(this.__matrix,12,a[12]),ka.set(this.__matrix,13,a[13]),ka.set(this.__matrix,14,a[14]),ka.set(this.__matrix,15,a[15])):(ka.identity(this.__matrix),ka.set(this.__matrix,0,a.a), ka.set(this.__matrix,1,a.b),ka.set(this.__matrix,4,a.c),ka.set(this.__matrix,5,a.d),ka.set(this.__matrix,12,a.tx),ka.set(this.__matrix,13,a.ty));return this.__matrix},setShader:function(a){this.__currentShaderBuffer=null;this.__currentShader!=a&&(null==a?(this.__currentShader=null,this.context3D.setProgram(null)):(this.__currentShader=a,this.__initShader(a),this.context3D.setProgram(a.program),this.context3D.__flushGLProgram(),this.__currentShader.__enable(),this.context3D.__state.shader=a))},setViewport:function(){this.__gl.viewport(this.__offsetX, this.__offsetY,this.__displayWidth,this.__displayHeight)},updateShader:function(){null!=this.__currentShader&&(null!=this.__currentShader.__position&&(this.__currentShader.__position.__useArray=!0),null!=this.__currentShader.__textureCoord&&(this.__currentShader.__textureCoord.__useArray=!0),this.context3D.setProgram(this.__currentShader.program),this.context3D.__flushGLProgram(),this.context3D.__flushGLTextures(),this.__currentShader.__update())},useAlphaArray:function(){null!=this.__currentShader&& null!=this.__currentShader.__alpha&&(this.__currentShader.__alpha.__useArray=!0)},useColorTransformArray:function(){null!=this.__currentShader&&(null!=this.__currentShader.__colorMultiplier&&(this.__currentShader.__colorMultiplier.__useArray=!0),null!=this.__currentShader.__colorOffset&&(this.__currentShader.__colorOffset.__useArray=!0))},__cleanup:function(){0>>16&255)/255,(d>>>8&255)/255,(d&255)/255,a.transparent?(d>>>24&255)/255:1,0,0,1);e&&c.setScissorRectangle(null);null!= g?c.setRenderToTexture(g,h,l,m):c.setRenderToBackBuffer()}},__getAlpha:function(a){return a*this.__worldAlpha},__getColorTransform:function(a){return null!=this.__worldColorTransform?(this.__tempColorTransform.__copyFrom(this.__worldColorTransform),this.__tempColorTransform.__combine(a),this.__tempColorTransform):a},__getMatrix:function(a,b){var c=Ha.__pool.get();c.copyFrom(a);c.concat(this.__worldTransform);if(0==b||1==b&&0==c.b&&0==c.c&&1.001>c.a&&.999c.d&&.999b.height&&(b.height=0);0>b.width&&(b.width=0);Ha.__pool.release(c);this.__scissorRect(b);this.__numClipRects++},__render:function(a){this.context3D.setColorMask(!0,!0,!0,!0);this.context3D.setCulling(3);this.context3D.setDepthTest(!1,0);this.context3D.setStencilActions();this.context3D.setStencilReferenceValue(0,0,0);this.context3D.setScissorRectangle(null);this.__blendMode=null;this.__setBlendMode(10);if(null==this.__defaultRenderTarget){if(Db.__scissorRectangle.setTo(this.__offsetX, this.__offsetY,this.__displayWidth,this.__displayHeight),this.context3D.setScissorRectangle(Db.__scissorRectangle),this.__upscaled=1!=this.__worldTransform.a||1!=this.__worldTransform.d,null!=a&&null!=a.__type&&this.__renderDisplayObject(a),0=a.__worldAlpha)){if(null!=a.opaqueBackground&&!a.__isCacheBitmapRender&&0>>16&255)/255,(f>>>8&255)/255,(f&255)/255,1,0,0,1);this.__popMaskRect();this.__popMaskObject(a);ia.__pool.release(d)}null!=a.__graphics&&If.render(a,this)}gh.render(a,this)}else gh.render(a.__cacheBitmap,this)},__renderBitmapData:function(a){this.__setBlendMode(10);var b=this.__defaultDisplayShader;this.setShader(b); this.applyBitmapData(a,this.__upscaled);this.applyMatrix(this.__getMatrix(a.__worldTransform,1));this.applyAlpha(a.__worldAlpha);this.applyColorTransform(a.__worldColorTransform);this.updateShader();var d=a.getVertexBuffer(this.context3D);null!=b.__position&&this.context3D.setVertexBufferAt(b.__position.index,d,0,3);null!=b.__textureCoord&&this.context3D.setVertexBufferAt(b.__textureCoord.index,d,3,2);a=a.getIndexBuffer(this.context3D);this.context3D.drawTriangles(a);this.__clearShader()},__renderDisplayObject:function(a){if(null!= a&&null!=a.__type){switch(a.__type._hx_index){case 0:this.__renderBitmap(a);break;case 2:this.__renderDisplayObjectContainer(a);break;case 1:case 4:this.__renderShape(a);break;case 5:this.__renderSimpleButton(a);break;case 6:this.__renderTextField(a);break;case 7:this.__renderTilemap(a);break;case 8:this.__renderVideo(a)}if(null!=a.__customRenderEvent){var b=a.__customRenderEvent;b.allowSmoothing=this.__allowSmoothing;b.objectMatrix.copyFrom(a.__renderTransform);b.objectColorTransform.__copyFrom(a.__worldColorTransform); b.renderer=this;this.__cleared||this.__clear();this.setShader(a.__worldShader);this.context3D.__flushGL();b.type="renderOpenGL";this.__setBlendMode(a.__worldBlendMode);this.__pushMaskObject(a);a.dispatchEvent(b);this.__popMaskObject(a);this.setViewport()}}},__renderDisplayObjectContainer:function(a){for(var b=a.__removedChildren.iterator();b.hasNext();){var d=b.next();null==d.stage&&d.__cleanup()}a.__removedChildren.set_length(0);if(a.__renderable&&!(0>=a.__worldAlpha)){this.__updateCacheBitmap(a, !1);if(null!=a.__cacheBitmap&&!a.__isCacheBitmapRender)gh.render(a.__cacheBitmap,this);else if(!(null==a.opaqueBackground&&null==a.__graphics||!a.__renderable||0>=a.__worldAlpha)){if(null!=a.opaqueBackground&&!a.__isCacheBitmapRender&&0>>16&255)/ 255,(f>>>8&255)/255,(f&255)/255,1,0,0,1);this.__popMaskRect();this.__popMaskObject(a);ia.__pool.release(d)}null!=a.__graphics&&If.render(a,this)}if(null==a.__cacheBitmap||a.__isCacheBitmapRender){if(0=a.__worldAlpha)){if(null!= a.opaqueBackground&&!a.__isCacheBitmapRender&&0>>16&255)/255,(f>>>8&255)/255,(f&255)/255,1,0,0,1);this.__popMaskRect();this.__popMaskObject(a);ia.__pool.release(d)}null!=a.__graphics&&If.render(a,this)}},__renderSimpleButton:function(a){!a.__renderable|| 0>=a.__worldAlpha||null==a.__currentState||(this.__pushMaskObject(a),this.__renderDisplayObject(a.__currentState),this.__popMaskObject(a))},__renderTextField:function(a){this.__updateCacheBitmap(a,a.__dirty);if(null==a.__cacheBitmap||a.__isCacheBitmapRender){if(sl.render(a,this),!(null==a.opaqueBackground&&null==a.__graphics||!a.__renderable||0>=a.__worldAlpha)){if(null!=a.opaqueBackground&&!a.__isCacheBitmapRender&&0>>16&255)/255,(f>>>8&255)/255,(f&255)/255,1,0,0,1);this.__popMaskRect();this.__popMaskObject(a);ia.__pool.release(d)}null!=a.__graphics&&If.render(a,this)}}else gh.render(a.__cacheBitmap,this)},__renderTilemap:function(a){this.__updateCacheBitmap(a,!1);if(null==a.__cacheBitmap||a.__isCacheBitmapRender){if(!(null==a.opaqueBackground&&null== a.__graphics||!a.__renderable||0>=a.__worldAlpha)){if(null!=a.opaqueBackground&&!a.__isCacheBitmapRender&&0>>16&255)/255,(f>>>8&255)/255,(f&255)/255,1,0,0,1);this.__popMaskRect();this.__popMaskObject(a);ia.__pool.release(d)}null!=a.__graphics&& If.render(a,this)}na.render(a,this)}else gh.render(a.__cacheBitmap,this)},__renderVideo:function(a){Dh.render(a,this)},__resize:function(a,b){this.__width=a;this.__height=b;b=null==this.__defaultRenderTarget?this.__stage.stageWidth:this.__defaultRenderTarget.width;a=null==this.__defaultRenderTarget?this.__stage.stageHeight:this.__defaultRenderTarget.height;if(null==this.__defaultRenderTarget){var c=this.__worldTransform;c=Math.round(0*c.a+0*c.c+c.tx)}else c=0;this.__offsetX=c;null==this.__defaultRenderTarget? (c=this.__worldTransform,c=Math.round(0*c.b+0*c.d+c.ty)):c=0;this.__offsetY=c;null==this.__defaultRenderTarget&&(c=this.__worldTransform,b=Math.round(b*c.a+0*c.c+c.tx-this.__offsetX));this.__displayWidth=b;null==this.__defaultRenderTarget&&(b=this.__worldTransform,a=Math.round(0*b.b+a*b.d+b.ty-this.__offsetY));this.__displayHeight=a;ka.createOrtho(this.__projection,0,this.__displayWidth+2*this.__offsetX,0,this.__displayHeight+2*this.__offsetY,-1E3,1E3);ka.createOrtho(this.__projectionFlipped,0,this.__displayWidth+ 2*this.__offsetX,this.__displayHeight+2*this.__offsetY,0,-1E3,1E3)},__resumeClipAndMask:function(a){0f&&(f=0);0>a&&(a=0);Db.__scissorRectangle.setTo(b,d,f,a);this.context3D.setScissorRectangle(Db.__scissorRectangle)}else this.context3D.setScissorRectangle(null)},__setBlendMode:function(a){null!=this.__overrideBlendMode&&(a=this.__overrideBlendMode);if(this.__blendMode!=a)switch(this.__blendMode=a,a){case 0:this.context3D.setBlendFactors(2,2);break;case 9:this.context3D.setBlendFactors(1,5);break;case 12:this.context3D.setBlendFactors(2, 6);break;case 14:this.context3D.setBlendFactors(2,2);this.context3D.__setGLBlendEquation(this.__gl.FUNC_REVERSE_SUBTRACT);break;default:this.context3D.setBlendFactors(2,5)}},__setRenderTarget:function(a){this.__defaultRenderTarget=a;this.__flipped=null==a;null!=a&&this.__resize(a.width,a.height)},__setShaderBuffer:function(a){this.setShader(a.shader);this.__currentShaderBuffer=a},__shouldCacheHardware:function(a,b){if(1==b)return!0;switch(a.__type._hx_index){case 2:if(null!=a.__filters)return!0;if(0== b||null!=a.__graphics&&!Vc.isCompatible(a.__graphics))b=!1;if(null!=a.__children){var c=0;for(a=a.__children;ca.__cacheBitmapDataTexture.width||m>a.__cacheBitmapDataTexture.height){for(h=1;ha.__cacheBitmapDataTexture.width||k>a.__cacheBitmapDataTexture.height)p=this.context3D.createRectangleTexture(p,k,1,!0),a.__cacheBitmapDataTexture=ra.fromTexture(p);a.__cacheBitmapDataTexture.fillRect(b,0);u&&(b.setTo(0,0,l,m),a.__cacheBitmapDataTexture.fillRect(b,v))}else return Sb.__pool.release(g),a.__cacheBitmap=null,a.__cacheBitmapData= null,a.__cacheBitmapDataTexture=null,!0;null==a.__cacheBitmap&&(a.__cacheBitmap=new Rc);a.__cacheBitmap.set_bitmapData(a.__cacheBitmapDataTexture);c&&(a.__cacheBitmap.__worldTransform.copyFrom(a.__worldTransform),e==a.__renderTransform?(a.__cacheBitmap.__renderTransform.identity(),a.__cacheBitmap.__renderTransform.tx=a.__renderTransform.tx+n,a.__cacheBitmap.__renderTransform.ty=a.__renderTransform.ty+q):(a.__cacheBitmap.__renderTransform.copyFrom(a.__cacheBitmapMatrix),a.__cacheBitmap.__renderTransform.invert(), a.__cacheBitmap.__renderTransform.concat(a.__renderTransform),a.__cacheBitmap.__renderTransform.tx+=n,a.__cacheBitmap.__renderTransform.ty+=q));a.__cacheBitmap.smoothing=this.__allowSmoothing;a.__cacheBitmap.__renderable=a.__renderable;a.__cacheBitmap.__worldAlpha=a.__worldAlpha;a.__cacheBitmap.__worldBlendMode=a.__worldBlendMode;a.__cacheBitmap.__worldShader=a.__worldShader;a.__cacheBitmap.set_mask(a.__mask);if(h){e=Db.__childRendererPool.get();e.__init(this.context3D,a.__cacheBitmapDataTexture); e.__stage=a.stage;e.__allowSmoothing=this.__allowSmoothing;e.__setBlendMode(10);e.__worldAlpha=1/a.__worldAlpha;e.__worldTransform.copyFrom(a.__renderTransform);e.__worldTransform.invert();e.__worldTransform.concat(a.__cacheBitmapMatrix);e.__worldTransform.tx-=n;e.__worldTransform.ty-=q;e.__worldColorTransform.__copyFrom(g);e.__worldColorTransform.__invert();a.__isCacheBitmapRender=!0;h=this.context3D.__state.renderToTexture;n=this.context3D.__state.renderToTextureDepthStencil;q=this.context3D.__state.renderToTextureAntiAlias; p=this.context3D.__state.renderToTextureSurfaceSelector;u=this.__blendMode;this.__suspendClipAndMask();e.__copyShader(this);a.__cacheBitmapDataTexture.__setUVRect(this.context3D,0,0,l,m);e.__setRenderTarget(a.__cacheBitmapDataTexture);e.__drawBitmapData(a.__cacheBitmapDataTexture,a,null);if(f){var w=!1;f=0;for(v=a.__filters;f=a.__worldAlpha)){var c=a.__graphics;if(null!=c){b.__setBlendMode(a.__worldBlendMode);b.__pushMaskObject(a);Vc.render(c,b);if(null!=c.__bitmap&&c.__visible){var f=b.context3D, e=a.__worldScale9Grid,g=b.__initDisplayShader(a.__worldShader);b.setShader(g);b.applyBitmapData(c.__bitmap,!0);b.applyMatrix(b.__getMatrix(c.__worldTransform,1));b.applyAlpha(a.__worldAlpha);b.applyColorTransform(a.__worldColorTransform);b.updateShader();var h=c.__bitmap.getVertexBuffer(f,e,a);null!=g.__position&&f.setVertexBufferAt(g.__position.index,h,0,3);null!=g.__textureCoord&&f.setVertexBufferAt(g.__textureCoord.index,h,3,2);c=c.__bitmap.getIndexBuffer(f,e);f.drawTriangles(c);b.__clearShader()}b.__popMaskObject(a)}}}; If.renderMask=function(a,b){var c=a.__graphics;if(null!=c&&(Vc.renderMask(c,b),null!=c.__bitmap)){a=b.context3D;var f=b.__maskShader;b.setShader(f);b.applyBitmapData(c.__bitmap,!0);b.applyMatrix(b.__getMatrix(c.__worldTransform,1));b.updateShader();var e=c.__bitmap.getVertexBuffer(a);null!=f.__position&&a.setVertexBufferAt(f.__position.index,e,0,3);null!=f.__textureCoord&&a.setVertexBufferAt(f.__textureCoord.index,e,3,2);c=c.__bitmap.getIndexBuffer(a);a.drawTriangles(c);b.__clearShader()}};var tl= function(){this.backBufferEnableDepthAndStencil=!1;this.blendDestinationAlphaFactor=9;this.blendSourceAlphaFactor=2;this.blendDestinationRGBFactor=9;this.blendSourceRGBFactor=2;this.colorMaskAlpha=this.colorMaskBlue=this.colorMaskGreen=this.colorMaskRed=!0;this.culling=3;this.depthCompareMode=4;this.depthMask=!0;this.samplerStates=[];this.scissorRectangle=new ia;this.stencilCompareMode=0;this.stencilPass=this.stencilFail=this.stencilDepthFail=5;this.stencilReadMask=255;this.stencilReferenceValue= 0;this.stencilTriangleFace=2;this.stencilWriteMask=255;this.textures=[];this.__frontFaceGLCCW=!0;this.__glBlendEquation=32774};k["openfl._internal.renderer.context3D.Context3DState"]=tl;tl.__name__="openfl._internal.renderer.context3D.Context3DState";tl.prototype={backBufferEnableDepthAndStencil:null,blendDestinationAlphaFactor:null,blendSourceAlphaFactor:null,blendDestinationRGBFactor:null,blendSourceRGBFactor:null,colorMaskRed:null,colorMaskGreen:null,colorMaskBlue:null,colorMaskAlpha:null,culling:null, depthCompareMode:null,depthMask:null,program:null,renderToTexture:null,renderToTextureAntiAlias:null,renderToTextureDepthStencil:null,renderToTextureSurfaceSelector:null,samplerStates:null,scissorEnabled:null,scissorRectangle:null,stencilCompareMode:null,stencilDepthFail:null,stencilFail:null,stencilPass:null,stencilReadMask:null,stencilReferenceValue:null,stencilTriangleFace:null,stencilWriteMask:null,textures:null,shader:null,__currentGLArrayBuffer:null,__currentGLElementArrayBuffer:null,__currentGLFramebuffer:null, __currentGLTexture2D:null,__currentGLTextureCubeMap:null,__enableGLBlend:null,__enableGLCullFace:null,__enableGLDepthTest:null,__enableGLScissorTest:null,__enableGLStencilTest:null,__frontFaceGLCCW:null,__glBlendEquation:null,__primaryGLFramebuffer:null,__rttDepthGLRenderbuffer:null,__rttGLFramebuffer:null,__rttGLRenderbuffer:null,__rttStencilGLRenderbuffer:null,__class__:tl};var sl=function(){};k["openfl._internal.renderer.context3D.Context3DTextField"]=sl;sl.__name__="openfl._internal.renderer.context3D.Context3DTextField"; sl.render=function(a,b){var c=b.__softwareRenderer,f=a.__textEngine,e=f.background||f.border?f.bounds:f.textBounds;b=a.__graphics;a.__dirty&&(a.__updateLayout(),null==b.__bounds&&(b.__bounds=new ia),b.__bounds.copyFrom(e));b.__update(c.__worldTransform);if(a.__dirty||b.__softwareDirty){var g=b.__width,h=b.__height;if(!(null!=f.text&&""!=f.text||f.background||f.border||f.__hasFocus||1==f.type&&f.selectable)||(0>=f.width||0>=f.height)&&2!=f.autoSize)a.__graphics.__canvas=null,a.__graphics.__context= null,a.__graphics.__bitmap=null,a.__graphics.__softwareDirty=!1,a.__graphics.set___dirty(!1),a.__dirty=!1;else{null==a.__graphics.__canvas&&(a.__graphics.__canvas=window.document.createElement("canvas"),a.__graphics.__context=a.__graphics.__canvas.getContext("2d"));Z.context=b.__context;var l=b.__renderTransform;if(null!=c.__domRenderer){var m=c.pixelRatio;b.__canvas.width=g*m|0;b.__canvas.height=h*m|0;b.__canvas.style.width=g+"px";b.__canvas.style.height=h+"px";g=Ha.__pool.get();g.copyFrom(l);g.scale(m, m);c.setTransform(g,Z.context);Ha.__pool.release(g)}else b.__canvas.width=g,b.__canvas.height=h,Z.context.setTransform(l.a,l.b,l.c,l.d,l.tx,l.ty);null==Z.clearRect&&(Z.clearRect="undefined"!==typeof navigator&&"undefined"!==typeof navigator.isCocoonJS);Z.clearRect&&Z.context.clearRect(0,0,b.__canvas.width,b.__canvas.height);if(null!=f.text&&""!=f.text||f.__hasFocus){l=f.text;b.__context.imageSmoothingEnabled=!c.__allowSmoothing||0==f.antiAliasType&&400==f.sharpness?!1:!0;if(f.border||f.background)Z.context.rect(.5, .5,e.width-1,e.height-1),f.background&&(c=aa.hex(f.backgroundColor&16777215,6),Z.context.fillStyle="#"+c,Z.context.fill()),f.border&&(Z.context.lineWidth=1,c=aa.hex(f.borderColor&16777215,6),Z.context.strokeStyle="#"+c,Z.context.stroke());Z.context.textBaseline="alphabetic";Z.context.textAlign="start";c=-a.get_scrollH();g=m=0;for(h=a.get_scrollV()-1;g f.get_bottomScrollV()-1)break;p="#"+aa.hex(h.format.color&16777215,6);Z.context.font=Rb.getFont(h.format);Z.context.fillStyle=p;Z.context.fillText(l.substring(h.startIndex,h.endIndex),h.offsetX+c-e.x,h.offsetY+h.ascent+m-e.y);if(-1=a.__caretIndex){for(var n=k=0,q=a.__caretIndex-h.startIndex;n=a.__caretIndex||h.startIndex<=a.__selectionIndex&&h.endIndex>=a.__selectionIndex|| h.startIndex>a.__caretIndex&&h.endIndexa.__selectionIndex&&h.endIndexk&&(k=h.startIndex),h.endIndex=h.endIndex?(q=a.getCharBoundaries(h.endIndex-1),q.x+=q.width+2):q=a.getCharBoundaries(n),null!=u&&null!=q&&(Z.context.fillStyle="#000000",Z.context.fillRect(u.x+c,u.y+m,q.x-u.x,h.height),Z.context.fillStyle= "#FFFFFF",Z.context.fillText(l.substring(k,n),c+u.x,h.offsetY+h.ascent+m));h.format.underline&&(Z.context.beginPath(),Z.context.strokeStyle=p,Z.context.lineWidth=1,p=h.offsetX+c-e.x,k=Math.floor(h.offsetY+m+h.ascent-e.y)+.5,Z.context.moveTo(p,k),Z.context.lineTo(p+h.width,k),Z.context.stroke(),Z.context.closePath())}}else{if(f.border||f.background)f.border?Z.context.rect(.5,.5,e.width-1,e.height-1):Z.context.rect(0,0,e.width,e.height),f.background&&(e=aa.hex(f.backgroundColor&16777215,6),Z.context.fillStyle= "#"+e,Z.context.fill()),f.border&&(Z.context.lineWidth=1,Z.context.lineCap="square",e=aa.hex(f.borderColor&16777215,6),Z.context.strokeStyle="#"+e,Z.context.stroke());if(-1=f.width||0>=f.height)&&2!=f.autoSize)a.__graphics.__canvas=null,a.__graphics.__context=null,a.__graphics.__bitmap=null,a.__graphics.__softwareDirty=!1,a.__graphics.set___dirty(!1),a.__dirty=!1;else{null==a.__graphics.__canvas&&(a.__graphics.__canvas=window.document.createElement("canvas"),a.__graphics.__context=a.__graphics.__canvas.getContext("2d"));Z.context=b.__context;var l=b.__renderTransform; if(null!=c.__domRenderer){var m=c.pixelRatio;b.__canvas.width=g*m|0;b.__canvas.height=h*m|0;b.__canvas.style.width=g+"px";b.__canvas.style.height=h+"px";g=Ha.__pool.get();g.copyFrom(l);g.scale(m,m);c.setTransform(g,Z.context);Ha.__pool.release(g)}else b.__canvas.width=g,b.__canvas.height=h,Z.context.setTransform(l.a,l.b,l.c,l.d,l.tx,l.ty);null==Z.clearRect&&(Z.clearRect="undefined"!==typeof navigator&&"undefined"!==typeof navigator.isCocoonJS);Z.clearRect&&Z.context.clearRect(0,0,b.__canvas.width, b.__canvas.height);if(null!=f.text&&""!=f.text||f.__hasFocus){l=f.text;b.__context.imageSmoothingEnabled=!c.__allowSmoothing||0==f.antiAliasType&&400==f.sharpness?!1:!0;if(f.border||f.background)Z.context.rect(.5,.5,e.width-1,e.height-1),f.background&&(c=aa.hex(f.backgroundColor&16777215,6),Z.context.fillStyle="#"+c,Z.context.fill()),f.border&&(Z.context.lineWidth=1,c=aa.hex(f.borderColor&16777215,6),Z.context.strokeStyle="#"+c,Z.context.stroke());Z.context.textBaseline="alphabetic";Z.context.textAlign= "start";c=-a.get_scrollH();g=m=0;for(h=a.get_scrollV()-1;gf.get_bottomScrollV()-1)break;p="#"+aa.hex(h.format.color&16777215,6);Z.context.font=Rb.getFont(h.format);Z.context.fillStyle=p;Z.context.fillText(l.substring(h.startIndex,h.endIndex),h.offsetX+c-e.x,h.offsetY+h.ascent+m-e.y);if(-1=a.__caretIndex){for(var n=k=0,q=a.__caretIndex-h.startIndex;n=a.__caretIndex||h.startIndex<=a.__selectionIndex&&h.endIndex>=a.__selectionIndex||h.startIndex>a.__caretIndex&&h.endIndexa.__selectionIndex&&h.endIndexk&&(k=h.startIndex),h.endIndex=h.endIndex?(q=a.getCharBoundaries(h.endIndex- 1),q.x+=q.width+2):q=a.getCharBoundaries(n),null!=u&&null!=q&&(Z.context.fillStyle="#000000",Z.context.fillRect(u.x+c,u.y+m,q.x-u.x,h.height),Z.context.fillStyle="#FFFFFF",Z.context.fillText(l.substring(k,n),c+u.x,h.offsetY+h.ascent+m));h.format.underline&&(Z.context.beginPath(),Z.context.strokeStyle=p,Z.context.lineWidth=1,p=h.offsetX+c-e.x,k=Math.floor(h.offsetY+m+h.ascent-e.y)+.5,Z.context.moveTo(p,k),Z.context.lineTo(p+h.width,k),Z.context.stroke(),Z.context.closePath())}}else{if(f.border||f.background)f.border? Z.context.rect(.5,.5,e.width-1,e.height-1):Z.context.rect(0,0,e.width,e.height),f.background&&(e=aa.hex(f.backgroundColor&16777215,6),Z.context.fillStyle="#"+e,Z.context.fill()),f.border&&(Z.context.lineWidth=1,Z.context.lineCap="square",e=aa.hex(f.borderColor&16777215,6),Z.context.strokeStyle="#"+e,Z.context.stroke());if(-1=a.__worldAlpha)){na.numTiles=0;na.vertexBufferData=null!=a.__buffer?a.__buffer.vertexBufferData:null;na.vertexDataPosition=0;var c=ia.__pool.get(),f=Ha.__pool.get(),e=Ha.__pool.get();na.dataPerVertex=4;a.tileAlphaEnabled&&na.dataPerVertex++;a.tileColorTransformEnabled&&(na.dataPerVertex+=8);na.buildBufferTileContainer(a,a.__group,b,e,a.__tileset,a.tileAlphaEnabled,a.__worldAlpha,a.tileColorTransformEnabled,a.__worldColorTransform, null,c,f);a.__buffer.flushVertexBufferData();ia.__pool.release(c);Ha.__pool.release(f);Ha.__pool.release(e)}};na.buildBufferTileContainer=function(a,b,d,f,e,g,h,l,m,p,k,n){var c=Ha.__pool.get(),t=d.__roundPixels,q=b.__tiles;na.resizeBuffer(a,na.numTiles+b.__length);for(var u,v,w,r=null,y,x,I,B,P,D,A,C,F,E,H,G=g?5:4,J=0;J=v))if(l&&(null!=B.get_colorTransform()?null==m?r=B.get_colorTransform():(null==na.cacheColorTransform&&(na.cacheColorTransform=new Sb),r=na.cacheColorTransform,r.redMultiplier=m.redMultiplier*B.get_colorTransform().redMultiplier,r.greenMultiplier=m.greenMultiplier*B.get_colorTransform().greenMultiplier,r.blueMultiplier=m.blueMultiplier*B.get_colorTransform().blueMultiplier,r.alphaMultiplier=m.alphaMultiplier*B.get_colorTransform().alphaMultiplier, r.redOffset=m.redOffset+B.get_colorTransform().redOffset,r.greenOffset=m.greenOffset+B.get_colorTransform().greenOffset,r.blueOffset=m.blueOffset+B.get_colorTransform().blueOffset,r.alphaOffset=m.alphaOffset+B.get_colorTransform().alphaOffset):r=m),g||(v=1),0=x.width||0>=x.height)continue;u=x.x/y.width;B=x.y/y.height;w=x.get_right()/y.width; P=x.get_bottom()/y.height}else{y=u.__data[w];if(null==y)continue;k.setTo(y.x,y.y,y.width,y.height);x=k;u=y.__uvX;B=y.__uvY;w=y.__uvWidth;P=y.__uvHeight}y=x.width;I=x.height;x=0*c.a+0*c.c+c.tx;D=0*c.b+0*c.d+c.ty;A=y*c.a+0*c.c+c.tx;C=y*c.b+0*c.d+c.ty;F=0*c.a+I*c.c+c.tx;E=0*c.b+I*c.d+c.ty;H=y*c.a+I*c.c+c.tx;I=y*c.b+I*c.d+c.ty;y=na.vertexDataPosition;na.vertexBufferData[y]=x;na.vertexBufferData[y+1]=D;na.vertexBufferData[y+2]=u;na.vertexBufferData[y+3]=B;na.vertexBufferData[y+na.dataPerVertex]=A;na.vertexBufferData[y+ na.dataPerVertex+1]=C;na.vertexBufferData[y+na.dataPerVertex+2]=w;na.vertexBufferData[y+na.dataPerVertex+3]=B;na.vertexBufferData[y+2*na.dataPerVertex]=F;na.vertexBufferData[y+2*na.dataPerVertex+1]=E;na.vertexBufferData[y+2*na.dataPerVertex+2]=u;na.vertexBufferData[y+2*na.dataPerVertex+3]=P;na.vertexBufferData[y+3*na.dataPerVertex]=H;na.vertexBufferData[y+3*na.dataPerVertex+1]=I;na.vertexBufferData[y+3*na.dataPerVertex+2]=w;na.vertexBufferData[y+3*na.dataPerVertex+3]=P;g&&(na.vertexBufferData[y+0* na.dataPerVertex+4]=v,na.vertexBufferData[y+na.dataPerVertex+4]=v,na.vertexBufferData[y+2*na.dataPerVertex+4]=v,na.vertexBufferData[y+3*na.dataPerVertex+4]=v);if(l)if(null!=r)for(v=0;4>v;)u=v++,na.vertexBufferData[y+na.dataPerVertex*u+G]=r.redMultiplier,na.vertexBufferData[y+na.dataPerVertex*u+G+1]=r.greenMultiplier,na.vertexBufferData[y+na.dataPerVertex*u+G+2]=r.blueMultiplier,na.vertexBufferData[y+na.dataPerVertex*u+G+3]=r.alphaMultiplier,na.vertexBufferData[y+na.dataPerVertex*u+G+4]=r.redOffset, na.vertexBufferData[y+na.dataPerVertex*u+G+5]=r.greenOffset,na.vertexBufferData[y+na.dataPerVertex*u+G+6]=r.blueOffset,na.vertexBufferData[y+na.dataPerVertex*u+G+7]=r.alphaOffset;else for(v=0;4>v;)u=v++,na.vertexBufferData[y+na.dataPerVertex*u+G]=1,na.vertexBufferData[y+na.dataPerVertex*u+G+1]=1,na.vertexBufferData[y+na.dataPerVertex*u+G+2]=1,na.vertexBufferData[y+na.dataPerVertex*u+G+3]=1,na.vertexBufferData[y+na.dataPerVertex*u+G+4]=0,na.vertexBufferData[y+na.dataPerVertex*u+G+5]=0,na.vertexBufferData[y+ na.dataPerVertex*u+G+6]=0,na.vertexBufferData[y+na.dataPerVertex*u+G+7]=0;na.vertexDataPosition+=4*na.dataPerVertex}b.__dirty=!1;Ha.__pool.release(c)};na.flush=function(a,b,d){null==na.currentShader&&(na.currentShader=b.__defaultDisplayShader);if(na.bufferPosition>na.lastFlushedPosition&&null!=na.currentBitmapData&&null!=na.currentShader){var c=b.__initDisplayShader(na.currentShader);b.setShader(c);b.applyBitmapData(na.currentBitmapData,a.smoothing);b.applyMatrix(b.__getMatrix(a.__renderTransform, 1));a.tileAlphaEnabled?b.useAlphaArray():b.applyAlpha(a.__worldAlpha);a.tileBlendModeEnabled&&b.__setBlendMode(d);a.tileColorTransformEnabled?(b.applyHasColorTransform(!0),b.useColorTransformArray()):b.applyColorTransform(a.__worldColorTransform);b.updateShader();d=a.__buffer.vertexBuffer;for(var e=na.lastFlushedPosition*na.dataPerVertex*4,g;na.lastFlushedPosition=g)break;null!=c.__position&& na.context.setVertexBufferAt(c.__position.index,d,e,2);null!=c.__textureCoord&&na.context.setVertexBufferAt(c.__textureCoord.index,d,e+2,2);a.tileAlphaEnabled&&null!=c.__alpha&&na.context.setVertexBufferAt(c.__alpha.index,d,e+4,1);if(a.tileColorTransformEnabled){var h=a.tileAlphaEnabled?5:4;null!=c.__colorMultiplier&&na.context.setVertexBufferAt(c.__colorMultiplier.index,d,e+h,4);null!=c.__colorOffset&&na.context.setVertexBufferAt(c.__colorOffset.index,d,e+h+4,4)}na.context.drawTriangles(na.context.__quadIndexBuffer, 0,2*g);na.lastFlushedPosition+=g}b.__clearShader()}na.lastUsedBitmapData=na.currentBitmapData;na.lastUsedShader=na.currentShader};na.render=function(a,b){if(a.__renderable&&!(0>=a.__worldAlpha)&&(na.context=b.context3D,na.buildBuffer(a,b),0!=na.numTiles)){na.bufferPosition=0;na.lastFlushedPosition=0;na.lastUsedBitmapData=null;na.lastUsedShader=null;na.currentBitmapData=null;na.currentShader=null;na.currentBlendMode=a.__worldBlendMode;a.tileBlendModeEnabled||b.__setBlendMode(na.currentBlendMode);b.__pushMaskObject(a); var c=ia.__pool.get();c.setTo(0,0,a.__width,a.__height);b.__pushMaskRect(c,a.__renderTransform);na.renderTileContainer(a,b,a.__group,a.__worldShader,a.__tileset,a.__worldAlpha,a.tileBlendModeEnabled,na.currentBlendMode,null);na.flush(a,b,na.currentBlendMode);b.__popMaskRect();b.__popMaskObject(a);ia.__pool.release(c)}};na.renderTileContainer=function(a,b,d,f,e,g,h,l,m){d=d.__tiles;for(var c,k,n,t=null,q,u=0;u=k))if(n=null!=v.get_shader()?v.get_shader():f,h&&(t=null!=v.__blendMode?v.__blendMode:l),0=c.width||0>=c.height)continue}else if(c=c.__data[q],null==c)continue;(n!=na.currentShader||k!=na.currentBitmapData&&null!=na.currentBitmapData||na.currentBlendMode!=t)&&na.flush(a,b,na.currentBlendMode);na.currentBitmapData=k;na.currentShader= n;na.currentBlendMode=t;na.bufferPosition++}}};na.renderMask=function(a,b){};na.resizeBuffer=function(a,b){na.numTiles=b;null==a.__buffer?a.__buffer=new li(na.context,bx.QUADS,na.numTiles,na.dataPerVertex):a.__buffer.resize(na.numTiles,na.dataPerVertex);na.vertexBufferData=a.__buffer.vertexBufferData};var Dh=function(){};k["openfl._internal.renderer.context3D.Context3DVideo"]=Dh;Dh.__name__="openfl._internal.renderer.context3D.Context3DVideo";Dh.render=function(a,b){if(a.__renderable&&!(0>=a.__worldAlpha)&& null!=a.__stream&&null!=a.__stream.__video){var c=b.context3D,f=c.gl;if(null!=a.__getTexture(c)){b.__setBlendMode(a.__worldBlendMode);b.__pushMaskObject(a);var e=b.__initDisplayShader(a.__worldShader);b.setShader(e);b.applyBitmapData(null,!0,!1);b.applyMatrix(b.__getMatrix(a.__renderTransform,1));b.applyAlpha(a.__worldAlpha);b.applyColorTransform(a.__worldColorTransform);null!=e.__textureSize&&(Dh.__textureSizeValue[0]=null!=a.__stream?a.__stream.__video.videoWidth:0,Dh.__textureSizeValue[1]=null!= a.__stream?a.__stream.__video.videoHeight:0,e.__textureSize.value=Dh.__textureSizeValue);b.updateShader();c.setTextureAt(0,a.__getTexture(c));c.__flushGLTextures();f.uniform1i(e.__texture.index,0);a.smoothing?(f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MAG_FILTER,f.LINEAR),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MIN_FILTER,f.LINEAR)):(f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MAG_FILTER,f.NEAREST),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MIN_FILTER,f.NEAREST));f=a.__getVertexBuffer(c);null!=e.__position&&c.setVertexBufferAt(e.__position.index, f,0,3);null!=e.__textureCoord&&c.setVertexBufferAt(e.__textureCoord.index,f,3,2);e=a.__getIndexBuffer(c);c.drawTriangles(e);b.__clearShader();b.__popMaskObject(a)}}};Dh.renderMask=function(a,b){if(null!=a.__stream&&null!=a.__stream.__video){var c=b.context3D,f=b.__maskShader;b.setShader(f);b.applyBitmapData(Vi.opaqueBitmapData,!0);b.applyMatrix(b.__getMatrix(a.__renderTransform,1));b.updateShader();var e=a.__getVertexBuffer(c);null!=f.__position&&c.setVertexBufferAt(f.__position.index,e,0,3);null!= f.__textureCoord&&c.setVertexBufferAt(f.__textureCoord.index,e,3,2);a=a.__getIndexBuffer(c);c.drawTriangles(a);b.__clearShader()}};var Ud=function(){};k["openfl._internal.renderer.dom.DOMBitmap"]=Ud;Ud.__name__="openfl._internal.renderer.dom.DOMBitmap";Ud.clear=function(a,b){null!=a.__image&&(b.element.removeChild(a.__image),a.__image=null,a.__style=null);null!=a.__canvas&&(b.element.removeChild(a.__canvas),a.__canvas=null,a.__style=null)};Ud.render=function(a,b){null!=a.stage&&a.__worldVisible&& a.__renderable&&null!=a.__bitmapData&&a.__bitmapData.__isValid&&a.__bitmapData.readable?(b.__pushMaskObject(a),null!=a.__bitmapData.image.buffer.__srcImage?Ud.renderImage(a,b):Ud.renderCanvas(a,b),b.__popMaskObject(a)):Ud.clear(a,b)};Ud.renderCanvas=function(a,b){null!=a.__image&&(b.element.removeChild(a.__image),a.__image=null);null==a.__canvas&&(a.__canvas=window.document.createElement("canvas"),a.__context=a.__canvas.getContext("2d"),a.__imageVersion=-1,b.__allowSmoothing&&a.smoothing||(a.__context.imageSmoothingEnabled= !1),b.__initializeElement(a,a.__canvas));a.__imageVersion!=a.__bitmapData.image.version&&(ua.convertToCanvas(a.__bitmapData.image),a.__canvas.width=a.__bitmapData.width+1,a.__canvas.width=a.__bitmapData.width,a.__canvas.height=a.__bitmapData.height,a.__context.drawImage(a.__bitmapData.image.buffer.__srcCanvas,0,0),a.__imageVersion=a.__bitmapData.image.version);b.__updateClip(a);b.__applyStyle(a,!0,!0,!0)};Ud.renderImage=function(a,b){null!=a.__canvas&&(b.element.removeChild(a.__canvas),a.__canvas= null);null==a.__image&&(a.__image=window.document.createElement("img"),a.__image.crossOrigin="Anonymous",a.__image.src=a.__bitmapData.image.buffer.__srcImage.src,b.__initializeElement(a,a.__image));b.__updateClip(a);b.__applyStyle(a,!0,!0,!0)};var Eh=function(){};k["openfl._internal.renderer.dom.DOMDisplayObject"]=Eh;Eh.__name__="openfl._internal.renderer.dom.DOMDisplayObject";Eh.clear=function(a,b){null!=a.__cacheBitmap&&Ud.clear(a.__cacheBitmap,b);Ze.clear(a,b)};Eh.render=function(a,b){null!=a.opaqueBackground&& !a.__isCacheBitmapRender&&0a.__worldAlpha?c.setProperty("opacity",null==a.__worldAlpha?"null":""+a.__worldAlpha,null):c.removeProperty("opacity"));f&&a.__worldClipChanged&&(null==a.__worldClip?c.removeProperty("clip"):(a=a.__worldClip,c.setProperty("clip", "rect("+a.y+"px, "+a.get_right()+"px, "+a.get_bottom()+"px, "+a.x+"px)",null)))},__clearBitmap:function(a){Eh.clear(a,this);Ud.clear(a,this)},__clearDisplayObject:function(a){if(null!=a&&null!=a.__type)switch(a.__type._hx_index){case 0:this.__clearBitmap(a);break;case 2:this.__clearDisplayObjectContainer(a);break;case 3:this.__clearDOMElement(a);break;case 1:case 4:this.__clearShape(a);break;case 5:this.__clearSimpleButton(a);break;case 6:this.__clearTextField(a);break;case 7:this.__clearTilemap(a); break;case 8:this.__clearVideo(a)}},__clearDisplayObjectContainer:function(a){for(var b=a.__removedChildren.iterator();b.hasNext();){var d=b.next();null==d.stage&&this.__clearDisplayObject(d)}for(b=a.__removedChildren.iterator();b.hasNext();)d=b.next(),null==d.stage&&d.__cleanup();a.__removedChildren.set_length(0);this.__clearShape(a);b=0;for(a=a.__children;bc.height&&(c.height=0);0>c.width&&(c.width=0);this.__currentClipRect=c;this.__numClipRects++},__render:function(a){this.element.style.background= this.__stage.__transparent?"none":this.__stage.__colorString;this.__z=1;null!=a&&null!=a.__type&&this.__renderDisplayObject(a)},__renderBitmap:function(a){this.__canvasRenderer.__updateCacheBitmap(a,!1);if(null==a.__cacheBitmap||a.__isCacheBitmapRender){null!=a.opaqueBackground&&!a.__isCacheBitmapRender&&0m.d?(g=m.a,m.d/=m.a,m.a=1):(g=m.d,m.a/=m.d,m.d=1),l*=g,f=Math.ceil(f*g),e=Math.ceil(e*g);a.__textFormat.size=l;m=b.text;var p=0;if(a.__isHTML){for(var k=m;wc.__regexFont.match(k);){k=wc.__regexFont.matched(0);var n="";wc.__regexFace.match(k)&&(n+="font-family:'"+wc.__getAttributeMatch(wc.__regexFace)+"';");wc.__regexColor.match(k)&& (n+="color:#"+wc.__getAttributeMatch(wc.__regexColor)+";");if(wc.__regexSize.match(k)){p=wc.__getAttributeMatch(wc.__regexSize);var q=A.cca(p,0);p=parseFloat(p)*g;n+="font-size:"+(43==q||45==q?l+p:p)+"px;"}m=aa.replace(m,k,"");k=wc.__regexFont.matchedRight()}m=m.replace(wc.__regexCloseFont.r,"")}else m=aa.htmlEscape(m);m=aa.replace(m,"

");a.__div.innerHTML= l;l=a.__div.innerHTML.replace(/\n/g,"
");a.__div.innerHTML=l;l=a.__div.innerHTML.replace(/\r/g,"
");a.__div.innerHTML=l;d.setProperty("font",Rb.getFont(a.__textFormat),null);a.__textFormat.size=h;a.__textFormat.leading=g;d.setProperty("top","3px",null);b.border?(d.setProperty("border","solid 1px #"+aa.hex(b.borderColor&16777215,6),null),a.__renderTransform.translate(-1,-1),a.__renderTransformChanged=!0,a.__transformDirty=!0):""!=d.border&&(d.removeProperty("border"),a.__renderTransformChanged= !0);d.setProperty("color","#"+aa.hex(a.__textFormat.color&16777215,6),null);d.setProperty("width",f+"px",null);d.setProperty("height",e+"px",null);switch(a.__textFormat.align){case 0:d.setProperty("text-align","center",null);break;case 4:d.setProperty("text-align","right",null);break;default:d.setProperty("text-align","left",null)}a.__dirty=!1}else null!=a.__div&&(this.element.removeChild(a.__div),a.__div=null);null!=a.__div&&(b=this.__roundPixels,this.__roundPixels=!0,this.__updateClip(a),this.__applyStyle(a, !0,!0,!0),this.__roundPixels=b)}else wc.clear(a,this)}else this.__clearTextField(a),a.__cacheBitmap.stage=a.stage,b=a.__cacheBitmap,null!=b.stage&&b.__worldVisible&&b.__renderable&&null!=b.__bitmapData&&b.__bitmapData.__isValid&&b.__bitmapData.readable?(this.__pushMaskObject(b),null!=b.__bitmapData.image.buffer.__srcImage?Ud.renderImage(b,this):Ud.renderCanvas(b,this),this.__popMaskObject(b)):Ud.clear(b,this)},__renderTilemap:function(a){this.__canvasRenderer.__updateCacheBitmap(a,!1);if(null==a.__cacheBitmap|| a.__isCacheBitmapRender){null!=a.opaqueBackground&&!a.__isCacheBitmapRender&&0=d))){var f=b.context;b.__setBlendMode(a.__worldBlendMode);b.__pushMaskObject(a);var e=ia.__pool.get();e.setTo(0,0,a.__width,a.__height);b.__pushMaskRect(e,a.__renderTransform);b.__allowSmoothing&&a.smoothing||(f.imageSmoothingEnabled=!1);ki.renderTileContainer(a.__group,b,a.__renderTransform,a.__tileset,b.__allowSmoothing&& a.smoothing,a.tileAlphaEnabled,d,a.tileBlendModeEnabled,a.__worldBlendMode,null,null,e);b.__allowSmoothing&&a.smoothing||(f.imageSmoothingEnabled=!0);b.__popMaskRect();b.__popMaskObject(a);ia.__pool.release(e)}this.__canvasRenderer.context=null;this.__updateClip(a);this.__applyStyle(a,!0,!1,!0)}else Wj.clear(a,this)}else this.__clearTilemap(a),a.__cacheBitmap.stage=a.stage,a=a.__cacheBitmap,null!=a.stage&&a.__worldVisible&&a.__renderable&&null!=a.__bitmapData&&a.__bitmapData.__isValid&&a.__bitmapData.readable? (this.__pushMaskObject(a),null!=a.__bitmapData.image.buffer.__srcImage?Ud.renderImage(a,this):Ud.renderCanvas(a,this),this.__popMaskObject(a)):Ud.clear(a,this)},__renderVideo:function(a){Xj.render(a,this)},__setBlendMode:function(a){null!=this.__overrideBlendMode&&(a=this.__overrideBlendMode);this.__blendMode!=a&&(this.__blendMode=a)},__updateCacheBitmap:function(a,b){var c=a.__cacheBitmap;(b=this.__canvasRenderer.__updateCacheBitmap(a,b))&&null!=c&&null==a.__cacheBitmap&&this.__clearBitmap(c);return b}, __updateClip:function(a){if(null==this.__currentClipRect)a.__worldClipChanged=null!=a.__worldClip,a.__worldClip=null;else{null==a.__worldClip&&(a.__worldClip=new ia);var b=ia.__pool.get(),d=Ha.__pool.get();d.copyFrom(a.__renderTransform);d.invert();this.__currentClipRect.__transform(b,d);b.equals(a.__worldClip)?a.__worldClipChanged=!1:(a.__worldClip.copyFrom(b),a.__worldClipChanged=!0);ia.__pool.release(b);Ha.__pool.release(d)}},__class__:ul});var Ze=function(){};k["openfl._internal.renderer.dom.DOMShape"]= Ze;Ze.__name__="openfl._internal.renderer.dom.DOMShape";Ze.clear=function(a,b){null!=a.__canvas&&(b.element.removeChild(a.__canvas),a.__canvas=null,a.__style=null)};Ze.render=function(a,b){var c=a.__graphics;if(null!=a.stage&&a.__worldVisible&&a.__renderable&&null!=c){C.render(c,b.__canvasRenderer);if(c.__softwareDirty||a.__worldAlphaChanged||a.__canvas!=c.__canvas)null!=c.__canvas?a.__canvas!=c.__canvas&&(null!=a.__canvas&&b.element.removeChild(a.__canvas),a.__canvas=c.__canvas,a.__context=c.__context, b.__initializeElement(a,a.__canvas)):Ze.clear(a,b);if(null!=a.__canvas){b.__pushMaskObject(a);var f=a.__renderTransform;a.__renderTransform=c.__worldTransform;c.__transformDirty&&(c.__transformDirty=!1,a.__renderTransformChanged=!0);b.__updateClip(a);b.__applyStyle(a,!0,!0,!0);a.__renderTransform=f;b.__popMaskObject(a)}}else Ze.clear(a,b)};var wc=function(){};k["openfl._internal.renderer.dom.DOMTextField"]=wc;wc.__name__="openfl._internal.renderer.dom.DOMTextField";wc.clear=function(a,b){null!=a.__div&& (b.element.removeChild(a.__div),a.__div=null,a.__style=null)};wc.measureText=function(a){var b=a.__textEngine,d=a.__div;null==d&&(d=window.document.createElement("div"),d.innerHTML=b.text.replace(/\n/g,"
"),d.style.setProperty("font",Rb.getFont(a.__textFormat),null),d.style.setProperty("pointer-events","none",null),d.style.position="absolute",d.style.top="110%",window.document.body.appendChild(d));b.__measuredWidth=d.clientWidth;null==a.__div&&(d.style.width=N.string(b.width-4)+"px");b.__measuredHeight= d.clientHeight;null==a.__div&&window.document.body.removeChild(d)};wc.render=function(a,b){var c=a.__textEngine;if(null!=a.stage&&a.__worldVisible&&a.__renderable){if(a.__dirty||a.__renderTransformChanged||null==a.__div)if(""!=c.text||c.background||c.border||1==c.type){null==a.__div&&(a.__div=window.document.createElement("div"),b.__initializeElement(a,a.__div),a.__style.setProperty("outline","none",null),a.__div.addEventListener("input",function(b){b.preventDefault();a.get_htmlText()!=a.__div.innerHTML&& (a.set_htmlText(a.__div.innerHTML),a.__dirty=!1)},!0));c.wordWrap?a.__style.setProperty("word-wrap","break-word",null):a.__style.setProperty("white-space","nowrap",null);a.__style.setProperty("overflow","hidden",null);c.selectable?(a.__style.setProperty("cursor","text",null),a.__style.setProperty("-webkit-user-select","text",null),a.__style.setProperty("-moz-user-select","text",null),a.__style.setProperty("-ms-user-select","text",null),a.__style.setProperty("-o-user-select","text",null)):a.__style.setProperty("cursor", "inherit",null);a.__div.contentEditable=1==c.type;var f=a.__style;c.background?f.setProperty("background-color","#"+aa.hex(c.backgroundColor&16777215,6),null):f.removeProperty("background-color");var e=c.width,g=c.height,h=1,l=a.__textFormat.size,m=l,p=a.__renderTransform;if(1!=p.a||1!=p.d)p.a==p.d?(h=p.a,p.a=p.d=1):p.a>p.d?(h=p.a,p.d/=p.a,p.a=1):(h=p.d,p.a/=p.d,p.d=1),m*=h,e=Math.ceil(e*h),g=Math.ceil(g*h);a.__textFormat.size=m;p=c.text;var k=0;if(a.__isHTML){for(var n=p;wc.__regexFont.match(n);){n= wc.__regexFont.matched(0);var q="";wc.__regexFace.match(n)&&(q+="font-family:'"+wc.__getAttributeMatch(wc.__regexFace)+"';");wc.__regexColor.match(n)&&(q+="color:#"+wc.__getAttributeMatch(wc.__regexColor)+";");if(wc.__regexSize.match(n)){k=wc.__getAttributeMatch(wc.__regexSize);var u=A.cca(k,0);k=parseFloat(k)*h;q+="font-size:"+(43==u||45==u?m+k:k)+"px;"}p=aa.replace(p,n,"");n=wc.__regexFont.matchedRight()}p=p.replace(wc.__regexCloseFont.r,"")}else p=aa.htmlEscape(p);p= aa.replace(p,"

");a.__div.innerHTML=m;m=a.__div.innerHTML.replace(/\n/g,"
");a.__div.innerHTML=m;m=a.__div.innerHTML.replace(/\r/g,"
");a.__div.innerHTML=m;f.setProperty("font",Rb.getFont(a.__textFormat),null);a.__textFormat.size=l;a.__textFormat.leading=h;f.setProperty("top","3px",null);c.border?(f.setProperty("border","solid 1px #"+aa.hex(c.borderColor&16777215,6), null),a.__renderTransform.translate(-1,-1),a.__renderTransformChanged=!0,a.__transformDirty=!0):""!=f.border&&(f.removeProperty("border"),a.__renderTransformChanged=!0);f.setProperty("color","#"+aa.hex(a.__textFormat.color&16777215,6),null);f.setProperty("width",e+"px",null);f.setProperty("height",g+"px",null);switch(a.__textFormat.align){case 0:f.setProperty("text-align","center",null);break;case 4:f.setProperty("text-align","right",null);break;default:f.setProperty("text-align","left",null)}a.__dirty= !1}else null!=a.__div&&(b.element.removeChild(a.__div),a.__div=null);null!=a.__div&&(c=b.__roundPixels,b.__roundPixels=!0,b.__updateClip(a),b.__applyStyle(a,!0,!0,!0),b.__roundPixels=c)}else wc.clear(a,b)};wc.__getAttributeMatch=function(a){return null!=a.matched(2)?a.matched(2):a.matched(3)};var Wj=function(){};k["openfl._internal.renderer.dom.DOMTilemap"]=Wj;Wj.__name__="openfl._internal.renderer.dom.DOMTilemap";Wj.clear=function(a,b){null!=a.__canvas&&(b.element.removeChild(a.__canvas),a.__canvas= null,a.__style=null)};Wj.render=function(a,b){if(null!=a.stage&&a.__worldVisible&&a.__renderable&&0=f)){var e=c.context; c.__setBlendMode(a.__worldBlendMode);c.__pushMaskObject(a);var g=ia.__pool.get();g.setTo(0,0,a.__width,a.__height);c.__pushMaskRect(g,a.__renderTransform);c.__allowSmoothing&&a.smoothing||(e.imageSmoothingEnabled=!1);ki.renderTileContainer(a.__group,c,a.__renderTransform,a.__tileset,c.__allowSmoothing&&a.smoothing,a.tileAlphaEnabled,f,a.tileBlendModeEnabled,a.__worldBlendMode,null,null,g);c.__allowSmoothing&&a.smoothing||(e.imageSmoothingEnabled=!0);c.__popMaskRect();c.__popMaskObject(a);ia.__pool.release(g)}}b.__canvasRenderer.context= null;b.__updateClip(a);b.__applyStyle(a,!0,!1,!0)}else Wj.clear(a,b)};var Xj=function(){};k["openfl._internal.renderer.dom.DOMVideo"]=Xj;Xj.__name__="openfl._internal.renderer.dom.DOMVideo";Xj.clear=function(a,b){a.__active&&(b.element.removeChild(a.__stream.__video),a.__active=!1)};Xj.render=function(a,b){null!=a.stage&&null!=a.__stream&&a.__worldVisible&&a.__renderable?(a.__active||(b.__initializeElement(a,a.__stream.__video),a.__active=!0,a.__dirty=!0),a.__dirty&&(a.__stream.__video.width=a.__width| 0,a.__stream.__video.height=a.__height|0,a.__dirty=!1),b.__updateClip(a),b.__applyStyle(a,!0,!0,!0)):Xj.clear(a,b)};var mi=function(){};k["openfl._internal.renderer.flash.FlashRenderer"]=mi;mi.__name__="openfl._internal.renderer.flash.FlashRenderer";mi.register=function(a){null==mi.instances&&(mi.instances=Be.toObjectMap(null,!0),$a.get_current().stage.addEventListener("enterFrame",mi.render,!1,-2147483648));mi.instances.set(a,!0)};mi.render=function(a){for(a=mi.instances.keys();a.hasNext();)a.next().__renderFlash()}; var kr=function(){};k["openfl._internal.renderer.flash.IDisplayObject"]=kr;kr.__name__="openfl._internal.renderer.flash.IDisplayObject";kr.__isInterface__=!0;kr.prototype={__renderFlash:null,__class__:kr};var Zi=function(){};k["openfl._internal.renderer.flash.FlashTilemap"]=Zi;Zi.__name__="openfl._internal.renderer.flash.FlashTilemap";Zi.render=function(a){};Zi.renderTileContainer=function(a,b,d,f,e,g,h,l,m,p,k,n){};var rf=function(){};k["openfl._internal.symbols.SWFSymbol"]=rf;rf.__name__="openfl._internal.symbols.SWFSymbol"; rf.prototype={className:null,id:null,__createObject:function(a){return null},__class__:rf};var bh=function(){};k["openfl._internal.symbols.BitmapSymbol"]=bh;bh.__name__="openfl._internal.symbols.BitmapSymbol";bh.__super__=rf;bh.prototype=r(rf.prototype,{alpha:null,path:null,smooth:null,__createObject:function(a){return new Rc(ra.fromImage(a.library.getImage(this.path)),1,0!=this.smooth)},__class__:bh});var lr=function(){};k["openfl._internal.symbols.ButtonSymbol"]=lr;lr.__name__="openfl._internal.symbols.ButtonSymbol"; lr.__super__=rf;lr.prototype=r(rf.prototype,{downState:null,hitState:null,overState:null,upState:null,__createObject:function(a){var b=null;pf.__initSWF=a;pf.__initSymbol=this;null!=this.className&&(a=k[this.className],null!=a&&(b=Ua.createInstance(a,[])));null==b&&(b=new pf);return b},__class__:lr});var mr=function(){};k["openfl._internal.symbols.DynamicTextSymbol"]=mr;mr.__name__="openfl._internal.symbols.DynamicTextSymbol";mr.__super__=rf;mr.prototype=r(rf.prototype,{align:null,border:null,color:null, fontHeight:null,fontID:null,fontName:null,height:null,html:null,indent:null,input:null,leading:null,leftMargin:null,multiline:null,password:null,rightMargin:null,selectable:null,text:null,width:null,wordWrap:null,x:null,y:null,__createObject:function(a){var b=new ge;b.__symbol=this;b.set_width(this.width);b.set_height(this.height);b.__offsetX=this.x;b.__offsetY=this.y;b.set_multiline(this.multiline);b.set_wordWrap(this.wordWrap);b.set_displayAsPassword(this.password);this.border&&(b.set_border(!0), b.set_background(!0));b.set_selectable(this.selectable);this.input&&b.set_type(1);var d=new Bg;null!=this.color&&(d.color=this.color&16777215);d.size=Math.round(this.fontHeight/20);a=a.symbols.h[this.fontID];null!=a&&(d.__ascent=a.ascent/20/1024,d.__descent=a.descent/20/1024);d.font=this.fontName;a=!1;var f=d.font;if(null==f)a=!0;else switch(f){case "":case "_sans":case "_serif":case "_typewriter":a=!0;break;default:f=0;for(var e=yc.enumerateFonts();f>24&255)/255);break;case 3:d.curveTo(y.controlX*m+h,y.controlY*m+l,y.anchorX*m+h,y.anchorY*m+l);break;case 4:d.endFill();break;case 5:var x=y.miterLimit,I=y.joints,B=y.caps,P=y.scaleMode,D=y.pixelHinting,A=y.alpha,C=y.color;y=y.thickness;null!=y?d.lineStyle(y,C,A,D,P,B,I,x):d.lineStyle(); break;case 6:d.lineTo(y.x*m+h,y.y*m+l);break;case 7:d.moveTo(y.x*m+h,y.y*m+l)}}h+=.05*q.advances[w]}}}b.text=f;this.records=null;this.rendered=new Ri;this.rendered.text=f;this.rendered.__graphics.copyFrom(b.__graphics);return b},__class__:pr});var xw=function(){};k["openfl._internal.symbols.StaticTextRecord"]=xw;xw.__name__="openfl._internal.symbols.StaticTextRecord";xw.prototype={advances:null,color:null,fontHeight:null,fontID:null,glyphs:null,offsetX:null,offsetY:null,__class__:xw};var yw=function(){}; k["openfl._internal.symbols.timeline.Frame"]=yw;yw.__name__="openfl._internal.symbols.timeline.Frame";yw.prototype={label:null,objects:null,script:null,scriptSource:null,__class__:yw};var zw=function(){};k["openfl._internal.symbols.timeline.FrameObject"]=zw;zw.__name__="openfl._internal.symbols.timeline.FrameObject";zw.prototype={blendMode:null,cacheAsBitmap:null,clipDepth:null,colorTransform:null,depth:null,filters:null,id:null,matrix:null,name:null,symbol:null,type:null,visible:null,__class__:zw}; var kx=B["openfl._internal.symbols.timeline.FrameObjectType"]={__ename__:"openfl._internal.symbols.timeline.FrameObjectType",__constructs__:["CREATE","UPDATE","DESTROY"],CREATE:{_hx_index:0,__enum__:"openfl._internal.symbols.timeline.FrameObjectType",toString:u},UPDATE:{_hx_index:1,__enum__:"openfl._internal.symbols.timeline.FrameObjectType",toString:u},DESTROY:{_hx_index:2,__enum__:"openfl._internal.symbols.timeline.FrameObjectType",toString:u}},qr=function(a,b,d){this.glyph=a;this.advance=b;this.offset= null!=d?d:new zd};k["openfl._internal.text.GlyphPosition"]=qr;qr.__name__="openfl._internal.text.GlyphPosition";qr.prototype={advance:null,glyph:null,offset:null,__class__:qr};var Rb=function(a){this.textField=a;this.height=this.width=100;this.set_text("");this.bounds=new ia(0,0,0,0);this.textBounds=new ia(0,0,0,0);this.type=0;this.autoSize=2;this.embedFonts=!1;this.selectable=!0;this.borderColor=0;this.border=!1;this.backgroundColor=16777215;this.background=!1;this.gridFitType=1;this.maxChars=0; this.multiline=!1;this.numLines=1;this.scrollH=this.sharpness=0;this.set_scrollV(1);this.wordWrap=!1;this.lineAscents=Ja.toFloatVector(null);this.lineBreaks=Ja.toIntVector(null);this.lineDescents=Ja.toFloatVector(null);this.lineLeadings=Ja.toFloatVector(null);this.lineHeights=Ja.toFloatVector(null);this.lineWidths=Ja.toFloatVector(null);this.layoutGroups=Ja.toObjectVector(null);this.textFormatRanges=Ja.toObjectVector(null);null==Rb.__context&&(Rb.__context=window.document.createElement("canvas").getContext("2d"))}; k["openfl._internal.text.TextEngine"]=Rb;Rb.__name__="openfl._internal.text.TextEngine";Rb.findFont=function(a){var b=yc.__fontByName;return null!=v[a]?b.getReserved(a):b.h[a]};Rb.findFontVariant=function(a){var b=a.font,d=a.bold,f=a.italic;null==b&&(b="_serif");a=aa.replace(aa.replace(b," Normal","")," Regular","");if(d&&f){var e=yc.__fontByName;var g=a+" Bold Italic";e=null!=v[g]?e.existsReserved(g):e.h.hasOwnProperty(g)}else e=!1;if(e)return Rb.findFont(a+" Bold Italic");d?(d=yc.__fontByName,e= a+" Bold",d=null!=v[e]?d.existsReserved(e):d.h.hasOwnProperty(e)):d=!1;if(d)return Rb.findFont(a+" Bold");f?(f=yc.__fontByName,d=a+" Italic",f=null!=v[d]?f.existsReserved(d):f.h.hasOwnProperty(d)):f=!1;return f?Rb.findFont(a+" Italic"):Rb.findFont(b)};Rb.getFormatHeight=function(a){Rb.__context.font=Rb.getFont(a);var b=Rb.getFontInstance(a);if(null!=a.__ascent){var d=a.size*a.__ascent;b=a.size*a.__descent}else null!=b&&0!=b.unitsPerEM?(d=b.ascender/b.unitsPerEM*a.size,b=Math.abs(b.descender/b.unitsPerEM* a.size)):(d=a.size,b=.185*a.size);return d+b+a.leading};Rb.getFont=function(a){var b=a.font,d=a.bold,f=a.italic;null==b&&(b="_serif");var e=aa.replace(aa.replace(b," Normal","")," Regular","");if(d&&f){var g=yc.__fontByName;var h=e+" Bold Italic";g=null!=v[h]?g.existsReserved(h):g.h.hasOwnProperty(h)}else g=!1;g?(b=e+" Bold Italic",f=d=!1):(d?(g=yc.__fontByName,h=e+" Bold",g=null!=v[h]?g.existsReserved(h):g.h.hasOwnProperty(h)):g=!1,g?(b=e+" Bold",d=!1):(f?(g=yc.__fontByName,h=e+" Italic",g=null!= v[h]?g.existsReserved(h):g.h.hasOwnProperty(h)):g=!1,g?(b=e+" Italic",f=!1):(d&&(-1=this.width&&(a=2);b>=this.height&&(b=2);this.textBounds.setTo(Math.max(a-2,0),Math.max(b-2,0),Math.min(this.textWidth+4,this.bounds.width+4),Math.min(1.185*this.textHeight+ 4,this.bounds.height+4))},getLine:function(a){return 0>a||a>this.lineBreaks.get_length()+1?null:0==this.lineBreaks.get_length()?this.text:this.text.substring(0this.numLines-1;)this.lineAscents.push(a),this.lineDescents.push(b),this.lineLeadings.push(null!=d?d:0),this.lineHeights.push(f),this.lineWidths.push(e),b=a=0,d=null,e=f=0,this.numLines++;a=Math.max(a,g.ascent);b=Math.max(b,g.descent);d=null==d?g.leading:Math.max(d,g.leading)|0;f=Math.max(f,g.height); e=g.offsetX-2+g.width;e>this.textWidth&&(this.textWidth=e);g=g.offsetY-2+g.ascent+g.descent;g>this.textHeight&&(this.textHeight=g)}0==this.textHeight&&null!=this.textField&&1==this.textField.get_type()&&(a=this.textField.__textFormat,b=Rb.getFontInstance(a),null!=a.__ascent?(h=a.size*a.__ascent,g=a.size*a.__descent):null!=b&&0!=b.unitsPerEM?(h=b.ascender/b.unitsPerEM*a.size,g=Math.abs(b.descender/b.unitsPerEM*a.size)):(h=a.size,g=.185*a.size),d=a.leading,a=h,b=g,this.textHeight=h+g);this.lineAscents.push(a); this.lineDescents.push(b);this.lineLeadings.push(null!=d?d:0);this.lineHeights.push(f);this.lineWidths.push(e);1==this.numLines&&0 this.width-4?this.textWidth-this.width+4|0:0;this.scrollH>this.maxScrollH&&(this.scrollH=this.maxScrollH)},getLayoutGroups:function(){var a=this;this.layoutGroups.set_length(0);if(null!=this.text&&""!=this.text){var b=-1,d=null,f=null,e=ge.__defaultTextFormat.clone(),g=0,h=0,l=0,m=0,p=3,k=0,n=0,q=0,u=0,v=!0,w=null,r=null,y=0,x=0,I=0,B=-2,P=-1,D=this.text.indexOf(" "),C=this.getLineBreakIndex(),F=0,E=0,G=0,H=0,J=function(b,c,d){var e=[];if(null==a.__useIntAdvances){var f=new Wa("Trident/7.0","");a.__useIntAdvances= f.match(window.navigator.userAgent)}if(a.__useIntAdvances){f=0;for(var g,h=c;hI&&(I=x);h>l&&(l=h)},Q=function(){v=!0;p=null!=e.align?e.align:3;k=null!=e.blockIndent?e.blockIndent:0;n=null!=e.indent? e.indent:0;q=null!=e.leftMargin?e.leftMargin:0;u=null!=e.rightMargin?e.rightMargin:0},R=function(){var c=a.textFormatRanges.get_length()-1;return b=e)r=[],y=0;else if(e<=d.end)r=J(a.text,c,e),y=L(r);else{var f=c;c=d.end;var g=0;r=[];for(y=0;;)if(f!=c&&(f=J(a.text,f,c),r=r.concat(f)),c!=e){if(!R()){Qa.warn("You found a bug in OpenFL's text code! Please save a copy of your project and contact Joshua Granick (@singmajesty) so we can fix this.", {fileName:"openfl/_internal/text/TextEngine.hx",lineNumber:1067,className:"openfl._internal.text.TextEngine",methodName:"getLayoutGroups"});break}f=c;c=eH||(c.ascent=l,c.height=I)}E+=I;I=l=0;H+=1;F=0;v=!1},U=function(b){if(4<=a.width&&a.wordWrap){var c=r,d,e,f;for(d=L(c);0N();){for(f=d=e=0;F+fN();)--d,0N()&&(V=!0,0B)++X;else break;--V}G==B+1&&ca();F=0;if(0C-w.startIndex-w.positions.length&&w.positions.push(0), G=C+1);B=D;D=Y;if(-1C||-1==D)||G>this.text.length)break}else Gthis.maxChars&&(a=A.substr(a,0,this.maxChars));return a},update:function(){null==this.text||0==this.textFormatRanges.get_length()?(this.lineAscents.set_length(0),this.lineBreaks.set_length(0), this.lineDescents.set_length(0),this.lineLeadings.set_length(0),this.lineHeights.set_length(0),this.lineWidths.set_length(0),this.layoutGroups.set_length(0),this.textHeight=this.textWidth=0,this.numLines=1,this.maxScrollH=0,this.bottomScrollV=this.maxScrollV=1):(this.getLayoutGroups(),this.getLineMeasurements(),this.setTextAlignment());this.getBounds()},get_bottomScrollV:function(){if(1==this.numLines||null==this.lineHeights)return 1;for(var a=0,b=this.lineHeights.get_length(),d=b-1,f=this.lineHeights.get_length();d< f;){var e=d++;if(a+this.lineHeights.get(e)<=this.height-4)a+=this.lineHeights.get(e);else{b=e;break}}return 1>b?1:b},get_maxScrollV:function(){if(1==this.numLines||null==this.lineHeights)return 1;var a=this.numLines-1,b=0;10==A.cca(this.text,this.text.length-1)&&--a;for(var d=a;0<=a;)if(b+this.lineHeights.get(a)<=this.height-4)b+=this.lineHeights.get(a),--a;else break;a=a==d?this.numLines:a+2;return 1>a?1:a},set_restrict:function(a){if(this.restrict==a)return this.restrict;this.restrict=a;this.__restrictRegexp= null==this.restrict||0==this.restrict.length?null:this.createRestrictRegexp(a);return this.restrict},get_scrollV:function(){if(1==this.numLines||null==this.lineHeights)return 1;var a=this.get_maxScrollV();return this.scrollV>a?a:this.scrollV},set_scrollV:function(a){1>a&&(a=1);return this.scrollV=a},set_text:function(a){return this.text=a},__class__:Rb,__properties__:{set_text:"set_text",set_scrollV:"set_scrollV",get_scrollV:"get_scrollV",set_restrict:"set_restrict",get_maxScrollV:"get_maxScrollV", get_bottomScrollV:"get_bottomScrollV"}};var Bh=function(a,b,d){this.format=a;this.start=b;this.end=d};k["openfl._internal.text.TextFormatRange"]=Bh;Bh.__name__="openfl._internal.text.TextFormatRange";Bh.prototype={end:null,format:null,start:null,__class__:Bh};var je=function(a,b,d,f,e,g){null==g&&(g="en");null==e&&(e="Zyyy");null==f&&(f=4);null==d&&(d=12);null==a&&(a="");this.letterSpacing=0;this.set_text(a);this.set_font(b);this.set_size(d);this.__direction=f;this.__script=e;this.__language=g;this.positions= [];this.__dirty=!0;this.__create(this.__direction,this.__script,this.__language)};k["openfl._internal.text.TextLayout"]=je;je.__name__="openfl._internal.text.TextLayout";je.prototype={autoHint:null,font:null,glyphs:null,letterSpacing:null,positions:null,size:null,text:null,__buffer:null,__direction:null,__dirty:null,__handle:null,__language:null,__script:null,__font:null,__hbBuffer:null,__hbFont:null,__create:function(a,b,d){4==d.length&&(this.__hbBuffer=Ac._new(),gl._new(d))},__position:function(){this.positions= []},get_positions:function(){this.__dirty&&(this.__dirty=!1,this.__position());return this.positions},get_direction:function(){return this.__direction},set_direction:function(a){if(a==this.__direction)return a;this.__direction=a;this.__dirty=!0;return a},set_font:function(a){if(a==this.font)return a;this.font=a;this.__dirty=!0;return a},get_glyphs:function(){for(var a=[],b=0,d=this.get_positions();b>16&255,m=b>>8&255;b&=255;if(h-e>8&255,q=k&255;e=(h-d)/e;c=this.mixI(k>>16&255,c,e);m=this.mixI(n,m,e);b=this.mixI(q,b,e)}l-g>8&255,e=a&255,f=(l-f)/g,c=this.mixI(a>>16&255,c,f),m=this.mixI(d,m,f),b=this.mixI(e,b,f));return-16777216|c<<16|m<<8|b},color:function(a,b,d){var c=0,e=0,g=0;null!=a&&(c=this.noiseToColor(a));null!=b&&(e=this.noiseToColor(b));null!=d&&(g=this.noiseToColor(d));return-16777216|c<<16|e<<8|g},noiseToColor:function(a){return 128*(a*this.persistence_max+1)|0},fade:function(a){return a*a*a*(a*(6*a-15)+10)},mixI:function(a,b,d){return(1-d)*a+d*b|0},mix:function(a,b,d){return(1-d)*a+d*b},fastfloor:function(a){return 0< a?a|0:a-1|0},dot2d:function(a,b,d){return a[0]*b+a[1]*d},dot:function(a,b,d,f){return a[0]*b+a[1]*d+a[2]*f},calculateOctaves:function(a){this.octaves_frequencies=[];this.octaves_persistences=[];for(var b=this.persistence_max=0,d=this.octaves;bb;)d=b++,this.p_perm[d]=Wi.P[d&255];this.base_factor=.03125;this.setSeed(a)};k["openfl._internal.utils.PerlinNoise"]=Wi;Wi.__name__="openfl._internal.utils.PerlinNoise";Wi.__super__=Yj;Wi.prototype=r(Yj.prototype,{p_perm:null,x_offset:null,y_offset:null,z_offset:null,base_factor:null,fill:function(a,b,d,f){var c=a.width,g=a.height,h=this.octaves,l=this.octaves_frequencies,m=this.octaves_persistences,p=1==(1&this.channels),k=2==(2&this.channels), n=4==(4&this.channels),q=0;p&&++q;k&&++q;n&&++q;var u=this.grayscale,w=this.stitch_threshold*c|0,v=this.stitch_threshold*g|0,r=b*this.base_factor+this.x_offset;d=d*this.base_factor+this.y_offset;f=f*this.base_factor+this.z_offset;for(var y=0;yv?q:u:8>v?-q:-u)+(0==(v&2)?4>v?u:12==v?q:w:4>v?-u:14==v?-q:-w);v=this.p_perm[p+1]&15;l=(0==(v&1)?8>v?a:u:8>v?-a:-u)+(0==(v&2)?4>v?u:12==v?a:w:4>v?-u:14==v?-a:-w);v=this.p_perm[h+1]&15;var r=(0==(v&1)?8>v?q:b:8>v?-q:-b)+(0==(v&2)?4>v?b:12==v?q:w:4>v?-b:14==v?-q:-w);v=this.p_perm[k+1]&15;w=(0==(v&1)?8>v?a:b:8>v?-a:-b)+(0==(v&2)?4>v?b:12==v?a:w:4>v?-b:14==v?-a:-w);v=this.p_perm[n]& 15;n=(0==(v&1)?8>v?q:u:8>v?-q:-u)+(0==(v&2)?4>v?u:12==v?q:d:4>v?-u:14==v?-q:-d);v=this.p_perm[p]&15;p=(0==(v&1)?8>v?a:u:8>v?-a:-u)+(0==(v&2)?4>v?u:12==v?a:d:4>v?-u:14==v?-a:-d);v=this.p_perm[h]&15;h=(0==(v&1)?8>v?q:b:8>v?-q:-b)+(0==(v&2)?4>v?b:12==v?q:d:4>v?-b:14==v?-q:-d);v=this.p_perm[k]&15;a=(0==(v&1)?8>v?a:b:8>v?-a:-b)+(0==(v&2)?4>v?b:12==v?a:d:4>v?-b:14==v?-a:-d);w+=g*(r-w);a+=g*(h-a);a+=e*(p+g*(n-p)-a);return a+c*(w+e*(l+g*(m-l)-w)-a)},setSeed:function(a){this.x_offset=a=16807*a%2147483647| 0;this.y_offset=a=16807*a%2147483647|0;this.z_offset=16807*a%2147483647|0},__class__:Wi});var $i=function(){this.rollOutStack=[]};k["openfl._internal.utils.TouchData"]=$i;$i.__name__="openfl._internal.utils.TouchData";$i.prototype={rollOutStack:null,touch:null,touchDownTarget:null,touchOverTarget:null,reset:function(){this.touchOverTarget=this.touchDownTarget=this.touch=null;this.rollOutStack.splice(0,this.rollOutStack.length)},__class__:$i};var wk=function(){Ve.call(this);null==Qc.application&&(Qc.application= this);null==Qc.current&&(Qc.current=new oe);Qc.current.__loaderInfo=Eg.create(null);Qc.current.__loaderInfo.content=Qc.current};k["openfl.display.Application"]=wk;wk.__name__="openfl.display.Application";wk.__super__=Ve;wk.prototype=r(Ve.prototype,{createWindow:function(a){var b=new vl(this,a);this.__windows.push(b);this.__windowByID.h[b.id]=b;var d=x(this,this.__onWindowClose);b.onClose.add(function(){d(b)},!1,-1E4);null==this.__window&&(this.__window=b,b.onActivate.add(x(this,this.onWindowActivate)), b.onRenderContextLost.add(x(this,this.onRenderContextLost)),b.onRenderContextRestored.add(x(this,this.onRenderContextRestored)),b.onDeactivate.add(x(this,this.onWindowDeactivate)),b.onDropFile.add(x(this,this.onWindowDropFile)),b.onEnter.add(x(this,this.onWindowEnter)),b.onExpose.add(x(this,this.onWindowExpose)),b.onFocusIn.add(x(this,this.onWindowFocusIn)),b.onFocusOut.add(x(this,this.onWindowFocusOut)),b.onFullscreen.add(x(this,this.onWindowFullscreen)),b.onKeyDown.add(x(this,this.onKeyDown)),b.onKeyUp.add(x(this, this.onKeyUp)),b.onLeave.add(x(this,this.onWindowLeave)),b.onMinimize.add(x(this,this.onWindowMinimize)),b.onMouseDown.add(x(this,this.onMouseDown)),b.onMouseMove.add(x(this,this.onMouseMove)),b.onMouseMoveRelative.add(x(this,this.onMouseMoveRelative)),b.onMouseUp.add(x(this,this.onMouseUp)),b.onMouseWheel.add(x(this,this.onMouseWheel)),b.onMove.add(x(this,this.onWindowMove)),b.onRender.add(x(this,this.render)),b.onResize.add(x(this,this.onWindowResize)),b.onRestore.add(x(this,this.onWindowRestore)), b.onTextEdit.add(x(this,this.onTextEdit)),b.onTextInput.add(x(this,this.onTextInput)),this.onWindowCreate());this.onCreateWindow.dispatch(b);return b},__class__:wk});var gf={};k["openfl.display._BlendMode.BlendMode_Impl_"]=gf;gf.__name__="openfl.display._BlendMode.BlendMode_Impl_";gf.fromString=function(a){switch(a){case "add":return 0;case "alpha":return 1;case "darken":return 2;case "difference":return 3;case "erase":return 4;case "hardlight":return 5;case "invert":return 6;case "layer":return 7; case "lighten":return 8;case "multiply":return 9;case "normal":return 10;case "overlay":return 11;case "screen":return 12;case "shader":return 13;case "subtract":return 14;default:return null}};gf.toString=function(a){switch(a){case 0:return"add";case 1:return"alpha";case 2:return"darken";case 3:return"difference";case 4:return"erase";case 5:return"hardlight";case 6:return"invert";case 7:return"layer";case 8:return"lighten";case 9:return"multiply";case 10:return"normal";case 11:return"overlay";case 12:return"screen"; case 13:return"shader";case 14:return"subtract";default:return null}};var ji={};k["openfl.display._CapsStyle.CapsStyle_Impl_"]=ji;ji.__name__="openfl.display._CapsStyle.CapsStyle_Impl_";ji.fromInt=function(a){return a};ji.fromString=function(a){switch(a){case "none":return 0;case "round":return 1;case "square":return 2;default:return null}};ji.toInt=function(a){return a};ji.toString=function(a){switch(a){case 0:return"none";case 1:return"round";case 2:return"square";default:return null}};var Po=function(a){wa.call(this); this.__element=a;this.__type=Kh.DOM_ELEMENT};k["openfl.display.DOMElement"]=Po;Po.__name__="openfl.display.DOMElement";Po.__super__=wa;Po.prototype=r(wa.prototype,{__active:null,__element:null,__class__:Po});var Mo=function(a){null==this.__glFragmentSource&&(this.__glFragmentSource="varying float openfl_Alphav;\n\t\tvarying vec4 openfl_ColorMultiplierv;\n\t\tvarying vec4 openfl_ColorOffsetv;\n\t\tvarying vec2 openfl_TextureCoordv;\n\n\t\tuniform bool openfl_HasColorTransform;\n\t\tuniform sampler2D openfl_Texture;\n\t\tuniform vec2 openfl_TextureSize;\n\n\t\tvoid main(void) {\n\n\t\t\tvec4 color = texture2D (openfl_Texture, openfl_TextureCoordv);\n\n\t\tif (color.a == 0.0) {\n\n\t\t\tgl_FragColor = vec4 (0.0, 0.0, 0.0, 0.0);\n\n\t\t} else if (openfl_HasColorTransform) {\n\n\t\t\tcolor = vec4 (color.rgb / color.a, color.a);\n\n\t\t\tmat4 colorMultiplier = mat4 (0);\n\t\t\tcolorMultiplier[0][0] = openfl_ColorMultiplierv.x;\n\t\t\tcolorMultiplier[1][1] = openfl_ColorMultiplierv.y;\n\t\t\tcolorMultiplier[2][2] = openfl_ColorMultiplierv.z;\n\t\t\tcolorMultiplier[3][3] = 1.0; // openfl_ColorMultiplierv.w;\n\n\t\t\tcolor = clamp (openfl_ColorOffsetv + (color * colorMultiplier), 0.0, 1.0);\n\n\t\t\tif (color.a > 0.0) {\n\n\t\t\t\tgl_FragColor = vec4 (color.rgb * color.a * openfl_Alphav, color.a * openfl_Alphav);\n\n\t\t\t} else {\n\n\t\t\t\tgl_FragColor = vec4 (0.0, 0.0, 0.0, 0.0);\n\n\t\t\t}\n\n\t\t} else {\n\n\t\t\tgl_FragColor = color * openfl_Alphav;\n\n\t\t}\n\n\t\t}"); null==this.__glVertexSource&&(this.__glVertexSource="attribute float openfl_Alpha;\n\t\tattribute vec4 openfl_ColorMultiplier;\n\t\tattribute vec4 openfl_ColorOffset;\n\t\tattribute vec4 openfl_Position;\n\t\tattribute vec2 openfl_TextureCoord;\n\n\t\tvarying float openfl_Alphav;\n\t\tvarying vec4 openfl_ColorMultiplierv;\n\t\tvarying vec4 openfl_ColorOffsetv;\n\t\tvarying vec2 openfl_TextureCoordv;\n\n\t\tuniform mat4 openfl_Matrix;\n\t\tuniform bool openfl_HasColorTransform;\n\t\tuniform vec2 openfl_TextureSize;\n\n\t\tvoid main(void) {\n\n\t\t\topenfl_Alphav = openfl_Alpha;\n\t\topenfl_TextureCoordv = openfl_TextureCoord;\n\n\t\tif (openfl_HasColorTransform) {\n\n\t\t\topenfl_ColorMultiplierv = openfl_ColorMultiplier;\n\t\t\topenfl_ColorOffsetv = openfl_ColorOffset / 255.0;\n\n\t\t}\n\n\t\tgl_Position = openfl_Matrix * openfl_Position;\n\n\t\t}"); Ye.call(this,a);this.__isGenerated=!0;this.__initGL()};k["openfl.display.DisplayObjectShader"]=Mo;Mo.__name__="openfl.display.DisplayObjectShader";Mo.__super__=Ye;Mo.prototype=r(Ye.prototype,{openfl_Alpha:null,openfl_ColorMultiplier:null,openfl_ColorOffset:null,openfl_Position:null,openfl_TextureCoord:null,openfl_Matrix:null,openfl_HasColorTransform:null,openfl_TextureSize:null,openfl_Texture:null,__class__:Mo});var nl=function(a,b){E.call(this);this.__name=a;this.__frame=b};k["openfl.display.FrameLabel"]= nl;nl.__name__="openfl.display.FrameLabel";nl.__super__=E;nl.prototype=r(E.prototype,{__frame:null,__name:null,get_frame:function(){return this.__frame},get_name:function(){return this.__name},__class__:nl,__properties__:{get_name:"get_name",get_frame:"get_frame"}});var Zj={};k["openfl.display._GradientType.GradientType_Impl_"]=Zj;Zj.__name__="openfl.display._GradientType.GradientType_Impl_";Zj.fromInt=function(a){return a};Zj.fromString=function(a){switch(a){case "linear":return 0;case "radial":return 1; default:return null}};Zj.toInt=function(a){return a};Zj.toString=function(a){switch(a){case 0:return"linear";case 1:return"radial";default:return null}};var jf=function(a){this.__dirty=!0;this.__owner=a;this.__commands=new Xe;this.__positionY=this.__positionX=this.__strokePadding=0;this.__renderTransform=new Ha;this.__usedShaderBuffers=new Pa;this.__worldTransform=new Ha;this.__height=this.__width=0;this.__shaderBufferPool=new Ia(function(){return new Io});this.moveTo(0,0)};k["openfl.display.Graphics"]= jf;jf.__name__="openfl.display.Graphics";jf.prototype={__bounds:null,__commands:null,__dirty:null,__hardwareDirty:null,__height:null,__managed:null,__positionX:null,__positionY:null,__quadBuffer:null,__renderTransform:null,__shaderBufferPool:null,__softwareDirty:null,__strokePadding:null,__transformDirty:null,__triangleIndexBuffer:null,__triangleIndexBufferCount:null,__triangleIndexBufferData:null,__usedShaderBuffers:null,__vertexBuffer:null,__vertexBufferCount:null,__vertexBufferCountUVT:null,__vertexBufferData:null, __vertexBufferDataUVT:null,__vertexBufferUVT:null,__visible:null,__owner:null,__width:null,__worldTransform:null,__canvas:null,__context:null,__bitmap:null,beginBitmapFill:function(a,b,d,f){null==f&&(f=!1);null==d&&(d=!0);this.__commands.beginBitmapFill(a,null!=b?b.clone():null,d,f);this.__visible=!0},beginFill:function(a,b){null==b&&(b=1);null==a&&(a=0);this.__commands.beginFill(a&16777215,b);0this.__positionX||a>e&&athis.__positionX||d>e&&dn&&(c=this.__calculateBezierCubicPoint(n,this.__positionX,a,d,e));0m&&(l=this.__calculateBezierCubicPoint(m,this.__positionX,a,d,e))}m=n=g;if(!(bthis.__positionX||b>g&&bthis.__positionX||f>g&&fp&&(n=this.__calculateBezierCubicPoint(p,this.__positionX,b,f,g));0k&&(m=this.__calculateBezierCubicPoint(k,this.__positionX,b,f,g))}this.__inflateBounds(c-this.__strokePadding,n-this.__strokePadding);this.__inflateBounds(c+this.__strokePadding,n+this.__strokePadding);this.__inflateBounds(l-this.__strokePadding,m-this.__strokePadding);this.__inflateBounds(l+this.__strokePadding,m+this.__strokePadding);this.__positionX=e;this.__positionY=g;this.__inflateBounds(this.__positionX- this.__strokePadding,this.__positionY-this.__strokePadding);this.__inflateBounds(this.__positionX+this.__strokePadding,this.__positionY+this.__strokePadding);this.__commands.cubicCurveTo(a,b,d,f,e,g);this.set___dirty(!0)},curveTo:function(a,b,d,f){this.__inflateBounds(this.__positionX-this.__strokePadding,this.__positionY-this.__strokePadding);this.__inflateBounds(this.__positionX+this.__strokePadding,this.__positionY+this.__strokePadding);var c=athis.__positionX||a>d&&athis.__positionY||b>f&&b=d||(this.__inflateBounds(a-d-this.__strokePadding,b-d-this.__strokePadding),this.__inflateBounds(a+d+this.__strokePadding,b+d+this.__strokePadding),this.__commands.drawCircle(a,b,d),this.set___dirty(!0))},drawEllipse:function(a,b,d,f){0>=d||0>=f||(this.__inflateBounds(a-this.__strokePadding,b-this.__strokePadding),this.__inflateBounds(a+d+this.__strokePadding,b+f+this.__strokePadding),this.__commands.drawEllipse(a,b,d,f),this.set___dirty(!0))},drawGraphicsData:function(a){for(a=a.iterator();a.hasNext();){var b= a.next();switch(b.__graphicsDataType){case 0:if(null!=b.fill){var d=b.thickness;isNaN(d)&&(d=null);switch(b.fill.__graphicsFillType){case 0:var f=b.fill;this.lineStyle(d,f.color,f.alpha,b.pixelHinting,b.scaleMode,b.caps,b.joints,b.miterLimit);break;case 1:f=b.fill;this.lineStyle(d,0,1,b.pixelHinting,b.scaleMode,b.caps,b.joints,b.miterLimit);this.lineGradientStyle(f.type,f.colors,f.alphas,f.ratios,f.matrix,f.spreadMethod,f.interpolationMethod,f.focalPointRatio);break;case 2:f=b.fill,this.lineStyle(d, 0,1,b.pixelHinting,b.scaleMode,b.caps,b.joints,b.miterLimit),this.lineBitmapStyle(f.bitmapData,f.matrix,f.repeat,f.smooth)}}else this.lineStyle();break;case 1:f=b;this.beginFill(f.color,f.alpha);break;case 2:f=b;this.beginGradientFill(f.type,f.colors,f.alphas,f.ratios,f.matrix,f.spreadMethod,f.interpolationMethod,f.focalPointRatio);break;case 3:this.drawPath(b.commands,b.data,b.winding);break;case 4:f=b;this.beginBitmapFill(f.bitmapData,f.matrix,f.repeat,f.smooth);break;case 5:this.endFill();break; case 6:this.drawQuads(b.rects,b.indices,b.transforms);break;case 7:this.drawTriangles(b.vertices,b.indices,b.uvtData,b.culling);break;case 8:this.beginShaderFill(b.shader,b.matrix)}}},drawPath:function(a,b,d){null==d&&(d=0);var c=0;1==d&&this.__commands.windingNonZero();a=a.iterator();a:for(;a.hasNext();)switch(a.next()){case 1:this.moveTo(b.get(c),b.get(c+1));c+=2;break;case 2:this.lineTo(b.get(c),b.get(c+1));c+=2;break;case 3:this.curveTo(b.get(c),b.get(c+1),b.get(c+2),b.get(c+3));c+=4;break;case 4:this.moveTo(b.get(c+ 2),b.get(c+3));break a;case 5:this.lineTo(b.get(c+2),b.get(c+3));break a;case 6:this.cubicCurveTo(b.get(c),b.get(c+1),b.get(c+2),b.get(c+3),b.get(c+4),b.get(c+5)),c+=6}},drawQuads:function(a,b,d){if(null!=a){var c=null!=b,e=!1,g=!1,h=c?b.get_length():Math.floor(a.get_length()/4);if(0!=h){null!=d&&(d.get_length()>=6*h?g=e=!0:d.get_length()>=4*h?e=!0:d.get_length()>=2*h&&(g=!0));for(var l=ia.__pool.get(),m=Ha.__pool.get(),p=Infinity,k=Infinity,n=-Infinity,q=-Infinity,u,v=0;vu||(l.setTo(0,0,a.get(u+2),a.get(u+3)),0>=l.width||0>=l.height||(e&&g?(u=6*w,m.setTo(d.get(u),d.get(u+1),d.get(u+2),d.get(u+3),d.get(u+4),d.get(u+5))):e?(u=4*w,m.setTo(d.get(u),d.get(u+1),d.get(u+2),d.get(u+3),l.x,l.y)):g?(u=2*w,m.tx=d.get(u),m.ty=d.get(u+1)):(m.tx=l.x,m.ty=l.y),l.__transform(l,m),p>l.x&&(p=l.x),k>l.y&&(k=l.y),nd?-1:1,g=0>f?-1:1;this.__inflateBounds(a-this.__strokePadding*c,b-this.__strokePadding*g);this.__inflateBounds(a+d+this.__strokePadding*c,b+f+this.__strokePadding*g);this.__commands.drawRect(a,b,d,f);this.set___dirty(!0)}},drawRoundRect:function(a,b,d,f,e,g){if(0!=d||0!=f){var c=0>d?-1:1,l=0>f?-1:1;this.__inflateBounds(a-this.__strokePadding*c,b-this.__strokePadding*l);this.__inflateBounds(a+ d+this.__strokePadding*c,b+f+this.__strokePadding*l);this.__commands.drawRoundRect(a,b,d,f,e,g);this.set___dirty(!0)}},drawRoundRectComplex:function(a,b,d,f,e,g,h,l){if(!(0>=d||0>=f)){this.__inflateBounds(a-this.__strokePadding,b-this.__strokePadding);this.__inflateBounds(a+d+this.__strokePadding,b+f+this.__strokePadding);var c=a+d,m=b+f;d=dg&&(h=g),m>l&&(m=l),pthis.__strokePadding&&(this.__strokePadding=a):a/2>this.__strokePadding&&(this.__strokePadding=a/2));this.__commands.lineStyle(a,b,d,f,e,g,h,l);null!=a&&(this.__visible=!0)},lineTo:function(a,b){isFinite(a)&&isFinite(b)&& (this.__inflateBounds(this.__positionX-this.__strokePadding,this.__positionY-this.__strokePadding),this.__inflateBounds(this.__positionX+this.__strokePadding,this.__positionY+this.__strokePadding),this.__positionX=a,this.__positionY=b,this.__inflateBounds(this.__positionX-this.__strokePadding,this.__positionY-this.__strokePadding),this.__inflateBounds(this.__positionX+2*this.__strokePadding,this.__positionY+this.__strokePadding),this.__commands.lineTo(a,b),this.set___dirty(!0))},moveTo:function(a, b){this.__positionX=a;this.__positionY=b;this.__commands.moveTo(a,b)},overrideBlendMode:function(a){null==a&&(a=10);this.__commands.overrideBlendMode(a)},readGraphicsData:function(a){null==a&&(a=!0);var b=Ja.toObjectVector(null);this.__owner.__readGraphicsData(b,a);return b},__calculateBezierCubicPoint:function(a,b,d,f,e){var c=1-a;return b*c*c*c+3*d*a*c*c+3*f*c*a*a+e*a*a*a},__calculateBezierQuadPoint:function(a,b,d,f){var c=1-a;return c*c*b+2*c*a*d+a*a*f},__cleanup:function(){null!=this.__bounds&& null!=this.__canvas&&(this.set___dirty(!0),this.__transformDirty=!0);this.__context=this.__canvas=this.__bitmap=null},__getBounds:function(a,b){if(null!=this.__bounds){var c=ia.__pool.get();this.__bounds.__transform(c,b);a.__expand(c.x,c.y,c.width,c.height);ia.__pool.release(c)}},__hitTest:function(a,b,d,f){if(null==this.__bounds)return!1;var c=f.a*f.d-f.b*f.c;c=0==c?-f.tx:1/c*(f.c*(f.ty-b)+f.d*(a-f.tx));var g=f.a*f.d-f.b*f.c;a=0==g?-f.ty:1/g*(f.a*(b-f.ty)+f.b*(f.tx-a));return c>this.__bounds.x&& a>this.__bounds.y&&this.__bounds.contains(c,a)?d?C.hitTest(this,c,a):!0:!1},__inflateBounds:function(a,b){null==this.__bounds?(this.__bounds=new ia(a,b,0,0),this.__transformDirty=!0):(athis.__bounds.x+this.__bounds.width&&(this.__bounds.width=a-this.__bounds.x),b>this.__bounds.y+this.__bounds.height&& (this.__bounds.height=b-this.__bounds.y))},__readGraphicsData:function(a){for(var b=new ug(this.__commands),d=null,f,e=this.__commands.types,g=0,h=this.__commands.get_length();g=this.__bounds.width||0>=this.__bounds.height)){var b=this.__owner.__renderTransform;if(null!=b){var d=0==b.b?Math.abs(b.a):Math.sqrt(b.a*b.a+b.b*b.b);var f=0==b.c?Math.abs(b.d):Math.sqrt(b.c*b.c+b.d*b.d);null!=a&&(d=0==a.b?d*a.a:d*Math.sqrt(a.a*a.a+a.b*a.b),f=0==a.c?f*a.d:f*Math.sqrt(a.c*a.c+ a.d*a.d));a=this.__bounds.width*d;f*=this.__bounds.height;if(1>a||1>f)(1<=this.__width||1<=this.__height)&&this.set___dirty(!0),this.__height=this.__width=0;else{null!=jf.maxTextureWidth&&a>jf.maxTextureWidth&&(a=jf.maxTextureWidth);null!=jf.maxTextureWidth&&f>jf.maxTextureHeight&&(f=jf.maxTextureHeight);this.__renderTransform.a=a/this.__bounds.width;this.__renderTransform.d=f/this.__bounds.height;d=1/this.__renderTransform.a;var e=1/this.__renderTransform.d;this.__worldTransform.a=d*b.a;this.__worldTransform.b= d*b.b;this.__worldTransform.c=e*b.c;this.__worldTransform.d=e*b.d;e=this.__bounds.x;var g=this.__bounds.y;d=e*b.a+g*b.c+b.tx;b=e*b.b+g*b.d+b.ty;this.__worldTransform.tx=Math.floor(d);this.__worldTransform.ty=Math.floor(b);e=this.__worldTransform;g=e.a*e.d-e.b*e.c;this.__renderTransform.tx=0==g?-e.tx:1/g*(e.c*(e.ty-b)+e.d*(d-e.tx));e=this.__worldTransform;g=e.a*e.d-e.b*e.c;this.__renderTransform.ty=0==g?-e.ty:1/g*(e.a*(b-e.ty)+e.b*(e.tx-d));a=Math.ceil(a+1);f=Math.ceil(f+1);a==this.__width&&f==this.__height|| this.set___dirty(!0);this.__width=a;this.__height=f}}}},set___dirty:function(a){if(a&&null!=this.__owner){var b=this.__owner;b.__renderDirty||(b.__renderDirty=!0,b.__setParentRenderDirty())}a&&(this.__hardwareDirty=this.__softwareDirty=!0);return this.__dirty=a},__class__:jf,__properties__:{set___dirty:"set___dirty"}};var ni=function(){};k["openfl.display.IGraphicsFill"]=ni;ni.__name__="openfl.display.IGraphicsFill";ni.__isInterface__=!0;ni.prototype={__graphicsFillType:null,__class__:ni};var vg= function(){};k["openfl.display.IGraphicsData"]=vg;vg.__name__="openfl.display.IGraphicsData";vg.__isInterface__=!0;vg.prototype={__graphicsDataType:null,__class__:vg};var Qo=function(a,b,d,f){null==f&&(f=!1);null==d&&(d=!0);this.bitmapData=a;this.matrix=b;this.repeat=d;this.smooth=f;this.__graphicsDataType=4;this.__graphicsFillType=2};k["openfl.display.GraphicsBitmapFill"]=Qo;Qo.__name__="openfl.display.GraphicsBitmapFill";Qo.__interfaces__=[ni,vg];Qo.prototype={bitmapData:null,matrix:null,repeat:null, smooth:null,__graphicsDataType:null,__graphicsFillType:null,__class__:Qo};var So=function(){this.__graphicsDataType=5;this.__graphicsFillType=3};k["openfl.display.GraphicsEndFill"]=So;So.__name__="openfl.display.GraphicsEndFill";So.__interfaces__=[ni,vg];So.prototype={__graphicsDataType:null,__graphicsFillType:null,__class__:So};var Ro=function(a,b,d,f,e,g,h,l){null==l&&(l=0);null==a&&(a=0);null==g&&(g=0);null==h&&(h=1);this.type=a;this.colors=b;this.alphas=d;this.ratios=f;this.matrix=e;this.spreadMethod= g;this.interpolationMethod=h;this.focalPointRatio=l;this.__graphicsDataType=2;this.__graphicsFillType=1};k["openfl.display.GraphicsGradientFill"]=Ro;Ro.__name__="openfl.display.GraphicsGradientFill";Ro.__interfaces__=[ni,vg];Ro.prototype={alphas:null,colors:null,focalPointRatio:null,interpolationMethod:null,matrix:null,ratios:null,spreadMethod:null,type:null,__graphicsDataType:null,__graphicsFillType:null,__class__:Ro};var Uo=function(){};k["openfl.display.IGraphicsPath"]=Uo;Uo.__name__="openfl.display.IGraphicsPath"; Uo.__isInterface__=!0;var ak=function(a,b,d){null==d&&(d=0);this.commands=a;this.data=b;this.winding=d;this.__graphicsDataType=3};k["openfl.display.GraphicsPath"]=ak;ak.__name__="openfl.display.GraphicsPath";ak.__interfaces__=[Uo,vg];ak.prototype={commands:null,data:null,winding:null,__graphicsDataType:null,cubicCurveTo:function(a,b,d,f,e,g){null==this.commands&&(this.commands=Ja.toIntVector(null));null==this.data&&(this.data=Ja.toFloatVector(null));this.commands.push(6);this.data.push(a);this.data.push(b); this.data.push(d);this.data.push(f);this.data.push(e);this.data.push(g)},curveTo:function(a,b,d,f){null==this.commands&&(this.commands=Ja.toIntVector(null));null==this.data&&(this.data=Ja.toFloatVector(null));this.commands.push(3);this.data.push(a);this.data.push(b);this.data.push(d);this.data.push(f)},lineTo:function(a,b){null==this.commands&&(this.commands=Ja.toIntVector(null));null==this.data&&(this.data=Ja.toFloatVector(null));this.commands.push(2);this.data.push(a);this.data.push(b)},moveTo:function(a, b){null==this.commands&&(this.commands=Ja.toIntVector(null));null==this.data&&(this.data=Ja.toFloatVector(null));this.commands.push(1);this.data.push(a);this.data.push(b)},wideLineTo:function(a,b){null==this.commands&&(this.commands=Ja.toIntVector(null));null==this.data&&(this.data=Ja.toFloatVector(null));this.commands.push(2);this.data.push(a);this.data.push(b)},wideMoveTo:function(a,b){null==this.commands&&(this.commands=Ja.toIntVector(null));null==this.data&&(this.data=Ja.toFloatVector(null)); this.commands.push(1);this.data.push(a);this.data.push(b)},__drawCircle:function(a,b,d){this.__drawRoundRect(a-d,b-d,2*d,2*d,2*d,2*d)},__drawEllipse:function(a,b,d,f){this.__drawRoundRect(a,b,d,f,d,f)},__drawRect:function(a,b,d,f){this.moveTo(a,b);this.lineTo(a+d,b);this.lineTo(a+d,b+f);this.lineTo(a,b+f);this.lineTo(a,b)},__drawRoundRect:function(a,b,d,f,e,g){e*=.5;g*=.5;e>d/2&&(e=d/2);g>f/2&&(g=f/2);d=a+d;f=b+f;var c=-e+.7071067811865476*e,l=-e+.41421356237309503*e,m=-g+.7071067811865476*g,p=-g+ .41421356237309503*g;this.moveTo(d,f-g);this.curveTo(d,f+p,d+c,f+m);this.curveTo(d+l,f,d-e,f);this.lineTo(a+e,f);this.curveTo(a-l,f,a-c,f+m);this.curveTo(a,f+p,a,f-g);this.lineTo(a,b+g);this.curveTo(a,b-p,a-c,b-m);this.curveTo(a-l,b,a+e,b);this.lineTo(d-e,b);this.curveTo(d+l,b,d+c,b-m);this.curveTo(d,b-p,d,b+g);this.lineTo(d,f-g)},__class__:ak};var Vo={};k["openfl.display._GraphicsPathWinding.GraphicsPathWinding_Impl_"]=Vo;Vo.__name__="openfl.display._GraphicsPathWinding.GraphicsPathWinding_Impl_"; Vo.fromString=function(a){switch(a){case "evenOdd":return 0;case "nonZero":return 1;default:return null}};Vo.toString=function(a){switch(a){case 0:return"evenOdd";case 1:return"nonZero";default:return null}};var rr=function(a,b,d){this.rects=a;this.indices=b;this.transforms=d;this.__graphicsDataType=6};k["openfl.display.GraphicsQuadPath"]=rr;rr.__name__="openfl.display.GraphicsQuadPath";rr.__interfaces__=[Uo,vg];rr.prototype={indices:null,rects:null,transforms:null,__graphicsDataType:null,__class__:rr}; var No=function(a){null==this.__glFragmentSource&&(this.__glFragmentSource="varying float openfl_Alphav;\n\t\tvarying vec4 openfl_ColorMultiplierv;\n\t\tvarying vec4 openfl_ColorOffsetv;\n\t\tvarying vec2 openfl_TextureCoordv;\n\n\t\tuniform bool openfl_HasColorTransform;\n\t\tuniform vec2 openfl_TextureSize;\n\t\tuniform sampler2D bitmap;\n\n\t\tvoid main(void) {\n\n\t\t\tvec4 color = texture2D (bitmap, openfl_TextureCoordv);\n\n\t\tif (color.a == 0.0) {\n\n\t\t\tgl_FragColor = vec4 (0.0, 0.0, 0.0, 0.0);\n\n\t\t} else if (openfl_HasColorTransform) {\n\n\t\t\tcolor = vec4 (color.rgb / color.a, color.a);\n\n\t\t\tmat4 colorMultiplier = mat4 (0);\n\t\t\tcolorMultiplier[0][0] = openfl_ColorMultiplierv.x;\n\t\t\tcolorMultiplier[1][1] = openfl_ColorMultiplierv.y;\n\t\t\tcolorMultiplier[2][2] = openfl_ColorMultiplierv.z;\n\t\t\tcolorMultiplier[3][3] = 1.0; // openfl_ColorMultiplierv.w;\n\n\t\t\tcolor = clamp (openfl_ColorOffsetv + (color * colorMultiplier), 0.0, 1.0);\n\n\t\t\tif (color.a > 0.0) {\n\n\t\t\t\tgl_FragColor = vec4 (color.rgb * color.a * openfl_Alphav, color.a * openfl_Alphav);\n\n\t\t\t} else {\n\n\t\t\t\tgl_FragColor = vec4 (0.0, 0.0, 0.0, 0.0);\n\n\t\t\t}\n\n\t\t} else {\n\n\t\t\tgl_FragColor = color * openfl_Alphav;\n\n\t\t}\n\n\t\t}"); null==this.__glVertexSource&&(this.__glVertexSource="attribute float openfl_Alpha;\n\t\tattribute vec4 openfl_ColorMultiplier;\n\t\tattribute vec4 openfl_ColorOffset;\n\t\tattribute vec4 openfl_Position;\n\t\tattribute vec2 openfl_TextureCoord;\n\n\t\tvarying float openfl_Alphav;\n\t\tvarying vec4 openfl_ColorMultiplierv;\n\t\tvarying vec4 openfl_ColorOffsetv;\n\t\tvarying vec2 openfl_TextureCoordv;\n\n\t\tuniform mat4 openfl_Matrix;\n\t\tuniform bool openfl_HasColorTransform;\n\t\tuniform vec2 openfl_TextureSize;\n\n\t\tvoid main(void) {\n\n\t\t\topenfl_Alphav = openfl_Alpha;\n\t\topenfl_TextureCoordv = openfl_TextureCoord;\n\n\t\tif (openfl_HasColorTransform) {\n\n\t\t\topenfl_ColorMultiplierv = openfl_ColorMultiplier;\n\t\t\topenfl_ColorOffsetv = openfl_ColorOffset / 255.0;\n\n\t\t}\n\n\t\tgl_Position = openfl_Matrix * openfl_Position;\n\n\t\t}"); Ye.call(this,a);this.__isGenerated=!0;this.__initGL()};k["openfl.display.GraphicsShader"]=No;No.__name__="openfl.display.GraphicsShader";No.__super__=Ye;No.prototype=r(Ye.prototype,{openfl_Alpha:null,openfl_ColorMultiplier:null,openfl_ColorOffset:null,openfl_Position:null,openfl_TextureCoord:null,openfl_Matrix:null,openfl_HasColorTransform:null,openfl_TextureSize:null,bitmap:null,__class__:No});var sr=function(a,b){this.shader=a;this.matrix=b;this.__graphicsDataType=8;this.__graphicsFillType=4};k["openfl.display.GraphicsShaderFill"]= sr;sr.__name__="openfl.display.GraphicsShaderFill";sr.__interfaces__=[ni,vg];sr.prototype={matrix:null,shader:null,__graphicsDataType:null,__graphicsFillType:null,__class__:sr};var wl=function(a,b){null==b&&(b=1);null==a&&(a=0);this.alpha=b;this.color=a;this.__graphicsDataType=1;this.__graphicsFillType=0};k["openfl.display.GraphicsSolidFill"]=wl;wl.__name__="openfl.display.GraphicsSolidFill";wl.__interfaces__=[ni,vg];wl.prototype={alpha:null,color:null,__graphicsDataType:null,__graphicsFillType:null, __class__:wl};var Aw=function(){};k["openfl.display.IGraphicsStroke"]=Aw;Aw.__name__="openfl.display.IGraphicsStroke";Aw.__isInterface__=!0;var To=function(a,b,d,f,e,g,h){null==g&&(g=3);null==e&&(e=2);null==f&&(f=0);null==d&&(d=2);null==b&&(b=!1);null==a&&(a=NaN);this.caps=f;this.fill=h;this.joints=e;this.miterLimit=g;this.pixelHinting=b;this.scaleMode=d;this.thickness=a;this.__graphicsDataType=0};k["openfl.display.GraphicsStroke"]=To;To.__name__="openfl.display.GraphicsStroke";To.__interfaces__= [Aw,vg];To.prototype={caps:null,fill:null,joints:null,miterLimit:null,pixelHinting:null,scaleMode:null,thickness:null,__graphicsDataType:null,__class__:To};var tr=function(a,b,d,f){null==f&&(f=1);this.vertices=a;this.indices=b;this.uvtData=d;this.culling=f;this.__graphicsDataType=7};k["openfl.display.GraphicsTrianglePath"]=tr;tr.__name__="openfl.display.GraphicsTrianglePath";tr.__interfaces__=[Uo,vg];tr.prototype={culling:null,indices:null,uvtData:null,vertices:null,__graphicsDataType:null,__class__:tr}; var uj=function(){};k["openfl.display.ITileContainer"]=uj;uj.__name__="openfl.display.ITileContainer";uj.__isInterface__=!0;uj.prototype={get_numTiles:null,addTile:null,addTileAt:null,addTiles:null,contains:null,getTileAt:null,getTileIndex:null,removeTile:null,removeTileAt:null,removeTiles:null,setTileIndex:null,sortTiles:null,swapTiles:null,swapTilesAt:null,__class__:uj,__properties__:{get_numTiles:"get_numTiles"}};var bk={};k["openfl.display._InterpolationMethod.InterpolationMethod_Impl_"]=bk;bk.__name__= "openfl.display._InterpolationMethod.InterpolationMethod_Impl_";bk.fromInt=function(a){return a};bk.fromString=function(a){switch(a){case "linearRGB":return 0;case "rgb":return 1;default:return null}};bk.toInt=function(a){return a};bk.toString=function(a){switch(a){case 0:return"linearRGB";case 1:return"rgb";default:return null}};var Lo=function(a){null==a&&(a=80);this.quality=a};k["openfl.display.JPEGEncoderOptions"]=Lo;Lo.__name__="openfl.display.JPEGEncoderOptions";Lo.prototype={quality:null,__class__:Lo}; var ii={};k["openfl.display._JointStyle.JointStyle_Impl_"]=ii;ii.__name__="openfl.display._JointStyle.JointStyle_Impl_";ii.fromInt=function(a){return a};ii.fromString=function(a){switch(a){case "bevel":return 0;case "miter":return 1;case "round":return 2;default:return null}};ii.toInt=function(a){return a};ii.toString=function(a){switch(a){case 0:return"bevel";case 1:return"miter";case 2:return"round";default:return null}};var oi={};k["openfl.display._LineScaleMode.LineScaleMode_Impl_"]=oi;oi.__name__= "openfl.display._LineScaleMode.LineScaleMode_Impl_";oi.fromInt=function(a){return a};oi.fromString=function(a){switch(a){case "horizontal":return 0;case "none":return 1;case "normal":return 2;case "vertical":return 3;default:return null}};oi.toInt=function(a){return a};oi.toString=function(a){switch(a){case 0:return"horizontal";case 1:return"none";case 2:return"normal";case 3:return"vertical";default:return null}};var Pk=function(){cb.call(this);this.contentLoaderInfo=Eg.create(this);this.uncaughtErrorEvents= this.contentLoaderInfo.uncaughtErrorEvents;this.__unloaded=!0};k["openfl.display.Loader"]=Pk;Pk.__name__="openfl.display.Loader";Pk.__super__=cb;Pk.prototype=r(cb.prototype,{content:null,contentLoaderInfo:null,uncaughtErrorEvents:null,__library:null,__path:null,__unloaded:null,addChild:function(a){throw new F(new cd("Error #2069: The Loader class does not implement this method.",2069));},addChildAt:function(a,b){throw new F(new cd("Error #2069: The Loader class does not implement this method.",2069)); },close:function(){Qc.notImplemented({fileName:"openfl/display/Loader.hx",lineNumber:226,className:"openfl.display.Loader",methodName:"close"})},load:function(a,b){this.unload();this.contentLoaderInfo.loaderURL=$a.get_current().get_loaderInfo().url;this.contentLoaderInfo.url=a.url;this.__unloaded=!1;if(null==a.contentType||""==a.contentType){b="";this.__path=a.url;var c=this.__path.indexOf("?");-1a||(null!=this.__timeline? this.__timeline.addFrameScript(a,b):(a+=1,null!=b?(null==this.__frameScripts&&(this.__frameScripts=new Xa),this.__frameScripts.h[a]=b):null!=this.__frameScripts&&this.__frameScripts.remove(a)))},gotoAndPlay:function(a,b){null!=this.__timeline?this.__timeline.gotoAndPlay(a,b):(this.play(),this.__goto(this.__resolveFrameReference(a)))},gotoAndStop:function(a,b){null!=this.__timeline?this.__timeline.gotoAndStop(a,b):(this.stop(),this.__goto(this.__resolveFrameReference(a)))},nextFrame:function(){null!= this.__timeline?this.__timeline.nextFrame():(this.stop(),this.__goto(this.__currentFrame+1))},play:function(){null!=this.__timeline?this.__timeline.play():null==this.__symbol||this.__playing||2>this.__totalFrames||(this.__playing=!0,this.__frameTime=1E3/this.__swf.frameRate|0,this.__timeElapsed=0)},prevFrame:function(){null!=this.__timeline?this.__timeline.prevFrame():(this.stop(),this.__goto(this.__currentFrame-1))},stop:function(){null!=this.__timeline?this.__timeline.stop():this.__playing=!1}, __enterFrame:function(a){null!=this.__timeline?this.__timeline.enterFrame(a):(this.__updateFrameScript(a),this.__updateSymbol(this.__currentFrame),ma.prototype.__enterFrame.call(this,a))},__updateFrameScript:function(a){if(null!=this.__symbol&&this.__playing){var b=this.__getNextFrame(a);if(this.__lastFrameScriptEval==b)ma.prototype.__enterFrame.call(this,a);else if(null!=this.__frameScripts){if(bm.depth&&b<=m.clipDepth){d.set_mask(m.displayObject); h=!0;break}0a&&(a=1);a>this.__totalFrames&&(a=Math.floor((a-1)%this.__totalFrames)+1);this.__timeElapsed%=this.__frameTime;return a},__goto:function(a){if(null!=this.__timeline||null!=this.__symbol)1>a?a=1:a>this.__totalFrames&&(a=this.__totalFrames),this.__currentFrame=a,this.__enterFrame(0)},__resolveFrameReference:function(a){if("number"==typeof a&&(a|0)=== a)return a;if("string"==typeof a){for(var b=0,d=this.__currentLabels;b.299*(a>>16&255)+.587*(a>>8&255)+.114*(a&255)&&(b=16777215);a=this.getHeight()/2-3.5;var d=this.getWidth()-60;this.outline=new ma;this.outline.get_graphics().beginFill(b,.07);this.outline.get_graphics().drawRect(0,0,d,7);this.outline.set_x(30);this.outline.set_y(a);this.outline.set_alpha(0); this.addChild(this.outline);this.progress=new ma;this.progress.get_graphics().beginFill(b,.35);this.progress.get_graphics().drawRect(0,0,d-4,3);this.progress.set_x(32);this.progress.set_y(a+2);this.progress.set_scaleX(0);this.progress.set_alpha(0);this.addChild(this.progress);this.startAnimation=$a.getTimer()+100;this.endAnimation=this.startAnimation+1E3;this.addEventListener("addedToStage",x(this,this.this_onAddedToStage))};k["openfl.display.DefaultPreloader"]=Xo;Xo.__name__="openfl.display.DefaultPreloader"; Xo.__super__=ma;Xo.prototype=r(ma.prototype,{endAnimation:null,outline:null,progress:null,startAnimation:null,getBackgroundColor:function(){var a=$a.get_current().stage.window.context.attributes;return Object.prototype.hasOwnProperty.call(a,"background")&&null!=a.background?a.background:0},getHeight:function(){var a=$a.get_current().stage.window.__height;return 0a&&(a=0);1=this.__length)switch(this.type){case 0:a.uniform1i(this.index,c[0]?1:0);break;case 1:a.uniform2i(this.index, c[0]?1:0,c[1]?1:0);break;case 2:a.uniform3i(this.index,c[0]?1:0,c[1]?1:0,c[2]?1:0);break;case 3:a.uniform4i(this.index,c[0]?1:0,c[1]?1:0,c[2]?1:0,c[3]?1:0);break;case 4:a.uniform1f(this.index,f[0]);break;case 5:a.uniform2f(this.index,f[0],f[1]);break;case 6:a.uniform3f(this.index,f[0],f[1],f[2]);break;case 7:a.uniform4f(this.index,f[0],f[1],f[2],f[3]);break;case 8:a.uniform1i(this.index,e[0]);break;case 9:a.uniform2i(this.index,e[0],e[1]);break;case 10:a.uniform3i(this.index,e[0],e[1],e[2]);break; case 11:a.uniform4i(this.index,e[0],e[1],e[2],e[3]);break;case 12:this.__uniformMatrix[0]=f[0];this.__uniformMatrix[1]=f[1];this.__uniformMatrix[2]=f[2];this.__uniformMatrix[3]=f[3];wb.uniformMatrix2fv(a,this.index,!1,this.__uniformMatrix);break;case 16:this.__uniformMatrix[0]=f[0];this.__uniformMatrix[1]=f[1];this.__uniformMatrix[2]=f[2];this.__uniformMatrix[3]=f[3];this.__uniformMatrix[4]=f[4];this.__uniformMatrix[5]=f[5];this.__uniformMatrix[6]=f[6];this.__uniformMatrix[7]=f[7];this.__uniformMatrix[8]= f[8];wb.uniformMatrix3fv(a,this.index,!1,this.__uniformMatrix);break;case 20:this.__uniformMatrix[0]=f[0],this.__uniformMatrix[1]=f[1],this.__uniformMatrix[2]=f[2],this.__uniformMatrix[3]=f[3],this.__uniformMatrix[4]=f[4],this.__uniformMatrix[5]=f[5],this.__uniformMatrix[6]=f[6],this.__uniformMatrix[7]=f[7],this.__uniformMatrix[8]=f[8],this.__uniformMatrix[9]=f[9],this.__uniformMatrix[10]=f[10],this.__uniformMatrix[11]=f[11],this.__uniformMatrix[12]=f[12],this.__uniformMatrix[13]=f[13],this.__uniformMatrix[14]= f[14],this.__uniformMatrix[15]=f[15],wb.uniformMatrix4fv(a,this.index,!1,this.__uniformMatrix)}else switch(this.type){case 1:case 9:a.uniform2i(this.index,0,0);break;case 3:case 11:a.uniform4i(this.index,0,0,0,0);break;case 4:a.uniform1f(this.index,0);break;case 5:a.uniform2f(this.index,0,0);break;case 6:a.uniform3f(this.index,0,0,0);break;case 7:a.uniform4f(this.index,0,0,0,0);break;case 0:case 8:a.uniform1i(this.index,0);break;case 2:case 10:a.uniform3i(this.index,0,0,0);break;case 12:this.__uniformMatrix[0]= 0;this.__uniformMatrix[1]=0;this.__uniformMatrix[2]=0;this.__uniformMatrix[3]=0;wb.uniformMatrix2fv(a,this.index,!1,this.__uniformMatrix);break;case 16:this.__uniformMatrix[0]=0;this.__uniformMatrix[1]=0;this.__uniformMatrix[2]=0;this.__uniformMatrix[3]=0;this.__uniformMatrix[4]=0;this.__uniformMatrix[5]=0;this.__uniformMatrix[6]=0;this.__uniformMatrix[7]=0;this.__uniformMatrix[8]=0;wb.uniformMatrix3fv(a,this.index,!1,this.__uniformMatrix);break;case 20:this.__uniformMatrix[0]=0,this.__uniformMatrix[1]= 0,this.__uniformMatrix[2]=0,this.__uniformMatrix[3]=0,this.__uniformMatrix[4]=0,this.__uniformMatrix[5]=0,this.__uniformMatrix[6]=0,this.__uniformMatrix[7]=0,this.__uniformMatrix[8]=0,this.__uniformMatrix[9]=0,this.__uniformMatrix[10]=0,this.__uniformMatrix[11]=0,this.__uniformMatrix[12]=0,this.__uniformMatrix[13]=0,this.__uniformMatrix[14]=0,this.__uniformMatrix[15]=0,wb.uniformMatrix4fv(a,this.index,!1,this.__uniformMatrix)}else if(this.__useArray||null!=b&&b.length!=this.__length)for(b=0,c=this.__arrayLength;b< c;)f=b++,a.enableVertexAttribArray(this.index+f);else{for(var g=0,h=this.__arrayLength;g= this.__length)switch(this.type){case 1:case 9:a.uniform2i(this.index,b[d]|0,b[d+1]|0);break;case 3:case 11:a.uniform4i(this.index,b[d]|0,b[d+1]|0,b[d+2]|0,b[d+3]|0);break;case 4:a.uniform1f(this.index,b[d]);break;case 5:a.uniform2f(this.index,b[d],b[d+1]);break;case 6:a.uniform3f(this.index,b[d],b[d+1],b[d+2]);break;case 7:a.uniform4f(this.index,b[d],b[d+1],b[d+2],b[d+3]);break;case 0:case 8:a.uniform1i(this.index,b[d]|0);break;case 2:case 10:a.uniform3i(this.index,b[d]|0,b[d+1]|0,b[d+2]|0);break; case 12:this.__uniformMatrix[0]=b[d];this.__uniformMatrix[1]=b[d+1];this.__uniformMatrix[2]=b[d+2];this.__uniformMatrix[3]=b[d+3];wb.uniformMatrix2fv(a,this.index,!1,this.__uniformMatrix);break;case 16:this.__uniformMatrix[0]=b[d];this.__uniformMatrix[1]=b[d+1];this.__uniformMatrix[2]=b[d+2];this.__uniformMatrix[3]=b[d+3];this.__uniformMatrix[4]=b[d+4];this.__uniformMatrix[5]=b[d+5];this.__uniformMatrix[6]=b[d+6];this.__uniformMatrix[7]=b[d+7];this.__uniformMatrix[8]=b[d+8];wb.uniformMatrix3fv(a, this.index,!1,this.__uniformMatrix);break;case 20:this.__uniformMatrix[0]=b[d],this.__uniformMatrix[1]=b[d+1],this.__uniformMatrix[2]=b[d+2],this.__uniformMatrix[3]=b[d+3],this.__uniformMatrix[4]=b[d+4],this.__uniformMatrix[5]=b[d+5],this.__uniformMatrix[6]=b[d+6],this.__uniformMatrix[7]=b[d+7],this.__uniformMatrix[8]=b[d+8],this.__uniformMatrix[9]=b[d+9],this.__uniformMatrix[10]=b[d+10],this.__uniformMatrix[11]=b[d+11],this.__uniformMatrix[12]=b[d+12],this.__uniformMatrix[13]=b[d+13],this.__uniformMatrix[14]= b[d+14],this.__uniformMatrix[15]=b[d+15],wb.uniformMatrix4fv(a,this.index,!1,this.__uniformMatrix)}}else if(this.__internal||0!=f&&f!=this.__length){b=a.FLOAT;this.__isBool?b=a.INT:this.__isInt&&(b=a.INT);for(var c=0,h=this.__arrayLength;cthis.__dragBounds.get_right()&&(b=this.__dragBounds.get_right()),athis.__dragBounds.get_bottom()&&(a=this.__dragBounds.get_bottom()));this.__dragObject.set_x(b);this.__dragObject.set_y(a)},__getInteractive:function(a){null!=a&&a.push(this);return!0},__globalToLocal:function(a,b){a!=b&&b.copyFrom(a); return b},__handleError:function(a){var b=new pi("uncaughtError",!0,!0,a);try{$a.get_current().__loaderInfo.uncaughtErrorEvents.dispatchEvent(b)}catch(e){ha.lastException=e}if(!b.__preventDefault){try{var d=ha.lastException;if(null!=d&&Object.prototype.hasOwnProperty.call(d,"stack")&&null!=d.stack&&""!=d.stack)console.log(d.stack),a.stack=d.stack;else{var f=ha.toString(ha.callStack());console.log(f)}}catch(e){ha.lastException=e}throw a;}},__onKey:function(a,b,d){this.__dispatchPendingMouseEvent(); Xb.__altKey=Bb.get_altKey(d);Xb.__commandKey=Bb.get_metaKey(d);Xb.__ctrlKey=Bb.get_ctrlKey(d);Xb.__shiftKey=Bb.get_shiftKey(d);var c=[];null==this.__focus?this.__getInteractive(c):this.__focus.__getInteractive(c);if(0e?0:e+b):e=this.__currentTabOrderIndex}else 1==c.length&&(a=c[0],this.get_focus()==a&&(a=null));1==c.length||0==c.length&&null!=this.get_focus()?e=0:1e&&(e+=c.length),e%=c.length,a=c[e],a==this.get_focus()&&(e+=b,0>e&&(e+=c.length),e%=c.length, a=c[e]));b=null;null!=this.get_focus()&&(b=new Jf("keyFocusChange",!0,!0,a,Bb.get_shiftKey(d),0),c=[],this.get_focus().__getInteractive(c),c.reverse(),this.__dispatchStack(b,c));null!=b&&b.isDefaultPrevented()||(this.__currentTabOrderIndex=e,null!=a&&this.set_focus(a))}}},__onLimeCreateWindow:function(a){if(this.window==a){var b=x(this,this.__onLimeWindowActivate);a.onActivate.add(function(){b(a)});var d=x(this,this.__onLimeWindowClose);a.onClose.add(function(){d(a)},!1,-9E3);var f=x(this,this.__onLimeWindowDeactivate); a.onDeactivate.add(function(){f(a)});var e=x(this,this.__onLimeWindowDropFile);a.onDropFile.add(function(b){e(a,b)});var g=x(this,this.__onLimeWindowEnter);a.onEnter.add(function(){g(a)});var h=x(this,this.__onLimeWindowExpose);a.onExpose.add(function(){h(a)});var l=x(this,this.__onLimeWindowFocusIn);a.onFocusIn.add(function(){l(a)});var m=x(this,this.__onLimeWindowFocusOut);a.onFocusOut.add(function(){m(a)});var p=x(this,this.__onLimeWindowFullscreen);a.onFullscreen.add(function(){p(a)});var k=x(this, this.__onLimeKeyDown);a.onKeyDown.add(function(b,c){k(a,b,c)});var n=x(this,this.__onLimeKeyUp);a.onKeyUp.add(function(b,c){n(a,b,c)});var q=x(this,this.__onLimeWindowLeave);a.onLeave.add(function(){q(a)});var u=x(this,this.__onLimeWindowMinimize);a.onMinimize.add(function(){u(a)});var v=x(this,this.__onLimeMouseDown);a.onMouseDown.add(function(b,c,d){v(a,b,c,d)});var w=x(this,this.__onLimeMouseMove);a.onMouseMove.add(function(b,c){w(a,b,c)});var r=x(this,this.__onLimeMouseMoveRelative);a.onMouseMoveRelative.add(function(b, c){r(a,b,c)});var y=x(this,this.__onLimeMouseUp);a.onMouseUp.add(function(b,c,d){y(a,b,c,d)});var I=x(this,this.__onLimeMouseWheel);a.onMouseWheel.add(function(b,c,d){I(a,b,c,d)});var B=x(this,this.__onLimeWindowMove);a.onMove.add(function(b,c){B(a,b,c)});a.onRender.add(x(this,this.__onLimeRender));a.onRenderContextLost.add(x(this,this.__onLimeRenderContextLost));a.onRenderContextRestored.add(x(this,this.__onLimeRenderContextRestored));var P=x(this,this.__onLimeWindowResize);a.onResize.add(function(b, c){P(a,b,c)});var D=x(this,this.__onLimeWindowRestore);a.onRestore.add(function(){D(a)});var C=x(this,this.__onLimeTextEdit);a.onTextEdit.add(function(b,c,d){C(a,b,c,d)});var A=x(this,this.__onLimeTextInput);a.onTextInput.add(function(b){A(a,b)});this.__onLimeWindowCreate(a)}},__onLimeGamepadAxisMove:function(a,b,d){try{ec.__onGamepadAxisMove(a,b,d)}catch(f){ha.lastException=f,this.__handleError(f instanceof F?f.val:f)}},__onLimeGamepadButtonDown:function(a,b){try{ec.__onGamepadButtonDown(a,b)}catch(d){ha.lastException= d,this.__handleError(d instanceof F?d.val:d)}},__onLimeGamepadButtonUp:function(a,b){try{ec.__onGamepadButtonUp(a,b)}catch(d){ha.lastException=d,this.__handleError(d instanceof F?d.val:d)}},__onLimeGamepadConnect:function(a){try{ec.__onGamepadConnect(a)}catch(g){ha.lastException=g,this.__handleError(g instanceof F?g.val:g)}var b=x(this,this.__onLimeGamepadAxisMove);a.onAxisMove.add(function(c,d){b(a,c,d)});var d=x(this,this.__onLimeGamepadButtonDown);a.onButtonDown.add(function(b){d(a,b)});var f= x(this,this.__onLimeGamepadButtonUp);a.onButtonUp.add(function(b){f(a,b)});var e=x(this,this.__onLimeGamepadDisconnect);a.onDisconnect.add(function(){e(a)})},__onLimeGamepadDisconnect:function(a){try{ec.__onGamepadDisconnect(a)}catch(c){ha.lastException=c,this.__handleError(c instanceof F?c.val:c)}},__onLimeKeyDown:function(a,b,d){null!=this.window&&this.window==a&&this.__onKey("keyDown",b,d)},__onLimeKeyUp:function(a,b,d){null!=this.window&&this.window==a&&this.__onKey("keyUp",b,d)},__onLimeModuleExit:function(a){null!= this.window&&(a=new ca("deactivate"),this.__broadcastEvent(a))},__onLimeMouseDown:function(a,b,d,f){if(null!=this.window&&this.window==a){this.__dispatchPendingMouseEvent();switch(f){case 1:var c="middleMouseDown";break;case 2:c="rightMouseDown";break;default:c="mouseDown"}this.__onMouse(c,b*a.__scale|0,d*a.__scale|0,f);this.showDefaultContextMenu||2!=f||a.onMouseDown.cancel()}},__onLimeMouseMove:function(a,b,d){null!=this.window&&this.window==a&&(this.__pendingMouseEvent=!0,this.__pendingMouseX= b*a.__scale|0,this.__pendingMouseY=d*a.__scale|0)},__onLimeMouseMoveRelative:function(a,b,d){},__onLimeMouseUp:function(a,b,d,f){if(null!=this.window&&this.window==a){this.__dispatchPendingMouseEvent();switch(f){case 1:var c="middleMouseUp";break;case 2:c="rightMouseUp";break;default:c="mouseUp"}this.__onMouse(c,b*a.__scale|0,d*a.__scale|0,f);this.showDefaultContextMenu||2!=f||a.onMouseUp.cancel()}},__onLimeMouseWheel:function(a,b,d,f){null!=this.window&&this.window==a&&(this.__dispatchPendingMouseEvent(), f==yq.PIXELS?this.__onMouseWheel(b*a.__scale|0,d*a.__scale|0,f):this.__onMouseWheel(b|0,d|0,f))},__onLimeRender:function(a){if(!this.__rendering){this.__rendering=!0;this.__broadcastEvent(new ca("enterFrame"));this.__broadcastEvent(new ca("frameConstructed"));this.__broadcastEvent(new ca("exitFrame"));this.__renderable=!0;this.__enterFrame(this.__deltaTime);this.__deltaTime=0;a=null!=this.__renderer&&(this.__renderDirty||this.__forceRender);if(this.__invalidated&&a){this.__invalidated=!1;var b=new ca("render"); this.__broadcastEvent(b)}this.__update(!1,!0);if(null!=this.__renderer){if(null!=this.context3D){for(b=this.stage3Ds.iterator();b.hasNext();){var d=b.next();this.context3D.__renderStage3D(d)}this.context3D.__present&&(a=!0)}a?(null==this.context3D&&this.__renderer.__clear(),this.__renderer.__render(this)):null==this.context3D&&this.window.onRender.cancel();null!=this.context3D&&(this.context3D.__present?(this.__renderer.__cleared||this.__renderer.__clear(),this.context3D.__present=!1,this.context3D.__cleared= !1):this.window.onRender.cancel(),this.context3D.__bitmapDataPool.cleanup());this.__renderer.__cleared=!1;ra.__pool.cleanup()}this.__rendering=!1}},__onLimeRenderContextLost:function(){this.context3D=this.__renderer=null;for(var a=this.stage3Ds.iterator();a.hasNext();)a.next().__lostContext()},__onLimeRenderContextRestored:function(a){this.__createRenderer();for(a=this.stage3Ds.iterator();a.hasNext();)a.next().__restoreContext()},__onLimeTextEdit:function(a,b,d,f){},__onLimeTextInput:function(a,b){if(null!= this.window&&this.window==a){var c=[];null==this.__focus?this.__getInteractive(c):this.__focus.__getInteractive(c);b=new Af("textInput",!0,!0,b);0a-this.__lastClickTime?(l=Xb.__create("doubleClick", f,this.__mouseX,this.__mouseY,g.__globalToLocal(c,b),g),this.__dispatchStack(l,d),this.__lastClickTime=0):this.__lastClickTime=a));if("auto"==Fe.__cursor&&!Fe.__hidden){h=null;if(null!=this.__mouseDownLeft)h=this.__mouseDownLeft.__getCursor();else for(a=0;a>>16)/255,this.__colorSplit[1]=((a&65280)>>>8)/255,this.__colorSplit[2]=(a&255)/255,this.__colorString="#"+aa.hex(a&16777215,6),this.__renderDirty=!0,this.__color=-16777216|a& 16777215);return a},get_contentsScaleFactor:function(){return this.__contentsScaleFactor},get_displayState:function(){return this.__displayState},set_displayState:function(a){null!=this.window&&(2==a?this.window.__fullscreen&&this.window.set_fullscreen(!1):this.window.__fullscreen||this.window.set_fullscreen(!0));return this.__displayState=a},get_focus:function(){return this.__focus},set_focus:function(a){if(a!=this.__focus){var b=this.__focus;this.__cacheFocus=this.__focus=a;if(null!=b){var d=new Jf("focusOut", !0,!1,a,!1,0),f=[];b.__getInteractive(f);f.reverse();this.__dispatchStack(d,f)}null!=a&&(b=new Jf("focusIn",!0,!1,b,!1,0),d=[],a.__getInteractive(d),d.reverse(),this.__dispatchStack(b,d))}return a},get_frameRate:function(){return null!=this.window?this.window.__backend.getFrameRate():0},set_frameRate:function(a){return null!=this.window?this.window.__backend.setFrameRate(a):a},get_fullScreenHeight:function(){return Math.ceil(this.window.get_display().currentMode.height*this.window.__scale)},get_fullScreenSourceRect:function(){return null== this.__fullScreenSourceRect?null:this.__fullScreenSourceRect.clone()},set_fullScreenSourceRect:function(a){null==a?null!=this.__fullScreenSourceRect&&(this.__fullScreenSourceRect=null,this.__resize()):a.equals(this.__fullScreenSourceRect)||(this.__fullScreenSourceRect=a.clone(),this.__resize());return a},get_fullScreenWidth:function(){return Math.ceil(this.window.get_display().currentMode.width*this.window.__scale)},set_height:function(a){return this.get_height()},get_mouseX:function(){return this.__mouseX}, get_mouseY:function(){return this.__mouseY},get_quality:function(){return this.__quality},set_quality:function(a){this.__quality=a;if(null!=this.__renderer){var b=this.get_quality();this.__renderer.__allowSmoothing=2!=b}return a},set_rotation:function(a){return 0},get_scaleMode:function(){return this.__scaleMode},set_scaleMode:function(a){return this.__scaleMode=a},set_scaleX:function(a){return 0},set_scaleY:function(a){return 0},get_tabEnabled:function(){return!1},set_tabEnabled:function(a){throw new F(new wd("Error: The Stage class does not implement this property or method.")); },get_tabIndex:function(){return-1},set_tabIndex:function(a){throw new F(new wd("Error: The Stage class does not implement this property or method."));},set_transform:function(a){return this.get_transform()},set_width:function(a){return this.get_width()},set_x:function(a){return 0},set_y:function(a){return 0},__class__:dk,__properties__:r(cb.prototype.__properties__,{set_scaleMode:"set_scaleMode",get_scaleMode:"get_scaleMode",set_quality:"set_quality",get_quality:"get_quality",get_fullScreenWidth:"get_fullScreenWidth", set_fullScreenSourceRect:"set_fullScreenSourceRect",get_fullScreenSourceRect:"get_fullScreenSourceRect",get_fullScreenHeight:"get_fullScreenHeight",set_frameRate:"set_frameRate",get_frameRate:"get_frameRate",set_focus:"set_focus",get_focus:"get_focus",set_displayState:"set_displayState",get_displayState:"get_displayState",get_contentsScaleFactor:"get_contentsScaleFactor",set_color:"set_color",get_color:"get_color"})});var bj=function(a){E.call(this);this.__stage=a;this.__height=0;this.__projectionTransform= new pe;this.__renderTransform=new pe;this.__y=this.__x=this.__width=0;this.visible=!0;0a&&(a=0);b>this.__tiles.length-1&&(b=this.__tiles.length-1);a=this.__tiles.splice(a,b-a+1);for(b=0;b>>2)-e);var c=(a=1==a)?this.__vertexConstants:this.__fragmentConstants,h=za.toBytes(f),l=0;f=za.get_length(f);null==l&&(l=0);f=null==l?new Float32Array(h.b.bufferValue):null==f?new Float32Array(h.b.bufferValue,l):new Float32Array(h.b.bufferValue,l,f);h=4*b;e=Ea.toFloat(e)/Ea.toFloat(4)|0;l=0;for(var m=4*d;l>2);for(var c=(a=1==a)?this.__vertexConstants:this.__fragmentConstants,g=0,h=4*b,l=0,m=f;l\nmov oc, ft1");this.__renderStage3DProgram=this.createProgram();this.__renderStage3DProgram.upload(d.agalcode,f.agalcode)}this.setProgram(this.__renderStage3DProgram); this.setBlendFactors(2,9);this.setColorMask(!0,!0,!0,!0);this.setCulling(3);this.setDepthTest(!1,0);this.setStencilActions();this.setStencilReferenceValue(0,0,0);this.setScissorRectangle(null);this.setTextureAt(0,b.__frontBufferTexture);this.setVertexBufferAt(0,a.__vertexBuffer,0,3);this.setVertexBufferAt(1,a.__vertexBuffer,3,2);this.setProgramConstantsFromMatrix(1,0,a.__renderTransform,!0);this.drawTriangles(a.__indexBuffer);this.__present=!0}},__setGLBlend:function(a){this.__contextState.__enableGLBlend!= a&&(a?this.gl.enable(this.gl.BLEND):this.gl.disable(this.gl.BLEND),this.__contextState.__enableGLBlend=a)},__setGLBlendEquation:function(a){this.__contextState.__glBlendEquation!=a&&(this.gl.blendEquation(a),this.__contextState.__glBlendEquation=a)},__setGLCullFace:function(a){this.__contextState.__enableGLCullFace!=a&&(a?this.gl.enable(this.gl.CULL_FACE):this.gl.disable(this.gl.CULL_FACE),this.__contextState.__enableGLCullFace=a)},__setGLDepthTest:function(a){this.__contextState.__enableGLDepthTest!= a&&(a?this.gl.enable(this.gl.DEPTH_TEST):this.gl.disable(this.gl.DEPTH_TEST),this.__contextState.__enableGLDepthTest=a)},__setGLFrontFace:function(a){this.__contextState.__frontFaceGLCCW!=a&&(this.gl.frontFace(a?this.gl.CCW:this.gl.CW),this.__contextState.__frontFaceGLCCW=a)},__setGLScissorTest:function(a){this.__contextState.__enableGLScissorTest!=a&&(a?this.gl.enable(this.gl.SCISSOR_TEST):this.gl.disable(this.gl.SCISSOR_TEST),this.__contextState.__enableGLScissorTest=a)},__setGLStencilTest:function(a){this.__contextState.__enableGLStencilTest!= a&&(a?this.gl.enable(this.gl.STENCIL_TEST):this.gl.disable(this.gl.STENCIL_TEST),this.__contextState.__enableGLStencilTest=a)},get_enableErrorChecking:function(){return this.__enableErrorChecking},set_enableErrorChecking:function(a){return this.__enableErrorChecking=a},__class__:Bc,__properties__:{set_enableErrorChecking:"set_enableErrorChecking",get_enableErrorChecking:"get_enableErrorChecking"}});var xg={};k["openfl.display3D._Context3DBlendFactor.Context3DBlendFactor_Impl_"]=xg;xg.__name__="openfl.display3D._Context3DBlendFactor.Context3DBlendFactor_Impl_"; xg.fromString=function(a){switch(a){case "destinationAlpha":return 0;case "destinationColor":return 1;case "one":return 2;case "oneMinusDestinationAlpha":return 3;case "oneMinusDestinationColor":return 4;case "oneMinusSourceAlpha":return 5;case "oneMinusSourceColor":return 6;case "sourceAlpha":return 7;case "sourceColor":return 8;case "zero":return 9;default:return null}};xg.toString=function(a){switch(a){case 0:return"destinationAlpha";case 1:return"destinationColor";case 2:return"one";case 3:return"oneMinusDestinationAlpha"; case 4:return"oneMinusDestinationColor";case 5:return"oneMinusSourceAlpha";case 6:return"oneMinusSourceColor";case 7:return"sourceAlpha";case 8:return"sourceColor";case 9:return"zero";default:return null}};var ik={};k["openfl.display3D._Context3DBufferUsage.Context3DBufferUsage_Impl_"]=ik;ik.__name__="openfl.display3D._Context3DBufferUsage.Context3DBufferUsage_Impl_";ik.fromString=function(a){switch(a){case "dynamicDraw":return 0;case "staticDraw":return 1;default:return null}};ik.toString=function(a){switch(a){case 0:return"dynamicDraw"; case 1:return"staticDraw";default:return null}};var ih={};k["openfl.display3D._Context3DCompareMode.Context3DCompareMode_Impl_"]=ih;ih.__name__="openfl.display3D._Context3DCompareMode.Context3DCompareMode_Impl_";ih.fromString=function(a){switch(a){case "always":return 0;case "equal":return 1;case "greater":return 2;case "greaterEqual":return 3;case "less":return 4;case "lessEqual":return 5;case "never":return 6;case "notEqual":return 7;default:return null}};ih.toString=function(a){switch(a){case 0:return"always"; case 1:return"equal";case 2:return"greater";case 3:return"greaterEqual";case 4:return"less";case 5:return"lessEqual";case 6:return"never";case 7:return"notEqual";default:return null}};var Bl={};k["openfl.display3D._Context3DMipFilter.Context3DMipFilter_Impl_"]=Bl;Bl.__name__="openfl.display3D._Context3DMipFilter.Context3DMipFilter_Impl_";Bl.fromString=function(a){switch(a){case "miplinear":return 0;case "mipnearest":return 1;case "mipnone":return 2;default:return null}};Bl.toString=function(a){switch(a){case 0:return"miplinear"; case 1:return"mipnearest";case 2:return"mipnone";default:return null}};var qi={};k["openfl.display3D._Context3DProfile.Context3DProfile_Impl_"]=qi;qi.__name__="openfl.display3D._Context3DProfile.Context3DProfile_Impl_";qi.fromString=function(a){switch(a){case "baseline":return 0;case "baselineConstrained":return 1;case "baselineExtended":return 2;case "standard":return 3;case "standardConstrained":return 4;case "standardExtended":return 5;default:return null}};qi.toString=function(a){switch(a){case 0:return"baseline"; case 1:return"baselineConstrained";case 2:return"baselineExtended";case 3:return"standard";case 4:return"standardConstrained";case 5:return"standardExtended";default:return null}};var ap={};k["openfl.display3D._Context3DProgramFormat.Context3DProgramFormat_Impl_"]=ap;ap.__name__="openfl.display3D._Context3DProgramFormat.Context3DProgramFormat_Impl_";ap.fromString=function(a){switch(a){case "agal":return 0;case "glsl":return 1;default:return null}};ap.toString=function(a){switch(a){case 0:return"agal"; case 1:return"glsl";default:return null}};var jk={};k["openfl.display3D._Context3DProgramType.Context3DProgramType_Impl_"]=jk;jk.__name__="openfl.display3D._Context3DProgramType.Context3DProgramType_Impl_";jk.fromString=function(a){switch(a){case "fragment":return 0;case "vertex":return 1;default:return null}};jk.toString=function(a){switch(a){case 0:return"fragment";case 1:return"vertex";default:return null}};var bp={};k["openfl.display3D._Context3DRenderMode.Context3DRenderMode_Impl_"]=bp;bp.__name__= "openfl.display3D._Context3DRenderMode.Context3DRenderMode_Impl_";bp.fromString=function(a){switch(a){case "auto":return 0;case "software":return 1;default:return null}};bp.toString=function(a){switch(a){case 0:return"auto";case 1:return"software";default:return null}};var jh={};k["openfl.display3D._Context3DStencilAction.Context3DStencilAction_Impl_"]=jh;jh.__name__="openfl.display3D._Context3DStencilAction.Context3DStencilAction_Impl_";jh.fromString=function(a){switch(a){case "decrementSaturate":return 0; case "decrementWrap":return 1;case "incrementSaturate":return 2;case "incrementWrap":return 3;case "invert":return 4;case "keep":return 5;case "set":return 6;case "zero":return 7;default:return null}};jh.toString=function(a){switch(a){case 0:return"decrementSaturate";case 1:return"decrementWrap";case 2:return"incrementSaturate";case 3:return"incrementWrap";case 4:return"invert";case 5:return"keep";case 6:return"set";case 7:return"zero";default:return null}};var ri={};k["openfl.display3D._Context3DTextureFilter.Context3DTextureFilter_Impl_"]= ri;ri.__name__="openfl.display3D._Context3DTextureFilter.Context3DTextureFilter_Impl_";ri.fromString=function(a){switch(a){case "anisotropic16x":return 0;case "anisotropic2x":return 1;case "anisotropic4x":return 2;case "anisotropic8x":return 3;case "linear":return 4;case "nearest":return 5;default:return null}};ri.toString=function(a){switch(a){case 0:return"anisotropic16x";case 1:return"anisotropic2x";case 2:return"anisotropic4x";case 3:return"anisotropic8x";case 4:return"linear";case 5:return"nearest"; default:return null}};var Gh={};k["openfl.display3D._Context3DTextureFormat.Context3DTextureFormat_Impl_"]=Gh;Gh.__name__="openfl.display3D._Context3DTextureFormat.Context3DTextureFormat_Impl_";Gh.fromString=function(a){switch(a){case "bgrPacked565":return 0;case "bgra":return 1;case "bgraPacked4444":return 2;case "compressed":return 3;case "compressedAlpha":return 4;case "rgbaHalfFloat":return 5;default:return null}};Gh.toString=function(a){switch(a){case 0:return"bgrPacked565";case 1:return"bgra"; case 2:return"bgraPacked4444";case 3:return"compressed";case 4:return"compressedAlpha";case 5:return"rgbaHalfFloat";default:return null}};var kk={};k["openfl.display3D._Context3DTriangleFace.Context3DTriangleFace_Impl_"]=kk;kk.__name__="openfl.display3D._Context3DTriangleFace.Context3DTriangleFace_Impl_";kk.fromString=function(a){switch(a){case "back":return 0;case "front":return 1;case "frontAndBack":return 2;case "none":return 3;default:return null}};kk.toString=function(a){switch(a){case 0:return"back"; case 1:return"front";case 2:return"frontAndBack";case 3:return"none";default:return null}};var dj={};k["openfl.display3D._Context3DVertexBufferFormat.Context3DVertexBufferFormat_Impl_"]=dj;dj.__name__="openfl.display3D._Context3DVertexBufferFormat.Context3DVertexBufferFormat_Impl_";dj.fromString=function(a){switch(a){case "bytes4":return 0;case "float1":return 1;case "float2":return 2;case "float3":return 3;case "float4":return 4;default:return null}};dj.toString=function(a){switch(a){case 0:return"bytes4"; case 1:return"float1";case 2:return"float2";case 3:return"float3";case 4:return"float4";default:return null}};var lk={};k["openfl.display3D._Context3DWrapMode.Context3DWrapMode_Impl_"]=lk;lk.__name__="openfl.display3D._Context3DWrapMode.Context3DWrapMode_Impl_";lk.fromString=function(a){switch(a){case "clamp":return 0;case "clamp_u_repeat_v":return 1;case "repeat":return 2;case "repeat_u_clamp_v":return 3;default:return null}};lk.toString=function(a){switch(a){case 0:return"clamp";case 1:return"clamp_u_repeat_v"; case 2:return"repeat";case 3:return"repeat_u_clamp_v";default:return null}};var wr=function(a,b,d){this.__context=a;this.__numIndices=b;a=this.__context.gl;this.__id=a.createBuffer();this.__usage=0==d?a.DYNAMIC_DRAW:a.STATIC_DRAW};k["openfl.display3D.IndexBuffer3D"]=wr;wr.__name__="openfl.display3D.IndexBuffer3D";wr.prototype={__context:null,__id:null,__memoryUsage:null,__numIndices:null,__tempUInt16Array:null,__usage:null,dispose:function(){this.__context.gl.deleteBuffer(this.__id)},uploadFromByteArray:function(a, b,d,f){b+=2*d;a=za.toArrayBuffer(a);null==b&&(b=0);f=null!=a?null==f?new Uint16Array(a,b):new Uint16Array(a,b,f):null;this.uploadFromTypedArray(f)},uploadFromTypedArray:function(a,b){null!=a&&(b=this.__context.gl,this.__context.__bindGLElementArrayBuffer(this.__id),wb.bufferData(b,b.ELEMENT_ARRAY_BUFFER,a,this.__usage))},uploadFromVector:function(a,b,d){if(null!=a){var c=b+d,e=this.__tempUInt16Array;if(null==this.__tempUInt16Array||this.__tempUInt16Array.lengthb;){f=b++;var e="va"+f;-1!=a.indexOf(" "+e)&&c.bindAttribLocation(this.__glProgram,f,e)}else for(a=0,b=this.__glslAttribNames;aa&&(a=f.regIndex+f.regCount)}this.__registerLookup=Ja.toObjectVector(null,a);a=0;for(b=this.__uniforms;athis.__registerLookup.get_length()&&(b=this.__registerLookup.get_length());a>d&&(a=this.__getImage(a),null!=a))if(0==d&&null!=a.buffer&&null==a.buffer.data&&null!=a.buffer.get_src()){if(f=this.__context.gl,0!=this.__size>>d){var c=this.__sideToTarget(b);this.__context.__bindGLTextureCubeMap(this.__textureID);wb.texImage2D(f,c,d,this.__internalFormat,this.__format,f.UNSIGNED_BYTE,a.buffer.get_src()); this.__context.__bindGLTextureCubeMap(null);this.__uploadedSides|=1<>d;if(0!=e){var g=this.__sideToTarget(b);this.__context.__bindGLTextureCubeMap(this.__textureID); wb.texImage2D(c,g,d,this.__internalFormat,e,e,0,this.__format,c.UNSIGNED_BYTE,a);this.__context.__bindGLTextureCubeMap(null);this.__uploadedSides|=1<Bc.__glMaxTextureMaxAnisotropy&&(a=Bc.__glMaxTextureMaxAnisotropy);b.texParameterf(b.TEXTURE_CUBE_MAP,Bc.__glTextureMaxAnisotropy,a)}return!0}return!1},__sideToTarget:function(a){var b=this.__context.gl;switch(a){case 0:return b.TEXTURE_CUBE_MAP_POSITIVE_X; case 1:return b.TEXTURE_CUBE_MAP_NEGATIVE_X;case 2:return b.TEXTURE_CUBE_MAP_POSITIVE_Y;case 3:return b.TEXTURE_CUBE_MAP_NEGATIVE_Y;case 4:return b.TEXTURE_CUBE_MAP_POSITIVE_Z;case 5:return b.TEXTURE_CUBE_MAP_NEGATIVE_Z;default:throw new F(new wd);}},__uploadCompressedTextureFromByteArray:function(a,b){var c=this;a=new ol(a,b);var f=a.readHeader(this.__size,this.__size,!0),e=this.__context.gl;this.__context.__bindGLTextureCubeMap(this.__textureID);var g=!1;a.readTextures(function(a,b,d,m,k,n,q){var h= f?qc.__compressedFormatsAlpha.h[d]:qc.__compressedFormats.h[d];if(0!=h)if(g=!0,a=c.__sideToTarget(a),c.__format=h,c.__internalFormat=h,f&&2==d){n=n/2|0;d=q.b.buffer;var l=0;null==l&&(l=0);d=null!=d?null==n?new Uint8Array(d,l):new Uint8Array(d,l,n):null;wb.compressedTexImage2D(e,a,b,c.__internalFormat,m,k,0,d);d=new hk(c.__context,c.__size,3,c.__optimizeForRenderToTexture,c.__streamingLevels);d.__format=h;d.__internalFormat=h;c.__context.__bindGLTextureCubeMap(d.__textureID);q=q.b.buffer;h=n;null== h&&(h=0);q=null!=q?null==n?new Uint8Array(q,h):new Uint8Array(q,h,n):null;wb.compressedTexImage2D(e,a,b,d.__internalFormat,m,k,0,q);c.__alphaTexture=d}else q=q.b.buffer,h=0,null==h&&(h=0),q=null!=q?null==n?new Uint8Array(q,h):new Uint8Array(q,h,n):null,wb.compressedTexImage2D(e,a,b,c.__internalFormat,m,k,0,q)});g||(a=this.__size*this.__size*4,a=null!=a?new Uint8Array(a):null,b=this.__sideToTarget(0),wb.texImage2D(e,b,0,this.__internalFormat,this.__size,this.__size,0,this.__format,e.UNSIGNED_BYTE, a),a=this.__size*this.__size*4,a=null!=a?new Uint8Array(a):null,b=this.__sideToTarget(1),wb.texImage2D(e,b,0,this.__internalFormat,this.__size,this.__size,0,this.__format,e.UNSIGNED_BYTE,a),a=this.__size*this.__size*4,a=null!=a?new Uint8Array(a):null,b=this.__sideToTarget(2),wb.texImage2D(e,b,0,this.__internalFormat,this.__size,this.__size,0,this.__format,e.UNSIGNED_BYTE,a),a=this.__size*this.__size*4,a=null!=a?new Uint8Array(a):null,b=this.__sideToTarget(3),wb.texImage2D(e,b,0,this.__internalFormat, this.__size,this.__size,0,this.__format,e.UNSIGNED_BYTE,a),a=this.__size*this.__size*4,a=null!=a?new Uint8Array(a):null,b=this.__sideToTarget(4),wb.texImage2D(e,b,0,this.__internalFormat,this.__size,this.__size,0,this.__format,e.UNSIGNED_BYTE,a),a=this.__size*this.__size*4,a=null!=a?new Uint8Array(a):null,b=this.__sideToTarget(5),wb.texImage2D(e,b,0,this.__internalFormat,this.__size,this.__size,0,this.__format,e.UNSIGNED_BYTE,a));this.__context.__bindGLTextureCubeMap(null)},__class__:hk});var Al= function(a,b,d,f,e){qc.call(this,a);this.__width=b;this.__height=d;this.__optimizeForRenderToTexture=e;this.__textureTarget=this.__context.gl.TEXTURE_2D;this.uploadFromTypedArray(null);e&&this.__getGLFramebuffer(!0,0,0)};k["openfl.display3D.textures.RectangleTexture"]=Al;Al.__name__="openfl.display3D.textures.RectangleTexture";Al.__super__=qc;Al.prototype=r(qc.prototype,{uploadFromBitmapData:function(a){if(null!=a&&(a=this.__getImage(a),null!=a))if(null!=a.buffer&&null==a.buffer.data&&null!=a.buffer.get_src()){var b= this.__context.gl;this.__context.__bindGLTexture2D(this.__textureID);wb.texImage2D(b,this.__textureTarget,0,this.__internalFormat,this.__format,b.UNSIGNED_BYTE,a.buffer.get_src());this.__context.__bindGLTexture2D(null)}else this.uploadFromTypedArray(a.get_data())},uploadFromByteArray:function(a,b){0==b?this.uploadFromTypedArray(a.b):(a=za.toArrayBuffer(a),null==b&&(b=0),b=null!=a?new Uint8Array(a,b):null,this.uploadFromTypedArray(b))},uploadFromTypedArray:function(a){var b=this.__context.gl;this.__context.__bindGLTexture2D(this.__textureID); wb.texImage2D(b,this.__textureTarget,0,this.__internalFormat,this.__width,this.__height,0,this.__format,b.UNSIGNED_BYTE,a);this.__context.__bindGLTexture2D(null)},__setSamplerState:function(a){if(qc.prototype.__setSamplerState.call(this,a)){var b=this.__context.gl;if(0!=Bc.__glMaxTextureMaxAnisotropy){switch(a.filter){case 0:a=16;break;case 1:a=2;break;case 2:a=4;break;case 3:a=8;break;default:a=1}a>Bc.__glMaxTextureMaxAnisotropy&&(a=Bc.__glMaxTextureMaxAnisotropy);b.texParameterf(b.TEXTURE_2D,Bc.__glTextureMaxAnisotropy, a)}return!0}return!1},__class__:Al});var cj=function(a,b,d,f,e,g){qc.call(this,a);this.__width=b;this.__height=d;this.__optimizeForRenderToTexture=e;this.__streamingLevels=g;a=this.__context.gl;this.__textureTarget=a.TEXTURE_2D;this.__context.__bindGLTexture2D(this.__textureID);wb.texImage2D(a,this.__textureTarget,0,this.__internalFormat,this.__width,this.__height,0,this.__format,a.UNSIGNED_BYTE,null);this.__context.__bindGLTexture2D(null);e&&this.__getGLFramebuffer(!0,0,0)};k["openfl.display3D.textures.Texture"]= cj;cj.__name__="openfl.display3D.textures.Texture";cj.__super__=qc;cj.prototype=r(qc.prototype,{uploadCompressedTextureFromByteArray:function(a,b,d){null==d&&(d=!1);var c=this;d?lf.delay(function(){c.__uploadCompressedTextureFromByteArray(a,b);var d=new ca("textureReady");c.dispatchEvent(d)},1):this.__uploadCompressedTextureFromByteArray(a,b)},uploadFromBitmapData:function(a,b,d){null==b&&(b=0);if(null!=a){d=this.__width>>b;var c=this.__height>>b;if(0!=d||0!=c){0==d&&(d=1);0==c&&(c=1);if(a.width!= d||a.height!=c)d=new ra(d,c,!0,0),d.draw(a),a=d;a=this.__getImage(a);if(null!=a)if(0==b&&null!=a.buffer&&null==a.buffer.data&&null!=a.buffer.get_src()){if(d=this.__context.gl,c=this.__height>>b,0!=this.__width>>b||0!=c)this.__context.__bindGLTexture2D(this.__textureID),wb.texImage2D(d,this.__textureTarget,b,this.__internalFormat,this.__format,d.UNSIGNED_BYTE,a.buffer.get_src()),this.__context.__bindGLTexture2D(null)}else this.uploadFromTypedArray(a.get_data(),b)}}},uploadFromByteArray:function(a, b,d){null==d&&(d=0);0==b?this.uploadFromTypedArray(a.b,d):(a=za.toArrayBuffer(a),null==b&&(b=0),b=null!=a?new Uint8Array(a,b):null,this.uploadFromTypedArray(b,d))},uploadFromTypedArray:function(a,b){null==b&&(b=0);if(null!=a){var c=this.__context.gl,f=this.__width>>b,e=this.__height>>b;if(0!=f||0!=e)0==f&&(f=1),0==e&&(e=1),this.__context.__bindGLTexture2D(this.__textureID),wb.texImage2D(c,this.__textureTarget,b,this.__internalFormat,f,e,0,this.__format,c.UNSIGNED_BYTE,a),this.__context.__bindGLTexture2D(null)}}, __setSamplerState:function(a){if(qc.prototype.__setSamplerState.call(this,a)){var b=this.__context.gl;2==a.mipfilter||this.__samplerState.mipmapGenerated||(b.generateMipmap(b.TEXTURE_2D),this.__samplerState.mipmapGenerated=!0);if(0!=Bc.__glMaxTextureMaxAnisotropy){switch(a.filter){case 0:a=16;break;case 1:a=2;break;case 2:a=4;break;case 3:a=8;break;default:a=1}a>Bc.__glMaxTextureMaxAnisotropy&&(a=Bc.__glMaxTextureMaxAnisotropy);b.texParameterf(b.TEXTURE_2D,Bc.__glTextureMaxAnisotropy,a)}return!0}return!1}, __uploadCompressedTextureFromByteArray:function(a,b){var c=this;a=new ol(a,b);var f=a.readHeader(this.__width,this.__height,!1),e=this.__context.gl;this.__context.__bindGLTexture2D(this.__textureID);var g=!1;a.readTextures(function(a,b,d,m,k,n,q){a=f?qc.__compressedFormatsAlpha.h[d]:qc.__compressedFormats.h[d];if(0!=a)if(g=!0,c.__format=a,c.__internalFormat=a,f&&2==d){n=n/2|0;d=q.b.buffer;var h=0;null==h&&(h=0);d=null!=d?null==n?new Uint8Array(d,h):new Uint8Array(d,h,n):null;wb.compressedTexImage2D(e, c.__textureTarget,b,c.__internalFormat,m,k,0,d);d=new cj(c.__context,c.__width,c.__height,3,c.__optimizeForRenderToTexture,c.__streamingLevels);d.__format=a;d.__internalFormat=a;c.__context.__bindGLTexture2D(d.__textureID);q=q.b.buffer;a=n;null==a&&(a=0);q=null!=q?null==n?new Uint8Array(q,a):new Uint8Array(q,a,n):null;wb.compressedTexImage2D(e,d.__textureTarget,b,d.__internalFormat,m,k,0,q);c.__alphaTexture=d}else q=q.b.buffer,a=0,null==a&&(a=0),q=null!=q?null==n?new Uint8Array(q,a):new Uint8Array(q, a,n):null,wb.compressedTexImage2D(e,c.__textureTarget,b,c.__internalFormat,m,k,0,q)});g||(a=this.__width*this.__height*4,a=null!=a?new Uint8Array(a):null,wb.texImage2D(e,this.__textureTarget,0,this.__internalFormat,this.__width,this.__height,0,this.__format,e.UNSIGNED_BYTE,a));this.__context.__bindGLTexture2D(null)},__class__:cj});var $o=function(a){qc.call(this,a);this.__textureTarget=this.__context.gl.TEXTURE_2D};k["openfl.display3D.textures.VideoTexture"]=$o;$o.__name__="openfl.display3D.textures.VideoTexture"; $o.__super__=qc;$o.prototype=r(qc.prototype,{videoHeight:null,videoWidth:null,__netStream:null,attachNetStream:function(a){var b=this;null!=this.__netStream&&this.__netStream.__video.removeEventListener("canplay",x(this,this.__onCanPlay),!1);this.__netStream=a;4==this.__netStream.__video.readyState?lf.delay(function(){b.__textureReady()},0):this.__netStream.__video.addEventListener("canplay",x(this,this.__onCanPlay),!1)},__onCanPlay:function(a){this.__textureReady()},__getTexture:function(){if((!this.__netStream.__video.paused|| this.__netStream.get___seeking())&&0>1),tg.__blurShader.uRadius.value[0]=this.get_blurX()*a,tg.__blurShader.uRadius.value[1]=0):(a=Math.pow(.5,b-this.__horizontalPasses>>1),tg.__blurShader.uRadius.value[0]=0,tg.__blurShader.uRadius.value[1]=this.get_blurY()*a);return tg.__blurShader},get_blurX:function(){return this.__blurX},set_blurX:function(a){a!=this.__blurX&& (this.__blurX=a,this.__renderDirty=!0,this.__rightExtension=this.__leftExtension=0=this.__blurX?0:Math.round(a/4*this.__blurX)+1;this.__verticalPasses=0>=this.__blurY?0:Math.round(a/4* this.__blurY)+1;this.__numShaderPasses=this.__horizontalPasses+this.__verticalPasses;a!=this.__quality&&(this.__renderDirty=!0);return this.__quality=a},__class__:tg,__properties__:{set_quality:"set_quality",get_quality:"get_quality",set_blurY:"set_blurY",get_blurY:"get_blurY",set_blurX:"set_blurX",get_blurX:"get_blurX"}});var Dl=function(){null==this.__glFragmentSource&&(this.__glFragmentSource="varying vec2 openfl_TextureCoordv;\n\t\tuniform sampler2D openfl_Texture;\n\n\t\tuniform mat4 uMultipliers;\n\t\tuniform vec4 uOffsets;\n\n\t\tvoid main(void) {\n\n\t\t\tvec4 color = texture2D (openfl_Texture, openfl_TextureCoordv);\n\n\t\t\tif (color.a == 0.0) {\n\n\t\t\t\tgl_FragColor = vec4 (0.0, 0.0, 0.0, 0.0);\n\n\t\t\t} else {\n\n\t\t\t\tcolor = vec4 (color.rgb / color.a, color.a);\n\t\t\t\tcolor = uOffsets + color * uMultipliers;\n\n\t\t\t\tgl_FragColor = vec4 (color.rgb * color.a, color.a);\n\n\t\t\t}\n\n\t\t}"); null==this.__glVertexSource&&(this.__glVertexSource="attribute vec4 openfl_Position;\n\t\tattribute vec2 openfl_TextureCoord;\n\n\t\tvarying vec2 openfl_TextureCoordv;\n\n\t\tuniform mat4 openfl_Matrix;\n\t\tuniform vec2 openfl_TextureSize;\n\n\n\t\tvoid main(void) {\n\n\t\t\topenfl_TextureCoordv = openfl_TextureCoord;\n\n\t\tgl_Position = openfl_Matrix * openfl_Position;\n\n\n\t\t}");Cc.call(this);this.uMultipliers.value=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];this.uOffsets.value=[0,0,0,0];this.__isGenerated= !0;this.__initGL()};k["openfl.filters._ColorMatrixFilter.ColorMatrixShader"]=Dl;Dl.__name__="openfl.filters._ColorMatrixFilter.ColorMatrixShader";Dl.__super__=Cc;Dl.prototype=r(Cc.prototype,{init:function(a){var b=this.uMultipliers.value,d=this.uOffsets.value;b[0]=a[0];b[1]=a[1];b[2]=a[2];b[3]=a[3];b[4]=a[5];b[5]=a[6];b[6]=a[7];b[7]=a[8];b[8]=a[10];b[9]=a[11];b[10]=a[12];b[11]=a[13];b[12]=a[15];b[13]=a[16];b[14]=a[17];b[15]=a[18];d[0]=a[4]/255;d[1]=a[9]/255;d[2]=a[14]/255;d[3]=a[19]/255},uMultipliers:null, uOffsets:null,__class__:Dl});var Qf=function(a){Ce.call(this);this.set_matrix(a);this.__numShaderPasses=1;this.__needSecondBitmapData=!1};k["openfl.filters.ColorMatrixFilter"]=Qf;Qf.__name__="openfl.filters.ColorMatrixFilter";Qf.__super__=Ce;Qf.prototype=r(Ce.prototype,{__matrix:null,clone:function(){return new Qf(this.__matrix)},__applyFilter:function(a,b,d,f){var c=b.image,g=a.image;ua.convertToData(c);ua.convertToData(g);var h=c.get_data(),l=g.get_data(),m=f.x-d.x|0;f=f.y-d.y|0;b=4*b.width;var p= 4*a.width,k=c.buffer.format,n=g.buffer.format;c=c.buffer.premultiplied;g=g.buffer.premultiplied;for(var q,u=0,v,w,r=d.y|0,y=d.height|0;r>>24&255)*J.unmult)]&255)<<24|(J.__clamp[Math.round((q>>>16&255)*J.unmult)]&255)<<16|(J.__clamp[Math.round((q>>>8&255)*J.unmult)]&255)<<8|q&255);0==(q&255)?u=0:(u=((Math.max(0,Math.min(this.__matrix[0]*(q>>>24&255)+this.__matrix[1]*(q>>>16&255)+this.__matrix[2]*(q>>>8&255)+this.__matrix[3]*(q&255)+this.__matrix[4],255))|0)&255)<<24|(u>>>16&255)<<16|(u>>>8&255)<<8|u&255,u=(u>>>24&255)<<24|((Math.max(0,Math.min(this.__matrix[5]*(q>>>24&255)+ this.__matrix[6]*(q>>>16&255)+this.__matrix[7]*(q>>>8&255)+this.__matrix[8]*(q&255)+this.__matrix[9],255))|0)&255)<<16|(u>>>8&255)<<8|u&255,u=(u>>>24&255)<<24|(u>>>16&255)<<16|((Math.max(0,Math.min(this.__matrix[10]*(q>>>24&255)+this.__matrix[11]*(q>>>16&255)+this.__matrix[12]*(q>>>8&255)+this.__matrix[13]*(q&255)+this.__matrix[14],255))|0)&255)<<8|u&255,u=(u>>>24&255)<<24|(u>>>16&255)<<16|(u>>>8&255)<<8|(Math.max(0,Math.min(this.__matrix[15]*(q>>>24&255)+this.__matrix[16]*(q>>>16&255)+this.__matrix[17]* (q>>>8&255)+this.__matrix[18]*(q&255)+this.__matrix[19],255))|0)&255);v=n;P=g;null==P&&(P=!1);null==v&&(v=0);P&&(0==(u&255)?0!=u&&(u=0):255!=(u&255)&&(J.a16=J.__alpha16[u&255],u=((u>>>24&255)*J.a16>>16&255)<<24|((u>>>16&255)*J.a16>>16&255)<<16|((u>>>8&255)*J.a16>>16&255)<<8|u&255));switch(v){case 0:l[w]=u>>>24&255;l[w+1]=u>>>16&255;l[w+2]=u>>>8&255;l[w+3]=u&255;break;case 1:l[w]=u&255;l[w+1]=u>>>24&255;l[w+2]=u>>>16&255;l[w+3]=u>>>8&255;break;case 2:l[w]=u>>>8&255,l[w+1]=u>>>16&255,l[w+2]=u>>>24& 255,l[w+3]=u&255}}a.image.dirty=!0;return a},__initShader:function(a,b,d){Qf.__colorMatrixShader.init(this.get_matrix());return Qf.__colorMatrixShader},get_matrix:function(){return this.__matrix},set_matrix:function(a){null==a&&(a=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0]);return this.__matrix=a},__class__:Qf,__properties__:{set_matrix:"set_matrix",get_matrix:"get_matrix"}});var ep=function(){null==this.__glFragmentSource&&(this.__glFragmentSource="varying vec2 vBlurCoords[9];\n\n\t\tuniform sampler2D openfl_Texture;\n\n\t\tuniform float uBias;\n\t\tuniform mat3 uConvoMatrix;\n\t\tuniform float uDivisor;\n\t\tuniform bool uPreserveAlpha;\n\n\t\tvoid main(void) {\n\n\t\t\tvec4 tc = texture2D (openfl_Texture, vBlurCoords[4]);\n\t\t\tvec4 c = vec4 (0.0);\n\n\t\t\tc += texture2D (openfl_Texture, vBlurCoords[0]) * uConvoMatrix[0][0];\n\t\t\tc += texture2D (openfl_Texture, vBlurCoords[1]) * uConvoMatrix[0][1];\n\t\t\tc += texture2D (openfl_Texture, vBlurCoords[2]) * uConvoMatrix[0][2];\n\n\t\t\tc += texture2D (openfl_Texture, vBlurCoords[3]) * uConvoMatrix[1][0];\n\t\t\tc += tc * uConvoMatrix[1][1];\n\t\t\tc += texture2D (openfl_Texture, vBlurCoords[5]) * uConvoMatrix[1][2];\n\n\t\t\tc += texture2D (openfl_Texture, vBlurCoords[6]) * uConvoMatrix[2][0];\n\t\t\tc += texture2D (openfl_Texture, vBlurCoords[7]) * uConvoMatrix[2][1];\n\t\t\tc += texture2D (openfl_Texture, vBlurCoords[8]) * uConvoMatrix[2][2];\n\n\t\t\tif (uDivisor > 0.0) {\n\n\t\t\t\tc /= vec4 (uDivisor, uDivisor, uDivisor, uDivisor);\n\n\t\t\t}\n\n\t\t\tc += vec4 (uBias, uBias, uBias, uBias);\n\n\t\t\tif (uPreserveAlpha) {\n\n\t\t\t\tc.a = tc.a;\n\n\t\t\t}\n\n\t\t\tgl_FragColor = c;\n\n\t\t}"); null==this.__glVertexSource&&(this.__glVertexSource="attribute vec4 openfl_Position;\n\t\tattribute vec2 openfl_TextureCoord;\n\n\t\tvarying vec2 vBlurCoords[9];\n\n\t\tuniform mat4 openfl_Matrix;\n\t\tuniform vec2 openfl_TextureSize;\n\n\t\tvoid main(void) {\n\n\t\t\tvec2 r = vec2 (1.0, 1.0) / openfl_TextureSize;\n\t\t\tvec2 t = openfl_TextureCoord;\n\n\t\t\tvBlurCoords[0] = t + r * vec2 (-1.0, -1.0);\n\t\t\tvBlurCoords[1] = t + r * vec2 (0.0, -1.0);\n\t\t\tvBlurCoords[2] = t + r * vec2 (1.0, -1.0);\n\n\t\t\tvBlurCoords[3] = t + r * vec2 (-1.0, 0.0);\n\t\t\tvBlurCoords[4] = t;\n\t\t\tvBlurCoords[5] = t + r * vec2 (1.0, 0.0);\n\n\t\t\tvBlurCoords[6] = t + r * vec2 (-1.0, 1.0);\n\t\t\tvBlurCoords[7] = t + r * vec2 (0.0, 1.0);\n\t\t\tvBlurCoords[8] = t + r * vec2 (1.0, 1.0);\n\n\t\t\tgl_Position = openfl_Matrix * openfl_Position;\n\n\t\t}"); Cc.call(this);this.uDivisor.value=[1];this.uBias.value=[0];this.uPreserveAlpha.value=[!0];this.__isGenerated=!0;this.__initGL()};k["openfl.filters._ConvolutionFilter.ConvolutionShader"]=ep;ep.__name__="openfl.filters._ConvolutionFilter.ConvolutionShader";ep.__super__=Cc;ep.prototype=r(Cc.prototype,{uBias:null,uConvoMatrix:null,uDivisor:null,uPreserveAlpha:null,__class__:ep});var kh=function(a,b,d,f,e,g,h,l,m){null==m&&(m=0);null==l&&(l=0);null==h&&(h=!0);null==g&&(g=!0);null==e&&(e=0);null==f&&(f= 1);null==b&&(b=0);null==a&&(a=0);Ce.call(this);this.matrixX=a;this.matrixY=b;this.__matrix=d;this.divisor=f;this.bias=e;this.preserveAlpha=g;this.clamp=h;this.color=l;this.alpha=m;this.__numShaderPasses=1};k["openfl.filters.ConvolutionFilter"]=kh;kh.__name__="openfl.filters.ConvolutionFilter";kh.__super__=Ce;kh.prototype=r(Ce.prototype,{alpha:null,bias:null,clamp:null,color:null,divisor:null,matrixX:null,matrixY:null,preserveAlpha:null,__matrix:null,clone:function(){return new kh(this.matrixX,this.matrixY, this.__matrix,this.divisor,this.bias,this.preserveAlpha,this.clamp,this.color,this.alpha)},__initShader:function(a,b,d){kh.__convolutionShader.uConvoMatrix.value=this.get_matrix();kh.__convolutionShader.uDivisor.value[0]=this.divisor;kh.__convolutionShader.uBias.value[0]=this.bias;kh.__convolutionShader.uPreserveAlpha.value[0]=this.preserveAlpha;return kh.__convolutionShader},get_matrix:function(){return this.__matrix},set_matrix:function(a){null==a&&(a=[0,0,0,0,1,0,0,0,0]);if(9!=a.length)throw new F("Only a 3x3 matrix is supported"); return this.__matrix=a},__class__:kh,__properties__:{set_matrix:"set_matrix",get_matrix:"get_matrix"}});var fp=function(){null==this.__glFragmentSource&&(this.__glFragmentSource="\n\n\t\tuniform sampler2D openfl_Texture;\n\t\tuniform sampler2D mapTexture;\n\n\t\tuniform mat4 openfl_Matrix;\n\n\t\tuniform vec4 uOffsets;\n\t\tuniform mat4 uDisplacements;\n\n\t\tvarying vec2 openfl_TextureCoordV;\n\t\tvarying vec2 mapTextureCoords;\n\n\t\tvoid main(void) {\n\n\t\t\tvec4 map_color = texture2D(mapTexture, mapTextureCoords);\n\t\t\tvec4 map_color_mod = map_color - uOffsets;\n\n\t\t\tmap_color_mod = map_color_mod * vec4(map_color.w, map_color.w, 1.0, 1.0);\n\n\t\t\tvec4 displacements_multiplied = map_color_mod * uDisplacements;\n\t\t\tvec4 result = vec4(openfl_TextureCoordV.x, openfl_TextureCoordV.y, 0.0, 1.0) + displacements_multiplied;\n\n\t\t\tgl_FragColor = texture2D(openfl_Texture, vec2(result));\n\n\t\t}\n\n\t"); null==this.__glVertexSource&&(this.__glVertexSource="\n\n\t\tuniform mat4 openfl_Matrix;\n\n\t\tuniform vec2 mapTextureCoordsOffset;\n\n\t\tattribute vec4 openfl_Position;\n\t\tattribute vec2 openfl_TextureCoord;\n\n\t\tvarying vec2 openfl_TextureCoordV;\n\n\t\tvarying vec2 mapTextureCoords;\n\n\t\tvoid main(void) {\n\n\t\t\tgl_Position = openfl_Matrix * openfl_Position;\n\n\t\t\topenfl_TextureCoordV = openfl_TextureCoord;\n\t\t\tmapTextureCoords = openfl_TextureCoord - mapTextureCoordsOffset;\n\n\t\t}\n\n\t"); Cc.call(this);this.__isGenerated=!0;this.__initGL()};k["openfl.filters._DisplacementMapFilter.DisplacementMapShader"]=fp;fp.__name__="openfl.filters._DisplacementMapFilter.DisplacementMapShader";fp.__super__=Cc;fp.prototype=r(Cc.prototype,{mapTextureCoordsOffset:null,mapTexture:null,uOffsets:null,uDisplacements:null,__class__:fp});var rc=function(a,b,d,f,e,g,h,l,m){null==m&&(m=0);null==l&&(l=0);null==h&&(h="wrap");null==g&&(g=0);null==e&&(e=0);null==f&&(f=0);null==d&&(d=0);Ce.call(this);this.__mapBitmap= a;this.__mapPoint=null!=b?b:new qa;this.__componentX=d;this.__componentY=f;this.__scaleX=e;this.__scaleY=g;this.__mode=h;this.__color=l;this.__alpha=m;this.__needSecondBitmapData=!0;this.__preserveObject=!1;this.__renderDirty=!0;this.__numShaderPasses=1};k["openfl.filters.DisplacementMapFilter"]=rc;rc.__name__="openfl.filters.DisplacementMapFilter";rc.__super__=Ce;rc.prototype=r(Ce.prototype,{__alpha:null,__color:null,__componentX:null,__componentY:null,__mapBitmap:null,__mapPoint:null,__mode:null, __scaleX:null,__scaleY:null,clone:function(){return new rc(this.__mapBitmap,this.__mapPoint.clone(),this.__componentX,this.__componentY,this.__scaleX,this.__scaleY,this.__mode,this.__color,this.__alpha)},__applyFilter:function(a,b,d,f){this.__updateMapMatrix();ua.convertToData(a.image);ua.convertToData(b.image);ua.convertToData(this.__mapBitmap.image);Za.displaceMap(a.image,b.image,this.__mapBitmap.image,new zd(this.__mapPoint.x/this.__mapBitmap.width,this.__mapPoint.y/this.__mapBitmap.height),new Gc(rc.__matrixData[0], rc.__matrixData[4],rc.__matrixData[8],rc.__matrixData[12]),new Gc(rc.__matrixData[1],rc.__matrixData[5],rc.__matrixData[9],rc.__matrixData[13]),this.__smooth);return a},__initShader:function(a,b,d){this.__updateMapMatrix();rc.__displacementMapShader.uOffsets.value=rc.__offset;rc.__displacementMapShader.uDisplacements.value=rc.__matrixData;a=this.get_mapPoint().x/this.__mapBitmap.width;b=this.get_mapPoint().y/this.__mapBitmap.height;rc.__displacementMapShader.mapTextureCoordsOffset.value=[a,b];rc.__displacementMapShader.mapTexture.input= this.__mapBitmap;return rc.__displacementMapShader},__updateMapMatrix:function(){var a=this.__mapBitmap.width,b=this.__mapBitmap.height;rc.__matrixData[0]=0;rc.__matrixData[1]=0;rc.__matrixData[2]=0;rc.__matrixData[3]=0;rc.__matrixData[4]=0;rc.__matrixData[5]=0;rc.__matrixData[6]=0;rc.__matrixData[7]=0;rc.__matrixData[8]=0;rc.__matrixData[9]=0;rc.__matrixData[10]=0;rc.__matrixData[11]=0;rc.__matrixData[12]=0;rc.__matrixData[13]=0;rc.__matrixData[14]=0;rc.__matrixData[15]=0;var d=1==this.__componentX? 0:2==this.__componentX?1:4==this.__componentX?2:3;var f=1==this.__componentY?0:2==this.__componentY?1:4==this.__componentY?2:3;rc.__matrixData[4*d]=1*this.__scaleX/a;rc.__matrixData[4*f+1]=1*this.__scaleY/b},get_alpha:function(){return this.__alpha},set_alpha:function(a){a!=this.__alpha&&(this.__renderDirty=!0);return this.__alpha=a},get_componentX:function(){return this.__componentX},set_componentX:function(a){a!=this.__componentX&&(this.__renderDirty=!0);return this.__componentX=a},get_componentY:function(){return this.__componentY}, set_componentY:function(a){a!=this.__componentY&&(this.__renderDirty=!0);return this.__componentY=a},get_color:function(){return this.__color},set_color:function(a){a!=this.__color&&(this.__renderDirty=!0);return this.__color=a},get_scaleX:function(){return this.__scaleX},set_scaleX:function(a){a!=this.__scaleX&&(this.__renderDirty=!0);return this.__scaleX=a},get_scaleY:function(){return this.__scaleY},set_scaleY:function(a){a!=this.__scaleY&&(this.__renderDirty=!0);return this.__scaleY=a},get_mapBitmap:function(){return this.__mapBitmap}, set_mapBitmap:function(a){a!=this.__mapBitmap&&(this.__renderDirty=!0);return this.__mapBitmap=a},get_mapPoint:function(){return this.__mapPoint},set_mapPoint:function(a){a!=this.__mapPoint&&(this.__renderDirty=!0);return this.__mapPoint=a},get_mode:function(){return this.__mode},set_mode:function(a){a!=this.__mode&&(this.__renderDirty=!0);return this.__mode=a},__class__:rc,__properties__:{set_scaleY:"set_scaleY",get_scaleY:"get_scaleY",set_scaleX:"set_scaleX",get_scaleX:"get_scaleX",set_mode:"set_mode", get_mode:"get_mode",set_mapPoint:"set_mapPoint",get_mapPoint:"get_mapPoint",set_mapBitmap:"set_mapBitmap",get_mapBitmap:"get_mapBitmap",set_componentY:"set_componentY",get_componentY:"get_componentY",set_componentX:"set_componentX",get_componentX:"get_componentX",set_color:"set_color",get_color:"get_color",set_alpha:"set_alpha",get_alpha:"get_alpha"}});var gp=function(){null==this.__glFragmentSource&&(this.__glFragmentSource="\n\t\tuniform sampler2D openfl_Texture;\n\t\tuniform sampler2D sourceBitmap;\n\t\tuniform float strength;\n\t\tvarying vec4 textureCoords;\n\n\t\tvoid main(void) {\n\t\t\tvec4 glow = texture2D(openfl_Texture, textureCoords.zw) * strength;\n\n\t\t\tgl_FragColor = glow;\n\t\t}\n\t"); null==this.__glVertexSource&&(this.__glVertexSource="attribute vec4 openfl_Position;\n\t\tattribute vec2 openfl_TextureCoord;\n\t\tuniform mat4 openfl_Matrix;\n\t\tuniform vec2 openfl_TextureSize;\n\t\tuniform vec2 offset;\n\t\tvarying vec4 textureCoords;\n\n\t\tvoid main(void) {\n\t\t\tgl_Position = openfl_Matrix * openfl_Position;\n\t\t\ttextureCoords = vec4(openfl_TextureCoord, openfl_TextureCoord - offset / openfl_TextureSize);\n\t\t}\n\t");Cc.call(this);this.strength.value=[1];this.offset.value= [0,0];this.__isGenerated=!0;this.__initGL()};k["openfl.filters._DropShadowFilter.HideShader"]=gp;gp.__name__="openfl.filters._DropShadowFilter.HideShader";gp.__super__=Cc;gp.prototype=r(Cc.prototype,{offset:null,sourceBitmap:null,strength:null,__class__:gp});var fi=function(a,b,d,f,e,g,h,l,m,p,k){null==k&&(k=!1);null==p&&(p=!1);null==m&&(m=!1);null==l&&(l=1);null==h&&(h=1);null==g&&(g=4);null==e&&(e=4);null==f&&(f=1);null==d&&(d=0);null==b&&(b=45);null==a&&(a=4);Ce.call(this);this.__offsetY=this.__offsetX= 0;this.__distance=a;this.__angle=b;this.__color=d;this.__alpha=f;this.__blurX=e;this.__blurY=g;this.__strength=h;this.__quality=l;this.__inner=m;this.__knockout=p;this.__hideObject=k;this.__updateSize();this.__renderDirty=this.__preserveObject=this.__needSecondBitmapData=!0};k["openfl.filters.DropShadowFilter"]=fi;fi.__name__="openfl.filters.DropShadowFilter";fi.__super__=Ce;fi.prototype=r(Ce.prototype,{__alpha:null,__angle:null,__blurX:null,__blurY:null,__color:null,__distance:null,__hideObject:null, __horizontalPasses:null,__inner:null,__knockout:null,__offsetX:null,__offsetY:null,__quality:null,__strength:null,__verticalPasses:null,clone:function(){return new fi(this.__distance,this.__angle,this.__color,this.__alpha,this.__blurX,this.__blurY,this.__strength,this.__quality,this.__inner,this.__knockout,this.__hideObject)},__applyFilter:function(a,b,d,f){var c=this.__color>>16&255,g=this.__color>>8&255,h=this.__color&255;f=new qa(f.x+this.__offsetX,f.y+this.__offsetY);d=Za.gaussianBlur(a.image, b.image,d.__toLimeRectangle(),f.__toLimeVector2(),this.__blurX,this.__blurY,this.__quality,this.__strength);d.colorTransform(d.get_rect(),(new Sb(0,0,0,this.__alpha,c,g,h,0)).__toLimeColorMatrix());return d==a.image?a:b},__initShader:function(a,b,d){if(this.__inner&&0==b)return ce.__invertAlphaShader;a=b-(this.__inner?1:0);if(a>1),d.uRadius.value[0]=this.get_blurX()*a,d.uRadius.value[1]= 0):(a=Math.pow(.5,a-this.__horizontalPasses>>1),d.uRadius.value[0]=0,d.uRadius.value[1]=this.get_blurY()*a),d.uColor.value[0]=(this.get_color()>>16&255)/255,d.uColor.value[1]=(this.get_color()>>8&255)/255,d.uColor.value[2]=(this.get_color()&255)/255,d.uColor.value[3]=this.get_alpha(),d;if(this.__inner){if(this.__knockout||this.__hideObject)return a=ce.__innerCombineKnockoutShader,a.sourceBitmap.input=d,a.offset.value[0]=this.__offsetX,a.offset.value[1]=this.__offsetY,a.strength.value[0]=this.__strength, a;a=ce.__innerCombineShader;a.sourceBitmap.input=d;a.offset.value[0]=this.__offsetX;a.offset.value[1]=this.__offsetY;a.strength.value[0]=this.__strength;return a}if(this.__knockout)return a=ce.__combineKnockoutShader,a.sourceBitmap.input=d,a.offset.value[0]=this.__offsetX,a.offset.value[1]=this.__offsetY,a.strength.value[0]=this.__strength,a;if(this.__hideObject)return a=fi.__hideShader,a.sourceBitmap.input=d,a.offset.value[0]=this.__offsetX,a.offset.value[1]=this.__offsetY,a.strength.value[0]=this.__strength, a;a=ce.__combineShader;a.sourceBitmap.input=d;a.offset.value[0]=this.__offsetX;a.offset.value[1]=this.__offsetY;a.strength.value[0]=this.__strength;return a},__updateSize:function(){this.__offsetX=this.__distance*Math.cos(this.__angle*Math.PI/180)|0;this.__offsetY=this.__distance*Math.sin(this.__angle*Math.PI/180)|0;this.__topExtension=Math.ceil((0>this.__offsetY?-this.__offsetY:0)+this.__blurY);this.__bottomExtension=Math.ceil((0this.__offsetX?-this.__offsetX:0)+this.__blurX);this.__rightExtension=Math.ceil((0>16&255,g=this.__color>>8&255,h=this.__color&255;if(this.__inner||this.__knockout)return b.image.colorTransform(b.image.get_rect(), (new Sb(1,1,1,0,0,0,0,-255)).__toLimeColorMatrix()),b.image.dirty=!0,b.image.version++,a=b.clone();d=Za.gaussianBlur(a.image,b.image,d.__toLimeRectangle(),f.__toLimeVector2(),this.__blurX,this.__blurY,this.__quality,this.__strength);d.colorTransform(d.get_rect(),(new Sb(0,0,0,this.__alpha,c,g,h,0)).__toLimeColorMatrix());return d==a.image?a:b},__initShader:function(a,b,d){if(this.__inner&&0==b)return ce.__invertAlphaShader;a=b-(this.__inner?1:0);if(a>1),d.uRadius.value[0]=this.get_blurX()*a,d.uRadius.value[1]=0):(a=Math.pow(.5,a-this.__horizontalPasses>>1),d.uRadius.value[0]=0,d.uRadius.value[1]=this.get_blurY()*a),d.uColor.value[0]=(this.get_color()>>16&255)/255,d.uColor.value[1]=(this.get_color()>>8&255)/255,d.uColor.value[2]=(this.get_color()&255)/255,d.uColor.value[3]=this.get_alpha(),d;if(this.__inner){if(this.__knockout)return a=ce.__innerCombineKnockoutShader,a.sourceBitmap.input= d,a.strength.value[0]=this.__strength,a;a=ce.__innerCombineShader;a.sourceBitmap.input=d;a.strength.value[0]=this.__strength;return a}if(this.__knockout)return a=ce.__combineKnockoutShader,a.sourceBitmap.input=d,a.strength.value[0]=this.__strength,a;a=ce.__combineShader;a.sourceBitmap.input=d;a.strength.value[0]=this.__strength;return a},__updateSize:function(){this.__rightExtension=this.__leftExtension=0=this.__blurX?0:Math.round(this.__quality/4*this.__blurX)+1;this.__verticalPasses=0>=this.__blurY?0:Math.round(this.__quality/4*this.__blurY)+1;this.__numShaderPasses=this.__horizontalPasses+this.__verticalPasses+(this.__inner?2:1)},get_alpha:function(){return this.__alpha},set_alpha:function(a){a!=this.__alpha&&(this.__renderDirty=!0);return this.__alpha=a},get_blurX:function(){return this.__blurX}, set_blurX:function(a){a!=this.__blurX&&(this.__blurX=a,this.__renderDirty=!0,this.__updateSize());return a},get_blurY:function(){return this.__blurY},set_blurY:function(a){a!=this.__blurY&&(this.__blurY=a,this.__renderDirty=!0,this.__updateSize());return a},get_color:function(){return this.__color},set_color:function(a){a!=this.__color&&(this.__renderDirty=!0);return this.__color=a},get_inner:function(){return this.__inner},set_inner:function(a){a!=this.__inner&&(this.__renderDirty=!0,this.__calculateNumShaderPasses()); return this.__inner=a},get_knockout:function(){return this.__knockout},set_knockout:function(a){a!=this.__knockout&&(this.__renderDirty=!0,this.__calculateNumShaderPasses());return this.__knockout=a},get_quality:function(){return this.__quality},set_quality:function(a){a!=this.__quality&&(this.__renderDirty=!0,this.__calculateNumShaderPasses());return this.__quality=a},get_strength:function(){return this.__strength},set_strength:function(a){a!=this.__strength&&(this.__renderDirty=!0);return this.__strength= a},__class__:ce,__properties__:{set_strength:"set_strength",get_strength:"get_strength",set_quality:"set_quality",get_quality:"get_quality",set_knockout:"set_knockout",get_knockout:"get_knockout",set_inner:"set_inner",get_inner:"get_inner",set_color:"set_color",get_color:"get_color",set_blurY:"set_blurY",get_blurY:"get_blurY",set_blurX:"set_blurX",get_blurX:"get_blurX",set_alpha:"set_alpha",get_alpha:"get_alpha"}});var pe=function(a){null!=a&&16==a.get_length()?this.rawData=a.concat(null):this.rawData= Ja.toFloatVector(null,null,null,[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])};k["openfl.geom.Matrix3D"]=pe;pe.__name__="openfl.geom.Matrix3D";pe.create2D=function(a,b,d,f){null==f&&(f=0);null==d&&(d=1);var c=f*Math.PI/180;f=Math.cos(c);c=Math.sin(c);return new pe(Ja.toFloatVector(null,null,null,[f*d,-c*d,0,0,c*d,f*d,0,0,0,0,1,0,a,b,0,1]))};pe.createABCD=function(a,b,d,f,e,g){return new pe(Ja.toFloatVector(null,null,null,[a,b,0,0,d,f,0,0,0,0,1,0,e,g,0,1]))};pe.createOrtho=function(a,b,d,f,e,g){var c=1/(b-a), l=1/(f-d),m=1/(g-e);return new pe(Ja.toFloatVector(null,null,null,[2*c,0,0,0,0,2*l,0,0,0,0,-2*m,0,-(a+b)*c,-(d+f)*l,-(e+g)*m,1]))};pe.interpolate=function(a,b,d){for(var c=new pe,e=0;16>e;){var g=e++;c.rawData.set(g,a.rawData.get(g)+(b.rawData.get(g)-a.rawData.get(g))*d)}return c};pe.__getAxisRotation=function(a,b,d,f){var c=new pe;a=new dd(a,b,d);f=Math.PI/180*-f;d=Math.cos(f);f=Math.sin(f);b=1-d;c.rawData.set(0,d+a.x*a.x*b);c.rawData.set(5,d+a.y*a.y*b);c.rawData.set(10,d+a.z*a.z*b);d=a.x*a.y*b; var g=a.z*f;c.rawData.set(4,d+g);c.rawData.set(1,d-g);d=a.x*a.z*b;g=a.y*f;c.rawData.set(8,d-g);c.rawData.set(2,d+g);d=a.y*a.z*b;g=a.x*f;c.rawData.set(9,d+g);c.rawData.set(6,d-g);return c};pe.prototype={rawData:null,append:function(a){var b=this.rawData.get(0),d=this.rawData.get(4),f=this.rawData.get(8),e=this.rawData.get(12),g=this.rawData.get(1),h=this.rawData.get(5),l=this.rawData.get(9),m=this.rawData.get(13),p=this.rawData.get(2),k=this.rawData.get(6),n=this.rawData.get(10),q=this.rawData.get(14), u=this.rawData.get(3),v=this.rawData.get(7),w=this.rawData.get(11),r=this.rawData.get(15),y=a.rawData.get(0),x=a.rawData.get(4),I=a.rawData.get(8),B=a.rawData.get(12),P=a.rawData.get(1),D=a.rawData.get(5),C=a.rawData.get(9),A=a.rawData.get(13),F=a.rawData.get(2),G=a.rawData.get(6),E=a.rawData.get(10),H=a.rawData.get(14),J=a.rawData.get(3),L=a.rawData.get(7),M=a.rawData.get(11);a=a.rawData.get(15);this.rawData.set(0,b*y+g*x+p*I+u*B);this.rawData.set(1,b*P+g*D+p*C+u*A);this.rawData.set(2,b*F+g*G+p* E+u*H);this.rawData.set(3,b*J+g*L+p*M+u*a);this.rawData.set(4,d*y+h*x+k*I+v*B);this.rawData.set(5,d*P+h*D+k*C+v*A);this.rawData.set(6,d*F+h*G+k*E+v*H);this.rawData.set(7,d*J+h*L+k*M+v*a);this.rawData.set(8,f*y+l*x+n*I+w*B);this.rawData.set(9,f*P+l*D+n*C+w*A);this.rawData.set(10,f*F+l*G+n*E+w*H);this.rawData.set(11,f*J+l*L+n*M+w*a);this.rawData.set(12,e*y+m*x+q*I+r*B);this.rawData.set(13,e*P+m*D+q*C+r*A);this.rawData.set(14,e*F+m*G+q*E+r*H);this.rawData.set(15,e*J+m*L+q*M+r*a)},appendRotation:function(a, b,d){var c=0,e=c,g=e;null!=d&&(g=d.x,e=d.y,c=d.z);d=a*Math.PI/180;a=Math.cos(d);d=Math.sin(d);var h=b.x,l=b.y;b=b.z;var m=h*h,p=l*l,k=b*b,n=m+p+k;if(0!=n){var q=Math.sqrt(n);h/=q;l/=q;b/=q;m/=n;p/=n;k/=n}n=1-a;q=new pe;var u=q.rawData;u.set(0,m+(p+k)*a);u.set(1,h*l*n+b*d);u.set(2,h*b*n-l*d);u.set(4,h*l*n-b*d);u.set(5,p+(m+k)*a);u.set(6,l*b*n+h*d);u.set(8,h*b*n+l*d);u.set(9,l*b*n-h*d);u.set(10,k+(m+p)*a);u.set(12,(g*(p+k)-h*(e*l+c*b))*n+(e*b-c*l)*d);u.set(13,(e*(m+k)-l*(g*h+c*b))*n+(c*h-g*b)*d);u.set(14, (c*(m+p)-b*(g*h+e*l))*n+(g*l-e*h)*d);this.append(q)},appendScale:function(a,b,d){this.append(new pe(Ja.toFloatVector(null,null,null,[a,0,0,0,0,b,0,0,0,0,d,0,0,0,0,1])))},appendTranslation:function(a,b,d){var c=this.rawData;c.set(12,c.get(12)+a);a=this.rawData;a.set(13,a.get(13)+b);b=this.rawData;b.set(14,b.get(14)+d)},clone:function(){return new pe(this.rawData.copy())},copyColumnFrom:function(a,b){switch(a){case 0:this.rawData.set(0,b.x);this.rawData.set(1,b.y);this.rawData.set(2,b.z);this.rawData.set(3, b.w);break;case 1:this.rawData.set(4,b.x);this.rawData.set(5,b.y);this.rawData.set(6,b.z);this.rawData.set(7,b.w);break;case 2:this.rawData.set(8,b.x);this.rawData.set(9,b.y);this.rawData.set(10,b.z);this.rawData.set(11,b.w);break;case 3:this.rawData.set(12,b.x),this.rawData.set(13,b.y),this.rawData.set(14,b.z),this.rawData.set(15,b.w)}},copyColumnTo:function(a,b){switch(a){case 0:b.x=this.rawData.get(0);b.y=this.rawData.get(1);b.z=this.rawData.get(2);b.w=this.rawData.get(3);break;case 1:b.x=this.rawData.get(4); b.y=this.rawData.get(5);b.z=this.rawData.get(6);b.w=this.rawData.get(7);break;case 2:b.x=this.rawData.get(8);b.y=this.rawData.get(9);b.z=this.rawData.get(10);b.w=this.rawData.get(11);break;case 3:b.x=this.rawData.get(12),b.y=this.rawData.get(13),b.z=this.rawData.get(14),b.w=this.rawData.get(15)}},copyFrom:function(a){this.rawData=a.rawData.copy()},copyRawDataFrom:function(a,b,d){null==d&&(d=!1);null==b&&(b=0);d&&this.transpose();for(var c=0,e=a.get_length()-b;cd.get(0)*(d.get(5)*d.get(10)-d.get(6)*d.get(9))-d.get(1)*(d.get(4)*d.get(10)-d.get(6)*d.get(8))+d.get(2)*(d.get(4)*d.get(9)-d.get(5)*d.get(8))&&(e.z=-e.z);d.set(0,d.get(0)/e.x);d.set(1,d.get(1)/e.x);d.set(2,d.get(2)/e.x);d.set(4,d.get(4)/e.y);d.set(5,d.get(5)/e.y);d.set(6,d.get(6)/e.y);d.set(8,d.get(8)/e.z);d.set(9,d.get(9)/e.z);d.set(10,d.get(10)/e.z);var g=new dd;switch(a){case 0:g.w=Math.acos((d.get(0)+ d.get(5)+d.get(10)-1)/2);a=Math.sqrt((d.get(6)-d.get(9))*(d.get(6)-d.get(9))+(d.get(8)-d.get(2))*(d.get(8)-d.get(2))+(d.get(1)-d.get(4))*(d.get(1)-d.get(4)));0!=a?(g.x=(d.get(6)-d.get(9))/a,g.y=(d.get(8)-d.get(2))/a,g.z=(d.get(1)-d.get(4))/a):g.x=g.y=g.z=0;break;case 1:g.y=Math.asin(-d.get(2));1!=d.get(2)&&-1!=d.get(2)?(g.x=Math.atan2(d.get(6),d.get(10)),g.z=Math.atan2(d.get(1),d.get(0))):(g.z=0,g.x=Math.atan2(d.get(4),d.get(5)));break;case 2:a=d.get(0)+d.get(5)+d.get(10),0d.get(5)&&d.get(0)>d.get(10)?(g.x=Math.sqrt(1+d.get(0)-d.get(5)-d.get(10))/2,g.w=(d.get(6)-d.get(9))/(4*g.x),g.y=(d.get(1)+d.get(4))/(4*g.x),g.z=(d.get(8)+d.get(2))/(4*g.x)):d.get(5)>d.get(10)?(g.y=Math.sqrt(1+d.get(5)-d.get(0)-d.get(10))/2,g.x=(d.get(1)+d.get(4))/(4*g.y),g.w=(d.get(8)-d.get(2))/(4*g.y),g.z=(d.get(6)+d.get(9))/(4*g.y)):(g.z=Math.sqrt(1+d.get(10)-d.get(0)-d.get(5))/2,g.x=(d.get(8)+ d.get(2))/(4*g.z),g.y=(d.get(6)+d.get(9))/(4*g.z),g.w=(d.get(1)-d.get(4))/(4*g.z))}b.push(f);b.push(g);b.push(e);return b},deltaTransformVector:function(a){var b=a.x,d=a.y;a=a.z;return new dd(b*this.rawData.get(0)+d*this.rawData.get(4)+a*this.rawData.get(8),b*this.rawData.get(1)+d*this.rawData.get(5)+a*this.rawData.get(9),b*this.rawData.get(2)+d*this.rawData.get(6)+a*this.rawData.get(10),b*this.rawData.get(3)+d*this.rawData.get(7)+a*this.rawData.get(11))},identity:function(){this.rawData=Ja.toFloatVector(null, null,null,[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])},interpolateTo:function(a,b){for(var c=0;16>c;){var f=c++;this.rawData.set(f,this.rawData.get(f)+(a.rawData.get(f)-this.rawData.get(f))*b)}},invert:function(){var a=this.get_determinant(),b=1E-11a.get_length()||0==a.get(2).x||0==a.get(2).y||0==a.get(2).z)return!1;this.identity();var c=[];c[0]=c[1]=c[2]=a.get(2).x;c[4]=c[5]=c[6]=a.get(2).y; c[8]=c[9]=c[10]=a.get(2).z;if(1==b){b=Math.cos(a.get(1).x);var f=Math.cos(a.get(1).y),e=Math.cos(a.get(1).z),g=Math.sin(a.get(1).x),h=Math.sin(a.get(1).y),l=Math.sin(a.get(1).z);this.rawData.set(0,f*e*c[0]);this.rawData.set(1,f*l*c[1]);this.rawData.set(2,-h*c[2]);this.rawData.set(3,0);this.rawData.set(4,(g*h*e-b*l)*c[4]);this.rawData.set(5,(g*h*l+b*e)*c[5]);this.rawData.set(6,g*f*c[6]);this.rawData.set(7,0);this.rawData.set(8,(b*h*e+g*l)*c[8]);this.rawData.set(9,(b*h*l-g*e)*c[9]);this.rawData.set(10, b*f*c[10])}else f=a.get(1).x,e=a.get(1).y,g=a.get(1).z,h=a.get(1).w,0==b&&(f*=Math.sin(h/2),e*=Math.sin(h/2),g*=Math.sin(h/2),h=Math.cos(h/2)),this.rawData.set(0,(1-2*e*e-2*g*g)*c[0]),this.rawData.set(1,(2*f*e+2*h*g)*c[1]),this.rawData.set(2,(2*f*g-2*h*e)*c[2]),this.rawData.set(3,0),this.rawData.set(4,(2*f*e-2*h*g)*c[4]),this.rawData.set(5,(1-2*f*f-2*g*g)*c[5]),this.rawData.set(6,(2*e*g+2*h*f)*c[6]),this.rawData.set(7,0),this.rawData.set(8,(2*f*g+2*h*e)*c[8]),this.rawData.set(9,(2*e*g-2*h*f)*c[9]), this.rawData.set(10,(1-2*f*f-2*e*e)*c[10]);this.rawData.set(11,0);this.rawData.set(12,a.get(0).x);this.rawData.set(13,a.get(0).y);this.rawData.set(14,a.get(0).z);this.rawData.set(15,1);0==a.get(2).x&&this.rawData.set(0,1E-15);0==a.get(2).y&&this.rawData.set(5,1E-15);0==a.get(2).z&&this.rawData.set(10,1E-15);return!(0==a.get(2).x||0==a.get(2).y||0==a.get(2).y)},transformVector:function(a){var b=a.x,d=a.y;a=a.z;return new dd(b*this.rawData.get(0)+d*this.rawData.get(4)+a*this.rawData.get(8)+this.rawData.get(12), b*this.rawData.get(1)+d*this.rawData.get(5)+a*this.rawData.get(9)+this.rawData.get(13),b*this.rawData.get(2)+d*this.rawData.get(6)+a*this.rawData.get(10)+this.rawData.get(14),b*this.rawData.get(3)+d*this.rawData.get(7)+a*this.rawData.get(11)+this.rawData.get(15))},transformVectors:function(a,b){for(var c=0,f,e,g;c+3<=a.get_length();)f=a.get(c),e=a.get(c+1),g=a.get(c+2),b.set(c,f*this.rawData.get(0)+e*this.rawData.get(4)+g*this.rawData.get(8)+this.rawData.get(12)),b.set(c+1,f*this.rawData.get(1)+e* this.rawData.get(5)+g*this.rawData.get(9)+this.rawData.get(13)),b.set(c+2,f*this.rawData.get(2)+e*this.rawData.get(6)+g*this.rawData.get(10)+this.rawData.get(14)),c+=3},transpose:function(){var a=this.rawData.copy();this.rawData.set(1,a.get(4));this.rawData.set(2,a.get(8));this.rawData.set(3,a.get(12));this.rawData.set(4,a.get(1));this.rawData.set(6,a.get(9));this.rawData.set(7,a.get(13));this.rawData.set(8,a.get(2));this.rawData.set(9,a.get(6));this.rawData.set(11,a.get(14));this.rawData.set(12, a.get(3));this.rawData.set(13,a.get(7));this.rawData.set(14,a.get(11))},get_determinant:function(){return(this.rawData.get(0)*this.rawData.get(5)-this.rawData.get(4)*this.rawData.get(1))*(this.rawData.get(10)*this.rawData.get(15)-this.rawData.get(14)*this.rawData.get(11))-(this.rawData.get(0)*this.rawData.get(9)-this.rawData.get(8)*this.rawData.get(1))*(this.rawData.get(6)*this.rawData.get(15)-this.rawData.get(14)*this.rawData.get(7))+(this.rawData.get(0)*this.rawData.get(13)-this.rawData.get(12)* this.rawData.get(1))*(this.rawData.get(6)*this.rawData.get(11)-this.rawData.get(10)*this.rawData.get(7))+(this.rawData.get(4)*this.rawData.get(9)-this.rawData.get(8)*this.rawData.get(5))*(this.rawData.get(2)*this.rawData.get(15)-this.rawData.get(14)*this.rawData.get(3))-(this.rawData.get(4)*this.rawData.get(13)-this.rawData.get(12)*this.rawData.get(5))*(this.rawData.get(2)*this.rawData.get(11)-this.rawData.get(10)*this.rawData.get(3))+(this.rawData.get(8)*this.rawData.get(13)-this.rawData.get(12)* this.rawData.get(9))*(this.rawData.get(2)*this.rawData.get(7)-this.rawData.get(6)*this.rawData.get(3))},get_position:function(){return new dd(this.rawData.get(12),this.rawData.get(13),this.rawData.get(14))},set_position:function(a){this.rawData.set(12,a.x);this.rawData.set(13,a.y);this.rawData.set(14,a.z);return a},__class__:pe,__properties__:{set_position:"set_position",get_position:"get_position",get_determinant:"get_determinant"}};var El={};k["openfl.geom._Orientation3D.Orientation3D_Impl_"]=El; El.__name__="openfl.geom._Orientation3D.Orientation3D_Impl_";El.fromString=function(a){switch(a){case "axisAngle":return 0;case "eulerAngles":return 1;case "quaternion":return 2;default:return null}};El.toString=function(a){switch(a){case 0:return"axisAngle";case 1:return"eulerAngles";case 2:return"quaternion";default:return null}};var Xl=function(a){this.__colorTransform=new Sb;this.concatenatedColorTransform=new Sb;this.pixelBounds=new ia;this.__displayObject=a;this.__hasMatrix=!0};k["openfl.geom.Transform"]= Xl;Xl.__name__="openfl.geom.Transform";Xl.prototype={concatenatedColorTransform:null,pixelBounds:null,__colorTransform:null,__displayObject:null,__hasMatrix:null,__hasMatrix3D:null,get_colorTransform:function(){return this.__colorTransform},set_colorTransform:function(a){this.__colorTransform.__equals(a,!1)||(this.__colorTransform.__copyFrom(a),null!=a&&this.__displayObject.set_alpha(a.alphaMultiplier),a=this.__displayObject,a.__renderDirty||(a.__renderDirty=!0,a.__setParentRenderDirty()));return this.__colorTransform}, get_concatenatedMatrix:function(){return this.__hasMatrix?this.__displayObject.__getWorldTransform().clone():null},get_matrix:function(){return this.__hasMatrix?this.__displayObject.__transform.clone():null},set_matrix:function(a){if(null==a)return this.__hasMatrix=!1,null;this.__hasMatrix=!0;this.__hasMatrix3D=!1;null!=this.__displayObject&&this.__setTransform(a.a,a.b,a.c,a.d,a.tx,a.ty);return a},get_matrix3D:function(){if(this.__hasMatrix3D){var a=this.__displayObject.__transform;return new pe(Ja.toFloatVector(null, null,null,[a.a,a.b,0,0,a.c,a.d,0,0,0,0,1,0,a.tx,a.ty,0,1]))}return null},set_matrix3D:function(a){if(null==a)return this.__hasMatrix3D=!1,null;this.__hasMatrix=!1;this.__hasMatrix3D=!0;this.__setTransform(a.rawData.get(0),a.rawData.get(1),a.rawData.get(5),a.rawData.get(6),a.rawData.get(12),a.rawData.get(13));return a},__setTransform:function(a,b,d,f,e,g){if(null!=this.__displayObject){var c=0==b?a:Math.sqrt(a*a+b*b);var l=0==d?f:Math.sqrt(d*d+f*f);this.__displayObject.__scaleX=c;this.__displayObject.__scaleY= l;c=180/Math.PI*Math.atan2(f,d)-90;c!=this.__displayObject.__rotation&&(this.__displayObject.__rotation=c,c*=Math.PI/180,this.__displayObject.__rotationSine=Math.sin(c),this.__displayObject.__rotationCosine=Math.cos(c));this.__displayObject.__transform.a=a;this.__displayObject.__transform.b=b;this.__displayObject.__transform.c=d;this.__displayObject.__transform.d=f;this.__displayObject.__transform.tx=e;this.__displayObject.__transform.ty=g;this.__displayObject.__setTransformDirty()}},__class__:Xl, __properties__:{set_matrix3D:"set_matrix3D",get_matrix3D:"get_matrix3D",set_matrix:"set_matrix",get_matrix:"get_matrix",get_concatenatedMatrix:"get_concatenatedMatrix",set_colorTransform:"set_colorTransform",get_colorTransform:"get_colorTransform"}};var dd=function(a,b,d,f){null==f&&(f=0);null==d&&(d=0);null==b&&(b=0);null==a&&(a=0);this.w=f;this.x=a;this.y=b;this.z=d};k["openfl.geom.Vector3D"]=dd;dd.__name__="openfl.geom.Vector3D";dd.__properties__={get_Z_AXIS:"get_Z_AXIS",get_Y_AXIS:"get_Y_AXIS", get_X_AXIS:"get_X_AXIS"};dd.angleBetween=function(a,b){var c=a.get_length(),f=b.get_length();a=a.dotProduct(b);0!=c&&(a/=c);0!=f&&(a/=f);return Math.acos(a)};dd.distance=function(a,b){var c=b.x-a.x,f=b.y-a.y;a=b.z-a.z;return Math.sqrt(c*c+f*f+a*a)};dd.get_X_AXIS=function(){return new dd(1,0,0)};dd.get_Y_AXIS=function(){return new dd(0,1,0)};dd.get_Z_AXIS=function(){return new dd(0,0,1)};dd.prototype={w:null,x:null,y:null,z:null,add:function(a){return new dd(this.x+a.x,this.y+a.y,this.z+a.z)},clone:function(){return new dd(this.x, this.y,this.z,this.w)},copyFrom:function(a){this.x=a.x;this.y=a.y;this.z=a.z},crossProduct:function(a){return new dd(this.y*a.z-this.z*a.y,this.z*a.x-this.x*a.z,this.x*a.y-this.y*a.x,1)},decrementBy:function(a){this.x-=a.x;this.y-=a.y;this.z-=a.z},dotProduct:function(a){return this.x*a.x+this.y*a.y+this.z*a.z},equals:function(a,b){null==b&&(b=!1);return this.x==a.x&&this.y==a.y&&this.z==a.z?b?this.w==a.w:!0:!1},incrementBy:function(a){this.x+=a.x;this.y+=a.y;this.z+=a.z},nearEquals:function(a,b,d){null== d&&(d=!1);return Math.abs(this.x-a.x)=b)this.dispatchEvent(new Vf("ioError"));else{if(Ea.gt(a.position,0)||Ea.gt(za.get_length(a),b)){var c=b;null==c&&(c=0);c=new tc(c);var f=a.position;null==b&&(b=0);null==f&&(f=0);c.writeBytes(a,f,b);a=c}this.__buffer=bd.fromBytes(za.toBytes(a));null==this.__buffer?this.dispatchEvent(new Vf("ioError")):this.dispatchEvent(new ca("complete"))}},loadPCMFromByteArray:function(a, b,d,f,e){null==e&&(e=44100);null==f&&(f=!0);null==d&&(d="float");if(null==a)this.dispatchEvent(new Vf("ioError"));else{d="float"==d?32:16;f=f?2:1;b=d/8*f*b|0;if(Ea.gt(a.position,0)||Ea.gt(za.get_length(a),b)){var c=b;null==c&&(c=0);c=new tc(c);var h=a.position;null==b&&(b=0);null==h&&(h=0);c.writeBytes(a,h,b);a=c}b=new bd;b.bitsPerSample=d;b.channels=f;a=za.toArrayBuffer(a);a=null!=a?new Uint8Array(a,0):null;b.data=a;b.sampleRate=e|0;this.__buffer=b;this.dispatchEvent(new ca("complete"))}},play:function(a, b,d){null==b&&(b=0);null==a&&(a=0);if(null==this.__buffer||32<=de.__soundChannels.length)return null;d=null==d?new Rf:d.clone();var c=de.__soundTransform.pan+d.pan;1c&&(c=-1);var e=de.__soundTransform.volume*d.volume,g=new el(this.__buffer);g.offset=a|0;1b&&(b=-1);1a?a=0:a>this.__video.duration&&(a=this.__video.duration),this.set___seeking(!0),this.__connection.dispatchEvent(new Kf("netStatus",!1,!1,{code:"NetStream.SeekStart.Notify"})),this.__video.currentTime=a)},togglePause:function(){null!=this.__video&&(this.__video.paused?this.__video.play():this.__video.pause())},__playStatus:function(a){if(null!=this.__video&&null!=this.client)try{var b=this.client.onPlayStatus;b({code:a,duration:this.__video.duration,position:this.__video.currentTime, speed:this.__video.playbackRate,start:this.__video.startTime})}catch(d){ha.lastException=d}},video_onCanPlay:function(a){this.__playStatus("NetStream.Play.canplay")},video_onCanPlayThrough:function(a){this.__playStatus("NetStream.Play.canplaythrough")},video_onDurationChanged:function(a){this.__playStatus("NetStream.Play.durationchanged")},video_onEnd:function(a){this.__connection.dispatchEvent(new Kf("netStatus",!1,!1,{code:"NetStream.Play.Stop"}));this.__connection.dispatchEvent(new Kf("netStatus", !1,!1,{code:"NetStream.Play.Complete"}));this.__playStatus("NetStream.Play.Complete")},video_onError:function(a){this.__connection.dispatchEvent(new Kf("netStatus",!1,!1,{code:"NetStream.Play.Stop"}));this.__playStatus("NetStream.Play.error")},video_onLoadMetaData:function(a){if(null!=this.__video&&null!=this.client)try{var b=this.client.onMetaData;b({width:this.__video.videoWidth,height:this.__video.videoHeight,duration:this.__video.duration})}catch(d){ha.lastException=d}},video_onLoadStart:function(a){this.__playStatus("NetStream.Play.loadstart")}, video_onPause:function(a){this.__playStatus("NetStream.Play.pause")},video_onPlaying:function(a){this.__connection.dispatchEvent(new Kf("netStatus",!1,!1,{code:"NetStream.Play.Start"}));this.__playStatus("NetStream.Play.playing")},video_onSeeking:function(a){this.__playStatus("NetStream.Play.seeking");this.__connection.dispatchEvent(new Kf("netStatus",!1,!1,{code:"NetStream.Seek.Complete"}))},video_onStalled:function(a){this.__playStatus("NetStream.Play.stalled")},video_onTimeUpdate:function(a){null!= this.__video&&(this.time=this.__video.currentTime,this.__playStatus("NetStream.Play.timeupdate"))},video_onWaiting:function(a){this.__playStatus("NetStream.Play.waiting")},get_speed:function(){return null!=this.__video?this.__video.playbackRate:1},set_speed:function(a){return null!=this.__video?this.__video.playbackRate=a:a},get___seeking:function(){return this.__seeking?!0:this.__video.seeking},set___seeking:function(a){return this.__seeking=a},__class__:pp,__properties__:{set___seeking:"set___seeking", get___seeking:"get___seeking",set_speed:"set_speed",get_speed:"get_speed"}});var Sc=function(){E.call(this);this.client=this;this.objectEncoding=Sc.defaultObjectEncoding};k["openfl.net.SharedObject"]=Sc;Sc.__name__="openfl.net.SharedObject";Sc.getLocal=function(a,b,d){d=" ~%&\\;:\"',<>?#".split("");var c=!0;if(null==a||""==a)c=!1;else for(var e=0;ea||a>this.__text.length-1)return null;var b=new ia;return this.__getCharBoundaries(a,b)?b:null},getCharIndexAtPoint:function(a,b){if(2>=a||a>this.get_width()+4||0>=b||b>this.get_height()+4)return-1;this.__updateLayout();a+=this.get_scrollH();for(var c=0,f=this.get_scrollV()-1;c=c.offsetY&&b<=c.offsetY+c.height&&a>=c.offsetX&&a<=c.offsetX+c.width){f=b=0;for(e=c.positions.length;fa||a>this.get_text().length)return-1;for(var b=this.__textEngine.getLineBreakIndex(),d=0;-1=a)break;b=this.__textEngine.getLineBreakIndex(b+1)}return d},getLineIndexAtPoint:function(a, b){this.__updateLayout();if(2>=a||a>this.get_width()+4||0>=b||b>this.get_height()+4)return-1;a=0;for(var c=this.get_scrollV()-1;a=c.offsetY&&b<=c.offsetY+c.height)return c.lineIndex;return-1},getLineIndexOfChar:function(a){if(0>a||a>this.__text.length)return-1;this.__updateLayout();for(var b=this.__textEngine.layoutGroups.iterator();b.hasNext();){var d=b.next();if(d.startIndex<= a&&d.endIndex>=a)return d.lineIndex}return-1},getLineLength:function(a){this.__updateLayout();if(0>a||a>this.__textEngine.numLines-1)return 0;for(var b=-1,d=-1,f=this.__textEngine.layoutGroups.iterator();f.hasNext();){var e=f.next();if(e.lineIndex==a)-1==b&&(b=e.startIndex);else if(e.lineIndex==a+1){d=e.startIndex;break}}-1==d&&(d=this.__text.length);return d-b},getLineMetrics:function(a){this.__updateLayout();var b=this.__textEngine.lineAscents.get(a),d=this.__textEngine.lineDescents.get(a),f=this.__textEngine.lineLeadings.get(a), e=this.__textEngine.lineHeights.get(a);a=this.__textEngine.lineWidths.get(a);switch(this.__textFormat.align){case 0:var g=(this.__textEngine.width-a)/2;break;case 1:case 4:g=this.__textEngine.width-a-2;break;case 2:case 3:case 5:g=2}return new Cr(g,a,e,b,d,f)},getLineOffset:function(a){this.__updateLayout();if(0>a||a>this.__textEngine.numLines-1)return-1;for(var b=this.__textEngine.layoutGroups.iterator();b.hasNext();){var d=b.next();if(d.lineIndex==a)return d.startIndex}return 0},getLineText:function(a){this.__updateLayout(); if(0>a||a>this.__textEngine.numLines-1)return null;for(var b=-1,d=-1,f=this.__textEngine.layoutGroups.iterator();f.hasNext();){var e=f.next();if(e.lineIndex==a)-1==b&&(b=e.startIndex);else if(e.lineIndex==a+1){d=e.startIndex;break}}-1==d&&(d=this.__text.length);return this.__textEngine.text.substring(b,d)},getParagraphLength:function(a){if(0>a||a>this.get_text().length)return-1;var b=this.getFirstCharInParagraph(a);if(a>=this.get_text().length)return this.get_text().length-b+1;a=this.__textEngine.getLineBreakIndex(a)+ 1;0==a&&(a=this.__text.length);return a-b},getTextFormat:function(a,b){null==b&&(b=-1);null==a&&(a=-1);var c=null;if(a>=this.get_text().length||-1>a||b>this.get_text().length||-1>b)throw new F(new gj("The supplied index is out of bounds"));-1==a&&(a=0);-1==b&&(b=this.get_text().length);if(a>=b)return new Bg;for(var f=this.__textEngine.textFormatRanges.iterator();f.hasNext();){var e=f.next();if(e.start<=a&&e.end>a||e.start=b)null==c?c=e.format.clone():(e.format.font!=c.font&&(c.font=null), e.format.size!=c.size&&(c.size=null),e.format.color!=c.color&&(c.color=null),e.format.bold!=c.bold&&(c.bold=null),e.format.italic!=c.italic&&(c.italic=null),e.format.underline!=c.underline&&(c.underline=null),e.format.url!=c.url&&(c.url=null),e.format.target!=c.target&&(c.target=null),e.format.align!=c.align&&(c.align=null),e.format.leftMargin!=c.leftMargin&&(c.leftMargin=null),e.format.rightMargin!=c.rightMargin&&(c.rightMargin=null),e.format.indent!=c.indent&&(c.indent=null),e.format.leading!=c.leading&& (c.leading=null),e.format.blockIndent!=c.blockIndent&&(c.blockIndent=null),e.format.bullet!=c.bullet&&(c.bullet=null),e.format.kerning!=c.kerning&&(c.kerning=null),e.format.letterSpacing!=c.letterSpacing&&(c.letterSpacing=null),e.format.tabStops!=c.tabStops&&(c.tabStops=null))}null==c&&(c=new Bg);return c},replaceSelectedText:function(a){this.__replaceSelectedText(a,!1)},replaceText:function(a,b,d){this.__replaceText(a,b,d,!1)},setSelection:function(a,b){this.__selectionIndex=a;this.__caretIndex= b;this.__updateScrollV();this.__stopCursorTimer();this.__startCursorTimer()},setTextFormat:function(a,b,d){null==d&&(d=0);null==b&&(b=0);var c=this.get_text().length;0>b&&(b=0);0>d&&(d=0);0==d&&(d=0==b?c:b+1);if(!(d=c)for(this.__textFormat.__merge(a),a=0,b=this.__textEngine.textFormatRanges.get_length();a=b&&e.end<=d&&(e=this.__textEngine.textFormatRanges.indexOf(e,0),-1=b){g=e;break}if(db.start||a.end>b.end?1:0})}this.__layoutDirty=this.__dirty=!0;this.__renderDirty||(this.__renderDirty= !0,this.__setParentRenderDirty())}},__allowMouseFocus:function(){return 1==this.__textEngine.type||this.get_tabEnabled()?!0:this.get_selectable()},__caretBeginningOfLine:function(){this.__selectionIndex==this.__caretIndex||this.__caretIndexa||a>this.__text.length-1)return!1;this.__updateLayout();for(var c=this.__textEngine.layoutGroups.iterator();c.hasNext();){var f=c.next();if(a>=f.startIndex&&aa||a>this.__text.length||0>b||b>this.__textEngine.numLines-1)return-1;for(var c=null,f=null,e=this.__textEngine.layoutGroups.iterator();e.hasNext();){var g=e.next();if(a>=g.startIndex&&a<=g.endIndex){c=g.offsetX;for(var h=0,l=a-g.startIndex;hthis.__textEngine.textHeight&&(b=this.__textEngine.textHeight); c=!0;g=0;for(var h=this.__textEngine.layoutGroups.get_length();g=e.offsetY&&b<=e.offsetY+e.height||!d&&null==l)if(a>=e.offsetX&&a<=e.offsetX+e.width||!d&&(null==l||l.lineIndex!=e.lineIndex))return e}return null},__getPosition:function(a,b){b=this.__getGroup(a,b);if(null==b)return this.__text.length; for(var c=0,f=0,e=b.positions.length;fthis.__selectionIndex?this.__caretIndex: this.__selectionIndex;if(!(c==f&&0this.__text.length&&(c=this.__text.length);f>this.__text.length&&(f=this.__text.length);if(fc&&(c=0);this.__replaceText(c,f,a,b);a=c+S.__cast(a,String).length;a>this.__text.length&&(a=this.__text.length);this.setSelection(a,a);this.__updateScrollH()}}},__replaceText:function(a,b,d,f){if(!(ba||b>this.__text.length||null==d)){f&&(d=this.__textEngine.restrictText(d), 0=f?d="":fthis.__text.length&&(b=this.__text.length);f=d.length-(b-a);for(var c=0,g;c=a&&(g.start>b?(g.start+=f,g.end+=f):g.start=a&&(g.start>=b?(g.start+=f,g.end+=f):g.start>=a&&g.end<=b?1this.__caretIndex&&(this.__selectionIndex=this.__caretIndex=this.__text.length);(wa.__supportDOM?this.__renderedOnCanvasWhileOnDOM:1)&&this.__enableInput()},__stopCursorTimer:function(){null!=this.__cursorTimer&&(this.__cursorTimer.stop(),this.__cursorTimer=null);this.__showCursor&&(this.__showCursor=!1,this.__dirty=!0,this.__renderDirty|| (this.__renderDirty=!0,this.__setParentRenderDirty()))},__stopTextInput:function(){(wa.__supportDOM?this.__renderedOnCanvasWhileOnDOM:1)&&this.__disableInput()},__updateLayout:function(){if(this.__layoutDirty){var a=this.__textEngine.width;this.__textEngine.update();if(2!=this.__textEngine.autoSize){if(this.__textEngine.width!=a)switch(this.__textEngine.autoSize){case 0:this.set_x(this.get_x()+(a-this.__textEngine.width)/2);break;case 3:this.set_x(this.get_x()+(a-this.__textEngine.width))}this.__textEngine.getBounds()}this.__layoutDirty= !1}},__updateScrollH:function(){if(!this.get_multiline()&&1==this.get_type()){this.__layoutDirty=!0;this.__updateLayout();var a=this.__textEngine.textWidth-this.__textEngine.width+4;0=this.get_text().length?this.set_scrollH(Math.ceil(a)):(a=ia.__pool.get(),this.__getCharBoundaries(this.__caretIndex,a),a.xthis.get_scrollH()+this.__textEngine.width&&this.set_scrollH(Math.ceil(a.x-this.__textEngine.width-2)),ia.__pool.release(a)): this.set_scrollH(0)}},__updateScrollV:function(){this.__layoutDirty=!0;this.__updateLayout();var a=this.getLineIndexOfChar(this.__caretIndex);-1==a&&0this.get_bottomScrollV()){for(var b=0;0<=a;)if(b+this.__textEngine.lineHeights.get(a)<=this.get_height()-4)b+=this.__textEngine.lineHeights.get(a),--a;else break;this.set_scrollV(a+2)}else this.set_scrollV(this.get_scrollV())}, __updateText:function(a){wa.__supportDOM&&this.__renderedOnCanvasWhileOnDOM&&(this.__forceCachedBitmapUpdate=this.__text!=a);this.__textEngine.set_text(a);this.__text=this.__textEngine.text;this.__text.lengththis.__textEngine.maxScrollH&& (a=this.__textEngine.maxScrollH);0>a&&(a=0);a!=this.__textEngine.scrollH&&(this.__dirty=!0,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()),this.dispatchEvent(new ca("scroll")));return this.__textEngine.scrollH=a},get_scrollV:function(){return this.__textEngine.get_scrollV()},set_scrollV:function(a){this.__updateLayout();a!=this.__textEngine.get_scrollV()&&(this.__dirty=!0,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()),this.dispatchEvent(new ca("scroll"))); return this.__textEngine.set_scrollV(a)},get_selectable:function(){return this.__textEngine.selectable},set_selectable:function(a){a!=this.__textEngine.selectable&&1==this.get_type()&&(null!=this.stage&&this.stage.get_focus()==this?this.__startTextInput():a||this.__stopTextInput());return this.__textEngine.selectable=a},get_selectionBeginIndex:function(){return Math.min(this.__caretIndex,this.__selectionIndex)|0},get_selectionEndIndex:function(){return Math.max(this.__caretIndex,this.__selectionIndex)| 0},get_sharpness:function(){return this.__textEngine.sharpness},set_sharpness:function(a){a!=this.__textEngine.sharpness&&(this.__dirty=!0,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()));return this.__textEngine.sharpness=a},get_tabEnabled:function(){return null==this.__tabEnabled?1==this.__textEngine.type:this.__tabEnabled},get_text:function(){return this.__text},set_text:function(a){if(this.__isHTML||this.__text!=a)this.__layoutDirty=this.__dirty=!0,this.__renderDirty|| (this.__renderDirty=!0,this.__setParentRenderDirty());else return a;1b;){var c=b++;a=new Xf(this,"BUTTON_"+ c,0,1);this.__button.h[c]=a;this.__controls.push(a)}};k["openfl.ui.GameInputDevice"]=tp;tp.__name__="openfl.ui.GameInputDevice";tp.prototype={enabled:null,id:null,name:null,sampleInterval:null,__axis:null,__button:null,__controls:null,__gamepad:null,getCachedSamples:function(a,b){return 0},getControlAt:function(a){return 0<=a&&a=a)return a-65+65}else{switch(a){case 8:return 8;case 9:return 9;case 13:return 13;case 27:return 27;case 32:return 32; case 186:return 59;case 187:return 61;case 188:return 44;case 189:return 45;case 190:return 46;case 191:return 47;case 192:return 96;case 219:return 91;case 220:return 92;case 221:return 93;case 222:return 39}if(48<=a&&57>=a)return a-48+48;if(65<=a&&90>=a)return a-65+97}if(96<=a&&105>=a)return a-96+48;switch(a){case 8:return 8;case 13:return 13;case 46:return 127;case 106:return 42;case 107:return 43;case 108:return 44;case 110:return 45;case 111:return 46}return 0};Ba.__getKeyLocation=function(a){switch(a){case 1073741908:case 1073741909:case 1073741910:case 1073741911:case 1073741912:case 1073741913:case 1073741914:case 1073741915:case 1073741916:case 1073741917:case 1073741918:case 1073741919:case 1073741920:case 1073741921:case 1073741922:case 1073741923:case 1073742044:return 3; case 1073742048:case 1073742049:case 1073742050:case 1073742051:return 1;case 1073742052:case 1073742053:case 1073742054:case 1073742055:return 2;default:return 0}};var Fe=function(){};k["openfl.ui.Mouse"]=Fe;Fe.__name__="openfl.ui.Mouse";Fe.__properties__={set_cursor:"set_cursor",get_cursor:"get_cursor"};Fe.hide=function(){Fe.__hidden=!0;for(var a=0,b=Ve.current.__windows;a","g"),l=new Wa("([\\w\\.\\-\\+]+)","gi"),m=new Wa("^\\w{3}","ig"),p=new Wa("vc\\[([vofi][acostdip]?[d]?)(\\d*)?(\\.[xyzw](\\+\\d{1,3})?)?\\](\\.[xyzw]{1,4})?|([vofi][acostdip]?[d]?)(\\d*)?(\\.[xyzw]{1,4})?","gi"),k=new Wa("\\[.*\\]","ig"),n=new Wa("^\\b[A-Za-z]{1,3}","ig"),q=new Wa("\\d+",""),u=new Wa("(\\.[xyzw]{1,4})",""),w=new Wa("[A-Za-z]{1,3}","ig"),r=new Wa("(\\.[xyzw]{1,1})",""),y=new Wa("\\+\\d{1,3}","ig"),x=0;xd){this.error="error: opcode requires version 2.";break}if(0!=(P.flags&64)&&g){this.error="error: opcode is only allowed in vertex programs.";break}if(0!=(P.flags&32)&& !g){this.error="error: opcode is only allowed in fragment programs.";break}this.verbose&&Qa.info("emit opcode="+N.string(P),{fileName:"openfl/utils/AGALMiniAssembler.hx",lineNumber:308,className:"openfl.utils.AGALMiniAssembler",methodName:"assemble"});this.agalcode.writeUnsignedInt(P.emitCode);++b;if(4096=Y;)z|=U<<(Y-1<<1),++Y}else z=Q?15:228;if(H){O=this.match(J[0],w);S=X.REGMAP;bb=O[0];S=null!=v[bb]?S.getReserved(bb):S.h[bb];if(null==S){this.error="error: bad index register";C=!0;break}S=S.emitCode;U=this.match(J[0],r);if(0==U.length){this.error="error: bad index register select";C=!0;break}bb=A.cca(U[0],1)-120;Ea.gt(bb, 2)&&(bb=3);J=this.match(J[0],y);0ca||255b.length&&(b="0"+b),d+=b;Qa.info(d,{fileName:"openfl/utils/AGALMiniAssembler.hx", lineNumber:662,className:"openfl.utils.AGALMiniAssembler",methodName:"assemble"})}this.verbose&&Qa.info("AGALMiniAssembler.assemble time: "+($a.getTimer()-c)/1E3+"s",{fileName:"openfl/utils/AGALMiniAssembler.hx",lineNumber:667,className:"openfl.utils.AGALMiniAssembler",methodName:"assemble"});return this.agalcode},initregmap:function(a,b){var c=X.REGMAP,f=new Lf("va","vertex attribute",0,b?1024:1==a||2==a?7:15,66);null!=v.va?c.setReserved("va",f):c.h.va=f;c=X.REGMAP;f=new Lf("vc","vertex constant", 1,b?1024:1==a?127:249,66);null!=v.vc?c.setReserved("vc",f):c.h.vc=f;c=X.REGMAP;f=new Lf("vt","vertex temporary",2,b?1024:1==a?7:25,67);null!=v.vt?c.setReserved("vt",f):c.h.vt=f;c=X.REGMAP;f=new Lf("vo","vertex output",3,b?1024:0,65);null!=v.vo?c.setReserved("vo",f):c.h.vo=f;c=X.REGMAP;f=new Lf("vi","varying",4,b?1024:1==a?7:9,99);null!=v.vi?c.setReserved("vi",f):c.h.vi=f;c=X.REGMAP;f=new Lf("fc","fragment constant",1,b?1024:1==a?27:2==a?63:199,34);null!=v.fc?c.setReserved("fc",f):c.h.fc=f;c=X.REGMAP; f=new Lf("ft","fragment temporary",2,b?1024:1==a?7:25,35);null!=v.ft?c.setReserved("ft",f):c.h.ft=f;c=X.REGMAP;f=new Lf("fs","texture sampler",5,b?1024:7,34);null!=v.fs?c.setReserved("fs",f):c.h.fs=f;c=X.REGMAP;f=new Lf("fo","fragment output",3,b?1024:1==a?0:3,33);null!=v.fo?c.setReserved("fo",f):c.h.fo=f;c=X.REGMAP;a=new Lf("fd","fragment depth output",6,b?1024:1==a?-1:0,33);null!=v.fd?c.setReserved("fd",a):c.h.fd=a;a=X.REGMAP;b=new Lf("iid","instance id",7,b?1024:0,66);null!=v.iid?a.setReserved("iid", b):a.h.iid=b;a=b=X.REGMAP;a=null!=v.vo?a.getReserved("vo"):a.h.vo;null!=v.op?b.setReserved("op",a):b.h.op=a;a=b=X.REGMAP;a=null!=v.vi?a.getReserved("vi"):a.h.vi;null!=v.i?b.setReserved("i",a):b.h.i=a;a=b=X.REGMAP;a=null!=v.vi?a.getReserved("vi"):a.h.vi;null!=v.v?b.setReserved("v",a):b.h.v=a;a=b=X.REGMAP;a=null!=v.fo?a.getReserved("fo"):a.h.fo;null!=v.oc?b.setReserved("oc",a):b.h.oc=a;a=b=X.REGMAP;a=null!=v.fd?a.getReserved("fd"):a.h.fd;null!=v.od?b.setReserved("od",a):b.h.od=a;a=b=X.REGMAP;a=null!= v.vi?a.getReserved("vi"):a.h.vi;null!=v.fi?b.setReserved("fi",a):b.h.fi=a},match:function(a,b){for(var c=[],f=0;b.matchSub(a,f);)f=b.matched(0),c.push(f),f=b.matchedPos().pos+f.length;return c},__class__:X};var fc=function(a,b,d,f){this.name=a;this.numRegister=b;this.emitCode=d;this.flags=f};k["openfl.utils._AGALMiniAssembler.OpCode"]=fc;fc.__name__="openfl.utils._AGALMiniAssembler.OpCode";fc.prototype={emitCode:null,flags:null,name:null,numRegister:null,toString:function(){return'[OpCode name="'+ this.name+'", numRegister='+this.numRegister+", emitCode="+this.emitCode+", flags="+this.flags+"]"},__class__:fc};var Lf=function(a,b,d,f,e){this.name=a;this.longName=b;this.emitCode=d;this.range=f;this.flags=e};k["openfl.utils._AGALMiniAssembler.Register"]=Lf;Lf.__name__="openfl.utils._AGALMiniAssembler.Register";Lf.prototype={emitCode:null,name:null,longName:null,flags:null,range:null,toString:function(){var a=this.emitCode;a='[Register name="'+this.name+'", longName="'+this.longName+'", emitCode='+ N.string(null==a?null:Ea.toFloat(a))+", range=";var b=this.range;a=a+N.string(null==b?null:Ea.toFloat(b))+", flags=";b=this.flags;return a+N.string(null==b?null:Ea.toFloat(b))+"]"},__class__:Lf};var hd=function(a,b,d){this.name=a;this.flag=b;this.mask=d};k["openfl.utils._AGALMiniAssembler.Sampler"]=hd;hd.__name__="openfl.utils._AGALMiniAssembler.Sampler";hd.prototype={flag:null,mask:null,name:null,toString:function(){var a=this.flag;a='[Sampler name="'+this.name+'", flag="'+N.string(null==a?null: Ea.toFloat(a))+'", mask=';var b=this.mask;return a+N.string(null==b?null:Ea.toFloat(b))+"]"},__class__:hd};var up=function(){};k["openfl.utils.IAssetCache"]=up;up.__name__="openfl.utils.IAssetCache";up.__isInterface__=!0;up.prototype={get_enabled:null,set_enabled:null,clear:null,getBitmapData:null,getFont:null,getSound:null,hasBitmapData:null,hasFont:null,hasSound:null,removeBitmapData:null,removeFont:null,removeSound:null,setBitmapData:null,setFont:null,setSound:null,__class__:up,__properties__:{set_enabled:"set_enabled", get_enabled:"get_enabled"}};var vp=function(){this.__enabled=!0;this.bitmapData=new sa;this.font=new sa;this.sound=new sa};k["openfl.utils.AssetCache"]=vp;vp.__name__="openfl.utils.AssetCache";vp.__interfaces__=[up];vp.prototype={bitmapData:null,font:null,sound:null,__enabled:null,clear:function(a){if(null==a)this.bitmapData=new sa,this.font=new sa,this.sound=new sa;else{for(var b=this.bitmapData.keys();b.hasNext();){var d=b.next();aa.startsWith(d,a)&&this.removeBitmapData(d)}for(b=this.font.keys();b.hasNext();)d= b.next(),aa.startsWith(d,a)&&this.removeFont(d);for(b=this.sound.keys();b.hasNext();)d=b.next(),aa.startsWith(d,a)&&this.removeSound(d)}},getBitmapData:function(a){var b=this.bitmapData;return null!=v[a]?b.getReserved(a):b.h[a]},getFont:function(a){var b=this.font;return null!=v[a]?b.getReserved(a):b.h[a]},getSound:function(a){var b=this.sound;return null!=v[a]?b.getReserved(a):b.h[a]},hasBitmapData:function(a){var b=this.bitmapData;return null!=v[a]?b.existsReserved(a):b.h.hasOwnProperty(a)},hasFont:function(a){var b= this.font;return null!=v[a]?b.existsReserved(a):b.h.hasOwnProperty(a)},hasSound:function(a){var b=this.sound;return null!=v[a]?b.existsReserved(a):b.h.hasOwnProperty(a)},removeBitmapData:function(a){xa.cache.image.remove(a);return this.bitmapData.remove(a)},removeFont:function(a){xa.cache.font.remove(a);return this.font.remove(a)},removeSound:function(a){xa.cache.audio.remove(a);return this.sound.remove(a)},setBitmapData:function(a,b){var c=this.bitmapData;null!=v[a]?c.setReserved(a,b):c.h[a]=b}, setFont:function(a,b){var c=this.font;null!=v[a]?c.setReserved(a,b):c.h[a]=b},setSound:function(a,b){var c=this.sound;null!=v[a]?c.setReserved(a,b):c.h[a]=b},get_enabled:function(){return this.__enabled},set_enabled:function(a){return this.__enabled=a},__class__:vp,__properties__:{set_enabled:"set_enabled",get_enabled:"get_enabled"}};var Aa=function(){};k["openfl.utils.Assets"]=Aa;Aa.__name__="openfl.utils.Assets";Aa.addEventListener=function(a,b,d,f,e){null==e&&(e=!1);null==f&&(f=0);null==d&&(d= !1);xa.onChange.has(Aa.LimeAssets_onChange)||xa.onChange.add(Aa.LimeAssets_onChange);Aa.dispatcher.addEventListener(a,b,d,f,e)};Aa.dispatchEvent=function(a){return Aa.dispatcher.dispatchEvent(a)};Aa.exists=function(a,b){return xa.exists(a,b)};Aa.getBitmapData=function(a,b){null==b&&(b=!0);if(b&&Aa.cache.get_enabled()&&Aa.cache.hasBitmapData(a)){var c=Aa.cache.getBitmapData(a);if(Aa.isValidBitmapData(c))return c}c=xa.getImage(a,!1);return null!=c?(c=ra.fromImage(c),b&&Aa.cache.get_enabled()&&Aa.cache.setBitmapData(a, c),c):null};Aa.getBytes=function(a){return za.fromBytes(xa.getBytes(a))};Aa.getFont=function(a,b){null==b&&(b=!0);if(b&&Aa.cache.get_enabled()&&Aa.cache.hasFont(a))return Aa.cache.getFont(a);var c=xa.getFont(a,!1);if(null!=c){var f=new yc;f.__fromLimeFont(c);b&&Aa.cache.get_enabled()&&Aa.cache.setFont(a,f);return f}return new yc};Aa.getLibrary=function(a){return xa.getLibrary(a)};Aa.getMovieClip=function(a){var b=a.substring(0,a.indexOf(":")),d=A.substr(a,a.indexOf(":")+1,null),f=Aa.getLibrary(b); if(null!=f){if(f instanceof ic&&f.exists(d,"MOVIE_CLIP")){if(f.isLocal(d,"MOVIE_CLIP"))return f.getMovieClip(d);Qa.error('MovieClip asset "'+a+'" exists, but only asynchronously',{fileName:"openfl/utils/Assets.hx",lineNumber:207,className:"openfl.utils.Assets",methodName:"getMovieClip"});return null}Qa.error('There is no MovieClip asset with an ID of "'+a+'"',{fileName:"openfl/utils/Assets.hx",lineNumber:213,className:"openfl.utils.Assets",methodName:"getMovieClip"})}else Qa.error('There is no asset library named "'+ b+'"',{fileName:"openfl/utils/Assets.hx",lineNumber:217,className:"openfl.utils.Assets",methodName:"getMovieClip"});return null};Aa.getMusic=function(a,b){null==b&&(b=!0);return Aa.getSound(a,b)};Aa.getPath=function(a){return xa.getPath(a)};Aa.getSound=function(a,b){null==b&&(b=!0);if(b&&Aa.cache.get_enabled()&&Aa.cache.hasSound(a)){var c=Aa.cache.getSound(a);if(Aa.isValidSound(c))return c}c=xa.getAudioBuffer(a,!1);return null!=c?(c=Wf.fromAudioBuffer(c),b&&Aa.cache.get_enabled()&&Aa.cache.setSound(a, c),c):null};Aa.getText=function(a){return xa.getText(a)};Aa.hasEventListener=function(a){return Aa.dispatcher.hasEventListener(a)};Aa.hasLibrary=function(a){return xa.hasLibrary(a)};Aa.isLocal=function(a,b,d){null==d&&(d=!0);if(d&&Aa.cache.get_enabled()&&(("IMAGE"==b||null==b)&&Aa.cache.hasBitmapData(a)||("FONT"==b||null==b)&&Aa.cache.hasFont(a)||("SOUND"==b||"MUSIC"==b||null==b)&&Aa.cache.hasSound(a)))return!0;d=a.substring(0,a.indexOf(":"));a=A.substr(a,a.indexOf(":")+1,null);d=Aa.getLibrary(d); return null!=d?d.isLocal(a,b):!1};Aa.isValidBitmapData=function(a){return null!=a&&null!=a.image};Aa.isValidSound=function(a){return!0};Aa.list=function(a){return xa.list(a)};Aa.loadBitmapData=function(a,b){null==b&&(b=!0);null==b&&(b=!0);var c=new Rd;if(b&&Aa.cache.get_enabled()&&Aa.cache.hasBitmapData(a)){var f=Aa.cache.getBitmapData(a);if(Aa.isValidBitmapData(f))return c.complete(f),c.future}xa.loadImage(a,!1).onComplete(function(d){null!=d?(d=ra.fromImage(d),b&&Aa.cache.get_enabled()&&Aa.cache.setBitmapData(a, d),c.complete(d)):c.error('[Assets] Could not load Image "'+a+'"')}).onError(x(c,c.error)).onProgress(x(c,c.progress));return c.future};Aa.loadBytes=function(a){var b=new Rd;a=xa.loadBytes(a);a.onComplete(function(a){b.complete(za.fromBytes(a))});a.onProgress(function(a,c){b.progress(a,c)});a.onError(function(a){b.error(a)});return b.future};Aa.loadFont=function(a,b){null==b&&(b=!0);null==b&&(b=!0);var c=new Rd;if(b&&Aa.cache.get_enabled()&&Aa.cache.hasFont(a)){var f=Aa.cache.getFont(a);c.complete(f); return c.future}xa.loadFont(a).onComplete(function(d){var e=new yc;e.__fromLimeFont(d);b&&Aa.cache.get_enabled()&&Aa.cache.setFont(a,e);c.complete(e)}).onError(x(c,c.error)).onProgress(x(c,c.progress));return c.future};Aa.loadLibrary=function(a){return xa.loadLibrary(a).then(function(b){var c=null;null!=b&&(b instanceof ic?c=b:(c=new ic,c.__proxy=b,xa.registerLibrary(a,c)));return xb.withValue(c)})};Aa.loadMusic=function(a,b){null==b&&(b=!0);null==b&&(b=!0);return new xb(function(){return Aa.getMusic(a, b)})};Aa.loadMovieClip=function(a){var b=new Rd,d=a.substring(0,a.indexOf(":")),f=A.substr(a,a.indexOf(":")+1,null),e=Aa.getLibrary(d);if(null!=e){if(e instanceof ic&&e.exists(f,"MOVIE_CLIP"))return b.completeWith(e.loadMovieClip(f)),b.future;b.error('[Assets] There is no MovieClip asset with an ID of "'+a+'"')}else b.error('[Assets] There is no asset library named "'+d+'"');return b.future};Aa.loadSound=function(a,b){null==b&&(b=!0);null==b&&(b=!0);var c=new Rd;xa.loadAudioBuffer(a,b).onComplete(function(d){null!= d?(d=Wf.fromAudioBuffer(d),b&&Aa.cache.get_enabled()&&Aa.cache.setSound(a,d),c.complete(d)):c.error('[Assets] Could not load Sound "'+a+'"')}).onError(x(c,c.error)).onProgress(x(c,c.progress));return c.future};Aa.loadText=function(a){return xa.loadText(a)};Aa.registerLibrary=function(a,b){xa.registerLibrary(a,b)};Aa.removeEventListener=function(a,b,d){null==d&&(d=!1);Aa.dispatcher.removeEventListener(a,b,d)};Aa.resolveClass=function(a){return k[a]};Aa.resolveEnum=function(a){return B[a]};Aa.unloadLibrary= function(a){xa.unloadLibrary(a)};Aa.LimeAssets_onChange=function(){Aa.dispatchEvent(new ca("change"))};var za={};k["openfl.utils._ByteArray.ByteArray_Impl_"]=za;za.__name__="openfl.utils._ByteArray.ByteArray_Impl_";za.__properties__={set_position:"set_position",get_position:"get_position",set_length:"set_length",get_length:"get_length",get_bytesAvailable:"get_bytesAvailable",set_defaultObjectEncoding:"set_defaultObjectEncoding",get_defaultObjectEncoding:"get_defaultObjectEncoding",set_defaultEndian:"set_defaultEndian", get_defaultEndian:"get_defaultEndian"};za._new=function(a){null==a&&(a=0);return new tc(a)};za.clear=function(a){a.clear()};za.compress=function(a,b){a.compress(b)};za.deflate=function(a){a.deflate()};za.fromArrayBuffer=function(a){return null==a?null:tc.fromBytes(Sa.ofData(a))};za.fromBytes=function(a){return null==a?null:a instanceof tc?a:tc.fromBytes(a)};za.fromBytesData=function(a){return null==a?null:tc.fromBytes(Sa.ofData(a))};za.fromFile=function(a){return za.fromBytes(Pc.fromFile(a))};za.fromLimeBytes= function(a){return za.fromBytes(a)};za.get=function(a,b){return a.b[b]};za.inflate=function(a){a.inflate()};za.loadFromBytes=function(a){return Pc.loadFromBytes(a).then(function(a){a=za.fromBytes(a);return xb.withValue(a)})};za.loadFromFile=function(a){return Pc.loadFromFile(a).then(function(a){a=za.fromBytes(a);return xb.withValue(a)})};za.readBoolean=function(a){return a.readBoolean()};za.readByte=function(a){return a.readByte()};za.readBytes=function(a,b,d,f){null==f&&(f=0);null==d&&(d=0);a.readBytes(b, d,f)};za.readDouble=function(a){return a.readDouble()};za.readFloat=function(a){return a.readFloat()};za.readInt=function(a){return a.readInt()};za.readMultiByte=function(a,b,d){return a.readMultiByte(b,d)};za.readObject=function(a){return a.readObject()};za.readShort=function(a){return a.readShort()};za.readUTF=function(a){return a.readUTF()};za.readUTFBytes=function(a,b){return a.readUTFBytes(b)};za.readUnsignedByte=function(a){return a.readUnsignedByte()};za.readUnsignedInt=function(a){return a.readUnsignedInt()}; za.readUnsignedShort=function(a){return a.readUnsignedShort()};za.set=function(a,b,d){a.__resize(b+1);a.b[b]=d&255;return d};za.toArrayBuffer=function(a){return a.b.bufferValue};za.toBytePointer=function(a){Ge.set(za.__bytePointer,a,null,null,a.position);return za.__bytePointer};za.toBytes=function(a){return a};za.toBytesData=function(a){return a.b.bufferValue};za.toLimeBytes=function(a){return za.toBytes(za.fromBytes(za.toBytes(a)))};za.toString=function(a){return a.toString()};za.uncompress=function(a, b){a.uncompress(b)};za.writeBoolean=function(a,b){a.writeBoolean(b)};za.writeByte=function(a,b){a.writeByte(b)};za.writeBytes=function(a,b,d,f){null==f&&(f=0);null==d&&(d=0);a.writeBytes(b,d,f)};za.writeDouble=function(a,b){a.writeDouble(b)};za.writeFloat=function(a,b){a.writeFloat(b)};za.writeInt=function(a,b){a.writeInt(b)};za.writeMultiByte=function(a,b,d){a.writeMultiByte(b,d)};za.writeObject=function(a,b){a.writeObject(b)};za.writeShort=function(a,b){a.writeShort(b)};za.writeUTF=function(a,b){a.writeUTF(b)}; za.writeUTFBytes=function(a,b){a.writeUTFBytes(b)};za.writeUnsignedInt=function(a,b){a.writeUnsignedInt(b)};za.get_bytesAvailable=function(a){return a.length-a.position};za.get_defaultEndian=function(){null==tc.__defaultEndian&&(Oa.get_endianness()==Li.LITTLE_ENDIAN?tc.__defaultEndian=1:tc.__defaultEndian=0);return tc.__defaultEndian};za.set_defaultEndian=function(a){return tc.__defaultEndian=a};za.get_defaultObjectEncoding=function(){return tc.defaultObjectEncoding};za.set_defaultObjectEncoding= function(a){return tc.defaultObjectEncoding=a};za.get_endian=function(a){return a.__endian};za.set_endian=function(a,b){return a.__endian=b};za.get_length=function(a){return null==a?0:a.length};za.set_length=function(a,b){0this.length){var b= this.length;this.length=this.__length;var d=new Sa(new ArrayBuffer(b));d.blit(0,this,0,b);this.b=d.b;this.__length=d.length;this.data=d.data;this.length=b}switch(a){case 0:a=Pc.compress(this,hl.DEFLATE);break;case 1:a=Pc.compress(this,hl.LZMA);break;default:a=Pc.compress(this,hl.ZLIB)}null!=a&&(this.b=a.b,this.__length=a.length,this.data=a.data,this.position=this.length=this.__length)},deflate:function(){this.compress(0)},inflate:function(){this.uncompress(0)},readBoolean:function(){if(this.position< this.length)return 0!=this.b[this.position++];throw new F(new Hh);},readByte:function(){var a=this.readUnsignedByte();return 0!=(a&128)?a-256:a},readBytes:function(a,b,d){null==d&&(d=0);null==b&&(b=0);0==d&&(d=this.length-this.position);if(this.position+d>this.length)throw new F(new Hh);a.lengththis.length)throw new F(new Hh);this.position+=8;return this.getDouble(this.position- 8)}var a=this.readInt(),b=this.readInt();return ne.i64ToDouble(b,a)},readFloat:function(){if(1==this.__endian){if(this.position+4>this.length)throw new F(new Hh);this.position+=4;return this.getFloat(this.position-4)}return ne.i32ToFloat(this.readInt())},readInt:function(){var a=this.readUnsignedByte(),b=this.readUnsignedByte(),d=this.readUnsignedByte(),f=this.readUnsignedByte();return 1==this.__endian?f<<24|d<<16|b<<8|a:a<<24|b<<16|d<<8|f},readMultiByte:function(a,b){return this.readUTFBytes(a)}, readObject:function(){switch(this.objectEncoding){case 10:var a=this.readUTF();return Te.run(a);case 12:return a=this.readUTF(),JSON.parse(a);default:return null}},readShort:function(){var a=this.readUnsignedByte(),b=this.readUnsignedByte();a=1==this.__endian?b<<8|a:a<<8|b;return 0!=(a&32768)?a-65536:a},readUnsignedByte:function(){if(this.positionthis.length)throw new F(new Hh);this.position+=a;return this.getString(this.position-a,a)},uncompress:function(a){null==a&&(a=2);if(this.__length>this.length){var b= this.length;this.length=this.__length;var d=new Sa(new ArrayBuffer(b));d.blit(0,this,0,b);this.b=d.b;this.__length=d.length;this.data=d.data;this.length=b}switch(a){case 0:a=Pc.decompress(this,hl.DEFLATE);break;case 1:a=Pc.decompress(this,hl.LZMA);break;default:a=Pc.decompress(this,hl.ZLIB)}null!=a&&(this.b=a.b,this.__length=a.length,this.data=a.data,this.length=this.__length);this.position=0},writeBoolean:function(a){this.writeByte(a?1:0)},writeByte:function(a){this.__resize(this.position+1);this.b[this.position++]= a&255},writeBytes:function(a,b,d){null==d&&(d=0);null==b&&(b=0);0!=za.get_length(a)&&(0==d&&(d=za.get_length(a)-b),this.__resize(this.position+d),this.blit(this.position,a,b,d),this.position+=d)},writeDouble:function(a){a=ne.doubleToI64(a);1==this.__endian?(this.writeInt(a.low),this.writeInt(a.high)):(this.writeInt(a.high),this.writeInt(a.low))},writeFloat:function(a){1==this.__endian?(this.__resize(this.position+4),this.setFloat(this.position,a),this.position+=4):(a=ne.floatToI32(a),this.writeInt(a))}, writeInt:function(a){this.__resize(this.position+4);1==this.__endian?(this.b[this.position++]=a&255,this.b[this.position++]=a>>8&255,this.b[this.position++]=a>>16&255,this.b[this.position++]=a>>24&255):(this.b[this.position++]=a>>24&255,this.b[this.position++]=a>>16&255,this.b[this.position++]=a>>8&255,this.b[this.position++]=a&255)},writeMultiByte:function(a,b){this.writeUTFBytes(a)},writeObject:function(a){switch(this.objectEncoding){case 10:a=Le.run(a);this.writeUTF(a);break;case 12:a=JSON.stringify(a), this.writeUTF(a)}},writeShort:function(a){this.__resize(this.position+2);1==this.__endian?(this.b[this.position++]=a&255,this.b[this.position++]=a>>8&255):(this.b[this.position++]=a>>8&255,this.b[this.position++]=a&255)},writeUnsignedInt:function(a){this.writeInt(a)},writeUTF:function(a){a=Sa.ofString(a);this.writeShort(a.length);this.writeBytes(za.fromBytes(a))},writeUTFBytes:function(a){a=Sa.ofString(a);this.writeBytes(za.fromBytes(a))},__fromBytes:function(a){this.b=a.b;this.__length=a.length; this.data=a.data;this.length=a.length},__resize:function(a){if(a>this.__length){var b=new Sa(new ArrayBuffer(3*(a+1)>>1));if(0a?f=b-1:d=b+1}return this.floatKeys[d]==a?d:-1},insertSorted:function(a,b){var c= this.floatKeys.length,f=0,e=c-1;if(0==c)this.floatKeys.push(a),this.values.push(b);else{for(;fa?e=c-1:f=c+1}this.floatKeys[f]>a?(this.floatKeys.splice(f,0,a),this.values.splice(f,0,b)):this.floatKeys[f] 0",{fileName:"C:/Program Files/Stencyl/plaf/haxe/lib/polygonal-ds/2,0,0/src/polygonal/ds/HashTable.hx",lineNumber:158,className:"polygonal.ds.HashTable",methodName:"new"});-1==b&&(b=a);this.mMinCapacity=this.capacity=2>b?2:b;this.mH=new Pg(a,this.capacity);this.mKeys=Array(this.capacity);this.mVals=Array(this.capacity);a=this.mNext=Array(this.capacity);b=0;for(var c=this.capacity-1;b= 0",{fileName:"C:/Program Files/Stencyl/plaf/haxe/lib/polygonal-ds/2,0,0/src/polygonal/ds/tools/ArrayTools.hx", lineNumber:37,className:"polygonal.ds.tools.ArrayTools",methodName:"alloc"});a=Array(a);for(var b=0,d=this.mKeys,f,e=0,g=this.capacity;ef?b:f}d=[];b=" %- "+b+"s -> %s\n";f=[];for(var e=this.keys();e.hasNext();){var g= e.next();f.push(g)}f.sort(function(a,b){return a.key-b.key});e=1;g=f.length;for(var h=0,l=1;e= 0",{fileName:"C:/Program Files/Stencyl/plaf/haxe/lib/polygonal-ds/2,0,0/src/polygonal/ds/tools/ArrayTools.hx",lineNumber:37,className:"polygonal.ds.tools.ArrayTools",methodName:"alloc"});a=Array(a);for(var b=0,d=this.mKeys,f=this.mVals,e=0,g=this.capacity;e 0",{fileName:"C:/Program Files/Stencyl/plaf/haxe/lib/polygonal-ds/2,0,0/src/polygonal/ds/IntHashSet.hx",lineNumber:138,className:"polygonal.ds.IntHashSet",methodName:"new"});Da._assert(0b?2:b;this.slotCount=a;this.mMask=a-1;this.mHash=Jb.init(Array(a),-1);this.mData=Array(this.capacity<<1);this.mNext=Array(this.capacity);b=1;a=this.mData;for(var c=0,f=this.capacity;cb?a:b;a=this.mData;b=0;for(var d=this.mHash,f,e=Array(this.capacity<<1),g=0,h=this.slotCount;g>1,this.mNext[a]=this.mFree,this.mFree=a,f[d]=-2147483648,f[d+1]=-1,this.mSize--,!0;b=!1;var e=d;for(d=f[d+1];-1!=d;){if(f[d]==a){b=!0;break}e=d;d=f[e+1]}return b?(f[e+1]=f[d+1],a=d>>1,this.mNext[a]=this.mFree,this.mFree=a,f[d]=-2147483648,f[d+1]=-1,--this.mSize,!0):!1},get_size:function(){return this.mSize},free:function(){this.mNext= this.mData=this.mHash=null;null!=this.mIterator&&(this.mIterator.free(),this.mIterator=null)},contains:function(a){Da._assert(-2147483648!=a,"value 0x80000000 is reserved(val != VAL_ABSENT)",{fileName:"C:/Program Files/Stencyl/plaf/haxe/lib/polygonal-ds/2,0,0/src/polygonal/ds/IntHashSet.hx",lineNumber:467,className:"polygonal.ds.IntHashSet",methodName:"has"});var b=this.mHash[73856093*a&this.mMask];if(-1==b)return!1;var d=this.mData;if(d[b]==a)return!0;var f=!1;for(b=d[b+1];-1!=b;){if(d[b]==a){f= !0;break}b=d[b+1]}return f},remove:function(a){var b=73856093*a&this.mMask,d=this.mHash[b];if(-1==d)return!1;var f=this.mData;if(a==f[d])return this.mHash[b]=-1==f[d+1]?-1:f[d+1],a=d>>1,this.mNext[a]=this.mFree,this.mFree=a,f[d]=-2147483648,f[d+1]=-1,this.mSize--,!0;b=!1;var e=d;for(d=f[d+1];-1!=d;){if(f[d]==a){b=!0;break}e=d;d=f[e+1]}return b?(f[e+1]=f[d+1],a=d>>1,this.mNext[a]=this.mFree,this.mFree=a,f[d]=-2147483648,f[d+1]=-1,--this.mSize,!0):!1},clear:function(a){a=this.mHash;for(var b=0,d=this.slotCount;b< d;){var f=b++;a[f]=-1}b=1;a=this.mData;d=0;for(f=this.capacity;d= 0",{fileName:"C:/Program Files/Stencyl/plaf/haxe/lib/polygonal-ds/2,0,0/src/polygonal/ds/tools/ArrayTools.hx", lineNumber:37,className:"polygonal.ds.tools.ArrayTools",methodName:"alloc"});a=Array(a);for(var b=0,d,f=this.mData,e=0,g=this.capacity;e 0",{fileName:"C:/Program Files/Stencyl/plaf/haxe/lib/polygonal-ds/2,0,0/src/polygonal/ds/IntHashTable.hx", lineNumber:158,className:"polygonal.ds.IntHashTable",methodName:"new"});-1==b&&(b=a);this.mMinCapacity=this.capacity=2>b?2:b;this.mH=new Pg(a,this.capacity);this.mVals=Array(this.capacity);this.mNext=Array(this.capacity);this.mKeys=Jb.init(Array(this.capacity),-2147483648,0,this.capacity);a=this.mNext;b=0;for(var c=this.capacity-1;b %s\n"; f=[];for(e=this.keys();e.hasNext();){var g=e.next();f.push(g)}f.sort(function(a,b){return a-b});e=1;g=f.length;for(var h=0,l=1;e= 0",{fileName:"C:/Program Files/Stencyl/plaf/haxe/lib/polygonal-ds/2,0,0/src/polygonal/ds/tools/ArrayTools.hx",lineNumber:37,className:"polygonal.ds.tools.ArrayTools",methodName:"alloc"});a=Array(a);for(var b=0,d=this.mKeys,f=this.mVals,e=0,g=this.capacity;e 0",{fileName:"C:/Program Files/Stencyl/plaf/haxe/lib/polygonal-ds/2,0,0/src/polygonal/ds/IntIntHashTable.hx",lineNumber:156,className:"polygonal.ds.IntIntHashTable",methodName:"new"});Da._assert(0= 2)",{fileName:"C:/Program Files/Stencyl/plaf/haxe/lib/polygonal-ds/2,0,0/src/polygonal/ds/IntIntHashTable.hx",lineNumber:163,className:"polygonal.ds.IntIntHashTable",methodName:"new"}),Da._assert(0= 0",{fileName:"C:/Program Files/Stencyl/plaf/haxe/lib/polygonal-ds/2,0,0/src/polygonal/ds/tools/ArrayTools.hx",lineNumber:37,className:"polygonal.ds.tools.ArrayTools",methodName:"alloc"});a=Array(a);for(var b=0,d=this.mData,f=0,e=this.capacity;f %s\n";f=[];for(e=this.keys();e.hasNext();){var g=e.next();f.push(g)}f.sort(function(a,b){return a-b});e=1;g=f.length;for(var h=0,l=1;eb?a:b;a=this.mData;b=0;for(var d=this.mHash,f=Array(3*this.capacity),e=2,g=0,h=this.capacity;g= 0",{fileName:"C:/Program Files/Stencyl/plaf/haxe/lib/polygonal-ds/2,0,0/src/polygonal/ds/tools/ArrayTools.hx",lineNumber:37,className:"polygonal.ds.tools.ArrayTools",methodName:"alloc"});a=Array(a);for(var b=0,d,f=this.mData,e=0,g=this.capacity;ea?1:a;null!=b&&(this.capacity=b.length);this.mData=Array(this.capacity);if(null!=b)for(a=0;athis.capacity&&(this.capacity=a,this.resizeContainer(a));return this},pack:function(){if(this.capacity>this.mInitialCapacity){var a=this.mInitialCapacity,b=this.mSize;this.capacity=a>b?a:b;this.resizeContainer(this.capacity)}else{a=this.mData; b=this.mSize;for(var d=this.capacity;b 0)",{fileName:"C:/Program Files/Stencyl/plaf/haxe/lib/polygonal-ds/2,0,0/src/polygonal/ds/ListSet.hx", lineNumber:430,className:"polygonal.ds.ListSetIterator",methodName:"remove"});this.mData[this.mI]=this.mData[--this.mS]},__class__:Sl};var db=function(){};k["polygonal.ds.Printf"]=db;db.__name__="polygonal.ds.Printf";db.init=function(){db._padChars=Array(40);db._padChars[0]=aa.rpad("","0",0);db._padChars[1]=aa.rpad("","0",1);db._padChars[2]=aa.rpad("","0",2);db._padChars[3]=aa.rpad("","0",3);db._padChars[4]=aa.rpad("","0",4);db._padChars[5]=aa.rpad("","0",5);db._padChars[6]=aa.rpad("","0",6);db._padChars[7]= aa.rpad("","0",7);db._padChars[8]=aa.rpad("","0",8);db._padChars[9]=aa.rpad("","0",9);db._padChars[10]=aa.rpad("","0",10);db._padChars[11]=aa.rpad("","0",11);db._padChars[12]=aa.rpad("","0",12);db._padChars[13]=aa.rpad("","0",13);db._padChars[14]=aa.rpad("","0",14);db._padChars[15]=aa.rpad("","0",15);db._padChars[16]=aa.rpad("","0",16);db._padChars[17]=aa.rpad("","0",17);db._padChars[18]=aa.rpad("","0",18);db._padChars[19]=aa.rpad("","0",19);for(var a=0;20>a;){var b=a++;db._padChars[b+20]=aa.rpad("", " ",b)}db._tmp=Array(64)};db.format=function(a,b){db._initialized||(db._initialized=!0,db.init());var c=new Wc,f=0,e=[],g=0;for(a=db.tokenize(a,e);g b.length-1)throw new F(new Jh("argument index out of range"));var m=b[h.pos]}else m=b[f++];null==m&&(m="null");switch(l._hx_index){case 0:switch(l.type._hx_index){case 0:db.formatCharacter(m,h,c);break;case 1:db.formatSignedDecimal(m,h,c);break;case 2:db.formatUnsignedDecimal(m,h,c);break;case 3:db.formatOctal(m,h,c);break;case 4:db.formatHexadecimal(m,h,c);break;case 5:db.formatBinary(m,h,c)}break;case 1:switch(l.floatType._hx_index){case 0:db.formatFloat(m,h,c);break;case 1:db.formatScientific(m, h,c);break;case 2:db.formatNaturalFloat(m,h,c)}break;case 2:db.formatString(m,h,c);break;case 3:throw new F(new Jh("specifier 'p' is not supported"));case 4:throw new F(new Jh("specifier 'n' is not supported"));}break;case 2:h=l.name;if(!Object.prototype.hasOwnProperty.call(b[0],h))throw new F(new Jh('no field named "'+h+'" found'));c.b+=N.string(N.string(Y.field(b[0],h)));++f;break;case 3:throw new F(new Jh("Invalid format specifier."));}}return c.b};db.tokenize=function(a,b){for(var c=0,f,e=0,g= new Wc,h=a.length;c=f;)switch(f){case 32:f=a.charCodeAt(c++);l.flags|=1<=f){for(var m=0;48<=f&&57>=f;)m=f-48+10*m,f= a.charCodeAt(c++);l.width=m;if(36==f)if(l.pos=m-1,l.width=-1,f=a.charCodeAt(c++),42==f)l.width=null,f=a.charCodeAt(c++);else if(48<=f&&57>=f){for(m=0;48<=f&&57>=f;)m=f-48+10*m,f=a.charCodeAt(c++);l.width=m}}if(46==f)if(f=a.charCodeAt(c++),42==f)l.precision=null,f=a.charCodeAt(c++);else{m=0;if(48<=f&&57>=f)for(;48<=f&&57>=f;)m=f-48+10*m,f=a.charCodeAt(c++);l.precision=m}a:for(;76<=f&&108>=f;)switch(f){case 76:f=a.charCodeAt(c++);l.flags|=1<=f){switch(f){case 69:l.flags|=1<>>=1,0h)for(var l=0,m=e-h;lh&&(h=e);if(g>h)for(e=0,b=g-h;el&&(l=e);0!=(c&1<l)if(0!=(c&1<h)for(c=0,e-=h;c>>=3,0h){c=0;for(var l=e-h;ch&&(h=e);if(g>h)for(b=0,e=g-h;bl&&(l= e);if(g>l)if(0!=(c&1<h)for(g=0,e-=h;g>>=4,0h)for(var l=0,m=e-h;lm?String.fromCodePoint(48+m):String.fromCodePoint(l+(m-10)),d.b+=N.string(m);0!=(c&1<h&&(h=e);if(g>h)for(b=0,a=g-h;bl&&(l=e);0!=(c&1<l)if(0!=(c&1<h)for(g=0,e-=h;ge?String.fromCodePoint(48+e):String.fromCodePoint(c+(e-10)),d.b+=N.string(e)}};db.formatSignedDecimal=function(a,b,d){var c=b.flags,e=b.precision,g=b.width;if(0!=e||0!=a){0!=(c&1<a?-a:a);var h=b.length,l=0>a?"-":0!=(c& 1<h)for(c=0,l=e-h;ch&&(h=e);h+=a?1:0;if(g>h)for(e=0,b=g-h;em&&(m=e);if(g>m)if(0!=(c&1<h)for(c= 0,e-=h;cc){var h=0;for(e=g-c;hc&&(c=g);if(b>c)for(a=0,c=b-c;ah&&(h=g);if(b>h)if(0!=(e&1<c)for(b= 0,c=g-c;ba?-1:0,a=m.abs(a),l=m.floor(Math.log(a)/2.302585092994046),a/=m.pow(10, l),m=m.pow(.1,e),a=Math.round(a/m)*m;0!=a&&(h+=A.substr(null==a?"null":""+a,0,e+2));h+=0!=(c&1<l?-l:l);m=db.DEFAULT_NUM_EXP_DIGITS-a.length;if(!(1>m)){if(30b))){if(30a;0==e?(a=N.string(Math.round(a)),0!=(c&1<h)for(a=0,b-=h;ah)if(0!=(c&1<b)return a;if(30= 0",{fileName:"C:/Program Files/Stencyl/plaf/haxe/lib/polygonal-ds/2,0,0/src/polygonal/ds/tools/ArrayTools.hx", lineNumber:37,className:"polygonal.ds.tools.ArrayTools",methodName:"alloc"});return Array(a)};qe.trim=function(a,b){a.length>b&&(a.length=b);return a};qe.swap=function(a,b,d){Da._assert(null!=a,"array != null",{fileName:"C:/Program Files/Stencyl/plaf/haxe/lib/polygonal-ds/2,0,0/src/polygonal/ds/tools/ArrayTools.hx",lineNumber:94,className:"polygonal.ds.tools.ArrayTools",methodName:"swap"});Da._assert(0<=b&&b=f?a.length:d+f;Da._assert(0<=d&&d= 0 && min < a.length",{fileName:"C:/Program Files/Stencyl/plaf/haxe/lib/polygonal-ds/2,0,0/src/polygonal/ds/tools/ArrayTools.hx",lineNumber:129,className:"polygonal.ds.tools.ArrayTools",methodName:"init"});for(Da._assert(f<=a.length,"max <= a.length",{fileName:"C:/Program Files/Stencyl/plaf/haxe/lib/polygonal-ds/2,0,0/src/polygonal/ds/tools/ArrayTools.hx", lineNumber:130,className:"polygonal.ds.tools.ArrayTools",methodName:"init"});df)for(d=b,b=0;b= 0 && min < a.length",{fileName:"C:/Program Files/Stencyl/plaf/haxe/lib/polygonal-ds/2,0,0/src/polygonal/ds/tools/ArrayTools.hx",lineNumber:238, className:"polygonal.ds.tools.ArrayTools",methodName:"binarySearchCmp"});Da._assert(f>1),0>e(a[c],b)?d=c+1:h=c;return d<=f&&0==e(a[d],b)?d:~d};qe.binarySearchf=function(a,b,d,f){Da._assert(null!=a,"a != null",{fileName:"C:/Program Files/Stencyl/plaf/haxe/lib/polygonal-ds/2,0,0/src/polygonal/ds/tools/ArrayTools.hx", lineNumber:265,className:"polygonal.ds.tools.ArrayTools",methodName:"binarySearchf"});Da._assert(0<=d&&d= 0 && min < a.length",{fileName:"C:/Program Files/Stencyl/plaf/haxe/lib/polygonal-ds/2,0,0/src/polygonal/ds/tools/ArrayTools.hx",lineNumber:266,className:"polygonal.ds.tools.ArrayTools",methodName:"binarySearchf"});Da._assert(f>1),a[c]= 0 && min < a.length",{fileName:"C:/Program Files/Stencyl/plaf/haxe/lib/polygonal-ds/2,0,0/src/polygonal/ds/tools/ArrayTools.hx", lineNumber:294,className:"polygonal.ds.tools.ArrayTools",methodName:"binarySearchi"});Da._assert(f>1),a[c]=a.length,"insufficient random values(rvals.length >= a.length)",{fileName:"C:/Program Files/Stencyl/plaf/haxe/lib/polygonal-ds/2,0,0/src/polygonal/ds/tools/ArrayTools.hx",lineNumber:335,className:"polygonal.ds.tools.ArrayTools",methodName:"shuffle"}),f=0;1<--c;){var e=b[f++]*c|0,g=a[c];a[c]=a[e];a[e]=g}};qe.sortRange= function(a,b,d,f,e){var c=a.length;if(1= 0 && first <= k - 1 && first + n <= k)",{fileName:"C:/Program Files/Stencyl/plaf/haxe/lib/polygonal-ds/2,0,0/src/polygonal/ds/tools/ArrayTools.hx",lineNumber:361,className:"polygonal.ds.tools.ArrayTools",methodName:"sortRange"}),Da._assert(0<=e&&e<=c,"n out of range(n >= 0 && n <= k)",{fileName:"C:/Program Files/Stencyl/plaf/haxe/lib/polygonal-ds/2,0,0/src/polygonal/ds/tools/ArrayTools.hx",lineNumber:362, className:"polygonal.ds.tools.ArrayTools",methodName:"sortRange"}),d)for(d=f+1,e=f+e;df;){var l=a[h-1];if(0>1);d=b+d-1;var m=a[b],k=a[l],q=a[d],n=f(m,q);l=0>n&&0>f(m,k)?0>f(k,q)?l:d:0>f(k,m)&&0>f(k,q)?0>n?b:d:0>f(q,m)?l:b;d=a[l];for(a[l]=a[b];gf(d,a[h])&&g= -3)", {fileName:"C:/Program Files/Stencyl/plaf/haxe/lib/polygonal-ds/2,0,0/src/polygonal/ds/tools/GrowthRate.hx",lineNumber:52,className:"polygonal.ds.tools.GrowthRate",methodName:"compute"});if(0>1)+1;break;case -1:a=b+1;b=(a>>3)+(9>a?3:6)+a;break;case 0:throw new F("out of space");}return b};var Jb=function(){};k["polygonal.ds.tools.NativeArrayTools"]=Jb;Jb.__name__="polygonal.ds.tools.NativeArrayTools";Jb.alloc=function(a){return Array(a)};Jb.get= function(a,b){return a[b]};Jb.set=function(a,b,d){a[b]=d};Jb.size=function(a){return a.length};Jb.toArray=function(a,b,d,f){Da._assert(0<=b&&b= 0 && first < size(src))",{fileName:"C:/Program Files/Stencyl/plaf/haxe/lib/polygonal-ds/2,0,0/src/polygonal/ds/tools/NativeArrayTools.hx",lineNumber:138,className:"polygonal.ds.tools.NativeArrayTools",methodName:"toArray"});Da._assert(0<=d&&b+d<=a.length,"len out of range(len >= 0 && first + len <= size(src))",{fileName:"C:/Program Files/Stencyl/plaf/haxe/lib/polygonal-ds/2,0,0/src/polygonal/ds/tools/NativeArrayTools.hx", lineNumber:139,className:"polygonal.ds.tools.NativeArrayTools",methodName:"toArray"});if(0==d)return[];Da._assert(0<=d,"len >= 0",{fileName:"C:/Program Files/Stencyl/plaf/haxe/lib/polygonal-ds/2,0,0/src/polygonal/ds/tools/ArrayTools.hx",lineNumber:37,className:"polygonal.ds.tools.ArrayTools",methodName:"alloc"});f=Array(d);if(0==b)for(b=0;bf)for(d=b,b=0;b=d?a.length:b+d;Da._assert(0<=b&&b= 0 && min < size(dst)",{fileName:"C:/Program Files/Stencyl/plaf/haxe/lib/polygonal-ds/2,0,0/src/polygonal/ds/tools/NativeArrayTools.hx",lineNumber:291,className:"polygonal.ds.tools.NativeArrayTools",methodName:"zero"});for(Da._assert(d<= a.length,"max <= size(dst)",{fileName:"C:/Program Files/Stencyl/plaf/haxe/lib/polygonal-ds/2,0,0/src/polygonal/ds/tools/NativeArrayTools.hx",lineNumber:292,className:"polygonal.ds.tools.NativeArrayTools",methodName:"zero"});b=f?a.length:d+f;Da._assert(0<=d&&d= 0 && min < size(a)",{fileName:"C:/Program Files/Stencyl/plaf/haxe/lib/polygonal-ds/2,0,0/src/polygonal/ds/tools/NativeArrayTools.hx",lineNumber:313, className:"polygonal.ds.tools.NativeArrayTools",methodName:"init"});for(Da._assert(f<=a.length,"max <= size(a)",{fileName:"C:/Program Files/Stencyl/plaf/haxe/lib/polygonal-ds/2,0,0/src/polygonal/ds/tools/NativeArrayTools.hx",lineNumber:314,className:"polygonal.ds.tools.NativeArrayTools",methodName:"init"});d=d?a.length:b+d;Da._assert(0<=b&&b= 0 && min < size(a)",{fileName:"C:/Program Files/Stencyl/plaf/haxe/lib/polygonal-ds/2,0,0/src/polygonal/ds/tools/NativeArrayTools.hx", lineNumber:329,className:"polygonal.ds.tools.NativeArrayTools",methodName:"nullify"});for(Da._assert(d<=a.length,"max <= size(a)",{fileName:"C:/Program Files/Stencyl/plaf/haxe/lib/polygonal-ds/2,0,0/src/polygonal/ds/tools/NativeArrayTools.hx",lineNumber:330,className:"polygonal.ds.tools.NativeArrayTools",methodName:"nullify"});b= 0 && min < size(a)",{fileName:"C:/Program Files/Stencyl/plaf/haxe/lib/polygonal-ds/2,0,0/src/polygonal/ds/tools/NativeArrayTools.hx", lineNumber:351,className:"polygonal.ds.tools.NativeArrayTools",methodName:"binarySearchCmp"});Da._assert(f>1),0>e(a[c],b)?d=c+1:h=c;return d<=f&&0==e(a[d],b)?d:~d};Jb.binarySearchf=function(a,b,d,f){Da._assert(null!=a,"a != null",{fileName:"C:/Program Files/Stencyl/plaf/haxe/lib/polygonal-ds/2,0,0/src/polygonal/ds/tools/NativeArrayTools.hx", lineNumber:377,className:"polygonal.ds.tools.NativeArrayTools",methodName:"binarySearchf"});Da._assert(0<=d&&d= 0 && min < size(a)",{fileName:"C:/Program Files/Stencyl/plaf/haxe/lib/polygonal-ds/2,0,0/src/polygonal/ds/tools/NativeArrayTools.hx",lineNumber:378,className:"polygonal.ds.tools.NativeArrayTools",methodName:"binarySearchf"});Da._assert(f>1),a[c]= 0 && min < size(a)",{fileName:"C:/Program Files/Stencyl/plaf/haxe/lib/polygonal-ds/2,0,0/src/polygonal/ds/tools/NativeArrayTools.hx", lineNumber:405,className:"polygonal.ds.tools.NativeArrayTools",methodName:"binarySearchi"});Da._assert(f>1),a[c]a.actor.getScreenX()&&(a.actor.setX(b.getScreenX()),a.actor.setXVelocity(0)), 0>a.actor.getScreenY()&&(a.actor.setY(b.getScreenY()),a.actor.setYVelocity(0)),a.actor.getScreenX()+a.actor.getWidth()>b.getScreenWidth()&&(a.actor.setX(b.getScreenX()+(b.getScreenWidth()-a.actor.getWidth())),a.actor.setXVelocity(0)),a.actor.getScreenY()+a.actor.getHeight()>b.getScreenHeight()&&(a.actor.setY(b.getScreenY()+(b.getScreenHeight()-a.actor.getHeight())),a.actor.setYVelocity(0)))})},forwardMessage:function(a){},__class__:Ev});var Fv=function(a,b,d){w.call(this,b);a=this.nameMap;null!=v.Actor? a.setReserved("Actor","actor"):a.h.Actor="actor";a=this.nameMap;null!=v.Grabbed?a.setReserved("Grabbed","_Grabbed"):a.h.Grabbed="_Grabbed";this._Grabbed=!1;a=this.nameMap;null!=v["X Offset"]?a.setReserved("X Offset","_XOffset"):a.h["X Offset"]="_XOffset";this._XOffset=0;a=this.nameMap;null!=v["Y Offset"]?a.setReserved("Y Offset","_YOffset"):a.h["Y Offset"]="_YOffset";this._YOffset=0;a=this.nameMap;null!=v["Old X"]?a.setReserved("Old X","_OldX"):a.h["Old X"]="_OldX";this._OldX=0;a=this.nameMap;null!= v["Old Y"]?a.setReserved("Old Y","_OldY"):a.h["Old Y"]="_OldY";this._OldY=0;a=this.nameMap;null!=v["Cannot Exit Screen"]?a.setReserved("Cannot Exit Screen","_CannotExitScreen"):a.h["Cannot Exit Screen"]="_CannotExitScreen";this._CannotExitScreen=!0};k["scripts.Design_5_5_DragandDrop"]=Fv;Fv.__name__="scripts.Design_5_5_DragandDrop";Fv.__super__=w;Fv.prototype=r(w.prototype,{_Grabbed:null,_XOffset:null,_YOffset:null,_OldX:null,_OldY:null,_CannotExitScreen:null,init:function(){var a=this;this.actor.makeAlwaysSimulate(); this.addWhenUpdatedListener(null,function(c,d){a.wrapper.enabled&&(a._Grabbed?(b.isMouseDown()&&(a._CannotExitScreen?(a.actor.setX(b.getScreenX()+Math.max(0,Math.min(b.getScreenWidth()-a.actor.getWidth(),b.getMouseX()+a._XOffset))),a.actor.setY(b.getScreenY()+Math.max(0,Math.min(b.getScreenHeight()-a.actor.getHeight(),b.getMouseY()+a._YOffset)))):(a.actor.setX(b.getScreenX()+b.getMouseX()+a._XOffset),a.actor.setY(b.getScreenY()+b.getMouseY()+a._YOffset)),a.actor.setVelocity(0,0),a.actor.setAngularVelocity(0)), b.isMouseReleased()&&(a._Grabbed=!1)):a.actor.isMousePressed()&&(c=a.actor.getX(),d=b.getScreenX()+b.getMouseX(),a._XOffset=c-d,c=a.actor.getY(),d=b.getScreenY()+b.getMouseY(),a._YOffset=c-d,c=b.getScreenX(),d=b.getMouseX(),a._OldX=c+d,c=b.getScreenY(),d=b.getMouseY(),a._OldY=c+d,a._Grabbed=!0))});this.addWhenDrawingListener(null,function(c,d,f,e){if(a.wrapper.enabled&&a._Grabbed&&(b.sceneHasBehavior("Game Debugger")?(d=b.getValueForScene("Game Debugger","_Enabled"),d=1==d?!0:"true"==d):d=!1,d)){c.strokeColor= b.getValueForScene("Game Debugger","_CustomColor");d=b.getValueForScene("Game Debugger","_StrokeThickness");c.strokeSize=(null==d?0:"number"==typeof d?S.__cast(d,Rv):"number"==typeof d&&(d|0)===d?S.__cast(d,Ci):"boolean"==typeof d?S.__cast(d,Sv)?1:0:"string"==typeof d?parseFloat(d):parseFloat(N.string(d)))|0;c.drawActor=!1;c.actor=null;c.x=0;c.y=0;d=a._OldX-b.getScreenX();f=a._OldY-b.getScreenY();e=b.getMouseX();var g=b.getMouseY();d*=c.scaleX;f*=c.scaleY;e*=c.scaleX;g*=c.scaleY;!c.drawActor||null!= c.actor&&c.actor.isHUD||(c.x-=m.cameraX,c.y-=m.cameraY);0==c.strokeSize?c.graphics.lineStyle():c.graphics.lineStyle(c.strokeSize*m.SCALE,c.strokeColor,c.alpha);c.graphics.moveTo(c.x+d,c.y+f);c.graphics.lineTo(c.x+e,c.y+g);c.drawActor&&!c.actor.isHUD&&(c.x+=m.cameraX,c.y+=m.cameraY);c.graphics.lineStyle()}})},forwardMessage:function(a){},__class__:Fv});var cx=function(){};k["scripts.MyScripts"]=cx;cx.__name__="scripts.MyScripts";var Gv=function(a,b,d){w.call(this,b);this.addWhenUpdatedListener(null, x(this,this.onUpdate));this.addWhenDrawingListener(null,x(this,this.onDraw))};k["scripts.SaveScreenshot"]=Gv;Gv.__name__="scripts.SaveScreenshot";Gv.__super__=w;Gv.prototype=r(w.prototype,{init:function(){},update:function(a){},draw:function(a){},onUpdate:function(a,b){},onDraw:function(a,b,d,f){},__class__:Gv});var Hv=function(a,c){b.call(this)};k["scripts.SceneEvents_0"]=Hv;Hv.__name__="scripts.SceneEvents_0";Hv.__super__=Df;Hv.prototype=r(Df.prototype,{init:function(){var a=this;b.stopAllSounds(); b.loopSound(b.getSound(419));this.addMousePressedListener(function(c){a.wrapper.enabled&&b.switchScene(lb.get().scenes.h[1].getID(),null,b.createCrossfadeTransition(.5))})},forwardMessage:function(a){},__class__:Hv});var Iv=function(a,c){b.call(this)};k["scripts.SceneEvents_1"]=Iv;Iv.__name__="scripts.SceneEvents_1";Iv.__super__=Df;Iv.prototype=r(Df.prototype,{init:function(){var a=this;this.addMousePressedListener(function(c){a.wrapper.enabled&&(b.getActor(1).isMouseDown()?(b.setGameAttribute("character", 0),b.switchScene(lb.get().scenes.h[2].getID(),null,b.createCrossfadeTransition(.5))):b.getLastCreatedActor().isMouseDown()&&(b.setGameAttribute("character",1),b.switchScene(lb.get().scenes.h[3].getID(),null,b.createCrossfadeTransition(.5))))})},forwardMessage:function(a){},__class__:Iv});var Jv=function(a,c){b.call(this);a=this.nameMap;null!=v.hairNum?a.setReserved("hairNum","_hairNum"):a.h.hairNum="_hairNum";this._hairNum=0};k["scripts.SceneEvents_2"]=Jv;Jv.__name__="scripts.SceneEvents_2";Jv.__super__= Df;Jv.prototype=r(Df.prototype,{_hairNum:null,init:function(){var a=this;b.stopAllSounds();b.loopSound(b.getSound(420));b.runLater(0,function(c){a.wrapper.enabled&&(b.hideTileLayer(b.engine.getLayerByName("finalButtons")),b.setGameAttribute("stage",1),b.createRecycledActorOnLayer(b.getActorType(0),0,0,b.engine.getLayerByName("Layer 0")),b.createRecycledActorOnLayer(b.getActorType(4),0,0,b.engine.getLayerByName("hair1")),b.createRecycledActorOnLayer(b.getActorType(6),0,0,b.engine.getLayerByName("hair2")), b.createRecycledActorOnLayer(b.getActorType(8),0,0,b.engine.getLayerByName("hair3")),b.createRecycledActorOnLayer(b.getActorType(10),0,0,b.engine.getLayerByName("hair4")),b.createRecycledActorOnLayer(b.getActorType(57),0,0,b.engine.getLayerByName("hair5")),b.createRecycledActorOnLayer(b.getActorType(59),0,0,b.engine.getLayerByName("hair6")),b.hideTileLayer(b.engine.getLayerByName("hair2")),b.hideTileLayer(b.engine.getLayerByName("hair3")),b.hideTileLayer(b.engine.getLayerByName("hair4")),b.hideTileLayer(b.engine.getLayerByName("hair5")), b.hideTileLayer(b.engine.getLayerByName("hair6")),b.hideTileLayer(b.engine.getLayerByName("eyeControls")),b.hideTileLayer(b.engine.getLayerByName("eyeControlsJulie")),b.createRecycledActorOnLayer(b.getActorType(61),0,0,b.engine.getLayerByName("eye1")),b.createRecycledActorOnLayer(b.getActorType(63),0,0,b.engine.getLayerByName("eye2")),b.createRecycledActorOnLayer(b.getActorType(65),0,0,b.engine.getLayerByName("eye3")),b.createRecycledActorOnLayer(b.getActorType(67),0,0,b.engine.getLayerByName("eye4")), b.createRecycledActorOnLayer(b.getActorType(69),0,0,b.engine.getLayerByName("eye5")),b.createRecycledActorOnLayer(b.getActorType(71),0,0,b.engine.getLayerByName("eye6")),b.createRecycledActorOnLayer(b.getActorType(73),0,0,b.engine.getLayerByName("eye7")),b.createRecycledActorOnLayer(b.getActorType(75),0,0,b.engine.getLayerByName("eye8")),b.createRecycledActorOnLayer(b.getActorType(77),0,0,b.engine.getLayerByName("eye9")),b.createRecycledActorOnLayer(b.getActorType(79),0,0,b.engine.getLayerByName("eye10")), b.hideTileLayer(b.engine.getLayerByName("eye1")),b.hideTileLayer(b.engine.getLayerByName("eye2")),b.hideTileLayer(b.engine.getLayerByName("eye3")),b.hideTileLayer(b.engine.getLayerByName("eye4")),b.hideTileLayer(b.engine.getLayerByName("eye5")),b.hideTileLayer(b.engine.getLayerByName("eye6")),b.hideTileLayer(b.engine.getLayerByName("eye7")),b.hideTileLayer(b.engine.getLayerByName("eye8")),b.hideTileLayer(b.engine.getLayerByName("eye9")),b.hideTileLayer(b.engine.getLayerByName("eye10")),b.hideTileLayer(b.engine.getLayerByName("eyelashControls")), b.hideTileLayer(b.engine.getLayerByName("eyelashControlsJulie")),b.hideTileLayer(b.engine.getLayerByName("eye1checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye2checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye3checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye4checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye5checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye6checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye7checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye8checkmark")), b.hideTileLayer(b.engine.getLayerByName("eye9checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye10checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash1checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash2checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash3checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash4checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash5checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash6checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash7checkmark")), b.hideTileLayer(b.engine.getLayerByName("eyelash8checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash9checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash10checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek3-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3checkmark")), b.hideTileLayer(b.engine.getLayerByName("lip1checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip2checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip3checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip4checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip5checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip6checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip7checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip8checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory1checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory2checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory3checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory4checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory5checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory6checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory7checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory8checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory9checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory10checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory11checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory12checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory13checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory14checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory15checkmark")),b.setGameAttribute("hairNum",1),b.setGameAttribute("eyeNum",0),b.createRecycledActorOnLayer(b.getActorType(115), 0,0,b.engine.getLayerByName("eyelash1")),b.createRecycledActorOnLayer(b.getActorType(117),0,0,b.engine.getLayerByName("eyelash2")),b.createRecycledActorOnLayer(b.getActorType(93),0,0,b.engine.getLayerByName("eyelash3")),b.createRecycledActorOnLayer(b.getActorType(95),0,0,b.engine.getLayerByName("eyelash4")),b.createRecycledActorOnLayer(b.getActorType(97),0,0,b.engine.getLayerByName("eyelash5")),b.createRecycledActorOnLayer(b.getActorType(119),0,0,b.engine.getLayerByName("eyelash6")),b.createRecycledActorOnLayer(b.getActorType(121), 0,0,b.engine.getLayerByName("eyelash7")),b.createRecycledActorOnLayer(b.getActorType(123),0,0,b.engine.getLayerByName("eyelash8")),b.createRecycledActorOnLayer(b.getActorType(125),0,0,b.engine.getLayerByName("eyelash9")),b.createRecycledActorOnLayer(b.getActorType(127),0,0,b.engine.getLayerByName("eyelash10")),b.hideTileLayer(b.engine.getLayerByName("eyelash1")),b.hideTileLayer(b.engine.getLayerByName("eyelash2")),b.hideTileLayer(b.engine.getLayerByName("eyelash3")),b.hideTileLayer(b.engine.getLayerByName("eyelash4")), b.hideTileLayer(b.engine.getLayerByName("eyelash5")),b.hideTileLayer(b.engine.getLayerByName("eyelash6")),b.hideTileLayer(b.engine.getLayerByName("eyelash7")),b.hideTileLayer(b.engine.getLayerByName("eyelash8")),b.hideTileLayer(b.engine.getLayerByName("eyelash9")),b.hideTileLayer(b.engine.getLayerByName("eyelash10")),b.hideTileLayer(b.engine.getLayerByName("eye10checkmark")),b.setGameAttribute("eyelash",0),b.hideTileLayer(b.engine.getLayerByName("cheekControlPanel")),b.hideTileLayer(b.engine.getLayerByName("bottomButtons")), b.createRecycledActorOnLayer(b.getActorType(171),0,0,b.engine.getLayerByName("cheek1-1")),b.createRecycledActorOnLayer(b.getActorType(173),0,0,b.engine.getLayerByName("cheek1-2")),b.createRecycledActorOnLayer(b.getActorType(175),0,0,b.engine.getLayerByName("cheek1-3")),b.createRecycledActorOnLayer(b.getActorType(177),0,0,b.engine.getLayerByName("cheek2-1")),b.createRecycledActorOnLayer(b.getActorType(179),0,0,b.engine.getLayerByName("cheek2-2")),b.createRecycledActorOnLayer(b.getActorType(181),0, 0,b.engine.getLayerByName("cheek2-3")),b.createRecycledActorOnLayer(b.getActorType(183),0,0,b.engine.getLayerByName("cheek3-1")),b.createRecycledActorOnLayer(b.getActorType(185),0,0,b.engine.getLayerByName("cheek3-2")),b.createRecycledActorOnLayer(b.getActorType(187),0,0,b.engine.getLayerByName("cheek3-3")),b.createRecycledActorOnLayer(b.getActorType(189),0,0,b.engine.getLayerByName("cheek4-1")),b.createRecycledActorOnLayer(b.getActorType(191),0,0,b.engine.getLayerByName("cheek4-2")),b.createRecycledActorOnLayer(b.getActorType(193), 0,0,b.engine.getLayerByName("cheek4-3")),b.createRecycledActorOnLayer(b.getActorType(195),0,0,b.engine.getLayerByName("cheek5-1")),b.createRecycledActorOnLayer(b.getActorType(197),0,0,b.engine.getLayerByName("cheek5-2")),b.createRecycledActorOnLayer(b.getActorType(199),0,0,b.engine.getLayerByName("cheek5-3")),b.hideTileLayer(b.engine.getLayerByName("cheek1-1")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1")), b.hideTileLayer(b.engine.getLayerByName("cheek2-2")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2")), b.hideTileLayer(b.engine.getLayerByName("cheek5-3")),b.setGameAttribute("cheek",0),b.createRecycledActorOnLayer(b.getActorType(219),0,0,b.engine.getLayerByName("lip1")),b.hideTileLayer(b.engine.getLayerByName("lip1")),b.createRecycledActorOnLayer(b.getActorType(221),0,0,b.engine.getLayerByName("lip2")),b.hideTileLayer(b.engine.getLayerByName("lip2")),b.createRecycledActorOnLayer(b.getActorType(223),0,0,b.engine.getLayerByName("lip3")),b.hideTileLayer(b.engine.getLayerByName("lip3")),b.createRecycledActorOnLayer(b.getActorType(225), 0,0,b.engine.getLayerByName("lip4")),b.hideTileLayer(b.engine.getLayerByName("lip4")),b.createRecycledActorOnLayer(b.getActorType(227),0,0,b.engine.getLayerByName("lip5")),b.hideTileLayer(b.engine.getLayerByName("lip5")),b.createRecycledActorOnLayer(b.getActorType(229),0,0,b.engine.getLayerByName("lip6")),b.hideTileLayer(b.engine.getLayerByName("lip6")),b.createRecycledActorOnLayer(b.getActorType(231),0,0,b.engine.getLayerByName("lip7")),b.hideTileLayer(b.engine.getLayerByName("lip7")),b.createRecycledActorOnLayer(b.getActorType(233), 0,0,b.engine.getLayerByName("lip8")),b.hideTileLayer(b.engine.getLayerByName("lip8")),b.hideTileLayer(b.engine.getLayerByName("lipControls")),b.setGameAttribute("accessoryPage",0),b.hideTileLayer(b.engine.getLayerByName("accessoryControlPanel1")),b.hideTileLayer(b.engine.getLayerByName("accessoryControlPanel2")),b.hideTileLayer(b.engine.getLayerByName("accessoryControlPanel3")),b.hideTileLayer(b.engine.getLayerByName("accessoryControlArrows")),b.hideTileLayer(b.engine.getLayerByName("accessory1")), b.createRecycledActorOnLayer(b.getActorType(269),0,0,b.engine.getLayerByName("accessory2")),b.hideTileLayer(b.engine.getLayerByName("accessory2")),b.createRecycledActorOnLayer(b.getActorType(271),0,0,b.engine.getLayerByName("accessory3")),b.hideTileLayer(b.engine.getLayerByName("accessory3")),b.createRecycledActorOnLayer(b.getActorType(273),0,0,b.engine.getLayerByName("accessory4")),b.hideTileLayer(b.engine.getLayerByName("accessory4")),b.createRecycledActorOnLayer(b.getActorType(275),0,0,b.engine.getLayerByName("accessory5")), b.hideTileLayer(b.engine.getLayerByName("accessory5")),b.createRecycledActorOnLayer(b.getActorType(277),0,0,b.engine.getLayerByName("accessory6")),b.hideTileLayer(b.engine.getLayerByName("accessory6")),b.createRecycledActorOnLayer(b.getActorType(279),0,0,b.engine.getLayerByName("accessory7")),b.hideTileLayer(b.engine.getLayerByName("accessory7")),b.createRecycledActorOnLayer(b.getActorType(281),0,0,b.engine.getLayerByName("accessory8")),b.hideTileLayer(b.engine.getLayerByName("accessory8")),b.createRecycledActorOnLayer(b.getActorType(283), 0,0,b.engine.getLayerByName("accessory9")),b.hideTileLayer(b.engine.getLayerByName("accessory9")),b.createRecycledActorOnLayer(b.getActorType(285),0,0,b.engine.getLayerByName("accessory10")),b.hideTileLayer(b.engine.getLayerByName("accessory10")),b.createRecycledActorOnLayer(b.getActorType(287),0,0,b.engine.getLayerByName("accessory11")),b.hideTileLayer(b.engine.getLayerByName("accessory11")),b.createRecycledActorOnLayer(b.getActorType(289),0,0,b.engine.getLayerByName("accessory12")),b.hideTileLayer(b.engine.getLayerByName("accessory12")), b.createRecycledActorOnLayer(b.getActorType(291),0,0,b.engine.getLayerByName("accessory13")),b.hideTileLayer(b.engine.getLayerByName("accessory13")),b.createRecycledActorOnLayer(b.getActorType(293),0,0,b.engine.getLayerByName("accessory14")),b.hideTileLayer(b.engine.getLayerByName("accessory14")),b.createRecycledActorOnLayer(b.getActorType(295),0,0,b.engine.getLayerByName("accessory15")),b.hideTileLayer(b.engine.getLayerByName("accessory15")),b.createRecycledActorOnLayer(b.getActorType(297),0,0,b.engine.getLayerByName("cloth1")), b.createRecycledActorOnLayer(b.getActorType(299),0,0,b.engine.getLayerByName("cloth2")),b.createRecycledActorOnLayer(b.getActorType(301),0,0,b.engine.getLayerByName("cloth3")),b.createRecycledActorOnLayer(b.getActorType(303),0,0,b.engine.getLayerByName("cloth4")),b.createRecycledActorOnLayer(b.getActorType(305),0,0,b.engine.getLayerByName("cloth5")),b.createRecycledActorOnLayer(b.getActorType(307),0,0,b.engine.getLayerByName("cloth6")),b.hideTileLayer(b.engine.getLayerByName("cloth1")),b.hideTileLayer(b.engine.getLayerByName("cloth2")), b.hideTileLayer(b.engine.getLayerByName("cloth3")),b.hideTileLayer(b.engine.getLayerByName("cloth4")),b.hideTileLayer(b.engine.getLayerByName("cloth5")),b.hideTileLayer(b.engine.getLayerByName("cloth6")),b.hideTileLayer(b.engine.getLayerByName("clothControls")),b.createRecycledActorOnLayer(b.getActorType(309),0,0,b.engine.getLayerByName("background1")),b.hideTileLayer(b.engine.getLayerByName("background1")),b.createRecycledActorOnLayer(b.getActorType(311),0,0,b.engine.getLayerByName("background2")), b.hideTileLayer(b.engine.getLayerByName("background2")),b.createRecycledActorOnLayer(b.getActorType(313),0,0,b.engine.getLayerByName("background3")),b.hideTileLayer(b.engine.getLayerByName("background3")),b.createRecycledActorOnLayer(b.getActorType(315),0,0,b.engine.getLayerByName("background4")),b.hideTileLayer(b.engine.getLayerByName("background4")),b.createRecycledActorOnLayer(b.getActorType(317),0,0,b.engine.getLayerByName("background5")),b.hideTileLayer(b.engine.getLayerByName("background5")), b.createRecycledActorOnLayer(b.getActorType(319),0,0,b.engine.getLayerByName("background6")),b.hideTileLayer(b.engine.getLayerByName("background6")),b.hideTileLayer(b.engine.getLayerByName("cherryLogo")),b.createRecycledActorOnLayer(b.getActorType(423),0,0,b.engine.getLayerByName("menuHair")),b.createRecycledActorOnLayer(b.getActorType(425),0,0,b.engine.getLayerByName("menuEye")),b.createRecycledActorOnLayer(b.getActorType(427),0,0,b.engine.getLayerByName("menuEyelash")),b.createRecycledActorOnLayer(b.getActorType(431), 0,0,b.engine.getLayerByName("menuCheek")),b.createRecycledActorOnLayer(b.getActorType(429),0,0,b.engine.getLayerByName("menuLip")),b.createRecycledActorOnLayer(b.getActorType(433),0,0,b.engine.getLayerByName("menuAccessory")),b.createRecycledActorOnLayer(b.getActorType(435),0,0,b.engine.getLayerByName("menuCloth")),b.createRecycledActorOnLayer(b.getActorType(437),0,0,b.engine.getLayerByName("menuBackground")),b.showTileLayer(b.engine.getLayerByName("menuHair")),b.hideTileLayer(b.engine.getLayerByName("menuEye")), b.hideTileLayer(b.engine.getLayerByName("menuEyelash")),b.hideTileLayer(b.engine.getLayerByName("menuCheek")),b.hideTileLayer(b.engine.getLayerByName("menuLip")),b.hideTileLayer(b.engine.getLayerByName("menuAccessory")),b.hideTileLayer(b.engine.getLayerByName("menuCloth")),b.hideTileLayer(b.engine.getLayerByName("menuBackground")))},null);this.addMousePressedListener(function(c){a.wrapper.enabled&&(9==m.engine.getGameAttribute("stage")?b.getActor(165).isMouseDown()?(b.setGameAttribute("stage",1), b.setGameAttribute("accessory",0),b.hideTileLayer(b.engine.getLayerByName("finalButtons")),b.switchScene(lb.get().scenes.h[0].getID(),null,b.createCrossfadeTransition(.5))):b.getActor(166).isMouseDown()?(b.hideTileLayer(b.engine.getLayerByName("finalButtons")),b.setGameAttribute("stage",11)):b.getActor(167).isMouseDown()&&(b.showTileLayer(b.engine.getLayerByName("menuBackground")),b.setGameAttribute("stage",10),b.runLater(300,function(a){b.setGameAttribute("stage",8)},null),b.showTileLayer(b.engine.getLayerByName("menuBackground")), b.showTileLayer(b.engine.getLayerByName("clothControls")),b.hideTileLayer(b.engine.getLayerByName("cherryLogo")),b.hideTileLayer(b.engine.getLayerByName("finalButtons"))):11==m.engine.getGameAttribute("stage")&&(b.showTileLayer(b.engine.getLayerByName("finalButtons")),b.setGameAttribute("stage",9)))});this.addMousePressedListener(function(c){a.wrapper.enabled&&8==m.engine.getGameAttribute("stage")&&(b.getActor(162).isMouseDown()?1==m.engine.getGameAttribute("backgroundNum")?(b.hideTileLayer(b.engine.getLayerByName("background1")), b.showTileLayer(b.engine.getLayerByName("background2")),b.setGameAttribute("backgroundNum",2)):2==m.engine.getGameAttribute("backgroundNum")?(b.hideTileLayer(b.engine.getLayerByName("background2")),b.showTileLayer(b.engine.getLayerByName("background3")),b.setGameAttribute("backgroundNum",3)):3==m.engine.getGameAttribute("backgroundNum")?(b.hideTileLayer(b.engine.getLayerByName("background3")),b.showTileLayer(b.engine.getLayerByName("background4")),b.setGameAttribute("backgroundNum",4)):4==m.engine.getGameAttribute("backgroundNum")? (b.hideTileLayer(b.engine.getLayerByName("background4")),b.showTileLayer(b.engine.getLayerByName("background5")),b.setGameAttribute("backgroundNum",5)):5==m.engine.getGameAttribute("backgroundNum")?(b.hideTileLayer(b.engine.getLayerByName("background5")),b.showTileLayer(b.engine.getLayerByName("background6")),b.setGameAttribute("backgroundNum",6)):6==m.engine.getGameAttribute("backgroundNum")&&(b.hideTileLayer(b.engine.getLayerByName("background6")),b.showTileLayer(b.engine.getLayerByName("background1")), b.setGameAttribute("backgroundNum",1)):b.getActor(163).isMouseDown()?1==m.engine.getGameAttribute("backgroundNum")?(b.hideTileLayer(b.engine.getLayerByName("background1")),b.showTileLayer(b.engine.getLayerByName("background6")),b.setGameAttribute("backgroundNum",6)):2==m.engine.getGameAttribute("backgroundNum")?(b.hideTileLayer(b.engine.getLayerByName("background2")),b.showTileLayer(b.engine.getLayerByName("background1")),b.setGameAttribute("backgroundNum",1)):3==m.engine.getGameAttribute("backgroundNum")? (b.hideTileLayer(b.engine.getLayerByName("background3")),b.showTileLayer(b.engine.getLayerByName("background2")),b.setGameAttribute("backgroundNum",2)):4==m.engine.getGameAttribute("backgroundNum")?(b.hideTileLayer(b.engine.getLayerByName("background4")),b.showTileLayer(b.engine.getLayerByName("background3")),b.setGameAttribute("backgroundNum",3)):5==m.engine.getGameAttribute("backgroundNum")?(b.hideTileLayer(b.engine.getLayerByName("background5")),b.showTileLayer(b.engine.getLayerByName("background4")), b.setGameAttribute("backgroundNum",4)):6==m.engine.getGameAttribute("backgroundNum")&&(b.hideTileLayer(b.engine.getLayerByName("background6")),b.showTileLayer(b.engine.getLayerByName("background5")),b.setGameAttribute("backgroundNum",5)):b.getActor(160).isMouseDown()?(b.setGameAttribute("stage",10),b.runLater(300,function(a){b.setGameAttribute("stage",7)},null),b.hideTileLayer(b.engine.getLayerByName("menuBackground")),b.showTileLayer(b.engine.getLayerByName("menuCloth"))):b.getActor(170).isMouseDown()? b.switchScene(lb.get().scenes.h[0].getID(),null,b.createCrossfadeTransition(.5)):b.getActor(161).isMouseDown()&&(b.hideTileLayer(b.engine.getLayerByName("menuBackground")),b.setGameAttribute("stage",9),b.hideTileLayer(b.engine.getLayerByName("clothControls")),b.showTileLayer(b.engine.getLayerByName("cherryLogo")),b.showTileLayer(b.engine.getLayerByName("finalButtons"))))});this.addMousePressedListener(function(c){a.wrapper.enabled&&7==m.engine.getGameAttribute("stage")&&(b.getActor(162).isMouseDown()? 1==m.engine.getGameAttribute("clothNum")?(b.hideTileLayer(b.engine.getLayerByName("cloth1")),b.showTileLayer(b.engine.getLayerByName("cloth2")),b.setGameAttribute("clothNum",2)):2==m.engine.getGameAttribute("clothNum")?(b.hideTileLayer(b.engine.getLayerByName("cloth2")),b.showTileLayer(b.engine.getLayerByName("cloth3")),b.setGameAttribute("clothNum",3)):3==m.engine.getGameAttribute("clothNum")?(b.hideTileLayer(b.engine.getLayerByName("cloth3")),b.showTileLayer(b.engine.getLayerByName("cloth4")),b.setGameAttribute("clothNum", 4)):4==m.engine.getGameAttribute("clothNum")?(b.hideTileLayer(b.engine.getLayerByName("cloth4")),b.showTileLayer(b.engine.getLayerByName("cloth5")),b.setGameAttribute("clothNum",5)):5==m.engine.getGameAttribute("clothNum")?(b.hideTileLayer(b.engine.getLayerByName("cloth5")),b.showTileLayer(b.engine.getLayerByName("cloth6")),b.setGameAttribute("clothNum",6)):6==m.engine.getGameAttribute("clothNum")&&(b.hideTileLayer(b.engine.getLayerByName("cloth6")),b.showTileLayer(b.engine.getLayerByName("cloth1")), b.setGameAttribute("clothNum",1)):b.getActor(163).isMouseDown()?1==m.engine.getGameAttribute("clothNum")?(b.hideTileLayer(b.engine.getLayerByName("cloth1")),b.showTileLayer(b.engine.getLayerByName("cloth6")),b.setGameAttribute("clothNum",6)):2==m.engine.getGameAttribute("clothNum")?(b.hideTileLayer(b.engine.getLayerByName("cloth2")),b.showTileLayer(b.engine.getLayerByName("cloth1")),b.setGameAttribute("clothNum",1)):3==m.engine.getGameAttribute("clothNum")?(b.hideTileLayer(b.engine.getLayerByName("cloth3")), b.showTileLayer(b.engine.getLayerByName("cloth2")),b.setGameAttribute("clothNum",2)):4==m.engine.getGameAttribute("clothNum")?(b.hideTileLayer(b.engine.getLayerByName("cloth4")),b.showTileLayer(b.engine.getLayerByName("cloth3")),b.setGameAttribute("clothNum",3)):5==m.engine.getGameAttribute("clothNum")?(b.hideTileLayer(b.engine.getLayerByName("cloth5")),b.showTileLayer(b.engine.getLayerByName("cloth4")),b.setGameAttribute("clothNum",4)):6==m.engine.getGameAttribute("clothNum")&&(b.hideTileLayer(b.engine.getLayerByName("cloth6")), b.showTileLayer(b.engine.getLayerByName("cloth5")),b.setGameAttribute("clothNum",5)):b.getActor(160).isMouseDown()?(b.setGameAttribute("accessoryPage",1),b.hideTileLayer(b.engine.getLayerByName("accessory1checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory2checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory3checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory4checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory5checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory6checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory7checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory8checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory9checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory10checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory11checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory12checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory13checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory14checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory15checkmark")),b.showTileLayer(b.engine.getLayerByName("accessoryControlPanel1")),b.hideTileLayer(b.engine.getLayerByName("accessoryControlPanel2")),b.hideTileLayer(b.engine.getLayerByName("accessoryControlPanel3")),b.hideTileLayer(b.engine.getLayerByName("accessoryControlArrows")),b.setGameAttribute("stage",10),b.showTileLayer(b.engine.getLayerByName("bottomButtons")),b.hideTileLayer(b.engine.getLayerByName("clothControls")),0==m.engine.getGameAttribute("accessoryPage")&& (b.showTileLayer(b.engine.getLayerByName("accessoryControlPanel1")),b.setGameAttribute("accessoryPage",1)),1==m.engine.getGameAttribute("accessoryPage")?b.showTileLayer(b.engine.getLayerByName("accessoryControlPanel1")):2==m.engine.getGameAttribute("accessoryPage")?b.showTileLayer(b.engine.getLayerByName("accessoryControlPanel2")):3==m.engine.getGameAttribute("accessoryPage")&&b.showTileLayer(b.engine.getLayerByName("accessoryControlPanel3")),1==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory1checkmark")): 2==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory2checkmark")):3==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory3checkmark")):4==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory4checkmark")):5==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory5checkmark")):6==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory6checkmark")): 7==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory7checkmark")):8==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory8checkmark")):9==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory9checkmark")):10==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory10checkmark")):11==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory11checkmark")): 12==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory12checkmark")):13==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory13checkmark")):14==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory14checkmark")):15==m.engine.getGameAttribute("accessory")&&b.showTileLayer(b.engine.getLayerByName("accessory15checkmark")),b.runLater(300,function(a){b.setGameAttribute("stage",6)},null),b.hideTileLayer(b.engine.getLayerByName("menuCloth")), b.showTileLayer(b.engine.getLayerByName("menuAccessory"))):b.getActor(170).isMouseDown()?b.switchScene(lb.get().scenes.h[0].getID(),null,b.createCrossfadeTransition(.5)):b.getActor(161).isMouseDown()&&(b.hideTileLayer(b.engine.getLayerByName("menuCloth")),b.showTileLayer(b.engine.getLayerByName("menuBackground")),b.setGameAttribute("stage",8),b.showTileLayer(b.engine.getLayerByName("background1")),b.setGameAttribute("backgroundNum",1)))});this.addMousePressedListener(function(c){a.wrapper.enabled&& 6==m.engine.getGameAttribute("stage")&&(b.getActor(118).isMouseDown()?1==m.engine.getGameAttribute("accessoryPage")?(b.setGameAttribute("accessory",1),b.hideTileLayer(b.engine.getLayerByName("accessory1")),b.hideTileLayer(b.engine.getLayerByName("accessory2")),b.hideTileLayer(b.engine.getLayerByName("accessory3")),b.hideTileLayer(b.engine.getLayerByName("accessory4")),b.hideTileLayer(b.engine.getLayerByName("accessory5")),b.hideTileLayer(b.engine.getLayerByName("accessory6")),b.hideTileLayer(b.engine.getLayerByName("accessory7")), b.hideTileLayer(b.engine.getLayerByName("accessory8")),b.hideTileLayer(b.engine.getLayerByName("accessory9")),b.hideTileLayer(b.engine.getLayerByName("accessory10")),b.hideTileLayer(b.engine.getLayerByName("accessory11")),b.hideTileLayer(b.engine.getLayerByName("accessory12")),b.hideTileLayer(b.engine.getLayerByName("accessory13")),b.hideTileLayer(b.engine.getLayerByName("accessory14")),b.hideTileLayer(b.engine.getLayerByName("accessory15")),b.showTileLayer(b.engine.getLayerByName("accessory1checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory2checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory3checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory4checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory5checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory6checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory7checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory8checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory9checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory10checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory11checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory12checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory13checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory14checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory15checkmark")),b.showTileLayer(b.engine.getLayerByName("bottomButtons"))):2==m.engine.getGameAttribute("accessoryPage")?(b.setGameAttribute("accessory", 7),b.hideTileLayer(b.engine.getLayerByName("accessory1")),b.hideTileLayer(b.engine.getLayerByName("accessory2")),b.hideTileLayer(b.engine.getLayerByName("accessory3")),b.hideTileLayer(b.engine.getLayerByName("accessory4")),b.hideTileLayer(b.engine.getLayerByName("accessory5")),b.hideTileLayer(b.engine.getLayerByName("accessory6")),b.showTileLayer(b.engine.getLayerByName("accessory7")),b.hideTileLayer(b.engine.getLayerByName("accessory8")),b.hideTileLayer(b.engine.getLayerByName("accessory9")),b.hideTileLayer(b.engine.getLayerByName("accessory10")), b.hideTileLayer(b.engine.getLayerByName("accessory11")),b.hideTileLayer(b.engine.getLayerByName("accessory12")),b.hideTileLayer(b.engine.getLayerByName("accessory13")),b.hideTileLayer(b.engine.getLayerByName("accessory14")),b.hideTileLayer(b.engine.getLayerByName("accessory15")),b.hideTileLayer(b.engine.getLayerByName("accessory1checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory2checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory3checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory4checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory5checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory6checkmark")),b.showTileLayer(b.engine.getLayerByName("accessory7checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory8checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory9checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory10checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory11checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory12checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory13checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory14checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory15checkmark")),b.showTileLayer(b.engine.getLayerByName("bottomButtons"))):3==m.engine.getGameAttribute("accessoryPage")&&(b.setGameAttribute("accessory",13),b.hideTileLayer(b.engine.getLayerByName("accessory1")),b.hideTileLayer(b.engine.getLayerByName("accessory2")),b.hideTileLayer(b.engine.getLayerByName("accessory3")), b.hideTileLayer(b.engine.getLayerByName("accessory4")),b.hideTileLayer(b.engine.getLayerByName("accessory5")),b.hideTileLayer(b.engine.getLayerByName("accessory6")),b.hideTileLayer(b.engine.getLayerByName("accessory7")),b.hideTileLayer(b.engine.getLayerByName("accessory8")),b.hideTileLayer(b.engine.getLayerByName("accessory9")),b.hideTileLayer(b.engine.getLayerByName("accessory10")),b.hideTileLayer(b.engine.getLayerByName("accessory11")),b.hideTileLayer(b.engine.getLayerByName("accessory12")),b.showTileLayer(b.engine.getLayerByName("accessory13")), b.hideTileLayer(b.engine.getLayerByName("accessory14")),b.hideTileLayer(b.engine.getLayerByName("accessory15")),b.hideTileLayer(b.engine.getLayerByName("accessory1checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory2checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory3checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory4checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory5checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory6checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory7checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory8checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory9checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory10checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory11checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory12checkmark")),b.showTileLayer(b.engine.getLayerByName("accessory13checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory14checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory15checkmark")), b.showTileLayer(b.engine.getLayerByName("bottomButtons"))):b.getActor(119).isMouseDown()?1==m.engine.getGameAttribute("accessoryPage")?(b.setGameAttribute("accessory",2),b.hideTileLayer(b.engine.getLayerByName("accessory1")),b.showTileLayer(b.engine.getLayerByName("accessory2")),b.hideTileLayer(b.engine.getLayerByName("accessory3")),b.hideTileLayer(b.engine.getLayerByName("accessory4")),b.hideTileLayer(b.engine.getLayerByName("accessory5")),b.hideTileLayer(b.engine.getLayerByName("accessory6")),b.hideTileLayer(b.engine.getLayerByName("accessory7")), b.hideTileLayer(b.engine.getLayerByName("accessory8")),b.hideTileLayer(b.engine.getLayerByName("accessory9")),b.hideTileLayer(b.engine.getLayerByName("accessory10")),b.hideTileLayer(b.engine.getLayerByName("accessory11")),b.hideTileLayer(b.engine.getLayerByName("accessory12")),b.hideTileLayer(b.engine.getLayerByName("accessory13")),b.hideTileLayer(b.engine.getLayerByName("accessory14")),b.hideTileLayer(b.engine.getLayerByName("accessory15")),b.hideTileLayer(b.engine.getLayerByName("accessory1checkmark")), b.showTileLayer(b.engine.getLayerByName("accessory2checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory3checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory4checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory5checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory6checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory7checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory8checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory9checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory10checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory11checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory12checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory13checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory14checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory15checkmark")),b.showTileLayer(b.engine.getLayerByName("bottomButtons"))):2==m.engine.getGameAttribute("accessoryPage")?(b.setGameAttribute("accessory", 8),b.hideTileLayer(b.engine.getLayerByName("accessory1")),b.hideTileLayer(b.engine.getLayerByName("accessory2")),b.hideTileLayer(b.engine.getLayerByName("accessory3")),b.hideTileLayer(b.engine.getLayerByName("accessory4")),b.hideTileLayer(b.engine.getLayerByName("accessory5")),b.hideTileLayer(b.engine.getLayerByName("accessory6")),b.hideTileLayer(b.engine.getLayerByName("accessory7")),b.showTileLayer(b.engine.getLayerByName("accessory8")),b.hideTileLayer(b.engine.getLayerByName("accessory9")),b.hideTileLayer(b.engine.getLayerByName("accessory10")), b.hideTileLayer(b.engine.getLayerByName("accessory11")),b.hideTileLayer(b.engine.getLayerByName("accessory12")),b.hideTileLayer(b.engine.getLayerByName("accessory13")),b.hideTileLayer(b.engine.getLayerByName("accessory14")),b.hideTileLayer(b.engine.getLayerByName("accessory15")),b.hideTileLayer(b.engine.getLayerByName("accessory1checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory2checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory3checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory4checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory5checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory6checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory7checkmark")),b.showTileLayer(b.engine.getLayerByName("accessory8checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory9checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory10checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory11checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory12checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory13checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory14checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory15checkmark")),b.showTileLayer(b.engine.getLayerByName("bottomButtons"))):3==m.engine.getGameAttribute("accessoryPage")&&(b.setGameAttribute("accessory",14),b.hideTileLayer(b.engine.getLayerByName("accessory1")),b.hideTileLayer(b.engine.getLayerByName("accessory2")),b.hideTileLayer(b.engine.getLayerByName("accessory3")), b.hideTileLayer(b.engine.getLayerByName("accessory4")),b.hideTileLayer(b.engine.getLayerByName("accessory5")),b.hideTileLayer(b.engine.getLayerByName("accessory6")),b.hideTileLayer(b.engine.getLayerByName("accessory7")),b.hideTileLayer(b.engine.getLayerByName("accessory8")),b.hideTileLayer(b.engine.getLayerByName("accessory9")),b.hideTileLayer(b.engine.getLayerByName("accessory10")),b.hideTileLayer(b.engine.getLayerByName("accessory11")),b.hideTileLayer(b.engine.getLayerByName("accessory12")),b.hideTileLayer(b.engine.getLayerByName("accessory13")), b.showTileLayer(b.engine.getLayerByName("accessory14")),b.hideTileLayer(b.engine.getLayerByName("accessory15")),b.hideTileLayer(b.engine.getLayerByName("accessory1checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory2checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory3checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory4checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory5checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory6checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory7checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory8checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory9checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory10checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory11checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory12checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory13checkmark")),b.showTileLayer(b.engine.getLayerByName("accessory14checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory15checkmark")), b.showTileLayer(b.engine.getLayerByName("bottomButtons"))):b.getActor(120).isMouseDown()?1==m.engine.getGameAttribute("accessoryPage")?(b.setGameAttribute("accessory",3),b.hideTileLayer(b.engine.getLayerByName("accessory1")),b.hideTileLayer(b.engine.getLayerByName("accessory2")),b.showTileLayer(b.engine.getLayerByName("accessory3")),b.hideTileLayer(b.engine.getLayerByName("accessory4")),b.hideTileLayer(b.engine.getLayerByName("accessory5")),b.hideTileLayer(b.engine.getLayerByName("accessory6")),b.hideTileLayer(b.engine.getLayerByName("accessory7")), b.hideTileLayer(b.engine.getLayerByName("accessory8")),b.hideTileLayer(b.engine.getLayerByName("accessory9")),b.hideTileLayer(b.engine.getLayerByName("accessory10")),b.hideTileLayer(b.engine.getLayerByName("accessory11")),b.hideTileLayer(b.engine.getLayerByName("accessory12")),b.hideTileLayer(b.engine.getLayerByName("accessory13")),b.hideTileLayer(b.engine.getLayerByName("accessory14")),b.hideTileLayer(b.engine.getLayerByName("accessory15")),b.hideTileLayer(b.engine.getLayerByName("accessory1checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory2checkmark")),b.showTileLayer(b.engine.getLayerByName("accessory3checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory4checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory5checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory6checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory7checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory8checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory9checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory10checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory11checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory12checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory13checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory14checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory15checkmark")),b.showTileLayer(b.engine.getLayerByName("bottomButtons"))):2==m.engine.getGameAttribute("accessoryPage")?(b.setGameAttribute("accessory", 9),b.hideTileLayer(b.engine.getLayerByName("accessory1")),b.hideTileLayer(b.engine.getLayerByName("accessory2")),b.hideTileLayer(b.engine.getLayerByName("accessory3")),b.hideTileLayer(b.engine.getLayerByName("accessory4")),b.hideTileLayer(b.engine.getLayerByName("accessory5")),b.hideTileLayer(b.engine.getLayerByName("accessory6")),b.hideTileLayer(b.engine.getLayerByName("accessory7")),b.hideTileLayer(b.engine.getLayerByName("accessory8")),b.showTileLayer(b.engine.getLayerByName("accessory9")),b.hideTileLayer(b.engine.getLayerByName("accessory10")), b.hideTileLayer(b.engine.getLayerByName("accessory11")),b.hideTileLayer(b.engine.getLayerByName("accessory12")),b.hideTileLayer(b.engine.getLayerByName("accessory13")),b.hideTileLayer(b.engine.getLayerByName("accessory14")),b.hideTileLayer(b.engine.getLayerByName("accessory15")),b.hideTileLayer(b.engine.getLayerByName("accessory1checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory2checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory3checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory4checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory5checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory6checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory7checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory8checkmark")),b.showTileLayer(b.engine.getLayerByName("accessory9checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory10checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory11checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory12checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory13checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory14checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory15checkmark")),b.showTileLayer(b.engine.getLayerByName("bottomButtons"))):3==m.engine.getGameAttribute("accessoryPage")&&(b.setGameAttribute("accessory",15),b.hideTileLayer(b.engine.getLayerByName("accessory1")),b.hideTileLayer(b.engine.getLayerByName("accessory2")),b.hideTileLayer(b.engine.getLayerByName("accessory3")), b.hideTileLayer(b.engine.getLayerByName("accessory4")),b.hideTileLayer(b.engine.getLayerByName("accessory5")),b.hideTileLayer(b.engine.getLayerByName("accessory6")),b.hideTileLayer(b.engine.getLayerByName("accessory7")),b.hideTileLayer(b.engine.getLayerByName("accessory8")),b.hideTileLayer(b.engine.getLayerByName("accessory9")),b.hideTileLayer(b.engine.getLayerByName("accessory10")),b.hideTileLayer(b.engine.getLayerByName("accessory11")),b.hideTileLayer(b.engine.getLayerByName("accessory12")),b.hideTileLayer(b.engine.getLayerByName("accessory13")), b.hideTileLayer(b.engine.getLayerByName("accessory14")),b.showTileLayer(b.engine.getLayerByName("accessory15")),b.hideTileLayer(b.engine.getLayerByName("accessory1checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory2checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory3checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory4checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory5checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory6checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory7checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory8checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory9checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory10checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory11checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory12checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory13checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory14checkmark")),b.showTileLayer(b.engine.getLayerByName("accessory15checkmark")), b.showTileLayer(b.engine.getLayerByName("bottomButtons"))):b.getActor(121).isMouseDown()?1==m.engine.getGameAttribute("accessoryPage")?(b.setGameAttribute("accessory",4),b.hideTileLayer(b.engine.getLayerByName("accessory1")),b.hideTileLayer(b.engine.getLayerByName("accessory2")),b.hideTileLayer(b.engine.getLayerByName("accessory3")),b.showTileLayer(b.engine.getLayerByName("accessory4")),b.hideTileLayer(b.engine.getLayerByName("accessory5")),b.hideTileLayer(b.engine.getLayerByName("accessory6")),b.hideTileLayer(b.engine.getLayerByName("accessory7")), b.hideTileLayer(b.engine.getLayerByName("accessory8")),b.hideTileLayer(b.engine.getLayerByName("accessory9")),b.hideTileLayer(b.engine.getLayerByName("accessory10")),b.hideTileLayer(b.engine.getLayerByName("accessory11")),b.hideTileLayer(b.engine.getLayerByName("accessory12")),b.hideTileLayer(b.engine.getLayerByName("accessory13")),b.hideTileLayer(b.engine.getLayerByName("accessory14")),b.hideTileLayer(b.engine.getLayerByName("accessory15")),b.hideTileLayer(b.engine.getLayerByName("accessory1checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory2checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory3checkmark")),b.showTileLayer(b.engine.getLayerByName("accessory4checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory5checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory6checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory7checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory8checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory9checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory10checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory11checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory12checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory13checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory14checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory15checkmark")),b.showTileLayer(b.engine.getLayerByName("bottomButtons"))):2==m.engine.getGameAttribute("accessoryPage")&&(b.setGameAttribute("accessory", 10),b.hideTileLayer(b.engine.getLayerByName("accessory1")),b.hideTileLayer(b.engine.getLayerByName("accessory2")),b.hideTileLayer(b.engine.getLayerByName("accessory3")),b.hideTileLayer(b.engine.getLayerByName("accessory4")),b.hideTileLayer(b.engine.getLayerByName("accessory5")),b.hideTileLayer(b.engine.getLayerByName("accessory6")),b.hideTileLayer(b.engine.getLayerByName("accessory7")),b.hideTileLayer(b.engine.getLayerByName("accessory8")),b.hideTileLayer(b.engine.getLayerByName("accessory9")),b.showTileLayer(b.engine.getLayerByName("accessory10")), b.hideTileLayer(b.engine.getLayerByName("accessory11")),b.hideTileLayer(b.engine.getLayerByName("accessory12")),b.hideTileLayer(b.engine.getLayerByName("accessory13")),b.hideTileLayer(b.engine.getLayerByName("accessory14")),b.hideTileLayer(b.engine.getLayerByName("accessory15")),b.hideTileLayer(b.engine.getLayerByName("accessory1checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory2checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory3checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory4checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory5checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory6checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory7checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory8checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory9checkmark")),b.showTileLayer(b.engine.getLayerByName("accessory10checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory11checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory12checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory13checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory14checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory15checkmark")),b.showTileLayer(b.engine.getLayerByName("bottomButtons"))):b.getActor(122).isMouseDown()?1==m.engine.getGameAttribute("accessoryPage")?(b.setGameAttribute("accessory",5),b.hideTileLayer(b.engine.getLayerByName("accessory1")),b.hideTileLayer(b.engine.getLayerByName("accessory2")),b.hideTileLayer(b.engine.getLayerByName("accessory3")), b.hideTileLayer(b.engine.getLayerByName("accessory4")),b.showTileLayer(b.engine.getLayerByName("accessory5")),b.hideTileLayer(b.engine.getLayerByName("accessory6")),b.hideTileLayer(b.engine.getLayerByName("accessory7")),b.hideTileLayer(b.engine.getLayerByName("accessory8")),b.hideTileLayer(b.engine.getLayerByName("accessory9")),b.hideTileLayer(b.engine.getLayerByName("accessory10")),b.hideTileLayer(b.engine.getLayerByName("accessory11")),b.hideTileLayer(b.engine.getLayerByName("accessory12")),b.hideTileLayer(b.engine.getLayerByName("accessory13")), b.hideTileLayer(b.engine.getLayerByName("accessory14")),b.hideTileLayer(b.engine.getLayerByName("accessory15")),b.hideTileLayer(b.engine.getLayerByName("accessory1checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory2checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory3checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory4checkmark")),b.showTileLayer(b.engine.getLayerByName("accessory5checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory6checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory7checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory8checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory9checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory10checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory11checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory12checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory13checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory14checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory15checkmark")), b.showTileLayer(b.engine.getLayerByName("bottomButtons"))):2==m.engine.getGameAttribute("accessoryPage")&&(b.setGameAttribute("accessory",11),b.hideTileLayer(b.engine.getLayerByName("accessory1")),b.hideTileLayer(b.engine.getLayerByName("accessory2")),b.hideTileLayer(b.engine.getLayerByName("accessory3")),b.hideTileLayer(b.engine.getLayerByName("accessory4")),b.hideTileLayer(b.engine.getLayerByName("accessory5")),b.hideTileLayer(b.engine.getLayerByName("accessory6")),b.hideTileLayer(b.engine.getLayerByName("accessory7")), b.hideTileLayer(b.engine.getLayerByName("accessory8")),b.hideTileLayer(b.engine.getLayerByName("accessory9")),b.hideTileLayer(b.engine.getLayerByName("accessory10")),b.showTileLayer(b.engine.getLayerByName("accessory11")),b.hideTileLayer(b.engine.getLayerByName("accessory12")),b.hideTileLayer(b.engine.getLayerByName("accessory13")),b.hideTileLayer(b.engine.getLayerByName("accessory14")),b.hideTileLayer(b.engine.getLayerByName("accessory15")),b.hideTileLayer(b.engine.getLayerByName("accessory1checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory2checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory3checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory4checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory5checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory6checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory7checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory8checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory9checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory10checkmark")),b.showTileLayer(b.engine.getLayerByName("accessory11checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory12checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory13checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory14checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory15checkmark")),b.showTileLayer(b.engine.getLayerByName("bottomButtons"))):b.getActor(123).isMouseDown()?1==m.engine.getGameAttribute("accessoryPage")? (b.setGameAttribute("accessory",6),b.hideTileLayer(b.engine.getLayerByName("accessory1")),b.hideTileLayer(b.engine.getLayerByName("accessory2")),b.hideTileLayer(b.engine.getLayerByName("accessory3")),b.hideTileLayer(b.engine.getLayerByName("accessory4")),b.hideTileLayer(b.engine.getLayerByName("accessory5")),b.showTileLayer(b.engine.getLayerByName("accessory6")),b.hideTileLayer(b.engine.getLayerByName("accessory7")),b.hideTileLayer(b.engine.getLayerByName("accessory8")),b.hideTileLayer(b.engine.getLayerByName("accessory9")), b.hideTileLayer(b.engine.getLayerByName("accessory10")),b.hideTileLayer(b.engine.getLayerByName("accessory11")),b.hideTileLayer(b.engine.getLayerByName("accessory12")),b.hideTileLayer(b.engine.getLayerByName("accessory13")),b.hideTileLayer(b.engine.getLayerByName("accessory14")),b.hideTileLayer(b.engine.getLayerByName("accessory15")),b.hideTileLayer(b.engine.getLayerByName("accessory1checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory2checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory3checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory4checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory5checkmark")),b.showTileLayer(b.engine.getLayerByName("accessory6checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory7checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory8checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory9checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory10checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory11checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory12checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory13checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory14checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory15checkmark")),b.showTileLayer(b.engine.getLayerByName("bottomButtons"))):2==m.engine.getGameAttribute("accessoryPage")&&(b.setGameAttribute("accessory",12),b.hideTileLayer(b.engine.getLayerByName("accessory1")),b.hideTileLayer(b.engine.getLayerByName("accessory2")), b.hideTileLayer(b.engine.getLayerByName("accessory3")),b.hideTileLayer(b.engine.getLayerByName("accessory4")),b.hideTileLayer(b.engine.getLayerByName("accessory5")),b.hideTileLayer(b.engine.getLayerByName("accessory6")),b.hideTileLayer(b.engine.getLayerByName("accessory7")),b.hideTileLayer(b.engine.getLayerByName("accessory8")),b.hideTileLayer(b.engine.getLayerByName("accessory9")),b.hideTileLayer(b.engine.getLayerByName("accessory10")),b.hideTileLayer(b.engine.getLayerByName("accessory11")),b.showTileLayer(b.engine.getLayerByName("accessory12")), b.hideTileLayer(b.engine.getLayerByName("accessory13")),b.hideTileLayer(b.engine.getLayerByName("accessory14")),b.hideTileLayer(b.engine.getLayerByName("accessory15")),b.hideTileLayer(b.engine.getLayerByName("accessory1checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory2checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory3checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory4checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory5checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory6checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory7checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory8checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory9checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory10checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory11checkmark")),b.showTileLayer(b.engine.getLayerByName("accessory12checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory13checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory14checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory15checkmark")),b.showTileLayer(b.engine.getLayerByName("bottomButtons"))):b.getActor(125).isMouseDown()?1==m.engine.getGameAttribute("accessoryPage")?(b.hideTileLayer(b.engine.getLayerByName("accessoryControlPanel1")),b.showTileLayer(b.engine.getLayerByName("accessoryControlPanel2")),b.setGameAttribute("accessoryPage",2),b.hideTileLayer(b.engine.getLayerByName("accessory1checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory2checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory3checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory4checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory5checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory6checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory7checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory8checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory9checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory10checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory11checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory12checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory13checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory14checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory15checkmark"))):2==m.engine.getGameAttribute("accessoryPage")?(b.hideTileLayer(b.engine.getLayerByName("accessoryControlPanel2")),b.showTileLayer(b.engine.getLayerByName("accessoryControlPanel3")), b.setGameAttribute("accessoryPage",3),b.hideTileLayer(b.engine.getLayerByName("accessory1checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory2checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory3checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory4checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory5checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory6checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory7checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory8checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory9checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory10checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory11checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory12checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory13checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory14checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory15checkmark"))):3==m.engine.getGameAttribute("accessoryPage")&& (b.hideTileLayer(b.engine.getLayerByName("accessoryControlPanel3")),b.showTileLayer(b.engine.getLayerByName("accessoryControlPanel1")),b.setGameAttribute("accessoryPage",1),b.hideTileLayer(b.engine.getLayerByName("accessory1checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory2checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory3checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory4checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory5checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory6checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory7checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory8checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory9checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory10checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory11checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory12checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory13checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory14checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory15checkmark"))):b.getActor(124).isMouseDown()?1==m.engine.getGameAttribute("accessoryPage")?(b.hideTileLayer(b.engine.getLayerByName("accessoryControlPanel1")),b.showTileLayer(b.engine.getLayerByName("accessoryControlPanel3")),b.setGameAttribute("accessoryPage",3),b.hideTileLayer(b.engine.getLayerByName("accessory1checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory2checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory3checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory4checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory5checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory6checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory7checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory8checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory9checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory10checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory11checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory12checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory13checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory14checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory15checkmark"))):2==m.engine.getGameAttribute("accessoryPage")?(b.hideTileLayer(b.engine.getLayerByName("accessoryControlPanel2")),b.showTileLayer(b.engine.getLayerByName("accessoryControlPanel1")),b.setGameAttribute("accessoryPage",1),b.hideTileLayer(b.engine.getLayerByName("accessory1checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory2checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory3checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory4checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory5checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory6checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory7checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory8checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory9checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory10checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory11checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory12checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory13checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory14checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory15checkmark"))):3==m.engine.getGameAttribute("accessoryPage")&&(b.hideTileLayer(b.engine.getLayerByName("accessoryControlPanel3")), b.showTileLayer(b.engine.getLayerByName("accessoryControlPanel2")),b.setGameAttribute("accessoryPage",2),b.hideTileLayer(b.engine.getLayerByName("accessory1checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory2checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory3checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory4checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory5checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory6checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory7checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory8checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory9checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory10checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory11checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory12checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory13checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory14checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory15checkmark"))): b.getActor(16).isMouseDown()?(b.hideTileLayer(b.engine.getLayerByName("accessory1checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory2checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory3checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory4checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory5checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory6checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory7checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory8checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory9checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory10checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory11checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory12checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory13checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory14checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory15checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip1checkmark")), b.hideTileLayer(b.engine.getLayerByName("lip2checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip3checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip4checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip5checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip6checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip7checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip8checkmark")),b.showTileLayer(b.engine.getLayerByName("lipControls")),b.setGameAttribute("stage",10),b.hideTileLayer(b.engine.getLayerByName("accessoryControlPanel1")), b.hideTileLayer(b.engine.getLayerByName("accessoryControlPanel2")),b.hideTileLayer(b.engine.getLayerByName("accessoryControlPanel3")),b.hideTileLayer(b.engine.getLayerByName("accessoryControlArrows")),1==m.engine.getGameAttribute("lip")?b.showTileLayer(b.engine.getLayerByName("lip1checkmark")):2==m.engine.getGameAttribute("lip")?b.showTileLayer(b.engine.getLayerByName("lip2checkmark")):3==m.engine.getGameAttribute("lip")?b.showTileLayer(b.engine.getLayerByName("lip3checkmark")):4==m.engine.getGameAttribute("lip")? b.showTileLayer(b.engine.getLayerByName("lip4checkmark")):5==m.engine.getGameAttribute("lip")?b.showTileLayer(b.engine.getLayerByName("lip5checkmark")):6==m.engine.getGameAttribute("lip")?b.showTileLayer(b.engine.getLayerByName("lip6checkmark")):7==m.engine.getGameAttribute("lip")?b.showTileLayer(b.engine.getLayerByName("lip7checkmark")):8==m.engine.getGameAttribute("lip")&&b.showTileLayer(b.engine.getLayerByName("lip8checkmark")),b.runLater(300,function(a){b.setGameAttribute("stage",5)},null),b.hideTileLayer(b.engine.getLayerByName("menuAccessory")), b.showTileLayer(b.engine.getLayerByName("menuLip"))):b.getActor(170).isMouseDown()?b.switchScene(lb.get().scenes.h[0].getID(),null,b.createCrossfadeTransition(.5)):b.getActor(17).isMouseDown()&&(b.hideTileLayer(b.engine.getLayerByName("menuAccessory")),b.showTileLayer(b.engine.getLayerByName("menuCloth")),b.hideTileLayer(b.engine.getLayerByName("accessory1checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory2checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory3checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory4checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory5checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory6checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory7checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory8checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory9checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory10checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory11checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory12checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory13checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory14checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory15checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessoryControlPanel1")),b.hideTileLayer(b.engine.getLayerByName("accessoryControlPanel2")),b.hideTileLayer(b.engine.getLayerByName("accessoryControlPanel3")),b.hideTileLayer(b.engine.getLayerByName("accessoryControlArrows")),b.setGameAttribute("stage",7),b.hideTileLayer(b.engine.getLayerByName("bottomButtons")), b.showTileLayer(b.engine.getLayerByName("clothControls")),b.showTileLayer(b.engine.getLayerByName("cloth1")),b.setGameAttribute("clothNum",1)))});this.addMousePressedListener(function(c){a.wrapper.enabled&&5==m.engine.getGameAttribute("stage")&&(b.getActor(109).isMouseDown()?(b.showTileLayer(b.engine.getLayerByName("lip1")),b.hideTileLayer(b.engine.getLayerByName("lip2")),b.hideTileLayer(b.engine.getLayerByName("lip3")),b.hideTileLayer(b.engine.getLayerByName("lip4")),b.hideTileLayer(b.engine.getLayerByName("lip5")), b.hideTileLayer(b.engine.getLayerByName("lip6")),b.hideTileLayer(b.engine.getLayerByName("lip7")),b.hideTileLayer(b.engine.getLayerByName("lip8")),b.showTileLayer(b.engine.getLayerByName("lip1checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip2checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip3checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip4checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip5checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip6checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip7checkmark")), b.hideTileLayer(b.engine.getLayerByName("lip8checkmark")),b.setGameAttribute("lip",1)):b.getActor(110).isMouseDown()?(b.setGameAttribute("lip",2),b.hideTileLayer(b.engine.getLayerByName("lip1")),b.showTileLayer(b.engine.getLayerByName("lip2")),b.hideTileLayer(b.engine.getLayerByName("lip3")),b.hideTileLayer(b.engine.getLayerByName("lip4")),b.hideTileLayer(b.engine.getLayerByName("lip5")),b.hideTileLayer(b.engine.getLayerByName("lip6")),b.hideTileLayer(b.engine.getLayerByName("lip7")),b.hideTileLayer(b.engine.getLayerByName("lip8")), b.hideTileLayer(b.engine.getLayerByName("lip1checkmark")),b.showTileLayer(b.engine.getLayerByName("lip2checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip3checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip4checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip5checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip6checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip7checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip8checkmark"))):b.getActor(111).isMouseDown()?(b.setGameAttribute("lip", 3),b.hideTileLayer(b.engine.getLayerByName("lip1")),b.hideTileLayer(b.engine.getLayerByName("lip2")),b.showTileLayer(b.engine.getLayerByName("lip3")),b.hideTileLayer(b.engine.getLayerByName("lip4")),b.hideTileLayer(b.engine.getLayerByName("lip5")),b.hideTileLayer(b.engine.getLayerByName("lip6")),b.hideTileLayer(b.engine.getLayerByName("lip7")),b.hideTileLayer(b.engine.getLayerByName("lip8")),b.hideTileLayer(b.engine.getLayerByName("lip1checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip2checkmark")), b.showTileLayer(b.engine.getLayerByName("lip3checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip4checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip5checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip6checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip7checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip8checkmark"))):b.getActor(112).isMouseDown()?(b.setGameAttribute("lip",4),b.hideTileLayer(b.engine.getLayerByName("lip1")),b.hideTileLayer(b.engine.getLayerByName("lip2")), b.hideTileLayer(b.engine.getLayerByName("lip3")),b.showTileLayer(b.engine.getLayerByName("lip4")),b.hideTileLayer(b.engine.getLayerByName("lip5")),b.hideTileLayer(b.engine.getLayerByName("lip6")),b.hideTileLayer(b.engine.getLayerByName("lip7")),b.hideTileLayer(b.engine.getLayerByName("lip8")),b.hideTileLayer(b.engine.getLayerByName("lip1checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip2checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip3checkmark")),b.showTileLayer(b.engine.getLayerByName("lip4checkmark")), b.hideTileLayer(b.engine.getLayerByName("lip5checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip6checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip7checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip8checkmark"))):b.getActor(113).isMouseDown()?(b.setGameAttribute("lip",5),b.hideTileLayer(b.engine.getLayerByName("lip1")),b.hideTileLayer(b.engine.getLayerByName("lip2")),b.hideTileLayer(b.engine.getLayerByName("lip3")),b.hideTileLayer(b.engine.getLayerByName("lip4")),b.showTileLayer(b.engine.getLayerByName("lip5")), b.hideTileLayer(b.engine.getLayerByName("lip6")),b.hideTileLayer(b.engine.getLayerByName("lip7")),b.hideTileLayer(b.engine.getLayerByName("lip8")),b.hideTileLayer(b.engine.getLayerByName("lip1checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip2checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip3checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip4checkmark")),b.showTileLayer(b.engine.getLayerByName("lip5checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip6checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip7checkmark")), b.hideTileLayer(b.engine.getLayerByName("lip8checkmark"))):b.getActor(114).isMouseDown()?(b.setGameAttribute("lip",6),b.hideTileLayer(b.engine.getLayerByName("lip1")),b.hideTileLayer(b.engine.getLayerByName("lip2")),b.hideTileLayer(b.engine.getLayerByName("lip3")),b.hideTileLayer(b.engine.getLayerByName("lip4")),b.hideTileLayer(b.engine.getLayerByName("lip5")),b.showTileLayer(b.engine.getLayerByName("lip6")),b.hideTileLayer(b.engine.getLayerByName("lip7")),b.hideTileLayer(b.engine.getLayerByName("lip8")), b.hideTileLayer(b.engine.getLayerByName("lip1checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip2checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip3checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip4checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip5checkmark")),b.showTileLayer(b.engine.getLayerByName("lip6checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip7checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip8checkmark"))):b.getActor(115).isMouseDown()?(b.setGameAttribute("lip", 7),b.hideTileLayer(b.engine.getLayerByName("lip1")),b.hideTileLayer(b.engine.getLayerByName("lip2")),b.hideTileLayer(b.engine.getLayerByName("lip3")),b.hideTileLayer(b.engine.getLayerByName("lip4")),b.hideTileLayer(b.engine.getLayerByName("lip5")),b.hideTileLayer(b.engine.getLayerByName("lip6")),b.showTileLayer(b.engine.getLayerByName("lip7")),b.hideTileLayer(b.engine.getLayerByName("lip8")),b.hideTileLayer(b.engine.getLayerByName("lip1checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip2checkmark")), b.hideTileLayer(b.engine.getLayerByName("lip3checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip4checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip5checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip6checkmark")),b.showTileLayer(b.engine.getLayerByName("lip7checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip8checkmark"))):b.getActor(116).isMouseDown()?(b.setGameAttribute("lip",8),b.hideTileLayer(b.engine.getLayerByName("lip1")),b.hideTileLayer(b.engine.getLayerByName("lip2")), b.hideTileLayer(b.engine.getLayerByName("lip3")),b.hideTileLayer(b.engine.getLayerByName("lip4")),b.hideTileLayer(b.engine.getLayerByName("lip5")),b.hideTileLayer(b.engine.getLayerByName("lip6")),b.hideTileLayer(b.engine.getLayerByName("lip7")),b.showTileLayer(b.engine.getLayerByName("lip8")),b.hideTileLayer(b.engine.getLayerByName("lip1checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip2checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip3checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip4checkmark")), b.hideTileLayer(b.engine.getLayerByName("lip5checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip6checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip7checkmark")),b.showTileLayer(b.engine.getLayerByName("lip8checkmark"))):b.getActor(16).isMouseDown()?(b.hideTileLayer(b.engine.getLayerByName("lip1checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip2checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip3checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip4checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip5checkmark")), b.hideTileLayer(b.engine.getLayerByName("lip6checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip7checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip8checkmark")),b.setGameAttribute("stage",10),1==m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek1-1checkmark")):2==m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek1-2checkmark")):3==m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek1-3checkmark")): 4==m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek2-1checkmark")):5==m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek2-2checkmark")):6==m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek2-3checkmark")):7==m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek3-1checkmark")):8==m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek3-2checkmark")):9== m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek3-3checkmark")):10==m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek4-1checkmark")):11==m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek4-2checkmark")):12==m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek4-3checkmark")):13==m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek5-1checkmark")): 14==m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek5-2checkmark")):15==m.engine.getGameAttribute("cheek")&&b.showTileLayer(b.engine.getLayerByName("cheek5-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("lipControls")),b.showTileLayer(b.engine.getLayerByName("cheekControlPanel")),b.runLater(300,function(a){b.setGameAttribute("stage",4)},null),b.hideTileLayer(b.engine.getLayerByName("menuLip")),b.showTileLayer(b.engine.getLayerByName("menuCheek"))):b.getActor(170).isMouseDown()? b.switchScene(lb.get().scenes.h[0].getID(),null,b.createCrossfadeTransition(.5)):b.getActor(17).isMouseDown()&&(b.hideTileLayer(b.engine.getLayerByName("menuLip")),b.showTileLayer(b.engine.getLayerByName("menuAccessory")),b.hideTileLayer(b.engine.getLayerByName("lip1checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip2checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip3checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip4checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip5checkmark")), b.hideTileLayer(b.engine.getLayerByName("lip6checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip7checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip8checkmark")),b.hideTileLayer(b.engine.getLayerByName("lipControls")),b.setGameAttribute("stage",6),b.showTileLayer(b.engine.getLayerByName("accessoryControlPanel1")),b.hideTileLayer(b.engine.getLayerByName("accessoryControlPanel2")),b.hideTileLayer(b.engine.getLayerByName("accessoryControlPanel3")),b.showTileLayer(b.engine.getLayerByName("accessoryControlArrows")), b.setGameAttribute("accessoryPage",1),0==m.engine.getGameAttribute("accessoryPage")&&(b.showTileLayer(b.engine.getLayerByName("accessoryControlPanel1")),b.setGameAttribute("accessoryPage",1)),1==m.engine.getGameAttribute("accessoryPage")?b.showTileLayer(b.engine.getLayerByName("accessoryControlPanel1")):2==m.engine.getGameAttribute("accessoryPage")?b.showTileLayer(b.engine.getLayerByName("accessoryControlPanel2")):3==m.engine.getGameAttribute("accessoryPage")&&b.showTileLayer(b.engine.getLayerByName("accessoryControlPanel3")), 1==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory1checkmark")):2==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory2checkmark")):3==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory3checkmark")):4==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory4checkmark")):5==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory5checkmark")): 6==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory6checkmark")):7==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory7checkmark")):8==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory8checkmark")):9==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory9checkmark")):10==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory10checkmark")): 11==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory11checkmark")):12==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory12checkmark")):13==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory13checkmark")):14==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory14checkmark")):15==m.engine.getGameAttribute("accessory")&&b.showTileLayer(b.engine.getLayerByName("accessory15checkmark"))))}); this.addMousePressedListener(function(c){a.wrapper.enabled&&4==m.engine.getGameAttribute("stage")&&(b.getActor(78).isMouseDown()?(b.showTileLayer(b.engine.getLayerByName("cheek1-1")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1")), b.hideTileLayer(b.engine.getLayerByName("cheek3-2")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3")),b.showTileLayer(b.engine.getLayerByName("cheek1-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek1-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek4-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3checkmark")),b.showTileLayer(b.engine.getLayerByName("bottomButtons")),b.setGameAttribute("cheek",1)):b.getActor(79).isMouseDown()?(b.hideTileLayer(b.engine.getLayerByName("cheek1-1")),b.showTileLayer(b.engine.getLayerByName("cheek1-2")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3")), b.hideTileLayer(b.engine.getLayerByName("cheek2-1")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1")), b.hideTileLayer(b.engine.getLayerByName("cheek5-2")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3")),b.hideTileLayer(b.engine.getLayerByName("cheek1-1checkmark")),b.showTileLayer(b.engine.getLayerByName("cheek1-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek3-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3checkmark")),b.showTileLayer(b.engine.getLayerByName("bottomButtons")), b.setGameAttribute("cheek",2)):b.getActor(80).isMouseDown()?(b.hideTileLayer(b.engine.getLayerByName("cheek1-1")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2")),b.showTileLayer(b.engine.getLayerByName("cheek1-3")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3")), b.hideTileLayer(b.engine.getLayerByName("cheek4-1")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3")),b.hideTileLayer(b.engine.getLayerByName("cheek1-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2checkmark")),b.showTileLayer(b.engine.getLayerByName("cheek1-3checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek2-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek5-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3checkmark")),b.showTileLayer(b.engine.getLayerByName("bottomButtons")),b.setGameAttribute("cheek",3)):b.getActor(81).isMouseDown()?(b.hideTileLayer(b.engine.getLayerByName("cheek1-1")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3")),b.showTileLayer(b.engine.getLayerByName("cheek2-1")), b.hideTileLayer(b.engine.getLayerByName("cheek2-2")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2")), b.hideTileLayer(b.engine.getLayerByName("cheek5-3")),b.hideTileLayer(b.engine.getLayerByName("cheek1-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3checkmark")),b.showTileLayer(b.engine.getLayerByName("cheek2-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek3-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3checkmark")),b.showTileLayer(b.engine.getLayerByName("bottomButtons")),b.setGameAttribute("cheek", 4)):b.getActor(82).isMouseDown()?(b.hideTileLayer(b.engine.getLayerByName("cheek1-1")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1")),b.showTileLayer(b.engine.getLayerByName("cheek2-2")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3")), b.hideTileLayer(b.engine.getLayerByName("cheek4-1")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3")),b.hideTileLayer(b.engine.getLayerByName("cheek1-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek2-1checkmark")),b.showTileLayer(b.engine.getLayerByName("cheek2-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek5-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3checkmark")),b.showTileLayer(b.engine.getLayerByName("bottomButtons")),b.setGameAttribute("cheek",5)):b.getActor(83).isMouseDown()?(b.hideTileLayer(b.engine.getLayerByName("cheek1-1")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1")), b.hideTileLayer(b.engine.getLayerByName("cheek2-2")),b.showTileLayer(b.engine.getLayerByName("cheek2-3")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2")), b.hideTileLayer(b.engine.getLayerByName("cheek5-3")),b.hideTileLayer(b.engine.getLayerByName("cheek1-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2checkmark")),b.showTileLayer(b.engine.getLayerByName("cheek2-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek3-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3checkmark")),b.showTileLayer(b.engine.getLayerByName("bottomButtons")),b.setGameAttribute("cheek", 6)):b.getActor(84).isMouseDown()?(b.hideTileLayer(b.engine.getLayerByName("cheek1-1")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3")),b.showTileLayer(b.engine.getLayerByName("cheek3-1")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3")), b.hideTileLayer(b.engine.getLayerByName("cheek4-1")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3")),b.hideTileLayer(b.engine.getLayerByName("cheek1-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek2-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3checkmark")),b.showTileLayer(b.engine.getLayerByName("cheek3-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek5-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3checkmark")),b.showTileLayer(b.engine.getLayerByName("bottomButtons")),b.setGameAttribute("cheek",7)):b.getActor(85).isMouseDown()?(b.hideTileLayer(b.engine.getLayerByName("cheek1-1")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1")), b.hideTileLayer(b.engine.getLayerByName("cheek2-2")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1")),b.showTileLayer(b.engine.getLayerByName("cheek3-2")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2")), b.hideTileLayer(b.engine.getLayerByName("cheek5-3")),b.hideTileLayer(b.engine.getLayerByName("cheek1-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1checkmark")),b.showTileLayer(b.engine.getLayerByName("cheek3-2checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek3-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3checkmark")),b.showTileLayer(b.engine.getLayerByName("bottomButtons")),b.setGameAttribute("cheek", 8)):b.getActor(86).isMouseDown()?(b.hideTileLayer(b.engine.getLayerByName("cheek1-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2checkmark")), b.showTileLayer(b.engine.getLayerByName("cheek3-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-1")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2")), b.hideTileLayer(b.engine.getLayerByName("cheek1-3")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2")),b.showTileLayer(b.engine.getLayerByName("cheek3-3")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3")), b.hideTileLayer(b.engine.getLayerByName("cheek5-1")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3")),b.setGameAttribute("cheek",9)):b.getActor(87).isMouseDown()?(b.hideTileLayer(b.engine.getLayerByName("cheek1-1")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3")), b.hideTileLayer(b.engine.getLayerByName("cheek3-1")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3")),b.showTileLayer(b.engine.getLayerByName("cheek4-1")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3")),b.hideTileLayer(b.engine.getLayerByName("cheek1-1checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek1-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3checkmark")),b.showTileLayer(b.engine.getLayerByName("cheek4-1checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek4-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3checkmark")),b.setGameAttribute("cheek",10)):b.getActor(88).isMouseDown()?(b.hideTileLayer(b.engine.getLayerByName("cheek1-1")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3")), b.hideTileLayer(b.engine.getLayerByName("cheek2-1")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1")),b.showTileLayer(b.engine.getLayerByName("cheek4-2")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1")), b.hideTileLayer(b.engine.getLayerByName("cheek5-2")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3")),b.hideTileLayer(b.engine.getLayerByName("cheek1-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek3-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1checkmark")),b.showTileLayer(b.engine.getLayerByName("cheek4-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3checkmark")),b.setGameAttribute("cheek", 11)):b.getActor(89).isMouseDown()?(b.hideTileLayer(b.engine.getLayerByName("cheek1-1")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3")), b.hideTileLayer(b.engine.getLayerByName("cheek4-1")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2")),b.showTileLayer(b.engine.getLayerByName("cheek4-3")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3")),b.hideTileLayer(b.engine.getLayerByName("cheek1-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek2-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2checkmark")),b.showTileLayer(b.engine.getLayerByName("cheek4-3checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek5-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3checkmark")),b.setGameAttribute("cheek",12)):b.getActor(90).isMouseDown()?(b.hideTileLayer(b.engine.getLayerByName("cheek1-1")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2")), b.hideTileLayer(b.engine.getLayerByName("cheek2-3")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3")),b.showTileLayer(b.engine.getLayerByName("cheek5-1")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3")), b.hideTileLayer(b.engine.getLayerByName("cheek1-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek4-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3checkmark")),b.showTileLayer(b.engine.getLayerByName("cheek5-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3checkmark")),b.setGameAttribute("cheek",13)):b.getActor(91).isMouseDown()?(b.hideTileLayer(b.engine.getLayerByName("cheek1-1")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2")), b.hideTileLayer(b.engine.getLayerByName("cheek1-3")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3")), b.hideTileLayer(b.engine.getLayerByName("cheek5-1")),b.showTileLayer(b.engine.getLayerByName("cheek5-2")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3")),b.hideTileLayer(b.engine.getLayerByName("cheek1-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek3-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1checkmark")),b.showTileLayer(b.engine.getLayerByName("cheek5-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3checkmark")), b.setGameAttribute("cheek",14)):b.getActor(92).isMouseDown()?(b.hideTileLayer(b.engine.getLayerByName("cheek1-1")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3")), b.hideTileLayer(b.engine.getLayerByName("cheek4-1")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2")),b.showTileLayer(b.engine.getLayerByName("cheek5-3")),b.hideTileLayer(b.engine.getLayerByName("cheek1-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek2-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek5-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2checkmark")),b.showTileLayer(b.engine.getLayerByName("cheek5-3checkmark")),b.setGameAttribute("cheek",15)):b.getActor(73).isMouseDown()?1==m.engine.getGameAttribute("cheek")?(b.hideTileLayer(b.engine.getLayerByName("cheek1-1")),b.showTileLayer(b.engine.getLayerByName("cheek1-2")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2")), b.hideTileLayer(b.engine.getLayerByName("cheek2-3")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3")), b.hideTileLayer(b.engine.getLayerByName("cheek1-1checkmark")),b.showTileLayer(b.engine.getLayerByName("cheek1-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek4-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3checkmark")),b.setGameAttribute("cheek",2)):2==m.engine.getGameAttribute("cheek")?(b.hideTileLayer(b.engine.getLayerByName("cheek1-1")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2")), b.showTileLayer(b.engine.getLayerByName("cheek1-3")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3")), b.hideTileLayer(b.engine.getLayerByName("cheek5-1")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3")),b.hideTileLayer(b.engine.getLayerByName("cheek1-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2checkmark")),b.showTileLayer(b.engine.getLayerByName("cheek1-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek3-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3checkmark")), b.setGameAttribute("cheek",3)):(m.engine.getGameAttribute("cheek"),b.showTileLayer(b.engine.getLayerByName("cheek1-1")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3")), b.hideTileLayer(b.engine.getLayerByName("cheek4-1")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3")),b.showTileLayer(b.engine.getLayerByName("cheek1-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek2-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek5-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3checkmark")),b.setGameAttribute("cheek",1)):b.getActor(74).isMouseDown()?4==m.engine.getGameAttribute("cheek")?(b.hideTileLayer(b.engine.getLayerByName("cheek1-1")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1")),b.showTileLayer(b.engine.getLayerByName("cheek2-2")), b.hideTileLayer(b.engine.getLayerByName("cheek2-3")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3")), b.hideTileLayer(b.engine.getLayerByName("cheek1-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1checkmark")),b.showTileLayer(b.engine.getLayerByName("cheek2-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek4-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3checkmark")),b.setGameAttribute("cheek",5)):5==m.engine.getGameAttribute("cheek")?(b.hideTileLayer(b.engine.getLayerByName("cheek1-1")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2")), b.hideTileLayer(b.engine.getLayerByName("cheek1-3")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2")),b.showTileLayer(b.engine.getLayerByName("cheek2-3")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3")), b.hideTileLayer(b.engine.getLayerByName("cheek5-1")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3")),b.hideTileLayer(b.engine.getLayerByName("cheek1-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2checkmark")),b.showTileLayer(b.engine.getLayerByName("cheek2-3checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek3-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3checkmark")), b.setGameAttribute("cheek",6)):(b.hideTileLayer(b.engine.getLayerByName("cheek1-1")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3")),b.showTileLayer(b.engine.getLayerByName("cheek2-1")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3")), b.hideTileLayer(b.engine.getLayerByName("cheek4-1")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3")),b.hideTileLayer(b.engine.getLayerByName("cheek1-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3checkmark")), b.showTileLayer(b.engine.getLayerByName("cheek2-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek5-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3checkmark")),b.setGameAttribute("cheek",4)):b.getActor(75).isMouseDown()?7==m.engine.getGameAttribute("cheek")?(b.hideTileLayer(b.engine.getLayerByName("cheek1-1")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2")), b.hideTileLayer(b.engine.getLayerByName("cheek2-3")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1")),b.showTileLayer(b.engine.getLayerByName("cheek3-2")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3")), b.hideTileLayer(b.engine.getLayerByName("cheek1-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1checkmark")),b.showTileLayer(b.engine.getLayerByName("cheek3-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek4-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3checkmark")),b.setGameAttribute("cheek",8)):8==m.engine.getGameAttribute("cheek")?(b.hideTileLayer(b.engine.getLayerByName("cheek1-1")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2")), b.hideTileLayer(b.engine.getLayerByName("cheek1-3")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2")),b.showTileLayer(b.engine.getLayerByName("cheek3-3")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3")), b.hideTileLayer(b.engine.getLayerByName("cheek5-1")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3")),b.hideTileLayer(b.engine.getLayerByName("cheek1-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek3-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2checkmark")),b.showTileLayer(b.engine.getLayerByName("cheek3-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3checkmark")), b.setGameAttribute("cheek",9)):(b.hideTileLayer(b.engine.getLayerByName("cheek1-1")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3")),b.showTileLayer(b.engine.getLayerByName("cheek3-1")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3")), b.hideTileLayer(b.engine.getLayerByName("cheek4-1")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3")),b.hideTileLayer(b.engine.getLayerByName("cheek1-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek2-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3checkmark")),b.showTileLayer(b.engine.getLayerByName("cheek3-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek5-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3checkmark")),b.setGameAttribute("cheek",7)):b.getActor(76).isMouseDown()?10==m.engine.getGameAttribute("cheek")?(b.hideTileLayer(b.engine.getLayerByName("cheek1-1")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2")), b.hideTileLayer(b.engine.getLayerByName("cheek2-3")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1")),b.showTileLayer(b.engine.getLayerByName("cheek4-2")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3")), b.hideTileLayer(b.engine.getLayerByName("cheek1-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek4-1checkmark")),b.showTileLayer(b.engine.getLayerByName("cheek4-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3checkmark")),b.setGameAttribute("cheek",11)):11==m.engine.getGameAttribute("cheek")?(b.hideTileLayer(b.engine.getLayerByName("cheek1-1")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2")), b.hideTileLayer(b.engine.getLayerByName("cheek1-3")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2")),b.showTileLayer(b.engine.getLayerByName("cheek4-3")), b.hideTileLayer(b.engine.getLayerByName("cheek5-1")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3")),b.hideTileLayer(b.engine.getLayerByName("cheek1-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek3-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2checkmark")),b.showTileLayer(b.engine.getLayerByName("cheek4-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3checkmark")), b.setGameAttribute("cheek",12)):(b.hideTileLayer(b.engine.getLayerByName("cheek1-1")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3")), b.showTileLayer(b.engine.getLayerByName("cheek4-1")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3")),b.hideTileLayer(b.engine.getLayerByName("cheek1-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek2-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3checkmark")),b.showTileLayer(b.engine.getLayerByName("cheek4-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek5-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3checkmark")),b.setGameAttribute("cheek",10)):b.getActor(77).isMouseDown()?13==m.engine.getGameAttribute("cheek")?(b.hideTileLayer(b.engine.getLayerByName("cheek1-1")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2")), b.hideTileLayer(b.engine.getLayerByName("cheek2-3")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1")),b.showTileLayer(b.engine.getLayerByName("cheek5-2")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3")), b.hideTileLayer(b.engine.getLayerByName("cheek1-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek4-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1checkmark")),b.showTileLayer(b.engine.getLayerByName("cheek5-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3checkmark")),b.setGameAttribute("cheek",14)):14==m.engine.getGameAttribute("cheek")?(b.hideTileLayer(b.engine.getLayerByName("cheek1-1")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2")), b.hideTileLayer(b.engine.getLayerByName("cheek1-3")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3")), b.hideTileLayer(b.engine.getLayerByName("cheek5-1")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2")),b.showTileLayer(b.engine.getLayerByName("cheek5-3")),b.hideTileLayer(b.engine.getLayerByName("cheek1-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek3-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2checkmark")),b.showTileLayer(b.engine.getLayerByName("cheek5-3checkmark")), b.setGameAttribute("cheek",15)):(b.hideTileLayer(b.engine.getLayerByName("cheek1-1")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3")), b.hideTileLayer(b.engine.getLayerByName("cheek4-1")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3")),b.showTileLayer(b.engine.getLayerByName("cheek5-1")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3")),b.hideTileLayer(b.engine.getLayerByName("cheek1-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek2-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3checkmark")), b.showTileLayer(b.engine.getLayerByName("cheek5-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3checkmark")),b.setGameAttribute("cheek",13)):b.getActor(16).isMouseDown()?(b.hideTileLayer(b.engine.getLayerByName("cheek1-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek2-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek5-3checkmark")),b.setGameAttribute("stage",10),b.hideTileLayer(b.engine.getLayerByName("eyelash1checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash2checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash3checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash4checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash5checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash6checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash7checkmark")), b.hideTileLayer(b.engine.getLayerByName("eyelash8checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash9checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash10checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelashControlsJulie")),b.hideTileLayer(b.engine.getLayerByName("cheekControlPanel")),b.showTileLayer(b.engine.getLayerByName("eyelashControlsJulie")),1==m.engine.getGameAttribute("eyelash")?b.showTileLayer(b.engine.getLayerByName("eyelash1checkmark")):2==m.engine.getGameAttribute("eyelash")? b.showTileLayer(b.engine.getLayerByName("eyelash2checkmark")):3==m.engine.getGameAttribute("eyelash")?b.showTileLayer(b.engine.getLayerByName("eyelash3checkmark")):4==m.engine.getGameAttribute("eyelash")?b.showTileLayer(b.engine.getLayerByName("eyelash4checkmark")):5==m.engine.getGameAttribute("eyelash")?b.showTileLayer(b.engine.getLayerByName("eyelash5heckmark")):6==m.engine.getGameAttribute("eyelash")?b.showTileLayer(b.engine.getLayerByName("eyelash6heckmark")):7==m.engine.getGameAttribute("eyelash")? b.showTileLayer(b.engine.getLayerByName("eyelash7checkmark")):8==m.engine.getGameAttribute("eyelash")?b.showTileLayer(b.engine.getLayerByName("eyelash8checkmark")):9==m.engine.getGameAttribute("eyelash")?b.showTileLayer(b.engine.getLayerByName("eyelash9checkmark")):10==m.engine.getGameAttribute("eyelash")&&b.showTileLayer(b.engine.getLayerByName("eyelash10checkmark")),b.runLater(300,function(a){b.setGameAttribute("stage",3)},null),b.hideTileLayer(b.engine.getLayerByName("menuCheek")),b.showTileLayer(b.engine.getLayerByName("menuEyelash"))): b.getActor(170).isMouseDown()?b.switchScene(lb.get().scenes.h[0].getID(),null,b.createCrossfadeTransition(.5)):b.getActor(17).isMouseDown()&&(b.hideTileLayer(b.engine.getLayerByName("menuCheek")),b.showTileLayer(b.engine.getLayerByName("menuLip")),b.hideTileLayer(b.engine.getLayerByName("cheek1-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek2-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek5-3checkmark")),b.setGameAttribute("stage",5),b.showTileLayer(b.engine.getLayerByName("lipControls")),b.hideTileLayer(b.engine.getLayerByName("cheekControlPanel")),1==m.engine.getGameAttribute("lip")?b.showTileLayer(b.engine.getLayerByName("lip1checkmark")):2==m.engine.getGameAttribute("lip")?b.showTileLayer(b.engine.getLayerByName("lip2checkmark")):3==m.engine.getGameAttribute("lip")?b.showTileLayer(b.engine.getLayerByName("lip3checkmark")):4==m.engine.getGameAttribute("lip")? b.showTileLayer(b.engine.getLayerByName("lip4checkmark")):5==m.engine.getGameAttribute("lip")?b.showTileLayer(b.engine.getLayerByName("lip5checkmark")):6==m.engine.getGameAttribute("lip")?b.showTileLayer(b.engine.getLayerByName("lip6checkmark")):7==m.engine.getGameAttribute("lip")?b.showTileLayer(b.engine.getLayerByName("lip7checkmark")):8==m.engine.getGameAttribute("lip")&&b.showTileLayer(b.engine.getLayerByName("lip8checkmark"))))});this.addMousePressedListener(function(c){a.wrapper.enabled&&3== m.engine.getGameAttribute("stage")&&(b.getActor(29).isMouseDown()?(b.setGameAttribute("eyelash",1),b.showTileLayer(b.engine.getLayerByName("eyelash1")),b.hideTileLayer(b.engine.getLayerByName("eyelash2")),b.hideTileLayer(b.engine.getLayerByName("eyelash3")),b.hideTileLayer(b.engine.getLayerByName("eyelash4")),b.hideTileLayer(b.engine.getLayerByName("eyelash5")),b.hideTileLayer(b.engine.getLayerByName("eyelash6")),b.hideTileLayer(b.engine.getLayerByName("eyelash7")),b.hideTileLayer(b.engine.getLayerByName("eyelash8")), b.hideTileLayer(b.engine.getLayerByName("eyelash9")),b.hideTileLayer(b.engine.getLayerByName("eyelash10")),b.showTileLayer(b.engine.getLayerByName("eyelash1checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash2checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash3checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash4checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash5checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash6checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash7checkmark")), b.hideTileLayer(b.engine.getLayerByName("eyelash8checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash9checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash10checkmark"))):b.getActor(30).isMouseDown()?(b.setGameAttribute("eyelash",2),b.hideTileLayer(b.engine.getLayerByName("eyelash1")),b.showTileLayer(b.engine.getLayerByName("eyelash2")),b.hideTileLayer(b.engine.getLayerByName("eyelash3")),b.hideTileLayer(b.engine.getLayerByName("eyelash4")),b.hideTileLayer(b.engine.getLayerByName("eyelash5")), b.hideTileLayer(b.engine.getLayerByName("eyelash6")),b.hideTileLayer(b.engine.getLayerByName("eyelash7")),b.hideTileLayer(b.engine.getLayerByName("eyelash8")),b.hideTileLayer(b.engine.getLayerByName("eyelash9")),b.hideTileLayer(b.engine.getLayerByName("eyelash10")),b.hideTileLayer(b.engine.getLayerByName("eyelash1checkmark")),b.showTileLayer(b.engine.getLayerByName("eyelash2checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash3checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash4checkmark")), b.hideTileLayer(b.engine.getLayerByName("eyelash5checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash6checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash7checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash8checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash9checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash10checkmark"))):b.getActor(36).isMouseDown()?(b.setGameAttribute("eyelash",3),b.hideTileLayer(b.engine.getLayerByName("eyelash1")),b.hideTileLayer(b.engine.getLayerByName("eyelash2")), b.showTileLayer(b.engine.getLayerByName("eyelash3")),b.hideTileLayer(b.engine.getLayerByName("eyelash4")),b.hideTileLayer(b.engine.getLayerByName("eyelash5")),b.hideTileLayer(b.engine.getLayerByName("eyelash6")),b.hideTileLayer(b.engine.getLayerByName("eyelash7")),b.hideTileLayer(b.engine.getLayerByName("eyelash8")),b.hideTileLayer(b.engine.getLayerByName("eyelash9")),b.hideTileLayer(b.engine.getLayerByName("eyelash10")),b.hideTileLayer(b.engine.getLayerByName("eyelash1checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash2checkmark")), b.showTileLayer(b.engine.getLayerByName("eyelash3checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash4checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash5checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash6checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash7checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash8checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash9checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash10checkmark"))):b.getActor(37).isMouseDown()? (b.setGameAttribute("eyelash",4),b.hideTileLayer(b.engine.getLayerByName("eyelash1")),b.hideTileLayer(b.engine.getLayerByName("eyelash2")),b.hideTileLayer(b.engine.getLayerByName("eyelash3")),b.showTileLayer(b.engine.getLayerByName("eyelash4")),b.hideTileLayer(b.engine.getLayerByName("eyelash5")),b.hideTileLayer(b.engine.getLayerByName("eyelash6")),b.hideTileLayer(b.engine.getLayerByName("eyelash7")),b.hideTileLayer(b.engine.getLayerByName("eyelash8")),b.hideTileLayer(b.engine.getLayerByName("eyelash9")), b.hideTileLayer(b.engine.getLayerByName("eyelash10")),b.hideTileLayer(b.engine.getLayerByName("eyelash1checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash2checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash3checkmark")),b.showTileLayer(b.engine.getLayerByName("eyelash4checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash5checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash6checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash7checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash8checkmark")), b.hideTileLayer(b.engine.getLayerByName("eyelash9checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash10checkmark"))):b.getActor(38).isMouseDown()?(b.setGameAttribute("eyelash",5),b.hideTileLayer(b.engine.getLayerByName("eyelash1")),b.hideTileLayer(b.engine.getLayerByName("eyelash2")),b.hideTileLayer(b.engine.getLayerByName("eyelash3")),b.hideTileLayer(b.engine.getLayerByName("eyelash4")),b.showTileLayer(b.engine.getLayerByName("eyelash5")),b.hideTileLayer(b.engine.getLayerByName("eyelash6")), b.hideTileLayer(b.engine.getLayerByName("eyelash7")),b.hideTileLayer(b.engine.getLayerByName("eyelash8")),b.hideTileLayer(b.engine.getLayerByName("eyelash9")),b.hideTileLayer(b.engine.getLayerByName("eyelash10")),b.hideTileLayer(b.engine.getLayerByName("eyelash1checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash2checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash3checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash4checkmark")),b.showTileLayer(b.engine.getLayerByName("eyelash5checkmark")), b.hideTileLayer(b.engine.getLayerByName("eyelash6checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash7checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash8checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash9checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash10checkmark"))):b.getActor(31).isMouseDown()?(b.setGameAttribute("eyelash",6),b.hideTileLayer(b.engine.getLayerByName("eyelash1")),b.hideTileLayer(b.engine.getLayerByName("eyelash2")),b.hideTileLayer(b.engine.getLayerByName("eyelash3")), b.hideTileLayer(b.engine.getLayerByName("eyelash4")),b.hideTileLayer(b.engine.getLayerByName("eyelash5")),b.showTileLayer(b.engine.getLayerByName("eyelash6")),b.hideTileLayer(b.engine.getLayerByName("eyelash7")),b.hideTileLayer(b.engine.getLayerByName("eyelash8")),b.hideTileLayer(b.engine.getLayerByName("eyelash9")),b.hideTileLayer(b.engine.getLayerByName("eyelash10")),b.hideTileLayer(b.engine.getLayerByName("eyelash1checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash2checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash3checkmark")), b.hideTileLayer(b.engine.getLayerByName("eyelash4checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash5checkmark")),b.showTileLayer(b.engine.getLayerByName("eyelash6checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash7checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash8checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash9checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash10checkmark"))):b.getActor(32).isMouseDown()?(b.setGameAttribute("eyelash",1),b.hideTileLayer(b.engine.getLayerByName("eyelash1")), b.hideTileLayer(b.engine.getLayerByName("eyelash2")),b.hideTileLayer(b.engine.getLayerByName("eyelash3")),b.hideTileLayer(b.engine.getLayerByName("eyelash4")),b.hideTileLayer(b.engine.getLayerByName("eyelash5")),b.hideTileLayer(b.engine.getLayerByName("eyelash6")),b.showTileLayer(b.engine.getLayerByName("eyelash7")),b.hideTileLayer(b.engine.getLayerByName("eyelash8")),b.hideTileLayer(b.engine.getLayerByName("eyelash9")),b.hideTileLayer(b.engine.getLayerByName("eyelash10")),b.hideTileLayer(b.engine.getLayerByName("eyelash1checkmark")), b.hideTileLayer(b.engine.getLayerByName("eyelash2checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash3checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash4checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash5checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash6checkmark")),b.showTileLayer(b.engine.getLayerByName("eyelash7checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash8checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash9checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash10checkmark"))): b.getActor(33).isMouseDown()?(b.setGameAttribute("eyelash",1),b.hideTileLayer(b.engine.getLayerByName("eyelash1")),b.hideTileLayer(b.engine.getLayerByName("eyelash2")),b.hideTileLayer(b.engine.getLayerByName("eyelash3")),b.hideTileLayer(b.engine.getLayerByName("eyelash4")),b.hideTileLayer(b.engine.getLayerByName("eyelash5")),b.hideTileLayer(b.engine.getLayerByName("eyelash6")),b.hideTileLayer(b.engine.getLayerByName("eyelash7")),b.showTileLayer(b.engine.getLayerByName("eyelash8")),b.hideTileLayer(b.engine.getLayerByName("eyelash9")), b.hideTileLayer(b.engine.getLayerByName("eyelash10")),b.hideTileLayer(b.engine.getLayerByName("eyelash1checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash2checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash3checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash4checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash5checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash6checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash7checkmark")),b.showTileLayer(b.engine.getLayerByName("eyelash8checkmark")), b.hideTileLayer(b.engine.getLayerByName("eyelash9checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash10checkmark"))):b.getActor(34).isMouseDown()?(b.setGameAttribute("eyelash",9),b.hideTileLayer(b.engine.getLayerByName("eyelash1")),b.hideTileLayer(b.engine.getLayerByName("eyelash2")),b.hideTileLayer(b.engine.getLayerByName("eyelash3")),b.hideTileLayer(b.engine.getLayerByName("eyelash4")),b.hideTileLayer(b.engine.getLayerByName("eyelash5")),b.hideTileLayer(b.engine.getLayerByName("eyelash6")), b.hideTileLayer(b.engine.getLayerByName("eyelash7")),b.hideTileLayer(b.engine.getLayerByName("eyelash8")),b.showTileLayer(b.engine.getLayerByName("eyelash9")),b.hideTileLayer(b.engine.getLayerByName("eyelash10")),b.hideTileLayer(b.engine.getLayerByName("eyelash1checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash2checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash3checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash4checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash5checkmark")), b.hideTileLayer(b.engine.getLayerByName("eyelash6checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash7checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash8checkmark")),b.showTileLayer(b.engine.getLayerByName("eyelash9checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash10checkmark"))):b.getActor(35).isMouseDown()?(b.setGameAttribute("eyelash",10),b.hideTileLayer(b.engine.getLayerByName("eyelash1")),b.hideTileLayer(b.engine.getLayerByName("eyelash2")),b.hideTileLayer(b.engine.getLayerByName("eyelash3")), b.hideTileLayer(b.engine.getLayerByName("eyelash4")),b.hideTileLayer(b.engine.getLayerByName("eyelash5")),b.hideTileLayer(b.engine.getLayerByName("eyelash6")),b.hideTileLayer(b.engine.getLayerByName("eyelash7")),b.hideTileLayer(b.engine.getLayerByName("eyelash8")),b.hideTileLayer(b.engine.getLayerByName("eyelash9")),b.showTileLayer(b.engine.getLayerByName("eyelash10")),b.hideTileLayer(b.engine.getLayerByName("eyelash1checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash2checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash3checkmark")), b.hideTileLayer(b.engine.getLayerByName("eyelash4checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash5checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash6checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash7checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash8checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash9checkmark")),b.showTileLayer(b.engine.getLayerByName("eyelash10checkmark"))):b.getActor(16).isMouseDown()?(b.hideTileLayer(b.engine.getLayerByName("eyelash1checkmark")), b.hideTileLayer(b.engine.getLayerByName("eyelash2checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash3checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash4checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash5checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash6checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash7checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash8checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash9checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash10checkmark")), b.setGameAttribute("stage",10),b.showTileLayer(b.engine.getLayerByName("eyeControls")),b.hideTileLayer(b.engine.getLayerByName("eye1checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye2checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye3checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye4checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye5checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye6checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye7checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye8checkmark")), b.hideTileLayer(b.engine.getLayerByName("eye9checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye10checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelashControls")),b.showTileLayer(b.engine.getLayerByName("eyeControls")),1==m.engine.getGameAttribute("eyeNum")?b.showTileLayer(b.engine.getLayerByName("eye1checkmark")):2==m.engine.getGameAttribute("eyeNum")?b.showTileLayer(b.engine.getLayerByName("eye2checkmark")):3==m.engine.getGameAttribute("eyeNum")?b.showTileLayer(b.engine.getLayerByName("eye3checkmark")): 4==m.engine.getGameAttribute("eyeNum")?b.showTileLayer(b.engine.getLayerByName("eye4checkmark")):5==m.engine.getGameAttribute("eyeNum")?b.showTileLayer(b.engine.getLayerByName("eye5checkmark")):6==m.engine.getGameAttribute("eyeNum")?b.showTileLayer(b.engine.getLayerByName("eye6checkmark")):7==m.engine.getGameAttribute("eyeNum")?b.showTileLayer(b.engine.getLayerByName("eye7checkmark")):8==m.engine.getGameAttribute("eyeNum")?b.showTileLayer(b.engine.getLayerByName("eye8checkmark")):9==m.engine.getGameAttribute("eyeNum")? b.showTileLayer(b.engine.getLayerByName("eye9checkmark")):10==m.engine.getGameAttribute("eyeNum")&&b.showTileLayer(b.engine.getLayerByName("eye10checkmark")),b.runLater(300,function(a){b.setGameAttribute("stage",2)},null),b.hideTileLayer(b.engine.getLayerByName("menuEyelash")),b.showTileLayer(b.engine.getLayerByName("menuEye"))):b.getActor(170).isMouseDown()?b.switchScene(lb.get().scenes.h[0].getID(),null,b.createCrossfadeTransition(.5)):b.getActor(17).isMouseDown()&&(b.hideTileLayer(b.engine.getLayerByName("menuEyelash")), b.showTileLayer(b.engine.getLayerByName("menuCheek")),b.setGameAttribute("stage",4),b.hideTileLayer(b.engine.getLayerByName("eyelash1checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash2checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash3checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash4checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash5checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash6checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash7checkmark")), b.hideTileLayer(b.engine.getLayerByName("eyelash8checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash9checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash10checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelashControls")),b.showTileLayer(b.engine.getLayerByName("cheekControlPanel")),b.hideTileLayer(b.engine.getLayerByName("lipControls")),1==m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek1-1checkmark")):2==m.engine.getGameAttribute("cheek")? b.showTileLayer(b.engine.getLayerByName("cheek1-2checkmark")):3==m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek1-3checkmark")):4==m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek2-1checkmark")):5==m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek2-2checkmark")):6==m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek2-3checkmark")):7==m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek3-1checkmark")): 8==m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek3-2checkmark")):9==m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek3-3checkmark")):10==m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek4-1checkmark")):11==m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek4-2checkmark")):12==m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek4-3checkmark")): 13==m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek5-1checkmark")):14==m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek5-2checkmark")):15==m.engine.getGameAttribute("cheek")&&b.showTileLayer(b.engine.getLayerByName("cheek5-3checkmark"))))});this.addMousePressedListener(function(c){a.wrapper.enabled&&2==m.engine.getGameAttribute("stage")&&(b.getActor(71).isMouseDown()?(b.showTileLayer(b.engine.getLayerByName("eye1")),b.hideTileLayer(b.engine.getLayerByName("eye2")), b.hideTileLayer(b.engine.getLayerByName("eye3")),b.hideTileLayer(b.engine.getLayerByName("eye4")),b.hideTileLayer(b.engine.getLayerByName("eye5")),b.hideTileLayer(b.engine.getLayerByName("eye6")),b.hideTileLayer(b.engine.getLayerByName("eye7")),b.hideTileLayer(b.engine.getLayerByName("eye8")),b.hideTileLayer(b.engine.getLayerByName("eye9")),b.hideTileLayer(b.engine.getLayerByName("eye10")),b.showTileLayer(b.engine.getLayerByName("eye1checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye2checkmark")), b.hideTileLayer(b.engine.getLayerByName("eye3checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye4checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye5checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye6checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye7checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye8checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye9checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye10checkmark")),b.setGameAttribute("eyeNum",1)):b.getActor(51).isMouseDown()? (b.hideTileLayer(b.engine.getLayerByName("eye1")),b.showTileLayer(b.engine.getLayerByName("eye2")),b.hideTileLayer(b.engine.getLayerByName("eye3")),b.hideTileLayer(b.engine.getLayerByName("eye4")),b.hideTileLayer(b.engine.getLayerByName("eye5")),b.hideTileLayer(b.engine.getLayerByName("eye6")),b.hideTileLayer(b.engine.getLayerByName("eye7")),b.hideTileLayer(b.engine.getLayerByName("eye8")),b.hideTileLayer(b.engine.getLayerByName("eye9")),b.hideTileLayer(b.engine.getLayerByName("eye10")),b.hideTileLayer(b.engine.getLayerByName("eye1checkmark")), b.showTileLayer(b.engine.getLayerByName("eye2checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye3checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye4checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye5checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye6checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye7checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye8checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye9checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye10checkmark")), b.setGameAttribute("eyeNum",2)):b.getActor(52).isMouseDown()?(b.hideTileLayer(b.engine.getLayerByName("eye1")),b.hideTileLayer(b.engine.getLayerByName("eye2")),b.showTileLayer(b.engine.getLayerByName("eye3")),b.hideTileLayer(b.engine.getLayerByName("eye4")),b.hideTileLayer(b.engine.getLayerByName("eye5")),b.hideTileLayer(b.engine.getLayerByName("eye6")),b.hideTileLayer(b.engine.getLayerByName("eye7")),b.hideTileLayer(b.engine.getLayerByName("eye8")),b.hideTileLayer(b.engine.getLayerByName("eye9")), b.hideTileLayer(b.engine.getLayerByName("eye10")),b.hideTileLayer(b.engine.getLayerByName("eye1checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye2checkmark")),b.showTileLayer(b.engine.getLayerByName("eye3checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye4checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye5checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye6checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye7checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye8checkmark")), b.hideTileLayer(b.engine.getLayerByName("eye9checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye10checkmark")),b.setGameAttribute("eyeNum",3)):b.getActor(53).isMouseDown()?(b.hideTileLayer(b.engine.getLayerByName("eye1")),b.hideTileLayer(b.engine.getLayerByName("eye2")),b.hideTileLayer(b.engine.getLayerByName("eye3")),b.showTileLayer(b.engine.getLayerByName("eye4")),b.hideTileLayer(b.engine.getLayerByName("eye5")),b.hideTileLayer(b.engine.getLayerByName("eye6")),b.hideTileLayer(b.engine.getLayerByName("eye7")), b.hideTileLayer(b.engine.getLayerByName("eye8")),b.hideTileLayer(b.engine.getLayerByName("eye9")),b.hideTileLayer(b.engine.getLayerByName("eye10")),b.hideTileLayer(b.engine.getLayerByName("eye1checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye2checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye3checkmark")),b.showTileLayer(b.engine.getLayerByName("eye4checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye5checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye6checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye7checkmark")), b.hideTileLayer(b.engine.getLayerByName("eye8checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye9checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye10checkmark")),b.setGameAttribute("eyeNum",4)):b.getActor(54).isMouseDown()?(b.hideTileLayer(b.engine.getLayerByName("eye1")),b.hideTileLayer(b.engine.getLayerByName("eye2")),b.hideTileLayer(b.engine.getLayerByName("eye3")),b.hideTileLayer(b.engine.getLayerByName("eye4")),b.showTileLayer(b.engine.getLayerByName("eye5")),b.hideTileLayer(b.engine.getLayerByName("eye6")), b.hideTileLayer(b.engine.getLayerByName("eye7")),b.hideTileLayer(b.engine.getLayerByName("eye8")),b.hideTileLayer(b.engine.getLayerByName("eye9")),b.hideTileLayer(b.engine.getLayerByName("eye10")),b.hideTileLayer(b.engine.getLayerByName("eye1checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye2checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye3checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye4checkmark")),b.showTileLayer(b.engine.getLayerByName("eye5checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye6checkmark")), b.hideTileLayer(b.engine.getLayerByName("eye7checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye8checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye9checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye10checkmark")),b.setGameAttribute("eyeNum",5)):b.getActor(55).isMouseDown()?(b.hideTileLayer(b.engine.getLayerByName("eye1")),b.hideTileLayer(b.engine.getLayerByName("eye2")),b.hideTileLayer(b.engine.getLayerByName("eye3")),b.hideTileLayer(b.engine.getLayerByName("eye4")),b.hideTileLayer(b.engine.getLayerByName("eye5")), b.showTileLayer(b.engine.getLayerByName("eye6")),b.hideTileLayer(b.engine.getLayerByName("eye7")),b.hideTileLayer(b.engine.getLayerByName("eye8")),b.hideTileLayer(b.engine.getLayerByName("eye9")),b.hideTileLayer(b.engine.getLayerByName("eye10")),b.hideTileLayer(b.engine.getLayerByName("eye1checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye2checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye3checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye4checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye5checkmark")), b.showTileLayer(b.engine.getLayerByName("eye6checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye7checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye8checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye9checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye10checkmark")),b.setGameAttribute("eyeNum",6)):b.getActor(56).isMouseDown()?(b.hideTileLayer(b.engine.getLayerByName("eye1")),b.hideTileLayer(b.engine.getLayerByName("eye2")),b.hideTileLayer(b.engine.getLayerByName("eye3")),b.hideTileLayer(b.engine.getLayerByName("eye4")), b.hideTileLayer(b.engine.getLayerByName("eye5")),b.hideTileLayer(b.engine.getLayerByName("eye6")),b.showTileLayer(b.engine.getLayerByName("eye7")),b.hideTileLayer(b.engine.getLayerByName("eye8")),b.hideTileLayer(b.engine.getLayerByName("eye9")),b.hideTileLayer(b.engine.getLayerByName("eye10")),b.hideTileLayer(b.engine.getLayerByName("eye1checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye2checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye3checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye4checkmark")), b.hideTileLayer(b.engine.getLayerByName("eye5checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye6checkmark")),b.showTileLayer(b.engine.getLayerByName("eye7checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye8checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye9checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye10checkmark")),b.setGameAttribute("eyeNum",7)):b.getActor(57).isMouseDown()?(b.hideTileLayer(b.engine.getLayerByName("eye1")),b.hideTileLayer(b.engine.getLayerByName("eye2")), b.hideTileLayer(b.engine.getLayerByName("eye3")),b.hideTileLayer(b.engine.getLayerByName("eye4")),b.hideTileLayer(b.engine.getLayerByName("eye5")),b.hideTileLayer(b.engine.getLayerByName("eye6")),b.hideTileLayer(b.engine.getLayerByName("eye7")),b.showTileLayer(b.engine.getLayerByName("eye8")),b.hideTileLayer(b.engine.getLayerByName("eye9")),b.hideTileLayer(b.engine.getLayerByName("eye10")),b.hideTileLayer(b.engine.getLayerByName("eye1checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye2checkmark")), b.hideTileLayer(b.engine.getLayerByName("eye3checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye4checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye5checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye6checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye7checkmark")),b.showTileLayer(b.engine.getLayerByName("eye8checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye9checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye10checkmark")),b.setGameAttribute("eyeNum",8)):b.getActor(58).isMouseDown()? (b.hideTileLayer(b.engine.getLayerByName("eye1")),b.hideTileLayer(b.engine.getLayerByName("eye2")),b.hideTileLayer(b.engine.getLayerByName("eye3")),b.hideTileLayer(b.engine.getLayerByName("eye4")),b.hideTileLayer(b.engine.getLayerByName("eye5")),b.hideTileLayer(b.engine.getLayerByName("eye6")),b.hideTileLayer(b.engine.getLayerByName("eye7")),b.hideTileLayer(b.engine.getLayerByName("eye8")),b.showTileLayer(b.engine.getLayerByName("eye9")),b.hideTileLayer(b.engine.getLayerByName("eye10")),b.hideTileLayer(b.engine.getLayerByName("eye1checkmark")), b.hideTileLayer(b.engine.getLayerByName("eye2checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye3checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye4checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye5checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye6checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye7checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye8checkmark")),b.showTileLayer(b.engine.getLayerByName("eye9checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye10checkmark")), b.setGameAttribute("eyeNum",9)):b.getActor(59).isMouseDown()?(b.hideTileLayer(b.engine.getLayerByName("eye1")),b.hideTileLayer(b.engine.getLayerByName("eye2")),b.hideTileLayer(b.engine.getLayerByName("eye3")),b.hideTileLayer(b.engine.getLayerByName("eye4")),b.hideTileLayer(b.engine.getLayerByName("eye5")),b.hideTileLayer(b.engine.getLayerByName("eye6")),b.hideTileLayer(b.engine.getLayerByName("eye7")),b.hideTileLayer(b.engine.getLayerByName("eye8")),b.hideTileLayer(b.engine.getLayerByName("eye9")), b.showTileLayer(b.engine.getLayerByName("eye10")),b.hideTileLayer(b.engine.getLayerByName("eye1checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye2checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye3checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye4checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye5checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye6checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye7checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye8checkmark")), b.hideTileLayer(b.engine.getLayerByName("eye9checkmark")),b.showTileLayer(b.engine.getLayerByName("eye10checkmark")),b.setGameAttribute("eyeNum",10)):b.getActor(16).isMouseDown()?(b.hideTileLayer(b.engine.getLayerByName("menuEye")),b.showTileLayer(b.engine.getLayerByName("menuHair")),b.hideTileLayer(b.engine.getLayerByName("eye1checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye2checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye3checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye4checkmark")), b.hideTileLayer(b.engine.getLayerByName("eye5checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye6checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye7checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye8checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye9checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye10checkmark")),b.showTileLayer(b.engine.getLayerByName("hairControls")),b.hideTileLayer(b.engine.getLayerByName("eyeControls")),b.hideTileLayer(b.engine.getLayerByName("eyeControlsJulie")), b.setGameAttribute("stage",10),b.hideTileLayer(b.engine.getLayerByName("bottomButtons")),b.runLater(300,function(a){b.setGameAttribute("stage",1)},null)):b.getActor(170).isMouseDown()?b.switchScene(lb.get().scenes.h[0].getID(),null,b.createCrossfadeTransition(.5)):b.getActor(17).isMouseDown()&&(b.hideTileLayer(b.engine.getLayerByName("menuEye")),b.showTileLayer(b.engine.getLayerByName("menuEyelash")),b.setGameAttribute("stage",3),b.hideTileLayer(b.engine.getLayerByName("eyeControls")),b.hideTileLayer(b.engine.getLayerByName("eye1checkmark")), b.hideTileLayer(b.engine.getLayerByName("eye2checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye3checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye4checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye5checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye6checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye7checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye8checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye9checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye10checkmark")), b.showTileLayer(b.engine.getLayerByName("eyelashControls")),1==m.engine.getGameAttribute("eyelash")?b.showTileLayer(b.engine.getLayerByName("eyelash1checkmark")):2==m.engine.getGameAttribute("eyelash")?b.showTileLayer(b.engine.getLayerByName("eyelash2checkmark")):3==m.engine.getGameAttribute("eyelash")?b.showTileLayer(b.engine.getLayerByName("eyelash3checkmark")):4==m.engine.getGameAttribute("eyelash")?b.showTileLayer(b.engine.getLayerByName("eyelash4checkmark")):5==m.engine.getGameAttribute("eyelash")? b.showTileLayer(b.engine.getLayerByName("eyelash5checkmark")):6==m.engine.getGameAttribute("eyelash")?b.showTileLayer(b.engine.getLayerByName("eyelash6checkmark")):7==m.engine.getGameAttribute("eyelash")?b.showTileLayer(b.engine.getLayerByName("eyelash7checkmark")):8==m.engine.getGameAttribute("eyelash")?b.showTileLayer(b.engine.getLayerByName("eyelash8checkmark")):9==m.engine.getGameAttribute("eyelash")?b.showTileLayer(b.engine.getLayerByName("eyelash9checkmark")):10==m.engine.getGameAttribute("eyelash")&& b.showTileLayer(b.engine.getLayerByName("eyelash10checkmark"))))});this.addMousePressedListener(function(c){a.wrapper.enabled&&1==m.engine.getGameAttribute("stage")&&(b.getActor(1).isMouseDown()?1==m.engine.getGameAttribute("hairNum")?(b.hideTileLayer(b.engine.getLayerByName("hair1")),b.showTileLayer(b.engine.getLayerByName("hair2")),b.setGameAttribute("hairNum",2)):2==m.engine.getGameAttribute("hairNum")?(b.hideTileLayer(b.engine.getLayerByName("hair2")),b.showTileLayer(b.engine.getLayerByName("hair3")), b.setGameAttribute("hairNum",3)):3==m.engine.getGameAttribute("hairNum")?(b.hideTileLayer(b.engine.getLayerByName("hair3")),b.showTileLayer(b.engine.getLayerByName("hair4")),b.setGameAttribute("hairNum",4)):4==m.engine.getGameAttribute("hairNum")?(b.hideTileLayer(b.engine.getLayerByName("hair4")),b.showTileLayer(b.engine.getLayerByName("hair5")),b.setGameAttribute("hairNum",5)):5==m.engine.getGameAttribute("hairNum")?(b.hideTileLayer(b.engine.getLayerByName("hair5")),b.showTileLayer(b.engine.getLayerByName("hair6")), b.setGameAttribute("hairNum",6)):6==m.engine.getGameAttribute("hairNum")&&(b.hideTileLayer(b.engine.getLayerByName("hair6")),b.showTileLayer(b.engine.getLayerByName("hair1")),b.setGameAttribute("hairNum",1)):b.getActor(2).isMouseDown()?1==m.engine.getGameAttribute("hairNum")?(b.hideTileLayer(b.engine.getLayerByName("hair1")),b.showTileLayer(b.engine.getLayerByName("hair6")),b.setGameAttribute("hairNum",6)):2==m.engine.getGameAttribute("hairNum")?(b.hideTileLayer(b.engine.getLayerByName("hair2")), b.showTileLayer(b.engine.getLayerByName("hair1")),b.setGameAttribute("hairNum",1)):3==m.engine.getGameAttribute("hairNum")?(b.hideTileLayer(b.engine.getLayerByName("hair3")),b.showTileLayer(b.engine.getLayerByName("hair2")),b.setGameAttribute("hairNum",2)):4==m.engine.getGameAttribute("hairNum")?(b.hideTileLayer(b.engine.getLayerByName("hair4")),b.showTileLayer(b.engine.getLayerByName("hair3")),b.setGameAttribute("hairNum",3)):5==m.engine.getGameAttribute("hairNum")?(b.hideTileLayer(b.engine.getLayerByName("hair5")), b.showTileLayer(b.engine.getLayerByName("hair4")),b.setGameAttribute("hairNum",4)):6==m.engine.getGameAttribute("hairNum")&&(b.hideTileLayer(b.engine.getLayerByName("hair6")),b.showTileLayer(b.engine.getLayerByName("hair5")),b.setGameAttribute("hairNum",5)):b.getActor(3).isMouseDown()?b.switchScene(lb.get().scenes.h[1].getID(),null,b.createCrossfadeTransition(.5)):b.getActor(169).isMouseDown()?b.switchScene(lb.get().scenes.h[0].getID(),null,b.createCrossfadeTransition(.5)):b.getActor(4).isMouseDown()&& (b.hideTileLayer(b.engine.getLayerByName("hairControls")),b.hideTileLayer(b.engine.getLayerByName("menuHair")),b.showTileLayer(b.engine.getLayerByName("menuEye")),b.showTileLayer(b.engine.getLayerByName("bottomButtons")),b.setGameAttribute("stage",2),b.showTileLayer(b.engine.getLayerByName("eyeControls")),1==m.engine.getGameAttribute("eyeNum")?b.showTileLayer(b.engine.getLayerByName("eye1checkmark")):2==m.engine.getGameAttribute("eyeNum")?b.showTileLayer(b.engine.getLayerByName("eye2checkmark")): 3==m.engine.getGameAttribute("eyeNum")?b.showTileLayer(b.engine.getLayerByName("eye3checkmark")):4==m.engine.getGameAttribute("eyeNum")?b.showTileLayer(b.engine.getLayerByName("eye4checkmark")):5==m.engine.getGameAttribute("eyeNum")?b.showTileLayer(b.engine.getLayerByName("eye5checkmark")):6==m.engine.getGameAttribute("eyeNum")?b.showTileLayer(b.engine.getLayerByName("eye6checkmark")):7==m.engine.getGameAttribute("eyeNum")?b.showTileLayer(b.engine.getLayerByName("eye7checkmark")):8==m.engine.getGameAttribute("eyeNum")? b.showTileLayer(b.engine.getLayerByName("eye8checkmark")):9==m.engine.getGameAttribute("eyeNum")?b.showTileLayer(b.engine.getLayerByName("eye9checkmark")):10==m.engine.getGameAttribute("eyeNum")&&b.showTileLayer(b.engine.getLayerByName("eye10checkmark"))))});this.addMouseOverActorListener(b.getRegion(0),function(c,d){a.wrapper.enabled&&3==c&&2!=m.engine.getGameAttribute("stage")&&7>m.engine.getGameAttribute("stage")&&1!=m.engine.getGameAttribute("stage")&&(b.showTileLayer(b.engine.getLayerByName("eyeControls")), b.hideTileLayer(b.engine.getLayerByName("eyelashControls")),b.hideTileLayer(b.engine.getLayerByName("cheekControlPanel")),b.hideTileLayer(b.engine.getLayerByName("lipControls")),b.hideTileLayer(b.engine.getLayerByName("accessoryControlPanel1")),b.hideTileLayer(b.engine.getLayerByName("accessoryControlPanel2")),b.hideTileLayer(b.engine.getLayerByName("accessoryControlPanel3")),b.hideTileLayer(b.engine.getLayerByName("accessoryControlArrows")),b.setGameAttribute("stage",2),b.hideTileLayer(b.engine.getLayerByName("eye1checkmark")), b.hideTileLayer(b.engine.getLayerByName("eye2checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye3checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye4checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye5checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye6checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye7checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye8checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye9checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye10checkmark")), b.hideTileLayer(b.engine.getLayerByName("eyelash1checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash2checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash3checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash4checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash5checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash6checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash7checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash8checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash9checkmark")), b.hideTileLayer(b.engine.getLayerByName("eyelash10checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek3-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip1checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip2checkmark")), b.hideTileLayer(b.engine.getLayerByName("lip3checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip4checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip5checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip6checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip7checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip8checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory1checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory2checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory3checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory4checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory5checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory6checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory7checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory8checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory9checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory10checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory11checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory12checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory13checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory14checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory15checkmark")),b.hideTileLayer(b.engine.getLayerByName("menuHair")),b.showTileLayer(b.engine.getLayerByName("menuEye")),b.hideTileLayer(b.engine.getLayerByName("menuEyelash")),b.hideTileLayer(b.engine.getLayerByName("menuCheek")),b.hideTileLayer(b.engine.getLayerByName("menuLip")), b.hideTileLayer(b.engine.getLayerByName("menuAccessory")),b.hideTileLayer(b.engine.getLayerByName("menuCloth")),b.hideTileLayer(b.engine.getLayerByName("menuBackground")),1==m.engine.getGameAttribute("eyeNum")?b.showTileLayer(b.engine.getLayerByName("eye1checkmark")):2==m.engine.getGameAttribute("eyeNum")?b.showTileLayer(b.engine.getLayerByName("eye2checkmark")):3==m.engine.getGameAttribute("eyeNum")?b.showTileLayer(b.engine.getLayerByName("eye3checkmark")):4==m.engine.getGameAttribute("eyeNum")? b.showTileLayer(b.engine.getLayerByName("eye4checkmark")):5==m.engine.getGameAttribute("eyeNum")?b.showTileLayer(b.engine.getLayerByName("eye5checkmark")):6==m.engine.getGameAttribute("eyeNum")?b.showTileLayer(b.engine.getLayerByName("eye6checkmark")):7==m.engine.getGameAttribute("eyeNum")?b.showTileLayer(b.engine.getLayerByName("eye7checkmark")):8==m.engine.getGameAttribute("eyeNum")?b.showTileLayer(b.engine.getLayerByName("eye8checkmark")):9==m.engine.getGameAttribute("eyeNum")?b.showTileLayer(b.engine.getLayerByName("eye9checkmark")): 10==m.engine.getGameAttribute("eyeNum")&&b.showTileLayer(b.engine.getLayerByName("eye10checkmark")))});this.addMouseOverActorListener(b.getRegion(1),function(c,d){a.wrapper.enabled&&3==c&&3!=m.engine.getGameAttribute("stage")&&7>m.engine.getGameAttribute("stage")&&1!=m.engine.getGameAttribute("stage")&&(b.hideTileLayer(b.engine.getLayerByName("eyeControls")),b.showTileLayer(b.engine.getLayerByName("eyelashControls")),b.hideTileLayer(b.engine.getLayerByName("cheekControlPanel")),b.hideTileLayer(b.engine.getLayerByName("lipControls")), b.hideTileLayer(b.engine.getLayerByName("accessoryControlPanel1")),b.hideTileLayer(b.engine.getLayerByName("accessoryControlPanel2")),b.hideTileLayer(b.engine.getLayerByName("accessoryControlPanel3")),b.hideTileLayer(b.engine.getLayerByName("accessoryControlArrows")),b.setGameAttribute("stage",3),b.hideTileLayer(b.engine.getLayerByName("eye1checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye2checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye3checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye4checkmark")), b.hideTileLayer(b.engine.getLayerByName("eye5checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye6checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye7checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye8checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye9checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye10checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash1checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash2checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash3checkmark")), b.hideTileLayer(b.engine.getLayerByName("eyelash4checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash5checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash6checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash7checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash8checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash9checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash10checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek1-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek4-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip1checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip2checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip3checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip4checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip5checkmark")), b.hideTileLayer(b.engine.getLayerByName("lip6checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip7checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip8checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory1checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory2checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory3checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory4checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory5checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory6checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory7checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory8checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory9checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory10checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory11checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory12checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory13checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory14checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory15checkmark")),b.hideTileLayer(b.engine.getLayerByName("menuHair")),b.hideTileLayer(b.engine.getLayerByName("menuEye")),b.showTileLayer(b.engine.getLayerByName("menuEyelash")),b.hideTileLayer(b.engine.getLayerByName("menuCheek")),b.hideTileLayer(b.engine.getLayerByName("menuLip")),b.hideTileLayer(b.engine.getLayerByName("menuAccessory")),b.hideTileLayer(b.engine.getLayerByName("menuCloth")),b.hideTileLayer(b.engine.getLayerByName("menuBackground")), 1==m.engine.getGameAttribute("eyelash")?b.showTileLayer(b.engine.getLayerByName("eyelash1checkmark")):2==m.engine.getGameAttribute("eyelash")?b.showTileLayer(b.engine.getLayerByName("eyelash2checkmark")):3==m.engine.getGameAttribute("eyelash")?b.showTileLayer(b.engine.getLayerByName("eyelash3checkmark")):4==m.engine.getGameAttribute("eyelash")?b.showTileLayer(b.engine.getLayerByName("eyelash4checkmark")):5==m.engine.getGameAttribute("eyelash")?b.showTileLayer(b.engine.getLayerByName("eyelash5checkmark")): 6==m.engine.getGameAttribute("eyelash")?b.showTileLayer(b.engine.getLayerByName("eyelash6checkmark")):7==m.engine.getGameAttribute("eyelash")?b.showTileLayer(b.engine.getLayerByName("eyelash7checkmark")):8==m.engine.getGameAttribute("eyelash")?b.showTileLayer(b.engine.getLayerByName("eyelash8checkmark")):9==m.engine.getGameAttribute("eyelash")?b.showTileLayer(b.engine.getLayerByName("eyelash9checkmark")):10==m.engine.getGameAttribute("eyelash")&&b.showTileLayer(b.engine.getLayerByName("eyelash10checkmark")))}); this.addMouseOverActorListener(b.getRegion(2),function(c,d){a.wrapper.enabled&&3==c&&4!=m.engine.getGameAttribute("stage")&&7>m.engine.getGameAttribute("stage")&&1!=m.engine.getGameAttribute("stage")&&(b.hideTileLayer(b.engine.getLayerByName("eyeControls")),b.hideTileLayer(b.engine.getLayerByName("eyelashControls")),b.showTileLayer(b.engine.getLayerByName("cheekControlPanel")),b.hideTileLayer(b.engine.getLayerByName("lipControls")),b.hideTileLayer(b.engine.getLayerByName("accessoryControlPanel1")), b.hideTileLayer(b.engine.getLayerByName("accessoryControlPanel2")),b.hideTileLayer(b.engine.getLayerByName("accessoryControlPanel3")),b.hideTileLayer(b.engine.getLayerByName("accessoryControlArrows")),b.setGameAttribute("stage",4),b.hideTileLayer(b.engine.getLayerByName("eye1checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye2checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye3checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye4checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye5checkmark")), b.hideTileLayer(b.engine.getLayerByName("eye6checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye7checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye8checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye9checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye10checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash1checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash2checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash3checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash4checkmark")), b.hideTileLayer(b.engine.getLayerByName("eyelash5checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash6checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash7checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash8checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash9checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash10checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek2-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek5-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip1checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip2checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip3checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip4checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip5checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip6checkmark")), b.hideTileLayer(b.engine.getLayerByName("lip7checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip8checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory1checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory2checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory3checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory4checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory5checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory6checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory7checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory8checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory9checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory10checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory11checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory12checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory13checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory14checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory15checkmark")), b.hideTileLayer(b.engine.getLayerByName("menuHair")),b.hideTileLayer(b.engine.getLayerByName("menuEye")),b.hideTileLayer(b.engine.getLayerByName("menuEyelash")),b.showTileLayer(b.engine.getLayerByName("menuCheek")),b.hideTileLayer(b.engine.getLayerByName("menuLip")),b.hideTileLayer(b.engine.getLayerByName("menuAccessory")),b.hideTileLayer(b.engine.getLayerByName("menuCloth")),b.hideTileLayer(b.engine.getLayerByName("menuBackground")),1==m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek1-1checkmark")): 2==m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek1-2checkmark")):3==m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek1-3checkmark")):4==m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek2-1checkmark")):5==m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek2-2checkmark")):6==m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek2-3checkmark")):7== m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek3-1checkmark")):8==m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek3-2checkmark")):9==m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek3-3checkmark")):10==m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek4-1checkmark")):11==m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek4-2checkmark")):12== m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek4-3checkmark")):13==m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek5-1checkmark")):14==m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek5-2checkmark")):15==m.engine.getGameAttribute("cheek")&&b.showTileLayer(b.engine.getLayerByName("cheek5-3checkmark")))});this.addMouseOverActorListener(b.getRegion(3),function(c,d){a.wrapper.enabled&&3==c&&5!=m.engine.getGameAttribute("stage")&& 7>m.engine.getGameAttribute("stage")&&1!=m.engine.getGameAttribute("stage")&&(b.hideTileLayer(b.engine.getLayerByName("eyeControls")),b.hideTileLayer(b.engine.getLayerByName("eyelashControls")),b.hideTileLayer(b.engine.getLayerByName("cheekControlPanel")),b.showTileLayer(b.engine.getLayerByName("lipControls")),b.hideTileLayer(b.engine.getLayerByName("accessoryControlPanel1")),b.hideTileLayer(b.engine.getLayerByName("accessoryControlPanel2")),b.hideTileLayer(b.engine.getLayerByName("accessoryControlPanel3")), b.hideTileLayer(b.engine.getLayerByName("accessoryControlArrows")),b.setGameAttribute("stage",5),b.hideTileLayer(b.engine.getLayerByName("eye1checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye2checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye3checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye4checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye5checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye6checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye7checkmark")), b.hideTileLayer(b.engine.getLayerByName("eye8checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye9checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye10checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash1checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash2checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash3checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash4checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash5checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash6checkmark")), b.hideTileLayer(b.engine.getLayerByName("eyelash7checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash8checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash9checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash10checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek2-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek5-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip1checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip2checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip3checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip4checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip5checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip6checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip7checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip8checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory1checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory2checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory3checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory4checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory5checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory6checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory7checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory8checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory9checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory10checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory11checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory12checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory13checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory14checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory15checkmark")),b.hideTileLayer(b.engine.getLayerByName("menuHair")), b.showTileLayer(b.engine.getLayerByName("menuEye")),b.hideTileLayer(b.engine.getLayerByName("menuEyelash")),b.hideTileLayer(b.engine.getLayerByName("menuCheek")),b.showTileLayer(b.engine.getLayerByName("menuLip")),b.hideTileLayer(b.engine.getLayerByName("menuAccessory")),b.hideTileLayer(b.engine.getLayerByName("menuCloth")),b.hideTileLayer(b.engine.getLayerByName("menuBackground")),1==m.engine.getGameAttribute("lip")?b.showTileLayer(b.engine.getLayerByName("lip1checkmark")):2==m.engine.getGameAttribute("lip")? b.showTileLayer(b.engine.getLayerByName("lip2checkmark")):3==m.engine.getGameAttribute("lip")?b.showTileLayer(b.engine.getLayerByName("lip3checkmark")):4==m.engine.getGameAttribute("lip")?b.showTileLayer(b.engine.getLayerByName("lip4checkmark")):5==m.engine.getGameAttribute("lip")?b.showTileLayer(b.engine.getLayerByName("lip5checkmark")):6==m.engine.getGameAttribute("lip")?b.showTileLayer(b.engine.getLayerByName("lip6checkmark")):7==m.engine.getGameAttribute("lip")?b.showTileLayer(b.engine.getLayerByName("lip7checkmark")): 8==m.engine.getGameAttribute("lip")&&b.showTileLayer(b.engine.getLayerByName("lip8checkmark")))});this.addMouseOverActorListener(b.getRegion(4),function(c,d){a.wrapper.enabled&&3==c&&6!=m.engine.getGameAttribute("stage")&&7>m.engine.getGameAttribute("stage")&&1!=m.engine.getGameAttribute("stage")&&(b.hideTileLayer(b.engine.getLayerByName("eyeControls")),b.hideTileLayer(b.engine.getLayerByName("eyelashControls")),b.hideTileLayer(b.engine.getLayerByName("cheekControlPanel")),b.hideTileLayer(b.engine.getLayerByName("lipControls")), b.showTileLayer(b.engine.getLayerByName("accessoryControlPanel1")),b.hideTileLayer(b.engine.getLayerByName("accessoryControlPanel2")),b.hideTileLayer(b.engine.getLayerByName("accessoryControlPanel3")),b.showTileLayer(b.engine.getLayerByName("accessoryControlArrows")),b.setGameAttribute("stage",6),b.hideTileLayer(b.engine.getLayerByName("eye1checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye2checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye3checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye4checkmark")), b.hideTileLayer(b.engine.getLayerByName("eye5checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye6checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye7checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye8checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye9checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye10checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash1checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash2checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash3checkmark")), b.hideTileLayer(b.engine.getLayerByName("eyelash4checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash5checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash6checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash7checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash8checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash9checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash10checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek1-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek4-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip1checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip2checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip3checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip4checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip5checkmark")), b.hideTileLayer(b.engine.getLayerByName("lip6checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip7checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip8checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory1checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory2checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory3checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory4checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory5checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory6checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory7checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory8checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory9checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory10checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory11checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory12checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory13checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory14checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory15checkmark")),b.hideTileLayer(b.engine.getLayerByName("menuHair")),b.hideTileLayer(b.engine.getLayerByName("menuEye")),b.hideTileLayer(b.engine.getLayerByName("menuEyelash")),b.hideTileLayer(b.engine.getLayerByName("menuCheek")),b.hideTileLayer(b.engine.getLayerByName("menuLip")),b.showTileLayer(b.engine.getLayerByName("menuAccessory")),b.hideTileLayer(b.engine.getLayerByName("menuCloth")),b.hideTileLayer(b.engine.getLayerByName("menuBackground")), 0==m.engine.getGameAttribute("accessoryPage")&&(b.showTileLayer(b.engine.getLayerByName("accessoryControlPanel1")),b.setGameAttribute("accessoryPage",1)),1==m.engine.getGameAttribute("accessoryPage")?b.showTileLayer(b.engine.getLayerByName("accessoryControlPanel1")):2==m.engine.getGameAttribute("accessoryPage")?b.showTileLayer(b.engine.getLayerByName("accessoryControlPanel2")):3==m.engine.getGameAttribute("accessoryPage")&&b.showTileLayer(b.engine.getLayerByName("accessoryControlPanel3")),1==m.engine.getGameAttribute("accessory")? b.showTileLayer(b.engine.getLayerByName("accessory1checkmark")):2==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory2checkmark")):3==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory3checkmark")):4==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory4checkmark")):5==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory5checkmark")):6==m.engine.getGameAttribute("accessory")? b.showTileLayer(b.engine.getLayerByName("accessory6checkmark")):7==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory7checkmark")):8==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory8checkmark")):9==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory9checkmark")):10==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory10checkmark")):11==m.engine.getGameAttribute("accessory")? b.showTileLayer(b.engine.getLayerByName("accessory11checkmark")):12==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory12checkmark")):13==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory13checkmark")):14==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory14checkmark")):15==m.engine.getGameAttribute("accessory")&&b.showTileLayer(b.engine.getLayerByName("accessory15checkmark")))})}, forwardMessage:function(a){},__class__:Jv});var Kv=function(a,c){b.call(this);a=this.nameMap;null!=v.hairNum?a.setReserved("hairNum","_hairNum"):a.h.hairNum="_hairNum";this._hairNum=0};k["scripts.SceneEvents_3"]=Kv;Kv.__name__="scripts.SceneEvents_3";Kv.__super__=Df;Kv.prototype=r(Df.prototype,{_hairNum:null,init:function(){var a=this;b.stopAllSounds();b.loopSound(b.getSound(420));b.runLater(0,function(c){a.wrapper.enabled&&(b.setGameAttribute("stage",1),b.hideTileLayer(b.engine.getLayerByName("finalButtons")), b.createRecycledActorOnLayer(b.getActorType(2),0,0,b.engine.getLayerByName("Layer 0")),b.createRecycledActorOnLayer(b.getActorType(4),0,0,b.engine.getLayerByName("hair1")),b.createRecycledActorOnLayer(b.getActorType(6),0,0,b.engine.getLayerByName("hair2")),b.createRecycledActorOnLayer(b.getActorType(8),0,0,b.engine.getLayerByName("hair3")),b.createRecycledActorOnLayer(b.getActorType(10),0,0,b.engine.getLayerByName("hair4")),b.createRecycledActorOnLayer(b.getActorType(57),0,0,b.engine.getLayerByName("hair5")), b.createRecycledActorOnLayer(b.getActorType(59),0,0,b.engine.getLayerByName("hair6")),b.hideTileLayer(b.engine.getLayerByName("hair2")),b.hideTileLayer(b.engine.getLayerByName("hair3")),b.hideTileLayer(b.engine.getLayerByName("hair4")),b.hideTileLayer(b.engine.getLayerByName("hair5")),b.hideTileLayer(b.engine.getLayerByName("hair6")),b.hideTileLayer(b.engine.getLayerByName("eyeControls")),b.hideTileLayer(b.engine.getLayerByName("eyeControlsJulie")),b.createRecycledActorOnLayer(b.getActorType(349), 0,0,b.engine.getLayerByName("eye1Julie")),b.createRecycledActorOnLayer(b.getActorType(351),0,0,b.engine.getLayerByName("eye2Julie")),b.createRecycledActorOnLayer(b.getActorType(353),0,0,b.engine.getLayerByName("eye3Julie")),b.createRecycledActorOnLayer(b.getActorType(355),0,0,b.engine.getLayerByName("eye4Julie")),b.createRecycledActorOnLayer(b.getActorType(357),0,0,b.engine.getLayerByName("eye5Julie")),b.createRecycledActorOnLayer(b.getActorType(359),0,0,b.engine.getLayerByName("eye6Julie")),b.createRecycledActorOnLayer(b.getActorType(361), 0,0,b.engine.getLayerByName("eye7Julie")),b.createRecycledActorOnLayer(b.getActorType(363),0,0,b.engine.getLayerByName("eye8Julie")),b.createRecycledActorOnLayer(b.getActorType(365),0,0,b.engine.getLayerByName("eye9Julie")),b.createRecycledActorOnLayer(b.getActorType(367),0,0,b.engine.getLayerByName("eye10Julie")),b.hideTileLayer(b.engine.getLayerByName("eye1Julie")),b.hideTileLayer(b.engine.getLayerByName("eye2Julie")),b.hideTileLayer(b.engine.getLayerByName("eye3Julie")),b.hideTileLayer(b.engine.getLayerByName("eye4Julie")), b.hideTileLayer(b.engine.getLayerByName("eye5Julie")),b.hideTileLayer(b.engine.getLayerByName("eye6Julie")),b.hideTileLayer(b.engine.getLayerByName("eye7Julie")),b.hideTileLayer(b.engine.getLayerByName("eye8Julie")),b.hideTileLayer(b.engine.getLayerByName("eye9Julie")),b.hideTileLayer(b.engine.getLayerByName("eye10Julie")),b.createRecycledActorOnLayer(b.getActorType(389),0,0,b.engine.getLayerByName("eyelash1Julie")),b.createRecycledActorOnLayer(b.getActorType(391),0,0,b.engine.getLayerByName("eyelash2Julie")), b.createRecycledActorOnLayer(b.getActorType(393),0,0,b.engine.getLayerByName("eyelash3Julie")),b.createRecycledActorOnLayer(b.getActorType(395),0,0,b.engine.getLayerByName("eyelash4Julie")),b.createRecycledActorOnLayer(b.getActorType(397),0,0,b.engine.getLayerByName("eyelash5Julie")),b.createRecycledActorOnLayer(b.getActorType(399),0,0,b.engine.getLayerByName("eyelash6Julie")),b.createRecycledActorOnLayer(b.getActorType(401),0,0,b.engine.getLayerByName("eyelash7Julie")),b.createRecycledActorOnLayer(b.getActorType(403), 0,0,b.engine.getLayerByName("eyelash8Julie")),b.createRecycledActorOnLayer(b.getActorType(405),0,0,b.engine.getLayerByName("eyelash9Julie")),b.createRecycledActorOnLayer(b.getActorType(407),0,0,b.engine.getLayerByName("eyelash10Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash1Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash2Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash3Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash4Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash5Julie")), b.hideTileLayer(b.engine.getLayerByName("eyelash6Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash7Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash8Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash9Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash10Julie")),b.hideTileLayer(b.engine.getLayerByName("eye1checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye2checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye3checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye4checkmark")), b.hideTileLayer(b.engine.getLayerByName("eye5checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye6checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye7checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye8checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye9checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelashControls")),b.hideTileLayer(b.engine.getLayerByName("eyelashControlsJulie")),b.setGameAttribute("hairNum",1),b.setGameAttribute("eyeNum",0),b.hideTileLayer(b.engine.getLayerByName("eyelash1checkmark")), b.hideTileLayer(b.engine.getLayerByName("eyelash2checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash3checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash4checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash5checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash6checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash7checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash8checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash9checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash10checkmark")), b.hideTileLayer(b.engine.getLayerByName("eye10checkmark")),b.setGameAttribute("eyelash",0),b.hideTileLayer(b.engine.getLayerByName("cheekControlPanel")),b.hideTileLayer(b.engine.getLayerByName("bottomButtons")),b.createRecycledActorOnLayer(b.getActorType(171),0,0,b.engine.getLayerByName("cheek1-1")),b.createRecycledActorOnLayer(b.getActorType(173),0,0,b.engine.getLayerByName("cheek1-2")),b.createRecycledActorOnLayer(b.getActorType(175),0,0,b.engine.getLayerByName("cheek1-3")),b.createRecycledActorOnLayer(b.getActorType(177), 0,0,b.engine.getLayerByName("cheek2-1")),b.createRecycledActorOnLayer(b.getActorType(179),0,0,b.engine.getLayerByName("cheek2-2")),b.createRecycledActorOnLayer(b.getActorType(181),0,0,b.engine.getLayerByName("cheek2-3")),b.createRecycledActorOnLayer(b.getActorType(183),0,0,b.engine.getLayerByName("cheek3-1")),b.createRecycledActorOnLayer(b.getActorType(185),0,0,b.engine.getLayerByName("cheek3-2")),b.createRecycledActorOnLayer(b.getActorType(187),0,0,b.engine.getLayerByName("cheek3-3")),b.createRecycledActorOnLayer(b.getActorType(189), 0,0,b.engine.getLayerByName("cheek4-1")),b.createRecycledActorOnLayer(b.getActorType(191),0,0,b.engine.getLayerByName("cheek4-2")),b.createRecycledActorOnLayer(b.getActorType(193),0,0,b.engine.getLayerByName("cheek4-3")),b.createRecycledActorOnLayer(b.getActorType(195),0,0,b.engine.getLayerByName("cheek5-1")),b.createRecycledActorOnLayer(b.getActorType(197),0,0,b.engine.getLayerByName("cheek5-2")),b.createRecycledActorOnLayer(b.getActorType(199),0,0,b.engine.getLayerByName("cheek5-3")),b.hideTileLayer(b.engine.getLayerByName("cheek1-1")), b.hideTileLayer(b.engine.getLayerByName("cheek1-2")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2")), b.hideTileLayer(b.engine.getLayerByName("cheek4-3")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3")),b.hideTileLayer(b.engine.getLayerByName("cheek1-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek2-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek5-3checkmark")),b.setGameAttribute("cheek",0),b.createRecycledActorOnLayer(b.getActorType(219),0,0,b.engine.getLayerByName("lip1")),b.hideTileLayer(b.engine.getLayerByName("lip1")),b.createRecycledActorOnLayer(b.getActorType(221),0,0,b.engine.getLayerByName("lip2")),b.hideTileLayer(b.engine.getLayerByName("lip2")),b.createRecycledActorOnLayer(b.getActorType(223),0,0,b.engine.getLayerByName("lip3")),b.hideTileLayer(b.engine.getLayerByName("lip3")),b.createRecycledActorOnLayer(b.getActorType(225), 0,0,b.engine.getLayerByName("lip4")),b.hideTileLayer(b.engine.getLayerByName("lip4")),b.createRecycledActorOnLayer(b.getActorType(227),0,0,b.engine.getLayerByName("lip5")),b.hideTileLayer(b.engine.getLayerByName("lip5")),b.createRecycledActorOnLayer(b.getActorType(229),0,0,b.engine.getLayerByName("lip6")),b.hideTileLayer(b.engine.getLayerByName("lip6")),b.createRecycledActorOnLayer(b.getActorType(231),0,0,b.engine.getLayerByName("lip7")),b.hideTileLayer(b.engine.getLayerByName("lip7")),b.createRecycledActorOnLayer(b.getActorType(233), 0,0,b.engine.getLayerByName("lip8")),b.hideTileLayer(b.engine.getLayerByName("lip8")),b.hideTileLayer(b.engine.getLayerByName("lipControls")),b.hideTileLayer(b.engine.getLayerByName("lip1checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip2checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip3checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip4checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip5checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip6checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip7checkmark")), b.hideTileLayer(b.engine.getLayerByName("lip8checkmark")),b.setGameAttribute("accessoryPage",0),b.hideTileLayer(b.engine.getLayerByName("accessoryControlPanel1")),b.hideTileLayer(b.engine.getLayerByName("accessoryControlPanel2")),b.hideTileLayer(b.engine.getLayerByName("accessoryControlPanel3")),b.hideTileLayer(b.engine.getLayerByName("accessoryControlArrows")),b.hideTileLayer(b.engine.getLayerByName("accessory1checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory2checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory3checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory4checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory5checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory6checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory7checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory8checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory9checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory10checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory11checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory12checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory13checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory14checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory15checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory1")),b.createRecycledActorOnLayer(b.getActorType(269),0,0,b.engine.getLayerByName("accessory2")),b.hideTileLayer(b.engine.getLayerByName("accessory2")),b.createRecycledActorOnLayer(b.getActorType(271), 0,0,b.engine.getLayerByName("accessory3")),b.hideTileLayer(b.engine.getLayerByName("accessory3")),b.createRecycledActorOnLayer(b.getActorType(273),0,0,b.engine.getLayerByName("accessory4")),b.hideTileLayer(b.engine.getLayerByName("accessory4")),b.createRecycledActorOnLayer(b.getActorType(275),0,0,b.engine.getLayerByName("accessory5")),b.hideTileLayer(b.engine.getLayerByName("accessory5")),b.createRecycledActorOnLayer(b.getActorType(277),0,0,b.engine.getLayerByName("accessory6")),b.hideTileLayer(b.engine.getLayerByName("accessory6")), b.createRecycledActorOnLayer(b.getActorType(279),0,0,b.engine.getLayerByName("accessory7")),b.hideTileLayer(b.engine.getLayerByName("accessory7")),b.createRecycledActorOnLayer(b.getActorType(281),0,0,b.engine.getLayerByName("accessory8")),b.hideTileLayer(b.engine.getLayerByName("accessory8")),b.createRecycledActorOnLayer(b.getActorType(283),0,0,b.engine.getLayerByName("accessory9")),b.hideTileLayer(b.engine.getLayerByName("accessory9")),b.createRecycledActorOnLayer(b.getActorType(285),0,0,b.engine.getLayerByName("accessory10")), b.hideTileLayer(b.engine.getLayerByName("accessory10")),b.createRecycledActorOnLayer(b.getActorType(287),0,0,b.engine.getLayerByName("accessory11")),b.hideTileLayer(b.engine.getLayerByName("accessory11")),b.createRecycledActorOnLayer(b.getActorType(289),0,0,b.engine.getLayerByName("accessory12")),b.hideTileLayer(b.engine.getLayerByName("accessory12")),b.createRecycledActorOnLayer(b.getActorType(291),0,0,b.engine.getLayerByName("accessory13")),b.hideTileLayer(b.engine.getLayerByName("accessory13")), b.createRecycledActorOnLayer(b.getActorType(293),0,0,b.engine.getLayerByName("accessory14")),b.hideTileLayer(b.engine.getLayerByName("accessory14")),b.createRecycledActorOnLayer(b.getActorType(295),0,0,b.engine.getLayerByName("accessory15")),b.hideTileLayer(b.engine.getLayerByName("accessory15")),b.createRecycledActorOnLayer(b.getActorType(297),0,0,b.engine.getLayerByName("cloth1")),b.createRecycledActorOnLayer(b.getActorType(299),0,0,b.engine.getLayerByName("cloth2")),b.createRecycledActorOnLayer(b.getActorType(301), 0,0,b.engine.getLayerByName("cloth3")),b.createRecycledActorOnLayer(b.getActorType(303),0,0,b.engine.getLayerByName("cloth4")),b.createRecycledActorOnLayer(b.getActorType(305),0,0,b.engine.getLayerByName("cloth5")),b.createRecycledActorOnLayer(b.getActorType(307),0,0,b.engine.getLayerByName("cloth6")),b.hideTileLayer(b.engine.getLayerByName("cloth1")),b.hideTileLayer(b.engine.getLayerByName("cloth2")),b.hideTileLayer(b.engine.getLayerByName("cloth3")),b.hideTileLayer(b.engine.getLayerByName("cloth4")), b.hideTileLayer(b.engine.getLayerByName("cloth5")),b.hideTileLayer(b.engine.getLayerByName("cloth6")),b.hideTileLayer(b.engine.getLayerByName("clothControls")),b.createRecycledActorOnLayer(b.getActorType(309),0,0,b.engine.getLayerByName("background1")),b.hideTileLayer(b.engine.getLayerByName("background1")),b.createRecycledActorOnLayer(b.getActorType(311),0,0,b.engine.getLayerByName("background2")),b.hideTileLayer(b.engine.getLayerByName("background2")),b.createRecycledActorOnLayer(b.getActorType(313), 0,0,b.engine.getLayerByName("background3")),b.hideTileLayer(b.engine.getLayerByName("background3")),b.createRecycledActorOnLayer(b.getActorType(315),0,0,b.engine.getLayerByName("background4")),b.hideTileLayer(b.engine.getLayerByName("background4")),b.createRecycledActorOnLayer(b.getActorType(317),0,0,b.engine.getLayerByName("background5")),b.hideTileLayer(b.engine.getLayerByName("background5")),b.createRecycledActorOnLayer(b.getActorType(319),0,0,b.engine.getLayerByName("background6")),b.hideTileLayer(b.engine.getLayerByName("background6")), b.hideTileLayer(b.engine.getLayerByName("cherryLogo")),b.createRecycledActorOnLayer(b.getActorType(423),0,0,b.engine.getLayerByName("menuHair")),b.createRecycledActorOnLayer(b.getActorType(425),0,0,b.engine.getLayerByName("menuEye")),b.createRecycledActorOnLayer(b.getActorType(427),0,0,b.engine.getLayerByName("menuEyelash")),b.createRecycledActorOnLayer(b.getActorType(431),0,0,b.engine.getLayerByName("menuCheek")),b.createRecycledActorOnLayer(b.getActorType(429),0,0,b.engine.getLayerByName("menuLip")), b.createRecycledActorOnLayer(b.getActorType(433),0,0,b.engine.getLayerByName("menuAccessory")),b.createRecycledActorOnLayer(b.getActorType(435),0,0,b.engine.getLayerByName("menuCloth")),b.createRecycledActorOnLayer(b.getActorType(437),0,0,b.engine.getLayerByName("menuBackground")),b.showTileLayer(b.engine.getLayerByName("menuHair")),b.hideTileLayer(b.engine.getLayerByName("menuEye")),b.hideTileLayer(b.engine.getLayerByName("menuEyelash")),b.hideTileLayer(b.engine.getLayerByName("menuCheek")),b.hideTileLayer(b.engine.getLayerByName("menuLip")), b.hideTileLayer(b.engine.getLayerByName("menuAccessory")),b.hideTileLayer(b.engine.getLayerByName("menuCloth")),b.hideTileLayer(b.engine.getLayerByName("menuBackground")))},null);this.addMousePressedListener(function(c){a.wrapper.enabled&&(9==m.engine.getGameAttribute("stage")?b.getActor(188).isMouseDown()?(b.setGameAttribute("stage",1),b.hideTileLayer(b.engine.getLayerByName("finalButtons")),b.switchScene(lb.get().scenes.h[0].getID(),null,b.createCrossfadeTransition(.5))):b.getActor(189).isMouseDown()? (b.hideTileLayer(b.engine.getLayerByName("finalButtons")),b.setGameAttribute("stage",11)):b.getActor(193).isMouseDown()&&(b.showTileLayer(b.engine.getLayerByName("menuBackground")),b.setGameAttribute("stage",10),b.runLater(300,function(a){b.setGameAttribute("stage",8)},null),b.showTileLayer(b.engine.getLayerByName("menuBackground")),b.showTileLayer(b.engine.getLayerByName("clothControls")),b.hideTileLayer(b.engine.getLayerByName("cherryLogo")),b.hideTileLayer(b.engine.getLayerByName("finalButtons"))): 11==m.engine.getGameAttribute("stage")&&(b.showTileLayer(b.engine.getLayerByName("finalButtons")),b.setGameAttribute("stage",9)))});this.addMousePressedListener(function(c){a.wrapper.enabled&&8==m.engine.getGameAttribute("stage")&&(b.getActor(162).isMouseDown()?1==m.engine.getGameAttribute("backgroundNum")?(b.hideTileLayer(b.engine.getLayerByName("background1")),b.showTileLayer(b.engine.getLayerByName("background2")),b.setGameAttribute("backgroundNum",2)):2==m.engine.getGameAttribute("backgroundNum")? (b.hideTileLayer(b.engine.getLayerByName("background2")),b.showTileLayer(b.engine.getLayerByName("background3")),b.setGameAttribute("backgroundNum",3)):3==m.engine.getGameAttribute("backgroundNum")?(b.hideTileLayer(b.engine.getLayerByName("background3")),b.showTileLayer(b.engine.getLayerByName("background4")),b.setGameAttribute("backgroundNum",4)):4==m.engine.getGameAttribute("backgroundNum")?(b.hideTileLayer(b.engine.getLayerByName("background4")),b.showTileLayer(b.engine.getLayerByName("background5")), b.setGameAttribute("backgroundNum",5)):5==m.engine.getGameAttribute("backgroundNum")?(b.hideTileLayer(b.engine.getLayerByName("background5")),b.showTileLayer(b.engine.getLayerByName("background6")),b.setGameAttribute("backgroundNum",6)):6==m.engine.getGameAttribute("backgroundNum")&&(b.hideTileLayer(b.engine.getLayerByName("background6")),b.showTileLayer(b.engine.getLayerByName("background1")),b.setGameAttribute("backgroundNum",1)):b.getActor(163).isMouseDown()?1==m.engine.getGameAttribute("backgroundNum")? (b.hideTileLayer(b.engine.getLayerByName("background1")),b.showTileLayer(b.engine.getLayerByName("background6")),b.setGameAttribute("backgroundNum",6)):2==m.engine.getGameAttribute("backgroundNum")?(b.hideTileLayer(b.engine.getLayerByName("background2")),b.showTileLayer(b.engine.getLayerByName("background1")),b.setGameAttribute("backgroundNum",1)):3==m.engine.getGameAttribute("backgroundNum")?(b.hideTileLayer(b.engine.getLayerByName("background3")),b.showTileLayer(b.engine.getLayerByName("background2")), b.setGameAttribute("backgroundNum",2)):4==m.engine.getGameAttribute("backgroundNum")?(b.hideTileLayer(b.engine.getLayerByName("background4")),b.showTileLayer(b.engine.getLayerByName("background3")),b.setGameAttribute("backgroundNum",3)):5==m.engine.getGameAttribute("backgroundNum")?(b.hideTileLayer(b.engine.getLayerByName("background5")),b.showTileLayer(b.engine.getLayerByName("background4")),b.setGameAttribute("backgroundNum",4)):6==m.engine.getGameAttribute("backgroundNum")&&(b.hideTileLayer(b.engine.getLayerByName("background6")), b.showTileLayer(b.engine.getLayerByName("background5")),b.setGameAttribute("backgroundNum",5)):b.getActor(160).isMouseDown()?(b.setGameAttribute("stage",10),b.runLater(300,function(a){b.setGameAttribute("stage",7)},null),b.hideTileLayer(b.engine.getLayerByName("menuBackground")),b.showTileLayer(b.engine.getLayerByName("menuCloth"))):b.getActor(192).isMouseDown()?b.switchScene(lb.get().scenes.h[0].getID(),null,b.createCrossfadeTransition(.5)):b.getActor(161).isMouseDown()&&(b.setGameAttribute("stage", 9),b.hideTileLayer(b.engine.getLayerByName("menuBackground")),b.hideTileLayer(b.engine.getLayerByName("clothControls")),b.showTileLayer(b.engine.getLayerByName("cherryLogo")),b.showTileLayer(b.engine.getLayerByName("finalButtons"))))});this.addMousePressedListener(function(c){a.wrapper.enabled&&7==m.engine.getGameAttribute("stage")&&(b.getActor(162).isMouseDown()?1==m.engine.getGameAttribute("clothNum")?(b.hideTileLayer(b.engine.getLayerByName("cloth1")),b.showTileLayer(b.engine.getLayerByName("cloth2")), b.setGameAttribute("clothNum",2)):2==m.engine.getGameAttribute("clothNum")?(b.hideTileLayer(b.engine.getLayerByName("cloth2")),b.showTileLayer(b.engine.getLayerByName("cloth3")),b.setGameAttribute("clothNum",3)):3==m.engine.getGameAttribute("clothNum")?(b.hideTileLayer(b.engine.getLayerByName("cloth3")),b.showTileLayer(b.engine.getLayerByName("cloth4")),b.setGameAttribute("clothNum",4)):4==m.engine.getGameAttribute("clothNum")?(b.hideTileLayer(b.engine.getLayerByName("cloth4")),b.showTileLayer(b.engine.getLayerByName("cloth5")), b.setGameAttribute("clothNum",5)):5==m.engine.getGameAttribute("clothNum")?(b.hideTileLayer(b.engine.getLayerByName("cloth5")),b.showTileLayer(b.engine.getLayerByName("cloth6")),b.setGameAttribute("clothNum",6)):6==m.engine.getGameAttribute("clothNum")&&(b.hideTileLayer(b.engine.getLayerByName("cloth6")),b.showTileLayer(b.engine.getLayerByName("cloth1")),b.setGameAttribute("clothNum",1)):b.getActor(163).isMouseDown()?1==m.engine.getGameAttribute("clothNum")?(b.hideTileLayer(b.engine.getLayerByName("cloth1")), b.showTileLayer(b.engine.getLayerByName("cloth6")),b.setGameAttribute("clothNum",6)):2==m.engine.getGameAttribute("clothNum")?(b.hideTileLayer(b.engine.getLayerByName("cloth2")),b.showTileLayer(b.engine.getLayerByName("cloth1")),b.setGameAttribute("clothNum",1)):3==m.engine.getGameAttribute("clothNum")?(b.hideTileLayer(b.engine.getLayerByName("cloth3")),b.showTileLayer(b.engine.getLayerByName("cloth2")),b.setGameAttribute("clothNum",2)):4==m.engine.getGameAttribute("clothNum")?(b.hideTileLayer(b.engine.getLayerByName("cloth4")), b.showTileLayer(b.engine.getLayerByName("cloth3")),b.setGameAttribute("clothNum",3)):5==m.engine.getGameAttribute("clothNum")?(b.hideTileLayer(b.engine.getLayerByName("cloth5")),b.showTileLayer(b.engine.getLayerByName("cloth4")),b.setGameAttribute("clothNum",4)):6==m.engine.getGameAttribute("clothNum")&&(b.hideTileLayer(b.engine.getLayerByName("cloth6")),b.showTileLayer(b.engine.getLayerByName("cloth5")),b.setGameAttribute("clothNum",5)):b.getActor(160).isMouseDown()?(b.setGameAttribute("accessoryPage", 1),b.hideTileLayer(b.engine.getLayerByName("accessory1checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory2checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory3checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory4checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory5checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory6checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory7checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory8checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory9checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory10checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory11checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory12checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory13checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory14checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory15checkmark")),b.showTileLayer(b.engine.getLayerByName("accessoryControlPanel1")), b.hideTileLayer(b.engine.getLayerByName("accessoryControlPanel2")),b.hideTileLayer(b.engine.getLayerByName("accessoryControlPanel3")),b.hideTileLayer(b.engine.getLayerByName("accessoryControlArrows")),b.setGameAttribute("stage",10),b.showTileLayer(b.engine.getLayerByName("bottomButtons")),b.hideTileLayer(b.engine.getLayerByName("clothControls")),0==m.engine.getGameAttribute("accessoryPage")&&(b.showTileLayer(b.engine.getLayerByName("accessoryControlPanel1")),b.setGameAttribute("accessoryPage",1)), 1==m.engine.getGameAttribute("accessoryPage")?b.showTileLayer(b.engine.getLayerByName("accessoryControlPanel1")):2==m.engine.getGameAttribute("accessoryPage")?b.showTileLayer(b.engine.getLayerByName("accessoryControlPanel2")):3==m.engine.getGameAttribute("accessoryPage")&&b.showTileLayer(b.engine.getLayerByName("accessoryControlPanel3")),1==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory1checkmark")):2==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory2checkmark")): 3==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory3checkmark")):4==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory4checkmark")):5==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory5checkmark")):6==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory6checkmark")):7==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory7checkmark")): 8==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory8checkmark")):9==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory9checkmark")):10==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory10checkmark")):11==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory11checkmark")):12==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory12checkmark")): 13==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory13checkmark")):14==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory14checkmark")):15==m.engine.getGameAttribute("accessory")&&b.showTileLayer(b.engine.getLayerByName("accessory15checkmark")),b.runLater(300,function(a){b.setGameAttribute("stage",6)},null),b.hideTileLayer(b.engine.getLayerByName("menuCloth")),b.showTileLayer(b.engine.getLayerByName("menuAccessory"))): b.getActor(192).isMouseDown()?b.switchScene(lb.get().scenes.h[0].getID(),null,b.createCrossfadeTransition(.5)):b.getActor(161).isMouseDown()&&(b.hideTileLayer(b.engine.getLayerByName("menuCloth")),b.showTileLayer(b.engine.getLayerByName("menuBackground")),b.setGameAttribute("stage",8),b.showTileLayer(b.engine.getLayerByName("background1")),b.setGameAttribute("backgroundNum",1)))});this.addMousePressedListener(function(c){a.wrapper.enabled&&6==m.engine.getGameAttribute("stage")&&(b.getActor(118).isMouseDown()? 1==m.engine.getGameAttribute("accessoryPage")?(b.setGameAttribute("accessory",1),b.hideTileLayer(b.engine.getLayerByName("accessory1")),b.hideTileLayer(b.engine.getLayerByName("accessory2")),b.hideTileLayer(b.engine.getLayerByName("accessory3")),b.hideTileLayer(b.engine.getLayerByName("accessory4")),b.hideTileLayer(b.engine.getLayerByName("accessory5")),b.hideTileLayer(b.engine.getLayerByName("accessory6")),b.hideTileLayer(b.engine.getLayerByName("accessory7")),b.hideTileLayer(b.engine.getLayerByName("accessory8")), b.hideTileLayer(b.engine.getLayerByName("accessory9")),b.hideTileLayer(b.engine.getLayerByName("accessory10")),b.hideTileLayer(b.engine.getLayerByName("accessory11")),b.hideTileLayer(b.engine.getLayerByName("accessory12")),b.hideTileLayer(b.engine.getLayerByName("accessory13")),b.hideTileLayer(b.engine.getLayerByName("accessory14")),b.hideTileLayer(b.engine.getLayerByName("accessory15")),b.showTileLayer(b.engine.getLayerByName("accessory1checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory2checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory3checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory4checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory5checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory6checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory7checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory8checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory9checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory10checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory11checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory12checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory13checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory14checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory15checkmark")),b.showTileLayer(b.engine.getLayerByName("bottomButtons"))):2==m.engine.getGameAttribute("accessoryPage")?(b.setGameAttribute("accessory",7),b.hideTileLayer(b.engine.getLayerByName("accessory1")), b.hideTileLayer(b.engine.getLayerByName("accessory2")),b.hideTileLayer(b.engine.getLayerByName("accessory3")),b.hideTileLayer(b.engine.getLayerByName("accessory4")),b.hideTileLayer(b.engine.getLayerByName("accessory5")),b.hideTileLayer(b.engine.getLayerByName("accessory6")),b.showTileLayer(b.engine.getLayerByName("accessory7")),b.hideTileLayer(b.engine.getLayerByName("accessory8")),b.hideTileLayer(b.engine.getLayerByName("accessory9")),b.hideTileLayer(b.engine.getLayerByName("accessory10")),b.hideTileLayer(b.engine.getLayerByName("accessory11")), b.hideTileLayer(b.engine.getLayerByName("accessory12")),b.hideTileLayer(b.engine.getLayerByName("accessory13")),b.hideTileLayer(b.engine.getLayerByName("accessory14")),b.hideTileLayer(b.engine.getLayerByName("accessory15")),b.hideTileLayer(b.engine.getLayerByName("accessory1checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory2checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory3checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory4checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory5checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory6checkmark")),b.showTileLayer(b.engine.getLayerByName("accessory7checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory8checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory9checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory10checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory11checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory12checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory13checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory14checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory15checkmark")),b.showTileLayer(b.engine.getLayerByName("bottomButtons"))):3==m.engine.getGameAttribute("accessoryPage")&&(b.setGameAttribute("accessory",13),b.hideTileLayer(b.engine.getLayerByName("accessory1")),b.hideTileLayer(b.engine.getLayerByName("accessory2")),b.hideTileLayer(b.engine.getLayerByName("accessory3")),b.hideTileLayer(b.engine.getLayerByName("accessory4")),b.hideTileLayer(b.engine.getLayerByName("accessory5")), b.hideTileLayer(b.engine.getLayerByName("accessory6")),b.hideTileLayer(b.engine.getLayerByName("accessory7")),b.hideTileLayer(b.engine.getLayerByName("accessory8")),b.hideTileLayer(b.engine.getLayerByName("accessory9")),b.hideTileLayer(b.engine.getLayerByName("accessory10")),b.hideTileLayer(b.engine.getLayerByName("accessory11")),b.hideTileLayer(b.engine.getLayerByName("accessory12")),b.showTileLayer(b.engine.getLayerByName("accessory13")),b.hideTileLayer(b.engine.getLayerByName("accessory14")),b.hideTileLayer(b.engine.getLayerByName("accessory15")), b.hideTileLayer(b.engine.getLayerByName("accessory1checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory2checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory3checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory4checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory5checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory6checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory7checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory8checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory9checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory10checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory11checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory12checkmark")),b.showTileLayer(b.engine.getLayerByName("accessory13checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory14checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory15checkmark")),b.showTileLayer(b.engine.getLayerByName("bottomButtons"))): b.getActor(119).isMouseDown()?1==m.engine.getGameAttribute("accessoryPage")?(b.setGameAttribute("accessory",2),b.hideTileLayer(b.engine.getLayerByName("accessory1")),b.showTileLayer(b.engine.getLayerByName("accessory2")),b.hideTileLayer(b.engine.getLayerByName("accessory3")),b.hideTileLayer(b.engine.getLayerByName("accessory4")),b.hideTileLayer(b.engine.getLayerByName("accessory5")),b.hideTileLayer(b.engine.getLayerByName("accessory6")),b.hideTileLayer(b.engine.getLayerByName("accessory7")),b.hideTileLayer(b.engine.getLayerByName("accessory8")), b.hideTileLayer(b.engine.getLayerByName("accessory9")),b.hideTileLayer(b.engine.getLayerByName("accessory10")),b.hideTileLayer(b.engine.getLayerByName("accessory11")),b.hideTileLayer(b.engine.getLayerByName("accessory12")),b.hideTileLayer(b.engine.getLayerByName("accessory13")),b.hideTileLayer(b.engine.getLayerByName("accessory14")),b.hideTileLayer(b.engine.getLayerByName("accessory15")),b.hideTileLayer(b.engine.getLayerByName("accessory1checkmark")),b.showTileLayer(b.engine.getLayerByName("accessory2checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory3checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory4checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory5checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory6checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory7checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory8checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory9checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory10checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory11checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory12checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory13checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory14checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory15checkmark")),b.showTileLayer(b.engine.getLayerByName("bottomButtons"))):2==m.engine.getGameAttribute("accessoryPage")?(b.setGameAttribute("accessory",8),b.hideTileLayer(b.engine.getLayerByName("accessory1")), b.hideTileLayer(b.engine.getLayerByName("accessory2")),b.hideTileLayer(b.engine.getLayerByName("accessory3")),b.hideTileLayer(b.engine.getLayerByName("accessory4")),b.hideTileLayer(b.engine.getLayerByName("accessory5")),b.hideTileLayer(b.engine.getLayerByName("accessory6")),b.hideTileLayer(b.engine.getLayerByName("accessory7")),b.showTileLayer(b.engine.getLayerByName("accessory8")),b.hideTileLayer(b.engine.getLayerByName("accessory9")),b.hideTileLayer(b.engine.getLayerByName("accessory10")),b.hideTileLayer(b.engine.getLayerByName("accessory11")), b.hideTileLayer(b.engine.getLayerByName("accessory12")),b.hideTileLayer(b.engine.getLayerByName("accessory13")),b.hideTileLayer(b.engine.getLayerByName("accessory14")),b.hideTileLayer(b.engine.getLayerByName("accessory15")),b.hideTileLayer(b.engine.getLayerByName("accessory1checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory2checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory3checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory4checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory5checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory6checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory7checkmark")),b.showTileLayer(b.engine.getLayerByName("accessory8checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory9checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory10checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory11checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory12checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory13checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory14checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory15checkmark")),b.showTileLayer(b.engine.getLayerByName("bottomButtons"))):3==m.engine.getGameAttribute("accessoryPage")&&(b.setGameAttribute("accessory",14),b.hideTileLayer(b.engine.getLayerByName("accessory1")),b.hideTileLayer(b.engine.getLayerByName("accessory2")),b.hideTileLayer(b.engine.getLayerByName("accessory3")),b.hideTileLayer(b.engine.getLayerByName("accessory4")),b.hideTileLayer(b.engine.getLayerByName("accessory5")), b.hideTileLayer(b.engine.getLayerByName("accessory6")),b.hideTileLayer(b.engine.getLayerByName("accessory7")),b.hideTileLayer(b.engine.getLayerByName("accessory8")),b.hideTileLayer(b.engine.getLayerByName("accessory9")),b.hideTileLayer(b.engine.getLayerByName("accessory10")),b.hideTileLayer(b.engine.getLayerByName("accessory11")),b.hideTileLayer(b.engine.getLayerByName("accessory12")),b.hideTileLayer(b.engine.getLayerByName("accessory13")),b.showTileLayer(b.engine.getLayerByName("accessory14")),b.hideTileLayer(b.engine.getLayerByName("accessory15")), b.hideTileLayer(b.engine.getLayerByName("accessory1checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory2checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory3checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory4checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory5checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory6checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory7checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory8checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory9checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory10checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory11checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory12checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory13checkmark")),b.showTileLayer(b.engine.getLayerByName("accessory14checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory15checkmark")),b.showTileLayer(b.engine.getLayerByName("bottomButtons"))): b.getActor(120).isMouseDown()?1==m.engine.getGameAttribute("accessoryPage")?(b.setGameAttribute("accessory",3),b.hideTileLayer(b.engine.getLayerByName("accessory1")),b.hideTileLayer(b.engine.getLayerByName("accessory2")),b.showTileLayer(b.engine.getLayerByName("accessory3")),b.hideTileLayer(b.engine.getLayerByName("accessory4")),b.hideTileLayer(b.engine.getLayerByName("accessory5")),b.hideTileLayer(b.engine.getLayerByName("accessory6")),b.hideTileLayer(b.engine.getLayerByName("accessory7")),b.hideTileLayer(b.engine.getLayerByName("accessory8")), b.hideTileLayer(b.engine.getLayerByName("accessory9")),b.hideTileLayer(b.engine.getLayerByName("accessory10")),b.hideTileLayer(b.engine.getLayerByName("accessory11")),b.hideTileLayer(b.engine.getLayerByName("accessory12")),b.hideTileLayer(b.engine.getLayerByName("accessory13")),b.hideTileLayer(b.engine.getLayerByName("accessory14")),b.hideTileLayer(b.engine.getLayerByName("accessory15")),b.hideTileLayer(b.engine.getLayerByName("accessory1checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory2checkmark")), b.showTileLayer(b.engine.getLayerByName("accessory3checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory4checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory5checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory6checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory7checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory8checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory9checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory10checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory11checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory12checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory13checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory14checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory15checkmark")),b.showTileLayer(b.engine.getLayerByName("bottomButtons"))):2==m.engine.getGameAttribute("accessoryPage")?(b.setGameAttribute("accessory",9),b.hideTileLayer(b.engine.getLayerByName("accessory1")), b.hideTileLayer(b.engine.getLayerByName("accessory2")),b.hideTileLayer(b.engine.getLayerByName("accessory3")),b.hideTileLayer(b.engine.getLayerByName("accessory4")),b.hideTileLayer(b.engine.getLayerByName("accessory5")),b.hideTileLayer(b.engine.getLayerByName("accessory6")),b.hideTileLayer(b.engine.getLayerByName("accessory7")),b.hideTileLayer(b.engine.getLayerByName("accessory8")),b.showTileLayer(b.engine.getLayerByName("accessory9")),b.hideTileLayer(b.engine.getLayerByName("accessory10")),b.hideTileLayer(b.engine.getLayerByName("accessory11")), b.hideTileLayer(b.engine.getLayerByName("accessory12")),b.hideTileLayer(b.engine.getLayerByName("accessory13")),b.hideTileLayer(b.engine.getLayerByName("accessory14")),b.hideTileLayer(b.engine.getLayerByName("accessory15")),b.hideTileLayer(b.engine.getLayerByName("accessory1checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory2checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory3checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory4checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory5checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory6checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory7checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory8checkmark")),b.showTileLayer(b.engine.getLayerByName("accessory9checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory10checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory11checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory12checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory13checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory14checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory15checkmark")),b.showTileLayer(b.engine.getLayerByName("bottomButtons"))):3==m.engine.getGameAttribute("accessoryPage")&&(b.setGameAttribute("accessory",15),b.hideTileLayer(b.engine.getLayerByName("accessory1")),b.hideTileLayer(b.engine.getLayerByName("accessory2")),b.hideTileLayer(b.engine.getLayerByName("accessory3")),b.hideTileLayer(b.engine.getLayerByName("accessory4")),b.hideTileLayer(b.engine.getLayerByName("accessory5")), b.hideTileLayer(b.engine.getLayerByName("accessory6")),b.hideTileLayer(b.engine.getLayerByName("accessory7")),b.hideTileLayer(b.engine.getLayerByName("accessory8")),b.hideTileLayer(b.engine.getLayerByName("accessory9")),b.hideTileLayer(b.engine.getLayerByName("accessory10")),b.hideTileLayer(b.engine.getLayerByName("accessory11")),b.hideTileLayer(b.engine.getLayerByName("accessory12")),b.hideTileLayer(b.engine.getLayerByName("accessory13")),b.hideTileLayer(b.engine.getLayerByName("accessory14")),b.showTileLayer(b.engine.getLayerByName("accessory15")), b.hideTileLayer(b.engine.getLayerByName("accessory1checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory2checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory3checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory4checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory5checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory6checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory7checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory8checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory9checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory10checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory11checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory12checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory13checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory14checkmark")),b.showTileLayer(b.engine.getLayerByName("accessory15checkmark")),b.showTileLayer(b.engine.getLayerByName("bottomButtons"))): b.getActor(121).isMouseDown()?1==m.engine.getGameAttribute("accessoryPage")?(b.setGameAttribute("accessory",4),b.hideTileLayer(b.engine.getLayerByName("accessory1")),b.hideTileLayer(b.engine.getLayerByName("accessory2")),b.hideTileLayer(b.engine.getLayerByName("accessory3")),b.showTileLayer(b.engine.getLayerByName("accessory4")),b.hideTileLayer(b.engine.getLayerByName("accessory5")),b.hideTileLayer(b.engine.getLayerByName("accessory6")),b.hideTileLayer(b.engine.getLayerByName("accessory7")),b.hideTileLayer(b.engine.getLayerByName("accessory8")), b.hideTileLayer(b.engine.getLayerByName("accessory9")),b.hideTileLayer(b.engine.getLayerByName("accessory10")),b.hideTileLayer(b.engine.getLayerByName("accessory11")),b.hideTileLayer(b.engine.getLayerByName("accessory12")),b.hideTileLayer(b.engine.getLayerByName("accessory13")),b.hideTileLayer(b.engine.getLayerByName("accessory14")),b.hideTileLayer(b.engine.getLayerByName("accessory15")),b.hideTileLayer(b.engine.getLayerByName("accessory1checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory2checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory3checkmark")),b.showTileLayer(b.engine.getLayerByName("accessory4checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory5checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory6checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory7checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory8checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory9checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory10checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory11checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory12checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory13checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory14checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory15checkmark")),b.showTileLayer(b.engine.getLayerByName("bottomButtons"))):2==m.engine.getGameAttribute("accessoryPage")&&(b.setGameAttribute("accessory",10),b.hideTileLayer(b.engine.getLayerByName("accessory1")), b.hideTileLayer(b.engine.getLayerByName("accessory2")),b.hideTileLayer(b.engine.getLayerByName("accessory3")),b.hideTileLayer(b.engine.getLayerByName("accessory4")),b.hideTileLayer(b.engine.getLayerByName("accessory5")),b.hideTileLayer(b.engine.getLayerByName("accessory6")),b.hideTileLayer(b.engine.getLayerByName("accessory7")),b.hideTileLayer(b.engine.getLayerByName("accessory8")),b.hideTileLayer(b.engine.getLayerByName("accessory9")),b.showTileLayer(b.engine.getLayerByName("accessory10")),b.hideTileLayer(b.engine.getLayerByName("accessory11")), b.hideTileLayer(b.engine.getLayerByName("accessory12")),b.hideTileLayer(b.engine.getLayerByName("accessory13")),b.hideTileLayer(b.engine.getLayerByName("accessory14")),b.hideTileLayer(b.engine.getLayerByName("accessory15")),b.hideTileLayer(b.engine.getLayerByName("accessory1checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory2checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory3checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory4checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory5checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory6checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory7checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory8checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory9checkmark")),b.showTileLayer(b.engine.getLayerByName("accessory10checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory11checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory12checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory13checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory14checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory15checkmark")),b.showTileLayer(b.engine.getLayerByName("bottomButtons"))):b.getActor(122).isMouseDown()?1==m.engine.getGameAttribute("accessoryPage")?(b.setGameAttribute("accessory",5),b.hideTileLayer(b.engine.getLayerByName("accessory1")),b.hideTileLayer(b.engine.getLayerByName("accessory2")),b.hideTileLayer(b.engine.getLayerByName("accessory3")),b.hideTileLayer(b.engine.getLayerByName("accessory4")), b.showTileLayer(b.engine.getLayerByName("accessory5")),b.hideTileLayer(b.engine.getLayerByName("accessory6")),b.hideTileLayer(b.engine.getLayerByName("accessory7")),b.hideTileLayer(b.engine.getLayerByName("accessory8")),b.hideTileLayer(b.engine.getLayerByName("accessory9")),b.hideTileLayer(b.engine.getLayerByName("accessory10")),b.hideTileLayer(b.engine.getLayerByName("accessory11")),b.hideTileLayer(b.engine.getLayerByName("accessory12")),b.hideTileLayer(b.engine.getLayerByName("accessory13")),b.hideTileLayer(b.engine.getLayerByName("accessory14")), b.hideTileLayer(b.engine.getLayerByName("accessory15")),b.hideTileLayer(b.engine.getLayerByName("accessory1checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory2checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory3checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory4checkmark")),b.showTileLayer(b.engine.getLayerByName("accessory5checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory6checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory7checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory8checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory9checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory10checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory11checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory12checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory13checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory14checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory15checkmark")), b.showTileLayer(b.engine.getLayerByName("bottomButtons"))):2==m.engine.getGameAttribute("accessoryPage")&&(b.setGameAttribute("accessory",11),b.hideTileLayer(b.engine.getLayerByName("accessory1")),b.hideTileLayer(b.engine.getLayerByName("accessory2")),b.hideTileLayer(b.engine.getLayerByName("accessory3")),b.hideTileLayer(b.engine.getLayerByName("accessory4")),b.hideTileLayer(b.engine.getLayerByName("accessory5")),b.hideTileLayer(b.engine.getLayerByName("accessory6")),b.hideTileLayer(b.engine.getLayerByName("accessory7")), b.hideTileLayer(b.engine.getLayerByName("accessory8")),b.hideTileLayer(b.engine.getLayerByName("accessory9")),b.hideTileLayer(b.engine.getLayerByName("accessory10")),b.showTileLayer(b.engine.getLayerByName("accessory11")),b.hideTileLayer(b.engine.getLayerByName("accessory12")),b.hideTileLayer(b.engine.getLayerByName("accessory13")),b.hideTileLayer(b.engine.getLayerByName("accessory14")),b.hideTileLayer(b.engine.getLayerByName("accessory15")),b.hideTileLayer(b.engine.getLayerByName("accessory1checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory2checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory3checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory4checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory5checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory6checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory7checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory8checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory9checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory10checkmark")),b.showTileLayer(b.engine.getLayerByName("accessory11checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory12checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory13checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory14checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory15checkmark")),b.showTileLayer(b.engine.getLayerByName("bottomButtons"))):b.getActor(123).isMouseDown()?1==m.engine.getGameAttribute("accessoryPage")? (b.setGameAttribute("accessory",6),b.hideTileLayer(b.engine.getLayerByName("accessory1")),b.hideTileLayer(b.engine.getLayerByName("accessory2")),b.hideTileLayer(b.engine.getLayerByName("accessory3")),b.hideTileLayer(b.engine.getLayerByName("accessory4")),b.hideTileLayer(b.engine.getLayerByName("accessory5")),b.showTileLayer(b.engine.getLayerByName("accessory6")),b.hideTileLayer(b.engine.getLayerByName("accessory7")),b.hideTileLayer(b.engine.getLayerByName("accessory8")),b.hideTileLayer(b.engine.getLayerByName("accessory9")), b.hideTileLayer(b.engine.getLayerByName("accessory10")),b.hideTileLayer(b.engine.getLayerByName("accessory11")),b.hideTileLayer(b.engine.getLayerByName("accessory12")),b.hideTileLayer(b.engine.getLayerByName("accessory13")),b.hideTileLayer(b.engine.getLayerByName("accessory14")),b.hideTileLayer(b.engine.getLayerByName("accessory15")),b.hideTileLayer(b.engine.getLayerByName("accessory1checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory2checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory3checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory4checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory5checkmark")),b.showTileLayer(b.engine.getLayerByName("accessory6checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory7checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory8checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory9checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory10checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory11checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory12checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory13checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory14checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory15checkmark")),b.showTileLayer(b.engine.getLayerByName("bottomButtons"))):2==m.engine.getGameAttribute("accessoryPage")&&(b.setGameAttribute("accessory",12),b.hideTileLayer(b.engine.getLayerByName("accessory1")),b.hideTileLayer(b.engine.getLayerByName("accessory2")), b.hideTileLayer(b.engine.getLayerByName("accessory3")),b.hideTileLayer(b.engine.getLayerByName("accessory4")),b.hideTileLayer(b.engine.getLayerByName("accessory5")),b.hideTileLayer(b.engine.getLayerByName("accessory6")),b.hideTileLayer(b.engine.getLayerByName("accessory7")),b.hideTileLayer(b.engine.getLayerByName("accessory8")),b.hideTileLayer(b.engine.getLayerByName("accessory9")),b.hideTileLayer(b.engine.getLayerByName("accessory10")),b.hideTileLayer(b.engine.getLayerByName("accessory11")),b.showTileLayer(b.engine.getLayerByName("accessory12")), b.hideTileLayer(b.engine.getLayerByName("accessory13")),b.hideTileLayer(b.engine.getLayerByName("accessory14")),b.hideTileLayer(b.engine.getLayerByName("accessory15")),b.hideTileLayer(b.engine.getLayerByName("accessory1checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory2checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory3checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory4checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory5checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory6checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory7checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory8checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory9checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory10checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory11checkmark")),b.showTileLayer(b.engine.getLayerByName("accessory12checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory13checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory14checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory15checkmark")),b.showTileLayer(b.engine.getLayerByName("bottomButtons"))):b.getActor(125).isMouseDown()?1==m.engine.getGameAttribute("accessoryPage")?(b.hideTileLayer(b.engine.getLayerByName("accessoryControlPanel1")),b.showTileLayer(b.engine.getLayerByName("accessoryControlPanel2")),b.setGameAttribute("accessoryPage",2),b.hideTileLayer(b.engine.getLayerByName("accessory1checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory2checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory3checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory4checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory5checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory6checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory7checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory8checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory9checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory10checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory11checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory12checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory13checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory14checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory15checkmark"))):2==m.engine.getGameAttribute("accessoryPage")?(b.hideTileLayer(b.engine.getLayerByName("accessoryControlPanel2")),b.showTileLayer(b.engine.getLayerByName("accessoryControlPanel3")), b.setGameAttribute("accessoryPage",3),b.hideTileLayer(b.engine.getLayerByName("accessory1checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory2checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory3checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory4checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory5checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory6checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory7checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory8checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory9checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory10checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory11checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory12checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory13checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory14checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory15checkmark"))):3==m.engine.getGameAttribute("accessoryPage")&& (b.hideTileLayer(b.engine.getLayerByName("accessoryControlPanel3")),b.showTileLayer(b.engine.getLayerByName("accessoryControlPanel1")),b.setGameAttribute("accessoryPage",1),b.hideTileLayer(b.engine.getLayerByName("accessory1checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory2checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory3checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory4checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory5checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory6checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory7checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory8checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory9checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory10checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory11checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory12checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory13checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory14checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory15checkmark"))):b.getActor(124).isMouseDown()?1==m.engine.getGameAttribute("accessoryPage")?(b.hideTileLayer(b.engine.getLayerByName("accessoryControlPanel1")),b.showTileLayer(b.engine.getLayerByName("accessoryControlPanel3")),b.setGameAttribute("accessoryPage",3),b.hideTileLayer(b.engine.getLayerByName("accessory1checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory2checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory3checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory4checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory5checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory6checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory7checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory8checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory9checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory10checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory11checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory12checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory13checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory14checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory15checkmark"))):2==m.engine.getGameAttribute("accessoryPage")?(b.hideTileLayer(b.engine.getLayerByName("accessoryControlPanel2")),b.showTileLayer(b.engine.getLayerByName("accessoryControlPanel1")),b.setGameAttribute("accessoryPage",1),b.hideTileLayer(b.engine.getLayerByName("accessory1checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory2checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory3checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory4checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory5checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory6checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory7checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory8checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory9checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory10checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory11checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory12checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory13checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory14checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory15checkmark"))):3==m.engine.getGameAttribute("accessoryPage")&&(b.hideTileLayer(b.engine.getLayerByName("accessoryControlPanel3")), b.showTileLayer(b.engine.getLayerByName("accessoryControlPanel2")),b.setGameAttribute("accessoryPage",2),b.hideTileLayer(b.engine.getLayerByName("accessory1checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory2checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory3checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory4checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory5checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory6checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory7checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory8checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory9checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory10checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory11checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory12checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory13checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory14checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory15checkmark"))): b.getActor(16).isMouseDown()?(b.hideTileLayer(b.engine.getLayerByName("accessory1checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory2checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory3checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory4checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory5checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory6checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory7checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory8checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory9checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory10checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory11checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory12checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory13checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory14checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory15checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip1checkmark")), b.hideTileLayer(b.engine.getLayerByName("lip2checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip3checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip4checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip5checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip6checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip7checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip8checkmark")),b.showTileLayer(b.engine.getLayerByName("lipControls")),b.setGameAttribute("stage",10),b.hideTileLayer(b.engine.getLayerByName("accessoryControlPanel1")), b.hideTileLayer(b.engine.getLayerByName("accessoryControlPanel2")),b.hideTileLayer(b.engine.getLayerByName("accessoryControlPanel3")),b.hideTileLayer(b.engine.getLayerByName("accessoryControlArrows")),1==m.engine.getGameAttribute("lip")?b.showTileLayer(b.engine.getLayerByName("lip1checkmark")):2==m.engine.getGameAttribute("lip")?b.showTileLayer(b.engine.getLayerByName("lip2checkmark")):3==m.engine.getGameAttribute("lip")?b.showTileLayer(b.engine.getLayerByName("lip3checkmark")):4==m.engine.getGameAttribute("lip")? b.showTileLayer(b.engine.getLayerByName("lip4checkmark")):5==m.engine.getGameAttribute("lip")?b.showTileLayer(b.engine.getLayerByName("lip5checkmark")):6==m.engine.getGameAttribute("lip")?b.showTileLayer(b.engine.getLayerByName("lip6checkmark")):7==m.engine.getGameAttribute("lip")?b.showTileLayer(b.engine.getLayerByName("lip7checkmark")):8==m.engine.getGameAttribute("lip")&&b.showTileLayer(b.engine.getLayerByName("lip8checkmark")),b.runLater(300,function(a){b.setGameAttribute("stage",5)},null),b.hideTileLayer(b.engine.getLayerByName("menuAccessory")), b.showTileLayer(b.engine.getLayerByName("menuLip"))):b.getActor(191).isMouseDown()?b.switchScene(lb.get().scenes.h[0].getID(),null,b.createCrossfadeTransition(.5)):b.getActor(17).isMouseDown()&&(b.hideTileLayer(b.engine.getLayerByName("menuAccessory")),b.showTileLayer(b.engine.getLayerByName("menuCloth")),b.hideTileLayer(b.engine.getLayerByName("accessory1checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory2checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory3checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory4checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory5checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory6checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory7checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory8checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory9checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory10checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory11checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory12checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory13checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory14checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory15checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessoryControlPanel1")),b.hideTileLayer(b.engine.getLayerByName("accessoryControlPanel2")),b.hideTileLayer(b.engine.getLayerByName("accessoryControlPanel3")),b.hideTileLayer(b.engine.getLayerByName("accessoryControlArrows")),b.setGameAttribute("stage",7),b.hideTileLayer(b.engine.getLayerByName("bottomButtons")), b.showTileLayer(b.engine.getLayerByName("clothControls")),b.showTileLayer(b.engine.getLayerByName("cloth1")),b.setGameAttribute("clothNum",1)))});this.addMousePressedListener(function(c){a.wrapper.enabled&&5==m.engine.getGameAttribute("stage")&&(b.getActor(109).isMouseDown()?(b.showTileLayer(b.engine.getLayerByName("lip1")),b.hideTileLayer(b.engine.getLayerByName("lip2")),b.hideTileLayer(b.engine.getLayerByName("lip3")),b.hideTileLayer(b.engine.getLayerByName("lip4")),b.hideTileLayer(b.engine.getLayerByName("lip5")), b.hideTileLayer(b.engine.getLayerByName("lip6")),b.hideTileLayer(b.engine.getLayerByName("lip7")),b.hideTileLayer(b.engine.getLayerByName("lip8")),b.showTileLayer(b.engine.getLayerByName("lip1checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip2checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip3checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip4checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip5checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip6checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip7checkmark")), b.hideTileLayer(b.engine.getLayerByName("lip8checkmark")),b.setGameAttribute("lip",1)):b.getActor(110).isMouseDown()?(b.hideTileLayer(b.engine.getLayerByName("lip1")),b.showTileLayer(b.engine.getLayerByName("lip2")),b.hideTileLayer(b.engine.getLayerByName("lip3")),b.hideTileLayer(b.engine.getLayerByName("lip4")),b.hideTileLayer(b.engine.getLayerByName("lip5")),b.hideTileLayer(b.engine.getLayerByName("lip6")),b.hideTileLayer(b.engine.getLayerByName("lip7")),b.hideTileLayer(b.engine.getLayerByName("lip8")), b.hideTileLayer(b.engine.getLayerByName("lip1checkmark")),b.showTileLayer(b.engine.getLayerByName("lip2checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip3checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip4checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip5checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip6checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip7checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip8checkmark")),b.setGameAttribute("lip",2)):b.getActor(111).isMouseDown()? (b.hideTileLayer(b.engine.getLayerByName("lip1")),b.hideTileLayer(b.engine.getLayerByName("lip2")),b.showTileLayer(b.engine.getLayerByName("lip3")),b.hideTileLayer(b.engine.getLayerByName("lip4")),b.hideTileLayer(b.engine.getLayerByName("lip5")),b.hideTileLayer(b.engine.getLayerByName("lip6")),b.hideTileLayer(b.engine.getLayerByName("lip7")),b.hideTileLayer(b.engine.getLayerByName("lip8")),b.hideTileLayer(b.engine.getLayerByName("lip1checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip2checkmark")), b.showTileLayer(b.engine.getLayerByName("lip3checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip4checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip5checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip6checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip7checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip8checkmark")),b.setGameAttribute("lip",3)):b.getActor(112).isMouseDown()?(b.hideTileLayer(b.engine.getLayerByName("lip1")),b.hideTileLayer(b.engine.getLayerByName("lip2")), b.hideTileLayer(b.engine.getLayerByName("lip3")),b.showTileLayer(b.engine.getLayerByName("lip4")),b.hideTileLayer(b.engine.getLayerByName("lip5")),b.hideTileLayer(b.engine.getLayerByName("lip6")),b.hideTileLayer(b.engine.getLayerByName("lip7")),b.hideTileLayer(b.engine.getLayerByName("lip8")),b.hideTileLayer(b.engine.getLayerByName("lip1checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip2checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip3checkmark")),b.showTileLayer(b.engine.getLayerByName("lip4checkmark")), b.hideTileLayer(b.engine.getLayerByName("lip5checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip6checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip7checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip8checkmark")),b.setGameAttribute("lip",4)):b.getActor(113).isMouseDown()?(b.hideTileLayer(b.engine.getLayerByName("lip1")),b.hideTileLayer(b.engine.getLayerByName("lip2")),b.hideTileLayer(b.engine.getLayerByName("lip3")),b.hideTileLayer(b.engine.getLayerByName("lip4")),b.showTileLayer(b.engine.getLayerByName("lip5")), b.hideTileLayer(b.engine.getLayerByName("lip6")),b.hideTileLayer(b.engine.getLayerByName("lip7")),b.hideTileLayer(b.engine.getLayerByName("lip8")),b.hideTileLayer(b.engine.getLayerByName("lip1checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip2checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip3checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip4checkmark")),b.showTileLayer(b.engine.getLayerByName("lip5checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip6checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip7checkmark")), b.hideTileLayer(b.engine.getLayerByName("lip8checkmark")),b.setGameAttribute("lip",5)):b.getActor(114).isMouseDown()?(b.hideTileLayer(b.engine.getLayerByName("lip1")),b.hideTileLayer(b.engine.getLayerByName("lip2")),b.hideTileLayer(b.engine.getLayerByName("lip3")),b.hideTileLayer(b.engine.getLayerByName("lip4")),b.hideTileLayer(b.engine.getLayerByName("lip5")),b.showTileLayer(b.engine.getLayerByName("lip6")),b.hideTileLayer(b.engine.getLayerByName("lip7")),b.hideTileLayer(b.engine.getLayerByName("lip8")), b.hideTileLayer(b.engine.getLayerByName("lip1checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip2checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip3checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip4checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip5checkmark")),b.showTileLayer(b.engine.getLayerByName("lip6checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip7checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip8checkmark")),b.setGameAttribute("lip",6)):b.getActor(115).isMouseDown()? (b.hideTileLayer(b.engine.getLayerByName("lip1")),b.hideTileLayer(b.engine.getLayerByName("lip2")),b.hideTileLayer(b.engine.getLayerByName("lip3")),b.hideTileLayer(b.engine.getLayerByName("lip4")),b.hideTileLayer(b.engine.getLayerByName("lip5")),b.hideTileLayer(b.engine.getLayerByName("lip6")),b.showTileLayer(b.engine.getLayerByName("lip7")),b.hideTileLayer(b.engine.getLayerByName("lip8")),b.hideTileLayer(b.engine.getLayerByName("lip1checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip2checkmark")), b.hideTileLayer(b.engine.getLayerByName("lip3checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip4checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip5checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip6checkmark")),b.showTileLayer(b.engine.getLayerByName("lip7checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip8checkmark")),b.setGameAttribute("lip",7)):b.getActor(116).isMouseDown()?(b.hideTileLayer(b.engine.getLayerByName("lip1")),b.hideTileLayer(b.engine.getLayerByName("lip2")), b.hideTileLayer(b.engine.getLayerByName("lip3")),b.hideTileLayer(b.engine.getLayerByName("lip4")),b.hideTileLayer(b.engine.getLayerByName("lip5")),b.hideTileLayer(b.engine.getLayerByName("lip6")),b.hideTileLayer(b.engine.getLayerByName("lip7")),b.showTileLayer(b.engine.getLayerByName("lip8")),b.hideTileLayer(b.engine.getLayerByName("lip1checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip2checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip3checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip4checkmark")), b.hideTileLayer(b.engine.getLayerByName("lip5checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip6checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip7checkmark")),b.showTileLayer(b.engine.getLayerByName("lip8checkmark")),b.setGameAttribute("lip",8)):b.getActor(16).isMouseDown()?(b.hideTileLayer(b.engine.getLayerByName("lip1checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip2checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip3checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip4checkmark")), b.hideTileLayer(b.engine.getLayerByName("lip5checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip6checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip7checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip8checkmark")),b.setGameAttribute("stage",10),1==m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek1-1checkmark")):2==m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek1-2checkmark")):3==m.engine.getGameAttribute("cheek")? b.showTileLayer(b.engine.getLayerByName("cheek1-3checkmark")):4==m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek2-1checkmark")):5==m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek2-2checkmark")):6==m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek2-3checkmark")):7==m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek3-1checkmark")):8==m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek3-2checkmark")): 9==m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek3-3checkmark")):10==m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek4-1checkmark")):11==m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek4-2checkmark")):12==m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek4-3checkmark")):13==m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek5-1checkmark")): 14==m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek5-2checkmark")):15==m.engine.getGameAttribute("cheek")&&b.showTileLayer(b.engine.getLayerByName("cheek5-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("lipControls")),b.showTileLayer(b.engine.getLayerByName("cheekControlPanel")),b.runLater(300,function(a){b.setGameAttribute("stage",4)},null),b.hideTileLayer(b.engine.getLayerByName("menuLip")),b.showTileLayer(b.engine.getLayerByName("menuCheek"))):b.getActor(191).isMouseDown()? b.switchScene(lb.get().scenes.h[0].getID(),null,b.createCrossfadeTransition(.5)):b.getActor(17).isMouseDown()&&(b.hideTileLayer(b.engine.getLayerByName("menuLip")),b.showTileLayer(b.engine.getLayerByName("menuAccessory")),b.hideTileLayer(b.engine.getLayerByName("lip1checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip2checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip3checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip4checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip5checkmark")), b.hideTileLayer(b.engine.getLayerByName("lip6checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip7checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip8checkmark")),b.hideTileLayer(b.engine.getLayerByName("lipControls")),b.setGameAttribute("stage",6),b.showTileLayer(b.engine.getLayerByName("accessoryControlPanel1")),b.hideTileLayer(b.engine.getLayerByName("accessoryControlPanel2")),b.hideTileLayer(b.engine.getLayerByName("accessoryControlPanel3")),b.showTileLayer(b.engine.getLayerByName("accessoryControlArrows")), b.setGameAttribute("accessoryPage",1),0==m.engine.getGameAttribute("accessoryPage")&&(b.showTileLayer(b.engine.getLayerByName("accessoryControlPanel1")),b.setGameAttribute("accessoryPage",1)),1==m.engine.getGameAttribute("accessoryPage")?b.showTileLayer(b.engine.getLayerByName("accessoryControlPanel1")):2==m.engine.getGameAttribute("accessoryPage")?b.showTileLayer(b.engine.getLayerByName("accessoryControlPanel2")):3==m.engine.getGameAttribute("accessoryPage")&&b.showTileLayer(b.engine.getLayerByName("accessoryControlPanel3")), 1==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory1checkmark")):2==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory2checkmark")):3==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory3checkmark")):4==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory4checkmark")):5==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory5checkmark")): 6==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory6checkmark")):7==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory7checkmark")):8==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory8checkmark")):9==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory9checkmark")):10==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory10checkmark")): 11==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory11checkmark")):12==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory12checkmark")):13==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory13checkmark")):14==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory14checkmark")):15==m.engine.getGameAttribute("accessory")&&b.showTileLayer(b.engine.getLayerByName("accessory15checkmark"))))}); this.addMousePressedListener(function(c){a.wrapper.enabled&&4==m.engine.getGameAttribute("stage")&&(b.getActor(78).isMouseDown()?(b.showTileLayer(b.engine.getLayerByName("cheek1-1")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1")), b.hideTileLayer(b.engine.getLayerByName("cheek3-2")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3")),b.showTileLayer(b.engine.getLayerByName("cheek1-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek1-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek4-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3checkmark")),b.showTileLayer(b.engine.getLayerByName("bottomButtons")),b.setGameAttribute("cheek",1)):b.getActor(79).isMouseDown()?(b.hideTileLayer(b.engine.getLayerByName("cheek1-1")),b.showTileLayer(b.engine.getLayerByName("cheek1-2")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3")), b.hideTileLayer(b.engine.getLayerByName("cheek2-1")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1")), b.hideTileLayer(b.engine.getLayerByName("cheek5-2")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3")),b.hideTileLayer(b.engine.getLayerByName("cheek1-1checkmark")),b.showTileLayer(b.engine.getLayerByName("cheek1-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek3-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3checkmark")),b.showTileLayer(b.engine.getLayerByName("bottomButtons")), b.setGameAttribute("cheek",2)):b.getActor(80).isMouseDown()?(b.hideTileLayer(b.engine.getLayerByName("cheek1-1")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2")),b.showTileLayer(b.engine.getLayerByName("cheek1-3")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3")), b.hideTileLayer(b.engine.getLayerByName("cheek4-1")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3")),b.hideTileLayer(b.engine.getLayerByName("cheek1-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2checkmark")),b.showTileLayer(b.engine.getLayerByName("cheek1-3checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek2-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek5-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3checkmark")),b.showTileLayer(b.engine.getLayerByName("bottomButtons")),b.setGameAttribute("cheek",3)):b.getActor(81).isMouseDown()?(b.hideTileLayer(b.engine.getLayerByName("cheek1-1")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3")),b.showTileLayer(b.engine.getLayerByName("cheek2-1")), b.hideTileLayer(b.engine.getLayerByName("cheek2-2")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2")), b.hideTileLayer(b.engine.getLayerByName("cheek5-3")),b.hideTileLayer(b.engine.getLayerByName("cheek1-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3checkmark")),b.showTileLayer(b.engine.getLayerByName("cheek2-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek3-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3checkmark")),b.showTileLayer(b.engine.getLayerByName("bottomButtons")),b.setGameAttribute("cheek", 4)):b.getActor(82).isMouseDown()?(b.hideTileLayer(b.engine.getLayerByName("cheek1-1")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1")),b.showTileLayer(b.engine.getLayerByName("cheek2-2")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3")), b.hideTileLayer(b.engine.getLayerByName("cheek4-1")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3")),b.hideTileLayer(b.engine.getLayerByName("cheek1-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek2-1checkmark")),b.showTileLayer(b.engine.getLayerByName("cheek2-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek5-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3checkmark")),b.showTileLayer(b.engine.getLayerByName("bottomButtons")),b.setGameAttribute("cheek",5)):b.getActor(83).isMouseDown()?(b.hideTileLayer(b.engine.getLayerByName("cheek1-1")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1")), b.hideTileLayer(b.engine.getLayerByName("cheek2-2")),b.showTileLayer(b.engine.getLayerByName("cheek2-3")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2")), b.hideTileLayer(b.engine.getLayerByName("cheek5-3")),b.hideTileLayer(b.engine.getLayerByName("cheek1-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2checkmark")),b.showTileLayer(b.engine.getLayerByName("cheek2-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek3-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3checkmark")),b.showTileLayer(b.engine.getLayerByName("bottomButtons")),b.setGameAttribute("cheek", 6)):b.getActor(84).isMouseDown()?(b.hideTileLayer(b.engine.getLayerByName("cheek1-1")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3")),b.showTileLayer(b.engine.getLayerByName("cheek3-1")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3")), b.hideTileLayer(b.engine.getLayerByName("cheek4-1")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3")),b.hideTileLayer(b.engine.getLayerByName("cheek1-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek2-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3checkmark")),b.showTileLayer(b.engine.getLayerByName("cheek3-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek5-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3checkmark")),b.showTileLayer(b.engine.getLayerByName("bottomButtons")),b.setGameAttribute("cheek",7)):b.getActor(85).isMouseDown()?(b.hideTileLayer(b.engine.getLayerByName("cheek1-1")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1")), b.hideTileLayer(b.engine.getLayerByName("cheek2-2")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1")),b.showTileLayer(b.engine.getLayerByName("cheek3-2")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2")), b.hideTileLayer(b.engine.getLayerByName("cheek5-3")),b.hideTileLayer(b.engine.getLayerByName("cheek1-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1checkmark")),b.showTileLayer(b.engine.getLayerByName("cheek3-2checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek3-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3checkmark")),b.showTileLayer(b.engine.getLayerByName("bottomButtons")),b.setGameAttribute("cheek", 8)):b.getActor(86).isMouseDown()?(b.hideTileLayer(b.engine.getLayerByName("cheek1-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2checkmark")), b.showTileLayer(b.engine.getLayerByName("cheek3-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-1")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2")), b.hideTileLayer(b.engine.getLayerByName("cheek1-3")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2")),b.showTileLayer(b.engine.getLayerByName("cheek3-3")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3")), b.hideTileLayer(b.engine.getLayerByName("cheek5-1")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3")),b.setGameAttribute("cheek",9)):b.getActor(87).isMouseDown()?(b.hideTileLayer(b.engine.getLayerByName("cheek1-1")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3")), b.hideTileLayer(b.engine.getLayerByName("cheek3-1")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3")),b.showTileLayer(b.engine.getLayerByName("cheek4-1")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3")),b.hideTileLayer(b.engine.getLayerByName("cheek1-1checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek1-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3checkmark")),b.showTileLayer(b.engine.getLayerByName("cheek4-1checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek4-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3checkmark")),b.setGameAttribute("cheek",10)):b.getActor(88).isMouseDown()?(b.hideTileLayer(b.engine.getLayerByName("cheek1-1")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3")), b.hideTileLayer(b.engine.getLayerByName("cheek2-1")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1")),b.showTileLayer(b.engine.getLayerByName("cheek4-2")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1")), b.hideTileLayer(b.engine.getLayerByName("cheek5-2")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3")),b.hideTileLayer(b.engine.getLayerByName("cheek1-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek3-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1checkmark")),b.showTileLayer(b.engine.getLayerByName("cheek4-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3checkmark")),b.setGameAttribute("cheek", 11)):b.getActor(89).isMouseDown()?(b.hideTileLayer(b.engine.getLayerByName("cheek1-1")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3")), b.hideTileLayer(b.engine.getLayerByName("cheek4-1")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2")),b.showTileLayer(b.engine.getLayerByName("cheek4-3")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3")),b.hideTileLayer(b.engine.getLayerByName("cheek1-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek2-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2checkmark")),b.showTileLayer(b.engine.getLayerByName("cheek4-3checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek5-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3checkmark")),b.setGameAttribute("cheek",12)):b.getActor(90).isMouseDown()?(b.hideTileLayer(b.engine.getLayerByName("cheek1-1")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2")), b.hideTileLayer(b.engine.getLayerByName("cheek2-3")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3")),b.showTileLayer(b.engine.getLayerByName("cheek5-1")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3")), b.hideTileLayer(b.engine.getLayerByName("cheek1-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek4-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3checkmark")),b.showTileLayer(b.engine.getLayerByName("cheek5-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3checkmark")),b.setGameAttribute("cheek",13)):b.getActor(91).isMouseDown()?(b.hideTileLayer(b.engine.getLayerByName("cheek1-1")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2")), b.hideTileLayer(b.engine.getLayerByName("cheek1-3")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3")), b.hideTileLayer(b.engine.getLayerByName("cheek5-1")),b.showTileLayer(b.engine.getLayerByName("cheek5-2")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3")),b.hideTileLayer(b.engine.getLayerByName("cheek1-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek3-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1checkmark")),b.showTileLayer(b.engine.getLayerByName("cheek5-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3checkmark")), b.setGameAttribute("cheek",14)):b.getActor(92).isMouseDown()?(b.hideTileLayer(b.engine.getLayerByName("cheek1-1")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3")), b.hideTileLayer(b.engine.getLayerByName("cheek4-1")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2")),b.showTileLayer(b.engine.getLayerByName("cheek5-3")),b.hideTileLayer(b.engine.getLayerByName("cheek1-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek2-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek5-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2checkmark")),b.showTileLayer(b.engine.getLayerByName("cheek5-3checkmark")),b.setGameAttribute("cheek",15)):b.getActor(73).isMouseDown()?1==m.engine.getGameAttribute("cheek")?(b.hideTileLayer(b.engine.getLayerByName("cheek1-1")),b.showTileLayer(b.engine.getLayerByName("cheek1-2")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2")), b.hideTileLayer(b.engine.getLayerByName("cheek2-3")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3")), b.hideTileLayer(b.engine.getLayerByName("cheek1-1checkmark")),b.showTileLayer(b.engine.getLayerByName("cheek1-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek4-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3checkmark")),b.setGameAttribute("cheek",2)):2==m.engine.getGameAttribute("cheek")?(b.hideTileLayer(b.engine.getLayerByName("cheek1-1")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2")), b.showTileLayer(b.engine.getLayerByName("cheek1-3")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3")), b.hideTileLayer(b.engine.getLayerByName("cheek5-1")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3")),b.hideTileLayer(b.engine.getLayerByName("cheek1-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2checkmark")),b.showTileLayer(b.engine.getLayerByName("cheek1-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek3-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3checkmark")), b.setGameAttribute("cheek",3)):(m.engine.getGameAttribute("cheek"),b.showTileLayer(b.engine.getLayerByName("cheek1-1")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3")), b.hideTileLayer(b.engine.getLayerByName("cheek4-1")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3")),b.showTileLayer(b.engine.getLayerByName("cheek1-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek2-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek5-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3checkmark")),b.setGameAttribute("cheek",1)):b.getActor(74).isMouseDown()?4==m.engine.getGameAttribute("cheek")?(b.hideTileLayer(b.engine.getLayerByName("cheek1-1")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1")),b.showTileLayer(b.engine.getLayerByName("cheek2-2")), b.hideTileLayer(b.engine.getLayerByName("cheek2-3")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3")), b.hideTileLayer(b.engine.getLayerByName("cheek1-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1checkmark")),b.showTileLayer(b.engine.getLayerByName("cheek2-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek4-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3checkmark")),b.setGameAttribute("cheek",5)):5==m.engine.getGameAttribute("cheek")?(b.hideTileLayer(b.engine.getLayerByName("cheek1-1")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2")), b.hideTileLayer(b.engine.getLayerByName("cheek1-3")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2")),b.showTileLayer(b.engine.getLayerByName("cheek2-3")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3")), b.hideTileLayer(b.engine.getLayerByName("cheek5-1")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3")),b.hideTileLayer(b.engine.getLayerByName("cheek1-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2checkmark")),b.showTileLayer(b.engine.getLayerByName("cheek2-3checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek3-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3checkmark")), b.setGameAttribute("cheek",6)):(b.hideTileLayer(b.engine.getLayerByName("cheek1-1")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3")),b.showTileLayer(b.engine.getLayerByName("cheek2-1")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3")), b.hideTileLayer(b.engine.getLayerByName("cheek4-1")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3")),b.hideTileLayer(b.engine.getLayerByName("cheek1-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3checkmark")), b.showTileLayer(b.engine.getLayerByName("cheek2-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek5-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3checkmark")),b.setGameAttribute("cheek",4)):b.getActor(75).isMouseDown()?7==m.engine.getGameAttribute("cheek")?(b.hideTileLayer(b.engine.getLayerByName("cheek1-1")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2")), b.hideTileLayer(b.engine.getLayerByName("cheek2-3")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1")),b.showTileLayer(b.engine.getLayerByName("cheek3-2")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3")), b.hideTileLayer(b.engine.getLayerByName("cheek1-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1checkmark")),b.showTileLayer(b.engine.getLayerByName("cheek3-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek4-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3checkmark")),b.setGameAttribute("cheek",8)):8==m.engine.getGameAttribute("cheek")?(b.hideTileLayer(b.engine.getLayerByName("cheek1-1")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2")), b.hideTileLayer(b.engine.getLayerByName("cheek1-3")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2")),b.showTileLayer(b.engine.getLayerByName("cheek3-3")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3")), b.hideTileLayer(b.engine.getLayerByName("cheek5-1")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3")),b.hideTileLayer(b.engine.getLayerByName("cheek1-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek3-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2checkmark")),b.showTileLayer(b.engine.getLayerByName("cheek3-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3checkmark")), b.setGameAttribute("cheek",9)):(b.hideTileLayer(b.engine.getLayerByName("cheek1-1")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3")),b.showTileLayer(b.engine.getLayerByName("cheek3-1")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3")), b.hideTileLayer(b.engine.getLayerByName("cheek4-1")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3")),b.hideTileLayer(b.engine.getLayerByName("cheek1-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek2-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3checkmark")),b.showTileLayer(b.engine.getLayerByName("cheek3-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek5-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3checkmark")),b.setGameAttribute("cheek",7)):b.getActor(76).isMouseDown()?10==m.engine.getGameAttribute("cheek")?(b.hideTileLayer(b.engine.getLayerByName("cheek1-1")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2")), b.hideTileLayer(b.engine.getLayerByName("cheek2-3")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1")),b.showTileLayer(b.engine.getLayerByName("cheek4-2")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3")), b.hideTileLayer(b.engine.getLayerByName("cheek1-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek4-1checkmark")),b.showTileLayer(b.engine.getLayerByName("cheek4-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3checkmark")),b.setGameAttribute("cheek",11)):11==m.engine.getGameAttribute("cheek")?(b.hideTileLayer(b.engine.getLayerByName("cheek1-1")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2")), b.hideTileLayer(b.engine.getLayerByName("cheek1-3")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2")),b.showTileLayer(b.engine.getLayerByName("cheek4-3")), b.hideTileLayer(b.engine.getLayerByName("cheek5-1")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3")),b.hideTileLayer(b.engine.getLayerByName("cheek1-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek3-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2checkmark")),b.showTileLayer(b.engine.getLayerByName("cheek4-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3checkmark")), b.setGameAttribute("cheek",12)):(b.hideTileLayer(b.engine.getLayerByName("cheek1-1")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3")), b.showTileLayer(b.engine.getLayerByName("cheek4-1")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3")),b.hideTileLayer(b.engine.getLayerByName("cheek1-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek2-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3checkmark")),b.showTileLayer(b.engine.getLayerByName("cheek4-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek5-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3checkmark")),b.setGameAttribute("cheek",10)):b.getActor(77).isMouseDown()?13==m.engine.getGameAttribute("cheek")?(b.hideTileLayer(b.engine.getLayerByName("cheek1-1")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2")), b.hideTileLayer(b.engine.getLayerByName("cheek2-3")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1")),b.showTileLayer(b.engine.getLayerByName("cheek5-2")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3")), b.hideTileLayer(b.engine.getLayerByName("cheek1-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek4-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1checkmark")),b.showTileLayer(b.engine.getLayerByName("cheek5-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3checkmark")),b.setGameAttribute("cheek",14)):14==m.engine.getGameAttribute("cheek")?(b.hideTileLayer(b.engine.getLayerByName("cheek1-1")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2")), b.hideTileLayer(b.engine.getLayerByName("cheek1-3")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3")), b.hideTileLayer(b.engine.getLayerByName("cheek5-1")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2")),b.showTileLayer(b.engine.getLayerByName("cheek5-3")),b.hideTileLayer(b.engine.getLayerByName("cheek1-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek3-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2checkmark")),b.showTileLayer(b.engine.getLayerByName("cheek5-3checkmark")), b.setGameAttribute("cheek",15)):(b.hideTileLayer(b.engine.getLayerByName("cheek1-1")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3")), b.hideTileLayer(b.engine.getLayerByName("cheek4-1")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3")),b.showTileLayer(b.engine.getLayerByName("cheek5-1")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3")),b.hideTileLayer(b.engine.getLayerByName("cheek1-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek2-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3checkmark")), b.showTileLayer(b.engine.getLayerByName("cheek5-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3checkmark")),b.setGameAttribute("cheek",13)):b.getActor(16).isMouseDown()?(b.hideTileLayer(b.engine.getLayerByName("cheek1-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek2-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek5-3checkmark")),b.setGameAttribute("stage",10),b.hideTileLayer(b.engine.getLayerByName("eyelash1checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash2checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash3checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash4checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash5checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash6checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash7checkmark")), b.hideTileLayer(b.engine.getLayerByName("eyelash8checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash9checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash10checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelashControlsJulie")),b.hideTileLayer(b.engine.getLayerByName("cheekControlPanel")),b.showTileLayer(b.engine.getLayerByName("eyelashControls")),1==m.engine.getGameAttribute("eyelash")?b.showTileLayer(b.engine.getLayerByName("eyelash1checkmark")):2==m.engine.getGameAttribute("eyelash")? b.showTileLayer(b.engine.getLayerByName("eyelash2checkmark")):3==m.engine.getGameAttribute("eyelash")?b.showTileLayer(b.engine.getLayerByName("eyelash3checkmark")):4==m.engine.getGameAttribute("eyelash")?b.showTileLayer(b.engine.getLayerByName("eyelash4checkmark")):5==m.engine.getGameAttribute("eyelash")?b.showTileLayer(b.engine.getLayerByName("eyelash5heckmark")):6==m.engine.getGameAttribute("eyelash")?b.showTileLayer(b.engine.getLayerByName("eyelash6heckmark")):7==m.engine.getGameAttribute("eyelash")? b.showTileLayer(b.engine.getLayerByName("eyelash7checkmark")):8==m.engine.getGameAttribute("eyelash")?b.showTileLayer(b.engine.getLayerByName("eyelash8checkmark")):9==m.engine.getGameAttribute("eyelash")?b.showTileLayer(b.engine.getLayerByName("eyelash9checkmark")):10==m.engine.getGameAttribute("eyelash")&&b.showTileLayer(b.engine.getLayerByName("eyelash10checkmark")),b.runLater(300,function(a){b.setGameAttribute("stage",3)},null),b.hideTileLayer(b.engine.getLayerByName("menuCheek")),b.showTileLayer(b.engine.getLayerByName("menuEyelash"))): b.getActor(191).isMouseDown()?b.switchScene(lb.get().scenes.h[0].getID(),null,b.createCrossfadeTransition(.5)):b.getActor(17).isMouseDown()&&(b.hideTileLayer(b.engine.getLayerByName("menuCheek")),b.showTileLayer(b.engine.getLayerByName("menuLip")),b.hideTileLayer(b.engine.getLayerByName("cheek1-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek2-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek5-3checkmark")),b.setGameAttribute("stage",5),b.showTileLayer(b.engine.getLayerByName("lipControls")),b.hideTileLayer(b.engine.getLayerByName("cheekControlPanel")),1==m.engine.getGameAttribute("lip")?b.showTileLayer(b.engine.getLayerByName("lip1checkmark")):2==m.engine.getGameAttribute("lip")?b.showTileLayer(b.engine.getLayerByName("lip2checkmark")):3==m.engine.getGameAttribute("lip")?b.showTileLayer(b.engine.getLayerByName("lip3checkmark")):4==m.engine.getGameAttribute("lip")? b.showTileLayer(b.engine.getLayerByName("lip4checkmark")):5==m.engine.getGameAttribute("lip")?b.showTileLayer(b.engine.getLayerByName("lip5checkmark")):6==m.engine.getGameAttribute("lip")?b.showTileLayer(b.engine.getLayerByName("lip6checkmark")):7==m.engine.getGameAttribute("lip")?b.showTileLayer(b.engine.getLayerByName("lip7checkmark")):8==m.engine.getGameAttribute("lip")&&b.showTileLayer(b.engine.getLayerByName("lip8checkmark"))))});this.addMousePressedListener(function(c){a.wrapper.enabled&&3== m.engine.getGameAttribute("stage")&&(b.getActor(177).isMouseDown()?(b.setGameAttribute("eyelash",1),b.showTileLayer(b.engine.getLayerByName("eyelash1Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash2Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash3Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash4Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash5Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash6Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash7Julie")), b.hideTileLayer(b.engine.getLayerByName("eyelash8Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash9Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash10Julie")),b.showTileLayer(b.engine.getLayerByName("eyelash1checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash2checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash3checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash4checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash5checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash6checkmark")), b.hideTileLayer(b.engine.getLayerByName("eyelash7checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash8checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash9checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash10checkmark"))):b.getActor(178).isMouseDown()?(b.setGameAttribute("eyelash",2),b.hideTileLayer(b.engine.getLayerByName("eyelash1Julie")),b.showTileLayer(b.engine.getLayerByName("eyelash2Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash3Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash4Julie")), b.hideTileLayer(b.engine.getLayerByName("eyelash5Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash6Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash7Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash8Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash9Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash10Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash1checkmark")),b.showTileLayer(b.engine.getLayerByName("eyelash2checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash3checkmark")), b.hideTileLayer(b.engine.getLayerByName("eyelash4checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash5checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash6checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash7checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash8checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash9checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash10checkmark"))):b.getActor(179).isMouseDown()?(b.setGameAttribute("eyelash",3),b.hideTileLayer(b.engine.getLayerByName("eyelash1Julie")), b.hideTileLayer(b.engine.getLayerByName("eyelash2Julie")),b.showTileLayer(b.engine.getLayerByName("eyelash3Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash4Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash5Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash6Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash7Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash8Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash9Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash10Julie")), b.hideTileLayer(b.engine.getLayerByName("eyelash1checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash2checkmark")),b.showTileLayer(b.engine.getLayerByName("eyelash3checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash4checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash5checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash6checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash7checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash8checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash9checkmark")), b.hideTileLayer(b.engine.getLayerByName("eyelash10checkmark"))):b.getActor(180).isMouseDown()?(b.setGameAttribute("eyelash",4),b.hideTileLayer(b.engine.getLayerByName("eyelash1Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash2Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash3Julie")),b.showTileLayer(b.engine.getLayerByName("eyelash4Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash5Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash6Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash7Julie")), b.hideTileLayer(b.engine.getLayerByName("eyelash8Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash9Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash10Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash1checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash2checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash3checkmark")),b.showTileLayer(b.engine.getLayerByName("eyelash4checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash5checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash6checkmark")), b.hideTileLayer(b.engine.getLayerByName("eyelash7checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash8checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash9checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash10checkmark"))):b.getActor(187).isMouseDown()?(b.setGameAttribute("eyelash",5),b.hideTileLayer(b.engine.getLayerByName("eyelash1Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash2Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash3Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash4Julie")), b.showTileLayer(b.engine.getLayerByName("eyelash5Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash6Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash7Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash8Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash9Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash10Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash1checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash2checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash3checkmark")), b.hideTileLayer(b.engine.getLayerByName("eyelash4checkmark")),b.showTileLayer(b.engine.getLayerByName("eyelash5checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash6checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash7checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash8checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash9checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash10checkmark"))):b.getActor(182).isMouseDown()?(b.setGameAttribute("eyelash",6),b.hideTileLayer(b.engine.getLayerByName("eyelash1Julie")), b.hideTileLayer(b.engine.getLayerByName("eyelash2Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash3Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash4Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash5Julie")),b.showTileLayer(b.engine.getLayerByName("eyelash6Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash7Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash8Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash9Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash10Julie")), b.hideTileLayer(b.engine.getLayerByName("eyelash1checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash2checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash3checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash4checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash5checkmark")),b.showTileLayer(b.engine.getLayerByName("eyelash6checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash7checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash8checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash9checkmark")), b.hideTileLayer(b.engine.getLayerByName("eyelash10checkmark"))):b.getActor(183).isMouseDown()?(b.setGameAttribute("eyelash",1),b.hideTileLayer(b.engine.getLayerByName("eyelash1Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash2Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash3Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash4Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash5Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash6Julie")),b.showTileLayer(b.engine.getLayerByName("eyelash7Julie")), b.hideTileLayer(b.engine.getLayerByName("eyelash8Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash9Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash10Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash1checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash2checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash3checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash4checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash5checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash6checkmark")), b.showTileLayer(b.engine.getLayerByName("eyelash7checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash8checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash9checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash10checkmark"))):b.getActor(184).isMouseDown()?(b.setGameAttribute("eyelash",1),b.hideTileLayer(b.engine.getLayerByName("eyelash1Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash2Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash3Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash4Julie")), b.hideTileLayer(b.engine.getLayerByName("eyelash5Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash6Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash7Julie")),b.showTileLayer(b.engine.getLayerByName("eyelash8Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash9Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash10Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash1checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash2checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash3checkmark")), b.hideTileLayer(b.engine.getLayerByName("eyelash4checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash5checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash6checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash7checkmark")),b.showTileLayer(b.engine.getLayerByName("eyelash8checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash9checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash10checkmark"))):b.getActor(185).isMouseDown()?(b.setGameAttribute("eyelash",9),b.hideTileLayer(b.engine.getLayerByName("eyelash1Julie")), b.hideTileLayer(b.engine.getLayerByName("eyelash2Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash3Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash4Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash5Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash6Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash7Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash8Julie")),b.showTileLayer(b.engine.getLayerByName("eyelash9Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash10Julie")), b.hideTileLayer(b.engine.getLayerByName("eyelash1checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash2checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash3checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash4checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash5checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash6checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash7checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash8checkmark")),b.showTileLayer(b.engine.getLayerByName("eyelash9checkmark")), b.hideTileLayer(b.engine.getLayerByName("eyelash10checkmark"))):b.getActor(186).isMouseDown()?(b.setGameAttribute("eyelash",10),b.hideTileLayer(b.engine.getLayerByName("eyelash1Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash2Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash3Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash4Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash5Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash6Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash7Julie")), b.hideTileLayer(b.engine.getLayerByName("eyelash8Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash9Julie")),b.showTileLayer(b.engine.getLayerByName("eyelash10Julie")),b.hideTileLayer(b.engine.getLayerByName("eyelash1checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash2checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash3checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash4checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash5checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash6checkmark")), b.hideTileLayer(b.engine.getLayerByName("eyelash7checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash8checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash9checkmark")),b.showTileLayer(b.engine.getLayerByName("eyelash10checkmark"))):b.getActor(16).isMouseDown()?(b.hideTileLayer(b.engine.getLayerByName("eyelash1checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash2checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash3checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash4checkmark")), b.hideTileLayer(b.engine.getLayerByName("eyelash5checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash6checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash7checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash8checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash9checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash10checkmark")),b.setGameAttribute("stage",10),b.showTileLayer(b.engine.getLayerByName("eyeControlsJulie")),b.hideTileLayer(b.engine.getLayerByName("eye1checkmark")), b.hideTileLayer(b.engine.getLayerByName("eye2checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye3checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye4checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye5checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye6checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye7checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye8checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye9checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye10checkmark")), b.hideTileLayer(b.engine.getLayerByName("eyelashControlsJulie")),b.showTileLayer(b.engine.getLayerByName("eyeControls")),1==m.engine.getGameAttribute("eyeNum")?b.showTileLayer(b.engine.getLayerByName("eye1checkmark")):2==m.engine.getGameAttribute("eyeNum")?b.showTileLayer(b.engine.getLayerByName("eye2checkmark")):3==m.engine.getGameAttribute("eyeNum")?b.showTileLayer(b.engine.getLayerByName("eye3checkmark")):4==m.engine.getGameAttribute("eyeNum")?b.showTileLayer(b.engine.getLayerByName("eye4checkmark")): 5==m.engine.getGameAttribute("eyeNum")?b.showTileLayer(b.engine.getLayerByName("eye5checkmark")):6==m.engine.getGameAttribute("eyeNum")?b.showTileLayer(b.engine.getLayerByName("eye6checkmark")):7==m.engine.getGameAttribute("eyeNum")?b.showTileLayer(b.engine.getLayerByName("eye7checkmark")):8==m.engine.getGameAttribute("eyeNum")?b.showTileLayer(b.engine.getLayerByName("eye8checkmark")):9==m.engine.getGameAttribute("eyeNum")?b.showTileLayer(b.engine.getLayerByName("eye9checkmark")):10==m.engine.getGameAttribute("eyeNum")&& b.showTileLayer(b.engine.getLayerByName("eye10checkmark")),b.runLater(300,function(a){b.setGameAttribute("stage",2)},null),b.hideTileLayer(b.engine.getLayerByName("menuEyelash")),b.showTileLayer(b.engine.getLayerByName("menuEye"))):b.getActor(191).isMouseDown()?b.switchScene(lb.get().scenes.h[0].getID(),null,b.createCrossfadeTransition(.5)):b.getActor(17).isMouseDown()&&(b.setGameAttribute("stage",4),b.hideTileLayer(b.engine.getLayerByName("menuEyelash")),b.showTileLayer(b.engine.getLayerByName("menuCheek")), b.hideTileLayer(b.engine.getLayerByName("eyelash1checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash2checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash3checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash4checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash5checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash6checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash7checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash8checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash9checkmark")), b.hideTileLayer(b.engine.getLayerByName("eyelash10checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelashControlsJulie")),b.showTileLayer(b.engine.getLayerByName("cheekControlPanel")),b.hideTileLayer(b.engine.getLayerByName("lipControls")),1==m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek1-1checkmark")):2==m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek1-2checkmark")):3==m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek1-3checkmark")): 4==m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek2-1checkmark")):5==m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek2-2checkmark")):6==m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek2-3checkmark")):7==m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek3-1checkmark")):8==m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek3-2checkmark")):9== m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek3-3checkmark")):10==m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek4-1checkmark")):11==m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek4-2checkmark")):12==m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek4-3checkmark")):13==m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek5-1checkmark")): 14==m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek5-2checkmark")):15==m.engine.getGameAttribute("cheek")&&b.showTileLayer(b.engine.getLayerByName("cheek5-3checkmark"))))});this.addMousePressedListener(function(c){a.wrapper.enabled&&2==m.engine.getGameAttribute("stage")&&(b.getActor(166).isMouseDown()?(b.showTileLayer(b.engine.getLayerByName("eye1Julie")),b.hideTileLayer(b.engine.getLayerByName("eye2Julie")),b.hideTileLayer(b.engine.getLayerByName("eye3Julie")),b.hideTileLayer(b.engine.getLayerByName("eye4Julie")), b.hideTileLayer(b.engine.getLayerByName("eye5Julie")),b.hideTileLayer(b.engine.getLayerByName("eye6Julie")),b.hideTileLayer(b.engine.getLayerByName("eye7Julie")),b.hideTileLayer(b.engine.getLayerByName("eye8Julie")),b.hideTileLayer(b.engine.getLayerByName("eye9Julie")),b.hideTileLayer(b.engine.getLayerByName("eye10Julie")),b.showTileLayer(b.engine.getLayerByName("eye1checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye2checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye3checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye4checkmark")), b.hideTileLayer(b.engine.getLayerByName("eye5checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye6checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye7checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye8checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye9checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye10checkmark"))):b.getActor(167).isMouseDown()?(b.hideTileLayer(b.engine.getLayerByName("eye1Julie")),b.showTileLayer(b.engine.getLayerByName("eye2Julie")),b.hideTileLayer(b.engine.getLayerByName("eye3Julie")), b.hideTileLayer(b.engine.getLayerByName("eye4Julie")),b.hideTileLayer(b.engine.getLayerByName("eye5Julie")),b.hideTileLayer(b.engine.getLayerByName("eye6Julie")),b.hideTileLayer(b.engine.getLayerByName("eye7Julie")),b.hideTileLayer(b.engine.getLayerByName("eye8Julie")),b.hideTileLayer(b.engine.getLayerByName("eye9Julie")),b.hideTileLayer(b.engine.getLayerByName("eye10Julie")),b.hideTileLayer(b.engine.getLayerByName("eye1checkmark")),b.showTileLayer(b.engine.getLayerByName("eye2checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye3checkmark")), b.hideTileLayer(b.engine.getLayerByName("eye4checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye5checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye6checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye7checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye8checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye9checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye10checkmark")),b.setGameAttribute("eyeNum",2)):b.getActor(168).isMouseDown()?(b.hideTileLayer(b.engine.getLayerByName("eye1Julie")), b.hideTileLayer(b.engine.getLayerByName("eye2Julie")),b.showTileLayer(b.engine.getLayerByName("eye3Julie")),b.hideTileLayer(b.engine.getLayerByName("eye4Julie")),b.hideTileLayer(b.engine.getLayerByName("eye5Julie")),b.hideTileLayer(b.engine.getLayerByName("eye6Julie")),b.hideTileLayer(b.engine.getLayerByName("eye7Julie")),b.hideTileLayer(b.engine.getLayerByName("eye8Julie")),b.hideTileLayer(b.engine.getLayerByName("eye9Julie")),b.hideTileLayer(b.engine.getLayerByName("eye10Julie")),b.hideTileLayer(b.engine.getLayerByName("eye1checkmark")), b.hideTileLayer(b.engine.getLayerByName("eye2checkmark")),b.showTileLayer(b.engine.getLayerByName("eye3checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye4checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye5checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye6checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye7checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye8checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye9checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye10checkmark")), b.setGameAttribute("eyeNum",3)):b.getActor(169).isMouseDown()?(b.hideTileLayer(b.engine.getLayerByName("eye1Julie")),b.hideTileLayer(b.engine.getLayerByName("eye2Julie")),b.hideTileLayer(b.engine.getLayerByName("eye3Julie")),b.showTileLayer(b.engine.getLayerByName("eye4Julie")),b.hideTileLayer(b.engine.getLayerByName("eye5Julie")),b.hideTileLayer(b.engine.getLayerByName("eye6Julie")),b.hideTileLayer(b.engine.getLayerByName("eye7Julie")),b.hideTileLayer(b.engine.getLayerByName("eye8Julie")),b.hideTileLayer(b.engine.getLayerByName("eye9Julie")), b.hideTileLayer(b.engine.getLayerByName("eye10Julie")),b.hideTileLayer(b.engine.getLayerByName("eye1checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye2checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye3checkmark")),b.showTileLayer(b.engine.getLayerByName("eye4checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye5checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye6checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye7checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye8checkmark")), b.hideTileLayer(b.engine.getLayerByName("eye9checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye10checkmark")),b.setGameAttribute("eyeNum",4)):b.getActor(170).isMouseDown()?(b.hideTileLayer(b.engine.getLayerByName("eye1Julie")),b.hideTileLayer(b.engine.getLayerByName("eye2Julie")),b.hideTileLayer(b.engine.getLayerByName("eye3Julie")),b.hideTileLayer(b.engine.getLayerByName("eye4Julie")),b.showTileLayer(b.engine.getLayerByName("eye5Julie")),b.hideTileLayer(b.engine.getLayerByName("eye6Julie")), b.hideTileLayer(b.engine.getLayerByName("eye7Julie")),b.hideTileLayer(b.engine.getLayerByName("eye8Julie")),b.hideTileLayer(b.engine.getLayerByName("eye9Julie")),b.hideTileLayer(b.engine.getLayerByName("eye10Julie")),b.hideTileLayer(b.engine.getLayerByName("eye1checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye2checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye3checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye4checkmark")),b.showTileLayer(b.engine.getLayerByName("eye5checkmark")), b.hideTileLayer(b.engine.getLayerByName("eye6checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye7checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye8checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye9checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye10checkmark")),b.setGameAttribute("eyeNum",5)):b.getActor(171).isMouseDown()?(b.hideTileLayer(b.engine.getLayerByName("eye1Julie")),b.hideTileLayer(b.engine.getLayerByName("eye2Julie")),b.hideTileLayer(b.engine.getLayerByName("eye3Julie")), b.hideTileLayer(b.engine.getLayerByName("eye4Julie")),b.hideTileLayer(b.engine.getLayerByName("eye5Julie")),b.showTileLayer(b.engine.getLayerByName("eye6Julie")),b.hideTileLayer(b.engine.getLayerByName("eye7Julie")),b.hideTileLayer(b.engine.getLayerByName("eye8Julie")),b.hideTileLayer(b.engine.getLayerByName("eye9Julie")),b.hideTileLayer(b.engine.getLayerByName("eye10Julie")),b.hideTileLayer(b.engine.getLayerByName("eye1checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye2checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye3checkmark")), b.hideTileLayer(b.engine.getLayerByName("eye4checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye5checkmark")),b.showTileLayer(b.engine.getLayerByName("eye6checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye7checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye8checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye9checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye10checkmark")),b.setGameAttribute("eyeNum",6)):b.getActor(172).isMouseDown()?(b.hideTileLayer(b.engine.getLayerByName("eye1Julie")), b.hideTileLayer(b.engine.getLayerByName("eye2Julie")),b.hideTileLayer(b.engine.getLayerByName("eye3Julie")),b.hideTileLayer(b.engine.getLayerByName("eye4Julie")),b.hideTileLayer(b.engine.getLayerByName("eye5Julie")),b.hideTileLayer(b.engine.getLayerByName("eye6Julie")),b.showTileLayer(b.engine.getLayerByName("eye7Julie")),b.hideTileLayer(b.engine.getLayerByName("eye8Julie")),b.hideTileLayer(b.engine.getLayerByName("eye9Julie")),b.hideTileLayer(b.engine.getLayerByName("eye10Julie")),b.hideTileLayer(b.engine.getLayerByName("eye1checkmark")), b.hideTileLayer(b.engine.getLayerByName("eye2checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye3checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye4checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye5checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye6checkmark")),b.showTileLayer(b.engine.getLayerByName("eye7checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye8checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye9checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye10checkmark")), b.setGameAttribute("eyeNum",7)):b.getActor(173).isMouseDown()?(b.hideTileLayer(b.engine.getLayerByName("eye1Julie")),b.hideTileLayer(b.engine.getLayerByName("eye2Julie")),b.hideTileLayer(b.engine.getLayerByName("eye3Julie")),b.hideTileLayer(b.engine.getLayerByName("eye4Julie")),b.hideTileLayer(b.engine.getLayerByName("eye5Julie")),b.hideTileLayer(b.engine.getLayerByName("eye6Julie")),b.hideTileLayer(b.engine.getLayerByName("eye7Julie")),b.showTileLayer(b.engine.getLayerByName("eye8Julie")),b.hideTileLayer(b.engine.getLayerByName("eye9Julie")), b.hideTileLayer(b.engine.getLayerByName("eye10Julie")),b.hideTileLayer(b.engine.getLayerByName("eye1checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye2checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye3checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye4checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye5checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye6checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye7checkmark")),b.showTileLayer(b.engine.getLayerByName("eye8checkmark")), b.hideTileLayer(b.engine.getLayerByName("eye9checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye10checkmark")),b.setGameAttribute("eyeNum",8)):b.getActor(174).isMouseDown()?(b.hideTileLayer(b.engine.getLayerByName("eye1Julie")),b.hideTileLayer(b.engine.getLayerByName("eye2Julie")),b.hideTileLayer(b.engine.getLayerByName("eye3Julie")),b.hideTileLayer(b.engine.getLayerByName("eye4Julie")),b.hideTileLayer(b.engine.getLayerByName("eye5Julie")),b.hideTileLayer(b.engine.getLayerByName("eye6Julie")), b.hideTileLayer(b.engine.getLayerByName("eye7Julie")),b.hideTileLayer(b.engine.getLayerByName("eye8Julie")),b.showTileLayer(b.engine.getLayerByName("eye9Julie")),b.hideTileLayer(b.engine.getLayerByName("eye10Julie")),b.hideTileLayer(b.engine.getLayerByName("eye1checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye2checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye3checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye4checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye5checkmark")), b.hideTileLayer(b.engine.getLayerByName("eye6checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye7checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye8checkmark")),b.showTileLayer(b.engine.getLayerByName("eye9checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye10checkmark")),b.setGameAttribute("eyeNum",9)):b.getActor(175).isMouseDown()?(b.hideTileLayer(b.engine.getLayerByName("eye1Julie")),b.hideTileLayer(b.engine.getLayerByName("eye2Julie")),b.hideTileLayer(b.engine.getLayerByName("eye3Julie")), b.hideTileLayer(b.engine.getLayerByName("eye4Julie")),b.hideTileLayer(b.engine.getLayerByName("eye5Julie")),b.hideTileLayer(b.engine.getLayerByName("eye6Julie")),b.hideTileLayer(b.engine.getLayerByName("eye7Julie")),b.hideTileLayer(b.engine.getLayerByName("eye8Julie")),b.hideTileLayer(b.engine.getLayerByName("eye9Julie")),b.showTileLayer(b.engine.getLayerByName("eye10Julie")),b.hideTileLayer(b.engine.getLayerByName("eye1checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye2checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye3checkmark")), b.hideTileLayer(b.engine.getLayerByName("eye4checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye5checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye6checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye7checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye8checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye9checkmark")),b.showTileLayer(b.engine.getLayerByName("eye10checkmark")),b.setGameAttribute("eyeNum",10)):b.getActor(16).isMouseDown()?(b.hideTileLayer(b.engine.getLayerByName("menuEye")), b.showTileLayer(b.engine.getLayerByName("menuHair")),b.hideTileLayer(b.engine.getLayerByName("eye1checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye2checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye3checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye4checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye5checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye6checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye7checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye8checkmark")), b.hideTileLayer(b.engine.getLayerByName("eye9checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye10checkmark")),b.showTileLayer(b.engine.getLayerByName("hairControls")),b.hideTileLayer(b.engine.getLayerByName("eyeControls")),b.hideTileLayer(b.engine.getLayerByName("eyeControlsJulie")),b.setGameAttribute("stage",10),b.hideTileLayer(b.engine.getLayerByName("bottomButtons")),b.runLater(300,function(a){b.setGameAttribute("stage",1)},null)):b.getActor(191).isMouseDown()?b.switchScene(lb.get().scenes.h[0].getID(), null,b.createCrossfadeTransition(.5)):b.getActor(17).isMouseDown()&&(b.setGameAttribute("stage",3),b.hideTileLayer(b.engine.getLayerByName("menuEye")),b.showTileLayer(b.engine.getLayerByName("menuEyelash")),b.hideTileLayer(b.engine.getLayerByName("eyeControlsJulie")),b.hideTileLayer(b.engine.getLayerByName("eye1checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye2checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye3checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye4checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye5checkmark")), b.hideTileLayer(b.engine.getLayerByName("eye6checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye7checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye8checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye9checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye10checkmark")),b.showTileLayer(b.engine.getLayerByName("eyelashControlsJulie")),1==m.engine.getGameAttribute("eyelash")?b.showTileLayer(b.engine.getLayerByName("eyelash1checkmark")):2==m.engine.getGameAttribute("eyelash")?b.showTileLayer(b.engine.getLayerByName("eyelash2checkmark")): 3==m.engine.getGameAttribute("eyelash")?b.showTileLayer(b.engine.getLayerByName("eyelash3checkmark")):4==m.engine.getGameAttribute("eyelash")?b.showTileLayer(b.engine.getLayerByName("eyelash4checkmark")):5==m.engine.getGameAttribute("eyelash")?b.showTileLayer(b.engine.getLayerByName("eyelash5checkmark")):6==m.engine.getGameAttribute("eyelash")?b.showTileLayer(b.engine.getLayerByName("eyelash6checkmark")):7==m.engine.getGameAttribute("eyelash")?b.showTileLayer(b.engine.getLayerByName("eyelash7checkmark")): 8==m.engine.getGameAttribute("eyelash")?b.showTileLayer(b.engine.getLayerByName("eyelash8checkmark")):9==m.engine.getGameAttribute("eyelash")?b.showTileLayer(b.engine.getLayerByName("eyelash9checkmark")):10==m.engine.getGameAttribute("eyelash")&&b.showTileLayer(b.engine.getLayerByName("eyelash10checkmark"))))});this.addMousePressedListener(function(c){a.wrapper.enabled&&1==m.engine.getGameAttribute("stage")&&(b.getActor(1).isMouseDown()?1==m.engine.getGameAttribute("hairNum")?(b.hideTileLayer(b.engine.getLayerByName("hair1")), b.showTileLayer(b.engine.getLayerByName("hair2")),b.setGameAttribute("hairNum",2)):2==m.engine.getGameAttribute("hairNum")?(b.hideTileLayer(b.engine.getLayerByName("hair2")),b.showTileLayer(b.engine.getLayerByName("hair3")),b.setGameAttribute("hairNum",3)):3==m.engine.getGameAttribute("hairNum")?(b.hideTileLayer(b.engine.getLayerByName("hair3")),b.showTileLayer(b.engine.getLayerByName("hair4")),b.setGameAttribute("hairNum",4)):4==m.engine.getGameAttribute("hairNum")?(b.hideTileLayer(b.engine.getLayerByName("hair4")), b.showTileLayer(b.engine.getLayerByName("hair5")),b.setGameAttribute("hairNum",5)):5==m.engine.getGameAttribute("hairNum")?(b.hideTileLayer(b.engine.getLayerByName("hair5")),b.showTileLayer(b.engine.getLayerByName("hair6")),b.setGameAttribute("hairNum",6)):6==m.engine.getGameAttribute("hairNum")&&(b.hideTileLayer(b.engine.getLayerByName("hair6")),b.showTileLayer(b.engine.getLayerByName("hair1")),b.setGameAttribute("hairNum",1)):b.getActor(2).isMouseDown()?1==m.engine.getGameAttribute("hairNum")?(b.hideTileLayer(b.engine.getLayerByName("hair1")), b.showTileLayer(b.engine.getLayerByName("hair6")),b.setGameAttribute("hairNum",6)):2==m.engine.getGameAttribute("hairNum")?(b.hideTileLayer(b.engine.getLayerByName("hair2")),b.showTileLayer(b.engine.getLayerByName("hair1")),b.setGameAttribute("hairNum",1)):3==m.engine.getGameAttribute("hairNum")?(b.hideTileLayer(b.engine.getLayerByName("hair3")),b.showTileLayer(b.engine.getLayerByName("hair2")),b.setGameAttribute("hairNum",2)):4==m.engine.getGameAttribute("hairNum")?(b.hideTileLayer(b.engine.getLayerByName("hair4")), b.showTileLayer(b.engine.getLayerByName("hair3")),b.setGameAttribute("hairNum",3)):5==m.engine.getGameAttribute("hairNum")?(b.hideTileLayer(b.engine.getLayerByName("hair5")),b.showTileLayer(b.engine.getLayerByName("hair4")),b.setGameAttribute("hairNum",4)):6==m.engine.getGameAttribute("hairNum")&&(b.hideTileLayer(b.engine.getLayerByName("hair6")),b.showTileLayer(b.engine.getLayerByName("hair5")),b.setGameAttribute("hairNum",5)):b.getActor(3).isMouseDown()?b.switchScene(lb.get().scenes.h[1].getID(), null,b.createCrossfadeTransition(.5)):b.getActor(190).isMouseDown()?b.switchScene(lb.get().scenes.h[0].getID(),null,b.createCrossfadeTransition(.5)):b.getActor(4).isMouseDown()&&(b.hideTileLayer(b.engine.getLayerByName("hairControls")),b.hideTileLayer(b.engine.getLayerByName("menuHair")),b.showTileLayer(b.engine.getLayerByName("menuEye")),0==m.engine.getGameAttribute("character")?(b.showTileLayer(b.engine.getLayerByName("eyeControls")),b.setGameAttribute("stage",2)):1==m.engine.getGameAttribute("character")&& (b.showTileLayer(b.engine.getLayerByName("eyeControlsJulie")),b.setGameAttribute("stage",2)),b.showTileLayer(b.engine.getLayerByName("bottomButtons")),1==m.engine.getGameAttribute("eyeNum")?b.showTileLayer(b.engine.getLayerByName("eye1checkmark")):2==m.engine.getGameAttribute("eyeNum")?b.showTileLayer(b.engine.getLayerByName("eye2checkmark")):3==m.engine.getGameAttribute("eyeNum")?b.showTileLayer(b.engine.getLayerByName("eye3checkmark")):4==m.engine.getGameAttribute("eyeNum")?b.showTileLayer(b.engine.getLayerByName("eye4checkmark")): 5==m.engine.getGameAttribute("eyeNum")?b.showTileLayer(b.engine.getLayerByName("eye5checkmark")):6==m.engine.getGameAttribute("eyeNum")?b.showTileLayer(b.engine.getLayerByName("eye6checkmark")):7==m.engine.getGameAttribute("eyeNum")?b.showTileLayer(b.engine.getLayerByName("eye7checkmark")):8==m.engine.getGameAttribute("eyeNum")?b.showTileLayer(b.engine.getLayerByName("eye8checkmark")):9==m.engine.getGameAttribute("eyeNum")?b.showTileLayer(b.engine.getLayerByName("eye9checkmark")):10==m.engine.getGameAttribute("eyeNum")&& b.showTileLayer(b.engine.getLayerByName("eye10checkmark"))))});this.addMouseOverActorListener(b.getRegion(0),function(c,d){a.wrapper.enabled&&3==c&&2!=m.engine.getGameAttribute("stage")&&7>m.engine.getGameAttribute("stage")&&1!=m.engine.getGameAttribute("stage")&&(b.showTileLayer(b.engine.getLayerByName("eyeControlsJulie")),b.hideTileLayer(b.engine.getLayerByName("eyelashControlsJulie")),b.hideTileLayer(b.engine.getLayerByName("cheekControlPanel")),b.hideTileLayer(b.engine.getLayerByName("lipControls")), b.hideTileLayer(b.engine.getLayerByName("accessoryControlPanel1")),b.hideTileLayer(b.engine.getLayerByName("accessoryControlPanel2")),b.hideTileLayer(b.engine.getLayerByName("accessoryControlPanel3")),b.hideTileLayer(b.engine.getLayerByName("accessoryControlArrows")),b.setGameAttribute("stage",2),b.hideTileLayer(b.engine.getLayerByName("eye1checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye2checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye3checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye4checkmark")), b.hideTileLayer(b.engine.getLayerByName("eye5checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye6checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye7checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye8checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye9checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye10checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash1checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash2checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash3checkmark")), b.hideTileLayer(b.engine.getLayerByName("eyelash4checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash5checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash6checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash7checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash8checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash9checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash10checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek1-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek4-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip1checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip2checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip3checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip4checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip5checkmark")), b.hideTileLayer(b.engine.getLayerByName("lip6checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip7checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip8checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory1checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory2checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory3checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory4checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory5checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory6checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory7checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory8checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory9checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory10checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory11checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory12checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory13checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory14checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory15checkmark")),b.hideTileLayer(b.engine.getLayerByName("menuHair")),b.showTileLayer(b.engine.getLayerByName("menuEye")),b.hideTileLayer(b.engine.getLayerByName("menuEyelash")),b.hideTileLayer(b.engine.getLayerByName("menuCheek")),b.hideTileLayer(b.engine.getLayerByName("menuLip")),b.hideTileLayer(b.engine.getLayerByName("menuAccessory")),b.hideTileLayer(b.engine.getLayerByName("menuCloth")),b.hideTileLayer(b.engine.getLayerByName("menuBackground")), 1==m.engine.getGameAttribute("eyeNum")?b.showTileLayer(b.engine.getLayerByName("eye1checkmark")):2==m.engine.getGameAttribute("eyeNum")?b.showTileLayer(b.engine.getLayerByName("eye2checkmark")):3==m.engine.getGameAttribute("eyeNum")?b.showTileLayer(b.engine.getLayerByName("eye3checkmark")):4==m.engine.getGameAttribute("eyeNum")?b.showTileLayer(b.engine.getLayerByName("eye4checkmark")):5==m.engine.getGameAttribute("eyeNum")?b.showTileLayer(b.engine.getLayerByName("eye5checkmark")):6==m.engine.getGameAttribute("eyeNum")? b.showTileLayer(b.engine.getLayerByName("eye6checkmark")):7==m.engine.getGameAttribute("eyeNum")?b.showTileLayer(b.engine.getLayerByName("eye7checkmark")):8==m.engine.getGameAttribute("eyeNum")?b.showTileLayer(b.engine.getLayerByName("eye8checkmark")):9==m.engine.getGameAttribute("eyeNum")?b.showTileLayer(b.engine.getLayerByName("eye9checkmark")):10==m.engine.getGameAttribute("eyeNum")&&b.showTileLayer(b.engine.getLayerByName("eye10checkmark")))});this.addMouseOverActorListener(b.getRegion(1),function(c, d){a.wrapper.enabled&&3==c&&3!=m.engine.getGameAttribute("stage")&&7>m.engine.getGameAttribute("stage")&&1!=m.engine.getGameAttribute("stage")&&(b.hideTileLayer(b.engine.getLayerByName("menuHair")),b.hideTileLayer(b.engine.getLayerByName("menuEye")),b.showTileLayer(b.engine.getLayerByName("menuEyelash")),b.hideTileLayer(b.engine.getLayerByName("menuCheek")),b.hideTileLayer(b.engine.getLayerByName("menuLip")),b.hideTileLayer(b.engine.getLayerByName("menuAccessory")),b.hideTileLayer(b.engine.getLayerByName("menuCloth")), b.hideTileLayer(b.engine.getLayerByName("menuBackground")),b.hideTileLayer(b.engine.getLayerByName("eyeControlsJulie")),b.showTileLayer(b.engine.getLayerByName("eyelashControlsJulie")),b.hideTileLayer(b.engine.getLayerByName("cheekControlPanel")),b.hideTileLayer(b.engine.getLayerByName("lipControls")),b.hideTileLayer(b.engine.getLayerByName("accessoryControlPanel1")),b.hideTileLayer(b.engine.getLayerByName("accessoryControlPanel2")),b.hideTileLayer(b.engine.getLayerByName("accessoryControlPanel3")), b.hideTileLayer(b.engine.getLayerByName("accessoryControlArrows")),b.setGameAttribute("stage",3),b.hideTileLayer(b.engine.getLayerByName("eye1checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye2checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye3checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye4checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye5checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye6checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye7checkmark")), b.hideTileLayer(b.engine.getLayerByName("eye8checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye9checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye10checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash1checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash2checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash3checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash4checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash5checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash6checkmark")), b.hideTileLayer(b.engine.getLayerByName("eyelash7checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash8checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash9checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash10checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek2-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek5-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip1checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip2checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip3checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip4checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip5checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip6checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip7checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip8checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory1checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory2checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory3checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory4checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory5checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory6checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory7checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory8checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory9checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory10checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory11checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory12checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory13checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory14checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory15checkmark")),1==m.engine.getGameAttribute("eyelash")?b.showTileLayer(b.engine.getLayerByName("eyelash1checkmark")): 2==m.engine.getGameAttribute("eyelash")?b.showTileLayer(b.engine.getLayerByName("eyelash2checkmark")):3==m.engine.getGameAttribute("eyelash")?b.showTileLayer(b.engine.getLayerByName("eyelash3checkmark")):4==m.engine.getGameAttribute("eyelash")?b.showTileLayer(b.engine.getLayerByName("eyelash4checkmark")):5==m.engine.getGameAttribute("eyelash")?b.showTileLayer(b.engine.getLayerByName("eyelash5checkmark")):6==m.engine.getGameAttribute("eyelash")?b.showTileLayer(b.engine.getLayerByName("eyelash6checkmark")): 7==m.engine.getGameAttribute("eyelash")?b.showTileLayer(b.engine.getLayerByName("eyelash7checkmark")):8==m.engine.getGameAttribute("eyelash")?b.showTileLayer(b.engine.getLayerByName("eyelash8checkmark")):9==m.engine.getGameAttribute("eyelash")?b.showTileLayer(b.engine.getLayerByName("eyelash9checkmark")):10==m.engine.getGameAttribute("eyelash")&&b.showTileLayer(b.engine.getLayerByName("eyelash10checkmark")))});this.addMouseOverActorListener(b.getRegion(2),function(c,d){a.wrapper.enabled&&3==c&&4!= m.engine.getGameAttribute("stage")&&7>m.engine.getGameAttribute("stage")&&1!=m.engine.getGameAttribute("stage")&&(b.hideTileLayer(b.engine.getLayerByName("menuHair")),b.hideTileLayer(b.engine.getLayerByName("menuEye")),b.hideTileLayer(b.engine.getLayerByName("menuEyelash")),b.showTileLayer(b.engine.getLayerByName("menuCheek")),b.hideTileLayer(b.engine.getLayerByName("menuLip")),b.hideTileLayer(b.engine.getLayerByName("menuAccessory")),b.hideTileLayer(b.engine.getLayerByName("menuCloth")),b.hideTileLayer(b.engine.getLayerByName("menuBackground")), b.hideTileLayer(b.engine.getLayerByName("eyeControlsJulie")),b.hideTileLayer(b.engine.getLayerByName("eyelashControlsJulie")),b.showTileLayer(b.engine.getLayerByName("cheekControlPanel")),b.hideTileLayer(b.engine.getLayerByName("lipControls")),b.hideTileLayer(b.engine.getLayerByName("accessoryControlPanel1")),b.hideTileLayer(b.engine.getLayerByName("accessoryControlPanel2")),b.hideTileLayer(b.engine.getLayerByName("accessoryControlPanel3")),b.hideTileLayer(b.engine.getLayerByName("accessoryControlArrows")), b.setGameAttribute("stage",4),b.hideTileLayer(b.engine.getLayerByName("eye1checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye2checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye3checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye4checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye5checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye6checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye7checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye8checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye9checkmark")), b.hideTileLayer(b.engine.getLayerByName("eye10checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash1checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash2checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash3checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash4checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash5checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash6checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash7checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash8checkmark")), b.hideTileLayer(b.engine.getLayerByName("eyelash9checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash10checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek3-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip1checkmark")), b.hideTileLayer(b.engine.getLayerByName("lip2checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip3checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip4checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip5checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip6checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip7checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip8checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory1checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory2checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory3checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory4checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory5checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory6checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory7checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory8checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory9checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory10checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory11checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory12checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory13checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory14checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory15checkmark")),1==m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek1-1checkmark")):2==m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek1-2checkmark")): 3==m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek1-3checkmark")):4==m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek2-1checkmark")):5==m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek2-2checkmark")):6==m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek2-3checkmark")):7==m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek3-1checkmark")):8== m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek3-2checkmark")):9==m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek3-3checkmark")):10==m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek4-1checkmark")):11==m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek4-2checkmark")):12==m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek4-3checkmark")):13== m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek5-1checkmark")):14==m.engine.getGameAttribute("cheek")?b.showTileLayer(b.engine.getLayerByName("cheek5-2checkmark")):15==m.engine.getGameAttribute("cheek")&&b.showTileLayer(b.engine.getLayerByName("cheek5-3checkmark")))});this.addMouseOverActorListener(b.getRegion(3),function(c,d){a.wrapper.enabled&&3==c&&5!=m.engine.getGameAttribute("stage")&&7>m.engine.getGameAttribute("stage")&&1!=m.engine.getGameAttribute("stage")&& (b.hideTileLayer(b.engine.getLayerByName("menuHair")),b.hideTileLayer(b.engine.getLayerByName("menuEye")),b.hideTileLayer(b.engine.getLayerByName("menuEyelash")),b.hideTileLayer(b.engine.getLayerByName("menuCheek")),b.showTileLayer(b.engine.getLayerByName("menuLip")),b.hideTileLayer(b.engine.getLayerByName("menuAccessory")),b.hideTileLayer(b.engine.getLayerByName("menuCloth")),b.hideTileLayer(b.engine.getLayerByName("menuBackground")),b.hideTileLayer(b.engine.getLayerByName("eyeControlsJulie")),b.hideTileLayer(b.engine.getLayerByName("eyelashControlsJulie")), b.hideTileLayer(b.engine.getLayerByName("cheekControlPanel")),b.showTileLayer(b.engine.getLayerByName("lipControls")),b.hideTileLayer(b.engine.getLayerByName("accessoryControlPanel1")),b.hideTileLayer(b.engine.getLayerByName("accessoryControlPanel2")),b.hideTileLayer(b.engine.getLayerByName("accessoryControlPanel3")),b.hideTileLayer(b.engine.getLayerByName("accessoryControlArrows")),b.setGameAttribute("stage",5),b.hideTileLayer(b.engine.getLayerByName("eye1checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye2checkmark")), b.hideTileLayer(b.engine.getLayerByName("eye3checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye4checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye5checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye6checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye7checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye8checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye9checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye10checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash1checkmark")), b.hideTileLayer(b.engine.getLayerByName("eyelash2checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash3checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash4checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash5checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash6checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash7checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash8checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash9checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash10checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek1-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek4-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip1checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip2checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip3checkmark")), b.hideTileLayer(b.engine.getLayerByName("lip4checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip5checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip6checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip7checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip8checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory1checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory2checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory3checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory4checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory5checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory6checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory7checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory8checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory9checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory10checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory11checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory12checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory13checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory14checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory15checkmark")),1==m.engine.getGameAttribute("lip")?b.showTileLayer(b.engine.getLayerByName("lip1checkmark")):2==m.engine.getGameAttribute("lip")?b.showTileLayer(b.engine.getLayerByName("lip2checkmark")):3==m.engine.getGameAttribute("lip")?b.showTileLayer(b.engine.getLayerByName("lip3checkmark")):4==m.engine.getGameAttribute("lip")? b.showTileLayer(b.engine.getLayerByName("lip4checkmark")):5==m.engine.getGameAttribute("lip")?b.showTileLayer(b.engine.getLayerByName("lip5checkmark")):6==m.engine.getGameAttribute("lip")?b.showTileLayer(b.engine.getLayerByName("lip6checkmark")):7==m.engine.getGameAttribute("lip")?b.showTileLayer(b.engine.getLayerByName("lip7checkmark")):8==m.engine.getGameAttribute("lip")&&b.showTileLayer(b.engine.getLayerByName("lip8checkmark")))});this.addMouseOverActorListener(b.getRegion(4),function(c,d){a.wrapper.enabled&& 3==c&&6!=m.engine.getGameAttribute("stage")&&7>m.engine.getGameAttribute("stage")&&1!=m.engine.getGameAttribute("stage")&&(b.hideTileLayer(b.engine.getLayerByName("menuHair")),b.hideTileLayer(b.engine.getLayerByName("menuEye")),b.hideTileLayer(b.engine.getLayerByName("menuEyelash")),b.hideTileLayer(b.engine.getLayerByName("menuCheek")),b.hideTileLayer(b.engine.getLayerByName("menuLip")),b.showTileLayer(b.engine.getLayerByName("menuAccessory")),b.hideTileLayer(b.engine.getLayerByName("menuCloth")), b.hideTileLayer(b.engine.getLayerByName("menuBackground")),b.hideTileLayer(b.engine.getLayerByName("eyeControlsJulie")),b.hideTileLayer(b.engine.getLayerByName("eyelashControlsJulie")),b.hideTileLayer(b.engine.getLayerByName("cheekControlPanel")),b.hideTileLayer(b.engine.getLayerByName("lipControls")),b.showTileLayer(b.engine.getLayerByName("accessoryControlPanel1")),b.hideTileLayer(b.engine.getLayerByName("accessoryControlPanel2")),b.hideTileLayer(b.engine.getLayerByName("accessoryControlPanel3")), b.showTileLayer(b.engine.getLayerByName("accessoryControlArrows")),b.setGameAttribute("stage",6),b.hideTileLayer(b.engine.getLayerByName("eye1checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye2checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye3checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye4checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye5checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye6checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye7checkmark")), b.hideTileLayer(b.engine.getLayerByName("eye8checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye9checkmark")),b.hideTileLayer(b.engine.getLayerByName("eye10checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash1checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash2checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash3checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash4checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash5checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash6checkmark")), b.hideTileLayer(b.engine.getLayerByName("eyelash7checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash8checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash9checkmark")),b.hideTileLayer(b.engine.getLayerByName("eyelash10checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek1-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek2-2checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek2-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek3-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-2checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek4-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-1checkmark")),b.hideTileLayer(b.engine.getLayerByName("cheek5-2checkmark")), b.hideTileLayer(b.engine.getLayerByName("cheek5-3checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip1checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip2checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip3checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip4checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip5checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip6checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip7checkmark")),b.hideTileLayer(b.engine.getLayerByName("lip8checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory1checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory2checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory3checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory4checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory5checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory6checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory7checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory8checkmark")), b.hideTileLayer(b.engine.getLayerByName("accessory9checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory10checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory11checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory12checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory13checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory14checkmark")),b.hideTileLayer(b.engine.getLayerByName("accessory15checkmark")),0==m.engine.getGameAttribute("accessoryPage")&& (b.showTileLayer(b.engine.getLayerByName("accessoryControlPanel1")),b.setGameAttribute("accessoryPage",1)),1==m.engine.getGameAttribute("accessoryPage")?b.showTileLayer(b.engine.getLayerByName("accessoryControlPanel1")):2==m.engine.getGameAttribute("accessoryPage")?b.showTileLayer(b.engine.getLayerByName("accessoryControlPanel2")):3==m.engine.getGameAttribute("accessoryPage")&&b.showTileLayer(b.engine.getLayerByName("accessoryControlPanel3")),1==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory1checkmark")): 2==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory2checkmark")):3==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory3checkmark")):4==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory4checkmark")):5==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory5checkmark")):6==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory6checkmark")): 7==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory7checkmark")):8==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory8checkmark")):9==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory9checkmark")):10==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory10checkmark")):11==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory11checkmark")): 12==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory12checkmark")):13==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory13checkmark")):14==m.engine.getGameAttribute("accessory")?b.showTileLayer(b.engine.getLayerByName("accessory14checkmark")):15==m.engine.getGameAttribute("accessory")&&b.showTileLayer(b.engine.getLayerByName("accessory15checkmark")))})},forwardMessage:function(a){},__class__:Kv});var Lv=function(){}; k["scripts.SplashBox"]=Lv;Lv.__name__="scripts.SplashBox";Lv.prototype={__class__:Lv};var Vl=function(){this.onComplete=new $d;var a=this;ma.call(this);$a.get_current().addChild(this);this.locked=!1;var b=m.SCALE;this.background=new ma;this.background.get_graphics().beginFill(-15592942,1);this.background.get_graphics().drawRect(0,0,this.getWidth(),this.getHeight());this.addChild(this.background);var d=2*b;this.barWidth=b*m.screenScaleX*120|0;this.barHeight=b*m.screenScaleY*8|0;var f=0*b;b*=0;var e= this.getWidth()/2-this.barWidth/2,g=this.getHeight()/2-this.barHeight/2;this.barBorder=new ma;this.barBorder.get_graphics().beginFill(-12303292,1);this.barBorder.get_graphics().drawRect(-d,-d,this.barWidth+2*d,this.barHeight+2*d);this.barBorder.set_x(e+f);this.barBorder.set_y(g+b);this.addChild(this.barBorder);this.barBackground=new ma;this.barBackground.get_graphics().beginFill(-12303292,1);this.barBackground.get_graphics().drawRect(0,0,this.barWidth,this.barHeight);this.barBackground.set_x(e+f); this.barBackground.set_y(g+b);this.barBackground.set_scaleX(1);this.addChild(this.barBackground);this.bar=new ma;this.bar.get_graphics().beginFill(-7829368,1);this.bar.get_graphics().drawRect(0,0,this.barWidth,this.barHeight);d=new ia(0,0,0,this.barHeight);this.bar.set_scrollRect(d);this.bar.set_x(e+f);this.bar.set_y(g+b);this.addChild(this.bar);R.getConfigBitmap("config/preloader-badge.png").onComplete(function(b){a.addChild(b);b.set_x(a.getWidth()-114-5);b.set_y(a.getHeight()-62-5)});""!=this.getURL()&& this.addEventListener("mouseDown",x(this,this.onMouseDown),!1,2);b=this.getLockURL();if(this.isSiteLocked()&&null!=b&&""!=b){f=!1;d=$a.get_current().get_loaderInfo().url;if(null==d)f=!0;else if(0>d.indexOf("http://")&&0>d.indexOf("https://"))f=!0;else if(0a?.5*Math.sin(3.141592653589793*a):-.5*Math.cos(1.5707963267948966*(2*a-1))+1};Nb.quadIn=function(a){return a*a};Nb.quadOut=function(a){return-a*(a-2)};Nb.quadInOut=function(a){return.5>a?2*a*a:-2*--a*a+1};Nb.quadOutIn=function(a){if(.5>a)return-.5*(a*=2)*(a-2);a=2*a-1;return.5*a*a+.5}; Nb.cubicIn=function(a){return a*a*a};Nb.cubicOut=function(a){return--a*a*a+1};Nb.cubicInOut=function(a){return 1>(a*=2)?.5*a*a*a:.5*((a-=2)*a*a+2)};Nb.cubicOutIn=function(a){a=2*a-1;return.5*(a*a*a+1)};Nb.quartIn=function(a){return(a*=a)*a};Nb.quartOut=function(a){a*=--a;return 1-a*a};Nb.quartInOut=function(a){if(1>(a*=2))return.5*(a*=a)*a;a*=a-=2;return-.5*(a*a-2)};Nb.quartOutIn=function(a){if(.5>a)return a=2*a-1,-.5*(a*=a)*a+.5;a=2*a-1;return.5*(a*=a)*a+.5};Nb.quintIn=function(a){return a*(a*=a)* a};Nb.quintOut=function(a){return--a*(a*=a)*a+1};Nb.quintInOut=function(a){return 1>(a*=2)?.5*a*(a*=a)*a:.5*(a-=2)*(a*=a)*a+1};Nb.quintOutIn=function(a){a=2*a-1;return.5*(a*(a*=a)*a+1)};Nb.expoIn=function(a){return 0==a?0:Math.exp(6.931471805599453*(a-1))};Nb.expoOut=function(a){return 1==a?1:1-Math.exp(-6.931471805599453*a)};Nb.expoInOut=function(a){return 0==a?0:1==a?1:1>(a*=2)?.5*Math.exp(6.931471805599453*(a-1)):.5*(2-Math.exp(-6.931471805599453*(a-1)))};Nb.expoOutIn=function(a){return.5>a?.5* (1-Math.exp(-13.862943611198906*a)):.5==a?.5:.5*(Math.exp(13.862943611198906*(a-1))+1)};Nb.circIn=function(a){return-1>a||1a||2a||1.5(a*=2)?-.5*(Math.sqrt(1-a*a)-1):.5*(Math.sqrt(1-(a-=2)*a)+1)};Nb.circOutIn=function(a){if(0>a)return 0;if(1a)return a=2*a-1,.5*Math.sqrt(1-a*a);a=2*a-1;return-.5*(Math.sqrt(1-a*a)-1-1)};Nb.bounceIn=function(a){a=1-a;return.36363636363636365> a?1-7.5625*a*a:.7272727272727273>a?1-(7.5625*(a-=.5454545454545454)*a+.75):.9090909090909091>a?1-(7.5625*(a-=.8181818181818182)*a+.9375):1-(7.5625*(a-=.9545454545454546)*a+.984375)};Nb.bounceOut=function(a){return.36363636363636365>a?7.5625*a*a:.7272727272727273>a?7.5625*(a-=.5454545454545454)*a+.75:.9090909090909091>a?7.5625*(a-=.8181818181818182)*a+.9375:7.5625*(a-=.9545454545454546)*a+.984375};Nb.bounceInOut=function(a){if(.5>a)return a=1-2*a,.36363636363636365>a?.5*(1-7.5625*a*a):.7272727272727273> a?.5*(1-(7.5625*(a-=.5454545454545454)*a+.75)):.9090909090909091>a?.5*(1-(7.5625*(a-=.8181818181818182)*a+.9375)):.5*(1-(7.5625*(a-=.9545454545454546)*a+.984375));a=2*a-1;return.36363636363636365>a?7.5625*a*a*.5+.5:.7272727272727273>a?.5*(7.5625*(a-=.5454545454545454)*a+.75)+.5:.9090909090909091>a?.5*(7.5625*(a-=.8181818181818182)*a+.9375)+.5:.5*(7.5625*(a-=.9545454545454546)*a+.984375)+.5};Nb.bounceOutIn=function(a){if(.5>a)return.36363636363636365>(a*=2)?3.78125*a*a:.7272727272727273>a?.5*(7.5625* (a-=.5454545454545454)*a+.75):.9090909090909091>a?.5*(7.5625*(a-=.8181818181818182)*a+.9375):.5*(7.5625*(a-=.9545454545454546)*a+.984375);a=1-(2*a-1);return.36363636363636365>a?.5-3.78125*a*a+.5:.7272727272727273>a?.5-.5*(7.5625*(a-=.5454545454545454)*a+.75)+.5:.9090909090909091>a?.5-.5*(7.5625*(a-=.8181818181818182)*a+.9375)+.5:.5-.5*(7.5625*(a-=.9545454545454546)*a+.984375)+.5};Nb.backIn=function(a){return 0==a?0:1==a?1:a*a*(2.70158*a-1.70158)};Nb.backOut=function(a){return 0==a?0:1==a?1:--a*a* (2.70158*a+1.70158)+1};Nb.backInOut=function(a){return 0==a?0:1==a?1:1>(a*=2)?.5*a*a*(3.5949095*a-2.5949095):.5*((a-=2)*a*(3.5949095*a+2.5949095)+2)};Nb.backOutIn=function(a){if(0==a)return 0;if(1==a)return 1;if(.5>a)return a=2*a-1,.5*(a*a*(2.70158*a+1.70158)+1);a=2*a-1;return.5*a*a*(2.70158*a-1.70158)+.5};Nb.elasticIn=function(a){return 0==a?0:1==a?1:-(Math.exp(6.931471805599453*--a)*Math.sin(6.283185307179586*(.001*a-7.5E-5)/3E-4))};Nb.elasticOut=function(a){return 0==a?0:1==a?1:Math.exp(-6.931471805599453* a)*Math.sin(6.283185307179586*(.001*a-7.5E-5)/3E-4)+1};Nb.elasticInOut=function(a){return 0==a?0:1==a?1:1>(a*=2)?-.5*Math.exp(6.931471805599453*--a)*Math.sin(6.283185307179586*(.001*a-7.5E-5)/3E-4):Math.exp(-6.931471805599453*--a)*Math.sin(6.283185307179586*(.001*a-7.5E-5)/3E-4)*.5+1};Nb.elasticOutIn=function(a){if(.5>a)return 0==(a*=2)?0:.5*Math.exp(-6.931471805599453*a)*Math.sin(6.283185307179586*(.001*a-7.5E-5)/3E-4)+.5;if(.5==a)return.5;if(1==a)return 1;a=2*a-1;return-(.5*Math.exp(6.931471805599453* --a)*Math.sin(6.283185307179586*(.001*a-7.5E-5)/3E-4))+.5};Nb.warpOut=function(a){return 0>=a?0:1};Nb.warpIn=function(a){return 1>a?0:1};Nb.warpInOut=function(a){return.5>a?0:1};Nb.warpOutIn=function(a){return 0>=a?0:1>a?.5:1};var jb=function(){};k["tweenxcore.FloatTools"]=jb;jb.__name__="tweenxcore.FloatTools";jb.revert=function(a){return 1-a};jb.clamp=function(a,b,d){null==d&&(d=1);null==b&&(b=0);return a<=b?b:d<=a?d:a};jb.lerp=function(a,b,d){return b*(1-a)+d*a};jb.inverseLerp=function(a,b,d){return(a- b)/(d-b)};jb.repeat=function(a,b,d){null==d&&(d=1);null==b&&(b=0);a=jb.inverseLerp(a,b,d);return a-Math.floor(a)};jb.shake=function(a,b,d){null==b&&(b=0);null==d&&(d=Math.random);return b+jb.spread(d(),a)};jb.spread=function(a,b){return jb.lerp(a,-b,b)};jb.sinByRate=function(a){return Math.sin(2*a*Math.PI)};jb.cosByRate=function(a){return Math.cos(2*a*Math.PI)};jb.yoyo=function(a,b){return b(2*(.5>a?a:1-a))};jb.zigzag=function(a,b){return.5>a?b(2*a):1-b(2*(a-.5))};jb.mixEasing=function(a,b,d,f){null== f&&(f=.5);return jb.lerp(f,b(a),d(a))};jb.crossfadeEasing=function(a,b,d,f,e,g){null==g&&(g=1);null==e&&(e=0);return jb.lerp(jb.lerp(f(a),e,g),b(a),d(a))};jb.connectEasing=function(a,b,d,f,e){null==e&&(e=.5);null==f&&(f=.5);return ab.length)throw new F("points length must be more than 2");var c=b.length-1;a*=c;c=Math.floor(jb.clamp(a,0,c-1));return jb.lerp(a-c,b[c],b[c+1])};jb.bezier2=function(a,b,d,f){return jb.lerp(a,jb.lerp(a,b,d),jb.lerp(a,d,f))};jb.bezier3=function(a,b,d,f,e){return jb.bezier2(a,jb.lerp(a,b,d),jb.lerp(a,d,f),jb.lerp(a,f,e))};jb.bezier=function(a,b){if(2>b.length)throw new F("points length must be more than 2"); return 2==b.length?jb.lerp(a,b[0],b[1]):3==b.length?jb.bezier2(a,b[0],b[1],b[2]):jb._bezier(a,b)};jb._bezier=function(a,b){if(4==b.length)return jb.bezier3(a,b[0],b[1],b[2],b[3]);for(var c=[],f=0,e=b.length-1;fb.length)throw new F("points length must be more than 2");if(2==b.length)return jb.lerp(a,b[0],b[1]);var c=b.length-2;a*=c;c=Math.floor(jb.clamp(a,0,c-1));a-=c;var f=b[c],e=b[c+ 1];return a*a*(f/2-e+b[c+2]/2)+a*(-f+e)+f/2+e/2};jb.frameToSecond=function(a,b){return a/b};jb.secondToFrame=function(a,b){return a*b};jb.degreeToRate=function(a){return a/360};jb.rateToDegree=function(a){return 360*a};jb.radianToRate=function(a){return a/(2*Math.PI)};jb.rateToRadian=function(a){return 2*a*Math.PI};jb.millisecondToBeat=function(a,b){return a*b/6E4};jb.beatToMillisecond=function(a,b){return 6E4*a/b};var Ul=function(){};k["tweenxcore.PointTools"]=Ul;Ul.__name__="tweenxcore.PointTools"; Ul.polyline=function(a,b,d){var c=[],e=[];for(d=W(d);d.hasNext();){var g=d.next();c.push(g.x);e.push(g.y)}a.x=jb.polyline(b,c);a.y=jb.polyline(b,e)};Ul.bezier2=function(a,b,d,f,e){a.x=jb.bezier2(b,d.x,f.x,d.x);a.y=jb.bezier2(b,d.y,f.y,d.y)};Ul.bezier3=function(a,b,d,f,e,g){a.x=jb.bezier3(b,d.x,f.x,e.x,d.x);a.y=jb.bezier3(b,d.y,f.y,e.y,d.y)};Ul.bezier=function(a,b,d){var c=[],e=[];for(d=W(d);d.hasNext();){var g=d.next();c.push(g.x);e.push(g.y)}a.x=jb.bezier(b,c);a.y=jb.bezier(b,e)};Ul.uniformQuadraticBSpline= function(a,b,d){var c=[],e=[];for(d=W(d);d.hasNext();){var g=d.next();c.push(g.x);e.push(g.y)}a.x=jb.uniformQuadraticBSpline(b,c);a.y=jb.uniformQuadraticBSpline(b,e)};var Ww=function(){};k["tweenxcore.MatrixTools"]=Ww;Ww.__name__="tweenxcore.MatrixTools";Ww.createSimilarityTransform=function(a,b,d,f,e){f-=b;var c=e-d;e=Math.atan2(c,f);f=Math.sqrt(f*f+c*c);a.a=f*Math.cos(e);a.b=f*Math.sin(e);a.c=-f*Math.sin(e);a.d=f*Math.cos(e);a.tx=b;a.ty=d};K.$haxeUID|=0;k.Math=Math;ib.count=0;null==String.fromCodePoint&& (String.fromCodePoint=function(a){return 65536>a?String.fromCharCode(a):String.fromCharCode((a>>10)+55232)+String.fromCharCode((a&1023)+56320)});String.prototype.__class__=k.String=String;String.__name__="String";k.Array=Array;Array.__name__="Array";Date.prototype.__class__=k.Date=Date;Date.__name__="Date";var Ci={},ix={},Rv=Number,Sv=Boolean,Uv={},Yw={},v={};ai.content=[{name:"config_game_config_json",data:"ewoJImFudGlhbGlhcyI6IHRydWUsCgkiYnVpbGRDb25maWciOiB7ImRlYnVnIjp0cnVlLCJleHRyYSI6W10sInBsYXRmb3JtIjoiaHRtbDUifSwKCSJkZWJ1Z0RyYXciOiBmYWxzZSwKCSJkaXNwb3NlSW1hZ2VzIjogZmFsc2UsCgkiZm9yY2VIaVJlc0Fzc2V0cyI6IHRydWUsCgkiaW5pdFNjZW5lSUQiOiAwLAoJImtleXMiOiB7CgkJInVwIjogWyJVUCJdLAoJCSJkb3duIjogWyJET1dOIl0sCgkJImxlZnQiOiBbIkxFRlQiXSwKCQkicmlnaHQiOiBbIlJJR0hUIl0sCgkJImFjdGlvbjEiOiBbIloiXSwKCQkiYWN0aW9uMiI6IFsiWCJdLAoJCSJlbnRlciI6IFsiRU5URVIiXQoJCQoJfSwKCSJwaXhlbHNuYXAiOiBmYWxzZSwKCSJwaHlzaWNzTW9kZSI6ICJOT1JNQUxfUEhZU0lDUyIsCgkicmVsZWFzZU1vZGUiOiB0cnVlLAoJInNob3dDb25zb2xlIjogZmFsc2UsCgkic3RhZ2VXaWR0aCI6IDQ0OCwKCSJzdGFnZUhlaWdodCI6IDczNiwKCSJ0b29sc2V0SW50ZXJmYWNlSG9zdCI6ICJsb2NhbGhvc3QiLAoJInRvb2xzZXRJbnRlcmZhY2VQb3J0IjogLTEsCgkidXNlR2NpTG9nZ2luZyI6IGZhbHNlLAoJCgkiY29uZmlnLW1vYmlsZSI6IHsKCQkiYWRQb3NpdGlvbkJvdHRvbSI6IHRydWUsCgkJImF1dG9yb3RhdGUiOiBmYWxzZSwKCQkiZ2FtZVNjYWxlIjogMSwKCQkibGFuZHNjYXBlIjogZmFsc2UsCgkJInRlc3RBZHMiOiBmYWxzZSwKCQkidG9vbHNldEludGVyZmFjZUhvc3QiOiAiMTkyLjE2OC40My4xNjciLAoKCQkiY29uZmlnLWFuZHJvaWQiOiB7CgkJCSJkaXNhYmxlQmFja0J1dHRvbiI6IGZhbHNlLAoJCQkic2NhbGVNb2RlIjogIk5PX1NDQUxJTkciLAoJCQkic2NhbGVzIjogWyIxeCIsIjEuNXgiLCIyeCIsIjN4IiwiNHgiXQoJCX0sCgkJCgkJImNvbmZpZy1pb3MiOiB7CgkJCSJzY2FsZU1vZGUiOiAiTk9fU0NBTElORyIsCgkJCSJzY2FsZXMiOiBbIjF4IiwiMS41eCIsIjJ4IiwiM3giLCI0eCJdCgkJfQoJfSwKCQoJImNvbmZpZy1kZXNrdG9wIjogewoJCSJnYW1lU2NhbGUiOiAxLjAsCgkJInNjYWxlTW9kZSI6ICJOT19TQ0FMSU5HIiwKCQkic2NhbGVzIjogWyIxeCIsIjEuNXgiLCIyeCIsIjN4IiwiNHgiXSwKCQkic3RhcnRJbkZ1bGxTY3JlZW4iOiBmYWxzZQoJfSwKCQoJImNvbmZpZy13ZWIiOiB7CgkJImdhbWVTY2FsZSI6IDEuMCwKCQkic3RhcnRJbkZ1bGxTY3JlZW4iOiBmYWxzZSwKCQkic2NhbGVzIjogWyIxeCIsIjEuNXgiLCIyeCIsIjN4IiwiNHgiXSwKCgkJImNvbmZpZy1mbGFzaCI6IHsKCQkJInNjYWxlTW9kZSI6ICJOT19TQ0FMSU5HIgoJCX0sCgkJCgkJImNvbmZpZy1odG1sNSI6IHsKCQkJInRvb2xzZXRJbnRlcmZhY2VIb3N0IjogIjE5Mi4xNjguNDMuMTY3IgoJCX0KCX0KfQ"}, {name:"config_preloader_badge_txt",data:"aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQUhJQUFBQStDQU1BQUFEQW1iOVlBQUFDUFZCTVZFVUFBQUFBQUFBQUFBQUFBQUFBQUFBQQpBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFDZXRjNEFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBCkFBQUFBQUFBQUFBQUFBQUFBQUNkdE0yYXNja0FBQUFBQUFDWnI4Z0FBQUFBQUFBQUFBQUFBQUFBQUFDY3M4eVFwYnVQbzdxY3M4eWQKdE0wQUFBQ1BqNDk3ZTN1Zm41K29xS2gwZEhTSGg0ZVhsNWVibTV2QndjSFkyTmlucDZkMWRYV3dzTERWMWRXWW1KamQzZDI0dUxqNworL3YzOS9maDRlSGs1T1NrcEtURnhjVjVlWG1MaTR2YTJ0ckF3TURYMTlmWjJkbTh2THpVMU5UNStmbUZoWVd2cjYvUjBkR2hvYUhnCjRPQ2pvNlBEdzhOOWZYM2MzTnplM3Q2eXNyS0lpSWpKeWNtYW1wcXFxcXFCZ1lHSmlZbTN0N2ZsNWVYUTBOQ2xwYVdPam82MnRyYjYKK3ZwK2ZuNkdob2JmMzkvcDZlbDhmSHkwdExSMmRuYTV1Ym52NysvcjYrdnQ3ZTJTa3BLc3JLeXhzYkY0ZUhpOXZiMlJrWkhHeHNhcgpxNnZXMXRhTmpZM0l5TWltcHFhQ2dvTE96czdTMHRMMjl2YTF0YlhFeE1TY25KejA5UFRQejgrZG5aMmlvcUtLaW9xQWdJQ1ptWm5pCjR1TG01dWJIeDhmTHk4dk56YzIrdnI1M2QzZWVucDZUazVQVDA5UG41K2ZxNnVyeDhmR1ZsWlh6OC9PRGc0UHM3T3o0K1BqbzZPancKOFBEZTRlUHU3dTZ5dzlUZTRPUHk4dktNakl5dXJxNzE5ZlY2ZW5xRWhJUy92Ny9Nek15N3U3dVVsSlNXbHBhdHJhMnBxYW02dXJxZQp0YzUvZjMrMng5cVFrSkRxNy9YLy8vLzIrUHFnb0tEajQrUDgvUHo5L2YzS3lzcisvdjdiMjl2Q3dzTFJjbEZYQUFBQUxYUlNUbE1CCkF3WUtGUThjSkNzQ0FBVUVBQWtJQ3c0VERCUVhFUWNRRFJzU0lNcUJKeWxqSGlJakdScm5oNHpxNkNyc1czaXlBQUFIUTBsRVFWUjQKWHJ6UXVRNkRNQXlBWVdJbWNKb0RLdG9PVk9yTXl5ZWN2Wit0eHFIcTNDSDVoeXlPOU1uT2RxRXNRUXlWWmJaNUJTVWlWbENzTXNtZwprQklSb29Vb3BXQjBJd204dEM1eTdZVlFKbG5FY3o5T2tSdjdNN0pKSkluUXpWUDA1ZzdJREtRRTVaNEpjZ29ra1h4V2JkS1FSdk5wCjF5VnptNGEwT2NoQUhzelIzUlBranVZUVNOUjFrNFpzYW8wcktWQ2RLbmRMa0t0T0NzVktncko3SnQ5K29IZndqeC9nbHcwWWFMVDQKSy8xNWZTZi9rM3VySUpBZjFzYWdOV29nRE1OcTI1OHp6bVNHWkIzQ1pLcG80OEt3UzcwRkphNFNiQThiaFlKUTl0SkRQSHBzbGtMcwpaYUgzZlUvZjMzT0dpSWU0c0lidEE4bjN3QXZ6SEowY2J6UFBFbWl6TXlETy9nTDZJd0ozbVVRY0xvbTI2SmVSYkk5UGpnYkpxL0RtClV1NU14amhyZ2F0TXBwbFlFaDRqV1hrRVM2bGlHcm9sS2NWbUk1Q0NObHJLdUtxbWlPZWd0SVdwUUFEbVNNbVAxUmgySklrWm5HSU8Kdlltbk1ZeEdiRUNhelFzVVZRV2hVK1BIcVU4eUZDMWdCTXdoU2VjaGxVREFRYmhjQVNTVmN5QUV0SE5LS2IyQXdOcUJDR0hwdnhIcwpTREphQThJZmd6d0J3U2RET0VtU1MrY01zTHFFVk83UmtwMkg4WTVqNWM4RWl4eituNWZnTTVTci9MN3JGc0N2VHFMc3VyQ1U1K0RCCnVyMjgvUEQ2eGZ0ZUIwbnJ3Y3orWkxWbDdGYkpDZU0xQjFlOG5rbW9XMnRyU0dzbmVHc3QrQVhERC9CZ2RpK256NlBvVTYvRDVLR00KVDk3OFEzTjkzZHdjVGtpKzZuV1FmQmpRbEY4aVZqOGN6bmxJOXJvbitlMU5GSDBlbGZ4NE56TFpETGhuVWZSOTNmdy85YnV2TzRlTAprT3gxKzV0MGN1MUpZd25qK0xsK0hGWWVMN0F1bUhBclhnamVRYXR5Vm11c0s3cUxWcXUyWHFKTnJSZXExWmJkVWdJaG9TZjBYQy9FCkY1S2NySi90L0dlbVZBclc4NksvaE16L2VYYUczK3hNOW5ObGxuTXlNdWFjZmVyUGVqZTI1b2dxN2cxM3NvaTJwY3hPT3BObnFTd28KTHJuZDA5bDB4NHJ6ejVlR1dGVlNqS3paSmJWdnJQenRLdlU1SjkyOW9wL3VkTHFYd2d0RXc2SytSVmw2SkJHanZINUdOUjdtczFuWAo1U0xQaHhFSWNwZEVneU9WbXdaNHRUdzRSNEt1VGdTM2FJOGdIdmlsTHlsTDRCR0JWZngycCt1VXBaMEZoRExyanlxWWRVQzBjRTZDCnVYQ0pFYVJQckorRWlONWxlUHNDOVlDdkRHV0owNkMwTEd2K0hWSHJRUHI1eFhKR3I5b0pvbnV4cXM5dnpXOUR1S1pXKzJVaVI4cXkKbmhFSWJmM2JLU0c4c0VEOGlPMHQ2YW8rSFg0N3hKL3ZXMERGaEhFOXpwUVdwMWw1U2tSQmpMcUd3bmdQUWM0Q00wU0xRUmJZa1QwWApTdWtsNnZ0TTdVK3RkYnhGYUZPdGoxeWpPbUNoR3lGcGViK29MQlFLN0MvMk1ISTA5cEdZQ0g2OHdpQnZlYWVJQW9WQ093VDlLRVhhCktRVFp1VWQ5aFJxNUtHNG5oakNCbTNBVllsQytFRThhbExxdVIwTFlkWDlWNStTWlVrTllsMm54dnVnZEUxM3FPa1RTSnE5L2crdVYKcnE5Z0dOTnZHRU85cE9zeDdOQ2o2elpUNnB4R0pkZ2lVTm1LZjZhY0paS2ppWEZ3RDYrVHlETmxaWWdMMXVINlJkZmQyT2x1bmJMMwpuT2k5cnJOejdiaExXUVJtUUNaUTdrUE9RUGtranpCSjlTUXlSYWFjTHpLQzdDMkxmZ2NhdnVJTnFYYTJCejR2VXl5R29Sd1VEeHFVCktVWnV4eE1pY0oxS3Baa3lneDZVcTIzUDJnV2VqVnhxQW9ZNG44NlVmY0VveEtQaFZCMGQ2R3lvRXBFYlJTOVRpbjZUVXVEeUVGeDEKU3R4TWVTQjFRNE55YlNoNGlhRzdYcG5HTGh4WXR6aDlwekpYSTdPTVRjZHo2aUh1TW9NNktCUE41dXBnU2k5UCsweVp5M1ZoYU5QcQpwL3dNM1J6UjR6eXlpeWxGdTBGcGZHSUZ5cGloNGkwVFBwUmVyUDBRTm03Z1NwNUcyTUVhaG8wWmxEVHEyRHdueGg3TFBWQmVpWGF6CjBnN3NwekhsQTlFMnF0LzVHalZ2VENJY25tcUdZVmF2ZDI1VGRzZ1k1Um5iTk5YZE5aOEJ6QWtDa3ZkdXBXbWFlMFRScTVaUkdQcFIKNFhCSWRyUUd6UGx4bmdKYm5tMzZJMitheDFER1RBWlhtajduU29KQWVmbjRJVkhRWkZ3VHVPS1JLMDFPczNLWUJMUmNSV1ZQOGV6QQpvc2RVbzFJVlNydE9tVkZOK3pYVkdPTWVGWEk2L1IrbHBtbXV2eHhIWmFseStaTmZZN3p4VEpYTFJ6Tkk2YjYycUNSSjIwOWF1dk9hCmRpR0hvakdOc1U5U3FJK25lS1Uxc1lBTGVSQjR3K3NJenVwMW1zZWVxYkljMERoTlN1RHZqU2d1RllHVHRwV0lMZFpsdklxaWhFOTQKdGlOS2oraFdJNG95eEZQdmdYY29QRGdlOW11Q0ZpSjVSTVQwcGhMeDNxck1meFYrTDhLdnM3VXlTZXdMYWFKUitmV29WUkV5WTR0RQpxMmZOeXYrS001dlZoSUVvakZZemsyalR6ay9pUkUwQ0NmRmZCTW1tajlFWHNCQ2tMMUFLOWdtNnFsdlhvbS9nSStxTWVvVVNjSk9MClozc1haM05YNS91bjNGUkY4Zk9WbjNndk9XRXAvOHgvTDR2N3luVmxMUEw4NDdQMFlwU1FKeXBVL3M2LzM4b3ZrQ2RNaEJsdDEraHMKUnhCaGRHb2E3L1lGTXZ2ZFdLZW0yaldva2NuMGdNeDBRblJRZzJ3WUtUdDJrblRXUUdHV0prNXNxd2l5b1k2ajFGTmhGdmY2RGdyOQpYcHlGeXFQbk9IcEp3RDZOaUJvTVF4dUZjRGhRSktLK1RzQVF1cG1RbmNCckVTUmFYdENSZ2tIb05rNXVDYjhyS1JLeTZ3dUxHK01UCmpCWnV2YzBaczVCZ2pMZnJMb3dXRDVobVlJQ3FvWElib0I0d3N4MEJ1ZlFIa1ZubkhHOEFBQUFBU1VWT1JLNUNZSUk9"}, {name:"config_preloadpaths_txt",data:"YXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS0xLTAucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtMy0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTUtMC5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS03LTAucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtOS0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTExLTAucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9iYWNrZ3JvdW5kLTEzLTAucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9iYWNrZ3JvdW5kLTE0LTAucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtMjAtMC5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS0yMi0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTI0LTAucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtMjYtMC5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS0zMi0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTM0LTAucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtMzYtMC5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS0zOC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTQwLTAucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNDItMC5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS00NC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTQ2LTAucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNDgtMC5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS01MC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTUyLTAucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNTQtMC5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS01Ni0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTU4LTAucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNjAtMC5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS02Mi0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTY0LTAucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNjYtMC5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS02OC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTcwLTAucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzItMC5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS03NC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTc2LTAucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzgtMC5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS04MC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTgyLTAucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtODQtMC5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS04Ni0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTg4LTAucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtOTAtMC5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS05Mi0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTk0LTAucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtOTYtMC5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS05OC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTEwMC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTEwMi0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTEwNC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTEwNi0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTEwOC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTExMC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTExMi0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTExNC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTExNi0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTExOC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTEyMC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTEyMi0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTEyNC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTEyNi0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTEyOC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTEzMC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTEzMi0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTEzNC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTEzNi0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTEzOC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTE0MC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTE0Mi0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTE0NC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTE0Ni0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTE0OC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTE1MC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTE1Mi0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTE1NC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTE1Ni0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTE1OC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTE2MC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTE2Mi0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTE2NC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTE2Ni0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTE2OC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTE3MC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTE3Mi0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTE3NC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTE3Ni0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTE3OC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTE4MC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTE4Mi0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTE4NC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTE4Ni0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTE4OC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTE5MC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTE5Mi0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTE5NC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTE5Ni0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTE5OC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTIwMC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTIwMi0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTIwNC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTIwNi0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTIwOC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTIxMC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTIxMi0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTIxNC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTIxNi0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTIxOC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTIyMC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTIyMi0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTIyNC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTIyNi0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTIyOC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTIzMC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTIzMi0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTIzNC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTIzNi0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTIzOC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTI0MC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTI0Mi0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTI0NC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTI0Ni0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTI0OC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTI1MC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTI1Mi0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTI1NC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTI1Ni0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTI1OC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTI2MC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTI2Mi0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTI2NC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTI2Ni0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTI2OC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTI3MC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTI3Mi0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTI3NC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTI3Ni0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTI3OC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTI4MC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTI4Mi0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTI4NC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTI4Ni0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTI4OC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTI5MC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTI5Mi0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTI5NC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTI5Ni0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTI5OC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTMwMC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTMwMi0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTMwNC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTMwNi0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTMwOC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTMxMC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTMxMi0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTMxNC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTMxNi0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTMxOC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTMyMC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTMyNC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTMyNi0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTMyOC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTMzMC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTMzMi0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTMzNC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTMzNi0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTMzOC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTM0MC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTM0Mi0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTM0NC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTM0Ni0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTM0OC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTM1MC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTM1Mi0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTM1NC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTM1Ni0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTM1OC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTM2MC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTM2Mi0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTM2NC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTM2Ni0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTM2OC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTM3MC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTM3Mi0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTM3NC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTM3Ni0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTM3OC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTM4MC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTM4Mi0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTM4NC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTM4Ni0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTM4OC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTM5MC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTM5Mi0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTM5NC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTM5Ni0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTM5OC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTQwMC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTQwMi0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTQwNC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTQwNi0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTQwOC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTQxMi0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTQxNC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTQxNi0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTQxOC0wLnBuZwphc3NldHMvc2Z4L3NvdW5kLTQxOS5vZ2cKYXNzZXRzL3NmeC9zb3VuZC00MjAub2dnCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNDIyLTAucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNDI0LTAucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNDI2LTAucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNDI4LTAucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNDMwLTAucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNDMyLTAucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNDM0LTAucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNDM2LTAucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNDM4LTAucG5nCg"}]; Object.defineProperty(F.prototype,"message",{get:function(){return String(this.val)}});S.__toStr={}.toString;null==ArrayBuffer.prototype.slice&&(ArrayBuffer.prototype.slice=Yv.sliceImpl);var lx=new Uint32Array(256);J.__alpha16=lx;for(var dx=0;256>dx;){var ex=dx++;J.__alpha16[ex]=Math.ceil(257.00392156862745*ex)}var mx=new Uint8Array(511);J.__clamp=mx;for(var fx=0;255>fx;){var gx=fx++;J.__clamp[gx]=gx}for(var hx=255;511>hx;){var nx=hx++;J.__clamp[nx]=255}yh.available=!1;yh.enabled=!1;Qa.level=0;"undefined"== typeof console&&(console={});null==console.log&&(console.log=function(){});C.hitTestCanvas="undefined"!=typeof window?window.document.createElement("canvas"):null;C.hitTestContext="undefined"!=typeof window?C.hitTestCanvas.getContext("2d"):null;Ie.maxTouchPoints=2;Ie.supportedGestures=null;Ie.supportsGestureEvents=!1;Ie.inputMode=2;bb.reloadListeners=[];ba.TOUCH_POINT=1;ba.GESTURE=2;ba.GESTURE_CAPTURE=3;ba.PAN_X=1;ba.PAN_Y=2;ba.PAN_XY=3;ba.READY=0;ba.BEGIN=1;ba.TWO_FINGER_MOVE=2;ba.MOVE=4;ba.R2D= 180/Math.PI;ba.SWIPE_SCROLL_TIME=2;ba.SWIPE_SAMPLE_TIME=.2;ba.VELOCITY_RATIO=.25;ba.touchEvents="touchBegin touchEnd touchMove touchOver touchOut touchRollOver touchRollOut touchTap".split(" ");ba.mouseEvents="mouseDown mouseUp mouseMove mouseOver mouseOut rollOver rollOut click".split(" ");ba.geTouchEvents=["touchBegin","touchEnd","touchMove","touchOut"];ba.geMouseEvents=["mouseDown","mouseUp","mouseMove","mouseOut"];ba.initialized=!1;ba.moveToleSqr=1;ba.MAP="mouseDown rox_touch_begin mouseUp rox_touch_end mouseMove rox_touch_move mouseOver rox_touch_over mouseOut rox_touch_out rollOver rox_touch_roll_over rollOut rox_touch_roll_in click rox_touch_tap touchBegin rox_touch_begin touchEnd rox_touch_end touchMove rox_touch_move touchOver rox_touch_over touchOut rox_touch_out touchRollOver rox_touch_roll_over touchRollOut rox_touch_roll_in touchTap rox_touch_tap".split(" "); ba.typeMap=function(a){a=new sa;for(var b=0,d=ba.MAP.length>>1;b46100001000010010010000000?56111000001001100000000100000000@66011100100010101110101010011100000000A56011001001010010111101001000000B56111001001011100100101110000000C56011001001010000100100110000000D56111001001010010100101110000000E56111101000011000100001111000000F56111101000010000110001000000000G56011001000010110100100111000000H56100101001011110100101001000000I26101010101000J56000100001000010100100110000000K56100101001010010111001001000000L46100010001000100011100000M66100010100010110110101010100010000000N56100101001011010101101001000000O56011001001010010100100110000000P56111001001010010111001000000000Q56011001001010010100100110000010R56111001001010010111001001000000S56011101000001100000101110000000T46111001000100010001000000U56100101001010010100100110000000V56100101001010010101000100000000W66100010100010101010110110100010000000X56100101001001100100101001000000Y56100101001010010011100001001100Z56111100001001100100001111000000[36110100100100110000}46110001000010010011000000]36110010010010110000^46010010100000000000000000_46000000000000000011110000'26101000000000a56000000111010010100100111000000b56100001110010010100101110000000c46000001101000100001100000d56000100111010010100100111000000e56000000110010110110000110000000f46011010001000110010000000g5700000011001001010010011100001001100h56100001110010010100101001000000i26100010101000j37010000010010010010100k56100001001010010111001001000000l26101010101000m66000000111100101010101010101010000000n56000001110010010100101001000000o56000000110010010100100110000000p5700000111001001010010111001000010000q5700000011101001010010011100001000010r46000010101100100010000000s56000000111011000001101110000000t46100011001000100001100000u56000001001010010100100111000000v56000001001010010101000100000000w66000000101010101010101010011110000000x56000001001010010011001001000000y5700000100101001010010011100001001100z56000001111000100010001111000000{46011001001000010001100000|26101010101000}46110001000010010011000000~56010101010000000000000000000000\\46111010101010101011100000"; Xp.LEFT=1;Xp.RIGHT=2;Xp.CENTER=3;yd.CONTEXT_LOST="glcontextlost";yd.CONTEXT_RESTORED="glcontextrestored";yd.vertexShader="\n#ifdef GL_ES\n\tprecision mediump float;\n#endif\n\nattribute vec4 aVertex;\n\nattribute vec2 aTexCoord;\nvarying vec2 vTexCoord;\n\nvoid main() {\n\tvTexCoord = aTexCoord;\n\tgl_Position = vec4(aVertex.x, aVertex.y, 0.0, 1.0);\n}";vb.IN="in";vb.OUT="out";vb.THROUGH="through";kf.SLIDE_UP="up";kf.SLIDE_DOWN="down";kf.SLIDE_LEFT="left";kf.SLIDE_RIGHT="right";L.BOOLEAN=new kg("boolean", 1);L.INTEGER=new kg("integer",4);L.FLOAT=new kg("float",4);L.STRING=new kg("string",4);L.LIST=new kg("list",4);L.DYNAMIC=new kg("dynamic",8);Fi.basicTypes=function(a){a=[];a.push(L.BOOLEAN);a.push(L.INTEGER);a.push(L.FLOAT);a.push(L.STRING);a.push(L.LIST);a.push(L.DYNAMIC);Fc.initializeType();Zc.initializeType();ld.initializeType();a.push(Fc.MBS_HEADER);a.push(Zc.MBS_TYPE_INFO);a.push(ld.MBS_FIELD_INFO);return a}(this);yb.GROUP_OFFSET=1E6;yb.manifold=new Ck;lb.INHERIT_ID=-1E3;lb.REGION_ID=-2;lb.PLAYER_ID= 0;lb.TERRAIN_ID=1;lb.DOODAD_ID=2;lb.ACTOR_ID=3;Ma.fixedCenter=0;Ma.showWherePressed=1;Ma.viewOffsetX=0;Ma.viewOffsetY=0;Ma.initialized=!1;th.NORMAL_PHYSICS=0;th.SIMPLE_PHYSICS=1;th.MINIMAL_PHYSICS=2;xd.UNSET_ID=-1;Om.MAX_VERTICES=200;cc.muted=!1;cc.masterVolume=1;rh.UNSET_ID=-1;He.allAnimations=[];Dc.recycledCollisions=[];Dc.collisionResponses=new Xa;fe.freedCollisionPoints=[];ig.WHITE=-1;ig.TRANSPARENT=-2;Zf.infoArray=[];df.NO_AUTOTILE_DATA=0;df.CORNER_TL=1;df.CORNER_TR=2;df.CORNER_BR=4;df.CORNER_BL= 8;df.SIDE_L=16;df.SIDE_T=32;df.SIDE_R=64;df.SIDE_B=128;Yc.dummyRect=new ia;De.TILESET_CACHE_MULTIPLIER=1E6;De.cacheSource=new Xa;De.autotileFlagPointMap=function(a){a=new Xa;var b=df.CORNER_TL,d=new qa(-1,-1);a.h[b]=d;b=df.CORNER_TR;d=new qa(1,-1);a.h[b]=d;b=df.CORNER_BL;d=new qa(-1,1);a.h[b]=d;b=df.CORNER_BR;d=new qa(1,1);a.h[b]=d;b=df.SIDE_T;d=new qa(0,-1);a.h[b]=d;b=df.SIDE_B;d=new qa(0,1);a.h[b]=d;b=df.SIDE_L;d=new qa(-1,0);a.h[b]=d;b=df.SIDE_R;d=new qa(1,0);a.h[b]=d;return a}(this);Pf.temp=new ia; $c.BLACK=-16777216;$c.WHITE=-1;$c.RED=-65536;$c.GREEN=-16711936;$c.BLUE=-16776961;$c.CYAN=-16711681;$c.MAGENTA=-65281;$c.YELLOW=-256;Na.LUMA_R=.212671;Na.LUMA_G=.71516;Na.LUMA_B=.072169;Na.LUMA_R2=.3086;Na.LUMA_G2=.6094;Na.LUMA_B2=.082;Na.INV3=.3333333333333333;Yd.BLACK=0;Yd.WHITE=16777215;Yd.RED=16711680;Yd.GREEN=65280;Yd.BLUE=255;Yd.CYAN=65535;Yd.MAGENTA=16711935;Yd.YELLOW=16776960;Rf.__meta__={fields:{clone:{SuppressWarnings:["checkstyle:FieldDocComment"]}}};$h.__identity=new $h;Ha.__meta__={fields:{equals:{SuppressWarnings:["checkstyle:FieldDocComment"]}, to3DString:{SuppressWarnings:["checkstyle:FieldDocComment"]},toMozString:{SuppressWarnings:["checkstyle:FieldDocComment"]}}};Ha.__identity=new Ha;Ha.__pool=new Ia(function(){return new Ha},function(a){a.identity()});Ha.__matrix3=new $h;Sb.__pool=new Ia(function(){return new Sb},function(a){a.__identity()});R.INTEGER_MAX=1E8;R.NUMBER_MAX_VALUE=1.79769313486231E308;R.blackColor=-16777216;R.rate=1;R.camera=new qa;R.cloner=new Rp;R._bitmap=new sa;R._seed=0;R._volume=1;R._pan=0;R._soundTransform=new Rf; R.DEG=57.29577951308402;R.RAD=.01745329251994278;R.point=new qa;R.point2=new qa;R.zero=new qa;R.rect=new ia;R.matrix=new Ha;R.sprite=new ma;R.collision=new Dc;hb.linear=new on;hb.sineIn=new Bn;hb.sineOut=new Dn;hb.sineInOut=new Cn;hb.sineOutIn=new En;hb.quadIn=new pn;hb.quadOut=new rn;hb.quadInOut=new qn;hb.quadOutIn=new sn;hb.cubicIn=new bn;hb.cubicOut=new dn;hb.cubicInOut=new cn;hb.cubicOutIn=new en;hb.quartIn=new tn;hb.quartOut=new vn;hb.quartInOut=new un;hb.quartOutIn=new wn;hb.quintIn=new xn; hb.quintOut=new zn;hb.quintInOut=new yn;hb.quintOutIn=new An;hb.expoIn=new kn;hb.expoOut=new mn;hb.expoInOut=new ln;hb.expoOutIn=new nn;hb.circIn=new Ym;hb.circOut=new $m;hb.circInOut=new Zm;hb.circOutIn=new an;hb.bounceIn=new Um;hb.bounceOut=new Wm;hb.bounceInOut=new Vm;hb.bounceOutIn=new Xm;hb.backIn=new Qm;hb.backOut=new Sm;hb.backInOut=new Rm;hb.backOutIn=new Tm;hb.elasticIn=new fn;hb.elasticOut=new hn;hb.elasticInOut=new gn;hb.elasticOutIn=new jn;hb.warpOut=new Hn;hb.warpIn=new Fn;hb.warpInOut= new Gn;hb.warpOutIn=new In;Hi.PI=3.141592653589793;Hi.PI_H=1.5707963267948966;Hi.LN_2=.6931471805599453;Hi.LN_2_10=6.931471805599453;Hi.overshoot=1.70158;Hi.amplitude=1;Hi.period=3E-4;Cb.activeObjects=[];Cb.finishedObjects=[];Le.USE_CACHE=!1;Le.USE_ENUM_INDEX=!1;Le.BASE64="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789%:";Te.DEFAULT_RESOLVER=new Mn;Te.BASE64="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789%:";bi.CHARS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; bi.BYTES=Sa.ofString(bi.CHARS);ne.i64tmp=new Vb(0,0);ne.helper=new DataView(new ArrayBuffer(8));Lh.escapes=function(a){a=new sa;null!=v.lt?a.setReserved("lt","<"):a.h.lt="<";null!=v.gt?a.setReserved("gt",">"):a.h.gt=">";null!=v.amp?a.setReserved("amp","&"):a.h.amp="&";null!=v.quot?a.setReserved("quot",'"'):a.h.quot='"';null!=v.apos?a.setReserved("apos","'"):a.h.apos="'";return a}(this);Ue.LEN_EXTRA_BITS_TBL=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,-1,-1];Ue.LEN_BASE_VAL_TBL=[3,4, 5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258];Ue.DIST_EXTRA_BITS_TBL=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,-1,-1];Ue.DIST_BASE_VAL_TBL=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577];Ue.CODE_LENGTHS_POS=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];di.p1=0;di.readPos=0;di.tokenMin=0;di.tokenMax=0;gb.OPTION_REVOKE_URL=1;gb.activeRequests=0;gb.requestLimit=17;gb.requestQueue= new Pa;Ib.dummyCharacter="\u007f";Ib.windowID=0;ng.DICTIONARY="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");ng.EXTENDED_DICTIONARY=function(a){a=[];for(var b=0,d=ng.DICTIONARY;b","gi");rb.__regexBlockIndent=new Wa("blockindent\\s?=\\s?(\"([^\"]+)\"|'([^']+)')", "i");rb.__regexColor=new Wa("color\\s?=\\s?(\"#([^\"]+)\"|'#([^']+)')","i");rb.__regexEntities=[new Wa(""","g"),new Wa("'","g"),new Wa("&","g"),new Wa("<","g"),new Wa(">","g"),new Wa(" ","g")];rb.__regexFace=new Wa("face\\s?=\\s?(\"([^\"]+)\"|'([^']+)')","i");rb.__regexHTMLTag=new Wa("<.*?>","g");rb.__regexHref=new Wa("href\\s?=\\s?(\"([^\"]+)\"|'([^']+)')","i");rb.__regexIndent=new Wa(" indent\\s?=\\s?(\"([^\"]+)\"|'([^']+)')","i");rb.__regexLeading=new Wa("leading\\s?=\\s?(\"([^\"]+)\"|'([^']+)')", "i");rb.__regexLeftMargin=new Wa("leftmargin\\s?=\\s?(\"([^\"]+)\"|'([^']+)')","i");rb.__regexRightMargin=new Wa("rightmargin\\s?=\\s?(\"([^\"]+)\"|'([^']+)')","i");rb.__regexSize=new Wa("size\\s?=\\s?(\"([^\"]+)\"|'([^']+)')","i");rb.__regexTabStops=new Wa("tabstops\\s?=\\s?(\"([^\"]+)\"|'([^']+)')","i");Hf.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]},statics:{resolveClass:{SuppressWarnings:["checkstyle:Dynamic"]},resolveEnum:{SuppressWarnings:["checkstyle:Dynamic"]}}};Hf.instances= new sa;Do.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};Xe.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]},fields:{o:{SuppressWarnings:["checkstyle:Dynamic"]}}};Xe.empty=new Xe;ug.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]},fields:{obj:{SuppressWarnings:["checkstyle:Dynamic"]}}};uh.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};Io.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]},fields:{overrideIntValues:{SuppressWarnings:["checkstyle:Dynamic"]}}}; tw.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};Si.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};Rj.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};ff.__meta__={fields:{__type:{SuppressWarnings:["checkstyle:Dynamic"]}}};Ti.__meta__={obj:{SuppressWarnings:["checkstyle:Dynamic"]}};Sj.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};fr.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};Tj.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}, statics:{renderTileContainer:{SuppressWarnings:["checkstyle:Dynamic"]}}};uw.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};vw.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};C.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]},statics:{windingRule:{SuppressWarnings:["checkstyle:Dynamic"]},createBitmapFill:{SuppressWarnings:["checkstyle:Dynamic"]},createGradientPattern:{SuppressWarnings:["checkstyle:Dynamic"]}}};C.SIN45=.7071067811865476;C.TAN22=.41421356237309503; C.fillCommands=new Xe;C.strokeCommands=new Xe;Ui.__meta__={obj:{SuppressWarnings:["checkstyle:Dynamic"]}};fh.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};ww.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};Z.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};ki.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]},statics:{renderTileContainer:{SuppressWarnings:["checkstyle:Dynamic"]}}};gr.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}}; Ye.__meta__={fields:{glProgram:{SuppressWarnings:["checkstyle:Dynamic"]}}};gh.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};li.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};li.MAX_INDEX_BUFFER_LENGTH=65535;li.MAX_QUADS_PER_INDEX_BUFFER=10922;li.MAX_QUAD_INDEX_BUFFER_LENGTH=65532;ir.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};ra.__meta__={fields:{image:{SuppressWarnings:["checkstyle:Dynamic"]},__framebufferContext:{SuppressWarnings:["checkstyle:Dynamic"]}, __indexBufferContext:{SuppressWarnings:["checkstyle:Dynamic"]},__surface:{SuppressWarnings:["checkstyle:Dynamic"]},__textureContext:{SuppressWarnings:["checkstyle:Dynamic"]},__vertexBufferContext:{SuppressWarnings:["checkstyle:Dynamic"]},compare:{SuppressWarnings:["checkstyle:Dynamic"]},getSurface:{SuppressWarnings:["checkstyle:Dynamic"]},__fromImage:{SuppressWarnings:["checkstyle:Dynamic"]}}};ra.VERTEX_BUFFER_STRIDE=14;ra.__pool=new Eo;ra.__tempVector=new zd;Vc.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}}; Vc.blankBitmapData=new ra(1,1,!1,0);Vc.tempColorTransform=new Sb(1,1,1,1,0,0,0,0);Vi.opaqueBitmapData=new ra(1,1,!1,0);Vj.__meta__={obj:{SuppressWarnings:["checkstyle:Dynamic"]}};Db.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};Db.__alphaValue=[1];Db.__colorMultipliersValue=[0,0,0,0];Db.__colorOffsetsValue=[0,0,0,0];Db.__defaultColorMultipliersValue=[1,1,1,1];Db.__emptyColorValue=[0,0,0,0];Db.__emptyAlphaValue=[1];Db.__hasColorTransformValue=[!1];Db.__scissorRectangle=new ia;Db.__textureSizeValue= [0,0];If.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};tl.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};sl.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};na.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};Dh.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};Dh.__textureSizeValue=[0,0];Ud.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};Eh.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}}; Yi.__meta__={obj:{SuppressWarnings:["checkstyle:Dynamic"]}};ul.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};Ze.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};wc.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};wc.__regexColor=new Wa("color=(\"#([^\"]+)\"|'#([^']+)')","i");wc.__regexFace=new Wa("face=(\"([^\"]+)\"|'([^']+)')","i");wc.__regexFont=new Wa("]+)>","gi");wc.__regexCloseFont=new Wa("","gi");wc.__regexSize=new Wa("size=(\"([^\"]+)\"|'([^']+)')", "i");Wj.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};Xj.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};mi.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};Zi.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};Zi.alphaColorTransform=new Sb;Zi.bitmap=new Rc;Zi.destPoint=new qa;Zi.sourceRect=new ia;qr.__meta__={obj:{SuppressWarnings:[["checkstyle:FieldDocComment","checkstyle:Dynamic"]]}};Rb.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}, fields:{__cairoFont:{SuppressWarnings:["checkstyle:Dynamic"]}}};Rb.UTF8_TAB=9;Rb.UTF8_ENDLINE=10;Rb.UTF8_SPACE=32;Rb.UTF8_HYPHEN=45;Rb.GUTTER=2;Rb.__defaultFonts=new sa;je.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]},fields:{glyphs:{SuppressWarnings:["checkstyle:Dynamic"]},__handle:{SuppressWarnings:["checkstyle:Dynamic"]},__hbBuffer:{SuppressWarnings:["checkstyle:Dynamic"]},__hbFont:{SuppressWarnings:["checkstyle:Dynamic"]},get_glyphs:{SuppressWarnings:["checkstyle:Dynamic"]}}}; je.FT_LOAD_DEFAULT=0;je.FT_LOAD_NO_SCALE=1;je.FT_LOAD_NO_HINTING=2;je.FT_LOAD_RENDER=4;je.FT_LOAD_NO_BITMAP=8;je.FT_LOAD_VERTICAL_LAYOUT=16;je.FT_LOAD_FORCE_AUTOHINT=32;je.FT_LOAD_CROP_BITMAP=64;je.FT_LOAD_PEDANTIC=128;je.FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH=256;je.FT_LOAD_NO_RECURSE=512;je.FT_LOAD_IGNORE_TRANSFORM=1024;je.FT_LOAD_MONOCHROME=2048;je.FT_LOAD_LINEAR_DESIGN=4096;je.FT_LOAD_NO_AUTOHINT=8192;je.FT_LOAD_COLOR=16384;je.FT_LOAD_COMPUTE_METRICS=32768;je.FT_LOAD_BITMAP_METRICS_ONLY=65536;je.FT_LOAD_TARGET_NORMAL= 0;je.FT_LOAD_TARGET_LIGHT=0;Uf.INVALID=0;Uf.LEFT_TO_RIGHT=4;Uf.RIGHT_TO_LEFT=5;Uf.TOP_TO_BOTTOM=6;Uf.BOTTOM_TO_TOP=7;ya.COMMON="Zyyy";ya.INHERITED="Zinh";ya.UNKNOWN="Zzzz";ya.ARABIC="Arab";ya.ARMENIAN="Armn";ya.BENGALI="Beng";ya.CYRILLIC="Cyrl";ya.DEVANAGARI="Deva";ya.GEORGIAN="Geor";ya.GREEK="Grek";ya.GUJARATI="Gujr";ya.GURMUKHI="Guru";ya.HANGUL="Hang";ya.HAN="Hani";ya.HEBREW="Hebr";ya.HIRAGANA="Hira";ya.KANNADA="Knda";ya.KATAKANA="Kana";ya.LAO="Laoo";ya.LATIN="Latn";ya.MALAYALAM="Mlym";ya.ORIYA= "Orya";ya.TAMIL="Taml";ya.TELUGA="Telu";ya.THAI="Thai";ya.TIBETAN="Tibt";ya.BOPOMOFO="Bopo";ya.BRAILLE="Brai";ya.CANADIAN_SYLLABICS="Cans";ya.CHEROKEE="Cher";ya.ETHIOPIC="Ethi";ya.KHMER="Khmr";ya.MONGOLIAN="Mong";ya.MYANMAR="Mymr";ya.OGHAM="Ogam";ya.RUNIC="Runr";ya.SINHALA="Sinh";ya.SYRIAC="Syrc";ya.THAANA="Thaa";ya.YI="Yiii";ya.DESERET="Dsrt";ya.GOTHIC="Goth";ya.OLD_ITALIC="Ital";ya.BUHID="Buhd";ya.HANUNOO="Hano";ya.TAGALOG="Tglg";ya.TAGBANWA="Tagb";ya.CYPRIOT="Cprt";ya.LIMBU="Limb";ya.LINEAR_B= "Linb";ya.OSMANYA="Osma";ya.SHAVIAN="Shaw";ya.TAI_LE="Tale";ya.UGARITIC="Ugar";ya.BUGINESE="Bugi";ya.COPTIC="Copt";ya.GLAGOLITIC="Glag";ya.KHAROSHTHI="Khar";ya.NEW_TAI_LUE="Talu";ya.OLD_PERSIAN="Xpeo";ya.SYLOTI_NAGRI="Sylo";ya.TIFINAGH="Tfng";ya.BALINESE="Bali";ya.CUNEIFORM="Xsux";ya.NKO="Nkoo";ya.PHAGS_PA="Phag";ya.PHOENICIAN="Phnx";ya.CARIAN="Cari";ya.CHAM="Cham";ya.KAYAH_LI="Kali";ya.LEPCHA="Lepc";ya.LYCIAN="Lyci";ya.LYDIAN="Lydi";ya.OL_CHIKI="Olck";ya.REJANG="Rjng";ya.SAURASHTRA="Saur";ya.SUNDANESE= "Sund";ya.VAI="Vaii";ya.AVESTAN="Avst";ya.BAMUM="Bamu";ya.EGYPTIAN_HIEROGLYPHS="Egyp";ya.IMPERIAL_ARAMAIC="Armi";ya.INSCRIPTIONAL_PAHLAVI="Phli";ya.INSCRIPTIONAL_PARTHIAN="Prti";ya.JAVANESE="Java";ya.KAITHI="Kthi";ya.LISU="Lisu";ya.MEETEI_MAYEK="Mtei";ya.OLD_SOUTH_ARABIAN="Sarb";ya.OLD_TURKIC="Orkh";ya.SAMARITAN="Samr";ya.TAI_THAM="Lana";ya.TAI_VIET="Tavt";ya.BATAK="Batk";ya.BRAHMI="Brah";ya.MANDAIC="Mand";ya.CHAKMA="Cakm";ya.MEROITIC_CURSIVE="Merc";ya.MEROITIC_HIEROGLYPHS="Mero";ya.MIAO="Plrd";ya.SHARADA= "Shrd";ya.SORA_SOMPENG="Sora";ya.TAKRI="Takr";ya.BASSA_VAH="Bass";ya.CAUCASIAN_ALBANIAN="Aghb";ya.DUPLOYAN="Dupl";ya.ELBASAN="Elba";ya.GRANTHA="Gran";ya.KHOJKI="Khoj";ya.KHUDAWADI="Sind";ya.LINEAR_A="Lina";ya.MAHAJANI="Mahj";ya.MANICHAEAN="Mani";ya.MENDE_KIKAKUI="Mend";ya.MODI="Modi";ya.MRO="Mroo";ya.NABATAEAN="Nbat";ya.OLD_NORTH_ARABIAN="Narb";ya.OLD_PERMIC="Perm";ya.PAHAWH_HMONG="Hmng";ya.PALMYRENE="Palm";ya.PAU_CIN_HAU="Pauc";ya.PSALTER_PAHLAVI="Phlp";ya.SIDDHAM="Sidd";ya.TIRHUTA="Tirh";ya.WARANG_CITI= "Wara";Oo.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};Yj.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};Wi.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]},statics:{P:{SuppressWarnings:["checkstyle:ConstantName"]}}};Wi.P=[151,160,137,91,90,15,131,13,201,95,96,53,194,233,7,225,140,36,103,30,69,142,8,99,37,240,21,10,23,190,6,148,247,120,234,75,0,26,197,62,94,252,219,203,117,35,11,32,57,177,33,88,237,149,56,87,174,20,125,136,171,168,68,175,74,165, 71,134,139,48,27,166,77,146,158,231,83,111,229,122,60,211,133,230,220,105,92,41,55,46,245,40,244,102,143,54,65,25,63,161,1,216,80,73,209,76,132,187,208,89,18,169,200,196,135,130,116,188,159,86,164,100,109,198,173,186,3,64,52,217,226,250,124,123,5,202,38,147,118,126,255,82,85,212,207,206,59,227,47,16,58,17,182,189,28,42,223,183,170,213,119,248,152,2,44,154,163,70,221,153,101,155,167,43,172,9,129,22,39,253,19,98,108,110,79,113,224,232,178,185,112,104,218,246,97,228,251,34,242,193,238,210,144,12,191, 179,162,241,81,51,145,235,249,14,239,107,49,192,214,31,181,199,106,157,184,84,204,176,115,121,50,45,127,4,150,254,138,236,205,93,222,114,67,29,24,72,243,141,128,195,78,66,215,61,156,180,151,160,137,91,90,15,131,13,201,95,96,53,194,233,7,225,140,36,103,30,69,142,8,99,37,240,21,10,23,190,6,148,247,120,234,75,0,26,197,62,94,252,219,203,117,35,11,32,57,177,33,88,237,149,56,87,174,20,125,136,171,168,68,175,74,165,71,134,139,48,27,166,77,146,158,231,83,111,229,122,60,211,133,230,220,105,92,41,55,46,245, 40,244,102,143,54,65,25,63,161,1,216,80,73,209,76,132,187,208,89,18,169,200,196,135,130,116,188,159,86,164,100,109,198,173,186,3,64,52,217,226,250,124,123,5,202,38,147,118,126,255,82,85,212,207,206,59,227,47,16,58,17,182,189,28,42,223,183,170,213,119,248,152,2,44,154,163,70,221,153,101,155,167,43,172,9,129,22,39,253,19,98,108,110,79,113,224,232,178,185,112,104,218,246,97,228,251,34,242,193,238,210,144,12,191,179,162,241,81,51,145,235,249,14,239,107,49,192,214,31,181,199,106,157,184,84,204,176,115, 121,50,45,127,4,150,254,138,236,205,93,222,114,67,29,24,72,243,141,128,195,78,66,215,61,156,180];$i.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]},fields:{touch:{SuppressWarnings:["checkstyle:Dynamic"]}}};$i.__pool=new Ia(function(){return new $i},function(a){a.reset()});wk.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};gf.ADD=0;gf.ALPHA=1;gf.DARKEN=2;gf.DIFFERENCE=3;gf.ERASE=4;gf.HARDLIGHT=5;gf.INVERT=6;gf.LAYER=7;gf.LIGHTEN=8;gf.MULTIPLY=9;gf.NORMAL=10;gf.OVERLAY= 11;gf.SCREEN=12;gf.SHADER=13;gf.SUBTRACT=14;ji.NONE=0;ji.ROUND=1;ji.SQUARE=2;Po.__meta__={fields:{__element:{SuppressWarnings:["checkstyle:Dynamic"]},_:{SuppressWarnings:["checkstyle:Dynamic"]}}};Zj.LINEAR=0;Zj.RADIAL=1;jf.__meta__={fields:{overrideBlendMode:{SuppressWarnings:["checkstyle:FieldDocComment"]}}};ak.SIN45=.7071067811865476;ak.TAN22=.41421356237309503;Vo.EVEN_ODD=0;Vo.NON_ZERO=1;bk.LINEAR_RGB=0;bk.RGB=1;ii.BEVEL=0;ii.MITER=1;ii.ROUND=2;oi.HORIZONTAL=0;oi.NONE=1;oi.NORMAL=2;oi.VERTICAL= 3;Pk.__meta__={fields:{BitmapData_onError:{SuppressWarnings:["checkstyle:Dynamic"]}}};Eg.__meta__={statics:{create:{SuppressWarnings:["checkstyle:FieldDocComment"]}},fields:{parameters:{SuppressWarnings:["checkstyle:Dynamic"]}}};Eg.__rootURL="undefined"!=typeof window?window.document.URL:"";oe.__useParentFPS=!1;xl.ALWAYS=0;xl.AUTO=1;xl.NEVER=2;vr.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]},fields:{onComplete:{SuppressWarnings:["checkstyle:Dynamic"]}}};Xo.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}}; Jo.__meta__={fields:{index:{SuppressWarnings:["checkstyle:Dynamic"]},name:{SuppressWarnings:["checkstyle:FieldDocComment"]}}};Uj.__meta__={fields:{index:{SuppressWarnings:["checkstyle:Dynamic"]},name:{SuppressWarnings:["checkstyle:FieldDocComment"]}}};ke.BOOL=0;ke.BOOL2=1;ke.BOOL3=2;ke.BOOL4=3;ke.FLOAT=4;ke.FLOAT2=5;ke.FLOAT3=6;ke.FLOAT4=7;ke.INT=8;ke.INT2=9;ke.INT3=10;ke.INT4=11;ke.MATRIX2X2=12;ke.MATRIX2X3=13;ke.MATRIX2X4=14;ke.MATRIX3X2=15;ke.MATRIX3X3=16;ke.MATRIX3X4=17;ke.MATRIX4X2=18;ke.MATRIX4X3= 19;ke.MATRIX4X4=20;Yo.FAST=0;Yo.FULL=1;aj.PAD=0;aj.REFLECT=1;aj.REPEAT=2;dk.__meta__={fields:{__broadcastEvent:{SuppressWarnings:["checkstyle:Dynamic"]},__dispatchEvent:{SuppressWarnings:[["checkstyle:Dynamic","checkstyle:LeftCurly"]]},__dispatchStack:{SuppressWarnings:[["checkstyle:Dynamic","checkstyle:LeftCurly"]]},__dispatchTarget:{SuppressWarnings:["checkstyle:Dynamic"]},__handleError:{SuppressWarnings:["checkstyle:Dynamic"]}}};hh.BOTTOM=0;hh.BOTTOM_LEFT=1;hh.BOTTOM_RIGHT=2;hh.LEFT=3;hh.RIGHT= 4;hh.TOP=5;hh.TOP_LEFT=6;hh.TOP_RIGHT=7;yl.FULL_SCREEN=0;yl.FULL_SCREEN_INTERACTIVE=1;yl.NORMAL=2;ek.BEST=0;ek.HIGH=1;ek.LOW=2;ek.MEDIUM=3;fk.EXACT_FIT=0;fk.NO_BORDER=1;fk.NO_SCALE=2;fk.SHOW_ALL=3;Gg.__meta__={fields:{data:{SuppressWarnings:["checkstyle:Dynamic"]}}};Zo.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};zl.NEGATIVE=0;zl.NONE=1;zl.POSITIVE=2;vl.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]},fields:{_:{SuppressWarnings:["checkstyle:Dynamic"]}}};Bc.supportsVideoTexture= !0;Bc.__glDepthStencil=-1;Bc.__glMaxTextureMaxAnisotropy=-1;Bc.__glMaxViewportDims=-1;Bc.__glTextureMaxAnisotropy=-1;xg.DESTINATION_ALPHA=0;xg.DESTINATION_COLOR=1;xg.ONE=2;xg.ONE_MINUS_DESTINATION_ALPHA=3;xg.ONE_MINUS_DESTINATION_COLOR=4;xg.ONE_MINUS_SOURCE_ALPHA=5;xg.ONE_MINUS_SOURCE_COLOR=6;xg.SOURCE_ALPHA=7;xg.SOURCE_COLOR=8;xg.ZERO=9;ik.DYNAMIC_DRAW=0;ik.STATIC_DRAW=1;ih.ALWAYS=0;ih.EQUAL=1;ih.GREATER=2;ih.GREATER_EQUAL=3;ih.LESS=4;ih.LESS_EQUAL=5;ih.NEVER=6;ih.NOT_EQUAL=7;Bl.MIPLINEAR=0;Bl.MIPNEAREST= 1;Bl.MIPNONE=2;qi.BASELINE=0;qi.BASELINE_CONSTRAINED=1;qi.BASELINE_EXTENDED=2;qi.STANDARD=3;qi.STANDARD_CONSTRAINED=4;qi.STANDARD_EXTENDED=5;ap.AGAL=0;ap.GLSL=1;jk.FRAGMENT=0;jk.VERTEX=1;bp.AUTO=0;bp.SOFTWARE=1;jh.DECREMENT_SATURATE=0;jh.DECREMENT_WRAP=1;jh.INCREMENT_SATURATE=2;jh.INCREMENT_WRAP=3;jh.INVERT=4;jh.KEEP=5;jh.SET=6;jh.ZERO=7;ri.ANISOTROPIC16X=0;ri.ANISOTROPIC2X=1;ri.ANISOTROPIC4X=2;ri.ANISOTROPIC8X=3;ri.LINEAR=4;ri.NEAREST=5;Gh.BGR_PACKED=0;Gh.BGRA=1;Gh.BGRA_PACKED=2;Gh.COMPRESSED=3; Gh.COMPRESSED_ALPHA=4;Gh.RGBA_HALF_FLOAT=5;kk.BACK=0;kk.FRONT=1;kk.FRONT_AND_BACK=2;kk.NONE=3;dj.BYTES_4=0;dj.FLOAT_1=1;dj.FLOAT_2=2;dj.FLOAT_3=3;dj.FLOAT_4=4;lk.CLAMP=0;lk.CLAMP_U_REPEAT_V=1;lk.REPEAT=2;lk.REPEAT_U_CLAMP_V=3;cp.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};Cl.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};qc.__meta__={fields:{__textureContext:{SuppressWarnings:["checkstyle:Dynamic"]},__getGLFramebuffer:{SuppressWarnings:["checkstyle:Dynamic"]}}}; cj.__lowMemoryMode=!1;cd.DEFAULT_TO_STRING="Error";Lg.ACTIVITY="activity";Lg.__pool=new Ia(function(){return new Lg(null)},function(a){a.__init()});Af.LINK="link";Af.TEXT_INPUT="textInput";Af.__pool=new Ia(function(){return new Af(null)},function(a){a.__init()});$e.ERROR="error";$e.__pool=new Ia(function(){return new $e(null)},function(a){a.__init()});yk.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};xk.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};Jf.FOCUS_IN= "focusIn";Jf.FOCUS_OUT="focusOut";Jf.KEY_FOCUS_CHANGE="keyFocusChange";Jf.MOUSE_FOCUS_CHANGE="mouseFocusChange";Jf.__pool=new Ia(function(){return new Jf(null)},function(a){a.__init()});fg.FULL_SCREEN="fullScreen";fg.FULL_SCREEN_INTERACTIVE_ACCEPTED="fullScreenInteractiveAccepted";fg.__pool=new Ia(function(){return new fg(null)},function(a){a.__init()});yg.DEVICE_ADDED="deviceAdded";yg.DEVICE_REMOVED="deviceRemoved";yg.DEVICE_UNUSABLE="deviceUnusable";yg.__pool=new Ia(function(){return new yg(null)}, function(a){a.__init()});Ih.HTTP_RESPONSE_STATUS="httpResponseStatus";Ih.HTTP_STATUS="httpStatus";Ih.__pool=new Ia(function(){return new Ih(null)},function(a){a.__init()});Vf.IO_ERROR="ioError";Vf.__pool=new Ia(function(){return new Vf(null)},function(a){a.__init()});Fh.KEY_DOWN="keyDown";Fh.KEY_UP="keyUp";Fh.__pool=new Ia(function(){return new Fh(null)},function(a){a.__init()});Xb.CLICK="click";Xb.DOUBLE_CLICK="doubleClick";Xb.MIDDLE_CLICK="middleClick";Xb.MIDDLE_MOUSE_DOWN="middleMouseDown";Xb.MIDDLE_MOUSE_UP= "middleMouseUp";Xb.MOUSE_DOWN="mouseDown";Xb.MOUSE_MOVE="mouseMove";Xb.MOUSE_OUT="mouseOut";Xb.MOUSE_OVER="mouseOver";Xb.MOUSE_UP="mouseUp";Xb.MOUSE_WHEEL="mouseWheel";Xb.RELEASE_OUTSIDE="releaseOutside";Xb.RIGHT_CLICK="rightClick";Xb.RIGHT_MOUSE_DOWN="rightMouseDown";Xb.RIGHT_MOUSE_UP="rightMouseUp";Xb.ROLL_OUT="rollOut";Xb.ROLL_OVER="rollOver";Xb.__pool=new Ia(function(){return new Xb(null)},function(a){a.__init()});Kf.NET_STATUS="netStatus";Kf.__pool=new Ia(function(){return new Kf(null)},function(a){a.__init()}); wg.PROGRESS="progress";wg.SOCKET_DATA="socketData";wg.__pool=new Ia(function(){return new wg(null)},function(a){a.__init()});eg.CLEAR_DOM="clearDOM";eg.RENDER_CAIRO="renderCairo";eg.RENDER_CANVAS="renderCanvas";eg.RENDER_DOM="renderDOM";eg.RENDER_OPENGL="renderOpenGL";eg.__pool=new Ia(function(){return new eg(null)},function(a){a.__init()});si.SECURITY_ERROR="securityError";si.__pool=new Ia(function(){return new si(null)},function(a){a.__init()});Vd.__meta__={fields:{delta:{SuppressWarnings:["checkstyle:FieldDocComment"]}}}; Vd.TOUCH_BEGIN="touchBegin";Vd.TOUCH_END="touchEnd";Vd.TOUCH_MOVE="touchMove";Vd.TOUCH_OUT="touchOut";Vd.TOUCH_OVER="touchOver";Vd.TOUCH_ROLL_OUT="touchRollOut";Vd.TOUCH_ROLL_OVER="touchRollOver";Vd.TOUCH_TAP="touchTap";Vd.__pool=new Ia(function(){return new Vd(null)},function(a){a.__init()});pi.UNCAUGHT_ERROR="uncaughtError";pi.__pool=new Ia(function(){return new pi(null)},function(a){a.__init()});tg.__blurShader=new dp;Dl.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};Qf.__colorMatrixShader= new Dl;kh.__convolutionShader=new ep;rc.__displacementMapShader=new fp;rc.__matrixData=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];rc.__offset=[.5,.5,0,0];fi.__hideShader=new gp;ce.__invertAlphaShader=new mp;ce.__blurAlphaShader=new hp;ce.__combineShader=new jp;ce.__innerCombineShader=new lp;ce.__combineKnockoutShader=new ip;ce.__innerCombineKnockoutShader=new kp;pe.__meta__={statics:{create2D:{SuppressWarnings:["checkstyle:FieldDocComment"]},createABCD:{SuppressWarnings:["checkstyle:FieldDocComment"]},createOrtho:{SuppressWarnings:["checkstyle:FieldDocComment"]}}}; El.AXIS_ANGLE=0;El.EULER_ANGLES=1;El.QUATERNION=2;de.MAX_ACTIVE_CHANNELS=32;de.__soundChannels=[];de.__soundTransform=new Rf;op.VERTEX_BUFFER_STRIDE=5;Fl.__meta__={statics:{CONNECT_SUCCESS:{SuppressWarnings:["checkstyle:FieldDocComment"]}}};Fl.CONNECT_SUCCESS="NetConnection.Connect.Success";pp.__meta__={fields:{audioCodec:{SuppressWarnings:["checkstyle:FieldDocComment"]},decodedFrames:{SuppressWarnings:["checkstyle:FieldDocComment"]},speed:{SuppressWarnings:["checkstyle:FieldDocComment"]},requestVideoStatus:{SuppressWarnings:["checkstyle:FieldDocComment"]}}}; Sc.defaultObjectEncoding=10;qp.FLUSHED=0;qp.PENDING=1;Gl.BINARY=0;Gl.TEXT=1;Gl.VARIABLES=2;ti.followRedirects=!0;ti.idleTimeout=0;ti.manageCookies=!1;ck.currentDomain=new ck(null);Ic.avHardwareDisable=!0;Ic.hasAccessibility=!1;Ic.hasAudio=!0;Ic.hasAudioEncoder=!1;Ic.hasEmbeddedVideo=!1;Ic.hasIME=!1;Ic.hasMP3=!1;Ic.hasPrinting=!0;Ic.hasScreenBroadcast=!1;Ic.hasScreenPlayback=!1;Ic.hasStreamingAudio=!1;Ic.hasStreamingVideo=!1;Ic.hasTLS=!0;Ic.hasVideoEncoder=!0;Ic.isDebugger=!0;Ic.isEmbeddedInAcrobat= !1;Ic.localFileReadDisable=!0;Ic.maxLevelIDC=0;Ic.playerType="PlugIn";Ic.screenColor="color";Ic.serverString="";Ic.supports32BitProcesses=!1;Ic.supports64BitProcesses=!1;Ic.touchscreenType=0;Ic.__standardDensities=[120,160,240,320,480,640,800,960];Hl.__meta__={obj:{SuppressWarnings:["checkstyle:UnnecessaryConstructor"]}};Hl.currentDomain=new Hl;Cg.useCodePage=!1;Il.FINGER=0;Il.NONE=1;Il.STYLUS=2;rp.ADVANCED=0;rp.NORMAL=1;yc.__fontByName=new sa;yc.__registeredFonts=[];nk.BOLD=0;nk.BOLD_ITALIC=1;nk.ITALIC= 2;nk.REGULAR=3;Jl.DEVICE=0;Jl.EMBEDDED=1;Jl.EMBEDDED_CFF=2;Kl.NONE=0;Kl.PIXEL=1;Kl.SUBPIXEL=2;ge.__missingFontWarning=new sa;ok.CENTER=0;ok.LEFT=1;ok.NONE=2;ok.RIGHT=3;sp.DYNAMIC=0;sp.INPUT=1;Bg.__meta__={fields:{clone:{SuppressWarnings:["checkstyle:FieldDocComment"]}}};Ch.CENTER=0;Ch.END=1;Ch.JUSTIFY=2;Ch.LEFT=3;Ch.RIGHT=4;Ch.START=5;ec.__meta__={fields:{addEventListener:{SuppressWarnings:["checkstyle:Dynamic"]}}};ec.isSupported=!0;ec.numDevices=0;ec.__deviceList=[];ec.__instances=[];ec.__devices= new ib;tp.MAX_BUFFER_SIZE=32E3;Ba.__meta__={statics:{BREAK:{SuppressWarnings:["checkstyle:FieldDocComment"]},NUMLOCK:{SuppressWarnings:["checkstyle:FieldDocComment"]}}};Ba.NUMBER_0=48;Ba.NUMBER_1=49;Ba.NUMBER_2=50;Ba.NUMBER_3=51;Ba.NUMBER_4=52;Ba.NUMBER_5=53;Ba.NUMBER_6=54;Ba.NUMBER_7=55;Ba.NUMBER_8=56;Ba.NUMBER_9=57;Ba.A=65;Ba.B=66;Ba.C=67;Ba.D=68;Ba.E=69;Ba.F=70;Ba.G=71;Ba.H=72;Ba.I=73;Ba.J=74;Ba.K=75;Ba.L=76;Ba.M=77;Ba.N=78;Ba.O=79;Ba.P=80;Ba.Q=81;Ba.R=82;Ba.S=83;Ba.T=84;Ba.U=85;Ba.V=86;Ba.W=87; Ba.X=88;Ba.Y=89;Ba.Z=90;Ba.NUMPAD_0=96;Ba.NUMPAD_1=97;Ba.NUMPAD_2=98;Ba.NUMPAD_3=99;Ba.NUMPAD_4=100;Ba.NUMPAD_5=101;Ba.NUMPAD_6=102;Ba.NUMPAD_7=103;Ba.NUMPAD_8=104;Ba.NUMPAD_9=105;Ba.NUMPAD_MULTIPLY=106;Ba.NUMPAD_ADD=107;Ba.NUMPAD_ENTER=108;Ba.NUMPAD_SUBTRACT=109;Ba.NUMPAD_DECIMAL=110;Ba.NUMPAD_DIVIDE=111;Ba.F1=112;Ba.F2=113;Ba.F3=114;Ba.F4=115;Ba.F5=116;Ba.F6=117;Ba.F7=118;Ba.F8=119;Ba.F9=120;Ba.F10=121;Ba.F11=122;Ba.F12=123;Ba.F13=124;Ba.F14=125;Ba.F15=126;Ba.BACKSPACE=8;Ba.TAB=9;Ba.ALTERNATE=18; Ba.ENTER=13;Ba.COMMAND=15;Ba.SHIFT=16;Ba.CONTROL=17;Ba.BREAK=19;Ba.CAPS_LOCK=20;Ba.NUMPAD=21;Ba.ESCAPE=27;Ba.SPACE=32;Ba.PAGE_UP=33;Ba.PAGE_DOWN=34;Ba.END=35;Ba.HOME=36;Ba.LEFT=37;Ba.RIGHT=39;Ba.UP=38;Ba.DOWN=40;Ba.INSERT=45;Ba.DELETE=46;Ba.NUMLOCK=144;Ba.SEMICOLON=186;Ba.EQUAL=187;Ba.COMMA=188;Ba.MINUS=189;Ba.PERIOD=190;Ba.SLASH=191;Ba.BACKQUOTE=192;Ba.LEFTBRACKET=219;Ba.BACKSLASH=220;Ba.RIGHTBRACKET=221;Ba.QUOTE=222;Fe.supportsCursor=!0;Fe.supportsNativeCursor=!0;Fe.__cursor="auto";hf.ARROW="arrow"; hf.AUTO="auto";hf.BUTTON="button";hf.HAND="hand";hf.IBEAM="ibeam";hf.__CROSSHAIR="crosshair";hf.__CUSTOM="custom";hf.__MOVE="move";hf.__RESIZE_NESW="resize_nesw";hf.__RESIZE_NS="resize_ns";hf.__RESIZE_NWSE="resize_nwse";hf.__RESIZE_WE="resize_we";hf.__WAIT="wait";hf.__WAIT_ARROW="waitarrow";Ll.GESTURE=0;Ll.NONE=1;Ll.TOUCH_POINT=2;X.__meta__={obj:{SuppressWarnings:[["checkstyle:ConstantName","checkstyle:FieldDocComment"]]}};X.OPMAP=new sa;X.REGMAP=new sa;X.SAMPLEMAP=new sa;X.MAX_NESTING=4;X.MAX_OPCODES= 4096;X.FRAGMENT="fragment";X.VERTEX="vertex";X.SAMPLER_TYPE_SHIFT=8;X.SAMPLER_DIM_SHIFT=12;X.SAMPLER_SPECIAL_SHIFT=16;X.SAMPLER_REPEAT_SHIFT=20;X.SAMPLER_MIPMAP_SHIFT=24;X.SAMPLER_FILTER_SHIFT=28;X.REG_WRITE=1;X.REG_READ=2;X.REG_FRAG=32;X.REG_VERT=64;X.OP_SCALAR=1;X.OP_SPECIAL_TEX=8;X.OP_SPECIAL_MATRIX=16;X.OP_FRAG_ONLY=32;X.OP_VERT_ONLY=64;X.OP_NO_DEST=128;X.OP_VERSION2=256;X.OP_INCNEST=512;X.OP_DECNEST=1024;X.MOV="mov";X.ADD="add";X.SUB="sub";X.MUL="mul";X.DIV="div";X.RCP="rcp";X.MIN="min";X.MAX= "max";X.FRC="frc";X.SQT="sqt";X.RSQ="rsq";X.POW="pow";X.LOG="log";X.EXP="exp";X.NRM="nrm";X.SIN="sin";X.COS="cos";X.CRS="crs";X.DP3="dp3";X.DP4="dp4";X.ABS="abs";X.NEG="neg";X.SAT="sat";X.M33="m33";X.M44="m44";X.M34="m34";X.DDX="ddx";X.DDY="ddy";X.IFE="ife";X.INE="ine";X.IFG="ifg";X.IFL="ifl";X.IEG="ieg";X.IEL="iel";X.ELS="els";X.EIF="eif";X.TED="ted";X.KIL="kil";X.TEX="tex";X.SGE="sge";X.SLT="slt";X.SGN="sgn";X.SEQ="seq";X.SNE="sne";X.VA="va";X.VC="vc";X.VT="vt";X.VO="vo";X.VI="vi";X.FC="fc";X.FT= "ft";X.FS="fs";X.FO="fo";X.FD="fd";X.IID="iid";X.D2="2d";X.D3="3d";X.CUBE="cube";X.MIPNEAREST="mipnearest";X.MIPLINEAR="miplinear";X.MIPNONE="mipnone";X.NOMIP="nomip";X.NEAREST="nearest";X.LINEAR="linear";X.ANISOTROPIC2X="anisotropic2x";X.ANISOTROPIC4X="anisotropic4x";X.ANISOTROPIC8X="anisotropic8x";X.ANISOTROPIC16X="anisotropic16x";X.CENTROID="centroid";X.SINGLE="single";X.IGNORESAMPLER="ignoresampler";X.REPEAT="repeat";X.WRAP="wrap";X.CLAMP="clamp";X.REPEAT_U_CLAMP_V="repeat_u_clamp_v";X.CLAMP_U_REPEAT_V= "clamp_u_repeat_v";X.RGBA="rgba";X.COMPRESSED="compressed";X.COMPRESSEDALPHA="compressedalpha";X.DXT1="dxt1";X.DXT5="dxt5";X.VIDEO="video";X.initialized=!1;fc.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};Lf.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};hd.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};Aa.cache=new vp;Aa.dispatcher=new E;za.__bytePointer=new sg(null,0);tc.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};tc.defaultObjectEncoding= 10;Ml.DEFLATE=0;Ml.LZMA=1;Ml.ZLIB=2;rk.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};pk.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};qk.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};Xi.BIG_ENDIAN=0;Xi.LITTLE_ENDIAN=1;Mg.__meta__={statics:{iterator:{SuppressWarnings:["checkstyle:FieldDocComment"]},__get:{SuppressWarnings:["checkstyle:FieldDocComment"]},__set:{SuppressWarnings:["checkstyle:FieldDocComment"]}}};yp.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}}; Nl.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};nh.VAL_ABSENT=-2147483648;nh.EMPTY_SLOT=-1;nh.NULL_POINTER=-1;Pg.KEY_ABSENT=-2147483648;Pg.VAL_ABSENT=-2147483648;Pg.EMPTY_SLOT=-1;Pg.NULL_POINTER=-1;db.DEFAULT_PRECISION=6;db.DEFAULT_NUM_EXP_DIGITS=2;db._initialized=!1;db.PAD_0=0;db.PAD_SPACE=20;lh.FIXED=0;lh.MILD=-1;lh.NORMAL=-2;lh.DOUBLE=-3;Nb.PI=3.141592653589793;Nb.PI_H=1.5707963267948966;Nb.LN_2=.6931471805599453;Nb.LN_2_10=6.931471805599453;Nb.overshoot=1.70158;Nb.amplitude= 1;Nb.period=3E-4;bb.main()})("undefined"!=typeof z?z:"undefined"!=typeof window?window:"undefined"!=typeof self?self:this,"undefined"!=typeof window?window:"undefined"!=typeof K?K:"undefined"!=typeof self?self:this)};ba.lime.embed=function(T){var K={},W=ba.lime.$scripts[T];if(!W)throw Error('Cannot find project name "'+T+'"');W(K,z);for(var ja in K)ba[ja]=ba[ja]||K[ja];(W=K.lime||window.lime)&&W.embed&&this!=W.embed&&W.embed.apply(W,arguments);return K};"function"==typeof define&&define.amd&&(define([], function(){return ba.lime}),define.__amd=define.amd,define.amd=null)})("undefined"!=typeof exports?exports:"function"==typeof define&&define.amd?{}:"undefined"!=typeof window?window:"undefined"!=typeof self?self:this,"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this); !function(){var ba=function(){this.init()};ba.prototype={init:function(){var k=this||z;return k._counter=1E3,k._html5AudioPool=[],k.html5PoolSize=10,k._codecs={},k._howls=[],k._muted=!1,k._volume=1,k._canPlayEvent="canplaythrough",k._navigator="undefined"!=typeof window&&window.navigator?window.navigator:null,k.masterGain=null,k.noAudio=!1,k.usingWebAudio=!0,k.autoSuspend=!0,k.ctx=null,k.autoUnlock=!0,k._setup(),k},volume:function(u){var r=this||z;if(u=parseFloat(u),r.ctx||k(),void 0!==u&&0<=u&&1>= u){if(r._volume=u,r._muted)return r;r.usingWebAudio&&r.masterGain.gain.setValueAtTime(u,z.ctx.currentTime);for(var y=0;y parseInt(x[0].split("/")[1],10);return k._codecs={mp3:!(x||!y&&!r.canPlayType("audio/mp3;").replace(/^no$/,"")),mpeg:!!y,opus:!!r.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""),ogg:!!r.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),oga:!!r.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),wav:!!r.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),aac:!!r.canPlayType("audio/aac;").replace(/^no$/,""),caf:!!r.canPlayType("audio/x-caf;").replace(/^no$/,""),m4a:!!(r.canPlayType("audio/x-m4a;")|| r.canPlayType("audio/m4a;")||r.canPlayType("audio/aac;")).replace(/^no$/,""),mp4:!!(r.canPlayType("audio/x-mp4;")||r.canPlayType("audio/mp4;")||r.canPlayType("audio/aac;")).replace(/^no$/,""),weba:!!r.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,""),webm:!!r.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,""),dolby:!!r.canPlayType('audio/mp4; codecs="ec-3"').replace(/^no$/,""),flac:!!(r.canPlayType("audio/x-flac;")||r.canPlayType("audio/flac;")).replace(/^no$/,"")},k},_unlockAudio:function(){var k= this||z,r=/iPhone|iPad|iPod|Android|BlackBerry|BB10|Silk|Mobi|Chrome|Safari/i.test(k._navigator&&k._navigator.userAgent);if(!k._audioUnlocked&&k.ctx&&r){k._audioUnlocked=!1;k.autoUnlock=!1;k._mobileUnloaded||44100===k.ctx.sampleRate||(k._mobileUnloaded=!0,k.unload());k._scratchBuffer=k.ctx.createBuffer(1,1,22050);var y=function(u){for(u=0;u=Fa)return void u._ended(K);var Pa=K._node;if(u._webAudio)x=function(){u._playLock=!1;ib();u._refreshBuffer(K);Pa.gain.setValueAtTime(K._muted||u._muted?0:K._volume,z.ctx.currentTime);K._playStart=z.ctx.currentTime;void 0===Pa.bufferSource.start?K._loop? Pa.bufferSource.noteGrainOn(0,T,86400):Pa.bufferSource.noteGrainOn(0,T,Y):K._loop?Pa.bufferSource.start(0,T,86400):Pa.bufferSource.start(0,T,Y);ba!==1/0&&(u._endTimers[K._id]=setTimeout(u._ended.bind(u,K),ba));r||setTimeout(function(){u._emit("play",K._id);u._loadQueue()},0)},"running"===z.state?x():(u._playLock=!0,u.once("resume",x),u._clearTimer(K._id));else{var ca=function(){Pa.currentTime=T;Pa.muted=K._muted||u._muted||z._muted||Pa.muted;Pa.volume=K._volume*z.volume();Pa.playbackRate=K._rate; try{var y=Pa.play();if(y&&"undefined"!=typeof Promise&&(y instanceof Promise||"function"==typeof y.then)?(u._playLock=!0,ib(),y.then(function(){u._playLock=!1;Pa._unlocked=!0;r||(u._emit("play",K._id),u._loadQueue())}).catch(function(){u._playLock=!1;u._emit("playerror",K._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction.");K._ended=!0;K._paused=!0})):r||(u._playLock=!1,ib(),u._emit("play",K._id),u._loadQueue()), Pa.playbackRate=K._rate,Pa.paused)return void u._emit("playerror",K._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction.");"__default"!==k||K._loop?u._endTimers[K._id]=setTimeout(u._ended.bind(u,K),ba):(u._endTimers[K._id]=function(){u._ended(K);Pa.removeEventListener("ended",u._endTimers[K._id],!1)},Pa.addEventListener("ended",u._endTimers[K._id],!1))}catch(re){u._emit("playerror",K._id,re)}};x=window&&window.ejecta|| !Pa.readyState&&z._navigator.isCocoonJS;if(3<=Pa.readyState||x)ca();else{u._playLock=!0;var Ga=function(){ca();Pa.removeEventListener(z._canPlayEvent,Ga,!1)};Pa.addEventListener(z._canPlayEvent,Ga,!1);u._clearTimer(K._id)}}return K._id},pause:function(k,r){var u=this;if("loaded"!==u._state||u._playLock)return u._queue.push({event:"pause",action:function(){u.pause(k)}}),u;for(var x=u._getSoundIds(k),B=0;B=k))return K=r?y._soundById(r):y._sounds[0],K?K._volume:0;if("loaded"!==y._state||y._playLock)return y._queue.push({event:"volume",action:function(){y.volume.apply(y,x)}}),y;void 0===r&&(y._volume=k);r=y._getSoundIds(r);for(var A=0;Ar&&B>=y)&&(clearInterval(k._interval),k._interval=null,k._fadeTo=null,u.volume(y,k._id),u._emit("fade", k._id))},z)},_stopFade:function(k){var u=this._soundById(k);return u&&u._interval&&(this._webAudio&&u._node.gain.cancelScheduledValues(z.ctx.currentTime),clearInterval(u._interval),u._interval=null,this.volume(u._fadeTo,k),u._fadeTo=null,this._emit("fade",k)),this},loop:function(){var k,r,y,x=arguments;if(0===x.length)return this._loop;if(1===x.length){if("boolean"!=typeof x[0])return!!(y=this._soundById(parseInt(x[0],10)))&&y._loop;this._loop=k=x[0]}else 2===x.length&&(k=x[0],r=parseInt(x[1],10)); r=this._getSoundIds(r);for(x=0;xr&&(k=/safari/.test(z._navigator&&z._navigator.userAgent.toLowerCase()),(z._navigator&&z._navigator.standalone&&!k||z._navigator&&!z._navigator.standalone&&!k)&&(z.usingWebAudio=!1));z.usingWebAudio&&(z.masterGain=void 0===z.ctx.createGain?z.ctx.createGainNode():z.ctx.createGain(),z.masterGain.gain.setValueAtTime(z._muted?0:1,z.ctx.currentTime),z.masterGain.connect(z.ctx.destination));z._setup()}};"function"==typeof define&&define.amd&&define([],function(){return{Howler:z, Howl:T}});"undefined"!=typeof exports&&(exports.Howler=z,exports.Howl=T);"undefined"!=typeof window?(window.HowlerGlobal=ba,window.Howler=z,window.Howl=T,window.Sound=K):"undefined"!=typeof global&&(global.HowlerGlobal=ba,global.Howler=z,global.Howl=T,global.Sound=K)}(); !function(){HowlerGlobal.prototype._pos=[0,0,0];HowlerGlobal.prototype._orientation=[0,0,-1,0,1,0];HowlerGlobal.prototype.stereo=function(z){if(!this.ctx||!this.ctx.listener)return this;for(var T=this._howls.length-1;0<=T;T--)this._howls[T].stereo(z);return this};HowlerGlobal.prototype.pos=function(z,T,K){return this.ctx&&this.ctx.listener?(T="number"!=typeof T?this._pos[1]:T,K="number"!=typeof K?this._pos[2]:K,"number"!=typeof z?this._pos:(this._pos=[z,T,K],void 0!==this.ctx.listener.positionX?(this.ctx.listener.positionX.setTargetAtTime(this._pos[0], Howler.ctx.currentTime,.1),this.ctx.listener.positionY.setTargetAtTime(this._pos[1],Howler.ctx.currentTime,.1),this.ctx.listener.positionZ.setTargetAtTime(this._pos[2],Howler.ctx.currentTime,.1)):this.ctx.listener.setPosition(this._pos[0],this._pos[1],this._pos[2]),this)):this};HowlerGlobal.prototype.orientation=function(z,T,K,W,ba,r){if(!this.ctx||!this.ctx.listener)return this;var ja=this._orientation;return T="number"!=typeof T?ja[1]:T,K="number"!=typeof K?ja[2]:K,W="number"!=typeof W?ja[3]:W, ba="number"!=typeof ba?ja[4]:ba,r="number"!=typeof r?ja[5]:r,"number"!=typeof z?ja:(this._orientation=[z,T,K,W,ba,r],void 0!==this.ctx.listener.forwardX?(this.ctx.listener.forwardX.setTargetAtTime(z,Howler.ctx.currentTime,.1),this.ctx.listener.forwardY.setTargetAtTime(T,Howler.ctx.currentTime,.1),this.ctx.listener.forwardZ.setTargetAtTime(K,Howler.ctx.currentTime,.1),this.ctx.listener.upX.setTargetAtTime(z,Howler.ctx.currentTime,.1),this.ctx.listener.upY.setTargetAtTime(T,Howler.ctx.currentTime,.1), this.ctx.listener.upZ.setTargetAtTime(K,Howler.ctx.currentTime,.1)):this.ctx.listener.setOrientation(z,T,K,W,ba,r),this)};Howl.prototype.init=function(z){return function(T){return this._orientation=T.orientation||[1,0,0],this._stereo=T.stereo||null,this._pos=T.pos||null,this._pannerAttr={coneInnerAngle:void 0!==T.coneInnerAngle?T.coneInnerAngle:360,coneOuterAngle:void 0!==T.coneOuterAngle?T.coneOuterAngle:360,coneOuterGain:void 0!==T.coneOuterGain?T.coneOuterGain:0,distanceModel:void 0!==T.distanceModel? T.distanceModel:"inverse",maxDistance:void 0!==T.maxDistance?T.maxDistance:1E4,panningModel:void 0!==T.panningModel?T.panningModel:"HRTF",refDistance:void 0!==T.refDistance?T.refDistance:1,rolloffFactor:void 0!==T.rolloffFactor?T.rolloffFactor:1},this._onstereo=T.onstereo?[{fn:T.onstereo}]:[],this._onpos=T.onpos?[{fn:T.onpos}]:[],this._onorientation=T.onorientation?[{fn:T.onorientation}]:[],z.call(this,T)}}(Howl.prototype.init);Howl.prototype.stereo=function(z,T){var K=this;if(!K._webAudio)return K; if("loaded"!==K._state)return K._queue.push({event:"stereo",action:function(){K.stereo(z,T)}}),K;var W=void 0===Howler.ctx.createStereoPanner?"spatial":"stereo";if(void 0===T){if("number"!=typeof z)return K._stereo;K._stereo=z;K._pos=[z,0,0]}for(var ja=K._getSoundIds(T),r=0;rz.windowBits&&(z.windowBits+=16);this.err= 0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new u;this.strm.avail_out=0;var K=r.deflateInit2(this.strm,z.level,z.method,z.windowBits,z.memLevel,z.strategy);if(K!==y)throw Error(k[K]);if(z.header&&r.deflateSetHeader(this.strm,z.header),z.dictionary){var T;if(T="string"==typeof z.dictionary?x.string2buf(z.dictionary):"[object ArrayBuffer]"===B.call(z.dictionary)?new Uint8Array(z.dictionary):z.dictionary,K=r.deflateSetDictionary(this.strm,T),K!==y)throw Error(k[K]);this._dict_set=!0}}function ja(k, r){r=new W(r);if(r.push(k,!0),r.err)throw r.msg;return r.result}var r=z("./zlib/deflate"),Fa=z("./utils/common"),x=z("./utils/strings"),k=z("./zlib/messages"),u=z("./zlib/zstream"),B=Object.prototype.toString,y=0,bb=-1,Wa=0,A=8;W.prototype.push=function(k,u){var A,z=this.strm,K=this.options.chunkSize;if(this.ended)return!1;u=u===~~u?u:!0===u?4:0;"string"==typeof k?z.input=x.string2buf(k):"[object ArrayBuffer]"===B.call(k)?z.input=new Uint8Array(k):z.input=k;z.next_in=0;z.avail_in=z.input.length;do{if(0=== z.avail_out&&(z.output=new Fa.Buf8(K),z.next_out=0,z.avail_out=K),A=r.deflate(z,u),1!==A&&A!==y)return this.onEnd(A),this.ended=!0,!1;0!==z.avail_out&&(0!==z.avail_in||4!==u&&2!==u)||("string"===this.options.to?this.onData(x.buf2binstring(Fa.shrinkBuf(z.output,z.next_out))):this.onData(Fa.shrinkBuf(z.output,z.next_out)))}while((0A.windowBits&&(A.windowBits=-A.windowBits,0===A.windowBits&&(A.windowBits=-15));!(0<=A.windowBits&&16>A.windowBits)||x&&x.windowBits||(A.windowBits+=32);15A.windowBits&&0===(15&A.windowBits)&&(A.windowBits|=15);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new B;this.strm.avail_out=0;x=r.inflateInit2(this.strm,A.windowBits);if(x!==k.Z_OK)throw Error(u[x]); this.header=new y;r.inflateGetHeader(this.strm,this.header)}function ja(k,r){r=new W(r);if(r.push(k,!0),r.err)throw r.msg;return r.result}var r=z("./zlib/inflate"),Fa=z("./utils/common"),x=z("./utils/strings"),k=z("./zlib/constants"),u=z("./zlib/messages"),B=z("./zlib/zstream"),y=z("./zlib/gzheader"),bb=Object.prototype.toString;W.prototype.push=function(u,y){var B,A,z,K,W,T=this.strm,ja=this.options.chunkSize,Wa=this.options.dictionary,ib=!1;if(this.ended)return!1;y=y===~~y?y:!0===y?k.Z_FINISH:k.Z_NO_FLUSH; "string"==typeof u?T.input=x.binstring2buf(u):"[object ArrayBuffer]"===bb.call(u)?T.input=new Uint8Array(u):T.input=u;T.next_in=0;T.avail_in=T.input.length;do{if(0===T.avail_out&&(T.output=new Fa.Buf8(ja),T.next_out=0,T.avail_out=ja),B=r.inflate(T,k.Z_NO_FLUSH),B===k.Z_NEED_DICT&&Wa&&(W="string"==typeof Wa?x.string2buf(Wa):"[object ArrayBuffer]"===bb.call(Wa)?new Uint8Array(Wa):Wa,B=r.inflateSetDictionary(this.strm,W)),B===k.Z_BUF_ERROR&&!0===ib&&(B=k.Z_OK,ib=!1),B!==k.Z_STREAM_END&&B!==k.Z_OK)return this.onEnd(B), this.ended=!0,!1;T.next_out&&(0!==T.avail_out&&B!==k.Z_STREAM_END&&(0!==T.avail_in||y!==k.Z_FINISH&&y!==k.Z_SYNC_FLUSH)||("string"===this.options.to?(A=x.utf8border(T.output,T.next_out),z=T.next_out-A,K=x.buf2string(T.output,A),T.next_out=z,T.avail_out=ja-z,z&&Fa.arraySet(T.output,T.output,A,z,0),this.onData(K)):this.onData(Fa.shrinkBuf(T.output,T.next_out))));0===T.avail_in&&0===T.avail_out&&(ib=!0)}while((0u&&(k.subarray&&Fa||!k.subarray&&r))return String.fromCharCode.apply(null,ja.shrinkBuf(k,u));for(var x="",y=0;yz;z++)x[z]=252<=z?6:248<=z?5:240<=z?4:224<=z?3:192<=z?2:1;x[254]=x[254]=1;K.string2buf=function(k){var r,x,y,z=k.length,K=0;for(x=0;xA?1:2048>A?2:65536>A?3:4}var T=new ja.Buf8(K);for(x=y=0;y A?T[y++]=A:2048>A?(T[y++]=192|A>>>6,T[y++]=128|63&A):65536>A?(T[y++]=224|A>>>12,T[y++]=128|A>>>6&63,T[y++]=128|63&A):(T[y++]=240|A>>>18,T[y++]=128|A>>>12&63,T[y++]=128|A>>>6&63,T[y++]=128|63&A);return T};K.buf2binstring=function(k){return W(k,k.length)};K.binstring2buf=function(k){for(var r=new ja.Buf8(k.length),x=0,y=r.length;xy)A[u++]=y;else if(z=x[y],4y?A[u++]=y:(y-=65536,A[u++]=55296|y>>10&1023,A[u++]=56320|1023&y)}return W(A,u)};K.utf8border=function(k,r){var u;r=r||k.length;r>k.length&&(r=k.length);for(u=r-1;0<=u&&128===(192&k[u]);)u--;return 0>u?r:0===u?r:u+x[k[u]]>r?u:r}},{"./common":3}],5:[function(z,T,K){T.exports=function(z,K,r,T){var x=65535&z|0;z=z>>>16&65535|0;for(var k;0!==r;){k=2E3 K;K++){z=K;for(var x=0;8>x;x++)z=1&z?3988292384^z>>>1:z>>>1;r[K]=z}return r}();T.exports=function(z,r,K,x){K=x+K;for(z^=-1;x>>8^W[255&(z^r[x])];return z^-1}},{}],8:[function(z,T,K){function W(k,r){return k.msg=Gb[r],r}function ja(k){for(var r=k.length;0<=--r;)k[r]=0}function r(k){var r=k.state,u=r.pending;u>k.avail_out&&(u=k.avail_out);0!==u&&(Y.arraySet(k.output,r.pending_buf,r.pending_out,u,k.next_out),k.next_out+=u,r.pending_out+=u,k.total_out+=u,k.avail_out-=u,r.pending-=u,0===r.pending&& (r.pending_out=0))}function Fa(k,u){Dd._tr_flush_block(k,0<=k.block_start?k.block_start:-1,k.strstart-k.block_start,u);k.block_start=k.strstart;r(k.strm)}function x(k,r){k.pending_buf[k.pending++]=r}function k(k,r){k.pending_buf[k.pending++]=r>>>8&255;k.pending_buf[k.pending++]=255&r}function u(k,r){var u,x,y=k.max_chain_length,P=k.strstart,z=k.prev_length,E=k.nice_match,A=k.strstart>k.w_size-cb?k.strstart-(k.w_size-cb):0,B=k.window,M=k.w_mask,N=k.prev,K=k.strstart+ab,ca=B[P+z-1],T=B[P+z];k.prev_length>= k.good_match&&(y>>=2);E>k.lookahead&&(E=k.lookahead);do if(u=r,B[u+z]===T&&B[u+z-1]===ca&&B[u]===B[P]&&B[++u]===B[P+1]){P+=2;for(u++;B[++P]===B[++u]&&B[++P]===B[++u]&&B[++P]===B[++u]&&B[++P]===B[++u]&&B[++P]===B[++u]&&B[++P]===B[++u]&&B[++P]===B[++u]&&B[++P]===B[++u]&&Pz){if(k.match_start=r,z=x,x>=E)break;ca=B[P+z-1];T=B[P+z]}}while((r=N[r&M])>A&&0!==--y);return z<=k.lookahead?z:k.lookahead}function B(k){var r,u,x=k.w_size;do{if(u=k.window_size-k.lookahead-k.strstart,k.strstart>= x+(x-cb)){Y.arraySet(k.window,k.window,x,x,0);k.match_start-=x;k.strstart-=x;k.block_start-=x;var y=r=k.hash_size;do{var P=k.head[--y];k.head[y]=P>=x?P-x:0}while(--r);y=r=x;do P=k.prev[--y],k.prev[y]=P>=x?P-x:0;while(--r);u+=x}if(0===k.strm.avail_in)break;y=k.strm;P=k.window;var z=k.strstart+k.lookahead,B=y.avail_in;if(r=(B>u&&(B=u),0===B?0:(y.avail_in-=B,Y.arraySet(P,y.input,y.next_in,B,z),1===y.state.wrap?y.adler=Qb(y.adler,P,B,z):2===y.state.wrap&&(y.adler=Ia(y.adler,P,B,z)),y.next_in+=B,y.total_in+= B,B)),k.lookahead+=r,k.lookahead+k.insert>=wa)for(u=k.strstart-k.insert,k.ins_h=k.window[u],k.ins_h=(k.ins_h<=wa&& (k.ins_h=(k.ins_h<=wa)if(y=Dd._tr_tally(k,k.strstart-k.match_start,k.match_length-wa),k.lookahead-=k.match_length,k.match_length<=k.max_lazy_match&&k.lookahead>=wa){k.match_length--;do k.strstart++,k.ins_h=(k.ins_h<=wa&&(k.ins_h=(k.ins_h<=k.match_length&&(k.strategy===re||k.match_length===wa&&4096=wa&&k.match_length<=k.prev_length){z=k.strstart+k.lookahead-wa;y=Dd._tr_tally(k,k.strstart-1-k.prev_match,k.prev_length-wa);k.lookahead-=k.prev_length-1;k.prev_length-=2;do++k.strstart<=z&&(k.ins_h=(k.ins_h<r.wrap&&(r.wrap=-r.wrap),r.status=r.wrap?ma:da,k.adler=2===r.wrap?0:1,r.last_flush=ib,Dd._tr_init(r),ca):W(k,Ga)}function jc(k){var r=Wb(k);r===ca&&(k=k.state,k.window_size=2*k.w_size,ja(k.head),k.max_lazy_match=Pe[k.level].max_lazy,k.good_match=Pe[k.level].good_length,k.nice_match=Pe[k.level].nice_length,k.max_chain_length= Pe[k.level].max_chain,k.strstart=0,k.block_start=0,k.lookahead=0,k.insert=0,k.match_length=k.prev_length=wa-1,k.match_available=0,k.ins_h=0);return r}function Cd(k,r,u,x,y,z){if(!k)return Ga;var I=1;if(r===N&&(r=6),0>x?(I=0,x=-x):15y||y>Ua||u!==Bd||8>x||15r||9z||z>Wc)return W(k,Ga);8===x&&(x=9);var D=new A;return k.state=D,D.strm=k,D.wrap=I,D.gzhead=null,D.w_bits=x,D.w_size=1<k.pending_buf_size-5&&(u=k.pending_buf_size-5);;){if(1>=k.lookahead){if(B(k),0===k.lookahead&&r===ib)return ea;if(0===k.lookahead)break}k.strstart+=k.lookahead;k.lookahead=0;var x=k.block_start+u;if((0===k.strstart||k.strstart>=x)&&(k.lookahead=k.strstart-x,k.strstart=x,Fa(k,!1),0===k.strm.avail_out)||k.strstart-k.block_start>=k.w_size-cb&&(Fa(k,!1),0===k.strm.avail_out))return ea}return k.insert= 0,r===Pa?(Fa(k,!0),0===k.strm.avail_out?pd:M):(k.strstart>k.block_start&&Fa(k,!1),ea)}),new Wa(4,4,8,4,y),new Wa(4,5,16,8,y),new Wa(4,6,32,32,y),new Wa(4,4,16,16,bb),new Wa(8,16,32,32,bb),new Wa(8,16,128,128,bb),new Wa(8,32,128,256,bb),new Wa(32,128,258,1024,bb),new Wa(32,258,258,4096,bb)];K.deflateInit=function(k,r){return Cd(k,r,Bd,15,8,0)};K.deflateInit2=Cd;K.deflateReset=jc;K.deflateResetKeep=Wb;K.deflateSetHeader=function(k,r){return k&&k.state?2!==k.state.wrap?Ga:(k.state.gzhead=r,ca):Ga};K.deflate= function(u,y){var I,D;if(!u||!u.state||5y)return u?W(u,Ga):Ga;if(D=u.state,!u.output||!u.input&&0!==u.avail_in||666===D.status&&y!==Pa)return W(u,0===u.avail_out?-5:Ga);if(D.strm=u,I=D.last_flush,D.last_flush=y,D.status===ma)if(2===D.wrap)u.adler=0,x(D,31),x(D,139),x(D,8),D.gzhead?(x(D,(D.gzhead.text?1:0)+(D.gzhead.hcrc?2:0)+(D.gzhead.extra?4:0)+(D.gzhead.name?8:0)+(D.gzhead.comment?16:0)),x(D,255&D.gzhead.time),x(D,D.gzhead.time>>8&255),x(D,D.gzhead.time>>16&255),x(D,D.gzhead.time>>24&255), x(D,9===D.level?2:2<=D.strategy||2>D.level?4:0),x(D,255&D.gzhead.os),D.gzhead.extra&&D.gzhead.extra.length&&(x(D,255&D.gzhead.extra.length),x(D,D.gzhead.extra.length>>8&255)),D.gzhead.hcrc&&(u.adler=Ia(u.adler,D.pending_buf,D.pending,0)),D.gzindex=0,D.status=69):(x(D,0),x(D,0),x(D,0),x(D,0),x(D,0),x(D,9===D.level?2:2<=D.strategy||2>D.level?4:0),x(D,3),D.status=da);else{var z=Bd+(D.w_bits-8<<4)<<8;z|=(2<=D.strategy||2>D.level?0:6>D.level?1:6===D.level?2:3)<<6;0!==D.strstart&&(z|=32);D.status=da;k(D, z+(31-z%31));0!==D.strstart&&(k(D,u.adler>>>16),k(D,65535&u.adler));u.adler=1}if(69===D.status)if(D.gzhead.extra){for(z=D.pending;D.gzindex<(65535&D.gzhead.extra.length)&&(D.pending!==D.pending_buf_size||(D.gzhead.hcrc&&D.pending>z&&(u.adler=Ia(u.adler,D.pending_buf,D.pending-z,z)),r(u),z=D.pending,D.pending!==D.pending_buf_size));)x(D,255&D.gzhead.extra[D.gzindex]),D.gzindex++;D.gzhead.hcrc&&D.pending>z&&(u.adler=Ia(u.adler,D.pending_buf,D.pending-z,z));D.gzindex===D.gzhead.extra.length&&(D.gzindex= 0,D.status=73)}else D.status=73;if(73===D.status)if(D.gzhead.name){z=D.pending;do{if(D.pending===D.pending_buf_size&&(D.gzhead.hcrc&&D.pending>z&&(u.adler=Ia(u.adler,D.pending_buf,D.pending-z,z)),r(u),z=D.pending,D.pending===D.pending_buf_size)){var E=1;break}E=D.gzindexz&&(u.adler=Ia(u.adler,D.pending_buf,D.pending-z,z));0===E&&(D.gzindex=0,D.status=91)}else D.status=91;if(91===D.status)if(D.gzhead.comment){z= D.pending;do{if(D.pending===D.pending_buf_size&&(D.gzhead.hcrc&&D.pending>z&&(u.adler=Ia(u.adler,D.pending_buf,D.pending-z,z)),r(u),z=D.pending,D.pending===D.pending_buf_size)){E=1;break}E=D.gzindexz&&(u.adler=Ia(u.adler,D.pending_buf,D.pending-z,z));0===E&&(D.status=103)}else D.status=103;if(103===D.status&&(D.gzhead.hcrc?(D.pending+2>D.pending_buf_size&&r(u),D.pending+2<=D.pending_buf_size&& (x(D,255&u.adler),x(D,u.adler>>8&255),u.adler=0,D.status=da)):D.status=da),0!==D.pending){if(r(u),0===u.avail_out)return D.last_flush=-1,ca}else if(0===u.avail_in&&(y<<1)-(4=wa&&0D.lookahead&&(D.match_length=D.lookahead)}if(D.match_length>=wa?(N=Dd._tr_tally(D,1,D.match_length-wa),D.lookahead-=D.match_length,D.strstart+=D.match_length,D.match_length=0):(N=Dd._tr_tally(D,0,D.window[D.strstart]),D.lookahead--,D.strstart++),N&&(Fa(D,!1),0===D.strm.avail_out)){N=ea;break a}}N=(D.insert=0,y===Pa?(Fa(D,!0),0===D.strm.avail_out?pd:M):D.last_lit&&(Fa(D,!1),0===D.strm.avail_out)?ea:pa)}else N= Pe[D.level].func(D,y);if(N!==pd&&N!==M||(D.status=666),N===ea||N===pd)return 0===u.avail_out&&(D.last_flush=-1),ca;if(N===pa&&(1===y?Dd._tr_align(D):5!==y&&(Dd._tr_stored_block(D,0,0,!1),3===y&&(ja(D.head),0===D.lookahead&&(D.strstart=0,D.block_start=0,D.insert=0))),r(u),0===u.avail_out))return D.last_flush=-1,ca}return y!==Pa?ca:0>=D.wrap?1:(2===D.wrap?(x(D,255&u.adler),x(D,u.adler>>8&255),x(D,u.adler>>16&255),x(D,u.adler>>24&255),x(D,255&u.total_in),x(D,u.total_in>>8&255),x(D,u.total_in>>16&255), x(D,u.total_in>>24&255)):(k(D,u.adler>>>16),k(D,65535&u.adler)),r(u),0=u.w_size&&(0===x&& (ja(u.head),u.strstart=0,u.block_start=0,u.insert=0),y=new Y.Buf8(u.w_size),Y.arraySet(y,r,z-u.w_size,u.w_size,0),r=y,z=u.w_size);y=k.avail_in;var A=k.next_in;var E=k.input;k.avail_in=z;k.next_in=0;k.input=r;for(B(u);u.lookahead>=wa;){r=u.strstart;z=u.lookahead-(wa-1);do u.ins_h=(u.ins_h<Ia&&(Qb+=B[u++]<>>24,Qb>>>=r,Ia-=r,r=Ga>>>16&255,0===r)ja[W++]=65535&Ga;else{if(!(16&r)){if(0===(64&r)){Ga=Gb[(65535& Ga)+(Qb&(1<>>=r,Ia-=r);15>Ia&&(Qb+=B[u++]<>>24,Qb>>>=r,Ia-=r,r=Ga>>>16&255,!(16&r)){if(0===(64&r)){Ga=ib[(65535&Ga)+(Qb&(1<Wb){z.msg="invalid distance too far back";k.mode=30;break a}if(Qb>>>=r,Ia-=r,r=W-K,T>r){if(r=T-r,r>Cd&&k.sane){z.msg="invalid distance too far back";k.mode=30;break a}if(Ga=0,x=Dd,0===Y){if(Ga+=jc-r,r>3;u-=N;Ia-=N<<3;z.next_in=u;z.next_out=W;z.avail_in=u>>24&255)+(k>>>8&65280)+((65280&k)<<8)+((255&k)<<24)}function ja(){this.mode= 0;this.last=!1;this.wrap=0;this.havedict=!1;this.total=this.check=this.dmax=this.flags=0;this.head=null;this.wnext=this.whave=this.wsize=this.wbits=0;this.window=null;this.extra=this.offset=this.length=this.bits=this.hold=0;this.distcode=this.lencode=null;this.have=this.ndist=this.nlen=this.ncode=this.distbits=this.lenbits=0;this.next=null;this.lens=new bb.Buf16(320);this.work=new bb.Buf16(288);this.distdyn=this.lendyn=null;this.was=this.back=this.sane=0}function r(k){var r;return k&&k.state?(r=k.state, k.total_in=k.total_out=r.total=0,k.msg="",r.wrap&&(k.adler=1&r.wrap),r.mode=Dd,r.last=0,r.havedict=0,r.dmax=32768,r.head=null,r.hold=0,r.bits=0,r.lencode=r.lendyn=new bb.Buf32(Qb),r.distcode=r.distdyn=new bb.Buf32(Ia),r.sane=1,r.back=-1,Cd):Y}function Fa(k){var u;return k&&k.state?(u=k.state,u.wsize=0,u.whave=0,u.wnext=0,r(k)):Y}function x(k,r){var u,x;return k&&k.state?(x=k.state,0>r?(u=0,r=-r):(u=(r>>4)+1,48>r&&(r&=15)),r&&(8>r||15=k.wsize?(bb.arraySet(k.window,r,u-k.wsize,k.wsize,0),k.wnext=0,k.whave=k.wsize):(y=k.wsize-k.wnext,y>x&&(y=x),bb.arraySet(k.window,r,u-x,y,k.wnext),x-=y,x?(bb.arraySet(k.window,r,u-x,x,0),k.wnext=x,k.whave=k.wsize):(k.wnext+=y,k.wnext===k.wsize&&(k.wnext= 0),k.whaveea;){if(0===ma)break a;ma--;da+=cb[ab++]<>>8&255;E.check=A(E.check,Ea,2,0);ea=da=0;E.mode=2;break}if(E.flags=0,E.head&&(E.head.done=!1),!(1&E.wrap)||(((255&da)<<8)+(da>>8))%31){k.msg="incorrect header check"; E.mode=30;break}if(8!==(15&da)){k.msg="unknown compression method";E.mode=30;break}if(da>>>=4,ea-=4,aa=(15&da)+8,0===E.wbits)E.wbits=aa;else if(aa>E.wbits){k.msg="invalid window size";E.mode=30;break}E.dmax=1<ea;){if(0===ma)break a;ma--;da+=cb[ab++]<>8&1);512&E.flags&&(Ea[0]=255&da,Ea[1]=da>>>8&255,E.check=A(E.check,Ea,2,0));ea=da=0;E.mode=3;case 3:for(;32>ea;){if(0===ma)break a;ma--;da+=cb[ab++]<>>8&255,Ea[2]=da>>>16&255,Ea[3]=da>>>24&255,E.check=A(E.check,Ea,4,0));ea=da=0;E.mode=4;case 4:for(;16>ea;){if(0===ma)break a;ma--;da+=cb[ab++]<>8);512&E.flags&&(Ea[0]=255&da,Ea[1]=da>>>8&255,E.check=A(E.check,Ea,2,0));ea=da= 0;E.mode=5;case 5:if(1024&E.flags){for(;16>ea;){if(0===ma)break a;ma--;da+=cb[ab++]<>>8&255,E.check=A(E.check,Ea,2,0));ea=da=0}else E.head&&(E.head.extra=null);E.mode=6;case 6:if(1024&E.flags&&(x=E.length,x>ma&&(x=ma),x&&(E.head&&(aa=E.head.extra_len-E.length,E.head.extra||(E.head.extra=Array(E.head.extra_len)),bb.arraySet(E.head.extra,cb,ab,x,aa)),512&E.flags&&(E.check=A(E.check,cb,x,ab)),ma-=x,ab+=x,E.length-= x),E.length))break a;E.length=0;E.mode=7;case 7:if(2048&E.flags){if(0===ma)break a;x=0;do aa=cb[ab+x++],E.head&&aa&&65536>E.length&&(E.head.name+=String.fromCharCode(aa));while(aa&&xE.length&&(E.head.comment+=String.fromCharCode(aa));while(aa&&xea;){if(0===ma)break a;ma--;da+=cb[ab++]<>9&1,E.head.done=!0);k.adler=E.check=0;E.mode=12;break;case 10:for(;32>ea;){if(0===ma)break a;ma--;da+=cb[ab++]<>>=7&ea;ea-=7&ea;E.mode=27;break}for(;3>ea;){if(0===ma)break a;ma--;da+=cb[ab++]<>>=1,--ea,3&da){case 0:E.mode=14;break;case 1:var Fa=E;if(Gb){B=new bb.Buf32(512);y=new bb.Buf32(32);for(N=0;144>N;)Fa.lens[N++]=8;for(;256>N;)Fa.lens[N++]=9;for(;280>N;)Fa.lens[N++]=7;for(;288>N;)Fa.lens[N++]=8;jc(1,Fa.lens,0,288,B,0,Fa.work,{bits:9});for(N=0;32>N;)Fa.lens[N++]=5; jc(2,Fa.lens,0,32,y,0,Fa.work,{bits:5});Gb=!1}Fa.lencode=B;Fa.lenbits=9;Fa.distcode=y;Fa.distbits=5;if(E.mode=20,6===r){da>>>=2;ea-=2;break a}break;case 2:E.mode=17;break;case 3:k.msg="invalid block type",E.mode=30}da>>>=2;ea-=2;break;case 14:da>>>=7&ea;for(ea-=7&ea;32>ea;){if(0===ma)break a;ma--;da+=cb[ab++]<>>16^65535)){k.msg="invalid stored block lengths";E.mode=30;break}if(E.length=65535&da,da=0,ea=0,E.mode=15,6===r)break a;case 15:E.mode=16;case 16:if(x=E.length){if(x> ma&&(x=ma),x>wa&&(x=wa),0===x)break a;bb.arraySet(Ja,cb,ab,x,Ia);ma-=x;ab+=x;wa-=x;Ia+=x;E.length-=x;break}E.mode=12;break;case 17:for(;14>ea;){if(0===ma)break a;ma--;da+=cb[ab++]<>>=5,ea-=5,E.ndist=(31&da)+1,da>>>=5,ea-=5,E.ncode=(15&da)+4,da>>>=4,ea-=4,286ea;){if(0===ma)break a;ma--;da+=cb[ab++]<>>=3;ea-=3}for(;19>E.have;)E.lens[ib[E.have++]]=0;if(E.lencode=E.lendyn,E.lenbits=7,ja={bits:E.lenbits},M=jc(0,E.lens,0,19,E.lencode,0,E.work,ja),E.lenbits=ja.bits,M){k.msg="invalid code lengths set";E.mode=30;break}E.have=0;E.mode=19;case 19:for(;E.have>>24,Fa=65535&Ua,!(K<=ea);){if(0===ma)break a;ma--;da+=cb[ab++]<Fa)da>>>=K,ea-=K,E.lens[E.have++]=Fa;else{if(16===Fa){for(N=K+2;ea>>=K,ea-=K,0===E.have){k.msg="invalid bit length repeat";E.mode=30;break}aa=E.lens[E.have-1];x=3+(3&da);da>>>=2;ea-=2}else if(17===Fa){for(N=K+3;ea>>=K;ea-=K;aa=0;x=3+(7&da);da>>>=3;ea-=3}else{for(N=K+7;ea>>=K;ea-=K;aa=0;x=11+(127&da);da>>>=7;ea-=7}if(E.have+x>E.nlen+E.ndist){k.msg="invalid bit length repeat";E.mode=30;break}for(;x--;)E.lens[E.have++]=aa}}if(30===E.mode)break; if(0===E.lens[256]){k.msg="invalid code -- missing end-of-block";E.mode=30;break}if(E.lenbits=9,ja={bits:E.lenbits},M=jc(1,E.lens,0,E.nlen,E.lencode,0,E.work,ja),E.lenbits=ja.bits,M){k.msg="invalid literal/lengths set";E.mode=30;break}if(E.distbits=6,E.distcode=E.distdyn,ja={bits:E.distbits},M=jc(2,E.lens,E.nlen,E.ndist,E.distcode,0,E.work,ja),E.distbits=ja.bits,M){k.msg="invalid distances set";E.mode=30;break}if(E.mode=20,6===r)break a;case 20:E.mode=21;case 21:if(6<=ma&&258<=wa){k.next_out=Ia;k.avail_out= wa;k.next_in=ab;k.avail_in=ma;E.hold=da;E.bits=ea;Wb(k,Pa);Ia=k.next_out;Ja=k.output;wa=k.avail_out;ab=k.next_in;cb=k.input;ma=k.avail_in;da=E.hold;ea=E.bits;12===E.mode&&(E.back=-1);break}for(E.back=0;Ua=E.lencode[da&(1<>>24,N=Ua>>>16&255,Fa=65535&Ua,!(K<=ea);){if(0===ma)break a;ma--;da+=cb[ab++]<>P)],K=Ua>>>24,N=Ua>>>16&255,Fa=65535&Ua,!(P+K<=ea);){if(0===ma)break a;ma--;da+=cb[ab++]<>>=P;ea-=P;E.back+=P}if(da>>>=K,ea-=K,E.back+=K,E.length=Fa,0===N){E.mode=26;break}if(32&N){E.back=-1;E.mode=12;break}if(64&N){k.msg="invalid literal/length code";E.mode=30;break}E.extra=15&N;E.mode=22;case 22:if(E.extra){for(N=E.extra;ea>>=E.extra;ea-=E.extra;E.back+=E.extra}E.was=E.length;E.mode=23;case 23:for(;Ua=E.distcode[da&(1<>>24,N=Ua>>>16&255,Fa=65535&Ua,!(K<=ea);){if(0===ma)break a; ma--;da+=cb[ab++]<>P)],K=Ua>>>24,N=Ua>>>16&255,Fa=65535&Ua,!(P+K<=ea);){if(0===ma)break a;ma--;da+=cb[ab++]<>>=P;ea-=P;E.back+=P}if(da>>>=K,ea-=K,E.back+=K,64&N){k.msg="invalid distance code";E.mode=30;break}E.offset=Fa;E.extra=15&N;E.mode=24;case 24:if(E.extra){for(N=E.extra;ea>>=E.extra;ea-=E.extra;E.back+=E.extra}if(E.offset> E.dmax){k.msg="invalid distance too far back";E.mode=30;break}E.mode=25;case 25:if(0===wa)break a;if(x=Pa-wa,E.offset>x){if(x=E.offset-x,x>E.whave&&E.sane){k.msg="invalid distance too far back";E.mode=30;break}x>E.wnext?(x-=E.wnext,z=E.wsize-x):z=E.wnext-x;x>E.length&&(x=E.length);N=E.window}else N=Ja,z=Ia-E.offset,x=E.length;x>wa&&(x=wa);wa-=x;E.length-=x;do Ja[Ia++]=N[z++];while(--x);0===E.length&&(E.mode=21);break;case 26:if(0===wa)break a;Ja[Ia++]=E.length;wa--;E.mode=21;break;case 27:if(E.wrap){for(;32> ea;){if(0===ma)break a;ma--;da|=cb[ab++]<ea;){if(0===ma)break a;ma--;da+=cb[ab++]<E.mode&&(27>E.mode||4!==r))&&u(k,k.output,k.next_out,Pa-k.avail_out)?(E.mode=31,-4):(pa-=k.avail_in,Pa-=k.avail_out,k.total_in+=pa,k.total_out+=Pa,E.total+=Pa,E.wrap&&Pa&&(k.adler=E.check=E.flags?A(E.check,Ja,Pa,k.next_out-Pa):Wa(E.check,Ja,Pa,k.next_out-Pa)),k.data_type=E.bits+(E.last?64:0)+(12===E.mode?128:0)+(20===E.mode||15===E.mode?256:0),(0===pa&&0===Pa||4===r)&& M===Cd&&(M=-5),M)};K.inflateEnd=function(k){if(!k||!k.state)return Y;var r=k.state;return r.window&&(r.window=null),k.state=null,Cd};K.inflateGetHeader=function(k,r){var u;return k&&k.state?(u=k.state,0===(2&u.wrap)?Y:(u.head=r,r.done=!1,Cd)):Y};K.inflateSetDictionary=function(k,r){var x,y,z=r.length;return k&&k.state?(x=k.state,0!==x.wrap&&11!==x.mode?Y:11===x.mode&&(y=1,y=Wa(y,r,z,0),y!==x.check)?-3:u(k,r,z,z)?(x.mode=31,-4):(x.havedict=1,Cd)):Y};K.inflateInfo="pako inflate (from Nodeca project)"}, {"../utils/common":3,"./adler32":5,"./crc32":7,"./inffast":10,"./inftrees":12}],12:[function(z,T,K){var W=z("../utils/common"),ja=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],r=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],Fa=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],x=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24, 25,25,26,26,27,27,28,28,29,29,64,64];T.exports=function(k,u,z,y,K,T,A,Wb){var B,bb,Y,Wa,Qb,Ia,Gb=Wb.bits,ib,Pa,ca,Ga,N,re=0,Wc,aa=null,Bd=0,Ua=new W.Buf16(16);var Ea=new W.Buf16(16);var Bf=null,E=0;for(ib=0;15>=ib;ib++)Ua[ib]=0;for(Pa=0;Paca&&(Gd=ca),0===ca)return K[T++]=20971520,K[T++]=20971520,Wb.bits=1,0;for(Gb=1;Gb=ib;ib++)if(B<<=1,B-=Ua[ib],0>B)return-1;if(0ib;ib++)Ea[ib+1]=Ea[ib]+Ua[ib];for(Pa=0;PaWa?(Qb=Bf[E+A[Pa]],Ia=aa[Bd+A[Pa]]):(Qb=96,Ia=0);B=1<>N)+bb]=wa<<24|Qb<<16|Ia|0;while(0!==bb);for(B=1<>=1;if(0!==B?(Wc&=B-1,Wc+=B):Wc=0,Pa++,0===--Ua[ib]){if(ib===ca)break;ib=u[z+A[Pa]]}if(ib>Gd&&(Wc&y)!==Y){0===N&&(N=Gd);Ea+=Gb;Ga=ib-N;for(B=1<=B));)Ga++,B<<=1;if(re+=1<>>8&255}function x(k,r,u){k.bi_valid>Bd-u?(k.bi_buf|=r<> Bd-k.bi_valid,k.bi_valid+=u-Bd):(k.bi_buf|=r<>>=1,u<<=1;while(0<--r);return u>>>1}function B(k,r,x){var y,I=Array(aa+1),D=0;for(y=1;y<=aa;y++)I[y]=D=D+x[y-1]<<1;for(x=0;x<=r;x++)y=k[2*x+1],0!==y&&(k[2*x]=u(I[y]++,y))}function y(k){var r;for(r=0;rB?da[B]:da[256+(B>>>7)],k(r,I,y),z=Ja[I],0!==z&&(B-=pd[I],x(r,B,z)))}while(Dk.heap_len;){var E=k.heap[++k.heap_len]=2>I?++I: 0;x[2*E]=1;k.depth[E]=0;k.opt_len--;z&&(k.static_len-=y[2*E+1])}r.max_code=I;for(u=k.heap_len>>1;1<=u;u--)A(k,x,u);E=D;do u=k.heap[1],k.heap[1]=k.heap[k.heap_len--],A(k,x,1),y=k.heap[1],k.heap[--k.heap_max]=u,k.heap[--k.heap_max]=y,x[2*E]=x[2*u]+x[2*y],k.depth[E]=(k.depth[u]>=k.depth[y]?k.depth[u]:k.depth[y])+1,x[2*u+1]=x[2*y+1]=E,k.heap[1]=E++,A(k,x,1);while(2<=k.heap_len);k.heap[--k.heap_max]=k.heap[1];var K,M;u=r.dyn_tree;E=r.max_code;D=r.stat_desc.static_tree;var N=r.stat_desc.has_stree,P=r.stat_desc.extra_bits, T=r.stat_desc.extra_base,W=r.stat_desc.max_length,Y=0;for(z=0;z<=aa;z++)k.bl_count[z]=0;u[2*k.heap[k.heap_max]+1]=0;for(r=k.heap_max+1;rW&&(z=W,Y++),u[2*y+1]=z,y>E||(k.bl_count[z]++,K=0,y>=T&&(K=P[y-T]),M=u[2*y],k.opt_len+=M*(z+K),N&&(k.static_len+=M*(D[2*y+1]+K)));if(0!==Y){do{for(z=W-1;0===k.bl_count[z];)z--;k.bl_count[z]--;k.bl_count[z+1]+=2;k.bl_count[W]--;Y-=2}while(0E||(u[2*K+1]!==z&&(k.opt_len+= (z-u[2*K+1])*u[2*K],u[2*K+1]=z),y--)}B(x,I,k.bl_count)}function Cd(k,r,u){var x,y=-1,z=r[1],D=0,I=7,B=4;0===z&&(I=138,B=3);r[2*(u+1)+1]=65535;for(x=0;x<=u;x++){var A=z;z=r[2*(x+1)+1];++D=D?k.bl_tree[2*Bf]++:k.bl_tree[2*E]++,D=0,y=A,0===z?(I=138,B=3):A===z?(I=6,B=3):(I=7,B=4))}}function Y(r,u,y){var z,D,I=-1,B=u[1],A=0,K=7,M=4;0===B&&(K=138,M=3);for(z=0;z<=y;z++)if(D=B,B=u[2*(z+1)+1],!(++A=A?(k(r,Bf,r.bl_tree),x(r,A-3,3)):(k(r,E,r.bl_tree),x(r,A-11,7));A=0;I=D;0===B?(K=138,M=3):D===B?(K=6,M=3):(K=7,M=4)}}function Dd(k){var r,u=4093624447;for(r=0;31>=r;r++,u>>>=1)if(1&u&&0!==k.dyn_ltree[2*r])return Gb;if(0!==k.dyn_ltree[18]||0!==k.dyn_ltree[20]||0!==k.dyn_ltree[26])return ib;for(r=32;rA;A++)for(pa[A]=z,x=0;x<1<A;A++)for(pd[A]=z,x=0;x<1<>=7;A=x;)cb[2*x+1]=8,x++,I[8]++;for(;255>=x;)cb[2*x+1]=9,x++,I[9]++;for(;279>=x;)cb[2*x+1]=7,x++,I[7]++;for(;287>=x;)cb[2*x+1]=8,x++, I[8]++;B(cb,Ga+1,I);for(x=0;x>>3;var D=k.static_len+3+7>>>3;D<=B&&(B=D)}else B=D=u+5;if(u+4<=B&&-1!==r)Qb(k,r,u,z);else if(4===k.strategy||D===B)x(k,2+(z?1:0),3),Wb(k,cb,ma);else{x(k,4+(z?1:0),3);r=k.l_desc.max_code+1;u=k.d_desc.max_code+1;A+=1;x(k,r-257,5);x(k,u-1,5);x(k,A-4,4);for(B=0;B>>8&255,k.pending_buf[k.d_buf+2*k.last_lit+1]=255&r,k.pending_buf[k.l_buf+k.last_lit]=255&u,k.last_lit++,0===r?k.dyn_ltree[2*u]++:(k.matches++,r--,k.dyn_ltree[2*(ea[u]+ca+1)]++,k.dyn_dtree[2*(256>r?da[r]:da[256+(r>>>7)])]++),k.last_lit===k.lit_bufsize-1};K._tr_align=function(r){x(r,2,3);k(r,Ua,cb);16===r.bi_valid?(Fa(r,r.bi_buf),r.bi_buf=0,r.bi_valid=0):8<=r.bi_valid&&(r.pending_buf[r.pending++]=255&r.bi_buf,r.bi_buf>>=8,r.bi_valid-=8)}},{"../utils/common":3}], 15:[function(z,T,K){T.exports=function(){this.input=null;this.total_in=this.avail_in=this.next_in=0;this.output=null;this.total_out=this.avail_out=this.next_out=0;this.msg="";this.state=null;this.data_type=2;this.adler=0}},{}],"/":[function(z,T,K){K=z("./lib/utils/common").assign;var W=z("./lib/deflate"),ja=z("./lib/inflate");z=z("./lib/zlib/constants");var r={};K(r,W,ja,z);T.exports=r},{"./lib/deflate":1,"./lib/inflate":2,"./lib/utils/common":3,"./lib/zlib/constants":6}]},{},[])("/")}); var saveAs=saveAs||function(ba){if(!("undefined"===typeof ba||"undefined"!==typeof navigator&&/MSIE [1-9]\./.test(navigator.userAgent))){var z=ba.document.createElementNS("http://www.w3.org/1999/xhtml","a"),T="download"in z,K=/constructor/i.test(ba.HTMLElement)||ba.safari,W=/CriOS\/[\d]+/.test(navigator.userAgent),ja=function(k){(ba.setImmediate||ba.setTimeout)(function(){throw k;},0)},r=function(k){setTimeout(function(){"string"===typeof k?(ba.URL||ba.webkitURL||ba).revokeObjectURL(k):k.remove()}, 4E4)},Fa=function(k){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(k.type)?new Blob([String.fromCharCode(65279),k],{type:k.type}):k},x=function(k,x,y){y||(k=Fa(k));var u=this,B="application/octet-stream"===k.type,A=function(){var k=["writestart","progress","write","writeend"];k=[].concat(k);for(var r=k.length;r--;){var x=u["on"+k[r]];if("function"===typeof x)try{x.call(u,u)}catch(Dd){ja(Dd)}}};u.readyState=u.INIT;if(T){var Wb=(ba.URL||ba.webkitURL||ba).createObjectURL(k); setTimeout(function(){z.href=Wb;z.download=x;var k=new MouseEvent("click");z.dispatchEvent(k);A();r(Wb);u.readyState=u.DONE})}else(function(){if((W||B&&K)&&ba.FileReader){var x=new FileReader;x.onloadend=function(){var k=W?x.result:x.result.replace(/^data:[^;]*;/,"data:attachment/file;");ba.open(k,"_blank")||(ba.location.href=k);u.readyState=u.DONE;A()};x.readAsDataURL(k);u.readyState=u.INIT}else Wb||(Wb=(ba.URL||ba.webkitURL||ba).createObjectURL(k)),B?ba.location.href=Wb:ba.open(Wb,"_blank")||(ba.location.href= Wb),u.readyState=u.DONE,A(),r(Wb)})()},k=x.prototype;if("undefined"!==typeof navigator&&navigator.msSaveOrOpenBlob)return function(k,r,x){r=r||k.name||"download";x||(k=Fa(k));return navigator.msSaveOrOpenBlob(k,r)};k.abort=function(){};k.readyState=k.INIT=0;k.WRITING=1;k.DONE=2;k.error=k.onwritestart=k.onprogress=k.onwrite=k.onabort=k.onerror=k.onwriteend=null;return function(k,r,y){return new x(k,r||k.name||"download",y)}}}("undefined"!==typeof self&&self||"undefined"!==typeof window&&window||this.content); "undefined"!==typeof module&&module.exports?module.exports.saveAs=saveAs:"undefined"!==typeof define&&null!==define&&null!==define.amd&&define("FileSaver.js",function(){return saveAs});"function"==typeof define&&define.__amd&&(define.amd=define.__amd,delete define.__amd); //# sourceMappingURL=CherryGame.js.map