/*
* EaselJS
* Visit http://createjs.com/ for documentation, updates and examples.
*
* Copyright (c) 2011 gskinner.com, inc.
* 
* Distributed under the terms of the MIT license.
* http://www.opensource.org/licenses/mit-license.html
*
* This notice shall be included in all copies or substantial portions of the Software.
*/
this.createjs=this.createjs||{};
(function(){var c=function(){},b=c.prototype;c.initialize=function(a){a.addEventListener=b.addEventListener;a.on=b.on;a.removeEventListener=a.off=b.removeEventListener;a.removeAllEventListeners=b.removeAllEventListeners;a.hasEventListener=b.hasEventListener;a.dispatchEvent=b.dispatchEvent;a._dispatchEvent=b._dispatchEvent};b._listeners=null;b._captureListeners=null;b.initialize=function(){};b.addEventListener=function(a,h,b){var d;d=b?this._captureListeners=this._captureListeners||{}:this._listeners=
this._listeners||{};var e=d[a];e&&this.removeEventListener(a,h,b);(e=d[a])?e.push(h):d[a]=[h];return h};b.on=function(a,h,b,d,e,c){h.handleEvent&&(b=b||h,h=h.handleEvent);b=b||this;return this.addEventListener(a,function(a){h.call(b,a,e);d&&a.remove()},c)};b.removeEventListener=function(a,h,b){if(b=b?this._captureListeners:this._listeners){var d=b[a];if(d)for(var e=0,c=d.length;e<c;e++)if(d[e]==h){1==c?delete b[a]:d.splice(e,1);break}}};b.off=b.removeEventListener;b.removeAllEventListeners=function(a){a?
(this._listeners&&delete this._listeners[a],this._captureListeners&&delete this._captureListeners[a]):this._listeners=this._captureListeners=null};b.dispatchEvent=function(a,h){if("string"==typeof a){var b=this._listeners;if(!b||!b[a])return!1;a=new createjs.Event(a)}a.target=h||this;if(!a.bubbles||!this.parent)this._dispatchEvent(a,2);else{for(var d=this,b=[d];d.parent;)b.push(d=d.parent);for(var e=b.length,d=e-1;0<=d&&!a.propagationStopped;d--)b[d]._dispatchEvent(a,1+(0==d));for(d=1;d<e&&!a.propagationStopped;d++)b[d]._dispatchEvent(a,
3)}return a.defaultPrevented};b.hasEventListener=function(a){var h=this._listeners,b=this._captureListeners;return!!(h&&h[a]||b&&b[a])};b.toString=function(){return"[EventDispatcher]"};b._dispatchEvent=function(a,h){var b,d=1==h?this._captureListeners:this._listeners;if(a&&d&&(d=d[a.type])&&(b=d.length)){a.currentTarget=this;a.eventPhase=h;a.removed=!1;for(var d=d.slice(),e=0;e<b&&!a.immediatePropagationStopped;e++){var c=d[e];c.handleEvent?c.handleEvent(a):c(a);a.removed&&(this.off(a.type,c,1==h),
a.removed=!1)}}};createjs.EventDispatcher=c})();this.createjs=this.createjs||{};
(function(){var c=function(a,h,b){this.initialize(a,h,b)},b=c.prototype;b.type=null;b.target=null;b.currentTarget=null;b.eventPhase=0;b.bubbles=!1;b.cancelable=!1;b.timeStamp=0;b.defaultPrevented=!1;b.propagationStopped=!1;b.immediatePropagationStopped=!1;b.removed=!1;b.initialize=function(a,h,b){this.type=a;this.bubbles=h;this.cancelable=b;this.timeStamp=(new Date).getTime()};b.preventDefault=function(){this.defaultPrevented=!0};b.stopPropagation=function(){this.propagationStopped=!0};b.stopImmediatePropagation=
function(){this.immediatePropagationStopped=this.propagationStopped=!0};b.remove=function(){this.removed=!0};b.clone=function(){return new c(this.type,this.bubbles,this.cancelable)};b.toString=function(){return"[Event (type="+this.type+")]"};createjs.Event=c})();this.createjs=this.createjs||{};(function(){createjs.indexOf=function(c,b){for(var a=0,h=c.length;a<h;a++)if(b===c[a])return a;return-1}})();this.createjs=this.createjs||{};
(function(){var c=function(){throw"Ticker cannot be instantiated.";};c.RAF_SYNCHED="synched";c.RAF="raf";c.TIMEOUT="timeout";c.useRAF=!1;c.timingMode=null;c.addEventListener=null;c.removeEventListener=null;c.removeAllEventListeners=null;c.dispatchEvent=null;c.hasEventListener=null;c._listeners=null;createjs.EventDispatcher.initialize(c);c._paused=!1;c._inited=!1;c._startTime=0;c._pausedTime=0;c._ticks=0;c._pausedTicks=0;c._interval=50;c._lastTime=0;c._times=null;c._tickTimes=null;c._rafActive=!1;
c._timeoutID=null;c.init=function(){c._inited=!0;c._times=[];c._tickTimes=[];c._startTime=c._getTime();c._times.push(c._lastTime=0);c.setInterval(c._interval)};c.setInterval=function(a){c._interval=a;c._inited&&c._setupTick()};c.getInterval=function(){return c._interval};c.setFPS=function(a){c.setInterval(1E3/a)};c.getFPS=function(){return 1E3/c._interval};c.getMeasuredTickTime=function(a){var h=c._tickTimes;if(1>h.length)return-1;a=Math.min(h.length,a||c.getFPS()|0);for(var b=0;b<a;b++);return h/
a};c.getMeasuredFPS=function(a){var h=c._times;if(2>h.length)return-1;a=Math.min(h.length-1,a||c.getFPS()|0);return 1E3/((h[0]-h[a])/a)};c.setPaused=function(a){c._paused=a};c.getPaused=function(){return c._paused};c.getTime=function(a){return c._getTime()-c._startTime-(a?c._pausedTime:0)};c.getEventTime=function(a){return(c._lastTime||c._startTime)-(a?c._pausedTime:0)};c.getTicks=function(a){return c._ticks-(a?c._pausedTicks:0)};c._handleSynch=function(){var a=c._getTime()-c._startTime;c._rafActive=
!1;c._setupTick();a-c._lastTime>=0.97*(c._interval-1)&&c._tick()};c._handleRAF=function(){c._rafActive=!1;c._setupTick();c._tick()};c._handleTimeout=function(){c.timeoutID=null;c._setupTick();c._tick()};c._setupTick=function(){if(!(c._rafActive||null!=c.timeoutID)){var a=c.timingMode||c.useRAF&&c.RAF_SYNCHED;if(a==c.RAF_SYNCHED||a==c.RAF){var h=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame;
if(h){h(a==c.RAF?c._handleRAF:c._handleSynch);c._rafActive=!0;return}}c.timeoutID=setTimeout(c._handleTimeout,c._interval)}};c._tick=function(){var a=c._getTime()-c._startTime,h=a-c._lastTime,b=c._paused;c._ticks++;b&&(c._pausedTicks++,c._pausedTime+=h);c._lastTime=a;if(c.hasEventListener("tick")){var d=new createjs.Event("tick");d.paused=b;d.delta=h;d.time=a;d.runTime=a-c._pausedTime;c.dispatchEvent(d)}for(c._tickTimes.unshift(c._getTime()-a);100<c._tickTimes.length;)c._tickTimes.pop();for(c._times.unshift(a);100<
c._times.length;)c._times.pop()};var b=window.performance&&(performance.now||performance.mozNow||performance.msNow||performance.oNow||performance.webkitNow);c._getTime=function(){return b&&b.call(performance)||(new Date).getTime()};c.init();createjs.Ticker=c})();this.createjs=this.createjs||{};(function(){var c=function(){throw"UID cannot be instantiated";};c._nextID=0;c.get=function(){return c._nextID++};createjs.UID=c})();this.createjs=this.createjs||{};
(function(){var c=function(a,h,b,d,e,c,j,k,l,n){this.initialize(a,h,b,d,e,c,j,k,l,n)},b=c.prototype=new createjs.Event;b.stageX=0;b.stageY=0;b.rawX=0;b.rawY=0;b.nativeEvent=null;b.pointerID=0;b.primary=!1;b.addEventListener=null;b.removeEventListener=null;b.removeAllEventListeners=null;b.dispatchEvent=null;b.hasEventListener=null;b._listeners=null;createjs.EventDispatcher.initialize(b);b.Event_initialize=b.initialize;b.initialize=function(a,h,b,d,e,c,j,k,l,n){this.Event_initialize(a,h,b);this.stageX=
d;this.stageY=e;this.nativeEvent=c;this.pointerID=j;this.primary=k;this.rawX=null==l?d:l;this.rawY=null==n?e:n};b.clone=function(){return new c(this.type,this.bubbles,this.cancelable,this.stageX,this.stageY,this.target,this.nativeEvent,this.pointerID,this.primary,this.rawX,this.rawY)};b.toString=function(){return"[MouseEvent (type="+this.type+" stageX="+this.stageX+" stageY="+this.stageY+")]"};createjs.MouseEvent=c})();this.createjs=this.createjs||{};
(function(){var c=function(a,h,b,d,e,c){this.initialize(a,h,b,d,e,c)},b=c.prototype;c.identity=null;c.DEG_TO_RAD=Math.PI/180;b.a=1;b.b=0;b.c=0;b.d=1;b.tx=0;b.ty=0;b.alpha=1;b.shadow=null;b.compositeOperation=null;b.initialize=function(a,h,b,d,e,c){this.a=null==a?1:a;this.b=h||0;this.c=b||0;this.d=null==d?1:d;this.tx=e||0;this.ty=c||0;return this};b.prepend=function(a,h,b,d,e,c){var j=this.tx;if(1!=a||0!=h||0!=b||1!=d){var k=this.a,l=this.c;this.a=k*a+this.b*b;this.b=k*h+this.b*d;this.c=l*a+this.d*
b;this.d=l*h+this.d*d}this.tx=j*a+this.ty*b+e;this.ty=j*h+this.ty*d+c;return this};b.append=function(a,h,b,d,e,c){var j=this.a,k=this.b,l=this.c,n=this.d;this.a=a*j+h*l;this.b=a*k+h*n;this.c=b*j+d*l;this.d=b*k+d*n;this.tx=e*j+c*l+this.tx;this.ty=e*k+c*n+this.ty;return this};b.prependMatrix=function(a){this.prepend(a.a,a.b,a.c,a.d,a.tx,a.ty);this.prependProperties(a.alpha,a.shadow,a.compositeOperation);return this};b.appendMatrix=function(a){this.append(a.a,a.b,a.c,a.d,a.tx,a.ty);this.appendProperties(a.alpha,
a.shadow,a.compositeOperation);return this};b.prependTransform=function(a,h,b,d,e,f,j,k,l){if(e%360){var n=e*c.DEG_TO_RAD;e=Math.cos(n);n=Math.sin(n)}else e=1,n=0;if(k||l)this.tx-=k,this.ty-=l;f||j?(f*=c.DEG_TO_RAD,j*=c.DEG_TO_RAD,this.prepend(e*b,n*b,-n*d,e*d,0,0),this.prepend(Math.cos(j),Math.sin(j),-Math.sin(f),Math.cos(f),a,h)):this.prepend(e*b,n*b,-n*d,e*d,a,h);return this};b.appendTransform=function(a,h,b,d,e,f,j,k,l){if(e%360){var n=e*c.DEG_TO_RAD;e=Math.cos(n);n=Math.sin(n)}else e=1,n=0;f||
j?(f*=c.DEG_TO_RAD,j*=c.DEG_TO_RAD,this.append(Math.cos(j),Math.sin(j),-Math.sin(f),Math.cos(f),a,h),this.append(e*b,n*b,-n*d,e*d,0,0)):this.append(e*b,n*b,-n*d,e*d,a,h);if(k||l)this.tx-=k*this.a+l*this.c,this.ty-=k*this.b+l*this.d;return this};b.rotate=function(a){var h=Math.cos(a);a=Math.sin(a);var b=this.a,d=this.c,c=this.tx;this.a=b*h-this.b*a;this.b=b*a+this.b*h;this.c=d*h-this.d*a;this.d=d*a+this.d*h;this.tx=c*h-this.ty*a;this.ty=c*a+this.ty*h;return this};b.skew=function(a,h){a*=c.DEG_TO_RAD;
h*=c.DEG_TO_RAD;this.append(Math.cos(h),Math.sin(h),-Math.sin(a),Math.cos(a),0,0);return this};b.scale=function(a,h){this.a*=a;this.d*=h;this.c*=a;this.b*=h;this.tx*=a;this.ty*=h;return this};b.translate=function(a,h){this.tx+=a;this.ty+=h;return this};b.identity=function(){this.alpha=this.a=this.d=1;this.b=this.c=this.tx=this.ty=0;this.shadow=this.compositeOperation=null;return this};b.invert=function(){var a=this.a,h=this.b,b=this.c,d=this.d,c=this.tx,f=a*d-h*b;this.a=d/f;this.b=-h/f;this.c=-b/
f;this.d=a/f;this.tx=(b*this.ty-d*c)/f;this.ty=-(a*this.ty-h*c)/f;return this};b.isIdentity=function(){return 0==this.tx&&0==this.ty&&1==this.a&&0==this.b&&0==this.c&&1==this.d};b.transformPoint=function(a,b,g){g=g||{};g.x=a*this.a+b*this.c+this.tx;g.y=a*this.b+b*this.d+this.ty;return g};b.decompose=function(a){null==a&&(a={});a.x=this.tx;a.y=this.ty;a.scaleX=Math.sqrt(this.a*this.a+this.b*this.b);a.scaleY=Math.sqrt(this.c*this.c+this.d*this.d);var b=Math.atan2(-this.c,this.d),g=Math.atan2(this.b,
this.a);b==g?(a.rotation=g/c.DEG_TO_RAD,0>this.a&&0<=this.d&&(a.rotation+=0>=a.rotation?180:-180),a.skewX=a.skewY=0):(a.skewX=b/c.DEG_TO_RAD,a.skewY=g/c.DEG_TO_RAD);return a};b.reinitialize=function(a,b,g,d,c,f,j,k,l){this.initialize(a,b,g,d,c,f);this.alpha=null==j?1:j;this.shadow=k;this.compositeOperation=l;return this};b.copy=function(a){return this.reinitialize(a.a,a.b,a.c,a.d,a.tx,a.ty,a.alpha,a.shadow,a.compositeOperation)};b.appendProperties=function(a,b,g){this.alpha*=a;this.shadow=b||this.shadow;
this.compositeOperation=g||this.compositeOperation;return this};b.prependProperties=function(a,b,g){this.alpha*=a;this.shadow=this.shadow||b;this.compositeOperation=this.compositeOperation||g;return this};b.clone=function(){return(new c).copy(this)};b.toString=function(){return"[Matrix2D (a="+this.a+" b="+this.b+" c="+this.c+" d="+this.d+" tx="+this.tx+" ty="+this.ty+")]"};c.identity=new c;createjs.Matrix2D=c})();this.createjs=this.createjs||{};(function(){var c=function(a,b){this.initialize(a,b)},b=c.prototype;b.x=0;b.y=0;b.initialize=function(a,b){this.x=null==a?0:a;this.y=null==b?0:b;return this};b.copy=function(a){return this.initialize(a.x,a.y)};b.clone=function(){return new c(this.x,this.y)};b.toString=function(){return"[Point (x="+this.x+" y="+this.y+")]"};createjs.Point=c})();this.createjs=this.createjs||{};
(function(){var c=function(a,b,g,d){this.initialize(a,b,g,d)},b=c.prototype;b.x=0;b.y=0;b.width=0;b.height=0;b.initialize=function(a,b,g,d){this.x=a||0;this.y=b||0;this.width=g||0;this.height=d||0;return this};b.copy=function(a){return this.initialize(a.x,a.y,a.width,a.height)};b.clone=function(){return new c(this.x,this.y,this.width,this.height)};b.toString=function(){return"[Rectangle (x="+this.x+" y="+this.y+" width="+this.width+" height="+this.height+")]"};createjs.Rectangle=c})();this.createjs=this.createjs||{};
(function(){var c=function(a,b,g,d,c,f,j){this.initialize(a,b,g,d,c,f,j)},b=c.prototype;b.target=null;b.overLabel=null;b.outLabel=null;b.downLabel=null;b.play=!1;b._isPressed=!1;b._isOver=!1;b.initialize=function(a,b,g,d,c,f,j){a.addEventListener&&(this.target=a,a.cursor="pointer",this.overLabel=null==g?"over":g,this.outLabel=null==b?"out":b,this.downLabel=null==d?"down":d,this.play=c,this.setEnabled(!0),this.handleEvent({}),f&&(j&&(f.actionsEnabled=!1,f.gotoAndStop&&f.gotoAndStop(j)),a.hitArea=f))};
b.setEnabled=function(a){var b=this.target;a?(b.addEventListener("rollover",this),b.addEventListener("rollout",this),b.addEventListener("mousedown",this),b.addEventListener("pressup",this)):(b.removeEventListener("rollover",this),b.removeEventListener("rollout",this),b.removeEventListener("mousedown",this),b.removeEventListener("pressup",this))};b.toString=function(){return"[ButtonHelper]"};b.handleEvent=function(a){var b=this.target;a=a.type;"mousedown"==a?(this._isPressed=!0,a=this.downLabel):"pressup"==
a?(this._isPressed=!1,a=this._isOver?this.overLabel:this.outLabel):"rollover"==a?(this._isOver=!0,a=this._isPressed?this.downLabel:this.overLabel):(this._isOver=!1,a=this._isPressed?this.overLabel:this.outLabel);this.play?b.gotoAndPlay&&b.gotoAndPlay(a):b.gotoAndStop&&b.gotoAndStop(a)};createjs.ButtonHelper=c})();this.createjs=this.createjs||{};(function(){var c=function(a,b,g,d){this.initialize(a,b,g,d)},b=c.prototype;c.identity=null;b.color=null;b.offsetX=0;b.offsetY=0;b.blur=0;b.initialize=function(a,b,g,d){this.color=a;this.offsetX=b;this.offsetY=g;this.blur=d};b.toString=function(){return"[Shadow]"};b.clone=function(){return new c(this.color,this.offsetX,this.offsetY,this.blur)};c.identity=new c("transparent",0,0,0);createjs.Shadow=c})();this.createjs=this.createjs||{};
(function(){var c=function(a){this.initialize(a)},b=c.prototype=new createjs.EventDispatcher;b.complete=!0;b.framerate=0;b._animations=null;b._frames=null;b._images=null;b._data=null;b._loadCount=0;b._frameHeight=0;b._frameWidth=0;b._numFrames=0;b._regX=0;b._regY=0;b.initialize=function(a){var b,g,d;if(null!=a){this.framerate=a.framerate||0;if(a.images&&0<(g=a.images.length)){d=this._images=[];for(b=0;b<g;b++){var c=a.images[b];if("string"==typeof c){var f=c,c=new Image;c.src=f}d.push(c);!c.getContext&&
!c.complete&&(this._loadCount++,this.complete=!1,function(a){c.onload=function(){a._handleImageLoad()}}(this))}}if(null!=a.frames)if(a.frames instanceof Array){this._frames=[];d=a.frames;b=0;for(g=d.length;b<g;b++)f=d[b],this._frames.push({image:this._images[f[4]?f[4]:0],rect:new createjs.Rectangle(f[0],f[1],f[2],f[3]),regX:f[5]||0,regY:f[6]||0})}else g=a.frames,this._frameWidth=g.width,this._frameHeight=g.height,this._regX=g.regX||0,this._regY=g.regY||0,this._numFrames=g.count,0==this._loadCount&&
this._calculateFrames();this._animations=[];if(null!=(g=a.animations)){this._data={};for(var j in g){a={name:j};f=g[j];if("number"==typeof f)d=a.frames=[f];else if(f instanceof Array)if(1==f.length)a.frames=[f[0]];else{a.speed=f[3];a.next=f[2];d=a.frames=[];for(b=f[0];b<=f[1];b++)d.push(b)}else a.speed=f.speed,a.next=f.next,b=f.frames,d=a.frames="number"==typeof b?[b]:b.slice(0);if(!0===a.next||void 0===a.next)a.next=j;if(!1===a.next||2>d.length&&a.next==j)a.next=null;a.speed||(a.speed=1);this._animations.push(j);
this._data[j]=a}}}};b.getNumFrames=function(a){if(null==a)return this._frames?this._frames.length:this._numFrames;a=this._data[a];return null==a?0:a.frames.length};b.getAnimations=function(){return this._animations.slice(0)};b.getAnimation=function(a){return this._data[a]};b.getFrame=function(a){var b;return this._frames&&(b=this._frames[a])?b:null};b.getFrameBounds=function(a){return(a=this.getFrame(a))?new createjs.Rectangle(-a.regX,-a.regY,a.rect.width,a.rect.height):null};b.toString=function(){return"[SpriteSheet]"};
b.clone=function(){var a=new c;a.complete=this.complete;a._animations=this._animations;a._frames=this._frames;a._images=this._images;a._data=this._data;a._frameHeight=this._frameHeight;a._frameWidth=this._frameWidth;a._numFrames=this._numFrames;a._loadCount=this._loadCount;return a};b._handleImageLoad=function(){0==--this._loadCount&&(this._calculateFrames(),this.complete=!0,this.dispatchEvent("complete"))};b._calculateFrames=function(){if(!(this._frames||0==this._frameWidth)){this._frames=[];for(var a=
0,b=this._frameWidth,g=this._frameHeight,d=0,c=this._images;d<c.length;d++){for(var f=c[d],j=(f.width+1)/b|0,k=(f.height+1)/g|0,k=0<this._numFrames?Math.min(this._numFrames-a,j*k):j*k,l=0;l<k;l++)this._frames.push({image:f,rect:new createjs.Rectangle(l%j*b,(l/j|0)*g,b,g),regX:this._regX,regY:this._regY});a+=k}this._numFrames=a}};createjs.SpriteSheet=c})();this.createjs=this.createjs||{};
(function(){function c(a,b,h){this.f=a;this.params=b;this.path=null==h?!0:h}c.prototype.exec=function(a){this.f.apply(a,this.params)};var b=function(){this.initialize()},a=b.prototype;b.getRGB=function(a,b,h,g){null!=a&&null==h&&(g=b,h=a&255,b=a>>8&255,a=a>>16&255);return null==g?"rgb("+a+","+b+","+h+")":"rgba("+a+","+b+","+h+","+g+")"};b.getHSL=function(a,b,h,g){return null==g?"hsl("+a%360+","+b+"%,"+h+"%)":"hsla("+a%360+","+b+"%,"+h+"%,"+g+")"};b.Command=c;b.BASE_64={A:0,B:1,C:2,D:3,E:4,F:5,G:6,
H:7,I:8,J:9,K:10,L:11,M:12,N:13,O:14,P:15,Q:16,R:17,S:18,T:19,U:20,V:21,W:22,X:23,Y:24,Z:25,a:26,b:27,c:28,d:29,e:30,f:31,g:32,h:33,i:34,j:35,k:36,l:37,m:38,n:39,o:40,p:41,q:42,r:43,s:44,t:45,u:46,v:47,w:48,x:49,y:50,z:51,"0":52,1:53,2:54,3:55,4:56,5:57,6:58,7:59,8:60,9:61,"+":62,"/":63};b.STROKE_CAPS_MAP=["butt","round","square"];b.STROKE_JOINTS_MAP=["miter","round","bevel"];var h=createjs.createCanvas?createjs.createCanvas():document.createElement("canvas");if(h.getContext){var g=b._ctx=h.getContext("2d");
b.beginCmd=new c(g.beginPath,[],!1);b.fillCmd=new c(g.fill,[],!1);b.strokeCmd=new c(g.stroke,[],!1);h.width=h.height=1}a._strokeInstructions=null;a._strokeStyleInstructions=null;a._strokeIgnoreScale=!1;a._fillInstructions=null;a._fillMatrix=null;a._instructions=null;a._oldInstructions=null;a._activeInstructions=null;a._active=!1;a._dirty=!1;a.initialize=function(){this.clear();this._ctx=b._ctx};a.isEmpty=function(){return!(this._instructions.length||this._oldInstructions.length||this._activeInstructions.length)};
a.draw=function(a){this._dirty&&this._updateInstructions();for(var b=this._instructions,h=0,g=b.length;h<g;h++)b[h].exec(a)};a.drawAsPath=function(a){this._dirty&&this._updateInstructions();for(var b,h=this._instructions,g=0,c=h.length;g<c;g++)((b=h[g]).path||0==g)&&b.exec(a)};a.moveTo=function(a,b){this._activeInstructions.push(new c(this._ctx.moveTo,[a,b]));return this};a.lineTo=function(a,b){this._dirty=this._active=!0;this._activeInstructions.push(new c(this._ctx.lineTo,[a,b]));return this};a.arcTo=
function(a,b,h,g,k){this._dirty=this._active=!0;this._activeInstructions.push(new c(this._ctx.arcTo,[a,b,h,g,k]));return this};a.arc=function(a,b,h,g,k,l){this._dirty=this._active=!0;null==l&&(l=!1);this._activeInstructions.push(new c(this._ctx.arc,[a,b,h,g,k,l]));return this};a.quadraticCurveTo=function(a,b,h,g){this._dirty=this._active=!0;this._activeInstructions.push(new c(this._ctx.quadraticCurveTo,[a,b,h,g]));return this};a.bezierCurveTo=function(a,b,h,g,k,l){this._dirty=this._active=!0;this._activeInstructions.push(new c(this._ctx.bezierCurveTo,
[a,b,h,g,k,l]));return this};a.rect=function(a,b,h,g){this._dirty=this._active=!0;this._activeInstructions.push(new c(this._ctx.rect,[a,b,h,g]));return this};a.closePath=function(){this._active&&(this._dirty=!0,this._activeInstructions.push(new c(this._ctx.closePath,[])));return this};a.clear=function(){this._instructions=[];this._oldInstructions=[];this._activeInstructions=[];this._strokeStyleInstructions=this._strokeInstructions=this._fillInstructions=this._fillMatrix=null;this._active=this._dirty=
this._strokeIgnoreScale=!1;return this};a.beginFill=function(a){this._active&&this._newPath();this._fillInstructions=a?[new c(this._setProp,["fillStyle",a],!1)]:null;this._fillMatrix=null;return this};a.beginLinearGradientFill=function(a,b,h,g,k,l){this._active&&this._newPath();h=this._ctx.createLinearGradient(h,g,k,l);g=0;for(k=a.length;g<k;g++)h.addColorStop(b[g],a[g]);this._fillInstructions=[new c(this._setProp,["fillStyle",h],!1)];this._fillMatrix=null;return this};a.beginRadialGradientFill=function(a,
b,h,g,k,l,n,m){this._active&&this._newPath();h=this._ctx.createRadialGradient(h,g,k,l,n,m);g=0;for(k=a.length;g<k;g++)h.addColorStop(b[g],a[g]);this._fillInstructions=[new c(this._setProp,["fillStyle",h],!1)];this._fillMatrix=null;return this};a.beginBitmapFill=function(a,b,h){this._active&&this._newPath();a=this._ctx.createPattern(a,b||"");this._fillInstructions=[new c(this._setProp,["fillStyle",a],!1)];this._fillMatrix=h?[h.a,h.b,h.c,h.d,h.tx,h.ty]:null;return this};a.endFill=function(){return this.beginFill()};
a.setStrokeStyle=function(a,h,g,j,k){this._active&&this._newPath();this._strokeStyleInstructions=[new c(this._setProp,["lineWidth",null==a?"1":a],!1),new c(this._setProp,["lineCap",null==h?"butt":isNaN(h)?h:b.STROKE_CAPS_MAP[h]],!1),new c(this._setProp,["lineJoin",null==g?"miter":isNaN(g)?g:b.STROKE_JOINTS_MAP[g]],!1),new c(this._setProp,["miterLimit",null==j?"10":j],!1)];this._strokeIgnoreScale=k;return this};a.beginStroke=function(a){this._active&&this._newPath();this._strokeInstructions=a?[new c(this._setProp,
["strokeStyle",a],!1)]:null;return this};a.beginLinearGradientStroke=function(a,b,h,g,k,l){this._active&&this._newPath();h=this._ctx.createLinearGradient(h,g,k,l);g=0;for(k=a.length;g<k;g++)h.addColorStop(b[g],a[g]);this._strokeInstructions=[new c(this._setProp,["strokeStyle",h],!1)];return this};a.beginRadialGradientStroke=function(a,b,h,g,k,l,n,m){this._active&&this._newPath();h=this._ctx.createRadialGradient(h,g,k,l,n,m);g=0;for(k=a.length;g<k;g++)h.addColorStop(b[g],a[g]);this._strokeInstructions=
[new c(this._setProp,["strokeStyle",h],!1)];return this};a.beginBitmapStroke=function(a,b){this._active&&this._newPath();var h=this._ctx.createPattern(a,b||"");this._strokeInstructions=[new c(this._setProp,["strokeStyle",h],!1)];return this};a.endStroke=function(){this.beginStroke();return this};a.curveTo=a.quadraticCurveTo;a.drawRect=a.rect;a.drawRoundRect=function(a,b,h,g,c){this.drawRoundRectComplex(a,b,h,g,c,c,c,c);return this};a.drawRoundRectComplex=function(a,b,h,g,k,l,n,m){var p=(h<g?h:g)/
2,q=0,r=0,s=0,u=0;0>k&&(k*=q=-1);k>p&&(k=p);0>l&&(l*=r=-1);l>p&&(l=p);0>n&&(n*=s=-1);n>p&&(n=p);0>m&&(m*=u=-1);m>p&&(m=p);this._dirty=this._active=!0;var p=this._ctx.arcTo,t=this._ctx.lineTo;this._activeInstructions.push(new c(this._ctx.moveTo,[a+h-l,b]),new c(p,[a+h+l*r,b-l*r,a+h,b+l,l]),new c(t,[a+h,b+g-n]),new c(p,[a+h+n*s,b+g+n*s,a+h-n,b+g,n]),new c(t,[a+m,b+g]),new c(p,[a-m*u,b+g+m*u,a,b+g-m,m]),new c(t,[a,b+k]),new c(p,[a-k*q,b-k*q,a+k,b,k]),new c(this._ctx.closePath));return this};a.drawCircle=
function(a,b,h){this.arc(a,b,h,0,2*Math.PI);return this};a.drawEllipse=function(a,b,h,g){this._dirty=this._active=!0;var k=0.5522848*(h/2),l=0.5522848*(g/2),n=a+h,m=b+g;h=a+h/2;g=b+g/2;this._activeInstructions.push(new c(this._ctx.moveTo,[a,g]),new c(this._ctx.bezierCurveTo,[a,g-l,h-k,b,h,b]),new c(this._ctx.bezierCurveTo,[h+k,b,n,g-l,n,g]),new c(this._ctx.bezierCurveTo,[n,g+l,h+k,m,h,m]),new c(this._ctx.bezierCurveTo,[h-k,m,a,g+l,a,g]));return this};a.inject=function(a,b){this._dirty=this._active=
!0;this._activeInstructions.push(new c(a,[b]));return this};a.drawPolyStar=function(a,b,h,g,k,l){this._dirty=this._active=!0;null==k&&(k=0);k=1-k;l=null==l?0:l/(180/Math.PI);var n=Math.PI/g;this._activeInstructions.push(new c(this._ctx.moveTo,[a+Math.cos(l)*h,b+Math.sin(l)*h]));for(var m=0;m<g;m++)l+=n,1!=k&&this._activeInstructions.push(new c(this._ctx.lineTo,[a+Math.cos(l)*h*k,b+Math.sin(l)*h*k])),l+=n,this._activeInstructions.push(new c(this._ctx.lineTo,[a+Math.cos(l)*h,b+Math.sin(l)*h]));return this};
a.decodePath=function(a){for(var h=[this.moveTo,this.lineTo,this.quadraticCurveTo,this.bezierCurveTo,this.closePath],g=[2,2,4,6,0],c=0,k=a.length,l=[],n=0,m=0,p=b.BASE_64;c<k;){var q=a.charAt(c),r=p[q],s=r>>3,u=h[s];if(!u||r&3)throw"bad path data (@"+c+"): "+q;q=g[s];s||(n=m=0);l.length=0;c++;r=(r>>2&1)+2;for(s=0;s<q;s++){var t=p[a.charAt(c)],v=t>>5?-1:1,t=(t&31)<<6|p[a.charAt(c+1)];3==r&&(t=t<<6|p[a.charAt(c+2)]);t=v*t/10;s%2?n=t+=n:m=t+=m;l[s]=t;c+=r}u.apply(this,l)}return this};a.clone=function(){var a=
new b;a._instructions=this._instructions.slice();a._activeInstructions=this._activeInstructions.slice();a._oldInstructions=this._oldInstructions.slice();this._fillInstructions&&(a._fillInstructions=this._fillInstructions.slice());this._strokeInstructions&&(a._strokeInstructions=this._strokeInstructions.slice());this._strokeStyleInstructions&&(a._strokeStyleInstructions=this._strokeStyleInstructions.slice());a._active=this._active;a._dirty=this._dirty;a._fillMatrix=this._fillMatrix;a._strokeIgnoreScale=
this._strokeIgnoreScale;return a};a.toString=function(){return"[Graphics]"};a.mt=a.moveTo;a.lt=a.lineTo;a.at=a.arcTo;a.bt=a.bezierCurveTo;a.qt=a.quadraticCurveTo;a.a=a.arc;a.r=a.rect;a.cp=a.closePath;a.c=a.clear;a.f=a.beginFill;a.lf=a.beginLinearGradientFill;a.rf=a.beginRadialGradientFill;a.bf=a.beginBitmapFill;a.ef=a.endFill;a.ss=a.setStrokeStyle;a.s=a.beginStroke;a.ls=a.beginLinearGradientStroke;a.rs=a.beginRadialGradientStroke;a.bs=a.beginBitmapStroke;a.es=a.endStroke;a.dr=a.drawRect;a.rr=a.drawRoundRect;
a.rc=a.drawRoundRectComplex;a.dc=a.drawCircle;a.de=a.drawEllipse;a.dp=a.drawPolyStar;a.p=a.decodePath;a._updateInstructions=function(){this._instructions=this._oldInstructions.slice();this._instructions.push(b.beginCmd);this._appendInstructions(this._fillInstructions);this._appendInstructions(this._strokeInstructions);this._appendInstructions(this._strokeInstructions&&this._strokeStyleInstructions);this._appendInstructions(this._activeInstructions);this._fillInstructions&&this._appendDraw(b.fillCmd,
this._fillMatrix);this._strokeInstructions&&this._appendDraw(b.strokeCmd,this._strokeIgnoreScale&&[1,0,0,1,0,0])};a._appendInstructions=function(a){a&&this._instructions.push.apply(this._instructions,a)};a._appendDraw=function(a,b){b?this._instructions.push(new c(this._ctx.save,[],!1),new c(this._ctx.setTransform,b,!1),a,new c(this._ctx.restore,[],!1)):this._instructions.push(a)};a._newPath=function(){this._dirty&&this._updateInstructions();this._oldInstructions=this._instructions;this._activeInstructions=
[];this._active=this._dirty=!1};a._setProp=function(a,b){this[a]=b};createjs.Graphics=b})();this.createjs=this.createjs||{};
(function(){var c=function(){this.initialize()},b=c.prototype=new createjs.EventDispatcher;c.suppressCrossDomainErrors=!1;var a=createjs.createCanvas?createjs.createCanvas():document.createElement("canvas");a.getContext&&(c._hitTestCanvas=a,c._hitTestContext=a.getContext("2d"),a.width=a.height=1);c._nextCacheID=1;b.alpha=1;b.cacheCanvas=null;b.id=-1;b.mouseEnabled=!0;b.name=null;b.parent=null;b.regX=0;b.regY=0;b.rotation=0;b.scaleX=1;b.scaleY=1;b.skewX=0;b.skewY=0;b.shadow=null;b.visible=!0;b.x=0;
b.y=0;b.compositeOperation=null;b.snapToPixel=!1;b.filters=null;b.cacheID=0;b.mask=null;b.hitArea=null;b.cursor=null;b._cacheOffsetX=0;b._cacheOffsetY=0;b._cacheScale=1;b._cacheDataURLID=0;b._cacheDataURL=null;b._matrix=null;b._bounds=null;b.initialize=function(){this.id=createjs.UID.get();this._matrix=new createjs.Matrix2D};b.isVisible=function(){return!(!this.visible||!(0<this.alpha&&0!=this.scaleX&&0!=this.scaleY))};b.draw=function(a,b){var c=this.cacheCanvas;if(b||!c)return!1;var e=this._cacheScale;
a.drawImage(c,this._cacheOffsetX,this._cacheOffsetY,c.width/e,c.height/e);return!0};b.updateContext=function(a){var b,c=this.mask;c&&(c.graphics&&!c.graphics.isEmpty())&&(b=c.getMatrix(c._matrix),a.transform(b.a,b.b,b.c,b.d,b.tx,b.ty),c.graphics.drawAsPath(a),a.clip(),b.invert(),a.transform(b.a,b.b,b.c,b.d,b.tx,b.ty));b=this._matrix.identity().appendTransform(this.x,this.y,this.scaleX,this.scaleY,this.rotation,this.skewX,this.skewY,this.regX,this.regY);createjs.Stage._snapToPixelEnabled&&this.snapToPixel?
a.transform(b.a,b.b,b.c,b.d,b.tx+0.5|0,b.ty+0.5|0):a.transform(b.a,b.b,b.c,b.d,b.tx,b.ty);a.globalAlpha*=this.alpha;this.compositeOperation&&(a.globalCompositeOperation=this.compositeOperation);this.shadow&&this._applyShadow(a,this.shadow)};b.cache=function(a,b,c,e,f){f=f||1;this.cacheCanvas||(this.cacheCanvas=createjs.createCanvas?createjs.createCanvas():document.createElement("canvas"));this.cacheCanvas.width=Math.ceil(c*f);this.cacheCanvas.height=Math.ceil(e*f);this._cacheOffsetX=a;this._cacheOffsetY=
b;this._cacheScale=f;this.updateCache()};b.updateCache=function(a){var b=this.cacheCanvas,d=this._cacheScale,e=this._cacheOffsetX*d,f=this._cacheOffsetY*d;if(!b)throw"cache() must be called before updateCache()";var j=b.getContext("2d");j.save();a||j.clearRect(0,0,b.width+1,b.height+1);j.globalCompositeOperation=a;j.setTransform(d,0,0,d,-e,-f);this.draw(j,!0);this._applyFilters();j.restore();this.cacheID=c._nextCacheID++};b.uncache=function(){this._cacheDataURL=this.cacheCanvas=null;this.cacheID=
this._cacheOffsetX=this._cacheOffsetY=0;this._cacheScale=1};b.getCacheDataURL=function(){if(!this.cacheCanvas)return null;this.cacheID!=this._cacheDataURLID&&(this._cacheDataURL=this.cacheCanvas.toDataURL());return this._cacheDataURL};b.getStage=function(){for(var a=this;a.parent;)a=a.parent;return a instanceof createjs.Stage?a:null};b.localToGlobal=function(a,b){var c=this.getConcatenatedMatrix(this._matrix);if(null==c)return null;c.append(1,0,0,1,a,b);return new createjs.Point(c.tx,c.ty)};b.globalToLocal=
function(a,b){var c=this.getConcatenatedMatrix(this._matrix);if(null==c)return null;c.invert();c.append(1,0,0,1,a,b);return new createjs.Point(c.tx,c.ty)};b.localToLocal=function(a,b,c){a=this.localToGlobal(a,b);return c.globalToLocal(a.x,a.y)};b.setTransform=function(a,b,c,e,f,j,k,l,n){this.x=a||0;this.y=b||0;this.scaleX=null==c?1:c;this.scaleY=null==e?1:e;this.rotation=f||0;this.skewX=j||0;this.skewY=k||0;this.regX=l||0;this.regY=n||0;return this};b.getMatrix=function(a){return(a?a.identity():new createjs.Matrix2D).appendTransform(this.x,
this.y,this.scaleX,this.scaleY,this.rotation,this.skewX,this.skewY,this.regX,this.regY).appendProperties(this.alpha,this.shadow,this.compositeOperation)};b.getConcatenatedMatrix=function(a){a?a.identity():a=new createjs.Matrix2D;for(var b=this;null!=b;)a.prependTransform(b.x,b.y,b.scaleX,b.scaleY,b.rotation,b.skewX,b.skewY,b.regX,b.regY).prependProperties(b.alpha,b.shadow,b.compositeOperation),b=b.parent;return a};b.hitTest=function(a,b){var d=c._hitTestContext;d.setTransform(1,0,0,1,-a,-b);this.draw(d);
var e=this._testHit(d);d.setTransform(1,0,0,1,0,0);d.clearRect(0,0,2,2);return e};b.set=function(a){for(var b in a)this[b]=a[b];return this};b.getBounds=function(){if(this._bounds)return this._bounds;var a=this.cacheCanvas;if(a){var b=this._cacheScale;return new createjs.Rectangle(this._cacheOffsetX,this._cacheOffsetY,a.width/b,a.height/b)}return null};b.getTransformedBounds=function(){return this._getBounds()};b.setBounds=function(a,b,c,e){null==a&&(this._bounds=a);this._bounds=new createjs.Rectangle(a,
b,c,e)};b.clone=function(){var a=new c;this.cloneProps(a);return a};b.toString=function(){return"[DisplayObject (name="+this.name+")]"};b.cloneProps=function(a){a.alpha=this.alpha;a.name=this.name;a.regX=this.regX;a.regY=this.regY;a.rotation=this.rotation;a.scaleX=this.scaleX;a.scaleY=this.scaleY;a.shadow=this.shadow;a.skewX=this.skewX;a.skewY=this.skewY;a.visible=this.visible;a.x=this.x;a.y=this.y;a._bounds=this._bounds;a.mouseEnabled=this.mouseEnabled;a.compositeOperation=this.compositeOperation};
b._applyShadow=function(a,b){b=b||Shadow.identity;a.shadowColor=b.color;a.shadowOffsetX=b.offsetX;a.shadowOffsetY=b.offsetY;a.shadowBlur=b.blur};b._tick=function(a){var b=this._listeners;b&&b.tick&&(b=new createjs.Event("tick"),b.params=a,this._dispatchEvent(b,this,2))};b._testHit=function(a){try{var b=1<a.getImageData(0,0,1,1).data[3]}catch(d){if(!c.suppressCrossDomainErrors)throw"An error has occurred. This is most likely due to security restrictions on reading canvas pixel data with local or cross-domain images.";
}return b};b._applyFilters=function(){if(this.filters&&0!=this.filters.length&&this.cacheCanvas)for(var a=this.filters.length,b=this.cacheCanvas.getContext("2d"),c=this.cacheCanvas.width,e=this.cacheCanvas.height,f=0;f<a;f++)this.filters[f].applyFilter(b,0,0,c,e)};b._getBounds=function(a,b){return this._transformBounds(this.getBounds(),a,b)};b._transformBounds=function(a,b,c){if(!a)return a;var e=a.x,f=a.y,j=a.width;a=a.height;var k=c?this._matrix.identity():this.getMatrix(this._matrix);(e||f)&&k.appendTransform(0,
0,1,1,0,0,0,-e,-f);b&&k.prependMatrix(b);b=j*k.a;j*=k.b;c=a*k.c;a*=k.d;var l=k.tx,k=k.ty,n=l,m=l,p=k,q=k;(e=b+l)<n?n=e:e>m&&(m=e);(e=b+c+l)<n?n=e:e>m&&(m=e);(e=c+l)<n?n=e:e>m&&(m=e);(f=j+k)<p?p=f:f>q&&(q=f);(f=j+a+k)<p?p=f:f>q&&(q=f);(f=a+k)<p?p=f:f>q&&(q=f);return new createjs.Rectangle(n,p,m-n,q-p)};createjs.DisplayObject=c})();this.createjs=this.createjs||{};
(function(){var c=function(){this.initialize()},b=c.prototype=new createjs.DisplayObject;b.children=null;b.mouseChildren=!0;b.DisplayObject_initialize=b.initialize;b.initialize=function(){this.DisplayObject_initialize();this.children=[]};b.isVisible=function(){var a=this.cacheCanvas||this.children.length;return!(!this.visible||!(0<this.alpha&&0!=this.scaleX&&0!=this.scaleY&&a))};b.DisplayObject_draw=b.draw;b.draw=function(a,b){if(this.DisplayObject_draw(a,b))return!0;for(var g=this.children.slice(0),
c=0,e=g.length;c<e;c++){var f=g[c];f.isVisible()&&(a.save(),f.updateContext(a),f.draw(a),a.restore())}return!0};b.addChild=function(a){if(null==a)return a;var b=arguments.length;if(1<b){for(var g=0;g<b;g++)this.addChild(arguments[g]);return arguments[b-1]}a.parent&&a.parent.removeChild(a);a.parent=this;this.children.push(a);return a};b.addChildAt=function(a,b){var g=arguments.length,c=arguments[g-1];if(0>c||c>this.children.length)return arguments[g-2];if(2<g){for(var e=0;e<g-1;e++)this.addChildAt(arguments[e],
c+e);return arguments[g-2]}a.parent&&a.parent.removeChild(a);a.parent=this;this.children.splice(b,0,a);return a};b.removeChild=function(a){var b=arguments.length;if(1<b){for(var g=!0,c=0;c<b;c++)g=g&&this.removeChild(arguments[c]);return g}return this.removeChildAt(createjs.indexOf(this.children,a))};b.removeChildAt=function(a){var b=arguments.length;if(1<b){for(var g=[],c=0;c<b;c++)g[c]=arguments[c];g.sort(function(a,b){return b-a});for(var e=!0,c=0;c<b;c++)e=e&&this.removeChildAt(g[c]);return e}if(0>
a||a>this.children.length-1)return!1;if(b=this.children[a])b.parent=null;this.children.splice(a,1);return!0};b.removeAllChildren=function(){for(var a=this.children;a.length;)a.pop().parent=null};b.getChildAt=function(a){return this.children[a]};b.getChildByName=function(a){for(var b=this.children,c=0,d=b.length;c<d;c++)if(b[c].name==a)return b[c];return null};b.sortChildren=function(a){this.children.sort(a)};b.getChildIndex=function(a){return createjs.indexOf(this.children,a)};b.getNumChildren=function(){return this.children.length};
b.swapChildrenAt=function(a,b){var c=this.children,d=c[a],e=c[b];d&&e&&(c[a]=e,c[b]=d)};b.swapChildren=function(a,b){for(var c=this.children,d,e,f=0,j=c.length;f<j&&!(c[f]==a&&(d=f),c[f]==b&&(e=f),null!=d&&null!=e);f++);f!=j&&(c[d]=b,c[e]=a)};b.setChildIndex=function(a,b){var c=this.children,d=c.length;if(!(a.parent!=this||0>b||b>=d)){for(var e=0;e<d&&c[e]!=a;e++);e==d||e==b||(c.splice(e,1),c.splice(b,0,a))}};b.contains=function(a){for(;a;){if(a==this)return!0;a=a.parent}return!1};b.hitTest=function(a,
b){return null!=this.getObjectUnderPoint(a,b)};b.getObjectsUnderPoint=function(a,b){var c=[],d=this.localToGlobal(a,b);this._getObjectsUnderPoint(d.x,d.y,c);return c};b.getObjectUnderPoint=function(a,b){var c=this.localToGlobal(a,b);return this._getObjectsUnderPoint(c.x,c.y)};b.DisplayObject_getBounds=b.getBounds;b.getBounds=function(){return this._getBounds(null,!0)};b.getTransformedBounds=function(){return this._getBounds()};b.clone=function(a){var b=new c;this.cloneProps(b);if(a)for(var g=b.children=
[],d=0,e=this.children.length;d<e;d++){var f=this.children[d].clone(a);f.parent=b;g.push(f)}return b};b.toString=function(){return"[Container (name="+this.name+")]"};b.DisplayObject__tick=b._tick;b._tick=function(a){for(var b=this.children.length-1;0<=b;b--){var c=this.children[b];c._tick&&c._tick(a)}this.DisplayObject__tick(a)};b._getObjectsUnderPoint=function(a,b,g,d){for(var e=createjs.DisplayObject._hitTestContext,f=this._matrix,j=this.children.length-1;0<=j;j--){var k=this.children[j],l=d&&k.hitArea;
if(k.visible&&!(!l&&!k.isVisible()||d&&!k.mouseEnabled))if(!l&&k instanceof c){if(k=k._getObjectsUnderPoint(a,b,g,d),!g&&k)return k}else if(k.getConcatenatedMatrix(f),l&&(f.appendTransform(l.x,l.y,l.scaleX,l.scaleY,l.rotation,l.skewX,l.skewY,l.regX,l.regY),f.alpha=l.alpha),e.globalAlpha=f.alpha,e.setTransform(f.a,f.b,f.c,f.d,f.tx-a,f.ty-b),(l||k).draw(e),this._testHit(e))if(e.setTransform(1,0,0,1,0,0),e.clearRect(0,0,2,2),g)g.push(k);else return d&&!this.mouseChildren?this:k}return null};b._getBounds=
function(a,b){var c=this.DisplayObject_getBounds();if(c)return this._transformBounds(c,a,b);var d,e,f,j,k=b?this._matrix.identity():this.getMatrix(this._matrix);a&&k.prependMatrix(a);for(var l=this.children.length,n=0;n<l;n++){var m=this.children[n];if(m.visible&&(c=m._getBounds(k))){var m=c.x,p=c.y,q=m+c.width,r=p+c.height;if(m<d||null==d)d=m;if(q>e||null==e)e=q;if(p<f||null==f)f=p;if(r>j||null==j)j=r}}return null==e?null:new createjs.Rectangle(d,f,e-d,j-f)};createjs.Container=c})();this.createjs=this.createjs||{};
(function(){var c=function(a){this.initialize(a)},b=c.prototype=new createjs.Container;c._snapToPixelEnabled=!1;b.autoClear=!0;b.canvas=null;b.mouseX=0;b.mouseY=0;b.snapToPixelEnabled=!1;b.mouseInBounds=!1;b.tickOnUpdate=!0;b.mouseMoveOutside=!1;b.nextStage=null;b._pointerData=null;b._pointerCount=0;b._primaryPointerID=null;b._mouseOverIntervalID=null;b.Container_initialize=b.initialize;b.initialize=function(a){this.Container_initialize();this.canvas="string"==typeof a?document.getElementById(a):
a;this._pointerData={};this.enableDOMEvents(!0)};b.update=function(a){if(this.canvas){this.tickOnUpdate&&(this.dispatchEvent("tickstart"),this._tick(arguments.length?arguments:null),this.dispatchEvent("tickend"));this.dispatchEvent("drawstart");c._snapToPixelEnabled=this.snapToPixelEnabled;this.autoClear&&this.clear();var b=this.canvas.getContext("2d");b.save();this.updateContext(b);this.draw(b,!1);b.restore();this.dispatchEvent("drawend")}};b.handleEvent=function(a){"tick"==a.type&&this.update(a)};
b.clear=function(){if(this.canvas){var a=this.canvas.getContext("2d");a.setTransform(1,0,0,1,0,0);a.clearRect(0,0,this.canvas.width+1,this.canvas.height+1)}};b.toDataURL=function(a,b){b||(b="image/png");var c=this.canvas.getContext("2d"),d=this.canvas.width,e=this.canvas.height,f;if(a){f=c.getImageData(0,0,d,e);var j=c.globalCompositeOperation;c.globalCompositeOperation="destination-over";c.fillStyle=a;c.fillRect(0,0,d,e)}var k=this.canvas.toDataURL(b);a&&(c.clearRect(0,0,d+1,e+1),c.putImageData(f,
0,0),c.globalCompositeOperation=j);return k};b.enableMouseOver=function(a){this._mouseOverIntervalID&&(clearInterval(this._mouseOverIntervalID),this._mouseOverIntervalID=null,0==a&&this._testMouseOver(!0));if(null==a)a=20;else if(0>=a)return;var b=this;this._mouseOverIntervalID=setInterval(function(){b._testMouseOver()},1E3/Math.min(50,a))};b.enableDOMEvents=function(a){null==a&&(a=!0);var b,c=this._eventListeners;if(!a&&c){for(b in c)a=c[b],a.t.removeEventListener(b,a.f,!1);this._eventListeners=
null}else if(a&&!c&&this.canvas){a=window.addEventListener?window:document;var d=this,c=this._eventListeners={};c.mouseup={t:a,f:function(a){d._handleMouseUp(a)}};c.mousemove={t:a,f:function(a){d._handleMouseMove(a)}};c.dblclick={t:a,f:function(a){d._handleDoubleClick(a)}};c.mousedown={t:this.canvas,f:function(a){d._handleMouseDown(a)}};for(b in c)a=c[b],a.t.addEventListener(b,a.f,!1)}};b.clone=function(){var a=new c(null);this.cloneProps(a);return a};b.toString=function(){return"[Stage (name="+this.name+
")]"};b._getElementRect=function(a){var b;try{b=a.getBoundingClientRect()}catch(c){b={top:a.offsetTop,left:a.offsetLeft,width:a.offsetWidth,height:a.offsetHeight}}var d=(window.pageXOffset||document.scrollLeft||0)-(document.clientLeft||document.body.clientLeft||0),e=(window.pageYOffset||document.scrollTop||0)-(document.clientTop||document.body.clientTop||0),f=window.getComputedStyle?getComputedStyle(a):a.currentStyle;a=parseInt(f.paddingLeft)+parseInt(f.borderLeftWidth);var j=parseInt(f.paddingTop)+
parseInt(f.borderTopWidth),k=parseInt(f.paddingRight)+parseInt(f.borderRightWidth),f=parseInt(f.paddingBottom)+parseInt(f.borderBottomWidth);return{left:b.left+d+a,right:b.right+d-k,top:b.top+e+j,bottom:b.bottom+e-f}};b._getPointerData=function(a){var b=this._pointerData[a];b||(b=this._pointerData[a]={x:0,y:0},null==this._primaryPointerID&&(this._primaryPointerID=a));return b};b._handleMouseMove=function(a){a||(a=window.event);this._handlePointerMove(-1,a,a.pageX,a.pageY)};b._handlePointerMove=function(a,
b,c,d){if(this.canvas){var e=this._getPointerData(a),f=e.inBounds;this._updatePointerPosition(a,b,c,d);if(f||e.inBounds||this.mouseMoveOutside)-1==a&&e.inBounds==!f&&this._dispatchMouseEvent(this,f?"mouseleave":"mouseenter",!1,a,e,b),this._dispatchMouseEvent(this,"stagemousemove",!1,a,e,b),this._dispatchMouseEvent(e.target,"pressmove",!0,a,e,b),(f=e.event)&&f.hasEventListener("mousemove")&&f.dispatchEvent(new createjs.MouseEvent("mousemove",!1,!1,e.x,e.y,b,a,a==this._primaryPointerID,e.rawX,e.rawY),
oTarget),this.nextStage&&this.nextStage._handlePointerMove(a,b,c,d)}};b._updatePointerPosition=function(a,b,c,d){var e=this._getElementRect(this.canvas);c-=e.left;d-=e.top;var f=this.canvas.width,j=this.canvas.height;c/=(e.right-e.left)/f;d/=(e.bottom-e.top)/j;e=this._getPointerData(a);(e.inBounds=0<=c&&0<=d&&c<=f-1&&d<=j-1)?(e.x=c,e.y=d):this.mouseMoveOutside&&(e.x=0>c?0:c>f-1?f-1:c,e.y=0>d?0:d>j-1?j-1:d);e.posEvtObj=b;e.rawX=c;e.rawY=d;a==this._primaryPointerID&&(this.mouseX=e.x,this.mouseY=e.y,
this.mouseInBounds=e.inBounds)};b._handleMouseUp=function(a){this._handlePointerUp(-1,a,!1)};b._handlePointerUp=function(a,b,c){var d=this._getPointerData(a);this._dispatchMouseEvent(this,"stagemouseup",!1,a,d,b);var e=d.target;e&&(this._getObjectsUnderPoint(d.x,d.y,null,!0)==e&&this._dispatchMouseEvent(e,"click",!0,a,d,b),this._dispatchMouseEvent(e,"pressup",!0,a,d,b));var f=d.event;f&&f.hasEventListener("mouseup")&&f.dispatchEvent(new createjs.MouseEvent("mouseup",!1,!1,d.x,d.y,b,a,a==this._primaryPointerID,
d.rawX,d.rawY),e);c?(a==this._primaryPointerID&&(this._primaryPointerID=null),delete this._pointerData[a]):d.event=d.target=null;this.nextStage&&this.nextStage._handlePointerUp(a,b,c)};b._handleMouseDown=function(a){this._handlePointerDown(-1,a)};b._handlePointerDown=function(a,b,c,d){null!=d&&this._updatePointerPosition(a,b,c,d);var e=this._getPointerData(a);this._dispatchMouseEvent(this,"stagemousedown",!1,a,e,b);e.target=this._getObjectsUnderPoint(e.x,e.y,null,!0);this._dispatchMouseEvent(e.target,
"mousedown",!0,a,e,b);this.nextStage&&this.nextStage._handlePointerDown(a,b,c,d)};b._testMouseOver=function(a){if(!(-1!=this._primaryPointerID||!a&&this.mouseX==this._mouseOverX&&this.mouseY==this._mouseOverY&&this.mouseInBounds)){var b=this._getPointerData(-1),c=b.posEvtObj,d,e=-1,f="",j;if(a||this.mouseInBounds&&c&&c.target==this.canvas)d=this._getObjectsUnderPoint(this.mouseX,this.mouseY,null,!0),this._mouseOverX=this.mouseX,this._mouseOverY=this.mouseY;a=this._mouseOverTarget||[];var k=a[a.length-
1],l=this._mouseOverTarget=[];for(j=d;j;)l.unshift(j),null!=j.cursor&&(f=j.cursor),j=j.parent;this.canvas.style.cursor=f;f=0;for(j=l.length;f<j&&l[f]==a[f];f++)e=f;k!=d&&this._dispatchMouseEvent(k,"mouseout",!0,-1,b,c);for(f=a.length-1;f>e;f--)this._dispatchMouseEvent(a[f],"rollout",!1,-1,b,c);for(f=l.length-1;f>e;f--)this._dispatchMouseEvent(l[f],"rollover",!1,-1,b,c);k!=d&&this._dispatchMouseEvent(d,"mouseover",!0,-1,b,c)}};b._handleDoubleClick=function(a){var b=this._getPointerData(-1),c=this._getObjectsUnderPoint(b.x,
b.y,null,!0);this._dispatchMouseEvent(c,"dblclick",!0,-1,b,a);this.nextStage&&this.nextStage._handleDoubleClick(a)};b._dispatchMouseEvent=function(a,b,c,d,e,f){if(a&&(c||a.hasEventListener(b)))b=new createjs.MouseEvent(b,c,!1,e.x,e.y,f,d,d==this._primaryPointerID,e.rawX,e.rawY),a.dispatchEvent(b)};createjs.Stage=c})();this.createjs=this.createjs||{};
(function(){var c=function(a){this.initialize(a)},b=c.prototype=new createjs.DisplayObject;b.image=null;b.snapToPixel=!0;b.sourceRect=null;b.DisplayObject_initialize=b.initialize;b.initialize=function(a){this.DisplayObject_initialize();"string"==typeof a?(this.image=new Image,this.image.src=a):this.image=a};b.isVisible=function(){var a=this.cacheCanvas||this.image&&(this.image.complete||this.image.getContext||2<=this.image.readyState);return!(!this.visible||!(0<this.alpha&&0!=this.scaleX&&0!=this.scaleY&&
a))};b.DisplayObject_draw=b.draw;b.draw=function(a,b){if(this.DisplayObject_draw(a,b))return!0;var c=this.sourceRect;c?a.drawImage(this.image,c.x,c.y,c.width,c.height,0,0,c.width,c.height):a.drawImage(this.image,0,0);return!0};b.DisplayObject_getBounds=b.getBounds;b.getBounds=function(){var a=this.DisplayObject_getBounds();if(a)return a;a=this.sourceRect||this.image;return this.image&&(this.image.complete||this.image.getContext||2<=this.image.readyState)?new createjs.Rectangle(0,0,a.width,a.height):
null};b.clone=function(){var a=new c(this.image);this.sourceRect&&(a.sourceRect=this.sourceRect.clone());this.cloneProps(a);return a};b.toString=function(){return"[Bitmap (name="+this.name+")]"};createjs.Bitmap=c})();this.createjs=this.createjs||{};
(function(){var c=function(a,b){this.initialize(a,b)},b=c.prototype=new createjs.DisplayObject;b.currentFrame=0;b.currentAnimation=null;b.paused=!0;b.spriteSheet=null;b.snapToPixel=!0;b.offset=0;b.currentAnimationFrame=0;b.framerate=0;b._advanceCount=0;b._animation=null;b._currentFrame=null;b.DisplayObject_initialize=b.initialize;b.initialize=function(a,b){this.DisplayObject_initialize();this.spriteSheet=a;b&&this.gotoAndPlay(b)};b.isVisible=function(){var a=this.cacheCanvas||this.spriteSheet.complete;
return!(!this.visible||!(0<this.alpha&&0!=this.scaleX&&0!=this.scaleY&&a))};b.DisplayObject_draw=b.draw;b.draw=function(a,b){if(this.DisplayObject_draw(a,b))return!0;this._normalizeFrame();var c=this.spriteSheet.getFrame(this._currentFrame|0);if(!c)return!1;var d=c.rect;a.drawImage(c.image,d.x,d.y,d.width,d.height,-c.regX,-c.regY,d.width,d.height);return!0};b.play=function(){this.paused=!1};b.stop=function(){this.paused=!0};b.gotoAndPlay=function(a){this.paused=!1;this._goto(a)};b.gotoAndStop=function(a){this.paused=
!0;this._goto(a)};b.advance=function(a){var b=this._animation&&this._animation.speed||1,c=this.framerate||this.spriteSheet.framerate;a=c&&null!=a?a/(1E3/c):1;this._animation?this.currentAnimationFrame+=a*b:this._currentFrame+=a*b;this._normalizeFrame()};b.DisplayObject_getBounds=b.getBounds;b.getBounds=function(){return this.DisplayObject_getBounds()||this.spriteSheet.getFrameBounds(this.currentFrame)};b.clone=function(){var a=new c(this.spriteSheet);this.cloneProps(a);return a};b.toString=function(){return"[Sprite (name="+
this.name+")]"};b.DisplayObject__tick=b._tick;b._tick=function(a){this.paused||this.advance(a&&a[0]&&a[0].delta);this.DisplayObject__tick(a)};b._normalizeFrame=function(){var a=this._animation,b=this.paused,c=this._currentFrame,d=this.currentAnimationFrame,e;if(a)if(e=a.frames.length,(d|0)>=e){var f=a.next;if(!this._dispatchAnimationEnd(a,c,b,f,e-1)){if(f)return this._goto(f,d-e);this.paused=!0;d=this.currentAnimationFrame=a.frames.length-1;this._currentFrame=a.frames[d]}}else this._currentFrame=
a.frames[d|0];else if(e=this.spriteSheet.getNumFrames(),c>=e&&!this._dispatchAnimationEnd(a,c,b,e-1)&&(this._currentFrame-=e)>=e)return this._normalizeFrame();this.currentFrame=this._currentFrame|0};b._dispatchAnimationEnd=function(a,b,c,d,e){var f=a?a.name:null;if(this.hasEventListener("animationend")){var j=new createjs.Event("animationend");j.name=f;j.next=d;this.dispatchEvent(j)}!c&&this.paused&&(this.currentAnimationFrame=e);return this.paused!=c||this._animation!=a||this._currentFrame!=b};b.DisplayObject_cloneProps=
b.cloneProps;b.cloneProps=function(a){this.DisplayObject_cloneProps(a);a.currentFrame=this.currentFrame;a._currentFrame=this._currentFrame;a.currentAnimation=this.currentAnimation;a.paused=this.paused;a._animation=this._animation;a.currentAnimationFrame=this.currentAnimationFrame;a.framerate=this.framerate};b._goto=function(a,b){if(isNaN(a)){var c=this.spriteSheet.getAnimation(a);c&&(this.currentAnimationFrame=b||0,this._animation=c,this.currentAnimation=a,this._normalizeFrame())}else this.currentAnimationFrame=
0,this.currentAnimation=this._animation=null,this._currentFrame=a,this._normalizeFrame()};createjs.Sprite=c})();this.createjs=this.createjs||{};(function(){if(!createjs.Sprite)throw"BitmapAnimation is deprecated in favour of Sprite. See VERSIONS file for info on changes.";(createjs.BitmapAnimation=function(c){console.log("BitmapAnimation is deprecated in favour of Sprite. See VERSIONS file for info on changes.");this.initialize(c)}).prototype=new createjs.Sprite})();this.createjs=this.createjs||{};
(function(){function c(a,b){this.initialize(a,b)}var b=c.prototype=new createjs.DisplayObject;b.text="";b.spriteSheet=null;b.lineHeight=0;b.letterSpacing=0;b.spaceWidth=0;b.DisplayObject_initialize=b.initialize;b.initialize=function(a,b){this.DisplayObject_initialize();this.text=a;this.spriteSheet=b};b.DisplayObject_draw=b.draw;b.draw=function(a,b){if(this.DisplayObject_draw(a,b))return!0;this._drawText(a)};b.isVisible=function(){var a=this.cacheCanvas||this.spriteSheet&&this.spriteSheet.complete&&
this.text;return!(!this.visible||!(0<this.alpha&&0!=this.scaleX&&0!=this.scaleY&&a))};b.getBounds=function(){var a=new createjs.Rectangle;this._drawText(null,a);return a.width?a:null};b._getFrame=function(a,b){var c,d=b.getAnimation(a);d||(a!=(c=a.toUpperCase())||a!=(c=a.toLowerCase())||(c=null),c&&(d=b.getAnimation(c)));return d&&b.getFrame(d.frames[0])};b._getLineHeight=function(a){return(a=this._getFrame("1",a)||this._getFrame("T",a)||this._getFrame("L",a)||a.getFrame(0))?a.rect.height:1};b._getSpaceWidth=
function(a){return(a=this._getFrame("1",a)||this._getFrame("l",a)||this._getFrame("e",a)||this._getFrame("a",a)||a.getFrame(0))?a.rect.width:1};b._drawText=function(a,b){var c,d,e,f=0,j=0,k=this.spaceWidth,l=this.lineHeight,n=this.spriteSheet,m=!!this._getFrame(" ",n);!m&&0==k&&(k=this._getSpaceWidth(n));0==l&&(l=this._getLineHeight(n));for(var p=0,q=0,r=this.text.length;q<r;q++)if(c=this.text.charAt(q),!m&&" "==c)f+=k;else if("\n"==c||"\r"==c)"\r"==c&&"\n"==this.text.charAt(q+1)&&q++,f-e>p&&(p=f-
e),f=0,j+=l;else{var s=this._getFrame(c,n);if(s){var u=s.rect;e=s.regX;c=u.width;a&&a.drawImage(s.image,u.x,u.y,c,d=u.height,f-e,j-s.regY,c,d);f+=c+this.letterSpacing}}f-e>p&&(p=f-e);b&&(b.width=p-this.letterSpacing,b.height=j+l)};createjs.BitmapText=c})();this.createjs=this.createjs||{};
(function(){var c=function(a){this.initialize(a)},b=c.prototype=new createjs.DisplayObject;b.graphics=null;b.DisplayObject_initialize=b.initialize;b.initialize=function(a){this.DisplayObject_initialize();this.graphics=a?a:new createjs.Graphics};b.isVisible=function(){var a=this.cacheCanvas||this.graphics&&!this.graphics.isEmpty();return!(!this.visible||!(0<this.alpha&&0!=this.scaleX&&0!=this.scaleY&&a))};b.DisplayObject_draw=b.draw;b.draw=function(a,b){if(this.DisplayObject_draw(a,b))return!0;this.graphics.draw(a);
return!0};b.clone=function(a){a=new c(a&&this.graphics?this.graphics.clone():this.graphics);this.cloneProps(a);return a};b.toString=function(){return"[Shape (name="+this.name+")]"};createjs.Shape=c})();this.createjs=this.createjs||{};
(function(){var c=function(a,b,c){this.initialize(a,b,c)},b=c.prototype=new createjs.DisplayObject,a=createjs.createCanvas?createjs.createCanvas():document.createElement("canvas");a.getContext&&(c._workingContext=a.getContext("2d"),a.width=a.height=1);c.H_OFFSETS={start:0,left:0,center:-0.5,end:-1,right:-1};c.V_OFFSETS={top:0,hanging:-0.01,middle:-0.4,alphabetic:-0.8,ideographic:-0.85,bottom:-1};b.text="";b.font=null;b.color=null;b.textAlign="left";b.textBaseline="top";b.maxWidth=null;b.outline=0;
b.lineHeight=0;b.lineWidth=null;b.DisplayObject_initialize=b.initialize;b.initialize=function(a,b,c){this.DisplayObject_initialize();this.text=a;this.font=b;this.color=c};b.isVisible=function(){var a=this.cacheCanvas||null!=this.text&&""!==this.text;return!(!this.visible||!(0<this.alpha&&0!=this.scaleX&&0!=this.scaleY&&a))};b.DisplayObject_draw=b.draw;b.draw=function(a,b){if(this.DisplayObject_draw(a,b))return!0;var c=this.color||"#000";this.outline?(a.strokeStyle=c,a.lineWidth=1*this.outline):a.fillStyle=
c;this._drawText(this._prepContext(a));return!0};b.getMeasuredWidth=function(){return this._prepContext(c._workingContext).measureText(this.text).width};b.getMeasuredLineHeight=function(){return 1.2*this._prepContext(c._workingContext).measureText("M").width};b.getMeasuredHeight=function(){return this._drawText(null,{}).height};b.DisplayObject_getBounds=b.getBounds;b.getBounds=function(){var a=this.DisplayObject_getBounds();if(a)return a;if(null==this.text||""==this.text)return null;var a=this._drawText(null,
{}),b=this.maxWidth&&this.maxWidth<a.width?this.maxWidth:a.width,d=b*c.H_OFFSETS[this.textAlign||"left"],e=(this.lineHeight||this.getMeasuredLineHeight())*c.V_OFFSETS[this.textBaseline||"top"];return new createjs.Rectangle(d,e,b,a.height)};b.clone=function(){var a=new c(this.text,this.font,this.color);this.cloneProps(a);return a};b.toString=function(){return"[Text (text="+(20<this.text.length?this.text.substr(0,17)+"...":this.text)+")]"};b.DisplayObject_cloneProps=b.cloneProps;b.cloneProps=function(a){this.DisplayObject_cloneProps(a);
a.textAlign=this.textAlign;a.textBaseline=this.textBaseline;a.maxWidth=this.maxWidth;a.outline=this.outline;a.lineHeight=this.lineHeight;a.lineWidth=this.lineWidth};b._prepContext=function(a){a.font=this.font;a.textAlign=this.textAlign||"left";a.textBaseline=this.textBaseline||"top";return a};b._drawText=function(a,b){var d=!!a;d||(a=this._prepContext(c._workingContext));for(var e=this.lineHeight||this.getMeasuredLineHeight(),f=0,j=0,k=String(this.text).split(/(?:\r\n|\r|\n)/),l=0,n=k.length;l<n;l++){var m=
k[l],p=null;if(null!=this.lineWidth&&(p=a.measureText(m).width)>this.lineWidth)for(var q=m.split(/(\s)/),m=q[0],p=a.measureText(m).width,r=1,s=q.length;r<s;r+=2){var u=a.measureText(q[r]+q[r+1]).width;p+u>this.lineWidth?(d&&this._drawTextLine(a,m,j*e),p>f&&(f=p),m=q[r+1],p=a.measureText(m).width,j++):(m+=q[r]+q[r+1],p+=u)}d&&this._drawTextLine(a,m,j*e);b&&null==p&&(p=a.measureText(m).width);p>f&&(f=p);j++}b&&(b.count=j,b.width=f,b.height=j*e);return b};b._drawTextLine=function(a,b,c){this.outline?
a.strokeText(b,0,c,this.maxWidth||65535):a.fillText(b,0,c,this.maxWidth||65535)};createjs.Text=c})();this.createjs=this.createjs||{};
(function(){var c=function(){throw"SpriteSheetUtils cannot be instantiated";},b=createjs.createCanvas?createjs.createCanvas():document.createElement("canvas");b.getContext&&(c._workingCanvas=b,c._workingContext=b.getContext("2d"),b.width=b.height=1);c.addFlippedFrames=function(a,b,g,d){if(b||g||d){var e=0;b&&c._flip(a,++e,!0,!1);g&&c._flip(a,++e,!1,!0);d&&c._flip(a,++e,!0,!0)}};c.extractFrame=function(a,b){isNaN(b)&&(b=a.getAnimation(b).frames[0]);var g=a.getFrame(b);if(!g)return null;var d=g.rect,
e=c._workingCanvas;e.width=d.width;e.height=d.height;c._workingContext.drawImage(g.image,d.x,d.y,d.width,d.height,0,0,d.width,d.height);g=new Image;g.src=e.toDataURL("image/png");return g};c.mergeAlpha=function(a,b,c){c||(c=createjs.createCanvas?createjs.createCanvas():document.createElement("canvas"));c.width=Math.max(b.width,a.width);c.height=Math.max(b.height,a.height);var d=c.getContext("2d");d.save();d.drawImage(a,0,0);d.globalCompositeOperation="destination-in";d.drawImage(b,0,0);d.restore();
return c};c._flip=function(a,b,g,d){for(var e=a._images,f=c._workingCanvas,j=c._workingContext,k=e.length/b,l=0;l<k;l++){var n=e[l];n.__tmp=l;j.setTransform(1,0,0,1,0,0);j.clearRect(0,0,f.width+1,f.height+1);f.width=n.width;f.height=n.height;j.setTransform(g?-1:1,0,0,d?-1:1,g?n.width:0,d?n.height:0);j.drawImage(n,0,0);var m=new Image;m.src=f.toDataURL("image/png");m.width=n.width;m.height=n.height;e.push(m)}j=a._frames;f=j.length/b;for(l=0;l<f;l++){var n=j[l],p=n.rect.clone(),m=e[n.image.__tmp+k*
b],q={image:m,rect:p,regX:n.regX,regY:n.regY};g&&(p.x=m.width-p.x-p.width,q.regX=p.width-n.regX);d&&(p.y=m.height-p.y-p.height,q.regY=p.height-n.regY);j.push(q)}g="_"+(g?"h":"")+(d?"v":"");d=a._animations;a=a._data;e=d.length/b;for(l=0;l<e;l++){j=d[l];n=a[j];k={name:j+g,frequency:n.frequency,next:n.next,frames:[]};n.next&&(k.next+=g);j=n.frames;n=0;for(m=j.length;n<m;n++)k.frames.push(j[n]+f*b);a[k.name]=k;d.push(k.name)}};createjs.SpriteSheetUtils=c})();this.createjs=this.createjs||{};
(function(){var c=function(){this.initialize()},b=c.prototype=new createjs.EventDispatcher;c.ERR_DIMENSIONS="frame dimensions exceed max spritesheet dimensions";c.ERR_RUNNING="a build is already running";b.maxWidth=2048;b.maxHeight=2048;b.spriteSheet=null;b.scale=1;b.padding=1;b.timeSlice=0.3;b.progress=-1;b._frames=null;b._animations=null;b._data=null;b._nextFrameIndex=0;b._index=0;b._timerID=null;b._scale=1;b.initialize=function(){this._frames=[];this._animations={}};b.addFrame=function(a,b,g,d,
e,f){if(this._data)throw c.ERR_RUNNING;b=b||a.bounds||a.nominalBounds;!b&&a.getBounds&&(b=a.getBounds());if(!b)return null;g=g||1;return this._frames.push({source:a,sourceRect:b,scale:g,funct:d,params:e,scope:f,index:this._frames.length,height:b.height*g})-1};b.addAnimation=function(a,b,g,d){if(this._data)throw c.ERR_RUNNING;this._animations[a]={frames:b,next:g,frequency:d}};b.addMovieClip=function(a,b,g){if(this._data)throw c.ERR_RUNNING;var d=a.frameBounds,e=b||a.bounds||a.nominalBounds;!e&&a.getBounds&&
(e=a.getBounds());if(!e&&!d)return null;b=this._frames.length;for(var f=a.timeline.duration,j=0;j<f;j++)this.addFrame(a,d&&d[j]?d[j]:e,g,function(a){var b=this.actionsEnabled;this.actionsEnabled=!1;this.gotoAndStop(a);this.actionsEnabled=b},[j],a);j=a.timeline._labels;a=[];for(var k in j)a.push({index:j[k],label:k});if(a.length){a.sort(function(a,b){return a.index-b.index});j=0;for(k=a.length;j<k;j++){g=a[j].label;for(var d=b+(j==k-1?f:a[j+1].index),e=[],l=b+a[j].index;l<d;l++)e.push(l);this.addAnimation(g,
e,!0)}}};b.build=function(){if(this._data)throw c.ERR_RUNNING;for(this._startBuild();this._drawNext(););this._endBuild();return this.spriteSheet};b.buildAsync=function(a){if(this._data)throw c.ERR_RUNNING;this.timeSlice=a;this._startBuild();var b=this;this._timerID=setTimeout(function(){b._run()},50-50*Math.max(0.01,Math.min(0.99,this.timeSlice||0.3)))};b.stopAsync=function(){clearTimeout(this._timerID);this._data=null};b.clone=function(){throw"SpriteSheetBuilder cannot be cloned.";};b.toString=function(){return"[SpriteSheetBuilder]"};
b._startBuild=function(){var a=this.padding||0;this.progress=0;this.spriteSheet=null;this._index=0;this._scale=this.scale;var b=[];this._data={images:[],frames:b,animations:this._animations};var g=this._frames.slice();g.sort(function(a,b){return a.height<=b.height?-1:1});if(g[g.length-1].height+2*a>this.maxHeight)throw c.ERR_DIMENSIONS;for(var d=0,e=0,f=0;g.length;){var j=this._fillRow(g,d,f,b,a);j.w>e&&(e=j.w);d+=j.h;if(!j.h||!g.length){var k=createjs.createCanvas?createjs.createCanvas():document.createElement("canvas");
k.width=this._getSize(e,this.maxWidth);k.height=this._getSize(d,this.maxHeight);this._data.images[f]=k;j.h||(e=d=0,f++)}}};b._getSize=function(a,b){for(var c=4;Math.pow(2,++c)<a;);return Math.min(b,Math.pow(2,c))};b._fillRow=function(a,b,g,d,e){var f=this.maxWidth,j=this.maxHeight;b+=e;for(var j=j-b,k=e,l=0,n=a.length-1;0<=n;n--){var m=a[n],p=this._scale*m.scale,q=m.sourceRect,r=m.source,s=Math.floor(p*q.x-e),u=Math.floor(p*q.y-e),t=Math.ceil(p*q.height+2*e),q=Math.ceil(p*q.width+2*e);if(q>f)throw c.ERR_DIMENSIONS;
t>j||k+q>f||(m.img=g,m.rect=new createjs.Rectangle(k,b,q,t),l=l||t,a.splice(n,1),d[m.index]=[k,b,q,t,g,Math.round(-s+p*r.regX-e),Math.round(-u+p*r.regY-e)],k+=q)}return{w:k,h:l}};b._endBuild=function(){this.spriteSheet=new createjs.SpriteSheet(this._data);this._data=null;this.progress=1;this.dispatchEvent("complete")};b._run=function(){for(var a=50*Math.max(0.01,Math.min(0.99,this.timeSlice||0.3)),b=(new Date).getTime()+a,c=!1;b>(new Date).getTime();)if(!this._drawNext()){c=!0;break}if(c)this._endBuild();
else{var d=this;this._timerID=setTimeout(function(){d._run()},50-a)}a=this.progress=this._index/this._frames.length;this.hasEventListener("progress")&&(b=new createjs.Event("progress"),b.progress=a,this.dispatchEvent(b))};b._drawNext=function(){var a=this._frames[this._index],b=a.scale*this._scale,c=a.rect,d=a.sourceRect,e=this._data.images[a.img].getContext("2d");a.funct&&a.funct.apply(a.scope,a.params);e.save();e.beginPath();e.rect(c.x,c.y,c.width,c.height);e.clip();e.translate(Math.ceil(c.x-d.x*
b),Math.ceil(c.y-d.y*b));e.scale(b,b);a.source.draw(e);e.restore();return++this._index<this._frames.length};createjs.SpriteSheetBuilder=c})();this.createjs=this.createjs||{};
(function(){var c=function(a){this.initialize(a)},b=c.prototype=new createjs.DisplayObject;b.htmlElement=null;b._oldMtx=null;b._visible=!1;b.DisplayObject_initialize=b.initialize;b.initialize=function(a){"string"==typeof a&&(a=document.getElementById(a));this.DisplayObject_initialize();this.mouseEnabled=!1;this.htmlElement=a;a=a.style;a.position="absolute";a.transformOrigin=a.WebkitTransformOrigin=a.msTransformOrigin=a.MozTransformOrigin=a.OTransformOrigin="0% 0%"};b.isVisible=function(){return null!=
this.htmlElement};b.draw=function(){this.visible&&(this._visible=!0);return!0};b.cache=function(){};b.uncache=function(){};b.updateCache=function(){};b.hitTest=function(){};b.localToGlobal=function(){};b.globalToLocal=function(){};b.localToLocal=function(){};b.clone=function(){throw"DOMElement cannot be cloned.";};b.toString=function(){return"[DOMElement (name="+this.name+")]"};b.DisplayObject__tick=b._tick;b._tick=function(a){var b=this.getStage();this._visible=!1;b&&b.on("drawend",this._handleDrawEnd,
this,!0);this.DisplayObject__tick(a)};b._handleDrawEnd=function(){var a=this.htmlElement;if(a){var a=a.style,b=this._visible?"visible":"hidden";b!=a.visibility&&(a.visibility=b);if(this._visible){var b=this.getConcatenatedMatrix(this._matrix),c=this._oldMtx;if(!c||c.alpha!=b.alpha)a.opacity=""+(1E4*b.alpha|0)/1E4,c&&(c.alpha=b.alpha);if(!c||c.tx!=b.tx||c.ty!=b.ty||c.a!=b.a||c.b!=b.b||c.c!=b.c||c.d!=b.d){var d="matrix("+(1E4*b.a|0)/1E4+","+(1E4*b.b|0)/1E4+","+(1E4*b.c|0)/1E4+","+(1E4*b.d|0)/1E4+","+
(b.tx+0.5|0);a.transform=a.WebkitTransform=a.OTransform=a.msTransform=d+","+(b.ty+0.5|0)+")";a.MozTransform=d+"px,"+(b.ty+0.5|0)+"px)";this._oldMtx=c?c.copy(b):b.clone()}}}};createjs.DOMElement=c})();this.createjs=this.createjs||{};(function(){var c=function(){this.initialize()},b=c.prototype;b.initialize=function(){};b.getBounds=function(){return new createjs.Rectangle(0,0,0,0)};b.applyFilter=function(){};b.toString=function(){return"[Filter]"};b.clone=function(){return new c};createjs.Filter=c})();this.createjs=this.createjs||{};
(function(){var c=function(a){this.initialize(a)},b=c.prototype=new createjs.Filter;b.initialize=function(a){this.alphaMap=a};b.alphaMap=null;b._alphaMap=null;b._mapData=null;b.applyFilter=function(a,b,c,d,e,f,j,k){if(!this.alphaMap)return!0;if(!this._prepAlphaMap())return!1;f=f||a;null==j&&(j=b);null==k&&(k=c);try{var l=a.getImageData(b,c,d,e)}catch(n){return!1}a=l.data;b=this._mapData;c=a.length;for(d=0;d<c;d+=4)a[d+3]=b[d]||0;l.data=a;f.putImageData(l,j,k);return!0};b.clone=function(){return new c(this.alphaMap)};
b.toString=function(){return"[AlphaMapFilter]"};b._prepAlphaMap=function(){if(!this.alphaMap)return!1;if(this.alphaMap==this._alphaMap&&this._mapData)return!0;this._mapData=null;var a=this._alphaMap=this.alphaMap,b=a;a instanceof HTMLCanvasElement?b=b.getContext("2d"):(b=createjs.createCanvas?createjs.createCanvas():document.createElement("canvas"),b.width=a.width,b.height=a.height,b=b.getContext("2d"),b.drawImage(a,0,0));try{var c=b.getImageData(0,0,a.width,a.height)}catch(d){return!1}this._mapData=
c.data;return!0};createjs.AlphaMapFilter=c})();this.createjs=this.createjs||{};(function(){var c=function(a){this.initialize(a)},b=c.prototype=new createjs.Filter;b.initialize=function(a){this.mask=a};b.mask=null;b.applyFilter=function(a,b,c,d,e,f,j,k){if(!this.mask)return!0;f=f||a;null==j&&(j=b);null==k&&(k=c);f.save();f.globalCompositeOperation="destination-in";f.drawImage(this.mask,j,k);f.restore();return!0};b.clone=function(){return new c(this.mask)};b.toString=function(){return"[AlphaMaskFilter]"};createjs.AlphaMaskFilter=c})();this.createjs=this.createjs||{};
(function(){var c=function(a,b,c){this.initialize(a,b,c)},b=c.prototype=new createjs.Filter;b.initialize=function(a,b,c){if(isNaN(a)||0>a)a=0;this.blurX=a|0;if(isNaN(b)||0>b)b=0;this.blurY=b|0;if(isNaN(c)||1>c)c=1;this.quality=c|0};b.blurX=0;b.blurY=0;b.quality=1;b.getBounds=function(){return new createjs.Rectangle(-this.blurX,-this.blurY,2*this.blurX,2*this.blurY)};b.applyFilter=function(a,b,c,d,e,f,j,k){f=f||a;null==j&&(j=b);null==k&&(k=c);try{var l=a.getImageData(b,c,d,e)}catch(n){return!1}a=this.blurX;
if(isNaN(a)||0>a)return!1;a|=0;var m=this.blurY;if(isNaN(m)||0>m)return!1;m|=0;if(0==a&&0==m)return!1;var p=this.quality;if(isNaN(p)||1>p)p=1;p|=0;3<p&&(p=3);1>p&&(p=1);for(var q=l.data,r,s,u,t,v,y,x,z,I=d-1,J=e-1,A=a+1,B=m+1,G=1/((a+A)*(m+B)),C=[],D=[],E=[],F=[],H=[],w=[];0<p--;){for(c=z=x=0;c<e;c++){r=q[z]*A;s=q[z+1]*A;u=q[z+2]*A;t=q[z+3]*A;for(v=1;v<=a;v++)b=z+((v>I?I:v)<<2),r+=q[b++],s+=q[b++],u+=q[b++],t+=q[b];for(b=0;b<d;b++)C[x]=r,D[x]=s,E[x]=u,F[x]=t,0==c&&(H[b]=Math.min(b+A,I)<<2,w[b]=Math.max(b-
a,0)<<2),v=z+H[b],y=z+w[b],r+=q[v++]-q[y++],s+=q[v++]-q[y++],u+=q[v++]-q[y++],t+=q[v]-q[y],x++;z+=d<<2}for(b=0;b<d;b++){c=b;r=C[c]*B;s=D[c]*B;u=E[c]*B;t=F[c]*B;for(v=1;v<=m;v++)c+=v>J?0:d,r+=C[c],s+=D[c],u+=E[c],t+=F[c];x=b<<2;for(c=0;c<e;c++)q[x]=r*G+0.5|0,q[x+1]=s*G+0.5|0,q[x+2]=u*G+0.5|0,q[x+3]=t*G+0.5|0,0==b&&(H[c]=Math.min(c+B,J)*d,w[c]=Math.max(c-m,0)*d),v=b+H[c],y=b+w[c],r+=C[v]-C[y],s+=D[v]-D[y],u+=E[v]-E[y],t+=F[v]-F[y],x+=d<<2}}f.putImageData(l,j,k);return!0};b.clone=function(){return new c(this.blurX,
this.blurY,this.quality)};b.toString=function(){return"[BlurFilter]"};createjs.BlurFilter=c})();this.createjs=this.createjs||{};
(function(){var c=function(a,b,c,d,e,f,j,k){this.initialize(a,b,c,d,e,f,j,k)},b=c.prototype=new createjs.Filter;b.redMultiplier=1;b.greenMultiplier=1;b.blueMultiplier=1;b.alphaMultiplier=1;b.redOffset=0;b.greenOffset=0;b.blueOffset=0;b.alphaOffset=0;b.initialize=function(a,b,c,d,e,f,j,k){this.redMultiplier=null!=a?a:1;this.greenMultiplier=null!=b?b:1;this.blueMultiplier=null!=c?c:1;this.alphaMultiplier=null!=d?d:1;this.redOffset=e||0;this.greenOffset=f||0;this.blueOffset=j||0;this.alphaOffset=k||
0};b.applyFilter=function(a,b,c,d,e,f,j,k){f=f||a;null==j&&(j=b);null==k&&(k=c);try{var l=a.getImageData(b,c,d,e)}catch(n){return!1}a=l.data;b=a.length;for(c=0;c<b;c+=4)a[c]=a[c]*this.redMultiplier+this.redOffset,a[c+1]=a[c+1]*this.greenMultiplier+this.greenOffset,a[c+2]=a[c+2]*this.blueMultiplier+this.blueOffset,a[c+3]=a[c+3]*this.alphaMultiplier+this.alphaOffset;f.putImageData(l,j,k);return!0};b.toString=function(){return"[ColorFilter]"};b.clone=function(){return new c(this.redMultiplier,this.greenMultiplier,
this.blueMultiplier,this.alphaMultiplier,this.redOffset,this.greenOffset,this.blueOffset,this.alphaOffset)};createjs.ColorFilter=c})();this.createjs=this.createjs||{};
(function(){var c=function(a,b,c,d){this.initialize(a,b,c,d)},b=c.prototype=[];c.DELTA_INDEX=[0,0.01,0.02,0.04,0.05,0.06,0.07,0.08,0.1,0.11,0.12,0.14,0.15,0.16,0.17,0.18,0.2,0.21,0.22,0.24,0.25,0.27,0.28,0.3,0.32,0.34,0.36,0.38,0.4,0.42,0.44,0.46,0.48,0.5,0.53,0.56,0.59,0.62,0.65,0.68,0.71,0.74,0.77,0.8,0.83,0.86,0.89,0.92,0.95,0.98,1,1.06,1.12,1.18,1.24,1.3,1.36,1.42,1.48,1.54,1.6,1.66,1.72,1.78,1.84,1.9,1.96,2,2.12,2.25,2.37,2.5,2.62,2.75,2.87,3,3.2,3.4,3.6,3.8,4,4.3,4.7,4.9,5,5.5,6,6.5,6.8,7,7.3,
7.5,7.8,8,8.4,8.7,9,9.4,9.6,9.8,10];c.IDENTITY_MATRIX=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1];c.LENGTH=c.IDENTITY_MATRIX.length;b.initialize=function(a,b,c,d){this.reset();this.adjustColor(a,b,c,d);return this};b.reset=function(){return this.copyMatrix(c.IDENTITY_MATRIX)};b.adjustColor=function(a,b,c,d){this.adjustHue(d);this.adjustContrast(b);this.adjustBrightness(a);return this.adjustSaturation(c)};b.adjustBrightness=function(a){if(0==a||isNaN(a))return this;a=this._cleanValue(a,255);
this._multiplyMatrix([1,0,0,0,a,0,1,0,0,a,0,0,1,0,a,0,0,0,1,0,0,0,0,0,1]);return this};b.adjustContrast=function(a){if(0==a||isNaN(a))return this;a=this._cleanValue(a,100);var b;0>a?b=127+127*(a/100):(b=a%1,b=0==b?c.DELTA_INDEX[a]:c.DELTA_INDEX[a<<0]*(1-b)+c.DELTA_INDEX[(a<<0)+1]*b,b=127*b+127);this._multiplyMatrix([b/127,0,0,0,0.5*(127-b),0,b/127,0,0,0.5*(127-b),0,0,b/127,0,0.5*(127-b),0,0,0,1,0,0,0,0,0,1]);return this};b.adjustSaturation=function(a){if(0==a||isNaN(a))return this;a=this._cleanValue(a,
100);a=1+(0<a?3*a/100:a/100);this._multiplyMatrix([0.3086*(1-a)+a,0.6094*(1-a),0.082*(1-a),0,0,0.3086*(1-a),0.6094*(1-a)+a,0.082*(1-a),0,0,0.3086*(1-a),0.6094*(1-a),0.082*(1-a)+a,0,0,0,0,0,1,0,0,0,0,0,1]);return this};b.adjustHue=function(a){if(0==a||isNaN(a))return this;a=this._cleanValue(a,180)/180*Math.PI;var b=Math.cos(a);a=Math.sin(a);this._multiplyMatrix([0.213+0.787*b+-0.213*a,0.715+-0.715*b+-0.715*a,0.072+-0.072*b+0.928*a,0,0,0.213+-0.213*b+0.143*a,0.715+b*(1-0.715)+0.14*a,0.072+-0.072*b+
-0.283*a,0,0,0.213+-0.213*b+-0.787*a,0.715+-0.715*b+0.715*a,0.072+0.928*b+0.072*a,0,0,0,0,0,1,0,0,0,0,0,1]);return this};b.concat=function(a){a=this._fixMatrix(a);if(a.length!=c.LENGTH)return this;this._multiplyMatrix(a);return this};b.clone=function(){return new c(this)};b.toArray=function(){return this.slice(0,c.LENGTH)};b.copyMatrix=function(a){for(var b=c.LENGTH,g=0;g<b;g++)this[g]=a[g];return this};b._multiplyMatrix=function(a){for(var b=[],c=0;5>c;c++){for(var d=0;5>d;d++)b[d]=this[d+5*c];for(d=
0;5>d;d++){for(var e=0,f=0;5>f;f++)e+=a[d+5*f]*b[f];this[d+5*c]=e}}};b._cleanValue=function(a,b){return Math.min(b,Math.max(-b,a))};b._fixMatrix=function(a){a instanceof c&&(a=a.slice(0));a.length<c.LENGTH?a=a.slice(0,a.length).concat(c.IDENTITY_MATRIX.slice(a.length,c.LENGTH)):a.length>c.LENGTH&&(a=a.slice(0,c.LENGTH));return a};createjs.ColorMatrix=c})();this.createjs=this.createjs||{};
(function(){var c=function(a){this.initialize(a)},b=c.prototype=new createjs.Filter;b.matrix=null;b.initialize=function(a){this.matrix=a};b.applyFilter=function(a,b,c,d,e,f,j,k){f=f||a;null==j&&(j=b);null==k&&(k=c);try{var l=a.getImageData(b,c,d,e)}catch(n){return!1}a=l.data;b=a.length;var m,p,q,r;m=this.matrix;c=m[0];d=m[1];e=m[2];for(var s=m[3],u=m[4],t=m[5],v=m[6],y=m[7],x=m[8],z=m[9],I=m[10],J=m[11],A=m[12],B=m[13],G=m[14],C=m[15],D=m[16],E=m[17],F=m[18],H=m[19],w=0;w<b;w+=4)m=a[w],p=a[w+1],q=
a[w+2],r=a[w+3],a[w]=m*c+p*d+q*e+r*s+u,a[w+1]=m*t+p*v+q*y+r*x+z,a[w+2]=m*I+p*J+q*A+r*B+G,a[w+3]=m*C+p*D+q*E+r*F+H;f.putImageData(l,j,k);return!0};b.toString=function(){return"[ColorMatrixFilter]"};b.clone=function(){return new c(this.matrix)};createjs.ColorMatrixFilter=c})();this.createjs=this.createjs||{};
(function(){var c=function(){throw"Touch cannot be instantiated";};c.isSupported=function(){return"ontouchstart"in window||window.navigator.msPointerEnabled&&0<window.navigator.msMaxTouchPoints};c.enable=function(b,a,h){if(!b||!b.canvas||!c.isSupported())return!1;b.__touch={pointers:{},multitouch:!a,preventDefault:!h,count:0};"ontouchstart"in window?c._IOS_enable(b):window.navigator.msPointerEnabled&&c._IE_enable(b);return!0};c.disable=function(b){b&&("ontouchstart"in window?c._IOS_disable(b):window.navigator.msPointerEnabled&&
c._IE_disable(b))};c._IOS_enable=function(b){var a=b.canvas,h=b.__touch.f=function(a){c._IOS_handleEvent(b,a)};a.addEventListener("touchstart",h,!1);a.addEventListener("touchmove",h,!1);a.addEventListener("touchend",h,!1);a.addEventListener("touchcancel",h,!1)};c._IOS_disable=function(b){var a=b.canvas;a&&(b=b.__touch.f,a.removeEventListener("touchstart",b,!1),a.removeEventListener("touchmove",b,!1),a.removeEventListener("touchend",b,!1),a.removeEventListener("touchcancel",b,!1))};c._IOS_handleEvent=
function(b,a){if(b){b.__touch.preventDefault&&a.preventDefault&&a.preventDefault();for(var c=a.changedTouches,g=a.type,d=0,e=c.length;d<e;d++){var f=c[d],j=f.identifier;f.target==b.canvas&&("touchstart"==g?this._handleStart(b,j,a,f.pageX,f.pageY):"touchmove"==g?this._handleMove(b,j,a,f.pageX,f.pageY):("touchend"==g||"touchcancel"==g)&&this._handleEnd(b,j,a))}}};c._IE_enable=function(b){var a=b.canvas,h=b.__touch.f=function(a){c._IE_handleEvent(b,a)};a.addEventListener("MSPointerDown",h,!1);window.addEventListener("MSPointerMove",
h,!1);window.addEventListener("MSPointerUp",h,!1);window.addEventListener("MSPointerCancel",h,!1);b.__touch.preventDefault&&(a.style.msTouchAction="none");b.__touch.activeIDs={}};c._IE_disable=function(b){var a=b.__touch.f;window.removeEventListener("MSPointerMove",a,!1);window.removeEventListener("MSPointerUp",a,!1);window.removeEventListener("MSPointerCancel",a,!1);b.canvas&&b.canvas.removeEventListener("MSPointerDown",a,!1)};c._IE_handleEvent=function(b,a){if(b){b.__touch.preventDefault&&a.preventDefault&&
a.preventDefault();var c=a.type,g=a.pointerId,d=b.__touch.activeIDs;if("MSPointerDown"==c)a.srcElement==b.canvas&&(d[g]=!0,this._handleStart(b,g,a,a.pageX,a.pageY));else if(d[g])if("MSPointerMove"==c)this._handleMove(b,g,a,a.pageX,a.pageY);else if("MSPointerUp"==c||"MSPointerCancel"==c)delete d[g],this._handleEnd(b,g,a)}};c._handleStart=function(b,a,c,g,d){var e=b.__touch;if(e.multitouch||!e.count){var f=e.pointers;f[a]||(f[a]=!0,e.count++,b._handlePointerDown(a,c,g,d))}};c._handleMove=function(b,
a,c,g,d){b.__touch.pointers[a]&&b._handlePointerMove(a,c,g,d)};c._handleEnd=function(b,a,c){var g=b.__touch,d=g.pointers;d[a]&&(g.count--,b._handlePointerUp(a,c,!0),delete d[a])};createjs.Touch=c})();this.createjs=this.createjs||{};(function(){var c=createjs.EaselJS=createjs.EaselJS||{};c.version="NEXT";c.buildDate="Sat, 17 Aug 2013 16:48:02 GMT"})();
