// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var aa={},ba,ca,da,ea,ga,ha,ka,la,na,oa,pa,qa,ra,ta,ua,F,va,wa,J,ya,za,Aa,Ba,Ca,Da,Ea,Fa,Ga,Ha,Ia,Ja,S,La,Ma,Pa,Qa,Ra,Ta,Ua,Va,Wa,Xa,Ya,cb,db,eb,fb,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,qb,rb,sb,tb,ub,vb,wb,xb,yb,zb,Ab,Bb,Cb,Db,Eb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,Wb,Xb,Yb,Zb,$b,ac,bc,cc,dc,ec,fc,gc,hc,ic,jc={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(l){return l.__proto__}:function(l){return l.constructor.prototype});
(function(){function l(b,h,a,e){this.set(b,h,a,e)}function t(){this.Wa=this.Va=this.Ya=this.Xa=this.eb=this.cb=this.Ea=this.Da=0}function d(b,h,a,e){b<h?a<e?(k=b<a?b:a,w=h>e?h:e):(k=b<e?b:e,w=h>a?h:a):a<e?(k=h<a?h:a,w=b>e?b:e):(k=h<e?h:e,w=b>a?b:a)}function p(){this.items=this.td=null;this.Ng=0;h&&(this.td=new Set);this.kh=[];this.Pe=!0}function m(b){x[H++]=b}function s(){this.O=this.fl=this.y=this.Ol=0}function g(b){this.Ha=[];this.mj=this.oj=this.pj=this.nj=0;this.Gi(b)}function r(b,h){this.Hb=
b;this.Gb=h;this.cells={}}function u(b,h){this.Hb=b;this.Gb=h;this.cells={}}function v(b,h,a){var e;return M.length?(e=M.pop(),e.tm=b,e.x=h,e.y=a,e):new ca(b,h,a)}function a(b,h,a){this.tm=b;this.x=h;this.y=a;this.Bb=new da}function c(b,h,a){var e;return D.length?(e=D.pop(),e.tm=b,e.x=h,e.y=a,e):new ea(b,h,a)}function f(b,h,a){this.tm=b;this.x=h;this.y=a;this.Bb=[];this.Lg=!0;this.Id=new da;this.rh=!1}function e(b,h){return b.yd-h.yd}ga=function(b){window.console&&window.console.log&&window.console.log(b)};
ha=function(b){window.console&&window.console.error&&window.console.error(b)};ba=function(b){return b};ka=function(b){return"undefined"===typeof b};la=function(b){return"number"===typeof b};na=function(b){return"string"===typeof b};oa=function(b){return 0<b&&0===(b-1&b)};pa=function(b){--b;for(var h=1;32>h;h<<=1)b|=b>>h;return b+1};qa=function(b){return 0>b?-b:b};ra=function(b,h){return b>h?b:h};ta=function(b,h){return b<h?b:h};ua=Math.PI;F=function(b){return 0<=b?b|0:(b|0)-1};va=function(b){var h=
b|0;return h===b?h:h+1};wa=function(b,h,a,e,x,c,n,H){var k,q,f,M;b<a?(q=b,k=a):(q=a,k=b);x<n?(M=x,f=n):(M=n,f=x);if(k<M||q>f)return!1;h<e?(q=h,k=e):(q=e,k=h);c<H?(M=c,f=H):(M=H,f=c);if(k<M||q>f)return!1;k=x-b+n-a;q=c-h+H-e;b=a-b;h=e-h;x=n-x;c=H-c;H=qa(h*x-c*b);return qa(x*q-c*k)>H?!1:qa(b*q-h*k)<=H};l.prototype.set=function(b,h,a,e){this.left=b;this.top=h;this.right=a;this.bottom=e};l.prototype.xh=function(b){this.left=b.left;this.top=b.top;this.right=b.right;this.bottom=b.bottom};l.prototype.width=
function(){return this.right-this.left};l.prototype.height=function(){return this.bottom-this.top};l.prototype.offset=function(b,h){this.left+=b;this.top+=h;this.right+=b;this.bottom+=h;return this};l.prototype.normalize=function(){var b=0;this.left>this.right&&(b=this.left,this.left=this.right,this.right=b);this.top>this.bottom&&(b=this.top,this.top=this.bottom,this.bottom=b)};l.prototype.rw=function(b){return!(b.right<this.left||b.bottom<this.top||b.left>this.right||b.top>this.bottom)};l.prototype.sw=
function(b,h,a){return!(b.right+h<this.left||b.bottom+a<this.top||b.left+h>this.right||b.top+a>this.bottom)};l.prototype.Ib=function(b,h){return b>=this.left&&b<=this.right&&h>=this.top&&h<=this.bottom};l.prototype.Jj=function(b){return this.left===b.left&&this.top===b.top&&this.right===b.right&&this.bottom===b.bottom};J=l;t.prototype.Fi=function(b){this.Da=b.left;this.Ea=b.top;this.cb=b.right;this.eb=b.top;this.Xa=b.right;this.Ya=b.bottom;this.Va=b.left;this.Wa=b.bottom};t.prototype.Fq=function(b,
h){if(0===h)this.Fi(b);else{var a=Math.sin(h),e=Math.cos(h),x=b.left*a,c=b.top*a,n=b.right*a,a=b.bottom*a,H=b.left*e,k=b.top*e,q=b.right*e,e=b.bottom*e;this.Da=H-c;this.Ea=k+x;this.cb=q-c;this.eb=k+n;this.Xa=q-a;this.Ya=e+n;this.Va=H-a;this.Wa=e+x}};t.prototype.offset=function(b,h){this.Da+=b;this.Ea+=h;this.cb+=b;this.eb+=h;this.Xa+=b;this.Ya+=h;this.Va+=b;this.Wa+=h;return this};var k=0,w=0;t.prototype.Ko=function(b){d(this.Da,this.cb,this.Xa,this.Va);b.left=k;b.right=w;d(this.Ea,this.eb,this.Ya,
this.Wa);b.top=k;b.bottom=w};t.prototype.Ib=function(b,h){var a=this.cb-this.Da,e=this.eb-this.Ea,x=this.Xa-this.Da,c=this.Ya-this.Ea,n=b-this.Da,H=h-this.Ea,k=a*a+e*e,q=a*x+e*c,e=a*n+e*H,f=x*x+c*c,M=x*n+c*H,w=1/(k*f-q*q),a=(f*e-q*M)*w,k=(k*M-q*e)*w;if(0<=a&&0<k&&1>a+k)return!0;a=this.Va-this.Da;e=this.Wa-this.Ea;k=a*a+e*e;q=a*x+e*c;e=a*n+e*H;w=1/(k*f-q*q);a=(f*e-q*M)*w;k=(k*M-q*e)*w;return 0<=a&&0<k&&1>a+k};t.prototype.Ne=function(b,h){if(h)switch(b){case 0:return this.Da;case 1:return this.cb;case 2:return this.Xa;
case 3:return this.Va;case 4:return this.Da;default:return this.Da}else switch(b){case 0:return this.Ea;case 1:return this.eb;case 2:return this.Ya;case 3:return this.Wa;case 4:return this.Ea;default:return this.Ea}};t.prototype.Op=function(){return(this.Da+this.cb+this.Xa+this.Va)/4};t.prototype.Pp=function(){return(this.Ea+this.eb+this.Ya+this.Wa)/4};t.prototype.sp=function(b){var h=b.Op(),a=b.Pp();if(this.Ib(h,a))return!0;h=this.Op();a=this.Pp();if(b.Ib(h,a))return!0;var e,x,c,n,H,k,q,f;for(q=
0;4>q;q++)for(f=0;4>f;f++)if(h=this.Ne(q,!0),a=this.Ne(q,!1),e=this.Ne(q+1,!0),x=this.Ne(q+1,!1),c=b.Ne(f,!0),n=b.Ne(f,!1),H=b.Ne(f+1,!0),k=b.Ne(f+1,!1),wa(h,a,e,x,c,n,H,k))return!0;return!1};ya=t;za=function(b,h,a){return Math.max(Math.min(b,255),0)|Math.max(Math.min(h,255),0)<<8|Math.max(Math.min(a,255),0)<<16};Aa=function(b){return b&255};Ba=function(b){return(b&65280)>>8};Ca=function(b){return(b&16711680)>>16};Da=function(b,h){for(var a in h)h.hasOwnProperty(a)&&(b[a]=h[a]);return b};Ea=function(b,
h){var a,e;h=F(h);if(!(0>h||h>=b.length)){a=h;for(e=b.length-1;a<e;a++)b[a]=b[a+1];b.length=e}};Fa=function(b,h){b.length=h.length;var a,e;a=0;for(e=h.length;a<e;a++)b[a]=h[a]};Ga=function(b,h){b.push.apply(b,h)};Ha=function(b,h){var a,e;a=0;for(e=b.length;a<e;++a)if(b[a]===h)return a;return-1};Ia=function(b,h){var a=Ha(b,h);-1!==a&&Ea(b,a)};Ja=function(b,h,a){return b<h?h:b>a?a:b};S=function(b){return b/(180/ua)};La=function(b){return 180/ua*b};Ma=function(b){b%=360;0>b&&(b+=360);return b};Pa=function(b){b%=
2*ua;0>b&&(b+=2*ua);return b};Qa=function(b){return Ma(La(b))};Ra=function(b){return Pa(S(b))};Ta=function(b,h,a,e){return Math.atan2(e-h,a-b)};Ua=function(b,h){if(b===h)return 0;var a=Math.sin(b),e=Math.cos(b),x=Math.sin(h),c=Math.cos(h),a=a*x+e*c;return 1<=a?0:-1>=a?ua:Math.acos(a)};Va=function(b,h,a){var e=Math.sin(b),x=Math.cos(b),c=Math.sin(h),n=Math.cos(h);return Math.acos(e*c+x*n)>a?0<x*c-e*n?Pa(b+a):Pa(b-a):Pa(h)};Wa=function(b,h){var a=Math.sin(b),e=Math.cos(b),x=Math.sin(h),c=Math.cos(h);
return 0>=e*x-a*c};Xa=function(b,h,a,e,x,c){if(0===a)return c?b:h;var n=Math.sin(a);a=Math.cos(a);b-=e;h-=x;var H=b*n;b=b*a-h*n;h=h*a+H;return c?b+e:h+x};Ya=function(b,h,a,e){b=a-b;h=e-h;return Math.sqrt(b*b+h*h)};cb=function(b,h){return!b!==!h};db=function(b,h,a){return b+(h-b)*a};eb=function(b){for(var h in b)if(b.hasOwnProperty(h))return!0;return!1};fb=function(b){for(var h in b)b.hasOwnProperty(h)&&delete b[h]};var z=+new Date;gb=function(){if("undefined"!==typeof window.performance){var b=window.performance;
if("undefined"!==typeof b.now)return b.now();if("undefined"!==typeof b.webkitNow)return b.webkitNow();if("undefined"!==typeof b.mozNow)return b.mozNow();if("undefined"!==typeof b.msNow)return b.msNow()}return Date.now()-z};var q=!1,n=q=!1,b=!1;"undefined"!==typeof window&&(q=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),q=!q&&/safari/i.test(navigator.userAgent),n=/(iphone|ipod|ipad)/i.test(navigator.userAgent),b=window.c2ejecta);var h=!q&&!b&&!n&&"undefined"!==typeof Set&&
"undefined"!==typeof Set.prototype.forEach;p.prototype.contains=function(b){return this.de()?!1:h?this.td.has(b):this.items&&this.items.hasOwnProperty(b)};p.prototype.add=function(b){if(h)this.td.has(b)||(this.td.add(b),this.Pe=!1);else{var a=b.toString(),e=this.items;e?e.hasOwnProperty(a)||(e[a]=b,this.Ng++,this.Pe=!1):(this.items={},this.items[a]=b,this.Ng=1,this.Pe=!1)}};p.prototype.remove=function(b){if(!this.de())if(h)this.td.has(b)&&(this.td["delete"](b),this.Pe=!1);else if(this.items){b=b.toString();
var a=this.items;a.hasOwnProperty(b)&&(delete a[b],this.Ng--,this.Pe=!1)}};p.prototype.clear=function(){this.de()||(h?this.td.clear():(this.items=null,this.Ng=0),this.kh.length=0,this.Pe=!0)};p.prototype.de=function(){return 0===this.count()};p.prototype.count=function(){return h?this.td.size:this.Ng};var x=null,H=0;p.prototype.Ox=function(){if(!this.Pe){if(h)this.kh.length=this.td.size,x=this.kh,H=0,this.td.forEach(m),x=null,H=0;else{var b=this.kh;b.length=this.Ng;var a,e=0,c=this.items;if(c)for(a in c)c.hasOwnProperty(a)&&
(b[e++]=c[a])}this.Pe=!0}};p.prototype.De=function(){this.Ox();return this.kh};da=p;new da;hb=function(b,a){h?ib(b,a.td):jb(b,a.De())};ib=function(b,h){var a,e,x,c;e=a=0;for(x=b.length;a<x;++a)c=b[a],h.has(c)||(b[e++]=c);b.length=e};jb=function(b,h){var a,e,x,c;e=a=0;for(x=b.length;a<x;++a)c=b[a],-1===Ha(h,c)&&(b[e++]=c);b.length=e};s.prototype.add=function(b){this.y=b-this.Ol;this.fl=this.O+this.y;this.Ol=this.fl-this.O-this.y;this.O=this.fl};s.prototype.reset=function(){this.O=this.fl=this.y=this.Ol=
0};kb=s;lb=function(b){return b.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};g.prototype.Gi=function(b){this.sq=b;this.Cc=b.length/2;this.Ha.length=b.length;this.qj=this.rj=-1;this.Mo=0};g.prototype.Ig=function(){return!this.sq.length};g.prototype.Fa=function(){for(var b=this.Ha,h=b[0],a=h,e=b[1],x=e,c,n,H=1,k=this.Cc;H<k;++H)n=2*H,c=b[n],n=b[n+1],c<h&&(h=c),c>a&&(a=c),n<e&&(e=n),n>x&&(x=n);this.nj=h;this.oj=a;this.pj=e;this.mj=x};g.prototype.Fi=function(b,h,a){this.Ha.length=8;this.Cc=4;var e=this.Ha;
e[0]=b.left-h;e[1]=b.top-a;e[2]=b.right-h;e[3]=b.top-a;e[4]=b.right-h;e[5]=b.bottom-a;e[6]=b.left-h;e[7]=b.bottom-a;this.rj=b.right-b.left;this.qj=b.bottom-b.top;this.Fa()};g.prototype.bh=function(b,h,a,e,x){this.Ha.length=8;this.Cc=4;var c=this.Ha;c[0]=b.Da-h;c[1]=b.Ea-a;c[2]=b.cb-h;c[3]=b.eb-a;c[4]=b.Xa-h;c[5]=b.Ya-a;c[6]=b.Va-h;c[7]=b.Wa-a;this.rj=e;this.qj=x;this.Fa()};g.prototype.Eq=function(b){this.Cc=b.Cc;Fa(this.Ha,b.Ha);this.nj=b.nj;this.pj-b.pj;this.oj=b.oj;this.mj=b.mj};g.prototype.tf=
function(b,h,a){if(this.rj!==b||this.qj!==h||this.Mo!==a){this.rj=b;this.qj=h;this.Mo=a;var e,x,c,n,H,k=0,q=1,f=this.sq,M=this.Ha;0!==a&&(k=Math.sin(a),q=Math.cos(a));a=0;for(c=this.Cc;a<c;a++)e=2*a,x=e+1,n=f[e]*b,H=f[x]*h,M[e]=n*q-H*k,M[x]=H*q+n*k;this.Fa()}};g.prototype.Ib=function(b,h){var a=this.Ha;if(b===a[0]&&h===a[1])return!0;var e,x,c,n=this.Cc,H=this.nj-110,k=this.pj-101,q=this.oj+131,f=this.mj+120,M,w,g=0,m=0;for(e=0;e<n;e++)x=2*e,c=(e+1)%n*2,M=a[x],x=a[x+1],w=a[c],c=a[c+1],wa(H,k,b,h,M,
x,w,c)&&g++,wa(q,f,b,h,M,x,w,c)&&m++;return 1===g%2||1===m%2};g.prototype.Ph=function(b,h,a){var e=b.Ha,x=this.Ha;if(this.Ib(e[0]+h,e[1]+a)||b.Ib(x[0]-h,x[1]-a))return!0;var c,n,H,k,q,f,M,w,g,m,W,D;c=0;for(k=this.Cc;c<k;c++)for(n=2*c,H=(c+1)%k*2,w=x[n],n=x[n+1],g=x[H],m=x[H+1],H=0,M=b.Cc;H<M;H++)if(q=2*H,f=(H+1)%M*2,W=e[q]+h,q=e[q+1]+a,D=e[f]+h,f=e[f+1]+a,wa(w,n,g,m,W,q,D,f))return!0;return!1};g.prototype.Ow=function(b){var h,a,e;h=0;for(a=this.Cc;h<a;++h)e=2*h,this.Ha[e]=2*b-this.Ha[e]};g.prototype.Gv=
function(b){var h,a,e;h=0;for(a=this.Cc;h<a;++h)e=2*h+1,this.Ha[e]=2*b-this.Ha[e]};g.prototype.Tu=function(){var b,h,a,e,x;b=0;for(h=this.Cc;b<h;++b)a=2*b,e=a+1,x=this.Ha[a],this.Ha[a]=this.Ha[e],this.Ha[e]=x};mb=g;r.prototype.Xe=function(b,h,a){var e;e=this.cells[b];return e?(e=e[h])?e:a?(e=v(this,b,h),this.cells[b][h]=e):null:a?(e=v(this,b,h),this.cells[b]={},this.cells[b][h]=e):null};r.prototype.Ec=function(b){return F(b/this.Hb)};r.prototype.Fc=function(b){return F(b/this.Gb)};r.prototype.update=
function(b,h,a){var e,x,c,n,H;if(h)for(e=h.left,x=h.right;e<=x;++e)for(c=h.top,n=h.bottom;c<=n;++c)if(!a||!a.Ib(e,c))if(H=this.Xe(e,c,!1))H.remove(b),H.de()&&(H.Bb.clear(),1E3>M.length&&M.push(H),this.cells[e][c]=null);if(a)for(e=a.left,x=a.right;e<=x;++e)for(c=a.top,n=a.bottom;c<=n;++c)h&&h.Ib(e,c)||this.Xe(e,c,!0).zm(b)};r.prototype.Nk=function(b,h){var a,e,x,c,n,H;a=this.Ec(b.left);x=this.Fc(b.top);e=this.Ec(b.right);for(n=this.Fc(b.bottom);a<=e;++a)for(c=x;c<=n;++c)(H=this.Xe(a,c,!1))&&H.dump(h)};
nb=r;u.prototype.Xe=function(b,h,a){var e;e=this.cells[b];return e?(e=e[h])?e:a?(e=c(this,b,h),this.cells[b][h]=e):null:a?(e=c(this,b,h),this.cells[b]={},this.cells[b][h]=e):null};u.prototype.Ec=function(b){return F(b/this.Hb)};u.prototype.Fc=function(b){return F(b/this.Gb)};u.prototype.update=function(b,h,a){var e,x,c,n,H;if(h)for(e=h.left,x=h.right;e<=x;++e)for(c=h.top,n=h.bottom;c<=n;++c)if(!a||!a.Ib(e,c))if(H=this.Xe(e,c,!1))H.remove(b),H.de()&&(H.reset(),1E3>D.length&&D.push(H),this.cells[e][c]=
null);if(a)for(e=a.left,x=a.right;e<=x;++e)for(c=a.top,n=a.bottom;c<=n;++c)h&&h.Ib(e,c)||this.Xe(e,c,!0).zm(b)};u.prototype.Nk=function(b,h,a,e,x){var c,n;b=this.Ec(b);h=this.Fc(h);a=this.Ec(a);for(c=this.Fc(e);b<=a;++b)for(e=h;e<=c;++e)(n=this.Xe(b,e,!1))&&n.dump(x)};u.prototype.Kw=function(b){var h,a,e,x,c;h=b.left;e=b.top;a=b.right;for(x=b.bottom;h<=a;++h)for(b=e;b<=x;++b)if(c=this.Xe(h,b,!1))c.Lg=!1};ob=u;var M=[];a.prototype.de=function(){return this.Bb.de()};a.prototype.zm=function(b){this.Bb.add(b)};
a.prototype.remove=function(b){this.Bb.remove(b)};a.prototype.dump=function(b){Ga(b,this.Bb.De())};ca=a;var D=[];f.prototype.de=function(){if(!this.Bb.length)return!0;if(this.Bb.length>this.Id.count())return!1;this.fm();return!0};f.prototype.zm=function(b){this.Id.contains(b)?(this.Id.remove(b),this.Id.de()&&(this.rh=!1)):this.Bb.length?(this.Bb[this.Bb.length-1].Ed()>b.Ed()&&(this.Lg=!1),this.Bb.push(b)):(this.Bb.push(b),this.Lg=!0)};f.prototype.remove=function(b){this.Id.add(b);this.rh=!0;30<=this.Id.count()&&
this.fm()};f.prototype.fm=function(){this.rh&&(this.Id.count()===this.Bb.length?this.reset():(hb(this.Bb,this.Id),this.Id.clear(),this.rh=!1))};f.prototype.bv=function(){this.Lg||(this.Bb.sort(e),this.Lg=!0)};f.prototype.reset=function(){this.Bb.length=0;this.Lg=!0;this.Id.clear();this.rh=!1};f.prototype.dump=function(b){this.fm();this.bv();this.Bb.length&&b.push(this.Bb)};ea=f;var W="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");
pb=function(b){return 0>=b||11<=b?"source-over":W[b-1]};qb=function(b,h,a){if(a)switch(b.Xb=a.ONE,b.Pb=a.ONE_MINUS_SRC_ALPHA,h){case 1:b.Xb=a.ONE;b.Pb=a.ONE;break;case 3:b.Xb=a.ONE;b.Pb=a.ZERO;break;case 4:b.Xb=a.ONE_MINUS_DST_ALPHA;b.Pb=a.ONE;break;case 5:b.Xb=a.DST_ALPHA;b.Pb=a.ZERO;break;case 6:b.Xb=a.ZERO;b.Pb=a.SRC_ALPHA;break;case 7:b.Xb=a.ONE_MINUS_DST_ALPHA;b.Pb=a.ZERO;break;case 8:b.Xb=a.ZERO;b.Pb=a.ONE_MINUS_SRC_ALPHA;break;case 9:b.Xb=a.DST_ALPHA;b.Pb=a.ONE_MINUS_SRC_ALPHA;break;case 10:b.Xb=
a.ONE_MINUS_DST_ALPHA,b.Pb=a.SRC_ALPHA}};rb=function(b){return Math.round(1E6*b)/1E6};sb=function(b,h){return"string"!==typeof b||"string"!==typeof h||b.length!==h.length?!1:b===h?!0:b.toLowerCase()===h.toLowerCase()};tb=function(b){b=b.target;return!b||b===document||b===window||document&&document.body&&b===document.body||sb(b.tagName,"canvas")?!0:!1}})();
(function(){function l(){return"undefined"!==typeof jQuery?jQuery(window).width():window.innerWidth}function t(){return"undefined"!==typeof jQuery?jQuery(window).height():window.innerHeight}function d(b){if(b&&(b.getContext||b.dc)&&!b.c2runtime){b.c2runtime=this;var h=this;this.xc=(this.Sh=/crosswalk/i.test(navigator.userAgent)||/xwalk/i.test(navigator.userAgent)||!("undefined"===typeof window.c2isCrosswalk||!window.c2isCrosswalk))||"undefined"!==typeof window.device&&("undefined"!==typeof window.device.cordova||
"undefined"!==typeof window.device.phonegap)||"undefined"!==typeof window.c2iscordova&&window.c2iscordova;this.Ab=!!b.dc;this.Gg="undefined"!==typeof window.AppMobi||this.Ab;this.jc=!!window.c2cocoonjs;this.Jc=!!window.c2ejecta;this.jc&&(CocoonJS.App.onSuspended.addEventListener(function(){h.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){h.setSuspended(!1)}));this.Jc&&(document.addEventListener("pagehide",function(){h.setSuspended(!0)}),document.addEventListener("pageshow",
function(){h.setSuspended(!1)}),document.addEventListener("resize",function(){h.setSize(window.innerWidth,window.innerHeight)}));this.wa=this.Ab||this.jc||this.Jc;this.ek=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent)||/edge\//i.test(navigator.userAgent);this.zp=/tizen/i.test(navigator.userAgent);this.Qh=/android/i.test(navigator.userAgent)&&!this.zp&&!this.ek;this.Gm=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&
!this.ek;this.Cp=/ipad/i.test(navigator.userAgent);this.$h=this.Gm||this.Cp||this.Jc;this.Cw=this.Gm&&/os\s6/i.test(navigator.userAgent);this.Rh=(/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent))&&!this.ek;this.Bm=/amazonwebappplatform/i.test(navigator.userAgent);this.xw=/firefox/i.test(navigator.userAgent);this.wp=/safari/i.test(navigator.userAgent)&&!this.Rh&&!this.ek;this.zw=/windows/i.test(navigator.userAgent);this.$e="undefined"!==typeof window.c2nodewebkit||"undefined"!==
typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.Ap=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.Bw=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.Rf=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.Wh=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.fk=this.Ap||this.Bw||this.Wh;this.ww=!("undefined"===typeof window.c2isBlackberry10||
!window.c2isBlackberry10);this.dk=this.Qh&&!this.Rh&&!this.Sh&&!this.xw&&!this.Bm&&!this.wa;this.devicePixelRatio=1;this.ee=this.xc||this.Sh||this.Gg||this.jc||this.Qh||this.$h||this.Rf||this.Wh||this.ww||this.zp||this.Jc;this.ee||(this.ee=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));"undefined"===typeof cr_is_preview||this.$e||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&!/nwjs/i.test(navigator.userAgent)||
(this.$e=!0);this.canvas=b;this.sj=document.getElementById("c2canvasdiv");this.ua=this.G=this.ae=null;this.jm="";this.Nj=!1;this.Yp=this.Zp=0;this.canvas.oncontextmenu=function(b){b.preventDefault&&b.preventDefault();return!1};this.canvas.onselectstart=function(b){b.preventDefault&&b.preventDefault();return!1};this.Ab&&(window.c2runtime=this);this.$e&&(window.ondragover=function(b){b.preventDefault();return!1},window.ondrop=function(b){b.preventDefault();return!1},require("nw.gui").App.clearCache());
this.dk&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=b.width;this.height=b.height;this.fa=this.width;this.ea=this.height;this.Bj=this.width;this.Aj=this.height;this.di=window.innerWidth;this.ci=window.innerHeight;this.Hv=!1;this.V=!0;this.Uh=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.I=[];this.fb=[];this.Jm={};this.rd=[];this.cm={};this.Yd=[];this.nh=[];this.nl=[];this.yu=[];this.zu=[];this.Kq=null;this.xf=
{};this.Cm=this.Ye=!1;this.Kc=0;this.Em=!1;this.nd=[];this.ge=this.ec=this.fi=this.Sk="";this.Ji=this.Iq=!1;this.Ul=this.hi=this.Ve=this.Ue=0;this.jg=1;this.ac=new kb;this.Rd=new kb;this.yk=this.Qj=this.Cf=this.Od=this.Tf=this.hm=this.mk=0;this.uf=null;this.Gj=[];this.am=[];this.Kj=-1;this.Mm=[[]];this.Mn=this.tk=0;this.Mk(null);this.Om=[];this.uk=-1;this.Tp=this.li=0;this.Im=!0;this.Dh=0;this.Ki=[];this.In=this.hn=-1;this.Mg=!0;this.Wf=0;this.Th=!1;this.Kx=0;this.sg=null;this.ad=this.um=!1;this.Xp=
new da;this.Wm=new da;this.Xm=new da;this.xq=[];this.vd=new mb([]);this.Cn=new mb([]);this.Le=[];this.Eg={};this.vg={};this.rg={};this.mh={};this.Io={};this.Lp=this.ok=this.zc=this.Mc=this.Kp=this.nk=this.ra=null;this.jh=this.Fm=!1;this.km=[null,null];this.Df=0;this.Eh="";this.ef={};this.bl=this.Pg=null;this.xk=[];this.qx()}}function p(b){b.target.result.createObjectStore("saves",{keyPath:"slot"})}function m(b,h,a,e){var c=indexedDB.open("_C2SaveStates");c.onupgradeneeded=p;c.onerror=e;c.onsuccess=
function(c){c=c.target.result;c.onerror=e;c.transaction(["saves"],"readwrite").objectStore("saves").put({slot:b,data:h}).onsuccess=a}}function s(b,h,a){var e=indexedDB.open("_C2SaveStates");e.onupgradeneeded=p;e.onerror=a;e.onsuccess=function(e){e=e.target.result;e.onerror=a;var c=e.transaction(["saves"]).objectStore("saves").get(b);c.onsuccess=function(){c.result?h(c.result.data):h(null)}}}function g(){ga("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?
window.location.reload(!0):window.location+="?continuous"}function r(b){var h,a={};for(h in b)!b.hasOwnProperty(h)||b[h]instanceof da||b[h]&&"undefined"!==typeof b[h].Ay||(a[h]=b[h]);return a}d.prototype.qx=function(){var b=this,h;h=this.Rf?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest;var a="data.js";if(this.Ap||this.Rf||this.Wh)a="data.json";h.open("GET",a,!0);var e=!1;if(!this.wa&&"response"in h&&"responseType"in h)try{h.responseType="json",e="json"===h.responseType}catch(c){e=!1}if(!e&&
"responseType"in h)try{h.responseType="text"}catch(n){}if("overrideMimeType"in h)try{h.overrideMimeType("application/json; charset=utf-8")}catch(k){}this.Rf?h.onreadystatechange=function(){4===h.readyState&&b.qk(JSON.parse(h.responseText))}:(h.onload=function(){if(e)b.qk(h.response);else if(b.Jc){var a=h.responseText,a=a.substr(a.indexOf("{"));b.qk(JSON.parse(a))}else b.qk(JSON.parse(h.responseText))},h.onerror=function(b){ha("Error requesting "+a+":");ha(b)});h.send()};d.prototype.qw=function(){var b=
this,h,a,e,c,n,k,q,f,w;this.devicePixelRatio=(this.Pf=(!this.wa||this.Jc)&&this.Qx&&!this.dk)?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.Ob();a=!(!this.Hv&&(!this.Il||this.$e||this.fk||this.Rf||this.Sh||this.xc||this.Bm));0<this.vc&&this.setSize(l(),t(),!0);try{this.$u&&(this.jc||this.Jc||!this.wa)&&(h={alpha:a,depth:!1,antialias:!1,failIfMajorPerformanceCaveat:!0},this.ae=this.canvas.getContext("webgl",h)||this.canvas.getContext("experimental-webgl",
h))}catch(g){}if(this.ae){this.wa||(this.Lb=document.createElement("canvas"),jQuery(this.Lb).appendTo(this.canvas.parentNode),this.Lb.oncontextmenu=function(){return!1},this.Lb.onselectstart=function(){return!1},this.Lb.width=this.Bj,this.Lb.height=this.Aj,jQuery(this.Lb).css({width:this.Bj+"px",height:this.Aj+"px"}),this.qq(),this.cn=this.Lb.getContext("2d"));this.G=new aa.cy(this.ae,this.ee);this.G.Di(this.canvas.width,this.canvas.height);this.G.Cy=0!==this.Vu;this.ua=null;this.canvas.addEventListener("webglcontextlost",
function(h){h.preventDefault();b.Rw();ga("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){b.G.Ny();b.G.Di(b.G.width,b.G.height,!0);b.Mc=null;b.zc=null;b.km[0]=null;b.km[1]=null;b.Sw();b.V=!0;ga("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);h=0;for(a=this.I.length;h<a;h++)for(n=this.I[h],e=0,c=n.X.length;e<c;e++)q=n.X[e],q.Nb=this.G.hp(q.id),this.jh=this.jh||this.G.Lk(q.Nb);h=0;for(a=this.rd.length;h<
a;h++){f=this.rd[h];e=0;for(c=f.X.length;e<c;e++)q=f.X[e],q.Nb=this.G.hp(q.id);e=0;for(c=f.ga.length;e<c;e++)for(w=f.ga[e],n=0,k=w.X.length;n<k;n++)q=w.X[n],q.Nb=this.G.hp(q.id),this.jh=this.jh||this.G.Lk(q.Nb)}}else{if(0<this.vc&&this.Ab){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.ua=AppMobi.canvas.getContext("2d");try{this.ua.samplingMode=this.ba?"smooth":"sharp",this.ua.globalScale=1,this.ua.HTML5CompatibilityMode=!0,this.ua.imageSmoothingEnabled=
this.ba}catch(m){}0!==this.width&&0!==this.height&&(this.ua.width=this.width,this.ua.height=this.height)}this.ua||(h=this.jc?{antialias:!!this.ba,alpha:a}:{alpha:a},this.ua=this.canvas.getContext("2d",h),this.ua.webkitImageSmoothingEnabled=this.ba,this.ua.mozImageSmoothingEnabled=this.ba,this.ua.msImageSmoothingEnabled=this.ba,this.ua.imageSmoothingEnabled=this.ba);this.cn=this.Lb=null}this.Oq=function(h){b.Na(!1,h)};window==window.top||this.wa||this.fk||this.Rf||(document.addEventListener("mousedown",
function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.jc&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(ga("Reloading for continuous preview"),this.fi="__c2_continuouspreview",this.Ji=!0),this.Yw&&!this.ee&&(jQuery(window).focus(function(){b.setSuspended(!1)}),jQuery(window).blur(function(){b.setSuspended(!0)})));this.wa||(h=function(b){if(tb(b)&&
document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(h){}},window.navigator.pointerEnabled?document.addEventListener("pointerdown",h):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",h):document.addEventListener("touchstart",h),document.addEventListener("mousedown",h));0===this.vc&&this.Pf&&1<this.devicePixelRatio&&this.setSize(this.nb,this.mb,!0);this.Xq();this.mw();
this.go();this.aa={}};d.prototype.setSize=function(b,h,a){var e=0,c=0,n=0,k=0,k=0,q=this.Cw&&this.wp&&!navigator.standalone&&!this.wa&&!this.xc;q&&(h+=60);if(this.di!==b||this.ci!==h||a){this.di=b;this.ci=h;var f=this.vc,w=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.Th)&&!this.xc;if(w||0!==this.vc||a)w&&0<this.Df&&(f=this.Df),a=this.devicePixelRatio,4<=f?(n=this.nb/this.mb,b/h>n?(n*=h,5===f?(k=n*a/this.nb,1<k?k=Math.floor(k):1>k&&
(k=1/Math.ceil(1/k)),n=this.nb*k/a,k=this.mb*k/a,e=(b-n)/2,c=(h-k)/2,b=n,h=k):(e=(b-n)/2,b=n)):(k=b/n,5===f?(k=k*a/this.mb,1<k?k=Math.floor(k):1>k&&(k=1/Math.ceil(1/k)),n=this.nb*k/a,k=this.mb*k/a,e=(b-n)/2,c=(h-k)/2,b=n):c=(h-k)/2,h=k),w&&!this.$e&&(c=e=0)):this.$e&&this.Th&&0===this.Yo&&(e=Math.floor((b-this.nb)/2),c=Math.floor((h-this.mb)/2),b=this.nb,h=this.mb),2>f&&(this.uh=a),this.Pf&&this.Cp&&1<a&&(1024<=b&&(b=1023),1024<=h&&(h=1023)),this.Bj=Math.round(b),this.Aj=Math.round(h),this.width=
Math.round(b*a),this.height=Math.round(h*a),this.V=!0,this.kr?(this.fa=this.width,this.ea=this.height,this.$c=!0):this.width<this.nb&&this.height<this.mb||1===f?(this.fa=this.width,this.ea=this.height,this.$c=!0):(this.fa=this.nb,this.ea=this.mb,this.$c=!1,2===f?(n=this.nb/this.mb,f=this.di/this.ci,f<n?this.fa=this.ea*f:f>n&&(this.ea=this.fa/f)):3===f&&(n=this.nb/this.mb,f=this.di/this.ci,f>n?this.fa=this.ea*f:f<n&&(this.ea=this.fa/f))),this.sj&&!this.wa&&(jQuery(this.sj).css({width:Math.round(b)+
"px",height:Math.round(h)+"px","margin-left":Math.floor(e)+"px","margin-top":Math.floor(c)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(b)+"px",height:Math.round(h)+"px"})),this.canvas&&(this.canvas.width=Math.round(b*a),this.canvas.height=Math.round(h*a),this.Jc?(this.canvas.style.left=Math.floor(e)+"px",this.canvas.style.top=Math.floor(c)+"px",this.canvas.style.width=Math.round(b)+"px",this.canvas.style.height=Math.round(h)+"px"):this.Pf&&!this.wa&&jQuery(this.canvas).css({width:Math.round(b)+
"px",height:Math.round(h)+"px"})),this.Lb&&(this.Lb.width=Math.round(b),this.Lb.height=Math.round(h),jQuery(this.Lb).css({width:Math.round(b)+"px",height:Math.round(h)+"px"})),this.G&&this.G.Di(Math.round(b*a),Math.round(h*a)),this.Ab&&this.ua&&(this.ua.width=Math.round(b),this.ua.height=Math.round(h)),this.ua&&(this.ua.webkitImageSmoothingEnabled=this.ba,this.ua.mozImageSmoothingEnabled=this.ba,this.ua.msImageSmoothingEnabled=this.ba,this.ua.imageSmoothingEnabled=this.ba),this.Xq(),this.wa||!q&&
!this.Gm||window.setTimeout(function(){window.scrollTo(0,1)},100)}};d.prototype.Xq=function(){if(this.Eu&&0!==this.an){var b="portrait";2===this.an&&(b="landscape");screen.orientation&&screen.orientation.lock?screen.orientation.lock(b):screen.lockOrientation?screen.lockOrientation(b):screen.webkitLockOrientation?screen.webkitLockOrientation(b):screen.mozLockOrientation?screen.mozLockOrientation(b):screen.msLockOrientation&&screen.msLockOrientation(b)}};d.prototype.Rw=function(){this.G.By();this.Fm=
!0;var b,h,a;b=0;for(h=this.I.length;b<h;b++)a=this.I[b],a.ag&&a.ag()};d.prototype.Sw=function(){this.Fm=!1;var b,h,a;b=0;for(h=this.I.length;b<h;b++)a=this.I[b],a.Xg&&a.Xg()};d.prototype.qq=function(){if(!this.wa){var b=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.Th)&&!this.xc?jQuery(this.canvas).offset():jQuery(this.canvas).position();b.position="absolute";jQuery(this.Lb).css(b)}};var u=window.cancelAnimationFrame||window.mozCancelAnimationFrame||
window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;d.prototype.setSuspended=function(b){var h;if(b&&!this.Uh)for(ga("[Construct 2] Suspending"),this.Uh=!0,-1!==this.hn&&u&&u(this.hn),-1!==this.In&&clearTimeout(this.In),b=0,h=this.Ki.length;b<h;b++)this.Ki[b](!0);else if(!b&&this.Uh){ga("[Construct 2] Resuming");this.Uh=!1;this.mk=gb();this.Tf=gb();b=this.hi=this.Qj=0;for(h=this.Ki.length;b<h;b++)this.Ki[b](!1);this.Na(!1)}};d.prototype.Do=function(b){this.Ki.push(b)};
d.prototype.Ie=function(b){return this.xk[b]};d.prototype.qk=function(b){b&&b.project||ha("Project model unavailable");b=b.project;this.name=b[0];this.Xo=b[1];this.vc=b[12];this.Yo=b[12];this.nb=b[10];this.mb=b[11];this.lq=this.nb/2;this.mq=this.mb/2;this.wa&&!this.Jc&&(4<=b[12]||0===b[12])&&(ga("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.Yo=this.vc=3);this.Rn=b[18];this.gi=b[19];0===this.gi&&(this.Pg=new Image,this.Pg.src=
"loading-logo.png");this.li=b[21];this.xk=kc();this.Md=new T(this);var h,a,e,c,n,k,q,f,w;h=0;for(a=b[2].length;h<a;h++)q=b[2][h],e=this.Ie(q[0]),ub(q,e.prototype),w=new e(this),w.al=q[1],w.bf=q[2],w.Qp=q[9],w.K&&w.K(),this.plugins.push(w);this.xk=kc();h=0;for(a=b[3].length;h<a;h++){q=b[3][h];n=this.Ie(q[1]);w=null;e=0;for(c=this.plugins.length;e<c;e++)if(this.plugins[e]instanceof n){w=this.plugins[e];break}var g=new w.P(w);g.name=q[0];g.L=q[2];g.Am=q[3].slice(0);g.Sx=q[3].length;g.Fu=q[4];g.Jv=q[5];
g.ka=q[11];g.L?(g.Rg=[],g.Zd=this.Dh++,g.Oa=null):(g.Rg=null,g.Zd=-1,g.Oa=[]);g.Lj=null;g.zg=null;g.To=null;g.Tb=!1;g.tc=null;q[6]?(g.fh=q[6][0],g.Li=q[6][1],g.nf=q[6][2]):(g.fh=null,g.Li=0,g.nf=0);g.rc=q[7]?q[7]:null;g.index=h;g.j=[];g.Ej=[];g.kf=[new vb(g)];g.Wd=0;g.Xc=null;g.Ru=0;g.eh=!0;g.ol=wb;g.Uj=xb;g.Uv=yb;g.R=zb;g.vi=Ab;g.wi=Bb;g.gf=Cb;g.Tj=Db;g.lm=Eb;g.om=Gb;g.ld=Hb;g.dp=Ib;g.vh=new nb(this.nb,this.mb);g.ij=!0;g.jj=!1;g.aa={};g.toString=Jb;g.fb=[];e=0;for(c=q[8].length;e<c;e++){f=q[8][e];
var m=this.Ie(f[1]),r=null;n=0;for(k=this.fb.length;n<k;n++)if(this.fb[n]instanceof m){r=this.fb[n];break}r||(r=new m(this),r.Vm=[],r.vk=new da,r.K&&r.K(),this.fb.push(r),jc.Jx&&r instanceof jc.Jx&&(this.Kq=r));-1===r.Vm.indexOf(g)&&r.Vm.push(g);n=new r.P(r,g);n.name=f[0];n.ka=f[2];n.K();g.fb.push(n)}g.global=q[9];g.Dm=q[10];g.X=[];e=0;for(c=q[12].length;e<c;e++)g.X.push({id:q[12][e][0],name:q[12][e][1],Nb:-1,zb:!0,index:e});g.jl=q[13];this.Rn&&!g.L&&!g.Dm&&w.bf||g.K();g.name&&(this.types[g.name]=
g);this.I.push(g);w.al&&(e=new w.M(g),e.uid=this.li++,e.tq=this.Tp++,e.Mf=0,e.Jh=Kb,e.toString=Lb,e.B=q[14],e.K(),g.j.push(e),this.ef[e.uid.toString()]=e)}h=0;for(a=b[4].length;h<a;h++)for(n=b[4][h],k=this.I[n[0]],e=1,c=n.length;e<c;e++)q=this.I[n[e]],q.Oa.push(k),k.Rg.push(q);h=0;for(a=b[27].length;h<a;h++){n=b[27][h];k=[];e=0;for(c=n.length;e<c;e++)k.push(this.I[n[e]]);e=0;for(c=k.length;e<c;e++)k[e].Tb=!0,k[e].tc=k}if(0<this.Dh)for(h=0,a=this.I.length;h<a;h++)if(q=this.I[h],!q.L&&q.Oa.length){q.Lj=
Array(this.Dh);q.zg=Array(this.Dh);q.To=Array(this.Dh);g=[];e=r=m=f=0;for(c=q.Oa.length;e<c;e++)for(w=q.Oa[e],q.Lj[w.Zd]=f,f+=w.Sx,q.zg[w.Zd]=m,m+=w.Fu,q.To[w.Zd]=r,r+=w.Jv,n=0,k=w.X.length;n<k;n++)g.push(Da({},w.X[n]));q.X=g.concat(q.X);e=0;for(c=q.X.length;e<c;e++)q.X[e].index=e}h=0;for(a=b[5].length;h<a;h++)q=b[5][h],e=new Mb(this,q),this.Jm[e.name]=e,this.rd.push(e);h=0;for(a=b[6].length;h<a;h++)q=b[6][h],e=new Nb(this,q),this.cm[e.name]=e,this.Yd.push(e);h=0;for(a=this.Yd.length;h<a;h++)this.Yd[h].bb();
h=0;for(a=this.Yd.length;h<a;h++)this.Yd[h].On();h=0;for(a=this.nl.length;h<a;h++)this.nl[h].bb();this.nl.length=0;this.Cu=b[7];this.Eh=b[8];this.fc=b[9];this.uh=1;this.$u=b[13];this.ba=b[14];this.Il=b[15];this.Qx=b[17];this.an=b[20];this.Eu=0<this.an;this.Yw=b[22];this.$c=this.kr=b[23];this.Vu=b[24];this.cx=b[25];this.cl=Date.now();this.xk.length=0;this.qw()};var v=!1;d.prototype.Ui=function(b,h){b.cocoonLazyLoad=!0;b.onerror=function(h){v=b.Lo=!0;console&&console.error&&console.error("Error loading image '"+
b.src+"': ",h)};this.Jc?b.src=h:b.src||("undefined"!==typeof XAPKReader?XAPKReader.get(h,function(h){b.src=h},function(a){v=b.Lo=!0;console&&console.error&&console.error("Error extracting image '"+h+"' from expansion file: ",a)}):b.src=h);this.nh.push(b)};d.prototype.Fv=function(b){var h,a;h=0;for(a=this.nh.length;h<a;h++)if(this.nh[h].Mu===b)return this.nh[h];return null};var a=0,c=!1;d.prototype.mw=function(){this.sg&&(a=this.sg.Gx(this.Cu))};d.prototype.Ho=function(){var b=a,h=0,e=0,n=!0,k,q,e=
0;for(k=this.nh.length;e<k;e++){q=this.nh[e];var f=q.zj;if(!f||0>=f)f=5E4;b+=f;q.src&&(q.complete||q.loaded)&&!q.Lo?h+=f:n=!1}n&&this.cx&&this.sg&&(c||(this.sg.Lx(),c=!0),e=this.sg.Vv(),h+=e,e<a&&(n=!1));this.dg=0==b?0:h/b;return n};d.prototype.go=function(){if(this.ua||this.G){var b=this.ua||this.cn;this.Lb&&this.qq();this.dg=0;this.Jp=-1;if(this.Ho())this.nw();else{var h=Date.now()-this.cl;if(b){var a=this.width,e=this.height,c=this.devicePixelRatio;this.Lb&&(a=this.Bj,e=this.Aj,c=1);if(3!==this.gi&&
(this.jc||500<=h&&this.Jp!=this.dg)){b.clearRect(0,0,a,e);var h=a/2,e=e/2,a=0===this.gi&&this.Pg.complete,n=40*c,k=0,q=80*c,f;a&&(q=this.Pg.width*c,f=this.Pg.height*c,n=q/2,k=f/2,b.drawImage(this.Pg,F(h-n),F(e-k),q,f));1>=this.gi?(h=F(h-n)+.5,e=F(e+(k+(a?12*c:0)))+.5,b.fillStyle=v?"red":"DodgerBlue",b.fillRect(h,e,Math.floor(q*this.dg),6*c),b.strokeStyle="black",b.strokeRect(h,e,q,6*c),b.strokeStyle="white",b.strokeRect(h-1*c,e-1*c,q+2*c,8*c)):2===this.gi&&(b.font=this.Jc?"12pt ArialMT":"12pt Arial",
b.fillStyle=v?"#f00":"#999",b.Vy="middle",c=Math.round(100*this.dg)+"%",a=b.measureText?b.measureText(c):null,b.fillText(c,h-(a?a.width:0)/2,e))}this.Jp=this.dg}setTimeout(function(b){return function(){b.go()}}(this),this.jc?10:100)}}};d.prototype.nw=function(){this.Lb&&(this.canvas.parentNode.removeChild(this.Lb),this.Lb=this.cn=null);this.cl=Date.now();this.Tf=gb();var b,h,a;if(this.Rn)for(b=0,h=this.I.length;b<h;b++)a=this.I[b],a.L||a.Dm||!a.ja.bf||a.K();else this.Mg=!1;b=0;for(h=this.rd.length;b<
h;b++)this.rd[b].Nu();2<=this.vc&&(b=this.nb/this.mb,h=this.width/this.height,this.uh=2!==this.vc&&h>b||2===this.vc&&h<b?this.height/this.mb:this.width/this.nb);this.Xo?this.Jm[this.Xo].An():this.rd[0].An();this.Rn||(this.Wf=1,this.trigger(T.prototype.k.yl,null));navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();b=0;for(h=this.I.length;b<h;b++)a=this.I[b],a.Qw&&a.Qw();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):
this.Na(!1);this.Ab&&AppMobi.webview.execute("onGameReady();")};var f=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;d.prototype.Na=function(b,h,a){if(this.ra){var e=gb();if(a||!this.Uh&&!b){f?this.hn=f(this.Oq):this.In=setTimeout(this.Oq,this.ee?1:16);h=h||e;var c=this.vc;((a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.xc)||
this.Th)&&0<this.Df&&(c=this.Df);0<c&&(!this.$h||window.self!==window.top)&&(c=window.innerHeight,this.di===window.innerWidth&&this.ci===c||this.setSize(l(),t()));this.wa||(a?(this.Nj||(this.jm=jQuery(this.canvas).css("margin")||"0",this.Nj=!0),this.Rh||this.$e||jQuery(this.canvas).css({"margin-left":""+Math.floor((screen.width-this.width/this.devicePixelRatio)/2)+"px","margin-top":""+Math.floor((screen.height-this.height/this.devicePixelRatio)/2)+"px"})):this.Nj?(this.Rh||this.$e||jQuery(this.canvas).css("margin",
this.jm),this.jm="",this.Nj=!1,0===this.vc&&this.setSize(Math.round(this.Zp/this.devicePixelRatio),Math.round(this.Yp/this.devicePixelRatio),!0)):(this.Zp=this.width,this.Yp=this.height));this.Mg&&(a=this.Ho(),this.Wf=this.dg,a&&(this.Mg=!1,this.dg=1,this.trigger(T.prototype.k.yl,null)));this.Jw(h);!this.V&&!this.jc||this.Fm||this.Ji||b||(this.V=!1,this.G?this.$b():this.uc(),this.bl&&(this.canvas&&this.canvas.toDataURL&&(this.canvas.toDataURL(this.bl[0],this.bl[1]),this.trigger(T.prototype.k.Ps,null)),
this.bl=null));this.My||(this.Od++,this.Cf++,this.Qj++);this.hi+=gb()-e}}};d.prototype.Jw=function(b){var h,a,e,c,n,k,q,f;1E3<=b-this.Tf&&(this.Tf+=1E3,1E3<=b-this.Tf&&(this.Tf=b),this.hm=this.Qj,this.Qj=0,this.Ul=this.hi,this.hi=0);0!==this.mk&&(h=b-this.mk,0>h&&(h=0),this.Ve=h/1E3,.5<this.Ve?this.Ve=0:.1<this.Ve&&(this.Ve=.1));this.mk=b;this.Ue=this.Ve*this.jg;this.ac.add(this.Ue);this.Rd.add(this.Ve);b=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||
this.Th)&&!this.xc;2<=this.vc||b&&0<this.Df?(h=this.nb/this.mb,a=this.width/this.height,e=this.vc,b&&0<this.Df&&(e=this.Df),this.uh=2!==e&&a>h||2===e&&a<h?this.height/this.mb:this.width/this.nb,this.ra&&(this.ra.sn(this.ra.scrollX),this.ra.tn(this.ra.scrollY))):this.uh=this.Pf?this.devicePixelRatio:1;this.Ob();this.Kc++;this.Md.ux();this.Kc--;this.Ob();this.Kc++;a=this.Xp.De();b=0;for(h=a.length;b<h;b++)a[b].Qy();b=0;for(h=this.I.length;b<h;b++)if(k=this.I[b],!k.L&&(k.fb.length||k.Oa.length))for(a=
0,e=k.j.length;a<e;a++)for(q=k.j[a],c=0,n=q.Z.length;c<n;c++)q.Z[c].Na();b=0;for(h=this.I.length;b<h;b++)if(k=this.I[b],!k.L&&(k.fb.length||k.Oa.length))for(a=0,e=k.j.length;a<e;a++)for(q=k.j[a],c=0,n=q.Z.length;c<n;c++)f=q.Z[c],f.bx&&f.bx();a=this.Wm.De();b=0;for(h=a.length;b<h;b++)a[b].Na();this.Kc--;this.ow();for(b=0;this.uf&&10>b++;)this.Ro(this.uf);b=0;for(h=this.Yd.length;b<h;b++)this.Yd[b].wm=!1;this.ra.Af&&this.ra.Af.ob();this.xq.length=0;this.Im=!1;this.Kc++;b=0;for(h=this.I.length;b<h;b++)if(k=
this.I[b],!k.L&&(k.fb.length||k.Oa.length))for(a=0,e=k.j.length;a<e;a++)for(q=k.j[a],c=0,n=q.Z.length;c<n;c++)f=q.Z[c],f.gh&&f.gh();a=this.Xm.De();b=0;for(h=a.length;b<h;b++)a[b].gh();this.Kc--};d.prototype.Ro=function(b){var h=this.ra;this.ra.Mx();var a,e,c,n,k,q,f;if(this.G)for(a=0,e=this.I.length;a<e;a++)k=this.I[a],k.L||!k.ih||k.global&&0!==k.j.length||-1!==b.Oh.indexOf(k)||k.ih();h==b&&(this.Md.qc.length=0);b.An();a=0;for(e=this.I.length;a<e;a++)if(k=this.I[a],k.global||k.ja.al)for(b=0,h=k.j.length;b<
h;b++)if(q=k.j[b],q.Zm&&q.Zm(),q.Z)for(c=0,n=q.Z.length;c<n;c++)f=q.Z[c],f.Zm&&f.Zm();this.Im=this.V=!0;this.Ob()};d.prototype.hh=function(b){this.Wm.add(b)};d.prototype.Nx=function(b){this.Xm.add(b)};d.prototype.Ff=function(b){return b&&-1!==b.Ug?this.Ve*b.Ug:this.Ue};d.prototype.uc=function(){this.ra.uc(this.ua);this.Ab&&this.ua.present()};d.prototype.$b=function(){this.ra.$b(this.G);this.G.Py()};d.prototype.Bo=function(b){b&&this.Gj.push(b)};d.prototype.ox=function(b){Ia(this.Gj,b)};d.prototype.Hh=
function(b){b=b.toString();return this.ef.hasOwnProperty(b)?this.ef[b]:null};var e=[];d.prototype.He=function(b){var h,a;h=b.type.name;var c=null;if(this.xf.hasOwnProperty(h)){if(c=this.xf[h],c.contains(b))return}else c=e.length?e.pop():new da,this.xf[h]=c;c.add(b);this.Ye=!0;if(b.Tb)for(h=0,a=b.siblings.length;h<a;h++)this.He(b.siblings[h]);this.Cm&&c.kh.push(b);this.Kc++;this.trigger(Object.getPrototypeOf(b.type.ja).k.wl,b);this.Kc--};d.prototype.Ob=function(){if(this.Ye){var b,h,a,e,c,n;this.Cm=
!0;a=0;for(c=this.nd.length;a<c;++a)for(b=this.nd[a],h=b.type,h.j.push(b),e=0,n=h.Oa.length;e<n;++e)h.Oa[e].j.push(b),h.Oa[e].eh=!0;this.nd.length=0;this.Es();fb(this.xf);this.Ye=this.Cm=!1}};d.prototype.Es=function(){for(var b in this.xf)this.xf.hasOwnProperty(b)&&this.Gr(this.xf[b])};d.prototype.Gr=function(b){var h=b.De(),a=h[0].type,c,n,k,q,f,g;hb(a.j,b);a.eh=!0;0===a.j.length&&(a.jj=!1);c=0;for(n=a.Oa.length;c<n;++c)g=a.Oa[c],hb(g.j,b),g.eh=!0;c=0;for(n=this.Md.qc.length;c<n;++c)if(f=this.Md.qc[c],
f.gc.hasOwnProperty(a.index)&&hb(f.gc[a.index].be,b),!a.L)for(k=0,q=a.Oa.length;k<q;++k)g=a.Oa[k],f.gc.hasOwnProperty(g.index)&&hb(f.gc[g.index].be,b);if(f=h[0].u){if(f.xd)for(k=f.j,c=0,n=k.length;c<n;++c)q=k[c],b.contains(q)&&(q.Fa(),f.Dc.update(q,q.lc,null),q.lc.set(0,0,-1,-1));hb(f.j,b);f.Ei(0)}for(c=0;c<h.length;++c)this.Fr(h[c],a);b.clear();e.push(b);this.V=!0};d.prototype.Fr=function(b,h){var a,e,c;a=0;for(e=this.Gj.length;a<e;++a)this.Gj[a](b);b.Sc&&h.vh.update(b,b.Sc,null);(a=b.u)&&a.Yg(b,
!0);if(b.Z)for(a=0,e=b.Z.length;a<e;++a)c=b.Z[a],c.sd&&c.sd(),c.behavior.vk.remove(b);this.Xp.remove(b);this.Wm.remove(b);this.Xm.remove(b);b.sd&&b.sd();this.ef.hasOwnProperty(b.uid.toString())&&delete this.ef[b.uid.toString()];this.yk--;100>h.Ej.length&&h.Ej.push(b)};d.prototype.Vl=function(b,h,a,e){if(b.L){var c=F(Math.random()*b.Rg.length);return this.Vl(b.Rg[c],h,a,e)}return b.Xc?this.Te(b.Xc,h,!1,a,e,!1):null};var k=[];d.prototype.Te=function(b,a,e,c,n,q){var f,g,w,m;if(!b)return null;var r=
this.I[b[1]],p=r.ja.bf;if(this.Mg&&p&&!r.Dm||p&&!this.G&&11===b[0][11])return null;var s=a;p||(a=null);var d;r.Ej.length?(d=r.Ej.pop(),d.Vb=!0,r.ja.M.call(d,r)):(d=new r.ja.M(r),d.Vb=!1);d.uid=e&&!q?b[2]:this.li++;this.ef[d.uid.toString()]=d;d.tq=this.Tp++;d.Mf=r.j.length;f=0;for(g=this.nd.length;f<g;++f)this.nd[f].type===r&&d.Mf++;d.Jh=Kb;d.toString=Lb;w=b[3];if(d.Vb)fb(d.aa);else{d.aa={};if("undefined"!==typeof cr_is_preview)for(d.rp=[],d.rp.length=w.length,f=0,g=w.length;f<g;f++)d.rp[f]=w[f][1];
d.tb=[];d.tb.length=w.length}f=0;for(g=w.length;f<g;f++)d.tb[f]=w[f][0];if(p){var z=b[0];d.x=ka(c)?z[0]:c;d.y=ka(n)?z[1]:n;d.z=z[2];d.width=z[3];d.height=z[4];d.depth=z[5];d.A=z[6];d.opacity=z[7];d.Rb=z[8];d.Sb=z[9];d.ic=z[10];f=z[11];!this.G&&r.X.length&&(d.ic=f);d.wh=pb(d.ic);this.ae&&qb(d,d.ic,this.ae);if(d.Vb){f=0;for(g=z[12].length;f<g;f++)for(w=0,m=z[12][f].length;w<m;w++)d.Qa[f][w]=z[12][f][w];d.Ua.set(0,0,0,0);d.Sc.set(0,0,-1,-1);d.lc.set(0,0,-1,-1);d.Fb.Fi(d.Ua);d.Ml.length=0}else{d.Qa=z[12].slice(0);
f=0;for(g=d.Qa.length;f<g;f++)d.Qa[f]=z[12][f].slice(0);d.ta=[];d.Ke=[];d.Ke.length=r.X.length;d.Ua=new J(0,0,0,0);d.Sc=new J(0,0,-1,-1);d.lc=new J(0,0,-1,-1);d.Fb=new ya;d.Ml=[];d.da=Ob;d.zy=Pb;d.Ib=Qb;d.Fa=Rb;d.Px=Sb;d.hr=Tb;d.Ed=Ub}d.Ni=!1;d.Sq=0;d.Rq=0;d.Qq=null;14===z.length&&(d.Ni=!0,d.Sq=z[13][0],d.Rq=z[13][1],d.Qq=z[13][2]);f=0;for(g=r.X.length;f<g;f++)d.Ke[f]=!0;d.Be=Vb;d.Be();d.ir=!!d.ta.length;d.Ll=!0;d.Rl=!0;r.ij=!0;d.visible=!0;d.Ug=-1;d.u=a;d.yd=a.j.length;"undefined"===typeof d.xa&&
(d.xa=null);this.V=d.Tc=!0}var u;f=k.length=0;for(g=r.Oa.length;f<g;f++)k.push.apply(k,r.Oa[f].fb);k.push.apply(k,r.fb);if(d.Vb)for(f=0,g=k.length;f<g;f++){var v=k[f];u=d.Z[f];u.Vb=!0;v.behavior.M.call(u,v,d);z=b[4][f];w=0;for(m=z.length;w<m;w++)u.B[w]=z[w];u.K();v.behavior.vk.add(d)}else for(d.Z=[],f=0,g=k.length;f<g;f++)v=k[f],u=new v.behavior.M(v,d),u.Vb=!1,u.B=b[4][f].slice(0),u.K(),d.Z.push(u),v.behavior.vk.add(d);z=b[5];if(d.Vb)for(f=0,g=z.length;f<g;f++)d.B[f]=z[f];else d.B=z.slice(0);this.nd.push(d);
this.Ye=!0;a&&(a.sh(d,!0),1!==a.Oc||1!==a.ed)&&(r.jj=!0);this.yk++;if(r.Tb){if(d.Tb=!0,d.Vb?d.siblings.length=0:d.siblings=[],!e&&!q){f=0;for(g=r.tc.length;f<g;f++)if(r.tc[f]!==r){if(!r.tc[f].Xc)return null;d.siblings.push(this.Te(r.tc[f].Xc,s,!1,p?d.x:c,p?d.y:n,!0))}f=0;for(g=d.siblings.length;f<g;f++)for(d.siblings[f].siblings.push(d),w=0;w<g;w++)f!==w&&d.siblings[f].siblings.push(d.siblings[w])}}else d.Tb=!1,d.siblings=null;d.K();f=0;for(g=d.Z.length;f<g;f++)d.Z[f].ax&&d.Z[f].ax();return d};d.prototype.Vj=
function(b){var a,e;a=0;for(e=this.ra.ga.length;a<e;a++){var c=this.ra.ga[a];if(sb(c.name,b))return c}return null};d.prototype.Cg=function(b){b=F(b);0>b&&(b=0);b>=this.ra.ga.length&&(b=this.ra.ga.length-1);return this.ra.ga[b]};d.prototype.Bg=function(b){return la(b)?this.Cg(b):this.Vj(b.toString())};d.prototype.Sl=function(b){var a,e;a=0;for(e=b.length;a<e;a++)b[a].R().S=!0};d.prototype.vi=function(b){var a,e;a=0;for(e=b.length;a<e;a++)b[a].vi()};d.prototype.wi=function(b){var a,e;a=0;for(e=b.length;a<
e;a++)b[a].wi()};d.prototype.gf=function(b){var a,e;a=0;for(e=b.length;a<e;a++)b[a].gf()};d.prototype.cr=function(b){if(b.ij){var a,e,c=b.j;a=0;for(e=c.length;a<e;++a)c[a].hr();c=this.nd;a=0;for(e=c.length;a<e;++a)c[a].type===b&&c[a].hr();b.ij=!1}};d.prototype.$o=function(b,a,e,c){var n,k,q=b?1!==b.Oc||1!==b.ed:!1;if(a.L)for(b=0,n=a.Rg.length;b<n;++b)k=a.Rg[b],q||k.jj?Ga(c,k.j):(this.cr(k),k.vh.Nk(e,c));else q||a.jj?Ga(c,a.j):(this.cr(a),a.vh.Nk(e,c))};d.prototype.Zv=function(b,a,e,c){var n,k;n=0;
for(k=a.length;n<k;++n)this.$o(b,a[n],e,c)};d.prototype.Wv=function(b,a,e){var c=this.Kq;c&&this.Zv(b,c.Vm,a,e)};d.prototype.gl=function(b,a,e){var c=b.R(),n,k,q,f,g,w;if(c.S)for(c.S=!1,n=c.j.length=0,f=b.j.length;n<f;n++)q=b.j[n],q.Fa(),g=q.u.Yb(a,e,!0),w=q.u.Yb(a,e,!1),q.Ib(g,w)&&c.j.push(q);else{n=k=0;for(f=c.j.length;n<f;n++)q=c.j[n],q.Fa(),g=q.u.Yb(a,e,!0),w=q.u.Yb(a,e,!1),q.Ib(g,w)&&(c.j[k]=c.j[n],k++);c.j.length=k}b.ld();return c.vm()};d.prototype.hg=function(b,a){if(!(b&&a&&b!==a&&b.Tc&&a.Tc))return!1;
b.Fa();a.Fa();var e=b.u,c=a.u,n,k,q,f,g,w,d,m;if(e===c||e.Oc===c.Oc&&c.ed===c.ed&&e.scale===c.scale&&e.A===c.A&&e.zd===c.zd){if(!b.Ua.rw(a.Ua)||!b.Fb.sp(a.Fb)||b.Ni&&a.Ni)return!1;if(b.Ni)return this.Nq(b,a);if(a.Ni)return this.Nq(a,b);d=b.xa&&!b.xa.Ig();n=a.xa&&!a.xa.Ig();if(!d&&!n)return!0;d?(b.xa.tf(b.width,b.height,b.A),d=b.xa):(this.vd.bh(b.Fb,b.x,b.y,b.width,b.height),d=this.vd);n?(a.xa.tf(a.width,a.height,a.A),m=a.xa):(this.vd.bh(a.Fb,a.x,a.y,a.width,a.height),m=this.vd);return d.Ph(m,a.x-
b.x,a.y-b.y)}d=b.xa&&!b.xa.Ig();n=a.xa&&!a.xa.Ig();d?(b.xa.tf(b.width,b.height,b.A),this.vd.Eq(b.xa)):this.vd.bh(b.Fb,b.x,b.y,b.width,b.height);d=this.vd;n?(a.xa.tf(a.width,a.height,a.A),this.Cn.Eq(a.xa)):this.Cn.bh(a.Fb,a.x,a.y,a.width,a.height);m=this.Cn;n=0;for(k=d.Cc;n<k;n++)q=2*n,f=q+1,g=d.Ha[q],w=d.Ha[f],d.Ha[q]=e.Ga(g+b.x,w+b.y,!0),d.Ha[f]=e.Ga(g+b.x,w+b.y,!1);d.Fa();n=0;for(k=m.Cc;n<k;n++)q=2*n,f=q+1,g=m.Ha[q],w=m.Ha[f],m.Ha[q]=c.Ga(g+a.x,w+a.y,!0),m.Ha[f]=c.Ga(g+a.x,w+a.y,!1);m.Fa();return d.Ph(m,
0,0)};var w=new ya;new J(0,0,0,0);var z=[];d.prototype.Nq=function(b,a){var e,c,n,k,q=a.Ua,f=b.x,g=b.y;b.Nv(q,z);var d=a.xa&&!a.xa.Ig();e=0;for(c=z.length;e<c;++e)if(n=z[e],k=n.ya,q.sw(k,f,g)&&(w.Fi(k),w.offset(f,g),w.sp(a.Fb)))if(d)if(a.xa.tf(a.width,a.height,a.A),n.ne){if(n.ne.Ph(a.xa,a.x-(f+k.left),a.y-(g+k.top)))return z.length=0,!0}else{if(this.vd.bh(w,0,0,k.right-k.left,k.bottom-k.top),this.vd.Ph(a.xa,a.x,a.y))return z.length=0,!0}else if(n.ne){if(this.vd.bh(a.Fb,0,0,a.width,a.height),n.ne.Ph(this.vd,
-(f+k.left),-(g+k.top)))return z.length=0,!0}else return z.length=0,!0;z.length=0;return!1};d.prototype.Yq=function(b,a){if(!a)return!1;var e,c,n,k,q;e=0;for(c=b.fb.length;e<c;e++)if(b.fb[e].behavior instanceof a)return!0;if(!b.L)for(e=0,c=b.Oa.length;e<c;e++)for(q=b.Oa[e],n=0,k=q.fb.length;n<k;n++)if(q.fb[n].behavior instanceof a)return!0;return!1};d.prototype.Zq=function(b){return this.Yq(b,lc)};d.prototype.Nn=function(b){return this.Yq(b,jc.hy)};var q=[];d.prototype.ig=function(b){var a,e,c;b.Fa();
this.Wv(b.u,b.Ua,q);a=0;for(e=q.length;a<e;++a)if(c=q[a],c.aa.solidEnabled&&this.hg(b,c))return q.length=0,c;q.length=0;return null};d.prototype.jx=function(b,a,e,c){c=c||50;var n=b.x,k=b.y,q,f=null,g=null;for(q=0;q<c;q++)if(b.x=n+a*q,b.y=k+e*q,b.da(),!this.hg(b,f)&&((f=this.ig(b))&&(g=f),!f&&!f))return g&&this.hx(b,a,e,g),!0;b.x=n;b.y=k;b.da();return!1};d.prototype.hx=function(b,a,e,c){var n=2,k,q=!1;k=!1;for(var f=b.x,g=b.y;16>=n;)k=1/n,n*=2,b.x+=a*k*(q?1:-1),b.y+=e*k*(q?1:-1),b.da(),this.hg(b,
c)?k=q=!0:(k=q=!1,f=b.x,g=b.y);k&&(b.x=f,b.y=g,b.da())};d.prototype.kx=function(b){var a=0,e=b.x,c=b.y,n=0,k=0,q=0,f=this.ig(b);if(f){for(;100>=a;){switch(n){case 0:k=0;q=-1;a++;break;case 1:k=1;q=-1;break;case 2:k=1;q=0;break;case 3:q=k=1;break;case 4:k=0;q=1;break;case 5:k=-1;q=1;break;case 6:k=-1;q=0;break;case 7:q=k=-1}n=(n+1)%8;b.x=F(e+k*a);b.y=F(c+q*a);b.da();if(!this.hg(b,f)&&(f=this.ig(b),!f))return}b.x=e;b.y=c;b.da()}};d.prototype.nx=function(b,a){b.Tc&&a.Tc&&this.xq.push([b,a])};d.prototype.Ju=
function(b,a,e){var c=b.x,n=b.y,k=ra(10,Ya(a,e,c,n)),q=Ta(a,e,c,n),f=this.ig(b);if(!f)return Pa(q+ua);var g=f,w,d,m,r,p=S(5);for(w=1;36>w;w++)if(d=q-w*p,b.x=a+Math.cos(d)*k,b.y=e+Math.sin(d)*k,b.da(),!this.hg(b,g)&&(g=this.ig(b),!g)){m=d;break}36===w&&(m=Pa(q+ua));g=f;for(w=1;36>w;w++)if(d=q+w*p,b.x=a+Math.cos(d)*k,b.y=e+Math.sin(d)*k,b.da(),!this.hg(b,g)&&(g=this.ig(b),!g)){r=d;break}36===w&&(r=Pa(q+ua));b.x=c;b.y=n;b.da();if(r===m)return r;b=Ua(r,m)/2;b=Wa(r,m)?Pa(m+b+ua):Pa(r+b);m=Math.cos(q);
q=Math.sin(q);r=Math.cos(b);b=Math.sin(b);a=m*r+q*b;return Ta(0,0,m-2*a*r,q-2*a*b)};var n=-1;d.prototype.trigger=function(b,a,e){if(!this.ra)return!1;var c=this.ra.Af;if(!c)return!1;var k=!1,q,f,g;n++;var w=c.Yl;f=0;for(g=w.length;f<g;++f)q=this.Vq(b,a,w[f],e),k=k||q;q=this.Vq(b,a,c,e);n--;return k||q};d.prototype.Vq=function(b,a,e,c){var n=!1,k,q,f,g;if(a)for(f=this.Ln(b,a,a.type.name,e,c),n=n||f,g=a.type.Oa,k=0,q=g.length;k<q;++k)f=this.Ln(b,a,g[k].name,e,c),n=n||f;else f=this.Ln(b,a,"system",e,
c),n=n||f;return n};d.prototype.Ln=function(b,a,e,c,n){var k,q=!1,f=!1,f="undefined"!==typeof n,g=(f?c.Vo:c.Wq)[e];if(!g)return q;var w=null;c=0;for(k=g.length;c<k;++c)if(g[c].method==b){w=g[c].Ah;break}if(!w)return q;b=f?w[n]:w;if(!b)return null;c=0;for(k=b.length;c<k;c++)n=b[c][0],f=b[c][1],f=this.Ev(a,e,n,f),q=q||f;return q};d.prototype.Ev=function(b,a,e,c){var k,q,f=!1;this.Mn++;var g=this.jb().hb;g&&this.vi(g.jf);var w=1<this.Mn;this.vi(e.jf);w&&this.ix();var d=this.Mk(e);d.hb=e;b&&(k=this.types[a].R(),
k.S=!1,k.j.length=1,k.j[0]=b,this.types[a].ld());b=!0;if(e.parent){a=d.Mq;for(k=e.parent;k;)a.push(k),k=k.parent;a.reverse();k=0;for(q=a.length;k<q;k++)if(!a[k].wx()){b=!1;break}}b&&(this.Cf++,e.Nc?e.vx(c):e.ob(),f=f||d.Sf);this.Ik();w&&this.$w();this.gf(e.jf);g&&this.gf(g.jf);this.Ye&&0===this.Kc&&0===n&&!this.Em&&this.Ob();this.Mn--;return f};d.prototype.Ef=function(){var b=this.jb();return b.hb.qb[b.gb]};d.prototype.Ov=function(){var b=this.jb();return b.hb.Rc[b.hc]};d.prototype.ix=function(){this.tk++;
this.tk>=this.Mm.length&&this.Mm.push([])};d.prototype.$w=function(){this.tk--};d.prototype.bp=function(){return this.Mm[this.tk]};d.prototype.Mk=function(b){this.Kj++;this.Kj>=this.am.length&&this.am.push(new Wb);var a=this.jb();a.reset(b);return a};d.prototype.Ik=function(){this.Kj--};d.prototype.jb=function(){return this.am[this.Kj]};d.prototype.uq=function(){this.uk++;this.uk>=this.Om.length&&this.Om.push(ba({name:void 0,index:0,yb:!1}));var b=this.Pv();b.name=void 0;b.index=0;b.yb=!1;return b};
d.prototype.pq=function(){this.uk--};d.prototype.Pv=function(){return this.Om[this.uk]};d.prototype.cp=function(b,a){for(var e,c,n,k,q,f;a;){e=0;for(c=a.hd.length;e<c;e++)if(f=a.hd[e],f instanceof Xb&&sb(b,f.name))return f;a=a.parent}e=0;for(c=this.Yd.length;e<c;e++)for(q=this.Yd[e],n=0,k=q.We.length;n<k;n++)if(f=q.We[n],f instanceof Xb&&sb(b,f.name))return f;return null};d.prototype.ep=function(b){var a,e;a=0;for(e=this.rd.length;a<e;a++)if(this.rd[a].ka===b)return this.rd[a];return null};d.prototype.Xj=
function(b){var a,e;a=0;for(e=this.I.length;a<e;a++)if(this.I[a].ka===b)return this.I[a];return null};d.prototype.Qv=function(b){var a,e;a=0;for(e=this.Le.length;a<e;a++)if(this.Le[a].ka===b)return this.Le[a];return null};d.prototype.ow=function(){var b=this,a=this.Sk,e=this.ge,c=this.fi,n=!1;this.Iq&&(n=!0,a="__c2_continuouspreview",this.Iq=!1);if(a.length){this.Ob();e=this.Ax();if(window.indexedDB&&!this.jc)m(a,e,function(){ga("Saved state to IndexedDB storage ("+e.length+" bytes)");b.ge=e;b.trigger(T.prototype.k.dj,
null);b.ge="";n&&g()},function(c){try{localStorage.setItem("__c2save_"+a,e),ga("Saved state to WebStorage ("+e.length+" bytes)"),b.ge=e,b.trigger(T.prototype.k.dj,null),b.ge="",n&&g()}catch(k){ga("Failed to save game state: "+c+"; "+k)}});else try{localStorage.setItem("__c2save_"+a,e),ga("Saved state to WebStorage ("+e.length+" bytes)"),b.ge=e,this.trigger(T.prototype.k.dj,null),b.ge="",n&&g()}catch(k){ga("Error saving to WebStorage: "+k)}this.ec=this.fi=this.Sk=""}c.length&&(window.indexedDB&&!this.jc?
s(c,function(a){a?(b.ec=a,ga("Loaded state from IndexedDB storage ("+b.ec.length+" bytes)")):(b.ec=localStorage.getItem("__c2save_"+c)||"",ga("Loaded state from WebStorage ("+b.ec.length+" bytes)"));b.Ji=!1;b.ec.length||b.trigger(T.prototype.k.cj,null)},function(){b.ec=localStorage.getItem("__c2save_"+c)||"";ga("Loaded state from WebStorage ("+b.ec.length+" bytes)");b.Ji=!1;b.ec.length||b.trigger(T.prototype.k.cj,null)}):(this.ec=localStorage.getItem("__c2save_"+c)||"",ga("Loaded state from WebStorage ("+
this.ec.length+" bytes)"),this.Ji=!1,b.ec.length||b.trigger(T.prototype.k.cj,null)),this.Sk=this.fi="");this.ec.length&&(this.Ob(),this.Iw(this.ec),this.ge=this.ec,this.trigger(T.prototype.k.Xs,null),this.ec=this.ge="")};d.prototype.Ax=function(){var b,a,e,c,n,k,q,f={c2save:!0,version:1,rt:{time:this.ac.O,walltime:this.Rd.O,timescale:this.jg,tickcount:this.Od,execcount:this.Cf,next_uid:this.li,running_layout:this.ra.ka,start_time_offset:Date.now()-this.cl},types:{},layouts:{},events:{groups:{},cnds:{},
acts:{},vars:{}}};b=0;for(a=this.I.length;b<a;b++)if(n=this.I[b],!n.L&&!this.Zq(n)){k={instances:[]};eb(n.aa)&&(k.ex=r(n.aa));e=0;for(c=n.j.length;e<c;e++)k.instances.push(this.rn(n.j[e]));f.types[n.ka.toString()]=k}b=0;for(a=this.rd.length;b<a;b++)e=this.rd[b],f.layouts[e.ka.toString()]=e.Sa();c=f.events.groups;b=0;for(a=this.Le.length;b<a;b++)e=this.Le[b],c[e.ka.toString()]=this.Eg[e.Kh].Jf;a=f.events.cnds;for(q in this.vg)this.vg.hasOwnProperty(q)&&(b=this.vg[q],eb(b.aa)&&(a[q]={ex:r(b.aa)}));
a=f.events.acts;for(q in this.rg)this.rg.hasOwnProperty(q)&&(b=this.rg[q],eb(b.aa)&&(a[q]={ex:b.aa}));a=f.events.vars;for(q in this.mh)this.mh.hasOwnProperty(q)&&(b=this.mh[q],b.gk||b.parent&&!b.Zh||(a[q]=b.data));f.system=this.Md.Sa();return JSON.stringify(f)};d.prototype.wq=function(){var b,a,e,c,n,k;this.ef={};b=0;for(a=this.I.length;b<a;b++)if(e=this.I[b],!e.L)for(c=0,n=e.j.length;c<n;c++)k=e.j[c],this.ef[k.uid.toString()]=k};d.prototype.Iw=function(b){b=JSON.parse(b);if(b.c2save&&!(1<b.version)){var a=
b.rt;this.ac.reset();this.ac.O=a.time;this.Rd.reset();this.Rd.O=a.walltime||0;this.jg=a.timescale;this.Od=a.tickcount;this.Cf=a.execcount;this.cl=Date.now()-a.start_time_offset;var e=a.running_layout;if(e!==this.ra.ka)if(e=this.ep(e))this.Ro(e);else return;var c,n,k,q,f,g,w;g=b.types;for(n in g)if(g.hasOwnProperty(n)&&(q=this.Xj(parseInt(n,10)))&&!q.L&&!this.Zq(q)){g[n].ex?q.aa=g[n].ex:fb(q.aa);f=q.j;k=g[n].instances;e=0;for(c=ta(f.length,k.length);e<c;e++)this.pk(f[e],k[e]);e=k.length;for(c=f.length;e<
c;e++)this.He(f[e]);e=f.length;for(c=k.length;e<c;e++){f=null;if(q.ja.bf&&(f=this.ra.Wj(k[e].w.l),!f))continue;f=this.Te(q.Xc,f,!1,0,0,!0);this.pk(f,k[e])}q.eh=!0}this.Ob();this.wq();c=b.layouts;for(n in c)c.hasOwnProperty(n)&&(e=this.ep(parseInt(n,10)))&&e.lb(c[n]);c=b.events.groups;for(n in c)c.hasOwnProperty(n)&&(e=this.Qv(parseInt(n,10)))&&this.Eg[e.Kh]&&this.Eg[e.Kh].Bi(c[n]);e=b.events.cnds;for(n in e)e.hasOwnProperty(n)&&this.vg.hasOwnProperty(n)&&(this.vg[n].aa=e[n].ex);e=b.events.acts;for(n in e)e.hasOwnProperty(n)&&
this.rg.hasOwnProperty(n)&&(this.rg[n].aa=e[n].ex);e=b.events.vars;for(n in e)e.hasOwnProperty(n)&&this.mh.hasOwnProperty(n)&&(this.mh[n].data=e[n]);this.li=a.next_uid;this.Md.lb(b.system);e=0;for(c=this.I.length;e<c;e++)if(q=this.I[e],!q.L)for(n=0,b=q.j.length;n<b;n++){f=q.j[n];if(q.Tb)for(g=f.Jh(),a=f.siblings.length=0,k=q.tc.length;a<k;a++)w=q.tc[a],q!==w&&f.siblings.push(w.j[g]);f.Ad&&f.Ad();if(f.Z)for(a=0,k=f.Z.length;a<k;a++)g=f.Z[a],g.Ad&&g.Ad()}this.V=!0}};d.prototype.rn=function(b,a){var e,
c,n,k,q;k=b.type;n=k.ja;var f={};a?f.c2=!0:f.uid=b.uid;eb(b.aa)&&(f.ex=r(b.aa));if(b.tb&&b.tb.length)for(f.ivs={},e=0,c=b.tb.length;e<c;e++)f.ivs[b.type.Am[e].toString()]=b.tb[e];if(n.bf){n={x:b.x,y:b.y,w:b.width,h:b.height,l:b.u.ka,zi:b.Ed()};0!==b.A&&(n.a=b.A);1!==b.opacity&&(n.o=b.opacity);.5!==b.Rb&&(n.hX=b.Rb);.5!==b.Sb&&(n.hY=b.Sb);0!==b.ic&&(n.bm=b.ic);b.visible||(n.v=b.visible);b.Tc||(n.ce=b.Tc);-1!==b.Ug&&(n.mts=b.Ug);if(k.X.length)for(n.fx=[],e=0,c=k.X.length;e<c;e++)q=k.X[e],n.fx.push({name:q.name,
active:b.Ke[q.index],params:b.Qa[q.index]});f.w=n}if(b.Z&&b.Z.length)for(f.behs={},e=0,c=b.Z.length;e<c;e++)k=b.Z[e],k.Sa&&(f.behs[k.type.ka.toString()]=k.Sa());b.Sa&&(f.data=b.Sa());return f};d.prototype.Sv=function(b,a){var e,c;e=0;for(c=b.Am.length;e<c;e++)if(b.Am[e]===a)return e;return-1};d.prototype.Mv=function(b,a){var e,c;e=0;for(c=b.Z.length;e<c;e++)if(b.Z[e].type.ka===a)return e;return-1};d.prototype.pk=function(b,a,e){var c,n,k,q,f;f=b.type;k=f.ja;if(e){if(!a.c2)return}else b.uid=a.uid;
a.ex?b.aa=a.ex:fb(b.aa);if(n=a.ivs)for(c in n)n.hasOwnProperty(c)&&(e=this.Sv(f,parseInt(c,10)),0>e||e>=b.tb.length||(b.tb[e]=n[c]));if(k.bf){k=a.w;b.u.ka!==k.l&&(e=b.u,b.u=this.ra.Wj(k.l),b.u?(e.Yg(b,!0),b.u.sh(b,!0),b.da(),b.u.Ei(0)):(b.u=e,this.He(b)));b.x=k.x;b.y=k.y;b.width=k.w;b.height=k.h;b.yd=k.zi;b.A=k.hasOwnProperty("a")?k.a:0;b.opacity=k.hasOwnProperty("o")?k.o:1;b.Rb=k.hasOwnProperty("hX")?k.hX:.5;b.Sb=k.hasOwnProperty("hY")?k.hY:.5;b.visible=k.hasOwnProperty("v")?k.v:!0;b.Tc=k.hasOwnProperty("ce")?
k.ce:!0;b.Ug=k.hasOwnProperty("mts")?k.mts:-1;b.ic=k.hasOwnProperty("bm")?k.bm:0;b.wh=pb(b.ic);this.ae&&qb(b,b.ic,this.ae);b.da();if(k.hasOwnProperty("fx"))for(e=0,n=k.fx.length;e<n;e++)q=f.om(k.fx[e].name),0>q||(b.Ke[q]=k.fx[e].active,b.Qa[q]=k.fx[e].params);b.Be()}if(f=a.behs)for(c in f)f.hasOwnProperty(c)&&(k=this.Mv(b,parseInt(c,10)),0>k||b.Z[k].lb(f[c]));a.data&&b.lb(a.data)};Yb=function(b){return new d(document.getElementById(b))};Zb=function(b,a){return new d({dc:!0,width:b,height:a})};window.cr_createRuntime=
Yb;window.cr_createDCRuntime=Zb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var b=document.createElement("screencanvas")||document.createElement("canvas");b.Uy=!0;document.body.appendChild(b);b=new d(b);window.c2runtime=b;window.addEventListener("orientationchange",function(){window.c2runtime.setSize(window.innerWidth,window.innerHeight)});window.c2runtime.setSize(window.innerWidth,window.innerHeight);return b};window.createEjectaRuntime=function(){var b=new d(document.getElementById("canvas"));
window.c2runtime=b;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return b}})();window.cr_getC2Runtime=function(){var l=document.getElementById("c2canvas");return l?l.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_sizeCanvas=function(l,t){if(0!==l&&0!==t){var d=window.cr_getC2Runtime();d&&d.setSize(l,t)}};window.cr_setSuspended=function(l){var t=window.cr_getC2Runtime();t&&t.setSuspended(l)};
(function(){function l(a,c){this.b=a;this.Af=null;this.scrollX=this.b.nb/2;this.scrollY=this.b.mb/2;this.scale=1;this.A=0;this.Ag=!0;this.name=c[0];this.width=c[1];this.height=c[2];this.$q=c[3];this.Gq=c[4];this.ka=c[5];var f=c[6],e,k;this.ga=[];this.Oh=[];e=0;for(k=f.length;e<k;e++){var g=new $b(this,f[e]);g.Vp=e;this.ga.push(g)}f=c[7];this.Of=[];e=0;for(k=f.length;e<k;e++){var g=f[e],d=this.b.I[g[1]];d.Xc||(d.Xc=g);this.Of.push(g);-1===this.Oh.indexOf(d)&&this.Oh.push(d)}this.X=[];this.ta=[];this.Qa=
[];e=0;for(k=c[8].length;e<k;e++)this.X.push({id:c[8][e][0],name:c[8][e][1],Nb:-1,zb:!0,index:e}),this.Qa.push(c[8][e][2].slice(0));this.Be();this.fd=new J(0,0,1,1);this.jn=new J(0,0,1,1);this.ff={}}function t(a,c){return a.yd-c.yd}function d(a,c){this.wb=a;this.b=a.b;this.j=[];this.scale=1;this.A=0;this.yf=!1;this.ze=new J(0,0,0,0);this.Tq=new ya;this.Ka=this.Ja=this.La=this.Ia=0;this.mg=!1;this.Fe=-1;this.name=c[0];this.index=c[1];this.ka=c[2];this.visible=c[3];this.sc=c[4];this.Ae=c[5];this.Oc=
c[6];this.ed=c[7];this.opacity=c[8];this.gm=c[9];this.xd=c[10];this.zd=c[11];this.ic=c[12];this.Zu=c[13];this.wh="source-over";this.Pb=this.Xb=0;this.Dc=null;this.Og=p();this.oe=!0;this.lk=new J(0,0,-1,-1);this.Wc=new J(0,0,-1,-1);this.xd&&(this.Dc=new ob(this.b.nb,this.b.mb));this.hf=!1;var f=c[14],e,k;this.od=[];this.yh=[];e=0;for(k=f.length;e<k;e++){var g=f[e],d=this.b.I[g[1]];d.Xc||(d.Xc=g,d.Ru=this.index);this.od.push(g);-1===this.wb.Oh.indexOf(d)&&this.wb.Oh.push(d)}this.X=[];this.ta=[];this.Qa=
[];e=0;for(k=c[15].length;e<k;e++)this.X.push({id:c[15][e][0],name:c[15][e][1],Nb:-1,zb:!0,index:e}),this.Qa.push(c[15][e][2].slice(0));this.Be();this.fd=new J(0,0,1,1);this.jn=new J(0,0,1,1)}function p(){return r.length?r.pop():[]}function m(a){a.length=0;r.push(a)}l.prototype.zx=function(a){var c=a.type.ka.toString();this.ff.hasOwnProperty(c)||(this.ff[c]=[]);this.ff[c].push(this.b.rn(a))};l.prototype.lp=function(){var a=this.ga[0];return!a.Ae&&1===a.opacity&&!a.gm&&a.visible};l.prototype.Be=function(){this.ta.length=
0;var a,c,f;a=0;for(c=this.X.length;a<c;a++)f=this.X[a],f.zb&&this.ta.push(f)};l.prototype.nm=function(a){var c,f,e;c=0;for(f=this.X.length;c<f;c++)if(e=this.X[c],e.name===a)return e;return null};var s=[],g=!0;l.prototype.An=function(){this.Gq&&(this.Af=this.b.cm[this.Gq],this.Af.On());this.b.ra=this;this.scrollX=this.b.nb/2;this.scrollY=this.b.mb/2;var a,c,f,e,k,w,d;a=0;for(f=this.b.I.length;a<f;a++)if(c=this.b.I[a],!c.L)for(k=c.j,c=0,e=k.length;c<e;c++)if(w=k[c],w.u){var q=w.u.Vp;q>=this.ga.length&&
(q=this.ga.length-1);w.u=this.ga[q];-1===w.u.j.indexOf(w)&&w.u.j.push(w);w.u.mg=!0}if(!g)for(a=0,f=this.ga.length;a<f;++a)this.ga[a].j.sort(t);s.length=0;this.Hu();a=0;for(f=this.ga.length;a<f;a++)w=this.ga[a],w.Ou(),w.Pn();k=!1;if(!this.Ag){for(d in this.ff)if(this.ff.hasOwnProperty(d)&&(c=this.b.Xj(parseInt(d,10)))&&!c.L&&this.b.Nn(c)){e=this.ff[d];a=0;for(f=e.length;a<f;a++){w=null;if(c.ja.bf&&(w=this.Wj(e[a].w.l),!w))continue;w=this.b.Te(c.Xc,w,!1,0,0,!0);this.b.pk(w,e[a]);k=!0;s.push(w)}e.length=
0}a=0;for(f=this.ga.length;a<f;a++)this.ga[a].j.sort(t),this.ga[a].mg=!0}k&&(this.b.Ob(),this.b.wq());for(a=0;a<s.length;a++)if(w=s[a],w.type.Tb)for(f=w.Jh(),c=0,e=w.type.tc.length;c<e;c++)d=w.type.tc[c],w.type!==d&&(d.j.length>f?w.siblings.push(d.j[f]):d.Xc&&(k=this.b.Te(d.Xc,w.u,!0,w.x,w.y,!0),this.b.Ob(),d.ol(),w.siblings.push(k),s.push(k)));a=0;for(f=this.Of.length;a<f;a++)this.b.Te(this.Of[a],null,!0);this.b.uf=null;this.b.Ob();if(this.b.ua&&!this.b.wa)for(a=0,f=this.b.I.length;a<f;a++)d=this.b.I[a],
!d.L&&d.j.length&&d.si&&d.si(this.b.ua);a=0;for(f=s.length;a<f;a++)w=s[a],this.b.trigger(Object.getPrototypeOf(w.type.ja).k.Je,w);s.length=0;this.b.trigger(T.prototype.k.ho,null);this.Ag=!1};l.prototype.Nu=function(){var a,c,f,e,k;c=a=0;for(f=this.Of.length;a<f;a++)e=this.Of[a],k=this.b.I[e[1]],k.global?this.b.Te(e,null,!0):(this.Of[c]=e,c++);this.Of.length=c};l.prototype.Mx=function(){this.b.trigger(T.prototype.k.fo,null);this.b.Md.qc.length=0;var a,c,f,e,k,w;if(!this.Ag)for(a=0,c=this.ga.length;a<
c;a++)for(this.ga[a].Qn(),k=this.ga[a].j,f=0,e=k.length;f<e;f++)w=k[f],w.type.global||this.b.Nn(w.type)&&this.zx(w);a=0;for(c=this.ga.length;a<c;a++){k=this.ga[a].j;f=0;for(e=k.length;f<e;f++)w=k[f],w.type.global||this.b.He(w);this.b.Ob();k.length=0;this.ga[a].mg=!0}a=0;for(c=this.b.I.length;a<c;a++)if(k=this.b.I[a],!(k.global||k.ja.bf||k.ja.al||k.L)){f=0;for(e=k.j.length;f<e;f++)this.b.He(k.j[f]);this.b.Ob()}g=!1};new J(0,0,0,0);l.prototype.uc=function(a){var c,f=a,e=!1,k=!this.b.$c;k&&(this.b.ok||
(this.b.ok=document.createElement("canvas"),c=this.b.ok,c.width=this.b.fa,c.height=this.b.ea,this.b.Lp=c.getContext("2d"),e=!0),c=this.b.ok,f=this.b.Lp,c.width!==this.b.fa&&(c.width=this.b.fa,e=!0),c.height!==this.b.ea&&(c.height=this.b.ea,e=!0),e&&(f.webkitImageSmoothingEnabled=this.b.ba,f.mozImageSmoothingEnabled=this.b.ba,f.msImageSmoothingEnabled=this.b.ba,f.imageSmoothingEnabled=this.b.ba));f.globalAlpha=1;f.globalCompositeOperation="source-over";this.b.Il&&!this.lp()&&f.clearRect(0,0,this.b.fa,
this.b.ea);var g,d,e=0;for(g=this.ga.length;e<g;e++)d=this.ga[e],d.visible&&0<d.opacity&&11!==d.ic&&(d.j.length||!d.Ae)?d.uc(f):d.Pn();k&&a.drawImage(c,0,0,this.b.width,this.b.height)};l.prototype.$b=function(a){var c=0<this.ta.length||this.b.jh||!this.b.$c;if(c){this.b.zc||(this.b.zc=a.Td(this.b.fa,this.b.ea,this.b.ba));if(this.b.zc.sf!==this.b.fa||this.b.zc.rf!==this.b.ea)a.deleteTexture(this.b.zc),this.b.zc=a.Td(this.b.fa,this.b.ea,this.b.ba);a.ue(this.b.zc);this.b.$c||a.Di(this.b.fa,this.b.ea)}else this.b.zc&&
(a.ue(null),a.deleteTexture(this.b.zc),this.b.zc=null);this.b.Il&&!this.lp()&&a.clear(0,0,0,0);var f,e,k;f=0;for(e=this.ga.length;f<e;f++)k=this.ga[f],k.visible&&0<k.opacity&&(k.j.length||!k.Ae)?k.$b(a):k.Pn();c&&(0===this.ta.length||1===this.ta.length&&this.b.$c?(1===this.ta.length?(c=this.ta[0].index,a.mf(this.ta[0].Nb),a.Ci(null,1/this.b.fa,1/this.b.ea,0,0,1,1,this.scale,this.A,0,0,this.b.fa/2,this.b.ea/2,this.Qa[c]),a.dn(this.ta[0].Nb)&&(this.b.V=!0)):a.mf(0),this.b.$c||a.Di(this.b.width,this.b.height),
a.ue(null),a.te(1),a.Wb(this.b.zc),a.Dx(),a.pe(),a.Ce(),c=this.b.width/2,f=this.b.height/2,a.gn(-c,f,c,f,c,-f,-c,-f),a.Wb(null)):this.ln(a,null,null,null))};l.prototype.Ih=function(){return 0<this.ta.length||this.b.jh||!this.b.$c?this.b.zc:null};l.prototype.fp=function(){var a=this.ga[0].wc(),c,f,e;c=1;for(f=this.ga.length;c<f;c++)e=this.ga[c],(0!==e.Oc||0!==e.ed)&&e.wc()<a&&(a=e.wc());return a};l.prototype.sn=function(a){if(!this.$q){var c=1/this.fp()*this.b.fa/2;a>this.width-c&&(a=this.width-c);
a<c&&(a=c)}this.scrollX!==a&&(this.scrollX=a,this.b.V=!0)};l.prototype.tn=function(a){if(!this.$q){var c=1/this.fp()*this.b.ea/2;a>this.height-c&&(a=this.height-c);a<c&&(a=c)}this.scrollY!==a&&(this.scrollY=a,this.b.V=!0)};l.prototype.Hu=function(){this.sn(this.scrollX);this.tn(this.scrollY)};l.prototype.ln=function(a,c,f,e){var k=f?f.ta:c?c.ta:this.ta,g=1,d=0,q=0,n=0,b=this.b.fa,h=this.b.ea;f?(g=f.u.wc(),d=f.u.Pa(),q=f.u.Ia,n=f.u.Ja,b=f.u.La,h=f.u.Ka):c&&(g=c.wc(),d=c.Pa(),q=c.Ia,n=c.Ja,b=c.La,h=
c.Ka);var m=this.b.km,r,p,s,u,v=0,t=1,l,A=this.b.fa,E=this.b.ea,fa=A/2,ia=E/2,N=c?c.fd:this.fd,B=c?c.jn:this.jn,y=0,Q=0,C=0,I=0,G=A,U=A,K=E,R=E,P=s=0,L=f?f.u.Pa():0;if(f){r=0;for(p=k.length;r<p;r++)s+=a.Jy(k[r].Nb),P+=a.Ky(k[r].Nb);u=f.Ua;y=c.Ga(u.left,u.top,!0,!0);C=c.Ga(u.left,u.top,!1,!0);G=c.Ga(u.right,u.bottom,!0,!0);K=c.Ga(u.right,u.bottom,!1,!0);0!==L&&(r=c.Ga(u.right,u.top,!0,!0),p=c.Ga(u.right,u.top,!1,!0),Q=c.Ga(u.left,u.bottom,!0,!0),I=c.Ga(u.left,u.bottom,!1,!0),u=Math.min(y,G,r,Q),G=
Math.max(y,G,r,Q),y=u,u=Math.min(C,K,p,I),K=Math.max(C,K,p,I),C=u);y-=s;C-=P;G+=s;K+=P;B.left=y/A;B.top=1-C/E;B.right=G/A;B.bottom=1-K/E;Q=y=F(y);I=C=F(C);U=G=va(G);R=K=va(K);Q-=s;I-=P;U+=s;R+=P;0>y&&(y=0);0>C&&(C=0);G>A&&(G=A);K>E&&(K=E);0>Q&&(Q=0);0>I&&(I=0);U>A&&(U=A);R>E&&(R=E);N.left=y/A;N.top=1-C/E;N.right=G/A;N.bottom=1-K/E}else N.left=B.left=0,N.top=B.top=0,N.right=B.right=1,N.bottom=B.bottom=1;P=f&&((f.A||L)&&a.Lk(k[0].Nb)||0!==s||0!==P||1!==f.opacity||f.type.ja.Qp)||c&&!f&&1!==c.opacity;
a.Dx();if(P){m[v]||(m[v]=a.Td(A,E,this.b.ba));if(m[v].sf!==A||m[v].rf!==E)a.deleteTexture(m[v]),m[v]=a.Td(A,E,this.b.ba);a.mf(0);a.ue(m[v]);l=R-I;a.clearRect(Q,E-I-l,U-Q,l);f?f.$b(a):(a.Wb(this.b.Mc),a.te(c.opacity),a.pe(),a.translate(-fa,-ia),a.Ce(),a.Pc(y,K,G,K,G,C,y,C,N));B.left=B.top=0;B.right=B.bottom=1;f&&(u=N.top,N.top=N.bottom,N.bottom=u);v=1;t=0}a.te(1);s=k.length-1;var L=a.rq(k[s].Nb)||!c&&!f&&!this.b.$c,ma=0;r=0;for(p=k.length;r<p;r++){m[v]||(m[v]=a.Td(A,E,this.b.ba));if(m[v].sf!==A||m[v].rf!==
E)a.deleteTexture(m[v]),m[v]=a.Td(A,E,this.b.ba);a.mf(k[r].Nb);ma=k[r].index;a.dn(k[r].Nb)&&(this.b.V=!0);0!=r||P?(a.Ci(e,1/A,1/E,B.left,B.top,B.right,B.bottom,g,d,q,n,(q+b)/2,(n+h)/2,f?f.Qa[ma]:c?c.Qa[ma]:this.Qa[ma]),a.Wb(null),r!==s||L?(a.ue(m[v]),l=R-I,u=E-I-l,a.clearRect(Q,u,U-Q,l)):(f?a.ah(f.Xb,f.Pb):c&&a.ah(c.Xb,c.Pb),a.ue(e)),a.Wb(m[t]),a.pe(),a.translate(-fa,-ia),a.Ce(),a.Pc(y,K,G,K,G,C,y,C,N),r!==s||L||a.Wb(null)):(a.ue(m[v]),l=R-I,u=E-I-l,a.clearRect(Q,u,U-Q,l),f?(a.Ci(e,1/f.width,1/f.height,
B.left,B.top,B.right,B.bottom,g,d,q,n,(q+b)/2,(n+h)/2,f.Qa[ma]),f.$b(a)):(a.Ci(e,1/A,1/E,0,0,1,1,g,d,q,n,(q+b)/2,(n+h)/2,c?c.Qa[ma]:this.Qa[ma]),a.Wb(c?this.b.Mc:this.b.zc),a.pe(),a.translate(-fa,-ia),a.Ce(),a.Pc(y,K,G,K,G,C,y,C,N)),B.left=B.top=0,B.right=B.bottom=1,f&&!L&&(u=K,K=C,C=u));v=0===v?1:0;t=0===v?1:0}L&&(a.mf(0),f?a.ah(f.Xb,f.Pb):c?a.ah(c.Xb,c.Pb):this.b.$c||(a.Di(this.b.width,this.b.height),fa=this.b.width/2,ia=this.b.height/2,C=y=0,G=this.b.width,K=this.b.height),a.ue(e),a.Wb(m[t]),a.pe(),
a.translate(-fa,-ia),a.Ce(),f&&1===k.length&&!P?a.Pc(y,C,G,C,G,K,y,K,N):a.Pc(y,K,G,K,G,C,y,C,N),a.Wb(null))};l.prototype.Wj=function(a){var c,f;c=0;for(f=this.ga.length;c<f;c++)if(this.ga[c].ka===a)return this.ga[c];return null};l.prototype.Sa=function(){var a,c,f,e={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.A,w:this.width,h:this.height,fv:this.Ag,persist:this.ff,fx:[],layers:{}};a=0;for(c=this.X.length;a<c;a++)f=this.X[a],e.fx.push({name:f.name,active:f.zb,params:this.Qa[f.index]});a=0;
for(c=this.ga.length;a<c;a++)f=this.ga[a],e.layers[f.ka.toString()]=f.Sa();return e};l.prototype.lb=function(a){var c,f,e,k;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.A=a.a;this.width=a.w;this.height=a.h;this.ff=a.persist;"undefined"!==typeof a.fv&&(this.Ag=a.fv);var g=a.fx;c=0;for(f=g.length;c<f;c++)if(e=this.nm(g[c].name))e.zb=g[c].active,this.Qa[e.index]=g[c].params;this.Be();c=a.layers;for(k in c)c.hasOwnProperty(k)&&(a=this.Wj(parseInt(k,10)))&&a.lb(c[k])};Mb=l;d.prototype.Be=function(){this.ta.length=
0;var a,c,f;a=0;for(c=this.X.length;a<c;a++)f=this.X[a],f.zb&&this.ta.push(f)};d.prototype.nm=function(a){var c,f,e;c=0;for(f=this.X.length;c<f;c++)if(e=this.X[c],e.name===a)return e;return null};d.prototype.Ou=function(){var a,c,f,e,k,g;c=a=0;for(f=this.od.length;a<f;a++){e=this.od[a];k=this.b.I[e[1]];g=this.b.Nn(k);k=!0;if(!g||this.wb.Ag)e=this.b.Te(e,this,!0),s.push(e),e.type.global&&(k=!1,this.yh.push(e.uid));k&&(this.od[c]=this.od[a],c++)}this.od.length=c;this.b.Ob();!this.b.G&&this.X.length&&
(this.ic=this.Zu);this.wh=pb(this.ic);this.b.ae&&qb(this,this.ic,this.b.ae);this.oe=!0};d.prototype.Yg=function(a,c){var f=Ha(this.j,a);0>f||(c&&this.xd&&a.lc&&a.lc.right>=a.lc.left&&(a.Fa(),this.Dc.update(a,a.lc,null),a.lc.set(0,0,-1,-1)),f===this.j.length-1?this.j.pop():(Ea(this.j,f),this.Ei(f)),this.oe=!0)};d.prototype.sh=function(a,c){a.yd=this.j.length;this.j.push(a);c&&this.xd&&a.lc&&a.da();this.oe=!0};d.prototype.gx=function(a){this.j.unshift(a);this.Ei(0)};d.prototype.Pw=function(a,c,f){var e=
a.Ed();c=c.Ed();Ea(this.j,e);e<c&&c--;f&&c++;c===this.j.length?this.j.push(a):this.j.splice(c,0,a);this.Ei(e<c?e:c)};d.prototype.Ei=function(a){-1===this.Fe?this.Fe=a:a<this.Fe&&(this.Fe=a);this.oe=this.mg=!0};d.prototype.Qn=function(){if(this.mg){-1===this.Fe&&(this.Fe=0);var a,c,f;if(this.xd)for(a=this.Fe,c=this.j.length;a<c;++a)f=this.j[a],f.yd=a,this.Dc.Kw(f.lc);else for(a=this.Fe,c=this.j.length;a<c;++a)this.j[a].yd=a;this.mg=!1;this.Fe=-1}};d.prototype.wc=function(a){return this.Tv()*(this.b.$c||
a?this.b.uh:1)};d.prototype.Tv=function(){return(this.scale*this.wb.scale-1)*this.zd+1};d.prototype.Pa=function(){return this.yf?0:Pa(this.wb.A+this.A)};var r=[],u=[],v=[];d.prototype.gp=function(){this.Qn();this.Dc.Nk(this.Ia,this.Ja,this.La,this.Ka,v);if(!v.length)return p();if(1===v.length){var a=p();Fa(a,v[0]);v.length=0;return a}for(var c=!0;1<v.length;){for(var a=v,f=void 0,e=void 0,k=void 0,g=void 0,d=void 0,f=0,e=a.length;f<e-1;f+=2){var k=a[f],g=a[f+1],d=p(),q=k,n=g,b=d,h=0,x=0,r=0,s=q.length,
t=n.length,l=void 0,sa=void 0;for(b.length=s+t;h<s&&x<t;++r)l=q[h],sa=n[x],l.yd<sa.yd?(b[r]=l,++h):(b[r]=sa,++x);for(;h<s;++h,++r)b[r]=q[h];for(;x<t;++x,++r)b[r]=n[x];c||(m(k),m(g));u.push(d)}1===e%2&&(c?(k=p(),Fa(k,a[e-1]),u.push(k)):u.push(a[e-1]));Fa(a,u);u.length=0;c=!1}a=v[0];v.length=0;return a};d.prototype.uc=function(a){this.hf=this.gm||1!==this.opacity||0!==this.ic;var c=this.b.canvas,f=a,e=!1;this.hf&&(this.b.nk||(this.b.nk=document.createElement("canvas"),c=this.b.nk,c.width=this.b.fa,
c.height=this.b.ea,this.b.Kp=c.getContext("2d"),e=!0),c=this.b.nk,f=this.b.Kp,c.width!==this.b.fa&&(c.width=this.b.fa,e=!0),c.height!==this.b.ea&&(c.height=this.b.ea,e=!0),e&&(f.webkitImageSmoothingEnabled=this.b.ba,f.mozImageSmoothingEnabled=this.b.ba,f.msImageSmoothingEnabled=this.b.ba,f.imageSmoothingEnabled=this.b.ba),this.Ae&&f.clearRect(0,0,this.b.fa,this.b.ea));f.globalAlpha=1;f.globalCompositeOperation="source-over";this.Ae||(f.fillStyle="rgb("+this.sc[0]+","+this.sc[1]+","+this.sc[2]+")",
f.fillRect(0,0,this.b.fa,this.b.ea));f.save();this.yf=!0;var e=this.Yb(0,0,!0,!0),k=this.Yb(0,0,!1,!0);this.yf=!1;this.b.fc&&(e=Math.round(e),k=Math.round(k));this.on(e,k,f);var g=this.wc();f.scale(g,g);f.translate(-e,-k);this.xd?(this.Wc.left=this.Dc.Ec(this.Ia),this.Wc.top=this.Dc.Fc(this.Ja),this.Wc.right=this.Dc.Ec(this.La),this.Wc.bottom=this.Dc.Fc(this.Ka),this.oe||!this.Wc.Jj(this.lk)?(m(this.Og),e=this.gp(),this.oe=!1,this.lk.xh(this.Wc)):e=this.Og):e=this.j;for(var d,q=null,k=0,g=e.length;k<
g;++k)d=e[k],d!==q&&(this.Wu(d,f),q=d);this.xd&&(this.Og=e);f.restore();this.hf&&(a.globalCompositeOperation=this.wh,a.globalAlpha=this.opacity,a.drawImage(c,0,0))};d.prototype.Wu=function(a,c){if(a.visible&&0!==a.width&&0!==a.height){a.Fa();var f=a.Ua;f.right<this.Ia||f.bottom<this.Ja||f.left>this.La||f.top>this.Ka||(c.globalCompositeOperation=a.wh,a.uc(c))}};d.prototype.Pn=function(){this.yf=!0;var a=this.Yb(0,0,!0,!0),c=this.Yb(0,0,!1,!0);this.yf=!1;this.b.fc&&(a=Math.round(a),c=Math.round(c));
this.on(a,c,null)};d.prototype.on=function(a,c,f){var e=this.wc();this.Ia=a;this.Ja=c;this.La=a+1/e*this.b.fa;this.Ka=c+1/e*this.b.ea;a=this.Pa();0!==a&&(f&&(f.translate(this.b.fa/2,this.b.ea/2),f.rotate(-a),f.translate(this.b.fa/-2,this.b.ea/-2)),this.ze.set(this.Ia,this.Ja,this.La,this.Ka),this.ze.offset((this.Ia+this.La)/-2,(this.Ja+this.Ka)/-2),this.Tq.Fq(this.ze,a),this.Tq.Ko(this.ze),this.ze.offset((this.Ia+this.La)/2,(this.Ja+this.Ka)/2),this.Ia=this.ze.left,this.Ja=this.ze.top,this.La=this.ze.right,
this.Ka=this.ze.bottom)};d.prototype.$b=function(a){var c=0,f=0;if(this.hf=this.gm||1!==this.opacity||0<this.ta.length||0!==this.ic){this.b.Mc||(this.b.Mc=a.Td(this.b.fa,this.b.ea,this.b.ba));if(this.b.Mc.sf!==this.b.fa||this.b.Mc.rf!==this.b.ea)a.deleteTexture(this.b.Mc),this.b.Mc=a.Td(this.b.fa,this.b.ea,this.b.ba);a.ue(this.b.Mc);this.Ae&&a.clear(0,0,0,0)}this.Ae||a.clear(this.sc[0]/255,this.sc[1]/255,this.sc[2]/255,1);this.yf=!0;var e=this.Yb(0,0,!0,!0),c=this.Yb(0,0,!1,!0);this.yf=!1;this.b.fc&&
(e=Math.round(e),c=Math.round(c));this.on(e,c,null);e=this.wc();a.pe();a.scale(e,e);a.Aq(-this.Pa());a.translate((this.Ia+this.La)/-2,(this.Ja+this.Ka)/-2);a.Ce();this.xd?(this.Wc.left=this.Dc.Ec(this.Ia),this.Wc.top=this.Dc.Fc(this.Ja),this.Wc.right=this.Dc.Ec(this.La),this.Wc.bottom=this.Dc.Fc(this.Ka),this.oe||!this.Wc.Jj(this.lk)?(m(this.Og),c=this.gp(),this.oe=!1,this.lk.xh(this.Wc)):c=this.Og):c=this.j;var k,g,d=null,f=0;for(k=c.length;f<k;++f)g=c[f],g!==d&&(this.Xu(c[f],a),d=g);this.xd&&(this.Og=
c);this.hf&&(c=this.ta.length?this.ta[0].Nb:0,f=this.ta.length?this.ta[0].index:0,0===this.ta.length||1===this.ta.length&&!a.rq(c)&&1===this.opacity?(1===this.ta.length?(a.mf(c),a.Ci(this.wb.Ih(),1/this.b.fa,1/this.b.ea,0,0,1,1,e,this.Pa(),this.Ia,this.Ja,(this.Ia+this.La)/2,(this.Ja+this.Ka)/2,this.Qa[f]),a.dn(c)&&(this.b.V=!0)):a.mf(0),a.ue(this.wb.Ih()),a.te(this.opacity),a.Wb(this.b.Mc),a.ah(this.Xb,this.Pb),a.pe(),a.Ce(),e=this.b.fa/2,c=this.b.ea/2,a.gn(-e,c,e,c,e,-c,-e,-c),a.Wb(null)):this.wb.ln(a,
this,null,this.wb.Ih()))};d.prototype.Xu=function(a,c){if(a.visible&&0!==a.width&&0!==a.height){a.Fa();var f=a.Ua;f.right<this.Ia||f.bottom<this.Ja||f.left>this.La||f.top>this.Ka||(a.ir?this.Yu(a,c):(c.mf(0),c.ah(a.Xb,a.Pb),a.$b(c)))}};d.prototype.Yu=function(a,c){var f=a.ta[0].Nb,e=a.ta[0].index,k=this.wc();if(1!==a.ta.length||c.rq(f)||c.Ry(f)||(a.A||a.u.Pa())&&c.Lk(f)||1!==a.opacity||a.type.ja.Qp)this.wb.ln(c,this,a,this.hf?this.b.Mc:this.wb.Ih()),c.pe(),c.scale(k,k),c.Aq(-this.Pa()),c.translate((this.Ia+
this.La)/-2,(this.Ja+this.Ka)/-2),c.Ce();else{c.mf(f);c.ah(a.Xb,a.Pb);c.dn(f)&&(this.b.V=!0);var g=0,d=0,q=0,n=0;c.Lk(f)&&(f=a.Ua,g=this.Ga(f.left,f.top,!0,!0),d=this.Ga(f.left,f.top,!1,!0),q=this.Ga(f.right,f.bottom,!0,!0),f=this.Ga(f.right,f.bottom,!1,!0),g/=windowWidth,d=1-d/windowHeight,q/=windowWidth,n=1-f/windowHeight);c.Ci(this.hf?this.b.Mc:this.wb.Ih(),1/a.width,1/a.height,g,d,q,n,k,this.Pa(),this.Ia,this.Ja,(this.Ia+this.La)/2,(this.Ja+this.Ka)/2,a.Qa[e]);a.$b(c)}};d.prototype.Yb=function(a,
c,f,e){var k=this.b.devicePixelRatio;this.b.Pf&&(a*=k,c*=k);var k=this.b.lq,g=this.b.mq,k=(this.wb.scrollX-k)*this.Oc+k,g=(this.wb.scrollY-g)*this.ed+g,d=k,q=g,n=1/this.wc(!e);e?(d-=this.b.fa*n/2,q-=this.b.ea*n/2):(d-=this.b.width*n/2,q-=this.b.height*n/2);d+=a*n;q+=c*n;c=this.Pa();0!==c&&(d-=k,q-=g,a=Math.cos(c),c=Math.sin(c),e=d*a-q*c,q=q*a+d*c,d=e+k,q+=g);return f?d:q};d.prototype.Ga=function(a,c,f,e){var k=this.b.lq,g=this.b.mq,d=(this.wb.scrollX-k)*this.Oc+k,q=(this.wb.scrollY-g)*this.ed+g,g=
d,k=q,n=this.Pa();if(0!==n){a-=d;c-=q;var b=Math.cos(-n),n=Math.sin(-n),h=a*b-c*n;c=c*b+a*n;a=h+d;c+=q}d=1/this.wc(!e);e?(g-=this.b.fa*d/2,k-=this.b.ea*d/2):(g-=this.b.width*d/2,k-=this.b.height*d/2);g=(a-g)/d;k=(c-k)/d;a=this.b.devicePixelRatio;this.b.Pf&&!e&&(g/=a,k/=a);return f?g:k};d.prototype.Sa=function(){var a,c,f,e={s:this.scale,a:this.A,vl:this.Ia,vt:this.Ja,vr:this.La,vb:this.Ka,v:this.visible,bc:this.sc,t:this.Ae,px:this.Oc,py:this.ed,o:this.opacity,zr:this.zd,fx:[],cg:this.yh,instances:[]};
a=0;for(c=this.X.length;a<c;a++)f=this.X[a],e.fx.push({name:f.name,active:f.zb,params:this.Qa[f.index]});return e};d.prototype.lb=function(a){var c,f,e;this.scale=a.s;this.A=a.a;this.Ia=a.vl;this.Ja=a.vt;this.La=a.vr;this.Ka=a.vb;this.visible=a.v;this.sc=a.bc;this.Ae=a.t;this.Oc=a.px;this.ed=a.py;this.opacity=a.o;this.zd=a.zr;this.yh=a.cg||[];var k=new da;c=0;for(e=this.yh.length;c<e;++c)k.add(this.yh[c]);f=c=0;for(e=this.od.length;c<e;++c)k.contains(this.od[c][2])||(this.od[f]=this.od[c],++f);this.od.length=
f;f=a.fx;c=0;for(e=f.length;c<e;c++)if(a=this.nm(f[c].name))a.zb=f[c].active,this.Qa[a.index]=f[c].params;this.Be();this.j.sort(t);this.mg=!0};$b=d})();
(function(){function l(a,e){var b,c=a.length;switch(c){case 0:return!0;case 1:return a[0]===e[0];case 2:return a[0]===e[0]&&a[1]===e[1];default:for(b=0;b<c;b++)if(a[b]!==e[b])return!1;return!0}}function t(a,e){return a.index-e.index}function d(a){var e,b,c,f;2===a.length?a[0].index>a[1].index&&(e=a[0],a[0]=a[1],a[1]=e):2<a.length&&a.sort(t);a.length>=k.length&&(k.length=a.length+1);k[a.length]||(k[a.length]=[]);f=k[a.length];e=0;for(b=f.length;e<b;e++)if(c=f[e],l(a,c))return c;f.push(a);return a}
function p(a,e){this.b=a;this.Wq={};this.Vo={};this.wm=!1;this.op=new da;this.Yl=[];this.Jl=[];this.name=e[0];var b=e[1];this.We=[];var c,k;c=0;for(k=b.length;c<k;c++)this.pp(b[c],null,this.We)}function m(a){this.type=a;this.j=[];this.Y=[];this.S=!0}function s(a,e,b){this.sheet=a;this.parent=e;this.b=a.b;this.Ca=[];this.jf=[];this.mp=this.ll=this.Kn=this.bk=this.group=this.zn=!1;this.qb=[];this.Rc=[];this.hd=[];this.Kh="";this.Jf=this.bk=this.group=!1;this.xj=null;b[1]&&(this.Kh=b[1][1].toLowerCase(),
this.group=!0,this.bk=!!b[1][0],this.xj=[],this.Jf=this.bk,this.b.Le.push(this),this.b.Eg[this.Kh]=this);this.Nc=b[2];this.ka=b[4];this.group||(this.b.Io[this.ka.toString()]=this);var c=b[5];a=0;for(e=c.length;a<e;a++){var k=new ac(this,c[a]);k.index=a;this.qb.push(k);this.Co(k.type)}c=b[6];a=0;for(e=c.length;a<e;a++)k=new bc(this,c[a]),k.index=a,this.Rc.push(k);if(8===b.length)for(b=b[7],a=0,e=b.length;a<e;a++)this.sheet.pp(b[a],this,this.hd);this.hk=!1;this.qb.length&&(this.hk=null==this.qb[0].type&&
this.qb[0].Kb==T.prototype.k.Xn)}function g(a,e){var b,c,k;if(a&&(-1===e.indexOf(a)&&e.push(a),a.Tb))for(b=0,c=a.tc.length;b<c;b++)k=a.tc[b],a!==k&&-1===e.indexOf(k)&&e.push(k)}function r(a,e){this.Gc=a;this.sheet=a.sheet;this.b=a.b;this.Ba=[];this.Ra=[];this.aa={};this.index=-1;this.qh=!1;this.Kb=this.b.Ie(e[1]);this.trigger=0<e[3];this.Uo=2===e[3];this.Fd=e[4];this.Fg=e[5];this.Dw=e[6];this.ka=e[7];this.b.vg[this.ka.toString()]=this;-1===e[0]?(this.type=null,this.ob=this.qn,this.qf=null,this.md=
-1):(this.type=this.b.I[e[0]],this.ob=this.Dw?this.xx:this.pn,e[2]?(this.qf=this.type.Tj(e[2]),this.md=this.type.lm(e[2])):(this.qf=null,this.md=-1),this.Gc.parent&&this.Gc.parent.Xk());this.Uo&&(this.ob=this.yx);if(10===e.length){var b,c,k=e[9];b=0;for(c=k.length;b<c;b++){var f=new cc(this,k[b]);this.Ba.push(f)}this.Ra.length=k.length}}function u(a,e){this.Gc=a;this.sheet=a.sheet;this.b=a.b;this.Ba=[];this.Ra=[];this.aa={};this.index=-1;this.qh=!1;this.Kb=this.b.Ie(e[1]);-1===e[0]?(this.type=null,
this.ob=this.qn,this.qf=null,this.md=-1):(this.type=this.b.I[e[0]],this.ob=this.pn,e[2]?(this.qf=this.type.Tj(e[2]),this.md=this.type.lm(e[2])):(this.qf=null,this.md=-1));this.ka=e[3];this.b.rg[this.ka.toString()]=this;if(6===e.length){var b,c,k=e[5];b=0;for(c=k.length;b<c;b++){var f=new cc(this,k[b]);this.Ba.push(f)}this.Ra.length=k.length}}function v(){z++;w.length===z&&w.push(new dc);return w[z]}function a(a,e){this.dd=a;this.Gc=a.Gc;this.sheet=a.sheet;this.b=a.b;this.type=e[0];this.Cd=null;this.we=
0;this.get=null;this.Oo=0;this.wb=null;this.key=0;this.object=null;this.index=0;this.Qi=this.gg=this.Qi=this.gg=this.Wo=this.Bf=this.Ri=null;this.jd=!1;var b,c,k;switch(e[0]){case 0:case 7:this.Cd=new ec(this,e[1]);this.we=0;this.get=this.dw;break;case 1:this.Cd=new ec(this,e[1]);this.we=0;this.get=this.ew;break;case 5:this.Cd=new ec(this,e[1]);this.we=0;this.get=this.iw;break;case 3:case 8:this.Oo=e[1];this.get=this.aw;break;case 6:this.wb=this.b.Jm[e[1]];this.get=this.jw;break;case 9:this.key=e[1];
this.get=this.hw;break;case 4:this.object=this.b.I[e[1]];this.get=this.kw;this.Gc.Co(this.object);this.dd instanceof bc?this.Gc.Xk():this.Gc.parent&&this.Gc.parent.Xk();break;case 10:this.index=e[1];a.type.L?(this.get=this.fw,this.jd=!0):this.get=this.gw;break;case 11:this.Ri=e[1];this.Bf=null;this.get=this.bw;break;case 2:case 12:this.Wo=e[1];this.get=this.$v;break;case 13:for(this.get=this.lw,this.gg=[],this.Qi=[],b=1,c=e.length;b<c;b++)k=new cc(this.dd,e[b]),this.gg.push(k),this.Qi.push(0)}}function c(a,
e,b){this.sheet=a;this.parent=e;this.b=a.b;this.Ca=[];this.name=b[1];this.Si=b[2];this.ym=b[3];this.Zh=!!b[4];this.gk=!!b[5];this.ka=b[6];this.b.mh[this.ka.toString()]=this;this.data=this.ym;this.parent?(this.Xf=this.Zh||this.gk?-1:this.b.Kx++,this.b.zu.push(this)):(this.Xf=-1,this.b.yu.push(this))}function f(a,e,b){this.sheet=a;this.parent=e;this.b=a.b;this.Ca=[];this.Nh=null;this.pw=b[1];this.zb=!0}function e(){this.Mq=[];this.reset(null)}var k=[];p.prototype.toString=function(){return this.name};
p.prototype.pp=function(a,e,b){switch(a[0]){case 0:a=new fc(this,e,a);if(a.Nc)for(b.push(a),b=0,e=a.qb.length;b<e;b++)a.qb[b].trigger&&this.qp(a,b);else a.Bp()?this.qp(a,0):b.push(a);break;case 1:a=new Xb(this,e,a);b.push(a);break;case 2:a=new gc(this,e,a),b.push(a)}};p.prototype.bb=function(){var a,e;a=0;for(e=this.We.length;a<e;a++)this.We[a].bb(a<e-1&&this.We[a+1].hk)};p.prototype.On=function(){this.Yl.length=0;this.Jl.length=0;this.Ao(this);this.Jl.length=0};p.prototype.Ao=function(a){var e,b,
c,k,f=a.Yl,g=a.Jl,d=this.op.De();e=0;for(b=d.length;e<b;++e)c=d[e],k=c.Nh,!c.zb||a===k||-1<g.indexOf(k)||(g.push(k),k.Ao(a),f.push(k))};p.prototype.ob=function(a){this.b.Ty||(this.wm=!0,a||(this.b.Em=!0));var e,b;e=0;for(b=this.We.length;e<b;e++){var c=this.We[e];c.ob();this.b.Sl(c.Ca);this.b.Ye&&this.b.Ob()}a||(this.b.Em=!1)};p.prototype.qp=function(a,e){a.Nc||this.b.nl.push(a);var b,c,k=a.qb[e],f;f=k.type?k.type.name:"system";var g=(b=k.Uo)?this.Vo:this.Wq;g[f]||(g[f]=[]);f=g[f];g=k.Kb;if(b){if(k.Ba.length&&
(k=k.Ba[0],1===k.type&&2===k.Cd.type)){k=k.Cd.value.toLowerCase();b=0;for(c=f.length;b<c;b++)if(f[b].method==g){b=f[b].Ah;b[k]?b[k].push([a,e]):b[k]=[[a,e]];return}b={};b[k]=[[a,e]];f.push({method:g,Ah:b})}}else{b=0;for(c=f.length;b<c;b++)if(f[b].method==g){f[b].Ah.push([a,e]);return}V&&g===V.prototype.k.qg?f.unshift({method:g,Ah:[[a,e]]}):f.push({method:g,Ah:[[a,e]]})}};Nb=p;m.prototype.vm=function(){return this.S?this.type.j.length:this.j.length};m.prototype.Qb=function(){return this.S?this.type.j:
this.j};m.prototype.qi=function(a){a&&(a.b.jb().hb.Nc?(this.S&&(this.j.length=0,Fa(this.Y,a.type.j),this.S=!1),a=this.Y.indexOf(a),-1!==a&&(this.j.push(this.Y[a]),this.Y.splice(a,1))):(this.S=!1,this.j.length=1,this.j[0]=a))};vb=m;window._c2hh_="DA39A3EE5E6B4B0D3255BFEF95601890AFD80709";s.prototype.bb=function(a){var e,b=this.parent;if(this.group)for(this.ll=!0;b;){if(!b.group){this.ll=!1;break}b=b.parent}this.Kn=!this.Bp()&&(!this.parent||this.parent.group&&this.parent.ll);this.mp=!!a;this.jf=this.Ca.slice(0);
for(b=this.parent;b;){a=0;for(e=b.Ca.length;a<e;a++)this.xu(b.Ca[a]);b=b.parent}this.Ca=d(this.Ca);this.jf=d(this.jf);a=0;for(e=this.qb.length;a<e;a++)this.qb[a].bb();a=0;for(e=this.Rc.length;a<e;a++)this.Rc[a].bb();a=0;for(e=this.hd.length;a<e;a++)this.hd[a].bb(a<e-1&&this.hd[a+1].hk)};s.prototype.Bi=function(a){if(this.Jf!==!!a){this.Jf=!!a;var e;a=0;for(e=this.xj.length;a<e;++a)this.xj[a].br();0<e&&this.b.ra.Af&&this.b.ra.Af.On()}};s.prototype.Co=function(a){g(a,this.Ca)};s.prototype.xu=function(a){g(a,
this.jf)};s.prototype.Xk=function(){this.zn=!0;this.parent&&this.parent.Xk()};s.prototype.Bp=function(){return this.qb.length?this.qb[0].trigger:!1};s.prototype.ob=function(){var a,e=!1,b,c=this.b,k=this.b.jb();k.hb=this;var f=this.qb;this.hk||(k.$l=!1);if(this.Nc){0===f.length&&(e=!0);k.gb=0;for(a=f.length;k.gb<a;k.gb++)f[k.gb].trigger||(b=f[k.gb].ob())&&(e=!0);(k.Sf=e)&&this.Qk()}else{k.gb=0;for(a=f.length;k.gb<a;k.gb++)if(b=f[k.gb].ob(),!b){k.Sf=!1;this.Kn&&c.Ye&&c.Ob();return}k.Sf=!0;this.Qk()}this.av(k)};
s.prototype.av=function(a){a.Sf&&this.mp&&(a.$l=!0);this.Kn&&this.b.Ye&&this.b.Ob()};s.prototype.vx=function(a){this.b.jb().hb=this;this.qb[a].ob()&&(this.Qk(),this.b.jb().Sf=!0)};s.prototype.Qk=function(){var a=this.b.jb(),e;a.hc=0;for(e=this.Rc.length;a.hc<e;a.hc++)if(this.Rc[a.hc].ob())return;this.Bq()};s.prototype.rx=function(){var a=this.b.jb(),e;for(e=this.Rc.length;a.hc<e;a.hc++)if(this.Rc[a.hc].ob())return;this.Bq()};s.prototype.Bq=function(){if(this.hd.length){var a,e,b,c,k=this.hd.length-
1;this.b.Mk(this);if(this.zn)for(a=0,e=this.hd.length;a<e;a++)b=this.hd[a],(c=!this.ll||!this.group&&a<k)&&this.b.wi(b.Ca),b.ob(),c?this.b.gf(b.Ca):this.b.Sl(b.Ca);else for(a=0,e=this.hd.length;a<e;a++)this.hd[a].ob();this.b.Ik()}};s.prototype.wx=function(){var a=this.b.jb();a.hb=this;var e=!1,b;a.gb=0;for(b=this.qb.length;a.gb<b;a.gb++)if(this.qb[a.gb].ob())e=!0;else if(!this.Nc)return!1;return this.Nc?e:!0};s.prototype.Pk=function(){this.b.Cf++;var a=this.b.jb().gb,e=this.b.Mk(this);if(!this.Nc)for(e.gb=
a+1,a=this.qb.length;e.gb<a;e.gb++)if(!this.qb[e.gb].ob()){this.b.Ik();return}this.Qk();this.b.Ik()};s.prototype.yw=function(a){var e=a.index;if(0===e)return!0;for(--e;0<=e;--e)if(this.qb[e].type===a.type)return!1;return!0};fc=s;r.prototype.bb=function(){var a,e,b;a=0;for(e=this.Ba.length;a<e;a++)b=this.Ba[a],b.bb(),b.jd&&(this.qh=!0)};r.prototype.yx=function(){return!0};r.prototype.qn=function(){var a,e;a=0;for(e=this.Ba.length;a<e;a++)this.Ra[a]=this.Ba[a].get();return cb(this.Kb.apply(this.b.Md,
this.Ra),this.Fg)};r.prototype.xx=function(){var a,e;a=0;for(e=this.Ba.length;a<e;a++)this.Ra[a]=this.Ba[a].get();a=this.Kb.apply(this.qf?this.qf:this.type,this.Ra);this.type.ld();return a};r.prototype.pn=function(){var a,e,b,c,k,f,g,d,w=this.type,m=w.R(),r=this.Gc.Nc&&!this.trigger;e=0;var s=w.Tb,p=w.L,u=w.Zd,v=this.md,z=-1<v,t=this.qh,l=this.Ba,y=this.Ra,Q=this.Fg,C=this.Kb,I;if(t)for(e=0,k=l.length;e<k;++e)f=l[e],f.jd||(y[e]=f.get(0));else for(e=0,k=l.length;e<k;++e)y[e]=l[e].get(0);if(m.S){m.j.length=
0;m.Y.length=0;I=w.j;a=0;for(c=I.length;a<c;++a){d=I[a];if(t)for(e=0,k=l.length;e<k;++e)f=l[e],f.jd&&(y[e]=f.get(a));z?(e=0,p&&(e=d.type.zg[u]),e=C.apply(d.Z[v+e],y)):e=C.apply(d,y);(g=cb(e,Q))?m.j.push(d):r&&m.Y.push(d)}w.finish&&w.finish(!0);m.S=!1;w.ld();return m.vm()}b=0;I=(g=r&&!this.Gc.yw(this))?m.Y:m.j;var G=!1;a=0;for(c=I.length;a<c;++a){d=I[a];if(t)for(e=0,k=l.length;e<k;++e)f=l[e],f.jd&&(y[e]=f.get(a));z?(e=0,p&&(e=d.type.zg[u]),e=C.apply(d.Z[v+e],y)):e=C.apply(d,y);if(cb(e,Q))if(G=!0,g){if(m.j.push(d),
s)for(e=0,k=d.siblings.length;e<k;e++)f=d.siblings[e],f.type.R().j.push(f)}else{I[b]=d;if(s)for(e=0,k=d.siblings.length;e<k;e++)f=d.siblings[e],f.type.R().j[b]=f;b++}else if(g){I[b]=d;if(s)for(e=0,k=d.siblings.length;e<k;e++)f=d.siblings[e],f.type.R().Y[b]=f;b++}else if(r&&(m.Y.push(d),s))for(e=0,k=d.siblings.length;e<k;e++)f=d.siblings[e],f.type.R().Y.push(f)}I.length=b;if(s)for(p=w.tc,a=0,c=p.length;a<c;a++)d=p[a].R(),g?d.Y.length=b:d.j.length=b;b=G;if(g&&!G)for(a=0,c=m.j.length;a<c;a++){d=m.j[a];
if(t)for(e=0,k=l.length;e<k;e++)f=l[e],f.jd&&(y[e]=f.get(a));e=z?C.apply(d.Z[v],y):C.apply(d,y);if(cb(e,Q)){G=!0;break}}w.finish&&w.finish(b||r);return r?G:m.vm()};ac=r;u.prototype.bb=function(){var a,e,b;a=0;for(e=this.Ba.length;a<e;a++)b=this.Ba[a],b.bb(),b.jd&&(this.qh=!0)};u.prototype.qn=function(){var a=this.b,e,b,c=this.Ba,k=this.Ra;e=0;for(b=c.length;e<b;++e)k[e]=c[e].get();return this.Kb.apply(a.Md,k)};u.prototype.pn=function(){var a=this.type,e=this.md,b=a.Zd,c=this.qh,k=this.Ba,f=this.Ra,
g=this.Kb,d=a.R().Qb(),a=a.L,w=-1<e,m,r,s,p,u,v;if(c)for(r=0,p=k.length;r<p;++r)u=k[r],u.jd||(f[r]=u.get(0));else for(r=0,p=k.length;r<p;++r)f[r]=k[r].get(0);m=0;for(s=d.length;m<s;++m){v=d[m];if(c)for(r=0,p=k.length;r<p;++r)u=k[r],u.jd&&(f[r]=u.get(m));w?(r=0,a&&(r=v.type.zg[b]),g.apply(v.Z[e+r],f)):g.apply(v,f)}return!1};bc=u;var w=[],z=-1;a.prototype.bb=function(){var a,e;if(11===this.type)this.Bf=this.b.cp(this.Ri,this.Gc.parent);else if(13===this.type)for(a=0,e=this.gg.length;a<e;a++)this.gg[a].bb();
this.Cd&&this.Cd.bb()};a.prototype.Nw=function(a){this.jd||!a||a.ja.al||(this.jd=!0)};a.prototype.Dq=function(){this.jd=!0};a.prototype.dw=function(a){this.we=a||0;a=v();this.Cd.get(a);z--;return a.data};a.prototype.ew=function(a){this.we=a||0;a=v();this.Cd.get(a);z--;return na(a.data)?a.data:""};a.prototype.kw=function(){return this.object};a.prototype.aw=function(){return this.Oo};a.prototype.iw=function(a){this.we=a||0;a=v();this.Cd.get(a);z--;return a.ub()?this.b.Cg(a.data):this.b.Vj(a.data)};
a.prototype.jw=function(){return this.wb};a.prototype.hw=function(){return this.key};a.prototype.gw=function(){return this.index};a.prototype.fw=function(a){a=a||0;var e=this.dd.type,b=null,b=e.R(),c=b.Qb();if(c.length)b=c[a%c.length].type;else if(b.Y.length)b=b.Y[a%b.Y.length].type;else if(e.j.length)b=e.j[a%e.j.length].type;else return 0;return this.index+b.Lj[e.Zd]};a.prototype.bw=function(){return this.Bf};a.prototype.$v=function(){return this.Wo};a.prototype.lw=function(){var a,e;a=0;for(e=this.gg.length;a<
e;a++)this.Qi[a]=this.gg[a].get();return this.Qi};cc=a;c.prototype.bb=function(){this.Ca=d(this.Ca)};c.prototype.ve=function(a){var e=this.b.bp();this.parent&&!this.Zh&&e?(this.Xf>=e.length&&(e.length=this.Xf+1),e[this.Xf]=a):this.data=a};c.prototype.If=function(){var a=this.b.bp();return!this.parent||this.Zh||!a||this.gk?this.data:this.Xf>=a.length||"undefined"===typeof a[this.Xf]?this.ym:a[this.Xf]};c.prototype.ob=function(){!this.parent||this.Zh||this.gk||this.ve(this.ym)};Xb=c;f.prototype.toString=
function(){return"include:"+this.Nh.toString()};f.prototype.bb=function(){this.Nh=this.b.cm[this.pw];this.sheet.op.add(this);this.Ca=d(this.Ca);for(var a=this.parent;a;)a.group&&a.xj.push(this),a=a.parent;this.br()};f.prototype.ob=function(){this.parent&&this.b.vi(this.b.I);this.Nh.wm||this.Nh.ob(!0);this.parent&&this.b.gf(this.b.I)};f.prototype.br=function(){for(var a=this.parent;a;){if(a.group&&!a.Jf){this.zb=!1;return}a=a.parent}this.zb=!0};gc=f;e.prototype.reset=function(a){this.hb=a;this.hc=
this.gb=0;this.Mq.length=0;this.$l=this.Sf=!1};e.prototype.vp=function(){return this.hb.zn?!0:this.gb<this.hb.qb.length-1?!!this.hb.Ca.length:!1};Wb=e})();
(function(){function l(g,d){this.dd=g;this.b=g.b;this.type=d[0];this.get=[this.rv,this.nv,this.Av,this.Dv,this.cv,this.Bv,this.vv,this.jv,this.uv,this.zv,this.dv,this.yv,this.kv,this.wv,this.sv,this.tv,this.ov,this.pv,this.hv,this.Cv,this.xv,this.qv,this.gv,this.lv][this.type];var m=null;this.le=this.Ba=this.Ra=this.Kb=this.il=this.Db=this.first=this.value=null;this.md=-1;this.Ze=null;this.jr=-1;this.Bf=this.Ri=null;this.$g=!1;switch(this.type){case 0:case 1:case 2:this.value=d[1];break;case 3:this.first=
new ec(g,d[1]);break;case 18:this.first=new ec(g,d[1]);this.Db=new ec(g,d[2]);this.il=new ec(g,d[3]);break;case 19:this.Kb=this.b.Ie(d[1]);this.Kb!==T.prototype.D.random&&this.Kb!==T.prototype.D.Lu||this.dd.Dq();this.Ra=[];this.Ba=[];3===d.length?(m=d[2],this.Ra.length=m.length+1):this.Ra.length=1;break;case 20:this.le=this.b.I[d[1]];this.md=-1;this.Kb=this.b.Ie(d[2]);this.$g=d[3];mc&&this.Kb===mc.prototype.D.Vn&&this.dd.Dq();this.Ze=d[4]?new ec(g,d[4]):null;this.Ra=[];this.Ba=[];6===d.length?(m=
d[5],this.Ra.length=m.length+1):this.Ra.length=1;break;case 21:this.le=this.b.I[d[1]];this.$g=d[2];this.Ze=d[3]?new ec(g,d[3]):null;this.jr=d[4];break;case 22:this.le=this.b.I[d[1]];this.le.Tj(d[2]);this.md=this.le.lm(d[2]);this.Kb=this.b.Ie(d[3]);this.$g=d[4];this.Ze=d[5]?new ec(g,d[5]):null;this.Ra=[];this.Ba=[];7===d.length?(m=d[6],this.Ra.length=m.length+1):this.Ra.length=1;break;case 23:this.Ri=d[1],this.Bf=null}this.dd.Nw(this.le);4<=this.type&&17>=this.type&&(this.first=new ec(g,d[1]),this.Db=
new ec(g,d[2]));if(m){var p,a;p=0;for(a=m.length;p<a;p++)this.Ba.push(new ec(g,m[p]))}}function t(){++s;m.length===s&&m.push(new dc);return m[s]}function d(g,d,m){var p,a;p=0;for(a=g.length;p<a;++p)g[p].get(m),d[p+1]=m.data}function p(g,d){this.type=g||hc.pg;this.data=d||0;this.$f=null;this.type==hc.pg&&(this.data=Math.floor(this.data))}l.prototype.bb=function(){23===this.type&&(this.Bf=this.dd.b.cp(this.Ri,this.dd.Gc.parent));this.first&&this.first.bb();this.Db&&this.Db.bb();this.il&&this.il.bb();
this.Ze&&this.Ze.bb();if(this.Ba){var g,d;g=0;for(d=this.Ba.length;g<d;g++)this.Ba[g].bb()}};var m=[],s=-1;l.prototype.Cv=function(g){var m=this.Ba,p=this.Ra;p[0]=g;g=t();d(m,p,g);--s;this.Kb.apply(this.b.Md,p)};l.prototype.xv=function(g){var m=this.le,p=this.Ra,v=this.Ba,a=this.Ze,c=this.Kb,f=this.dd.we,e=m.R(),k=e.Qb();if(!k.length)if(e.Y.length)k=e.Y;else{this.$g?g.Ta(""):g.na(0);return}p[0]=g;g.$f=m;g=t();d(v,p,g);a&&(a.get(g),g.ub()&&(f=g.data,k=m.j));--s;m=k.length;if(f>=m||f<=-m)f%=m;0>f&&
(f+=m);c.apply(k[f],p)};l.prototype.gv=function(g){var m=this.le,p=this.Ra,v=this.Ba,a=this.Ze,c=this.md,f=this.Kb,e=this.dd.we,k=m.R(),w=k.Qb();if(!w.length)if(k.Y.length)w=k.Y;else{this.$g?g.Ta(""):g.na(0);return}p[0]=g;g.$f=m;g=t();d(v,p,g);a&&(a.get(g),g.ub()&&(e=g.data,w=m.j));--s;v=w.length;if(e>=v||e<=-v)e%=v;0>e&&(e+=v);e=w[e];w=0;m.L&&(w=e.type.zg[m.Zd]);f.apply(e.Z[c+w],p)};l.prototype.qv=function(g){var d=this.Ze,m=this.le,p=this.jr,a=this.dd.we,c=m.R(),f=c.Qb();if(!f.length)if(c.Y.length)f=
c.Y;else{this.$g?g.Ta(""):g.na(0);return}if(d){c=t();d.get(c);if(c.ub()){a=c.data;m=m.j;a%=m.length;0>a&&(a+=m.length);p=m[a].tb[p];na(p)?g.Ta(p):g.F(p);--s;return}--s}d=f.length;if(a>=d||a<=-d)a%=d;0>a&&(a+=d);a=f[a];f=0;m.L&&(f=a.type.Lj[m.Zd]);p=a.tb[p+f];na(p)?g.Ta(p):g.F(p)};l.prototype.rv=function(g){g.type=hc.pg;g.data=this.value};l.prototype.nv=function(g){g.type=hc.ng;g.data=this.value};l.prototype.Av=function(g){g.type=hc.String;g.data=this.value};l.prototype.Dv=function(g){this.first.get(g);
g.ub()&&(g.data=-g.data)};l.prototype.cv=function(g){this.first.get(g);var d=t();this.Db.get(d);g.ub()&&d.ub()&&(g.data+=d.data,d.Jg()&&g.Qg());--s};l.prototype.Bv=function(g){this.first.get(g);var d=t();this.Db.get(d);g.ub()&&d.ub()&&(g.data-=d.data,d.Jg()&&g.Qg());--s};l.prototype.vv=function(g){this.first.get(g);var d=t();this.Db.get(d);g.ub()&&d.ub()&&(g.data*=d.data,d.Jg()&&g.Qg());--s};l.prototype.jv=function(g){this.first.get(g);var d=t();this.Db.get(d);g.ub()&&d.ub()&&(g.data/=d.data,g.Qg());
--s};l.prototype.uv=function(g){this.first.get(g);var d=t();this.Db.get(d);g.ub()&&d.ub()&&(g.data%=d.data,d.Jg()&&g.Qg());--s};l.prototype.zv=function(g){this.first.get(g);var d=t();this.Db.get(d);g.ub()&&d.ub()&&(g.data=Math.pow(g.data,d.data),d.Jg()&&g.Qg());--s};l.prototype.dv=function(g){this.first.get(g);var d=t();this.Db.get(d);g.ub()?d.ik()?g.Ta(g.data.toString()+d.data):g.data&&d.data?g.na(1):g.na(0):g.ik()&&(g.data=d.ik()?g.data+d.data:g.data+(Math.round(1E10*d.data)/1E10).toString());--s};
l.prototype.yv=function(g){this.first.get(g);var d=t();this.Db.get(d);g.ub()&&d.ub()&&(g.data||d.data?g.na(1):g.na(0));--s};l.prototype.hv=function(g){this.first.get(g);g.data?this.Db.get(g):this.il.get(g)};l.prototype.kv=function(g){this.first.get(g);var d=t();this.Db.get(d);g.na(g.data===d.data?1:0);--s};l.prototype.wv=function(g){this.first.get(g);var d=t();this.Db.get(d);g.na(g.data!==d.data?1:0);--s};l.prototype.sv=function(g){this.first.get(g);var d=t();this.Db.get(d);g.na(g.data<d.data?1:0);
--s};l.prototype.tv=function(d){this.first.get(d);var m=t();this.Db.get(m);d.na(d.data<=m.data?1:0);--s};l.prototype.ov=function(d){this.first.get(d);var m=t();this.Db.get(m);d.na(d.data>m.data?1:0);--s};l.prototype.pv=function(d){this.first.get(d);var m=t();this.Db.get(m);d.na(d.data>=m.data?1:0);--s};l.prototype.lv=function(d){var m=this.Bf.If();la(m)?d.F(m):d.Ta(m)};ec=l;p.prototype.Jg=function(){return this.type===hc.ng};p.prototype.ub=function(){return this.type===hc.pg||this.type===hc.ng};p.prototype.ik=
function(){return this.type===hc.String};p.prototype.Qg=function(){this.Jg()||(this.ik()&&(this.data=parseFloat(this.data)),this.type=hc.ng)};p.prototype.na=function(d){this.type=hc.pg;this.data=Math.floor(d)};p.prototype.F=function(d){this.type=hc.ng;this.data=d};p.prototype.Ta=function(d){this.type=hc.String;this.data=d};p.prototype.wn=function(d){la(d)?(this.type=hc.ng,this.data=d):na(d)?(this.type=hc.String,this.data=d.toString()):(this.type=hc.pg,this.data=0)};dc=p;hc={pg:0,ng:1,String:2}})();
function T(l){this.b=l;this.qc=[]}T.prototype.Sa=function(){var l={},t,d,p,m,s,g,r,u;l.waits=[];var v=l.waits,a;t=0;for(d=this.qc.length;t<d;t++){g=this.qc[t];a={t:g.time,st:g.Jq,s:g.yn,ev:g.xg.ka,sm:[],sols:{}};g.xg.Rc[g.hc]&&(a.act=g.xg.Rc[g.hc].ka);p=0;for(m=g.Ca.length;p<m;p++)a.sm.push(g.Ca[p].ka);for(s in g.gc)if(g.gc.hasOwnProperty(s)){r=this.b.I[parseInt(s,10)];u={sa:g.gc[s].Rk,insts:[]};p=0;for(m=g.gc[s].be.length;p<m;p++)u.insts.push(g.gc[s].be[p].uid);a.sols[r.ka.toString()]=u}v.push(a)}return l};
T.prototype.lb=function(l){l=l.waits;var t,d,p,m,s,g,r,u,v,a,c;t=this.qc.length=0;for(d=l.length;t<d;t++)if(g=l[t],u=this.b.Io[g.ev.toString()]){v=-1;p=0;for(m=u.Rc.length;p<m;p++)if(u.Rc[p].ka===g.act){v=p;break}if(-1!==v){r={gc:{},Ca:[],Zl:!1};r.time=g.t;r.Jq=g.st||"";r.yn=!!g.s;r.xg=u;r.hc=v;p=0;for(m=g.sm.length;p<m;p++)(u=this.b.Xj(g.sm[p]))&&r.Ca.push(u);for(s in g.sols)if(g.sols.hasOwnProperty(s)&&(u=this.b.Xj(parseInt(s,10)))){v=g.sols[s];a={Rk:v.sa,be:[]};p=0;for(m=v.insts.length;p<m;p++)(c=
this.b.Hh(v.insts[p]))&&a.be.push(c);r.gc[u.index.toString()]=a}this.qc.push(r)}}};
(function(){function l(){}function t(a,c){var f=a.aa.c2_feo_val,e=c.aa.c2_feo_val;if(la(f)&&la(e))return f-e;f=""+f;e=""+e;return f<e?-1:f>e?1:0}function d(){}function p(){}var m=T.prototype;l.prototype.Zr=function(){return!0};l.prototype.ho=function(){return!0};l.prototype.fo=function(){return!0};l.prototype.Jr=function(a,c,f){return ic(a,c,f)};var s=[],g=-1;l.prototype.as=function(a){var c=a.R();g++;s.length===g&&s.push([]);var f=s[g];Fa(f,c.Qb());var e=this.b.jb(),k=e.hb,d=e.vp(),e=this.b.uq(),
m,q,n,b,h,p,r=a.Tb;if(d)for(d=0,m=f.length;d<m&&!e.yb;d++){this.b.wi(k.Ca);b=f[d];c=a.R();c.S=!1;c.j.length=1;c.j[0]=b;if(r)for(q=0,n=b.siblings.length;q<n;q++)h=b.siblings[q],p=h.type.R(),p.S=!1,p.j.length=1,p.j[0]=h;e.index=d;k.Pk();this.b.gf(k.Ca)}else for(c.S=!1,c.j.length=1,d=0,m=f.length;d<m&&!e.yb;d++){b=f[d];c.j[0]=b;if(r)for(q=0,n=b.siblings.length;q<n;q++)h=b.siblings[q],p=h.type.R(),p.S=!1,p.j.length=1,p.j[0]=h;e.index=d;k.Pk()}f.length=0;this.b.pq();g--;return!1};l.prototype.bs=function(a,
c,f){c=a.R();g++;s.length===g&&s.push([]);var e=s[g];Fa(e,c.Qb());var k=this.b.jb(),d=k.hb,m=this.b.Ef(),q=k.vp(),k=this.b.uq(),n,b,h,p,r;n=0;for(b=e.length;n<b;n++)e[n].aa.c2_feo_val=m.Ba[1].get(n);e.sort(t);1===f&&e.reverse();f=a.Tb;if(q)for(n=0,b=e.length;n<b&&!k.yb;n++){this.b.wi(d.Ca);h=e[n];c=a.R();c.S=!1;c.j.length=1;c.j[0]=h;if(f)for(m=0,q=h.siblings.length;m<q;m++)p=h.siblings[m],r=p.type.R(),r.S=!1,r.j.length=1,r.j[0]=p;k.index=n;d.Pk();this.b.gf(d.Ca)}else for(c.S=!1,c.j.length=1,n=0,b=
e.length;n<b&&!k.yb;n++){h=e[n];c.j[0]=h;if(f)for(m=0,q=h.siblings.length;m<q;m++)p=h.siblings[m],r=p.type.R(),r.S=!1,r.j.length=1,r.j[0]=p;k.index=n;d.Pk()}e.length=0;this.b.pq();g--;return!1};l.prototype.it=function(a,c,f,e){var k,d,m,q;if(a){g++;s.length===g&&s.push([]);var n=s[g],b=a.R();Fa(n,b.Qb());b.S&&(b.Y.length=0);var h=this.b.Ef();m=k=0;for(d=n.length;k<d;k++)q=n[k],n[m]=q,c=h.Ba[1].get(k),e=h.Ba[3].get(k),ic(c,f,e)?m++:b.Y.push(q);n.length=m;b.S=!1;Fa(b.j,n);n.length=0;g--;a.ld();return!!b.j.length}};
l.prototype.pu=function(){var a=this.b.Ef().aa;"undefined"===typeof a.TriggerOnce_lastTick&&(a.TriggerOnce_lastTick=-1);var c=a.TriggerOnce_lastTick,f=this.b.Od;a.TriggerOnce_lastTick=f;return this.b.Im||c!==f-1};l.prototype.Yr=function(a){var c=this.b.Ef(),f=c.aa.Every_lastTime||0,e=this.b.ac.O;"undefined"===typeof c.aa.Every_seconds&&(c.aa.Every_seconds=a);var k=c.aa.Every_seconds;if(e>=f+k)return c.aa.Every_lastTime=f+k,e>=c.aa.Every_lastTime+.04&&(c.aa.Every_lastTime=e),c.aa.Every_seconds=a,!0;
e<f-.1&&(c.aa.Every_lastTime=e);return!1};l.prototype.Qr=function(a,c,f){return ic(a.If(),c,f)};l.prototype.ts=function(a){return(a=this.b.Eg[a.toLowerCase()])&&a.Jf};l.prototype.Kr=function(a,c,f){return a>=c&&a<=f};l.prototype.Xn=function(){var a=this.b.jb();return a.$l?!1:!a.Sf};l.prototype.yl=function(){return!0};l.prototype.Ps=function(){return!0};l.prototype.dj=function(){return!0};l.prototype.Xs=function(){return!0};l.prototype.cj=function(){return!0};var r=[];l.prototype.lt=function(a,c,f){if(!a)return!1;
var e=a.R(),k=e.Qb(),d=this.b.jb().hb.Nc,g=this.b.Ef(),m,n;e.S?(Fa(r,k),e.Y.length=0,e.S=!1,e.j.length=0):d?(Fa(r,e.Y),e.Y.length=0):(Fa(r,k),e.j.length=0);k=0;for(d=r.length;k<d;++k)m=r[k],m.Fa(),(n=cb(m.Ib(c,f),g.Fg))?e.j.push(m):e.Y.push(m);a.ld();return cb(!!e.j.length,g.Fg)};l.prototype.xr=function(a,c,f){return Ua(S(a),S(f))<=S(c)};l.prototype.os=function(a,c){return Wa(S(a),S(c))};l.prototype.ms=function(a,c,f){a=Ra(a);c=Ra(c);f=Ra(f);return Wa(f,c)?Wa(a,c)&&!Wa(a,f):!(!Wa(a,c)&&Wa(a,f))};
m.k=new l;d.prototype.cs=function(a){this.b.Mg||this.b.uf||(this.b.uf=a)};d.prototype.Vr=function(a,c,f,e){if(c&&a&&(c=this.b.Vl(a,c,f,e))){this.b.Kc++;var k;this.b.trigger(Object.getPrototypeOf(a.ja).k.Je,c);if(c.Tb)for(f=0,e=c.siblings.length;f<e;f++)k=c.siblings[f],this.b.trigger(Object.getPrototypeOf(k.type.ja).k.Je,k);this.b.Kc--;a=a.R();a.S=!1;a.j.length=1;a.j[0]=c;if(c.Tb)for(f=0,e=c.siblings.length;f<e;f++)k=c.siblings[f],a=k.type.R(),a.S=!1,a.j.length=1,a.j[0]=k}};d.prototype.Pt=function(a,
c){a&&(c=Ja(c/100,0,1),a.opacity!==c&&(a.opacity=c,this.b.V=!0))};d.prototype.Yt=function(a,c){0===a.Si?la(c)?a.ve(c):a.ve(parseFloat(c)):1===a.Si&&a.ve(c.toString())};d.prototype.rr=function(a,c){0===a.Si?la(c)?a.ve(a.If()+c):a.ve(a.If()+parseFloat(c)):1===a.Si&&a.ve(a.If()+c.toString())};d.prototype.mu=function(a,c){0===a.Si&&(la(c)?a.ve(a.If()-c):a.ve(a.If()-parseFloat(c)))};d.prototype.Kt=function(a,c){var f=this.b.Eg[a.toLowerCase()];if(f)switch(c){case 0:f.Bi(!1);break;case 1:f.Bi(!0);break;
case 2:f.Bi(!f.Jf)}};d.prototype.St=function(a,c){var f=c;0>f&&(f=0);if(a){var e=a.R().Qb(),k,d;k=0;for(d=e.length;k<d;k++)e[k].Ug=f}};var u=[],v=[];d.prototype.su=function(a){if(!(0>a)){var c,f,e,k=this.b.jb(),d;d=u.length?u.pop():{gc:{},Ca:[]};d.Zl=!1;d.time=this.b.ac.O+a;d.Jq="";d.yn=!1;d.xg=k.hb;d.hc=k.hc+1;a=0;for(c=this.b.I.length;a<c;a++)e=this.b.I[a],f=e.R(),f.S&&-1===k.hb.Ca.indexOf(e)||(d.Ca.push(e),e=void 0,e=v.length?v.pop():{be:[]},e.Rk=!1,e.Rk=f.S,Fa(e.be,f.j),d.gc[a.toString()]=e);
this.qc.push(d);return!0}};d.prototype.Qt=function(a,c){a&&a.scale!==c&&(a.scale=c,this.b.V=!0)};d.prototype.Ot=function(a,c){if(a){var f=Aa(c),e=Ba(c),k=Ca(c);if(a.sc[0]!==f||a.sc[1]!==e||a.sc[2]!==k)a.sc[0]=f,a.sc[1]=e,a.sc[2]=k,this.b.V=!0}};d.prototype.At=function(){if(!this.b.Mg&&!this.b.uf&&this.b.ra){this.b.uf=this.b.ra;var a,c,f;a=0;for(c=this.b.Le.length;a<c;a++)f=this.b.Le[a],f.Bi(f.bk)}};d.prototype.Bt=function(a){this.b.Sk=a};d.prototype.Hs=function(a){this.b.fi=a};m.q=new d;p.prototype["int"]=
function(a,c){na(c)?(a.na(parseInt(c,10)),isNaN(a.data)&&(a.data=0)):a.na(c)};p.prototype["float"]=function(a,c){na(c)?(a.F(parseFloat(c)),isNaN(a.data)&&(a.data=0)):a.F(c)};p.prototype.random=function(a,c,f){void 0===f?a.F(Math.random()*c):a.F(Math.random()*(f-c)+c)};p.prototype.sqrt=function(a,c){a.F(Math.sqrt(c))};p.prototype.abs=function(a,c){a.F(Math.abs(c))};p.prototype.round=function(a,c){a.na(Math.round(c))};p.prototype.floor=function(a,c){a.na(Math.floor(c))};p.prototype.ceil=function(a,
c){a.na(Math.ceil(c))};p.prototype.sin=function(a,c){a.F(Math.sin(S(c)))};p.prototype.cos=function(a,c){a.F(Math.cos(S(c)))};p.prototype.tan=function(a,c){a.F(Math.tan(S(c)))};p.prototype.asin=function(a,c){a.F(La(Math.asin(c)))};p.prototype.acos=function(a,c){a.F(La(Math.acos(c)))};p.prototype.atan=function(a,c){a.F(La(Math.atan(c)))};p.prototype.exp=function(a,c){a.F(Math.exp(c))};p.prototype.log10=function(a,c){a.F(Math.log(c)/Math.LN10)};p.prototype.max=function(a){var c=arguments[1];"number"!==
typeof c&&(c=0);var f,e,k;f=2;for(e=arguments.length;f<e;f++)k=arguments[f],"number"===typeof k&&c<k&&(c=k);a.F(c)};p.prototype.min=function(a){var c=arguments[1];"number"!==typeof c&&(c=0);var f,e,k;f=2;for(e=arguments.length;f<e;f++)k=arguments[f],"number"===typeof k&&c>k&&(c=k);a.F(c)};p.prototype.Ue=function(a){a.F(this.b.Ue)};p.prototype.jg=function(a){a.F(this.b.jg)};p.prototype.time=function(a){a.F(this.b.ac.O)};p.prototype.Od=function(a){a.na(this.b.Od)};p.prototype.yk=function(a){a.na(this.b.yk)};
p.prototype.hm=function(a){a.na(this.b.hm)};p.prototype.Uu=function(a,c,f,e,k){a.F(Ya(c,f,e,k))};p.prototype.A=function(a,c,f,e,k){a.F(La(Ta(c,f,e,k)))};p.prototype.Bx=function(a){a.F(this.b.ra.scrollX)};p.prototype.Cx=function(a){a.F(this.b.ra.scrollY)};p.prototype.Hw=function(a,c,f,e){a.F(db(c,f,e))};p.prototype.Zx=function(a){a.na(this.b.width)};p.prototype.Yx=function(a){a.na(this.b.height)};p.prototype.Fw=function(a,c){var f=this.b.Bg(c);f?a.F(f.scale):a.F(0)};p.prototype.Ew=function(a,c){var f=
this.b.Bg(c);f?a.F(100*f.Oc):a.F(0)};p.prototype.find=function(a,c,f){na(c)&&na(f)?a.na(c.search(new RegExp(lb(f),"i"))):a.na(-1)};p.prototype.left=function(a,c,f){a.Ta(na(c)?c.substr(0,f):"")};p.prototype.right=function(a,c,f){a.Ta(na(c)?c.substr(c.length-f):"")};p.prototype.replace=function(a,c,f,e){na(c)&&na(f)&&na(e)?a.Ta(c.replace(new RegExp(lb(f),"gi"),e)):a.Ta(na(c)?c:"")};p.prototype.trim=function(a,c){a.Ta(na(c)?c.trim():"")};p.prototype.Gw=function(a){this.b.ra?a.Ta(this.b.ra.name):a.Ta("")};
p.prototype.Lu=function(a){var c=F(Math.random()*(arguments.length-1));a.wn(arguments[c+1])};p.prototype.tx=function(a,c,f,e){a.na(za(c,f,e))};p.prototype.Ul=function(a){a.F(this.b.Ul/1E3)};p.prototype.Vx=function(a,c){var f=this.b.Bg(c);a.F(f?f.Ia:0)};p.prototype.Xx=function(a,c){var f=this.b.Bg(c);a.F(f?f.Ja:0)};p.prototype.Wx=function(a,c){var f=this.b.Bg(c);a.F(f?f.La:0)};p.prototype.Ux=function(a,c){var f=this.b.Bg(c);a.F(f?f.Ka:0)};p.prototype.Wf=function(a){a.F(this.b.Wf)};m.D=new p;m.ux=function(){var a,
c,f,e,k,d,g=this.b.jb();a=0;for(f=this.qc.length;a<f;a++){e=this.qc[a];if(-1===e.time){if(!e.yn)continue}else if(e.time>this.b.ac.O)continue;g.hb=e.xg;g.hc=e.hc;g.gb=0;for(c in e.gc)e.gc.hasOwnProperty(c)&&(k=this.b.I[parseInt(c,10)].R(),d=e.gc[c],k.S=d.Rk,Fa(k.j,d.be),k=d,k.be.length=0,v.push(k));e.xg.rx();this.b.Sl(e.Ca);e.Zl=!0}c=a=0;for(f=this.qc.length;a<f;a++)e=this.qc[a],this.qc[c]=e,e.Zl?(fb(e.gc),e.Ca.length=0,u.push(e)):c++;this.qc.length=c}})();
(function(){ub=function(l,d){var p=l[1],m=l[3],s=l[4],g=l[5],r=l[6],u=l[7],v=l[8];d.k||(d.k={});d.q||(d.q={});d.D||(d.D={});var a=d.k,c=d.q,f=d.D;m&&(a.Sr=function(a,c){return ic(this.x,a,c)},a.Tr=function(a,c){return ic(this.y,a,c)},a.ws=function(){var a=this.u;this.Fa();var c=this.Ua;return!(c.right<a.Ia||c.bottom<a.Ja||c.left>a.La||c.top>a.Ka)},a.fy=function(){this.Fa();var a=this.Ua,c=this.b.ra;return 0>a.right||0>a.bottom||a.left>c.width||a.top>c.height},a.kt=function(a,c,f){var d=this.R(),g=
d.Qb();if(!g.length)return!1;var n=g[0],b=n,h=Ya(n.x,n.y,c,f),m,p,s;m=1;for(p=g.length;m<p;m++)if(n=g[m],s=Ya(n.x,n.y,c,f),0===a&&s<h||1===a&&s>h)h=s,b=n;d.qi(b);return!0},c.uo=function(a){this.x!==a&&(this.x=a,this.da())},c.vo=function(a){this.y!==a&&(this.y=a,this.da())},c.qo=function(a,c){if(this.x!==a||this.y!==c)this.x=a,this.y=c,this.da()},c.Dl=function(a,c){var f=a.Uv(this);if(f){var d;f.Hf?(d=f.Hf(c,!0),f=f.Hf(c,!1)):(d=f.x,f=f.y);if(this.x!==d||this.y!==f)this.x=d,this.y=f,this.da()}},c.Ks=
function(a){0!==a&&(this.x+=Math.cos(this.A)*a,this.y+=Math.sin(this.A)*a,this.da())},c.Js=function(a,c){0!==c&&(this.x+=Math.cos(S(a))*c,this.y+=Math.sin(S(a))*c,this.da())},f.fj=function(a){a.F(this.x)},f.gj=function(a){a.F(this.y)},f.Ue=function(a){a.F(this.b.Ff(this))});s&&(a.Rr=function(a,c){return ic(this.width,a,c)},a.by=function(a,c){return ic(this.height,a,c)},c.to=function(a){this.width!==a&&(this.width=a,this.da())},c.Lt=function(a){this.height!==a&&(this.height=a,this.da())},c.ro=function(a,
c){if(this.width!==a||this.height!==c)this.width=a,this.height=c,this.da()},f.wo=function(a){a.F(this.width)},f.Zn=function(a){a.F(this.height)},f.Br=function(a){this.Fa();a.F(this.Ua.left)},f.Dr=function(a){this.Fa();a.F(this.Ua.top)},f.Cr=function(a){this.Fa();a.F(this.Ua.right)},f.Ar=function(a){this.Fa();a.F(this.Ua.bottom)});g&&(a.xr=function(a,c){return Ua(this.A,S(c))<=S(a)},a.os=function(a){return Wa(this.A,S(a))},a.ms=function(a,c){var f=Ra(a),d=Ra(c),g=Pa(this.A);return Wa(d,f)?Wa(g,f)&&
!Wa(g,d):!(!Wa(g,f)&&Wa(g,d))},c.oo=function(a){a=S(Ma(a));isNaN(a)||this.A===a||(this.A=a,this.da())},c.my=function(a){0===a||isNaN(a)||(this.A+=S(a),this.A=Pa(this.A),this.da())},c.ny=function(a){0===a||isNaN(a)||(this.A-=S(a),this.A=Pa(this.A),this.da())},c.oy=function(a,c){var f=Va(this.A,S(c),S(a));isNaN(f)||this.A===f||(this.A=f,this.da())},c.qy=function(a,c,f){a=Va(this.A,Math.atan2(f-this.y,c-this.x),S(a));isNaN(a)||this.A===a||(this.A=a,this.da())},c.vy=function(a,c){var f=Math.atan2(c-this.y,
a-this.x);isNaN(f)||this.A===f||(this.A=f,this.da())},f.tr=function(a){a.F(Qa(this.A))});p||(a.Wn=function(a,c,f){return ic(this.tb[a],c,f)},a.ns=function(a){return this.tb[a]},a.iy=function(a,c){var f=this.R(),d=f.Qb();if(!d.length)return!1;var g=d[0],n=g,b=g.tb[c],h,m,p;h=1;for(m=d.length;h<m;h++)if(g=d[h],p=g.tb[c],0===a&&p<b||1===a&&p>b)b=p,n=g;f.qi(n);return!0},a.jt=function(a){var c,f,d,g,n;if(this.b.Ef().Fg){n=this.R();if(n.S)for(n.S=!1,n.j.length=0,n.Y.length=0,d=this.j,c=0,f=d.length;c<f;c++)g=
d[c],g.uid===a?n.Y.push(g):n.j.push(g);else{d=c=0;for(f=n.j.length;c<f;c++)g=n.j[c],n.j[d]=g,g.uid===a?n.Y.push(g):d++;n.j.length=d}this.ld();return!!n.j.length}g=this.b.Hh(a);if(!g)return!1;n=this.R();if(!n.S&&-1===n.j.indexOf(g))return!1;if(this.L)for(a=g.type.Oa,c=0,f=a.length;c<f;c++){if(a[c]===this)return n.qi(g),this.ld(),!0}else if(g.type===this)return n.qi(g),this.ld(),!0;return!1},a.Je=function(){return!0},a.wl=function(){return!0},c.Mt=function(a,c){var f=this.tb;la(f[a])?f[a]=la(c)?c:parseFloat(c):
na(f[a])&&(f[a]=na(c)?c:c.toString())},c.pr=function(a,c){var f=this.tb;la(f[a])?f[a]=la(c)?f[a]+c:f[a]+parseFloat(c):na(f[a])&&(f[a]=na(c)?f[a]+c:f[a]+c.toString())},c.wy=function(a,c){var f=this.tb;la(f[a])&&(f[a]=la(c)?f[a]-c:f[a]-parseFloat(c))},c.Ht=function(a,c){this.tb[a]=c?1:0},c.nu=function(a){this.tb[a]=1-this.tb[a]},c.rl=function(){this.b.He(this)},c.Gs||(c.Gs=function(a){var c,f;try{c=JSON.parse(a)}catch(d){return}this.b.pk(this,c,!0);this.Ad&&this.Ad();if(this.Z)for(a=0,c=this.Z.length;a<
c;++a)f=this.Z[a],f.Ad&&f.Ad()}),f.Ur=function(a){var c=a.$f.j.length,f,d,g;f=0;for(d=this.b.nd.length;f<d;f++)g=this.b.nd[f],a.$f.L?0<=g.type.Oa.indexOf(a.$f)&&c++:g.type===a.$f&&c++;a.na(c)},f.ky=function(a){a.na(a.$f.R().Qb().length)},f.qu=function(a){a.na(this.uid)},f.ey=function(a){a.na(this.Jh())},f.ph||(f.ph=function(a){a.Ta(JSON.stringify(this.b.rn(this,!0)))}));r&&(a.Ds=function(){return this.visible},c.so=function(a){!a!==!this.visible&&(this.visible=a,this.b.V=!0)},a.Mr=function(a,c){return ic(rb(100*
this.opacity),a,c)},c.po=function(a){a/=100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.V=!0)},f.Opacity=function(a){a.F(rb(100*this.opacity))});u&&(a.vs=function(a){return a?this.u===a:!1},a.jy=function(a){var c=this.R(),f=c.Qb();if(!f.length)return!1;var d=f[0],g=d,n,b;n=1;for(b=f.length;n<b;n++)if(d=f[n],0===a){if(d.u.index>g.u.index||d.u.index===g.u.index&&d.Ed()>g.Ed())g=d}else if(d.u.index<g.u.index||d.u.index===g.u.index&&d.Ed()<g.Ed())g=d;c.qi(g);return!0},c.ul=function(){var a=
this.u,c=a.j;c.length&&c[c.length-1]===this||(a.Yg(this,!1),a.sh(this,!1),this.b.V=!0)},c.$n=function(){var a=this.u,c=a.j;c.length&&c[0]===this||(a.Yg(this,!1),a.gx(this),this.b.V=!0)},c.Ls=function(a){a&&a!=this.u&&(this.u.Yg(this,!0),this.u=a,a.sh(this,!0),this.b.V=!0)},c.yy=function(a,c){var f=0===a;if(c){var d=c.Uj(this);d&&d.uid!==this.uid&&(this.u.index!==d.u.index&&(this.u.Yg(this,!0),this.u=d.u,d.u.sh(this,!0)),this.u.Pw(this,d,f),this.b.V=!0)}},f.Fs=function(a){a.na(this.u.Vp)},f.gy=function(a){a.Ta(this.u.name)},
f.xy=function(a){a.na(this.Ed())});v&&(c.ty=function(a,c){if(this.b.G){var f=this.type.om(c);if(!(0>f)){var d=1===a;this.Ke[f]!==d&&(this.Ke[f]=d,this.Be(),this.b.V=!0)}}},c.uy=function(a,c,f){if(this.b.G){var d=this.type.om(a);0>d||(a=this.type.X[d],d=this.Qa[d],c=Math.floor(c),0>c||c>=d.length||(1===this.b.G.Ly(a.Nb,c)&&(f/=100),d[c]!==f&&(d[c]=f,a.zb&&(this.b.V=!0))))}})};Ob=function(){this.Rl=this.Ll=!0;this.type.ij=!0;this.b.V=!0;var l,d,p=this.Ml;l=0;for(d=p.length;l<d;++l)p[l](this);this.u.xd&&
this.Fa()};Pb=function(l){l&&this.Ml.push(l)};Rb=function(){if(this.Ll){var l=this.Ua,d=this.Fb;l.set(this.x,this.y,this.x+this.width,this.y+this.height);l.offset(-this.Rb*this.width,-this.Sb*this.height);this.A?(l.offset(-this.x,-this.y),d.Fq(l,this.A),d.offset(this.x,this.y),d.Ko(l)):d.Fi(l);l.normalize();this.Ll=!1;this.Px()}};var l=new J(0,0,0,0);Sb=function(){if(this.u.xd){var t=this.u.Dc,d=this.Ua;l.set(t.Ec(d.left),t.Fc(d.top),t.Ec(d.right),t.Fc(d.bottom));this.lc.Jj(l)||(this.lc.right<this.lc.left?
t.update(this,null,l):t.update(this,this.lc,l),this.lc.xh(l),this.u.oe=!0)}};Tb=function(){if(this.Rl&&this.Tc){this.Fa();var t=this.type.vh,d=this.Ua;l.set(t.Ec(d.left),t.Fc(d.top),t.Ec(d.right),t.Fc(d.bottom));this.Sc.Jj(l)||(this.Sc.right<this.Sc.left?t.update(this,null,l):t.update(this,this.Sc,l),this.Sc.xh(l),this.Rl=!1)}};Qb=function(l,d){return this.Ua.Ib(l,d)&&this.Fb.Ib(l,d)?this.xa&&!this.xa.Ig()?(this.xa.tf(this.width,this.height,this.A),this.xa.Ib(l-this.x,d-this.y)):!0:!1};Kb=function(){this.type.ol();
return this.Mf};Ub=function(){this.u.Qn();return this.yd};Vb=function(){this.ta.length=0;var l,d;l=0;for(d=this.Ke.length;l<d;l++)this.Ke[l]&&this.ta.push(this.type.X[l]);this.ir=!!this.ta.length};Lb=function(){return"Inst"+this.tq};xb=function(l){if(l&&l.Tb&&l.type!=this){var d,p,m;d=0;for(p=l.siblings.length;d<p;d++)if(m=l.siblings[d],m.type==this)return m}l=this.R().Qb();return l.length?l[0]:null};yb=function(l){var d=this.R().Qb();return d.length?d[l.Jh()%d.length]:null};wb=function(){if(this.eh&&
!this.L){var l,d;l=0;for(d=this.j.length;l<d;l++)this.j[l].Mf=l;var p=l,m=this.b.nd;l=0;for(d=m.length;l<d;++l)m[l].type===this&&(m[l].Mf=p++);this.eh=!1}};Ib=function(l){if(l<this.j.length)return this.j[l];l-=this.j.length;var d=this.b.nd,p,m;p=0;for(m=d.length;p<m;++p)if(d[p].type===this){if(0===l)return d[p];--l}return null};zb=function(){return this.kf[this.Wd]};Ab=function(){this.Wd++;this.Wd===this.kf.length?this.kf.push(new vb(this)):this.kf[this.Wd].S=!0};Bb=function(){this.Wd++;this.Wd===
this.kf.length&&this.kf.push(new vb(this));var l=this.kf[this.Wd],d=this.kf[this.Wd-1];d.S?l.S=!0:(l.S=!1,Fa(l.j,d.j),Fa(l.Y,d.Y))};Cb=function(){this.Wd--};Db=function(l){var d,p,m,s,g,r=0;if(!this.L)for(d=0,p=this.Oa.length;d<p;d++)for(g=this.Oa[d],m=0,s=g.fb.length;m<s;m++){if(l===g.fb[m].name)return this.aa.lastBehIndex=r,g.fb[m];r++}d=0;for(p=this.fb.length;d<p;d++){if(l===this.fb[d].name)return this.aa.lastBehIndex=r,this.fb[d];r++}return null};Eb=function(l){return this.Tj(l)?this.aa.lastBehIndex:
-1};Gb=function(l){var d,p;d=0;for(p=this.X.length;d<p;d++)if(this.X[d].name===l)return d;return-1};Hb=function(){if(this.Tb&&!this.L){var l,d,p,m,s,g,r;this.ol();g=this.R();var u=g.S,v=(l=this.b.jb())&&l.hb&&l.hb.Nc;l=0;for(d=this.tc.length;l<d;l++)if(s=this.tc[l],s!==this&&(s.ol(),r=s.R(),r.S=u,!u)){r.j.length=g.j.length;p=0;for(m=g.j.length;p<m;p++)r.j[p]=s.dp(g.j[p].Mf);if(v)for(r.Y.length=g.Y.length,p=0,m=g.Y.length;p<m;p++)r.Y[p]=s.dp(g.Y[p].Mf)}}};Jb=function(){return"Type"+this.ka};ic=function(l,
d,p){if("undefined"===typeof l||"undefined"===typeof p)return!1;switch(d){case 0:return l===p;case 1:return l!==p;case 2:return l<p;case 3:return l<=p;case 4:return l>p;case 5:return l>=p;default:return!1}}})();function Y(l){this.b=l}
(function(){function l(a){a=Math.pow(10,a/20);0>a&&(a=0);1<a&&(a=1);return a}function t(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function d(a){a=a.toLowerCase();return X.hasOwnProperty(a)&&X[a].length?X[a][0].Hc():y.destination}function p(){return y.createGain?y.createGain():y.createGainNode()}function m(a){return y.createDelay?y.createDelay(a):y.createDelayNode(a)}function s(a){a.start?a.start(0):a.noteOn(0)}function g(a,b,e){a.start?a.start(0,b):a.noteGrainOn(0,b,e-b)}function r(a){try{a.stop?
a.stop(0):a.noteOff(0)}catch(b){}}function u(a,b,e,c,h,f){this.type="filter";this.ab=[a,b,e,c,h,f];this.ma=p();this.W=p();this.W.gain.value=f;this.U=p();this.U.gain.value=1-f;this.ib=y.createBiquadFilter();this.ib.type="number"===typeof this.ib.type?a:Bc[a];this.ib.frequency.value=b;this.ib.detune&&(this.ib.detune.value=e);this.ib.Q.value=c;this.ib.gain.value=h;this.ma.connect(this.ib);this.ma.connect(this.U);this.ib.connect(this.W)}function v(a,b,e){this.type="delay";this.ab=[a,b,e];this.ma=p();
this.W=p();this.W.gain.value=e;this.U=p();this.U.gain.value=1-e;this.ii=p();this.Yc=m(a);this.Yc.delayTime.value=a;this.Fj=p();this.Fj.gain.value=b;this.ma.connect(this.ii);this.ma.connect(this.U);this.ii.connect(this.W);this.ii.connect(this.Yc);this.Yc.connect(this.Fj);this.Fj.connect(this.ii)}function a(a,b,e,c){this.type="convolve";this.ab=[b,e,c];this.ma=p();this.W=p();this.W.gain.value=e;this.U=p();this.U.gain.value=1-e;this.vf=y.createConvolver();a&&(this.vf.normalize=b,this.vf.buffer=a);this.ma.connect(this.vf);
this.ma.connect(this.U);this.vf.connect(this.W)}function c(a,b,e,c,h){this.type="flanger";this.ab=[a,b,e,c,h];this.ma=p();this.U=p();this.U.gain.value=1-h/2;this.W=p();this.W.gain.value=h/2;this.Mj=p();this.Mj.gain.value=c;this.Yc=m(a+b);this.Yc.delayTime.value=a;this.Cb=y.createOscillator();this.Cb.frequency.value=e;this.Bc=p();this.Bc.gain.value=b;this.ma.connect(this.Yc);this.ma.connect(this.U);this.Yc.connect(this.W);this.Yc.connect(this.Mj);this.Mj.connect(this.Yc);this.Cb.connect(this.Bc);this.Bc.connect(this.Yc.delayTime);
s(this.Cb)}function f(a,b,e,c,h,f){this.type="phaser";this.ab=[a,b,e,c,h,f];this.ma=p();this.U=p();this.U.gain.value=1-f/2;this.W=p();this.W.gain.value=f/2;this.ib=y.createBiquadFilter();this.ib.type="number"===typeof this.ib.type?7:"allpass";this.ib.frequency.value=a;this.ib.detune&&(this.ib.detune.value=b);this.ib.Q.value=e;this.Cb=y.createOscillator();this.Cb.frequency.value=h;this.Bc=p();this.Bc.gain.value=c;this.ma.connect(this.ib);this.ma.connect(this.U);this.ib.connect(this.W);this.Cb.connect(this.Bc);
this.Bc.connect(this.ib.frequency);s(this.Cb)}function e(a){this.type="gain";this.ab=[a];this.qa=p();this.qa.gain.value=a}function k(a,b){this.type="tremolo";this.ab=[a,b];this.qa=p();this.qa.gain.value=1-b/2;this.Cb=y.createOscillator();this.Cb.frequency.value=a;this.Bc=p();this.Bc.gain.value=b/2;this.Cb.connect(this.Bc);this.Bc.connect(this.qa.gain);s(this.Cb)}function w(a,b){this.type="ringmod";this.ab=[a,b];this.ma=p();this.W=p();this.W.gain.value=b;this.U=p();this.U.gain.value=1-b;this.Ai=p();
this.Ai.gain.value=0;this.Cb=y.createOscillator();this.Cb.frequency.value=a;this.Cb.connect(this.Ai.gain);s(this.Cb);this.ma.connect(this.Ai);this.ma.connect(this.U);this.Ai.connect(this.W)}function z(a,b,e,c,h){this.type="distortion";this.ab=[a,b,e,c,h];this.ma=p();this.Kk=p();this.Jk=p();this.Ex(e,Math.pow(10,c/20));this.W=p();this.W.gain.value=h;this.U=p();this.U.gain.value=1-h;this.ql=y.createWaveShaper();this.Dj=new Float32Array(65536);this.Kv(a,b);this.ql.Dj=this.Dj;this.ma.connect(this.Kk);
this.ma.connect(this.U);this.Kk.connect(this.ql);this.ql.connect(this.Jk);this.Jk.connect(this.W)}function q(a,b,e,c,h){this.type="compressor";this.ab=[a,b,e,c,h];this.qa=y.createDynamicsCompressor();try{this.qa.threshold.value=a,this.qa.knee.value=b,this.qa.ratio.value=e,this.qa.attack.value=c,this.qa.release.value=h}catch(f){}}function n(a,b){this.type="analyser";this.ab=[a,b];this.qa=y.createAnalyser();this.qa.fftSize=a;this.qa.smoothingTimeConstant=b;this.Iv=new Float32Array(this.qa.frequencyBinCount);
this.Hq=new Uint8Array(a);this.pi=0}function b(){this.T=null;this.sk=0;this.lf=[];this.Um=this.kk=this.jk=0}function h(a,b){this.src=a;this.ca=B;this.qd=b;this.Eo=!1;var e=this;this.Sm=this.bn=null;this.bg=[];this.Tk=0;this.Tn=this.dm=this.Lq=this.Dk=!1;1===B&&b&&(this.ca=0,this.bn=p());this.pf=this.za=null;var c;switch(this.ca){case 0:this.za=new Audio;this.za.addEventListener("canplaythrough",function(){e.Tn=!0});1===B&&y.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.Lq=!0,
this.za.addEventListener("canplay",function(){e.Sm||(e.Sm=y.createMediaElementSource(e.za),e.Sm.connect(e.bn))}));this.za.autoplay=!1;this.za.Oy="auto";this.za.src=a;break;case 1:c=new XMLHttpRequest;c.open("GET",a,!0);c.responseType="arraybuffer";c.onload=function(){e.pf=c.response;e.Qu()};c.onerror=function(){e.dm=!0};c.send();break;case 2:this.za=!0;break;case 3:this.za=!0}}function x(a,b){var e=this;this.tag=b;this.yb=this.Dd=!0;this.src=a.src;this.buffer=a;this.ca=B;this.qd=a.qd;this.playbackRate=
1;this.Tl=!0;this.bd=this.qe=!1;this.mc=0;this.Yh=this.Kg=this.Fd=!1;this.volume=1;this.Qf=1===U&&!this.qd||2===U;this.Sg=1;this.startTime=this.Qf?E.ac.O:E.Rd.O;this.$a=this.sb=null;this.Hd=!1;this.Za=null;this.iq=this.hq=this.gq=this.fq=this.kq=this.jq=0;this.C=null;var c=!1;1!==this.ca||0!==this.buffer.ca||this.buffer.Lq||(this.ca=0);switch(this.ca){case 0:this.qd?(this.C=a.za,c=!a.Eo,a.Eo=!0):(this.C=new Audio,this.C.autoplay=!1,this.C.src=a.za.src,c=!0);c&&this.C.addEventListener("ended",function(){ia=
e.tag;e.yb=!0;E.trigger(Y.prototype.k.xl,fa)});break;case 1:this.sb=p();this.sb.connect(d(b));1===this.buffer.ca?a.za&&(this.C=y.createBufferSource(),this.C.buffer=a.za,this.C.connect(this.sb)):(this.C=this.buffer.za,this.buffer.bn.connect(this.sb));break;case 2:this.C=new window.Media(N+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(e.Tl=!0,e.yb=!0,ia=e.tag,E.trigger(Y.prototype.k.xl,fa))});break;case 3:this.C=!0}}function H(a,b){var e=a.fe()?1:0,c=b.fe()?1:0;return e===c?0:e<c?
1:-1}function M(a,b){ja.length=0;if(a.length){var e,c,h;e=0;for(c=C.length;e<c;e++)h=C[e],sb(a,h.tag)&&ja.push(h);b&&ja.sort(H)}else I&&!I.Lf()&&(ja.length=1,ja[0]=I)}function D(a){var b,e,c,h,f=y.destination;if(X.hasOwnProperty(a)&&(c=X[a],c.length))for(f=c[0].Hc(),b=0,e=c.length;b<e;b++)h=c[b],b+1===e?h.Uc(y.destination):h.Uc(c[b+1].Hc());M(a);b=0;for(e=ja.length;b<e;b++)ja[b].mx(f);Na&&Fb===a&&(Na.disconnect(),Na.connect(f))}function W(a,b){X.hasOwnProperty(a)?X[a].push(b):X[a]=[b];D(a)}function sa(){}
function O(){}function Sa(){}var A=Y.prototype;A.P=function(a){this.ja=a;this.b=a.b};A.P.prototype.K=function(){};var E=null,fa=null,ia="",N="",B=0,y=null,Q=[],C=[],I=null,G=!1,U=0,K=!1,R=1,P=0,L=0,ma=1,Ka=1,Oa=10,Cc=1E4,Dc=1,Na=null,Fb="",Za=!1,$a=[],X={},Bc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");u.prototype.Uc=function(a){this.W.disconnect();this.W.connect(a);this.U.disconnect();this.U.connect(a)};u.prototype.remove=function(){this.ma.disconnect();this.ib.disconnect();
this.W.disconnect();this.U.disconnect()};u.prototype.Hc=function(){return this.ma};v.prototype.Uc=function(a){this.W.disconnect();this.W.connect(a);this.U.disconnect();this.U.connect(a)};v.prototype.remove=function(){this.ma.disconnect();this.ii.disconnect();this.Yc.disconnect();this.Fj.disconnect();this.W.disconnect();this.U.disconnect()};v.prototype.Hc=function(){return this.ma};a.prototype.Uc=function(a){this.W.disconnect();this.W.connect(a);this.U.disconnect();this.U.connect(a)};a.prototype.remove=
function(){this.ma.disconnect();this.vf.disconnect();this.W.disconnect();this.U.disconnect()};a.prototype.Hc=function(){return this.ma};c.prototype.Uc=function(a){this.U.disconnect();this.U.connect(a);this.W.disconnect();this.W.connect(a)};c.prototype.remove=function(){this.ma.disconnect();this.Yc.disconnect();this.Cb.disconnect();this.Bc.disconnect();this.U.disconnect();this.W.disconnect();this.Mj.disconnect()};c.prototype.Hc=function(){return this.ma};f.prototype.Uc=function(a){this.U.disconnect();
this.U.connect(a);this.W.disconnect();this.W.connect(a)};f.prototype.remove=function(){this.ma.disconnect();this.ib.disconnect();this.Cb.disconnect();this.Bc.disconnect();this.U.disconnect();this.W.disconnect()};f.prototype.Hc=function(){return this.ma};e.prototype.Uc=function(a){this.qa.disconnect();this.qa.connect(a)};e.prototype.remove=function(){this.qa.disconnect()};e.prototype.Hc=function(){return this.qa};k.prototype.Uc=function(a){this.qa.disconnect();this.qa.connect(a)};k.prototype.remove=
function(){this.Cb.disconnect();this.Bc.disconnect();this.qa.disconnect()};k.prototype.Hc=function(){return this.qa};w.prototype.Uc=function(a){this.W.disconnect();this.W.connect(a);this.U.disconnect();this.U.connect(a)};w.prototype.remove=function(){this.Cb.disconnect();this.Ai.disconnect();this.ma.disconnect();this.W.disconnect();this.U.disconnect()};w.prototype.Hc=function(){return this.ma};z.prototype.Ex=function(a,b){.01>a&&(a=.01);this.Kk.gain.value=a;this.Jk.gain.value=Math.pow(1/a,.6)*b};
z.prototype.shape=function(a,b,e){var c=1.05*e*b-b;e=0>a?-1:1;a=0>a?-a:a;b=a<b?a:b+c*(1-Math.exp(-(1/c)*(a-b)));return b*e};z.prototype.Kv=function(a,b){for(var e=Math.pow(10,a/20),c=Math.pow(10,b/20),h=0,f=0;32768>f;++f)h=f/32768,h=this.shape(h,e,c),this.Dj[32768+f]=h,this.Dj[32768-f-1]=-h};z.prototype.Uc=function(a){this.W.disconnect();this.W.connect(a);this.U.disconnect();this.U.connect(a)};z.prototype.remove=function(){this.ma.disconnect();this.Kk.disconnect();this.ql.disconnect();this.Jk.disconnect();
this.W.disconnect();this.U.disconnect()};z.prototype.Hc=function(){return this.ma};q.prototype.Uc=function(a){this.qa.disconnect();this.qa.connect(a)};q.prototype.remove=function(){this.qa.disconnect()};q.prototype.Hc=function(){return this.qa};n.prototype.Na=function(){this.qa.getFloatFrequencyData(this.Iv);this.qa.getByteTimeDomainData(this.Hq);for(var a=this.qa.fftSize,b=0,e=this.pi=0,c=0;b<a;b++)c=(this.Hq[b]-128)/128,0>c&&(c=-c),this.pi<c&&(this.pi=c),e+=c*c;this.pi=t(this.pi);t(Math.sqrt(e/
a))};n.prototype.Uc=function(a){this.qa.disconnect();this.qa.connect(a)};n.prototype.remove=function(){this.qa.disconnect()};n.prototype.Hc=function(){return this.qa};b.prototype.eg=function(a){if(this.T=a)this.jk=this.T.x,this.kk=this.T.y;this.lf.length=0};b.prototype.Zj=function(){return!!this.T};b.prototype.Na=function(a){this.T&&0!==a&&(this.Um=Ta(this.jk,this.kk,this.T.x,this.T.y),a=Ya(this.jk,this.kk,this.T.x,this.T.y)/a,4>this.lf.length||this.lf.shift(),this.lf.push(a),this.jk=this.T.x,this.kk=
this.T.y)};b.prototype.ip=function(){if(!this.lf.length)return 0;var a,b,e=0;a=0;for(b=this.lf.length;a<b;a++)e+=this.lf[a];return e/this.lf.length};b.prototype.qm=function(){return Math.cos(this.Um)*this.ip()};b.prototype.rm=function(){return Math.sin(this.Um)*this.ip()};var Ec=!1;h.prototype.Qu=function(){if(!this.za&&this.pf){var a=this;if(y.decodeAudioData)y.decodeAudioData(this.pf,function(b){a.za=b;a.pf=null;var e,c,h;if(ka(a.Gk)||K)ka(a.yj)||(e=a.yj.vf,e.normalize=a.Up,e.buffer=b);else if(a.bg.length){e=
0;for(c=a.bg.length;e<c;e++){b=a.bg[e];h=new x(a,b.Dn);h.Vk(!0);if("undefined"!==typeof b.Wp&&(b.T=E.Hh(b.Wp),!b.T))continue;if(b.T){var f=Xa(b.T.x,b.T.y,-b.T.u.Pa(),P,L,!0),k=Xa(b.T.x,b.T.y,-b.T.u.Pa(),P,L,!1);h.Uk(f,k,La(b.T.A-b.T.u.Pa()),b.$j,b.wk,b.Ak);h.eg(b.T)}else h.Uk(b.x,b.y,b.tu,b.$j,b.wk,b.Ak);h.play(a.Nm,a.Sn,a.Tk);a.Dk&&h.pause();C.push(h)}a.bg.length=0}else h=new x(a,a.Gk),h.play(a.Nm,a.Sn,a.Tk),a.Dk&&h.pause(),C.push(h)},function(){a.dm=!0});else if(this.za=y.createBuffer(this.pf,!1),
this.pf=null,ka(this.Gk)||K)ka(this.yj)||(b=this.yj.vf,b.normalize=this.Up,b.buffer=this.za);else{var b=new x(this,this.Gk);b.play(this.Nm,this.Sn,this.Tk);this.Dk&&b.pause();C.push(b)}}};h.prototype.tp=function(){switch(this.ca){case 0:var a=4<=this.za.readyState;a&&(this.Tn=!0);return a||this.Tn;case 1:return!!this.pf||!!this.za;case 2:return!0;case 3:return!0}return!1};h.prototype.up=function(){switch(this.ca){case 0:return this.tp();case 1:return!!this.za;case 2:return!0;case 3:return!0}return!1};
h.prototype.kp=function(){switch(this.ca){case 0:return!!this.za.error;case 1:return this.dm}return!1};x.prototype.Lf=function(){var a;switch(this.ca){case 0:return this.C.ended;case 1:if(1===this.buffer.ca){if(!this.Dd&&!this.yb&&this.C.loop||this.bd)return!1;a=this.Qf?E.ac.O:E.Rd.O;var b=this.playbackRate;0===b&&(b=1E-6);return a-this.startTime>this.buffer.za.duration/b}return this.C.ended;case 2:return this.Tl;case 3:!0}return!0};x.prototype.Ku=function(){return this.Dd||this.yb?!0:this.Lf()};
x.prototype.Vk=function(a){1===B&&(!this.Hd&&a?this.sb&&(this.$a||(this.$a=y.createPanner(),this.$a.panningModel="number"===typeof this.$a.panningModel?ma:["equalpower","HRTF","soundfield"][ma],this.$a.distanceModel="number"===typeof this.$a.distanceModel?Ka:["linear","inverse","exponential"][Ka],this.$a.refDistance=Oa,this.$a.maxDistance=Cc,this.$a.rolloffFactor=Dc),this.sb.disconnect(),this.sb.connect(this.$a),this.$a.connect(d(this.tag)),this.Hd=!0):this.Hd&&!a&&this.sb&&(this.$a.disconnect(),
this.sb.disconnect(),this.sb.connect(d(this.tag)),this.Hd=!1))};x.prototype.Uk=function(a,b,e,c,h,f){this.Hd&&1===B&&(this.$a.setPosition(a,b,0),this.$a.setOrientation(Math.cos(S(e)),Math.sin(S(e)),0),this.$a.coneInnerAngle=c,this.$a.coneOuterAngle=h,this.$a.coneOuterGain=f,this.jq=a,this.kq=b,this.fq=e,this.gq=c,this.hq=h,this.iq=f)};x.prototype.eg=function(a){this.Hd&&1===B&&(this.Za||(this.Za=new b),this.Za.eg(a))};x.prototype.Na=function(a){if(this.Hd&&1===B&&this.Za&&this.Za.Zj()&&this.fe()){this.Za.Na(a);
a=this.Za.T;var b=Xa(a.x,a.y,-a.u.Pa(),P,L,!0),e=Xa(a.x,a.y,-a.u.Pa(),P,L,!1);this.$a.setPosition(b,e,0);b=0;"undefined"!==typeof this.Za.T.A&&(b=a.A-a.u.Pa(),this.$a.setOrientation(Math.cos(b),Math.sin(b),0));b=Xa(this.Za.qm(),this.Za.rm(),-a.u.Pa(),0,0,!0);e=Xa(this.Za.qm(),this.Za.rm(),-a.u.Pa(),0,0,!1);this.$a.setVelocity(b,e,0)}};x.prototype.play=function(a,b,e){var c=this.C;this.Fd=a;this.volume=b;e=e||0;switch(this.ca){case 0:1!==c.playbackRate&&(c.playbackRate=1);c.volume!==b*R&&(c.volume=
b*R);c.loop!==a&&(c.loop=a);c.muted&&(c.muted=!1);if(c.currentTime!==e)try{c.currentTime=e}catch(h){}if(this.qd&&Za&&!E.ad)$a.push(this);else try{this.C.play()}catch(f){console&&console.log&&console.log("[C2] WARNING: exception trying to play audio '"+this.buffer.src+"': ",f)}break;case 1:this.muted=!1;this.Sg=1;if(1===this.buffer.ca)this.Dd||(this.C=y.createBufferSource(),this.C.buffer=this.buffer.za,this.C.connect(this.sb)),this.C.loop=a,this.sb.gain.value=b*R,0===e?s(this.C):g(this.C,e,this.Gf());
else{1!==c.playbackRate&&(c.playbackRate=1);c.loop!==a&&(c.loop=a);c.volume=b*R;if(c.currentTime!==e)try{c.currentTime=e}catch(k){}this.qd&&Za&&!E.ad?$a.push(this):c.play()}break;case 2:(!this.Dd&&this.yb||0!==e)&&c.seekTo(e);c.play();this.Tl=!1;break;case 3:E.Ab?AppMobi.context.playSound(this.src,a):AppMobi.player.playSound(this.src,a)}this.playbackRate=1;this.startTime=(this.Qf?E.ac.O:E.Rd.O)-e;this.bd=this.yb=this.Dd=!1};x.prototype.stop=function(){switch(this.ca){case 0:this.C.paused||this.C.pause();
break;case 1:1===this.buffer.ca?r(this.C):this.C.paused||this.C.pause();break;case 2:this.C.stop();break;case 3:E.Ab&&AppMobi.context.stopSound(this.src)}this.yb=!0;this.bd=!1};x.prototype.pause=function(){if(!(this.Dd||this.yb||this.Lf()||this.bd)){switch(this.ca){case 0:this.C.paused||this.C.pause();break;case 1:1===this.buffer.ca?(this.mc=this.pm(),this.Fd&&(this.mc%=this.Gf()),r(this.C)):this.C.paused||this.C.pause();break;case 2:this.C.pause();break;case 3:E.Ab&&AppMobi.context.stopSound(this.src)}this.bd=
!0}};x.prototype.yq=function(){if(!(this.Dd||this.yb||this.Lf())&&this.bd){switch(this.ca){case 0:this.C.play();break;case 1:1===this.buffer.ca?(this.C=y.createBufferSource(),this.C.buffer=this.buffer.za,this.C.connect(this.sb),this.C.loop=this.Fd,this.sb.gain.value=R*this.volume*this.Sg,this.startTime=(this.Qf?E.ac.O:E.Rd.O)-this.mc,g(this.C,this.mc,this.Gf())):this.C.play();break;case 2:this.C.play();break;case 3:E.Ab&&AppMobi.context.resumeSound(this.src)}this.bd=!1}};x.prototype.seek=function(a){if(!(this.Dd||
this.yb||this.Lf()))switch(this.ca){case 0:try{this.C.currentTime=a}catch(b){}break;case 1:if(1===this.buffer.ca)this.bd?this.mc=a:(this.pause(),this.mc=a,this.yq());else try{this.C.currentTime=a}catch(e){}break;case 3:E.Ab&&AppMobi.context.seekSound(this.src,a)}};x.prototype.mx=function(a){1===this.ca&&(this.Hd?(this.$a.disconnect(),this.$a.connect(a)):(this.sb.disconnect(),this.sb.connect(a)))};x.prototype.Gf=function(){switch(this.ca){case 0:if("undefined"!==typeof this.C.duration)return this.C.duration;
break;case 1:return this.buffer.za.duration;case 2:return this.C.getDuration();case 3:if(E.Ab)return AppMobi.context.getDurationSound(this.src)}return 0};x.prototype.pm=function(){var a=this.Gf(),b=0;switch(this.ca){case 0:"undefined"!==typeof this.C.currentTime&&(b=this.C.currentTime);break;case 1:if(1===this.buffer.ca){if(this.bd)return this.mc;b=(this.Qf?E.ac.O:E.Rd.O)-this.startTime}else"undefined"!==typeof this.C.currentTime&&(b=this.C.currentTime);break;case 3:E.Ab&&(b=AppMobi.context.getPlaybackTimeSound(this.src))}!this.Fd&&
b>a&&(b=a);return b};x.prototype.fe=function(){return!this.bd&&!this.Dd&&!this.yb&&!this.Lf()};x.prototype.Ix=function(a){this.volume=a;this.gr()};x.prototype.gr=function(){var a=this.volume*R;switch(this.ca){case 0:"undefined"!==typeof this.C.volume&&this.C.volume!==a&&(this.C.volume=a);break;case 1:1===this.buffer.ca?this.sb.gain.value=a*this.Sg:"undefined"!==typeof this.C.volume&&this.C.volume!==a&&(this.C.volume=a)}};x.prototype.Hj=function(a){switch(this.ca){case 0:this.C.muted!==!!a&&(this.C.muted=
!!a);break;case 1:1===this.buffer.ca?(this.Sg=a?0:1,this.sb.gain.value=R*this.volume*this.Sg):this.C.muted!==!!a&&(this.C.muted=!!a)}};x.prototype.Fx=function(){this.Kg=!0;this.Hj(this.Kg||this.Yh)};x.prototype.Wk=function(a){this.Yh=!!a;this.Hj(this.Kg||this.Yh)};x.prototype.er=function(){var a=this.playbackRate;this.Qf&&(a*=E.jg);switch(this.ca){case 0:this.C.playbackRate!==a&&(this.C.playbackRate=a);break;case 1:1===this.buffer.ca?this.C.playbackRate.value!==a&&(this.C.playbackRate.value=a):this.C.playbackRate!==
a&&(this.C.playbackRate=a)}};x.prototype.Hx=function(a){switch(this.ca){case 0:a?this.fe()?(this.C.pause(),this.qe=!0):this.qe=!1:this.qe&&this.C.play();break;case 1:a?this.fe()?(1===this.buffer.ca?(this.mc=this.pm(),this.Fd&&(this.mc%=this.Gf()),r(this.C)):this.C.pause(),this.qe=!0):this.qe=!1:this.qe&&(1===this.buffer.ca?(this.C=y.createBufferSource(),this.C.buffer=this.buffer.za,this.C.connect(this.sb),this.C.loop=this.Fd,this.sb.gain.value=R*this.volume*this.Sg,this.startTime=(this.Qf?E.ac.O:
E.Rd.O)-this.mc,g(this.C,this.mc,this.Gf())):this.C.play());break;case 2:a?this.fe()?(this.C.pause(),this.qe=!0):this.qe=!1:this.qe&&this.C.play()}};A.M=function(a){this.type=a;E=this.b=a.b;fa=this;this.Ub=null;this.ei=-600;!(this.b.$h||this.b.Qh&&(this.b.Rh||this.b.dk))||this.b.Sh||this.b.wa||this.b.Bm||(Za=!0);y=null;"undefined"!==typeof AudioContext?(B=1,y=new AudioContext):"undefined"!==typeof webkitAudioContext&&(B=1,y=new webkitAudioContext);(this.b.$h&&1===B||Za)&&document.addEventListener("touchstart",
function(){var a,b,e;!Ec&&y&&(a=y.createBuffer(1,1,22050),b=y.createBufferSource(),b.buffer=a,b.connect(y.destination),s(b),Ec=!0);if(Za){if(!K)for(a=0,b=$a.length;a<b;++a)e=$a[a],e.yb||e.bd||e.C.play();$a.length=0}},!0);1!==B&&(this.b.xc&&"undefined"!==typeof window.Media?B=2:this.b.Gg&&(B=3));2===B&&(N=location.href,a=N.lastIndexOf("/"),-1<a&&(N=N.substr(0,a+1)),N=N.replace("file://",""));if(this.b.wp&&this.b.zw&&"undefined"===typeof Audio)alert("It looks like you're using Safari for Windows without Quicktime.  Audio cannot be played until Quicktime is installed."),
this.b.He(this);else{if(this.b.Ab)G=this.b.Qh;else try{G=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(b){G=!1}this.b.hh(this)}};var xa=A.M.prototype;xa.K=function(){this.b.sg=this;U=this.B[0];this.re=this.B[1];this.Zw=0!==this.B[2];ma=this.B[3];Ka=this.B[4];this.ei=-this.B[5];Oa=this.B[6];Cc=this.B[7];Dc=this.B[8];this.Ub=new b;var a=this.b.fa||this.b.width,e=this.b.ea||this.b.height;1===B&&(y.listener.setPosition(a/2,e/2,this.ei),y.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=
function(a,b){Na&&Na.disconnect();Fb=b.toLowerCase();Na=y.createMediaStreamSource(a);Na.connect(d(Fb))});this.b.Do(function(a){fa.Ww(a)});var c=this;this.b.Bo(function(a){c.Ym(a)})};xa.Ym=function(a){var b,e,c;b=0;for(e=C.length;b<e;b++)c=C[b],c.Za&&c.Za.T===a&&(c.Za.T=null,c.Hd&&c.fe()&&c.Fd&&c.stop());this.Ub.T===a&&(this.Ub.T=null)};xa.Sa=function(){var a={silent:K,masterVolume:R,listenerZ:this.ei,listenerUid:this.Ub.Zj()?this.Ub.T.uid:-1,playing:[],effects:{}},b=a.playing,e,c,h,f,k,d;e=0;for(c=
C.length;e<c;e++)h=C[e],!h.fe()||3===this.re||h.qd&&1===this.re||!h.qd&&2===this.re||(f=h.pm(),h.Fd&&(f%=h.Gf()),f={tag:h.tag,buffersrc:h.buffer.src,is_music:h.qd,playbackTime:f,volume:h.volume,looping:h.Fd,muted:h.Kg,playbackRate:h.playbackRate,paused:h.bd,resume_position:h.mc},h.Hd&&(f.pan={},d=f.pan,h.Za&&h.Za.Zj()?d.objUid=h.Za.T.uid:(d.x=h.jq,d.y=h.kq,d.a=h.fq),d.ia=h.gq,d.oa=h.hq,d.og=h.iq),b.push(f));b=a.effects;for(k in X)if(X.hasOwnProperty(k)){h=[];e=0;for(c=X[k].length;e<c;e++)h.push({type:X[k][e].type,
params:X[k][e].ab});b[k]=h}return a};var ab=[];xa.lb=function(h){var d=h.silent;R=h.masterVolume;this.ei=h.listenerZ;this.Ub.eg(null);var g=h.listenerUid;-1!==g&&(this.Ub.sk=g,ab.push(this.Ub));var g=h.playing,m,p,s,r,l,x,H,M,t,D,O;if(3!==this.re)for(m=0,p=C.length;m<p;m++)t=C[m],t.qd&&1===this.re||(t.qd||2!==this.re)&&t.stop();for(l in X)if(X.hasOwnProperty(l))for(m=0,p=X[l].length;m<p;m++)X[l][m].remove();fb(X);for(l in h.effects)if(h.effects.hasOwnProperty(l))for(x=h.effects[l],m=0,p=x.length;m<
p;m++)switch(s=x[m].type,D=x[m].params,s){case "filter":W(l,new u(D[0],D[1],D[2],D[3],D[4],D[5]));break;case "delay":W(l,new v(D[0],D[1],D[2]));break;case "convolve":s=D[2];t=this.Gh(s,!1);t.za?s=new a(t.za,D[0],D[1],s):(s=new a(null,D[0],D[1],s),t.Up=D[0],t.yj=s);W(l,s);break;case "flanger":W(l,new c(D[0],D[1],D[2],D[3],D[4]));break;case "phaser":W(l,new f(D[0],D[1],D[2],D[3],D[4],D[5]));break;case "gain":W(l,new e(D[0]));break;case "tremolo":W(l,new k(D[0],D[1]));break;case "ringmod":W(l,new w(D[0],
D[1]));break;case "distortion":W(l,new z(D[0],D[1],D[2],D[3],D[4]));break;case "compressor":W(l,new q(D[0],D[1],D[2],D[3],D[4]));break;case "analyser":W(l,new n(D[0],D[1]))}m=0;for(p=g.length;m<p;m++)3===this.re||(h=g[m],s=h.buffersrc,r=h.is_music,l=h.tag,x=h.playbackTime,H=h.looping,M=h.volume,O=(D=h.pan)&&D.hasOwnProperty("objUid")?D.objUid:-1,r&&1===this.re)||!r&&2===this.re||((t=this.Sj(s,l,r,H,M))?(t.mc=h.resume_position,t.Vk(!!D),t.play(H,M,x),t.er(),t.gr(),t.Hj(t.Kg||t.Yh),h.paused&&t.pause(),
h.muted&&t.Fx(),t.Hj(t.Kg||t.Yh),D&&(-1!==O?(t.Za=t.Za||new b,t.Za.sk=O,ab.push(t.Za)):t.Uk(D.x,D.y,D.a,D.ia,D.oa,D.og))):(t=this.Gh(s,r),t.Tk=x,t.Dk=h.paused,D&&(-1!==O?t.bg.push({Wp:O,$j:D.ia,wk:D.oa,Ak:D.og,Dn:l}):t.bg.push({x:D.x,y:D.y,tu:D.a,$j:D.ia,wk:D.oa,Ak:D.og,Dn:l}))));if(d&&!K){m=0;for(p=C.length;m<p;m++)C[m].Wk(!0);K=!0}else if(!d&&K){m=0;for(p=C.length;m<p;m++)C[m].Wk(!1);K=!1}};xa.Ad=function(){var a,b,e,c;a=0;for(b=ab.length;a<b;a++)e=ab[a],c=this.b.Hh(e.sk),e.eg(c),e.sk=-1,c&&(P=
c.x,L=c.y);ab.length=0};xa.Ww=function(a){if(!this.Zw){!a&&y&&y.resume&&y.resume();var b,e;b=0;for(e=C.length;b<e;b++)C[b].Hx(a);a&&y&&y.suspend&&y.suspend()}};xa.Na=function(){var a=this.b.Ue,b,e,c;b=0;for(e=C.length;b<e;b++)c=C[b],c.Na(a),0===c.ca||3===c.ca||c.Dd||c.yb||!c.Lf()||(c.yb=!0,ia=c.tag,E.trigger(Y.prototype.k.xl,fa)),0!==U&&c.er();var h,f;for(h in X)if(X.hasOwnProperty(h))for(c=X[h],b=0,e=c.length;b<e;b++)f=c[b],f.Na&&f.Na();1===B&&this.Ub.Zj()&&(this.Ub.Na(a),P=this.Ub.T.x,L=this.Ub.T.y,
y.listener.setPosition(this.Ub.T.x,this.Ub.T.y,this.ei),y.listener.setVelocity(this.Ub.qm(),this.Ub.rm(),0))};var bb=[];xa.Gx=function(a){var b,e,c,h,f,k=0;b=0;for(e=a.length;b<e;++b)if(c=a[b],h=c[0],c=2*c[1],(f=4<h.length&&".ogg"===h.substr(h.length-4))&&G||!f&&!G)bb.push({filename:h,size:c,T:null}),k+=c;return k};xa.Lx=function(){var a,b,e,c;a=0;for(b=bb.length;a<b;++a)e=bb[a],c=this.b.Eh+e.filename,e.T=this.Gh(c,!1)};xa.Vv=function(){var a=0,b,e,c;b=0;for(e=bb.length;b<e;++b)c=bb[b],c.T.up()||
c.T.kp()||this.b.wa||this.b.dk?a+=c.size:c.T.tp()&&(a+=Math.floor(c.size/2));return a};xa.Gh=function(a,b){var e,c,f,k=null;e=0;for(c=Q.length;e<c;e++)if(f=Q[e],f.src===a){k=f;break}k||(k=new h(a,b),Q.push(k));return k};xa.Sj=function(a,b,e,c,h){var f,k,d;f=0;for(k=C.length;f<k;f++)if(d=C[f],d.src===a&&(d.Ku()||e))return d.tag=b,d;a=this.Gh(a,e);if(!a.za)return"<preload>"!==b&&(a.Gk=b,a.Nm=c,a.Sn=h),null;d=new x(a,b);C.push(d);return d};var ja=[];sa.prototype.xl=function(a){return sb(ia,a)};sa.prototype.ut=
function(){var a,b;a=0;for(b=Q.length;a<b;a++)if(!Q[a].up()&&!Q[a].kp())return!1;return!0};sa.prototype.sr=function(){return 1===B};sa.prototype.As=function(){return K};sa.prototype.Bs=function(a){M(a);var b;a=0;for(b=ja.length;a<b;a++)if(ja[a].fe())return!0;return!1};A.k=new sa;O.prototype.Play=function(a,b,e,c){!K&&(e=l(e),I=this.Sj(this.b.Eh+a[0]+(G?".ogg":".m4a"),c,a[1],0!==b,e))&&(I.Vk(!1),I.play(0!==b,e))};O.prototype.nt=function(a,b,e,c,h,f,k,d){if(!K&&c&&(c=c.Uj())){e=l(e);var g=a[1];a=this.b.Eh+
a[0]+(G?".ogg":".m4a");(I=this.Sj(a,d,g,0!==b,e))?(I.Vk(!0),d=Xa(c.x,c.y,-c.u.Pa(),P,L,!0),a=Xa(c.x,c.y,-c.u.Pa(),P,L,!1),I.Uk(d,a,La(c.A-c.u.Pa()),h,f,l(k)),I.eg(c),I.play(0!==b,e)):this.Gh(a,g).bg.push({T:c,$j:h,wk:f,Ak:l(k),Dn:d})}};O.prototype.Zt=function(a,b){M(a);var e=l(b),c,h;c=0;for(h=ja.length;c<h;c++)ja[c].Ix(e)};O.prototype.qt=function(a){if(!K){var b=a[1];a=this.b.Eh+a[0]+(G?".ogg":".m4a");3===B?this.b.Ab?AppMobi.context.loadSound(a):AppMobi.player.loadSound(a):2!==B&&this.Sj(a,"<preload>",
b,!1)}};O.prototype.gu=function(a){M(a);var b;a=0;for(b=ja.length;a<b;a++)ja[a].stop()};O.prototype.hu=function(){var a,b;a=0;for(b=C.length;a<b;a++)C[a].stop()};O.prototype.Tt=function(a,b){M(a);var e,c;e=0;for(c=ja.length;e<c;e++)0===b?ja[e].pause():ja[e].yq()};O.prototype.Xt=function(a){var b;2===a&&(a=K?1:0);if(0===a&&!K){a=0;for(b=C.length;a<b;a++)C[a].Wk(!0);K=!0}else if(1===a&&K){a=0;for(b=C.length;a<b;a++)C[a].Wk(!1);K=!1}};O.prototype.or=function(a,b,e,c,h,f,k){1!==B||0>b||b>=Bc.length||
!y.createBiquadFilter||(a=a.toLowerCase(),k/=100,0>k&&(k=0),1<k&&(k=1),W(a,new u(b,e,c,h,f,k)))};O.prototype.nr=function(a,b,e,c,h,f){1===B&&y.createDynamicsCompressor&&(a=a.toLowerCase(),W(a,new q(b,e,c,h/1E3,f/1E3)))};O.prototype.xt=function(a){if(1===B){a=a.toLowerCase();var b,e,c;if(X.hasOwnProperty(a)&&(c=X[a],c.length)){b=0;for(e=c.length;b<e;b++)c[b].remove();c.length=0;D(a)}}};O.prototype.Rt=function(a){a&&1===B&&(a=a.Uj())&&(this.Ub.eg(a),P=a.x,L=a.y)};A.q=new O;Sa.prototype.ru=function(a,
b){M(b,!0);ja.length?a.F(t(ja[0].volume)):a.F(0)};A.D=new Sa})();function nc(l){this.b=l}
(function(){function l(){}function t(){}function d(){}var p=nc.prototype;p.P=function(d){this.ja=d;this.b=d.b};p.P.prototype.K=function(){};p.M=function(d){this.type=d;this.b=d.b};p.M.prototype.K=function(){var d=this;window.addEventListener("resize",function(){d.b.trigger(nc.prototype.k.ct,d)});"undefined"!==typeof navigator.onLine&&(window.addEventListener("online",function(){d.b.trigger(nc.prototype.k.Zs,d)}),window.addEventListener("offline",function(){d.b.trigger(nc.prototype.k.Ys,d)}));"undefined"!==
typeof window.applicationCache&&(window.applicationCache.addEventListener("updateready",function(){d.b.Wf=1;d.b.trigger(nc.prototype.k.no,d)}),window.applicationCache.addEventListener("progress",function(p){d.b.Wf=p.loaded/p.total}));this.b.Ab||(document.addEventListener("appMobi.device.update.available",function(){d.b.trigger(nc.prototype.k.no,d)}),document.addEventListener("backbutton",function(){d.b.trigger(nc.prototype.k.aj,d)}),document.addEventListener("menubutton",function(){d.b.trigger(nc.prototype.k.io,
d)}),document.addEventListener("searchbutton",function(){d.b.trigger(nc.prototype.k.dt,d)}),document.addEventListener("tizenhwkey",function(p){var g;switch(p.keyName){case "back":g=d.b.trigger(nc.prototype.k.aj,d);!g&&window.tizen&&window.tizen.application.getCurrentApplication().exit();break;case "menu":(g=d.b.trigger(nc.prototype.k.io,d))||p.preventDefault()}}));this.b.Wh&&(WinJS.Application.onbackclick=function(){return!!d.b.trigger(nc.prototype.k.aj,d)});this.b.Do(function(p){p?d.b.trigger(nc.prototype.k.$s,
d):d.b.trigger(nc.prototype.k.bt,d)});this.Xh="undefined"!==typeof window.is_scirra_arcade};l.prototype.Zs=function(){return!0};l.prototype.Ys=function(){return!0};l.prototype.qs=function(){return"undefined"===typeof window.applicationCache?!1:window.applicationCache.status===window.applicationCache.DOWNLOADING};l.prototype.no=function(){return!0};l.prototype.bt=function(){return!0};l.prototype.$s=function(){return!0};l.prototype.ct=function(){return!0};l.prototype.aj=function(){return!0};l.prototype.io=
function(){return!0};l.prototype.dt=function(){return!0};p.k=new l;t.prototype.Ir=function(){this.b.jc?CocoonJS.App.forceToFinish():window.tizen?window.tizen.application.getCurrentApplication().exit():navigator.app&&navigator.app.exitApp?navigator.app.exitApp():navigator.device&&navigator.device.exitApp?navigator.device.exitApp():this.Xh||this.b.wa||window.close()};t.prototype.ds=function(d,p){this.b.jc?CocoonJS.App.openURL(d):this.b.Jc?ejecta.openURL(d):this.b.fk?Windows.System.Launcher.launchUriAsync(new Windows.Foundation.Uri(d)):
navigator.app&&navigator.app.loadUrl?navigator.app.loadUrl(d,{openExternal:!0}):this.b.xc?window.open(d,"_system"):this.Xh||this.b.wa||(2!==p||this.Xh?1!==p||this.Xh?window.location=d:window.parent.location=d:window.top.location=d)};t.prototype.es=function(d,p){this.b.jc?CocoonJS.App.openURL(d):this.b.Jc?ejecta.openURL(d):this.b.fk?Windows.System.Launcher.launchUriAsync(new Windows.Foundation.Uri(d)):navigator.app&&navigator.app.loadUrl?navigator.app.loadUrl(d,{openExternal:!0}):this.b.xc?window.open(d,
"_system"):this.Xh||this.b.wa||window.open(d,p)};p.q=new t;d.prototype.URL=function(d){d.Ta(this.b.wa?"":window.location.toString())};p.D=new d})();function oc(l){this.b=l}
(function(){function l(){}function t(){}var d=oc.prototype;d.P=function(d){this.ja=d;this.b=d.b};d.P.prototype.K=function(){};d.M=function(d){this.type=d;this.b=d.b};var p=d.M.prototype;p.K=function(){this.b.wa?ga("[Construct 2] Button plugin not supported on this platform - the object will not be created"):(this.Hg=1===this.B[0],this.Ic=document.createElement("input"),this.Aa=this.Hg?document.createElement("label"):this.Ic,this.ai=null,this.Ic.type=this.Hg?"checkbox":"button",this.Ic.id=this.B[6],
jQuery(this.Aa).appendTo(this.b.sj?this.b.sj:"body"),this.Hg?(jQuery(this.Ic).appendTo(this.Aa),this.ai=document.createTextNode(this.B[1]),jQuery(this.Aa).append(this.ai),this.Ic.checked=0!==this.B[7],jQuery(this.Aa).css("font-family","sans-serif"),jQuery(this.Aa).css("display","inline-block"),jQuery(this.Aa).css("color","black")):this.Ic.value=this.B[1],this.Aa.title=this.B[2],this.Ic.disabled=0===this.B[4],this.Du=0!==this.B[5],this.zf=!1,0===this.B[3]&&(jQuery(this.Aa).hide(),this.visible=!1,this.zf=
!0),this.Ic.onclick=function(d){return function(p){p.stopPropagation();d.b.ad=!0;d.b.trigger(oc.prototype.k.Qs,d);d.b.ad=!1}}(this),this.Aa.addEventListener("touchstart",function(d){d.stopPropagation()},!1),this.Aa.addEventListener("touchmove",function(d){d.stopPropagation()},!1),this.Aa.addEventListener("touchend",function(d){d.stopPropagation()},!1),jQuery(this.Aa).mousedown(function(d){d.stopPropagation()}),jQuery(this.Aa).mouseup(function(d){d.stopPropagation()}),jQuery(this.Aa).keydown(function(d){d.stopPropagation()}),
jQuery(this.Aa).keyup(function(d){d.stopPropagation()}),this.Hp=this.Ip=this.Dp=this.Fp=this.Gp=this.Ep=0,this.fr(!0),this.b.hh(this))};p.Sa=function(){var d={tooltip:this.Aa.title,disabled:!!this.Ic.disabled};this.Hg?(d.checked=!!this.Ic.checked,d.text=this.ai.nodeValue):d.text=this.Aa.value;return d};p.lb=function(d){this.Aa.title=d.tooltip;this.Ic.disabled=d.disabled;this.Hg?(this.Ic.checked=d.checked,this.ai.nodeValue=d.text):this.Aa.value=d.text};p.sd=function(){this.b.wa||(jQuery(this.Aa).remove(),
this.Aa=null)};p.Na=function(){this.fr()};p.fr=function(d){if(!this.b.wa){var p=this.u.Ga(this.x,this.y,!0),g=this.u.Ga(this.x,this.y,!1),r=this.u.Ga(this.x+this.width,this.y+this.height,!0),l=this.u.Ga(this.x+this.width,this.y+this.height,!1),v=this.b.width/this.b.devicePixelRatio,a=this.b.height/this.b.devicePixelRatio;!this.visible||!this.u.visible||0>=r||0>=l||p>=v||g>=a?(this.zf||jQuery(this.Aa).hide(),this.zf=!0):(1>p&&(p=1),1>g&&(g=1),r>=v&&(r=v-1),l>=a&&(l=a-1),v=window.innerWidth,a=window.innerHeight,
d||this.Ep!==p||this.Gp!==g||this.Fp!==r||this.Dp!==l||this.Ip!==v||this.Hp!==a?(this.Ep=p,this.Gp=g,this.Fp=r,this.Dp=l,this.Ip=v,this.Hp=a,this.zf&&(jQuery(this.Aa).show(),this.zf=!1),d=Math.round(p)+jQuery(this.b.canvas).offset().left,v=Math.round(g)+jQuery(this.b.canvas).offset().top,jQuery(this.Aa).css("position","absolute"),jQuery(this.Aa).offset({left:d,top:v}),jQuery(this.Aa).width(Math.round(r-p)),jQuery(this.Aa).height(Math.round(l-g)),this.Du&&jQuery(this.Aa).css("font-size",this.u.wc(!0)/
this.b.devicePixelRatio-.2+"em")):this.zf&&(jQuery(this.Aa).show(),this.zf=!1))}};p.uc=function(){};p.$b=function(){};l.prototype.Qs=function(){return!0};d.k=new l;t.prototype.El=function(d){this.b.wa||(this.Hg?this.ai.nodeValue=d:this.Aa.value=d)};t.prototype.so=function(d){this.b.wa||(this.visible=0!==d)};t.prototype.ej=function(d){this.b.wa||(this.Ic.disabled=0===d)};d.q=new t;d.D=new function(){}})();function pc(l){this.b=l}
(function(){function l(){}function t(){}function d(){}var p=pc.prototype;p.P=function(d){this.ja=d;this.b=d.b};p.P.prototype.K=function(){};p.M=function(d){this.type=d;this.b=d.b};var m=p.M.prototype;m.K=function(){this.Zc={}};m.Sa=function(){return this.Zc};m.lb=function(d){this.Zc=d;for(var g in this.Zc);};l.prototype.Pr=function(d,g,m){return ic(this.Zc[d],g,m)};l.prototype.gs=function(d){return this.Zc.hasOwnProperty(d)};p.k=new l;t.prototype.qr=function(d,g){this.Zc[d]=g};t.prototype.Nt=function(d,
g){this.Zc.hasOwnProperty(d)&&(this.Zc[d]=g)};t.prototype.Er=function(){fb(this.Zc)};t.prototype.tl=function(d){var g;try{g=JSON.parse(d)}catch(m){return}if(g.c2dictionary){this.Zc=g.data;for(var p in this.Zc);}};p.q=new t;d.prototype.ph=function(d){d.Ta(JSON.stringify({c2dictionary:!0,data:this.Zc}))};p.D=new d})();function mc(l){this.b=l}
(function(){function l(){this.name="";this.Zg=0;this.ab=[]}function t(){u++;u===r.length&&r.push(new l);return r[u]}function d(){return 0>u?null:r[u]}function p(){}function m(){}function s(){}var g=mc.prototype;g.P=function(d){this.ja=d;this.b=d.b};g.P.prototype.K=function(){};g.M=function(d){this.type=d;this.b=d.b};var r=[],u=-1;g.M.prototype.K=function(){var d=this;window.c2_callFunction=function(a,c){var f,e,k,g=t();g.name=a.toLowerCase();g.Zg=0;if(c)for(g.ab.length=c.length,f=0,e=c.length;f<e;++f)k=
c[f],g.ab[f]="number"===typeof k||"string"===typeof k?k:"boolean"===typeof k?k?1:0:0;else g.ab.length=0;d.b.trigger(mc.prototype.k.bj,d,g.name);u--;return g.Zg}};p.prototype.bj=function(g){var a=d();return a?sb(g,a.name):!1};p.prototype.Nr=function(g,a,c){var f=d();if(!f)return!1;g=F(g);return 0>g||g>=f.ab.length?!1:ic(f.ab[g],a,c)};g.k=new p;m.prototype.CallFunction=function(d,a){var c=t();c.name=d.toLowerCase();c.Zg=0;Fa(c.ab,a);this.b.trigger(mc.prototype.k.bj,this,c.name);u--};m.prototype.Wt=
function(g){var a=d();a&&(a.Zg=g)};g.q=new m;s.prototype.ht=function(g,a){a=F(a);var c=d();c?0<=a&&a<c.ab.length?g.wn(c.ab[a]):g.na(0):g.na(0)};s.prototype.Vn=function(d,a){var c=t();c.name=a.toLowerCase();c.Zg=0;c.ab.length=0;var f,e;f=2;for(e=arguments.length;f<e;f++)c.ab.push(arguments[f]);this.b.trigger(mc.prototype.k.bj,this,c.name);u--;d.wn(c.Zg)};g.D=new s})();function qc(l){this.b=l}
(function(){function l(d,m,l,g,r,u,v,a,c,f){d.save();d.fillStyle=m;m=r%l;var e=u%g;0>m&&(m+=l);0>e&&(e+=g);d.translate(m+c,e+f);d.fillRect(r-m-c,u-e-f,v,a);d.restore()}var t=qc.prototype;t.P=function(d){this.ja=d;this.b=d.b};var d=t.P.prototype;d.K=function(){this.L||(this.H=new Image,this.H.zj=this.Li,this.b.Ui(this.H,this.fh),this.Wi=this.Zi=this.Yi=this.Xi=this.oh=this.J=this.Jo=this.Uq=this.zq=this.Mp=this.em=null)};d.ag=function(){this.L||(this.Wi=this.Zi=this.Yi=this.Xi=this.oh=this.J=null)};
d.Xg=function(){this.L||!this.j.length||this.J||(this.J=this.b.G.cd(this.H,!0,this.b.ba,this.nf))};d.ih=function(){this.L||this.j.length||!this.b.G||(this.b.G.deleteTexture(this.J),this.b.G.deleteTexture(this.oh),this.b.G.deleteTexture(this.Xi),this.b.G.deleteTexture(this.Yi),this.b.G.deleteTexture(this.Zi),this.b.G.deleteTexture(this.Wi),this.Wi=this.Zi=this.Yi=this.Xi=this.oh=this.J=null)};d.Kd=function(d,m,l,g){var r=document.createElement("canvas");l-=d;g-=m;r.width=l;r.height=g;r.getContext("2d").drawImage(this.H,
d,m,l,g,0,0,l,g);return r};d.Pu=function(d,m,l,g){var r=this.H.width,u=this.H.height,v=r-m,a=u-g;if(this.b.G){if(!this.oh){var c=this.b.G,f=this.b.ba,e=this.nf;v>d&&a>l&&(this.oh=c.cd(this.Kd(d,l,v,a),!0,f,e));0<d&&a>l&&(this.Xi=c.cd(this.Kd(0,l,d,a),!0,f,e,"repeat-y"));0<m&&a>l&&(this.Yi=c.cd(this.Kd(v,l,r,a),!0,f,e,"repeat-y"));0<l&&v>d&&(this.Zi=c.cd(this.Kd(d,0,v,l),!0,f,e,"repeat-x"));0<g&&v>d&&(this.Wi=c.cd(this.Kd(d,a,v,u),!0,f,e,"repeat-x"))}}else this.em||(c=this.b.ua,v>d&&a>l&&(this.em=
c.createPattern(this.Kd(d,l,v,a),"repeat")),0<d&&a>l&&(this.Mp=c.createPattern(this.Kd(0,l,d,a),"repeat")),0<m&&a>l&&(this.zq=c.createPattern(this.Kd(v,l,r,a),"repeat")),0<l&&v>d&&(this.Uq=c.createPattern(this.Kd(d,0,v,l),"repeat")),0<g&&v>d&&(this.Jo=c.createPattern(this.Kd(d,a,v,u),"repeat")))};t.M=function(d){this.type=d;this.b=d.b};d=t.M.prototype;d.K=function(){this.Km=this.B[0];this.nn=this.B[1];this.Jn=this.B[2];this.Nl=this.B[3];this.Ij=this.B[4];this.fill=this.B[5];this.visible=0===this.B[6];
this.ud=0!==this.B[8];this.Vb?this.fd.set(0,0,0,0):this.fd=new J(0,0,0,0);this.b.G&&!this.type.J&&(this.type.J=this.b.G.cd(this.type.H,!1,this.b.ba,this.type.nf));this.type.Pu(this.Km,this.nn,this.Jn,this.Nl)};d.uc=function(d){var m=this.type.H,s=this.Km,g=this.nn,r=this.Jn,u=this.Nl,v=m.width,a=m.height,c=v-g,f=a-u;d.globalAlpha=this.opacity;d.save();var e=this.x,k=this.y,w=this.width,z=this.height;this.b.fc&&(e=Math.round(e),k=Math.round(k));var q=-(this.Rb*this.width),n=-(this.Sb*this.height),
b=q%v,h=n%a;0>b&&(b+=v);0>h&&(h+=a);d.translate(e+b,k+h);v=q-b;n-=h;h=this.ud?1:0;0<s&&0<r&&d.drawImage(m,0,0,s+h,r+h,v,n,s+h,r+h);0<g&&0<r&&d.drawImage(m,c-h,0,g+h,r+h,v+w-g-h,n,g+h,r+h);0<g&&0<u&&d.drawImage(m,c-h,f-h,g+h,u+h,v+w-g-h,n+z-u-h,g+h,u+h);0<s&&0<u&&d.drawImage(m,0,f-h,s+h,u+h,v,n+z-u-h,s+h,u+h);0===this.Ij?(h=2===this.fill?0:h,0<s&&f>r&&l(d,this.type.Mp,s,f-r,v,n+r,s+h,z-r-u,0,0),0<g&&f>r&&l(d,this.type.zq,g,f-r,v+w-g-h,n+r,g+h,z-r-u,h,0),0<r&&c>s&&l(d,this.type.Uq,c-s,r,v+s,n,w-s-g,
r+h,0,0),0<u&&c>s&&l(d,this.type.Jo,c-s,u,v+s,n+z-u-h,w-s-g,u+h,0,h)):1===this.Ij&&(0<s&&f>r&&0<z-r-u&&d.drawImage(m,0,r,s,f-r,v,n+r,s,z-r-u),0<g&&f>r&&0<z-r-u&&d.drawImage(m,c,r,g,f-r,v+w-g,n+r,g,z-r-u),0<r&&c>s&&0<w-s-g&&d.drawImage(m,s,0,c-s,r,v+s,n,w-s-g,r),0<u&&c>s&&0<w-s-g&&d.drawImage(m,s,f,c-s,u,v+s,n+z-u,w-s-g,u));f>r&&c>s&&(0===this.fill?l(d,this.type.em,c-s,f-r,v+s,n+r,w-s-g,z-r-u,0,0):1===this.fill&&0<w-s-g&&0<z-r-u&&d.drawImage(m,s,r,c-s,f-r,v+s,n+r,w-s-g,z-r-u));d.restore()};d.Xd=function(d,
m,l,g,r,u,v,a,c,f){d.Wb(m);var e=this.fd;e.left=l/m.sf;e.top=g/m.rf;e.right=(l+r)/m.sf;e.bottom=(g+u)/m.rf;d.Pc(v,a,v+c,a,v+c,a+f,v,a+f,e)};d.Mi=function(d,m,l,g,r,u,v,a){d.Wb(m);var c=this.fd;c.left=-v/m.sf;c.top=-a/m.rf;c.right=(r-v)/m.sf;c.bottom=(u-a)/m.rf;d.Pc(l,g,l+r,g,l+r,g+u,l,g+u,c)};d.$b=function(d){var m=this.Km,l=this.nn,g=this.Jn,r=this.Nl,u=this.type.H.width-l,v=this.type.H.height-r;d.te(this.opacity);var a=this.Fb,c=a.Da,a=a.Ea,f=this.width,e=this.height;this.b.fc&&(c=Math.round(c),
a=Math.round(a));var k=this.ud?1:0;0<m&&0<g&&this.Xd(d,this.type.J,0,0,m+k,g+k,c,a,m+k,g+k);0<l&&0<g&&this.Xd(d,this.type.J,u-k,0,l+k,g+k,c+f-l-k,a,l+k,g+k);0<l&&0<r&&this.Xd(d,this.type.J,u-k,v-k,l+k,r+k,c+f-l-k,a+e-r-k,l+k,r+k);0<m&&0<r&&this.Xd(d,this.type.J,0,v-k,m+k,r+k,c,a+e-r-k,m+k,r+k);0===this.Ij?(k=2===this.fill?0:k,0<m&&v>g&&this.Mi(d,this.type.Xi,c,a+g,m+k,e-g-r,0,0),0<l&&v>g&&this.Mi(d,this.type.Yi,c+f-l-k,a+g,l+k,e-g-r,k,0),0<g&&u>m&&this.Mi(d,this.type.Zi,c+m,a,f-m-l,g+k,0,0),0<r&&
u>m&&this.Mi(d,this.type.Wi,c+m,a+e-r-k,f-m-l,r+k,0,k)):1===this.Ij&&(0<m&&v>g&&this.Xd(d,this.type.J,0,g,m,v-g,c,a+g,m,e-g-r),0<l&&v>g&&this.Xd(d,this.type.J,u,g,l,v-g,c+f-l,a+g,l,e-g-r),0<g&&u>m&&this.Xd(d,this.type.J,m,0,u-m,g,c+m,a,f-m-l,g),0<r&&u>m&&this.Xd(d,this.type.J,m,v,u-m,r,c+m,a+e-r,f-m-l,r));v>g&&u>m&&(0===this.fill?this.Mi(d,this.type.oh,c+m,a+g,f-m-l,e-g-r,0,0):1===this.fill&&this.Xd(d,this.type.J,m,g,u-m,v-g,c+m,a+g,f-m-l,e-g-r))};t.k=new function(){};t.q=new function(){};t.D=new function(){}})();
function V(l){this.b=l}
(function(){function l(){if(0===this.Xl.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var c=a.getContext("2d");this.dh?c.drawImage(this.H,this.Vg,this.Wg,this.width,this.height,0,0,this.width,this.height):c.drawImage(this.H,0,0,this.width,this.height);this.Xl=a.toDataURL("image/png")}return this.Xl}function t(){}function d(){}function p(){}var m=V.prototype;m.P=function(a){this.ja=a;this.b=a.b};var s=m.P.prototype;s.K=function(){if(!this.L){var a,c,d,f,g,n,
b,h,m;this.kd=[];this.Lh=!1;a=0;for(c=this.rc.length;a<c;a++){g=this.rc[a];b={};b.name=g[0];b.speed=g[1];b.loop=g[2];b.mn=g[3];b.Ok=g[4];b.nq=g[5];b.ka=g[6];b.frames=[];d=0;for(f=g[7].length;d<f;d++)n=g[7][d],h={},h.fh=n[0],h.Li=n[1],h.Vg=n[2],h.Wg=n[3],h.width=n[4],h.height=n[5],h.duration=n[6],h.Rb=n[7],h.Sb=n[8],h.xm=n[9],h.Hk=n[10],h.oq=n[11],h.dh=0!==h.width,h.Xl="",h.Gy=l,m={left:0,top:0,right:1,bottom:1},h.xn=m,h.J=null,(m=this.b.Fv(n[0]))?h.H=m:(h.H=new Image,h.H.Mu=n[0],h.H.zj=n[1],h.H.Iu=
null,this.b.Ui(h.H,n[0])),b.frames.push(h),this.kd.push(h);this.rc[a]=b}}};s.dr=function(){var a,c,d;a=0;for(c=this.j.length;a<c;a++)d=this.j[a],d.Cj=d.Vc.J};s.ag=function(){if(!this.L){var a,c,d;a=0;for(c=this.kd.length;a<c;++a)d=this.kd[a],d.H.Iu=null,d.J=null;this.Lh=!1;this.dr()}};s.Xg=function(){if(!this.L&&this.j.length){var a,c,d;a=0;for(c=this.kd.length;a<c;++a)d=this.kd[a],d.J=this.b.G.cd(d.H,!1,this.b.ba,d.oq);this.dr()}};s.rk=function(){if(!this.L&&!this.Lh&&this.b.G){var a,c,d;a=0;for(c=
this.kd.length;a<c;++a)d=this.kd[a],d.J=this.b.G.cd(d.H,!1,this.b.ba,d.oq);this.Lh=!0}};s.ih=function(){if(!this.L&&!this.j.length&&this.Lh){var a,c,d;a=0;for(c=this.kd.length;a<c;++a)d=this.kd[a],this.b.G.deleteTexture(d.J),d.J=null;this.Lh=!1}};var g=[];s.si=function(a){var c,d,f;c=g.length=0;for(d=this.kd.length;c<d;++c)f=this.kd[c].H,-1===g.indexOf(f)&&(a.drawImage(f,0,0),g.push(f))};m.M=function(a){this.type=a;this.b=a.b;a=this.type.rc[0].frames[0].Hk;this.Vb?this.xa.Gi(a):this.xa=new mb(a)};
var r=m.M.prototype;r.K=function(){this.visible=0===this.B[0];this.ak=this.Vh=!1;this.Tc=0!==this.B[3];1===this.type.rc.length&&1===this.type.rc[0].frames.length||0===this.type.rc[0].speed||(this.b.hh(this),this.Vh=!0);this.Ma=this.Zo(this.B[1])||this.type.rc[0];this.N=this.B[2];0>this.N&&(this.N=0);this.N>=this.Ma.frames.length&&(this.N=this.Ma.frames.length-1);var a=this.Ma.frames[this.N];this.xa.Gi(a.Hk);this.Rb=a.Rb;this.Sb=a.Sb;this.zh=this.Ma.speed;this.Vb?this.Bd.reset():this.Bd=new kb;this.$d=
this.Bd.O;this.Me=!0;this.Sd=0;this.of=!0;this.tg=this.Fo="";this.No=0;this.tj=-1;this.type.rk();var c,d,f,g,n,b,h,a=0;for(c=this.type.rc.length;a<c;a++)for(g=this.type.rc[a],d=0,f=g.frames.length;d<f;d++)n=g.frames[d],0===n.width&&(n.width=n.H.width,n.height=n.H.height),n.dh&&(h=n.H,b=n.xn,b.left=n.Vg/h.width,b.top=n.Wg/h.height,b.right=(n.Vg+n.width)/h.width,b.bottom=(n.Wg+n.height)/h.height,0===n.Vg&&0===n.Wg&&n.width===h.width&&n.height===h.height&&(n.dh=!1));this.Vc=this.Ma.frames[this.N];this.Cj=
this.Vc.J};r.Sa=function(){var a={a:this.Ma.ka,f:this.N,cas:this.zh,fs:this.$d,ar:this.Sd,at:this.Bd.O};this.Me||(a.ap=this.Me);this.of||(a.af=this.of);return a};r.lb=function(a){var c=this.Lv(a.a);c&&(this.Ma=c);this.N=a.f;0>this.N&&(this.N=0);this.N>=this.Ma.frames.length&&(this.N=this.Ma.frames.length-1);this.zh=a.cas;this.$d=a.fs;this.Sd=a.ar;this.Bd.reset();this.Bd.O=a.at;this.Me=a.hasOwnProperty("ap")?a.ap:!0;this.of=a.hasOwnProperty("af")?a.af:!0;this.Vc=this.Ma.frames[this.N];this.Cj=this.Vc.J;
this.xa.Gi(this.Vc.Hk);this.Rb=this.Vc.Rb;this.Sb=this.Vc.Sb};r.Kl=function(a){this.N=a?0:this.Ma.frames.length-1;this.Me=!1;this.Fo=this.Ma.name;this.ak=!0;this.b.trigger(V.prototype.k.Ns,this);this.b.trigger(V.prototype.k.Ms,this);this.ak=!1;this.Sd=0};r.Iy=function(){return this.Bd.O};r.Na=function(){this.Bd.add(this.b.Ff(this));this.tg.length&&this.Po();0<=this.tj&&this.Qo();var a=this.Bd.O,c=this.Ma,d=c.frames[this.N],f=d.duration/this.zh;this.Me&&a>=this.$d+f&&(this.of?this.N++:this.N--,this.$d+=
f,this.N>=c.frames.length&&(c.nq?(this.of=!1,this.N=c.frames.length-2):c.loop?this.N=c.Ok:(this.Sd++,this.Sd>=c.mn?this.Kl(!1):this.N=c.Ok)),0>this.N&&(c.nq?(this.N=1,this.of=!0,c.loop||(this.Sd++,this.Sd>=c.mn&&this.Kl(!0))):c.loop?this.N=c.Ok:(this.Sd++,this.Sd>=c.mn?this.Kl(!0):this.N=c.Ok)),0>this.N?this.N=0:this.N>=c.frames.length&&(this.N=c.frames.length-1),a>this.$d+c.frames[this.N].duration/this.zh&&(this.$d=a),a=c.frames[this.N],this.qg(d,a),this.b.V=!0)};r.Zo=function(a){var c,d,f;c=0;for(d=
this.type.rc.length;c<d;c++)if(f=this.type.rc[c],sb(f.name,a))return f;return null};r.Lv=function(a){var c,d,f;c=0;for(d=this.type.rc.length;c<d;c++)if(f=this.type.rc[c],f.ka===a)return f;return null};r.Po=function(){var a=this.Ma.frames[this.N],c=this.Zo(this.tg);this.tg="";!c||sb(c.name,this.Ma.name)&&this.Me||(this.Ma=c,this.zh=c.speed,0>this.N&&(this.N=0),this.N>=this.Ma.frames.length&&(this.N=this.Ma.frames.length-1),1===this.No&&(this.N=0),this.Me=!0,this.$d=this.Bd.O,this.of=!0,this.qg(a,this.Ma.frames[this.N]),
this.b.V=!0)};r.Qo=function(){var a=this.Ma.frames[this.N],c=this.N;this.N=F(this.tj);0>this.N&&(this.N=0);this.N>=this.Ma.frames.length&&(this.N=this.Ma.frames.length-1);c!==this.N&&(this.qg(a,this.Ma.frames[this.N]),this.$d=this.Bd.O,this.b.V=!0);this.tj=-1};r.qg=function(a,c){var d=a.width,f=a.height,g=c.width,n=c.height;d!=g&&(this.width*=g/d);f!=n&&(this.height*=n/f);this.Rb=c.Rb;this.Sb=c.Sb;this.xa.Gi(c.Hk);this.da();this.Vc=c;this.Cj=c.J;d=0;for(f=this.Z.length;d<f;d++)g=this.Z[d],g.bq&&g.bq(a,
c);this.b.trigger(V.prototype.k.qg,this)};r.uc=function(a){a.globalAlpha=this.opacity;var c=this.Vc,d=c.dh,f=c.H,g=this.x,n=this.y,b=this.width,h=this.height;if(0===this.A&&0<=b&&0<=h)g-=this.Rb*b,n-=this.Sb*h,this.b.fc&&(g=Math.round(g),n=Math.round(n)),d?a.drawImage(f,c.Vg,c.Wg,c.width,c.height,g,n,b,h):a.drawImage(f,g,n,b,h);else{this.b.fc&&(g=Math.round(g),n=Math.round(n));a.save();var m=0<b?1:-1,l=0<h?1:-1;a.translate(g,n);1===m&&1===l||a.scale(m,l);a.rotate(this.A*m*l);g=0-this.Rb*qa(b);n=0-
this.Sb*qa(h);d?a.drawImage(f,c.Vg,c.Wg,c.width,c.height,g,n,qa(b),qa(h)):a.drawImage(f,g,n,qa(b),qa(h));a.restore()}};r.$b=function(a){a.Wb(this.Cj);a.te(this.opacity);var c=this.Vc,d=this.Fb;if(this.b.fc){var f=Math.round(this.x)-this.x,g=Math.round(this.y)-this.y;c.dh?a.Pc(d.Da+f,d.Ea+g,d.cb+f,d.eb+g,d.Xa+f,d.Ya+g,d.Va+f,d.Wa+g,c.xn):a.gn(d.Da+f,d.Ea+g,d.cb+f,d.eb+g,d.Xa+f,d.Ya+g,d.Va+f,d.Wa+g)}else c.dh?a.Pc(d.Da,d.Ea,d.cb,d.eb,d.Xa,d.Ya,d.Va,d.Wa,c.xn):a.gn(d.Da,d.Ea,d.cb,d.eb,d.Xa,d.Ya,d.Va,
d.Wa)};r.Rv=function(a){var c=this.Vc,d,f;d=0;for(f=c.xm.length;d<f;d++)if(sb(a,c.xm[d][0]))return d;return-1};r.Hf=function(a,c){var d=this.Vc,f=d.xm,g;g=na(a)?this.Rv(a):a-1;g=F(g);if(0>g||g>=f.length)return c?this.x:this.y;var n=(f[g][1]-d.Rb)*this.width,f=f[g][2],f=(f-d.Sb)*this.height,d=Math.cos(this.A);g=Math.sin(this.A);var b=n*d-f*g,f=f*d+n*g,n=b+this.x,f=f+this.y;return c?n:f};var u=null,v=new da,a=!1,c=[],f=new J(0,0,0,0);s.finish=function(c){if(a){if(c){var d=this.b.jb().hb.Nc;c=u.R();
var f=v.De(),g,m;if(c.S){c.S=!1;c.j.length=f.length;g=0;for(m=f.length;g<m;g++)c.j[g]=f[g];if(d)for(g=c.Y.length=0,m=u.j.length;g<m;g++)f=u.j[g],v.contains(f)||c.Y.push(f)}else if(d)for(d=c.j.length,c.j.length=d+f.length,g=0,m=f.length;g<m;g++)c.j[d+g]=f[g],Ia(c.Y,f[g]);else Fa(c.j,f);u.ld()}v.clear();a=!1}};t.prototype.xs=function(e){if(e){var d=!1,g,m,l,n=this.b.Ef(),b=n.type,n=n.Fg;g=e.R();m=this.b.jb().hb.Nc;var h;g.S?(this.Fa(),f.xh(this.Ua),f.offset(0,0),this.b.$o(this.u,e,f,c),h=c):h=m?g.Y:
g.j;u=e;a=b!==e&&!n;g=0;for(m=h.length;g<m;g++)if(l=h[g],this.b.hg(this,l)){d=!0;if(n)break;b!==e&&v.add(l)}c.length=0;e=d}else e=!1;return e};t.prototype.ls=function(a){return this.tg.length?sb(this.tg,a):sb(this.Ma.name,a)};t.prototype.Ms=function(a){return sb(this.Fo,a)};t.prototype.Ns=function(){return!0};t.prototype.qg=function(){return!0};m.k=new t;d.prototype.cu=function(a,c,d){if(a&&c&&(c=this.b.Vl(a,c,this.Hf(d,!0),this.Hf(d,!1)))){"undefined"!==typeof c.A&&(c.A=this.A,c.da());this.b.Kc++;
var f,g,n;this.b.trigger(Object.getPrototypeOf(a.ja).k.Je,c);if(c.Tb)for(f=0,g=c.siblings.length;f<g;f++)n=c.siblings[f],this.b.trigger(Object.getPrototypeOf(n.type.ja).k.Je,n);this.b.Kc--;f=this.b.Ov();d=!1;if(ka(f.aa.Spawn_LastExec)||f.aa.Spawn_LastExec<this.b.Cf)d=!0,f.aa.Spawn_LastExec=this.b.Cf;if(a!=this.type&&(a=a.R(),a.S=!1,d?(a.j.length=1,a.j[0]=c):a.j.push(c),c.Tb))for(f=0,g=c.siblings.length;f<g;f++)n=c.siblings[f],a=n.type.R(),a.S=!1,d?(a.j.length=1,a.j[0]=n):a.j.push(n)}};d.prototype.iu=
function(){this.Me=!1};d.prototype.Ft=function(a,c){this.tg=a;this.No=c;this.Vh||(this.b.hh(this),this.Vh=!0);this.ak||this.Po()};d.prototype.Gt=function(a){this.tj=a;this.Vh||(this.b.hh(this),this.Vh=!0);this.ak||this.Qo()};d.prototype.It=function(a){this.Tc!==(0!==a)&&((this.Tc=0!==a)?this.da():(this.Sc.right>=this.Sc.left&&this.type.vh.update(this,this.Sc,null),this.Sc.set(0,0,-1,-1)))};m.q=new d;p.prototype.yr=function(a){a.Ta(this.Ma.name)};p.prototype.hs=function(a,c){a.F(this.Hf(c,!0))};p.prototype.js=
function(a,c){a.F(this.Hf(c,!1))};m.D=new p})();function rc(l){this.b=l}
(function(){function l(a,c){return a.length?a.pop():new c}function t(a,c,d){if(d){var f;d=0;for(f=c.length;d<f;d++)a.length<r&&a.push(c[d]);c.length=0}else for(f in c)Object.prototype.hasOwnProperty.call(c,f)&&(a.length<r&&a.push(c[f]),delete c[f])}function d(a,c,d){var f=a.cc;d=d.replace(/\s\s*$/,"");c>=f.length&&f.push(l(u,Object));c=f[c];c.text=d;c.width=a.Rm(d);a.xe=ra(a.xe,c.width)}function p(){}function m(){}var s=rc.prototype;s.K=function(){};s.P=function(a){this.ja=a;this.b=a.b};var g=s.P.prototype;
g.K=function(){this.L||(this.H=new Image,this.b.Ui(this.H,this.fh),this.J=null)};g.ag=function(){this.L||(this.J=null)};g.Xg=function(){if(!this.L&&this.j.length){this.J||(this.J=this.b.G.cd(this.H,!1,this.b.ba,this.nf));var a,c;a=0;for(c=this.j.length;a<c;a++)this.j[a].J=this.J}};g.ih=function(){this.L||this.j.length||!this.J||(this.b.G.deleteTexture(this.J),this.J=null)};g.si=function(a){a.drawImage(this.H,0,0)};s.M=function(a){this.type=a;this.b=a.b};g=s.M.prototype;g.sd=function(){t(u,this.cc,
!0);t(v,this.vj,!1);t(a,this.wj,!1);fb(this.Se)};g.K=function(){this.H=this.type.H;this.uj=this.B[0];this.Qe=this.B[1];this.characterSet=this.B[2];this.text=this.B[3];this.Re=this.B[4];this.visible=0===this.B[5];this.Kf=this.B[6]/2;this.lg=this.B[7]/2;this.$i=0===this.B[9];this.ug=this.B[10];this.lineHeight=this.B[11];this.Nd=this.xe=0;this.Vb?(this.cc.length=0,fb(this.vj),fb(this.wj),fb(this.Se)):(this.cc=[],this.vj={},this.wj={},this.Se={});this.Qc=!0;this.Vf=this.width;this.b.G&&(this.type.J||
(this.type.J=this.b.G.cd(this.type.H,!1,this.b.ba,this.type.nf)),this.J=this.type.J);this.du()};g.Sa=function(){var a={t:this.text,csc:this.Re,csp:this.ug,lh:this.lineHeight,tw:this.xe,th:this.Nd,lrt:this.Uf,cw:{}},c;for(c in this.Se)a.cw[c]=this.Se[c];return a};g.lb=function(a){this.text=a.t;this.Re=a.csc;this.ug=a.csp;this.lineHeight=a.lh;this.xe=a.tw;this.Nd=a.th;this.Uf=a.lrt;for(var c in a.cw)this.Se[c]=a.cw[c];this.Qc=!0;this.Vf=this.width};var r=1E3,u=[],v=[],a=[];g.du=function(){for(var c=
this.H,d=c.width,f=c.height,c=this.uj,g=this.Qe,m=c/d,n=g/f,b=this.characterSet,d=Math.floor(d/c),f=Math.floor(f/g),h=0;h<b.length&&!(h>=d*f);h++){var p=h%d,r=Math.floor(h/d),u=b.charAt(h);if(this.b.G){var s=this.wj,t=p*m,sa=r*n,p=(p+1)*m,r=(r+1)*n;void 0===s[u]&&(s[u]=l(a,J));s[u].left=t;s[u].top=sa;s[u].right=p;s[u].bottom=r}else s=this.vj,p*=c,r*=g,t=c,sa=g,void 0===s[u]&&(s[u]=l(v,Object)),s[u].x=p,s[u].y=r,s[u].pl=t,s[u].Yj=sa}};var c=[];s.Fl=function(a){c.length=0;for(var d="",f,g=0;g<a.length;)if(f=
a.charAt(g),"\n"===f)d.length&&(c.push(d),d=""),c.push("\n"),++g;else if(" "===f||"\t"===f||"-"===f){do d+=a.charAt(g),g++;while(g<a.length&&(" "===a.charAt(g)||"\t"===a.charAt(g)));c.push(d);d=""}else g<a.length&&(d+=f,g++);d.length&&c.push(d)};s.Gl=function(a){var c=a.text,d=a.cc;if(c&&c.length){var f=a.width;if(2>=f)t(u,d,!0);else{var g=a.Re,n=a.ug;if(c.length*(a.uj*g+n)-n<=f&&-1===c.indexOf("\n")&&(n=a.Rm(c),n<=f)){t(u,d,!0);d.push(l(u,Object));d[0].text=c;d[0].width=n;a.xe=n;a.Nd=a.Qe*g+a.lineHeight;
return}this.Hl(a);a.Nd=d.length*(a.Qe*g+a.lineHeight)}}else t(u,d,!0)};s.Hl=function(a){var f=a.$i,g=a.text,m=a.cc,l=a.width;f&&(this.Fl(g),g=c);var n="",b,h,p,s=0,v=!1;for(p=0;p<g.length;p++)"\n"===g[p]?(!0===v?v=!1:(d(a,s,n),s++),n=""):(v=!1,b=n,n+=g[p],h=a.Rm(n.replace(/\s\s*$/,"")),h>l&&(""===b?(d(a,s,n),n="",v=!0):(d(a,s,b),n=g[p]),s++,f||" "!==n||(n="")));n.replace(/\s\s*$/,"").length&&(d(a,s,n),s++);for(p=s;p<m.length;p++)u.length<r&&u.push(m[p]);m.length=s};g.Rm=function(a){for(var c=this.ug,
d=a.length,f=0,g=0;g<d;g++)f+=this.mm(a.charAt(g))*this.Re+c;return f-(0<f?c:0)};g.mm=function(a){var c=this.Se;return void 0!==c[a]?c[a]:this.uj};g.vq=function(){if(this.Qc||this.width!==this.Vf)this.Nd=this.xe=0,this.type.ja.Gl(this),this.Qc=!1,this.Vf=this.width};g.uc=function(a){var c=this.H;if(""!==this.text&&null!=c&&(this.vq(),!(this.height<this.Qe*this.Re+this.lineHeight))){a.globalAlpha=this.opacity;var c=this.x,d=this.y;this.b.fc&&(c=Math.round(c),d=Math.round(d));var f=this.u.Ia,g=this.u.Ja,
n=this.u.La,b=this.u.Ka;a.save();a.translate(c,d);a.rotate(this.A);for(var h=this.Kf,m=this.Re,l=this.Qe*m,p=this.lineHeight,r=this.ug,s=this.cc,u,v=-(this.Rb*this.width),t=-(this.Sb*this.height),t=t+this.lg*ra(0,this.height-this.Nd),A,E,fa,ia=0;ia<s.length;ia++){var N=s[ia].text;u=h*ra(0,this.width-s[ia].width);A=v+u;t+=p;if(d+t+l<g)t+=l;else{for(var B=0;B<N.length;B++){E=N.charAt(B);u=this.mm(E);var y=this.vj[E];if(c+A+u*m+r<f)A+=u*m+r;else{if(A+u*m>this.width+1E-5)break;void 0!==y&&(E=A,fa=t,0===
this.A&&(E=Math.round(E),fa=Math.round(fa)),a.drawImage(this.H,y.x,y.y,y.pl,y.Yj,E,fa,y.pl*m,y.Yj*m));A+=u*m+r;if(c+A>n)break}}t+=l;if(t+l+p>this.height||d+t>b)break}}a.restore()}};var f=new ya;g.$b=function(a){a.Wb(this.J);a.te(this.opacity);if(this.text&&(this.vq(),!(this.height<this.Qe*this.Re+this.lineHeight))){this.Fa();var c=this.Fb,d=0,g=0;this.b.fc&&(d=Math.round(this.x)-this.x,g=Math.round(this.y)-this.y);var m=this.u.Ia,n=this.u.Ja,b=this.u.La,h=this.u.Ka,l=this.A,p=this.Kf,r=this.lg,s=
this.Re,u=this.Qe*s,v=this.lineHeight,t=this.ug,Sa=this.cc,A=this.Nd,E,fa,ia;0!==l&&(fa=Math.cos(l),ia=Math.sin(l));for(var d=c.Da+d,c=c.Ea+g,N,r=r*ra(0,this.height-A),B,y,A=0;A<Sa.length;A++)if(g=Sa[A].text,N=E=p*ra(0,this.width-Sa[A].width),r+=v,0===l&&c+r+u<n)r+=u;else{for(var Q=0;Q<g.length;Q++){var C=g.charAt(Q);E=this.mm(C);C=this.wj[C];if(d+N+E*s+t<m)N+=E*s+t;else{if(N+E*s>this.width+1E-5)break;if(void 0!==C){var I=this.uj*s,G=this.Qe*s;B=N;y=r;0===l&&(B=Math.round(B),y=Math.round(y));f.Da=
B;f.Ea=y;f.cb=B+I;f.eb=y;f.Va=B;f.Wa=y+G;f.Xa=B+I;f.Ya=y+G;0!==l&&(B=f,y=fa,I=ia,G=void 0,G=B.Da*y-B.Ea*I,B.Ea=B.Ea*y+B.Da*I,B.Da=G,G=B.cb*y-B.eb*I,B.eb=B.eb*y+B.cb*I,B.cb=G,G=B.Va*y-B.Wa*I,B.Wa=B.Wa*y+B.Va*I,B.Va=G,G=B.Xa*y-B.Ya*I,B.Ya=B.Ya*y+B.Xa*I,B.Xa=G);f.offset(d,c);a.Pc(f.Da,f.Ea,f.cb,f.eb,f.Xa,f.Ya,f.Va,f.Wa,C)}N+=E*s+t;if(0===l&&d+N>b)break}}r+=u;if(r+u+v>this.height||c+r>h)break}}};s.k=new function(){};p.prototype.El=function(a){la(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==
a&&(this.text=a,this.Qc=!0,this.b.V=!0)};g.ry=function(a,c){var d=parseInt(c,10);this.Se[a]!==d&&(this.Se[a]=d,this.Qc=!0,this.b.V=!0)};s.q=new p;m.prototype.Text=function(a){a.Ta(this.text)};s.D=new m})();function sc(l){this.b=l}
(function(){function l(){return r.length?r.pop():{}}function t(d){var g,a;g=0;for(a=d.length;g<a;g++)r.push(d[g]);d.length=0}function d(){}function p(){}var m=sc.prototype;m.K=function(){m.q.to=function(d){this.width!==d&&(this.width=d,this.Qc=!0,this.da())}};m.P=function(d){this.ja=d;this.b=d.b};var s=m.P.prototype;s.K=function(){};s.ag=function(){if(!this.L){var d,g,a;d=0;for(g=this.j.length;d<g;d++)a=this.j[d],a.Gd=null,a.Zf=null,a.Ac=null}};m.M=function(d){this.type=d;this.b=d.b;this.Vb?this.cc.length=
0:this.cc=[];this.Qc=!0};s=m.M.prototype;s.K=function(){this.text=this.B[0];this.visible=0===this.B[1];this.font=this.B[2];this.color=this.B[3];this.Kf=this.B[4];this.lg=this.B[5];this.$i=0===this.B[7];this.Vf=this.ie=this.width;this.he=this.height;this.Lm=this.B[8];this.Pj=this.yg="";this.Nd=this.xe=this.ti=0;this.Xw();this.Ac=this.Zf=this.Gd=null;this.Sp=!1;this.Uf=this.b.Od;this.Vb?this.fd.set(0,0,1,1):this.fd=new J(0,0,1,1);this.b.G&&this.b.hh(this)};s.Xw=function(){var d=this.font.split(" "),
g;for(g=0;g<d.length;g++)if("pt"===d[g].substr(d[g].length-2,2)){this.ti=parseInt(d[g].substr(0,d[g].length-2));this.en=Math.ceil(this.ti/72*96)+4;0<g&&(this.Pj=d[g-1]);this.yg=d[g+1];for(g+=2;g<d.length;g++)this.yg+=" "+d[g];break}};s.Sa=function(){return{t:this.text,f:this.font,c:this.color,ha:this.Kf,va:this.lg,wr:this.$i,lho:this.Lm,fn:this.yg,fs:this.Pj,ps:this.ti,pxh:this.en,tw:this.xe,th:this.Nd,lrt:this.Uf}};s.lb=function(d){this.text=d.t;this.font=d.f;this.color=d.c;this.Kf=d.ha;this.lg=
d.va;this.$i=d.wr;this.Lm=d.lho;this.yg=d.fn;this.Pj=d.fs;this.ti=d.ps;this.en=d.pxh;this.xe=d.tw;this.Nd=d.th;this.Uf=d.lrt;this.Qc=!0;this.Vf=this.ie=this.width;this.he=this.height};s.Na=function(){if(this.b.G&&this.Ac&&300<=this.b.Od-this.Uf){var d=this.u;this.Fa();var g=this.Ua;if(g.right<d.Ia||g.bottom<d.Ja||g.left>d.La||g.top>d.Ka)this.b.G.deleteTexture(this.Ac),this.Gd=this.Zf=this.Ac=null}};s.sd=function(){this.Gd=this.Zf=null;this.b.G&&this.Ac&&this.b.G.deleteTexture(this.Ac);this.Ac=null};
s.Wy=function(){this.font=this.Pj+" "+this.ti.toString()+"pt "+this.yg;this.Qc=!0;this.b.V=!0};s.uc=function(d,g){d.font=this.font;d.textBaseline="top";d.fillStyle=this.color;d.globalAlpha=g?1:this.opacity;var a=1;g&&(a=this.u.wc(),d.save(),d.scale(a,a));if(this.Qc||this.width!==this.Vf)this.type.ja.Gl(this.text,this.cc,d,this.width,this.$i),this.Qc=!1,this.Vf=this.width;this.Fa();var a=g?0:this.Fb.Da,c=g?0:this.Fb.Ea;this.b.fc&&(a=a+.5|0,c=c+.5|0);0===this.A||g||(d.save(),d.translate(a,c),d.rotate(this.A),
c=a=0);var f=c+this.height,e=this.en,e=e+this.Lm,k,m;1===this.lg?c+=Math.max(this.height/2-this.cc.length*e/2,0):2===this.lg&&(c+=Math.max(this.height-this.cc.length*e-2,0));for(m=0;m<this.cc.length&&!(k=a,1===this.Kf?k=a+(this.width-this.cc[m].width)/2:2===this.Kf&&(k=a+(this.width-this.cc[m].width)),d.fillText(this.cc[m].text,k,c),c+=e,c>=f-e);m++);(0!==this.A||g)&&d.restore();this.Uf=this.b.Od};s.$b=function(d){if(!(1>this.width||1>this.height)){var g=this.Qc||this.Sp;this.Sp=!1;var a=this.u.wc(),
c=this.u.Pa(),f=this.fd,e=a*this.width,k=a*this.height,m=Math.ceil(e),l=Math.ceil(k),p=this.b.fa/2,n=this.b.ea/2;this.Zf||(this.Gd=document.createElement("canvas"),this.Gd.width=m,this.Gd.height=l,this.ie=m,this.he=l,g=!0,this.Zf=this.Gd.getContext("2d"));if(m!==this.ie||l!==this.he)this.Gd.width=m,this.Gd.height=l,this.Ac&&(d.deleteTexture(this.Ac),this.Ac=null),g=!0;g&&(this.Zf.clearRect(0,0,m,l),this.uc(this.Zf,!0),this.Ac||(this.Ac=d.Td(m,l,this.b.ba,this.b.ee)),d.Tx(this.Gd,this.Ac,this.b.ee));
this.ie=m;this.he=l;d.Wb(this.Ac);d.te(this.opacity);d.pe();d.translate(-p,-n);d.Ce();var b=this.Fb,g=this.u.Ga(b.Da,b.Ea,!0,!0),p=this.u.Ga(b.Da,b.Ea,!1,!0),n=this.u.Ga(b.cb,b.eb,!0,!0),h=this.u.Ga(b.cb,b.eb,!1,!0),r=this.u.Ga(b.Xa,b.Ya,!0,!0),s=this.u.Ga(b.Xa,b.Ya,!1,!0),t=this.u.Ga(b.Va,b.Wa,!0,!0),b=this.u.Ga(b.Va,b.Wa,!1,!0);if(this.b.fc||0===this.A&&0===c)var D=(g+.5|0)-g,W=(p+.5|0)-p,g=g+D,p=p+W,n=n+D,h=h+W,r=r+D,s=s+W,t=t+D,b=b+W;0===this.A&&0===c?(n=g+m,h=p,r=n,s=p+l,t=g,b=s,f.right=1,f.bottom=
1):(f.right=e/m,f.bottom=k/l);d.Pc(g,p,n,h,r,s,t,b,f);d.pe();d.scale(a,a);d.Aq(-this.u.Pa());d.translate((this.u.Ia+this.u.La)/-2,(this.u.Ja+this.u.Ka)/-2);d.Ce();this.Uf=this.b.Od}};var g=[];m.Fl=function(d){g.length=0;for(var m="",a,c=0;c<d.length;)if(a=d.charAt(c),"\n"===a)m.length&&(g.push(m),m=""),g.push("\n"),++c;else if(" "===a||"\t"===a||"-"===a){do m+=d.charAt(c),c++;while(c<d.length&&(" "===d.charAt(c)||"\t"===d.charAt(c)));g.push(m);m=""}else c<d.length&&(m+=a,c++);m.length&&g.push(m)};
var r=[];m.Gl=function(d,g,a,c,f){if(d&&d.length)if(2>=c)t(g);else{if(100>=d.length&&-1===d.indexOf("\n")){var e=a.measureText(d).width;if(e<=c){t(g);g.push(l());g[0].text=d;g[0].width=e;return}}this.Hl(d,g,a,c,f)}else t(g)};m.Hl=function(d,m,a,c,f){f&&(this.Fl(d),d=g);var e="",k,p,s,q=0;for(s=0;s<d.length;s++)"\n"===d[s]?(q>=m.length&&m.push(l()),p=m[q],p.text=e,p.width=a.measureText(e).width,q++,e=""):(k=e,e+=d[s],p=a.measureText(e).width,p>=c&&(q>=m.length&&m.push(l()),p=m[q],p.text=k,p.width=
a.measureText(k).width,q++,e=d[s],f||" "!==e||(e="")));e.length&&(q>=m.length&&m.push(l()),p=m[q],p.text=e,p.width=a.measureText(e).width,q++);for(s=q;s<m.length;s++)r.push(m[s]);m.length=q};m.k=new function(){};d.prototype.El=function(d){la(d)&&1E9>d&&(d=Math.round(1E10*d)/1E10);d=d.toString();this.text!==d&&(this.text=d,this.Qc=!0,this.b.V=!0)};m.q=new d;p.prototype.Text=function(d){d.Ta(this.text)};m.D=new p})();function tc(l){this.b=l}
(function(){var l=tc.prototype;l.P=function(d){this.ja=d;this.b=d.b};var t=l.P.prototype;t.K=function(){this.L||(this.H=new Image,this.H.zj=this.Li,this.b.Ui(this.H,this.fh),this.J=this.pattern=null)};t.ag=function(){this.L||(this.J=null)};t.Xg=function(){if(!this.L&&this.j.length){this.J||(this.J=this.b.G.cd(this.H,!0,this.b.ba,this.nf));var d,l;d=0;for(l=this.j.length;d<l;d++)this.j[d].J=this.J}};t.rk=function(){this.L||this.J||!this.b.G||(this.J=this.b.G.cd(this.H,!0,this.b.ba,this.nf))};t.ih=
function(){this.L||this.j.length||!this.J||(this.b.G.deleteTexture(this.J),this.J=null)};t.si=function(d){d.drawImage(this.H,0,0)};l.M=function(d){this.type=d;this.b=d.b};t=l.M.prototype;t.K=function(){this.visible=0===this.B[0];this.fd=new J(0,0,0,0);this.np=!1;this.H=this.type.H;this.b.G?(this.type.rk(),this.J=this.type.J):(this.type.pattern||(this.type.pattern=this.b.ua.createPattern(this.type.H,"repeat")),this.pattern=this.type.pattern)};t.Ad=function(){this.np=!1;this.H=this.type.H};t.sd=function(){this.b.G&&
this.np&&this.J&&(this.b.G.deleteTexture(this.J),this.J=null)};t.uc=function(d){d.globalAlpha=this.opacity;d.save();d.fillStyle=this.pattern;var l=this.x,m=this.y;this.b.fc&&(l=Math.round(l),m=Math.round(m));var s=-(this.Rb*this.width),g=-(this.Sb*this.height),r=s%this.H.width,u=g%this.H.height;0>r&&(r+=this.H.width);0>u&&(u+=this.H.height);d.translate(l,m);d.rotate(this.A);d.translate(r,u);d.fillRect(s-r,g-u,this.width,this.height);d.restore()};t.$b=function(d){d.Wb(this.J);d.te(this.opacity);var l=
this.fd;l.right=this.width/this.H.width;l.bottom=this.height/this.H.height;var m=this.Fb;if(this.b.fc){var s=Math.round(this.x)-this.x,g=Math.round(this.y)-this.y;d.Pc(m.Da+s,m.Ea+g,m.cb+s,m.eb+g,m.Xa+s,m.Ya+g,m.Va+s,m.Wa+g,l)}else d.Pc(m.Da,m.Ea,m.cb,m.eb,m.Xa,m.Ya,m.Va,m.Wa,l)};l.k=new function(){};l.q=new function(){};l.D=new function(){}})();function uc(l){this.b=l}
(function(){function l(){this.kl=this.id=-1;this.Go=this.wg=this.Ti=this.Mh=!1;this.ya=new J(0,0,0,0)}function t(a){1E4>k.length&&k.push(a)}function d(){this.id=-1;this.ya=new J(0,0,0,0);this.ne=null}function p(a){1E4>w.length&&w.push(a)}function m(a,b,c){var d;return z.length?(d=z.pop(),d.n=a,d.x=b,d.y=c,d.left=d.x*d.n.Hb*d.n.pc,d.top=d.y*d.n.Gb*d.n.oc,d.clear(),d.xi=!1,d):new s(a,b,c)}function s(a,b,c){this.n=a;this.x=b;this.y=c;this.left=this.x*this.n.Hb*this.n.pc;this.top=this.y*this.n.Gb*this.n.oc;
this.Pd=[];this.Mb=[];this.Zb=[];this.xi=!1;var d,e;a=0;for(b=this.n.Gb;a<b;++a){e=[];c=0;for(d=this.n.Hb;c<d;++c)e.push(-1);this.Pd.push(e)}}function g(){}function r(){}var u=uc.prototype;u.P=function(a){this.ja=a;this.b=a.b};var v=u.P.prototype;v.K=function(){var a,b,c;if(!this.L&&(this.H=new Image,this.H.zj=this.Li,this.b.Ui(this.H,this.fh),this.wf=[],this.Wl=!1,this.wd=[],this.Pq=!1,this.jl&&this.jl.length))for(a=0,b=this.jl.length;a<b;++a)(c=this.jl[a])?this.wd.push({ne:c,Oj:[[[null,null],[null,
null]],[[null,null],[null,null]]]}):this.wd.push(null)};v.Oe=function(a,b,c,d,e,f){if(!(0>a||a>=this.wd.length)&&this.wd[a]){var g=this.wd[a].Oj;a=new mb(this.wd[a].ne);a.tf(b,c,0);f&&a.Tu();d&&a.Ow(b/2);e&&a.Gv(c/2);g[d?1:0][e?1:0][f?1:0]=a}};v.Xv=function(d){if(-1===d)return null;var b=d&e;return 0>b||b>=this.wd.length||!this.wd[b]?null:this.wd[b].Oj[d&a?1:0][d&c?1:0][d&f?1:0]};v.im=function(){var a,b,c=this.b.G;if(c)for(a=0,b=this.wf.length;a<b;++a)c.deleteTexture(this.wf[a]);this.wf.length=0;
this.Wl=!1};v.Qm=function(a,b,c,d,e,f,g){if(!(this.Wl||0>=a||0>=b)){this.im();var k=this.H.width,m=this.H.height,l;for(l=d;l+b<=m;l+=b+f)for(d=c;d+a<=k;d+=a+e)this.wf.push(this.Wr(d,l,a,b,g));this.Wl=!0}};v.Wr=function(a,b,c,d,e){if(this.b.G)return this.sl(a,b,c,d,!1,!1,!1,e);var f=[[[null,null],[null,null]],[[null,null],[null,null]]];f[0][0][0]=this.sl(a,b,c,d,!1,!1,!1,e);return{Oj:f,x:a,y:b,pl:c,Yj:d}};v.Yn=function(a,b,c,d,e){if(0>a||a>=this.wf.length)return null;a=this.wf[a];var f=a.Oj;b=b?1:
0;c=c?1:0;d=d?1:0;var g=f[b][c][d];g||(g=this.sl(a.x,a.y,a.pl,a.Yj,0!==b,0!==c,0!==d,e),f[b][c][d]=g);return g};v.sl=function(a,b,c,d,e,f,g,k){var m=c,l=d;this.b.G&&!k&&(oa(m)||(m=pa(m)),oa(l)||(l=pa(l)));var p=document.createElement("canvas");p.width=m;p.height=l;var r=p.getContext("2d");if(this.b.ua)return e?f?(g?(r.rotate(Math.PI/2),r.scale(-1,1)):r.scale(-1,-1),r.translate(-m,-l)):g?(r.rotate(Math.PI/2),r.translate(0,-l)):(r.scale(-1,1),r.translate(-m,0)):f?g?(r.rotate(-Math.PI/2),r.translate(-m,
0)):(r.scale(1,-1),r.translate(0,-l)):g&&(r.scale(-1,1),r.rotate(Math.PI/2)),r.drawImage(this.H,a,b,c,d,0,0,m,l),k?p:this.b.ua.createPattern(p,"repeat");r.drawImage(this.H,a,b,c,d,0,0,m,l);a=this.b.G.Td(m,l,this.b.ba,!1,!k);this.b.G.Tx(p,a);return a};v.ag=function(){this.L||this.im()};v.Xg=function(){};v.rk=function(){};v.ih=function(){this.L||this.j.length||this.im()};v.si=function(){};u.M=function(a){this.type=a;this.b=a.b};var v=u.M.prototype,a=-2147483648,c=1073741824,f=536870912,e=536870911,
k=[],w=[],z=[];s.prototype.clear=function(){var a,b,c,d,e;this.Pd.length=this.n.Gb;a=0;for(b=this.Pd.length;a<b;++a)for(e=this.Pd[a],e||(e=[],this.Pd[a]=e),e.length=this.n.Hb,c=0,d=e.length;c<d;++c)e[c]=-1};s.prototype.ji=function(){if(!this.xi){var g=this.n.pc,b=this.n.oc;if(!(0>=g||0>=b)){var h,m,r,s,q,u;h=0;for(m=this.Mb.length;h<m;++h)t(this.Mb[h]);h=0;for(m=this.Zb.length;h<m;++h)p(this.Zb[h]);this.Mb.length=0;this.Zb.length=0;var v=Math.floor(this.n.width/g),O=Math.floor(this.n.height/b),v=
v-this.left/g,O=O-this.top/b;v>this.n.Hb&&(v=this.n.Hb);O>this.n.Gb&&(O=this.n.Gb);var z=this.n.ud,A=null;h=0;for(m=O;h<m;++h){q=this.Pd[h];r=0;for(s=v;r<s;++r)u=q[r],-1===u?A&&(this.Mb.push(A),A=null):z||!A||u!==A.id?(A&&this.Mb.push(A),A=k.length?k.pop():new l,A.id=u,A.kl=u&e,A.Mh=0!==(u&a),A.Ti=0!==(u&c),A.wg=0!==(u&f),A.Go=A.Mh||A.Ti||A.wg,A.ya.left=r*g+this.left,A.ya.top=h*b+this.top,A.ya.right=A.ya.left+g,A.ya.bottom=A.ya.top+b):A.ya.right+=g;A&&(this.Mb.push(A),A=null)}var A=null,E=!1;h=0;
for(m=O;h<m;++h){q=this.Pd[h];r=0;for(s=v;r<s;++r)u=q[r],-1===u?A&&(this.Zb.push(A),A=null,E=!1):(O=this.n.type.Xv(u),!A||O||E?(A&&this.Zb.push(A),A=w.length?w.pop():new d,A.id=u,A.ne=O?O:null,u=A.ya,u.left=r*g+this.left,u.top=h*b+this.top,u.right=u.left+g,u.bottom=u.top+b,E=!!O):A.ya.right+=g);A&&(this.Zb.push(A),A=null,E=!1)}if(!z)for(m=this.Mb.length,h=0;h<m;++h)for(s=this.Mb[h],g=h+1;g<m;++g)if(r=this.Mb[g],!(r.ya.top<s.ya.bottom)){if(r.ya.top>s.ya.bottom)break;if(r.ya.right>s.ya.right||r.ya.left>
s.ya.left)break;r.id===s.id&&r.ya.left===s.ya.left&&r.ya.right===s.ya.right&&(t(this.Mb[g]),this.Mb.splice(g,1),--m,s.ya.bottom+=b,--g)}m=this.Zb.length;for(h=0;h<m;++h)if(s=this.Zb[h],!s.ne)for(q=s.ya,g=h+1;g<m;++g)if(r=this.Zb[g],s=r.ya,!(s.top<q.bottom)){if(s.top>q.bottom)break;if(s.right>q.right||s.left>q.left)break;r.ne||s.left!==q.left||s.right!==q.right||(p(this.Zb[g]),this.Zb.splice(g,1),--m,q.bottom+=b,--g)}this.xi=!0}}};s.prototype.Yk=function(a,b,c){this.Pd[b][a]!==c&&(this.Pd[b][a]=c,
this.xi=!1,this.n.kj=!0,this.n.Ek=!0,this.n.b.V=!0)};v.K=function(){var a,b,c;this.visible=0===this.B[0];this.pc=this.B[1];this.oc=this.B[2];this.En=this.B[3];this.Gn=this.B[4];this.Fn=this.B[5];this.Hn=this.B[6];this.ud=0!==this.B[7];this.ke=this.Sq;this.je=this.Rq;this.ie=this.width;this.he=this.height;var d=this.pc,e=this.oc;0===d&&(d=1);0===e&&(e=1);this.Hb=Math.ceil(this.b.nb/d);this.Gb=Math.ceil(this.b.mb/e);if(!this.type.Pq)for(this.type.Pq=!0,a=0,b=this.type.wd.length;a<b;++a)if(c=this.type.wd[a])this.type.Oe(a,
d,e,!1,!1,!1),this.type.Oe(a,d,e,!1,!1,!0),this.type.Oe(a,d,e,!1,!0,!1),this.type.Oe(a,d,e,!1,!0,!0),this.type.Oe(a,d,e,!0,!1,!1),this.type.Oe(a,d,e,!0,!1,!0),this.type.Oe(a,d,e,!0,!0,!1),this.type.Oe(a,d,e,!0,!0,!0);this.Vb||(this.nc=[]);this.Lw();this.Cq(this.Qq);this.type.Qm(this.pc,this.oc,this.En,this.Gn,this.Fn,this.Hn,this.ud);this.Ek=!1;this.kj=!0;this.Pm()};v.Pm=function(){if(this.kj){var a,b,c,d,e;a=0;for(b=this.nc.length;a<b;++a)for(e=this.nc[a],c=0,d=e.length;c<d;++c)e[c].ji();this.kj=
!1}};v.un=function(){var a,b,c,d,e;a=0;for(b=this.nc.length;a<b;++a)for(e=this.nc[a],c=0,d=e.length;c<d;++c)e[c].xi=!1;this.kj=!0};v.Lw=function(){var a,b;a=Math.ceil(this.je/this.Gb);b=Math.ceil(this.ke/this.Hb);var c,d,e;for(c=0;c<a;++c)if(e=this.nc[c])for(d=e.length;d<b;++d)e.push(m(this,d,c));else{e=[];for(d=0;d<b;++d)e.push(m(this,d,c));this.nc[c]=e}};v.Pl=function(a,b){if(0>a||0>b)return null;var c=F(b/this.Gb);if(c>=this.nc.length)return null;var c=this.nc[c],d=F(a/this.Hb);return d>=c.length?
null:c[d]};v.Ql=function(a,b){if(0>a||0>b||b>=this.nc.length)return null;var c=this.nc[b];return a>=c.length?null:c[a]};v.Cq=function(d){var b=[];d=d.split(",");var e,g,k,m,l;e=0;for(g=d.length;e<g;++e)if(k=d[e],m=k.indexOf("x"),-1<m)for(l=parseInt(k.substring(0,m),10),k=k.substring(m+1),m=parseInt(k,10),-1<k.indexOf("h")&&(m|=a),-1<k.indexOf("v")&&(m|=c),-1<k.indexOf("d")&&(m|=f);0<l;--l)b.push(m);else m=parseInt(k,10),-1<k.indexOf("h")&&(m|=a),-1<k.indexOf("v")&&(m|=c),-1<k.indexOf("d")&&(m|=f),
b.push(m);for(e=d=0;e<this.je;++e)for(g=0;g<this.ke;++g)l=b[d++],(k=this.Pl(g,e))&&k.Yk(g%this.Hb,e%this.Gb,l)};v.Yv=function(){var d="";if(0>=this.ke||0>=this.je)return d;var b=1,g=this.jp(0,0),k,m=this.je,l,p=this.ke,r,s,q,u;for(k=0;k<m;++k)for(l=0===k?1:0;l<p;++l)r=this.jp(l,k),r===g?++b:(-1===g?(s=-1,g=u=q=!1):(s=g&e,q=0!==(g&a),u=0!==(g&c),g=0!==(g&f)),d=1===b?d+(""+s):d+(""+b+"x"+s),q&&(d+="h"),u&&(d+="v"),g&&(d+="d"),d+=",",b=1,g=r);-1===g?(s=-1,g=u=q=!1):(s=g&e,q=0!==(g&a),u=0!==(g&c),g=0!==
(g&f));d=1===b?d+(""+s):d+(""+b+"x"+s);q&&(d+="h");u&&(d+="v");g&&(d+="d");return d};v.jp=function(a,b){a=Math.floor(a);b=Math.floor(b);if(0>a||0>b||a>=this.ke||b>=this.je)return-1;var c=this.Pl(a,b);return c?c.Pd[b%this.Gb][a%this.Hb]:-1};v.Yk=function(a,b,c){a=Math.floor(a);b=Math.floor(b);if(0>a||0>b||a>=this.ke||b>=this.je)return-1;var d=this.Pl(a,b);if(!d)return-1;d.Yk(a%this.Hb,b%this.Gb,c)};v.lr=function(a){return Math.floor((a-this.x)/(this.Hb*this.pc))};v.mr=function(a){return Math.floor((a-
this.y)/(this.Gb*this.oc))};v.Nv=function(a,b){var c=this.mr(a.top),d=this.lr(a.right),e=this.mr(a.bottom),f,g,k;for(f=this.lr(a.left);f<=d;++f)for(g=c;g<=e;++g)if(k=this.Ql(f,g))k.ji(),Ga(b,k.Zb)};v.Dy=function(a){var b,c,d,e,f,g;b=0;for(c=this.nc.length;b<c;++b)for(f=this.nc[b],d=0,e=f.length;d<e;++d)g=f[d],g.ji(),Ga(a,g.Zb)};v.sd=function(){var a,b,c,d,e;a=0;for(b=this.nc.length;a<b;++a){e=this.nc[a];c=0;for(d=e.length;c<d;++c){for(var f=e[c],g=void 0,k=void 0,g=0,k=f.Mb.length;g<k;++g)t(f.Mb[g]);
g=f.Mb.length=0;for(k=f.Zb.length;g<k;++g)p(f.Zb[g]);f.Zb.length=0;1E3>z.length&&z.push(f)}e.length=0}this.nc.length=0};v.Sa=function(){return{w:this.ke,h:this.je,d:this.Yv()}};v.lb=function(a){this.ke=a.w;this.je=a.h;this.Cq(a.d);this.Ek=!0;this.un()};v.uc=function(a){if(!(0>=this.pc||0>=this.oc)){this.type.Qm(this.pc,this.oc,this.En,this.Gn,this.Fn,this.Hn,this.ud);if(this.width!==this.ie||this.height!==this.he)this.Ek=!0,this.un(),this.Pm(),this.ie=this.width,this.he=this.height;a.globalAlpha=
this.opacity;var b=this.u,c=b.Ia,d=b.Ja,e=b.La,b=b.Ka,f=this.x,g=this.y,k=this.ud,m;this.b.fc&&(f=Math.round(f),g=Math.round(g));var l=this.Hb*this.pc,p=this.Gb*this.oc,r=Math.floor((c-f)/l),l=Math.floor((e-f)/l),s=Math.floor((d-g)/p),p=Math.floor((b-g)/p),q=f%this.pc,u=g%this.oc;this.ud&&(u=q=0);if(0!==q||0!==u)a.save(),a.translate(q,u),f-=q,g-=u,c-=q,d-=u,e-=q,b-=u;for(var t,v,w,z,C,I,G,U,K;r<=l;++r)for(t=s;t<=p;++t)if(v=this.Ql(r,t))for(v.ji(),w=0,z=v.Mb.length;w<z;++w)C=v.Mb[w],-1!==C.id&&(m=
C.ya,I=m.left+f,G=m.top+g,U=m.right+f,m=m.bottom+g,I>e||U<c||G>b||m<d||(K=this.type.Yn(C.kl,C.Mh,C.Ti,C.wg,this.ud),k?a.drawImage(K,I,G):(a.fillStyle=this.type.Yn(C.kl,C.Mh,C.Ti,C.wg,this.ud),a.fillRect(I,G,U-I,m-G))));0===q&&0===u||a.restore()}};var q=new J(0,0,1,1);v.$b=function(a){if(!(0>=this.pc||0>=this.oc)){this.type.Qm(this.pc,this.oc,this.En,this.Gn,this.Fn,this.Hn,this.ud);if(this.width!==this.ie||this.height!==this.he)this.Ek=!0,this.un(),this.Pm(),this.ie=this.width,this.he=this.height;
a.te(this.opacity);var b=this.type.wf,c=this.u,d=c.Ia,e=c.Ja,f=c.La,c=c.Ka,g=this.x,k=this.y,m;this.b.fc&&(g=Math.round(g),k=Math.round(k));var l=this.Hb*this.pc,p=this.Gb*this.oc,r=Math.floor((f-g)/l),s=Math.floor((e-k)/p),p=Math.floor((c-k)/p),u,t,v,w,y,z,C,I,G,U,K,R,P,L,ma,Ka,Oa;for(ma=Math.floor((d-g)/l);ma<=r;++ma)for(Ka=s;Ka<=p;++Ka)if(Oa=this.Ql(ma,Ka))for(Oa.ji(),l=0,u=Oa.Mb.length;l<u;++l)t=Oa.Mb[l],-1!==t.id&&(m=t.ya,v=m.left+g,w=m.top+k,y=m.right+g,m=m.bottom+k,v>f||y<d||w>c||m<e||(a.Wb(b[t.kl]),
q.right=(y-v)/this.pc,q.bottom=(m-w)/this.oc,t.Go?(t.wg&&(L=q.right,q.right=q.bottom,q.bottom=L),C=z=0,I=q.right,G=0,U=q.right,K=q.bottom,R=0,P=q.bottom,t.wg&&(L=R,R=I,I=L,L=P,P=G,G=L),t.Mh&&(L=z,z=I,I=L,L=C,C=G,G=L,L=R,R=U,U=L,L=P,P=K,K=L),t.Ti&&(L=z,z=R,R=L,L=C,C=P,P=L,L=I,I=U,U=L,L=G,G=K,K=L),a.Sy(v,w,y,w,y,m,v,m,z,C,I,G,U,K,R,P)):a.Pc(v,w,y,w,y,m,v,m,q)))}};u.k=new function(){};g.prototype.Xr=function(a,b,c,d){var e=Math.floor(ra(a,0));a=Math.floor(ta(a+c,this.ke));d=Math.floor(ta(b+d,this.je));
for(c=Math.floor(ra(b,0));c<d;++c)for(b=e;b<a;++b)this.Yk(b,c,-1)};u.q=new g;r.prototype.ot=function(a,b){a.F(Math.floor((b-this.x)/this.pc))};r.prototype.pt=function(a,b){a.F(Math.floor((b-this.y)/this.oc))};u.D=new r})();function Z(l){this.b=l}
(function(){function l(b){v=b.x;a=b.y;c=b.z}function t(a){f=a.x;e=a.y;k=a.z}function d(a,b,c,d){var e;e=w.length?w.pop():new p;e.init(a,b,c,d);return e}function p(){this.Ii=this.id=this.df=this.cf=this.y=this.x=this.el=this.dl=this.Hm=this.time=this.Bn=0;this.Oi=this.ml=!1}function m(){}function s(){}var g=Z.prototype;g.P=function(a){this.ja=a;this.b=a.b};g.P.prototype.K=function(){};g.M=function(a){this.type=a;this.b=a.b;this.touches=[];this.Tm=!1};var r=g.M.prototype,u={left:0,top:0};r.Fh=function(a){var b,
c;b=0;for(c=this.touches.length;b<c;b++)if(this.touches[b].id===a)return b;return-1};var v=0,a=0,c=0,f=0,e=0,k=0,w=[];p.prototype.init=function(a,b,c,d){var e=gb();this.Bn=this.Hm=this.time=e;this.dl=a;this.el=b;this.x=a;this.y=b;this.cf=a;this.df=b;this.id=c;this.Ii=d;this.Oi=this.ml=!1};p.prototype.update=function(a,b,c){this.Hm=this.time;this.time=a;this.cf=this.x;this.df=this.y;this.x=b;this.y=c;!this.Oi&&15<=Ya(this.dl,this.el,this.x,this.y)&&(this.Oi=!0)};p.prototype.Mw=function(a,b){!this.ml&&
500<=gb()-this.Bn&&!this.Oi&&15>Ya(this.dl,this.el,this.x,this.y)&&(this.ml=!0,a.Qd=this.Ii,a.kg=this.id,a.Dg=b,a.b.trigger(Z.prototype.k.Ts,a),a.Ud=this.x,a.Vd=this.y,a.b.trigger(Z.prototype.k.Us,a),a.Dg=0)};var z=-1E3,q=-1E3,n=-1E4;p.prototype.Np=function(a,b){if(!this.ml){var c=gb();333>=c-this.Bn&&!this.Oi&&15>Ya(this.dl,this.el,this.x,this.y)&&(a.Qd=this.Ii,a.kg=this.id,a.Dg=b,666>=c-n&&25>Ya(z,q,this.x,this.y)?(a.b.trigger(Z.prototype.k.Rs,a),a.Ud=this.x,a.Vd=this.y,a.b.trigger(Z.prototype.k.Ss,
a),q=z=-1E3,n=-1E4):(a.b.trigger(Z.prototype.k.et,a),a.Ud=this.x,a.Vd=this.y,a.b.trigger(Z.prototype.k.lo,a),z=this.x,q=this.y,n=c),a.Dg=0)}};r.K=function(){this.Aw=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.Dg=this.kg=this.Qd=this.Vd=this.Ud=this.zo=this.yo=this.xo=this.wu=this.vu=this.uu=this.oi=this.ni=this.mi=0;this.Rx=0!==this.B[0];var a=0<this.b.vc?document:this.b.canvas,b=document;this.b.Ab?b=a=window.Canvas:this.b.jc&&(b=a=window);var c=this;window.navigator.pointerEnabled?
(a.addEventListener("pointerdown",function(a){c.aq(a)},!1),a.addEventListener("pointermove",function(a){c.$p(a)},!1),b.addEventListener("pointerup",function(a){c.Bk(a,!1)},!1),b.addEventListener("pointercancel",function(a){c.Bk(a,!0)},!1),this.b.canvas&&(this.b.canvas.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),document.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),this.b.canvas.addEventListener("gesturehold",function(a){a.preventDefault()},!1),document.addEventListener("gesturehold",
function(a){a.preventDefault()},!1))):window.navigator.msPointerEnabled?(a.addEventListener("MSPointerDown",function(a){c.aq(a)},!1),a.addEventListener("MSPointerMove",function(a){c.$p(a)},!1),b.addEventListener("MSPointerUp",function(a){c.Bk(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){c.Bk(a,!0)},!1),this.b.canvas&&(this.b.canvas.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),document.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1))):(a.addEventListener("touchstart",
function(a){c.dq(a)},!1),a.addEventListener("touchmove",function(a){c.cq(a)},!1),b.addEventListener("touchend",function(a){c.$m(a,!1)},!1),b.addEventListener("touchcancel",function(a){c.$m(a,!0)},!1));if(this.Aw){var d=function(a){a=a.reading;c.xo=a.accelerationX;c.yo=a.accelerationY;c.zo=a.accelerationZ},e=function(a){a=a.reading;c.mi=a.yawDegrees;c.ni=a.pitchDegrees;c.oi=a.rollDegrees},f=Windows.Devices.Sensors.Accelerometer.getDefault();f&&(f.reportInterval=Math.max(f.minimumReportInterval,16),
f.addEventListener("readingchanged",d));var g=Windows.Devices.Sensors.Inclinometer.getDefault();g&&(g.reportInterval=Math.max(g.minimumReportInterval,16),g.addEventListener("readingchanged",e));document.addEventListener("visibilitychange",function(){document.hidden||document.msHidden?(f&&f.removeEventListener("readingchanged",d),g&&g.removeEventListener("readingchanged",e)):(f&&f.addEventListener("readingchanged",d),g&&g.addEventListener("readingchanged",e))},!1)}else window.addEventListener("deviceorientation",
function(a){c.mi=a.alpha||0;c.ni=a.beta||0;c.oi=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.uu=a.accelerationIncludingGravity.x||0,c.vu=a.accelerationIncludingGravity.y||0,c.wu=a.accelerationIncludingGravity.z||0);a.acceleration&&(c.xo=a.acceleration.x||0,c.yo=a.acceleration.y||0,c.zo=a.acceleration.z||0)},!1);this.Rx&&!this.b.wa&&(jQuery(document).mousemove(function(a){c.Uw(a)}),jQuery(document).mousedown(function(a){c.Tw(a)}),jQuery(document).mouseup(function(a){c.Vw(a)}));
this.b.Gg&&!this.b.Ab&&AppMobi.accelerometer.watchAcceleration(l,{frequency:40,adjustForRotation:!0});this.b.xc&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(t,null,{frequency:40});this.b.Nx(this)};r.$p=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var b=this.Fh(a.pointerId),c=gb();if(0<=b){var d=this.b.wa?u:jQuery(this.b.canvas).offset(),b=this.touches[b];2>c-b.time||
b.update(c,a.pageX-d.left,a.pageY-d.top)}}};r.aq=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&tb(a)&&a.preventDefault();var b=this.b.wa?u:jQuery(this.b.canvas).offset(),c=a.pageX-b.left,b=a.pageY-b.top;gb();this.Qd=this.touches.length;this.kg=a.pointerId;this.touches.push(d(c,b,a.pointerId,this.Qd));this.b.ad=!0;this.b.trigger(Z.prototype.k.ko,this);this.b.trigger(Z.prototype.k.Cl,this);this.Ud=c;this.Vd=b;this.b.trigger(Z.prototype.k.Bl,this);
this.b.ad=!1}};r.Bk=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&tb(a)&&a.preventDefault();var c=this.Fh(a.pointerId);this.Qd=0<=c?this.touches[c].Ii:-1;this.kg=0<=c?this.touches[c].id:-1;this.b.ad=!0;this.b.trigger(Z.prototype.k.jo,this);this.b.trigger(Z.prototype.k.Al,this);0<=c&&(b||this.touches[c].Np(this,c),100>w.length&&w.push(this.touches[c]),this.touches.splice(c,1));this.b.ad=!1}};r.cq=function(a){a.preventDefault&&a.preventDefault();
var b=gb(),c,d,e,f;c=0;for(d=a.changedTouches.length;c<d;c++)if(e=a.changedTouches[c],f=this.Fh(e.identifier),0<=f){var g=this.b.wa?u:jQuery(this.b.canvas).offset();f=this.touches[f];2>b-f.time||f.update(b,e.pageX-g.left,e.pageY-g.top)}};r.dq=function(a){a.preventDefault&&tb(a)&&a.preventDefault();var b=this.b.wa?u:jQuery(this.b.canvas).offset();gb();this.b.ad=!0;var c,e,f,g;c=0;for(e=a.changedTouches.length;c<e;c++)if(f=a.changedTouches[c],g=this.Fh(f.identifier),-1===g){g=f.pageX-b.left;var k=f.pageY-
b.top;this.Qd=this.touches.length;this.kg=f.identifier;this.touches.push(d(g,k,f.identifier,this.Qd));this.b.trigger(Z.prototype.k.ko,this);this.b.trigger(Z.prototype.k.Cl,this);this.Ud=g;this.Vd=k;this.b.trigger(Z.prototype.k.Bl,this)}this.b.ad=!1};r.$m=function(a,b){a.preventDefault&&tb(a)&&a.preventDefault();this.b.ad=!0;var c,d,e;c=0;for(d=a.changedTouches.length;c<d;c++)e=a.changedTouches[c],e=this.Fh(e.identifier),0<=e&&(this.Qd=this.touches[e].Ii,this.kg=this.touches[e].id,this.b.trigger(Z.prototype.k.jo,
this),this.b.trigger(Z.prototype.k.Al,this),b||this.touches[e].Np(this,e),100>w.length&&w.push(this.touches[e]),this.touches.splice(e,1));this.b.ad=!1};r.Ey=function(){return this.b.Gg&&0===this.mi&&0!==c?90*c:this.b.xc&&0===this.mi&&0!==k?90*k:this.mi};r.Fy=function(){return this.b.Gg&&0===this.ni&&0!==a?-90*a:this.b.xc&&0===this.ni&&0!==e?90*e:this.ni};r.Hy=function(){return this.b.Gg&&0===this.oi&&0!==v?90*v:this.b.xc&&0===this.oi&&0!==f?90*f:this.oi};r.Tw=function(a){a.preventDefault&&this.b.um&&
!this.b.ee&&a.preventDefault();this.dq({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.Tm=!0};r.Uw=function(a){this.Tm&&this.cq({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};r.Vw=function(a){a.preventDefault&&this.b.um&&!this.b.ee&&a.preventDefault();this.b.um=!0;this.$m({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.Tm=!1};r.gh=function(){var a,b,c,d=gb();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=d-50&&(c.Hm=d),c.Mw(this,
a)};m.prototype.Cl=function(){return!0};m.prototype.Al=function(){return!0};m.prototype.us=function(){return this.touches.length};m.prototype.Bl=function(a){return a?this.b.gl(a,this.Ud,this.Vd):!1};var b=[];m.prototype.Cs=function(a){if(!a)return!1;var c=a.R(),d=c.Qb(),e,f,g,k,m,l;g=0;for(k=d.length;g<k;g++){var n=d[g];n.Fa();m=0;for(l=this.touches.length;m<l;m++)if(f=this.touches[m],e=n.u.Yb(f.x,f.y,!0),f=n.u.Yb(f.x,f.y,!1),n.Ib(e,f)){b.push(n);break}}return b.length?(c.S=!1,Fa(c.j,b),a.ld(),b.length=
0,!0):!1};m.prototype.ko=function(a){a=Math.floor(a);return a===this.Qd};m.prototype.jo=function(a){a=Math.floor(a);return a===this.Qd};m.prototype.Ts=function(){return!0};m.prototype.et=function(){return!0};m.prototype.Rs=function(){return!0};m.prototype.Us=function(a){return a?this.b.gl(a,this.Ud,this.Vd):!1};m.prototype.lo=function(a){return a?this.b.gl(a,this.Ud,this.Vd):!1};m.prototype.Ss=function(a){return a?this.b.gl(a,this.Ud,this.Vd):!1};g.k=new m;s.prototype.fj=function(a,b){var c=this.Dg;
if(0>c||c>=this.touches.length)a.F(0);else{var d,e,f,g,k;ka(b)?(d=this.b.Cg(0),e=d.scale,f=d.zd,g=d.Oc,k=d.A,d.scale=1,d.zd=1,d.Oc=1,d.A=0,a.F(d.Yb(this.touches[c].x,this.touches[c].y,!0)),d.scale=e,d.zd=f,d.Oc=g,d.A=k):(d=la(b)?this.b.Cg(b):this.b.Vj(b))?a.F(d.Yb(this.touches[c].x,this.touches[c].y,!0)):a.F(0)}};s.prototype.gj=function(a,b){var c=this.Dg;if(0>c||c>=this.touches.length)a.F(0);else{var d,e,f,g,k;ka(b)?(d=this.b.Cg(0),e=d.scale,f=d.zd,g=d.ed,k=d.A,d.scale=1,d.zd=1,d.ed=1,d.A=0,a.F(d.Yb(this.touches[c].x,
this.touches[c].y,!1)),d.scale=e,d.zd=f,d.ed=g,d.A=k):(d=la(b)?this.b.Cg(b):this.b.Vj(b))?a.F(d.Yb(this.touches[c].x,this.touches[c].y,!1)):a.F(0)}};s.prototype.ur=function(a,b){b=Math.floor(b);if(0>b||b>=this.touches.length)a.F(0);else{var c=this.touches[b];a.F(La(Ta(c.cf,c.df,c.x,c.y)))}};s.prototype.ou=function(a){a.F(this.kg)};g.D=new s})();function vc(l){this.b=l}
(function(){function l(){}function t(){}function d(){}var p=vc.prototype;p.P=function(d){this.ja=d;this.b=d.b};p.P.prototype.K=function(){};p.M=function(d){this.type=d;this.b=d.b};var m=p.M.prototype,s="",g="undefined"!==typeof window.is_scirra_arcade;g&&(s="arcade"+window.scirra_arcade_id);m.K=function(){"undefined"===typeof localStorage&&ga("[Construct 2] Webstorage plugin: local storage is not supported on this platform.");"undefined"===typeof sessionStorage&&ga("[Construct 2] Webstorage plugin: session storage is not supported on this platform.")};
l.prototype.Is=function(d){return"undefined"===typeof localStorage?!1:null!=localStorage.getItem(s+d)};l.prototype.Ct=function(d){return"undefined"===typeof sessionStorage?!1:null!=sessionStorage.getItem(s+d)};l.prototype.zl=function(){return!0};l.prototype.Lr=function(d,g,m){if("undefined"===typeof localStorage)return!1;d=localStorage.getItem(s+d)||"";return ic(parseFloat(d),g,m)};p.k=new l;t.prototype.ku=function(d,g){if("undefined"!==typeof localStorage)try{localStorage.setItem(s+d,g)}catch(m){this.b.trigger(vc.prototype.k.zl,
this)}};t.prototype.lu=function(d,g){if("undefined"!==typeof sessionStorage)try{sessionStorage.setItem(s+d,g)}catch(m){this.b.trigger(vc.prototype.k.zl,this)}};t.prototype.yt=function(d){"undefined"!==typeof sessionStorage&&sessionStorage.removeItem(s+d)};t.prototype.Hr=function(){"undefined"!==typeof localStorage&&(g||localStorage.clear())};t.prototype.tl=function(d,m){if("undefined"!==typeof localStorage){var l;try{l=JSON.parse(d)}catch(a){return}if(l.c2dictionary){l=l.data;0!==m||g||localStorage.clear();
for(var c in l)if(l.hasOwnProperty(c))try{localStorage.setItem(s+c,l[c])}catch(f){this.b.trigger(vc.prototype.k.zl,this);break}}}};p.q=new t;d.prototype.ph=function(d){if("undefined"===typeof localStorage)d.Ta("");else{var m={},l,a,c;l=0;for(a=localStorage.length;l<a;l++)c=localStorage.key(l),g?c.substr(0,s.length)===s&&(m[c.substr(s.length)]=localStorage.getItem(c)):m[c]=localStorage.getItem(c);d.Ta(JSON.stringify({c2dictionary:!0,data:m}))}};p.D=new d})();function wc(l){this.b=l}
(function(){function l(d){switch(d){case 1:return"BANNER";case 2:return"MEDIUM_RECTANGLE";case 3:return"FULL_BANNER";case 4:return"LEADERBOARD";case 5:return"SKYSCRAPER"}return"SMART_BANNER"}function t(d){switch(d){case 0:return"top-left";case 1:return"top-center";case 2:return"top-right";case 3:return"left";case 4:return"center";case 5:return"right";case 6:return"bottom-left";case 8:return"bottom-right"}return"bottom-center"}function d(){}function p(){}var m=wc.prototype;m.P=function(d){this.ja=
d;this.b=d.b};m.P.prototype.K=function(){};m.M=function(d){this.type=d;this.b=d.b};var s=!1;m.M.prototype.K=function(){if(window.admob){s=!0;this.Ge=window.admob;var d=0!==this.B[0],m=0!==this.B[1];this.Au=this.B[2];this.Bu=this.B[3];this.uw=this.B[4];this.vw=this.B[5];this.$x=this.B[6];this.ay=this.B[7];this.b.Qh?(this.lj=this.Au,this.ck=this.Bu):this.b.$h?(this.lj=this.uw,this.ck=this.vw):this.b.Rf||this.b.Wh?(this.lj=this.$x,this.ck=this.ay):this.ck=this.lj="";this.yp=this.xp=!1;this.Ge.setUp(this.lj,
this.ck,d,m);var l=this;this.Ge.onFullScreenAdLoaded=function(){l.b.trigger(wc.prototype.k.eo,l)};this.Ge.onFullScreenAdShown=function(){l.yp=!0;l.b.trigger(wc.prototype.k.Ws,l)};this.Ge.onFullScreenAdClosed=function(){l.yp=!1;l.b.trigger(wc.prototype.k.Vs,l)};this.Ge.onBannerAdPreloaded=function(){l.b.trigger(wc.prototype.k.Os,l)}}else ga("[Construct 2] com.cranberrygame.phonegap.plugin.ad.admob plugin is required to show Admob ads with Cordova; other platforms are not supported")};d.prototype.zs=
function(){return this.xp};d.prototype.eo=function(){return!0};d.prototype.Ws=function(){return!0};d.prototype.Vs=function(){return!0};d.prototype.Os=function(){return!0};m.k=new d;p.prototype.au=function(d,m){s&&(this.Ge.showBannerAd(t(d),l(m)),this.xp=!0)};p.prototype.tt=function(){s&&this.Ge.preloadFullScreenAd()};p.prototype.bu=function(){s&&this.Ge.showFullScreenAd()};m.q=new p;m.D=new function(){}})();function xc(l){this.b=l}
(function(){function l(){}function t(){}var d=xc.prototype;d.P=function(d){this.behavior=d;this.b=d.b};d.P.prototype.K=function(){};d.M=function(d,l){this.type=d;this.behavior=d.behavior;this.n=l;this.b=d.b};var p=d.M.prototype;p.K=function(){var d=this.B[0];this.hj=this.B[1];this.Rj=this.B[2];this.Gu=0!==this.B[3];this.vn=0!==this.B[4];this.Jb=Math.cos(this.n.A)*d;this.rb=Math.sin(this.n.A)*d;this.cf=this.n.x;this.df=this.n.y;this.Lc=this.n.A;this.Pi=0;this.enabled=0!==this.B[5]};p.Sa=function(){return{acc:this.hj,
g:this.Rj,dx:this.Jb,dy:this.rb,lx:this.cf,ly:this.df,lka:this.Lc,t:this.Pi,e:this.enabled}};p.lb=function(d){this.hj=d.acc;this.Rj=d.g;this.Jb=d.dx;this.rb=d.dy;this.cf=d.lx;this.df=d.ly;this.Lc=d.lka;this.Pi=d.t;this.enabled=d.e};p.Na=function(){if(this.enabled){var d=this.b.Ff(this.n),l,g;this.n.A!==this.Lc&&(this.vn&&(l=Ya(0,0,this.Jb,this.rb),this.Jb=Math.cos(this.n.A)*l,this.rb=Math.sin(this.n.A)*l),this.Lc=this.n.A);0!==this.hj&&(l=Ya(0,0,this.Jb,this.rb),g=0===this.Jb&&0===this.rb?this.n.A:
Ta(0,0,this.Jb,this.rb),l+=this.hj*d,0>l&&(l=0),this.Jb=Math.cos(g)*l,this.rb=Math.sin(g)*l);0!==this.Rj&&(this.rb+=this.Rj*d);this.cf=this.n.x;this.df=this.n.y;if(0!==this.Jb||0!==this.rb)if(this.n.x+=this.Jb*d,this.n.y+=this.rb*d,this.Pi+=Ya(0,0,this.Jb*d,this.rb*d),this.vn&&(this.n.A=Ta(0,0,this.Jb,this.rb),this.n.da(),this.Lc=this.n.A),this.n.da(),this.Gu&&(l=this.b.ig(this.n)))this.b.nx(this.n,l),l=Ya(0,0,this.Jb,this.rb),g=this.b.Ju(this.n,this.cf,this.df),this.Jb=Math.cos(g)*l,this.rb=Math.sin(g)*
l,this.n.x+=this.Jb*d,this.n.y+=this.rb*d,this.n.da(),this.vn&&(this.Lc=this.n.A=g,this.n.da()),this.b.jx(this.n,this.Jb/l,this.rb/l,Math.max(2.5*l*d,30))||this.b.kx(this.n)}};l.prototype.Or=function(d,l){return ic(this.Pi,d,l)};d.k=new l;t.prototype.Et=function(d){d=S(d);var l=Ya(0,0,this.Jb,this.rb);this.Jb=Math.cos(d)*l;this.rb=Math.sin(d)*l};t.prototype.ej=function(d){this.enabled=1===d};d.q=new t;d.D=new function(){}})();function yc(l){this.b=l}
(function(){function l(){}function t(){}var d=yc.prototype;d.P=function(d){this.behavior=d;this.b=d.b};d.P.prototype.K=function(){};d.M=function(d,l){this.type=d;this.behavior=d.behavior;this.n=l;this.b=d.b};var p=d.M.prototype;p.K=function(){var d=1===this.B[0];this.Bh=this.B[1];this.Vi=this.B[2];this.Ch=this.B[3];this.Su=this.B[4];this.pb=d?0:3;this.Vb?this.gd.reset():this.gd=new kb;this.Yf=this.n.opacity?this.n.opacity:1;d&&(0===this.Bh?(this.pb=1,0===this.Vi&&(this.pb=2)):(this.n.opacity=0,this.b.V=
!0))};p.Sa=function(){return{fit:this.Bh,wt:this.Vi,fot:this.Ch,s:this.pb,st:this.gd.O,mo:this.Yf}};p.lb=function(d){this.Bh=d.fit;this.Vi=d.wt;this.Ch=d.fot;this.pb=d.s;this.gd.reset();this.gd.O=d.st;this.Yf=d.mo};p.Na=function(){this.gd.add(this.b.Ff(this.n));0===this.pb&&(this.n.opacity=this.gd.O/this.Bh*this.Yf,this.b.V=!0,this.n.opacity>=this.Yf&&(this.n.opacity=this.Yf,this.pb=1,this.gd.reset(),this.b.trigger(yc.prototype.k.ao,this.n)));1===this.pb&&this.gd.O>=this.Vi&&(this.pb=2,this.gd.reset(),
this.b.trigger(yc.prototype.k.gt,this.n));2===this.pb&&0!==this.Ch&&(this.n.opacity=this.Yf-this.gd.O/this.Ch*this.Yf,this.b.V=!0,0>this.n.opacity&&(this.n.opacity=0,this.pb=3,this.gd.reset(),this.b.trigger(yc.prototype.k.bo,this.n),1===this.Su&&this.b.He(this.n)))};p.So=function(){this.pb=0;this.gd.reset();0===this.Bh?(this.pb=1,0===this.Vi&&(this.pb=2)):(this.n.opacity=0,this.b.V=!0)};l.prototype.bo=function(){return!0};l.prototype.ao=function(){return!0};l.prototype.gt=function(){return!0};d.k=
new l;t.prototype.eu=function(){3===this.pb&&this.So()};t.prototype.zt=function(){this.So()};t.prototype.Jt=function(d){0>d&&(d=0);this.Ch=d};d.q=new t;d.D=new function(){}})();function zc(l){this.b=l}
(function(){function l(){}function t(){}var d=zc.prototype;d.P=function(d){this.behavior=d;this.b=d.b};d.P.prototype.K=function(){};d.M=function(d,l){this.type=d;this.behavior=d.behavior;this.n=l;this.b=d.b};var p=d.M.prototype;p.K=function(){this.ye=this.Ld=this.pb=this.zk=this.Ck=0};p.Sa=function(){return{ontime:this.Ck,offtime:this.zk,stage:this.pb,stagetimeleft:this.Ld,timeleft:this.ye}};p.lb=function(d){this.Ck=d.ontime;this.zk=d.offtime;this.pb=d.stage;this.Ld=d.stagetimeleft;this.ye=d.timeleft};
p.Na=function(){if(!(0>=this.ye)){var d=this.b.Ff(this.n);this.ye-=d;0>=this.ye?(this.ye=0,this.n.visible=!0,this.b.V=!0,this.b.trigger(zc.prototype.k.co,this.n)):(this.Ld-=d,0>=this.Ld&&(0===this.pb?(this.n.visible=!1,this.pb=1,this.Ld+=this.zk):(this.n.visible=!0,this.pb=0,this.Ld+=this.Ck),this.b.V=!0))}};l.prototype.rs=function(){return 0<this.ye};l.prototype.co=function(){return!0};d.k=new l;t.prototype.$r=function(d,l,g){this.Ck=d;this.zk=l;this.pb=1;this.Ld=l;this.ye=g;this.n.visible=!1;this.b.V=
!0};d.q=new t;d.D=new function(){}})();function lc(l){this.b=l}(function(){var l=lc.prototype;l.P=function(d){this.behavior=d;this.b=d.b};l.P.prototype.K=function(){};l.M=function(d,l){this.type=d;this.behavior=d.behavior;this.n=l;this.b=d.b};var t=l.M.prototype;t.K=function(){};t.sd=function(){};t.Na=function(){};l.k=new function(){};l.q=new function(){};l.D=new function(){}})();function Ac(l){this.b=l}
(function(){function l(){}function t(){}var d=Ac.prototype;d.P=function(d){this.behavior=d;this.b=d.b};d.P.prototype.K=function(){};d.M=function(d,l){this.type=d;this.behavior=d.behavior;this.n=l;this.b=d.b};var p=d.M.prototype;p.K=function(){this.xb=null;this.Fk=-1;this.mode=this.Lc=this.hl=this.Tg=this.me=this.ri=0;var d=this;this.Vb||(this.Rp=function(l){d.Ym(l)});this.b.Bo(this.Rp)};p.Sa=function(){return{uid:this.xb?this.xb.uid:-1,pa:this.ri,pd:this.me,msa:this.Tg,tsa:this.hl,lka:this.Lc,m:this.mode}};
p.lb=function(d){this.Fk=d.uid;this.ri=d.pa;this.me=d.pd;this.Tg=d.msa;this.hl=d.tsa;this.Lc=d.lka;this.mode=d.m};p.Ad=function(){this.xb=-1===this.Fk?null:this.b.Hh(this.Fk);this.Fk=-1};p.Ym=function(d){this.xb==d&&(this.xb=null)};p.sd=function(){this.xb=null;this.b.ox(this.Rp)};p.Na=function(){};p.gh=function(){if(this.xb){this.Lc!==this.n.A&&(this.Tg=Pa(this.Tg+(this.n.A-this.Lc)));var d=this.n.x,l=this.n.y;if(3===this.mode||4===this.mode){var g=Ya(this.n.x,this.n.y,this.xb.x,this.xb.y);if(g>this.me||
4===this.mode&&g<this.me)l=Ta(this.xb.x,this.xb.y,this.n.x,this.n.y),d=this.xb.x+Math.cos(l)*this.me,l=this.xb.y+Math.sin(l)*this.me}else d=this.xb.x+Math.cos(this.xb.A+this.ri)*this.me,l=this.xb.y+Math.sin(this.xb.A+this.ri)*this.me;this.Lc=g=Pa(this.Tg+(this.xb.A-this.hl));0!==this.mode&&1!==this.mode&&3!==this.mode&&4!==this.mode||this.n.x===d&&this.n.y===l||(this.n.x=d,this.n.y=l,this.n.da());0!==this.mode&&2!==this.mode||this.n.A===g||(this.n.A=g,this.n.da())}};l.prototype.ys=function(){return!!this.xb};
d.k=new l;t.prototype.mt=function(d,l){if(d){var g=d.Uj(this.n);g&&(this.xb=g,this.ri=Ta(g.x,g.y,this.n.x,this.n.y)-g.A,this.me=Ya(g.x,g.y,this.n.x,this.n.y),this.Lc=this.Tg=this.n.A,this.hl=g.A,this.mode=l)}};d.q=new t;d.D=new function(){}})();function Fc(l){this.b=l}
(function(){function l(){}function t(){}var d=Fc.prototype;d.P=function(d){this.behavior=d;this.b=d.b};d.P.prototype.K=function(){};d.M=function(d,g){this.type=d;this.behavior=d.behavior;this.n=g;this.b=d.b;this.kb=0};var p=d.M.prototype,m=2*Math.PI,s=Math.PI/2,g=3*Math.PI/2;p.K=function(){this.zb=1===this.B[0];this.ki=this.B[1];this.Un=this.B[2];this.Jd=this.B[3];this.Jd+=Math.random()*this.B[4];0===this.Jd?this.kb=0:(this.kb=this.B[5]/this.Jd*m,this.kb+=Math.random()*this.B[6]/this.Jd*m);this.kc=
this.B[7];this.kc+=Math.random()*this.B[8];this.yi=this.Nf=this.la=0;this.init()};p.Sa=function(){return{i:this.kb,a:this.zb,mv:this.ki,w:this.Un,p:this.Jd,mag:this.kc,iv:this.la,iv2:this.Nf,r:this.yi,lkv:this.yc,lkv2:this.bi}};p.lb=function(d){this.kb=d.i;this.zb=d.a;this.ki=d.mv;this.Un=d.w;this.Jd=d.p;this.kc=d.mag;this.la=d.iv;this.Nf=d.iv2||0;this.yi=d.r;this.yc=d.lkv;this.bi=d.lkv2||0};p.init=function(){switch(this.ki){case 0:this.la=this.n.x;break;case 1:this.la=this.n.y;break;case 2:this.la=
this.n.width;this.yi=this.n.height/this.n.width;break;case 3:this.la=this.n.width;break;case 4:this.la=this.n.height;break;case 5:this.la=this.n.A;this.kc=S(this.kc);break;case 6:this.la=this.n.opacity;break;case 7:this.la=0;break;case 8:this.la=this.n.x,this.Nf=this.n.y}this.yc=this.la;this.bi=this.Nf};p.Ee=function(d){d%=m;switch(this.Un){case 0:return Math.sin(d);case 1:return d<=s?d/s:d<=g?1-2*(d-s)/Math.PI:(d-g)/s-1;case 2:return 2*d/m-1;case 3:return-2*d/m+1;case 4:return d<Math.PI?-1:1}return 0};
p.Na=function(){var d=this.b.Ff(this.n);if(this.zb&&0!==d){0===this.Jd?this.kb=0:(this.kb+=d/this.Jd*m,this.kb%=m);switch(this.ki){case 0:this.n.x!==this.yc&&(this.la+=this.n.x-this.yc);this.n.x=this.la+this.Ee(this.kb)*this.kc;this.yc=this.n.x;break;case 1:this.n.y!==this.yc&&(this.la+=this.n.y-this.yc);this.n.y=this.la+this.Ee(this.kb)*this.kc;this.yc=this.n.y;break;case 2:this.n.width=this.la+this.Ee(this.kb)*this.kc;this.n.height=this.n.width*this.yi;break;case 3:this.n.width=this.la+this.Ee(this.kb)*
this.kc;break;case 4:this.n.height=this.la+this.Ee(this.kb)*this.kc;break;case 5:this.n.A!==this.yc&&(this.la=Pa(this.la+(this.n.A-this.yc)));this.n.A=Pa(this.la+this.Ee(this.kb)*this.kc);this.yc=this.n.A;break;case 6:this.n.opacity=this.la+this.Ee(this.kb)*this.kc/100;0>this.n.opacity?this.n.opacity=0:1<this.n.opacity&&(this.n.opacity=1);break;case 8:this.n.x!==this.yc&&(this.la+=this.n.x-this.yc),this.n.y!==this.bi&&(this.Nf+=this.n.y-this.bi),this.n.x=this.la+Math.cos(this.n.A)*this.Ee(this.kb)*
this.kc,this.n.y=this.Nf+Math.sin(this.n.A)*this.Ee(this.kb)*this.kc,this.yc=this.n.x,this.bi=this.n.y}this.n.da()}};p.bq=function(d,g){switch(this.ki){case 2:this.la*=g.width/d.width;this.yi=g.height/g.width;break;case 3:this.la*=g.width/d.width;break;case 4:this.la*=g.height/d.height}};l.prototype.ks=function(){return this.zb};d.k=new l;t.prototype.Dt=function(d){this.zb=1===d};t.prototype.Ut=function(d){this.Jd=d};t.prototype.Vt=function(d){this.kb=d*m%m};d.q=new t;d.D=new function(){}})();
function Gc(l){this.b=l}
(function(){function l(){}function t(){}var d=Gc.prototype;d.P=function(d){this.behavior=d;this.b=d.b};d.P.prototype.K=function(){};d.M=function(d,l){this.type=d;this.behavior=d.behavior;this.n=l;this.b=d.b};var p=d.M.prototype;p.K=function(){this.Eb={}};p.sd=function(){fb(this.Eb)};p.Sa=function(){var d={},l,g;for(l in this.Eb)this.Eb.hasOwnProperty(l)&&(g=this.Eb[l],d[l]={c:g.current.O,t:g.total.O,d:g.duration,r:g.kn});return d};p.lb=function(d){this.Eb={};for(var l in d)d.hasOwnProperty(l)&&(this.Eb[l]=
{current:new kb,total:new kb,duration:d[l].d,kn:d[l].r},this.Eb[l].current.O=d[l].c,this.Eb[l].total.O=d[l].t)};p.Na=function(){var d=this.b.Ff(this.n),l,g;for(l in this.Eb)this.Eb.hasOwnProperty(l)&&(g=this.Eb[l],g.current.add(d),g.total.add(d))};p.gh=function(){var d,l;for(d in this.Eb)this.Eb.hasOwnProperty(d)&&(l=this.Eb[d],l.current.O>=l.duration&&(l.kn?l.current.O-=l.duration:delete this.Eb[d]))};l.prototype.ft=function(d){d=d.toLowerCase();return(d=this.Eb[d])?d.current.O>=d.duration:!1};d.k=
new l;t.prototype.fu=function(d,l,g){this.Eb[g.toLowerCase()]={current:new kb,total:new kb,duration:d,kn:1===l}};t.prototype.ju=function(d){d=d.toLowerCase();this.Eb.hasOwnProperty(d)&&delete this.Eb[d]};d.q=new t;d.D=new function(){}})();function Hc(l){this.b=l;this.$k=this.Hi=this.fg=this.Zk=0}
(function(){function l(){}var t=Hc.prototype;t.P=function(d){this.behavior=d;this.b=d.b};t.P.prototype.K=function(){};t.M=function(d,l){this.type=d;this.behavior=d.behavior;this.n=l;this.b=d.b};var d=t.M.prototype;d.K=function(){this.enabled=0!==this.B[0]};d.Sa=function(){return{smg:this.behavior.Zk,ss:this.behavior.fg,se:this.behavior.Hi,smd:this.behavior.$k}};d.lb=function(d){this.behavior.Zk=d.smg;this.behavior.fg=d.ss;this.behavior.Hi=d.se;this.behavior.$k=d.smd};d.Na=function(){};d.gh=function(){if(this.enabled){var d=
this.behavior.vk.De(),l=0,s=0,g,r,u,t=0;g=0;for(r=d.length;g<r;g++){a:{u=d[g];for(var a=void 0,c=void 0,f=void 0,a=0,c=u.Z.length;a<c;++a)if(f=u.Z[a],f.behavior instanceof Hc){u=f;break a}u=null}u&&u.enabled&&(l+=d[g].x,s+=d[g].y,++t)}d=this.n.u.wb;r=this.b.ac.O;u=g=0;r>=this.behavior.fg&&r<this.behavior.Hi&&(g=this.behavior.Zk*Math.min(this.b.jg,1),0===this.behavior.$k&&(g*=1-(r-this.behavior.fg)/(this.behavior.Hi-this.behavior.fg)),r=Math.random()*Math.PI*2,u=Math.random()*g,g=Math.cos(r)*u,u*=
Math.sin(r));d.sn(l/t+g);d.tn(s/t+u)}};l.prototype.$t=function(d,l,s){this.behavior.Zk=d;this.behavior.fg=this.b.ac.O;this.behavior.Hi=this.behavior.fg+l;this.behavior.$k=s};l.prototype.ej=function(d){this.enabled=0!==d};t.q=new l})();
function kc(){return[qc,wc,Y,nc,oc,pc,mc,rc,sc,Z,tc,uc,vc,V,Ac,Gc,Fc,Hc,lc,zc,yc,xc,T.prototype.k.ts,T.prototype.k.ho,T.prototype.q.Pt,V.prototype.q.Ls,V.prototype.q.qo,T.prototype.D.Vx,T.prototype.D.Xx,V.prototype.q.to,T.prototype.D.Wx,tc.prototype.q.uo,tc.prototype.q.Lt,T.prototype.k.as,V.prototype.q.uo,V.prototype.D.wo,V.prototype.k.kt,V.prototype.D.fj,V.prototype.D.gj,V.prototype.q.Dl,Hc.prototype.q.$t,V.prototype.q.cu,V.prototype.D.Fs,rc.prototype.q.El,pc.prototype.k.gs,pc.prototype.k.Pr,V.prototype.q.Ft,
T.prototype.k.Xn,V.prototype.q.rl,T.prototype.q.Kt,T.prototype.q.su,Y.prototype.q.xt,Y.prototype.q.Zt,T.prototype.k.fo,T.prototype.k.Jr,T.prototype.D.Uu,T.prototype.k.pu,T.prototype.k.Kr,Fc.prototype.q.Vt,Fc.prototype.q.Dt,V.prototype.q.po,T.prototype.k.it,V.prototype.D.Opacity,Z.prototype.k.lo,Y.prototype.q.Play,mc.prototype.q.CallFunction,V.prototype.k.Wn,T.prototype.q.cs,Z.prototype.k.Cs,Z.prototype.D.fj,Z.prototype.D.gj,V.prototype.q.ul,V.prototype.q.so,nc.prototype.k.aj,Y.prototype.q.Rt,T.prototype.q.Vr,
V.prototype.q.ro,tc.prototype.q.oo,T.prototype.q.St,T.prototype.D.Ux,T.prototype.D.Fw,V.prototype.D.Zn,V.prototype.q.$n,Gc.prototype.q.fu,yc.prototype.q.Jt,yc.prototype.q.zt,uc.prototype.q.Xr,uc.prototype.D.ot,tc.prototype.D.fj,tc.prototype.D.wo,uc.prototype.D.pt,tc.prototype.D.gj,tc.prototype.D.Zn,tc.prototype.q.rl,V.prototype.q.It,V.prototype.q.iu,V.prototype.D.Ur,Y.prototype.D.ru,Y.prototype.k.sr,Y.prototype.q.or,Y.prototype.q.nr,rc.prototype.k.Wn,mc.prototype.D.Vn,T.prototype.D["int"],V.prototype.k.ns,
T.prototype.k.Zr,rc.prototype.q.pr,rc.prototype.q.Ks,T.prototype.D.Hw,T.prototype.D.Ue,Gc.prototype.k.ft,rc.prototype.q.rl,rc.prototype.k.wl,Z.prototype.k.us,V.prototype.k.Sr,V.prototype.k.Tr,V.prototype.k.xs,Gc.prototype.q.ju,xc.prototype.k.Or,xc.prototype.q.ej,V.prototype.q.vo,T.prototype.D.round,rc.prototype.q.Dl,Y.prototype.q.qt,Y.prototype.k.ut,nc.prototype.k.qs,T.prototype.k.yl,T.prototype.D.Wf,V.prototype.q.Mt,V.prototype.D.hs,V.prototype.D.js,tc.prototype.k.vs,T.prototype.D.Ew,tc.prototype.q.ul,
V.prototype.q.Ht,Y.prototype.q.Xt,Y.prototype.k.As,Y.prototype.k.Bs,Y.prototype.q.hu,nc.prototype.q.Ir,vc.prototype.k.Is,vc.prototype.q.ku,nc.prototype.q.ds,V.prototype.q.nu,yc.prototype.q.eu,V.prototype.k.ls,nc.prototype.q.es,Z.prototype.k.Al,V.prototype.k.wl,T.prototype.k.Yr,V.prototype.k.Mr,yc.prototype.k.ao,yc.prototype.k.bo,T.prototype.q.Ot,T.prototype.D.tx,mc.prototype.k.bj,T.prototype.q.Yt,mc.prototype.D.ht,T.prototype.q.rr,mc.prototype.q.Wt,T.prototype.D.Zx,T.prototype.D.Yx,V.prototype.D.yr,
T.prototype.D.Gw,vc.prototype.k.Ct,wc.prototype.q.tt,wc.prototype.k.eo,vc.prototype.q.lu,wc.prototype.q.bu,wc.prototype.k.zs,wc.prototype.q.au,vc.prototype.q.yt,mc.prototype.k.Nr,Y.prototype.q.Tt,vc.prototype.k.Lr,V.prototype.k.Je,tc.prototype.k.Je,tc.prototype.q.$n,rc.prototype.k.Je,rc.prototype.q.ul,tc.prototype.q.ro,xc.prototype.q.Et,V.prototype.D.Dr,V.prototype.q.oo,V.prototype.D.Cr,V.prototype.D.Ar,V.prototype.D.Br,Z.prototype.k.Cl,T.prototype.k.Qr,Z.prototype.D.ou,T.prototype.D.Bx,T.prototype.D.Cx,
V.prototype.k.Ds,T.prototype.k.cj,Z.prototype.k.Bl,Ac.prototype.q.mt,Ac.prototype.k.ys,V.prototype.q.Gt,Fc.prototype.q.Ut,T.prototype.D.floor,Z.prototype.D.ur,T.prototype.D.ceil,V.prototype.k.Rr,Y.prototype.q.gu,Y.prototype.q.nt,Fc.prototype.k.ks,V.prototype.k.ws,V.prototype.q.Js,T.prototype.k.bs,V.prototype.D.qu,T.prototype.q.mu,V.prototype.k.jt,T.prototype.k.lt,T.prototype.q.At,tc.prototype.D.tr,tc.prototype.q.vo,pc.prototype.q.Er,vc.prototype.q.Hr,zc.prototype.q.$r,vc.prototype.q.tl,pc.prototype.D.ph,
T.prototype.q.Bt,T.prototype.k.dj,vc.prototype.D.ph,pc.prototype.q.tl,T.prototype.q.Hs,zc.prototype.k.rs,zc.prototype.k.co,T.prototype.q.Qt,Hc.prototype.q.ej,tc.prototype.q.Dl,rc.prototype.q.qo,tc.prototype.q.po,pc.prototype.q.qr,pc.prototype.q.Nt]};
